fixing leopard configure for universal_binary when no minimal sys given
[wxWidgets.git] / configure
1 #! /bin/sh
2 # From configure.in Id: configure.in 51052 2008-01-06 22:23:20Z 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 SDL_CONFIG
705 SDL_CFLAGS
706 SDL_LIBS
707 GTKPRINT_CFLAGS
708 GTKPRINT_LIBS
709 LIBGNOMEPRINTUI_CFLAGS
710 LIBGNOMEPRINTUI_LIBS
711 GNOMEVFS_CFLAGS
712 GNOMEVFS_LIBS
713 HILDON_CFLAGS
714 HILDON_LIBS
715 CAIRO_CFLAGS
716 CAIRO_LIBS
717 GST_CFLAGS
718 GST_LIBS
719 ALL_WX_LIBS
720 BUILT_WX_LIBS
721 STD_BASE_LIBS
722 STD_GUI_LIBS
723 wxUSE_ZLIB
724 wxUSE_REGEX
725 wxUSE_EXPAT
726 wxUSE_LIBJPEG
727 wxUSE_LIBPNG
728 wxUSE_LIBTIFF
729 VENDOR
730 OFFICIAL_BUILD
731 WX_FLAVOUR
732 WX_LIB_FLAVOUR
733 WXUNIV
734 MONOLITHIC
735 USE_PLUGINS
736 CXXWARNINGS
737 EXTRALIBS
738 EXTRALIBS_XML
739 EXTRALIBS_HTML
740 EXTRALIBS_MEDIA
741 EXTRALIBS_GUI
742 EXTRALIBS_OPENGL
743 EXTRALIBS_SDL
744 WITH_PLUGIN_SDL
745 EXTRALIBS_GTKPRINT
746 EXTRALIBS_GNOMEPRINT
747 EXTRALIBS_GNOMEVFS
748 EXTRALIBS_HILDON
749 UNICODE
750 BUILD
751 DEBUG_INFO
752 DEBUG_FLAG
753 TOOLKIT_LOWERCASE
754 TOOLKIT_VERSION
755 SAMPLES_RPATH_FLAG
756 SAMPLES_RPATH_POSTLINK
757 HOST_SUFFIX
758 CPPUNIT_CFLAGS
759 CPPUNIT_LIBS
760 RANLIB
761 INSTALL_PROGRAM
762 INSTALL_SCRIPT
763 INSTALL_DATA
764 LN_S
765 SET_MAKE
766 MAKE_SET
767 AROPTIONS
768 STRIP
769 NM
770 INSTALL_DIR
771 LDFLAGS_GUI
772 IF_GNU_MAKE
773 PLATFORM_UNIX
774 PLATFORM_WIN32
775 PLATFORM_MSDOS
776 PLATFORM_MAC
777 PLATFORM_MACOS
778 PLATFORM_MACOSX
779 PLATFORM_OS2
780 PLATFORM_BEOS
781 SO_SUFFIX
782 SO_SUFFIX_MODULE
783 DLLIMP_SUFFIX
784 LIBPREFIX
785 LIBEXT
786 DLLPREFIX
787 DLLPREFIX_MODULE
788 dlldir
789 AIX_CXX_LD
790 SHARED_LD_CC
791 SHARED_LD_CXX
792 SHARED_LD_MODULE_CC
793 SHARED_LD_MODULE_CXX
794 PIC_FLAG
795 WINDOWS_IMPLIB
796 USE_SOVERSION
797 USE_SOVERLINUX
798 USE_SOVERSOLARIS
799 USE_SOVERCYGWIN
800 USE_MACVERSION
801 USE_SOSYMLINKS
802 SONAME_FLAG
803 DEPS_TRACKING
804 BK_DEPS
805 WINDRES
806 REZ
807 SETFILE
808 GCC_PCH
809 ICC_PCH
810 BK_MAKE_PCH
811 COND_BUILD_DEBUG
812 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT
813 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT
814 COND_BUILD_DEBUG_UNICODE_0
815 COND_BUILD_DEBUG_UNICODE_1
816 COND_BUILD_RELEASE
817 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT
818 COND_BUILD_RELEASE_UNICODE_0
819 COND_BUILD_RELEASE_UNICODE_1
820 COND_DEBUG_FLAG_1
821 COND_DEBUG_INFO_0
822 COND_DEBUG_INFO_1
823 COND_DEPS_TRACKING_0
824 COND_DEPS_TRACKING_1
825 COND_GCC_PCH_1
826 COND_ICC_PCH_1
827 COND_MONOLITHIC_0
828 COND_MONOLITHIC_0_SHARED_0
829 COND_MONOLITHIC_0_SHARED_0_USE_AUI_1
830 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1
831 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1
832 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1
833 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1
834 COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1
835 COND_MONOLITHIC_0_SHARED_0_USE_STC_1
836 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1
837 COND_MONOLITHIC_0_SHARED_1
838 COND_MONOLITHIC_0_SHARED_1_USE_AUI_1
839 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1
840 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1
841 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1
842 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1
843 COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1
844 COND_MONOLITHIC_0_SHARED_1_USE_STC_1
845 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1
846 COND_MONOLITHIC_0_USE_AUI_1
847 COND_MONOLITHIC_0_USE_GUI_1
848 COND_MONOLITHIC_0_USE_GUI_1_USE_MEDIA_1
849 COND_MONOLITHIC_0_USE_HTML_1
850 COND_MONOLITHIC_0_USE_MEDIA_1
851 COND_MONOLITHIC_0_USE_QA_1
852 COND_MONOLITHIC_0_USE_RICHTEXT_1
853 COND_MONOLITHIC_0_USE_STC_1
854 COND_MONOLITHIC_0_USE_XRC_1
855 COND_MONOLITHIC_1
856 COND_MONOLITHIC_1_SHARED_0
857 COND_MONOLITHIC_1_SHARED_1
858 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1
859 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1
860 COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1
861 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1
862 COND_PLATFORM_MACOSX_1
863 COND_PLATFORM_MACOSX_1_TOOLKIT_
864 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA
865 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK
866 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC
867 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1
868 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF
869 COND_PLATFORM_MACOSX_1_TOOLKIT_X11
870 COND_PLATFORM_MACOSX_1_USE_GUI_1
871 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1
872 COND_PLATFORM_MACOS_1
873 COND_PLATFORM_MAC_1
874 COND_PLATFORM_MSDOS_0
875 COND_PLATFORM_MSDOS_1
876 COND_PLATFORM_OS2_1
877 COND_PLATFORM_UNIX_0
878 COND_PLATFORM_UNIX_1
879 COND_PLATFORM_UNIX_1_TOOLKIT_MGL
880 COND_PLATFORM_UNIX_1_TOOLKIT_MGL_USE_GUI_1
881 COND_PLATFORM_UNIX_1_USE_GUI_1
882 COND_PLATFORM_UNIX_1_USE_PLUGINS_0
883 COND_PLATFORM_WIN32_0
884 COND_PLATFORM_WIN32_1
885 COND_SHARED_0
886 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0
887 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0
888 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0
889 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1
890 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN
891 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN
892 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN
893 COND_SHARED_0_USE_STC_1
894 COND_SHARED_0_WXUSE_EXPAT_BUILTIN
895 COND_SHARED_0_WXUSE_REGEX_BUILTIN
896 COND_SHARED_0_WXUSE_ZLIB_BUILTIN
897 COND_SHARED_1
898 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1
899 COND_TOOLKIT_
900 COND_TOOLKIT_COCOA
901 COND_TOOLKIT_COCOA_USE_GUI_1
902 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0
903 COND_TOOLKIT_DFB
904 COND_TOOLKIT_DFB_USE_GUI_1
905 COND_TOOLKIT_GTK
906 COND_TOOLKIT_GTK_TOOLKIT_VERSION_
907 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2
908 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1
909 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0
910 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_WXUNIV_0
911 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1
912 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0
913 COND_TOOLKIT_GTK_USE_GUI_1
914 COND_TOOLKIT_MAC
915 COND_TOOLKIT_MAC_USE_GUI_1
916 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0
917 COND_TOOLKIT_MGL
918 COND_TOOLKIT_MGL_USE_GUI_1
919 COND_TOOLKIT_MOTIF
920 COND_TOOLKIT_MOTIF_USE_GUI_1
921 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0
922 COND_TOOLKIT_MSW
923 COND_TOOLKIT_MSW_USE_GUI_1
924 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0
925 COND_TOOLKIT_MSW_WXUNIV_0
926 COND_TOOLKIT_PM
927 COND_TOOLKIT_PM_USE_GUI_1
928 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0
929 COND_TOOLKIT_WINCE
930 COND_TOOLKIT_WINCE_USE_GUI_1
931 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0
932 COND_TOOLKIT_WINCE_WXUNIV_0
933 COND_TOOLKIT_X11
934 COND_TOOLKIT_X11_USE_GUI_1
935 COND_UNICODE_1
936 COND_USE_EXCEPTIONS_0
937 COND_USE_EXCEPTIONS_1
938 COND_USE_GUI_0
939 COND_USE_GUI_1
940 COND_USE_GUI_1_USE_OPENGL_1
941 COND_USE_GUI_1_WXUNIV_0
942 COND_USE_GUI_1_WXUNIV_1
943 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN
944 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN
945 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN
946 COND_USE_OPENGL_1
947 COND_USE_PCH_1
948 COND_USE_PLUGINS_0
949 COND_USE_RTTI_0
950 COND_USE_RTTI_1
951 COND_USE_SOSYMLINKS_1
952 COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1
953 COND_USE_SOVERLINUX_1
954 COND_USE_SOVERSION_0
955 COND_USE_SOVERSOLARIS_1
956 COND_USE_STC_1
957 COND_USE_THREADS_0
958 COND_USE_THREADS_1
959 COND_USE_XRC_1
960 COND_WINDOWS_IMPLIB_1
961 COND_WITH_PLUGIN_SDL_1
962 COND_WXUNIV_0
963 COND_WXUNIV_1
964 COND_WXUSE_EXPAT_BUILTIN
965 COND_WXUSE_LIBJPEG_BUILTIN
966 COND_WXUSE_LIBPNG_BUILTIN
967 COND_WXUSE_LIBTIFF_BUILTIN
968 COND_WXUSE_REGEX_BUILTIN
969 COND_WXUSE_ZLIB_BUILTIN
970 DEREZ
971 SHARED
972 WX_LIBRARY_BASENAME_NOGUI
973 WX_LIBRARY_BASENAME_GUI
974 USE_GUI
975 AFMINSTALL
976 WIN32INSTALL
977 TOOLKIT
978 TOOLKIT_DIR
979 TOOLCHAIN_NAME
980 TOOLCHAIN_FULLNAME
981 cross_compiling
982 WIDGET_SET
983 WX_RELEASE
984 WX_VERSION
985 WX_SUBVERSION
986 WX_CHARTYPE
987 WX_DEBUGTYPE
988 WXCONFIG_CPPFLAGS
989 WXCONFIG_CFLAGS
990 WXCONFIG_CXXFLAGS
991 WXCONFIG_LIBS
992 WXCONFIG_RPATH
993 WXCONFIG_LDFLAGS_GUI
994 WXCONFIG_RESFLAGS
995 GUIDIST
996 DISTDIR
997 SAMPLES_SUBDIRS
998 LDFLAGS_GL
999 OPENGL_LIBS
1000 DMALLOC_LIBS
1001 WX_VERSION_TAG
1002 RESCOMP
1003 RESFLAGS
1004 RESPROGRAMOBJ
1005 WX_RESOURCES_MACOSX_ASCII
1006 WX_RESOURCES_MACOSX_DATA
1007 LIBWXMACRES
1008 POSTLINK_COMMAND
1009 MACSETFILE
1010 GCC
1011 DLLTOOL
1012 CPPUNIT_CONFIG
1013 LIBOBJS
1014 LTLIBOBJS'
1015 ac_subst_files=''
1016       ac_precious_vars='build_alias
1017 host_alias
1018 target_alias
1019 CC
1020 CFLAGS
1021 LDFLAGS
1022 LIBS
1023 CPPFLAGS
1024 CPP
1025 CXX
1026 CXXFLAGS
1027 CCC
1028 PKG_CONFIG
1029 DIRECTFB_CFLAGS
1030 DIRECTFB_LIBS
1031 XMKMF
1032 PANGOX_CFLAGS
1033 PANGOX_LIBS
1034 PANGOFT2_CFLAGS
1035 PANGOFT2_LIBS
1036 PANGOXFT_CFLAGS
1037 PANGOXFT_LIBS
1038 GTKPRINT_CFLAGS
1039 GTKPRINT_LIBS
1040 LIBGNOMEPRINTUI_CFLAGS
1041 LIBGNOMEPRINTUI_LIBS
1042 GNOMEVFS_CFLAGS
1043 GNOMEVFS_LIBS
1044 HILDON_CFLAGS
1045 HILDON_LIBS
1046 CAIRO_CFLAGS
1047 CAIRO_LIBS
1048 GST_CFLAGS
1049 GST_LIBS'
1050 ac_subdirs_all='src/tiff
1051 src/expat'
1052
1053 # Initialize some variables set by options.
1054 ac_init_help=
1055 ac_init_version=false
1056 # The variables have the same names as the options, with
1057 # dashes changed to underlines.
1058 cache_file=/dev/null
1059 exec_prefix=NONE
1060 no_create=
1061 no_recursion=
1062 prefix=NONE
1063 program_prefix=NONE
1064 program_suffix=NONE
1065 program_transform_name=s,x,x,
1066 silent=
1067 site=
1068 srcdir=
1069 verbose=
1070 x_includes=NONE
1071 x_libraries=NONE
1072
1073 # Installation directory options.
1074 # These are left unexpanded so users can "make install exec_prefix=/foo"
1075 # and all the variables that are supposed to be based on exec_prefix
1076 # by default will actually change.
1077 # Use braces instead of parens because sh, perl, etc. also accept them.
1078 # (The list follows the same order as the GNU Coding Standards.)
1079 bindir='${exec_prefix}/bin'
1080 sbindir='${exec_prefix}/sbin'
1081 libexecdir='${exec_prefix}/libexec'
1082 datarootdir='${prefix}/share'
1083 datadir='${datarootdir}'
1084 sysconfdir='${prefix}/etc'
1085 sharedstatedir='${prefix}/com'
1086 localstatedir='${prefix}/var'
1087 includedir='${prefix}/include'
1088 oldincludedir='/usr/include'
1089 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1090 infodir='${datarootdir}/info'
1091 htmldir='${docdir}'
1092 dvidir='${docdir}'
1093 pdfdir='${docdir}'
1094 psdir='${docdir}'
1095 libdir='${exec_prefix}/lib'
1096 localedir='${datarootdir}/locale'
1097 mandir='${datarootdir}/man'
1098
1099 ac_prev=
1100 ac_dashdash=
1101 for ac_option
1102 do
1103   # If the previous option needs an argument, assign it.
1104   if test -n "$ac_prev"; then
1105     eval $ac_prev=\$ac_option
1106     ac_prev=
1107     continue
1108   fi
1109
1110   case $ac_option in
1111   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1112   *)    ac_optarg=yes ;;
1113   esac
1114
1115   # Accept the important Cygnus configure options, so we can diagnose typos.
1116
1117   case $ac_dashdash$ac_option in
1118   --)
1119     ac_dashdash=yes ;;
1120
1121   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1122     ac_prev=bindir ;;
1123   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1124     bindir=$ac_optarg ;;
1125
1126   -build | --build | --buil | --bui | --bu)
1127     ac_prev=build_alias ;;
1128   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1129     build_alias=$ac_optarg ;;
1130
1131   -cache-file | --cache-file | --cache-fil | --cache-fi \
1132   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1133     ac_prev=cache_file ;;
1134   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1135   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1136     cache_file=$ac_optarg ;;
1137
1138   --config-cache | -C)
1139     cache_file=config.cache ;;
1140
1141   -datadir | --datadir | --datadi | --datad)
1142     ac_prev=datadir ;;
1143   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1144     datadir=$ac_optarg ;;
1145
1146   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1147   | --dataroo | --dataro | --datar)
1148     ac_prev=datarootdir ;;
1149   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1150   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1151     datarootdir=$ac_optarg ;;
1152
1153   -disable-* | --disable-*)
1154     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1155     # Reject names that are not valid shell variable names.
1156     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1157       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1158    { (exit 1); exit 1; }; }
1159     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1160     eval enable_$ac_feature=no ;;
1161
1162   -docdir | --docdir | --docdi | --doc | --do)
1163     ac_prev=docdir ;;
1164   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1165     docdir=$ac_optarg ;;
1166
1167   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1168     ac_prev=dvidir ;;
1169   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1170     dvidir=$ac_optarg ;;
1171
1172   -enable-* | --enable-*)
1173     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1174     # Reject names that are not valid shell variable names.
1175     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1176       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1177    { (exit 1); exit 1; }; }
1178     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1179     eval enable_$ac_feature=\$ac_optarg ;;
1180
1181   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1182   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1183   | --exec | --exe | --ex)
1184     ac_prev=exec_prefix ;;
1185   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1186   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1187   | --exec=* | --exe=* | --ex=*)
1188     exec_prefix=$ac_optarg ;;
1189
1190   -gas | --gas | --ga | --g)
1191     # Obsolete; use --with-gas.
1192     with_gas=yes ;;
1193
1194   -help | --help | --hel | --he | -h)
1195     ac_init_help=long ;;
1196   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1197     ac_init_help=recursive ;;
1198   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1199     ac_init_help=short ;;
1200
1201   -host | --host | --hos | --ho)
1202     ac_prev=host_alias ;;
1203   -host=* | --host=* | --hos=* | --ho=*)
1204     host_alias=$ac_optarg ;;
1205
1206   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1207     ac_prev=htmldir ;;
1208   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1209   | --ht=*)
1210     htmldir=$ac_optarg ;;
1211
1212   -includedir | --includedir | --includedi | --included | --include \
1213   | --includ | --inclu | --incl | --inc)
1214     ac_prev=includedir ;;
1215   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1216   | --includ=* | --inclu=* | --incl=* | --inc=*)
1217     includedir=$ac_optarg ;;
1218
1219   -infodir | --infodir | --infodi | --infod | --info | --inf)
1220     ac_prev=infodir ;;
1221   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1222     infodir=$ac_optarg ;;
1223
1224   -libdir | --libdir | --libdi | --libd)
1225     ac_prev=libdir ;;
1226   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1227     libdir=$ac_optarg ;;
1228
1229   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1230   | --libexe | --libex | --libe)
1231     ac_prev=libexecdir ;;
1232   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1233   | --libexe=* | --libex=* | --libe=*)
1234     libexecdir=$ac_optarg ;;
1235
1236   -localedir | --localedir | --localedi | --localed | --locale)
1237     ac_prev=localedir ;;
1238   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1239     localedir=$ac_optarg ;;
1240
1241   -localstatedir | --localstatedir | --localstatedi | --localstated \
1242   | --localstate | --localstat | --localsta | --localst | --locals)
1243     ac_prev=localstatedir ;;
1244   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1245   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1246     localstatedir=$ac_optarg ;;
1247
1248   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1249     ac_prev=mandir ;;
1250   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1251     mandir=$ac_optarg ;;
1252
1253   -nfp | --nfp | --nf)
1254     # Obsolete; use --without-fp.
1255     with_fp=no ;;
1256
1257   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1258   | --no-cr | --no-c | -n)
1259     no_create=yes ;;
1260
1261   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1262   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1263     no_recursion=yes ;;
1264
1265   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1266   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1267   | --oldin | --oldi | --old | --ol | --o)
1268     ac_prev=oldincludedir ;;
1269   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1270   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1271   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1272     oldincludedir=$ac_optarg ;;
1273
1274   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1275     ac_prev=prefix ;;
1276   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1277     prefix=$ac_optarg ;;
1278
1279   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1280   | --program-pre | --program-pr | --program-p)
1281     ac_prev=program_prefix ;;
1282   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1283   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1284     program_prefix=$ac_optarg ;;
1285
1286   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1287   | --program-suf | --program-su | --program-s)
1288     ac_prev=program_suffix ;;
1289   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1290   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1291     program_suffix=$ac_optarg ;;
1292
1293   -program-transform-name | --program-transform-name \
1294   | --program-transform-nam | --program-transform-na \
1295   | --program-transform-n | --program-transform- \
1296   | --program-transform | --program-transfor \
1297   | --program-transfo | --program-transf \
1298   | --program-trans | --program-tran \
1299   | --progr-tra | --program-tr | --program-t)
1300     ac_prev=program_transform_name ;;
1301   -program-transform-name=* | --program-transform-name=* \
1302   | --program-transform-nam=* | --program-transform-na=* \
1303   | --program-transform-n=* | --program-transform-=* \
1304   | --program-transform=* | --program-transfor=* \
1305   | --program-transfo=* | --program-transf=* \
1306   | --program-trans=* | --program-tran=* \
1307   | --progr-tra=* | --program-tr=* | --program-t=*)
1308     program_transform_name=$ac_optarg ;;
1309
1310   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1311     ac_prev=pdfdir ;;
1312   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1313     pdfdir=$ac_optarg ;;
1314
1315   -psdir | --psdir | --psdi | --psd | --ps)
1316     ac_prev=psdir ;;
1317   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1318     psdir=$ac_optarg ;;
1319
1320   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1321   | -silent | --silent | --silen | --sile | --sil)
1322     silent=yes ;;
1323
1324   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1325     ac_prev=sbindir ;;
1326   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1327   | --sbi=* | --sb=*)
1328     sbindir=$ac_optarg ;;
1329
1330   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1331   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1332   | --sharedst | --shareds | --shared | --share | --shar \
1333   | --sha | --sh)
1334     ac_prev=sharedstatedir ;;
1335   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1336   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1337   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1338   | --sha=* | --sh=*)
1339     sharedstatedir=$ac_optarg ;;
1340
1341   -site | --site | --sit)
1342     ac_prev=site ;;
1343   -site=* | --site=* | --sit=*)
1344     site=$ac_optarg ;;
1345
1346   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1347     ac_prev=srcdir ;;
1348   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1349     srcdir=$ac_optarg ;;
1350
1351   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1352   | --syscon | --sysco | --sysc | --sys | --sy)
1353     ac_prev=sysconfdir ;;
1354   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1355   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1356     sysconfdir=$ac_optarg ;;
1357
1358   -target | --target | --targe | --targ | --tar | --ta | --t)
1359     ac_prev=target_alias ;;
1360   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1361     target_alias=$ac_optarg ;;
1362
1363   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1364     verbose=yes ;;
1365
1366   -version | --version | --versio | --versi | --vers | -V)
1367     ac_init_version=: ;;
1368
1369   -with-* | --with-*)
1370     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1371     # Reject names that are not valid shell variable names.
1372     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1373       { echo "$as_me: error: invalid package name: $ac_package" >&2
1374    { (exit 1); exit 1; }; }
1375     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1376     eval with_$ac_package=\$ac_optarg ;;
1377
1378   -without-* | --without-*)
1379     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1380     # Reject names that are not valid shell variable names.
1381     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1382       { echo "$as_me: error: invalid package name: $ac_package" >&2
1383    { (exit 1); exit 1; }; }
1384     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1385     eval with_$ac_package=no ;;
1386
1387   --x)
1388     # Obsolete; use --with-x.
1389     with_x=yes ;;
1390
1391   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1392   | --x-incl | --x-inc | --x-in | --x-i)
1393     ac_prev=x_includes ;;
1394   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1395   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1396     x_includes=$ac_optarg ;;
1397
1398   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1399   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1400     ac_prev=x_libraries ;;
1401   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1402   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1403     x_libraries=$ac_optarg ;;
1404
1405   -*) { echo "$as_me: error: unrecognized option: $ac_option
1406 Try \`$0 --help' for more information." >&2
1407    { (exit 1); exit 1; }; }
1408     ;;
1409
1410   *=*)
1411     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1412     # Reject names that are not valid shell variable names.
1413     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1414       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1415    { (exit 1); exit 1; }; }
1416     eval $ac_envvar=\$ac_optarg
1417     export $ac_envvar ;;
1418
1419   *)
1420     # FIXME: should be removed in autoconf 3.0.
1421     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1422     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1423       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1424     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1425     ;;
1426
1427   esac
1428 done
1429
1430 if test -n "$ac_prev"; then
1431   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1432   { echo "$as_me: error: missing argument to $ac_option" >&2
1433    { (exit 1); exit 1; }; }
1434 fi
1435
1436 # Be sure to have absolute directory names.
1437 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1438                 datadir sysconfdir sharedstatedir localstatedir includedir \
1439                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1440                 libdir localedir mandir
1441 do
1442   eval ac_val=\$$ac_var
1443   case $ac_val in
1444     [\\/$]* | ?:[\\/]* )  continue;;
1445     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1446   esac
1447   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1448    { (exit 1); exit 1; }; }
1449 done
1450
1451 # There might be people who depend on the old broken behavior: `$host'
1452 # used to hold the argument of --host etc.
1453 # FIXME: To remove some day.
1454 build=$build_alias
1455 host=$host_alias
1456 target=$target_alias
1457
1458 # FIXME: To remove some day.
1459 if test "x$host_alias" != x; then
1460   if test "x$build_alias" = x; then
1461     cross_compiling=maybe
1462     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1463     If a cross compiler is detected then cross compile mode will be used." >&2
1464   elif test "x$build_alias" != "x$host_alias"; then
1465     cross_compiling=yes
1466   fi
1467 fi
1468
1469 ac_tool_prefix=
1470 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1471
1472 test "$silent" = yes && exec 6>/dev/null
1473
1474
1475 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1476 ac_ls_di=`ls -di .` &&
1477 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1478   { echo "$as_me: error: Working directory cannot be determined" >&2
1479    { (exit 1); exit 1; }; }
1480 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1481   { echo "$as_me: error: pwd does not report name of working directory" >&2
1482    { (exit 1); exit 1; }; }
1483
1484
1485 # Find the source files, if location was not specified.
1486 if test -z "$srcdir"; then
1487   ac_srcdir_defaulted=yes
1488   # Try the directory containing this script, then the parent directory.
1489   ac_confdir=`$as_dirname -- "$0" ||
1490 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1491          X"$0" : 'X\(//\)[^/]' \| \
1492          X"$0" : 'X\(//\)$' \| \
1493          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1494 echo X"$0" |
1495     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1496             s//\1/
1497             q
1498           }
1499           /^X\(\/\/\)[^/].*/{
1500             s//\1/
1501             q
1502           }
1503           /^X\(\/\/\)$/{
1504             s//\1/
1505             q
1506           }
1507           /^X\(\/\).*/{
1508             s//\1/
1509             q
1510           }
1511           s/.*/./; q'`
1512   srcdir=$ac_confdir
1513   if test ! -r "$srcdir/$ac_unique_file"; then
1514     srcdir=..
1515   fi
1516 else
1517   ac_srcdir_defaulted=no
1518 fi
1519 if test ! -r "$srcdir/$ac_unique_file"; then
1520   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1521   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1522    { (exit 1); exit 1; }; }
1523 fi
1524 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1525 ac_abs_confdir=`(
1526         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1527    { (exit 1); exit 1; }; }
1528         pwd)`
1529 # When building in place, set srcdir=.
1530 if test "$ac_abs_confdir" = "$ac_pwd"; then
1531   srcdir=.
1532 fi
1533 # Remove unnecessary trailing slashes from srcdir.
1534 # Double slashes in file names in object file debugging info
1535 # mess up M-x gdb in Emacs.
1536 case $srcdir in
1537 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1538 esac
1539 for ac_var in $ac_precious_vars; do
1540   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1541   eval ac_env_${ac_var}_value=\$${ac_var}
1542   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1543   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1544 done
1545
1546 #
1547 # Report the --help message.
1548 #
1549 if test "$ac_init_help" = "long"; then
1550   # Omit some internal or obsolete options to make the list less imposing.
1551   # This message is too long to be a string in the A/UX 3.1 sh.
1552   cat <<_ACEOF
1553 \`configure' configures wxWidgets 2.9.0 to adapt to many kinds of systems.
1554
1555 Usage: $0 [OPTION]... [VAR=VALUE]...
1556
1557 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1558 VAR=VALUE.  See below for descriptions of some of the useful variables.
1559
1560 Defaults for the options are specified in brackets.
1561
1562 Configuration:
1563   -h, --help              display this help and exit
1564       --help=short        display options specific to this package
1565       --help=recursive    display the short help of all the included packages
1566   -V, --version           display version information and exit
1567   -q, --quiet, --silent   do not print \`checking...' messages
1568       --cache-file=FILE   cache test results in FILE [disabled]
1569   -C, --config-cache      alias for \`--cache-file=config.cache'
1570   -n, --no-create         do not create output files
1571       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1572
1573 Installation directories:
1574   --prefix=PREFIX         install architecture-independent files in PREFIX
1575                           [$ac_default_prefix]
1576   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1577                           [PREFIX]
1578
1579 By default, \`make install' will install all the files in
1580 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1581 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1582 for instance \`--prefix=\$HOME'.
1583
1584 For better control, use the options below.
1585
1586 Fine tuning of the installation directories:
1587   --bindir=DIR           user executables [EPREFIX/bin]
1588   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1589   --libexecdir=DIR       program executables [EPREFIX/libexec]
1590   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1591   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1592   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1593   --libdir=DIR           object code libraries [EPREFIX/lib]
1594   --includedir=DIR       C header files [PREFIX/include]
1595   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1596   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1597   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1598   --infodir=DIR          info documentation [DATAROOTDIR/info]
1599   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1600   --mandir=DIR           man documentation [DATAROOTDIR/man]
1601   --docdir=DIR           documentation root [DATAROOTDIR/doc/wxwidgets]
1602   --htmldir=DIR          html documentation [DOCDIR]
1603   --dvidir=DIR           dvi documentation [DOCDIR]
1604   --pdfdir=DIR           pdf documentation [DOCDIR]
1605   --psdir=DIR            ps documentation [DOCDIR]
1606 _ACEOF
1607
1608   cat <<\_ACEOF
1609
1610 X features:
1611   --x-includes=DIR    X include files are in DIR
1612   --x-libraries=DIR   X library files are in DIR
1613
1614 System types:
1615   --build=BUILD     configure for building on BUILD [guessed]
1616   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1617   --target=TARGET   configure for building compilers for TARGET [HOST]
1618 _ACEOF
1619 fi
1620
1621 if test -n "$ac_init_help"; then
1622   case $ac_init_help in
1623      short | recursive ) echo "Configuration of wxWidgets 2.9.0:";;
1624    esac
1625   cat <<\_ACEOF
1626
1627 Optional Features:
1628   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1629   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1630   --disable-gui           don't build GUI parts of the library
1631   --enable-monolithic     build wxWidgets as single library
1632   --enable-plugins        build parts of wxWidgets as loadable components
1633   --enable-official_build official build of wxWidgets (win32 DLL only)
1634   --enable-vendor=VENDOR  vendor name (win32 DLL only)
1635   --disable-all-features  disable all optional features to build minimal library
1636   --enable-universal      use wxWidgets GUI controls instead of native ones
1637   --enable-nanox          use NanoX
1638   --disable-gtk2          use GTK+ 1.2 instead of 2.0
1639   --enable-gpe            use GNOME PDA Environment features if possible
1640   --disable-shared        create static library instead of shared
1641   --disable-optimise      create optimised code
1642   --enable-debug          same as debug_flag and debug_info
1643   --enable-stl            use STL for containers
1644   --enable-std_iostreams  use standard C++ stream classes
1645   --enable-std_string     use standard C++ string classes
1646   --disable-unicode       compile without Unicode support
1647   --enable-mslu           use MS Layer for Unicode on Windows 9x (Win32 only)
1648   --enable-utf8           use UTF-8 representation for strings (Unix only)
1649   --enable-utf8only      only support UTF-8 locales in UTF-8 build (Unix only)
1650   --enable-extended_rtti  use extended RTTI (XTI)
1651   --enable-omf            use OMF object format
1652   --enable-debug_flag     set __WXDEBUG__ flag (recommended for developers!)
1653   --enable-debug_info     create code with debugging information
1654   --enable-debug_gdb      create code with extra GDB debugging information
1655   --enable-debug_cntxt    use wxDebugContext
1656   --enable-mem_tracing    create code with memory tracing
1657   --enable-profile        create code with profiling information
1658   --enable-no_rtti        create code without RTTI information
1659   --enable-no_exceptions  create code without C++ exceptions handling
1660   --enable-permissive     compile code disregarding strict ANSI
1661   --enable-no_deps        create code without dependency information
1662   --disable-vararg_macros don't use vararg macros, even if they are supported
1663   --enable-universal_binary  create Mac PowerPC and Intel Universal binary
1664   --enable-compat26       enable wxWidgets 2.6 compatibility
1665   --disable-compat28      disable wxWidgets 2.8 compatibility
1666   --disable-rpath         disable use of rpath for uninstalled builds
1667   --enable-objc_uniquifying enable Objective-C class name uniquifying
1668   --disable-visibility    disable use of ELF symbols visibility even if supported
1669   --enable-intl           use internationalization system
1670   --enable-config         use wxConfig (and derived) classes
1671   --enable-protocols      use wxProtocol and derived classes
1672   --enable-ftp            use wxFTP (requires wxProtocol
1673   --enable-http           use wxHTTP (requires wxProtocol
1674   --enable-fileproto      use wxFileProto class (requires wxProtocol
1675   --enable-sockets        use socket/network classes
1676   --enable-ipv6           enable IPv6 support in wxSocket
1677   --enable-ole            use OLE classes (Win32 only)
1678   --enable-dataobj        use data object classes
1679   --enable-ipc            use interprocess communication (wxSocket etc.)
1680   --enable-baseevtloop    use event loop in console programs too
1681   --enable-epollloop      use wxEpollDispatcher class (Linux only)
1682   --enable-selectloop     use wxSelectDispatcher class
1683   --enable-apple_ieee     use the Apple IEEE codec
1684   --enable-arcstream      use wxArchive streams
1685   --enable-base64         use base64 encoding/decoding functions
1686   --enable-backtrace      use wxStackWalker class for getting backtraces
1687   --enable-catch_segvs    catch signals in wxApp::OnFatalException (Unix only)
1688   --enable-cmdline        use wxCmdLineParser class
1689   --enable-datetime       use wxDateTime class
1690   --enable-debugreport    use wxDebugReport class
1691   --enable-dialupman      use dialup network classes
1692   --enable-dynlib         use wxLibrary class for DLL loading
1693   --enable-dynamicloader  use (new) wxDynamicLibrary class
1694   --enable-exceptions     build exception-safe library
1695   --enable-ffile          use wxFFile class
1696   --enable-file           use wxFile class
1697   --enable-filesystem     use virtual file systems classes
1698   --enable-fontenum       use wxFontEnumerator class
1699   --enable-fontmap        use font encodings conversion classes
1700   --enable-fs_archive     use virtual archive filesystems
1701   --enable-fs_inet        use virtual HTTP/FTP filesystems
1702   --enable-fs_zip         now replaced by fs_archive
1703   --enable-geometry       use geometry class
1704   --enable-log            use logging system
1705   --enable-longlong       use wxLongLong class
1706   --enable-mimetype       use wxMimeTypesManager
1707   --enable-snglinst       use wxSingleInstanceChecker class
1708   --enable-stdpaths       use wxStandardPaths class
1709   --enable-stopwatch      use wxStopWatch class
1710   --enable-streams        use wxStream etc classes
1711   --enable-sysoptions     use wxSystemOptions
1712   --enable-tarstream      use wxTar streams
1713   --enable-textbuf        use wxTextBuffer class
1714   --enable-textfile       use wxTextFile class
1715   --enable-timer          use wxTimer class
1716   --enable-sound          use wxSound class
1717   --enable-mediactrl      use wxMediaCtrl class
1718   --enable-gstreamer8     force GStreamer 0.8 instead of 0.10 with the wxMediaCtrl class on unix
1719   --enable-printfposparam use wxVsnprintf() which supports positional parameters
1720   --enable-zipstream      use wxZip streams
1721   --enable-url            use wxURL class
1722   --enable-variant        use wxVariant class
1723   --enable-protocol       use wxProtocol class
1724   --enable-protocol-http  HTTP support in wxProtocol
1725   --enable-protocol-ftp   FTP support in wxProtocol
1726   --enable-protocol-file  FILE support in wxProtocol
1727   --enable-threads        use threads
1728   --enable-iniconf        use wxIniConfig (Win32 only)
1729   --enable-regkey         use wxRegKey class (Win32 only)
1730   --enable-docview        use document view architecture
1731   --enable-help           use help subsystem
1732   --enable-mshtmlhelp     use MS HTML Help (win32)
1733   --enable-html           use wxHTML sub-library
1734   --enable-htmlhelp       use wxHTML-based help
1735   --enable-xrc            use XRC resources sub-library
1736   --enable-aui            use AUI docking library
1737   --enable-stc            use wxStyledTextCtrl library
1738   --enable-constraints    use layout-constraints system
1739   --enable-printarch      use printing architecture
1740   --enable-mdi            use multiple document interface architecture
1741   --enable-mdidoc         use docview architecture with MDI
1742   --enable-loggui         use standard GUI logger
1743   --enable-logwin         use wxLogWindow
1744   --enable-logdialog      use wxLogDialog
1745   --enable-webkit         use wxWebKitCtrl (Mac)
1746   --enable-richtext       use wxRichTextCtrl
1747   --enable-graphics_ctx   use graphics context 2D drawing API
1748   --enable-postscript     use wxPostscriptDC device context (default for gtk+)
1749   --enable-svg            use wxSVGFileDC device context
1750   --enable-clipboard      use wxClipboard class
1751   --enable-dnd            use Drag'n'Drop classes
1752   --enable-metafile       use win32 metafiles
1753   --disable-controls      disable compilation of all standard controls
1754   --enable-accel          use accelerators
1755   --enable-animatectrl    use wxAnimationCtrl class
1756   --enable-button         use wxButton class
1757   --enable-bmpbutton      use wxBitmapButton class
1758   --enable-bmpcombobox    use wxBitmapComboBox class
1759   --enable-calendar       use wxCalendarCtrl class
1760   --enable-caret          use wxCaret class
1761   --enable-checkbox       use wxCheckBox class
1762   --enable-checklst       use wxCheckListBox (listbox with checkboxes) class
1763   --enable-choice         use wxChoice class
1764   --enable-choicebook     use wxChoicebook class
1765   --enable-collpane       use wxCollapsiblePane class
1766   --enable-colourpicker   use wxColourPickerCtrl class
1767   --enable-combobox       use wxComboBox class
1768   --enable-comboctrl      use wxComboCtrl class
1769   --enable-datepick       use wxDatePickerCtrl class
1770   --enable-dirpicker      use wxDirPickerCtrl class
1771   --enable-display        use wxDisplay class
1772   --enable-detect_sm      use code to detect X11 session manager
1773   --enable-editablebox    use wxEditableListBox class
1774   --enable-filepicker     use wxFilePickerCtrl class
1775   --enable-filectrl       use wxFileCtrl class
1776   --enable-fontpicker     use wxFontPickerCtrl class
1777   --enable-gauge          use wxGauge class
1778   --enable-grid           use wxGrid class
1779   --enable-dataviewctrl   use wxDataViewCtrl class
1780   --enable-hyperlink      use wxHyperlinkCtrl class
1781   --enable-imaglist       use wxImageList class
1782   --enable-listbook       use wxListbook class
1783   --enable-listbox        use wxListBox class
1784   --enable-listctrl       use wxListCtrl class
1785   --enable-notebook       use wxNotebook class
1786   --enable-notifmsg       use wxNotificationMessage class
1787   --enable-odcombobox     use wxOwnerDrawnComboBox class
1788   --enable-radiobox       use wxRadioBox class
1789   --enable-radiobtn       use wxRadioButton class
1790   --enable-sash           use wxSashWindow class
1791   --enable-scrollbar      use wxScrollBar class and scrollable windows
1792   --enable-searchctrl     use wxSearchCtrl class
1793   --enable-slider         use wxSlider class
1794   --enable-spinbtn        use wxSpinButton class
1795   --enable-spinctrl       use wxSpinCtrl class
1796   --enable-splitter       use wxSplitterWindow class
1797   --enable-statbmp        use wxStaticBitmap class
1798   --enable-statbox        use wxStaticBox class
1799   --enable-statline       use wxStaticLine class
1800   --enable-stattext       use wxStaticText class
1801   --enable-statusbar      use wxStatusBar class
1802   --enable-tabdialog      use wxTabControl class
1803   --enable-taskbaricon    use wxTaskBarIcon class
1804   --enable-textctrl       use wxTextCtrl class
1805   --enable-togglebtn      use wxToggleButton class
1806   --enable-toolbar        use wxToolBar class
1807   --enable-tbarnative     use native wxToolBar class
1808   --enable-treebook       use wxTreebook class
1809   --enable-toolbook       use wxToolbook class
1810   --enable-treectrl       use wxTreeCtrl class
1811   --enable-tipwindow      use wxTipWindow class
1812   --enable-popupwin       use wxPopUpWindow class
1813   --enable-commondlg      use all common dialogs
1814   --enable-aboutdlg       use wxAboutBox
1815   --enable-choicedlg      use wxChoiceDialog
1816   --enable-coldlg         use wxColourDialog
1817   --enable-filedlg        use wxFileDialog
1818   --enable-finddlg        use wxFindReplaceDialog
1819   --enable-fontdlg        use wxFontDialog
1820   --enable-dirdlg         use wxDirDialog
1821   --enable-msgdlg         use wxMessageDialog
1822   --enable-numberdlg      use wxNumberEntryDialog
1823   --enable-splash         use wxSplashScreen
1824   --enable-textdlg        use wxTextDialog
1825   --enable-tipdlg         use startup tips
1826   --enable-progressdlg    use wxProgressDialog
1827   --enable-wizarddlg      use wxWizard
1828   --enable-menus          use wxMenu/wxMenuBar/wxMenuItem classes
1829   --enable-miniframe      use wxMiniFrame class
1830   --enable-tooltips       use wxToolTip class
1831   --enable-splines        use spline drawing code
1832   --enable-mousewheel     use mousewheel
1833   --enable-validators     use wxValidator and derived classes
1834   --enable-busyinfo       use wxBusyInfo
1835   --enable-joystick       use wxJoystick
1836   --enable-metafiles      use wxMetaFile (Win32 only)
1837   --enable-dragimage      use wxDragImage
1838   --enable-accessibility  enable accessibility support
1839   --enable-palette        use wxPalette class
1840   --enable-image          use wxImage class
1841   --enable-gif            use gif images (GIF file format)
1842   --enable-pcx            use pcx images (PCX file format)
1843   --enable-tga            use tga images (TGA file format)
1844   --enable-iff            use iff images (IFF file format)
1845   --enable-pnm            use pnm images (PNM file format)
1846   --enable-xpm            use xpm images (XPM file format)
1847   --enable-ico_cur        use Windows ICO and CUR formats
1848   --enable-dccache        cache temporary wxDC objects (Win32 only)
1849   --enable-ps-in-msw      use PS printing in wxMSW (Win32 only)
1850   --enable-ownerdrawn     use owner drawn controls (Win32 and OS/2 only)
1851   --enable-uxtheme        enable support for Windows XP themed look (Win32 only)
1852   --enable-wxdib          use wxDIB class (Win32 only)
1853   --enable-autoidman      use automatic ids management
1854   --disable-largefile     omit support for large files
1855   --disable-gtktest       do not try to compile and run a test GTK+ program
1856   --disable-gtktest       Do not try to compile and run a test GTK program
1857   --disable-sdltest       Do not try to compile and run a test SDL program
1858   --enable-omf            use OMF object format (OS/2)
1859   --disable-dependency-tracking
1860                           don't use dependency tracking even if the compiler
1861                           can
1862   --disable-precomp-headers
1863                           don't use precompiled headers even if compiler can
1864
1865 Optional Packages:
1866   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1867   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1868   --without-subdirs       don't generate makefiles for samples/demos/...
1869   --with-flavour=NAME     specify a name to identify this build
1870   --with-themes=all|list  use only the specified comma-separated list of wxUniversal themes
1871   --with-gtk[=VERSION]    use GTK+, VERSION can be 2 (default), 1 or "any"
1872   --with-motif            use Motif/Lesstif
1873   --with-mac              use Mac OS X
1874   --with-cocoa            use Cocoa
1875   --with-wine             use Wine
1876   --with-msw              use MS-Windows
1877   --with-pm               use OS/2 Presentation Manager
1878   --with-mgl              use SciTech MGL
1879   --with-directfb         use DirectFB
1880   --with-microwin         use MicroWindows
1881   --with-x11              use X11
1882   --with-libpng           use libpng (PNG image format)
1883   --with-libjpeg          use libjpeg (JPEG file format)
1884   --with-libtiff          use libtiff (TIFF file format)
1885   --with-libxpm           use libxpm (XPM file format)
1886   --with-libmspack        use libmspack (CHM help files loading)
1887   --without-gtkprint      don't use GTK printing support
1888   --without-gnomeprint    don't use GNOME printing libraries
1889   --with-gnomevfs         use GNOME VFS for associating MIME types
1890   --with-hildon           use Hildon framework for Nokia 770
1891   --with-opengl           use OpenGL (or Mesa)
1892   --with-dmalloc          use dmalloc library (http://dmalloc.com/)
1893   --with-sdl              use SDL for audio on Unix
1894   --with-regex            enable support for wxRegEx class
1895   --with-zlib             use zlib for LZW compression
1896   --with-expat            enable XML support using expat parser
1897   --with-macosx-sdk=PATH  use an OS X SDK at PATH
1898   --with-macosx-version-min=VER   build binaries which require at least this OS X version
1899   --with-gtk-prefix=PFX   Prefix where GTK is installed (optional)
1900   --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)
1901   --with-x                use the X Window System
1902   --with-libiconv-prefix=DIR  search for libiconv in DIR/include and DIR/lib
1903   --with-sdl-prefix=PFX   Prefix where SDL is installed (optional)
1904   --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1905   --with-cppunit-prefix=PFX   Prefix where CppUnit is installed (optional)
1906   --with-cppunit-exec-prefix=PFX  Exec prefix where CppUnit is installed (optional)
1907
1908 Some influential environment variables:
1909   CC          C compiler command
1910   CFLAGS      C compiler flags
1911   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1912               nonstandard directory <lib dir>
1913   LIBS        libraries to pass to the linker, e.g. -l<library>
1914   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1915               you have headers in a nonstandard directory <include dir>
1916   CPP         C preprocessor
1917   CXX         C++ compiler command
1918   CXXFLAGS    C++ compiler flags
1919   PKG_CONFIG  path to pkg-config utility
1920   DIRECTFB_CFLAGS
1921               C compiler flags for DIRECTFB, overriding pkg-config
1922   DIRECTFB_LIBS
1923               linker flags for DIRECTFB, overriding pkg-config
1924   XMKMF       Path to xmkmf, Makefile generator for X Window System
1925   PANGOX_CFLAGS
1926               C compiler flags for PANGOX, overriding pkg-config
1927   PANGOX_LIBS linker flags for PANGOX, overriding pkg-config
1928   PANGOFT2_CFLAGS
1929               C compiler flags for PANGOFT2, overriding pkg-config
1930   PANGOFT2_LIBS
1931               linker flags for PANGOFT2, overriding pkg-config
1932   PANGOXFT_CFLAGS
1933               C compiler flags for PANGOXFT, overriding pkg-config
1934   PANGOXFT_LIBS
1935               linker flags for PANGOXFT, overriding pkg-config
1936   GTKPRINT_CFLAGS
1937               C compiler flags for GTKPRINT, overriding pkg-config
1938   GTKPRINT_LIBS
1939               linker flags for GTKPRINT, overriding pkg-config
1940   LIBGNOMEPRINTUI_CFLAGS
1941               C compiler flags for LIBGNOMEPRINTUI, overriding pkg-config
1942   LIBGNOMEPRINTUI_LIBS
1943               linker flags for LIBGNOMEPRINTUI, overriding pkg-config
1944   GNOMEVFS_CFLAGS
1945               C compiler flags for GNOMEVFS, overriding pkg-config
1946   GNOMEVFS_LIBS
1947               linker flags for GNOMEVFS, overriding pkg-config
1948   HILDON_CFLAGS
1949               C compiler flags for HILDON, overriding pkg-config
1950   HILDON_LIBS linker flags for HILDON, overriding pkg-config
1951   CAIRO_CFLAGS
1952               C compiler flags for CAIRO, overriding pkg-config
1953   CAIRO_LIBS  linker flags for CAIRO, overriding pkg-config
1954   GST_CFLAGS  C compiler flags for GST, overriding pkg-config
1955   GST_LIBS    linker flags for GST, overriding pkg-config
1956
1957 Use these variables to override the choices made by `configure' or to help
1958 it to find libraries and programs with nonstandard names/locations.
1959
1960 Report bugs to <wx-dev@lists.wxwidgets.org>.
1961 _ACEOF
1962 ac_status=$?
1963 fi
1964
1965 if test "$ac_init_help" = "recursive"; then
1966   # If there are subdirs, report their specific --help.
1967   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1968     test -d "$ac_dir" || continue
1969     ac_builddir=.
1970
1971 case "$ac_dir" in
1972 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1973 *)
1974   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1975   # A ".." for each directory in $ac_dir_suffix.
1976   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1977   case $ac_top_builddir_sub in
1978   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1979   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1980   esac ;;
1981 esac
1982 ac_abs_top_builddir=$ac_pwd
1983 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1984 # for backward compatibility:
1985 ac_top_builddir=$ac_top_build_prefix
1986
1987 case $srcdir in
1988   .)  # We are building in place.
1989     ac_srcdir=.
1990     ac_top_srcdir=$ac_top_builddir_sub
1991     ac_abs_top_srcdir=$ac_pwd ;;
1992   [\\/]* | ?:[\\/]* )  # Absolute name.
1993     ac_srcdir=$srcdir$ac_dir_suffix;
1994     ac_top_srcdir=$srcdir
1995     ac_abs_top_srcdir=$srcdir ;;
1996   *) # Relative name.
1997     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1998     ac_top_srcdir=$ac_top_build_prefix$srcdir
1999     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2000 esac
2001 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2002
2003     cd "$ac_dir" || { ac_status=$?; continue; }
2004     # Check for guested configure.
2005     if test -f "$ac_srcdir/configure.gnu"; then
2006       echo &&
2007       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2008     elif test -f "$ac_srcdir/configure"; then
2009       echo &&
2010       $SHELL "$ac_srcdir/configure" --help=recursive
2011     else
2012       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2013     fi || ac_status=$?
2014     cd "$ac_pwd" || { ac_status=$?; break; }
2015   done
2016 fi
2017
2018 test -n "$ac_init_help" && exit $ac_status
2019 if $ac_init_version; then
2020   cat <<\_ACEOF
2021 wxWidgets configure 2.9.0
2022 generated by GNU Autoconf 2.61
2023
2024 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
2025 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
2026 This configure script is free software; the Free Software Foundation
2027 gives unlimited permission to copy, distribute and modify it.
2028 _ACEOF
2029   exit
2030 fi
2031 cat >config.log <<_ACEOF
2032 This file contains any messages produced by compilers while
2033 running configure, to aid debugging if configure makes a mistake.
2034
2035 It was created by wxWidgets $as_me 2.9.0, which was
2036 generated by GNU Autoconf 2.61.  Invocation command line was
2037
2038   $ $0 $@
2039
2040 _ACEOF
2041 exec 5>>config.log
2042 {
2043 cat <<_ASUNAME
2044 ## --------- ##
2045 ## Platform. ##
2046 ## --------- ##
2047
2048 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2049 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2050 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2051 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2052 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2053
2054 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2055 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2056
2057 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2058 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2059 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2060 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2061 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2062 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2063 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2064
2065 _ASUNAME
2066
2067 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2068 for as_dir in $PATH
2069 do
2070   IFS=$as_save_IFS
2071   test -z "$as_dir" && as_dir=.
2072   echo "PATH: $as_dir"
2073 done
2074 IFS=$as_save_IFS
2075
2076 } >&5
2077
2078 cat >&5 <<_ACEOF
2079
2080
2081 ## ----------- ##
2082 ## Core tests. ##
2083 ## ----------- ##
2084
2085 _ACEOF
2086
2087
2088 # Keep a trace of the command line.
2089 # Strip out --no-create and --no-recursion so they do not pile up.
2090 # Strip out --silent because we don't want to record it for future runs.
2091 # Also quote any args containing shell meta-characters.
2092 # Make two passes to allow for proper duplicate-argument suppression.
2093 ac_configure_args=
2094 ac_configure_args0=
2095 ac_configure_args1=
2096 ac_must_keep_next=false
2097 for ac_pass in 1 2
2098 do
2099   for ac_arg
2100   do
2101     case $ac_arg in
2102     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2103     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2104     | -silent | --silent | --silen | --sile | --sil)
2105       continue ;;
2106     *\'*)
2107       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2108     esac
2109     case $ac_pass in
2110     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
2111     2)
2112       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
2113       if test $ac_must_keep_next = true; then
2114         ac_must_keep_next=false # Got value, back to normal.
2115       else
2116         case $ac_arg in
2117           *=* | --config-cache | -C | -disable-* | --disable-* \
2118           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2119           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2120           | -with-* | --with-* | -without-* | --without-* | --x)
2121             case "$ac_configure_args0 " in
2122               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2123             esac
2124             ;;
2125           -* ) ac_must_keep_next=true ;;
2126         esac
2127       fi
2128       ac_configure_args="$ac_configure_args '$ac_arg'"
2129       ;;
2130     esac
2131   done
2132 done
2133 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
2134 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
2135
2136 # When interrupted or exit'd, cleanup temporary files, and complete
2137 # config.log.  We remove comments because anyway the quotes in there
2138 # would cause problems or look ugly.
2139 # WARNING: Use '\'' to represent an apostrophe within the trap.
2140 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2141 trap 'exit_status=$?
2142   # Save into config.log some information that might help in debugging.
2143   {
2144     echo
2145
2146     cat <<\_ASBOX
2147 ## ---------------- ##
2148 ## Cache variables. ##
2149 ## ---------------- ##
2150 _ASBOX
2151     echo
2152     # The following way of writing the cache mishandles newlines in values,
2153 (
2154   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2155     eval ac_val=\$$ac_var
2156     case $ac_val in #(
2157     *${as_nl}*)
2158       case $ac_var in #(
2159       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
2160 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
2161       esac
2162       case $ac_var in #(
2163       _ | IFS | as_nl) ;; #(
2164       *) $as_unset $ac_var ;;
2165       esac ;;
2166     esac
2167   done
2168   (set) 2>&1 |
2169     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2170     *${as_nl}ac_space=\ *)
2171       sed -n \
2172         "s/'\''/'\''\\\\'\'''\''/g;
2173           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2174       ;; #(
2175     *)
2176       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2177       ;;
2178     esac |
2179     sort
2180 )
2181     echo
2182
2183     cat <<\_ASBOX
2184 ## ----------------- ##
2185 ## Output variables. ##
2186 ## ----------------- ##
2187 _ASBOX
2188     echo
2189     for ac_var in $ac_subst_vars
2190     do
2191       eval ac_val=\$$ac_var
2192       case $ac_val in
2193       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2194       esac
2195       echo "$ac_var='\''$ac_val'\''"
2196     done | sort
2197     echo
2198
2199     if test -n "$ac_subst_files"; then
2200       cat <<\_ASBOX
2201 ## ------------------- ##
2202 ## File substitutions. ##
2203 ## ------------------- ##
2204 _ASBOX
2205       echo
2206       for ac_var in $ac_subst_files
2207       do
2208         eval ac_val=\$$ac_var
2209         case $ac_val in
2210         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2211         esac
2212         echo "$ac_var='\''$ac_val'\''"
2213       done | sort
2214       echo
2215     fi
2216
2217     if test -s confdefs.h; then
2218       cat <<\_ASBOX
2219 ## ----------- ##
2220 ## confdefs.h. ##
2221 ## ----------- ##
2222 _ASBOX
2223       echo
2224       cat confdefs.h
2225       echo
2226     fi
2227     test "$ac_signal" != 0 &&
2228       echo "$as_me: caught signal $ac_signal"
2229     echo "$as_me: exit $exit_status"
2230   } >&5
2231   rm -f core *.core core.conftest.* &&
2232     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2233     exit $exit_status
2234 ' 0
2235 for ac_signal in 1 2 13 15; do
2236   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
2237 done
2238 ac_signal=0
2239
2240 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2241 rm -f -r conftest* confdefs.h
2242
2243 # Predefined preprocessor variables.
2244
2245 cat >>confdefs.h <<_ACEOF
2246 #define PACKAGE_NAME "$PACKAGE_NAME"
2247 _ACEOF
2248
2249
2250 cat >>confdefs.h <<_ACEOF
2251 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2252 _ACEOF
2253
2254
2255 cat >>confdefs.h <<_ACEOF
2256 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2257 _ACEOF
2258
2259
2260 cat >>confdefs.h <<_ACEOF
2261 #define PACKAGE_STRING "$PACKAGE_STRING"
2262 _ACEOF
2263
2264
2265 cat >>confdefs.h <<_ACEOF
2266 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2267 _ACEOF
2268
2269
2270 # Let the site file select an alternate cache file if it wants to.
2271 # Prefer explicitly selected file to automatically selected ones.
2272 if test -n "$CONFIG_SITE"; then
2273   set x "$CONFIG_SITE"
2274 elif test "x$prefix" != xNONE; then
2275   set x "$prefix/share/config.site" "$prefix/etc/config.site"
2276 else
2277   set x "$ac_default_prefix/share/config.site" \
2278         "$ac_default_prefix/etc/config.site"
2279 fi
2280 shift
2281 for ac_site_file
2282 do
2283   if test -r "$ac_site_file"; then
2284     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
2285 echo "$as_me: loading site script $ac_site_file" >&6;}
2286     sed 's/^/| /' "$ac_site_file" >&5
2287     . "$ac_site_file"
2288   fi
2289 done
2290
2291 if test -r "$cache_file"; then
2292   # Some versions of bash will fail to source /dev/null (special
2293   # files actually), so we avoid doing that.
2294   if test -f "$cache_file"; then
2295     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
2296 echo "$as_me: loading cache $cache_file" >&6;}
2297     case $cache_file in
2298       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2299       *)                      . "./$cache_file";;
2300     esac
2301   fi
2302 else
2303   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
2304 echo "$as_me: creating cache $cache_file" >&6;}
2305   >$cache_file
2306 fi
2307
2308 # Check that the precious variables saved in the cache have kept the same
2309 # value.
2310 ac_cache_corrupted=false
2311 for ac_var in $ac_precious_vars; do
2312   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2313   eval ac_new_set=\$ac_env_${ac_var}_set
2314   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2315   eval ac_new_val=\$ac_env_${ac_var}_value
2316   case $ac_old_set,$ac_new_set in
2317     set,)
2318       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2319 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2320       ac_cache_corrupted=: ;;
2321     ,set)
2322       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2323 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2324       ac_cache_corrupted=: ;;
2325     ,);;
2326     *)
2327       if test "x$ac_old_val" != "x$ac_new_val"; then
2328         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2329 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2330         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
2331 echo "$as_me:   former value:  $ac_old_val" >&2;}
2332         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
2333 echo "$as_me:   current value: $ac_new_val" >&2;}
2334         ac_cache_corrupted=:
2335       fi;;
2336   esac
2337   # Pass precious variables to config.status.
2338   if test "$ac_new_set" = set; then
2339     case $ac_new_val in
2340     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2341     *) ac_arg=$ac_var=$ac_new_val ;;
2342     esac
2343     case " $ac_configure_args " in
2344       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2345       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2346     esac
2347   fi
2348 done
2349 if $ac_cache_corrupted; then
2350   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2351 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2352   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2353 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2354    { (exit 1); exit 1; }; }
2355 fi
2356
2357
2358
2359
2360
2361
2362
2363
2364
2365
2366
2367
2368
2369
2370
2371
2372
2373
2374
2375
2376
2377
2378
2379
2380
2381 ac_ext=c
2382 ac_cpp='$CPP $CPPFLAGS'
2383 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2384 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2385 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2386
2387
2388
2389
2390
2391 ac_aux_dir=
2392 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2393   if test -f "$ac_dir/install-sh"; then
2394     ac_aux_dir=$ac_dir
2395     ac_install_sh="$ac_aux_dir/install-sh -c"
2396     break
2397   elif test -f "$ac_dir/install.sh"; then
2398     ac_aux_dir=$ac_dir
2399     ac_install_sh="$ac_aux_dir/install.sh -c"
2400     break
2401   elif test -f "$ac_dir/shtool"; then
2402     ac_aux_dir=$ac_dir
2403     ac_install_sh="$ac_aux_dir/shtool install -c"
2404     break
2405   fi
2406 done
2407 if test -z "$ac_aux_dir"; then
2408   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2409 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2410    { (exit 1); exit 1; }; }
2411 fi
2412
2413 # These three variables are undocumented and unsupported,
2414 # and are intended to be withdrawn in a future Autoconf release.
2415 # They can cause serious problems if a builder's source tree is in a directory
2416 # whose full name contains unusual characters.
2417 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2418 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2419 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2420
2421
2422 # Make sure we can run config.sub.
2423 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2424   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2425 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2426    { (exit 1); exit 1; }; }
2427
2428 { echo "$as_me:$LINENO: checking build system type" >&5
2429 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2430 if test "${ac_cv_build+set}" = set; then
2431   echo $ECHO_N "(cached) $ECHO_C" >&6
2432 else
2433   ac_build_alias=$build_alias
2434 test "x$ac_build_alias" = x &&
2435   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2436 test "x$ac_build_alias" = x &&
2437   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2438 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2439    { (exit 1); exit 1; }; }
2440 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2441   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2442 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2443    { (exit 1); exit 1; }; }
2444
2445 fi
2446 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2447 echo "${ECHO_T}$ac_cv_build" >&6; }
2448 case $ac_cv_build in
2449 *-*-*) ;;
2450 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2451 echo "$as_me: error: invalid value of canonical build" >&2;}
2452    { (exit 1); exit 1; }; };;
2453 esac
2454 build=$ac_cv_build
2455 ac_save_IFS=$IFS; IFS='-'
2456 set x $ac_cv_build
2457 shift
2458 build_cpu=$1
2459 build_vendor=$2
2460 shift; shift
2461 # Remember, the first character of IFS is used to create $*,
2462 # except with old shells:
2463 build_os=$*
2464 IFS=$ac_save_IFS
2465 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2466
2467
2468 { echo "$as_me:$LINENO: checking host system type" >&5
2469 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2470 if test "${ac_cv_host+set}" = set; then
2471   echo $ECHO_N "(cached) $ECHO_C" >&6
2472 else
2473   if test "x$host_alias" = x; then
2474   ac_cv_host=$ac_cv_build
2475 else
2476   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2477     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2478 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2479    { (exit 1); exit 1; }; }
2480 fi
2481
2482 fi
2483 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2484 echo "${ECHO_T}$ac_cv_host" >&6; }
2485 case $ac_cv_host in
2486 *-*-*) ;;
2487 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2488 echo "$as_me: error: invalid value of canonical host" >&2;}
2489    { (exit 1); exit 1; }; };;
2490 esac
2491 host=$ac_cv_host
2492 ac_save_IFS=$IFS; IFS='-'
2493 set x $ac_cv_host
2494 shift
2495 host_cpu=$1
2496 host_vendor=$2
2497 shift; shift
2498 # Remember, the first character of IFS is used to create $*,
2499 # except with old shells:
2500 host_os=$*
2501 IFS=$ac_save_IFS
2502 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2503
2504
2505 { echo "$as_me:$LINENO: checking target system type" >&5
2506 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2507 if test "${ac_cv_target+set}" = set; then
2508   echo $ECHO_N "(cached) $ECHO_C" >&6
2509 else
2510   if test "x$target_alias" = x; then
2511   ac_cv_target=$ac_cv_host
2512 else
2513   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2514     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2515 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2516    { (exit 1); exit 1; }; }
2517 fi
2518
2519 fi
2520 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2521 echo "${ECHO_T}$ac_cv_target" >&6; }
2522 case $ac_cv_target in
2523 *-*-*) ;;
2524 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2525 echo "$as_me: error: invalid value of canonical target" >&2;}
2526    { (exit 1); exit 1; }; };;
2527 esac
2528 target=$ac_cv_target
2529 ac_save_IFS=$IFS; IFS='-'
2530 set x $ac_cv_target
2531 shift
2532 target_cpu=$1
2533 target_vendor=$2
2534 shift; shift
2535 # Remember, the first character of IFS is used to create $*,
2536 # except with old shells:
2537 target_os=$*
2538 IFS=$ac_save_IFS
2539 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2540
2541
2542 # The aliases save the names the user supplied, while $host etc.
2543 # will get canonicalized.
2544 test -n "$target_alias" &&
2545   test "$program_prefix$program_suffix$program_transform_name" = \
2546     NONENONEs,x,x, &&
2547   program_prefix=${target_alias}-
2548
2549
2550
2551 wx_major_version_number=2
2552 wx_minor_version_number=9
2553 wx_release_number=0
2554 wx_subrelease_number=0
2555
2556 WX_RELEASE=$wx_major_version_number.$wx_minor_version_number
2557 WX_VERSION=$WX_RELEASE.$wx_release_number
2558 WX_SUBVERSION=$WX_VERSION.$wx_subrelease_number
2559
2560 WX_MSW_VERSION=$wx_major_version_number$wx_minor_version_number$wx_release_number
2561
2562
2563 wx_top_builddir="`pwd`"
2564
2565
2566
2567
2568 USE_UNIX=1
2569 USE_OS2=0
2570 USE_WIN32=0
2571 USE_DOS=0
2572 USE_BEOS=0
2573 USE_MAC=0
2574
2575 USE_AIX=
2576 USE_BSD=                            USE_DARWIN=                         USE_FREEBSD=
2577 USE_GNU=                            USE_HPUX=
2578 USE_LINUX=
2579 USE_NETBSD=
2580 USE_OPENBSD=
2581 USE_OSF=                            USE_SGI=
2582 USE_SOLARIS=                        USE_SUN=                            USE_SUNOS=                          USE_SVR4=                           USE_SYSV=                           USE_VMS=
2583 USE_ULTRIX=
2584 USE_UNIXWARE=
2585
2586 USE_ALPHA=
2587
2588 NEEDS_D_REENTRANT_FOR_R_FUNCS=0
2589
2590 ALL_TOOLKITS="COCOA GTK MAC MGL MICROWIN MOTIF MSW PM X11 DFB"
2591
2592 DEFAULT_wxUSE_COCOA=0
2593 DEFAULT_wxUSE_GTK=0
2594 DEFAULT_wxUSE_MAC=0
2595 DEFAULT_wxUSE_MGL=0
2596 DEFAULT_wxUSE_MICROWIN=0
2597 DEFAULT_wxUSE_MOTIF=0
2598 DEFAULT_wxUSE_MSW=0
2599 DEFAULT_wxUSE_PM=0
2600 DEFAULT_wxUSE_X11=0
2601 DEFAULT_wxUSE_DFB=0
2602
2603 DEFAULT_DEFAULT_wxUSE_COCOA=0
2604 DEFAULT_DEFAULT_wxUSE_GTK=0
2605 DEFAULT_DEFAULT_wxUSE_MAC=0
2606 DEFAULT_DEFAULT_wxUSE_MGL=0
2607 DEFAULT_DEFAULT_wxUSE_MICROWIN=0
2608 DEFAULT_DEFAULT_wxUSE_MOTIF=0
2609 DEFAULT_DEFAULT_wxUSE_MSW=0
2610 DEFAULT_DEFAULT_wxUSE_PM=0
2611 DEFAULT_DEFAULT_wxUSE_X11=0
2612 DEFAULT_DEFAULT_wxUSE_DFB=0
2613
2614 PROGRAM_EXT=
2615 SO_SUFFIX=so
2616 SAMPLES_RPATH_FLAG=
2617 SAMPLES_RPATH_POSTLINK=
2618
2619 DEFAULT_STD_FLAG=yes
2620
2621 case "${host}" in
2622   *-hp-hpux* )
2623     USE_HPUX=1
2624     DEFAULT_DEFAULT_wxUSE_MOTIF=1
2625     NEEDS_D_REENTRANT_FOR_R_FUNCS=1
2626     SO_SUFFIX=sl
2627     cat >>confdefs.h <<\_ACEOF
2628 #define __HPUX__ 1
2629 _ACEOF
2630
2631
2632             CPPFLAGS="-D_HPUX_SOURCE $CPPFLAGS"
2633   ;;
2634   *-*-linux* )
2635     USE_LINUX=1
2636     cat >>confdefs.h <<\_ACEOF
2637 #define __LINUX__ 1
2638 _ACEOF
2639
2640     TMP=`uname -m`
2641     if test "x$TMP" = "xalpha"; then
2642       USE_ALPHA=1
2643       cat >>confdefs.h <<\_ACEOF
2644 #define __ALPHA__ 1
2645 _ACEOF
2646
2647     fi
2648     DEFAULT_DEFAULT_wxUSE_GTK=1
2649   ;;
2650   *-*-gnu* | *-*-k*bsd*-gnu )
2651     USE_GNU=1
2652     TMP=`uname -m`
2653     if test "x$TMP" = "xalpha"; then
2654       USE_ALPHA=1
2655       cat >>confdefs.h <<\_ACEOF
2656 #define __ALPHA__ 1
2657 _ACEOF
2658
2659     fi
2660     DEFAULT_DEFAULT_wxUSE_GTK=1
2661   ;;
2662   *-*-irix5* | *-*-irix6* )
2663     USE_SGI=1
2664     USE_SVR4=1
2665     cat >>confdefs.h <<\_ACEOF
2666 #define __SGI__ 1
2667 _ACEOF
2668
2669     cat >>confdefs.h <<\_ACEOF
2670 #define __SVR4__ 1
2671 _ACEOF
2672
2673     DEFAULT_DEFAULT_wxUSE_MOTIF=1
2674   ;;
2675   *-*-solaris2* )
2676     USE_SUN=1
2677     USE_SOLARIS=1
2678     USE_SVR4=1
2679     cat >>confdefs.h <<\_ACEOF
2680 #define __SUN__ 1
2681 _ACEOF
2682
2683     cat >>confdefs.h <<\_ACEOF
2684 #define __SOLARIS__ 1
2685 _ACEOF
2686
2687     cat >>confdefs.h <<\_ACEOF
2688 #define __SVR4__ 1
2689 _ACEOF
2690
2691     DEFAULT_DEFAULT_wxUSE_MOTIF=1
2692     NEEDS_D_REENTRANT_FOR_R_FUNCS=1
2693   ;;
2694   *-*-sunos4* )
2695     USE_SUN=1
2696     USE_SUNOS=1
2697     USE_BSD=1
2698     cat >>confdefs.h <<\_ACEOF
2699 #define __SUN__ 1
2700 _ACEOF
2701
2702     cat >>confdefs.h <<\_ACEOF
2703 #define __SUNOS__ 1
2704 _ACEOF
2705
2706     cat >>confdefs.h <<\_ACEOF
2707 #define __BSD__ 1
2708 _ACEOF
2709
2710     DEFAULT_DEFAULT_wxUSE_MOTIF=1
2711   ;;
2712   *-*-freebsd*)
2713     USE_BSD=1
2714     USE_FREEBSD=1
2715     cat >>confdefs.h <<\_ACEOF
2716 #define __FREEBSD__ 1
2717 _ACEOF
2718
2719     cat >>confdefs.h <<\_ACEOF
2720 #define __BSD__ 1
2721 _ACEOF
2722
2723     DEFAULT_DEFAULT_wxUSE_GTK=1
2724   ;;
2725   *-*-openbsd*|*-*-mirbsd*)
2726     USE_BSD=1
2727     USE_OPENBSD=1
2728     cat >>confdefs.h <<\_ACEOF
2729 #define __OPENBSD__ 1
2730 _ACEOF
2731
2732     cat >>confdefs.h <<\_ACEOF
2733 #define __BSD__ 1
2734 _ACEOF
2735
2736     DEFAULT_DEFAULT_wxUSE_GTK=1
2737   ;;
2738   *-*-netbsd*)
2739     USE_BSD=1
2740     USE_NETBSD=1
2741     cat >>confdefs.h <<\_ACEOF
2742 #define __NETBSD__ 1
2743 _ACEOF
2744
2745     cat >>confdefs.h <<\_ACEOF
2746 #define __BSD__ 1
2747 _ACEOF
2748
2749     DEFAULT_DEFAULT_wxUSE_GTK=1
2750     NEEDS_D_REENTRANT_FOR_R_FUNCS=1
2751
2752             CPPFLAGS="-D_NETBSD_SOURCE -D_LIBC $CPPFLAGS"
2753   ;;
2754   *-*-osf* )
2755     USE_ALPHA=1
2756     USE_OSF=1
2757     cat >>confdefs.h <<\_ACEOF
2758 #define __ALPHA__ 1
2759 _ACEOF
2760
2761     cat >>confdefs.h <<\_ACEOF
2762 #define __OSF__ 1
2763 _ACEOF
2764
2765     DEFAULT_DEFAULT_wxUSE_MOTIF=1
2766     NEEDS_D_REENTRANT_FOR_R_FUNCS=1
2767   ;;
2768   *-*-dgux5* )
2769     USE_ALPHA=1
2770     USE_SVR4=1
2771     cat >>confdefs.h <<\_ACEOF
2772 #define __ALPHA__ 1
2773 _ACEOF
2774
2775     cat >>confdefs.h <<\_ACEOF
2776 #define __SVR4__ 1
2777 _ACEOF
2778
2779     DEFAULT_DEFAULT_wxUSE_MOTIF=1
2780   ;;
2781   *-*-sysv5* )
2782     USE_SYSV=1
2783     USE_SVR4=1
2784     cat >>confdefs.h <<\_ACEOF
2785 #define __SYSV__ 1
2786 _ACEOF
2787
2788     cat >>confdefs.h <<\_ACEOF
2789 #define __SVR4__ 1
2790 _ACEOF
2791
2792     DEFAULT_DEFAULT_wxUSE_MOTIF=1
2793   ;;
2794   *-*-aix* )
2795     USE_AIX=1
2796     USE_SYSV=1
2797     USE_SVR4=1
2798                         SO_SUFFIX=a
2799     cat >>confdefs.h <<\_ACEOF
2800 #define __AIX__ 1
2801 _ACEOF
2802
2803     cat >>confdefs.h <<\_ACEOF
2804 #define __SYSV__ 1
2805 _ACEOF
2806
2807     cat >>confdefs.h <<\_ACEOF
2808 #define __SVR4__ 1
2809 _ACEOF
2810
2811     DEFAULT_DEFAULT_wxUSE_MOTIF=1
2812   ;;
2813
2814   *-*-*UnixWare*)
2815     USE_SYSV=1
2816     USE_SVR4=1
2817     USE_UNIXWARE=1
2818     cat >>confdefs.h <<\_ACEOF
2819 #define __UNIXWARE__ 1
2820 _ACEOF
2821
2822   ;;
2823
2824   *-*-cygwin* | *-*-mingw32* )
2825                 SO_SUFFIX=dll
2826     PROGRAM_EXT=".exe"
2827     DEFAULT_DEFAULT_wxUSE_MSW=1
2828   ;;
2829
2830   *-pc-msdosdjgpp )
2831     USE_UNIX=0
2832     USE_DOS=1
2833     cat >>confdefs.h <<\_ACEOF
2834 #define __DOS__ 1
2835 _ACEOF
2836
2837     PROGRAM_EXT=".exe"
2838     DEFAULT_DEFAULT_wxUSE_MGL=1
2839   ;;
2840
2841   *-pc-os2_emx | *-pc-os2-emx )
2842     cat >>confdefs.h <<\_ACEOF
2843 #define __EMX__ 1
2844 _ACEOF
2845
2846     USE_OS2=1
2847     cat >>confdefs.h <<\_ACEOF
2848 #define __OS2__ 1
2849 _ACEOF
2850
2851     PROGRAM_EXT=".exe"
2852     DEFAULT_DEFAULT_wxUSE_PM=1
2853         CXX=gcc
2854     LDFLAGS="$LDFLAGS -Zcrtdll"
2855                         ac_executable_extensions=".exe"
2856     export ac_executable_extensions
2857             ac_save_IFS="$IFS"
2858     IFS='\\'
2859     ac_TEMP_PATH=
2860     for ac_dir in $PATH; do
2861       IFS=$ac_save_IFS
2862       if test -z "$ac_TEMP_PATH"; then
2863         ac_TEMP_PATH="$ac_dir"
2864       else
2865         ac_TEMP_PATH="$ac_TEMP_PATH/$ac_dir"
2866       fi
2867     done
2868     export PATH="$ac_TEMP_PATH"
2869     unset ac_TEMP_PATH
2870     DEFAULT_STD_FLAG=no
2871   ;;
2872
2873   *-*-darwin* )
2874         USE_BSD=1
2875     USE_DARWIN=1
2876     SO_SUFFIX=dylib
2877     cat >>confdefs.h <<\_ACEOF
2878 #define __BSD__ 1
2879 _ACEOF
2880
2881     cat >>confdefs.h <<\_ACEOF
2882 #define __DARWIN__ 1
2883 _ACEOF
2884
2885     cat >>confdefs.h <<\_ACEOF
2886 #define TARGET_CARBON 1
2887 _ACEOF
2888
2889     DEFAULT_DEFAULT_wxUSE_MAC=1
2890     DEFAULT_STD_FLAG=no
2891   ;;
2892   powerpc-apple-macos* )
2893         USE_UNIX=0
2894             ac_cv_c_bigendian=yes
2895     SO_SUFFIX=shlib
2896             DEFAULT_DEFAULT_wxUSE_MAC=1
2897     DEFAULT_STD_FLAG=no
2898   ;;
2899
2900   *-*-beos* )
2901         USE_BEOS=1
2902     cat >>confdefs.h <<\_ACEOF
2903 #define __BEOS__ 1
2904 _ACEOF
2905
2906   ;;
2907
2908   *)
2909     { echo "$as_me:$LINENO: WARNING: *** System type ${host} is unknown, assuming generic Unix and continuing nevertheless." >&5
2910 echo "$as_me: WARNING: *** System type ${host} is unknown, assuming generic Unix and continuing nevertheless." >&2;}
2911     { echo "$as_me:$LINENO: WARNING: *** Please report the build results to wx-dev@lists.wxwidgets.org." >&5
2912 echo "$as_me: WARNING: *** Please report the build results to wx-dev@lists.wxwidgets.org." >&2;}
2913
2914     DEFAULT_DEFAULT_wxUSE_X11=1
2915     DEFAULT_wxUSE_SHARED=no
2916 esac
2917
2918
2919
2920 DEFAULT_wxUSE_ALL_FEATURES=yes
2921
2922 DEFAULT_wxUSE_STD_IOSTREAM=$DEFAULT_STD_FLAG
2923 DEFAULT_wxUSE_STD_STRING=$DEFAULT_STD_FLAG
2924
2925 DEFAULT_wxUSE_DMALLOC=no
2926 DEFAULT_wxUSE_LIBGNOMEVFS=no
2927 DEFAULT_wxUSE_LIBHILDON=no
2928 DEFAULT_wxUSE_LIBMSPACK=no
2929 DEFAULT_wxUSE_LIBSDL=no
2930 DEFAULT_wxUSE_OPENGL=no
2931
2932 DEFAULT_wxUSE_ACCESSIBILITY=no
2933 DEFAULT_wxUSE_GRAPHICS_CONTEXT=no
2934 DEFAULT_wxUSE_IPV6=no
2935 DEFAULT_wxUSE_MEDIACTRL=no
2936 DEFAULT_wxUSE_TAB_DIALOG=no
2937 DEFAULT_wxUSE_GSTREAMER8=no
2938
2939 DEFAULT_wxUSE_UNICODE_UTF8=auto
2940 DEFAULT_wxUSE_UNICODE_UTF8_LOCALE=no
2941
2942 DEFAULT_wxUSE_UNIVERSAL_BINARY=no
2943
2944 DEFAULT_wxUSE_OFFICIAL_BUILD=no
2945
2946 DEFAULT_wxUSE_GTK2=yes
2947
2948 DEFAULT_wxUSE_OBJC_UNIQUIFYING=no
2949
2950
2951
2952
2953
2954           enablestring=disable
2955           defaultval=
2956           if test -z "$defaultval"; then
2957               if test x"$enablestring" = xdisable; then
2958                   defaultval=yes
2959               else
2960                   defaultval=no
2961               fi
2962           fi
2963
2964           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gui" >&5
2965 echo $ECHO_N "checking for --${enablestring:-enable}-gui... $ECHO_C" >&6; }
2966           # Check whether --enable-gui was given.
2967 if test "${enable_gui+set}" = set; then
2968   enableval=$enable_gui;
2969                           if test "$enableval" = yes; then
2970                             wx_cv_use_gui='wxUSE_GUI=yes'
2971                           else
2972                             wx_cv_use_gui='wxUSE_GUI=no'
2973                           fi
2974
2975 else
2976
2977                           wx_cv_use_gui='wxUSE_GUI=${'DEFAULT_wxUSE_GUI":-$defaultval}"
2978
2979 fi
2980
2981
2982           eval "$wx_cv_use_gui"
2983
2984           if test x"$enablestring" = xdisable; then
2985             if test $wxUSE_GUI = yes; then
2986               result=no
2987             else
2988               result=yes
2989             fi
2990           else
2991             result=$wxUSE_GUI
2992           fi
2993
2994           { echo "$as_me:$LINENO: result: $result" >&5
2995 echo "${ECHO_T}$result" >&6; }
2996
2997
2998           enablestring=
2999           defaultval=
3000           if test -z "$defaultval"; then
3001               if test x"$enablestring" = xdisable; then
3002                   defaultval=yes
3003               else
3004                   defaultval=no
3005               fi
3006           fi
3007
3008           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-monolithic" >&5
3009 echo $ECHO_N "checking for --${enablestring:-enable}-monolithic... $ECHO_C" >&6; }
3010           # Check whether --enable-monolithic was given.
3011 if test "${enable_monolithic+set}" = set; then
3012   enableval=$enable_monolithic;
3013                           if test "$enableval" = yes; then
3014                             wx_cv_use_monolithic='wxUSE_MONOLITHIC=yes'
3015                           else
3016                             wx_cv_use_monolithic='wxUSE_MONOLITHIC=no'
3017                           fi
3018
3019 else
3020
3021                           wx_cv_use_monolithic='wxUSE_MONOLITHIC=${'DEFAULT_wxUSE_MONOLITHIC":-$defaultval}"
3022
3023 fi
3024
3025
3026           eval "$wx_cv_use_monolithic"
3027
3028           if test x"$enablestring" = xdisable; then
3029             if test $wxUSE_MONOLITHIC = yes; then
3030               result=no
3031             else
3032               result=yes
3033             fi
3034           else
3035             result=$wxUSE_MONOLITHIC
3036           fi
3037
3038           { echo "$as_me:$LINENO: result: $result" >&5
3039 echo "${ECHO_T}$result" >&6; }
3040
3041
3042           enablestring=
3043           defaultval=
3044           if test -z "$defaultval"; then
3045               if test x"$enablestring" = xdisable; then
3046                   defaultval=yes
3047               else
3048                   defaultval=no
3049               fi
3050           fi
3051
3052           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-plugins" >&5
3053 echo $ECHO_N "checking for --${enablestring:-enable}-plugins... $ECHO_C" >&6; }
3054           # Check whether --enable-plugins was given.
3055 if test "${enable_plugins+set}" = set; then
3056   enableval=$enable_plugins;
3057                           if test "$enableval" = yes; then
3058                             wx_cv_use_plugins='wxUSE_PLUGINS=yes'
3059                           else
3060                             wx_cv_use_plugins='wxUSE_PLUGINS=no'
3061                           fi
3062
3063 else
3064
3065                           wx_cv_use_plugins='wxUSE_PLUGINS=${'DEFAULT_wxUSE_PLUGINS":-$defaultval}"
3066
3067 fi
3068
3069
3070           eval "$wx_cv_use_plugins"
3071
3072           if test x"$enablestring" = xdisable; then
3073             if test $wxUSE_PLUGINS = yes; then
3074               result=no
3075             else
3076               result=yes
3077             fi
3078           else
3079             result=$wxUSE_PLUGINS
3080           fi
3081
3082           { echo "$as_me:$LINENO: result: $result" >&5
3083 echo "${ECHO_T}$result" >&6; }
3084
3085
3086           withstring=without
3087           defaultval=$wxUSE_ALL_FEATURES
3088           if test -z "$defaultval"; then
3089               if test x"$withstring" = xwithout; then
3090                   defaultval=yes
3091               else
3092                   defaultval=no
3093               fi
3094           fi
3095           { echo "$as_me:$LINENO: checking for --${withstring:-with}-subdirs" >&5
3096 echo $ECHO_N "checking for --${withstring:-with}-subdirs... $ECHO_C" >&6; }
3097
3098 # Check whether --with-subdirs was given.
3099 if test "${with_subdirs+set}" = set; then
3100   withval=$with_subdirs;
3101                         if test "$withval" = yes; then
3102                           wx_cv_use_subdirs='wxWITH_SUBDIRS=yes'
3103                         else
3104                           wx_cv_use_subdirs='wxWITH_SUBDIRS=no'
3105                         fi
3106
3107 else
3108
3109                         wx_cv_use_subdirs='wxWITH_SUBDIRS=${'DEFAULT_wxWITH_SUBDIRS":-$defaultval}"
3110
3111 fi
3112
3113
3114           eval "$wx_cv_use_subdirs"
3115
3116           if test x"$withstring" = xwithout; then
3117             if test $wxWITH_SUBDIRS = yes; then
3118               result=no
3119             else
3120               result=yes
3121             fi
3122           else
3123             result=$wxWITH_SUBDIRS
3124           fi
3125
3126           { echo "$as_me:$LINENO: result: $result" >&5
3127 echo "${ECHO_T}$result" >&6; }
3128
3129
3130 # Check whether --with-flavour was given.
3131 if test "${with_flavour+set}" = set; then
3132   withval=$with_flavour; WX_FLAVOUR="$withval"
3133 fi
3134
3135
3136           enablestring=
3137           defaultval=
3138           if test -z "$defaultval"; then
3139               if test x"$enablestring" = xdisable; then
3140                   defaultval=yes
3141               else
3142                   defaultval=no
3143               fi
3144           fi
3145
3146           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-official_build" >&5
3147 echo $ECHO_N "checking for --${enablestring:-enable}-official_build... $ECHO_C" >&6; }
3148           # Check whether --enable-official_build was given.
3149 if test "${enable_official_build+set}" = set; then
3150   enableval=$enable_official_build;
3151                           if test "$enableval" = yes; then
3152                             wx_cv_use_official_build='wxUSE_OFFICIAL_BUILD=yes'
3153                           else
3154                             wx_cv_use_official_build='wxUSE_OFFICIAL_BUILD=no'
3155                           fi
3156
3157 else
3158
3159                           wx_cv_use_official_build='wxUSE_OFFICIAL_BUILD=${'DEFAULT_wxUSE_OFFICIAL_BUILD":-$defaultval}"
3160
3161 fi
3162
3163
3164           eval "$wx_cv_use_official_build"
3165
3166           if test x"$enablestring" = xdisable; then
3167             if test $wxUSE_OFFICIAL_BUILD = yes; then
3168               result=no
3169             else
3170               result=yes
3171             fi
3172           else
3173             result=$wxUSE_OFFICIAL_BUILD
3174           fi
3175
3176           { echo "$as_me:$LINENO: result: $result" >&5
3177 echo "${ECHO_T}$result" >&6; }
3178
3179 # Check whether --enable-vendor was given.
3180 if test "${enable_vendor+set}" = set; then
3181   enableval=$enable_vendor; VENDOR="$enableval"
3182 fi
3183
3184 if test "x$VENDOR" = "x"; then
3185     VENDOR="custom"
3186 fi
3187
3188
3189           enablestring=disable
3190           defaultval=
3191           if test -z "$defaultval"; then
3192               if test x"$enablestring" = xdisable; then
3193                   defaultval=yes
3194               else
3195                   defaultval=no
3196               fi
3197           fi
3198
3199           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-all-features" >&5
3200 echo $ECHO_N "checking for --${enablestring:-enable}-all-features... $ECHO_C" >&6; }
3201           # Check whether --enable-all-features was given.
3202 if test "${enable_all_features+set}" = set; then
3203   enableval=$enable_all_features;
3204                           if test "$enableval" = yes; then
3205                             wx_cv_use_all_features='wxUSE_ALL_FEATURES=yes'
3206                           else
3207                             wx_cv_use_all_features='wxUSE_ALL_FEATURES=no'
3208                           fi
3209
3210 else
3211
3212                           wx_cv_use_all_features='wxUSE_ALL_FEATURES=${'DEFAULT_wxUSE_ALL_FEATURES":-$defaultval}"
3213
3214 fi
3215
3216
3217           eval "$wx_cv_use_all_features"
3218
3219           if test x"$enablestring" = xdisable; then
3220             if test $wxUSE_ALL_FEATURES = yes; then
3221               result=no
3222             else
3223               result=yes
3224             fi
3225           else
3226             result=$wxUSE_ALL_FEATURES
3227           fi
3228
3229           { echo "$as_me:$LINENO: result: $result" >&5
3230 echo "${ECHO_T}$result" >&6; }
3231
3232
3233
3234 if test "$wxUSE_GUI" = "yes"; then
3235
3236
3237           enablestring=
3238           defaultval=
3239           if test -z "$defaultval"; then
3240               if test x"$enablestring" = xdisable; then
3241                   defaultval=yes
3242               else
3243                   defaultval=no
3244               fi
3245           fi
3246
3247           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal" >&5
3248 echo $ECHO_N "checking for --${enablestring:-enable}-universal... $ECHO_C" >&6; }
3249           # Check whether --enable-universal was given.
3250 if test "${enable_universal+set}" = set; then
3251   enableval=$enable_universal;
3252                           if test "$enableval" = yes; then
3253                             wx_cv_use_universal='wxUSE_UNIVERSAL=yes'
3254                           else
3255                             wx_cv_use_universal='wxUSE_UNIVERSAL=no'
3256                           fi
3257
3258 else
3259
3260                           wx_cv_use_universal='wxUSE_UNIVERSAL=${'DEFAULT_wxUSE_UNIVERSAL":-$defaultval}"
3261
3262 fi
3263
3264
3265           eval "$wx_cv_use_universal"
3266
3267           if test x"$enablestring" = xdisable; then
3268             if test $wxUSE_UNIVERSAL = yes; then
3269               result=no
3270             else
3271               result=yes
3272             fi
3273           else
3274             result=$wxUSE_UNIVERSAL
3275           fi
3276
3277           { echo "$as_me:$LINENO: result: $result" >&5
3278 echo "${ECHO_T}$result" >&6; }
3279
3280 if test "$wxUSE_UNIVERSAL" = "yes"; then
3281
3282 # Check whether --with-themes was given.
3283 if test "${with_themes+set}" = set; then
3284   withval=$with_themes; wxUNIV_THEMES="$withval"
3285 fi
3286
3287 fi
3288
3289
3290 # Check whether --with-gtk was given.
3291 if test "${with_gtk+set}" = set; then
3292   withval=$with_gtk; wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
3293 fi
3294
3295
3296 # Check whether --with-motif was given.
3297 if test "${with_motif+set}" = set; then
3298   withval=$with_motif; wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
3299 fi
3300
3301
3302 # Check whether --with-mac was given.
3303 if test "${with_mac+set}" = set; then
3304   withval=$with_mac; wxUSE_MAC="$withval" CACHE_MAC=1 TOOLKIT_GIVEN=1
3305 fi
3306
3307
3308 # Check whether --with-cocoa was given.
3309 if test "${with_cocoa+set}" = set; then
3310   withval=$with_cocoa; wxUSE_COCOA="$withval" CACHE_COCOA=1 TOOLKIT_GIVEN=1
3311 fi
3312
3313
3314 # Check whether --with-wine was given.
3315 if test "${with_wine+set}" = set; then
3316   withval=$with_wine; wxUSE_WINE="$withval" CACHE_WINE=1
3317 fi
3318
3319
3320 # Check whether --with-msw was given.
3321 if test "${with_msw+set}" = set; then
3322   withval=$with_msw; wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1
3323 fi
3324
3325
3326 # Check whether --with-pm was given.
3327 if test "${with_pm+set}" = set; then
3328   withval=$with_pm; wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
3329 fi
3330
3331
3332 # Check whether --with-mgl was given.
3333 if test "${with_mgl+set}" = set; then
3334   withval=$with_mgl; wxUSE_MGL="$withval" wxUSE_UNIVERSAL="yes" CACHE_MGL=1 TOOLKIT_GIVEN=1
3335 fi
3336
3337
3338 # Check whether --with-directfb was given.
3339 if test "${with_directfb+set}" = set; then
3340   withval=$with_directfb; wxUSE_DFB="$withval" wxUSE_UNIVERSAL="yes" CACHE_DFB=1 TOOLKIT_GIVEN=1
3341 fi
3342
3343
3344 # Check whether --with-microwin was given.
3345 if test "${with_microwin+set}" = set; then
3346   withval=$with_microwin; wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1
3347 fi
3348
3349
3350 # Check whether --with-x11 was given.
3351 if test "${with_x11+set}" = set; then
3352   withval=$with_x11; wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1
3353 fi
3354
3355
3356           enablestring=
3357           defaultval=
3358           if test -z "$defaultval"; then
3359               if test x"$enablestring" = xdisable; then
3360                   defaultval=yes
3361               else
3362                   defaultval=no
3363               fi
3364           fi
3365
3366           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-nanox" >&5
3367 echo $ECHO_N "checking for --${enablestring:-enable}-nanox... $ECHO_C" >&6; }
3368           # Check whether --enable-nanox was given.
3369 if test "${enable_nanox+set}" = set; then
3370   enableval=$enable_nanox;
3371                           if test "$enableval" = yes; then
3372                             wx_cv_use_nanox='wxUSE_NANOX=yes'
3373                           else
3374                             wx_cv_use_nanox='wxUSE_NANOX=no'
3375                           fi
3376
3377 else
3378
3379                           wx_cv_use_nanox='wxUSE_NANOX=${'DEFAULT_wxUSE_NANOX":-$defaultval}"
3380
3381 fi
3382
3383
3384           eval "$wx_cv_use_nanox"
3385
3386           if test x"$enablestring" = xdisable; then
3387             if test $wxUSE_NANOX = yes; then
3388               result=no
3389             else
3390               result=yes
3391             fi
3392           else
3393             result=$wxUSE_NANOX
3394           fi
3395
3396           { echo "$as_me:$LINENO: result: $result" >&5
3397 echo "${ECHO_T}$result" >&6; }
3398
3399
3400 # Check whether --enable-gtk2 was given.
3401 if test "${enable_gtk2+set}" = set; then
3402   enableval=$enable_gtk2; wxUSE_GTK2="$enableval"
3403 fi
3404
3405
3406           enablestring=
3407           defaultval=
3408           if test -z "$defaultval"; then
3409               if test x"$enablestring" = xdisable; then
3410                   defaultval=yes
3411               else
3412                   defaultval=no
3413               fi
3414           fi
3415
3416           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gpe" >&5
3417 echo $ECHO_N "checking for --${enablestring:-enable}-gpe... $ECHO_C" >&6; }
3418           # Check whether --enable-gpe was given.
3419 if test "${enable_gpe+set}" = set; then
3420   enableval=$enable_gpe;
3421                           if test "$enableval" = yes; then
3422                             wx_cv_use_gpe='wxUSE_GPE=yes'
3423                           else
3424                             wx_cv_use_gpe='wxUSE_GPE=no'
3425                           fi
3426
3427 else
3428
3429                           wx_cv_use_gpe='wxUSE_GPE=${'DEFAULT_wxUSE_GPE":-$defaultval}"
3430
3431 fi
3432
3433
3434           eval "$wx_cv_use_gpe"
3435
3436           if test x"$enablestring" = xdisable; then
3437             if test $wxUSE_GPE = yes; then
3438               result=no
3439             else
3440               result=yes
3441             fi
3442           else
3443             result=$wxUSE_GPE
3444           fi
3445
3446           { echo "$as_me:$LINENO: result: $result" >&5
3447 echo "${ECHO_T}$result" >&6; }
3448
3449
3450
3451 { echo "$as_me:$LINENO: checking for toolkit" >&5
3452 echo $ECHO_N "checking for toolkit... $ECHO_C" >&6; }
3453
3454 # In Wine, we need to default to MSW, not GTK or MOTIF
3455 if test "$wxUSE_WINE" = "yes"; then
3456     DEFAULT_DEFAULT_wxUSE_GTK=0
3457     DEFAULT_DEFAULT_wxUSE_MOTIF=0
3458     DEFAULT_DEFAULT_wxUSE_MSW=1
3459     wxUSE_SHARED=no
3460     CC=${CC:-winegcc}
3461     CXX=${CXX:-wineg++}
3462 fi
3463
3464
3465 if test "$wxUSE_GUI" = "yes"; then
3466
3467     if test "$USE_BEOS" = 1; then
3468         { { echo "$as_me:$LINENO: error: BeOS GUI is not supported yet, use --disable-gui" >&5
3469 echo "$as_me: error: BeOS GUI is not supported yet, use --disable-gui" >&2;}
3470    { (exit 1); exit 1; }; }
3471     fi
3472
3473     if test "$TOOLKIT_GIVEN" = 1; then
3474             for toolkit in $ALL_TOOLKITS; do
3475         var=wxUSE_$toolkit
3476         eval "value=\$${var}"
3477         if test "x$value" = "xno"; then
3478           eval "$var=0"
3479         elif test "x$value" != "x"; then
3480           eval "$var=1"
3481         fi
3482
3483         if test "x$value" != "x" -a "x$value" != "xyes" -a "x$value" != "xno"; then
3484           eval "wx${toolkit}_VERSION=$value"
3485         fi
3486       done
3487     else
3488             for toolkit in $ALL_TOOLKITS; do
3489         var=DEFAULT_DEFAULT_wxUSE_$toolkit
3490         eval "wxUSE_$toolkit=\$${var}"
3491       done
3492     fi
3493
3494             NUM_TOOLKITS=`expr ${wxUSE_COCOA:-0} + ${wxUSE_GTK:-0} + ${wxUSE_MAC:-0} \
3495                   + ${wxUSE_MGL:-0} + ${wxUSE_DFB:-0} + ${wxUSE_MICROWIN:-0} \
3496                   + ${wxUSE_MOTIF:-0} + ${wxUSE_MSW:-0} + ${wxUSE_X11:-0}`
3497
3498         case "${host}" in
3499       *-pc-os2_emx | *-pc-os2-emx )
3500         NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
3501     esac
3502
3503     case "$NUM_TOOLKITS" in
3504       1)
3505       ;;
3506       0)
3507         { { echo "$as_me:$LINENO: error: Please specify a toolkit -- cannot determine the default for ${host}" >&5
3508 echo "$as_me: error: Please specify a toolkit -- cannot determine the default for ${host}" >&2;}
3509    { (exit 1); exit 1; }; }
3510       ;;
3511       *)
3512         { { echo "$as_me:$LINENO: error: Please specify at most one toolkit" >&5
3513 echo "$as_me: error: Please specify at most one toolkit" >&2;}
3514    { (exit 1); exit 1; }; }
3515     esac
3516
3517     # to be removed when --disable-gtk2 isn't needed
3518     if test "x$wxUSE_GTK2" = "xyes"; then
3519         wxGTK_VERSION=2
3520     elif test "x$wxUSE_GTK2" = "xno"; then
3521         wxGTK_VERSION=1
3522     fi
3523
3524     for toolkit in $ALL_TOOLKITS; do
3525         var=wxUSE_$toolkit
3526         eval "value=\$${var}"
3527         if test "$value" = 1; then
3528           toolkit_echo=`echo $toolkit | tr '[A-Z]' '[a-z]'`
3529           { echo "$as_me:$LINENO: result: $toolkit_echo" >&5
3530 echo "${ECHO_T}$toolkit_echo" >&6; }
3531         fi
3532     done
3533 else
3534     if test "x$host_alias" != "x"; then
3535         { echo "$as_me:$LINENO: result: base ($host_alias hosted) only" >&5
3536 echo "${ECHO_T}base ($host_alias hosted) only" >&6; }
3537     else
3538         { echo "$as_me:$LINENO: result: base only" >&5
3539 echo "${ECHO_T}base only" >&6; }
3540     fi
3541 fi
3542
3543
3544
3545           { echo "$as_me:$LINENO: checking for --with-libpng" >&5
3546 echo $ECHO_N "checking for --with-libpng... $ECHO_C" >&6; }
3547
3548 # Check whether --with-libpng was given.
3549 if test "${with_libpng+set}" = set; then
3550   withval=$with_libpng;
3551                         if test "$withval" = yes; then
3552                           wx_cv_use_libpng='wxUSE_LIBPNG=yes'
3553                         elif test "$withval" = no; then
3554                           wx_cv_use_libpng='wxUSE_LIBPNG=no'
3555                         elif test "$withval" = sys; then
3556                           wx_cv_use_libpng='wxUSE_LIBPNG=sys'
3557                         elif test "$withval" = builtin; then
3558                           wx_cv_use_libpng='wxUSE_LIBPNG=builtin'
3559                         else
3560                           { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
3561 echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
3562    { (exit 1); exit 1; }; }
3563                         fi
3564
3565 else
3566
3567                         wx_cv_use_libpng='wxUSE_LIBPNG=${'DEFAULT_wxUSE_LIBPNG":-$wxUSE_ALL_FEATURES}"
3568
3569 fi
3570
3571
3572           eval "$wx_cv_use_libpng"
3573
3574           if test "$wxUSE_LIBPNG" = yes; then
3575             { echo "$as_me:$LINENO: result: yes" >&5
3576 echo "${ECHO_T}yes" >&6; }
3577           elif test "$wxUSE_LIBPNG" = no; then
3578             { echo "$as_me:$LINENO: result: no" >&5
3579 echo "${ECHO_T}no" >&6; }
3580           elif test "$wxUSE_LIBPNG" = sys; then
3581             { echo "$as_me:$LINENO: result: system version" >&5
3582 echo "${ECHO_T}system version" >&6; }
3583           elif test "$wxUSE_LIBPNG" = builtin; then
3584             { echo "$as_me:$LINENO: result: builtin version" >&5
3585 echo "${ECHO_T}builtin version" >&6; }
3586           else
3587             { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
3588 echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
3589    { (exit 1); exit 1; }; }
3590           fi
3591
3592
3593           { echo "$as_me:$LINENO: checking for --with-libjpeg" >&5
3594 echo $ECHO_N "checking for --with-libjpeg... $ECHO_C" >&6; }
3595
3596 # Check whether --with-libjpeg was given.
3597 if test "${with_libjpeg+set}" = set; then
3598   withval=$with_libjpeg;
3599                         if test "$withval" = yes; then
3600                           wx_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
3601                         elif test "$withval" = no; then
3602                           wx_cv_use_libjpeg='wxUSE_LIBJPEG=no'
3603                         elif test "$withval" = sys; then
3604                           wx_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
3605                         elif test "$withval" = builtin; then
3606                           wx_cv_use_libjpeg='wxUSE_LIBJPEG=builtin'
3607                         else
3608                           { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
3609 echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
3610    { (exit 1); exit 1; }; }
3611                         fi
3612
3613 else
3614
3615                         wx_cv_use_libjpeg='wxUSE_LIBJPEG=${'DEFAULT_wxUSE_LIBJPEG":-$wxUSE_ALL_FEATURES}"
3616
3617 fi
3618
3619
3620           eval "$wx_cv_use_libjpeg"
3621
3622           if test "$wxUSE_LIBJPEG" = yes; then
3623             { echo "$as_me:$LINENO: result: yes" >&5
3624 echo "${ECHO_T}yes" >&6; }
3625           elif test "$wxUSE_LIBJPEG" = no; then
3626             { echo "$as_me:$LINENO: result: no" >&5
3627 echo "${ECHO_T}no" >&6; }
3628           elif test "$wxUSE_LIBJPEG" = sys; then
3629             { echo "$as_me:$LINENO: result: system version" >&5
3630 echo "${ECHO_T}system version" >&6; }
3631           elif test "$wxUSE_LIBJPEG" = builtin; then
3632             { echo "$as_me:$LINENO: result: builtin version" >&5
3633 echo "${ECHO_T}builtin version" >&6; }
3634           else
3635             { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
3636 echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
3637    { (exit 1); exit 1; }; }
3638           fi
3639
3640
3641           { echo "$as_me:$LINENO: checking for --with-libtiff" >&5
3642 echo $ECHO_N "checking for --with-libtiff... $ECHO_C" >&6; }
3643
3644 # Check whether --with-libtiff was given.
3645 if test "${with_libtiff+set}" = set; then
3646   withval=$with_libtiff;
3647                         if test "$withval" = yes; then
3648                           wx_cv_use_libtiff='wxUSE_LIBTIFF=yes'
3649                         elif test "$withval" = no; then
3650                           wx_cv_use_libtiff='wxUSE_LIBTIFF=no'
3651                         elif test "$withval" = sys; then
3652                           wx_cv_use_libtiff='wxUSE_LIBTIFF=sys'
3653                         elif test "$withval" = builtin; then
3654                           wx_cv_use_libtiff='wxUSE_LIBTIFF=builtin'
3655                         else
3656                           { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
3657 echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
3658    { (exit 1); exit 1; }; }
3659                         fi
3660
3661 else
3662
3663                         wx_cv_use_libtiff='wxUSE_LIBTIFF=${'DEFAULT_wxUSE_LIBTIFF":-$wxUSE_ALL_FEATURES}"
3664
3665 fi
3666
3667
3668           eval "$wx_cv_use_libtiff"
3669
3670           if test "$wxUSE_LIBTIFF" = yes; then
3671             { echo "$as_me:$LINENO: result: yes" >&5
3672 echo "${ECHO_T}yes" >&6; }
3673           elif test "$wxUSE_LIBTIFF" = no; then
3674             { echo "$as_me:$LINENO: result: no" >&5
3675 echo "${ECHO_T}no" >&6; }
3676           elif test "$wxUSE_LIBTIFF" = sys; then
3677             { echo "$as_me:$LINENO: result: system version" >&5
3678 echo "${ECHO_T}system version" >&6; }
3679           elif test "$wxUSE_LIBTIFF" = builtin; then
3680             { echo "$as_me:$LINENO: result: builtin version" >&5
3681 echo "${ECHO_T}builtin version" >&6; }
3682           else
3683             { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
3684 echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
3685    { (exit 1); exit 1; }; }
3686           fi
3687
3688
3689           { echo "$as_me:$LINENO: checking for --with-libxpm" >&5
3690 echo $ECHO_N "checking for --with-libxpm... $ECHO_C" >&6; }
3691
3692 # Check whether --with-libxpm was given.
3693 if test "${with_libxpm+set}" = set; then
3694   withval=$with_libxpm;
3695                         if test "$withval" = yes; then
3696                           wx_cv_use_libxpm='wxUSE_LIBXPM=yes'
3697                         elif test "$withval" = no; then
3698                           wx_cv_use_libxpm='wxUSE_LIBXPM=no'
3699                         elif test "$withval" = sys; then
3700                           wx_cv_use_libxpm='wxUSE_LIBXPM=sys'
3701                         elif test "$withval" = builtin; then
3702                           wx_cv_use_libxpm='wxUSE_LIBXPM=builtin'
3703                         else
3704                           { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
3705 echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
3706    { (exit 1); exit 1; }; }
3707                         fi
3708
3709 else
3710
3711                         wx_cv_use_libxpm='wxUSE_LIBXPM=${'DEFAULT_wxUSE_LIBXPM":-$wxUSE_ALL_FEATURES}"
3712
3713 fi
3714
3715
3716           eval "$wx_cv_use_libxpm"
3717
3718           if test "$wxUSE_LIBXPM" = yes; then
3719             { echo "$as_me:$LINENO: result: yes" >&5
3720 echo "${ECHO_T}yes" >&6; }
3721           elif test "$wxUSE_LIBXPM" = no; then
3722             { echo "$as_me:$LINENO: result: no" >&5
3723 echo "${ECHO_T}no" >&6; }
3724           elif test "$wxUSE_LIBXPM" = sys; then
3725             { echo "$as_me:$LINENO: result: system version" >&5
3726 echo "${ECHO_T}system version" >&6; }
3727           elif test "$wxUSE_LIBXPM" = builtin; then
3728             { echo "$as_me:$LINENO: result: builtin version" >&5
3729 echo "${ECHO_T}builtin version" >&6; }
3730           else
3731             { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
3732 echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
3733    { (exit 1); exit 1; }; }
3734           fi
3735
3736
3737           withstring=
3738           defaultval=$wxUSE_ALL_FEATURES
3739           if test -z "$defaultval"; then
3740               if test x"$withstring" = xwithout; then
3741                   defaultval=yes
3742               else
3743                   defaultval=no
3744               fi
3745           fi
3746           { echo "$as_me:$LINENO: checking for --${withstring:-with}-libmspack" >&5
3747 echo $ECHO_N "checking for --${withstring:-with}-libmspack... $ECHO_C" >&6; }
3748
3749 # Check whether --with-libmspack was given.
3750 if test "${with_libmspack+set}" = set; then
3751   withval=$with_libmspack;
3752                         if test "$withval" = yes; then
3753                           wx_cv_use_libmspack='wxUSE_LIBMSPACK=yes'
3754                         else
3755                           wx_cv_use_libmspack='wxUSE_LIBMSPACK=no'
3756                         fi
3757
3758 else
3759
3760                         wx_cv_use_libmspack='wxUSE_LIBMSPACK=${'DEFAULT_wxUSE_LIBMSPACK":-$defaultval}"
3761
3762 fi
3763
3764
3765           eval "$wx_cv_use_libmspack"
3766
3767           if test x"$withstring" = xwithout; then
3768             if test $wxUSE_LIBMSPACK = yes; then
3769               result=no
3770             else
3771               result=yes
3772             fi
3773           else
3774             result=$wxUSE_LIBMSPACK
3775           fi
3776
3777           { echo "$as_me:$LINENO: result: $result" >&5
3778 echo "${ECHO_T}$result" >&6; }
3779
3780
3781           withstring=without
3782           defaultval=$wxUSE_ALL_FEATURES
3783           if test -z "$defaultval"; then
3784               if test x"$withstring" = xwithout; then
3785                   defaultval=yes
3786               else
3787                   defaultval=no
3788               fi
3789           fi
3790           { echo "$as_me:$LINENO: checking for --${withstring:-with}-gtkprint" >&5
3791 echo $ECHO_N "checking for --${withstring:-with}-gtkprint... $ECHO_C" >&6; }
3792
3793 # Check whether --with-gtkprint was given.
3794 if test "${with_gtkprint+set}" = set; then
3795   withval=$with_gtkprint;
3796                         if test "$withval" = yes; then
3797                           wx_cv_use_gtkprint='wxUSE_GTKPRINT=yes'
3798                         else
3799                           wx_cv_use_gtkprint='wxUSE_GTKPRINT=no'
3800                         fi
3801
3802 else
3803
3804                         wx_cv_use_gtkprint='wxUSE_GTKPRINT=${'DEFAULT_wxUSE_GTKPRINT":-$defaultval}"
3805
3806 fi
3807
3808
3809           eval "$wx_cv_use_gtkprint"
3810
3811           if test x"$withstring" = xwithout; then
3812             if test $wxUSE_GTKPRINT = yes; then
3813               result=no
3814             else
3815               result=yes
3816             fi
3817           else
3818             result=$wxUSE_GTKPRINT
3819           fi
3820
3821           { echo "$as_me:$LINENO: result: $result" >&5
3822 echo "${ECHO_T}$result" >&6; }
3823
3824
3825           withstring=without
3826           defaultval=$wxUSE_ALL_FEATURES
3827           if test -z "$defaultval"; then
3828               if test x"$withstring" = xwithout; then
3829                   defaultval=yes
3830               else
3831                   defaultval=no
3832               fi
3833           fi
3834           { echo "$as_me:$LINENO: checking for --${withstring:-with}-gnomeprint" >&5
3835 echo $ECHO_N "checking for --${withstring:-with}-gnomeprint... $ECHO_C" >&6; }
3836
3837 # Check whether --with-gnomeprint was given.
3838 if test "${with_gnomeprint+set}" = set; then
3839   withval=$with_gnomeprint;
3840                         if test "$withval" = yes; then
3841                           wx_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=yes'
3842                         else
3843                           wx_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=no'
3844                         fi
3845
3846 else
3847
3848                         wx_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=${'DEFAULT_wxUSE_LIBGNOMEPRINT":-$defaultval}"
3849
3850 fi
3851
3852
3853           eval "$wx_cv_use_gnomeprint"
3854
3855           if test x"$withstring" = xwithout; then
3856             if test $wxUSE_LIBGNOMEPRINT = yes; then
3857               result=no
3858             else
3859               result=yes
3860             fi
3861           else
3862             result=$wxUSE_LIBGNOMEPRINT
3863           fi
3864
3865           { echo "$as_me:$LINENO: result: $result" >&5
3866 echo "${ECHO_T}$result" >&6; }
3867
3868
3869           withstring=
3870           defaultval=$wxUSE_ALL_FEATURES
3871           if test -z "$defaultval"; then
3872               if test x"$withstring" = xwithout; then
3873                   defaultval=yes
3874               else
3875                   defaultval=no
3876               fi
3877           fi
3878           { echo "$as_me:$LINENO: checking for --${withstring:-with}-gnomevfs" >&5
3879 echo $ECHO_N "checking for --${withstring:-with}-gnomevfs... $ECHO_C" >&6; }
3880
3881 # Check whether --with-gnomevfs was given.
3882 if test "${with_gnomevfs+set}" = set; then
3883   withval=$with_gnomevfs;
3884                         if test "$withval" = yes; then
3885                           wx_cv_use_gnomevfs='wxUSE_LIBGNOMEVFS=yes'
3886                         else
3887                           wx_cv_use_gnomevfs='wxUSE_LIBGNOMEVFS=no'
3888                         fi
3889
3890 else
3891
3892                         wx_cv_use_gnomevfs='wxUSE_LIBGNOMEVFS=${'DEFAULT_wxUSE_LIBGNOMEVFS":-$defaultval}"
3893
3894 fi
3895
3896
3897           eval "$wx_cv_use_gnomevfs"
3898
3899           if test x"$withstring" = xwithout; then
3900             if test $wxUSE_LIBGNOMEVFS = yes; then
3901               result=no
3902             else
3903               result=yes
3904             fi
3905           else
3906             result=$wxUSE_LIBGNOMEVFS
3907           fi
3908
3909           { echo "$as_me:$LINENO: result: $result" >&5
3910 echo "${ECHO_T}$result" >&6; }
3911
3912
3913           withstring=
3914           defaultval=$wxUSE_ALL_FEATURES
3915           if test -z "$defaultval"; then
3916               if test x"$withstring" = xwithout; then
3917                   defaultval=yes
3918               else
3919                   defaultval=no
3920               fi
3921           fi
3922           { echo "$as_me:$LINENO: checking for --${withstring:-with}-hildon" >&5
3923 echo $ECHO_N "checking for --${withstring:-with}-hildon... $ECHO_C" >&6; }
3924
3925 # Check whether --with-hildon was given.
3926 if test "${with_hildon+set}" = set; then
3927   withval=$with_hildon;
3928                         if test "$withval" = yes; then
3929                           wx_cv_use_hildon='wxUSE_LIBHILDON=yes'
3930                         else
3931                           wx_cv_use_hildon='wxUSE_LIBHILDON=no'
3932                         fi
3933
3934 else
3935
3936                         wx_cv_use_hildon='wxUSE_LIBHILDON=${'DEFAULT_wxUSE_LIBHILDON":-$defaultval}"
3937
3938 fi
3939
3940
3941           eval "$wx_cv_use_hildon"
3942
3943           if test x"$withstring" = xwithout; then
3944             if test $wxUSE_LIBHILDON = yes; then
3945               result=no
3946             else
3947               result=yes
3948             fi
3949           else
3950             result=$wxUSE_LIBHILDON
3951           fi
3952
3953           { echo "$as_me:$LINENO: result: $result" >&5
3954 echo "${ECHO_T}$result" >&6; }
3955
3956
3957           withstring=
3958           defaultval=$wxUSE_ALL_FEATURES
3959           if test -z "$defaultval"; then
3960               if test x"$withstring" = xwithout; then
3961                   defaultval=yes
3962               else
3963                   defaultval=no
3964               fi
3965           fi
3966           { echo "$as_me:$LINENO: checking for --${withstring:-with}-opengl" >&5
3967 echo $ECHO_N "checking for --${withstring:-with}-opengl... $ECHO_C" >&6; }
3968
3969 # Check whether --with-opengl was given.
3970 if test "${with_opengl+set}" = set; then
3971   withval=$with_opengl;
3972                         if test "$withval" = yes; then
3973                           wx_cv_use_opengl='wxUSE_OPENGL=yes'
3974                         else
3975                           wx_cv_use_opengl='wxUSE_OPENGL=no'
3976                         fi
3977
3978 else
3979
3980                         wx_cv_use_opengl='wxUSE_OPENGL=${'DEFAULT_wxUSE_OPENGL":-$defaultval}"
3981
3982 fi
3983
3984
3985           eval "$wx_cv_use_opengl"
3986
3987           if test x"$withstring" = xwithout; then
3988             if test $wxUSE_OPENGL = yes; then
3989               result=no
3990             else
3991               result=yes
3992             fi
3993           else
3994             result=$wxUSE_OPENGL
3995           fi
3996
3997           { echo "$as_me:$LINENO: result: $result" >&5
3998 echo "${ECHO_T}$result" >&6; }
3999
4000
4001 fi
4002
4003
4004           withstring=
4005           defaultval=$wxUSE_ALL_FEATURES
4006           if test -z "$defaultval"; then
4007               if test x"$withstring" = xwithout; then
4008                   defaultval=yes
4009               else
4010                   defaultval=no
4011               fi
4012           fi
4013           { echo "$as_me:$LINENO: checking for --${withstring:-with}-dmalloc" >&5
4014 echo $ECHO_N "checking for --${withstring:-with}-dmalloc... $ECHO_C" >&6; }
4015
4016 # Check whether --with-dmalloc was given.
4017 if test "${with_dmalloc+set}" = set; then
4018   withval=$with_dmalloc;
4019                         if test "$withval" = yes; then
4020                           wx_cv_use_dmalloc='wxUSE_DMALLOC=yes'
4021                         else
4022                           wx_cv_use_dmalloc='wxUSE_DMALLOC=no'
4023                         fi
4024
4025 else
4026
4027                         wx_cv_use_dmalloc='wxUSE_DMALLOC=${'DEFAULT_wxUSE_DMALLOC":-$defaultval}"
4028
4029 fi
4030
4031
4032           eval "$wx_cv_use_dmalloc"
4033
4034           if test x"$withstring" = xwithout; then
4035             if test $wxUSE_DMALLOC = yes; then
4036               result=no
4037             else
4038               result=yes
4039             fi
4040           else
4041             result=$wxUSE_DMALLOC
4042           fi
4043
4044           { echo "$as_me:$LINENO: result: $result" >&5
4045 echo "${ECHO_T}$result" >&6; }
4046
4047
4048           withstring=
4049           defaultval=$wxUSE_ALL_FEATURES
4050           if test -z "$defaultval"; then
4051               if test x"$withstring" = xwithout; then
4052                   defaultval=yes
4053               else
4054                   defaultval=no
4055               fi
4056           fi
4057           { echo "$as_me:$LINENO: checking for --${withstring:-with}-sdl" >&5
4058 echo $ECHO_N "checking for --${withstring:-with}-sdl... $ECHO_C" >&6; }
4059
4060 # Check whether --with-sdl was given.
4061 if test "${with_sdl+set}" = set; then
4062   withval=$with_sdl;
4063                         if test "$withval" = yes; then
4064                           wx_cv_use_sdl='wxUSE_LIBSDL=yes'
4065                         else
4066                           wx_cv_use_sdl='wxUSE_LIBSDL=no'
4067                         fi
4068
4069 else
4070
4071                         wx_cv_use_sdl='wxUSE_LIBSDL=${'DEFAULT_wxUSE_LIBSDL":-$defaultval}"
4072
4073 fi
4074
4075
4076           eval "$wx_cv_use_sdl"
4077
4078           if test x"$withstring" = xwithout; then
4079             if test $wxUSE_LIBSDL = yes; then
4080               result=no
4081             else
4082               result=yes
4083             fi
4084           else
4085             result=$wxUSE_LIBSDL
4086           fi
4087
4088           { echo "$as_me:$LINENO: result: $result" >&5
4089 echo "${ECHO_T}$result" >&6; }
4090
4091
4092           { echo "$as_me:$LINENO: checking for --with-regex" >&5
4093 echo $ECHO_N "checking for --with-regex... $ECHO_C" >&6; }
4094
4095 # Check whether --with-regex was given.
4096 if test "${with_regex+set}" = set; then
4097   withval=$with_regex;
4098                         if test "$withval" = yes; then
4099                           wx_cv_use_regex='wxUSE_REGEX=yes'
4100                         elif test "$withval" = no; then
4101                           wx_cv_use_regex='wxUSE_REGEX=no'
4102                         elif test "$withval" = sys; then
4103                           wx_cv_use_regex='wxUSE_REGEX=sys'
4104                         elif test "$withval" = builtin; then
4105                           wx_cv_use_regex='wxUSE_REGEX=builtin'
4106                         else
4107                           { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
4108 echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
4109    { (exit 1); exit 1; }; }
4110                         fi
4111
4112 else
4113
4114                         wx_cv_use_regex='wxUSE_REGEX=${'DEFAULT_wxUSE_REGEX":-$wxUSE_ALL_FEATURES}"
4115
4116 fi
4117
4118
4119           eval "$wx_cv_use_regex"
4120
4121           if test "$wxUSE_REGEX" = yes; then
4122             { echo "$as_me:$LINENO: result: yes" >&5
4123 echo "${ECHO_T}yes" >&6; }
4124           elif test "$wxUSE_REGEX" = no; then
4125             { echo "$as_me:$LINENO: result: no" >&5
4126 echo "${ECHO_T}no" >&6; }
4127           elif test "$wxUSE_REGEX" = sys; then
4128             { echo "$as_me:$LINENO: result: system version" >&5
4129 echo "${ECHO_T}system version" >&6; }
4130           elif test "$wxUSE_REGEX" = builtin; then
4131             { echo "$as_me:$LINENO: result: builtin version" >&5
4132 echo "${ECHO_T}builtin version" >&6; }
4133           else
4134             { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
4135 echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
4136    { (exit 1); exit 1; }; }
4137           fi
4138
4139
4140           { echo "$as_me:$LINENO: checking for --with-zlib" >&5
4141 echo $ECHO_N "checking for --with-zlib... $ECHO_C" >&6; }
4142
4143 # Check whether --with-zlib was given.
4144 if test "${with_zlib+set}" = set; then
4145   withval=$with_zlib;
4146                         if test "$withval" = yes; then
4147                           wx_cv_use_zlib='wxUSE_ZLIB=yes'
4148                         elif test "$withval" = no; then
4149                           wx_cv_use_zlib='wxUSE_ZLIB=no'
4150                         elif test "$withval" = sys; then
4151                           wx_cv_use_zlib='wxUSE_ZLIB=sys'
4152                         elif test "$withval" = builtin; then
4153                           wx_cv_use_zlib='wxUSE_ZLIB=builtin'
4154                         else
4155                           { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
4156 echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
4157    { (exit 1); exit 1; }; }
4158                         fi
4159
4160 else
4161
4162                         wx_cv_use_zlib='wxUSE_ZLIB=${'DEFAULT_wxUSE_ZLIB":-$wxUSE_ALL_FEATURES}"
4163
4164 fi
4165
4166
4167           eval "$wx_cv_use_zlib"
4168
4169           if test "$wxUSE_ZLIB" = yes; then
4170             { echo "$as_me:$LINENO: result: yes" >&5
4171 echo "${ECHO_T}yes" >&6; }
4172           elif test "$wxUSE_ZLIB" = no; then
4173             { echo "$as_me:$LINENO: result: no" >&5
4174 echo "${ECHO_T}no" >&6; }
4175           elif test "$wxUSE_ZLIB" = sys; then
4176             { echo "$as_me:$LINENO: result: system version" >&5
4177 echo "${ECHO_T}system version" >&6; }
4178           elif test "$wxUSE_ZLIB" = builtin; then
4179             { echo "$as_me:$LINENO: result: builtin version" >&5
4180 echo "${ECHO_T}builtin version" >&6; }
4181           else
4182             { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
4183 echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
4184    { (exit 1); exit 1; }; }
4185           fi
4186
4187
4188           { echo "$as_me:$LINENO: checking for --with-expat" >&5
4189 echo $ECHO_N "checking for --with-expat... $ECHO_C" >&6; }
4190
4191 # Check whether --with-expat was given.
4192 if test "${with_expat+set}" = set; then
4193   withval=$with_expat;
4194                         if test "$withval" = yes; then
4195                           wx_cv_use_expat='wxUSE_EXPAT=yes'
4196                         elif test "$withval" = no; then
4197                           wx_cv_use_expat='wxUSE_EXPAT=no'
4198                         elif test "$withval" = sys; then
4199                           wx_cv_use_expat='wxUSE_EXPAT=sys'
4200                         elif test "$withval" = builtin; then
4201                           wx_cv_use_expat='wxUSE_EXPAT=builtin'
4202                         else
4203                           { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
4204 echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
4205    { (exit 1); exit 1; }; }
4206                         fi
4207
4208 else
4209
4210                         wx_cv_use_expat='wxUSE_EXPAT=${'DEFAULT_wxUSE_EXPAT":-$wxUSE_ALL_FEATURES}"
4211
4212 fi
4213
4214
4215           eval "$wx_cv_use_expat"
4216
4217           if test "$wxUSE_EXPAT" = yes; then
4218             { echo "$as_me:$LINENO: result: yes" >&5
4219 echo "${ECHO_T}yes" >&6; }
4220           elif test "$wxUSE_EXPAT" = no; then
4221             { echo "$as_me:$LINENO: result: no" >&5
4222 echo "${ECHO_T}no" >&6; }
4223           elif test "$wxUSE_EXPAT" = sys; then
4224             { echo "$as_me:$LINENO: result: system version" >&5
4225 echo "${ECHO_T}system version" >&6; }
4226           elif test "$wxUSE_EXPAT" = builtin; then
4227             { echo "$as_me:$LINENO: result: builtin version" >&5
4228 echo "${ECHO_T}builtin version" >&6; }
4229           else
4230             { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
4231 echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
4232    { (exit 1); exit 1; }; }
4233           fi
4234
4235
4236 { echo "$as_me:$LINENO: checking for --with-macosx-sdk" >&5
4237 echo $ECHO_N "checking for --with-macosx-sdk... $ECHO_C" >&6; }
4238
4239 # Check whether --with-macosx-sdk was given.
4240 if test "${with_macosx_sdk+set}" = set; then
4241   withval=$with_macosx_sdk;
4242         wxUSE_MACOSX_SDK=$withval
4243         wx_cv_use_macosx_sdk="wxUSE_MACOSX_SDK=$withval"
4244
4245 fi
4246
4247 { echo "$as_me:$LINENO: result: $wxUSE_MACOSX_SDK" >&5
4248 echo "${ECHO_T}$wxUSE_MACOSX_SDK" >&6; }
4249
4250 { echo "$as_me:$LINENO: checking for --with-macosx-version-min" >&5
4251 echo $ECHO_N "checking for --with-macosx-version-min... $ECHO_C" >&6; }
4252
4253 # Check whether --with-macosx-version-min was given.
4254 if test "${with_macosx_version_min+set}" = set; then
4255   withval=$with_macosx_version_min;
4256         wxUSE_MACOSX_VERSION_MIN=$withval
4257         wx_cv_use_macosx_version_min="wxUSE_MACOSX_VERSION_MIN=$withval"
4258
4259 fi
4260
4261 { echo "$as_me:$LINENO: result: $wxUSE_MACOSX_VERSION_MIN" >&5
4262 echo "${ECHO_T}$wxUSE_MACOSX_VERSION_MIN" >&6; }
4263
4264
4265
4266           enablestring=disable
4267           defaultval=
4268           if test -z "$defaultval"; then
4269               if test x"$enablestring" = xdisable; then
4270                   defaultval=yes
4271               else
4272                   defaultval=no
4273               fi
4274           fi
4275
4276           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-shared" >&5
4277 echo $ECHO_N "checking for --${enablestring:-enable}-shared... $ECHO_C" >&6; }
4278           # Check whether --enable-shared was given.
4279 if test "${enable_shared+set}" = set; then
4280   enableval=$enable_shared;
4281                           if test "$enableval" = yes; then
4282                             wx_cv_use_shared='wxUSE_SHARED=yes'
4283                           else
4284                             wx_cv_use_shared='wxUSE_SHARED=no'
4285                           fi
4286
4287 else
4288
4289                           wx_cv_use_shared='wxUSE_SHARED=${'DEFAULT_wxUSE_SHARED":-$defaultval}"
4290
4291 fi
4292
4293
4294           eval "$wx_cv_use_shared"
4295
4296           if test x"$enablestring" = xdisable; then
4297             if test $wxUSE_SHARED = yes; then
4298               result=no
4299             else
4300               result=yes
4301             fi
4302           else
4303             result=$wxUSE_SHARED
4304           fi
4305
4306           { echo "$as_me:$LINENO: result: $result" >&5
4307 echo "${ECHO_T}$result" >&6; }
4308
4309
4310           enablestring=disable
4311           defaultval=
4312           if test -z "$defaultval"; then
4313               if test x"$enablestring" = xdisable; then
4314                   defaultval=yes
4315               else
4316                   defaultval=no
4317               fi
4318           fi
4319
4320           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-optimise" >&5
4321 echo $ECHO_N "checking for --${enablestring:-enable}-optimise... $ECHO_C" >&6; }
4322           # Check whether --enable-optimise was given.
4323 if test "${enable_optimise+set}" = set; then
4324   enableval=$enable_optimise;
4325                           if test "$enableval" = yes; then
4326                             wx_cv_use_optimise='wxUSE_OPTIMISE=yes'
4327                           else
4328                             wx_cv_use_optimise='wxUSE_OPTIMISE=no'
4329                           fi
4330
4331 else
4332
4333                           wx_cv_use_optimise='wxUSE_OPTIMISE=${'DEFAULT_wxUSE_OPTIMISE":-$defaultval}"
4334
4335 fi
4336
4337
4338           eval "$wx_cv_use_optimise"
4339
4340           if test x"$enablestring" = xdisable; then
4341             if test $wxUSE_OPTIMISE = yes; then
4342               result=no
4343             else
4344               result=yes
4345             fi
4346           else
4347             result=$wxUSE_OPTIMISE
4348           fi
4349
4350           { echo "$as_me:$LINENO: result: $result" >&5
4351 echo "${ECHO_T}$result" >&6; }
4352
4353
4354           enablestring=
4355           defaultval=
4356           if test -z "$defaultval"; then
4357               if test x"$enablestring" = xdisable; then
4358                   defaultval=yes
4359               else
4360                   defaultval=no
4361               fi
4362           fi
4363
4364           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug" >&5
4365 echo $ECHO_N "checking for --${enablestring:-enable}-debug... $ECHO_C" >&6; }
4366           # Check whether --enable-debug was given.
4367 if test "${enable_debug+set}" = set; then
4368   enableval=$enable_debug;
4369                           if test "$enableval" = yes; then
4370                             wx_cv_use_debug='wxUSE_DEBUG=yes'
4371                           else
4372                             wx_cv_use_debug='wxUSE_DEBUG=no'
4373                           fi
4374
4375 else
4376
4377                           wx_cv_use_debug='wxUSE_DEBUG=${'DEFAULT_wxUSE_DEBUG":-$defaultval}"
4378
4379 fi
4380
4381
4382           eval "$wx_cv_use_debug"
4383
4384           if test x"$enablestring" = xdisable; then
4385             if test $wxUSE_DEBUG = yes; then
4386               result=no
4387             else
4388               result=yes
4389             fi
4390           else
4391             result=$wxUSE_DEBUG
4392           fi
4393
4394           { echo "$as_me:$LINENO: result: $result" >&5
4395 echo "${ECHO_T}$result" >&6; }
4396
4397
4398           enablestring=
4399           defaultval=
4400           if test -z "$defaultval"; then
4401               if test x"$enablestring" = xdisable; then
4402                   defaultval=yes
4403               else
4404                   defaultval=no
4405               fi
4406           fi
4407
4408           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stl" >&5
4409 echo $ECHO_N "checking for --${enablestring:-enable}-stl... $ECHO_C" >&6; }
4410           # Check whether --enable-stl was given.
4411 if test "${enable_stl+set}" = set; then
4412   enableval=$enable_stl;
4413                           if test "$enableval" = yes; then
4414                             wx_cv_use_stl='wxUSE_STL=yes'
4415                           else
4416                             wx_cv_use_stl='wxUSE_STL=no'
4417                           fi
4418
4419 else
4420
4421                           wx_cv_use_stl='wxUSE_STL=${'DEFAULT_wxUSE_STL":-$defaultval}"
4422
4423 fi
4424
4425
4426           eval "$wx_cv_use_stl"
4427
4428           if test x"$enablestring" = xdisable; then
4429             if test $wxUSE_STL = yes; then
4430               result=no
4431             else
4432               result=yes
4433             fi
4434           else
4435             result=$wxUSE_STL
4436           fi
4437
4438           { echo "$as_me:$LINENO: result: $result" >&5
4439 echo "${ECHO_T}$result" >&6; }
4440
4441
4442           enablestring=
4443           defaultval=
4444           if test -z "$defaultval"; then
4445               if test x"$enablestring" = xdisable; then
4446                   defaultval=yes
4447               else
4448                   defaultval=no
4449               fi
4450           fi
4451
4452           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_iostreams" >&5
4453 echo $ECHO_N "checking for --${enablestring:-enable}-std_iostreams... $ECHO_C" >&6; }
4454           # Check whether --enable-std_iostreams was given.
4455 if test "${enable_std_iostreams+set}" = set; then
4456   enableval=$enable_std_iostreams;
4457                           if test "$enableval" = yes; then
4458                             wx_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
4459                           else
4460                             wx_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
4461                           fi
4462
4463 else
4464
4465                           wx_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=${'DEFAULT_wxUSE_STD_IOSTREAM":-$defaultval}"
4466
4467 fi
4468
4469
4470           eval "$wx_cv_use_std_iostreams"
4471
4472           if test x"$enablestring" = xdisable; then
4473             if test $wxUSE_STD_IOSTREAM = yes; then
4474               result=no
4475             else
4476               result=yes
4477             fi
4478           else
4479             result=$wxUSE_STD_IOSTREAM
4480           fi
4481
4482           { echo "$as_me:$LINENO: result: $result" >&5
4483 echo "${ECHO_T}$result" >&6; }
4484
4485
4486           enablestring=
4487           defaultval=
4488           if test -z "$defaultval"; then
4489               if test x"$enablestring" = xdisable; then
4490                   defaultval=yes
4491               else
4492                   defaultval=no
4493               fi
4494           fi
4495
4496           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_string" >&5
4497 echo $ECHO_N "checking for --${enablestring:-enable}-std_string... $ECHO_C" >&6; }
4498           # Check whether --enable-std_string was given.
4499 if test "${enable_std_string+set}" = set; then
4500   enableval=$enable_std_string;
4501                           if test "$enableval" = yes; then
4502                             wx_cv_use_std_string='wxUSE_STD_STRING=yes'
4503                           else
4504                             wx_cv_use_std_string='wxUSE_STD_STRING=no'
4505                           fi
4506
4507 else
4508
4509                           wx_cv_use_std_string='wxUSE_STD_STRING=${'DEFAULT_wxUSE_STD_STRING":-$defaultval}"
4510
4511 fi
4512
4513
4514           eval "$wx_cv_use_std_string"
4515
4516           if test x"$enablestring" = xdisable; then
4517             if test $wxUSE_STD_STRING = yes; then
4518               result=no
4519             else
4520               result=yes
4521             fi
4522           else
4523             result=$wxUSE_STD_STRING
4524           fi
4525
4526           { echo "$as_me:$LINENO: result: $result" >&5
4527 echo "${ECHO_T}$result" >&6; }
4528
4529
4530           enablestring=disable
4531           defaultval=
4532           if test -z "$defaultval"; then
4533               if test x"$enablestring" = xdisable; then
4534                   defaultval=yes
4535               else
4536                   defaultval=no
4537               fi
4538           fi
4539
4540           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-unicode" >&5
4541 echo $ECHO_N "checking for --${enablestring:-enable}-unicode... $ECHO_C" >&6; }
4542           # Check whether --enable-unicode was given.
4543 if test "${enable_unicode+set}" = set; then
4544   enableval=$enable_unicode;
4545                           if test "$enableval" = yes; then
4546                             wx_cv_use_unicode='wxUSE_UNICODE=yes'
4547                           else
4548                             wx_cv_use_unicode='wxUSE_UNICODE=no'
4549                           fi
4550
4551 else
4552
4553                           wx_cv_use_unicode='wxUSE_UNICODE=${'DEFAULT_wxUSE_UNICODE":-$defaultval}"
4554
4555 fi
4556
4557
4558           eval "$wx_cv_use_unicode"
4559
4560           if test x"$enablestring" = xdisable; then
4561             if test $wxUSE_UNICODE = yes; then
4562               result=no
4563             else
4564               result=yes
4565             fi
4566           else
4567             result=$wxUSE_UNICODE
4568           fi
4569
4570           { echo "$as_me:$LINENO: result: $result" >&5
4571 echo "${ECHO_T}$result" >&6; }
4572
4573
4574           enablestring=
4575           defaultval=
4576           if test -z "$defaultval"; then
4577               if test x"$enablestring" = xdisable; then
4578                   defaultval=yes
4579               else
4580                   defaultval=no
4581               fi
4582           fi
4583
4584           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mslu" >&5
4585 echo $ECHO_N "checking for --${enablestring:-enable}-mslu... $ECHO_C" >&6; }
4586           # Check whether --enable-mslu was given.
4587 if test "${enable_mslu+set}" = set; then
4588   enableval=$enable_mslu;
4589                           if test "$enableval" = yes; then
4590                             wx_cv_use_mslu='wxUSE_UNICODE_MSLU=yes'
4591                           else
4592                             wx_cv_use_mslu='wxUSE_UNICODE_MSLU=no'
4593                           fi
4594
4595 else
4596
4597                           wx_cv_use_mslu='wxUSE_UNICODE_MSLU=${'DEFAULT_wxUSE_UNICODE_MSLU":-$defaultval}"
4598
4599 fi
4600
4601
4602           eval "$wx_cv_use_mslu"
4603
4604           if test x"$enablestring" = xdisable; then
4605             if test $wxUSE_UNICODE_MSLU = yes; then
4606               result=no
4607             else
4608               result=yes
4609             fi
4610           else
4611             result=$wxUSE_UNICODE_MSLU
4612           fi
4613
4614           { echo "$as_me:$LINENO: result: $result" >&5
4615 echo "${ECHO_T}$result" >&6; }
4616
4617
4618           enablestring=
4619           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-utf8" >&5
4620 echo $ECHO_N "checking for --${enablestring:-enable}-utf8... $ECHO_C" >&6; }
4621           # Check whether --enable-utf8 was given.
4622 if test "${enable_utf8+set}" = set; then
4623   enableval=$enable_utf8;
4624                           wx_cv_use_utf8="wxUSE_UNICODE_UTF8='$enableval'"
4625
4626 else
4627
4628                           wx_cv_use_utf8='wxUSE_UNICODE_UTF8='$DEFAULT_wxUSE_UNICODE_UTF8
4629
4630 fi
4631
4632
4633           eval "$wx_cv_use_utf8"
4634
4635           { echo "$as_me:$LINENO: result: $wxUSE_UNICODE_UTF8" >&5
4636 echo "${ECHO_T}$wxUSE_UNICODE_UTF8" >&6; }
4637
4638
4639           enablestring=
4640           defaultval=
4641           if test -z "$defaultval"; then
4642               if test x"$enablestring" = xdisable; then
4643                   defaultval=yes
4644               else
4645                   defaultval=no
4646               fi
4647           fi
4648
4649           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-utf8only" >&5
4650 echo $ECHO_N "checking for --${enablestring:-enable}-utf8only... $ECHO_C" >&6; }
4651           # Check whether --enable-utf8only was given.
4652 if test "${enable_utf8only+set}" = set; then
4653   enableval=$enable_utf8only;
4654                           if test "$enableval" = yes; then
4655                             wx_cv_use_utf8only='wxUSE_UNICODE_UTF8_LOCALE=yes'
4656                           else
4657                             wx_cv_use_utf8only='wxUSE_UNICODE_UTF8_LOCALE=no'
4658                           fi
4659
4660 else
4661
4662                           wx_cv_use_utf8only='wxUSE_UNICODE_UTF8_LOCALE=${'DEFAULT_wxUSE_UNICODE_UTF8_LOCALE":-$defaultval}"
4663
4664 fi
4665
4666
4667           eval "$wx_cv_use_utf8only"
4668
4669           if test x"$enablestring" = xdisable; then
4670             if test $wxUSE_UNICODE_UTF8_LOCALE = yes; then
4671               result=no
4672             else
4673               result=yes
4674             fi
4675           else
4676             result=$wxUSE_UNICODE_UTF8_LOCALE
4677           fi
4678
4679           { echo "$as_me:$LINENO: result: $result" >&5
4680 echo "${ECHO_T}$result" >&6; }
4681
4682
4683           enablestring=
4684           defaultval=
4685           if test -z "$defaultval"; then
4686               if test x"$enablestring" = xdisable; then
4687                   defaultval=yes
4688               else
4689                   defaultval=no
4690               fi
4691           fi
4692
4693           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-extended_rtti" >&5
4694 echo $ECHO_N "checking for --${enablestring:-enable}-extended_rtti... $ECHO_C" >&6; }
4695           # Check whether --enable-extended_rtti was given.
4696 if test "${enable_extended_rtti+set}" = set; then
4697   enableval=$enable_extended_rtti;
4698                           if test "$enableval" = yes; then
4699                             wx_cv_use_extended_rtti='wxUSE_EXTENDED_RTTI=yes'
4700                           else
4701                             wx_cv_use_extended_rtti='wxUSE_EXTENDED_RTTI=no'
4702                           fi
4703
4704 else
4705
4706                           wx_cv_use_extended_rtti='wxUSE_EXTENDED_RTTI=${'DEFAULT_wxUSE_EXTENDED_RTTI":-$defaultval}"
4707
4708 fi
4709
4710
4711           eval "$wx_cv_use_extended_rtti"
4712
4713           if test x"$enablestring" = xdisable; then
4714             if test $wxUSE_EXTENDED_RTTI = yes; then
4715               result=no
4716             else
4717               result=yes
4718             fi
4719           else
4720             result=$wxUSE_EXTENDED_RTTI
4721           fi
4722
4723           { echo "$as_me:$LINENO: result: $result" >&5
4724 echo "${ECHO_T}$result" >&6; }
4725
4726 if test "$USE_OS2" = 1; then
4727     DEFAULT_wxUSE_OMF=no
4728
4729           enablestring=
4730           defaultval=
4731           if test -z "$defaultval"; then
4732               if test x"$enablestring" = xdisable; then
4733                   defaultval=yes
4734               else
4735                   defaultval=no
4736               fi
4737           fi
4738
4739           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-omf" >&5
4740 echo $ECHO_N "checking for --${enablestring:-enable}-omf... $ECHO_C" >&6; }
4741           # Check whether --enable-omf was given.
4742 if test "${enable_omf+set}" = set; then
4743   enableval=$enable_omf;
4744                           if test "$enableval" = yes; then
4745                             wx_cv_use_omf='wxUSE_OMF=yes'
4746                           else
4747                             wx_cv_use_omf='wxUSE_OMF=no'
4748                           fi
4749
4750 else
4751
4752                           wx_cv_use_omf='wxUSE_OMF=${'DEFAULT_wxUSE_OMF":-$defaultval}"
4753
4754 fi
4755
4756
4757           eval "$wx_cv_use_omf"
4758
4759           if test x"$enablestring" = xdisable; then
4760             if test $wxUSE_OMF = yes; then
4761               result=no
4762             else
4763               result=yes
4764             fi
4765           else
4766             result=$wxUSE_OMF
4767           fi
4768
4769           { echo "$as_me:$LINENO: result: $result" >&5
4770 echo "${ECHO_T}$result" >&6; }
4771
4772 fi
4773
4774 if test "$wxUSE_DEBUG" = "yes"; then
4775     DEFAULT_wxUSE_DEBUG_FLAG=yes
4776     DEFAULT_wxUSE_DEBUG_INFO=yes
4777     BUILD=debug
4778 elif test "$wxUSE_DEBUG" = "no"; then
4779     DEFAULT_wxUSE_DEBUG_FLAG=no
4780     DEFAULT_wxUSE_DEBUG_INFO=no
4781     BUILD=release
4782 fi
4783
4784
4785           enablestring=
4786           defaultval=
4787           if test -z "$defaultval"; then
4788               if test x"$enablestring" = xdisable; then
4789                   defaultval=yes
4790               else
4791                   defaultval=no
4792               fi
4793           fi
4794
4795           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_flag" >&5
4796 echo $ECHO_N "checking for --${enablestring:-enable}-debug_flag... $ECHO_C" >&6; }
4797           # Check whether --enable-debug_flag was given.
4798 if test "${enable_debug_flag+set}" = set; then
4799   enableval=$enable_debug_flag;
4800                           if test "$enableval" = yes; then
4801                             wx_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
4802                           else
4803                             wx_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
4804                           fi
4805
4806 else
4807
4808                           wx_cv_use_debug_flag='wxUSE_DEBUG_FLAG=${'DEFAULT_wxUSE_DEBUG_FLAG":-$defaultval}"
4809
4810 fi
4811
4812
4813           eval "$wx_cv_use_debug_flag"
4814
4815           if test x"$enablestring" = xdisable; then
4816             if test $wxUSE_DEBUG_FLAG = yes; then
4817               result=no
4818             else
4819               result=yes
4820             fi
4821           else
4822             result=$wxUSE_DEBUG_FLAG
4823           fi
4824
4825           { echo "$as_me:$LINENO: result: $result" >&5
4826 echo "${ECHO_T}$result" >&6; }
4827
4828
4829           enablestring=
4830           defaultval=
4831           if test -z "$defaultval"; then
4832               if test x"$enablestring" = xdisable; then
4833                   defaultval=yes
4834               else
4835                   defaultval=no
4836               fi
4837           fi
4838
4839           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_info" >&5
4840 echo $ECHO_N "checking for --${enablestring:-enable}-debug_info... $ECHO_C" >&6; }
4841           # Check whether --enable-debug_info was given.
4842 if test "${enable_debug_info+set}" = set; then
4843   enableval=$enable_debug_info;
4844                           if test "$enableval" = yes; then
4845                             wx_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
4846                           else
4847                             wx_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
4848                           fi
4849
4850 else
4851
4852                           wx_cv_use_debug_info='wxUSE_DEBUG_INFO=${'DEFAULT_wxUSE_DEBUG_INFO":-$defaultval}"
4853
4854 fi
4855
4856
4857           eval "$wx_cv_use_debug_info"
4858
4859           if test x"$enablestring" = xdisable; then
4860             if test $wxUSE_DEBUG_INFO = yes; then
4861               result=no
4862             else
4863               result=yes
4864             fi
4865           else
4866             result=$wxUSE_DEBUG_INFO
4867           fi
4868
4869           { echo "$as_me:$LINENO: result: $result" >&5
4870 echo "${ECHO_T}$result" >&6; }
4871
4872
4873 if test "$wxUSE_DEBUG_FLAG" = "yes" -a "$wxUSE_DEBUG_INFO" = "yes"; then
4874     wxUSE_DEBUG=yes
4875     BUILD=debug
4876 fi
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_gdb" >&5
4890 echo $ECHO_N "checking for --${enablestring:-enable}-debug_gdb... $ECHO_C" >&6; }
4891           # Check whether --enable-debug_gdb was given.
4892 if test "${enable_debug_gdb+set}" = set; then
4893   enableval=$enable_debug_gdb;
4894                           if test "$enableval" = yes; then
4895                             wx_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
4896                           else
4897                             wx_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
4898                           fi
4899
4900 else
4901
4902                           wx_cv_use_debug_gdb='wxUSE_DEBUG_GDB=${'DEFAULT_wxUSE_DEBUG_GDB":-$defaultval}"
4903
4904 fi
4905
4906
4907           eval "$wx_cv_use_debug_gdb"
4908
4909           if test x"$enablestring" = xdisable; then
4910             if test $wxUSE_DEBUG_GDB = yes; then
4911               result=no
4912             else
4913               result=yes
4914             fi
4915           else
4916             result=$wxUSE_DEBUG_GDB
4917           fi
4918
4919           { echo "$as_me:$LINENO: result: $result" >&5
4920 echo "${ECHO_T}$result" >&6; }
4921
4922
4923           enablestring=
4924           defaultval=
4925           if test -z "$defaultval"; then
4926               if test x"$enablestring" = xdisable; then
4927                   defaultval=yes
4928               else
4929                   defaultval=no
4930               fi
4931           fi
4932
4933           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_cntxt" >&5
4934 echo $ECHO_N "checking for --${enablestring:-enable}-debug_cntxt... $ECHO_C" >&6; }
4935           # Check whether --enable-debug_cntxt was given.
4936 if test "${enable_debug_cntxt+set}" = set; then
4937   enableval=$enable_debug_cntxt;
4938                           if test "$enableval" = yes; then
4939                             wx_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
4940                           else
4941                             wx_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
4942                           fi
4943
4944 else
4945
4946                           wx_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=${'DEFAULT_wxUSE_DEBUG_CONTEXT":-$defaultval}"
4947
4948 fi
4949
4950
4951           eval "$wx_cv_use_debug_cntxt"
4952
4953           if test x"$enablestring" = xdisable; then
4954             if test $wxUSE_DEBUG_CONTEXT = yes; then
4955               result=no
4956             else
4957               result=yes
4958             fi
4959           else
4960             result=$wxUSE_DEBUG_CONTEXT
4961           fi
4962
4963           { echo "$as_me:$LINENO: result: $result" >&5
4964 echo "${ECHO_T}$result" >&6; }
4965
4966
4967           enablestring=
4968           defaultval=
4969           if test -z "$defaultval"; then
4970               if test x"$enablestring" = xdisable; then
4971                   defaultval=yes
4972               else
4973                   defaultval=no
4974               fi
4975           fi
4976
4977           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mem_tracing" >&5
4978 echo $ECHO_N "checking for --${enablestring:-enable}-mem_tracing... $ECHO_C" >&6; }
4979           # Check whether --enable-mem_tracing was given.
4980 if test "${enable_mem_tracing+set}" = set; then
4981   enableval=$enable_mem_tracing;
4982                           if test "$enableval" = yes; then
4983                             wx_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
4984                           else
4985                             wx_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
4986                           fi
4987
4988 else
4989
4990                           wx_cv_use_mem_tracing='wxUSE_MEM_TRACING=${'DEFAULT_wxUSE_MEM_TRACING":-$defaultval}"
4991
4992 fi
4993
4994
4995           eval "$wx_cv_use_mem_tracing"
4996
4997           if test x"$enablestring" = xdisable; then
4998             if test $wxUSE_MEM_TRACING = yes; then
4999               result=no
5000             else
5001               result=yes
5002             fi
5003           else
5004             result=$wxUSE_MEM_TRACING
5005           fi
5006
5007           { echo "$as_me:$LINENO: result: $result" >&5
5008 echo "${ECHO_T}$result" >&6; }
5009
5010
5011           enablestring=
5012           defaultval=
5013           if test -z "$defaultval"; then
5014               if test x"$enablestring" = xdisable; then
5015                   defaultval=yes
5016               else
5017                   defaultval=no
5018               fi
5019           fi
5020
5021           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-profile" >&5
5022 echo $ECHO_N "checking for --${enablestring:-enable}-profile... $ECHO_C" >&6; }
5023           # Check whether --enable-profile was given.
5024 if test "${enable_profile+set}" = set; then
5025   enableval=$enable_profile;
5026                           if test "$enableval" = yes; then
5027                             wx_cv_use_profile='wxUSE_PROFILE=yes'
5028                           else
5029                             wx_cv_use_profile='wxUSE_PROFILE=no'
5030                           fi
5031
5032 else
5033
5034                           wx_cv_use_profile='wxUSE_PROFILE=${'DEFAULT_wxUSE_PROFILE":-$defaultval}"
5035
5036 fi
5037
5038
5039           eval "$wx_cv_use_profile"
5040
5041           if test x"$enablestring" = xdisable; then
5042             if test $wxUSE_PROFILE = yes; then
5043               result=no
5044             else
5045               result=yes
5046             fi
5047           else
5048             result=$wxUSE_PROFILE
5049           fi
5050
5051           { echo "$as_me:$LINENO: result: $result" >&5
5052 echo "${ECHO_T}$result" >&6; }
5053
5054
5055           enablestring=
5056           defaultval=
5057           if test -z "$defaultval"; then
5058               if test x"$enablestring" = xdisable; then
5059                   defaultval=yes
5060               else
5061                   defaultval=no
5062               fi
5063           fi
5064
5065           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_rtti" >&5
5066 echo $ECHO_N "checking for --${enablestring:-enable}-no_rtti... $ECHO_C" >&6; }
5067           # Check whether --enable-no_rtti was given.
5068 if test "${enable_no_rtti+set}" = set; then
5069   enableval=$enable_no_rtti;
5070                           if test "$enableval" = yes; then
5071                             wx_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
5072                           else
5073                             wx_cv_use_no_rtti='wxUSE_NO_RTTI=no'
5074                           fi
5075
5076 else
5077
5078                           wx_cv_use_no_rtti='wxUSE_NO_RTTI=${'DEFAULT_wxUSE_NO_RTTI":-$defaultval}"
5079
5080 fi
5081
5082
5083           eval "$wx_cv_use_no_rtti"
5084
5085           if test x"$enablestring" = xdisable; then
5086             if test $wxUSE_NO_RTTI = yes; then
5087               result=no
5088             else
5089               result=yes
5090             fi
5091           else
5092             result=$wxUSE_NO_RTTI
5093           fi
5094
5095           { echo "$as_me:$LINENO: result: $result" >&5
5096 echo "${ECHO_T}$result" >&6; }
5097
5098
5099           enablestring=
5100           defaultval=
5101           if test -z "$defaultval"; then
5102               if test x"$enablestring" = xdisable; then
5103                   defaultval=yes
5104               else
5105                   defaultval=no
5106               fi
5107           fi
5108
5109           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_exceptions" >&5
5110 echo $ECHO_N "checking for --${enablestring:-enable}-no_exceptions... $ECHO_C" >&6; }
5111           # Check whether --enable-no_exceptions was given.
5112 if test "${enable_no_exceptions+set}" = set; then
5113   enableval=$enable_no_exceptions;
5114                           if test "$enableval" = yes; then
5115                             wx_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
5116                           else
5117                             wx_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
5118                           fi
5119
5120 else
5121
5122                           wx_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=${'DEFAULT_wxUSE_NO_EXCEPTIONS":-$defaultval}"
5123
5124 fi
5125
5126
5127           eval "$wx_cv_use_no_exceptions"
5128
5129           if test x"$enablestring" = xdisable; then
5130             if test $wxUSE_NO_EXCEPTIONS = yes; then
5131               result=no
5132             else
5133               result=yes
5134             fi
5135           else
5136             result=$wxUSE_NO_EXCEPTIONS
5137           fi
5138
5139           { echo "$as_me:$LINENO: result: $result" >&5
5140 echo "${ECHO_T}$result" >&6; }
5141
5142
5143           enablestring=
5144           defaultval=
5145           if test -z "$defaultval"; then
5146               if test x"$enablestring" = xdisable; then
5147                   defaultval=yes
5148               else
5149                   defaultval=no
5150               fi
5151           fi
5152
5153           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-permissive" >&5
5154 echo $ECHO_N "checking for --${enablestring:-enable}-permissive... $ECHO_C" >&6; }
5155           # Check whether --enable-permissive was given.
5156 if test "${enable_permissive+set}" = set; then
5157   enableval=$enable_permissive;
5158                           if test "$enableval" = yes; then
5159                             wx_cv_use_permissive='wxUSE_PERMISSIVE=yes'
5160                           else
5161                             wx_cv_use_permissive='wxUSE_PERMISSIVE=no'
5162                           fi
5163
5164 else
5165
5166                           wx_cv_use_permissive='wxUSE_PERMISSIVE=${'DEFAULT_wxUSE_PERMISSIVE":-$defaultval}"
5167
5168 fi
5169
5170
5171           eval "$wx_cv_use_permissive"
5172
5173           if test x"$enablestring" = xdisable; then
5174             if test $wxUSE_PERMISSIVE = yes; then
5175               result=no
5176             else
5177               result=yes
5178             fi
5179           else
5180             result=$wxUSE_PERMISSIVE
5181           fi
5182
5183           { echo "$as_me:$LINENO: result: $result" >&5
5184 echo "${ECHO_T}$result" >&6; }
5185
5186
5187           enablestring=
5188           defaultval=
5189           if test -z "$defaultval"; then
5190               if test x"$enablestring" = xdisable; then
5191                   defaultval=yes
5192               else
5193                   defaultval=no
5194               fi
5195           fi
5196
5197           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_deps" >&5
5198 echo $ECHO_N "checking for --${enablestring:-enable}-no_deps... $ECHO_C" >&6; }
5199           # Check whether --enable-no_deps was given.
5200 if test "${enable_no_deps+set}" = set; then
5201   enableval=$enable_no_deps;
5202                           if test "$enableval" = yes; then
5203                             wx_cv_use_no_deps='wxUSE_NO_DEPS=yes'
5204                           else
5205                             wx_cv_use_no_deps='wxUSE_NO_DEPS=no'
5206                           fi
5207
5208 else
5209
5210                           wx_cv_use_no_deps='wxUSE_NO_DEPS=${'DEFAULT_wxUSE_NO_DEPS":-$defaultval}"
5211
5212 fi
5213
5214
5215           eval "$wx_cv_use_no_deps"
5216
5217           if test x"$enablestring" = xdisable; then
5218             if test $wxUSE_NO_DEPS = yes; then
5219               result=no
5220             else
5221               result=yes
5222             fi
5223           else
5224             result=$wxUSE_NO_DEPS
5225           fi
5226
5227           { echo "$as_me:$LINENO: result: $result" >&5
5228 echo "${ECHO_T}$result" >&6; }
5229
5230
5231           enablestring=disable
5232           defaultval=
5233           if test -z "$defaultval"; then
5234               if test x"$enablestring" = xdisable; then
5235                   defaultval=yes
5236               else
5237                   defaultval=no
5238               fi
5239           fi
5240
5241           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-vararg_macros" >&5
5242 echo $ECHO_N "checking for --${enablestring:-enable}-vararg_macros... $ECHO_C" >&6; }
5243           # Check whether --enable-vararg_macros was given.
5244 if test "${enable_vararg_macros+set}" = set; then
5245   enableval=$enable_vararg_macros;
5246                           if test "$enableval" = yes; then
5247                             wx_cv_use_vararg_macros='wxUSE_VARARG_MACROS=yes'
5248                           else
5249                             wx_cv_use_vararg_macros='wxUSE_VARARG_MACROS=no'
5250                           fi
5251
5252 else
5253
5254                           wx_cv_use_vararg_macros='wxUSE_VARARG_MACROS=${'DEFAULT_wxUSE_VARARG_MACROS":-$defaultval}"
5255
5256 fi
5257
5258
5259           eval "$wx_cv_use_vararg_macros"
5260
5261           if test x"$enablestring" = xdisable; then
5262             if test $wxUSE_VARARG_MACROS = yes; then
5263               result=no
5264             else
5265               result=yes
5266             fi
5267           else
5268             result=$wxUSE_VARARG_MACROS
5269           fi
5270
5271           { echo "$as_me:$LINENO: result: $result" >&5
5272 echo "${ECHO_T}$result" >&6; }
5273
5274
5275           enablestring=
5276           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal_binary" >&5
5277 echo $ECHO_N "checking for --${enablestring:-enable}-universal_binary... $ECHO_C" >&6; }
5278           # Check whether --enable-universal_binary was given.
5279 if test "${enable_universal_binary+set}" = set; then
5280   enableval=$enable_universal_binary;
5281                           wx_cv_use_universal_binary="wxUSE_UNIVERSAL_BINARY='$enableval'"
5282
5283 else
5284
5285                           wx_cv_use_universal_binary='wxUSE_UNIVERSAL_BINARY='$DEFAULT_wxUSE_UNIVERSAL_BINARY
5286
5287 fi
5288
5289
5290           eval "$wx_cv_use_universal_binary"
5291
5292           { echo "$as_me:$LINENO: result: $wxUSE_UNIVERSAL_BINARY" >&5
5293 echo "${ECHO_T}$wxUSE_UNIVERSAL_BINARY" >&6; }
5294
5295
5296
5297           enablestring=
5298           defaultval=
5299           if test -z "$defaultval"; then
5300               if test x"$enablestring" = xdisable; then
5301                   defaultval=yes
5302               else
5303                   defaultval=no
5304               fi
5305           fi
5306
5307           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat26" >&5
5308 echo $ECHO_N "checking for --${enablestring:-enable}-compat26... $ECHO_C" >&6; }
5309           # Check whether --enable-compat26 was given.
5310 if test "${enable_compat26+set}" = set; then
5311   enableval=$enable_compat26;
5312                           if test "$enableval" = yes; then
5313                             wx_cv_use_compat26='WXWIN_COMPATIBILITY_2_6=yes'
5314                           else
5315                             wx_cv_use_compat26='WXWIN_COMPATIBILITY_2_6=no'
5316                           fi
5317
5318 else
5319
5320                           wx_cv_use_compat26='WXWIN_COMPATIBILITY_2_6=${'DEFAULT_WXWIN_COMPATIBILITY_2_6":-$defaultval}"
5321
5322 fi
5323
5324
5325           eval "$wx_cv_use_compat26"
5326
5327           if test x"$enablestring" = xdisable; then
5328             if test $WXWIN_COMPATIBILITY_2_6 = yes; then
5329               result=no
5330             else
5331               result=yes
5332             fi
5333           else
5334             result=$WXWIN_COMPATIBILITY_2_6
5335           fi
5336
5337           { echo "$as_me:$LINENO: result: $result" >&5
5338 echo "${ECHO_T}$result" >&6; }
5339
5340
5341           enablestring=disable
5342           defaultval=
5343           if test -z "$defaultval"; then
5344               if test x"$enablestring" = xdisable; then
5345                   defaultval=yes
5346               else
5347                   defaultval=no
5348               fi
5349           fi
5350
5351           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat28" >&5
5352 echo $ECHO_N "checking for --${enablestring:-enable}-compat28... $ECHO_C" >&6; }
5353           # Check whether --enable-compat28 was given.
5354 if test "${enable_compat28+set}" = set; then
5355   enableval=$enable_compat28;
5356                           if test "$enableval" = yes; then
5357                             wx_cv_use_compat28='WXWIN_COMPATIBILITY_2_8=yes'
5358                           else
5359                             wx_cv_use_compat28='WXWIN_COMPATIBILITY_2_8=no'
5360                           fi
5361
5362 else
5363
5364                           wx_cv_use_compat28='WXWIN_COMPATIBILITY_2_8=${'DEFAULT_WXWIN_COMPATIBILITY_2_8":-$defaultval}"
5365
5366 fi
5367
5368
5369           eval "$wx_cv_use_compat28"
5370
5371           if test x"$enablestring" = xdisable; then
5372             if test $WXWIN_COMPATIBILITY_2_8 = yes; then
5373               result=no
5374             else
5375               result=yes
5376             fi
5377           else
5378             result=$WXWIN_COMPATIBILITY_2_8
5379           fi
5380
5381           { echo "$as_me:$LINENO: result: $result" >&5
5382 echo "${ECHO_T}$result" >&6; }
5383
5384
5385
5386           enablestring=disable
5387           defaultval=
5388           if test -z "$defaultval"; then
5389               if test x"$enablestring" = xdisable; then
5390                   defaultval=yes
5391               else
5392                   defaultval=no
5393               fi
5394           fi
5395
5396           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-rpath" >&5
5397 echo $ECHO_N "checking for --${enablestring:-enable}-rpath... $ECHO_C" >&6; }
5398           # Check whether --enable-rpath was given.
5399 if test "${enable_rpath+set}" = set; then
5400   enableval=$enable_rpath;
5401                           if test "$enableval" = yes; then
5402                             wx_cv_use_rpath='wxUSE_RPATH=yes'
5403                           else
5404                             wx_cv_use_rpath='wxUSE_RPATH=no'
5405                           fi
5406
5407 else
5408
5409                           wx_cv_use_rpath='wxUSE_RPATH=${'DEFAULT_wxUSE_RPATH":-$defaultval}"
5410
5411 fi
5412
5413
5414           eval "$wx_cv_use_rpath"
5415
5416           if test x"$enablestring" = xdisable; then
5417             if test $wxUSE_RPATH = yes; then
5418               result=no
5419             else
5420               result=yes
5421             fi
5422           else
5423             result=$wxUSE_RPATH
5424           fi
5425
5426           { echo "$as_me:$LINENO: result: $result" >&5
5427 echo "${ECHO_T}$result" >&6; }
5428
5429
5430
5431           enablestring=
5432           defaultval=
5433           if test -z "$defaultval"; then
5434               if test x"$enablestring" = xdisable; then
5435                   defaultval=yes
5436               else
5437                   defaultval=no
5438               fi
5439           fi
5440
5441           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-objc_uniquifying" >&5
5442 echo $ECHO_N "checking for --${enablestring:-enable}-objc_uniquifying... $ECHO_C" >&6; }
5443           # Check whether --enable-objc_uniquifying was given.
5444 if test "${enable_objc_uniquifying+set}" = set; then
5445   enableval=$enable_objc_uniquifying;
5446                           if test "$enableval" = yes; then
5447                             wx_cv_use_objc_uniquifying='wxUSE_OBJC_UNIQUIFYING=yes'
5448                           else
5449                             wx_cv_use_objc_uniquifying='wxUSE_OBJC_UNIQUIFYING=no'
5450                           fi
5451
5452 else
5453
5454                           wx_cv_use_objc_uniquifying='wxUSE_OBJC_UNIQUIFYING=${'DEFAULT_wxUSE_OBJC_UNIQUIFYING":-$defaultval}"
5455
5456 fi
5457
5458
5459           eval "$wx_cv_use_objc_uniquifying"
5460
5461           if test x"$enablestring" = xdisable; then
5462             if test $wxUSE_OBJC_UNIQUIFYING = yes; then
5463               result=no
5464             else
5465               result=yes
5466             fi
5467           else
5468             result=$wxUSE_OBJC_UNIQUIFYING
5469           fi
5470
5471           { echo "$as_me:$LINENO: result: $result" >&5
5472 echo "${ECHO_T}$result" >&6; }
5473
5474
5475
5476           enablestring=disable
5477           defaultval=
5478           if test -z "$defaultval"; then
5479               if test x"$enablestring" = xdisable; then
5480                   defaultval=yes
5481               else
5482                   defaultval=no
5483               fi
5484           fi
5485
5486           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-visibility" >&5
5487 echo $ECHO_N "checking for --${enablestring:-enable}-visibility... $ECHO_C" >&6; }
5488           # Check whether --enable-visibility was given.
5489 if test "${enable_visibility+set}" = set; then
5490   enableval=$enable_visibility;
5491                           if test "$enableval" = yes; then
5492                             wx_cv_use_visibility='wxUSE_VISIBILITY=yes'
5493                           else
5494                             wx_cv_use_visibility='wxUSE_VISIBILITY=no'
5495                           fi
5496
5497 else
5498
5499                           wx_cv_use_visibility='wxUSE_VISIBILITY=${'DEFAULT_wxUSE_VISIBILITY":-$defaultval}"
5500
5501 fi
5502
5503
5504           eval "$wx_cv_use_visibility"
5505
5506           if test x"$enablestring" = xdisable; then
5507             if test $wxUSE_VISIBILITY = yes; then
5508               result=no
5509             else
5510               result=yes
5511             fi
5512           else
5513             result=$wxUSE_VISIBILITY
5514           fi
5515
5516           { echo "$as_me:$LINENO: result: $result" >&5
5517 echo "${ECHO_T}$result" >&6; }
5518
5519
5520
5521
5522           enablestring=
5523           defaultval=$wxUSE_ALL_FEATURES
5524           if test -z "$defaultval"; then
5525               if test x"$enablestring" = xdisable; then
5526                   defaultval=yes
5527               else
5528                   defaultval=no
5529               fi
5530           fi
5531
5532           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-intl" >&5
5533 echo $ECHO_N "checking for --${enablestring:-enable}-intl... $ECHO_C" >&6; }
5534           # Check whether --enable-intl was given.
5535 if test "${enable_intl+set}" = set; then
5536   enableval=$enable_intl;
5537                           if test "$enableval" = yes; then
5538                             wx_cv_use_intl='wxUSE_INTL=yes'
5539                           else
5540                             wx_cv_use_intl='wxUSE_INTL=no'
5541                           fi
5542
5543 else
5544
5545                           wx_cv_use_intl='wxUSE_INTL=${'DEFAULT_wxUSE_INTL":-$defaultval}"
5546
5547 fi
5548
5549
5550           eval "$wx_cv_use_intl"
5551
5552           if test x"$enablestring" = xdisable; then
5553             if test $wxUSE_INTL = yes; then
5554               result=no
5555             else
5556               result=yes
5557             fi
5558           else
5559             result=$wxUSE_INTL
5560           fi
5561
5562           { echo "$as_me:$LINENO: result: $result" >&5
5563 echo "${ECHO_T}$result" >&6; }
5564
5565
5566           enablestring=
5567           defaultval=$wxUSE_ALL_FEATURES
5568           if test -z "$defaultval"; then
5569               if test x"$enablestring" = xdisable; then
5570                   defaultval=yes
5571               else
5572                   defaultval=no
5573               fi
5574           fi
5575
5576           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-config" >&5
5577 echo $ECHO_N "checking for --${enablestring:-enable}-config... $ECHO_C" >&6; }
5578           # Check whether --enable-config was given.
5579 if test "${enable_config+set}" = set; then
5580   enableval=$enable_config;
5581                           if test "$enableval" = yes; then
5582                             wx_cv_use_config='wxUSE_CONFIG=yes'
5583                           else
5584                             wx_cv_use_config='wxUSE_CONFIG=no'
5585                           fi
5586
5587 else
5588
5589                           wx_cv_use_config='wxUSE_CONFIG=${'DEFAULT_wxUSE_CONFIG":-$defaultval}"
5590
5591 fi
5592
5593
5594           eval "$wx_cv_use_config"
5595
5596           if test x"$enablestring" = xdisable; then
5597             if test $wxUSE_CONFIG = yes; then
5598               result=no
5599             else
5600               result=yes
5601             fi
5602           else
5603             result=$wxUSE_CONFIG
5604           fi
5605
5606           { echo "$as_me:$LINENO: result: $result" >&5
5607 echo "${ECHO_T}$result" >&6; }
5608
5609
5610
5611           enablestring=
5612           defaultval=$wxUSE_ALL_FEATURES
5613           if test -z "$defaultval"; then
5614               if test x"$enablestring" = xdisable; then
5615                   defaultval=yes
5616               else
5617                   defaultval=no
5618               fi
5619           fi
5620
5621           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocols" >&5
5622 echo $ECHO_N "checking for --${enablestring:-enable}-protocols... $ECHO_C" >&6; }
5623           # Check whether --enable-protocols was given.
5624 if test "${enable_protocols+set}" = set; then
5625   enableval=$enable_protocols;
5626                           if test "$enableval" = yes; then
5627                             wx_cv_use_protocols='wxUSE_PROTOCOL=yes'
5628                           else
5629                             wx_cv_use_protocols='wxUSE_PROTOCOL=no'
5630                           fi
5631
5632 else
5633
5634                           wx_cv_use_protocols='wxUSE_PROTOCOL=${'DEFAULT_wxUSE_PROTOCOL":-$defaultval}"
5635
5636 fi
5637
5638
5639           eval "$wx_cv_use_protocols"
5640
5641           if test x"$enablestring" = xdisable; then
5642             if test $wxUSE_PROTOCOL = yes; then
5643               result=no
5644             else
5645               result=yes
5646             fi
5647           else
5648             result=$wxUSE_PROTOCOL
5649           fi
5650
5651           { echo "$as_me:$LINENO: result: $result" >&5
5652 echo "${ECHO_T}$result" >&6; }
5653
5654
5655           enablestring=
5656           defaultval=$wxUSE_ALL_FEATURES
5657           if test -z "$defaultval"; then
5658               if test x"$enablestring" = xdisable; then
5659                   defaultval=yes
5660               else
5661                   defaultval=no
5662               fi
5663           fi
5664
5665           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ftp" >&5
5666 echo $ECHO_N "checking for --${enablestring:-enable}-ftp... $ECHO_C" >&6; }
5667           # Check whether --enable-ftp was given.
5668 if test "${enable_ftp+set}" = set; then
5669   enableval=$enable_ftp;
5670                           if test "$enableval" = yes; then
5671                             wx_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes'
5672                           else
5673                             wx_cv_use_ftp='wxUSE_PROTOCOL_FTP=no'
5674                           fi
5675
5676 else
5677
5678                           wx_cv_use_ftp='wxUSE_PROTOCOL_FTP=${'DEFAULT_wxUSE_PROTOCOL_FTP":-$defaultval}"
5679
5680 fi
5681
5682
5683           eval "$wx_cv_use_ftp"
5684
5685           if test x"$enablestring" = xdisable; then
5686             if test $wxUSE_PROTOCOL_FTP = yes; then
5687               result=no
5688             else
5689               result=yes
5690             fi
5691           else
5692             result=$wxUSE_PROTOCOL_FTP
5693           fi
5694
5695           { echo "$as_me:$LINENO: result: $result" >&5
5696 echo "${ECHO_T}$result" >&6; }
5697
5698
5699           enablestring=
5700           defaultval=$wxUSE_ALL_FEATURES
5701           if test -z "$defaultval"; then
5702               if test x"$enablestring" = xdisable; then
5703                   defaultval=yes
5704               else
5705                   defaultval=no
5706               fi
5707           fi
5708
5709           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-http" >&5
5710 echo $ECHO_N "checking for --${enablestring:-enable}-http... $ECHO_C" >&6; }
5711           # Check whether --enable-http was given.
5712 if test "${enable_http+set}" = set; then
5713   enableval=$enable_http;
5714                           if test "$enableval" = yes; then
5715                             wx_cv_use_http='wxUSE_PROTOCOL_HTTP=yes'
5716                           else
5717                             wx_cv_use_http='wxUSE_PROTOCOL_HTTP=no'
5718                           fi
5719
5720 else
5721
5722                           wx_cv_use_http='wxUSE_PROTOCOL_HTTP=${'DEFAULT_wxUSE_PROTOCOL_HTTP":-$defaultval}"
5723
5724 fi
5725
5726
5727           eval "$wx_cv_use_http"
5728
5729           if test x"$enablestring" = xdisable; then
5730             if test $wxUSE_PROTOCOL_HTTP = yes; then
5731               result=no
5732             else
5733               result=yes
5734             fi
5735           else
5736             result=$wxUSE_PROTOCOL_HTTP
5737           fi
5738
5739           { echo "$as_me:$LINENO: result: $result" >&5
5740 echo "${ECHO_T}$result" >&6; }
5741
5742
5743           enablestring=
5744           defaultval=$wxUSE_ALL_FEATURES
5745           if test -z "$defaultval"; then
5746               if test x"$enablestring" = xdisable; then
5747                   defaultval=yes
5748               else
5749                   defaultval=no
5750               fi
5751           fi
5752
5753           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fileproto" >&5
5754 echo $ECHO_N "checking for --${enablestring:-enable}-fileproto... $ECHO_C" >&6; }
5755           # Check whether --enable-fileproto was given.
5756 if test "${enable_fileproto+set}" = set; then
5757   enableval=$enable_fileproto;
5758                           if test "$enableval" = yes; then
5759                             wx_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes'
5760                           else
5761                             wx_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no'
5762                           fi
5763
5764 else
5765
5766                           wx_cv_use_fileproto='wxUSE_PROTOCOL_FILE=${'DEFAULT_wxUSE_PROTOCOL_FILE":-$defaultval}"
5767
5768 fi
5769
5770
5771           eval "$wx_cv_use_fileproto"
5772
5773           if test x"$enablestring" = xdisable; then
5774             if test $wxUSE_PROTOCOL_FILE = yes; then
5775               result=no
5776             else
5777               result=yes
5778             fi
5779           else
5780             result=$wxUSE_PROTOCOL_FILE
5781           fi
5782
5783           { echo "$as_me:$LINENO: result: $result" >&5
5784 echo "${ECHO_T}$result" >&6; }
5785
5786
5787           enablestring=
5788           defaultval=$wxUSE_ALL_FEATURES
5789           if test -z "$defaultval"; then
5790               if test x"$enablestring" = xdisable; then
5791                   defaultval=yes
5792               else
5793                   defaultval=no
5794               fi
5795           fi
5796
5797           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sockets" >&5
5798 echo $ECHO_N "checking for --${enablestring:-enable}-sockets... $ECHO_C" >&6; }
5799           # Check whether --enable-sockets was given.
5800 if test "${enable_sockets+set}" = set; then
5801   enableval=$enable_sockets;
5802                           if test "$enableval" = yes; then
5803                             wx_cv_use_sockets='wxUSE_SOCKETS=yes'
5804                           else
5805                             wx_cv_use_sockets='wxUSE_SOCKETS=no'
5806                           fi
5807
5808 else
5809
5810                           wx_cv_use_sockets='wxUSE_SOCKETS=${'DEFAULT_wxUSE_SOCKETS":-$defaultval}"
5811
5812 fi
5813
5814
5815           eval "$wx_cv_use_sockets"
5816
5817           if test x"$enablestring" = xdisable; then
5818             if test $wxUSE_SOCKETS = yes; then
5819               result=no
5820             else
5821               result=yes
5822             fi
5823           else
5824             result=$wxUSE_SOCKETS
5825           fi
5826
5827           { echo "$as_me:$LINENO: result: $result" >&5
5828 echo "${ECHO_T}$result" >&6; }
5829
5830
5831           enablestring=
5832           defaultval=$wxUSE_ALL_FEATURES
5833           if test -z "$defaultval"; then
5834               if test x"$enablestring" = xdisable; then
5835                   defaultval=yes
5836               else
5837                   defaultval=no
5838               fi
5839           fi
5840
5841           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ipv6" >&5
5842 echo $ECHO_N "checking for --${enablestring:-enable}-ipv6... $ECHO_C" >&6; }
5843           # Check whether --enable-ipv6 was given.
5844 if test "${enable_ipv6+set}" = set; then
5845   enableval=$enable_ipv6;
5846                           if test "$enableval" = yes; then
5847                             wx_cv_use_ipv6='wxUSE_IPV6=yes'
5848                           else
5849                             wx_cv_use_ipv6='wxUSE_IPV6=no'
5850                           fi
5851
5852 else
5853
5854                           wx_cv_use_ipv6='wxUSE_IPV6=${'DEFAULT_wxUSE_IPV6":-$defaultval}"
5855
5856 fi
5857
5858
5859           eval "$wx_cv_use_ipv6"
5860
5861           if test x"$enablestring" = xdisable; then
5862             if test $wxUSE_IPV6 = yes; then
5863               result=no
5864             else
5865               result=yes
5866             fi
5867           else
5868             result=$wxUSE_IPV6
5869           fi
5870
5871           { echo "$as_me:$LINENO: result: $result" >&5
5872 echo "${ECHO_T}$result" >&6; }
5873
5874
5875           enablestring=
5876           defaultval=$wxUSE_ALL_FEATURES
5877           if test -z "$defaultval"; then
5878               if test x"$enablestring" = xdisable; then
5879                   defaultval=yes
5880               else
5881                   defaultval=no
5882               fi
5883           fi
5884
5885           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ole" >&5
5886 echo $ECHO_N "checking for --${enablestring:-enable}-ole... $ECHO_C" >&6; }
5887           # Check whether --enable-ole was given.
5888 if test "${enable_ole+set}" = set; then
5889   enableval=$enable_ole;
5890                           if test "$enableval" = yes; then
5891                             wx_cv_use_ole='wxUSE_OLE=yes'
5892                           else
5893                             wx_cv_use_ole='wxUSE_OLE=no'
5894                           fi
5895
5896 else
5897
5898                           wx_cv_use_ole='wxUSE_OLE=${'DEFAULT_wxUSE_OLE":-$defaultval}"
5899
5900 fi
5901
5902
5903           eval "$wx_cv_use_ole"
5904
5905           if test x"$enablestring" = xdisable; then
5906             if test $wxUSE_OLE = yes; then
5907               result=no
5908             else
5909               result=yes
5910             fi
5911           else
5912             result=$wxUSE_OLE
5913           fi
5914
5915           { echo "$as_me:$LINENO: result: $result" >&5
5916 echo "${ECHO_T}$result" >&6; }
5917
5918
5919           enablestring=
5920           defaultval=$wxUSE_ALL_FEATURES
5921           if test -z "$defaultval"; then
5922               if test x"$enablestring" = xdisable; then
5923                   defaultval=yes
5924               else
5925                   defaultval=no
5926               fi
5927           fi
5928
5929           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataobj" >&5
5930 echo $ECHO_N "checking for --${enablestring:-enable}-dataobj... $ECHO_C" >&6; }
5931           # Check whether --enable-dataobj was given.
5932 if test "${enable_dataobj+set}" = set; then
5933   enableval=$enable_dataobj;
5934                           if test "$enableval" = yes; then
5935                             wx_cv_use_dataobj='wxUSE_DATAOBJ=yes'
5936                           else
5937                             wx_cv_use_dataobj='wxUSE_DATAOBJ=no'
5938                           fi
5939
5940 else
5941
5942                           wx_cv_use_dataobj='wxUSE_DATAOBJ=${'DEFAULT_wxUSE_DATAOBJ":-$defaultval}"
5943
5944 fi
5945
5946
5947           eval "$wx_cv_use_dataobj"
5948
5949           if test x"$enablestring" = xdisable; then
5950             if test $wxUSE_DATAOBJ = yes; then
5951               result=no
5952             else
5953               result=yes
5954             fi
5955           else
5956             result=$wxUSE_DATAOBJ
5957           fi
5958
5959           { echo "$as_me:$LINENO: result: $result" >&5
5960 echo "${ECHO_T}$result" >&6; }
5961
5962
5963
5964           enablestring=
5965           defaultval=$wxUSE_ALL_FEATURES
5966           if test -z "$defaultval"; then
5967               if test x"$enablestring" = xdisable; then
5968                   defaultval=yes
5969               else
5970                   defaultval=no
5971               fi
5972           fi
5973
5974           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ipc" >&5
5975 echo $ECHO_N "checking for --${enablestring:-enable}-ipc... $ECHO_C" >&6; }
5976           # Check whether --enable-ipc was given.
5977 if test "${enable_ipc+set}" = set; then
5978   enableval=$enable_ipc;
5979                           if test "$enableval" = yes; then
5980                             wx_cv_use_ipc='wxUSE_IPC=yes'
5981                           else
5982                             wx_cv_use_ipc='wxUSE_IPC=no'
5983                           fi
5984
5985 else
5986
5987                           wx_cv_use_ipc='wxUSE_IPC=${'DEFAULT_wxUSE_IPC":-$defaultval}"
5988
5989 fi
5990
5991
5992           eval "$wx_cv_use_ipc"
5993
5994           if test x"$enablestring" = xdisable; then
5995             if test $wxUSE_IPC = yes; then
5996               result=no
5997             else
5998               result=yes
5999             fi
6000           else
6001             result=$wxUSE_IPC
6002           fi
6003
6004           { echo "$as_me:$LINENO: result: $result" >&5
6005 echo "${ECHO_T}$result" >&6; }
6006
6007
6008
6009           enablestring=
6010           defaultval=$wxUSE_ALL_FEATURES
6011           if test -z "$defaultval"; then
6012               if test x"$enablestring" = xdisable; then
6013                   defaultval=yes
6014               else
6015                   defaultval=no
6016               fi
6017           fi
6018
6019           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-baseevtloop" >&5
6020 echo $ECHO_N "checking for --${enablestring:-enable}-baseevtloop... $ECHO_C" >&6; }
6021           # Check whether --enable-baseevtloop was given.
6022 if test "${enable_baseevtloop+set}" = set; then
6023   enableval=$enable_baseevtloop;
6024                           if test "$enableval" = yes; then
6025                             wx_cv_use_baseevtloop='wxUSE_CONSOLE_EVENTLOOP=yes'
6026                           else
6027                             wx_cv_use_baseevtloop='wxUSE_CONSOLE_EVENTLOOP=no'
6028                           fi
6029
6030 else
6031
6032                           wx_cv_use_baseevtloop='wxUSE_CONSOLE_EVENTLOOP=${'DEFAULT_wxUSE_CONSOLE_EVENTLOOP":-$defaultval}"
6033
6034 fi
6035
6036
6037           eval "$wx_cv_use_baseevtloop"
6038
6039           if test x"$enablestring" = xdisable; then
6040             if test $wxUSE_CONSOLE_EVENTLOOP = yes; then
6041               result=no
6042             else
6043               result=yes
6044             fi
6045           else
6046             result=$wxUSE_CONSOLE_EVENTLOOP
6047           fi
6048
6049           { echo "$as_me:$LINENO: result: $result" >&5
6050 echo "${ECHO_T}$result" >&6; }
6051
6052
6053           enablestring=
6054           defaultval=$wxUSE_ALL_FEATURES
6055           if test -z "$defaultval"; then
6056               if test x"$enablestring" = xdisable; then
6057                   defaultval=yes
6058               else
6059                   defaultval=no
6060               fi
6061           fi
6062
6063           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-epollloop" >&5
6064 echo $ECHO_N "checking for --${enablestring:-enable}-epollloop... $ECHO_C" >&6; }
6065           # Check whether --enable-epollloop was given.
6066 if test "${enable_epollloop+set}" = set; then
6067   enableval=$enable_epollloop;
6068                           if test "$enableval" = yes; then
6069                             wx_cv_use_epollloop='wxUSE_EPOLL_DISPATCHER=yes'
6070                           else
6071                             wx_cv_use_epollloop='wxUSE_EPOLL_DISPATCHER=no'
6072                           fi
6073
6074 else
6075
6076                           wx_cv_use_epollloop='wxUSE_EPOLL_DISPATCHER=${'DEFAULT_wxUSE_EPOLL_DISPATCHER":-$defaultval}"
6077
6078 fi
6079
6080
6081           eval "$wx_cv_use_epollloop"
6082
6083           if test x"$enablestring" = xdisable; then
6084             if test $wxUSE_EPOLL_DISPATCHER = yes; then
6085               result=no
6086             else
6087               result=yes
6088             fi
6089           else
6090             result=$wxUSE_EPOLL_DISPATCHER
6091           fi
6092
6093           { echo "$as_me:$LINENO: result: $result" >&5
6094 echo "${ECHO_T}$result" >&6; }
6095
6096
6097           enablestring=
6098           defaultval=$wxUSE_ALL_FEATURES
6099           if test -z "$defaultval"; then
6100               if test x"$enablestring" = xdisable; then
6101                   defaultval=yes
6102               else
6103                   defaultval=no
6104               fi
6105           fi
6106
6107           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-selectloop" >&5
6108 echo $ECHO_N "checking for --${enablestring:-enable}-selectloop... $ECHO_C" >&6; }
6109           # Check whether --enable-selectloop was given.
6110 if test "${enable_selectloop+set}" = set; then
6111   enableval=$enable_selectloop;
6112                           if test "$enableval" = yes; then
6113                             wx_cv_use_selectloop='wxUSE_SELECT_DISPATCHER=yes'
6114                           else
6115                             wx_cv_use_selectloop='wxUSE_SELECT_DISPATCHER=no'
6116                           fi
6117
6118 else
6119
6120                           wx_cv_use_selectloop='wxUSE_SELECT_DISPATCHER=${'DEFAULT_wxUSE_SELECT_DISPATCHER":-$defaultval}"
6121
6122 fi
6123
6124
6125           eval "$wx_cv_use_selectloop"
6126
6127           if test x"$enablestring" = xdisable; then
6128             if test $wxUSE_SELECT_DISPATCHER = yes; then
6129               result=no
6130             else
6131               result=yes
6132             fi
6133           else
6134             result=$wxUSE_SELECT_DISPATCHER
6135           fi
6136
6137           { echo "$as_me:$LINENO: result: $result" >&5
6138 echo "${ECHO_T}$result" >&6; }
6139
6140
6141
6142           enablestring=
6143           defaultval=$wxUSE_ALL_FEATURES
6144           if test -z "$defaultval"; then
6145               if test x"$enablestring" = xdisable; then
6146                   defaultval=yes
6147               else
6148                   defaultval=no
6149               fi
6150           fi
6151
6152           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-apple_ieee" >&5
6153 echo $ECHO_N "checking for --${enablestring:-enable}-apple_ieee... $ECHO_C" >&6; }
6154           # Check whether --enable-apple_ieee was given.
6155 if test "${enable_apple_ieee+set}" = set; then
6156   enableval=$enable_apple_ieee;
6157                           if test "$enableval" = yes; then
6158                             wx_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
6159                           else
6160                             wx_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
6161                           fi
6162
6163 else
6164
6165                           wx_cv_use_apple_ieee='wxUSE_APPLE_IEEE=${'DEFAULT_wxUSE_APPLE_IEEE":-$defaultval}"
6166
6167 fi
6168
6169
6170           eval "$wx_cv_use_apple_ieee"
6171
6172           if test x"$enablestring" = xdisable; then
6173             if test $wxUSE_APPLE_IEEE = yes; then
6174               result=no
6175             else
6176               result=yes
6177             fi
6178           else
6179             result=$wxUSE_APPLE_IEEE
6180           fi
6181
6182           { echo "$as_me:$LINENO: result: $result" >&5
6183 echo "${ECHO_T}$result" >&6; }
6184
6185
6186           enablestring=
6187           defaultval=$wxUSE_ALL_FEATURES
6188           if test -z "$defaultval"; then
6189               if test x"$enablestring" = xdisable; then
6190                   defaultval=yes
6191               else
6192                   defaultval=no
6193               fi
6194           fi
6195
6196           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-arcstream" >&5
6197 echo $ECHO_N "checking for --${enablestring:-enable}-arcstream... $ECHO_C" >&6; }
6198           # Check whether --enable-arcstream was given.
6199 if test "${enable_arcstream+set}" = set; then
6200   enableval=$enable_arcstream;
6201                           if test "$enableval" = yes; then
6202                             wx_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=yes'
6203                           else
6204                             wx_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=no'
6205                           fi
6206
6207 else
6208
6209                           wx_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=${'DEFAULT_wxUSE_ARCHIVE_STREAMS":-$defaultval}"
6210
6211 fi
6212
6213
6214           eval "$wx_cv_use_arcstream"
6215
6216           if test x"$enablestring" = xdisable; then
6217             if test $wxUSE_ARCHIVE_STREAMS = yes; then
6218               result=no
6219             else
6220               result=yes
6221             fi
6222           else
6223             result=$wxUSE_ARCHIVE_STREAMS
6224           fi
6225
6226           { echo "$as_me:$LINENO: result: $result" >&5
6227 echo "${ECHO_T}$result" >&6; }
6228
6229
6230           enablestring=
6231           defaultval=$wxUSE_ALL_FEATURES
6232           if test -z "$defaultval"; then
6233               if test x"$enablestring" = xdisable; then
6234                   defaultval=yes
6235               else
6236                   defaultval=no
6237               fi
6238           fi
6239
6240           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-base64" >&5
6241 echo $ECHO_N "checking for --${enablestring:-enable}-base64... $ECHO_C" >&6; }
6242           # Check whether --enable-base64 was given.
6243 if test "${enable_base64+set}" = set; then
6244   enableval=$enable_base64;
6245                           if test "$enableval" = yes; then
6246                             wx_cv_use_base64='wxUSE_BASE64=yes'
6247                           else
6248                             wx_cv_use_base64='wxUSE_BASE64=no'
6249                           fi
6250
6251 else
6252
6253                           wx_cv_use_base64='wxUSE_BASE64=${'DEFAULT_wxUSE_BASE64":-$defaultval}"
6254
6255 fi
6256
6257
6258           eval "$wx_cv_use_base64"
6259
6260           if test x"$enablestring" = xdisable; then
6261             if test $wxUSE_BASE64 = yes; then
6262               result=no
6263             else
6264               result=yes
6265             fi
6266           else
6267             result=$wxUSE_BASE64
6268           fi
6269
6270           { echo "$as_me:$LINENO: result: $result" >&5
6271 echo "${ECHO_T}$result" >&6; }
6272
6273
6274           enablestring=
6275           defaultval=$wxUSE_ALL_FEATURES
6276           if test -z "$defaultval"; then
6277               if test x"$enablestring" = xdisable; then
6278                   defaultval=yes
6279               else
6280                   defaultval=no
6281               fi
6282           fi
6283
6284           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-backtrace" >&5
6285 echo $ECHO_N "checking for --${enablestring:-enable}-backtrace... $ECHO_C" >&6; }
6286           # Check whether --enable-backtrace was given.
6287 if test "${enable_backtrace+set}" = set; then
6288   enableval=$enable_backtrace;
6289                           if test "$enableval" = yes; then
6290                             wx_cv_use_backtrace='wxUSE_STACKWALKER=yes'
6291                           else
6292                             wx_cv_use_backtrace='wxUSE_STACKWALKER=no'
6293                           fi
6294
6295 else
6296
6297                           wx_cv_use_backtrace='wxUSE_STACKWALKER=${'DEFAULT_wxUSE_STACKWALKER":-$defaultval}"
6298
6299 fi
6300
6301
6302           eval "$wx_cv_use_backtrace"
6303
6304           if test x"$enablestring" = xdisable; then
6305             if test $wxUSE_STACKWALKER = yes; then
6306               result=no
6307             else
6308               result=yes
6309             fi
6310           else
6311             result=$wxUSE_STACKWALKER
6312           fi
6313
6314           { echo "$as_me:$LINENO: result: $result" >&5
6315 echo "${ECHO_T}$result" >&6; }
6316
6317
6318           enablestring=
6319           defaultval=$wxUSE_ALL_FEATURES
6320           if test -z "$defaultval"; then
6321               if test x"$enablestring" = xdisable; then
6322                   defaultval=yes
6323               else
6324                   defaultval=no
6325               fi
6326           fi
6327
6328           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-catch_segvs" >&5
6329 echo $ECHO_N "checking for --${enablestring:-enable}-catch_segvs... $ECHO_C" >&6; }
6330           # Check whether --enable-catch_segvs was given.
6331 if test "${enable_catch_segvs+set}" = set; then
6332   enableval=$enable_catch_segvs;
6333                           if test "$enableval" = yes; then
6334                             wx_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
6335                           else
6336                             wx_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
6337                           fi
6338
6339 else
6340
6341                           wx_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=${'DEFAULT_wxUSE_ON_FATAL_EXCEPTION":-$defaultval}"
6342
6343 fi
6344
6345
6346           eval "$wx_cv_use_catch_segvs"
6347
6348           if test x"$enablestring" = xdisable; then
6349             if test $wxUSE_ON_FATAL_EXCEPTION = yes; then
6350               result=no
6351             else
6352               result=yes
6353             fi
6354           else
6355             result=$wxUSE_ON_FATAL_EXCEPTION
6356           fi
6357
6358           { echo "$as_me:$LINENO: result: $result" >&5
6359 echo "${ECHO_T}$result" >&6; }
6360
6361
6362           enablestring=
6363           defaultval=$wxUSE_ALL_FEATURES
6364           if test -z "$defaultval"; then
6365               if test x"$enablestring" = xdisable; then
6366                   defaultval=yes
6367               else
6368                   defaultval=no
6369               fi
6370           fi
6371
6372           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-cmdline" >&5
6373 echo $ECHO_N "checking for --${enablestring:-enable}-cmdline... $ECHO_C" >&6; }
6374           # Check whether --enable-cmdline was given.
6375 if test "${enable_cmdline+set}" = set; then
6376   enableval=$enable_cmdline;
6377                           if test "$enableval" = yes; then
6378                             wx_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes'
6379                           else
6380                             wx_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no'
6381                           fi
6382
6383 else
6384
6385                           wx_cv_use_cmdline='wxUSE_CMDLINE_PARSER=${'DEFAULT_wxUSE_CMDLINE_PARSER":-$defaultval}"
6386
6387 fi
6388
6389
6390           eval "$wx_cv_use_cmdline"
6391
6392           if test x"$enablestring" = xdisable; then
6393             if test $wxUSE_CMDLINE_PARSER = yes; then
6394               result=no
6395             else
6396               result=yes
6397             fi
6398           else
6399             result=$wxUSE_CMDLINE_PARSER
6400           fi
6401
6402           { echo "$as_me:$LINENO: result: $result" >&5
6403 echo "${ECHO_T}$result" >&6; }
6404
6405
6406           enablestring=
6407           defaultval=$wxUSE_ALL_FEATURES
6408           if test -z "$defaultval"; then
6409               if test x"$enablestring" = xdisable; then
6410                   defaultval=yes
6411               else
6412                   defaultval=no
6413               fi
6414           fi
6415
6416           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datetime" >&5
6417 echo $ECHO_N "checking for --${enablestring:-enable}-datetime... $ECHO_C" >&6; }
6418           # Check whether --enable-datetime was given.
6419 if test "${enable_datetime+set}" = set; then
6420   enableval=$enable_datetime;
6421                           if test "$enableval" = yes; then
6422                             wx_cv_use_datetime='wxUSE_DATETIME=yes'
6423                           else
6424                             wx_cv_use_datetime='wxUSE_DATETIME=no'
6425                           fi
6426
6427 else
6428
6429                           wx_cv_use_datetime='wxUSE_DATETIME=${'DEFAULT_wxUSE_DATETIME":-$defaultval}"
6430
6431 fi
6432
6433
6434           eval "$wx_cv_use_datetime"
6435
6436           if test x"$enablestring" = xdisable; then
6437             if test $wxUSE_DATETIME = yes; then
6438               result=no
6439             else
6440               result=yes
6441             fi
6442           else
6443             result=$wxUSE_DATETIME
6444           fi
6445
6446           { echo "$as_me:$LINENO: result: $result" >&5
6447 echo "${ECHO_T}$result" >&6; }
6448
6449
6450           enablestring=
6451           defaultval=$wxUSE_ALL_FEATURES
6452           if test -z "$defaultval"; then
6453               if test x"$enablestring" = xdisable; then
6454                   defaultval=yes
6455               else
6456                   defaultval=no
6457               fi
6458           fi
6459
6460           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debugreport" >&5
6461 echo $ECHO_N "checking for --${enablestring:-enable}-debugreport... $ECHO_C" >&6; }
6462           # Check whether --enable-debugreport was given.
6463 if test "${enable_debugreport+set}" = set; then
6464   enableval=$enable_debugreport;
6465                           if test "$enableval" = yes; then
6466                             wx_cv_use_debugreport='wxUSE_DEBUGREPORT=yes'
6467                           else
6468                             wx_cv_use_debugreport='wxUSE_DEBUGREPORT=no'
6469                           fi
6470
6471 else
6472
6473                           wx_cv_use_debugreport='wxUSE_DEBUGREPORT=${'DEFAULT_wxUSE_DEBUGREPORT":-$defaultval}"
6474
6475 fi
6476
6477
6478           eval "$wx_cv_use_debugreport"
6479
6480           if test x"$enablestring" = xdisable; then
6481             if test $wxUSE_DEBUGREPORT = yes; then
6482               result=no
6483             else
6484               result=yes
6485             fi
6486           else
6487             result=$wxUSE_DEBUGREPORT
6488           fi
6489
6490           { echo "$as_me:$LINENO: result: $result" >&5
6491 echo "${ECHO_T}$result" >&6; }
6492
6493
6494           enablestring=
6495           defaultval=$wxUSE_ALL_FEATURES
6496           if test -z "$defaultval"; then
6497               if test x"$enablestring" = xdisable; then
6498                   defaultval=yes
6499               else
6500                   defaultval=no
6501               fi
6502           fi
6503
6504           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dialupman" >&5
6505 echo $ECHO_N "checking for --${enablestring:-enable}-dialupman... $ECHO_C" >&6; }
6506           # Check whether --enable-dialupman was given.
6507 if test "${enable_dialupman+set}" = set; then
6508   enableval=$enable_dialupman;
6509                           if test "$enableval" = yes; then
6510                             wx_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
6511                           else
6512                             wx_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
6513                           fi
6514
6515 else
6516
6517                           wx_cv_use_dialupman='wxUSE_DIALUP_MANAGER=${'DEFAULT_wxUSE_DIALUP_MANAGER":-$defaultval}"
6518
6519 fi
6520
6521
6522           eval "$wx_cv_use_dialupman"
6523
6524           if test x"$enablestring" = xdisable; then
6525             if test $wxUSE_DIALUP_MANAGER = yes; then
6526               result=no
6527             else
6528               result=yes
6529             fi
6530           else
6531             result=$wxUSE_DIALUP_MANAGER
6532           fi
6533
6534           { echo "$as_me:$LINENO: result: $result" >&5
6535 echo "${ECHO_T}$result" >&6; }
6536
6537
6538           enablestring=
6539           defaultval=$wxUSE_ALL_FEATURES
6540           if test -z "$defaultval"; then
6541               if test x"$enablestring" = xdisable; then
6542                   defaultval=yes
6543               else
6544                   defaultval=no
6545               fi
6546           fi
6547
6548           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynlib" >&5
6549 echo $ECHO_N "checking for --${enablestring:-enable}-dynlib... $ECHO_C" >&6; }
6550           # Check whether --enable-dynlib was given.
6551 if test "${enable_dynlib+set}" = set; then
6552   enableval=$enable_dynlib;
6553                           if test "$enableval" = yes; then
6554                             wx_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
6555                           else
6556                             wx_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
6557                           fi
6558
6559 else
6560
6561                           wx_cv_use_dynlib='wxUSE_DYNLIB_CLASS=${'DEFAULT_wxUSE_DYNLIB_CLASS":-$defaultval}"
6562
6563 fi
6564
6565
6566           eval "$wx_cv_use_dynlib"
6567
6568           if test x"$enablestring" = xdisable; then
6569             if test $wxUSE_DYNLIB_CLASS = yes; then
6570               result=no
6571             else
6572               result=yes
6573             fi
6574           else
6575             result=$wxUSE_DYNLIB_CLASS
6576           fi
6577
6578           { echo "$as_me:$LINENO: result: $result" >&5
6579 echo "${ECHO_T}$result" >&6; }
6580
6581
6582           enablestring=
6583           defaultval=$wxUSE_ALL_FEATURES
6584           if test -z "$defaultval"; then
6585               if test x"$enablestring" = xdisable; then
6586                   defaultval=yes
6587               else
6588                   defaultval=no
6589               fi
6590           fi
6591
6592           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynamicloader" >&5
6593 echo $ECHO_N "checking for --${enablestring:-enable}-dynamicloader... $ECHO_C" >&6; }
6594           # Check whether --enable-dynamicloader was given.
6595 if test "${enable_dynamicloader+set}" = set; then
6596   enableval=$enable_dynamicloader;
6597                           if test "$enableval" = yes; then
6598                             wx_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes'
6599                           else
6600                             wx_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no'
6601                           fi
6602
6603 else
6604
6605                           wx_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=${'DEFAULT_wxUSE_DYNAMIC_LOADER":-$defaultval}"
6606
6607 fi
6608
6609
6610           eval "$wx_cv_use_dynamicloader"
6611
6612           if test x"$enablestring" = xdisable; then
6613             if test $wxUSE_DYNAMIC_LOADER = yes; then
6614               result=no
6615             else
6616               result=yes
6617             fi
6618           else
6619             result=$wxUSE_DYNAMIC_LOADER
6620           fi
6621
6622           { echo "$as_me:$LINENO: result: $result" >&5
6623 echo "${ECHO_T}$result" >&6; }
6624
6625
6626           enablestring=
6627           defaultval=$wxUSE_ALL_FEATURES
6628           if test -z "$defaultval"; then
6629               if test x"$enablestring" = xdisable; then
6630                   defaultval=yes
6631               else
6632                   defaultval=no
6633               fi
6634           fi
6635
6636           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-exceptions" >&5
6637 echo $ECHO_N "checking for --${enablestring:-enable}-exceptions... $ECHO_C" >&6; }
6638           # Check whether --enable-exceptions was given.
6639 if test "${enable_exceptions+set}" = set; then
6640   enableval=$enable_exceptions;
6641                           if test "$enableval" = yes; then
6642                             wx_cv_use_exceptions='wxUSE_EXCEPTIONS=yes'
6643                           else
6644                             wx_cv_use_exceptions='wxUSE_EXCEPTIONS=no'
6645                           fi
6646
6647 else
6648
6649                           wx_cv_use_exceptions='wxUSE_EXCEPTIONS=${'DEFAULT_wxUSE_EXCEPTIONS":-$defaultval}"
6650
6651 fi
6652
6653
6654           eval "$wx_cv_use_exceptions"
6655
6656           if test x"$enablestring" = xdisable; then
6657             if test $wxUSE_EXCEPTIONS = yes; then
6658               result=no
6659             else
6660               result=yes
6661             fi
6662           else
6663             result=$wxUSE_EXCEPTIONS
6664           fi
6665
6666           { echo "$as_me:$LINENO: result: $result" >&5
6667 echo "${ECHO_T}$result" >&6; }
6668
6669
6670           enablestring=
6671           defaultval=$wxUSE_ALL_FEATURES
6672           if test -z "$defaultval"; then
6673               if test x"$enablestring" = xdisable; then
6674                   defaultval=yes
6675               else
6676                   defaultval=no
6677               fi
6678           fi
6679
6680           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ffile" >&5
6681 echo $ECHO_N "checking for --${enablestring:-enable}-ffile... $ECHO_C" >&6; }
6682           # Check whether --enable-ffile was given.
6683 if test "${enable_ffile+set}" = set; then
6684   enableval=$enable_ffile;
6685                           if test "$enableval" = yes; then
6686                             wx_cv_use_ffile='wxUSE_FFILE=yes'
6687                           else
6688                             wx_cv_use_ffile='wxUSE_FFILE=no'
6689                           fi
6690
6691 else
6692
6693                           wx_cv_use_ffile='wxUSE_FFILE=${'DEFAULT_wxUSE_FFILE":-$defaultval}"
6694
6695 fi
6696
6697
6698           eval "$wx_cv_use_ffile"
6699
6700           if test x"$enablestring" = xdisable; then
6701             if test $wxUSE_FFILE = yes; then
6702               result=no
6703             else
6704               result=yes
6705             fi
6706           else
6707             result=$wxUSE_FFILE
6708           fi
6709
6710           { echo "$as_me:$LINENO: result: $result" >&5
6711 echo "${ECHO_T}$result" >&6; }
6712
6713
6714           enablestring=
6715           defaultval=$wxUSE_ALL_FEATURES
6716           if test -z "$defaultval"; then
6717               if test x"$enablestring" = xdisable; then
6718                   defaultval=yes
6719               else
6720                   defaultval=no
6721               fi
6722           fi
6723
6724           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-file" >&5
6725 echo $ECHO_N "checking for --${enablestring:-enable}-file... $ECHO_C" >&6; }
6726           # Check whether --enable-file was given.
6727 if test "${enable_file+set}" = set; then
6728   enableval=$enable_file;
6729                           if test "$enableval" = yes; then
6730                             wx_cv_use_file='wxUSE_FILE=yes'
6731                           else
6732                             wx_cv_use_file='wxUSE_FILE=no'
6733                           fi
6734
6735 else
6736
6737                           wx_cv_use_file='wxUSE_FILE=${'DEFAULT_wxUSE_FILE":-$defaultval}"
6738
6739 fi
6740
6741
6742           eval "$wx_cv_use_file"
6743
6744           if test x"$enablestring" = xdisable; then
6745             if test $wxUSE_FILE = yes; then
6746               result=no
6747             else
6748               result=yes
6749             fi
6750           else
6751             result=$wxUSE_FILE
6752           fi
6753
6754           { echo "$as_me:$LINENO: result: $result" >&5
6755 echo "${ECHO_T}$result" >&6; }
6756
6757
6758           enablestring=
6759           defaultval=$wxUSE_ALL_FEATURES
6760           if test -z "$defaultval"; then
6761               if test x"$enablestring" = xdisable; then
6762                   defaultval=yes
6763               else
6764                   defaultval=no
6765               fi
6766           fi
6767
6768           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filesystem" >&5
6769 echo $ECHO_N "checking for --${enablestring:-enable}-filesystem... $ECHO_C" >&6; }
6770           # Check whether --enable-filesystem was given.
6771 if test "${enable_filesystem+set}" = set; then
6772   enableval=$enable_filesystem;
6773                           if test "$enableval" = yes; then
6774                             wx_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
6775                           else
6776                             wx_cv_use_filesystem='wxUSE_FILESYSTEM=no'
6777                           fi
6778
6779 else
6780
6781                           wx_cv_use_filesystem='wxUSE_FILESYSTEM=${'DEFAULT_wxUSE_FILESYSTEM":-$defaultval}"
6782
6783 fi
6784
6785
6786           eval "$wx_cv_use_filesystem"
6787
6788           if test x"$enablestring" = xdisable; then
6789             if test $wxUSE_FILESYSTEM = yes; then
6790               result=no
6791             else
6792               result=yes
6793             fi
6794           else
6795             result=$wxUSE_FILESYSTEM
6796           fi
6797
6798           { echo "$as_me:$LINENO: result: $result" >&5
6799 echo "${ECHO_T}$result" >&6; }
6800
6801
6802           enablestring=
6803           defaultval=$wxUSE_ALL_FEATURES
6804           if test -z "$defaultval"; then
6805               if test x"$enablestring" = xdisable; then
6806                   defaultval=yes
6807               else
6808                   defaultval=no
6809               fi
6810           fi
6811
6812           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontenum" >&5
6813 echo $ECHO_N "checking for --${enablestring:-enable}-fontenum... $ECHO_C" >&6; }
6814           # Check whether --enable-fontenum was given.
6815 if test "${enable_fontenum+set}" = set; then
6816   enableval=$enable_fontenum;
6817                           if test "$enableval" = yes; then
6818                             wx_cv_use_fontenum='wxUSE_FONTENUM=yes'
6819                           else
6820                             wx_cv_use_fontenum='wxUSE_FONTENUM=no'
6821                           fi
6822
6823 else
6824
6825                           wx_cv_use_fontenum='wxUSE_FONTENUM=${'DEFAULT_wxUSE_FONTENUM":-$defaultval}"
6826
6827 fi
6828
6829
6830           eval "$wx_cv_use_fontenum"
6831
6832           if test x"$enablestring" = xdisable; then
6833             if test $wxUSE_FONTENUM = yes; then
6834               result=no
6835             else
6836               result=yes
6837             fi
6838           else
6839             result=$wxUSE_FONTENUM
6840           fi
6841
6842           { echo "$as_me:$LINENO: result: $result" >&5
6843 echo "${ECHO_T}$result" >&6; }
6844
6845
6846           enablestring=
6847           defaultval=$wxUSE_ALL_FEATURES
6848           if test -z "$defaultval"; then
6849               if test x"$enablestring" = xdisable; then
6850                   defaultval=yes
6851               else
6852                   defaultval=no
6853               fi
6854           fi
6855
6856           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontmap" >&5
6857 echo $ECHO_N "checking for --${enablestring:-enable}-fontmap... $ECHO_C" >&6; }
6858           # Check whether --enable-fontmap was given.
6859 if test "${enable_fontmap+set}" = set; then
6860   enableval=$enable_fontmap;
6861                           if test "$enableval" = yes; then
6862                             wx_cv_use_fontmap='wxUSE_FONTMAP=yes'
6863                           else
6864                             wx_cv_use_fontmap='wxUSE_FONTMAP=no'
6865                           fi
6866
6867 else
6868
6869                           wx_cv_use_fontmap='wxUSE_FONTMAP=${'DEFAULT_wxUSE_FONTMAP":-$defaultval}"
6870
6871 fi
6872
6873
6874           eval "$wx_cv_use_fontmap"
6875
6876           if test x"$enablestring" = xdisable; then
6877             if test $wxUSE_FONTMAP = yes; then
6878               result=no
6879             else
6880               result=yes
6881             fi
6882           else
6883             result=$wxUSE_FONTMAP
6884           fi
6885
6886           { echo "$as_me:$LINENO: result: $result" >&5
6887 echo "${ECHO_T}$result" >&6; }
6888
6889
6890           enablestring=
6891           defaultval=$wxUSE_ALL_FEATURES
6892           if test -z "$defaultval"; then
6893               if test x"$enablestring" = xdisable; then
6894                   defaultval=yes
6895               else
6896                   defaultval=no
6897               fi
6898           fi
6899
6900           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_archive" >&5
6901 echo $ECHO_N "checking for --${enablestring:-enable}-fs_archive... $ECHO_C" >&6; }
6902           # Check whether --enable-fs_archive was given.
6903 if test "${enable_fs_archive+set}" = set; then
6904   enableval=$enable_fs_archive;
6905                           if test "$enableval" = yes; then
6906                             wx_cv_use_fs_archive='wxUSE_FS_ARCHIVE=yes'
6907                           else
6908                             wx_cv_use_fs_archive='wxUSE_FS_ARCHIVE=no'
6909                           fi
6910
6911 else
6912
6913                           wx_cv_use_fs_archive='wxUSE_FS_ARCHIVE=${'DEFAULT_wxUSE_FS_ARCHIVE":-$defaultval}"
6914
6915 fi
6916
6917
6918           eval "$wx_cv_use_fs_archive"
6919
6920           if test x"$enablestring" = xdisable; then
6921             if test $wxUSE_FS_ARCHIVE = yes; then
6922               result=no
6923             else
6924               result=yes
6925             fi
6926           else
6927             result=$wxUSE_FS_ARCHIVE
6928           fi
6929
6930           { echo "$as_me:$LINENO: result: $result" >&5
6931 echo "${ECHO_T}$result" >&6; }
6932
6933
6934           enablestring=
6935           defaultval=$wxUSE_ALL_FEATURES
6936           if test -z "$defaultval"; then
6937               if test x"$enablestring" = xdisable; then
6938                   defaultval=yes
6939               else
6940                   defaultval=no
6941               fi
6942           fi
6943
6944           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_inet" >&5
6945 echo $ECHO_N "checking for --${enablestring:-enable}-fs_inet... $ECHO_C" >&6; }
6946           # Check whether --enable-fs_inet was given.
6947 if test "${enable_fs_inet+set}" = set; then
6948   enableval=$enable_fs_inet;
6949                           if test "$enableval" = yes; then
6950                             wx_cv_use_fs_inet='wxUSE_FS_INET=yes'
6951                           else
6952                             wx_cv_use_fs_inet='wxUSE_FS_INET=no'
6953                           fi
6954
6955 else
6956
6957                           wx_cv_use_fs_inet='wxUSE_FS_INET=${'DEFAULT_wxUSE_FS_INET":-$defaultval}"
6958
6959 fi
6960
6961
6962           eval "$wx_cv_use_fs_inet"
6963
6964           if test x"$enablestring" = xdisable; then
6965             if test $wxUSE_FS_INET = yes; then
6966               result=no
6967             else
6968               result=yes
6969             fi
6970           else
6971             result=$wxUSE_FS_INET
6972           fi
6973
6974           { echo "$as_me:$LINENO: result: $result" >&5
6975 echo "${ECHO_T}$result" >&6; }
6976
6977
6978           enablestring=
6979           defaultval=$wxUSE_ALL_FEATURES
6980           if test -z "$defaultval"; then
6981               if test x"$enablestring" = xdisable; then
6982                   defaultval=yes
6983               else
6984                   defaultval=no
6985               fi
6986           fi
6987
6988           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_zip" >&5
6989 echo $ECHO_N "checking for --${enablestring:-enable}-fs_zip... $ECHO_C" >&6; }
6990           # Check whether --enable-fs_zip was given.
6991 if test "${enable_fs_zip+set}" = set; then
6992   enableval=$enable_fs_zip;
6993                           if test "$enableval" = yes; then
6994                             wx_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
6995                           else
6996                             wx_cv_use_fs_zip='wxUSE_FS_ZIP=no'
6997                           fi
6998
6999 else
7000
7001                           wx_cv_use_fs_zip='wxUSE_FS_ZIP=${'DEFAULT_wxUSE_FS_ZIP":-$defaultval}"
7002
7003 fi
7004
7005
7006           eval "$wx_cv_use_fs_zip"
7007
7008           if test x"$enablestring" = xdisable; then
7009             if test $wxUSE_FS_ZIP = yes; then
7010               result=no
7011             else
7012               result=yes
7013             fi
7014           else
7015             result=$wxUSE_FS_ZIP
7016           fi
7017
7018           { echo "$as_me:$LINENO: result: $result" >&5
7019 echo "${ECHO_T}$result" >&6; }
7020
7021
7022           enablestring=
7023           defaultval=$wxUSE_ALL_FEATURES
7024           if test -z "$defaultval"; then
7025               if test x"$enablestring" = xdisable; then
7026                   defaultval=yes
7027               else
7028                   defaultval=no
7029               fi
7030           fi
7031
7032           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-geometry" >&5
7033 echo $ECHO_N "checking for --${enablestring:-enable}-geometry... $ECHO_C" >&6; }
7034           # Check whether --enable-geometry was given.
7035 if test "${enable_geometry+set}" = set; then
7036   enableval=$enable_geometry;
7037                           if test "$enableval" = yes; then
7038                             wx_cv_use_geometry='wxUSE_GEOMETRY=yes'
7039                           else
7040                             wx_cv_use_geometry='wxUSE_GEOMETRY=no'
7041                           fi
7042
7043 else
7044
7045                           wx_cv_use_geometry='wxUSE_GEOMETRY=${'DEFAULT_wxUSE_GEOMETRY":-$defaultval}"
7046
7047 fi
7048
7049
7050           eval "$wx_cv_use_geometry"
7051
7052           if test x"$enablestring" = xdisable; then
7053             if test $wxUSE_GEOMETRY = yes; then
7054               result=no
7055             else
7056               result=yes
7057             fi
7058           else
7059             result=$wxUSE_GEOMETRY
7060           fi
7061
7062           { echo "$as_me:$LINENO: result: $result" >&5
7063 echo "${ECHO_T}$result" >&6; }
7064
7065
7066           enablestring=
7067           defaultval=$wxUSE_ALL_FEATURES
7068           if test -z "$defaultval"; then
7069               if test x"$enablestring" = xdisable; then
7070                   defaultval=yes
7071               else
7072                   defaultval=no
7073               fi
7074           fi
7075
7076           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-log" >&5
7077 echo $ECHO_N "checking for --${enablestring:-enable}-log... $ECHO_C" >&6; }
7078           # Check whether --enable-log was given.
7079 if test "${enable_log+set}" = set; then
7080   enableval=$enable_log;
7081                           if test "$enableval" = yes; then
7082                             wx_cv_use_log='wxUSE_LOG=yes'
7083                           else
7084                             wx_cv_use_log='wxUSE_LOG=no'
7085                           fi
7086
7087 else
7088
7089                           wx_cv_use_log='wxUSE_LOG=${'DEFAULT_wxUSE_LOG":-$defaultval}"
7090
7091 fi
7092
7093
7094           eval "$wx_cv_use_log"
7095
7096           if test x"$enablestring" = xdisable; then
7097             if test $wxUSE_LOG = yes; then
7098               result=no
7099             else
7100               result=yes
7101             fi
7102           else
7103             result=$wxUSE_LOG
7104           fi
7105
7106           { echo "$as_me:$LINENO: result: $result" >&5
7107 echo "${ECHO_T}$result" >&6; }
7108
7109
7110           enablestring=
7111           defaultval=$wxUSE_ALL_FEATURES
7112           if test -z "$defaultval"; then
7113               if test x"$enablestring" = xdisable; then
7114                   defaultval=yes
7115               else
7116                   defaultval=no
7117               fi
7118           fi
7119
7120           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-longlong" >&5
7121 echo $ECHO_N "checking for --${enablestring:-enable}-longlong... $ECHO_C" >&6; }
7122           # Check whether --enable-longlong was given.
7123 if test "${enable_longlong+set}" = set; then
7124   enableval=$enable_longlong;
7125                           if test "$enableval" = yes; then
7126                             wx_cv_use_longlong='wxUSE_LONGLONG=yes'
7127                           else
7128                             wx_cv_use_longlong='wxUSE_LONGLONG=no'
7129                           fi
7130
7131 else
7132
7133                           wx_cv_use_longlong='wxUSE_LONGLONG=${'DEFAULT_wxUSE_LONGLONG":-$defaultval}"
7134
7135 fi
7136
7137
7138           eval "$wx_cv_use_longlong"
7139
7140           if test x"$enablestring" = xdisable; then
7141             if test $wxUSE_LONGLONG = yes; then
7142               result=no
7143             else
7144               result=yes
7145             fi
7146           else
7147             result=$wxUSE_LONGLONG
7148           fi
7149
7150           { echo "$as_me:$LINENO: result: $result" >&5
7151 echo "${ECHO_T}$result" >&6; }
7152
7153
7154           enablestring=
7155           defaultval=$wxUSE_ALL_FEATURES
7156           if test -z "$defaultval"; then
7157               if test x"$enablestring" = xdisable; then
7158                   defaultval=yes
7159               else
7160                   defaultval=no
7161               fi
7162           fi
7163
7164           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mimetype" >&5
7165 echo $ECHO_N "checking for --${enablestring:-enable}-mimetype... $ECHO_C" >&6; }
7166           # Check whether --enable-mimetype was given.
7167 if test "${enable_mimetype+set}" = set; then
7168   enableval=$enable_mimetype;
7169                           if test "$enableval" = yes; then
7170                             wx_cv_use_mimetype='wxUSE_MIMETYPE=yes'
7171                           else
7172                             wx_cv_use_mimetype='wxUSE_MIMETYPE=no'
7173                           fi
7174
7175 else
7176
7177                           wx_cv_use_mimetype='wxUSE_MIMETYPE=${'DEFAULT_wxUSE_MIMETYPE":-$defaultval}"
7178
7179 fi
7180
7181
7182           eval "$wx_cv_use_mimetype"
7183
7184           if test x"$enablestring" = xdisable; then
7185             if test $wxUSE_MIMETYPE = yes; then
7186               result=no
7187             else
7188               result=yes
7189             fi
7190           else
7191             result=$wxUSE_MIMETYPE
7192           fi
7193
7194           { echo "$as_me:$LINENO: result: $result" >&5
7195 echo "${ECHO_T}$result" >&6; }
7196
7197
7198           enablestring=
7199           defaultval=$wxUSE_ALL_FEATURES
7200           if test -z "$defaultval"; then
7201               if test x"$enablestring" = xdisable; then
7202                   defaultval=yes
7203               else
7204                   defaultval=no
7205               fi
7206           fi
7207
7208           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-snglinst" >&5
7209 echo $ECHO_N "checking for --${enablestring:-enable}-snglinst... $ECHO_C" >&6; }
7210           # Check whether --enable-snglinst was given.
7211 if test "${enable_snglinst+set}" = set; then
7212   enableval=$enable_snglinst;
7213                           if test "$enableval" = yes; then
7214                             wx_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
7215                           else
7216                             wx_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
7217                           fi
7218
7219 else
7220
7221                           wx_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=${'DEFAULT_wxUSE_SNGLINST_CHECKER":-$defaultval}"
7222
7223 fi
7224
7225
7226           eval "$wx_cv_use_snglinst"
7227
7228           if test x"$enablestring" = xdisable; then
7229             if test $wxUSE_SNGLINST_CHECKER = yes; then
7230               result=no
7231             else
7232               result=yes
7233             fi
7234           else
7235             result=$wxUSE_SNGLINST_CHECKER
7236           fi
7237
7238           { echo "$as_me:$LINENO: result: $result" >&5
7239 echo "${ECHO_T}$result" >&6; }
7240
7241
7242           enablestring=
7243           defaultval=$wxUSE_ALL_FEATURES
7244           if test -z "$defaultval"; then
7245               if test x"$enablestring" = xdisable; then
7246                   defaultval=yes
7247               else
7248                   defaultval=no
7249               fi
7250           fi
7251
7252           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stdpaths" >&5
7253 echo $ECHO_N "checking for --${enablestring:-enable}-stdpaths... $ECHO_C" >&6; }
7254           # Check whether --enable-stdpaths was given.
7255 if test "${enable_stdpaths+set}" = set; then
7256   enableval=$enable_stdpaths;
7257                           if test "$enableval" = yes; then
7258                             wx_cv_use_stdpaths='wxUSE_STDPATHS=yes'
7259                           else
7260                             wx_cv_use_stdpaths='wxUSE_STDPATHS=no'
7261                           fi
7262
7263 else
7264
7265                           wx_cv_use_stdpaths='wxUSE_STDPATHS=${'DEFAULT_wxUSE_STDPATHS":-$defaultval}"
7266
7267 fi
7268
7269
7270           eval "$wx_cv_use_stdpaths"
7271
7272           if test x"$enablestring" = xdisable; then
7273             if test $wxUSE_STDPATHS = yes; then
7274               result=no
7275             else
7276               result=yes
7277             fi
7278           else
7279             result=$wxUSE_STDPATHS
7280           fi
7281
7282           { echo "$as_me:$LINENO: result: $result" >&5
7283 echo "${ECHO_T}$result" >&6; }
7284
7285
7286           enablestring=
7287           defaultval=$wxUSE_ALL_FEATURES
7288           if test -z "$defaultval"; then
7289               if test x"$enablestring" = xdisable; then
7290                   defaultval=yes
7291               else
7292                   defaultval=no
7293               fi
7294           fi
7295
7296           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stopwatch" >&5
7297 echo $ECHO_N "checking for --${enablestring:-enable}-stopwatch... $ECHO_C" >&6; }
7298           # Check whether --enable-stopwatch was given.
7299 if test "${enable_stopwatch+set}" = set; then
7300   enableval=$enable_stopwatch;
7301                           if test "$enableval" = yes; then
7302                             wx_cv_use_stopwatch='wxUSE_STOPWATCH=yes'
7303                           else
7304                             wx_cv_use_stopwatch='wxUSE_STOPWATCH=no'
7305                           fi
7306
7307 else
7308
7309                           wx_cv_use_stopwatch='wxUSE_STOPWATCH=${'DEFAULT_wxUSE_STOPWATCH":-$defaultval}"
7310
7311 fi
7312
7313
7314           eval "$wx_cv_use_stopwatch"
7315
7316           if test x"$enablestring" = xdisable; then
7317             if test $wxUSE_STOPWATCH = yes; then
7318               result=no
7319             else
7320               result=yes
7321             fi
7322           else
7323             result=$wxUSE_STOPWATCH
7324           fi
7325
7326           { echo "$as_me:$LINENO: result: $result" >&5
7327 echo "${ECHO_T}$result" >&6; }
7328
7329
7330           enablestring=
7331           defaultval=$wxUSE_ALL_FEATURES
7332           if test -z "$defaultval"; then
7333               if test x"$enablestring" = xdisable; then
7334                   defaultval=yes
7335               else
7336                   defaultval=no
7337               fi
7338           fi
7339
7340           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-streams" >&5
7341 echo $ECHO_N "checking for --${enablestring:-enable}-streams... $ECHO_C" >&6; }
7342           # Check whether --enable-streams was given.
7343 if test "${enable_streams+set}" = set; then
7344   enableval=$enable_streams;
7345                           if test "$enableval" = yes; then
7346                             wx_cv_use_streams='wxUSE_STREAMS=yes'
7347                           else
7348                             wx_cv_use_streams='wxUSE_STREAMS=no'
7349                           fi
7350
7351 else
7352
7353                           wx_cv_use_streams='wxUSE_STREAMS=${'DEFAULT_wxUSE_STREAMS":-$defaultval}"
7354
7355 fi
7356
7357
7358           eval "$wx_cv_use_streams"
7359
7360           if test x"$enablestring" = xdisable; then
7361             if test $wxUSE_STREAMS = yes; then
7362               result=no
7363             else
7364               result=yes
7365             fi
7366           else
7367             result=$wxUSE_STREAMS
7368           fi
7369
7370           { echo "$as_me:$LINENO: result: $result" >&5
7371 echo "${ECHO_T}$result" >&6; }
7372
7373
7374           enablestring=
7375           defaultval=$wxUSE_ALL_FEATURES
7376           if test -z "$defaultval"; then
7377               if test x"$enablestring" = xdisable; then
7378                   defaultval=yes
7379               else
7380                   defaultval=no
7381               fi
7382           fi
7383
7384           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-system_options" >&5
7385 echo $ECHO_N "checking for --${enablestring:-enable}-system_options... $ECHO_C" >&6; }
7386           # Check whether --enable-system_options was given.
7387 if test "${enable_system_options+set}" = set; then
7388   enableval=$enable_system_options;
7389                           if test "$enableval" = yes; then
7390                             wx_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes'
7391                           else
7392                             wx_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no'
7393                           fi
7394
7395 else
7396
7397                           wx_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=${'DEFAULT_wxUSE_SYSTEM_OPTIONS":-$defaultval}"
7398
7399 fi
7400
7401
7402           eval "$wx_cv_use_system_options"
7403
7404           if test x"$enablestring" = xdisable; then
7405             if test $wxUSE_SYSTEM_OPTIONS = yes; then
7406               result=no
7407             else
7408               result=yes
7409             fi
7410           else
7411             result=$wxUSE_SYSTEM_OPTIONS
7412           fi
7413
7414           { echo "$as_me:$LINENO: result: $result" >&5
7415 echo "${ECHO_T}$result" >&6; }
7416
7417
7418           enablestring=
7419           defaultval=$wxUSE_ALL_FEATURES
7420           if test -z "$defaultval"; then
7421               if test x"$enablestring" = xdisable; then
7422                   defaultval=yes
7423               else
7424                   defaultval=no
7425               fi
7426           fi
7427
7428           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tarstream" >&5
7429 echo $ECHO_N "checking for --${enablestring:-enable}-tarstream... $ECHO_C" >&6; }
7430           # Check whether --enable-tarstream was given.
7431 if test "${enable_tarstream+set}" = set; then
7432   enableval=$enable_tarstream;
7433                           if test "$enableval" = yes; then
7434                             wx_cv_use_tarstream='wxUSE_TARSTREAM=yes'
7435                           else
7436                             wx_cv_use_tarstream='wxUSE_TARSTREAM=no'
7437                           fi
7438
7439 else
7440
7441                           wx_cv_use_tarstream='wxUSE_TARSTREAM=${'DEFAULT_wxUSE_TARSTREAM":-$defaultval}"
7442
7443 fi
7444
7445
7446           eval "$wx_cv_use_tarstream"
7447
7448           if test x"$enablestring" = xdisable; then
7449             if test $wxUSE_TARSTREAM = yes; then
7450               result=no
7451             else
7452               result=yes
7453             fi
7454           else
7455             result=$wxUSE_TARSTREAM
7456           fi
7457
7458           { echo "$as_me:$LINENO: result: $result" >&5
7459 echo "${ECHO_T}$result" >&6; }
7460
7461
7462           enablestring=
7463           defaultval=$wxUSE_ALL_FEATURES
7464           if test -z "$defaultval"; then
7465               if test x"$enablestring" = xdisable; then
7466                   defaultval=yes
7467               else
7468                   defaultval=no
7469               fi
7470           fi
7471
7472           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textbuf" >&5
7473 echo $ECHO_N "checking for --${enablestring:-enable}-textbuf... $ECHO_C" >&6; }
7474           # Check whether --enable-textbuf was given.
7475 if test "${enable_textbuf+set}" = set; then
7476   enableval=$enable_textbuf;
7477                           if test "$enableval" = yes; then
7478                             wx_cv_use_textbuf='wxUSE_TEXTBUFFER=yes'
7479                           else
7480                             wx_cv_use_textbuf='wxUSE_TEXTBUFFER=no'
7481                           fi
7482
7483 else
7484
7485                           wx_cv_use_textbuf='wxUSE_TEXTBUFFER=${'DEFAULT_wxUSE_TEXTBUFFER":-$defaultval}"
7486
7487 fi
7488
7489
7490           eval "$wx_cv_use_textbuf"
7491
7492           if test x"$enablestring" = xdisable; then
7493             if test $wxUSE_TEXTBUFFER = yes; then
7494               result=no
7495             else
7496               result=yes
7497             fi
7498           else
7499             result=$wxUSE_TEXTBUFFER
7500           fi
7501
7502           { echo "$as_me:$LINENO: result: $result" >&5
7503 echo "${ECHO_T}$result" >&6; }
7504
7505
7506           enablestring=
7507           defaultval=$wxUSE_ALL_FEATURES
7508           if test -z "$defaultval"; then
7509               if test x"$enablestring" = xdisable; then
7510                   defaultval=yes
7511               else
7512                   defaultval=no
7513               fi
7514           fi
7515
7516           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textfile" >&5
7517 echo $ECHO_N "checking for --${enablestring:-enable}-textfile... $ECHO_C" >&6; }
7518           # Check whether --enable-textfile was given.
7519 if test "${enable_textfile+set}" = set; then
7520   enableval=$enable_textfile;
7521                           if test "$enableval" = yes; then
7522                             wx_cv_use_textfile='wxUSE_TEXTFILE=yes'
7523                           else
7524                             wx_cv_use_textfile='wxUSE_TEXTFILE=no'
7525                           fi
7526
7527 else
7528
7529                           wx_cv_use_textfile='wxUSE_TEXTFILE=${'DEFAULT_wxUSE_TEXTFILE":-$defaultval}"
7530
7531 fi
7532
7533
7534           eval "$wx_cv_use_textfile"
7535
7536           if test x"$enablestring" = xdisable; then
7537             if test $wxUSE_TEXTFILE = yes; then
7538               result=no
7539             else
7540               result=yes
7541             fi
7542           else
7543             result=$wxUSE_TEXTFILE
7544           fi
7545
7546           { echo "$as_me:$LINENO: result: $result" >&5
7547 echo "${ECHO_T}$result" >&6; }
7548
7549
7550           enablestring=
7551           defaultval=$wxUSE_ALL_FEATURES
7552           if test -z "$defaultval"; then
7553               if test x"$enablestring" = xdisable; then
7554                   defaultval=yes
7555               else
7556                   defaultval=no
7557               fi
7558           fi
7559
7560           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-timer" >&5
7561 echo $ECHO_N "checking for --${enablestring:-enable}-timer... $ECHO_C" >&6; }
7562           # Check whether --enable-timer was given.
7563 if test "${enable_timer+set}" = set; then
7564   enableval=$enable_timer;
7565                           if test "$enableval" = yes; then
7566                             wx_cv_use_timer='wxUSE_TIMER=yes'
7567                           else
7568                             wx_cv_use_timer='wxUSE_TIMER=no'
7569                           fi
7570
7571 else
7572
7573                           wx_cv_use_timer='wxUSE_TIMER=${'DEFAULT_wxUSE_TIMER":-$defaultval}"
7574
7575 fi
7576
7577
7578           eval "$wx_cv_use_timer"
7579
7580           if test x"$enablestring" = xdisable; then
7581             if test $wxUSE_TIMER = yes; then
7582               result=no
7583             else
7584               result=yes
7585             fi
7586           else
7587             result=$wxUSE_TIMER
7588           fi
7589
7590           { echo "$as_me:$LINENO: result: $result" >&5
7591 echo "${ECHO_T}$result" >&6; }
7592
7593
7594           enablestring=
7595           defaultval=$wxUSE_ALL_FEATURES
7596           if test -z "$defaultval"; then
7597               if test x"$enablestring" = xdisable; then
7598                   defaultval=yes
7599               else
7600                   defaultval=no
7601               fi
7602           fi
7603
7604           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sound" >&5
7605 echo $ECHO_N "checking for --${enablestring:-enable}-sound... $ECHO_C" >&6; }
7606           # Check whether --enable-sound was given.
7607 if test "${enable_sound+set}" = set; then
7608   enableval=$enable_sound;
7609                           if test "$enableval" = yes; then
7610                             wx_cv_use_sound='wxUSE_SOUND=yes'
7611                           else
7612                             wx_cv_use_sound='wxUSE_SOUND=no'
7613                           fi
7614
7615 else
7616
7617                           wx_cv_use_sound='wxUSE_SOUND=${'DEFAULT_wxUSE_SOUND":-$defaultval}"
7618
7619 fi
7620
7621
7622           eval "$wx_cv_use_sound"
7623
7624           if test x"$enablestring" = xdisable; then
7625             if test $wxUSE_SOUND = yes; then
7626               result=no
7627             else
7628               result=yes
7629             fi
7630           else
7631             result=$wxUSE_SOUND
7632           fi
7633
7634           { echo "$as_me:$LINENO: result: $result" >&5
7635 echo "${ECHO_T}$result" >&6; }
7636
7637
7638           enablestring=
7639           defaultval=$wxUSE_ALL_FEATURES
7640           if test -z "$defaultval"; then
7641               if test x"$enablestring" = xdisable; then
7642                   defaultval=yes
7643               else
7644                   defaultval=no
7645               fi
7646           fi
7647
7648           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mediactrl" >&5
7649 echo $ECHO_N "checking for --${enablestring:-enable}-mediactrl... $ECHO_C" >&6; }
7650           # Check whether --enable-mediactrl was given.
7651 if test "${enable_mediactrl+set}" = set; then
7652   enableval=$enable_mediactrl;
7653                           if test "$enableval" = yes; then
7654                             wx_cv_use_mediactrl='wxUSE_MEDIACTRL=yes'
7655                           else
7656                             wx_cv_use_mediactrl='wxUSE_MEDIACTRL=no'
7657                           fi
7658
7659 else
7660
7661                           wx_cv_use_mediactrl='wxUSE_MEDIACTRL=${'DEFAULT_wxUSE_MEDIACTRL":-$defaultval}"
7662
7663 fi
7664
7665
7666           eval "$wx_cv_use_mediactrl"
7667
7668           if test x"$enablestring" = xdisable; then
7669             if test $wxUSE_MEDIACTRL = yes; then
7670               result=no
7671             else
7672               result=yes
7673             fi
7674           else
7675             result=$wxUSE_MEDIACTRL
7676           fi
7677
7678           { echo "$as_me:$LINENO: result: $result" >&5
7679 echo "${ECHO_T}$result" >&6; }
7680
7681
7682           enablestring=
7683           defaultval=$wxUSE_ALL_FEATURES
7684           if test -z "$defaultval"; then
7685               if test x"$enablestring" = xdisable; then
7686                   defaultval=yes
7687               else
7688                   defaultval=no
7689               fi
7690           fi
7691
7692           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gstreamer8" >&5
7693 echo $ECHO_N "checking for --${enablestring:-enable}-gstreamer8... $ECHO_C" >&6; }
7694           # Check whether --enable-gstreamer8 was given.
7695 if test "${enable_gstreamer8+set}" = set; then
7696   enableval=$enable_gstreamer8;
7697                           if test "$enableval" = yes; then
7698                             wx_cv_use_gstreamer8='wxUSE_GSTREAMER8=yes'
7699                           else
7700                             wx_cv_use_gstreamer8='wxUSE_GSTREAMER8=no'
7701                           fi
7702
7703 else
7704
7705                           wx_cv_use_gstreamer8='wxUSE_GSTREAMER8=${'DEFAULT_wxUSE_GSTREAMER8":-$defaultval}"
7706
7707 fi
7708
7709
7710           eval "$wx_cv_use_gstreamer8"
7711
7712           if test x"$enablestring" = xdisable; then
7713             if test $wxUSE_GSTREAMER8 = yes; then
7714               result=no
7715             else
7716               result=yes
7717             fi
7718           else
7719             result=$wxUSE_GSTREAMER8
7720           fi
7721
7722           { echo "$as_me:$LINENO: result: $result" >&5
7723 echo "${ECHO_T}$result" >&6; }
7724
7725
7726           enablestring=
7727           defaultval=$wxUSE_ALL_FEATURES
7728           if test -z "$defaultval"; then
7729               if test x"$enablestring" = xdisable; then
7730                   defaultval=yes
7731               else
7732                   defaultval=no
7733               fi
7734           fi
7735
7736           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printfposparam" >&5
7737 echo $ECHO_N "checking for --${enablestring:-enable}-printfposparam... $ECHO_C" >&6; }
7738           # Check whether --enable-printfposparam was given.
7739 if test "${enable_printfposparam+set}" = set; then
7740   enableval=$enable_printfposparam;
7741                           if test "$enableval" = yes; then
7742                             wx_cv_use_printfposparam='wxUSE_PRINTF_POS_PARAMS=yes'
7743                           else
7744                             wx_cv_use_printfposparam='wxUSE_PRINTF_POS_PARAMS=no'
7745                           fi
7746
7747 else
7748
7749                           wx_cv_use_printfposparam='wxUSE_PRINTF_POS_PARAMS=${'DEFAULT_wxUSE_PRINTF_POS_PARAMS":-$defaultval}"
7750
7751 fi
7752
7753
7754           eval "$wx_cv_use_printfposparam"
7755
7756           if test x"$enablestring" = xdisable; then
7757             if test $wxUSE_PRINTF_POS_PARAMS = yes; then
7758               result=no
7759             else
7760               result=yes
7761             fi
7762           else
7763             result=$wxUSE_PRINTF_POS_PARAMS
7764           fi
7765
7766           { echo "$as_me:$LINENO: result: $result" >&5
7767 echo "${ECHO_T}$result" >&6; }
7768
7769
7770           enablestring=
7771           defaultval=$wxUSE_ALL_FEATURES
7772           if test -z "$defaultval"; then
7773               if test x"$enablestring" = xdisable; then
7774                   defaultval=yes
7775               else
7776                   defaultval=no
7777               fi
7778           fi
7779
7780           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-zipstream" >&5
7781 echo $ECHO_N "checking for --${enablestring:-enable}-zipstream... $ECHO_C" >&6; }
7782           # Check whether --enable-zipstream was given.
7783 if test "${enable_zipstream+set}" = set; then
7784   enableval=$enable_zipstream;
7785                           if test "$enableval" = yes; then
7786                             wx_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
7787                           else
7788                             wx_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
7789                           fi
7790
7791 else
7792
7793                           wx_cv_use_zipstream='wxUSE_ZIPSTREAM=${'DEFAULT_wxUSE_ZIPSTREAM":-$defaultval}"
7794
7795 fi
7796
7797
7798           eval "$wx_cv_use_zipstream"
7799
7800           if test x"$enablestring" = xdisable; then
7801             if test $wxUSE_ZIPSTREAM = yes; then
7802               result=no
7803             else
7804               result=yes
7805             fi
7806           else
7807             result=$wxUSE_ZIPSTREAM
7808           fi
7809
7810           { echo "$as_me:$LINENO: result: $result" >&5
7811 echo "${ECHO_T}$result" >&6; }
7812
7813
7814
7815           enablestring=
7816           defaultval=$wxUSE_ALL_FEATURES
7817           if test -z "$defaultval"; then
7818               if test x"$enablestring" = xdisable; then
7819                   defaultval=yes
7820               else
7821                   defaultval=no
7822               fi
7823           fi
7824
7825           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-url" >&5
7826 echo $ECHO_N "checking for --${enablestring:-enable}-url... $ECHO_C" >&6; }
7827           # Check whether --enable-url was given.
7828 if test "${enable_url+set}" = set; then
7829   enableval=$enable_url;
7830                           if test "$enableval" = yes; then
7831                             wx_cv_use_url='wxUSE_URL=yes'
7832                           else
7833                             wx_cv_use_url='wxUSE_URL=no'
7834                           fi
7835
7836 else
7837
7838                           wx_cv_use_url='wxUSE_URL=${'DEFAULT_wxUSE_URL":-$defaultval}"
7839
7840 fi
7841
7842
7843           eval "$wx_cv_use_url"
7844
7845           if test x"$enablestring" = xdisable; then
7846             if test $wxUSE_URL = yes; then
7847               result=no
7848             else
7849               result=yes
7850             fi
7851           else
7852             result=$wxUSE_URL
7853           fi
7854
7855           { echo "$as_me:$LINENO: result: $result" >&5
7856 echo "${ECHO_T}$result" >&6; }
7857
7858
7859           enablestring=
7860           defaultval=$wxUSE_ALL_FEATURES
7861           if test -z "$defaultval"; then
7862               if test x"$enablestring" = xdisable; then
7863                   defaultval=yes
7864               else
7865                   defaultval=no
7866               fi
7867           fi
7868
7869           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-variant" >&5
7870 echo $ECHO_N "checking for --${enablestring:-enable}-variant... $ECHO_C" >&6; }
7871           # Check whether --enable-variant was given.
7872 if test "${enable_variant+set}" = set; then
7873   enableval=$enable_variant;
7874                           if test "$enableval" = yes; then
7875                             wx_cv_use_variant='wxUSE_VARIANT=yes'
7876                           else
7877                             wx_cv_use_variant='wxUSE_VARIANT=no'
7878                           fi
7879
7880 else
7881
7882                           wx_cv_use_variant='wxUSE_VARIANT=${'DEFAULT_wxUSE_VARIANT":-$defaultval}"
7883
7884 fi
7885
7886
7887           eval "$wx_cv_use_variant"
7888
7889           if test x"$enablestring" = xdisable; then
7890             if test $wxUSE_VARIANT = yes; then
7891               result=no
7892             else
7893               result=yes
7894             fi
7895           else
7896             result=$wxUSE_VARIANT
7897           fi
7898
7899           { echo "$as_me:$LINENO: result: $result" >&5
7900 echo "${ECHO_T}$result" >&6; }
7901
7902
7903           enablestring=
7904           defaultval=$wxUSE_ALL_FEATURES
7905           if test -z "$defaultval"; then
7906               if test x"$enablestring" = xdisable; then
7907                   defaultval=yes
7908               else
7909                   defaultval=no
7910               fi
7911           fi
7912
7913           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol" >&5
7914 echo $ECHO_N "checking for --${enablestring:-enable}-protocol... $ECHO_C" >&6; }
7915           # Check whether --enable-protocol was given.
7916 if test "${enable_protocol+set}" = set; then
7917   enableval=$enable_protocol;
7918                           if test "$enableval" = yes; then
7919                             wx_cv_use_protocol='wxUSE_PROTOCOL=yes'
7920                           else
7921                             wx_cv_use_protocol='wxUSE_PROTOCOL=no'
7922                           fi
7923
7924 else
7925
7926                           wx_cv_use_protocol='wxUSE_PROTOCOL=${'DEFAULT_wxUSE_PROTOCOL":-$defaultval}"
7927
7928 fi
7929
7930
7931           eval "$wx_cv_use_protocol"
7932
7933           if test x"$enablestring" = xdisable; then
7934             if test $wxUSE_PROTOCOL = yes; then
7935               result=no
7936             else
7937               result=yes
7938             fi
7939           else
7940             result=$wxUSE_PROTOCOL
7941           fi
7942
7943           { echo "$as_me:$LINENO: result: $result" >&5
7944 echo "${ECHO_T}$result" >&6; }
7945
7946
7947           enablestring=
7948           defaultval=$wxUSE_ALL_FEATURES
7949           if test -z "$defaultval"; then
7950               if test x"$enablestring" = xdisable; then
7951                   defaultval=yes
7952               else
7953                   defaultval=no
7954               fi
7955           fi
7956
7957           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_http" >&5
7958 echo $ECHO_N "checking for --${enablestring:-enable}-protocol_http... $ECHO_C" >&6; }
7959           # Check whether --enable-protocol_http was given.
7960 if test "${enable_protocol_http+set}" = set; then
7961   enableval=$enable_protocol_http;
7962                           if test "$enableval" = yes; then
7963                             wx_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes'
7964                           else
7965                             wx_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no'
7966                           fi
7967
7968 else
7969
7970                           wx_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=${'DEFAULT_wxUSE_PROTOCOL_HTTP":-$defaultval}"
7971
7972 fi
7973
7974
7975           eval "$wx_cv_use_protocol_http"
7976
7977           if test x"$enablestring" = xdisable; then
7978             if test $wxUSE_PROTOCOL_HTTP = yes; then
7979               result=no
7980             else
7981               result=yes
7982             fi
7983           else
7984             result=$wxUSE_PROTOCOL_HTTP
7985           fi
7986
7987           { echo "$as_me:$LINENO: result: $result" >&5
7988 echo "${ECHO_T}$result" >&6; }
7989
7990
7991           enablestring=
7992           defaultval=$wxUSE_ALL_FEATURES
7993           if test -z "$defaultval"; then
7994               if test x"$enablestring" = xdisable; then
7995                   defaultval=yes
7996               else
7997                   defaultval=no
7998               fi
7999           fi
8000
8001           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_ftp" >&5
8002 echo $ECHO_N "checking for --${enablestring:-enable}-protocol_ftp... $ECHO_C" >&6; }
8003           # Check whether --enable-protocol_ftp was given.
8004 if test "${enable_protocol_ftp+set}" = set; then
8005   enableval=$enable_protocol_ftp;
8006                           if test "$enableval" = yes; then
8007                             wx_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes'
8008                           else
8009                             wx_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no'
8010                           fi
8011
8012 else
8013
8014                           wx_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=${'DEFAULT_wxUSE_PROTOCOL_FTP":-$defaultval}"
8015
8016 fi
8017
8018
8019           eval "$wx_cv_use_protocol_ftp"
8020
8021           if test x"$enablestring" = xdisable; then
8022             if test $wxUSE_PROTOCOL_FTP = yes; then
8023               result=no
8024             else
8025               result=yes
8026             fi
8027           else
8028             result=$wxUSE_PROTOCOL_FTP
8029           fi
8030
8031           { echo "$as_me:$LINENO: result: $result" >&5
8032 echo "${ECHO_T}$result" >&6; }
8033
8034
8035           enablestring=
8036           defaultval=$wxUSE_ALL_FEATURES
8037           if test -z "$defaultval"; then
8038               if test x"$enablestring" = xdisable; then
8039                   defaultval=yes
8040               else
8041                   defaultval=no
8042               fi
8043           fi
8044
8045           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_file" >&5
8046 echo $ECHO_N "checking for --${enablestring:-enable}-protocol_file... $ECHO_C" >&6; }
8047           # Check whether --enable-protocol_file was given.
8048 if test "${enable_protocol_file+set}" = set; then
8049   enableval=$enable_protocol_file;
8050                           if test "$enableval" = yes; then
8051                             wx_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes'
8052                           else
8053                             wx_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no'
8054                           fi
8055
8056 else
8057
8058                           wx_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=${'DEFAULT_wxUSE_PROTOCOL_FILE":-$defaultval}"
8059
8060 fi
8061
8062
8063           eval "$wx_cv_use_protocol_file"
8064
8065           if test x"$enablestring" = xdisable; then
8066             if test $wxUSE_PROTOCOL_FILE = yes; then
8067               result=no
8068             else
8069               result=yes
8070             fi
8071           else
8072             result=$wxUSE_PROTOCOL_FILE
8073           fi
8074
8075           { echo "$as_me:$LINENO: result: $result" >&5
8076 echo "${ECHO_T}$result" >&6; }
8077
8078
8079
8080           enablestring=
8081           defaultval=$wxUSE_ALL_FEATURES
8082           if test -z "$defaultval"; then
8083               if test x"$enablestring" = xdisable; then
8084                   defaultval=yes
8085               else
8086                   defaultval=no
8087               fi
8088           fi
8089
8090           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-threads" >&5
8091 echo $ECHO_N "checking for --${enablestring:-enable}-threads... $ECHO_C" >&6; }
8092           # Check whether --enable-threads was given.
8093 if test "${enable_threads+set}" = set; then
8094   enableval=$enable_threads;
8095                           if test "$enableval" = yes; then
8096                             wx_cv_use_threads='wxUSE_THREADS=yes'
8097                           else
8098                             wx_cv_use_threads='wxUSE_THREADS=no'
8099                           fi
8100
8101 else
8102
8103                           wx_cv_use_threads='wxUSE_THREADS=${'DEFAULT_wxUSE_THREADS":-$defaultval}"
8104
8105 fi
8106
8107
8108           eval "$wx_cv_use_threads"
8109
8110           if test x"$enablestring" = xdisable; then
8111             if test $wxUSE_THREADS = yes; then
8112               result=no
8113             else
8114               result=yes
8115             fi
8116           else
8117             result=$wxUSE_THREADS
8118           fi
8119
8120           { echo "$as_me:$LINENO: result: $result" >&5
8121 echo "${ECHO_T}$result" >&6; }
8122
8123
8124
8125           enablestring=
8126           defaultval=
8127           if test -z "$defaultval"; then
8128               if test x"$enablestring" = xdisable; then
8129                   defaultval=yes
8130               else
8131                   defaultval=no
8132               fi
8133           fi
8134
8135           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-iniconf" >&5
8136 echo $ECHO_N "checking for --${enablestring:-enable}-iniconf... $ECHO_C" >&6; }
8137           # Check whether --enable-iniconf was given.
8138 if test "${enable_iniconf+set}" = set; then
8139   enableval=$enable_iniconf;
8140                           if test "$enableval" = yes; then
8141                             wx_cv_use_iniconf='wxUSE_INICONF=yes'
8142                           else
8143                             wx_cv_use_iniconf='wxUSE_INICONF=no'
8144                           fi
8145
8146 else
8147
8148                           wx_cv_use_iniconf='wxUSE_INICONF=${'DEFAULT_wxUSE_INICONF":-$defaultval}"
8149
8150 fi
8151
8152
8153           eval "$wx_cv_use_iniconf"
8154
8155           if test x"$enablestring" = xdisable; then
8156             if test $wxUSE_INICONF = yes; then
8157               result=no
8158             else
8159               result=yes
8160             fi
8161           else
8162             result=$wxUSE_INICONF
8163           fi
8164
8165           { echo "$as_me:$LINENO: result: $result" >&5
8166 echo "${ECHO_T}$result" >&6; }
8167
8168
8169           enablestring=
8170           defaultval=$wxUSE_ALL_FEATURES
8171           if test -z "$defaultval"; then
8172               if test x"$enablestring" = xdisable; then
8173                   defaultval=yes
8174               else
8175                   defaultval=no
8176               fi
8177           fi
8178
8179           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-regkey" >&5
8180 echo $ECHO_N "checking for --${enablestring:-enable}-regkey... $ECHO_C" >&6; }
8181           # Check whether --enable-regkey was given.
8182 if test "${enable_regkey+set}" = set; then
8183   enableval=$enable_regkey;
8184                           if test "$enableval" = yes; then
8185                             wx_cv_use_regkey='wxUSE_REGKEY=yes'
8186                           else
8187                             wx_cv_use_regkey='wxUSE_REGKEY=no'
8188                           fi
8189
8190 else
8191
8192                           wx_cv_use_regkey='wxUSE_REGKEY=${'DEFAULT_wxUSE_REGKEY":-$defaultval}"
8193
8194 fi
8195
8196
8197           eval "$wx_cv_use_regkey"
8198
8199           if test x"$enablestring" = xdisable; then
8200             if test $wxUSE_REGKEY = yes; then
8201               result=no
8202             else
8203               result=yes
8204             fi
8205           else
8206             result=$wxUSE_REGKEY
8207           fi
8208
8209           { echo "$as_me:$LINENO: result: $result" >&5
8210 echo "${ECHO_T}$result" >&6; }
8211
8212
8213 if test "$wxUSE_GUI" = "yes"; then
8214
8215
8216
8217           enablestring=
8218           defaultval=$wxUSE_ALL_FEATURES
8219           if test -z "$defaultval"; then
8220               if test x"$enablestring" = xdisable; then
8221                   defaultval=yes
8222               else
8223                   defaultval=no
8224               fi
8225           fi
8226
8227           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-docview" >&5
8228 echo $ECHO_N "checking for --${enablestring:-enable}-docview... $ECHO_C" >&6; }
8229           # Check whether --enable-docview was given.
8230 if test "${enable_docview+set}" = set; then
8231   enableval=$enable_docview;
8232                           if test "$enableval" = yes; then
8233                             wx_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
8234                           else
8235                             wx_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
8236                           fi
8237
8238 else
8239
8240                           wx_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=${'DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE":-$defaultval}"
8241
8242 fi
8243
8244
8245           eval "$wx_cv_use_docview"
8246
8247           if test x"$enablestring" = xdisable; then
8248             if test $wxUSE_DOC_VIEW_ARCHITECTURE = yes; then
8249               result=no
8250             else
8251               result=yes
8252             fi
8253           else
8254             result=$wxUSE_DOC_VIEW_ARCHITECTURE
8255           fi
8256
8257           { echo "$as_me:$LINENO: result: $result" >&5
8258 echo "${ECHO_T}$result" >&6; }
8259
8260
8261           enablestring=
8262           defaultval=$wxUSE_ALL_FEATURES
8263           if test -z "$defaultval"; then
8264               if test x"$enablestring" = xdisable; then
8265                   defaultval=yes
8266               else
8267                   defaultval=no
8268               fi
8269           fi
8270
8271           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-help" >&5
8272 echo $ECHO_N "checking for --${enablestring:-enable}-help... $ECHO_C" >&6; }
8273           # Check whether --enable-help was given.
8274 if test "${enable_help+set}" = set; then
8275   enableval=$enable_help;
8276                           if test "$enableval" = yes; then
8277                             wx_cv_use_help='wxUSE_HELP=yes'
8278                           else
8279                             wx_cv_use_help='wxUSE_HELP=no'
8280                           fi
8281
8282 else
8283
8284                           wx_cv_use_help='wxUSE_HELP=${'DEFAULT_wxUSE_HELP":-$defaultval}"
8285
8286 fi
8287
8288
8289           eval "$wx_cv_use_help"
8290
8291           if test x"$enablestring" = xdisable; then
8292             if test $wxUSE_HELP = yes; then
8293               result=no
8294             else
8295               result=yes
8296             fi
8297           else
8298             result=$wxUSE_HELP
8299           fi
8300
8301           { echo "$as_me:$LINENO: result: $result" >&5
8302 echo "${ECHO_T}$result" >&6; }
8303
8304
8305           enablestring=
8306           defaultval=$wxUSE_ALL_FEATURES
8307           if test -z "$defaultval"; then
8308               if test x"$enablestring" = xdisable; then
8309                   defaultval=yes
8310               else
8311                   defaultval=no
8312               fi
8313           fi
8314
8315           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mshtmlhelp" >&5
8316 echo $ECHO_N "checking for --${enablestring:-enable}-mshtmlhelp... $ECHO_C" >&6; }
8317           # Check whether --enable-mshtmlhelp was given.
8318 if test "${enable_mshtmlhelp+set}" = set; then
8319   enableval=$enable_mshtmlhelp;
8320                           if test "$enableval" = yes; then
8321                             wx_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes'
8322                           else
8323                             wx_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no'
8324                           fi
8325
8326 else
8327
8328                           wx_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=${'DEFAULT_wxUSE_MS_HTML_HELP":-$defaultval}"
8329
8330 fi
8331
8332
8333           eval "$wx_cv_use_mshtmlhelp"
8334
8335           if test x"$enablestring" = xdisable; then
8336             if test $wxUSE_MS_HTML_HELP = yes; then
8337               result=no
8338             else
8339               result=yes
8340             fi
8341           else
8342             result=$wxUSE_MS_HTML_HELP
8343           fi
8344
8345           { echo "$as_me:$LINENO: result: $result" >&5
8346 echo "${ECHO_T}$result" >&6; }
8347
8348
8349           enablestring=
8350           defaultval=$wxUSE_ALL_FEATURES
8351           if test -z "$defaultval"; then
8352               if test x"$enablestring" = xdisable; then
8353                   defaultval=yes
8354               else
8355                   defaultval=no
8356               fi
8357           fi
8358
8359           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-html" >&5
8360 echo $ECHO_N "checking for --${enablestring:-enable}-html... $ECHO_C" >&6; }
8361           # Check whether --enable-html was given.
8362 if test "${enable_html+set}" = set; then
8363   enableval=$enable_html;
8364                           if test "$enableval" = yes; then
8365                             wx_cv_use_html='wxUSE_HTML=yes'
8366                           else
8367                             wx_cv_use_html='wxUSE_HTML=no'
8368                           fi
8369
8370 else
8371
8372                           wx_cv_use_html='wxUSE_HTML=${'DEFAULT_wxUSE_HTML":-$defaultval}"
8373
8374 fi
8375
8376
8377           eval "$wx_cv_use_html"
8378
8379           if test x"$enablestring" = xdisable; then
8380             if test $wxUSE_HTML = yes; then
8381               result=no
8382             else
8383               result=yes
8384             fi
8385           else
8386             result=$wxUSE_HTML
8387           fi
8388
8389           { echo "$as_me:$LINENO: result: $result" >&5
8390 echo "${ECHO_T}$result" >&6; }
8391
8392
8393           enablestring=
8394           defaultval=$wxUSE_ALL_FEATURES
8395           if test -z "$defaultval"; then
8396               if test x"$enablestring" = xdisable; then
8397                   defaultval=yes
8398               else
8399                   defaultval=no
8400               fi
8401           fi
8402
8403           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-htmlhelp" >&5
8404 echo $ECHO_N "checking for --${enablestring:-enable}-htmlhelp... $ECHO_C" >&6; }
8405           # Check whether --enable-htmlhelp was given.
8406 if test "${enable_htmlhelp+set}" = set; then
8407   enableval=$enable_htmlhelp;
8408                           if test "$enableval" = yes; then
8409                             wx_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes'
8410                           else
8411                             wx_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no'
8412                           fi
8413
8414 else
8415
8416                           wx_cv_use_htmlhelp='wxUSE_WXHTML_HELP=${'DEFAULT_wxUSE_WXHTML_HELP":-$defaultval}"
8417
8418 fi
8419
8420
8421           eval "$wx_cv_use_htmlhelp"
8422
8423           if test x"$enablestring" = xdisable; then
8424             if test $wxUSE_WXHTML_HELP = yes; then
8425               result=no
8426             else
8427               result=yes
8428             fi
8429           else
8430             result=$wxUSE_WXHTML_HELP
8431           fi
8432
8433           { echo "$as_me:$LINENO: result: $result" >&5
8434 echo "${ECHO_T}$result" >&6; }
8435
8436
8437           enablestring=
8438           defaultval=$wxUSE_ALL_FEATURES
8439           if test -z "$defaultval"; then
8440               if test x"$enablestring" = xdisable; then
8441                   defaultval=yes
8442               else
8443                   defaultval=no
8444               fi
8445           fi
8446
8447           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xrc" >&5
8448 echo $ECHO_N "checking for --${enablestring:-enable}-xrc... $ECHO_C" >&6; }
8449           # Check whether --enable-xrc was given.
8450 if test "${enable_xrc+set}" = set; then
8451   enableval=$enable_xrc;
8452                           if test "$enableval" = yes; then
8453                             wx_cv_use_xrc='wxUSE_XRC=yes'
8454                           else
8455                             wx_cv_use_xrc='wxUSE_XRC=no'
8456                           fi
8457
8458 else
8459
8460                           wx_cv_use_xrc='wxUSE_XRC=${'DEFAULT_wxUSE_XRC":-$defaultval}"
8461
8462 fi
8463
8464
8465           eval "$wx_cv_use_xrc"
8466
8467           if test x"$enablestring" = xdisable; then
8468             if test $wxUSE_XRC = yes; then
8469               result=no
8470             else
8471               result=yes
8472             fi
8473           else
8474             result=$wxUSE_XRC
8475           fi
8476
8477           { echo "$as_me:$LINENO: result: $result" >&5
8478 echo "${ECHO_T}$result" >&6; }
8479
8480
8481           enablestring=
8482           defaultval=$wxUSE_ALL_FEATURES
8483           if test -z "$defaultval"; then
8484               if test x"$enablestring" = xdisable; then
8485                   defaultval=yes
8486               else
8487                   defaultval=no
8488               fi
8489           fi
8490
8491           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-aui" >&5
8492 echo $ECHO_N "checking for --${enablestring:-enable}-aui... $ECHO_C" >&6; }
8493           # Check whether --enable-aui was given.
8494 if test "${enable_aui+set}" = set; then
8495   enableval=$enable_aui;
8496                           if test "$enableval" = yes; then
8497                             wx_cv_use_aui='wxUSE_AUI=yes'
8498                           else
8499                             wx_cv_use_aui='wxUSE_AUI=no'
8500                           fi
8501
8502 else
8503
8504                           wx_cv_use_aui='wxUSE_AUI=${'DEFAULT_wxUSE_AUI":-$defaultval}"
8505
8506 fi
8507
8508
8509           eval "$wx_cv_use_aui"
8510
8511           if test x"$enablestring" = xdisable; then
8512             if test $wxUSE_AUI = yes; then
8513               result=no
8514             else
8515               result=yes
8516             fi
8517           else
8518             result=$wxUSE_AUI
8519           fi
8520
8521           { echo "$as_me:$LINENO: result: $result" >&5
8522 echo "${ECHO_T}$result" >&6; }
8523
8524
8525           enablestring=
8526           defaultval=$wxUSE_ALL_FEATURES
8527           if test -z "$defaultval"; then
8528               if test x"$enablestring" = xdisable; then
8529                   defaultval=yes
8530               else
8531                   defaultval=no
8532               fi
8533           fi
8534
8535           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stc" >&5
8536 echo $ECHO_N "checking for --${enablestring:-enable}-stc... $ECHO_C" >&6; }
8537           # Check whether --enable-stc was given.
8538 if test "${enable_stc+set}" = set; then
8539   enableval=$enable_stc;
8540                           if test "$enableval" = yes; then
8541                             wx_cv_use_stc='wxUSE_STC=yes'
8542                           else
8543                             wx_cv_use_stc='wxUSE_STC=no'
8544                           fi
8545
8546 else
8547
8548                           wx_cv_use_stc='wxUSE_STC=${'DEFAULT_wxUSE_STC":-$defaultval}"
8549
8550 fi
8551
8552
8553           eval "$wx_cv_use_stc"
8554
8555           if test x"$enablestring" = xdisable; then
8556             if test $wxUSE_STC = yes; then
8557               result=no
8558             else
8559               result=yes
8560             fi
8561           else
8562             result=$wxUSE_STC
8563           fi
8564
8565           { echo "$as_me:$LINENO: result: $result" >&5
8566 echo "${ECHO_T}$result" >&6; }
8567
8568
8569           enablestring=
8570           defaultval=$wxUSE_ALL_FEATURES
8571           if test -z "$defaultval"; then
8572               if test x"$enablestring" = xdisable; then
8573                   defaultval=yes
8574               else
8575                   defaultval=no
8576               fi
8577           fi
8578
8579           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-constraints" >&5
8580 echo $ECHO_N "checking for --${enablestring:-enable}-constraints... $ECHO_C" >&6; }
8581           # Check whether --enable-constraints was given.
8582 if test "${enable_constraints+set}" = set; then
8583   enableval=$enable_constraints;
8584                           if test "$enableval" = yes; then
8585                             wx_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
8586                           else
8587                             wx_cv_use_constraints='wxUSE_CONSTRAINTS=no'
8588                           fi
8589
8590 else
8591
8592                           wx_cv_use_constraints='wxUSE_CONSTRAINTS=${'DEFAULT_wxUSE_CONSTRAINTS":-$defaultval}"
8593
8594 fi
8595
8596
8597           eval "$wx_cv_use_constraints"
8598
8599           if test x"$enablestring" = xdisable; then
8600             if test $wxUSE_CONSTRAINTS = yes; then
8601               result=no
8602             else
8603               result=yes
8604             fi
8605           else
8606             result=$wxUSE_CONSTRAINTS
8607           fi
8608
8609           { echo "$as_me:$LINENO: result: $result" >&5
8610 echo "${ECHO_T}$result" >&6; }
8611
8612
8613           enablestring=
8614           defaultval=$wxUSE_ALL_FEATURES
8615           if test -z "$defaultval"; then
8616               if test x"$enablestring" = xdisable; then
8617                   defaultval=yes
8618               else
8619                   defaultval=no
8620               fi
8621           fi
8622
8623           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printarch" >&5
8624 echo $ECHO_N "checking for --${enablestring:-enable}-printarch... $ECHO_C" >&6; }
8625           # Check whether --enable-printarch was given.
8626 if test "${enable_printarch+set}" = set; then
8627   enableval=$enable_printarch;
8628                           if test "$enableval" = yes; then
8629                             wx_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
8630                           else
8631                             wx_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
8632                           fi
8633
8634 else
8635
8636                           wx_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=${'DEFAULT_wxUSE_PRINTING_ARCHITECTURE":-$defaultval}"
8637
8638 fi
8639
8640
8641           eval "$wx_cv_use_printarch"
8642
8643           if test x"$enablestring" = xdisable; then
8644             if test $wxUSE_PRINTING_ARCHITECTURE = yes; then
8645               result=no
8646             else
8647               result=yes
8648             fi
8649           else
8650             result=$wxUSE_PRINTING_ARCHITECTURE
8651           fi
8652
8653           { echo "$as_me:$LINENO: result: $result" >&5
8654 echo "${ECHO_T}$result" >&6; }
8655
8656
8657           enablestring=
8658           defaultval=$wxUSE_ALL_FEATURES
8659           if test -z "$defaultval"; then
8660               if test x"$enablestring" = xdisable; then
8661                   defaultval=yes
8662               else
8663                   defaultval=no
8664               fi
8665           fi
8666
8667           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdi" >&5
8668 echo $ECHO_N "checking for --${enablestring:-enable}-mdi... $ECHO_C" >&6; }
8669           # Check whether --enable-mdi was given.
8670 if test "${enable_mdi+set}" = set; then
8671   enableval=$enable_mdi;
8672                           if test "$enableval" = yes; then
8673                             wx_cv_use_mdi='wxUSE_MDI=yes'
8674                           else
8675                             wx_cv_use_mdi='wxUSE_MDI=no'
8676                           fi
8677
8678 else
8679
8680                           wx_cv_use_mdi='wxUSE_MDI=${'DEFAULT_wxUSE_MDI":-$defaultval}"
8681
8682 fi
8683
8684
8685           eval "$wx_cv_use_mdi"
8686
8687           if test x"$enablestring" = xdisable; then
8688             if test $wxUSE_MDI = yes; then
8689               result=no
8690             else
8691               result=yes
8692             fi
8693           else
8694             result=$wxUSE_MDI
8695           fi
8696
8697           { echo "$as_me:$LINENO: result: $result" >&5
8698 echo "${ECHO_T}$result" >&6; }
8699
8700
8701           enablestring=
8702           defaultval=$wxUSE_ALL_FEATURES
8703           if test -z "$defaultval"; then
8704               if test x"$enablestring" = xdisable; then
8705                   defaultval=yes
8706               else
8707                   defaultval=no
8708               fi
8709           fi
8710
8711           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdidoc" >&5
8712 echo $ECHO_N "checking for --${enablestring:-enable}-mdidoc... $ECHO_C" >&6; }
8713           # Check whether --enable-mdidoc was given.
8714 if test "${enable_mdidoc+set}" = set; then
8715   enableval=$enable_mdidoc;
8716                           if test "$enableval" = yes; then
8717                             wx_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=yes'
8718                           else
8719                             wx_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=no'
8720                           fi
8721
8722 else
8723
8724                           wx_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=${'DEFAULT_wxUSE_MDI_ARCHITECTURE":-$defaultval}"
8725
8726 fi
8727
8728
8729           eval "$wx_cv_use_mdidoc"
8730
8731           if test x"$enablestring" = xdisable; then
8732             if test $wxUSE_MDI_ARCHITECTURE = yes; then
8733               result=no
8734             else
8735               result=yes
8736             fi
8737           else
8738             result=$wxUSE_MDI_ARCHITECTURE
8739           fi
8740
8741           { echo "$as_me:$LINENO: result: $result" >&5
8742 echo "${ECHO_T}$result" >&6; }
8743
8744
8745           enablestring=
8746           defaultval=$wxUSE_ALL_FEATURES
8747           if test -z "$defaultval"; then
8748               if test x"$enablestring" = xdisable; then
8749                   defaultval=yes
8750               else
8751                   defaultval=no
8752               fi
8753           fi
8754
8755           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-loggui" >&5
8756 echo $ECHO_N "checking for --${enablestring:-enable}-loggui... $ECHO_C" >&6; }
8757           # Check whether --enable-loggui was given.
8758 if test "${enable_loggui+set}" = set; then
8759   enableval=$enable_loggui;
8760                           if test "$enableval" = yes; then
8761                             wx_cv_use_loggui='wxUSE_LOGGUI=yes'
8762                           else
8763                             wx_cv_use_loggui='wxUSE_LOGGUI=no'
8764                           fi
8765
8766 else
8767
8768                           wx_cv_use_loggui='wxUSE_LOGGUI=${'DEFAULT_wxUSE_LOGGUI":-$defaultval}"
8769
8770 fi
8771
8772
8773           eval "$wx_cv_use_loggui"
8774
8775           if test x"$enablestring" = xdisable; then
8776             if test $wxUSE_LOGGUI = yes; then
8777               result=no
8778             else
8779               result=yes
8780             fi
8781           else
8782             result=$wxUSE_LOGGUI
8783           fi
8784
8785           { echo "$as_me:$LINENO: result: $result" >&5
8786 echo "${ECHO_T}$result" >&6; }
8787
8788
8789           enablestring=
8790           defaultval=$wxUSE_ALL_FEATURES
8791           if test -z "$defaultval"; then
8792               if test x"$enablestring" = xdisable; then
8793                   defaultval=yes
8794               else
8795                   defaultval=no
8796               fi
8797           fi
8798
8799           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logwin" >&5
8800 echo $ECHO_N "checking for --${enablestring:-enable}-logwin... $ECHO_C" >&6; }
8801           # Check whether --enable-logwin was given.
8802 if test "${enable_logwin+set}" = set; then
8803   enableval=$enable_logwin;
8804                           if test "$enableval" = yes; then
8805                             wx_cv_use_logwin='wxUSE_LOGWINDOW=yes'
8806                           else
8807                             wx_cv_use_logwin='wxUSE_LOGWINDOW=no'
8808                           fi
8809
8810 else
8811
8812                           wx_cv_use_logwin='wxUSE_LOGWINDOW=${'DEFAULT_wxUSE_LOGWINDOW":-$defaultval}"
8813
8814 fi
8815
8816
8817           eval "$wx_cv_use_logwin"
8818
8819           if test x"$enablestring" = xdisable; then
8820             if test $wxUSE_LOGWINDOW = yes; then
8821               result=no
8822             else
8823               result=yes
8824             fi
8825           else
8826             result=$wxUSE_LOGWINDOW
8827           fi
8828
8829           { echo "$as_me:$LINENO: result: $result" >&5
8830 echo "${ECHO_T}$result" >&6; }
8831
8832
8833           enablestring=
8834           defaultval=$wxUSE_ALL_FEATURES
8835           if test -z "$defaultval"; then
8836               if test x"$enablestring" = xdisable; then
8837                   defaultval=yes
8838               else
8839                   defaultval=no
8840               fi
8841           fi
8842
8843           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logdialog" >&5
8844 echo $ECHO_N "checking for --${enablestring:-enable}-logdialog... $ECHO_C" >&6; }
8845           # Check whether --enable-logdialog was given.
8846 if test "${enable_logdialog+set}" = set; then
8847   enableval=$enable_logdialog;
8848                           if test "$enableval" = yes; then
8849                             wx_cv_use_logdialog='wxUSE_LOGDIALOG=yes'
8850                           else
8851                             wx_cv_use_logdialog='wxUSE_LOGDIALOG=no'
8852                           fi
8853
8854 else
8855
8856                           wx_cv_use_logdialog='wxUSE_LOGDIALOG=${'DEFAULT_wxUSE_LOGDIALOG":-$defaultval}"
8857
8858 fi
8859
8860
8861           eval "$wx_cv_use_logdialog"
8862
8863           if test x"$enablestring" = xdisable; then
8864             if test $wxUSE_LOGDIALOG = yes; then
8865               result=no
8866             else
8867               result=yes
8868             fi
8869           else
8870             result=$wxUSE_LOGDIALOG
8871           fi
8872
8873           { echo "$as_me:$LINENO: result: $result" >&5
8874 echo "${ECHO_T}$result" >&6; }
8875
8876
8877           enablestring=
8878           defaultval=$wxUSE_ALL_FEATURES
8879           if test -z "$defaultval"; then
8880               if test x"$enablestring" = xdisable; then
8881                   defaultval=yes
8882               else
8883                   defaultval=no
8884               fi
8885           fi
8886
8887           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-webkit" >&5
8888 echo $ECHO_N "checking for --${enablestring:-enable}-webkit... $ECHO_C" >&6; }
8889           # Check whether --enable-webkit was given.
8890 if test "${enable_webkit+set}" = set; then
8891   enableval=$enable_webkit;
8892                           if test "$enableval" = yes; then
8893                             wx_cv_use_webkit='wxUSE_WEBKIT=yes'
8894                           else
8895                             wx_cv_use_webkit='wxUSE_WEBKIT=no'
8896                           fi
8897
8898 else
8899
8900                           wx_cv_use_webkit='wxUSE_WEBKIT=${'DEFAULT_wxUSE_WEBKIT":-$defaultval}"
8901
8902 fi
8903
8904
8905           eval "$wx_cv_use_webkit"
8906
8907           if test x"$enablestring" = xdisable; then
8908             if test $wxUSE_WEBKIT = yes; then
8909               result=no
8910             else
8911               result=yes
8912             fi
8913           else
8914             result=$wxUSE_WEBKIT
8915           fi
8916
8917           { echo "$as_me:$LINENO: result: $result" >&5
8918 echo "${ECHO_T}$result" >&6; }
8919
8920
8921           enablestring=
8922           defaultval=$wxUSE_ALL_FEATURES
8923           if test -z "$defaultval"; then
8924               if test x"$enablestring" = xdisable; then
8925                   defaultval=yes
8926               else
8927                   defaultval=no
8928               fi
8929           fi
8930
8931           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-richtext" >&5
8932 echo $ECHO_N "checking for --${enablestring:-enable}-richtext... $ECHO_C" >&6; }
8933           # Check whether --enable-richtext was given.
8934 if test "${enable_richtext+set}" = set; then
8935   enableval=$enable_richtext;
8936                           if test "$enableval" = yes; then
8937                             wx_cv_use_richtext='wxUSE_RICHTEXT=yes'
8938                           else
8939                             wx_cv_use_richtext='wxUSE_RICHTEXT=no'
8940                           fi
8941
8942 else
8943
8944                           wx_cv_use_richtext='wxUSE_RICHTEXT=${'DEFAULT_wxUSE_RICHTEXT":-$defaultval}"
8945
8946 fi
8947
8948
8949           eval "$wx_cv_use_richtext"
8950
8951           if test x"$enablestring" = xdisable; then
8952             if test $wxUSE_RICHTEXT = yes; then
8953               result=no
8954             else
8955               result=yes
8956             fi
8957           else
8958             result=$wxUSE_RICHTEXT
8959           fi
8960
8961           { echo "$as_me:$LINENO: result: $result" >&5
8962 echo "${ECHO_T}$result" >&6; }
8963
8964
8965           enablestring=
8966           defaultval=$wxUSE_ALL_FEATURES
8967           if test -z "$defaultval"; then
8968               if test x"$enablestring" = xdisable; then
8969                   defaultval=yes
8970               else
8971                   defaultval=no
8972               fi
8973           fi
8974
8975           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-graphics_ctx" >&5
8976 echo $ECHO_N "checking for --${enablestring:-enable}-graphics_ctx... $ECHO_C" >&6; }
8977           # Check whether --enable-graphics_ctx was given.
8978 if test "${enable_graphics_ctx+set}" = set; then
8979   enableval=$enable_graphics_ctx;
8980                           if test "$enableval" = yes; then
8981                             wx_cv_use_graphics_ctx='wxUSE_GRAPHICS_CONTEXT=yes'
8982                           else
8983                             wx_cv_use_graphics_ctx='wxUSE_GRAPHICS_CONTEXT=no'
8984                           fi
8985
8986 else
8987
8988                           wx_cv_use_graphics_ctx='wxUSE_GRAPHICS_CONTEXT=${'DEFAULT_wxUSE_GRAPHICS_CONTEXT":-$defaultval}"
8989
8990 fi
8991
8992
8993           eval "$wx_cv_use_graphics_ctx"
8994
8995           if test x"$enablestring" = xdisable; then
8996             if test $wxUSE_GRAPHICS_CONTEXT = yes; then
8997               result=no
8998             else
8999               result=yes
9000             fi
9001           else
9002             result=$wxUSE_GRAPHICS_CONTEXT
9003           fi
9004
9005           { echo "$as_me:$LINENO: result: $result" >&5
9006 echo "${ECHO_T}$result" >&6; }
9007
9008
9009           enablestring=
9010           defaultval=$wxUSE_ALL_FEATURES
9011           if test -z "$defaultval"; then
9012               if test x"$enablestring" = xdisable; then
9013                   defaultval=yes
9014               else
9015                   defaultval=no
9016               fi
9017           fi
9018
9019           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-postscript" >&5
9020 echo $ECHO_N "checking for --${enablestring:-enable}-postscript... $ECHO_C" >&6; }
9021           # Check whether --enable-postscript was given.
9022 if test "${enable_postscript+set}" = set; then
9023   enableval=$enable_postscript;
9024                           if test "$enableval" = yes; then
9025                             wx_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
9026                           else
9027                             wx_cv_use_postscript='wxUSE_POSTSCRIPT=no'
9028                           fi
9029
9030 else
9031
9032                           wx_cv_use_postscript='wxUSE_POSTSCRIPT=${'DEFAULT_wxUSE_POSTSCRIPT":-$defaultval}"
9033
9034 fi
9035
9036
9037           eval "$wx_cv_use_postscript"
9038
9039           if test x"$enablestring" = xdisable; then
9040             if test $wxUSE_POSTSCRIPT = yes; then
9041               result=no
9042             else
9043               result=yes
9044             fi
9045           else
9046             result=$wxUSE_POSTSCRIPT
9047           fi
9048
9049           { echo "$as_me:$LINENO: result: $result" >&5
9050 echo "${ECHO_T}$result" >&6; }
9051
9052
9053           enablestring=
9054           defaultval=$wxUSE_ALL_FEATURES
9055           if test -z "$defaultval"; then
9056               if test x"$enablestring" = xdisable; then
9057                   defaultval=yes
9058               else
9059                   defaultval=no
9060               fi
9061           fi
9062
9063           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-svg" >&5
9064 echo $ECHO_N "checking for --${enablestring:-enable}-svg... $ECHO_C" >&6; }
9065           # Check whether --enable-svg was given.
9066 if test "${enable_svg+set}" = set; then
9067   enableval=$enable_svg;
9068                           if test "$enableval" = yes; then
9069                             wx_cv_use_svg='wxUSE_SVG=yes'
9070                           else
9071                             wx_cv_use_svg='wxUSE_SVG=no'
9072                           fi
9073
9074 else
9075
9076                           wx_cv_use_svg='wxUSE_SVG=${'DEFAULT_wxUSE_SVG":-$defaultval}"
9077
9078 fi
9079
9080
9081           eval "$wx_cv_use_svg"
9082
9083           if test x"$enablestring" = xdisable; then
9084             if test $wxUSE_SVG = yes; then
9085               result=no
9086             else
9087               result=yes
9088             fi
9089           else
9090             result=$wxUSE_SVG
9091           fi
9092
9093           { echo "$as_me:$LINENO: result: $result" >&5
9094 echo "${ECHO_T}$result" >&6; }
9095
9096
9097
9098
9099           enablestring=
9100           defaultval=$wxUSE_ALL_FEATURES
9101           if test -z "$defaultval"; then
9102               if test x"$enablestring" = xdisable; then
9103                   defaultval=yes
9104               else
9105                   defaultval=no
9106               fi
9107           fi
9108
9109           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-clipboard" >&5
9110 echo $ECHO_N "checking for --${enablestring:-enable}-clipboard... $ECHO_C" >&6; }
9111           # Check whether --enable-clipboard was given.
9112 if test "${enable_clipboard+set}" = set; then
9113   enableval=$enable_clipboard;
9114                           if test "$enableval" = yes; then
9115                             wx_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
9116                           else
9117                             wx_cv_use_clipboard='wxUSE_CLIPBOARD=no'
9118                           fi
9119
9120 else
9121
9122                           wx_cv_use_clipboard='wxUSE_CLIPBOARD=${'DEFAULT_wxUSE_CLIPBOARD":-$defaultval}"
9123
9124 fi
9125
9126
9127           eval "$wx_cv_use_clipboard"
9128
9129           if test x"$enablestring" = xdisable; then
9130             if test $wxUSE_CLIPBOARD = yes; then
9131               result=no
9132             else
9133               result=yes
9134             fi
9135           else
9136             result=$wxUSE_CLIPBOARD
9137           fi
9138
9139           { echo "$as_me:$LINENO: result: $result" >&5
9140 echo "${ECHO_T}$result" >&6; }
9141
9142
9143           enablestring=
9144           defaultval=$wxUSE_ALL_FEATURES
9145           if test -z "$defaultval"; then
9146               if test x"$enablestring" = xdisable; then
9147                   defaultval=yes
9148               else
9149                   defaultval=no
9150               fi
9151           fi
9152
9153           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dnd" >&5
9154 echo $ECHO_N "checking for --${enablestring:-enable}-dnd... $ECHO_C" >&6; }
9155           # Check whether --enable-dnd was given.
9156 if test "${enable_dnd+set}" = set; then
9157   enableval=$enable_dnd;
9158                           if test "$enableval" = yes; then
9159                             wx_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
9160                           else
9161                             wx_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
9162                           fi
9163
9164 else
9165
9166                           wx_cv_use_dnd='wxUSE_DRAG_AND_DROP=${'DEFAULT_wxUSE_DRAG_AND_DROP":-$defaultval}"
9167
9168 fi
9169
9170
9171           eval "$wx_cv_use_dnd"
9172
9173           if test x"$enablestring" = xdisable; then
9174             if test $wxUSE_DRAG_AND_DROP = yes; then
9175               result=no
9176             else
9177               result=yes
9178             fi
9179           else
9180             result=$wxUSE_DRAG_AND_DROP
9181           fi
9182
9183           { echo "$as_me:$LINENO: result: $result" >&5
9184 echo "${ECHO_T}$result" >&6; }
9185
9186
9187           enablestring=
9188           defaultval=$wxUSE_ALL_FEATURES
9189           if test -z "$defaultval"; then
9190               if test x"$enablestring" = xdisable; then
9191                   defaultval=yes
9192               else
9193                   defaultval=no
9194               fi
9195           fi
9196
9197           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
9198 echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6; }
9199           # Check whether --enable-metafile was given.
9200 if test "${enable_metafile+set}" = set; then
9201   enableval=$enable_metafile;
9202                           if test "$enableval" = yes; then
9203                             wx_cv_use_metafile='wxUSE_METAFILE=yes'
9204                           else
9205                             wx_cv_use_metafile='wxUSE_METAFILE=no'
9206                           fi
9207
9208 else
9209
9210                           wx_cv_use_metafile='wxUSE_METAFILE=${'DEFAULT_wxUSE_METAFILE":-$defaultval}"
9211
9212 fi
9213
9214
9215           eval "$wx_cv_use_metafile"
9216
9217           if test x"$enablestring" = xdisable; then
9218             if test $wxUSE_METAFILE = yes; then
9219               result=no
9220             else
9221               result=yes
9222             fi
9223           else
9224             result=$wxUSE_METAFILE
9225           fi
9226
9227           { echo "$as_me:$LINENO: result: $result" >&5
9228 echo "${ECHO_T}$result" >&6; }
9229
9230
9231
9232 DEFAULT_wxUSE_CONTROLS=none
9233
9234           enablestring=disable
9235           defaultval=
9236           if test -z "$defaultval"; then
9237               if test x"$enablestring" = xdisable; then
9238                   defaultval=yes
9239               else
9240                   defaultval=no
9241               fi
9242           fi
9243
9244           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-controls" >&5
9245 echo $ECHO_N "checking for --${enablestring:-enable}-controls... $ECHO_C" >&6; }
9246           # Check whether --enable-controls was given.
9247 if test "${enable_controls+set}" = set; then
9248   enableval=$enable_controls;
9249                           if test "$enableval" = yes; then
9250                             wx_cv_use_controls='wxUSE_CONTROLS=yes'
9251                           else
9252                             wx_cv_use_controls='wxUSE_CONTROLS=no'
9253                           fi
9254
9255 else
9256
9257                           wx_cv_use_controls='wxUSE_CONTROLS=${'DEFAULT_wxUSE_CONTROLS":-$defaultval}"
9258
9259 fi
9260
9261
9262           eval "$wx_cv_use_controls"
9263
9264           if test x"$enablestring" = xdisable; then
9265             if test $wxUSE_CONTROLS = yes; then
9266               result=no
9267             else
9268               result=yes
9269             fi
9270           else
9271             result=$wxUSE_CONTROLS
9272           fi
9273
9274           { echo "$as_me:$LINENO: result: $result" >&5
9275 echo "${ECHO_T}$result" >&6; }
9276
9277
9278 if test "$wxUSE_CONTROLS" = "yes"; then
9279   DEFAULT_wxUSE_ACCEL=yes
9280   DEFAULT_wxUSE_ANIMATIONCTRL=yes
9281   DEFAULT_wxUSE_BMPBUTTON=yes
9282   DEFAULT_wxUSE_BUTTON=yes
9283   DEFAULT_wxUSE_CALCTRL=yes
9284   DEFAULT_wxUSE_CARET=yes
9285   DEFAULT_wxUSE_COMBOBOX=yes
9286   DEFAULT_wxUSE_CHECKBOX=yes
9287   DEFAULT_wxUSE_CHECKLISTBOX=yes
9288   DEFAULT_wxUSE_CHOICE=yes
9289   DEFAULT_wxUSE_CHOICEBOOK=yes
9290   DEFAULT_wxUSE_COLLPANE=yes
9291   DEFAULT_wxUSE_COLOURPICKERCTRL=yes
9292   DEFAULT_wxUSE_COMBOBOX=yes
9293   DEFAULT_wxUSE_DATEPICKCTRL=yes
9294   DEFAULT_wxUSE_DISPLAY=yes
9295   DEFAULT_wxUSE_DETECT_SM=yes
9296   DEFAULT_wxUSE_DIRPICKERCTRL=yes
9297   DEFAULT_wxUSE_FILECTRL=yes
9298   DEFAULT_wxUSE_FILEPICKERCTRL=yes
9299   DEFAULT_wxUSE_FONTPICKERCTRL=yes
9300   DEFAULT_wxUSE_GAUGE=yes
9301   DEFAULT_wxUSE_GRID=yes
9302   DEFAULT_wxUSE_HYPERLINKCTRL=yes
9303   DEFAULT_wxUSE_DATAVIEWCTRL=yes
9304   DEFAULT_wxUSE_IMAGLIST=yes
9305   DEFAULT_wxUSE_LISTBOOK=yes
9306   DEFAULT_wxUSE_LISTBOX=yes
9307   DEFAULT_wxUSE_LISTCTRL=yes
9308   DEFAULT_wxUSE_NOTEBOOK=yes
9309   DEFAULT_wxUSE_RADIOBOX=yes
9310   DEFAULT_wxUSE_RADIOBTN=yes
9311   DEFAULT_wxUSE_SASH=yes
9312   DEFAULT_wxUSE_SCROLLBAR=yes
9313   DEFAULT_wxUSE_SEARCHCTRL=yes
9314   DEFAULT_wxUSE_SLIDER=yes
9315   DEFAULT_wxUSE_SPINBTN=yes
9316   DEFAULT_wxUSE_SPINCTRL=yes
9317   DEFAULT_wxUSE_SPLITTER=yes
9318   DEFAULT_wxUSE_STATBMP=yes
9319   DEFAULT_wxUSE_STATBOX=yes
9320   DEFAULT_wxUSE_STATLINE=yes
9321   DEFAULT_wxUSE_STATUSBAR=yes
9322   DEFAULT_wxUSE_TAB_DIALOG=yes
9323   DEFAULT_wxUSE_TOGGLEBTN=yes
9324   DEFAULT_wxUSE_TOOLBAR=yes
9325   DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
9326   DEFAULT_wxUSE_TOOLTIPS=yes
9327   DEFAULT_wxUSE_TREEBOOK=yes
9328   DEFAULT_wxUSE_TOOLBOOK=yes
9329   DEFAULT_wxUSE_TREECTRL=yes
9330   DEFAULT_wxUSE_POPUPWIN=yes
9331   DEFAULT_wxUSE_TIPWINDOW=yes
9332 elif test "$wxUSE_CONTROLS" = "no"; then
9333   DEFAULT_wxUSE_ACCEL=no
9334   DEFAULT_wxUSE_ANIMATIONCTRL=no
9335   DEFAULT_wxUSE_BMPBUTTON=no
9336   DEFAULT_wxUSE_BUTTON=no
9337   DEFAULT_wxUSE_CALCTRL=no
9338   DEFAULT_wxUSE_CARET=no
9339   DEFAULT_wxUSE_COLLPANE=no
9340   DEFAULT_wxUSE_COMBOBOX=no
9341   DEFAULT_wxUSE_CHECKBOX=no
9342   DEFAULT_wxUSE_CHECKLISTBOX=no
9343   DEFAULT_wxUSE_CHOICE=no
9344   DEFAULT_wxUSE_CHOICEBOOK=no
9345   DEFAULT_wxUSE_COLOURPICKERCTRL=no
9346   DEFAULT_wxUSE_COMBOBOX=no
9347   DEFAULT_wxUSE_DATEPICKCTRL=no
9348   DEFAULT_wxUSE_DISPLAY=no
9349   DEFAULT_wxUSE_DETECT_SM=no
9350   DEFAULT_wxUSE_DIRPICKERCTRL=no
9351   DEFAULT_wxUSE_FILECTRL=no
9352   DEFAULT_wxUSE_FILEPICKERCTRL=no
9353   DEFAULT_wxUSE_FONTPICKERCTRL=no
9354   DEFAULT_wxUSE_GAUGE=no
9355   DEFAULT_wxUSE_GRID=no
9356   DEFAULT_wxUSE_HYPERLINKCTRL=no
9357   DEFAULT_wxUSE_DATAVIEWCTRL=no
9358   DEFAULT_wxUSE_IMAGLIST=no
9359   DEFAULT_wxUSE_LISTBOOK=no
9360   DEFAULT_wxUSE_LISTBOX=no
9361   DEFAULT_wxUSE_LISTCTRL=no
9362   DEFAULT_wxUSE_NOTEBOOK=no
9363   DEFAULT_wxUSE_RADIOBOX=no
9364   DEFAULT_wxUSE_RADIOBTN=no
9365   DEFAULT_wxUSE_SASH=no
9366   DEFAULT_wxUSE_SCROLLBAR=no
9367   DEFAULT_wxUSE_SEARCHCTRL=no
9368   DEFAULT_wxUSE_SLIDER=no
9369   DEFAULT_wxUSE_SPINBTN=no
9370   DEFAULT_wxUSE_SPINCTRL=no
9371   DEFAULT_wxUSE_SPLITTER=no
9372   DEFAULT_wxUSE_STATBMP=no
9373   DEFAULT_wxUSE_STATBOX=no
9374   DEFAULT_wxUSE_STATLINE=no
9375   DEFAULT_wxUSE_STATUSBAR=no
9376   DEFAULT_wxUSE_TAB_DIALOG=no
9377   DEFAULT_wxUSE_TOGGLEBTN=no
9378   DEFAULT_wxUSE_TOOLBAR=no
9379   DEFAULT_wxUSE_TOOLBAR_NATIVE=no
9380   DEFAULT_wxUSE_TOOLTIPS=no
9381   DEFAULT_wxUSE_TREEBOOK=no
9382   DEFAULT_wxUSE_TOOLBOOK=no
9383   DEFAULT_wxUSE_TREECTRL=no
9384   DEFAULT_wxUSE_POPUPWIN=no
9385   DEFAULT_wxUSE_TIPWINDOW=no
9386 fi
9387
9388
9389           enablestring=
9390           defaultval=$wxUSE_ALL_FEATURES
9391           if test -z "$defaultval"; then
9392               if test x"$enablestring" = xdisable; then
9393                   defaultval=yes
9394               else
9395                   defaultval=no
9396               fi
9397           fi
9398
9399           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accel" >&5
9400 echo $ECHO_N "checking for --${enablestring:-enable}-accel... $ECHO_C" >&6; }
9401           # Check whether --enable-accel was given.
9402 if test "${enable_accel+set}" = set; then
9403   enableval=$enable_accel;
9404                           if test "$enableval" = yes; then
9405                             wx_cv_use_accel='wxUSE_ACCEL=yes'
9406                           else
9407                             wx_cv_use_accel='wxUSE_ACCEL=no'
9408                           fi
9409
9410 else
9411
9412                           wx_cv_use_accel='wxUSE_ACCEL=${'DEFAULT_wxUSE_ACCEL":-$defaultval}"
9413
9414 fi
9415
9416
9417           eval "$wx_cv_use_accel"
9418
9419           if test x"$enablestring" = xdisable; then
9420             if test $wxUSE_ACCEL = yes; then
9421               result=no
9422             else
9423               result=yes
9424             fi
9425           else
9426             result=$wxUSE_ACCEL
9427           fi
9428
9429           { echo "$as_me:$LINENO: result: $result" >&5
9430 echo "${ECHO_T}$result" >&6; }
9431
9432
9433           enablestring=
9434           defaultval=$wxUSE_ALL_FEATURES
9435           if test -z "$defaultval"; then
9436               if test x"$enablestring" = xdisable; then
9437                   defaultval=yes
9438               else
9439                   defaultval=no
9440               fi
9441           fi
9442
9443           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-animatectrl" >&5
9444 echo $ECHO_N "checking for --${enablestring:-enable}-animatectrl... $ECHO_C" >&6; }
9445           # Check whether --enable-animatectrl was given.
9446 if test "${enable_animatectrl+set}" = set; then
9447   enableval=$enable_animatectrl;
9448                           if test "$enableval" = yes; then
9449                             wx_cv_use_animatectrl='wxUSE_ANIMATIONCTRL=yes'
9450                           else
9451                             wx_cv_use_animatectrl='wxUSE_ANIMATIONCTRL=no'
9452                           fi
9453
9454 else
9455
9456                           wx_cv_use_animatectrl='wxUSE_ANIMATIONCTRL=${'DEFAULT_wxUSE_ANIMATIONCTRL":-$defaultval}"
9457
9458 fi
9459
9460
9461           eval "$wx_cv_use_animatectrl"
9462
9463           if test x"$enablestring" = xdisable; then
9464             if test $wxUSE_ANIMATIONCTRL = yes; then
9465               result=no
9466             else
9467               result=yes
9468             fi
9469           else
9470             result=$wxUSE_ANIMATIONCTRL
9471           fi
9472
9473           { echo "$as_me:$LINENO: result: $result" >&5
9474 echo "${ECHO_T}$result" >&6; }
9475
9476
9477           enablestring=
9478           defaultval=$wxUSE_ALL_FEATURES
9479           if test -z "$defaultval"; then
9480               if test x"$enablestring" = xdisable; then
9481                   defaultval=yes
9482               else
9483                   defaultval=no
9484               fi
9485           fi
9486
9487           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-button" >&5
9488 echo $ECHO_N "checking for --${enablestring:-enable}-button... $ECHO_C" >&6; }
9489           # Check whether --enable-button was given.
9490 if test "${enable_button+set}" = set; then
9491   enableval=$enable_button;
9492                           if test "$enableval" = yes; then
9493                             wx_cv_use_button='wxUSE_BUTTON=yes'
9494                           else
9495                             wx_cv_use_button='wxUSE_BUTTON=no'
9496                           fi
9497
9498 else
9499
9500                           wx_cv_use_button='wxUSE_BUTTON=${'DEFAULT_wxUSE_BUTTON":-$defaultval}"
9501
9502 fi
9503
9504
9505           eval "$wx_cv_use_button"
9506
9507           if test x"$enablestring" = xdisable; then
9508             if test $wxUSE_BUTTON = yes; then
9509               result=no
9510             else
9511               result=yes
9512             fi
9513           else
9514             result=$wxUSE_BUTTON
9515           fi
9516
9517           { echo "$as_me:$LINENO: result: $result" >&5
9518 echo "${ECHO_T}$result" >&6; }
9519
9520
9521           enablestring=
9522           defaultval=$wxUSE_ALL_FEATURES
9523           if test -z "$defaultval"; then
9524               if test x"$enablestring" = xdisable; then
9525                   defaultval=yes
9526               else
9527                   defaultval=no
9528               fi
9529           fi
9530
9531           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bmpbutton" >&5
9532 echo $ECHO_N "checking for --${enablestring:-enable}-bmpbutton... $ECHO_C" >&6; }
9533           # Check whether --enable-bmpbutton was given.
9534 if test "${enable_bmpbutton+set}" = set; then
9535   enableval=$enable_bmpbutton;
9536                           if test "$enableval" = yes; then
9537                             wx_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
9538                           else
9539                             wx_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
9540                           fi
9541
9542 else
9543
9544                           wx_cv_use_bmpbutton='wxUSE_BMPBUTTON=${'DEFAULT_wxUSE_BMPBUTTON":-$defaultval}"
9545
9546 fi
9547
9548
9549           eval "$wx_cv_use_bmpbutton"
9550
9551           if test x"$enablestring" = xdisable; then
9552             if test $wxUSE_BMPBUTTON = yes; then
9553               result=no
9554             else
9555               result=yes
9556             fi
9557           else
9558             result=$wxUSE_BMPBUTTON
9559           fi
9560
9561           { echo "$as_me:$LINENO: result: $result" >&5
9562 echo "${ECHO_T}$result" >&6; }
9563
9564
9565           enablestring=
9566           defaultval=$wxUSE_ALL_FEATURES
9567           if test -z "$defaultval"; then
9568               if test x"$enablestring" = xdisable; then
9569                   defaultval=yes
9570               else
9571                   defaultval=no
9572               fi
9573           fi
9574
9575           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bmpcombobox" >&5
9576 echo $ECHO_N "checking for --${enablestring:-enable}-bmpcombobox... $ECHO_C" >&6; }
9577           # Check whether --enable-bmpcombobox was given.
9578 if test "${enable_bmpcombobox+set}" = set; then
9579   enableval=$enable_bmpcombobox;
9580                           if test "$enableval" = yes; then
9581                             wx_cv_use_bmpcombobox='wxUSE_BITMAPCOMBOBOX=yes'
9582                           else
9583                             wx_cv_use_bmpcombobox='wxUSE_BITMAPCOMBOBOX=no'
9584                           fi
9585
9586 else
9587
9588                           wx_cv_use_bmpcombobox='wxUSE_BITMAPCOMBOBOX=${'DEFAULT_wxUSE_BITMAPCOMBOBOX":-$defaultval}"
9589
9590 fi
9591
9592
9593           eval "$wx_cv_use_bmpcombobox"
9594
9595           if test x"$enablestring" = xdisable; then
9596             if test $wxUSE_BITMAPCOMBOBOX = yes; then
9597               result=no
9598             else
9599               result=yes
9600             fi
9601           else
9602             result=$wxUSE_BITMAPCOMBOBOX
9603           fi
9604
9605           { echo "$as_me:$LINENO: result: $result" >&5
9606 echo "${ECHO_T}$result" >&6; }
9607
9608
9609           enablestring=
9610           defaultval=$wxUSE_ALL_FEATURES
9611           if test -z "$defaultval"; then
9612               if test x"$enablestring" = xdisable; then
9613                   defaultval=yes
9614               else
9615                   defaultval=no
9616               fi
9617           fi
9618
9619           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-calendar" >&5
9620 echo $ECHO_N "checking for --${enablestring:-enable}-calendar... $ECHO_C" >&6; }
9621           # Check whether --enable-calendar was given.
9622 if test "${enable_calendar+set}" = set; then
9623   enableval=$enable_calendar;
9624                           if test "$enableval" = yes; then
9625                             wx_cv_use_calendar='wxUSE_CALCTRL=yes'
9626                           else
9627                             wx_cv_use_calendar='wxUSE_CALCTRL=no'
9628                           fi
9629
9630 else
9631
9632                           wx_cv_use_calendar='wxUSE_CALCTRL=${'DEFAULT_wxUSE_CALCTRL":-$defaultval}"
9633
9634 fi
9635
9636
9637           eval "$wx_cv_use_calendar"
9638
9639           if test x"$enablestring" = xdisable; then
9640             if test $wxUSE_CALCTRL = yes; then
9641               result=no
9642             else
9643               result=yes
9644             fi
9645           else
9646             result=$wxUSE_CALCTRL
9647           fi
9648
9649           { echo "$as_me:$LINENO: result: $result" >&5
9650 echo "${ECHO_T}$result" >&6; }
9651
9652
9653           enablestring=
9654           defaultval=$wxUSE_ALL_FEATURES
9655           if test -z "$defaultval"; then
9656               if test x"$enablestring" = xdisable; then
9657                   defaultval=yes
9658               else
9659                   defaultval=no
9660               fi
9661           fi
9662
9663           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-caret" >&5
9664 echo $ECHO_N "checking for --${enablestring:-enable}-caret... $ECHO_C" >&6; }
9665           # Check whether --enable-caret was given.
9666 if test "${enable_caret+set}" = set; then
9667   enableval=$enable_caret;
9668                           if test "$enableval" = yes; then
9669                             wx_cv_use_caret='wxUSE_CARET=yes'
9670                           else
9671                             wx_cv_use_caret='wxUSE_CARET=no'
9672                           fi
9673
9674 else
9675
9676                           wx_cv_use_caret='wxUSE_CARET=${'DEFAULT_wxUSE_CARET":-$defaultval}"
9677
9678 fi
9679
9680
9681           eval "$wx_cv_use_caret"
9682
9683           if test x"$enablestring" = xdisable; then
9684             if test $wxUSE_CARET = yes; then
9685               result=no
9686             else
9687               result=yes
9688             fi
9689           else
9690             result=$wxUSE_CARET
9691           fi
9692
9693           { echo "$as_me:$LINENO: result: $result" >&5
9694 echo "${ECHO_T}$result" >&6; }
9695
9696
9697           enablestring=
9698           defaultval=$wxUSE_ALL_FEATURES
9699           if test -z "$defaultval"; then
9700               if test x"$enablestring" = xdisable; then
9701                   defaultval=yes
9702               else
9703                   defaultval=no
9704               fi
9705           fi
9706
9707           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checkbox" >&5
9708 echo $ECHO_N "checking for --${enablestring:-enable}-checkbox... $ECHO_C" >&6; }
9709           # Check whether --enable-checkbox was given.
9710 if test "${enable_checkbox+set}" = set; then
9711   enableval=$enable_checkbox;
9712                           if test "$enableval" = yes; then
9713                             wx_cv_use_checkbox='wxUSE_CHECKBOX=yes'
9714                           else
9715                             wx_cv_use_checkbox='wxUSE_CHECKBOX=no'
9716                           fi
9717
9718 else
9719
9720                           wx_cv_use_checkbox='wxUSE_CHECKBOX=${'DEFAULT_wxUSE_CHECKBOX":-$defaultval}"
9721
9722 fi
9723
9724
9725           eval "$wx_cv_use_checkbox"
9726
9727           if test x"$enablestring" = xdisable; then
9728             if test $wxUSE_CHECKBOX = yes; then
9729               result=no
9730             else
9731               result=yes
9732             fi
9733           else
9734             result=$wxUSE_CHECKBOX
9735           fi
9736
9737           { echo "$as_me:$LINENO: result: $result" >&5
9738 echo "${ECHO_T}$result" >&6; }
9739
9740
9741           enablestring=
9742           defaultval=$wxUSE_ALL_FEATURES
9743           if test -z "$defaultval"; then
9744               if test x"$enablestring" = xdisable; then
9745                   defaultval=yes
9746               else
9747                   defaultval=no
9748               fi
9749           fi
9750
9751           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checklst" >&5
9752 echo $ECHO_N "checking for --${enablestring:-enable}-checklst... $ECHO_C" >&6; }
9753           # Check whether --enable-checklst was given.
9754 if test "${enable_checklst+set}" = set; then
9755   enableval=$enable_checklst;
9756                           if test "$enableval" = yes; then
9757                             wx_cv_use_checklst='wxUSE_CHECKLST=yes'
9758                           else
9759                             wx_cv_use_checklst='wxUSE_CHECKLST=no'
9760                           fi
9761
9762 else
9763
9764                           wx_cv_use_checklst='wxUSE_CHECKLST=${'DEFAULT_wxUSE_CHECKLST":-$defaultval}"
9765
9766 fi
9767
9768
9769           eval "$wx_cv_use_checklst"
9770
9771           if test x"$enablestring" = xdisable; then
9772             if test $wxUSE_CHECKLST = yes; then
9773               result=no
9774             else
9775               result=yes
9776             fi
9777           else
9778             result=$wxUSE_CHECKLST
9779           fi
9780
9781           { echo "$as_me:$LINENO: result: $result" >&5
9782 echo "${ECHO_T}$result" >&6; }
9783
9784
9785           enablestring=
9786           defaultval=$wxUSE_ALL_FEATURES
9787           if test -z "$defaultval"; then
9788               if test x"$enablestring" = xdisable; then
9789                   defaultval=yes
9790               else
9791                   defaultval=no
9792               fi
9793           fi
9794
9795           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choice" >&5
9796 echo $ECHO_N "checking for --${enablestring:-enable}-choice... $ECHO_C" >&6; }
9797           # Check whether --enable-choice was given.
9798 if test "${enable_choice+set}" = set; then
9799   enableval=$enable_choice;
9800                           if test "$enableval" = yes; then
9801                             wx_cv_use_choice='wxUSE_CHOICE=yes'
9802                           else
9803                             wx_cv_use_choice='wxUSE_CHOICE=no'
9804                           fi
9805
9806 else
9807
9808                           wx_cv_use_choice='wxUSE_CHOICE=${'DEFAULT_wxUSE_CHOICE":-$defaultval}"
9809
9810 fi
9811
9812
9813           eval "$wx_cv_use_choice"
9814
9815           if test x"$enablestring" = xdisable; then
9816             if test $wxUSE_CHOICE = yes; then
9817               result=no
9818             else
9819               result=yes
9820             fi
9821           else
9822             result=$wxUSE_CHOICE
9823           fi
9824
9825           { echo "$as_me:$LINENO: result: $result" >&5
9826 echo "${ECHO_T}$result" >&6; }
9827
9828
9829           enablestring=
9830           defaultval=$wxUSE_ALL_FEATURES
9831           if test -z "$defaultval"; then
9832               if test x"$enablestring" = xdisable; then
9833                   defaultval=yes
9834               else
9835                   defaultval=no
9836               fi
9837           fi
9838
9839           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicebook" >&5
9840 echo $ECHO_N "checking for --${enablestring:-enable}-choicebook... $ECHO_C" >&6; }
9841           # Check whether --enable-choicebook was given.
9842 if test "${enable_choicebook+set}" = set; then
9843   enableval=$enable_choicebook;
9844                           if test "$enableval" = yes; then
9845                             wx_cv_use_choicebook='wxUSE_CHOICEBOOK=yes'
9846                           else
9847                             wx_cv_use_choicebook='wxUSE_CHOICEBOOK=no'
9848                           fi
9849
9850 else
9851
9852                           wx_cv_use_choicebook='wxUSE_CHOICEBOOK=${'DEFAULT_wxUSE_CHOICEBOOK":-$defaultval}"
9853
9854 fi
9855
9856
9857           eval "$wx_cv_use_choicebook"
9858
9859           if test x"$enablestring" = xdisable; then
9860             if test $wxUSE_CHOICEBOOK = yes; then
9861               result=no
9862             else
9863               result=yes
9864             fi
9865           else
9866             result=$wxUSE_CHOICEBOOK
9867           fi
9868
9869           { echo "$as_me:$LINENO: result: $result" >&5
9870 echo "${ECHO_T}$result" >&6; }
9871
9872
9873           enablestring=
9874           defaultval=$wxUSE_ALL_FEATURES
9875           if test -z "$defaultval"; then
9876               if test x"$enablestring" = xdisable; then
9877                   defaultval=yes
9878               else
9879                   defaultval=no
9880               fi
9881           fi
9882
9883           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-collpane" >&5
9884 echo $ECHO_N "checking for --${enablestring:-enable}-collpane... $ECHO_C" >&6; }
9885           # Check whether --enable-collpane was given.
9886 if test "${enable_collpane+set}" = set; then
9887   enableval=$enable_collpane;
9888                           if test "$enableval" = yes; then
9889                             wx_cv_use_collpane='wxUSE_COLLPANE=yes'
9890                           else
9891                             wx_cv_use_collpane='wxUSE_COLLPANE=no'
9892                           fi
9893
9894 else
9895
9896                           wx_cv_use_collpane='wxUSE_COLLPANE=${'DEFAULT_wxUSE_COLLPANE":-$defaultval}"
9897
9898 fi
9899
9900
9901           eval "$wx_cv_use_collpane"
9902
9903           if test x"$enablestring" = xdisable; then
9904             if test $wxUSE_COLLPANE = yes; then
9905               result=no
9906             else
9907               result=yes
9908             fi
9909           else
9910             result=$wxUSE_COLLPANE
9911           fi
9912
9913           { echo "$as_me:$LINENO: result: $result" >&5
9914 echo "${ECHO_T}$result" >&6; }
9915
9916
9917           enablestring=
9918           defaultval=$wxUSE_ALL_FEATURES
9919           if test -z "$defaultval"; then
9920               if test x"$enablestring" = xdisable; then
9921                   defaultval=yes
9922               else
9923                   defaultval=no
9924               fi
9925           fi
9926
9927           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-colourpicker" >&5
9928 echo $ECHO_N "checking for --${enablestring:-enable}-colourpicker... $ECHO_C" >&6; }
9929           # Check whether --enable-colourpicker was given.
9930 if test "${enable_colourpicker+set}" = set; then
9931   enableval=$enable_colourpicker;
9932                           if test "$enableval" = yes; then
9933                             wx_cv_use_colourpicker='wxUSE_COLOURPICKERCTRL=yes'
9934                           else
9935                             wx_cv_use_colourpicker='wxUSE_COLOURPICKERCTRL=no'
9936                           fi
9937
9938 else
9939
9940                           wx_cv_use_colourpicker='wxUSE_COLOURPICKERCTRL=${'DEFAULT_wxUSE_COLOURPICKERCTRL":-$defaultval}"
9941
9942 fi
9943
9944
9945           eval "$wx_cv_use_colourpicker"
9946
9947           if test x"$enablestring" = xdisable; then
9948             if test $wxUSE_COLOURPICKERCTRL = yes; then
9949               result=no
9950             else
9951               result=yes
9952             fi
9953           else
9954             result=$wxUSE_COLOURPICKERCTRL
9955           fi
9956
9957           { echo "$as_me:$LINENO: result: $result" >&5
9958 echo "${ECHO_T}$result" >&6; }
9959
9960
9961           enablestring=
9962           defaultval=$wxUSE_ALL_FEATURES
9963           if test -z "$defaultval"; then
9964               if test x"$enablestring" = xdisable; then
9965                   defaultval=yes
9966               else
9967                   defaultval=no
9968               fi
9969           fi
9970
9971           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-combobox" >&5
9972 echo $ECHO_N "checking for --${enablestring:-enable}-combobox... $ECHO_C" >&6; }
9973           # Check whether --enable-combobox was given.
9974 if test "${enable_combobox+set}" = set; then
9975   enableval=$enable_combobox;
9976                           if test "$enableval" = yes; then
9977                             wx_cv_use_combobox='wxUSE_COMBOBOX=yes'
9978                           else
9979                             wx_cv_use_combobox='wxUSE_COMBOBOX=no'
9980                           fi
9981
9982 else
9983
9984                           wx_cv_use_combobox='wxUSE_COMBOBOX=${'DEFAULT_wxUSE_COMBOBOX":-$defaultval}"
9985
9986 fi
9987
9988
9989           eval "$wx_cv_use_combobox"
9990
9991           if test x"$enablestring" = xdisable; then
9992             if test $wxUSE_COMBOBOX = yes; then
9993               result=no
9994             else
9995               result=yes
9996             fi
9997           else
9998             result=$wxUSE_COMBOBOX
9999           fi
10000
10001           { echo "$as_me:$LINENO: result: $result" >&5
10002 echo "${ECHO_T}$result" >&6; }
10003
10004
10005           enablestring=
10006           defaultval=$wxUSE_ALL_FEATURES
10007           if test -z "$defaultval"; then
10008               if test x"$enablestring" = xdisable; then
10009                   defaultval=yes
10010               else
10011                   defaultval=no
10012               fi
10013           fi
10014
10015           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-comboctrl" >&5
10016 echo $ECHO_N "checking for --${enablestring:-enable}-comboctrl... $ECHO_C" >&6; }
10017           # Check whether --enable-comboctrl was given.
10018 if test "${enable_comboctrl+set}" = set; then
10019   enableval=$enable_comboctrl;
10020                           if test "$enableval" = yes; then
10021                             wx_cv_use_comboctrl='wxUSE_COMBOCTRL=yes'
10022                           else
10023                             wx_cv_use_comboctrl='wxUSE_COMBOCTRL=no'
10024                           fi
10025
10026 else
10027
10028                           wx_cv_use_comboctrl='wxUSE_COMBOCTRL=${'DEFAULT_wxUSE_COMBOCTRL":-$defaultval}"
10029
10030 fi
10031
10032
10033           eval "$wx_cv_use_comboctrl"
10034
10035           if test x"$enablestring" = xdisable; then
10036             if test $wxUSE_COMBOCTRL = yes; then
10037               result=no
10038             else
10039               result=yes
10040             fi
10041           else
10042             result=$wxUSE_COMBOCTRL
10043           fi
10044
10045           { echo "$as_me:$LINENO: result: $result" >&5
10046 echo "${ECHO_T}$result" >&6; }
10047
10048
10049           enablestring=
10050           defaultval=$wxUSE_ALL_FEATURES
10051           if test -z "$defaultval"; then
10052               if test x"$enablestring" = xdisable; then
10053                   defaultval=yes
10054               else
10055                   defaultval=no
10056               fi
10057           fi
10058
10059           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datepick" >&5
10060 echo $ECHO_N "checking for --${enablestring:-enable}-datepick... $ECHO_C" >&6; }
10061           # Check whether --enable-datepick was given.
10062 if test "${enable_datepick+set}" = set; then
10063   enableval=$enable_datepick;
10064                           if test "$enableval" = yes; then
10065                             wx_cv_use_datepick='wxUSE_DATEPICKCTRL=yes'
10066                           else
10067                             wx_cv_use_datepick='wxUSE_DATEPICKCTRL=no'
10068                           fi
10069
10070 else
10071
10072                           wx_cv_use_datepick='wxUSE_DATEPICKCTRL=${'DEFAULT_wxUSE_DATEPICKCTRL":-$defaultval}"
10073
10074 fi
10075
10076
10077           eval "$wx_cv_use_datepick"
10078
10079           if test x"$enablestring" = xdisable; then
10080             if test $wxUSE_DATEPICKCTRL = yes; then
10081               result=no
10082             else
10083               result=yes
10084             fi
10085           else
10086             result=$wxUSE_DATEPICKCTRL
10087           fi
10088
10089           { echo "$as_me:$LINENO: result: $result" >&5
10090 echo "${ECHO_T}$result" >&6; }
10091
10092
10093           enablestring=
10094           defaultval=$wxUSE_ALL_FEATURES
10095           if test -z "$defaultval"; then
10096               if test x"$enablestring" = xdisable; then
10097                   defaultval=yes
10098               else
10099                   defaultval=no
10100               fi
10101           fi
10102
10103           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirpicker" >&5
10104 echo $ECHO_N "checking for --${enablestring:-enable}-dirpicker... $ECHO_C" >&6; }
10105           # Check whether --enable-dirpicker was given.
10106 if test "${enable_dirpicker+set}" = set; then
10107   enableval=$enable_dirpicker;
10108                           if test "$enableval" = yes; then
10109                             wx_cv_use_dirpicker='wxUSE_DIRPICKERCTRL=yes'
10110                           else
10111                             wx_cv_use_dirpicker='wxUSE_DIRPICKERCTRL=no'
10112                           fi
10113
10114 else
10115
10116                           wx_cv_use_dirpicker='wxUSE_DIRPICKERCTRL=${'DEFAULT_wxUSE_DIRPICKERCTRL":-$defaultval}"
10117
10118 fi
10119
10120
10121           eval "$wx_cv_use_dirpicker"
10122
10123           if test x"$enablestring" = xdisable; then
10124             if test $wxUSE_DIRPICKERCTRL = yes; then
10125               result=no
10126             else
10127               result=yes
10128             fi
10129           else
10130             result=$wxUSE_DIRPICKERCTRL
10131           fi
10132
10133           { echo "$as_me:$LINENO: result: $result" >&5
10134 echo "${ECHO_T}$result" >&6; }
10135
10136
10137           enablestring=
10138           defaultval=$wxUSE_ALL_FEATURES
10139           if test -z "$defaultval"; then
10140               if test x"$enablestring" = xdisable; then
10141                   defaultval=yes
10142               else
10143                   defaultval=no
10144               fi
10145           fi
10146
10147           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-display" >&5
10148 echo $ECHO_N "checking for --${enablestring:-enable}-display... $ECHO_C" >&6; }
10149           # Check whether --enable-display was given.
10150 if test "${enable_display+set}" = set; then
10151   enableval=$enable_display;
10152                           if test "$enableval" = yes; then
10153                             wx_cv_use_display='wxUSE_DISPLAY=yes'
10154                           else
10155                             wx_cv_use_display='wxUSE_DISPLAY=no'
10156                           fi
10157
10158 else
10159
10160                           wx_cv_use_display='wxUSE_DISPLAY=${'DEFAULT_wxUSE_DISPLAY":-$defaultval}"
10161
10162 fi
10163
10164
10165           eval "$wx_cv_use_display"
10166
10167           if test x"$enablestring" = xdisable; then
10168             if test $wxUSE_DISPLAY = yes; then
10169               result=no
10170             else
10171               result=yes
10172             fi
10173           else
10174             result=$wxUSE_DISPLAY
10175           fi
10176
10177           { echo "$as_me:$LINENO: result: $result" >&5
10178 echo "${ECHO_T}$result" >&6; }
10179
10180
10181           enablestring=
10182           defaultval=$wxUSE_ALL_FEATURES
10183           if test -z "$defaultval"; then
10184               if test x"$enablestring" = xdisable; then
10185                   defaultval=yes
10186               else
10187                   defaultval=no
10188               fi
10189           fi
10190
10191           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-detect_sm" >&5
10192 echo $ECHO_N "checking for --${enablestring:-enable}-detect_sm... $ECHO_C" >&6; }
10193           # Check whether --enable-detect_sm was given.
10194 if test "${enable_detect_sm+set}" = set; then
10195   enableval=$enable_detect_sm;
10196                           if test "$enableval" = yes; then
10197                             wx_cv_use_detect_sm='wxUSE_DETECT_SM=yes'
10198                           else
10199                             wx_cv_use_detect_sm='wxUSE_DETECT_SM=no'
10200                           fi
10201
10202 else
10203
10204                           wx_cv_use_detect_sm='wxUSE_DETECT_SM=${'DEFAULT_wxUSE_DETECT_SM":-$defaultval}"
10205
10206 fi
10207
10208
10209           eval "$wx_cv_use_detect_sm"
10210
10211           if test x"$enablestring" = xdisable; then
10212             if test $wxUSE_DETECT_SM = yes; then
10213               result=no
10214             else
10215               result=yes
10216             fi
10217           else
10218             result=$wxUSE_DETECT_SM
10219           fi
10220
10221           { echo "$as_me:$LINENO: result: $result" >&5
10222 echo "${ECHO_T}$result" >&6; }
10223
10224
10225           enablestring=
10226           defaultval=$wxUSE_ALL_FEATURES
10227           if test -z "$defaultval"; then
10228               if test x"$enablestring" = xdisable; then
10229                   defaultval=yes
10230               else
10231                   defaultval=no
10232               fi
10233           fi
10234
10235           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-editablebox" >&5
10236 echo $ECHO_N "checking for --${enablestring:-enable}-editablebox... $ECHO_C" >&6; }
10237           # Check whether --enable-editablebox was given.
10238 if test "${enable_editablebox+set}" = set; then
10239   enableval=$enable_editablebox;
10240                           if test "$enableval" = yes; then
10241                             wx_cv_use_editablebox='wxUSE_EDITABLELISTBOX=yes'
10242                           else
10243                             wx_cv_use_editablebox='wxUSE_EDITABLELISTBOX=no'
10244                           fi
10245
10246 else
10247
10248                           wx_cv_use_editablebox='wxUSE_EDITABLELISTBOX=${'DEFAULT_wxUSE_EDITABLELISTBOX":-$defaultval}"
10249
10250 fi
10251
10252
10253           eval "$wx_cv_use_editablebox"
10254
10255           if test x"$enablestring" = xdisable; then
10256             if test $wxUSE_EDITABLELISTBOX = yes; then
10257               result=no
10258             else
10259               result=yes
10260             fi
10261           else
10262             result=$wxUSE_EDITABLELISTBOX
10263           fi
10264
10265           { echo "$as_me:$LINENO: result: $result" >&5
10266 echo "${ECHO_T}$result" >&6; }
10267
10268
10269           enablestring=
10270           defaultval=$wxUSE_ALL_FEATURES
10271           if test -z "$defaultval"; then
10272               if test x"$enablestring" = xdisable; then
10273                   defaultval=yes
10274               else
10275                   defaultval=no
10276               fi
10277           fi
10278
10279           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filepicker" >&5
10280 echo $ECHO_N "checking for --${enablestring:-enable}-filepicker... $ECHO_C" >&6; }
10281           # Check whether --enable-filepicker was given.
10282 if test "${enable_filepicker+set}" = set; then
10283   enableval=$enable_filepicker;
10284                           if test "$enableval" = yes; then
10285                             wx_cv_use_filepicker='wxUSE_FILEPICKERCTRL=yes'
10286                           else
10287                             wx_cv_use_filepicker='wxUSE_FILEPICKERCTRL=no'
10288                           fi
10289
10290 else
10291
10292                           wx_cv_use_filepicker='wxUSE_FILEPICKERCTRL=${'DEFAULT_wxUSE_FILEPICKERCTRL":-$defaultval}"
10293
10294 fi
10295
10296
10297           eval "$wx_cv_use_filepicker"
10298
10299           if test x"$enablestring" = xdisable; then
10300             if test $wxUSE_FILEPICKERCTRL = yes; then
10301               result=no
10302             else
10303               result=yes
10304             fi
10305           else
10306             result=$wxUSE_FILEPICKERCTRL
10307           fi
10308
10309           { echo "$as_me:$LINENO: result: $result" >&5
10310 echo "${ECHO_T}$result" >&6; }
10311
10312
10313           enablestring=
10314           defaultval=$wxUSE_ALL_FEATURES
10315           if test -z "$defaultval"; then
10316               if test x"$enablestring" = xdisable; then
10317                   defaultval=yes
10318               else
10319                   defaultval=no
10320               fi
10321           fi
10322
10323           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filectrl" >&5
10324 echo $ECHO_N "checking for --${enablestring:-enable}-filectrl... $ECHO_C" >&6; }
10325           # Check whether --enable-filectrl was given.
10326 if test "${enable_filectrl+set}" = set; then
10327   enableval=$enable_filectrl;
10328                           if test "$enableval" = yes; then
10329                             wx_cv_use_filectrl='wxUSE_FILECTRL=yes'
10330                           else
10331                             wx_cv_use_filectrl='wxUSE_FILECTRL=no'
10332                           fi
10333
10334 else
10335
10336                           wx_cv_use_filectrl='wxUSE_FILECTRL=${'DEFAULT_wxUSE_FILECTRL":-$defaultval}"
10337
10338 fi
10339
10340
10341           eval "$wx_cv_use_filectrl"
10342
10343           if test x"$enablestring" = xdisable; then
10344             if test $wxUSE_FILECTRL = yes; then
10345               result=no
10346             else
10347               result=yes
10348             fi
10349           else
10350             result=$wxUSE_FILECTRL
10351           fi
10352
10353           { echo "$as_me:$LINENO: result: $result" >&5
10354 echo "${ECHO_T}$result" >&6; }
10355
10356
10357           enablestring=
10358           defaultval=$wxUSE_ALL_FEATURES
10359           if test -z "$defaultval"; then
10360               if test x"$enablestring" = xdisable; then
10361                   defaultval=yes
10362               else
10363                   defaultval=no
10364               fi
10365           fi
10366
10367           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontpicker" >&5
10368 echo $ECHO_N "checking for --${enablestring:-enable}-fontpicker... $ECHO_C" >&6; }
10369           # Check whether --enable-fontpicker was given.
10370 if test "${enable_fontpicker+set}" = set; then
10371   enableval=$enable_fontpicker;
10372                           if test "$enableval" = yes; then
10373                             wx_cv_use_fontpicker='wxUSE_FONTPICKERCTRL=yes'
10374                           else
10375                             wx_cv_use_fontpicker='wxUSE_FONTPICKERCTRL=no'
10376                           fi
10377
10378 else
10379
10380                           wx_cv_use_fontpicker='wxUSE_FONTPICKERCTRL=${'DEFAULT_wxUSE_FONTPICKERCTRL":-$defaultval}"
10381
10382 fi
10383
10384
10385           eval "$wx_cv_use_fontpicker"
10386
10387           if test x"$enablestring" = xdisable; then
10388             if test $wxUSE_FONTPICKERCTRL = yes; then
10389               result=no
10390             else
10391               result=yes
10392             fi
10393           else
10394             result=$wxUSE_FONTPICKERCTRL
10395           fi
10396
10397           { echo "$as_me:$LINENO: result: $result" >&5
10398 echo "${ECHO_T}$result" >&6; }
10399
10400
10401           enablestring=
10402           defaultval=$wxUSE_ALL_FEATURES
10403           if test -z "$defaultval"; then
10404               if test x"$enablestring" = xdisable; then
10405                   defaultval=yes
10406               else
10407                   defaultval=no
10408               fi
10409           fi
10410
10411           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gauge" >&5
10412 echo $ECHO_N "checking for --${enablestring:-enable}-gauge... $ECHO_C" >&6; }
10413           # Check whether --enable-gauge was given.
10414 if test "${enable_gauge+set}" = set; then
10415   enableval=$enable_gauge;
10416                           if test "$enableval" = yes; then
10417                             wx_cv_use_gauge='wxUSE_GAUGE=yes'
10418                           else
10419                             wx_cv_use_gauge='wxUSE_GAUGE=no'
10420                           fi
10421
10422 else
10423
10424                           wx_cv_use_gauge='wxUSE_GAUGE=${'DEFAULT_wxUSE_GAUGE":-$defaultval}"
10425
10426 fi
10427
10428
10429           eval "$wx_cv_use_gauge"
10430
10431           if test x"$enablestring" = xdisable; then
10432             if test $wxUSE_GAUGE = yes; then
10433               result=no
10434             else
10435               result=yes
10436             fi
10437           else
10438             result=$wxUSE_GAUGE
10439           fi
10440
10441           { echo "$as_me:$LINENO: result: $result" >&5
10442 echo "${ECHO_T}$result" >&6; }
10443
10444
10445           enablestring=
10446           defaultval=$wxUSE_ALL_FEATURES
10447           if test -z "$defaultval"; then
10448               if test x"$enablestring" = xdisable; then
10449                   defaultval=yes
10450               else
10451                   defaultval=no
10452               fi
10453           fi
10454
10455           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-grid" >&5
10456 echo $ECHO_N "checking for --${enablestring:-enable}-grid... $ECHO_C" >&6; }
10457           # Check whether --enable-grid was given.
10458 if test "${enable_grid+set}" = set; then
10459   enableval=$enable_grid;
10460                           if test "$enableval" = yes; then
10461                             wx_cv_use_grid='wxUSE_GRID=yes'
10462                           else
10463                             wx_cv_use_grid='wxUSE_GRID=no'
10464                           fi
10465
10466 else
10467
10468                           wx_cv_use_grid='wxUSE_GRID=${'DEFAULT_wxUSE_GRID":-$defaultval}"
10469
10470 fi
10471
10472
10473           eval "$wx_cv_use_grid"
10474
10475           if test x"$enablestring" = xdisable; then
10476             if test $wxUSE_GRID = yes; then
10477               result=no
10478             else
10479               result=yes
10480             fi
10481           else
10482             result=$wxUSE_GRID
10483           fi
10484
10485           { echo "$as_me:$LINENO: result: $result" >&5
10486 echo "${ECHO_T}$result" >&6; }
10487
10488
10489           enablestring=
10490           defaultval=$wxUSE_ALL_FEATURES
10491           if test -z "$defaultval"; then
10492               if test x"$enablestring" = xdisable; then
10493                   defaultval=yes
10494               else
10495                   defaultval=no
10496               fi
10497           fi
10498
10499           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataviewctrl" >&5
10500 echo $ECHO_N "checking for --${enablestring:-enable}-dataviewctrl... $ECHO_C" >&6; }
10501           # Check whether --enable-dataviewctrl was given.
10502 if test "${enable_dataviewctrl+set}" = set; then
10503   enableval=$enable_dataviewctrl;
10504                           if test "$enableval" = yes; then
10505                             wx_cv_use_dataviewctrl='wxUSE_DATAVIEWCTRL=yes'
10506                           else
10507                             wx_cv_use_dataviewctrl='wxUSE_DATAVIEWCTRL=no'
10508                           fi
10509
10510 else
10511
10512                           wx_cv_use_dataviewctrl='wxUSE_DATAVIEWCTRL=${'DEFAULT_wxUSE_DATAVIEWCTRL":-$defaultval}"
10513
10514 fi
10515
10516
10517           eval "$wx_cv_use_dataviewctrl"
10518
10519           if test x"$enablestring" = xdisable; then
10520             if test $wxUSE_DATAVIEWCTRL = yes; then
10521               result=no
10522             else
10523               result=yes
10524             fi
10525           else
10526             result=$wxUSE_DATAVIEWCTRL
10527           fi
10528
10529           { echo "$as_me:$LINENO: result: $result" >&5
10530 echo "${ECHO_T}$result" >&6; }
10531
10532
10533           enablestring=
10534           defaultval=$wxUSE_ALL_FEATURES
10535           if test -z "$defaultval"; then
10536               if test x"$enablestring" = xdisable; then
10537                   defaultval=yes
10538               else
10539                   defaultval=no
10540               fi
10541           fi
10542
10543           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-hyperlink" >&5
10544 echo $ECHO_N "checking for --${enablestring:-enable}-hyperlink... $ECHO_C" >&6; }
10545           # Check whether --enable-hyperlink was given.
10546 if test "${enable_hyperlink+set}" = set; then
10547   enableval=$enable_hyperlink;
10548                           if test "$enableval" = yes; then
10549                             wx_cv_use_hyperlink='wxUSE_HYPERLINKCTRL=yes'
10550                           else
10551                             wx_cv_use_hyperlink='wxUSE_HYPERLINKCTRL=no'
10552                           fi
10553
10554 else
10555
10556                           wx_cv_use_hyperlink='wxUSE_HYPERLINKCTRL=${'DEFAULT_wxUSE_HYPERLINKCTRL":-$defaultval}"
10557
10558 fi
10559
10560
10561           eval "$wx_cv_use_hyperlink"
10562
10563           if test x"$enablestring" = xdisable; then
10564             if test $wxUSE_HYPERLINKCTRL = yes; then
10565               result=no
10566             else
10567               result=yes
10568             fi
10569           else
10570             result=$wxUSE_HYPERLINKCTRL
10571           fi
10572
10573           { echo "$as_me:$LINENO: result: $result" >&5
10574 echo "${ECHO_T}$result" >&6; }
10575
10576
10577           enablestring=
10578           defaultval=$wxUSE_ALL_FEATURES
10579           if test -z "$defaultval"; then
10580               if test x"$enablestring" = xdisable; then
10581                   defaultval=yes
10582               else
10583                   defaultval=no
10584               fi
10585           fi
10586
10587           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-imaglist" >&5
10588 echo $ECHO_N "checking for --${enablestring:-enable}-imaglist... $ECHO_C" >&6; }
10589           # Check whether --enable-imaglist was given.
10590 if test "${enable_imaglist+set}" = set; then
10591   enableval=$enable_imaglist;
10592                           if test "$enableval" = yes; then
10593                             wx_cv_use_imaglist='wxUSE_IMAGLIST=yes'
10594                           else
10595                             wx_cv_use_imaglist='wxUSE_IMAGLIST=no'
10596                           fi
10597
10598 else
10599
10600                           wx_cv_use_imaglist='wxUSE_IMAGLIST=${'DEFAULT_wxUSE_IMAGLIST":-$defaultval}"
10601
10602 fi
10603
10604
10605           eval "$wx_cv_use_imaglist"
10606
10607           if test x"$enablestring" = xdisable; then
10608             if test $wxUSE_IMAGLIST = yes; then
10609               result=no
10610             else
10611               result=yes
10612             fi
10613           else
10614             result=$wxUSE_IMAGLIST
10615           fi
10616
10617           { echo "$as_me:$LINENO: result: $result" >&5
10618 echo "${ECHO_T}$result" >&6; }
10619
10620
10621           enablestring=
10622           defaultval=$wxUSE_ALL_FEATURES
10623           if test -z "$defaultval"; then
10624               if test x"$enablestring" = xdisable; then
10625                   defaultval=yes
10626               else
10627                   defaultval=no
10628               fi
10629           fi
10630
10631           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbook" >&5
10632 echo $ECHO_N "checking for --${enablestring:-enable}-listbook... $ECHO_C" >&6; }
10633           # Check whether --enable-listbook was given.
10634 if test "${enable_listbook+set}" = set; then
10635   enableval=$enable_listbook;
10636                           if test "$enableval" = yes; then
10637                             wx_cv_use_listbook='wxUSE_LISTBOOK=yes'
10638                           else
10639                             wx_cv_use_listbook='wxUSE_LISTBOOK=no'
10640                           fi
10641
10642 else
10643
10644                           wx_cv_use_listbook='wxUSE_LISTBOOK=${'DEFAULT_wxUSE_LISTBOOK":-$defaultval}"
10645
10646 fi
10647
10648
10649           eval "$wx_cv_use_listbook"
10650
10651           if test x"$enablestring" = xdisable; then
10652             if test $wxUSE_LISTBOOK = yes; then
10653               result=no
10654             else
10655               result=yes
10656             fi
10657           else
10658             result=$wxUSE_LISTBOOK
10659           fi
10660
10661           { echo "$as_me:$LINENO: result: $result" >&5
10662 echo "${ECHO_T}$result" >&6; }
10663
10664
10665           enablestring=
10666           defaultval=$wxUSE_ALL_FEATURES
10667           if test -z "$defaultval"; then
10668               if test x"$enablestring" = xdisable; then
10669                   defaultval=yes
10670               else
10671                   defaultval=no
10672               fi
10673           fi
10674
10675           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbox" >&5
10676 echo $ECHO_N "checking for --${enablestring:-enable}-listbox... $ECHO_C" >&6; }
10677           # Check whether --enable-listbox was given.
10678 if test "${enable_listbox+set}" = set; then
10679   enableval=$enable_listbox;
10680                           if test "$enableval" = yes; then
10681                             wx_cv_use_listbox='wxUSE_LISTBOX=yes'
10682                           else
10683                             wx_cv_use_listbox='wxUSE_LISTBOX=no'
10684                           fi
10685
10686 else
10687
10688                           wx_cv_use_listbox='wxUSE_LISTBOX=${'DEFAULT_wxUSE_LISTBOX":-$defaultval}"
10689
10690 fi
10691
10692
10693           eval "$wx_cv_use_listbox"
10694
10695           if test x"$enablestring" = xdisable; then
10696             if test $wxUSE_LISTBOX = yes; then
10697               result=no
10698             else
10699               result=yes
10700             fi
10701           else
10702             result=$wxUSE_LISTBOX
10703           fi
10704
10705           { echo "$as_me:$LINENO: result: $result" >&5
10706 echo "${ECHO_T}$result" >&6; }
10707
10708
10709           enablestring=
10710           defaultval=$wxUSE_ALL_FEATURES
10711           if test -z "$defaultval"; then
10712               if test x"$enablestring" = xdisable; then
10713                   defaultval=yes
10714               else
10715                   defaultval=no
10716               fi
10717           fi
10718
10719           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listctrl" >&5
10720 echo $ECHO_N "checking for --${enablestring:-enable}-listctrl... $ECHO_C" >&6; }
10721           # Check whether --enable-listctrl was given.
10722 if test "${enable_listctrl+set}" = set; then
10723   enableval=$enable_listctrl;
10724                           if test "$enableval" = yes; then
10725                             wx_cv_use_listctrl='wxUSE_LISTCTRL=yes'
10726                           else
10727                             wx_cv_use_listctrl='wxUSE_LISTCTRL=no'
10728                           fi
10729
10730 else
10731
10732                           wx_cv_use_listctrl='wxUSE_LISTCTRL=${'DEFAULT_wxUSE_LISTCTRL":-$defaultval}"
10733
10734 fi
10735
10736
10737           eval "$wx_cv_use_listctrl"
10738
10739           if test x"$enablestring" = xdisable; then
10740             if test $wxUSE_LISTCTRL = yes; then
10741               result=no
10742             else
10743               result=yes
10744             fi
10745           else
10746             result=$wxUSE_LISTCTRL
10747           fi
10748
10749           { echo "$as_me:$LINENO: result: $result" >&5
10750 echo "${ECHO_T}$result" >&6; }
10751
10752
10753           enablestring=
10754           defaultval=$wxUSE_ALL_FEATURES
10755           if test -z "$defaultval"; then
10756               if test x"$enablestring" = xdisable; then
10757                   defaultval=yes
10758               else
10759                   defaultval=no
10760               fi
10761           fi
10762
10763           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-notebook" >&5
10764 echo $ECHO_N "checking for --${enablestring:-enable}-notebook... $ECHO_C" >&6; }
10765           # Check whether --enable-notebook was given.
10766 if test "${enable_notebook+set}" = set; then
10767   enableval=$enable_notebook;
10768                           if test "$enableval" = yes; then
10769                             wx_cv_use_notebook='wxUSE_NOTEBOOK=yes'
10770                           else
10771                             wx_cv_use_notebook='wxUSE_NOTEBOOK=no'
10772                           fi
10773
10774 else
10775
10776                           wx_cv_use_notebook='wxUSE_NOTEBOOK=${'DEFAULT_wxUSE_NOTEBOOK":-$defaultval}"
10777
10778 fi
10779
10780
10781           eval "$wx_cv_use_notebook"
10782
10783           if test x"$enablestring" = xdisable; then
10784             if test $wxUSE_NOTEBOOK = yes; then
10785               result=no
10786             else
10787               result=yes
10788             fi
10789           else
10790             result=$wxUSE_NOTEBOOK
10791           fi
10792
10793           { echo "$as_me:$LINENO: result: $result" >&5
10794 echo "${ECHO_T}$result" >&6; }
10795
10796
10797           enablestring=
10798           defaultval=$wxUSE_ALL_FEATURES
10799           if test -z "$defaultval"; then
10800               if test x"$enablestring" = xdisable; then
10801                   defaultval=yes
10802               else
10803                   defaultval=no
10804               fi
10805           fi
10806
10807           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-notifmsg" >&5
10808 echo $ECHO_N "checking for --${enablestring:-enable}-notifmsg... $ECHO_C" >&6; }
10809           # Check whether --enable-notifmsg was given.
10810 if test "${enable_notifmsg+set}" = set; then
10811   enableval=$enable_notifmsg;
10812                           if test "$enableval" = yes; then
10813                             wx_cv_use_notifmsg='wxUSE_NOTIFICATION_MESSAGE=yes'
10814                           else
10815                             wx_cv_use_notifmsg='wxUSE_NOTIFICATION_MESSAGE=no'
10816                           fi
10817
10818 else
10819
10820                           wx_cv_use_notifmsg='wxUSE_NOTIFICATION_MESSAGE=${'DEFAULT_wxUSE_NOTIFICATION_MESSAGE":-$defaultval}"
10821
10822 fi
10823
10824
10825           eval "$wx_cv_use_notifmsg"
10826
10827           if test x"$enablestring" = xdisable; then
10828             if test $wxUSE_NOTIFICATION_MESSAGE = yes; then
10829               result=no
10830             else
10831               result=yes
10832             fi
10833           else
10834             result=$wxUSE_NOTIFICATION_MESSAGE
10835           fi
10836
10837           { echo "$as_me:$LINENO: result: $result" >&5
10838 echo "${ECHO_T}$result" >&6; }
10839
10840
10841           enablestring=
10842           defaultval=$wxUSE_ALL_FEATURES
10843           if test -z "$defaultval"; then
10844               if test x"$enablestring" = xdisable; then
10845                   defaultval=yes
10846               else
10847                   defaultval=no
10848               fi
10849           fi
10850
10851           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-odcombobox" >&5
10852 echo $ECHO_N "checking for --${enablestring:-enable}-odcombobox... $ECHO_C" >&6; }
10853           # Check whether --enable-odcombobox was given.
10854 if test "${enable_odcombobox+set}" = set; then
10855   enableval=$enable_odcombobox;
10856                           if test "$enableval" = yes; then
10857                             wx_cv_use_odcombobox='wxUSE_ODCOMBOBOX=yes'
10858                           else
10859                             wx_cv_use_odcombobox='wxUSE_ODCOMBOBOX=no'
10860                           fi
10861
10862 else
10863
10864                           wx_cv_use_odcombobox='wxUSE_ODCOMBOBOX=${'DEFAULT_wxUSE_ODCOMBOBOX":-$defaultval}"
10865
10866 fi
10867
10868
10869           eval "$wx_cv_use_odcombobox"
10870
10871           if test x"$enablestring" = xdisable; then
10872             if test $wxUSE_ODCOMBOBOX = yes; then
10873               result=no
10874             else
10875               result=yes
10876             fi
10877           else
10878             result=$wxUSE_ODCOMBOBOX
10879           fi
10880
10881           { echo "$as_me:$LINENO: result: $result" >&5
10882 echo "${ECHO_T}$result" >&6; }
10883
10884
10885           enablestring=
10886           defaultval=$wxUSE_ALL_FEATURES
10887           if test -z "$defaultval"; then
10888               if test x"$enablestring" = xdisable; then
10889                   defaultval=yes
10890               else
10891                   defaultval=no
10892               fi
10893           fi
10894
10895           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobox" >&5
10896 echo $ECHO_N "checking for --${enablestring:-enable}-radiobox... $ECHO_C" >&6; }
10897           # Check whether --enable-radiobox was given.
10898 if test "${enable_radiobox+set}" = set; then
10899   enableval=$enable_radiobox;
10900                           if test "$enableval" = yes; then
10901                             wx_cv_use_radiobox='wxUSE_RADIOBOX=yes'
10902                           else
10903                             wx_cv_use_radiobox='wxUSE_RADIOBOX=no'
10904                           fi
10905
10906 else
10907
10908                           wx_cv_use_radiobox='wxUSE_RADIOBOX=${'DEFAULT_wxUSE_RADIOBOX":-$defaultval}"
10909
10910 fi
10911
10912
10913           eval "$wx_cv_use_radiobox"
10914
10915           if test x"$enablestring" = xdisable; then
10916             if test $wxUSE_RADIOBOX = yes; then
10917               result=no
10918             else
10919               result=yes
10920             fi
10921           else
10922             result=$wxUSE_RADIOBOX
10923           fi
10924
10925           { echo "$as_me:$LINENO: result: $result" >&5
10926 echo "${ECHO_T}$result" >&6; }
10927
10928
10929           enablestring=
10930           defaultval=$wxUSE_ALL_FEATURES
10931           if test -z "$defaultval"; then
10932               if test x"$enablestring" = xdisable; then
10933                   defaultval=yes
10934               else
10935                   defaultval=no
10936               fi
10937           fi
10938
10939           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobtn" >&5
10940 echo $ECHO_N "checking for --${enablestring:-enable}-radiobtn... $ECHO_C" >&6; }
10941           # Check whether --enable-radiobtn was given.
10942 if test "${enable_radiobtn+set}" = set; then
10943   enableval=$enable_radiobtn;
10944                           if test "$enableval" = yes; then
10945                             wx_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
10946                           else
10947                             wx_cv_use_radiobtn='wxUSE_RADIOBTN=no'
10948                           fi
10949
10950 else
10951
10952                           wx_cv_use_radiobtn='wxUSE_RADIOBTN=${'DEFAULT_wxUSE_RADIOBTN":-$defaultval}"
10953
10954 fi
10955
10956
10957           eval "$wx_cv_use_radiobtn"
10958
10959           if test x"$enablestring" = xdisable; then
10960             if test $wxUSE_RADIOBTN = yes; then
10961               result=no
10962             else
10963               result=yes
10964             fi
10965           else
10966             result=$wxUSE_RADIOBTN
10967           fi
10968
10969           { echo "$as_me:$LINENO: result: $result" >&5
10970 echo "${ECHO_T}$result" >&6; }
10971
10972
10973           enablestring=
10974           defaultval=$wxUSE_ALL_FEATURES
10975           if test -z "$defaultval"; then
10976               if test x"$enablestring" = xdisable; then
10977                   defaultval=yes
10978               else
10979                   defaultval=no
10980               fi
10981           fi
10982
10983           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sash" >&5
10984 echo $ECHO_N "checking for --${enablestring:-enable}-sash... $ECHO_C" >&6; }
10985           # Check whether --enable-sash was given.
10986 if test "${enable_sash+set}" = set; then
10987   enableval=$enable_sash;
10988                           if test "$enableval" = yes; then
10989                             wx_cv_use_sash='wxUSE_SASH=yes'
10990                           else
10991                             wx_cv_use_sash='wxUSE_SASH=no'
10992                           fi
10993
10994 else
10995
10996                           wx_cv_use_sash='wxUSE_SASH=${'DEFAULT_wxUSE_SASH":-$defaultval}"
10997
10998 fi
10999
11000
11001           eval "$wx_cv_use_sash"
11002
11003           if test x"$enablestring" = xdisable; then
11004             if test $wxUSE_SASH = yes; then
11005               result=no
11006             else
11007               result=yes
11008             fi
11009           else
11010             result=$wxUSE_SASH
11011           fi
11012
11013           { echo "$as_me:$LINENO: result: $result" >&5
11014 echo "${ECHO_T}$result" >&6; }
11015
11016
11017           enablestring=
11018           defaultval=$wxUSE_ALL_FEATURES
11019           if test -z "$defaultval"; then
11020               if test x"$enablestring" = xdisable; then
11021                   defaultval=yes
11022               else
11023                   defaultval=no
11024               fi
11025           fi
11026
11027           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-scrollbar" >&5
11028 echo $ECHO_N "checking for --${enablestring:-enable}-scrollbar... $ECHO_C" >&6; }
11029           # Check whether --enable-scrollbar was given.
11030 if test "${enable_scrollbar+set}" = set; then
11031   enableval=$enable_scrollbar;
11032                           if test "$enableval" = yes; then
11033                             wx_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
11034                           else
11035                             wx_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
11036                           fi
11037
11038 else
11039
11040                           wx_cv_use_scrollbar='wxUSE_SCROLLBAR=${'DEFAULT_wxUSE_SCROLLBAR":-$defaultval}"
11041
11042 fi
11043
11044
11045           eval "$wx_cv_use_scrollbar"
11046
11047           if test x"$enablestring" = xdisable; then
11048             if test $wxUSE_SCROLLBAR = yes; then
11049               result=no
11050             else
11051               result=yes
11052             fi
11053           else
11054             result=$wxUSE_SCROLLBAR
11055           fi
11056
11057           { echo "$as_me:$LINENO: result: $result" >&5
11058 echo "${ECHO_T}$result" >&6; }
11059
11060
11061           enablestring=
11062           defaultval=$wxUSE_ALL_FEATURES
11063           if test -z "$defaultval"; then
11064               if test x"$enablestring" = xdisable; then
11065                   defaultval=yes
11066               else
11067                   defaultval=no
11068               fi
11069           fi
11070
11071           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-searchctrl" >&5
11072 echo $ECHO_N "checking for --${enablestring:-enable}-searchctrl... $ECHO_C" >&6; }
11073           # Check whether --enable-searchctrl was given.
11074 if test "${enable_searchctrl+set}" = set; then
11075   enableval=$enable_searchctrl;
11076                           if test "$enableval" = yes; then
11077                             wx_cv_use_searchctrl='wxUSE_SEARCHCTRL=yes'
11078                           else
11079                             wx_cv_use_searchctrl='wxUSE_SEARCHCTRL=no'
11080                           fi
11081
11082 else
11083
11084                           wx_cv_use_searchctrl='wxUSE_SEARCHCTRL=${'DEFAULT_wxUSE_SEARCHCTRL":-$defaultval}"
11085
11086 fi
11087
11088
11089           eval "$wx_cv_use_searchctrl"
11090
11091           if test x"$enablestring" = xdisable; then
11092             if test $wxUSE_SEARCHCTRL = yes; then
11093               result=no
11094             else
11095               result=yes
11096             fi
11097           else
11098             result=$wxUSE_SEARCHCTRL
11099           fi
11100
11101           { echo "$as_me:$LINENO: result: $result" >&5
11102 echo "${ECHO_T}$result" >&6; }
11103
11104
11105           enablestring=
11106           defaultval=$wxUSE_ALL_FEATURES
11107           if test -z "$defaultval"; then
11108               if test x"$enablestring" = xdisable; then
11109                   defaultval=yes
11110               else
11111                   defaultval=no
11112               fi
11113           fi
11114
11115           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-slider" >&5
11116 echo $ECHO_N "checking for --${enablestring:-enable}-slider... $ECHO_C" >&6; }
11117           # Check whether --enable-slider was given.
11118 if test "${enable_slider+set}" = set; then
11119   enableval=$enable_slider;
11120                           if test "$enableval" = yes; then
11121                             wx_cv_use_slider='wxUSE_SLIDER=yes'
11122                           else
11123                             wx_cv_use_slider='wxUSE_SLIDER=no'
11124                           fi
11125
11126 else
11127
11128                           wx_cv_use_slider='wxUSE_SLIDER=${'DEFAULT_wxUSE_SLIDER":-$defaultval}"
11129
11130 fi
11131
11132
11133           eval "$wx_cv_use_slider"
11134
11135           if test x"$enablestring" = xdisable; then
11136             if test $wxUSE_SLIDER = yes; then
11137               result=no
11138             else
11139               result=yes
11140             fi
11141           else
11142             result=$wxUSE_SLIDER
11143           fi
11144
11145           { echo "$as_me:$LINENO: result: $result" >&5
11146 echo "${ECHO_T}$result" >&6; }
11147
11148
11149           enablestring=
11150           defaultval=$wxUSE_ALL_FEATURES
11151           if test -z "$defaultval"; then
11152               if test x"$enablestring" = xdisable; then
11153                   defaultval=yes
11154               else
11155                   defaultval=no
11156               fi
11157           fi
11158
11159           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinbtn" >&5
11160 echo $ECHO_N "checking for --${enablestring:-enable}-spinbtn... $ECHO_C" >&6; }
11161           # Check whether --enable-spinbtn was given.
11162 if test "${enable_spinbtn+set}" = set; then
11163   enableval=$enable_spinbtn;
11164                           if test "$enableval" = yes; then
11165                             wx_cv_use_spinbtn='wxUSE_SPINBTN=yes'
11166                           else
11167                             wx_cv_use_spinbtn='wxUSE_SPINBTN=no'
11168                           fi
11169
11170 else
11171
11172                           wx_cv_use_spinbtn='wxUSE_SPINBTN=${'DEFAULT_wxUSE_SPINBTN":-$defaultval}"
11173
11174 fi
11175
11176
11177           eval "$wx_cv_use_spinbtn"
11178
11179           if test x"$enablestring" = xdisable; then
11180             if test $wxUSE_SPINBTN = yes; then
11181               result=no
11182             else
11183               result=yes
11184             fi
11185           else
11186             result=$wxUSE_SPINBTN
11187           fi
11188
11189           { echo "$as_me:$LINENO: result: $result" >&5
11190 echo "${ECHO_T}$result" >&6; }
11191
11192
11193           enablestring=
11194           defaultval=$wxUSE_ALL_FEATURES
11195           if test -z "$defaultval"; then
11196               if test x"$enablestring" = xdisable; then
11197                   defaultval=yes
11198               else
11199                   defaultval=no
11200               fi
11201           fi
11202
11203           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinctrl" >&5
11204 echo $ECHO_N "checking for --${enablestring:-enable}-spinctrl... $ECHO_C" >&6; }
11205           # Check whether --enable-spinctrl was given.
11206 if test "${enable_spinctrl+set}" = set; then
11207   enableval=$enable_spinctrl;
11208                           if test "$enableval" = yes; then
11209                             wx_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
11210                           else
11211                             wx_cv_use_spinctrl='wxUSE_SPINCTRL=no'
11212                           fi
11213
11214 else
11215
11216                           wx_cv_use_spinctrl='wxUSE_SPINCTRL=${'DEFAULT_wxUSE_SPINCTRL":-$defaultval}"
11217
11218 fi
11219
11220
11221           eval "$wx_cv_use_spinctrl"
11222
11223           if test x"$enablestring" = xdisable; then
11224             if test $wxUSE_SPINCTRL = yes; then
11225               result=no
11226             else
11227               result=yes
11228             fi
11229           else
11230             result=$wxUSE_SPINCTRL
11231           fi
11232
11233           { echo "$as_me:$LINENO: result: $result" >&5
11234 echo "${ECHO_T}$result" >&6; }
11235
11236
11237           enablestring=
11238           defaultval=$wxUSE_ALL_FEATURES
11239           if test -z "$defaultval"; then
11240               if test x"$enablestring" = xdisable; then
11241                   defaultval=yes
11242               else
11243                   defaultval=no
11244               fi
11245           fi
11246
11247           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splitter" >&5
11248 echo $ECHO_N "checking for --${enablestring:-enable}-splitter... $ECHO_C" >&6; }
11249           # Check whether --enable-splitter was given.
11250 if test "${enable_splitter+set}" = set; then
11251   enableval=$enable_splitter;
11252                           if test "$enableval" = yes; then
11253                             wx_cv_use_splitter='wxUSE_SPLITTER=yes'
11254                           else
11255                             wx_cv_use_splitter='wxUSE_SPLITTER=no'
11256                           fi
11257
11258 else
11259
11260                           wx_cv_use_splitter='wxUSE_SPLITTER=${'DEFAULT_wxUSE_SPLITTER":-$defaultval}"
11261
11262 fi
11263
11264
11265           eval "$wx_cv_use_splitter"
11266
11267           if test x"$enablestring" = xdisable; then
11268             if test $wxUSE_SPLITTER = yes; then
11269               result=no
11270             else
11271               result=yes
11272             fi
11273           else
11274             result=$wxUSE_SPLITTER
11275           fi
11276
11277           { echo "$as_me:$LINENO: result: $result" >&5
11278 echo "${ECHO_T}$result" >&6; }
11279
11280
11281           enablestring=
11282           defaultval=$wxUSE_ALL_FEATURES
11283           if test -z "$defaultval"; then
11284               if test x"$enablestring" = xdisable; then
11285                   defaultval=yes
11286               else
11287                   defaultval=no
11288               fi
11289           fi
11290
11291           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbmp" >&5
11292 echo $ECHO_N "checking for --${enablestring:-enable}-statbmp... $ECHO_C" >&6; }
11293           # Check whether --enable-statbmp was given.
11294 if test "${enable_statbmp+set}" = set; then
11295   enableval=$enable_statbmp;
11296                           if test "$enableval" = yes; then
11297                             wx_cv_use_statbmp='wxUSE_STATBMP=yes'
11298                           else
11299                             wx_cv_use_statbmp='wxUSE_STATBMP=no'
11300                           fi
11301
11302 else
11303
11304                           wx_cv_use_statbmp='wxUSE_STATBMP=${'DEFAULT_wxUSE_STATBMP":-$defaultval}"
11305
11306 fi
11307
11308
11309           eval "$wx_cv_use_statbmp"
11310
11311           if test x"$enablestring" = xdisable; then
11312             if test $wxUSE_STATBMP = yes; then
11313               result=no
11314             else
11315               result=yes
11316             fi
11317           else
11318             result=$wxUSE_STATBMP
11319           fi
11320
11321           { echo "$as_me:$LINENO: result: $result" >&5
11322 echo "${ECHO_T}$result" >&6; }
11323
11324
11325           enablestring=
11326           defaultval=$wxUSE_ALL_FEATURES
11327           if test -z "$defaultval"; then
11328               if test x"$enablestring" = xdisable; then
11329                   defaultval=yes
11330               else
11331                   defaultval=no
11332               fi
11333           fi
11334
11335           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbox" >&5
11336 echo $ECHO_N "checking for --${enablestring:-enable}-statbox... $ECHO_C" >&6; }
11337           # Check whether --enable-statbox was given.
11338 if test "${enable_statbox+set}" = set; then
11339   enableval=$enable_statbox;
11340                           if test "$enableval" = yes; then
11341                             wx_cv_use_statbox='wxUSE_STATBOX=yes'
11342                           else
11343                             wx_cv_use_statbox='wxUSE_STATBOX=no'
11344                           fi
11345
11346 else
11347
11348                           wx_cv_use_statbox='wxUSE_STATBOX=${'DEFAULT_wxUSE_STATBOX":-$defaultval}"
11349
11350 fi
11351
11352
11353           eval "$wx_cv_use_statbox"
11354
11355           if test x"$enablestring" = xdisable; then
11356             if test $wxUSE_STATBOX = yes; then
11357               result=no
11358             else
11359               result=yes
11360             fi
11361           else
11362             result=$wxUSE_STATBOX
11363           fi
11364
11365           { echo "$as_me:$LINENO: result: $result" >&5
11366 echo "${ECHO_T}$result" >&6; }
11367
11368
11369           enablestring=
11370           defaultval=$wxUSE_ALL_FEATURES
11371           if test -z "$defaultval"; then
11372               if test x"$enablestring" = xdisable; then
11373                   defaultval=yes
11374               else
11375                   defaultval=no
11376               fi
11377           fi
11378
11379           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statline" >&5
11380 echo $ECHO_N "checking for --${enablestring:-enable}-statline... $ECHO_C" >&6; }
11381           # Check whether --enable-statline was given.
11382 if test "${enable_statline+set}" = set; then
11383   enableval=$enable_statline;
11384                           if test "$enableval" = yes; then
11385                             wx_cv_use_statline='wxUSE_STATLINE=yes'
11386                           else
11387                             wx_cv_use_statline='wxUSE_STATLINE=no'
11388                           fi
11389
11390 else
11391
11392                           wx_cv_use_statline='wxUSE_STATLINE=${'DEFAULT_wxUSE_STATLINE":-$defaultval}"
11393
11394 fi
11395
11396
11397           eval "$wx_cv_use_statline"
11398
11399           if test x"$enablestring" = xdisable; then
11400             if test $wxUSE_STATLINE = yes; then
11401               result=no
11402             else
11403               result=yes
11404             fi
11405           else
11406             result=$wxUSE_STATLINE
11407           fi
11408
11409           { echo "$as_me:$LINENO: result: $result" >&5
11410 echo "${ECHO_T}$result" >&6; }
11411
11412
11413           enablestring=
11414           defaultval=$wxUSE_ALL_FEATURES
11415           if test -z "$defaultval"; then
11416               if test x"$enablestring" = xdisable; then
11417                   defaultval=yes
11418               else
11419                   defaultval=no
11420               fi
11421           fi
11422
11423           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stattext" >&5
11424 echo $ECHO_N "checking for --${enablestring:-enable}-stattext... $ECHO_C" >&6; }
11425           # Check whether --enable-stattext was given.
11426 if test "${enable_stattext+set}" = set; then
11427   enableval=$enable_stattext;
11428                           if test "$enableval" = yes; then
11429                             wx_cv_use_stattext='wxUSE_STATTEXT=yes'
11430                           else
11431                             wx_cv_use_stattext='wxUSE_STATTEXT=no'
11432                           fi
11433
11434 else
11435
11436                           wx_cv_use_stattext='wxUSE_STATTEXT=${'DEFAULT_wxUSE_STATTEXT":-$defaultval}"
11437
11438 fi
11439
11440
11441           eval "$wx_cv_use_stattext"
11442
11443           if test x"$enablestring" = xdisable; then
11444             if test $wxUSE_STATTEXT = yes; then
11445               result=no
11446             else
11447               result=yes
11448             fi
11449           else
11450             result=$wxUSE_STATTEXT
11451           fi
11452
11453           { echo "$as_me:$LINENO: result: $result" >&5
11454 echo "${ECHO_T}$result" >&6; }
11455
11456
11457           enablestring=
11458           defaultval=$wxUSE_ALL_FEATURES
11459           if test -z "$defaultval"; then
11460               if test x"$enablestring" = xdisable; then
11461                   defaultval=yes
11462               else
11463                   defaultval=no
11464               fi
11465           fi
11466
11467           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statusbar" >&5
11468 echo $ECHO_N "checking for --${enablestring:-enable}-statusbar... $ECHO_C" >&6; }
11469           # Check whether --enable-statusbar was given.
11470 if test "${enable_statusbar+set}" = set; then
11471   enableval=$enable_statusbar;
11472                           if test "$enableval" = yes; then
11473                             wx_cv_use_statusbar='wxUSE_STATUSBAR=yes'
11474                           else
11475                             wx_cv_use_statusbar='wxUSE_STATUSBAR=no'
11476                           fi
11477
11478 else
11479
11480                           wx_cv_use_statusbar='wxUSE_STATUSBAR=${'DEFAULT_wxUSE_STATUSBAR":-$defaultval}"
11481
11482 fi
11483
11484
11485           eval "$wx_cv_use_statusbar"
11486
11487           if test x"$enablestring" = xdisable; then
11488             if test $wxUSE_STATUSBAR = yes; then
11489               result=no
11490             else
11491               result=yes
11492             fi
11493           else
11494             result=$wxUSE_STATUSBAR
11495           fi
11496
11497           { echo "$as_me:$LINENO: result: $result" >&5
11498 echo "${ECHO_T}$result" >&6; }
11499
11500
11501           enablestring=
11502           defaultval=$wxUSE_ALL_FEATURES
11503           if test -z "$defaultval"; then
11504               if test x"$enablestring" = xdisable; then
11505                   defaultval=yes
11506               else
11507                   defaultval=no
11508               fi
11509           fi
11510
11511           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tabdialog" >&5
11512 echo $ECHO_N "checking for --${enablestring:-enable}-tabdialog... $ECHO_C" >&6; }
11513           # Check whether --enable-tabdialog was given.
11514 if test "${enable_tabdialog+set}" = set; then
11515   enableval=$enable_tabdialog;
11516                           if test "$enableval" = yes; then
11517                             wx_cv_use_tabdialog='wxUSE_TAB_DIALOG=yes'
11518                           else
11519                             wx_cv_use_tabdialog='wxUSE_TAB_DIALOG=no'
11520                           fi
11521
11522 else
11523
11524                           wx_cv_use_tabdialog='wxUSE_TAB_DIALOG=${'DEFAULT_wxUSE_TAB_DIALOG":-$defaultval}"
11525
11526 fi
11527
11528
11529           eval "$wx_cv_use_tabdialog"
11530
11531           if test x"$enablestring" = xdisable; then
11532             if test $wxUSE_TAB_DIALOG = yes; then
11533               result=no
11534             else
11535               result=yes
11536             fi
11537           else
11538             result=$wxUSE_TAB_DIALOG
11539           fi
11540
11541           { echo "$as_me:$LINENO: result: $result" >&5
11542 echo "${ECHO_T}$result" >&6; }
11543
11544
11545           enablestring=
11546           defaultval=$wxUSE_ALL_FEATURES
11547           if test -z "$defaultval"; then
11548               if test x"$enablestring" = xdisable; then
11549                   defaultval=yes
11550               else
11551                   defaultval=no
11552               fi
11553           fi
11554
11555           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-taskbaricon" >&5
11556 echo $ECHO_N "checking for --${enablestring:-enable}-taskbaricon... $ECHO_C" >&6; }
11557           # Check whether --enable-taskbaricon was given.
11558 if test "${enable_taskbaricon+set}" = set; then
11559   enableval=$enable_taskbaricon;
11560                           if test "$enableval" = yes; then
11561                             wx_cv_use_taskbaricon='wxUSE_TASKBARICON=yes'
11562                           else
11563                             wx_cv_use_taskbaricon='wxUSE_TASKBARICON=no'
11564                           fi
11565
11566 else
11567
11568                           wx_cv_use_taskbaricon='wxUSE_TASKBARICON=${'DEFAULT_wxUSE_TASKBARICON":-$defaultval}"
11569
11570 fi
11571
11572
11573           eval "$wx_cv_use_taskbaricon"
11574
11575           if test x"$enablestring" = xdisable; then
11576             if test $wxUSE_TASKBARICON = yes; then
11577               result=no
11578             else
11579               result=yes
11580             fi
11581           else
11582             result=$wxUSE_TASKBARICON
11583           fi
11584
11585           { echo "$as_me:$LINENO: result: $result" >&5
11586 echo "${ECHO_T}$result" >&6; }
11587
11588
11589           enablestring=
11590           defaultval=$wxUSE_ALL_FEATURES
11591           if test -z "$defaultval"; then
11592               if test x"$enablestring" = xdisable; then
11593                   defaultval=yes
11594               else
11595                   defaultval=no
11596               fi
11597           fi
11598
11599           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textctrl" >&5
11600 echo $ECHO_N "checking for --${enablestring:-enable}-textctrl... $ECHO_C" >&6; }
11601           # Check whether --enable-textctrl was given.
11602 if test "${enable_textctrl+set}" = set; then
11603   enableval=$enable_textctrl;
11604                           if test "$enableval" = yes; then
11605                             wx_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
11606                           else
11607                             wx_cv_use_textctrl='wxUSE_TEXTCTRL=no'
11608                           fi
11609
11610 else
11611
11612                           wx_cv_use_textctrl='wxUSE_TEXTCTRL=${'DEFAULT_wxUSE_TEXTCTRL":-$defaultval}"
11613
11614 fi
11615
11616
11617           eval "$wx_cv_use_textctrl"
11618
11619           if test x"$enablestring" = xdisable; then
11620             if test $wxUSE_TEXTCTRL = yes; then
11621               result=no
11622             else
11623               result=yes
11624             fi
11625           else
11626             result=$wxUSE_TEXTCTRL
11627           fi
11628
11629           { echo "$as_me:$LINENO: result: $result" >&5
11630 echo "${ECHO_T}$result" >&6; }
11631
11632
11633           enablestring=
11634           defaultval=$wxUSE_ALL_FEATURES
11635           if test -z "$defaultval"; then
11636               if test x"$enablestring" = xdisable; then
11637                   defaultval=yes
11638               else
11639                   defaultval=no
11640               fi
11641           fi
11642
11643           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-togglebtn" >&5
11644 echo $ECHO_N "checking for --${enablestring:-enable}-togglebtn... $ECHO_C" >&6; }
11645           # Check whether --enable-togglebtn was given.
11646 if test "${enable_togglebtn+set}" = set; then
11647   enableval=$enable_togglebtn;
11648                           if test "$enableval" = yes; then
11649                             wx_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
11650                           else
11651                             wx_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
11652                           fi
11653
11654 else
11655
11656                           wx_cv_use_togglebtn='wxUSE_TOGGLEBTN=${'DEFAULT_wxUSE_TOGGLEBTN":-$defaultval}"
11657
11658 fi
11659
11660
11661           eval "$wx_cv_use_togglebtn"
11662
11663           if test x"$enablestring" = xdisable; then
11664             if test $wxUSE_TOGGLEBTN = yes; then
11665               result=no
11666             else
11667               result=yes
11668             fi
11669           else
11670             result=$wxUSE_TOGGLEBTN
11671           fi
11672
11673           { echo "$as_me:$LINENO: result: $result" >&5
11674 echo "${ECHO_T}$result" >&6; }
11675
11676
11677           enablestring=
11678           defaultval=$wxUSE_ALL_FEATURES
11679           if test -z "$defaultval"; then
11680               if test x"$enablestring" = xdisable; then
11681                   defaultval=yes
11682               else
11683                   defaultval=no
11684               fi
11685           fi
11686
11687           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbar" >&5
11688 echo $ECHO_N "checking for --${enablestring:-enable}-toolbar... $ECHO_C" >&6; }
11689           # Check whether --enable-toolbar was given.
11690 if test "${enable_toolbar+set}" = set; then
11691   enableval=$enable_toolbar;
11692                           if test "$enableval" = yes; then
11693                             wx_cv_use_toolbar='wxUSE_TOOLBAR=yes'
11694                           else
11695                             wx_cv_use_toolbar='wxUSE_TOOLBAR=no'
11696                           fi
11697
11698 else
11699
11700                           wx_cv_use_toolbar='wxUSE_TOOLBAR=${'DEFAULT_wxUSE_TOOLBAR":-$defaultval}"
11701
11702 fi
11703
11704
11705           eval "$wx_cv_use_toolbar"
11706
11707           if test x"$enablestring" = xdisable; then
11708             if test $wxUSE_TOOLBAR = yes; then
11709               result=no
11710             else
11711               result=yes
11712             fi
11713           else
11714             result=$wxUSE_TOOLBAR
11715           fi
11716
11717           { echo "$as_me:$LINENO: result: $result" >&5
11718 echo "${ECHO_T}$result" >&6; }
11719
11720
11721           enablestring=
11722           defaultval=$wxUSE_ALL_FEATURES
11723           if test -z "$defaultval"; then
11724               if test x"$enablestring" = xdisable; then
11725                   defaultval=yes
11726               else
11727                   defaultval=no
11728               fi
11729           fi
11730
11731           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarnative" >&5
11732 echo $ECHO_N "checking for --${enablestring:-enable}-tbarnative... $ECHO_C" >&6; }
11733           # Check whether --enable-tbarnative was given.
11734 if test "${enable_tbarnative+set}" = set; then
11735   enableval=$enable_tbarnative;
11736                           if test "$enableval" = yes; then
11737                             wx_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
11738                           else
11739                             wx_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
11740                           fi
11741
11742 else
11743
11744                           wx_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=${'DEFAULT_wxUSE_TOOLBAR_NATIVE":-$defaultval}"
11745
11746 fi
11747
11748
11749           eval "$wx_cv_use_tbarnative"
11750
11751           if test x"$enablestring" = xdisable; then
11752             if test $wxUSE_TOOLBAR_NATIVE = yes; then
11753               result=no
11754             else
11755               result=yes
11756             fi
11757           else
11758             result=$wxUSE_TOOLBAR_NATIVE
11759           fi
11760
11761           { echo "$as_me:$LINENO: result: $result" >&5
11762 echo "${ECHO_T}$result" >&6; }
11763
11764
11765           enablestring=
11766           defaultval=$wxUSE_ALL_FEATURES
11767           if test -z "$defaultval"; then
11768               if test x"$enablestring" = xdisable; then
11769                   defaultval=yes
11770               else
11771                   defaultval=no
11772               fi
11773           fi
11774
11775           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treebook" >&5
11776 echo $ECHO_N "checking for --${enablestring:-enable}-treebook... $ECHO_C" >&6; }
11777           # Check whether --enable-treebook was given.
11778 if test "${enable_treebook+set}" = set; then
11779   enableval=$enable_treebook;
11780                           if test "$enableval" = yes; then
11781                             wx_cv_use_treebook='wxUSE_TREEBOOK=yes'
11782                           else
11783                             wx_cv_use_treebook='wxUSE_TREEBOOK=no'
11784                           fi
11785
11786 else
11787
11788                           wx_cv_use_treebook='wxUSE_TREEBOOK=${'DEFAULT_wxUSE_TREEBOOK":-$defaultval}"
11789
11790 fi
11791
11792
11793           eval "$wx_cv_use_treebook"
11794
11795           if test x"$enablestring" = xdisable; then
11796             if test $wxUSE_TREEBOOK = yes; then
11797               result=no
11798             else
11799               result=yes
11800             fi
11801           else
11802             result=$wxUSE_TREEBOOK
11803           fi
11804
11805           { echo "$as_me:$LINENO: result: $result" >&5
11806 echo "${ECHO_T}$result" >&6; }
11807
11808
11809           enablestring=
11810           defaultval=$wxUSE_ALL_FEATURES
11811           if test -z "$defaultval"; then
11812               if test x"$enablestring" = xdisable; then
11813                   defaultval=yes
11814               else
11815                   defaultval=no
11816               fi
11817           fi
11818
11819           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbook" >&5
11820 echo $ECHO_N "checking for --${enablestring:-enable}-toolbook... $ECHO_C" >&6; }
11821           # Check whether --enable-toolbook was given.
11822 if test "${enable_toolbook+set}" = set; then
11823   enableval=$enable_toolbook;
11824                           if test "$enableval" = yes; then
11825                             wx_cv_use_toolbook='wxUSE_TOOLBOOK=yes'
11826                           else
11827                             wx_cv_use_toolbook='wxUSE_TOOLBOOK=no'
11828                           fi
11829
11830 else
11831
11832                           wx_cv_use_toolbook='wxUSE_TOOLBOOK=${'DEFAULT_wxUSE_TOOLBOOK":-$defaultval}"
11833
11834 fi
11835
11836
11837           eval "$wx_cv_use_toolbook"
11838
11839           if test x"$enablestring" = xdisable; then
11840             if test $wxUSE_TOOLBOOK = yes; then
11841               result=no
11842             else
11843               result=yes
11844             fi
11845           else
11846             result=$wxUSE_TOOLBOOK
11847           fi
11848
11849           { echo "$as_me:$LINENO: result: $result" >&5
11850 echo "${ECHO_T}$result" >&6; }
11851
11852
11853           enablestring=
11854           defaultval=$wxUSE_ALL_FEATURES
11855           if test -z "$defaultval"; then
11856               if test x"$enablestring" = xdisable; then
11857                   defaultval=yes
11858               else
11859                   defaultval=no
11860               fi
11861           fi
11862
11863           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treectrl" >&5
11864 echo $ECHO_N "checking for --${enablestring:-enable}-treectrl... $ECHO_C" >&6; }
11865           # Check whether --enable-treectrl was given.
11866 if test "${enable_treectrl+set}" = set; then
11867   enableval=$enable_treectrl;
11868                           if test "$enableval" = yes; then
11869                             wx_cv_use_treectrl='wxUSE_TREECTRL=yes'
11870                           else
11871                             wx_cv_use_treectrl='wxUSE_TREECTRL=no'
11872                           fi
11873
11874 else
11875
11876                           wx_cv_use_treectrl='wxUSE_TREECTRL=${'DEFAULT_wxUSE_TREECTRL":-$defaultval}"
11877
11878 fi
11879
11880
11881           eval "$wx_cv_use_treectrl"
11882
11883           if test x"$enablestring" = xdisable; then
11884             if test $wxUSE_TREECTRL = yes; then
11885               result=no
11886             else
11887               result=yes
11888             fi
11889           else
11890             result=$wxUSE_TREECTRL
11891           fi
11892
11893           { echo "$as_me:$LINENO: result: $result" >&5
11894 echo "${ECHO_T}$result" >&6; }
11895
11896
11897           enablestring=
11898           defaultval=$wxUSE_ALL_FEATURES
11899           if test -z "$defaultval"; then
11900               if test x"$enablestring" = xdisable; then
11901                   defaultval=yes
11902               else
11903                   defaultval=no
11904               fi
11905           fi
11906
11907           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipwindow" >&5
11908 echo $ECHO_N "checking for --${enablestring:-enable}-tipwindow... $ECHO_C" >&6; }
11909           # Check whether --enable-tipwindow was given.
11910 if test "${enable_tipwindow+set}" = set; then
11911   enableval=$enable_tipwindow;
11912                           if test "$enableval" = yes; then
11913                             wx_cv_use_tipwindow='wxUSE_TIPWINDOW=yes'
11914                           else
11915                             wx_cv_use_tipwindow='wxUSE_TIPWINDOW=no'
11916                           fi
11917
11918 else
11919
11920                           wx_cv_use_tipwindow='wxUSE_TIPWINDOW=${'DEFAULT_wxUSE_TIPWINDOW":-$defaultval}"
11921
11922 fi
11923
11924
11925           eval "$wx_cv_use_tipwindow"
11926
11927           if test x"$enablestring" = xdisable; then
11928             if test $wxUSE_TIPWINDOW = yes; then
11929               result=no
11930             else
11931               result=yes
11932             fi
11933           else
11934             result=$wxUSE_TIPWINDOW
11935           fi
11936
11937           { echo "$as_me:$LINENO: result: $result" >&5
11938 echo "${ECHO_T}$result" >&6; }
11939
11940
11941           enablestring=
11942           defaultval=$wxUSE_ALL_FEATURES
11943           if test -z "$defaultval"; then
11944               if test x"$enablestring" = xdisable; then
11945                   defaultval=yes
11946               else
11947                   defaultval=no
11948               fi
11949           fi
11950
11951           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-popupwin" >&5
11952 echo $ECHO_N "checking for --${enablestring:-enable}-popupwin... $ECHO_C" >&6; }
11953           # Check whether --enable-popupwin was given.
11954 if test "${enable_popupwin+set}" = set; then
11955   enableval=$enable_popupwin;
11956                           if test "$enableval" = yes; then
11957                             wx_cv_use_popupwin='wxUSE_POPUPWIN=yes'
11958                           else
11959                             wx_cv_use_popupwin='wxUSE_POPUPWIN=no'
11960                           fi
11961
11962 else
11963
11964                           wx_cv_use_popupwin='wxUSE_POPUPWIN=${'DEFAULT_wxUSE_POPUPWIN":-$defaultval}"
11965
11966 fi
11967
11968
11969           eval "$wx_cv_use_popupwin"
11970
11971           if test x"$enablestring" = xdisable; then
11972             if test $wxUSE_POPUPWIN = yes; then
11973               result=no
11974             else
11975               result=yes
11976             fi
11977           else
11978             result=$wxUSE_POPUPWIN
11979           fi
11980
11981           { echo "$as_me:$LINENO: result: $result" >&5
11982 echo "${ECHO_T}$result" >&6; }
11983
11984
11985
11986
11987           enablestring=
11988           defaultval=$wxUSE_ALL_FEATURES
11989           if test -z "$defaultval"; then
11990               if test x"$enablestring" = xdisable; then
11991                   defaultval=yes
11992               else
11993                   defaultval=no
11994               fi
11995           fi
11996
11997           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-commondlg" >&5
11998 echo $ECHO_N "checking for --${enablestring:-enable}-commondlg... $ECHO_C" >&6; }
11999           # Check whether --enable-commondlg was given.
12000 if test "${enable_commondlg+set}" = set; then
12001   enableval=$enable_commondlg;
12002                           if test "$enableval" = yes; then
12003                             wx_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
12004                           else
12005                             wx_cv_use_commondlg='wxUSE_COMMONDLGS=no'
12006                           fi
12007
12008 else
12009
12010                           wx_cv_use_commondlg='wxUSE_COMMONDLGS=${'DEFAULT_wxUSE_COMMONDLGS":-$defaultval}"
12011
12012 fi
12013
12014
12015           eval "$wx_cv_use_commondlg"
12016
12017           if test x"$enablestring" = xdisable; then
12018             if test $wxUSE_COMMONDLGS = yes; then
12019               result=no
12020             else
12021               result=yes
12022             fi
12023           else
12024             result=$wxUSE_COMMONDLGS
12025           fi
12026
12027           { echo "$as_me:$LINENO: result: $result" >&5
12028 echo "${ECHO_T}$result" >&6; }
12029
12030
12031           enablestring=
12032           defaultval=$wxUSE_ALL_FEATURES
12033           if test -z "$defaultval"; then
12034               if test x"$enablestring" = xdisable; then
12035                   defaultval=yes
12036               else
12037                   defaultval=no
12038               fi
12039           fi
12040
12041           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-aboutdlg" >&5
12042 echo $ECHO_N "checking for --${enablestring:-enable}-aboutdlg... $ECHO_C" >&6; }
12043           # Check whether --enable-aboutdlg was given.
12044 if test "${enable_aboutdlg+set}" = set; then
12045   enableval=$enable_aboutdlg;
12046                           if test "$enableval" = yes; then
12047                             wx_cv_use_aboutdlg='wxUSE_ABOUTDLG=yes'
12048                           else
12049                             wx_cv_use_aboutdlg='wxUSE_ABOUTDLG=no'
12050                           fi
12051
12052 else
12053
12054                           wx_cv_use_aboutdlg='wxUSE_ABOUTDLG=${'DEFAULT_wxUSE_ABOUTDLG":-$defaultval}"
12055
12056 fi
12057
12058
12059           eval "$wx_cv_use_aboutdlg"
12060
12061           if test x"$enablestring" = xdisable; then
12062             if test $wxUSE_ABOUTDLG = yes; then
12063               result=no
12064             else
12065               result=yes
12066             fi
12067           else
12068             result=$wxUSE_ABOUTDLG
12069           fi
12070
12071           { echo "$as_me:$LINENO: result: $result" >&5
12072 echo "${ECHO_T}$result" >&6; }
12073
12074
12075           enablestring=
12076           defaultval=$wxUSE_ALL_FEATURES
12077           if test -z "$defaultval"; then
12078               if test x"$enablestring" = xdisable; then
12079                   defaultval=yes
12080               else
12081                   defaultval=no
12082               fi
12083           fi
12084
12085           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicedlg" >&5
12086 echo $ECHO_N "checking for --${enablestring:-enable}-choicedlg... $ECHO_C" >&6; }
12087           # Check whether --enable-choicedlg was given.
12088 if test "${enable_choicedlg+set}" = set; then
12089   enableval=$enable_choicedlg;
12090                           if test "$enableval" = yes; then
12091                             wx_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
12092                           else
12093                             wx_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
12094                           fi
12095
12096 else
12097
12098                           wx_cv_use_choicedlg='wxUSE_CHOICEDLG=${'DEFAULT_wxUSE_CHOICEDLG":-$defaultval}"
12099
12100 fi
12101
12102
12103           eval "$wx_cv_use_choicedlg"
12104
12105           if test x"$enablestring" = xdisable; then
12106             if test $wxUSE_CHOICEDLG = yes; then
12107               result=no
12108             else
12109               result=yes
12110             fi
12111           else
12112             result=$wxUSE_CHOICEDLG
12113           fi
12114
12115           { echo "$as_me:$LINENO: result: $result" >&5
12116 echo "${ECHO_T}$result" >&6; }
12117
12118
12119           enablestring=
12120           defaultval=$wxUSE_ALL_FEATURES
12121           if test -z "$defaultval"; then
12122               if test x"$enablestring" = xdisable; then
12123                   defaultval=yes
12124               else
12125                   defaultval=no
12126               fi
12127           fi
12128
12129           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-coldlg" >&5
12130 echo $ECHO_N "checking for --${enablestring:-enable}-coldlg... $ECHO_C" >&6; }
12131           # Check whether --enable-coldlg was given.
12132 if test "${enable_coldlg+set}" = set; then
12133   enableval=$enable_coldlg;
12134                           if test "$enableval" = yes; then
12135                             wx_cv_use_coldlg='wxUSE_COLOURDLG=yes'
12136                           else
12137                             wx_cv_use_coldlg='wxUSE_COLOURDLG=no'
12138                           fi
12139
12140 else
12141
12142                           wx_cv_use_coldlg='wxUSE_COLOURDLG=${'DEFAULT_wxUSE_COLOURDLG":-$defaultval}"
12143
12144 fi
12145
12146
12147           eval "$wx_cv_use_coldlg"
12148
12149           if test x"$enablestring" = xdisable; then
12150             if test $wxUSE_COLOURDLG = yes; then
12151               result=no
12152             else
12153               result=yes
12154             fi
12155           else
12156             result=$wxUSE_COLOURDLG
12157           fi
12158
12159           { echo "$as_me:$LINENO: result: $result" >&5
12160 echo "${ECHO_T}$result" >&6; }
12161
12162
12163           enablestring=
12164           defaultval=$wxUSE_ALL_FEATURES
12165           if test -z "$defaultval"; then
12166               if test x"$enablestring" = xdisable; then
12167                   defaultval=yes
12168               else
12169                   defaultval=no
12170               fi
12171           fi
12172
12173           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filedlg" >&5
12174 echo $ECHO_N "checking for --${enablestring:-enable}-filedlg... $ECHO_C" >&6; }
12175           # Check whether --enable-filedlg was given.
12176 if test "${enable_filedlg+set}" = set; then
12177   enableval=$enable_filedlg;
12178                           if test "$enableval" = yes; then
12179                             wx_cv_use_filedlg='wxUSE_FILEDLG=yes'
12180                           else
12181                             wx_cv_use_filedlg='wxUSE_FILEDLG=no'
12182                           fi
12183
12184 else
12185
12186                           wx_cv_use_filedlg='wxUSE_FILEDLG=${'DEFAULT_wxUSE_FILEDLG":-$defaultval}"
12187
12188 fi
12189
12190
12191           eval "$wx_cv_use_filedlg"
12192
12193           if test x"$enablestring" = xdisable; then
12194             if test $wxUSE_FILEDLG = yes; then
12195               result=no
12196             else
12197               result=yes
12198             fi
12199           else
12200             result=$wxUSE_FILEDLG
12201           fi
12202
12203           { echo "$as_me:$LINENO: result: $result" >&5
12204 echo "${ECHO_T}$result" >&6; }
12205
12206
12207           enablestring=
12208           defaultval=$wxUSE_ALL_FEATURES
12209           if test -z "$defaultval"; then
12210               if test x"$enablestring" = xdisable; then
12211                   defaultval=yes
12212               else
12213                   defaultval=no
12214               fi
12215           fi
12216
12217           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-finddlg" >&5
12218 echo $ECHO_N "checking for --${enablestring:-enable}-finddlg... $ECHO_C" >&6; }
12219           # Check whether --enable-finddlg was given.
12220 if test "${enable_finddlg+set}" = set; then
12221   enableval=$enable_finddlg;
12222                           if test "$enableval" = yes; then
12223                             wx_cv_use_finddlg='wxUSE_FINDREPLDLG=yes'
12224                           else
12225                             wx_cv_use_finddlg='wxUSE_FINDREPLDLG=no'
12226                           fi
12227
12228 else
12229
12230                           wx_cv_use_finddlg='wxUSE_FINDREPLDLG=${'DEFAULT_wxUSE_FINDREPLDLG":-$defaultval}"
12231
12232 fi
12233
12234
12235           eval "$wx_cv_use_finddlg"
12236
12237           if test x"$enablestring" = xdisable; then
12238             if test $wxUSE_FINDREPLDLG = yes; then
12239               result=no
12240             else
12241               result=yes
12242             fi
12243           else
12244             result=$wxUSE_FINDREPLDLG
12245           fi
12246
12247           { echo "$as_me:$LINENO: result: $result" >&5
12248 echo "${ECHO_T}$result" >&6; }
12249
12250
12251           enablestring=
12252           defaultval=$wxUSE_ALL_FEATURES
12253           if test -z "$defaultval"; then
12254               if test x"$enablestring" = xdisable; then
12255                   defaultval=yes
12256               else
12257                   defaultval=no
12258               fi
12259           fi
12260
12261           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontdlg" >&5
12262 echo $ECHO_N "checking for --${enablestring:-enable}-fontdlg... $ECHO_C" >&6; }
12263           # Check whether --enable-fontdlg was given.
12264 if test "${enable_fontdlg+set}" = set; then
12265   enableval=$enable_fontdlg;
12266                           if test "$enableval" = yes; then
12267                             wx_cv_use_fontdlg='wxUSE_FONTDLG=yes'
12268                           else
12269                             wx_cv_use_fontdlg='wxUSE_FONTDLG=no'
12270                           fi
12271
12272 else
12273
12274                           wx_cv_use_fontdlg='wxUSE_FONTDLG=${'DEFAULT_wxUSE_FONTDLG":-$defaultval}"
12275
12276 fi
12277
12278
12279           eval "$wx_cv_use_fontdlg"
12280
12281           if test x"$enablestring" = xdisable; then
12282             if test $wxUSE_FONTDLG = yes; then
12283               result=no
12284             else
12285               result=yes
12286             fi
12287           else
12288             result=$wxUSE_FONTDLG
12289           fi
12290
12291           { echo "$as_me:$LINENO: result: $result" >&5
12292 echo "${ECHO_T}$result" >&6; }
12293
12294
12295           enablestring=
12296           defaultval=$wxUSE_ALL_FEATURES
12297           if test -z "$defaultval"; then
12298               if test x"$enablestring" = xdisable; then
12299                   defaultval=yes
12300               else
12301                   defaultval=no
12302               fi
12303           fi
12304
12305           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirdlg" >&5
12306 echo $ECHO_N "checking for --${enablestring:-enable}-dirdlg... $ECHO_C" >&6; }
12307           # Check whether --enable-dirdlg was given.
12308 if test "${enable_dirdlg+set}" = set; then
12309   enableval=$enable_dirdlg;
12310                           if test "$enableval" = yes; then
12311                             wx_cv_use_dirdlg='wxUSE_DIRDLG=yes'
12312                           else
12313                             wx_cv_use_dirdlg='wxUSE_DIRDLG=no'
12314                           fi
12315
12316 else
12317
12318                           wx_cv_use_dirdlg='wxUSE_DIRDLG=${'DEFAULT_wxUSE_DIRDLG":-$defaultval}"
12319
12320 fi
12321
12322
12323           eval "$wx_cv_use_dirdlg"
12324
12325           if test x"$enablestring" = xdisable; then
12326             if test $wxUSE_DIRDLG = yes; then
12327               result=no
12328             else
12329               result=yes
12330             fi
12331           else
12332             result=$wxUSE_DIRDLG
12333           fi
12334
12335           { echo "$as_me:$LINENO: result: $result" >&5
12336 echo "${ECHO_T}$result" >&6; }
12337
12338
12339           enablestring=
12340           defaultval=$wxUSE_ALL_FEATURES
12341           if test -z "$defaultval"; then
12342               if test x"$enablestring" = xdisable; then
12343                   defaultval=yes
12344               else
12345                   defaultval=no
12346               fi
12347           fi
12348
12349           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-msgdlg" >&5
12350 echo $ECHO_N "checking for --${enablestring:-enable}-msgdlg... $ECHO_C" >&6; }
12351           # Check whether --enable-msgdlg was given.
12352 if test "${enable_msgdlg+set}" = set; then
12353   enableval=$enable_msgdlg;
12354                           if test "$enableval" = yes; then
12355                             wx_cv_use_msgdlg='wxUSE_MSGDLG=yes'
12356                           else
12357                             wx_cv_use_msgdlg='wxUSE_MSGDLG=no'
12358                           fi
12359
12360 else
12361
12362                           wx_cv_use_msgdlg='wxUSE_MSGDLG=${'DEFAULT_wxUSE_MSGDLG":-$defaultval}"
12363
12364 fi
12365
12366
12367           eval "$wx_cv_use_msgdlg"
12368
12369           if test x"$enablestring" = xdisable; then
12370             if test $wxUSE_MSGDLG = yes; then
12371               result=no
12372             else
12373               result=yes
12374             fi
12375           else
12376             result=$wxUSE_MSGDLG
12377           fi
12378
12379           { echo "$as_me:$LINENO: result: $result" >&5
12380 echo "${ECHO_T}$result" >&6; }
12381
12382
12383           enablestring=
12384           defaultval=$wxUSE_ALL_FEATURES
12385           if test -z "$defaultval"; then
12386               if test x"$enablestring" = xdisable; then
12387                   defaultval=yes
12388               else
12389                   defaultval=no
12390               fi
12391           fi
12392
12393           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-numberdlg" >&5
12394 echo $ECHO_N "checking for --${enablestring:-enable}-numberdlg... $ECHO_C" >&6; }
12395           # Check whether --enable-numberdlg was given.
12396 if test "${enable_numberdlg+set}" = set; then
12397   enableval=$enable_numberdlg;
12398                           if test "$enableval" = yes; then
12399                             wx_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
12400                           else
12401                             wx_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
12402                           fi
12403
12404 else
12405
12406                           wx_cv_use_numberdlg='wxUSE_NUMBERDLG=${'DEFAULT_wxUSE_NUMBERDLG":-$defaultval}"
12407
12408 fi
12409
12410
12411           eval "$wx_cv_use_numberdlg"
12412
12413           if test x"$enablestring" = xdisable; then
12414             if test $wxUSE_NUMBERDLG = yes; then
12415               result=no
12416             else
12417               result=yes
12418             fi
12419           else
12420             result=$wxUSE_NUMBERDLG
12421           fi
12422
12423           { echo "$as_me:$LINENO: result: $result" >&5
12424 echo "${ECHO_T}$result" >&6; }
12425
12426
12427           enablestring=
12428           defaultval=$wxUSE_ALL_FEATURES
12429           if test -z "$defaultval"; then
12430               if test x"$enablestring" = xdisable; then
12431                   defaultval=yes
12432               else
12433                   defaultval=no
12434               fi
12435           fi
12436
12437           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splash" >&5
12438 echo $ECHO_N "checking for --${enablestring:-enable}-splash... $ECHO_C" >&6; }
12439           # Check whether --enable-splash was given.
12440 if test "${enable_splash+set}" = set; then
12441   enableval=$enable_splash;
12442                           if test "$enableval" = yes; then
12443                             wx_cv_use_splash='wxUSE_SPLASH=yes'
12444                           else
12445                             wx_cv_use_splash='wxUSE_SPLASH=no'
12446                           fi
12447
12448 else
12449
12450                           wx_cv_use_splash='wxUSE_SPLASH=${'DEFAULT_wxUSE_SPLASH":-$defaultval}"
12451
12452 fi
12453
12454
12455           eval "$wx_cv_use_splash"
12456
12457           if test x"$enablestring" = xdisable; then
12458             if test $wxUSE_SPLASH = yes; then
12459               result=no
12460             else
12461               result=yes
12462             fi
12463           else
12464             result=$wxUSE_SPLASH
12465           fi
12466
12467           { echo "$as_me:$LINENO: result: $result" >&5
12468 echo "${ECHO_T}$result" >&6; }
12469
12470
12471           enablestring=
12472           defaultval=$wxUSE_ALL_FEATURES
12473           if test -z "$defaultval"; then
12474               if test x"$enablestring" = xdisable; then
12475                   defaultval=yes
12476               else
12477                   defaultval=no
12478               fi
12479           fi
12480
12481           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textdlg" >&5
12482 echo $ECHO_N "checking for --${enablestring:-enable}-textdlg... $ECHO_C" >&6; }
12483           # Check whether --enable-textdlg was given.
12484 if test "${enable_textdlg+set}" = set; then
12485   enableval=$enable_textdlg;
12486                           if test "$enableval" = yes; then
12487                             wx_cv_use_textdlg='wxUSE_TEXTDLG=yes'
12488                           else
12489                             wx_cv_use_textdlg='wxUSE_TEXTDLG=no'
12490                           fi
12491
12492 else
12493
12494                           wx_cv_use_textdlg='wxUSE_TEXTDLG=${'DEFAULT_wxUSE_TEXTDLG":-$defaultval}"
12495
12496 fi
12497
12498
12499           eval "$wx_cv_use_textdlg"
12500
12501           if test x"$enablestring" = xdisable; then
12502             if test $wxUSE_TEXTDLG = yes; then
12503               result=no
12504             else
12505               result=yes
12506             fi
12507           else
12508             result=$wxUSE_TEXTDLG
12509           fi
12510
12511           { echo "$as_me:$LINENO: result: $result" >&5
12512 echo "${ECHO_T}$result" >&6; }
12513
12514
12515           enablestring=
12516           defaultval=$wxUSE_ALL_FEATURES
12517           if test -z "$defaultval"; then
12518               if test x"$enablestring" = xdisable; then
12519                   defaultval=yes
12520               else
12521                   defaultval=no
12522               fi
12523           fi
12524
12525           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipdlg" >&5
12526 echo $ECHO_N "checking for --${enablestring:-enable}-tipdlg... $ECHO_C" >&6; }
12527           # Check whether --enable-tipdlg was given.
12528 if test "${enable_tipdlg+set}" = set; then
12529   enableval=$enable_tipdlg;
12530                           if test "$enableval" = yes; then
12531                             wx_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
12532                           else
12533                             wx_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
12534                           fi
12535
12536 else
12537
12538                           wx_cv_use_tipdlg='wxUSE_STARTUP_TIPS=${'DEFAULT_wxUSE_STARTUP_TIPS":-$defaultval}"
12539
12540 fi
12541
12542
12543           eval "$wx_cv_use_tipdlg"
12544
12545           if test x"$enablestring" = xdisable; then
12546             if test $wxUSE_STARTUP_TIPS = yes; then
12547               result=no
12548             else
12549               result=yes
12550             fi
12551           else
12552             result=$wxUSE_STARTUP_TIPS
12553           fi
12554
12555           { echo "$as_me:$LINENO: result: $result" >&5
12556 echo "${ECHO_T}$result" >&6; }
12557
12558
12559           enablestring=
12560           defaultval=$wxUSE_ALL_FEATURES
12561           if test -z "$defaultval"; then
12562               if test x"$enablestring" = xdisable; then
12563                   defaultval=yes
12564               else
12565                   defaultval=no
12566               fi
12567           fi
12568
12569           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-progressdlg" >&5
12570 echo $ECHO_N "checking for --${enablestring:-enable}-progressdlg... $ECHO_C" >&6; }
12571           # Check whether --enable-progressdlg was given.
12572 if test "${enable_progressdlg+set}" = set; then
12573   enableval=$enable_progressdlg;
12574                           if test "$enableval" = yes; then
12575                             wx_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
12576                           else
12577                             wx_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
12578                           fi
12579
12580 else
12581
12582                           wx_cv_use_progressdlg='wxUSE_PROGRESSDLG=${'DEFAULT_wxUSE_PROGRESSDLG":-$defaultval}"
12583
12584 fi
12585
12586
12587           eval "$wx_cv_use_progressdlg"
12588
12589           if test x"$enablestring" = xdisable; then
12590             if test $wxUSE_PROGRESSDLG = yes; then
12591               result=no
12592             else
12593               result=yes
12594             fi
12595           else
12596             result=$wxUSE_PROGRESSDLG
12597           fi
12598
12599           { echo "$as_me:$LINENO: result: $result" >&5
12600 echo "${ECHO_T}$result" >&6; }
12601
12602
12603           enablestring=
12604           defaultval=$wxUSE_ALL_FEATURES
12605           if test -z "$defaultval"; then
12606               if test x"$enablestring" = xdisable; then
12607                   defaultval=yes
12608               else
12609                   defaultval=no
12610               fi
12611           fi
12612
12613           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wizarddlg" >&5
12614 echo $ECHO_N "checking for --${enablestring:-enable}-wizarddlg... $ECHO_C" >&6; }
12615           # Check whether --enable-wizarddlg was given.
12616 if test "${enable_wizarddlg+set}" = set; then
12617   enableval=$enable_wizarddlg;
12618                           if test "$enableval" = yes; then
12619                             wx_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes'
12620                           else
12621                             wx_cv_use_wizarddlg='wxUSE_WIZARDDLG=no'
12622                           fi
12623
12624 else
12625
12626                           wx_cv_use_wizarddlg='wxUSE_WIZARDDLG=${'DEFAULT_wxUSE_WIZARDDLG":-$defaultval}"
12627
12628 fi
12629
12630
12631           eval "$wx_cv_use_wizarddlg"
12632
12633           if test x"$enablestring" = xdisable; then
12634             if test $wxUSE_WIZARDDLG = yes; then
12635               result=no
12636             else
12637               result=yes
12638             fi
12639           else
12640             result=$wxUSE_WIZARDDLG
12641           fi
12642
12643           { echo "$as_me:$LINENO: result: $result" >&5
12644 echo "${ECHO_T}$result" >&6; }
12645
12646
12647
12648
12649           enablestring=
12650           defaultval=$wxUSE_ALL_FEATURES
12651           if test -z "$defaultval"; then
12652               if test x"$enablestring" = xdisable; then
12653                   defaultval=yes
12654               else
12655                   defaultval=no
12656               fi
12657           fi
12658
12659           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-menus" >&5
12660 echo $ECHO_N "checking for --${enablestring:-enable}-menus... $ECHO_C" >&6; }
12661           # Check whether --enable-menus was given.
12662 if test "${enable_menus+set}" = set; then
12663   enableval=$enable_menus;
12664                           if test "$enableval" = yes; then
12665                             wx_cv_use_menus='wxUSE_MENUS=yes'
12666                           else
12667                             wx_cv_use_menus='wxUSE_MENUS=no'
12668                           fi
12669
12670 else
12671
12672                           wx_cv_use_menus='wxUSE_MENUS=${'DEFAULT_wxUSE_MENUS":-$defaultval}"
12673
12674 fi
12675
12676
12677           eval "$wx_cv_use_menus"
12678
12679           if test x"$enablestring" = xdisable; then
12680             if test $wxUSE_MENUS = yes; then
12681               result=no
12682             else
12683               result=yes
12684             fi
12685           else
12686             result=$wxUSE_MENUS
12687           fi
12688
12689           { echo "$as_me:$LINENO: result: $result" >&5
12690 echo "${ECHO_T}$result" >&6; }
12691
12692
12693           enablestring=
12694           defaultval=$wxUSE_ALL_FEATURES
12695           if test -z "$defaultval"; then
12696               if test x"$enablestring" = xdisable; then
12697                   defaultval=yes
12698               else
12699                   defaultval=no
12700               fi
12701           fi
12702
12703           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-miniframe" >&5
12704 echo $ECHO_N "checking for --${enablestring:-enable}-miniframe... $ECHO_C" >&6; }
12705           # Check whether --enable-miniframe was given.
12706 if test "${enable_miniframe+set}" = set; then
12707   enableval=$enable_miniframe;
12708                           if test "$enableval" = yes; then
12709                             wx_cv_use_miniframe='wxUSE_MINIFRAME=yes'
12710                           else
12711                             wx_cv_use_miniframe='wxUSE_MINIFRAME=no'
12712                           fi
12713
12714 else
12715
12716                           wx_cv_use_miniframe='wxUSE_MINIFRAME=${'DEFAULT_wxUSE_MINIFRAME":-$defaultval}"
12717
12718 fi
12719
12720
12721           eval "$wx_cv_use_miniframe"
12722
12723           if test x"$enablestring" = xdisable; then
12724             if test $wxUSE_MINIFRAME = yes; then
12725               result=no
12726             else
12727               result=yes
12728             fi
12729           else
12730             result=$wxUSE_MINIFRAME
12731           fi
12732
12733           { echo "$as_me:$LINENO: result: $result" >&5
12734 echo "${ECHO_T}$result" >&6; }
12735
12736
12737           enablestring=
12738           defaultval=$wxUSE_ALL_FEATURES
12739           if test -z "$defaultval"; then
12740               if test x"$enablestring" = xdisable; then
12741                   defaultval=yes
12742               else
12743                   defaultval=no
12744               fi
12745           fi
12746
12747           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tooltips" >&5
12748 echo $ECHO_N "checking for --${enablestring:-enable}-tooltips... $ECHO_C" >&6; }
12749           # Check whether --enable-tooltips was given.
12750 if test "${enable_tooltips+set}" = set; then
12751   enableval=$enable_tooltips;
12752                           if test "$enableval" = yes; then
12753                             wx_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
12754                           else
12755                             wx_cv_use_tooltips='wxUSE_TOOLTIPS=no'
12756                           fi
12757
12758 else
12759
12760                           wx_cv_use_tooltips='wxUSE_TOOLTIPS=${'DEFAULT_wxUSE_TOOLTIPS":-$defaultval}"
12761
12762 fi
12763
12764
12765           eval "$wx_cv_use_tooltips"
12766
12767           if test x"$enablestring" = xdisable; then
12768             if test $wxUSE_TOOLTIPS = yes; then
12769               result=no
12770             else
12771               result=yes
12772             fi
12773           else
12774             result=$wxUSE_TOOLTIPS
12775           fi
12776
12777           { echo "$as_me:$LINENO: result: $result" >&5
12778 echo "${ECHO_T}$result" >&6; }
12779
12780
12781           enablestring=
12782           defaultval=$wxUSE_ALL_FEATURES
12783           if test -z "$defaultval"; then
12784               if test x"$enablestring" = xdisable; then
12785                   defaultval=yes
12786               else
12787                   defaultval=no
12788               fi
12789           fi
12790
12791           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splines" >&5
12792 echo $ECHO_N "checking for --${enablestring:-enable}-splines... $ECHO_C" >&6; }
12793           # Check whether --enable-splines was given.
12794 if test "${enable_splines+set}" = set; then
12795   enableval=$enable_splines;
12796                           if test "$enableval" = yes; then
12797                             wx_cv_use_splines='wxUSE_SPLINES=yes'
12798                           else
12799                             wx_cv_use_splines='wxUSE_SPLINES=no'
12800                           fi
12801
12802 else
12803
12804                           wx_cv_use_splines='wxUSE_SPLINES=${'DEFAULT_wxUSE_SPLINES":-$defaultval}"
12805
12806 fi
12807
12808
12809           eval "$wx_cv_use_splines"
12810
12811           if test x"$enablestring" = xdisable; then
12812             if test $wxUSE_SPLINES = yes; then
12813               result=no
12814             else
12815               result=yes
12816             fi
12817           else
12818             result=$wxUSE_SPLINES
12819           fi
12820
12821           { echo "$as_me:$LINENO: result: $result" >&5
12822 echo "${ECHO_T}$result" >&6; }
12823
12824
12825           enablestring=
12826           defaultval=$wxUSE_ALL_FEATURES
12827           if test -z "$defaultval"; then
12828               if test x"$enablestring" = xdisable; then
12829                   defaultval=yes
12830               else
12831                   defaultval=no
12832               fi
12833           fi
12834
12835           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mousewheel" >&5
12836 echo $ECHO_N "checking for --${enablestring:-enable}-mousewheel... $ECHO_C" >&6; }
12837           # Check whether --enable-mousewheel was given.
12838 if test "${enable_mousewheel+set}" = set; then
12839   enableval=$enable_mousewheel;
12840                           if test "$enableval" = yes; then
12841                             wx_cv_use_mousewheel='wxUSE_MOUSEWHEEL=yes'
12842                           else
12843                             wx_cv_use_mousewheel='wxUSE_MOUSEWHEEL=no'
12844                           fi
12845
12846 else
12847
12848                           wx_cv_use_mousewheel='wxUSE_MOUSEWHEEL=${'DEFAULT_wxUSE_MOUSEWHEEL":-$defaultval}"
12849
12850 fi
12851
12852
12853           eval "$wx_cv_use_mousewheel"
12854
12855           if test x"$enablestring" = xdisable; then
12856             if test $wxUSE_MOUSEWHEEL = yes; then
12857               result=no
12858             else
12859               result=yes
12860             fi
12861           else
12862             result=$wxUSE_MOUSEWHEEL
12863           fi
12864
12865           { echo "$as_me:$LINENO: result: $result" >&5
12866 echo "${ECHO_T}$result" >&6; }
12867
12868
12869           enablestring=
12870           defaultval=$wxUSE_ALL_FEATURES
12871           if test -z "$defaultval"; then
12872               if test x"$enablestring" = xdisable; then
12873                   defaultval=yes
12874               else
12875                   defaultval=no
12876               fi
12877           fi
12878
12879           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-validators" >&5
12880 echo $ECHO_N "checking for --${enablestring:-enable}-validators... $ECHO_C" >&6; }
12881           # Check whether --enable-validators was given.
12882 if test "${enable_validators+set}" = set; then
12883   enableval=$enable_validators;
12884                           if test "$enableval" = yes; then
12885                             wx_cv_use_validators='wxUSE_VALIDATORS=yes'
12886                           else
12887                             wx_cv_use_validators='wxUSE_VALIDATORS=no'
12888                           fi
12889
12890 else
12891
12892                           wx_cv_use_validators='wxUSE_VALIDATORS=${'DEFAULT_wxUSE_VALIDATORS":-$defaultval}"
12893
12894 fi
12895
12896
12897           eval "$wx_cv_use_validators"
12898
12899           if test x"$enablestring" = xdisable; then
12900             if test $wxUSE_VALIDATORS = yes; then
12901               result=no
12902             else
12903               result=yes
12904             fi
12905           else
12906             result=$wxUSE_VALIDATORS
12907           fi
12908
12909           { echo "$as_me:$LINENO: result: $result" >&5
12910 echo "${ECHO_T}$result" >&6; }
12911
12912
12913           enablestring=
12914           defaultval=$wxUSE_ALL_FEATURES
12915           if test -z "$defaultval"; then
12916               if test x"$enablestring" = xdisable; then
12917                   defaultval=yes
12918               else
12919                   defaultval=no
12920               fi
12921           fi
12922
12923           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-busyinfo" >&5
12924 echo $ECHO_N "checking for --${enablestring:-enable}-busyinfo... $ECHO_C" >&6; }
12925           # Check whether --enable-busyinfo was given.
12926 if test "${enable_busyinfo+set}" = set; then
12927   enableval=$enable_busyinfo;
12928                           if test "$enableval" = yes; then
12929                             wx_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
12930                           else
12931                             wx_cv_use_busyinfo='wxUSE_BUSYINFO=no'
12932                           fi
12933
12934 else
12935
12936                           wx_cv_use_busyinfo='wxUSE_BUSYINFO=${'DEFAULT_wxUSE_BUSYINFO":-$defaultval}"
12937
12938 fi
12939
12940
12941           eval "$wx_cv_use_busyinfo"
12942
12943           if test x"$enablestring" = xdisable; then
12944             if test $wxUSE_BUSYINFO = yes; then
12945               result=no
12946             else
12947               result=yes
12948             fi
12949           else
12950             result=$wxUSE_BUSYINFO
12951           fi
12952
12953           { echo "$as_me:$LINENO: result: $result" >&5
12954 echo "${ECHO_T}$result" >&6; }
12955
12956
12957           enablestring=
12958           defaultval=$wxUSE_ALL_FEATURES
12959           if test -z "$defaultval"; then
12960               if test x"$enablestring" = xdisable; then
12961                   defaultval=yes
12962               else
12963                   defaultval=no
12964               fi
12965           fi
12966
12967           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-joystick" >&5
12968 echo $ECHO_N "checking for --${enablestring:-enable}-joystick... $ECHO_C" >&6; }
12969           # Check whether --enable-joystick was given.
12970 if test "${enable_joystick+set}" = set; then
12971   enableval=$enable_joystick;
12972                           if test "$enableval" = yes; then
12973                             wx_cv_use_joystick='wxUSE_JOYSTICK=yes'
12974                           else
12975                             wx_cv_use_joystick='wxUSE_JOYSTICK=no'
12976                           fi
12977
12978 else
12979
12980                           wx_cv_use_joystick='wxUSE_JOYSTICK=${'DEFAULT_wxUSE_JOYSTICK":-$defaultval}"
12981
12982 fi
12983
12984
12985           eval "$wx_cv_use_joystick"
12986
12987           if test x"$enablestring" = xdisable; then
12988             if test $wxUSE_JOYSTICK = yes; then
12989               result=no
12990             else
12991               result=yes
12992             fi
12993           else
12994             result=$wxUSE_JOYSTICK
12995           fi
12996
12997           { echo "$as_me:$LINENO: result: $result" >&5
12998 echo "${ECHO_T}$result" >&6; }
12999
13000
13001           enablestring=
13002           defaultval=$wxUSE_ALL_FEATURES
13003           if test -z "$defaultval"; then
13004               if test x"$enablestring" = xdisable; then
13005                   defaultval=yes
13006               else
13007                   defaultval=no
13008               fi
13009           fi
13010
13011           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
13012 echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6; }
13013           # Check whether --enable-metafile was given.
13014 if test "${enable_metafile+set}" = set; then
13015   enableval=$enable_metafile;
13016                           if test "$enableval" = yes; then
13017                             wx_cv_use_metafile='wxUSE_METAFILE=yes'
13018                           else
13019                             wx_cv_use_metafile='wxUSE_METAFILE=no'
13020                           fi
13021
13022 else
13023
13024                           wx_cv_use_metafile='wxUSE_METAFILE=${'DEFAULT_wxUSE_METAFILE":-$defaultval}"
13025
13026 fi
13027
13028
13029           eval "$wx_cv_use_metafile"
13030
13031           if test x"$enablestring" = xdisable; then
13032             if test $wxUSE_METAFILE = yes; then
13033               result=no
13034             else
13035               result=yes
13036             fi
13037           else
13038             result=$wxUSE_METAFILE
13039           fi
13040
13041           { echo "$as_me:$LINENO: result: $result" >&5
13042 echo "${ECHO_T}$result" >&6; }
13043
13044
13045           enablestring=
13046           defaultval=$wxUSE_ALL_FEATURES
13047           if test -z "$defaultval"; then
13048               if test x"$enablestring" = xdisable; then
13049                   defaultval=yes
13050               else
13051                   defaultval=no
13052               fi
13053           fi
13054
13055           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dragimage" >&5
13056 echo $ECHO_N "checking for --${enablestring:-enable}-dragimage... $ECHO_C" >&6; }
13057           # Check whether --enable-dragimage was given.
13058 if test "${enable_dragimage+set}" = set; then
13059   enableval=$enable_dragimage;
13060                           if test "$enableval" = yes; then
13061                             wx_cv_use_dragimage='wxUSE_DRAGIMAGE=yes'
13062                           else
13063                             wx_cv_use_dragimage='wxUSE_DRAGIMAGE=no'
13064                           fi
13065
13066 else
13067
13068                           wx_cv_use_dragimage='wxUSE_DRAGIMAGE=${'DEFAULT_wxUSE_DRAGIMAGE":-$defaultval}"
13069
13070 fi
13071
13072
13073           eval "$wx_cv_use_dragimage"
13074
13075           if test x"$enablestring" = xdisable; then
13076             if test $wxUSE_DRAGIMAGE = yes; then
13077               result=no
13078             else
13079               result=yes
13080             fi
13081           else
13082             result=$wxUSE_DRAGIMAGE
13083           fi
13084
13085           { echo "$as_me:$LINENO: result: $result" >&5
13086 echo "${ECHO_T}$result" >&6; }
13087
13088
13089           enablestring=
13090           defaultval=$wxUSE_ALL_FEATURES
13091           if test -z "$defaultval"; then
13092               if test x"$enablestring" = xdisable; then
13093                   defaultval=yes
13094               else
13095                   defaultval=no
13096               fi
13097           fi
13098
13099           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accessibility" >&5
13100 echo $ECHO_N "checking for --${enablestring:-enable}-accessibility... $ECHO_C" >&6; }
13101           # Check whether --enable-accessibility was given.
13102 if test "${enable_accessibility+set}" = set; then
13103   enableval=$enable_accessibility;
13104                           if test "$enableval" = yes; then
13105                             wx_cv_use_accessibility='wxUSE_ACCESSIBILITY=yes'
13106                           else
13107                             wx_cv_use_accessibility='wxUSE_ACCESSIBILITY=no'
13108                           fi
13109
13110 else
13111
13112                           wx_cv_use_accessibility='wxUSE_ACCESSIBILITY=${'DEFAULT_wxUSE_ACCESSIBILITY":-$defaultval}"
13113
13114 fi
13115
13116
13117           eval "$wx_cv_use_accessibility"
13118
13119           if test x"$enablestring" = xdisable; then
13120             if test $wxUSE_ACCESSIBILITY = yes; then
13121               result=no
13122             else
13123               result=yes
13124             fi
13125           else
13126             result=$wxUSE_ACCESSIBILITY
13127           fi
13128
13129           { echo "$as_me:$LINENO: result: $result" >&5
13130 echo "${ECHO_T}$result" >&6; }
13131
13132
13133
13134
13135           enablestring=
13136           defaultval=$wxUSE_ALL_FEATURES
13137           if test -z "$defaultval"; then
13138               if test x"$enablestring" = xdisable; then
13139                   defaultval=yes
13140               else
13141                   defaultval=no
13142               fi
13143           fi
13144
13145           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-palette" >&5
13146 echo $ECHO_N "checking for --${enablestring:-enable}-palette... $ECHO_C" >&6; }
13147           # Check whether --enable-palette was given.
13148 if test "${enable_palette+set}" = set; then
13149   enableval=$enable_palette;
13150                           if test "$enableval" = yes; then
13151                             wx_cv_use_palette='wxUSE_PALETTE=yes'
13152                           else
13153                             wx_cv_use_palette='wxUSE_PALETTE=no'
13154                           fi
13155
13156 else
13157
13158                           wx_cv_use_palette='wxUSE_PALETTE=${'DEFAULT_wxUSE_PALETTE":-$defaultval}"
13159
13160 fi
13161
13162
13163           eval "$wx_cv_use_palette"
13164
13165           if test x"$enablestring" = xdisable; then
13166             if test $wxUSE_PALETTE = yes; then
13167               result=no
13168             else
13169               result=yes
13170             fi
13171           else
13172             result=$wxUSE_PALETTE
13173           fi
13174
13175           { echo "$as_me:$LINENO: result: $result" >&5
13176 echo "${ECHO_T}$result" >&6; }
13177
13178
13179           enablestring=
13180           defaultval=$wxUSE_ALL_FEATURES
13181           if test -z "$defaultval"; then
13182               if test x"$enablestring" = xdisable; then
13183                   defaultval=yes
13184               else
13185                   defaultval=no
13186               fi
13187           fi
13188
13189           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-image" >&5
13190 echo $ECHO_N "checking for --${enablestring:-enable}-image... $ECHO_C" >&6; }
13191           # Check whether --enable-image was given.
13192 if test "${enable_image+set}" = set; then
13193   enableval=$enable_image;
13194                           if test "$enableval" = yes; then
13195                             wx_cv_use_image='wxUSE_IMAGE=yes'
13196                           else
13197                             wx_cv_use_image='wxUSE_IMAGE=no'
13198                           fi
13199
13200 else
13201
13202                           wx_cv_use_image='wxUSE_IMAGE=${'DEFAULT_wxUSE_IMAGE":-$defaultval}"
13203
13204 fi
13205
13206
13207           eval "$wx_cv_use_image"
13208
13209           if test x"$enablestring" = xdisable; then
13210             if test $wxUSE_IMAGE = yes; then
13211               result=no
13212             else
13213               result=yes
13214             fi
13215           else
13216             result=$wxUSE_IMAGE
13217           fi
13218
13219           { echo "$as_me:$LINENO: result: $result" >&5
13220 echo "${ECHO_T}$result" >&6; }
13221
13222
13223           enablestring=
13224           defaultval=$wxUSE_ALL_FEATURES
13225           if test -z "$defaultval"; then
13226               if test x"$enablestring" = xdisable; then
13227                   defaultval=yes
13228               else
13229                   defaultval=no
13230               fi
13231           fi
13232
13233           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gif" >&5
13234 echo $ECHO_N "checking for --${enablestring:-enable}-gif... $ECHO_C" >&6; }
13235           # Check whether --enable-gif was given.
13236 if test "${enable_gif+set}" = set; then
13237   enableval=$enable_gif;
13238                           if test "$enableval" = yes; then
13239                             wx_cv_use_gif='wxUSE_GIF=yes'
13240                           else
13241                             wx_cv_use_gif='wxUSE_GIF=no'
13242                           fi
13243
13244 else
13245
13246                           wx_cv_use_gif='wxUSE_GIF=${'DEFAULT_wxUSE_GIF":-$defaultval}"
13247
13248 fi
13249
13250
13251           eval "$wx_cv_use_gif"
13252
13253           if test x"$enablestring" = xdisable; then
13254             if test $wxUSE_GIF = yes; then
13255               result=no
13256             else
13257               result=yes
13258             fi
13259           else
13260             result=$wxUSE_GIF
13261           fi
13262
13263           { echo "$as_me:$LINENO: result: $result" >&5
13264 echo "${ECHO_T}$result" >&6; }
13265
13266
13267           enablestring=
13268           defaultval=$wxUSE_ALL_FEATURES
13269           if test -z "$defaultval"; then
13270               if test x"$enablestring" = xdisable; then
13271                   defaultval=yes
13272               else
13273                   defaultval=no
13274               fi
13275           fi
13276
13277           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pcx" >&5
13278 echo $ECHO_N "checking for --${enablestring:-enable}-pcx... $ECHO_C" >&6; }
13279           # Check whether --enable-pcx was given.
13280 if test "${enable_pcx+set}" = set; then
13281   enableval=$enable_pcx;
13282                           if test "$enableval" = yes; then
13283                             wx_cv_use_pcx='wxUSE_PCX=yes'
13284                           else
13285                             wx_cv_use_pcx='wxUSE_PCX=no'
13286                           fi
13287
13288 else
13289
13290                           wx_cv_use_pcx='wxUSE_PCX=${'DEFAULT_wxUSE_PCX":-$defaultval}"
13291
13292 fi
13293
13294
13295           eval "$wx_cv_use_pcx"
13296
13297           if test x"$enablestring" = xdisable; then
13298             if test $wxUSE_PCX = yes; then
13299               result=no
13300             else
13301               result=yes
13302             fi
13303           else
13304             result=$wxUSE_PCX
13305           fi
13306
13307           { echo "$as_me:$LINENO: result: $result" >&5
13308 echo "${ECHO_T}$result" >&6; }
13309
13310
13311           enablestring=
13312           defaultval=$wxUSE_ALL_FEATURES
13313           if test -z "$defaultval"; then
13314               if test x"$enablestring" = xdisable; then
13315                   defaultval=yes
13316               else
13317                   defaultval=no
13318               fi
13319           fi
13320
13321           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tga" >&5
13322 echo $ECHO_N "checking for --${enablestring:-enable}-tga... $ECHO_C" >&6; }
13323           # Check whether --enable-tga was given.
13324 if test "${enable_tga+set}" = set; then
13325   enableval=$enable_tga;
13326                           if test "$enableval" = yes; then
13327                             wx_cv_use_tga='wxUSE_TGA=yes'
13328                           else
13329                             wx_cv_use_tga='wxUSE_TGA=no'
13330                           fi
13331
13332 else
13333
13334                           wx_cv_use_tga='wxUSE_TGA=${'DEFAULT_wxUSE_TGA":-$defaultval}"
13335
13336 fi
13337
13338
13339           eval "$wx_cv_use_tga"
13340
13341           if test x"$enablestring" = xdisable; then
13342             if test $wxUSE_TGA = yes; then
13343               result=no
13344             else
13345               result=yes
13346             fi
13347           else
13348             result=$wxUSE_TGA
13349           fi
13350
13351           { echo "$as_me:$LINENO: result: $result" >&5
13352 echo "${ECHO_T}$result" >&6; }
13353
13354
13355           enablestring=
13356           defaultval=$wxUSE_ALL_FEATURES
13357           if test -z "$defaultval"; then
13358               if test x"$enablestring" = xdisable; then
13359                   defaultval=yes
13360               else
13361                   defaultval=no
13362               fi
13363           fi
13364
13365           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-iff" >&5
13366 echo $ECHO_N "checking for --${enablestring:-enable}-iff... $ECHO_C" >&6; }
13367           # Check whether --enable-iff was given.
13368 if test "${enable_iff+set}" = set; then
13369   enableval=$enable_iff;
13370                           if test "$enableval" = yes; then
13371                             wx_cv_use_iff='wxUSE_IFF=yes'
13372                           else
13373                             wx_cv_use_iff='wxUSE_IFF=no'
13374                           fi
13375
13376 else
13377
13378                           wx_cv_use_iff='wxUSE_IFF=${'DEFAULT_wxUSE_IFF":-$defaultval}"
13379
13380 fi
13381
13382
13383           eval "$wx_cv_use_iff"
13384
13385           if test x"$enablestring" = xdisable; then
13386             if test $wxUSE_IFF = yes; then
13387               result=no
13388             else
13389               result=yes
13390             fi
13391           else
13392             result=$wxUSE_IFF
13393           fi
13394
13395           { echo "$as_me:$LINENO: result: $result" >&5
13396 echo "${ECHO_T}$result" >&6; }
13397
13398
13399           enablestring=
13400           defaultval=$wxUSE_ALL_FEATURES
13401           if test -z "$defaultval"; then
13402               if test x"$enablestring" = xdisable; then
13403                   defaultval=yes
13404               else
13405                   defaultval=no
13406               fi
13407           fi
13408
13409           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pnm" >&5
13410 echo $ECHO_N "checking for --${enablestring:-enable}-pnm... $ECHO_C" >&6; }
13411           # Check whether --enable-pnm was given.
13412 if test "${enable_pnm+set}" = set; then
13413   enableval=$enable_pnm;
13414                           if test "$enableval" = yes; then
13415                             wx_cv_use_pnm='wxUSE_PNM=yes'
13416                           else
13417                             wx_cv_use_pnm='wxUSE_PNM=no'
13418                           fi
13419
13420 else
13421
13422                           wx_cv_use_pnm='wxUSE_PNM=${'DEFAULT_wxUSE_PNM":-$defaultval}"
13423
13424 fi
13425
13426
13427           eval "$wx_cv_use_pnm"
13428
13429           if test x"$enablestring" = xdisable; then
13430             if test $wxUSE_PNM = yes; then
13431               result=no
13432             else
13433               result=yes
13434             fi
13435           else
13436             result=$wxUSE_PNM
13437           fi
13438
13439           { echo "$as_me:$LINENO: result: $result" >&5
13440 echo "${ECHO_T}$result" >&6; }
13441
13442
13443           enablestring=
13444           defaultval=$wxUSE_ALL_FEATURES
13445           if test -z "$defaultval"; then
13446               if test x"$enablestring" = xdisable; then
13447                   defaultval=yes
13448               else
13449                   defaultval=no
13450               fi
13451           fi
13452
13453           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xpm" >&5
13454 echo $ECHO_N "checking for --${enablestring:-enable}-xpm... $ECHO_C" >&6; }
13455           # Check whether --enable-xpm was given.
13456 if test "${enable_xpm+set}" = set; then
13457   enableval=$enable_xpm;
13458                           if test "$enableval" = yes; then
13459                             wx_cv_use_xpm='wxUSE_XPM=yes'
13460                           else
13461                             wx_cv_use_xpm='wxUSE_XPM=no'
13462                           fi
13463
13464 else
13465
13466                           wx_cv_use_xpm='wxUSE_XPM=${'DEFAULT_wxUSE_XPM":-$defaultval}"
13467
13468 fi
13469
13470
13471           eval "$wx_cv_use_xpm"
13472
13473           if test x"$enablestring" = xdisable; then
13474             if test $wxUSE_XPM = yes; then
13475               result=no
13476             else
13477               result=yes
13478             fi
13479           else
13480             result=$wxUSE_XPM
13481           fi
13482
13483           { echo "$as_me:$LINENO: result: $result" >&5
13484 echo "${ECHO_T}$result" >&6; }
13485
13486
13487           enablestring=
13488           defaultval=$wxUSE_ALL_FEATURES
13489           if test -z "$defaultval"; then
13490               if test x"$enablestring" = xdisable; then
13491                   defaultval=yes
13492               else
13493                   defaultval=no
13494               fi
13495           fi
13496
13497           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ico_cur" >&5
13498 echo $ECHO_N "checking for --${enablestring:-enable}-ico_cur... $ECHO_C" >&6; }
13499           # Check whether --enable-ico_cur was given.
13500 if test "${enable_ico_cur+set}" = set; then
13501   enableval=$enable_ico_cur;
13502                           if test "$enableval" = yes; then
13503                             wx_cv_use_ico_cur='wxUSE_ICO_CUR=yes'
13504                           else
13505                             wx_cv_use_ico_cur='wxUSE_ICO_CUR=no'
13506                           fi
13507
13508 else
13509
13510                           wx_cv_use_ico_cur='wxUSE_ICO_CUR=${'DEFAULT_wxUSE_ICO_CUR":-$defaultval}"
13511
13512 fi
13513
13514
13515           eval "$wx_cv_use_ico_cur"
13516
13517           if test x"$enablestring" = xdisable; then
13518             if test $wxUSE_ICO_CUR = yes; then
13519               result=no
13520             else
13521               result=yes
13522             fi
13523           else
13524             result=$wxUSE_ICO_CUR
13525           fi
13526
13527           { echo "$as_me:$LINENO: result: $result" >&5
13528 echo "${ECHO_T}$result" >&6; }
13529
13530
13531
13532
13533           enablestring=
13534           defaultval=$wxUSE_ALL_FEATURES
13535           if test -z "$defaultval"; then
13536               if test x"$enablestring" = xdisable; then
13537                   defaultval=yes
13538               else
13539                   defaultval=no
13540               fi
13541           fi
13542
13543           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dccache" >&5
13544 echo $ECHO_N "checking for --${enablestring:-enable}-dccache... $ECHO_C" >&6; }
13545           # Check whether --enable-dccache was given.
13546 if test "${enable_dccache+set}" = set; then
13547   enableval=$enable_dccache;
13548                           if test "$enableval" = yes; then
13549                             wx_cv_use_dccache='wxUSE_DC_CACHEING=yes'
13550                           else
13551                             wx_cv_use_dccache='wxUSE_DC_CACHEING=no'
13552                           fi
13553
13554 else
13555
13556                           wx_cv_use_dccache='wxUSE_DC_CACHEING=${'DEFAULT_wxUSE_DC_CACHEING":-$defaultval}"
13557
13558 fi
13559
13560
13561           eval "$wx_cv_use_dccache"
13562
13563           if test x"$enablestring" = xdisable; then
13564             if test $wxUSE_DC_CACHEING = yes; then
13565               result=no
13566             else
13567               result=yes
13568             fi
13569           else
13570             result=$wxUSE_DC_CACHEING
13571           fi
13572
13573           { echo "$as_me:$LINENO: result: $result" >&5
13574 echo "${ECHO_T}$result" >&6; }
13575
13576
13577           enablestring=
13578           defaultval=$wxUSE_ALL_FEATURES
13579           if test -z "$defaultval"; then
13580               if test x"$enablestring" = xdisable; then
13581                   defaultval=yes
13582               else
13583                   defaultval=no
13584               fi
13585           fi
13586
13587           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ps-in-msw" >&5
13588 echo $ECHO_N "checking for --${enablestring:-enable}-ps-in-msw... $ECHO_C" >&6; }
13589           # Check whether --enable-ps-in-msw was given.
13590 if test "${enable_ps_in_msw+set}" = set; then
13591   enableval=$enable_ps_in_msw;
13592                           if test "$enableval" = yes; then
13593                             wx_cv_use_ps_in_msw='wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW=yes'
13594                           else
13595                             wx_cv_use_ps_in_msw='wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW=no'
13596                           fi
13597
13598 else
13599
13600                           wx_cv_use_ps_in_msw='wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW=${'DEFAULT_wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW":-$defaultval}"
13601
13602 fi
13603
13604
13605           eval "$wx_cv_use_ps_in_msw"
13606
13607           if test x"$enablestring" = xdisable; then
13608             if test $wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW = yes; then
13609               result=no
13610             else
13611               result=yes
13612             fi
13613           else
13614             result=$wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW
13615           fi
13616
13617           { echo "$as_me:$LINENO: result: $result" >&5
13618 echo "${ECHO_T}$result" >&6; }
13619
13620
13621           enablestring=
13622           defaultval=$wxUSE_ALL_FEATURES
13623           if test -z "$defaultval"; then
13624               if test x"$enablestring" = xdisable; then
13625                   defaultval=yes
13626               else
13627                   defaultval=no
13628               fi
13629           fi
13630
13631           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ownerdrawn" >&5
13632 echo $ECHO_N "checking for --${enablestring:-enable}-ownerdrawn... $ECHO_C" >&6; }
13633           # Check whether --enable-ownerdrawn was given.
13634 if test "${enable_ownerdrawn+set}" = set; then
13635   enableval=$enable_ownerdrawn;
13636                           if test "$enableval" = yes; then
13637                             wx_cv_use_ownerdrawn='wxUSE_OWNER_DRAWN=yes'
13638                           else
13639                             wx_cv_use_ownerdrawn='wxUSE_OWNER_DRAWN=no'
13640                           fi
13641
13642 else
13643
13644                           wx_cv_use_ownerdrawn='wxUSE_OWNER_DRAWN=${'DEFAULT_wxUSE_OWNER_DRAWN":-$defaultval}"
13645
13646 fi
13647
13648
13649           eval "$wx_cv_use_ownerdrawn"
13650
13651           if test x"$enablestring" = xdisable; then
13652             if test $wxUSE_OWNER_DRAWN = yes; then
13653               result=no
13654             else
13655               result=yes
13656             fi
13657           else
13658             result=$wxUSE_OWNER_DRAWN
13659           fi
13660
13661           { echo "$as_me:$LINENO: result: $result" >&5
13662 echo "${ECHO_T}$result" >&6; }
13663
13664
13665           enablestring=
13666           defaultval=$wxUSE_ALL_FEATURES
13667           if test -z "$defaultval"; then
13668               if test x"$enablestring" = xdisable; then
13669                   defaultval=yes
13670               else
13671                   defaultval=no
13672               fi
13673           fi
13674
13675           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-uxtheme" >&5
13676 echo $ECHO_N "checking for --${enablestring:-enable}-uxtheme... $ECHO_C" >&6; }
13677           # Check whether --enable-uxtheme was given.
13678 if test "${enable_uxtheme+set}" = set; then
13679   enableval=$enable_uxtheme;
13680                           if test "$enableval" = yes; then
13681                             wx_cv_use_uxtheme='wxUSE_UXTHEME=yes'
13682                           else
13683                             wx_cv_use_uxtheme='wxUSE_UXTHEME=no'
13684                           fi
13685
13686 else
13687
13688                           wx_cv_use_uxtheme='wxUSE_UXTHEME=${'DEFAULT_wxUSE_UXTHEME":-$defaultval}"
13689
13690 fi
13691
13692
13693           eval "$wx_cv_use_uxtheme"
13694
13695           if test x"$enablestring" = xdisable; then
13696             if test $wxUSE_UXTHEME = yes; then
13697               result=no
13698             else
13699               result=yes
13700             fi
13701           else
13702             result=$wxUSE_UXTHEME
13703           fi
13704
13705           { echo "$as_me:$LINENO: result: $result" >&5
13706 echo "${ECHO_T}$result" >&6; }
13707
13708
13709           enablestring=
13710           defaultval=$wxUSE_ALL_FEATURES
13711           if test -z "$defaultval"; then
13712               if test x"$enablestring" = xdisable; then
13713                   defaultval=yes
13714               else
13715                   defaultval=no
13716               fi
13717           fi
13718
13719           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wxdib" >&5
13720 echo $ECHO_N "checking for --${enablestring:-enable}-wxdib... $ECHO_C" >&6; }
13721           # Check whether --enable-wxdib was given.
13722 if test "${enable_wxdib+set}" = set; then
13723   enableval=$enable_wxdib;
13724                           if test "$enableval" = yes; then
13725                             wx_cv_use_wxdib='wxUSE_DIB=yes'
13726                           else
13727                             wx_cv_use_wxdib='wxUSE_DIB=no'
13728                           fi
13729
13730 else
13731
13732                           wx_cv_use_wxdib='wxUSE_DIB=${'DEFAULT_wxUSE_DIB":-$defaultval}"
13733
13734 fi
13735
13736
13737           eval "$wx_cv_use_wxdib"
13738
13739           if test x"$enablestring" = xdisable; then
13740             if test $wxUSE_DIB = yes; then
13741               result=no
13742             else
13743               result=yes
13744             fi
13745           else
13746             result=$wxUSE_DIB
13747           fi
13748
13749           { echo "$as_me:$LINENO: result: $result" >&5
13750 echo "${ECHO_T}$result" >&6; }
13751
13752
13753 if test "$wxUSE_MSW" != 1; then
13754     DEFAULT_wxUSE_AUTOID_MANAGEMENT=no
13755 fi
13756
13757
13758           enablestring=
13759           defaultval=$wxUSE_ALL_FEATURES
13760           if test -z "$defaultval"; then
13761               if test x"$enablestring" = xdisable; then
13762                   defaultval=yes
13763               else
13764                   defaultval=no
13765               fi
13766           fi
13767
13768           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-autoidman" >&5
13769 echo $ECHO_N "checking for --${enablestring:-enable}-autoidman... $ECHO_C" >&6; }
13770           # Check whether --enable-autoidman was given.
13771 if test "${enable_autoidman+set}" = set; then
13772   enableval=$enable_autoidman;
13773                           if test "$enableval" = yes; then
13774                             wx_cv_use_autoidman='wxUSE_AUTOID_MANAGEMENT=yes'
13775                           else
13776                             wx_cv_use_autoidman='wxUSE_AUTOID_MANAGEMENT=no'
13777                           fi
13778
13779 else
13780
13781                           wx_cv_use_autoidman='wxUSE_AUTOID_MANAGEMENT=${'DEFAULT_wxUSE_AUTOID_MANAGEMENT":-$defaultval}"
13782
13783 fi
13784
13785
13786           eval "$wx_cv_use_autoidman"
13787
13788           if test x"$enablestring" = xdisable; then
13789             if test $wxUSE_AUTOID_MANAGEMENT = yes; then
13790               result=no
13791             else
13792               result=yes
13793             fi
13794           else
13795             result=$wxUSE_AUTOID_MANAGEMENT
13796           fi
13797
13798           { echo "$as_me:$LINENO: result: $result" >&5
13799 echo "${ECHO_T}$result" >&6; }
13800
13801
13802 fi
13803
13804
13805 cat >confcache <<\_ACEOF
13806 # This file is a shell script that caches the results of configure
13807 # tests run on this system so they can be shared between configure
13808 # scripts and configure runs, see configure's option --config-cache.
13809 # It is not useful on other systems.  If it contains results you don't
13810 # want to keep, you may remove or edit it.
13811 #
13812 # config.status only pays attention to the cache file if you give it
13813 # the --recheck option to rerun configure.
13814 #
13815 # `ac_cv_env_foo' variables (set or unset) will be overridden when
13816 # loading this file, other *unset* `ac_cv_foo' will be assigned the
13817 # following values.
13818
13819 _ACEOF
13820
13821 # The following way of writing the cache mishandles newlines in values,
13822 # but we know of no workaround that is simple, portable, and efficient.
13823 # So, we kill variables containing newlines.
13824 # Ultrix sh set writes to stderr and can't be redirected directly,
13825 # and sets the high bit in the cache file unless we assign to the vars.
13826 (
13827   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13828     eval ac_val=\$$ac_var
13829     case $ac_val in #(
13830     *${as_nl}*)
13831       case $ac_var in #(
13832       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
13833 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
13834       esac
13835       case $ac_var in #(
13836       _ | IFS | as_nl) ;; #(
13837       *) $as_unset $ac_var ;;
13838       esac ;;
13839     esac
13840   done
13841
13842   (set) 2>&1 |
13843     case $as_nl`(ac_space=' '; set) 2>&1` in #(
13844     *${as_nl}ac_space=\ *)
13845       # `set' does not quote correctly, so add quotes (double-quote
13846       # substitution turns \\\\ into \\, and sed turns \\ into \).
13847       sed -n \
13848         "s/'/'\\\\''/g;
13849           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13850       ;; #(
13851     *)
13852       # `set' quotes correctly as required by POSIX, so do not add quotes.
13853       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13854       ;;
13855     esac |
13856     sort
13857 ) |
13858   sed '
13859      /^ac_cv_env_/b end
13860      t clear
13861      :clear
13862      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13863      t end
13864      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13865      :end' >>confcache
13866 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13867   if test -w "$cache_file"; then
13868     test "x$cache_file" != "x/dev/null" &&
13869       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
13870 echo "$as_me: updating cache $cache_file" >&6;}
13871     cat confcache >$cache_file
13872   else
13873     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
13874 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13875   fi
13876 fi
13877 rm -f confcache
13878
13879 CFLAGS=${CFLAGS:=}
13880
13881
13882
13883     ac_ext=c
13884 ac_cpp='$CPP $CPPFLAGS'
13885 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13886 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13887 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13888 if test -n "$ac_tool_prefix"; then
13889   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
13890 set dummy ${ac_tool_prefix}gcc; ac_word=$2
13891 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13892 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13893 if test "${ac_cv_prog_CC+set}" = set; then
13894   echo $ECHO_N "(cached) $ECHO_C" >&6
13895 else
13896   if test -n "$CC"; then
13897   ac_cv_prog_CC="$CC" # Let the user override the test.
13898 else
13899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13900 for as_dir in $PATH
13901 do
13902   IFS=$as_save_IFS
13903   test -z "$as_dir" && as_dir=.
13904   for ac_exec_ext in '' $ac_executable_extensions; do
13905   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13906     ac_cv_prog_CC="${ac_tool_prefix}gcc"
13907     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13908     break 2
13909   fi
13910 done
13911 done
13912 IFS=$as_save_IFS
13913
13914 fi
13915 fi
13916 CC=$ac_cv_prog_CC
13917 if test -n "$CC"; then
13918   { echo "$as_me:$LINENO: result: $CC" >&5
13919 echo "${ECHO_T}$CC" >&6; }
13920 else
13921   { echo "$as_me:$LINENO: result: no" >&5
13922 echo "${ECHO_T}no" >&6; }
13923 fi
13924
13925
13926 fi
13927 if test -z "$ac_cv_prog_CC"; then
13928   ac_ct_CC=$CC
13929   # Extract the first word of "gcc", so it can be a program name with args.
13930 set dummy gcc; ac_word=$2
13931 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13932 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13933 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
13934   echo $ECHO_N "(cached) $ECHO_C" >&6
13935 else
13936   if test -n "$ac_ct_CC"; then
13937   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
13938 else
13939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13940 for as_dir in $PATH
13941 do
13942   IFS=$as_save_IFS
13943   test -z "$as_dir" && as_dir=.
13944   for ac_exec_ext in '' $ac_executable_extensions; do
13945   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13946     ac_cv_prog_ac_ct_CC="gcc"
13947     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13948     break 2
13949   fi
13950 done
13951 done
13952 IFS=$as_save_IFS
13953
13954 fi
13955 fi
13956 ac_ct_CC=$ac_cv_prog_ac_ct_CC
13957 if test -n "$ac_ct_CC"; then
13958   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
13959 echo "${ECHO_T}$ac_ct_CC" >&6; }
13960 else
13961   { echo "$as_me:$LINENO: result: no" >&5
13962 echo "${ECHO_T}no" >&6; }
13963 fi
13964
13965   if test "x$ac_ct_CC" = x; then
13966     CC=""
13967   else
13968     case $cross_compiling:$ac_tool_warned in
13969 yes:)
13970 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13971 whose name does not start with the host triplet.  If you think this
13972 configuration is useful to you, please write to autoconf@gnu.org." >&5
13973 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13974 whose name does not start with the host triplet.  If you think this
13975 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13976 ac_tool_warned=yes ;;
13977 esac
13978     CC=$ac_ct_CC
13979   fi
13980 else
13981   CC="$ac_cv_prog_CC"
13982 fi
13983
13984 if test -z "$CC"; then
13985           if test -n "$ac_tool_prefix"; then
13986     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
13987 set dummy ${ac_tool_prefix}cc; ac_word=$2
13988 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13989 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13990 if test "${ac_cv_prog_CC+set}" = set; then
13991   echo $ECHO_N "(cached) $ECHO_C" >&6
13992 else
13993   if test -n "$CC"; then
13994   ac_cv_prog_CC="$CC" # Let the user override the test.
13995 else
13996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13997 for as_dir in $PATH
13998 do
13999   IFS=$as_save_IFS
14000   test -z "$as_dir" && as_dir=.
14001   for ac_exec_ext in '' $ac_executable_extensions; do
14002   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14003     ac_cv_prog_CC="${ac_tool_prefix}cc"
14004     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14005     break 2
14006   fi
14007 done
14008 done
14009 IFS=$as_save_IFS
14010
14011 fi
14012 fi
14013 CC=$ac_cv_prog_CC
14014 if test -n "$CC"; then
14015   { echo "$as_me:$LINENO: result: $CC" >&5
14016 echo "${ECHO_T}$CC" >&6; }
14017 else
14018   { echo "$as_me:$LINENO: result: no" >&5
14019 echo "${ECHO_T}no" >&6; }
14020 fi
14021
14022
14023   fi
14024 fi
14025 if test -z "$CC"; then
14026   # Extract the first word of "cc", so it can be a program name with args.
14027 set dummy cc; ac_word=$2
14028 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14029 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14030 if test "${ac_cv_prog_CC+set}" = set; then
14031   echo $ECHO_N "(cached) $ECHO_C" >&6
14032 else
14033   if test -n "$CC"; then
14034   ac_cv_prog_CC="$CC" # Let the user override the test.
14035 else
14036   ac_prog_rejected=no
14037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14038 for as_dir in $PATH
14039 do
14040   IFS=$as_save_IFS
14041   test -z "$as_dir" && as_dir=.
14042   for ac_exec_ext in '' $ac_executable_extensions; do
14043   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14044     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
14045        ac_prog_rejected=yes
14046        continue
14047      fi
14048     ac_cv_prog_CC="cc"
14049     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14050     break 2
14051   fi
14052 done
14053 done
14054 IFS=$as_save_IFS
14055
14056 if test $ac_prog_rejected = yes; then
14057   # We found a bogon in the path, so make sure we never use it.
14058   set dummy $ac_cv_prog_CC
14059   shift
14060   if test $# != 0; then
14061     # We chose a different compiler from the bogus one.
14062     # However, it has the same basename, so the bogon will be chosen
14063     # first if we set CC to just the basename; use the full file name.
14064     shift
14065     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
14066   fi
14067 fi
14068 fi
14069 fi
14070 CC=$ac_cv_prog_CC
14071 if test -n "$CC"; then
14072   { echo "$as_me:$LINENO: result: $CC" >&5
14073 echo "${ECHO_T}$CC" >&6; }
14074 else
14075   { echo "$as_me:$LINENO: result: no" >&5
14076 echo "${ECHO_T}no" >&6; }
14077 fi
14078
14079
14080 fi
14081 if test -z "$CC"; then
14082   if test -n "$ac_tool_prefix"; then
14083   for ac_prog in cl.exe
14084   do
14085     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
14086 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
14087 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14088 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14089 if test "${ac_cv_prog_CC+set}" = set; then
14090   echo $ECHO_N "(cached) $ECHO_C" >&6
14091 else
14092   if test -n "$CC"; then
14093   ac_cv_prog_CC="$CC" # Let the user override the test.
14094 else
14095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14096 for as_dir in $PATH
14097 do
14098   IFS=$as_save_IFS
14099   test -z "$as_dir" && as_dir=.
14100   for ac_exec_ext in '' $ac_executable_extensions; do
14101   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14102     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
14103     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14104     break 2
14105   fi
14106 done
14107 done
14108 IFS=$as_save_IFS
14109
14110 fi
14111 fi
14112 CC=$ac_cv_prog_CC
14113 if test -n "$CC"; then
14114   { echo "$as_me:$LINENO: result: $CC" >&5
14115 echo "${ECHO_T}$CC" >&6; }
14116 else
14117   { echo "$as_me:$LINENO: result: no" >&5
14118 echo "${ECHO_T}no" >&6; }
14119 fi
14120
14121
14122     test -n "$CC" && break
14123   done
14124 fi
14125 if test -z "$CC"; then
14126   ac_ct_CC=$CC
14127   for ac_prog in cl.exe
14128 do
14129   # Extract the first word of "$ac_prog", so it can be a program name with args.
14130 set dummy $ac_prog; ac_word=$2
14131 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14132 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14133 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
14134   echo $ECHO_N "(cached) $ECHO_C" >&6
14135 else
14136   if test -n "$ac_ct_CC"; then
14137   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
14138 else
14139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14140 for as_dir in $PATH
14141 do
14142   IFS=$as_save_IFS
14143   test -z "$as_dir" && as_dir=.
14144   for ac_exec_ext in '' $ac_executable_extensions; do
14145   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14146     ac_cv_prog_ac_ct_CC="$ac_prog"
14147     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14148     break 2
14149   fi
14150 done
14151 done
14152 IFS=$as_save_IFS
14153
14154 fi
14155 fi
14156 ac_ct_CC=$ac_cv_prog_ac_ct_CC
14157 if test -n "$ac_ct_CC"; then
14158   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
14159 echo "${ECHO_T}$ac_ct_CC" >&6; }
14160 else
14161   { echo "$as_me:$LINENO: result: no" >&5
14162 echo "${ECHO_T}no" >&6; }
14163 fi
14164
14165
14166   test -n "$ac_ct_CC" && break
14167 done
14168
14169   if test "x$ac_ct_CC" = x; then
14170     CC=""
14171   else
14172     case $cross_compiling:$ac_tool_warned in
14173 yes:)
14174 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14175 whose name does not start with the host triplet.  If you think this
14176 configuration is useful to you, please write to autoconf@gnu.org." >&5
14177 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14178 whose name does not start with the host triplet.  If you think this
14179 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14180 ac_tool_warned=yes ;;
14181 esac
14182     CC=$ac_ct_CC
14183   fi
14184 fi
14185
14186 fi
14187
14188
14189 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
14190 See \`config.log' for more details." >&5
14191 echo "$as_me: error: no acceptable C compiler found in \$PATH
14192 See \`config.log' for more details." >&2;}
14193    { (exit 1); exit 1; }; }
14194
14195 # Provide some information about the compiler.
14196 echo "$as_me:$LINENO: checking for C compiler version" >&5
14197 ac_compiler=`set X $ac_compile; echo $2`
14198 { (ac_try="$ac_compiler --version >&5"
14199 case "(($ac_try" in
14200   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14201   *) ac_try_echo=$ac_try;;
14202 esac
14203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14204   (eval "$ac_compiler --version >&5") 2>&5
14205   ac_status=$?
14206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14207   (exit $ac_status); }
14208 { (ac_try="$ac_compiler -v >&5"
14209 case "(($ac_try" in
14210   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14211   *) ac_try_echo=$ac_try;;
14212 esac
14213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14214   (eval "$ac_compiler -v >&5") 2>&5
14215   ac_status=$?
14216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14217   (exit $ac_status); }
14218 { (ac_try="$ac_compiler -V >&5"
14219 case "(($ac_try" in
14220   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14221   *) ac_try_echo=$ac_try;;
14222 esac
14223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14224   (eval "$ac_compiler -V >&5") 2>&5
14225   ac_status=$?
14226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14227   (exit $ac_status); }
14228
14229 cat >conftest.$ac_ext <<_ACEOF
14230 /* confdefs.h.  */
14231 _ACEOF
14232 cat confdefs.h >>conftest.$ac_ext
14233 cat >>conftest.$ac_ext <<_ACEOF
14234 /* end confdefs.h.  */
14235
14236 int
14237 main ()
14238 {
14239
14240   ;
14241   return 0;
14242 }
14243 _ACEOF
14244 ac_clean_files_save=$ac_clean_files
14245 ac_clean_files="$ac_clean_files a.out a.exe b.out"
14246 # Try to create an executable without -o first, disregard a.out.
14247 # It will help us diagnose broken compilers, and finding out an intuition
14248 # of exeext.
14249 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
14250 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
14251 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
14252 #
14253 # List of possible output files, starting from the most likely.
14254 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
14255 # only as a last resort.  b.out is created by i960 compilers.
14256 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
14257 #
14258 # The IRIX 6 linker writes into existing files which may not be
14259 # executable, retaining their permissions.  Remove them first so a
14260 # subsequent execution test works.
14261 ac_rmfiles=
14262 for ac_file in $ac_files
14263 do
14264   case $ac_file in
14265     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
14266     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
14267   esac
14268 done
14269 rm -f $ac_rmfiles
14270
14271 if { (ac_try="$ac_link_default"
14272 case "(($ac_try" in
14273   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14274   *) ac_try_echo=$ac_try;;
14275 esac
14276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14277   (eval "$ac_link_default") 2>&5
14278   ac_status=$?
14279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14280   (exit $ac_status); }; then
14281   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
14282 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
14283 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
14284 # so that the user can short-circuit this test for compilers unknown to
14285 # Autoconf.
14286 for ac_file in $ac_files ''
14287 do
14288   test -f "$ac_file" || continue
14289   case $ac_file in
14290     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
14291         ;;
14292     [ab].out )
14293         # We found the default executable, but exeext='' is most
14294         # certainly right.
14295         break;;
14296     *.* )
14297         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
14298         then :; else
14299            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
14300         fi
14301         # We set ac_cv_exeext here because the later test for it is not
14302         # safe: cross compilers may not add the suffix if given an `-o'
14303         # argument, so we may need to know it at that point already.
14304         # Even if this section looks crufty: it has the advantage of
14305         # actually working.
14306         break;;
14307     * )
14308         break;;
14309   esac
14310 done
14311 test "$ac_cv_exeext" = no && ac_cv_exeext=
14312
14313 else
14314   ac_file=''
14315 fi
14316
14317 { echo "$as_me:$LINENO: result: $ac_file" >&5
14318 echo "${ECHO_T}$ac_file" >&6; }
14319 if test -z "$ac_file"; then
14320   echo "$as_me: failed program was:" >&5
14321 sed 's/^/| /' conftest.$ac_ext >&5
14322
14323 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
14324 See \`config.log' for more details." >&5
14325 echo "$as_me: error: C compiler cannot create executables
14326 See \`config.log' for more details." >&2;}
14327    { (exit 77); exit 77; }; }
14328 fi
14329
14330 ac_exeext=$ac_cv_exeext
14331
14332 # Check that the compiler produces executables we can run.  If not, either
14333 # the compiler is broken, or we cross compile.
14334 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
14335 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
14336 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
14337 # If not cross compiling, check that we can run a simple program.
14338 if test "$cross_compiling" != yes; then
14339   if { ac_try='./$ac_file'
14340   { (case "(($ac_try" in
14341   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14342   *) ac_try_echo=$ac_try;;
14343 esac
14344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14345   (eval "$ac_try") 2>&5
14346   ac_status=$?
14347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14348   (exit $ac_status); }; }; then
14349     cross_compiling=no
14350   else
14351     if test "$cross_compiling" = maybe; then
14352         cross_compiling=yes
14353     else
14354         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
14355 If you meant to cross compile, use \`--host'.
14356 See \`config.log' for more details." >&5
14357 echo "$as_me: error: cannot run C compiled programs.
14358 If you meant to cross compile, use \`--host'.
14359 See \`config.log' for more details." >&2;}
14360    { (exit 1); exit 1; }; }
14361     fi
14362   fi
14363 fi
14364 { echo "$as_me:$LINENO: result: yes" >&5
14365 echo "${ECHO_T}yes" >&6; }
14366
14367 rm -f a.out a.exe conftest$ac_cv_exeext b.out
14368 ac_clean_files=$ac_clean_files_save
14369 # Check that the compiler produces executables we can run.  If not, either
14370 # the compiler is broken, or we cross compile.
14371 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
14372 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
14373 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
14374 echo "${ECHO_T}$cross_compiling" >&6; }
14375
14376 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
14377 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
14378 if { (ac_try="$ac_link"
14379 case "(($ac_try" in
14380   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14381   *) ac_try_echo=$ac_try;;
14382 esac
14383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14384   (eval "$ac_link") 2>&5
14385   ac_status=$?
14386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14387   (exit $ac_status); }; then
14388   # If both `conftest.exe' and `conftest' are `present' (well, observable)
14389 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
14390 # work properly (i.e., refer to `conftest.exe'), while it won't with
14391 # `rm'.
14392 for ac_file in conftest.exe conftest conftest.*; do
14393   test -f "$ac_file" || continue
14394   case $ac_file in
14395     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
14396     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
14397           break;;
14398     * ) break;;
14399   esac
14400 done
14401 else
14402   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
14403 See \`config.log' for more details." >&5
14404 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
14405 See \`config.log' for more details." >&2;}
14406    { (exit 1); exit 1; }; }
14407 fi
14408
14409 rm -f conftest$ac_cv_exeext
14410 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
14411 echo "${ECHO_T}$ac_cv_exeext" >&6; }
14412
14413 rm -f conftest.$ac_ext
14414 EXEEXT=$ac_cv_exeext
14415 ac_exeext=$EXEEXT
14416 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
14417 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
14418 if test "${ac_cv_objext+set}" = set; then
14419   echo $ECHO_N "(cached) $ECHO_C" >&6
14420 else
14421   cat >conftest.$ac_ext <<_ACEOF
14422 /* confdefs.h.  */
14423 _ACEOF
14424 cat confdefs.h >>conftest.$ac_ext
14425 cat >>conftest.$ac_ext <<_ACEOF
14426 /* end confdefs.h.  */
14427
14428 int
14429 main ()
14430 {
14431
14432   ;
14433   return 0;
14434 }
14435 _ACEOF
14436 rm -f conftest.o conftest.obj
14437 if { (ac_try="$ac_compile"
14438 case "(($ac_try" in
14439   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14440   *) ac_try_echo=$ac_try;;
14441 esac
14442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14443   (eval "$ac_compile") 2>&5
14444   ac_status=$?
14445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14446   (exit $ac_status); }; then
14447   for ac_file in conftest.o conftest.obj conftest.*; do
14448   test -f "$ac_file" || continue;
14449   case $ac_file in
14450     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
14451     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
14452        break;;
14453   esac
14454 done
14455 else
14456   echo "$as_me: failed program was:" >&5
14457 sed 's/^/| /' conftest.$ac_ext >&5
14458
14459 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
14460 See \`config.log' for more details." >&5
14461 echo "$as_me: error: cannot compute suffix of object files: cannot compile
14462 See \`config.log' for more details." >&2;}
14463    { (exit 1); exit 1; }; }
14464 fi
14465
14466 rm -f conftest.$ac_cv_objext conftest.$ac_ext
14467 fi
14468 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
14469 echo "${ECHO_T}$ac_cv_objext" >&6; }
14470 OBJEXT=$ac_cv_objext
14471 ac_objext=$OBJEXT
14472 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
14473 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
14474 if test "${ac_cv_c_compiler_gnu+set}" = set; then
14475   echo $ECHO_N "(cached) $ECHO_C" >&6
14476 else
14477   cat >conftest.$ac_ext <<_ACEOF
14478 /* confdefs.h.  */
14479 _ACEOF
14480 cat confdefs.h >>conftest.$ac_ext
14481 cat >>conftest.$ac_ext <<_ACEOF
14482 /* end confdefs.h.  */
14483
14484 int
14485 main ()
14486 {
14487 #ifndef __GNUC__
14488        choke me
14489 #endif
14490
14491   ;
14492   return 0;
14493 }
14494 _ACEOF
14495 rm -f conftest.$ac_objext
14496 if { (ac_try="$ac_compile"
14497 case "(($ac_try" in
14498   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14499   *) ac_try_echo=$ac_try;;
14500 esac
14501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14502   (eval "$ac_compile") 2>conftest.er1
14503   ac_status=$?
14504   grep -v '^ *+' conftest.er1 >conftest.err
14505   rm -f conftest.er1
14506   cat conftest.err >&5
14507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14508   (exit $ac_status); } && {
14509          test -z "$ac_c_werror_flag" ||
14510          test ! -s conftest.err
14511        } && test -s conftest.$ac_objext; then
14512   ac_compiler_gnu=yes
14513 else
14514   echo "$as_me: failed program was:" >&5
14515 sed 's/^/| /' conftest.$ac_ext >&5
14516
14517         ac_compiler_gnu=no
14518 fi
14519
14520 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14521 ac_cv_c_compiler_gnu=$ac_compiler_gnu
14522
14523 fi
14524 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
14525 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
14526 GCC=`test $ac_compiler_gnu = yes && echo yes`
14527 ac_test_CFLAGS=${CFLAGS+set}
14528 ac_save_CFLAGS=$CFLAGS
14529 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
14530 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
14531 if test "${ac_cv_prog_cc_g+set}" = set; then
14532   echo $ECHO_N "(cached) $ECHO_C" >&6
14533 else
14534   ac_save_c_werror_flag=$ac_c_werror_flag
14535    ac_c_werror_flag=yes
14536    ac_cv_prog_cc_g=no
14537    CFLAGS="-g"
14538    cat >conftest.$ac_ext <<_ACEOF
14539 /* confdefs.h.  */
14540 _ACEOF
14541 cat confdefs.h >>conftest.$ac_ext
14542 cat >>conftest.$ac_ext <<_ACEOF
14543 /* end confdefs.h.  */
14544
14545 int
14546 main ()
14547 {
14548
14549   ;
14550   return 0;
14551 }
14552 _ACEOF
14553 rm -f conftest.$ac_objext
14554 if { (ac_try="$ac_compile"
14555 case "(($ac_try" in
14556   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14557   *) ac_try_echo=$ac_try;;
14558 esac
14559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14560   (eval "$ac_compile") 2>conftest.er1
14561   ac_status=$?
14562   grep -v '^ *+' conftest.er1 >conftest.err
14563   rm -f conftest.er1
14564   cat conftest.err >&5
14565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14566   (exit $ac_status); } && {
14567          test -z "$ac_c_werror_flag" ||
14568          test ! -s conftest.err
14569        } && test -s conftest.$ac_objext; then
14570   ac_cv_prog_cc_g=yes
14571 else
14572   echo "$as_me: failed program was:" >&5
14573 sed 's/^/| /' conftest.$ac_ext >&5
14574
14575         CFLAGS=""
14576       cat >conftest.$ac_ext <<_ACEOF
14577 /* confdefs.h.  */
14578 _ACEOF
14579 cat confdefs.h >>conftest.$ac_ext
14580 cat >>conftest.$ac_ext <<_ACEOF
14581 /* end confdefs.h.  */
14582
14583 int
14584 main ()
14585 {
14586
14587   ;
14588   return 0;
14589 }
14590 _ACEOF
14591 rm -f conftest.$ac_objext
14592 if { (ac_try="$ac_compile"
14593 case "(($ac_try" in
14594   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14595   *) ac_try_echo=$ac_try;;
14596 esac
14597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14598   (eval "$ac_compile") 2>conftest.er1
14599   ac_status=$?
14600   grep -v '^ *+' conftest.er1 >conftest.err
14601   rm -f conftest.er1
14602   cat conftest.err >&5
14603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14604   (exit $ac_status); } && {
14605          test -z "$ac_c_werror_flag" ||
14606          test ! -s conftest.err
14607        } && test -s conftest.$ac_objext; then
14608   :
14609 else
14610   echo "$as_me: failed program was:" >&5
14611 sed 's/^/| /' conftest.$ac_ext >&5
14612
14613         ac_c_werror_flag=$ac_save_c_werror_flag
14614          CFLAGS="-g"
14615          cat >conftest.$ac_ext <<_ACEOF
14616 /* confdefs.h.  */
14617 _ACEOF
14618 cat confdefs.h >>conftest.$ac_ext
14619 cat >>conftest.$ac_ext <<_ACEOF
14620 /* end confdefs.h.  */
14621
14622 int
14623 main ()
14624 {
14625
14626   ;
14627   return 0;
14628 }
14629 _ACEOF
14630 rm -f conftest.$ac_objext
14631 if { (ac_try="$ac_compile"
14632 case "(($ac_try" in
14633   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14634   *) ac_try_echo=$ac_try;;
14635 esac
14636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14637   (eval "$ac_compile") 2>conftest.er1
14638   ac_status=$?
14639   grep -v '^ *+' conftest.er1 >conftest.err
14640   rm -f conftest.er1
14641   cat conftest.err >&5
14642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14643   (exit $ac_status); } && {
14644          test -z "$ac_c_werror_flag" ||
14645          test ! -s conftest.err
14646        } && test -s conftest.$ac_objext; then
14647   ac_cv_prog_cc_g=yes
14648 else
14649   echo "$as_me: failed program was:" >&5
14650 sed 's/^/| /' conftest.$ac_ext >&5
14651
14652
14653 fi
14654
14655 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14656 fi
14657
14658 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14659 fi
14660
14661 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14662    ac_c_werror_flag=$ac_save_c_werror_flag
14663 fi
14664 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
14665 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
14666 if test "$ac_test_CFLAGS" = set; then
14667   CFLAGS=$ac_save_CFLAGS
14668 elif test $ac_cv_prog_cc_g = yes; then
14669   if test "$GCC" = yes; then
14670     CFLAGS="-g -O2"
14671   else
14672     CFLAGS="-g"
14673   fi
14674 else
14675   if test "$GCC" = yes; then
14676     CFLAGS="-O2"
14677   else
14678     CFLAGS=
14679   fi
14680 fi
14681 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
14682 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
14683 if test "${ac_cv_prog_cc_c89+set}" = set; then
14684   echo $ECHO_N "(cached) $ECHO_C" >&6
14685 else
14686   ac_cv_prog_cc_c89=no
14687 ac_save_CC=$CC
14688 cat >conftest.$ac_ext <<_ACEOF
14689 /* confdefs.h.  */
14690 _ACEOF
14691 cat confdefs.h >>conftest.$ac_ext
14692 cat >>conftest.$ac_ext <<_ACEOF
14693 /* end confdefs.h.  */
14694 #include <stdarg.h>
14695 #include <stdio.h>
14696 #include <sys/types.h>
14697 #include <sys/stat.h>
14698 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
14699 struct buf { int x; };
14700 FILE * (*rcsopen) (struct buf *, struct stat *, int);
14701 static char *e (p, i)
14702      char **p;
14703      int i;
14704 {
14705   return p[i];
14706 }
14707 static char *f (char * (*g) (char **, int), char **p, ...)
14708 {
14709   char *s;
14710   va_list v;
14711   va_start (v,p);
14712   s = g (p, va_arg (v,int));
14713   va_end (v);
14714   return s;
14715 }
14716
14717 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
14718    function prototypes and stuff, but not '\xHH' hex character constants.
14719    These don't provoke an error unfortunately, instead are silently treated
14720    as 'x'.  The following induces an error, until -std is added to get
14721    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
14722    array size at least.  It's necessary to write '\x00'==0 to get something
14723    that's true only with -std.  */
14724 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
14725
14726 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
14727    inside strings and character constants.  */
14728 #define FOO(x) 'x'
14729 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
14730
14731 int test (int i, double x);
14732 struct s1 {int (*f) (int a);};
14733 struct s2 {int (*f) (double a);};
14734 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
14735 int argc;
14736 char **argv;
14737 int
14738 main ()
14739 {
14740 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
14741   ;
14742   return 0;
14743 }
14744 _ACEOF
14745 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
14746         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
14747 do
14748   CC="$ac_save_CC $ac_arg"
14749   rm -f conftest.$ac_objext
14750 if { (ac_try="$ac_compile"
14751 case "(($ac_try" in
14752   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14753   *) ac_try_echo=$ac_try;;
14754 esac
14755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14756   (eval "$ac_compile") 2>conftest.er1
14757   ac_status=$?
14758   grep -v '^ *+' conftest.er1 >conftest.err
14759   rm -f conftest.er1
14760   cat conftest.err >&5
14761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14762   (exit $ac_status); } && {
14763          test -z "$ac_c_werror_flag" ||
14764          test ! -s conftest.err
14765        } && test -s conftest.$ac_objext; then
14766   ac_cv_prog_cc_c89=$ac_arg
14767 else
14768   echo "$as_me: failed program was:" >&5
14769 sed 's/^/| /' conftest.$ac_ext >&5
14770
14771
14772 fi
14773
14774 rm -f core conftest.err conftest.$ac_objext
14775   test "x$ac_cv_prog_cc_c89" != "xno" && break
14776 done
14777 rm -f conftest.$ac_ext
14778 CC=$ac_save_CC
14779
14780 fi
14781 # AC_CACHE_VAL
14782 case "x$ac_cv_prog_cc_c89" in
14783   x)
14784     { echo "$as_me:$LINENO: result: none needed" >&5
14785 echo "${ECHO_T}none needed" >&6; } ;;
14786   xno)
14787     { echo "$as_me:$LINENO: result: unsupported" >&5
14788 echo "${ECHO_T}unsupported" >&6; } ;;
14789   *)
14790     CC="$CC $ac_cv_prog_cc_c89"
14791     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
14792 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
14793 esac
14794
14795
14796 ac_ext=c
14797 ac_cpp='$CPP $CPPFLAGS'
14798 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14799 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14800 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14801
14802
14803
14804
14805     ac_ext=c
14806 ac_cpp='$CPP $CPPFLAGS'
14807 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14808 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14809 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14810
14811     { echo "$as_me:$LINENO: checking whether we are using the Intel C compiler" >&5
14812 echo $ECHO_N "checking whether we are using the Intel C compiler... $ECHO_C" >&6; }
14813 if test "${bakefile_cv_c_compiler___INTEL_COMPILER+set}" = set; then
14814   echo $ECHO_N "(cached) $ECHO_C" >&6
14815 else
14816   cat >conftest.$ac_ext <<_ACEOF
14817 /* confdefs.h.  */
14818 _ACEOF
14819 cat confdefs.h >>conftest.$ac_ext
14820 cat >>conftest.$ac_ext <<_ACEOF
14821 /* end confdefs.h.  */
14822
14823 int
14824 main ()
14825 {
14826
14827              #ifndef __INTEL_COMPILER
14828                 choke me
14829              #endif
14830
14831   ;
14832   return 0;
14833 }
14834 _ACEOF
14835 rm -f conftest.$ac_objext
14836 if { (ac_try="$ac_compile"
14837 case "(($ac_try" in
14838   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14839   *) ac_try_echo=$ac_try;;
14840 esac
14841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14842   (eval "$ac_compile") 2>conftest.er1
14843   ac_status=$?
14844   grep -v '^ *+' conftest.er1 >conftest.err
14845   rm -f conftest.er1
14846   cat conftest.err >&5
14847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14848   (exit $ac_status); } && {
14849          test -z "$ac_c_werror_flag" ||
14850          test ! -s conftest.err
14851        } && test -s conftest.$ac_objext; then
14852   bakefile_cv_c_compiler___INTEL_COMPILER=yes
14853 else
14854   echo "$as_me: failed program was:" >&5
14855 sed 's/^/| /' conftest.$ac_ext >&5
14856
14857         bakefile_cv_c_compiler___INTEL_COMPILER=no
14858
14859 fi
14860
14861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14862
14863
14864 fi
14865 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___INTEL_COMPILER" >&5
14866 echo "${ECHO_T}$bakefile_cv_c_compiler___INTEL_COMPILER" >&6; }
14867     if test "x$bakefile_cv_c_compiler___INTEL_COMPILER" = "xyes"; then
14868         :; INTELCC=yes
14869     else
14870         :;
14871     fi
14872     ac_ext=c
14873 ac_cpp='$CPP $CPPFLAGS'
14874 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14875 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14876 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14877
14878
14879
14880
14881         if test "x$GCC" != "xyes"; then
14882         if test "xCC" = "xC"; then
14883             { echo "$as_me:$LINENO: checking if the C compiler requires -ext o" >&5
14884 echo $ECHO_N "checking if the C compiler requires -ext o... $ECHO_C" >&6; }
14885 if test "${bakefile_cv_c_exto+set}" = set; then
14886   echo $ECHO_N "(cached) $ECHO_C" >&6
14887 else
14888   cat >conftest.$ac_ext <<_ACEOF
14889 /* confdefs.h.  */
14890 _ACEOF
14891 cat confdefs.h >>conftest.$ac_ext
14892 cat >>conftest.$ac_ext <<_ACEOF
14893 /* end confdefs.h.  */
14894
14895 int
14896 main ()
14897 {
14898
14899   ;
14900   return 0;
14901 }
14902 _ACEOF
14903 rm -f conftest.$ac_objext conftest.$ac_ext.o
14904 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14905   (eval $ac_compile) 2>&5
14906   ac_status=$?
14907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14908   (exit $ac_status); }; then
14909   for ac_file in `(ls conftest.* 2>/dev/null)`; do
14910     case $ac_file in
14911         conftest.$ac_ext.o)
14912             bakefile_cv_c_exto="-ext o"
14913             ;;
14914         *)
14915             ;;
14916     esac
14917 done
14918 else
14919   { { echo "$as_me:$LINENO: error: cannot figure out if compiler needs -ext o: cannot compile
14920 See \`config.log' for more details." >&5
14921 echo "$as_me: error: cannot figure out if compiler needs -ext o: cannot compile
14922 See \`config.log' for more details." >&2;}
14923    { (exit 1); exit 1; }; }
14924
14925 fi
14926
14927 rm -f conftest.$ac_ext.o conftest.$ac_objext conftest.$ac_ext
14928
14929 fi
14930 { echo "$as_me:$LINENO: result: $bakefile_cv_c_exto" >&5
14931 echo "${ECHO_T}$bakefile_cv_c_exto" >&6; }
14932 if test "x$bakefile_cv_c_exto" '!=' "x"; then
14933     if test "c" = "c"; then
14934         CFLAGS="$bakefile_cv_c_exto $CFLAGS"
14935     fi
14936     if test "c" = "cxx"; then
14937         CXXFLAGS="$bakefile_cv_c_exto $CXXFLAGS"
14938     fi
14939 fi
14940
14941             if test "x$bakefile_cv_c_exto" '!=' "x"; then
14942                 unset ac_cv_prog_cc_g
14943                 ac_test_CFLAGS=${CFLAGS+set}
14944 ac_save_CFLAGS=$CFLAGS
14945 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
14946 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
14947 if test "${ac_cv_prog_cc_g+set}" = set; then
14948   echo $ECHO_N "(cached) $ECHO_C" >&6
14949 else
14950   ac_save_c_werror_flag=$ac_c_werror_flag
14951    ac_c_werror_flag=yes
14952    ac_cv_prog_cc_g=no
14953    CFLAGS="-g"
14954    cat >conftest.$ac_ext <<_ACEOF
14955 /* confdefs.h.  */
14956 _ACEOF
14957 cat confdefs.h >>conftest.$ac_ext
14958 cat >>conftest.$ac_ext <<_ACEOF
14959 /* end confdefs.h.  */
14960
14961 int
14962 main ()
14963 {
14964
14965   ;
14966   return 0;
14967 }
14968 _ACEOF
14969 rm -f conftest.$ac_objext
14970 if { (ac_try="$ac_compile"
14971 case "(($ac_try" in
14972   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14973   *) ac_try_echo=$ac_try;;
14974 esac
14975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14976   (eval "$ac_compile") 2>conftest.er1
14977   ac_status=$?
14978   grep -v '^ *+' conftest.er1 >conftest.err
14979   rm -f conftest.er1
14980   cat conftest.err >&5
14981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14982   (exit $ac_status); } && {
14983          test -z "$ac_c_werror_flag" ||
14984          test ! -s conftest.err
14985        } && test -s conftest.$ac_objext; then
14986   ac_cv_prog_cc_g=yes
14987 else
14988   echo "$as_me: failed program was:" >&5
14989 sed 's/^/| /' conftest.$ac_ext >&5
14990
14991         CFLAGS=""
14992       cat >conftest.$ac_ext <<_ACEOF
14993 /* confdefs.h.  */
14994 _ACEOF
14995 cat confdefs.h >>conftest.$ac_ext
14996 cat >>conftest.$ac_ext <<_ACEOF
14997 /* end confdefs.h.  */
14998
14999 int
15000 main ()
15001 {
15002
15003   ;
15004   return 0;
15005 }
15006 _ACEOF
15007 rm -f conftest.$ac_objext
15008 if { (ac_try="$ac_compile"
15009 case "(($ac_try" in
15010   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15011   *) ac_try_echo=$ac_try;;
15012 esac
15013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15014   (eval "$ac_compile") 2>conftest.er1
15015   ac_status=$?
15016   grep -v '^ *+' conftest.er1 >conftest.err
15017   rm -f conftest.er1
15018   cat conftest.err >&5
15019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15020   (exit $ac_status); } && {
15021          test -z "$ac_c_werror_flag" ||
15022          test ! -s conftest.err
15023        } && test -s conftest.$ac_objext; then
15024   :
15025 else
15026   echo "$as_me: failed program was:" >&5
15027 sed 's/^/| /' conftest.$ac_ext >&5
15028
15029         ac_c_werror_flag=$ac_save_c_werror_flag
15030          CFLAGS="-g"
15031          cat >conftest.$ac_ext <<_ACEOF
15032 /* confdefs.h.  */
15033 _ACEOF
15034 cat confdefs.h >>conftest.$ac_ext
15035 cat >>conftest.$ac_ext <<_ACEOF
15036 /* end confdefs.h.  */
15037
15038 int
15039 main ()
15040 {
15041
15042   ;
15043   return 0;
15044 }
15045 _ACEOF
15046 rm -f conftest.$ac_objext
15047 if { (ac_try="$ac_compile"
15048 case "(($ac_try" in
15049   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15050   *) ac_try_echo=$ac_try;;
15051 esac
15052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15053   (eval "$ac_compile") 2>conftest.er1
15054   ac_status=$?
15055   grep -v '^ *+' conftest.er1 >conftest.err
15056   rm -f conftest.er1
15057   cat conftest.err >&5
15058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15059   (exit $ac_status); } && {
15060          test -z "$ac_c_werror_flag" ||
15061          test ! -s conftest.err
15062        } && test -s conftest.$ac_objext; then
15063   ac_cv_prog_cc_g=yes
15064 else
15065   echo "$as_me: failed program was:" >&5
15066 sed 's/^/| /' conftest.$ac_ext >&5
15067
15068
15069 fi
15070
15071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15072 fi
15073
15074 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15075 fi
15076
15077 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15078    ac_c_werror_flag=$ac_save_c_werror_flag
15079 fi
15080 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
15081 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
15082 if test "$ac_test_CFLAGS" = set; then
15083   CFLAGS=$ac_save_CFLAGS
15084 elif test $ac_cv_prog_cc_g = yes; then
15085   if test "$GCC" = yes; then
15086     CFLAGS="-g -O2"
15087   else
15088     CFLAGS="-g"
15089   fi
15090 else
15091   if test "$GCC" = yes; then
15092     CFLAGS="-O2"
15093   else
15094     CFLAGS=
15095   fi
15096 fi
15097             fi
15098         fi
15099
15100                         case `uname -s` in
15101             AIX*)
15102
15103
15104     ac_ext=c
15105 ac_cpp='$CPP $CPPFLAGS'
15106 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15107 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15108 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15109
15110     { echo "$as_me:$LINENO: checking whether we are using the IBM xlC C compiler" >&5
15111 echo $ECHO_N "checking whether we are using the IBM xlC C compiler... $ECHO_C" >&6; }
15112 if test "${bakefile_cv_c_compiler___xlC__+set}" = set; then
15113   echo $ECHO_N "(cached) $ECHO_C" >&6
15114 else
15115   cat >conftest.$ac_ext <<_ACEOF
15116 /* confdefs.h.  */
15117 _ACEOF
15118 cat confdefs.h >>conftest.$ac_ext
15119 cat >>conftest.$ac_ext <<_ACEOF
15120 /* end confdefs.h.  */
15121
15122 int
15123 main ()
15124 {
15125
15126              #ifndef __xlC__
15127                 choke me
15128              #endif
15129
15130   ;
15131   return 0;
15132 }
15133 _ACEOF
15134 rm -f conftest.$ac_objext
15135 if { (ac_try="$ac_compile"
15136 case "(($ac_try" in
15137   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15138   *) ac_try_echo=$ac_try;;
15139 esac
15140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15141   (eval "$ac_compile") 2>conftest.er1
15142   ac_status=$?
15143   grep -v '^ *+' conftest.er1 >conftest.err
15144   rm -f conftest.er1
15145   cat conftest.err >&5
15146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15147   (exit $ac_status); } && {
15148          test -z "$ac_c_werror_flag" ||
15149          test ! -s conftest.err
15150        } && test -s conftest.$ac_objext; then
15151   bakefile_cv_c_compiler___xlC__=yes
15152 else
15153   echo "$as_me: failed program was:" >&5
15154 sed 's/^/| /' conftest.$ac_ext >&5
15155
15156         bakefile_cv_c_compiler___xlC__=no
15157
15158 fi
15159
15160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15161
15162
15163 fi
15164 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___xlC__" >&5
15165 echo "${ECHO_T}$bakefile_cv_c_compiler___xlC__" >&6; }
15166     if test "x$bakefile_cv_c_compiler___xlC__" = "xyes"; then
15167         :; XLCC=yes
15168     else
15169         :;
15170     fi
15171     ac_ext=c
15172 ac_cpp='$CPP $CPPFLAGS'
15173 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15174 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15175 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15176
15177
15178
15179                 ;;
15180
15181             Darwin)
15182
15183
15184     ac_ext=c
15185 ac_cpp='$CPP $CPPFLAGS'
15186 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15187 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15188 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15189
15190     { echo "$as_me:$LINENO: checking whether we are using the Metrowerks C compiler" >&5
15191 echo $ECHO_N "checking whether we are using the Metrowerks C compiler... $ECHO_C" >&6; }
15192 if test "${bakefile_cv_c_compiler___MWERKS__+set}" = set; then
15193   echo $ECHO_N "(cached) $ECHO_C" >&6
15194 else
15195   cat >conftest.$ac_ext <<_ACEOF
15196 /* confdefs.h.  */
15197 _ACEOF
15198 cat confdefs.h >>conftest.$ac_ext
15199 cat >>conftest.$ac_ext <<_ACEOF
15200 /* end confdefs.h.  */
15201
15202 int
15203 main ()
15204 {
15205
15206              #ifndef __MWERKS__
15207                 choke me
15208              #endif
15209
15210   ;
15211   return 0;
15212 }
15213 _ACEOF
15214 rm -f conftest.$ac_objext
15215 if { (ac_try="$ac_compile"
15216 case "(($ac_try" in
15217   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15218   *) ac_try_echo=$ac_try;;
15219 esac
15220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15221   (eval "$ac_compile") 2>conftest.er1
15222   ac_status=$?
15223   grep -v '^ *+' conftest.er1 >conftest.err
15224   rm -f conftest.er1
15225   cat conftest.err >&5
15226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15227   (exit $ac_status); } && {
15228          test -z "$ac_c_werror_flag" ||
15229          test ! -s conftest.err
15230        } && test -s conftest.$ac_objext; then
15231   bakefile_cv_c_compiler___MWERKS__=yes
15232 else
15233   echo "$as_me: failed program was:" >&5
15234 sed 's/^/| /' conftest.$ac_ext >&5
15235
15236         bakefile_cv_c_compiler___MWERKS__=no
15237
15238 fi
15239
15240 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15241
15242
15243 fi
15244 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___MWERKS__" >&5
15245 echo "${ECHO_T}$bakefile_cv_c_compiler___MWERKS__" >&6; }
15246     if test "x$bakefile_cv_c_compiler___MWERKS__" = "xyes"; then
15247         :; MWCC=yes
15248     else
15249         :;
15250     fi
15251     ac_ext=c
15252 ac_cpp='$CPP $CPPFLAGS'
15253 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15254 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15255 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15256
15257
15258
15259
15260
15261     ac_ext=c
15262 ac_cpp='$CPP $CPPFLAGS'
15263 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15264 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15265 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15266
15267     { echo "$as_me:$LINENO: checking whether we are using the IBM xlC C compiler" >&5
15268 echo $ECHO_N "checking whether we are using the IBM xlC C compiler... $ECHO_C" >&6; }
15269 if test "${bakefile_cv_c_compiler___xlC__+set}" = set; then
15270   echo $ECHO_N "(cached) $ECHO_C" >&6
15271 else
15272   cat >conftest.$ac_ext <<_ACEOF
15273 /* confdefs.h.  */
15274 _ACEOF
15275 cat confdefs.h >>conftest.$ac_ext
15276 cat >>conftest.$ac_ext <<_ACEOF
15277 /* end confdefs.h.  */
15278
15279 int
15280 main ()
15281 {
15282
15283              #ifndef __xlC__
15284                 choke me
15285              #endif
15286
15287   ;
15288   return 0;
15289 }
15290 _ACEOF
15291 rm -f conftest.$ac_objext
15292 if { (ac_try="$ac_compile"
15293 case "(($ac_try" in
15294   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15295   *) ac_try_echo=$ac_try;;
15296 esac
15297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15298   (eval "$ac_compile") 2>conftest.er1
15299   ac_status=$?
15300   grep -v '^ *+' conftest.er1 >conftest.err
15301   rm -f conftest.er1
15302   cat conftest.err >&5
15303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15304   (exit $ac_status); } && {
15305          test -z "$ac_c_werror_flag" ||
15306          test ! -s conftest.err
15307        } && test -s conftest.$ac_objext; then
15308   bakefile_cv_c_compiler___xlC__=yes
15309 else
15310   echo "$as_me: failed program was:" >&5
15311 sed 's/^/| /' conftest.$ac_ext >&5
15312
15313         bakefile_cv_c_compiler___xlC__=no
15314
15315 fi
15316
15317 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15318
15319
15320 fi
15321 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___xlC__" >&5
15322 echo "${ECHO_T}$bakefile_cv_c_compiler___xlC__" >&6; }
15323     if test "x$bakefile_cv_c_compiler___xlC__" = "xyes"; then
15324         :; XLCC=yes
15325     else
15326         :;
15327     fi
15328     ac_ext=c
15329 ac_cpp='$CPP $CPPFLAGS'
15330 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15331 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15332 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15333
15334
15335
15336                 ;;
15337
15338             IRIX*)
15339
15340
15341     ac_ext=c
15342 ac_cpp='$CPP $CPPFLAGS'
15343 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15344 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15345 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15346
15347     { echo "$as_me:$LINENO: checking whether we are using the SGI C compiler" >&5
15348 echo $ECHO_N "checking whether we are using the SGI C compiler... $ECHO_C" >&6; }
15349 if test "${bakefile_cv_c_compiler__SGI_COMPILER_VERSION+set}" = set; then
15350   echo $ECHO_N "(cached) $ECHO_C" >&6
15351 else
15352   cat >conftest.$ac_ext <<_ACEOF
15353 /* confdefs.h.  */
15354 _ACEOF
15355 cat confdefs.h >>conftest.$ac_ext
15356 cat >>conftest.$ac_ext <<_ACEOF
15357 /* end confdefs.h.  */
15358
15359 int
15360 main ()
15361 {
15362
15363              #ifndef _SGI_COMPILER_VERSION
15364                 choke me
15365              #endif
15366
15367   ;
15368   return 0;
15369 }
15370 _ACEOF
15371 rm -f conftest.$ac_objext
15372 if { (ac_try="$ac_compile"
15373 case "(($ac_try" in
15374   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15375   *) ac_try_echo=$ac_try;;
15376 esac
15377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15378   (eval "$ac_compile") 2>conftest.er1
15379   ac_status=$?
15380   grep -v '^ *+' conftest.er1 >conftest.err
15381   rm -f conftest.er1
15382   cat conftest.err >&5
15383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15384   (exit $ac_status); } && {
15385          test -z "$ac_c_werror_flag" ||
15386          test ! -s conftest.err
15387        } && test -s conftest.$ac_objext; then
15388   bakefile_cv_c_compiler__SGI_COMPILER_VERSION=yes
15389 else
15390   echo "$as_me: failed program was:" >&5
15391 sed 's/^/| /' conftest.$ac_ext >&5
15392
15393         bakefile_cv_c_compiler__SGI_COMPILER_VERSION=no
15394
15395 fi
15396
15397 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15398
15399
15400 fi
15401 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler__SGI_COMPILER_VERSION" >&5
15402 echo "${ECHO_T}$bakefile_cv_c_compiler__SGI_COMPILER_VERSION" >&6; }
15403     if test "x$bakefile_cv_c_compiler__SGI_COMPILER_VERSION" = "xyes"; then
15404         :; SGICC=yes
15405     else
15406         :;
15407     fi
15408     ac_ext=c
15409 ac_cpp='$CPP $CPPFLAGS'
15410 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15411 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15412 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15413
15414
15415
15416                 ;;
15417
15418             Linux*)
15419
15420
15421     ac_ext=c
15422 ac_cpp='$CPP $CPPFLAGS'
15423 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15424 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15425 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15426
15427     { echo "$as_me:$LINENO: checking whether we are using the Sun C compiler" >&5
15428 echo $ECHO_N "checking whether we are using the Sun C compiler... $ECHO_C" >&6; }
15429 if test "${bakefile_cv_c_compiler___SUNPRO_C+set}" = set; then
15430   echo $ECHO_N "(cached) $ECHO_C" >&6
15431 else
15432   cat >conftest.$ac_ext <<_ACEOF
15433 /* confdefs.h.  */
15434 _ACEOF
15435 cat confdefs.h >>conftest.$ac_ext
15436 cat >>conftest.$ac_ext <<_ACEOF
15437 /* end confdefs.h.  */
15438
15439 int
15440 main ()
15441 {
15442
15443              #ifndef __SUNPRO_C
15444                 choke me
15445              #endif
15446
15447   ;
15448   return 0;
15449 }
15450 _ACEOF
15451 rm -f conftest.$ac_objext
15452 if { (ac_try="$ac_compile"
15453 case "(($ac_try" in
15454   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15455   *) ac_try_echo=$ac_try;;
15456 esac
15457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15458   (eval "$ac_compile") 2>conftest.er1
15459   ac_status=$?
15460   grep -v '^ *+' conftest.er1 >conftest.err
15461   rm -f conftest.er1
15462   cat conftest.err >&5
15463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15464   (exit $ac_status); } && {
15465          test -z "$ac_c_werror_flag" ||
15466          test ! -s conftest.err
15467        } && test -s conftest.$ac_objext; then
15468   bakefile_cv_c_compiler___SUNPRO_C=yes
15469 else
15470   echo "$as_me: failed program was:" >&5
15471 sed 's/^/| /' conftest.$ac_ext >&5
15472
15473         bakefile_cv_c_compiler___SUNPRO_C=no
15474
15475 fi
15476
15477 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15478
15479
15480 fi
15481 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___SUNPRO_C" >&5
15482 echo "${ECHO_T}$bakefile_cv_c_compiler___SUNPRO_C" >&6; }
15483     if test "x$bakefile_cv_c_compiler___SUNPRO_C" = "xyes"; then
15484         :; SUNCC=yes
15485     else
15486         :;
15487     fi
15488     ac_ext=c
15489 ac_cpp='$CPP $CPPFLAGS'
15490 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15491 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15492 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15493
15494
15495
15496                 ;;
15497
15498             HP-UX*)
15499
15500
15501     ac_ext=c
15502 ac_cpp='$CPP $CPPFLAGS'
15503 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15504 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15505 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15506
15507     { echo "$as_me:$LINENO: checking whether we are using the HP C compiler" >&5
15508 echo $ECHO_N "checking whether we are using the HP C compiler... $ECHO_C" >&6; }
15509 if test "${bakefile_cv_c_compiler___HP_cc+set}" = set; then
15510   echo $ECHO_N "(cached) $ECHO_C" >&6
15511 else
15512   cat >conftest.$ac_ext <<_ACEOF
15513 /* confdefs.h.  */
15514 _ACEOF
15515 cat confdefs.h >>conftest.$ac_ext
15516 cat >>conftest.$ac_ext <<_ACEOF
15517 /* end confdefs.h.  */
15518
15519 int
15520 main ()
15521 {
15522
15523              #ifndef __HP_cc
15524                 choke me
15525              #endif
15526
15527   ;
15528   return 0;
15529 }
15530 _ACEOF
15531 rm -f conftest.$ac_objext
15532 if { (ac_try="$ac_compile"
15533 case "(($ac_try" in
15534   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15535   *) ac_try_echo=$ac_try;;
15536 esac
15537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15538   (eval "$ac_compile") 2>conftest.er1
15539   ac_status=$?
15540   grep -v '^ *+' conftest.er1 >conftest.err
15541   rm -f conftest.er1
15542   cat conftest.err >&5
15543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15544   (exit $ac_status); } && {
15545          test -z "$ac_c_werror_flag" ||
15546          test ! -s conftest.err
15547        } && test -s conftest.$ac_objext; then
15548   bakefile_cv_c_compiler___HP_cc=yes
15549 else
15550   echo "$as_me: failed program was:" >&5
15551 sed 's/^/| /' conftest.$ac_ext >&5
15552
15553         bakefile_cv_c_compiler___HP_cc=no
15554
15555 fi
15556
15557 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15558
15559
15560 fi
15561 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___HP_cc" >&5
15562 echo "${ECHO_T}$bakefile_cv_c_compiler___HP_cc" >&6; }
15563     if test "x$bakefile_cv_c_compiler___HP_cc" = "xyes"; then
15564         :; HPCC=yes
15565     else
15566         :;
15567     fi
15568     ac_ext=c
15569 ac_cpp='$CPP $CPPFLAGS'
15570 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15571 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15572 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15573
15574
15575
15576                 ;;
15577
15578             OSF1)
15579
15580
15581     ac_ext=c
15582 ac_cpp='$CPP $CPPFLAGS'
15583 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15584 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15585 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15586
15587     { echo "$as_me:$LINENO: checking whether we are using the Compaq C compiler" >&5
15588 echo $ECHO_N "checking whether we are using the Compaq C compiler... $ECHO_C" >&6; }
15589 if test "${bakefile_cv_c_compiler___DECC+set}" = set; then
15590   echo $ECHO_N "(cached) $ECHO_C" >&6
15591 else
15592   cat >conftest.$ac_ext <<_ACEOF
15593 /* confdefs.h.  */
15594 _ACEOF
15595 cat confdefs.h >>conftest.$ac_ext
15596 cat >>conftest.$ac_ext <<_ACEOF
15597 /* end confdefs.h.  */
15598
15599 int
15600 main ()
15601 {
15602
15603              #ifndef __DECC
15604                 choke me
15605              #endif
15606
15607   ;
15608   return 0;
15609 }
15610 _ACEOF
15611 rm -f conftest.$ac_objext
15612 if { (ac_try="$ac_compile"
15613 case "(($ac_try" in
15614   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15615   *) ac_try_echo=$ac_try;;
15616 esac
15617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15618   (eval "$ac_compile") 2>conftest.er1
15619   ac_status=$?
15620   grep -v '^ *+' conftest.er1 >conftest.err
15621   rm -f conftest.er1
15622   cat conftest.err >&5
15623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15624   (exit $ac_status); } && {
15625          test -z "$ac_c_werror_flag" ||
15626          test ! -s conftest.err
15627        } && test -s conftest.$ac_objext; then
15628   bakefile_cv_c_compiler___DECC=yes
15629 else
15630   echo "$as_me: failed program was:" >&5
15631 sed 's/^/| /' conftest.$ac_ext >&5
15632
15633         bakefile_cv_c_compiler___DECC=no
15634
15635 fi
15636
15637 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15638
15639
15640 fi
15641 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___DECC" >&5
15642 echo "${ECHO_T}$bakefile_cv_c_compiler___DECC" >&6; }
15643     if test "x$bakefile_cv_c_compiler___DECC" = "xyes"; then
15644         :; COMPAQCC=yes
15645     else
15646         :;
15647     fi
15648     ac_ext=c
15649 ac_cpp='$CPP $CPPFLAGS'
15650 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15651 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15652 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15653
15654
15655
15656                 ;;
15657
15658             SunOS)
15659
15660
15661     ac_ext=c
15662 ac_cpp='$CPP $CPPFLAGS'
15663 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15664 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15665 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15666
15667     { echo "$as_me:$LINENO: checking whether we are using the Sun C compiler" >&5
15668 echo $ECHO_N "checking whether we are using the Sun C compiler... $ECHO_C" >&6; }
15669 if test "${bakefile_cv_c_compiler___SUNPRO_C+set}" = set; then
15670   echo $ECHO_N "(cached) $ECHO_C" >&6
15671 else
15672   cat >conftest.$ac_ext <<_ACEOF
15673 /* confdefs.h.  */
15674 _ACEOF
15675 cat confdefs.h >>conftest.$ac_ext
15676 cat >>conftest.$ac_ext <<_ACEOF
15677 /* end confdefs.h.  */
15678
15679 int
15680 main ()
15681 {
15682
15683              #ifndef __SUNPRO_C
15684                 choke me
15685              #endif
15686
15687   ;
15688   return 0;
15689 }
15690 _ACEOF
15691 rm -f conftest.$ac_objext
15692 if { (ac_try="$ac_compile"
15693 case "(($ac_try" in
15694   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15695   *) ac_try_echo=$ac_try;;
15696 esac
15697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15698   (eval "$ac_compile") 2>conftest.er1
15699   ac_status=$?
15700   grep -v '^ *+' conftest.er1 >conftest.err
15701   rm -f conftest.er1
15702   cat conftest.err >&5
15703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15704   (exit $ac_status); } && {
15705          test -z "$ac_c_werror_flag" ||
15706          test ! -s conftest.err
15707        } && test -s conftest.$ac_objext; then
15708   bakefile_cv_c_compiler___SUNPRO_C=yes
15709 else
15710   echo "$as_me: failed program was:" >&5
15711 sed 's/^/| /' conftest.$ac_ext >&5
15712
15713         bakefile_cv_c_compiler___SUNPRO_C=no
15714
15715 fi
15716
15717 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15718
15719
15720 fi
15721 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___SUNPRO_C" >&5
15722 echo "${ECHO_T}$bakefile_cv_c_compiler___SUNPRO_C" >&6; }
15723     if test "x$bakefile_cv_c_compiler___SUNPRO_C" = "xyes"; then
15724         :; SUNCC=yes
15725     else
15726         :;
15727     fi
15728     ac_ext=c
15729 ac_cpp='$CPP $CPPFLAGS'
15730 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15731 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15732 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15733
15734
15735
15736                 ;;
15737         esac
15738     fi
15739
15740
15741
15742 ac_ext=c
15743 ac_cpp='$CPP $CPPFLAGS'
15744 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15745 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15746 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15747 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
15748 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
15749 # On Suns, sometimes $CPP names a directory.
15750 if test -n "$CPP" && test -d "$CPP"; then
15751   CPP=
15752 fi
15753 if test -z "$CPP"; then
15754   if test "${ac_cv_prog_CPP+set}" = set; then
15755   echo $ECHO_N "(cached) $ECHO_C" >&6
15756 else
15757       # Double quotes because CPP needs to be expanded
15758     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
15759     do
15760       ac_preproc_ok=false
15761 for ac_c_preproc_warn_flag in '' yes
15762 do
15763   # Use a header file that comes with gcc, so configuring glibc
15764   # with a fresh cross-compiler works.
15765   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15766   # <limits.h> exists even on freestanding compilers.
15767   # On the NeXT, cc -E runs the code through the compiler's parser,
15768   # not just through cpp. "Syntax error" is here to catch this case.
15769   cat >conftest.$ac_ext <<_ACEOF
15770 /* confdefs.h.  */
15771 _ACEOF
15772 cat confdefs.h >>conftest.$ac_ext
15773 cat >>conftest.$ac_ext <<_ACEOF
15774 /* end confdefs.h.  */
15775 #ifdef __STDC__
15776 # include <limits.h>
15777 #else
15778 # include <assert.h>
15779 #endif
15780                      Syntax error
15781 _ACEOF
15782 if { (ac_try="$ac_cpp conftest.$ac_ext"
15783 case "(($ac_try" in
15784   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15785   *) ac_try_echo=$ac_try;;
15786 esac
15787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15788   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15789   ac_status=$?
15790   grep -v '^ *+' conftest.er1 >conftest.err
15791   rm -f conftest.er1
15792   cat conftest.err >&5
15793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15794   (exit $ac_status); } >/dev/null && {
15795          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15796          test ! -s conftest.err
15797        }; then
15798   :
15799 else
15800   echo "$as_me: failed program was:" >&5
15801 sed 's/^/| /' conftest.$ac_ext >&5
15802
15803   # Broken: fails on valid input.
15804 continue
15805 fi
15806
15807 rm -f conftest.err conftest.$ac_ext
15808
15809   # OK, works on sane cases.  Now check whether nonexistent headers
15810   # can be detected and how.
15811   cat >conftest.$ac_ext <<_ACEOF
15812 /* confdefs.h.  */
15813 _ACEOF
15814 cat confdefs.h >>conftest.$ac_ext
15815 cat >>conftest.$ac_ext <<_ACEOF
15816 /* end confdefs.h.  */
15817 #include <ac_nonexistent.h>
15818 _ACEOF
15819 if { (ac_try="$ac_cpp conftest.$ac_ext"
15820 case "(($ac_try" in
15821   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15822   *) ac_try_echo=$ac_try;;
15823 esac
15824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15825   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15826   ac_status=$?
15827   grep -v '^ *+' conftest.er1 >conftest.err
15828   rm -f conftest.er1
15829   cat conftest.err >&5
15830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15831   (exit $ac_status); } >/dev/null && {
15832          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15833          test ! -s conftest.err
15834        }; then
15835   # Broken: success on invalid input.
15836 continue
15837 else
15838   echo "$as_me: failed program was:" >&5
15839 sed 's/^/| /' conftest.$ac_ext >&5
15840
15841   # Passes both tests.
15842 ac_preproc_ok=:
15843 break
15844 fi
15845
15846 rm -f conftest.err conftest.$ac_ext
15847
15848 done
15849 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
15850 rm -f conftest.err conftest.$ac_ext
15851 if $ac_preproc_ok; then
15852   break
15853 fi
15854
15855     done
15856     ac_cv_prog_CPP=$CPP
15857
15858 fi
15859   CPP=$ac_cv_prog_CPP
15860 else
15861   ac_cv_prog_CPP=$CPP
15862 fi
15863 { echo "$as_me:$LINENO: result: $CPP" >&5
15864 echo "${ECHO_T}$CPP" >&6; }
15865 ac_preproc_ok=false
15866 for ac_c_preproc_warn_flag in '' yes
15867 do
15868   # Use a header file that comes with gcc, so configuring glibc
15869   # with a fresh cross-compiler works.
15870   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15871   # <limits.h> exists even on freestanding compilers.
15872   # On the NeXT, cc -E runs the code through the compiler's parser,
15873   # not just through cpp. "Syntax error" is here to catch this case.
15874   cat >conftest.$ac_ext <<_ACEOF
15875 /* confdefs.h.  */
15876 _ACEOF
15877 cat confdefs.h >>conftest.$ac_ext
15878 cat >>conftest.$ac_ext <<_ACEOF
15879 /* end confdefs.h.  */
15880 #ifdef __STDC__
15881 # include <limits.h>
15882 #else
15883 # include <assert.h>
15884 #endif
15885                      Syntax error
15886 _ACEOF
15887 if { (ac_try="$ac_cpp conftest.$ac_ext"
15888 case "(($ac_try" in
15889   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15890   *) ac_try_echo=$ac_try;;
15891 esac
15892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15893   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15894   ac_status=$?
15895   grep -v '^ *+' conftest.er1 >conftest.err
15896   rm -f conftest.er1
15897   cat conftest.err >&5
15898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15899   (exit $ac_status); } >/dev/null && {
15900          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15901          test ! -s conftest.err
15902        }; then
15903   :
15904 else
15905   echo "$as_me: failed program was:" >&5
15906 sed 's/^/| /' conftest.$ac_ext >&5
15907
15908   # Broken: fails on valid input.
15909 continue
15910 fi
15911
15912 rm -f conftest.err conftest.$ac_ext
15913
15914   # OK, works on sane cases.  Now check whether nonexistent headers
15915   # can be detected and how.
15916   cat >conftest.$ac_ext <<_ACEOF
15917 /* confdefs.h.  */
15918 _ACEOF
15919 cat confdefs.h >>conftest.$ac_ext
15920 cat >>conftest.$ac_ext <<_ACEOF
15921 /* end confdefs.h.  */
15922 #include <ac_nonexistent.h>
15923 _ACEOF
15924 if { (ac_try="$ac_cpp conftest.$ac_ext"
15925 case "(($ac_try" in
15926   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15927   *) ac_try_echo=$ac_try;;
15928 esac
15929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15930   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15931   ac_status=$?
15932   grep -v '^ *+' conftest.er1 >conftest.err
15933   rm -f conftest.er1
15934   cat conftest.err >&5
15935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15936   (exit $ac_status); } >/dev/null && {
15937          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15938          test ! -s conftest.err
15939        }; then
15940   # Broken: success on invalid input.
15941 continue
15942 else
15943   echo "$as_me: failed program was:" >&5
15944 sed 's/^/| /' conftest.$ac_ext >&5
15945
15946   # Passes both tests.
15947 ac_preproc_ok=:
15948 break
15949 fi
15950
15951 rm -f conftest.err conftest.$ac_ext
15952
15953 done
15954 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
15955 rm -f conftest.err conftest.$ac_ext
15956 if $ac_preproc_ok; then
15957   :
15958 else
15959   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
15960 See \`config.log' for more details." >&5
15961 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
15962 See \`config.log' for more details." >&2;}
15963    { (exit 1); exit 1; }; }
15964 fi
15965
15966 ac_ext=c
15967 ac_cpp='$CPP $CPPFLAGS'
15968 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15969 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15970 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15971
15972
15973 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
15974 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
15975 if test "${ac_cv_path_GREP+set}" = set; then
15976   echo $ECHO_N "(cached) $ECHO_C" >&6
15977 else
15978   # Extract the first word of "grep ggrep" to use in msg output
15979 if test -z "$GREP"; then
15980 set dummy grep ggrep; ac_prog_name=$2
15981 if test "${ac_cv_path_GREP+set}" = set; then
15982   echo $ECHO_N "(cached) $ECHO_C" >&6
15983 else
15984   ac_path_GREP_found=false
15985 # Loop through the user's path and test for each of PROGNAME-LIST
15986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15987 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
15988 do
15989   IFS=$as_save_IFS
15990   test -z "$as_dir" && as_dir=.
15991   for ac_prog in grep ggrep; do
15992   for ac_exec_ext in '' $ac_executable_extensions; do
15993     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
15994     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
15995     # Check for GNU ac_path_GREP and select it if it is found.
15996   # Check for GNU $ac_path_GREP
15997 case `"$ac_path_GREP" --version 2>&1` in
15998 *GNU*)
15999   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
16000 *)
16001   ac_count=0
16002   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
16003   while :
16004   do
16005     cat "conftest.in" "conftest.in" >"conftest.tmp"
16006     mv "conftest.tmp" "conftest.in"
16007     cp "conftest.in" "conftest.nl"
16008     echo 'GREP' >> "conftest.nl"
16009     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
16010     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
16011     ac_count=`expr $ac_count + 1`
16012     if test $ac_count -gt ${ac_path_GREP_max-0}; then
16013       # Best one so far, save it but keep looking for a better one
16014       ac_cv_path_GREP="$ac_path_GREP"
16015       ac_path_GREP_max=$ac_count
16016     fi
16017     # 10*(2^10) chars as input seems more than enough
16018     test $ac_count -gt 10 && break
16019   done
16020   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
16021 esac
16022
16023
16024     $ac_path_GREP_found && break 3
16025   done
16026 done
16027
16028 done
16029 IFS=$as_save_IFS
16030
16031
16032 fi
16033
16034 GREP="$ac_cv_path_GREP"
16035 if test -z "$GREP"; then
16036   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
16037 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
16038    { (exit 1); exit 1; }; }
16039 fi
16040
16041 else
16042   ac_cv_path_GREP=$GREP
16043 fi
16044
16045
16046 fi
16047 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
16048 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
16049  GREP="$ac_cv_path_GREP"
16050
16051
16052 { echo "$as_me:$LINENO: checking for egrep" >&5
16053 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
16054 if test "${ac_cv_path_EGREP+set}" = set; then
16055   echo $ECHO_N "(cached) $ECHO_C" >&6
16056 else
16057   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
16058    then ac_cv_path_EGREP="$GREP -E"
16059    else
16060      # Extract the first word of "egrep" to use in msg output
16061 if test -z "$EGREP"; then
16062 set dummy egrep; ac_prog_name=$2
16063 if test "${ac_cv_path_EGREP+set}" = set; then
16064   echo $ECHO_N "(cached) $ECHO_C" >&6
16065 else
16066   ac_path_EGREP_found=false
16067 # Loop through the user's path and test for each of PROGNAME-LIST
16068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16069 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
16070 do
16071   IFS=$as_save_IFS
16072   test -z "$as_dir" && as_dir=.
16073   for ac_prog in egrep; do
16074   for ac_exec_ext in '' $ac_executable_extensions; do
16075     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
16076     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
16077     # Check for GNU ac_path_EGREP and select it if it is found.
16078   # Check for GNU $ac_path_EGREP
16079 case `"$ac_path_EGREP" --version 2>&1` in
16080 *GNU*)
16081   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
16082 *)
16083   ac_count=0
16084   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
16085   while :
16086   do
16087     cat "conftest.in" "conftest.in" >"conftest.tmp"
16088     mv "conftest.tmp" "conftest.in"
16089     cp "conftest.in" "conftest.nl"
16090     echo 'EGREP' >> "conftest.nl"
16091     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
16092     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
16093     ac_count=`expr $ac_count + 1`
16094     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
16095       # Best one so far, save it but keep looking for a better one
16096       ac_cv_path_EGREP="$ac_path_EGREP"
16097       ac_path_EGREP_max=$ac_count
16098     fi
16099     # 10*(2^10) chars as input seems more than enough
16100     test $ac_count -gt 10 && break
16101   done
16102   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
16103 esac
16104
16105
16106     $ac_path_EGREP_found && break 3
16107   done
16108 done
16109
16110 done
16111 IFS=$as_save_IFS
16112
16113
16114 fi
16115
16116 EGREP="$ac_cv_path_EGREP"
16117 if test -z "$EGREP"; then
16118   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
16119 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
16120    { (exit 1); exit 1; }; }
16121 fi
16122
16123 else
16124   ac_cv_path_EGREP=$EGREP
16125 fi
16126
16127
16128    fi
16129 fi
16130 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
16131 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
16132  EGREP="$ac_cv_path_EGREP"
16133
16134
16135 if test $ac_cv_c_compiler_gnu = yes; then
16136     { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
16137 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
16138 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
16139   echo $ECHO_N "(cached) $ECHO_C" >&6
16140 else
16141     ac_pattern="Autoconf.*'x'"
16142   cat >conftest.$ac_ext <<_ACEOF
16143 /* confdefs.h.  */
16144 _ACEOF
16145 cat confdefs.h >>conftest.$ac_ext
16146 cat >>conftest.$ac_ext <<_ACEOF
16147 /* end confdefs.h.  */
16148 #include <sgtty.h>
16149 Autoconf TIOCGETP
16150 _ACEOF
16151 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16152   $EGREP "$ac_pattern" >/dev/null 2>&1; then
16153   ac_cv_prog_gcc_traditional=yes
16154 else
16155   ac_cv_prog_gcc_traditional=no
16156 fi
16157 rm -f conftest*
16158
16159
16160   if test $ac_cv_prog_gcc_traditional = no; then
16161     cat >conftest.$ac_ext <<_ACEOF
16162 /* confdefs.h.  */
16163 _ACEOF
16164 cat confdefs.h >>conftest.$ac_ext
16165 cat >>conftest.$ac_ext <<_ACEOF
16166 /* end confdefs.h.  */
16167 #include <termio.h>
16168 Autoconf TCGETA
16169 _ACEOF
16170 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16171   $EGREP "$ac_pattern" >/dev/null 2>&1; then
16172   ac_cv_prog_gcc_traditional=yes
16173 fi
16174 rm -f conftest*
16175
16176   fi
16177 fi
16178 { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
16179 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
16180   if test $ac_cv_prog_gcc_traditional = yes; then
16181     CC="$CC -traditional"
16182   fi
16183 fi
16184
16185
16186 CXXFLAGS=${CXXFLAGS:=}
16187
16188
16189
16190     ac_ext=cpp
16191 ac_cpp='$CXXCPP $CPPFLAGS'
16192 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16193 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16194 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16195 if test -z "$CXX"; then
16196   if test -n "$CCC"; then
16197     CXX=$CCC
16198   else
16199     if test -n "$ac_tool_prefix"; then
16200   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
16201   do
16202     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
16203 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
16204 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16205 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16206 if test "${ac_cv_prog_CXX+set}" = set; then
16207   echo $ECHO_N "(cached) $ECHO_C" >&6
16208 else
16209   if test -n "$CXX"; then
16210   ac_cv_prog_CXX="$CXX" # Let the user override the test.
16211 else
16212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16213 for as_dir in $PATH
16214 do
16215   IFS=$as_save_IFS
16216   test -z "$as_dir" && as_dir=.
16217   for ac_exec_ext in '' $ac_executable_extensions; do
16218   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16219     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
16220     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16221     break 2
16222   fi
16223 done
16224 done
16225 IFS=$as_save_IFS
16226
16227 fi
16228 fi
16229 CXX=$ac_cv_prog_CXX
16230 if test -n "$CXX"; then
16231   { echo "$as_me:$LINENO: result: $CXX" >&5
16232 echo "${ECHO_T}$CXX" >&6; }
16233 else
16234   { echo "$as_me:$LINENO: result: no" >&5
16235 echo "${ECHO_T}no" >&6; }
16236 fi
16237
16238
16239     test -n "$CXX" && break
16240   done
16241 fi
16242 if test -z "$CXX"; then
16243   ac_ct_CXX=$CXX
16244   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
16245 do
16246   # Extract the first word of "$ac_prog", so it can be a program name with args.
16247 set dummy $ac_prog; ac_word=$2
16248 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16249 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16250 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
16251   echo $ECHO_N "(cached) $ECHO_C" >&6
16252 else
16253   if test -n "$ac_ct_CXX"; then
16254   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
16255 else
16256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16257 for as_dir in $PATH
16258 do
16259   IFS=$as_save_IFS
16260   test -z "$as_dir" && as_dir=.
16261   for ac_exec_ext in '' $ac_executable_extensions; do
16262   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16263     ac_cv_prog_ac_ct_CXX="$ac_prog"
16264     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16265     break 2
16266   fi
16267 done
16268 done
16269 IFS=$as_save_IFS
16270
16271 fi
16272 fi
16273 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
16274 if test -n "$ac_ct_CXX"; then
16275   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
16276 echo "${ECHO_T}$ac_ct_CXX" >&6; }
16277 else
16278   { echo "$as_me:$LINENO: result: no" >&5
16279 echo "${ECHO_T}no" >&6; }
16280 fi
16281
16282
16283   test -n "$ac_ct_CXX" && break
16284 done
16285
16286   if test "x$ac_ct_CXX" = x; then
16287     CXX="g++"
16288   else
16289     case $cross_compiling:$ac_tool_warned in
16290 yes:)
16291 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
16292 whose name does not start with the host triplet.  If you think this
16293 configuration is useful to you, please write to autoconf@gnu.org." >&5
16294 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
16295 whose name does not start with the host triplet.  If you think this
16296 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
16297 ac_tool_warned=yes ;;
16298 esac
16299     CXX=$ac_ct_CXX
16300   fi
16301 fi
16302
16303   fi
16304 fi
16305 # Provide some information about the compiler.
16306 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
16307 ac_compiler=`set X $ac_compile; echo $2`
16308 { (ac_try="$ac_compiler --version >&5"
16309 case "(($ac_try" in
16310   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16311   *) ac_try_echo=$ac_try;;
16312 esac
16313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16314   (eval "$ac_compiler --version >&5") 2>&5
16315   ac_status=$?
16316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16317   (exit $ac_status); }
16318 { (ac_try="$ac_compiler -v >&5"
16319 case "(($ac_try" in
16320   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16321   *) ac_try_echo=$ac_try;;
16322 esac
16323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16324   (eval "$ac_compiler -v >&5") 2>&5
16325   ac_status=$?
16326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16327   (exit $ac_status); }
16328 { (ac_try="$ac_compiler -V >&5"
16329 case "(($ac_try" in
16330   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16331   *) ac_try_echo=$ac_try;;
16332 esac
16333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16334   (eval "$ac_compiler -V >&5") 2>&5
16335   ac_status=$?
16336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16337   (exit $ac_status); }
16338
16339 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
16340 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
16341 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
16342   echo $ECHO_N "(cached) $ECHO_C" >&6
16343 else
16344   cat >conftest.$ac_ext <<_ACEOF
16345 /* confdefs.h.  */
16346 _ACEOF
16347 cat confdefs.h >>conftest.$ac_ext
16348 cat >>conftest.$ac_ext <<_ACEOF
16349 /* end confdefs.h.  */
16350
16351 int
16352 main ()
16353 {
16354 #ifndef __GNUC__
16355        choke me
16356 #endif
16357
16358   ;
16359   return 0;
16360 }
16361 _ACEOF
16362 rm -f conftest.$ac_objext
16363 if { (ac_try="$ac_compile"
16364 case "(($ac_try" in
16365   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16366   *) ac_try_echo=$ac_try;;
16367 esac
16368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16369   (eval "$ac_compile") 2>conftest.er1
16370   ac_status=$?
16371   grep -v '^ *+' conftest.er1 >conftest.err
16372   rm -f conftest.er1
16373   cat conftest.err >&5
16374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16375   (exit $ac_status); } && {
16376          test -z "$ac_cxx_werror_flag" ||
16377          test ! -s conftest.err
16378        } && test -s conftest.$ac_objext; then
16379   ac_compiler_gnu=yes
16380 else
16381   echo "$as_me: failed program was:" >&5
16382 sed 's/^/| /' conftest.$ac_ext >&5
16383
16384         ac_compiler_gnu=no
16385 fi
16386
16387 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16388 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
16389
16390 fi
16391 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
16392 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
16393 GXX=`test $ac_compiler_gnu = yes && echo yes`
16394 ac_test_CXXFLAGS=${CXXFLAGS+set}
16395 ac_save_CXXFLAGS=$CXXFLAGS
16396 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
16397 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
16398 if test "${ac_cv_prog_cxx_g+set}" = set; then
16399   echo $ECHO_N "(cached) $ECHO_C" >&6
16400 else
16401   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
16402    ac_cxx_werror_flag=yes
16403    ac_cv_prog_cxx_g=no
16404    CXXFLAGS="-g"
16405    cat >conftest.$ac_ext <<_ACEOF
16406 /* confdefs.h.  */
16407 _ACEOF
16408 cat confdefs.h >>conftest.$ac_ext
16409 cat >>conftest.$ac_ext <<_ACEOF
16410 /* end confdefs.h.  */
16411
16412 int
16413 main ()
16414 {
16415
16416   ;
16417   return 0;
16418 }
16419 _ACEOF
16420 rm -f conftest.$ac_objext
16421 if { (ac_try="$ac_compile"
16422 case "(($ac_try" in
16423   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16424   *) ac_try_echo=$ac_try;;
16425 esac
16426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16427   (eval "$ac_compile") 2>conftest.er1
16428   ac_status=$?
16429   grep -v '^ *+' conftest.er1 >conftest.err
16430   rm -f conftest.er1
16431   cat conftest.err >&5
16432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16433   (exit $ac_status); } && {
16434          test -z "$ac_cxx_werror_flag" ||
16435          test ! -s conftest.err
16436        } && test -s conftest.$ac_objext; then
16437   ac_cv_prog_cxx_g=yes
16438 else
16439   echo "$as_me: failed program was:" >&5
16440 sed 's/^/| /' conftest.$ac_ext >&5
16441
16442         CXXFLAGS=""
16443       cat >conftest.$ac_ext <<_ACEOF
16444 /* confdefs.h.  */
16445 _ACEOF
16446 cat confdefs.h >>conftest.$ac_ext
16447 cat >>conftest.$ac_ext <<_ACEOF
16448 /* end confdefs.h.  */
16449
16450 int
16451 main ()
16452 {
16453
16454   ;
16455   return 0;
16456 }
16457 _ACEOF
16458 rm -f conftest.$ac_objext
16459 if { (ac_try="$ac_compile"
16460 case "(($ac_try" in
16461   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16462   *) ac_try_echo=$ac_try;;
16463 esac
16464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16465   (eval "$ac_compile") 2>conftest.er1
16466   ac_status=$?
16467   grep -v '^ *+' conftest.er1 >conftest.err
16468   rm -f conftest.er1
16469   cat conftest.err >&5
16470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16471   (exit $ac_status); } && {
16472          test -z "$ac_cxx_werror_flag" ||
16473          test ! -s conftest.err
16474        } && test -s conftest.$ac_objext; then
16475   :
16476 else
16477   echo "$as_me: failed program was:" >&5
16478 sed 's/^/| /' conftest.$ac_ext >&5
16479
16480         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
16481          CXXFLAGS="-g"
16482          cat >conftest.$ac_ext <<_ACEOF
16483 /* confdefs.h.  */
16484 _ACEOF
16485 cat confdefs.h >>conftest.$ac_ext
16486 cat >>conftest.$ac_ext <<_ACEOF
16487 /* end confdefs.h.  */
16488
16489 int
16490 main ()
16491 {
16492
16493   ;
16494   return 0;
16495 }
16496 _ACEOF
16497 rm -f conftest.$ac_objext
16498 if { (ac_try="$ac_compile"
16499 case "(($ac_try" in
16500   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16501   *) ac_try_echo=$ac_try;;
16502 esac
16503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16504   (eval "$ac_compile") 2>conftest.er1
16505   ac_status=$?
16506   grep -v '^ *+' conftest.er1 >conftest.err
16507   rm -f conftest.er1
16508   cat conftest.err >&5
16509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16510   (exit $ac_status); } && {
16511          test -z "$ac_cxx_werror_flag" ||
16512          test ! -s conftest.err
16513        } && test -s conftest.$ac_objext; then
16514   ac_cv_prog_cxx_g=yes
16515 else
16516   echo "$as_me: failed program was:" >&5
16517 sed 's/^/| /' conftest.$ac_ext >&5
16518
16519
16520 fi
16521
16522 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16523 fi
16524
16525 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16526 fi
16527
16528 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16529    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
16530 fi
16531 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
16532 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
16533 if test "$ac_test_CXXFLAGS" = set; then
16534   CXXFLAGS=$ac_save_CXXFLAGS
16535 elif test $ac_cv_prog_cxx_g = yes; then
16536   if test "$GXX" = yes; then
16537     CXXFLAGS="-g -O2"
16538   else
16539     CXXFLAGS="-g"
16540   fi
16541 else
16542   if test "$GXX" = yes; then
16543     CXXFLAGS="-O2"
16544   else
16545     CXXFLAGS=
16546   fi
16547 fi
16548 ac_ext=c
16549 ac_cpp='$CPP $CPPFLAGS'
16550 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16551 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16552 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16553
16554
16555
16556
16557     ac_ext=cpp
16558 ac_cpp='$CXXCPP $CPPFLAGS'
16559 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16560 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16561 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16562
16563     { echo "$as_me:$LINENO: checking whether we are using the Intel C++ compiler" >&5
16564 echo $ECHO_N "checking whether we are using the Intel C++ compiler... $ECHO_C" >&6; }
16565 if test "${bakefile_cv_cxx_compiler___INTEL_COMPILER+set}" = set; then
16566   echo $ECHO_N "(cached) $ECHO_C" >&6
16567 else
16568   cat >conftest.$ac_ext <<_ACEOF
16569 /* confdefs.h.  */
16570 _ACEOF
16571 cat confdefs.h >>conftest.$ac_ext
16572 cat >>conftest.$ac_ext <<_ACEOF
16573 /* end confdefs.h.  */
16574
16575 int
16576 main ()
16577 {
16578
16579              #ifndef __INTEL_COMPILER
16580                 choke me
16581              #endif
16582
16583   ;
16584   return 0;
16585 }
16586 _ACEOF
16587 rm -f conftest.$ac_objext
16588 if { (ac_try="$ac_compile"
16589 case "(($ac_try" in
16590   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16591   *) ac_try_echo=$ac_try;;
16592 esac
16593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16594   (eval "$ac_compile") 2>conftest.er1
16595   ac_status=$?
16596   grep -v '^ *+' conftest.er1 >conftest.err
16597   rm -f conftest.er1
16598   cat conftest.err >&5
16599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16600   (exit $ac_status); } && {
16601          test -z "$ac_cxx_werror_flag" ||
16602          test ! -s conftest.err
16603        } && test -s conftest.$ac_objext; then
16604   bakefile_cv_cxx_compiler___INTEL_COMPILER=yes
16605 else
16606   echo "$as_me: failed program was:" >&5
16607 sed 's/^/| /' conftest.$ac_ext >&5
16608
16609         bakefile_cv_cxx_compiler___INTEL_COMPILER=no
16610
16611 fi
16612
16613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16614
16615
16616 fi
16617 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___INTEL_COMPILER" >&5
16618 echo "${ECHO_T}$bakefile_cv_cxx_compiler___INTEL_COMPILER" >&6; }
16619     if test "x$bakefile_cv_cxx_compiler___INTEL_COMPILER" = "xyes"; then
16620         :; INTELCXX=yes
16621     else
16622         :;
16623     fi
16624     ac_ext=c
16625 ac_cpp='$CPP $CPPFLAGS'
16626 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16627 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16628 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16629
16630
16631
16632
16633         if test "x$GCXX" != "xyes"; then
16634         if test "xCXX" = "xC"; then
16635             { echo "$as_me:$LINENO: checking if the C compiler requires -ext o" >&5
16636 echo $ECHO_N "checking if the C compiler requires -ext o... $ECHO_C" >&6; }
16637 if test "${bakefile_cv_c_exto+set}" = set; then
16638   echo $ECHO_N "(cached) $ECHO_C" >&6
16639 else
16640   cat >conftest.$ac_ext <<_ACEOF
16641 /* confdefs.h.  */
16642 _ACEOF
16643 cat confdefs.h >>conftest.$ac_ext
16644 cat >>conftest.$ac_ext <<_ACEOF
16645 /* end confdefs.h.  */
16646
16647 int
16648 main ()
16649 {
16650
16651   ;
16652   return 0;
16653 }
16654 _ACEOF
16655 rm -f conftest.$ac_objext conftest.$ac_ext.o
16656 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16657   (eval $ac_compile) 2>&5
16658   ac_status=$?
16659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16660   (exit $ac_status); }; then
16661   for ac_file in `(ls conftest.* 2>/dev/null)`; do
16662     case $ac_file in
16663         conftest.$ac_ext.o)
16664             bakefile_cv_c_exto="-ext o"
16665             ;;
16666         *)
16667             ;;
16668     esac
16669 done
16670 else
16671   { { echo "$as_me:$LINENO: error: cannot figure out if compiler needs -ext o: cannot compile
16672 See \`config.log' for more details." >&5
16673 echo "$as_me: error: cannot figure out if compiler needs -ext o: cannot compile
16674 See \`config.log' for more details." >&2;}
16675    { (exit 1); exit 1; }; }
16676
16677 fi
16678
16679 rm -f conftest.$ac_ext.o conftest.$ac_objext conftest.$ac_ext
16680
16681 fi
16682 { echo "$as_me:$LINENO: result: $bakefile_cv_c_exto" >&5
16683 echo "${ECHO_T}$bakefile_cv_c_exto" >&6; }
16684 if test "x$bakefile_cv_c_exto" '!=' "x"; then
16685     if test "c" = "c"; then
16686         CFLAGS="$bakefile_cv_c_exto $CFLAGS"
16687     fi
16688     if test "c" = "cxx"; then
16689         CXXFLAGS="$bakefile_cv_c_exto $CXXFLAGS"
16690     fi
16691 fi
16692
16693             if test "x$bakefile_cv_c_exto" '!=' "x"; then
16694                 unset ac_cv_prog_cc_g
16695                 ac_test_CFLAGS=${CFLAGS+set}
16696 ac_save_CFLAGS=$CFLAGS
16697 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
16698 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
16699 if test "${ac_cv_prog_cc_g+set}" = set; then
16700   echo $ECHO_N "(cached) $ECHO_C" >&6
16701 else
16702   ac_save_c_werror_flag=$ac_c_werror_flag
16703    ac_c_werror_flag=yes
16704    ac_cv_prog_cc_g=no
16705    CFLAGS="-g"
16706    cat >conftest.$ac_ext <<_ACEOF
16707 /* confdefs.h.  */
16708 _ACEOF
16709 cat confdefs.h >>conftest.$ac_ext
16710 cat >>conftest.$ac_ext <<_ACEOF
16711 /* end confdefs.h.  */
16712
16713 int
16714 main ()
16715 {
16716
16717   ;
16718   return 0;
16719 }
16720 _ACEOF
16721 rm -f conftest.$ac_objext
16722 if { (ac_try="$ac_compile"
16723 case "(($ac_try" in
16724   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16725   *) ac_try_echo=$ac_try;;
16726 esac
16727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16728   (eval "$ac_compile") 2>conftest.er1
16729   ac_status=$?
16730   grep -v '^ *+' conftest.er1 >conftest.err
16731   rm -f conftest.er1
16732   cat conftest.err >&5
16733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16734   (exit $ac_status); } && {
16735          test -z "$ac_c_werror_flag" ||
16736          test ! -s conftest.err
16737        } && test -s conftest.$ac_objext; then
16738   ac_cv_prog_cc_g=yes
16739 else
16740   echo "$as_me: failed program was:" >&5
16741 sed 's/^/| /' conftest.$ac_ext >&5
16742
16743         CFLAGS=""
16744       cat >conftest.$ac_ext <<_ACEOF
16745 /* confdefs.h.  */
16746 _ACEOF
16747 cat confdefs.h >>conftest.$ac_ext
16748 cat >>conftest.$ac_ext <<_ACEOF
16749 /* end confdefs.h.  */
16750
16751 int
16752 main ()
16753 {
16754
16755   ;
16756   return 0;
16757 }
16758 _ACEOF
16759 rm -f conftest.$ac_objext
16760 if { (ac_try="$ac_compile"
16761 case "(($ac_try" in
16762   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16763   *) ac_try_echo=$ac_try;;
16764 esac
16765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16766   (eval "$ac_compile") 2>conftest.er1
16767   ac_status=$?
16768   grep -v '^ *+' conftest.er1 >conftest.err
16769   rm -f conftest.er1
16770   cat conftest.err >&5
16771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16772   (exit $ac_status); } && {
16773          test -z "$ac_c_werror_flag" ||
16774          test ! -s conftest.err
16775        } && test -s conftest.$ac_objext; then
16776   :
16777 else
16778   echo "$as_me: failed program was:" >&5
16779 sed 's/^/| /' conftest.$ac_ext >&5
16780
16781         ac_c_werror_flag=$ac_save_c_werror_flag
16782          CFLAGS="-g"
16783          cat >conftest.$ac_ext <<_ACEOF
16784 /* confdefs.h.  */
16785 _ACEOF
16786 cat confdefs.h >>conftest.$ac_ext
16787 cat >>conftest.$ac_ext <<_ACEOF
16788 /* end confdefs.h.  */
16789
16790 int
16791 main ()
16792 {
16793
16794   ;
16795   return 0;
16796 }
16797 _ACEOF
16798 rm -f conftest.$ac_objext
16799 if { (ac_try="$ac_compile"
16800 case "(($ac_try" in
16801   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16802   *) ac_try_echo=$ac_try;;
16803 esac
16804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16805   (eval "$ac_compile") 2>conftest.er1
16806   ac_status=$?
16807   grep -v '^ *+' conftest.er1 >conftest.err
16808   rm -f conftest.er1
16809   cat conftest.err >&5
16810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16811   (exit $ac_status); } && {
16812          test -z "$ac_c_werror_flag" ||
16813          test ! -s conftest.err
16814        } && test -s conftest.$ac_objext; then
16815   ac_cv_prog_cc_g=yes
16816 else
16817   echo "$as_me: failed program was:" >&5
16818 sed 's/^/| /' conftest.$ac_ext >&5
16819
16820
16821 fi
16822
16823 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16824 fi
16825
16826 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16827 fi
16828
16829 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16830    ac_c_werror_flag=$ac_save_c_werror_flag
16831 fi
16832 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
16833 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
16834 if test "$ac_test_CFLAGS" = set; then
16835   CFLAGS=$ac_save_CFLAGS
16836 elif test $ac_cv_prog_cc_g = yes; then
16837   if test "$GCC" = yes; then
16838     CFLAGS="-g -O2"
16839   else
16840     CFLAGS="-g"
16841   fi
16842 else
16843   if test "$GCC" = yes; then
16844     CFLAGS="-O2"
16845   else
16846     CFLAGS=
16847   fi
16848 fi
16849             fi
16850         fi
16851
16852                         case `uname -s` in
16853             AIX*)
16854
16855
16856     ac_ext=cpp
16857 ac_cpp='$CXXCPP $CPPFLAGS'
16858 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16859 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16860 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16861
16862     { echo "$as_me:$LINENO: checking whether we are using the IBM xlC C++ compiler" >&5
16863 echo $ECHO_N "checking whether we are using the IBM xlC C++ compiler... $ECHO_C" >&6; }
16864 if test "${bakefile_cv_cxx_compiler___xlC__+set}" = set; then
16865   echo $ECHO_N "(cached) $ECHO_C" >&6
16866 else
16867   cat >conftest.$ac_ext <<_ACEOF
16868 /* confdefs.h.  */
16869 _ACEOF
16870 cat confdefs.h >>conftest.$ac_ext
16871 cat >>conftest.$ac_ext <<_ACEOF
16872 /* end confdefs.h.  */
16873
16874 int
16875 main ()
16876 {
16877
16878              #ifndef __xlC__
16879                 choke me
16880              #endif
16881
16882   ;
16883   return 0;
16884 }
16885 _ACEOF
16886 rm -f conftest.$ac_objext
16887 if { (ac_try="$ac_compile"
16888 case "(($ac_try" in
16889   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16890   *) ac_try_echo=$ac_try;;
16891 esac
16892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16893   (eval "$ac_compile") 2>conftest.er1
16894   ac_status=$?
16895   grep -v '^ *+' conftest.er1 >conftest.err
16896   rm -f conftest.er1
16897   cat conftest.err >&5
16898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16899   (exit $ac_status); } && {
16900          test -z "$ac_cxx_werror_flag" ||
16901          test ! -s conftest.err
16902        } && test -s conftest.$ac_objext; then
16903   bakefile_cv_cxx_compiler___xlC__=yes
16904 else
16905   echo "$as_me: failed program was:" >&5
16906 sed 's/^/| /' conftest.$ac_ext >&5
16907
16908         bakefile_cv_cxx_compiler___xlC__=no
16909
16910 fi
16911
16912 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16913
16914
16915 fi
16916 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___xlC__" >&5
16917 echo "${ECHO_T}$bakefile_cv_cxx_compiler___xlC__" >&6; }
16918     if test "x$bakefile_cv_cxx_compiler___xlC__" = "xyes"; then
16919         :; XLCXX=yes
16920     else
16921         :;
16922     fi
16923     ac_ext=c
16924 ac_cpp='$CPP $CPPFLAGS'
16925 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16926 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16927 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16928
16929
16930
16931                 ;;
16932
16933             Darwin)
16934
16935
16936     ac_ext=cpp
16937 ac_cpp='$CXXCPP $CPPFLAGS'
16938 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16939 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16940 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16941
16942     { echo "$as_me:$LINENO: checking whether we are using the Metrowerks C++ compiler" >&5
16943 echo $ECHO_N "checking whether we are using the Metrowerks C++ compiler... $ECHO_C" >&6; }
16944 if test "${bakefile_cv_cxx_compiler___MWERKS__+set}" = set; then
16945   echo $ECHO_N "(cached) $ECHO_C" >&6
16946 else
16947   cat >conftest.$ac_ext <<_ACEOF
16948 /* confdefs.h.  */
16949 _ACEOF
16950 cat confdefs.h >>conftest.$ac_ext
16951 cat >>conftest.$ac_ext <<_ACEOF
16952 /* end confdefs.h.  */
16953
16954 int
16955 main ()
16956 {
16957
16958              #ifndef __MWERKS__
16959                 choke me
16960              #endif
16961
16962   ;
16963   return 0;
16964 }
16965 _ACEOF
16966 rm -f conftest.$ac_objext
16967 if { (ac_try="$ac_compile"
16968 case "(($ac_try" in
16969   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16970   *) ac_try_echo=$ac_try;;
16971 esac
16972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16973   (eval "$ac_compile") 2>conftest.er1
16974   ac_status=$?
16975   grep -v '^ *+' conftest.er1 >conftest.err
16976   rm -f conftest.er1
16977   cat conftest.err >&5
16978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16979   (exit $ac_status); } && {
16980          test -z "$ac_cxx_werror_flag" ||
16981          test ! -s conftest.err
16982        } && test -s conftest.$ac_objext; then
16983   bakefile_cv_cxx_compiler___MWERKS__=yes
16984 else
16985   echo "$as_me: failed program was:" >&5
16986 sed 's/^/| /' conftest.$ac_ext >&5
16987
16988         bakefile_cv_cxx_compiler___MWERKS__=no
16989
16990 fi
16991
16992 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16993
16994
16995 fi
16996 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___MWERKS__" >&5
16997 echo "${ECHO_T}$bakefile_cv_cxx_compiler___MWERKS__" >&6; }
16998     if test "x$bakefile_cv_cxx_compiler___MWERKS__" = "xyes"; then
16999         :; MWCXX=yes
17000     else
17001         :;
17002     fi
17003     ac_ext=c
17004 ac_cpp='$CPP $CPPFLAGS'
17005 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17006 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17007 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17008
17009
17010
17011
17012
17013     ac_ext=cpp
17014 ac_cpp='$CXXCPP $CPPFLAGS'
17015 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17016 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17017 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17018
17019     { echo "$as_me:$LINENO: checking whether we are using the IBM xlC C++ compiler" >&5
17020 echo $ECHO_N "checking whether we are using the IBM xlC C++ compiler... $ECHO_C" >&6; }
17021 if test "${bakefile_cv_cxx_compiler___xlC__+set}" = set; then
17022   echo $ECHO_N "(cached) $ECHO_C" >&6
17023 else
17024   cat >conftest.$ac_ext <<_ACEOF
17025 /* confdefs.h.  */
17026 _ACEOF
17027 cat confdefs.h >>conftest.$ac_ext
17028 cat >>conftest.$ac_ext <<_ACEOF
17029 /* end confdefs.h.  */
17030
17031 int
17032 main ()
17033 {
17034
17035              #ifndef __xlC__
17036                 choke me
17037              #endif
17038
17039   ;
17040   return 0;
17041 }
17042 _ACEOF
17043 rm -f conftest.$ac_objext
17044 if { (ac_try="$ac_compile"
17045 case "(($ac_try" in
17046   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17047   *) ac_try_echo=$ac_try;;
17048 esac
17049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17050   (eval "$ac_compile") 2>conftest.er1
17051   ac_status=$?
17052   grep -v '^ *+' conftest.er1 >conftest.err
17053   rm -f conftest.er1
17054   cat conftest.err >&5
17055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17056   (exit $ac_status); } && {
17057          test -z "$ac_cxx_werror_flag" ||
17058          test ! -s conftest.err
17059        } && test -s conftest.$ac_objext; then
17060   bakefile_cv_cxx_compiler___xlC__=yes
17061 else
17062   echo "$as_me: failed program was:" >&5
17063 sed 's/^/| /' conftest.$ac_ext >&5
17064
17065         bakefile_cv_cxx_compiler___xlC__=no
17066
17067 fi
17068
17069 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17070
17071
17072 fi
17073 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___xlC__" >&5
17074 echo "${ECHO_T}$bakefile_cv_cxx_compiler___xlC__" >&6; }
17075     if test "x$bakefile_cv_cxx_compiler___xlC__" = "xyes"; then
17076         :; XLCXX=yes
17077     else
17078         :;
17079     fi
17080     ac_ext=c
17081 ac_cpp='$CPP $CPPFLAGS'
17082 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17083 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17084 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17085
17086
17087
17088                 ;;
17089
17090             IRIX*)
17091
17092
17093     ac_ext=cpp
17094 ac_cpp='$CXXCPP $CPPFLAGS'
17095 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17096 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17097 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17098
17099     { echo "$as_me:$LINENO: checking whether we are using the SGI C++ compiler" >&5
17100 echo $ECHO_N "checking whether we are using the SGI C++ compiler... $ECHO_C" >&6; }
17101 if test "${bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION+set}" = set; then
17102   echo $ECHO_N "(cached) $ECHO_C" >&6
17103 else
17104   cat >conftest.$ac_ext <<_ACEOF
17105 /* confdefs.h.  */
17106 _ACEOF
17107 cat confdefs.h >>conftest.$ac_ext
17108 cat >>conftest.$ac_ext <<_ACEOF
17109 /* end confdefs.h.  */
17110
17111 int
17112 main ()
17113 {
17114
17115              #ifndef _SGI_COMPILER_VERSION
17116                 choke me
17117              #endif
17118
17119   ;
17120   return 0;
17121 }
17122 _ACEOF
17123 rm -f conftest.$ac_objext
17124 if { (ac_try="$ac_compile"
17125 case "(($ac_try" in
17126   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17127   *) ac_try_echo=$ac_try;;
17128 esac
17129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17130   (eval "$ac_compile") 2>conftest.er1
17131   ac_status=$?
17132   grep -v '^ *+' conftest.er1 >conftest.err
17133   rm -f conftest.er1
17134   cat conftest.err >&5
17135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17136   (exit $ac_status); } && {
17137          test -z "$ac_cxx_werror_flag" ||
17138          test ! -s conftest.err
17139        } && test -s conftest.$ac_objext; then
17140   bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION=yes
17141 else
17142   echo "$as_me: failed program was:" >&5
17143 sed 's/^/| /' conftest.$ac_ext >&5
17144
17145         bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION=no
17146
17147 fi
17148
17149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17150
17151
17152 fi
17153 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" >&5
17154 echo "${ECHO_T}$bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" >&6; }
17155     if test "x$bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" = "xyes"; then
17156         :; SGICXX=yes
17157     else
17158         :;
17159     fi
17160     ac_ext=c
17161 ac_cpp='$CPP $CPPFLAGS'
17162 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17163 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17164 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17165
17166
17167
17168                 ;;
17169
17170             Linux*)
17171
17172
17173     ac_ext=cpp
17174 ac_cpp='$CXXCPP $CPPFLAGS'
17175 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17176 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17177 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17178
17179     { echo "$as_me:$LINENO: checking whether we are using the Sun C++ compiler" >&5
17180 echo $ECHO_N "checking whether we are using the Sun C++ compiler... $ECHO_C" >&6; }
17181 if test "${bakefile_cv_cxx_compiler___SUNPRO_CC+set}" = set; then
17182   echo $ECHO_N "(cached) $ECHO_C" >&6
17183 else
17184   cat >conftest.$ac_ext <<_ACEOF
17185 /* confdefs.h.  */
17186 _ACEOF
17187 cat confdefs.h >>conftest.$ac_ext
17188 cat >>conftest.$ac_ext <<_ACEOF
17189 /* end confdefs.h.  */
17190
17191 int
17192 main ()
17193 {
17194
17195              #ifndef __SUNPRO_CC
17196                 choke me
17197              #endif
17198
17199   ;
17200   return 0;
17201 }
17202 _ACEOF
17203 rm -f conftest.$ac_objext
17204 if { (ac_try="$ac_compile"
17205 case "(($ac_try" in
17206   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17207   *) ac_try_echo=$ac_try;;
17208 esac
17209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17210   (eval "$ac_compile") 2>conftest.er1
17211   ac_status=$?
17212   grep -v '^ *+' conftest.er1 >conftest.err
17213   rm -f conftest.er1
17214   cat conftest.err >&5
17215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17216   (exit $ac_status); } && {
17217          test -z "$ac_cxx_werror_flag" ||
17218          test ! -s conftest.err
17219        } && test -s conftest.$ac_objext; then
17220   bakefile_cv_cxx_compiler___SUNPRO_CC=yes
17221 else
17222   echo "$as_me: failed program was:" >&5
17223 sed 's/^/| /' conftest.$ac_ext >&5
17224
17225         bakefile_cv_cxx_compiler___SUNPRO_CC=no
17226
17227 fi
17228
17229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17230
17231
17232 fi
17233 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___SUNPRO_CC" >&5
17234 echo "${ECHO_T}$bakefile_cv_cxx_compiler___SUNPRO_CC" >&6; }
17235     if test "x$bakefile_cv_cxx_compiler___SUNPRO_CC" = "xyes"; then
17236         :; SUNCXX=yes
17237     else
17238         :;
17239     fi
17240     ac_ext=c
17241 ac_cpp='$CPP $CPPFLAGS'
17242 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17243 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17244 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17245
17246
17247
17248                 ;;
17249
17250             HP-UX*)
17251
17252
17253     ac_ext=cpp
17254 ac_cpp='$CXXCPP $CPPFLAGS'
17255 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17256 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17257 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17258
17259     { echo "$as_me:$LINENO: checking whether we are using the HP C++ compiler" >&5
17260 echo $ECHO_N "checking whether we are using the HP C++ compiler... $ECHO_C" >&6; }
17261 if test "${bakefile_cv_cxx_compiler___HP_aCC+set}" = set; then
17262   echo $ECHO_N "(cached) $ECHO_C" >&6
17263 else
17264   cat >conftest.$ac_ext <<_ACEOF
17265 /* confdefs.h.  */
17266 _ACEOF
17267 cat confdefs.h >>conftest.$ac_ext
17268 cat >>conftest.$ac_ext <<_ACEOF
17269 /* end confdefs.h.  */
17270
17271 int
17272 main ()
17273 {
17274
17275              #ifndef __HP_aCC
17276                 choke me
17277              #endif
17278
17279   ;
17280   return 0;
17281 }
17282 _ACEOF
17283 rm -f conftest.$ac_objext
17284 if { (ac_try="$ac_compile"
17285 case "(($ac_try" in
17286   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17287   *) ac_try_echo=$ac_try;;
17288 esac
17289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17290   (eval "$ac_compile") 2>conftest.er1
17291   ac_status=$?
17292   grep -v '^ *+' conftest.er1 >conftest.err
17293   rm -f conftest.er1
17294   cat conftest.err >&5
17295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17296   (exit $ac_status); } && {
17297          test -z "$ac_cxx_werror_flag" ||
17298          test ! -s conftest.err
17299        } && test -s conftest.$ac_objext; then
17300   bakefile_cv_cxx_compiler___HP_aCC=yes
17301 else
17302   echo "$as_me: failed program was:" >&5
17303 sed 's/^/| /' conftest.$ac_ext >&5
17304
17305         bakefile_cv_cxx_compiler___HP_aCC=no
17306
17307 fi
17308
17309 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17310
17311
17312 fi
17313 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___HP_aCC" >&5
17314 echo "${ECHO_T}$bakefile_cv_cxx_compiler___HP_aCC" >&6; }
17315     if test "x$bakefile_cv_cxx_compiler___HP_aCC" = "xyes"; then
17316         :; HPCXX=yes
17317     else
17318         :;
17319     fi
17320     ac_ext=c
17321 ac_cpp='$CPP $CPPFLAGS'
17322 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17323 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17324 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17325
17326
17327
17328                 ;;
17329
17330             OSF1)
17331
17332
17333     ac_ext=cpp
17334 ac_cpp='$CXXCPP $CPPFLAGS'
17335 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17336 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17337 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17338
17339     { echo "$as_me:$LINENO: checking whether we are using the Compaq C++ compiler" >&5
17340 echo $ECHO_N "checking whether we are using the Compaq C++ compiler... $ECHO_C" >&6; }
17341 if test "${bakefile_cv_cxx_compiler___DECCXX+set}" = set; then
17342   echo $ECHO_N "(cached) $ECHO_C" >&6
17343 else
17344   cat >conftest.$ac_ext <<_ACEOF
17345 /* confdefs.h.  */
17346 _ACEOF
17347 cat confdefs.h >>conftest.$ac_ext
17348 cat >>conftest.$ac_ext <<_ACEOF
17349 /* end confdefs.h.  */
17350
17351 int
17352 main ()
17353 {
17354
17355              #ifndef __DECCXX
17356                 choke me
17357              #endif
17358
17359   ;
17360   return 0;
17361 }
17362 _ACEOF
17363 rm -f conftest.$ac_objext
17364 if { (ac_try="$ac_compile"
17365 case "(($ac_try" in
17366   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17367   *) ac_try_echo=$ac_try;;
17368 esac
17369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17370   (eval "$ac_compile") 2>conftest.er1
17371   ac_status=$?
17372   grep -v '^ *+' conftest.er1 >conftest.err
17373   rm -f conftest.er1
17374   cat conftest.err >&5
17375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17376   (exit $ac_status); } && {
17377          test -z "$ac_cxx_werror_flag" ||
17378          test ! -s conftest.err
17379        } && test -s conftest.$ac_objext; then
17380   bakefile_cv_cxx_compiler___DECCXX=yes
17381 else
17382   echo "$as_me: failed program was:" >&5
17383 sed 's/^/| /' conftest.$ac_ext >&5
17384
17385         bakefile_cv_cxx_compiler___DECCXX=no
17386
17387 fi
17388
17389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17390
17391
17392 fi
17393 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___DECCXX" >&5
17394 echo "${ECHO_T}$bakefile_cv_cxx_compiler___DECCXX" >&6; }
17395     if test "x$bakefile_cv_cxx_compiler___DECCXX" = "xyes"; then
17396         :; COMPAQCXX=yes
17397     else
17398         :;
17399     fi
17400     ac_ext=c
17401 ac_cpp='$CPP $CPPFLAGS'
17402 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17403 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17404 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17405
17406
17407
17408                 ;;
17409
17410             SunOS)
17411
17412
17413     ac_ext=cpp
17414 ac_cpp='$CXXCPP $CPPFLAGS'
17415 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17416 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17417 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17418
17419     { echo "$as_me:$LINENO: checking whether we are using the Sun C++ compiler" >&5
17420 echo $ECHO_N "checking whether we are using the Sun C++ compiler... $ECHO_C" >&6; }
17421 if test "${bakefile_cv_cxx_compiler___SUNPRO_CC+set}" = set; then
17422   echo $ECHO_N "(cached) $ECHO_C" >&6
17423 else
17424   cat >conftest.$ac_ext <<_ACEOF
17425 /* confdefs.h.  */
17426 _ACEOF
17427 cat confdefs.h >>conftest.$ac_ext
17428 cat >>conftest.$ac_ext <<_ACEOF
17429 /* end confdefs.h.  */
17430
17431 int
17432 main ()
17433 {
17434
17435              #ifndef __SUNPRO_CC
17436                 choke me
17437              #endif
17438
17439   ;
17440   return 0;
17441 }
17442 _ACEOF
17443 rm -f conftest.$ac_objext
17444 if { (ac_try="$ac_compile"
17445 case "(($ac_try" in
17446   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17447   *) ac_try_echo=$ac_try;;
17448 esac
17449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17450   (eval "$ac_compile") 2>conftest.er1
17451   ac_status=$?
17452   grep -v '^ *+' conftest.er1 >conftest.err
17453   rm -f conftest.er1
17454   cat conftest.err >&5
17455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17456   (exit $ac_status); } && {
17457          test -z "$ac_cxx_werror_flag" ||
17458          test ! -s conftest.err
17459        } && test -s conftest.$ac_objext; then
17460   bakefile_cv_cxx_compiler___SUNPRO_CC=yes
17461 else
17462   echo "$as_me: failed program was:" >&5
17463 sed 's/^/| /' conftest.$ac_ext >&5
17464
17465         bakefile_cv_cxx_compiler___SUNPRO_CC=no
17466
17467 fi
17468
17469 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17470
17471
17472 fi
17473 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___SUNPRO_CC" >&5
17474 echo "${ECHO_T}$bakefile_cv_cxx_compiler___SUNPRO_CC" >&6; }
17475     if test "x$bakefile_cv_cxx_compiler___SUNPRO_CC" = "xyes"; then
17476         :; SUNCXX=yes
17477     else
17478         :;
17479     fi
17480     ac_ext=c
17481 ac_cpp='$CPP $CPPFLAGS'
17482 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17483 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17484 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17485
17486
17487
17488                 ;;
17489         esac
17490     fi
17491
17492
17493
17494 if test "$CXX" = "g++" -a "$GXX" != "yes"; then
17495     { { echo "$as_me:$LINENO: error: C++ compiler is needed to build wxWidgets" >&5
17496 echo "$as_me: error: C++ compiler is needed to build wxWidgets" >&2;}
17497    { (exit 1); exit 1; }; }
17498 fi
17499
17500 if test "x$SUNCXX" != xyes; then
17501     if test -n "$ac_tool_prefix"; then
17502   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
17503 set dummy ${ac_tool_prefix}ar; ac_word=$2
17504 { echo "$as_me:$LINENO: checking for $ac_word" >&5
17505 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
17506 if test "${ac_cv_prog_AR+set}" = set; then
17507   echo $ECHO_N "(cached) $ECHO_C" >&6
17508 else
17509   if test -n "$AR"; then
17510   ac_cv_prog_AR="$AR" # Let the user override the test.
17511 else
17512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17513 for as_dir in $PATH
17514 do
17515   IFS=$as_save_IFS
17516   test -z "$as_dir" && as_dir=.
17517   for ac_exec_ext in '' $ac_executable_extensions; do
17518   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17519     ac_cv_prog_AR="${ac_tool_prefix}ar"
17520     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17521     break 2
17522   fi
17523 done
17524 done
17525 IFS=$as_save_IFS
17526
17527 fi
17528 fi
17529 AR=$ac_cv_prog_AR
17530 if test -n "$AR"; then
17531   { echo "$as_me:$LINENO: result: $AR" >&5
17532 echo "${ECHO_T}$AR" >&6; }
17533 else
17534   { echo "$as_me:$LINENO: result: no" >&5
17535 echo "${ECHO_T}no" >&6; }
17536 fi
17537
17538
17539 fi
17540 if test -z "$ac_cv_prog_AR"; then
17541   ac_ct_AR=$AR
17542   # Extract the first word of "ar", so it can be a program name with args.
17543 set dummy ar; ac_word=$2
17544 { echo "$as_me:$LINENO: checking for $ac_word" >&5
17545 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
17546 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
17547   echo $ECHO_N "(cached) $ECHO_C" >&6
17548 else
17549   if test -n "$ac_ct_AR"; then
17550   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
17551 else
17552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17553 for as_dir in $PATH
17554 do
17555   IFS=$as_save_IFS
17556   test -z "$as_dir" && as_dir=.
17557   for ac_exec_ext in '' $ac_executable_extensions; do
17558   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17559     ac_cv_prog_ac_ct_AR="ar"
17560     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17561     break 2
17562   fi
17563 done
17564 done
17565 IFS=$as_save_IFS
17566
17567 fi
17568 fi
17569 ac_ct_AR=$ac_cv_prog_ac_ct_AR
17570 if test -n "$ac_ct_AR"; then
17571   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
17572 echo "${ECHO_T}$ac_ct_AR" >&6; }
17573 else
17574   { echo "$as_me:$LINENO: result: no" >&5
17575 echo "${ECHO_T}no" >&6; }
17576 fi
17577
17578   if test "x$ac_ct_AR" = x; then
17579     AR=""
17580   else
17581     case $cross_compiling:$ac_tool_warned in
17582 yes:)
17583 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
17584 whose name does not start with the host triplet.  If you think this
17585 configuration is useful to you, please write to autoconf@gnu.org." >&5
17586 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
17587 whose name does not start with the host triplet.  If you think this
17588 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
17589 ac_tool_warned=yes ;;
17590 esac
17591     AR=$ac_ct_AR
17592   fi
17593 else
17594   AR="$ac_cv_prog_AR"
17595 fi
17596
17597     if test "x$AR" = "x" ; then
17598         { { echo "$as_me:$LINENO: error: ar is needed to build wxWidgets" >&5
17599 echo "$as_me: error: ar is needed to build wxWidgets" >&2;}
17600    { (exit 1); exit 1; }; }
17601     fi
17602 fi
17603
17604 retest_macosx_linking=no
17605
17606 #if test "$wxUSE_MAC" = 1; then
17607     if test "x$wxUSE_UNIVERSAL_BINARY" != xno ; then
17608                         if test "x$wxUSE_UNIVERSAL_BINARY" == xyes; then
17609             # Implicitly turn on the new --with-macosx-sdk using the default
17610             # SDK which provides the behavior this option has always had.
17611             if test "x$wxUSE_MACOSX_SDK" = "x"; then
17612                 { echo "$as_me:$LINENO: WARNING: Enabling default SDK due to --enable-universal_binary." >&5
17613 echo "$as_me: WARNING: Enabling default SDK due to --enable-universal_binary." >&2;}
17614                 { echo "$as_me:$LINENO: WARNING: If you don't want this, specify --without-macosx-sdk" >&5
17615 echo "$as_me: WARNING: If you don't want this, specify --without-macosx-sdk" >&2;}
17616                 wxUSE_MACOSX_SDK=yes
17617             fi
17618         else
17619             # Complain to user if he specified an argument to --enable-universal_binary
17620             # and also 1) specified --with-macosx-sdk using the default (yes) or
17621             # 2) specified --with-macosx-sdk using a path or 3) specified
17622             # --without-macosx-sdk (no).
17623             if test "x$wxUSE_MACOSX_SDK" != "x" ; then
17624                 { { echo "$as_me:$LINENO: error: Please specify the new --with-macosx-sdk=PATH and do not specify an arg to --enable-universal_binary
17625 See \`config.log' for more details." >&5
17626 echo "$as_me: error: Please specify the new --with-macosx-sdk=PATH and do not specify an arg to --enable-universal_binary
17627 See \`config.log' for more details." >&2;}
17628    { (exit 1); exit 1; }; }
17629             else
17630                 # Put the SDK path into the wxUSE_MACOSX_SDK.  We don't have to
17631                 # special-case the empty string because the below test simply
17632                 # converts "no" to the empty string anyway.
17633                 wxUSE_MACOSX_SDK="$wxUSE_UNIVERSAL_BINARY"
17634                                 { echo "$as_me:$LINENO: WARNING: Please use --with-macosx-sdk=PATH and --enable-universal_binary without an argument" >&5
17635 echo "$as_me: WARNING: Please use --with-macosx-sdk=PATH and --enable-universal_binary without an argument" >&2;}
17636             fi
17637         fi
17638                 OSX_UNIV_OPTS="-arch ppc -arch i386"
17639         CXXFLAGS="$OSX_UNIV_OPTS $CXXFLAGS"
17640         CFLAGS="$OSX_UNIV_OPTS $CFLAGS"
17641         LDFLAGS="$OSX_UNIV_OPTS $LDFLAGS"
17642                                                                                                                 retest_macosx_linking=yes
17643
17644                                         { echo "$as_me:$LINENO: WARNING: Disabling precompiled headers due to universal binary build." >&5
17645 echo "$as_me: WARNING: Disabling precompiled headers due to universal binary build." >&2;}
17646         bk_use_pch=no
17647     fi
17648 #fi
17649
17650 if test "x$wxUSE_MACOSX_SDK" = "xno"; then
17651     wxUSE_MACOSX_SDK=
17652 elif test "x$wxUSE_MACOSX_SDK" = "xyes"; then
17653     # TODO: Search for most recent SDK and use it.
17654     wxUSE_MACOSX_SDK="/Developer/SDKs/MacOSX10.4u.sdk"
17655 fi
17656
17657
17658 if test "x$wxUSE_MACOSX_SDK" != "x"; then
17659     { echo "$as_me:$LINENO: checking for SDK directory $wxUSE_MACOSX_SDK" >&5
17660 echo $ECHO_N "checking for SDK directory $wxUSE_MACOSX_SDK... $ECHO_C" >&6; }
17661     if ! test -d "$wxUSE_MACOSX_SDK"; then
17662         { { echo "$as_me:$LINENO: error: not found
17663 See \`config.log' for more details." >&5
17664 echo "$as_me: error: not found
17665 See \`config.log' for more details." >&2;}
17666    { (exit 1); exit 1; }; }
17667     else
17668         { echo "$as_me:$LINENO: result: exists" >&5
17669 echo "${ECHO_T}exists" >&6; }
17670     fi
17671     MACOSX_SDK_OPTS="-isysroot $wxUSE_MACOSX_SDK"
17672     eval "CC=\"$CC $MACOSX_SDK_OPTS\""
17673     eval "CXX=\"$CXX $MACOSX_SDK_OPTS\""
17674     eval "LD=\"$LD $MACOSX_SDK_OPTS\""
17675     retest_macosx_linking=yes
17676             fi
17677
17678 if test "x$wxUSE_MACOSX_VERSION_MIN" = "xno"; then
17679     wxUSE_MACOSX_VERSION_MIN=
17680 elif test "x$wxUSE_MACOSX_VERSION_MIN" = "xyes"; then
17681     if test "x$wxUSE_MACOSX_SDK" != "x"; then
17682         { echo "$as_me:$LINENO: checking SDK deployment version" >&5
17683 echo $ECHO_N "checking SDK deployment version... $ECHO_C" >&6; }
17684
17685         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/'`
17686
17687         # If that failed, try again with the new key
17688         if test "x$MACOSX_SDK_PLIST_VERSION_MIN" == "x"; then
17689
17690             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/'`
17691
17692         fi
17693
17694         if test "x$MACOSX_SDK_PLIST_VERSION_MIN" != "x"; then
17695             wxUSE_MACOSX_VERSION_MIN=$MACOSX_SDK_PLIST_VERSION_MIN
17696             { echo "$as_me:$LINENO: result: $wxUSE_MACOSX_VERSION_MIN" >&5
17697 echo "${ECHO_T}$wxUSE_MACOSX_VERSION_MIN" >&6; }
17698         else
17699             { echo "$as_me:$LINENO: WARNING: Could not determine deployment target from SDKSettings.plist" >&5
17700 echo "$as_me: WARNING: Could not determine deployment target from SDKSettings.plist" >&2;}
17701             wxUSE_MACOSX_VERSION_MIN=
17702         fi
17703     else
17704         wxUSE_MACOSX_VERSION_MIN=
17705     fi
17706 elif test "x$wxUSE_MACOSX_VERSION_MIN" == "x"; then
17707     # otherwise configure stops on leopard for universal_binary
17708     wxUSE_MACOSX_VERSION_MIN=10.4
17709 fi
17710
17711 if test "x$wxUSE_MACOSX_VERSION_MIN" != "x"; then
17712     MACOSX_VERSION_MIN_OPTS="-mmacosx-version-min=$wxUSE_MACOSX_VERSION_MIN"
17713     eval "CC=\"$CC $MACOSX_VERSION_MIN_OPTS\""
17714     eval "CXX=\"$CXX $MACOSX_VERSION_MIN_OPTS\""
17715     eval "LD=\"$LD $MACOSX_VERSION_MIN_OPTS\""
17716     retest_macosx_linking=yes
17717 fi
17718
17719 if test "x$retest_macosx_linking" = "xyes"; then
17720     ac_ext=c
17721 ac_cpp='$CPP $CPPFLAGS'
17722 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17723 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17724 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17725
17726     { echo "$as_me:$LINENO: checking if C compiler works with SDK/version options" >&5
17727 echo $ECHO_N "checking if C compiler works with SDK/version options... $ECHO_C" >&6; }
17728     cat >conftest.$ac_ext <<_ACEOF
17729 /* confdefs.h.  */
17730 _ACEOF
17731 cat confdefs.h >>conftest.$ac_ext
17732 cat >>conftest.$ac_ext <<_ACEOF
17733 /* end confdefs.h.  */
17734
17735 int
17736 main ()
17737 {
17738
17739   ;
17740   return 0;
17741 }
17742 _ACEOF
17743 rm -f conftest.$ac_objext conftest$ac_exeext
17744 if { (ac_try="$ac_link"
17745 case "(($ac_try" in
17746   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17747   *) ac_try_echo=$ac_try;;
17748 esac
17749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17750   (eval "$ac_link") 2>conftest.er1
17751   ac_status=$?
17752   grep -v '^ *+' conftest.er1 >conftest.err
17753   rm -f conftest.er1
17754   cat conftest.err >&5
17755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17756   (exit $ac_status); } && {
17757          test -z "$ac_c_werror_flag" ||
17758          test ! -s conftest.err
17759        } && test -s conftest$ac_exeext &&
17760        $as_test_x conftest$ac_exeext; then
17761   { echo "$as_me:$LINENO: result: yes" >&5
17762 echo "${ECHO_T}yes" >&6; }
17763 else
17764   echo "$as_me: failed program was:" >&5
17765 sed 's/^/| /' conftest.$ac_ext >&5
17766
17767         { { echo "$as_me:$LINENO: error: no.  Try a different SDK
17768 See \`config.log' for more details." >&5
17769 echo "$as_me: error: no.  Try a different SDK
17770 See \`config.log' for more details." >&2;}
17771    { (exit 1); exit 1; }; }; exit 1
17772 fi
17773
17774 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17775       conftest$ac_exeext conftest.$ac_ext
17776     ac_ext=c
17777 ac_cpp='$CPP $CPPFLAGS'
17778 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17779 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17780 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17781
17782
17783     ac_ext=cpp
17784 ac_cpp='$CXXCPP $CPPFLAGS'
17785 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17786 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17787 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17788
17789     { echo "$as_me:$LINENO: checking if C++ compiler works with SDK/version options" >&5
17790 echo $ECHO_N "checking if C++ compiler works with SDK/version options... $ECHO_C" >&6; }
17791     cat >conftest.$ac_ext <<_ACEOF
17792 /* confdefs.h.  */
17793 _ACEOF
17794 cat confdefs.h >>conftest.$ac_ext
17795 cat >>conftest.$ac_ext <<_ACEOF
17796 /* end confdefs.h.  */
17797
17798 int
17799 main ()
17800 {
17801
17802   ;
17803   return 0;
17804 }
17805 _ACEOF
17806 rm -f conftest.$ac_objext conftest$ac_exeext
17807 if { (ac_try="$ac_link"
17808 case "(($ac_try" in
17809   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17810   *) ac_try_echo=$ac_try;;
17811 esac
17812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17813   (eval "$ac_link") 2>conftest.er1
17814   ac_status=$?
17815   grep -v '^ *+' conftest.er1 >conftest.err
17816   rm -f conftest.er1
17817   cat conftest.err >&5
17818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17819   (exit $ac_status); } && {
17820          test -z "$ac_cxx_werror_flag" ||
17821          test ! -s conftest.err
17822        } && test -s conftest$ac_exeext &&
17823        $as_test_x conftest$ac_exeext; then
17824   { echo "$as_me:$LINENO: result: yes" >&5
17825 echo "${ECHO_T}yes" >&6; }
17826 else
17827   echo "$as_me: failed program was:" >&5
17828 sed 's/^/| /' conftest.$ac_ext >&5
17829
17830         { { echo "$as_me:$LINENO: error: no.  Try a different SDK
17831 See \`config.log' for more details." >&5
17832 echo "$as_me: error: no.  Try a different SDK
17833 See \`config.log' for more details." >&2;}
17834    { (exit 1); exit 1; }; }; exit 1
17835 fi
17836
17837 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17838       conftest$ac_exeext conftest.$ac_ext
17839     ac_ext=c
17840 ac_cpp='$CPP $CPPFLAGS'
17841 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17842 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17843 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17844
17845 fi
17846
17847
17848 case "${host}" in
17849
17850                 *-*-darwin* )
17851         INSTALL_PROGRAM="cp -fp"
17852         INSTALL_DATA="cp -fp"
17853         ;;
17854     *)
17855         ;;
17856 esac
17857
17858
17859 if test "x$XLCXX" = "xyes" -a "x$USE_AIX" = "x1"; then
17860     CXXFLAGS="-qunique $CXXFLAGS"
17861 fi
17862
17863 case "${host}" in
17864   powerpc-*-darwin* )
17865     { echo "$as_me:$LINENO: checking if __POWERPC__ is already defined" >&5
17866 echo $ECHO_N "checking if __POWERPC__ is already defined... $ECHO_C" >&6; }
17867     cat >conftest.$ac_ext <<_ACEOF
17868 /* confdefs.h.  */
17869 _ACEOF
17870 cat confdefs.h >>conftest.$ac_ext
17871 cat >>conftest.$ac_ext <<_ACEOF
17872 /* end confdefs.h.  */
17873
17874 int
17875 main ()
17876 {
17877 #ifndef __POWERPC__
17878         choke me for lack of PowerPC
17879 #endif
17880
17881   ;
17882   return 0;
17883 }
17884 _ACEOF
17885 rm -f conftest.$ac_objext
17886 if { (ac_try="$ac_compile"
17887 case "(($ac_try" in
17888   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17889   *) ac_try_echo=$ac_try;;
17890 esac
17891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17892   (eval "$ac_compile") 2>conftest.er1
17893   ac_status=$?
17894   grep -v '^ *+' conftest.er1 >conftest.err
17895   rm -f conftest.er1
17896   cat conftest.err >&5
17897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17898   (exit $ac_status); } && {
17899          test -z "$ac_c_werror_flag" ||
17900          test ! -s conftest.err
17901        } && test -s conftest.$ac_objext; then
17902   { echo "$as_me:$LINENO: result: yes" >&5
17903 echo "${ECHO_T}yes" >&6; }
17904 else
17905   echo "$as_me: failed program was:" >&5
17906 sed 's/^/| /' conftest.$ac_ext >&5
17907
17908         { echo "$as_me:$LINENO: result: no" >&5
17909 echo "${ECHO_T}no" >&6; }
17910         cat >>confdefs.h <<\_ACEOF
17911 #define __POWERPC__ 1
17912 _ACEOF
17913
17914
17915 fi
17916
17917 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17918   ;;
17919 esac
17920
17921 case "${host}" in
17922   *-*-darwin* )
17923     { echo "$as_me:$LINENO: checking if CoreFoundation/CFBase.h is usable" >&5
17924 echo $ECHO_N "checking if CoreFoundation/CFBase.h is usable... $ECHO_C" >&6; }
17925     cat >conftest.$ac_ext <<_ACEOF
17926 /* confdefs.h.  */
17927 _ACEOF
17928 cat confdefs.h >>conftest.$ac_ext
17929 cat >>conftest.$ac_ext <<_ACEOF
17930 /* end confdefs.h.  */
17931 #include <CoreFoundation/CFBase.h>
17932
17933 int
17934 main ()
17935 {
17936
17937   ;
17938   return 0;
17939 }
17940 _ACEOF
17941 rm -f conftest.$ac_objext
17942 if { (ac_try="$ac_compile"
17943 case "(($ac_try" in
17944   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17945   *) ac_try_echo=$ac_try;;
17946 esac
17947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17948   (eval "$ac_compile") 2>conftest.er1
17949   ac_status=$?
17950   grep -v '^ *+' conftest.er1 >conftest.err
17951   rm -f conftest.er1
17952   cat conftest.err >&5
17953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17954   (exit $ac_status); } && {
17955          test -z "$ac_c_werror_flag" ||
17956          test ! -s conftest.err
17957        } && test -s conftest.$ac_objext; then
17958   { echo "$as_me:$LINENO: result: yes" >&5
17959 echo "${ECHO_T}yes" >&6; }
17960 else
17961   echo "$as_me: failed program was:" >&5
17962 sed 's/^/| /' conftest.$ac_ext >&5
17963
17964         { echo "$as_me:$LINENO: result: no" >&5
17965 echo "${ECHO_T}no" >&6; }
17966         { echo "$as_me:$LINENO: checking if __CF_USE_FRAMEWORK_INCLUDES__ is required" >&5
17967 echo $ECHO_N "checking if __CF_USE_FRAMEWORK_INCLUDES__ is required... $ECHO_C" >&6; }
17968         cat >conftest.$ac_ext <<_ACEOF
17969 /* confdefs.h.  */
17970 _ACEOF
17971 cat confdefs.h >>conftest.$ac_ext
17972 cat >>conftest.$ac_ext <<_ACEOF
17973 /* end confdefs.h.  */
17974 #define __CF_USE_FRAMEWORK_INCLUDES__
17975 #include <CoreFoundation/CFBase.h>
17976
17977 int
17978 main ()
17979 {
17980
17981   ;
17982   return 0;
17983 }
17984 _ACEOF
17985 rm -f conftest.$ac_objext
17986 if { (ac_try="$ac_compile"
17987 case "(($ac_try" in
17988   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17989   *) ac_try_echo=$ac_try;;
17990 esac
17991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17992   (eval "$ac_compile") 2>conftest.er1
17993   ac_status=$?
17994   grep -v '^ *+' conftest.er1 >conftest.err
17995   rm -f conftest.er1
17996   cat conftest.err >&5
17997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17998   (exit $ac_status); } && {
17999          test -z "$ac_c_werror_flag" ||
18000          test ! -s conftest.err
18001        } && test -s conftest.$ac_objext; then
18002   { echo "$as_me:$LINENO: result: yes" >&5
18003 echo "${ECHO_T}yes" >&6; }
18004                         CPPFLAGS="-D__CF_USE_FRAMEWORK_INCLUDES__ $CPPFLAGS"
18005 else
18006   echo "$as_me: failed program was:" >&5
18007 sed 's/^/| /' conftest.$ac_ext >&5
18008
18009         { { echo "$as_me:$LINENO: error: no.  CoreFoundation not available.
18010 See \`config.log' for more details." >&5
18011 echo "$as_me: error: no.  CoreFoundation not available.
18012 See \`config.log' for more details." >&2;}
18013    { (exit 1); exit 1; }; }
18014
18015 fi
18016
18017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18018
18019
18020 fi
18021
18022 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18023   ;;
18024 esac
18025
18026 wants_win32=0
18027 doesnt_want_win32=0
18028 case "${host}" in
18029   *-*-cygwin*)
18030       if test "$wxUSE_MSW" = 1 ; then
18031         wants_win32=1
18032       else
18033                         { echo "$as_me:$LINENO: checking if -mno-cygwin is in effect" >&5
18034 echo $ECHO_N "checking if -mno-cygwin is in effect... $ECHO_C" >&6; }
18035 if test "${wx_cv_nocygwin+set}" = set; then
18036   echo $ECHO_N "(cached) $ECHO_C" >&6
18037 else
18038
18039                 cat >conftest.$ac_ext <<_ACEOF
18040 /* confdefs.h.  */
18041 _ACEOF
18042 cat confdefs.h >>conftest.$ac_ext
18043 cat >>conftest.$ac_ext <<_ACEOF
18044 /* end confdefs.h.  */
18045
18046 int
18047 main ()
18048 {
18049
18050                         #ifdef __MINGW32__
18051                             choke me
18052                         #endif
18053
18054   ;
18055   return 0;
18056 }
18057 _ACEOF
18058 rm -f conftest.$ac_objext
18059 if { (ac_try="$ac_compile"
18060 case "(($ac_try" in
18061   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18062   *) ac_try_echo=$ac_try;;
18063 esac
18064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18065   (eval "$ac_compile") 2>conftest.er1
18066   ac_status=$?
18067   grep -v '^ *+' conftest.er1 >conftest.err
18068   rm -f conftest.er1
18069   cat conftest.err >&5
18070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18071   (exit $ac_status); } && {
18072          test -z "$ac_c_werror_flag" ||
18073          test ! -s conftest.err
18074        } && test -s conftest.$ac_objext; then
18075   wx_cv_nocygwin=no
18076 else
18077   echo "$as_me: failed program was:" >&5
18078 sed 's/^/| /' conftest.$ac_ext >&5
18079
18080         wx_cv_nocygwin=yes
18081
18082 fi
18083
18084 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18085
18086
18087 fi
18088 { echo "$as_me:$LINENO: result: $wx_cv_nocygwin" >&5
18089 echo "${ECHO_T}$wx_cv_nocygwin" >&6; }
18090
18091         if test "$wx_cv_nocygwin" = "yes"; then
18092             wants_win32=1
18093         else
18094             doesnt_want_win32=1
18095         fi
18096       fi
18097       if test "$wants_win32" = 1 ; then
18098         BAKEFILE_FORCE_PLATFORM=win32
18099       fi
18100   ;;
18101   *-*-mingw*)
18102       wants_win32=1
18103   ;;
18104 esac
18105
18106 if test "$wxUSE_WINE" = "yes"; then
18107     wants_win32=1
18108     LDFLAGS_GUI="-mwindows"
18109 fi
18110
18111 if test "$wants_win32" = 1 ; then
18112     USE_UNIX=0
18113     USE_WIN32=1
18114     cat >>confdefs.h <<\_ACEOF
18115 #define __WIN32__ 1
18116 _ACEOF
18117
18118     cat >>confdefs.h <<\_ACEOF
18119 #define __WIN95__ 1
18120 _ACEOF
18121
18122     cat >>confdefs.h <<\_ACEOF
18123 #define __WINDOWS__ 1
18124 _ACEOF
18125
18126     cat >>confdefs.h <<\_ACEOF
18127 #define __GNUWIN32__ 1
18128 _ACEOF
18129
18130     cat >>confdefs.h <<\_ACEOF
18131 #define STRICT 1
18132 _ACEOF
18133
18134 fi
18135 if test "$doesnt_want_win32" = 1 ; then
18136     USE_UNIX=1
18137     USE_WIN32=0
18138 fi
18139
18140 if test "$USE_UNIX" = 1 ; then
18141     wxUSE_UNIX=yes
18142     cat >>confdefs.h <<\_ACEOF
18143 #define __UNIX__ 1
18144 _ACEOF
18145
18146 fi
18147
18148 case "${host}" in
18149   *-pc-os2_emx | *-pc-os2-emx )
18150                                                       if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then
18151                               { echo "$as_me:$LINENO: checking for drand48 in -lcExt" >&5
18152 echo $ECHO_N "checking for drand48 in -lcExt... $ECHO_C" >&6; }
18153 if test "${ac_cv_lib_cExt_drand48+set}" = set; then
18154   echo $ECHO_N "(cached) $ECHO_C" >&6
18155 else
18156   ac_check_lib_save_LIBS=$LIBS
18157 LIBS="-lcExt  $LIBS"
18158 cat >conftest.$ac_ext <<_ACEOF
18159 /* confdefs.h.  */
18160 _ACEOF
18161 cat confdefs.h >>conftest.$ac_ext
18162 cat >>conftest.$ac_ext <<_ACEOF
18163 /* end confdefs.h.  */
18164
18165 /* Override any GCC internal prototype to avoid an error.
18166    Use char because int might match the return type of a GCC
18167    builtin and then its argument prototype would still apply.  */
18168 #ifdef __cplusplus
18169 extern "C"
18170 #endif
18171 char drand48 ();
18172 int
18173 main ()
18174 {
18175 return drand48 ();
18176   ;
18177   return 0;
18178 }
18179 _ACEOF
18180 rm -f conftest.$ac_objext conftest$ac_exeext
18181 if { (ac_try="$ac_link"
18182 case "(($ac_try" in
18183   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18184   *) ac_try_echo=$ac_try;;
18185 esac
18186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18187   (eval "$ac_link") 2>conftest.er1
18188   ac_status=$?
18189   grep -v '^ *+' conftest.er1 >conftest.err
18190   rm -f conftest.er1
18191   cat conftest.err >&5
18192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18193   (exit $ac_status); } && {
18194          test -z "$ac_c_werror_flag" ||
18195          test ! -s conftest.err
18196        } && test -s conftest$ac_exeext &&
18197        $as_test_x conftest$ac_exeext; then
18198   ac_cv_lib_cExt_drand48=yes
18199 else
18200   echo "$as_me: failed program was:" >&5
18201 sed 's/^/| /' conftest.$ac_ext >&5
18202
18203         ac_cv_lib_cExt_drand48=no
18204 fi
18205
18206 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18207       conftest$ac_exeext conftest.$ac_ext
18208 LIBS=$ac_check_lib_save_LIBS
18209 fi
18210 { echo "$as_me:$LINENO: result: $ac_cv_lib_cExt_drand48" >&5
18211 echo "${ECHO_T}$ac_cv_lib_cExt_drand48" >&6; }
18212 if test $ac_cv_lib_cExt_drand48 = yes; then
18213   LIBS="$LIBS -lcExt"
18214 fi
18215
18216       else
18217                     RESPROGRAMOBJ="\${top_srcdir}/include/wx/os2/wx.res"
18218       fi
18219                                     { echo "$as_me:$LINENO: checking for gcc/libc version" >&5
18220 echo $ECHO_N "checking for gcc/libc version... $ECHO_C" >&6; }
18221 if test "${wx_cv_gccversion+set}" = set; then
18222   echo $ECHO_N "(cached) $ECHO_C" >&6
18223 else
18224
18225           if test "$cross_compiling" = yes; then
18226                 wx_cv_gccversion="EMX2"
18227
18228 else
18229   cat >conftest.$ac_ext <<_ACEOF
18230 /* confdefs.h.  */
18231 _ACEOF
18232 cat confdefs.h >>conftest.$ac_ext
18233 cat >>conftest.$ac_ext <<_ACEOF
18234 /* end confdefs.h.  */
18235
18236                   #include <stdio.h>
18237
18238                   int main()
18239                   {
18240                       FILE *f=fopen("conftestval", "w");
18241                       if (!f) exit(1);
18242                       fprintf(f,
18243                   #if (__GNUC__ < 3)
18244                               "EMX2"
18245                   #elif (__GNUC__==3) && ((__GNUC_MINOR__ < 2) || ((__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__<2)))
18246                               "EMX3"
18247                   #elif (__GNUC__==3) && (__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__==2)
18248                               "Innotek5"
18249                   #else
18250                               "Innotek6"
18251                   #endif
18252                       );
18253                       exit(0);
18254                   }
18255
18256 _ACEOF
18257 rm -f conftest$ac_exeext
18258 if { (ac_try="$ac_link"
18259 case "(($ac_try" in
18260   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18261   *) ac_try_echo=$ac_try;;
18262 esac
18263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18264   (eval "$ac_link") 2>&5
18265   ac_status=$?
18266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18267   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18268   { (case "(($ac_try" in
18269   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18270   *) ac_try_echo=$ac_try;;
18271 esac
18272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18273   (eval "$ac_try") 2>&5
18274   ac_status=$?
18275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18276   (exit $ac_status); }; }; then
18277   wx_cv_gccversion=`cat conftestval`
18278 else
18279   echo "$as_me: program exited with status $ac_status" >&5
18280 echo "$as_me: failed program was:" >&5
18281 sed 's/^/| /' conftest.$ac_ext >&5
18282
18283 ( exit $ac_status )
18284 wx_cv_gccversion="EMX2"
18285 fi
18286 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18287 fi
18288
18289
18290
18291 fi
18292 { echo "$as_me:$LINENO: result: $wx_cv_gccversion" >&5
18293 echo "${ECHO_T}$wx_cv_gccversion" >&6; }
18294       if test "$wx_cv_gccversion" = "EMX2"; then
18295           LIBS="$LIBS -lstdcpp"
18296           LDFLAGS="$LDFLAGS -Zsysv-signals"
18297       else
18298           if test "$wx_cv_gccversion" = "EMX3"; then
18299               LIBS="$LIBS -lstdcxx -lgcc"
18300               LDFLAGS="$LDFLAGS -Zsysv-signals"
18301           else
18302               LIBS="$LIBS -lstdc++"
18303           fi
18304       fi
18305       if test "$wxUSE_SHARED" = "yes" -a "$wxUSE_OMF" = "no"; then
18306         { echo "$as_me:$LINENO: WARNING: Building DLLs requires OMF mode, enabled" >&5
18307 echo "$as_me: WARNING: Building DLLs requires OMF mode, enabled" >&2;}
18308         wxUSE_OMF=yes
18309         enable_omf=yes
18310       fi
18311         ;;
18312   *)
18313
18314       { echo "$as_me:$LINENO: checking for strcasecmp() in string.h" >&5
18315 echo $ECHO_N "checking for strcasecmp() in string.h... $ECHO_C" >&6; }
18316 if test "${ac_cv_string_strcasecmp+set}" = set; then
18317   echo $ECHO_N "(cached) $ECHO_C" >&6
18318 else
18319
18320           cat >conftest.$ac_ext <<_ACEOF
18321 /* confdefs.h.  */
18322 _ACEOF
18323 cat confdefs.h >>conftest.$ac_ext
18324 cat >>conftest.$ac_ext <<_ACEOF
18325 /* end confdefs.h.  */
18326
18327               #include <string.h>
18328
18329 int
18330 main ()
18331 {
18332
18333                   strcasecmp("foo", "bar");
18334
18335   ;
18336   return 0;
18337 }
18338 _ACEOF
18339 rm -f conftest.$ac_objext conftest$ac_exeext
18340 if { (ac_try="$ac_link"
18341 case "(($ac_try" in
18342   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18343   *) ac_try_echo=$ac_try;;
18344 esac
18345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18346   (eval "$ac_link") 2>conftest.er1
18347   ac_status=$?
18348   grep -v '^ *+' conftest.er1 >conftest.err
18349   rm -f conftest.er1
18350   cat conftest.err >&5
18351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18352   (exit $ac_status); } && {
18353          test -z "$ac_c_werror_flag" ||
18354          test ! -s conftest.err
18355        } && test -s conftest$ac_exeext &&
18356        $as_test_x conftest$ac_exeext; then
18357   ac_cv_string_strcasecmp=yes
18358 else
18359   echo "$as_me: failed program was:" >&5
18360 sed 's/^/| /' conftest.$ac_ext >&5
18361
18362         ac_cv_string_strcasecmp=no
18363
18364 fi
18365
18366 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18367       conftest$ac_exeext conftest.$ac_ext
18368
18369 fi
18370 { echo "$as_me:$LINENO: result: $ac_cv_string_strcasecmp" >&5
18371 echo "${ECHO_T}$ac_cv_string_strcasecmp" >&6; }
18372
18373       if test x"$ac_cv_string_strcasecmp" = "xyes"; then
18374           cat >>confdefs.h <<\_ACEOF
18375 #define HAVE_STRCASECMP_IN_STRING_H 1
18376 _ACEOF
18377
18378       else
18379           { echo "$as_me:$LINENO: checking for strcasecmp() in strings.h" >&5
18380 echo $ECHO_N "checking for strcasecmp() in strings.h... $ECHO_C" >&6; }
18381 if test "${ac_cv_strings_strcasecmp+set}" = set; then
18382   echo $ECHO_N "(cached) $ECHO_C" >&6
18383 else
18384
18385               cat >conftest.$ac_ext <<_ACEOF
18386 /* confdefs.h.  */
18387 _ACEOF
18388 cat confdefs.h >>conftest.$ac_ext
18389 cat >>conftest.$ac_ext <<_ACEOF
18390 /* end confdefs.h.  */
18391
18392                   #include <strings.h>
18393
18394 int
18395 main ()
18396 {
18397
18398                       strcasecmp("foo", "bar");
18399
18400   ;
18401   return 0;
18402 }
18403 _ACEOF
18404 rm -f conftest.$ac_objext conftest$ac_exeext
18405 if { (ac_try="$ac_link"
18406 case "(($ac_try" in
18407   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18408   *) ac_try_echo=$ac_try;;
18409 esac
18410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18411   (eval "$ac_link") 2>conftest.er1
18412   ac_status=$?
18413   grep -v '^ *+' conftest.er1 >conftest.err
18414   rm -f conftest.er1
18415   cat conftest.err >&5
18416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18417   (exit $ac_status); } && {
18418          test -z "$ac_c_werror_flag" ||
18419          test ! -s conftest.err
18420        } && test -s conftest$ac_exeext &&
18421        $as_test_x conftest$ac_exeext; then
18422   ac_cv_strings_strcasecmp=yes
18423 else
18424   echo "$as_me: failed program was:" >&5
18425 sed 's/^/| /' conftest.$ac_ext >&5
18426
18427         ac_cv_strings_strcasecmp=no
18428
18429 fi
18430
18431 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18432       conftest$ac_exeext conftest.$ac_ext
18433
18434 fi
18435 { echo "$as_me:$LINENO: result: $ac_cv_strings_strcasecmp" >&5
18436 echo "${ECHO_T}$ac_cv_strings_strcasecmp" >&6; }
18437
18438           if test x"$ac_cv_strings_strcasecmp" = "xyes"; then
18439               cat >>confdefs.h <<\_ACEOF
18440 #define HAVE_STRCASECMP_IN_STRINGS_H 1
18441 _ACEOF
18442
18443           else
18444               { { echo "$as_me:$LINENO: error: No case-insensitive string comparison function found." >&5
18445 echo "$as_me: error: No case-insensitive string comparison function found." >&2;}
18446    { (exit 1); exit 1; }; }
18447           fi
18448       fi
18449
18450         ;;
18451 esac
18452
18453
18454 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
18455 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
18456 if test "${ac_cv_header_stdc+set}" = set; then
18457   echo $ECHO_N "(cached) $ECHO_C" >&6
18458 else
18459   cat >conftest.$ac_ext <<_ACEOF
18460 /* confdefs.h.  */
18461 _ACEOF
18462 cat confdefs.h >>conftest.$ac_ext
18463 cat >>conftest.$ac_ext <<_ACEOF
18464 /* end confdefs.h.  */
18465 #include <stdlib.h>
18466 #include <stdarg.h>
18467 #include <string.h>
18468 #include <float.h>
18469
18470 int
18471 main ()
18472 {
18473
18474   ;
18475   return 0;
18476 }
18477 _ACEOF
18478 rm -f conftest.$ac_objext
18479 if { (ac_try="$ac_compile"
18480 case "(($ac_try" in
18481   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18482   *) ac_try_echo=$ac_try;;
18483 esac
18484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18485   (eval "$ac_compile") 2>conftest.er1
18486   ac_status=$?
18487   grep -v '^ *+' conftest.er1 >conftest.err
18488   rm -f conftest.er1
18489   cat conftest.err >&5
18490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18491   (exit $ac_status); } && {
18492          test -z "$ac_c_werror_flag" ||
18493          test ! -s conftest.err
18494        } && test -s conftest.$ac_objext; then
18495   ac_cv_header_stdc=yes
18496 else
18497   echo "$as_me: failed program was:" >&5
18498 sed 's/^/| /' conftest.$ac_ext >&5
18499
18500         ac_cv_header_stdc=no
18501 fi
18502
18503 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18504
18505 if test $ac_cv_header_stdc = yes; then
18506   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
18507   cat >conftest.$ac_ext <<_ACEOF
18508 /* confdefs.h.  */
18509 _ACEOF
18510 cat confdefs.h >>conftest.$ac_ext
18511 cat >>conftest.$ac_ext <<_ACEOF
18512 /* end confdefs.h.  */
18513 #include <string.h>
18514
18515 _ACEOF
18516 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18517   $EGREP "memchr" >/dev/null 2>&1; then
18518   :
18519 else
18520   ac_cv_header_stdc=no
18521 fi
18522 rm -f conftest*
18523
18524 fi
18525
18526 if test $ac_cv_header_stdc = yes; then
18527   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
18528   cat >conftest.$ac_ext <<_ACEOF
18529 /* confdefs.h.  */
18530 _ACEOF
18531 cat confdefs.h >>conftest.$ac_ext
18532 cat >>conftest.$ac_ext <<_ACEOF
18533 /* end confdefs.h.  */
18534 #include <stdlib.h>
18535
18536 _ACEOF
18537 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18538   $EGREP "free" >/dev/null 2>&1; then
18539   :
18540 else
18541   ac_cv_header_stdc=no
18542 fi
18543 rm -f conftest*
18544
18545 fi
18546
18547 if test $ac_cv_header_stdc = yes; then
18548   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
18549   if test "$cross_compiling" = yes; then
18550   :
18551 else
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 #include <ctype.h>
18559 #include <stdlib.h>
18560 #if ((' ' & 0x0FF) == 0x020)
18561 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
18562 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
18563 #else
18564 # define ISLOWER(c) \
18565                    (('a' <= (c) && (c) <= 'i') \
18566                      || ('j' <= (c) && (c) <= 'r') \
18567                      || ('s' <= (c) && (c) <= 'z'))
18568 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
18569 #endif
18570
18571 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
18572 int
18573 main ()
18574 {
18575   int i;
18576   for (i = 0; i < 256; i++)
18577     if (XOR (islower (i), ISLOWER (i))
18578         || toupper (i) != TOUPPER (i))
18579       return 2;
18580   return 0;
18581 }
18582 _ACEOF
18583 rm -f conftest$ac_exeext
18584 if { (ac_try="$ac_link"
18585 case "(($ac_try" in
18586   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18587   *) ac_try_echo=$ac_try;;
18588 esac
18589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18590   (eval "$ac_link") 2>&5
18591   ac_status=$?
18592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18593   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18594   { (case "(($ac_try" in
18595   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18596   *) ac_try_echo=$ac_try;;
18597 esac
18598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18599   (eval "$ac_try") 2>&5
18600   ac_status=$?
18601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18602   (exit $ac_status); }; }; then
18603   :
18604 else
18605   echo "$as_me: program exited with status $ac_status" >&5
18606 echo "$as_me: failed program was:" >&5
18607 sed 's/^/| /' conftest.$ac_ext >&5
18608
18609 ( exit $ac_status )
18610 ac_cv_header_stdc=no
18611 fi
18612 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18613 fi
18614
18615
18616 fi
18617 fi
18618 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
18619 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
18620 if test $ac_cv_header_stdc = yes; then
18621
18622 cat >>confdefs.h <<\_ACEOF
18623 #define STDC_HEADERS 1
18624 _ACEOF
18625
18626 fi
18627
18628 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
18629
18630
18631
18632
18633
18634
18635
18636
18637
18638 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
18639                   inttypes.h stdint.h unistd.h
18640 do
18641 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18642 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18643 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18644 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18645   echo $ECHO_N "(cached) $ECHO_C" >&6
18646 else
18647   cat >conftest.$ac_ext <<_ACEOF
18648 /* confdefs.h.  */
18649 _ACEOF
18650 cat confdefs.h >>conftest.$ac_ext
18651 cat >>conftest.$ac_ext <<_ACEOF
18652 /* end confdefs.h.  */
18653 $ac_includes_default
18654
18655 #include <$ac_header>
18656 _ACEOF
18657 rm -f conftest.$ac_objext
18658 if { (ac_try="$ac_compile"
18659 case "(($ac_try" in
18660   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18661   *) ac_try_echo=$ac_try;;
18662 esac
18663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18664   (eval "$ac_compile") 2>conftest.er1
18665   ac_status=$?
18666   grep -v '^ *+' conftest.er1 >conftest.err
18667   rm -f conftest.er1
18668   cat conftest.err >&5
18669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18670   (exit $ac_status); } && {
18671          test -z "$ac_c_werror_flag" ||
18672          test ! -s conftest.err
18673        } && test -s conftest.$ac_objext; then
18674   eval "$as_ac_Header=yes"
18675 else
18676   echo "$as_me: failed program was:" >&5
18677 sed 's/^/| /' conftest.$ac_ext >&5
18678
18679         eval "$as_ac_Header=no"
18680 fi
18681
18682 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18683 fi
18684 ac_res=`eval echo '${'$as_ac_Header'}'`
18685                { echo "$as_me:$LINENO: result: $ac_res" >&5
18686 echo "${ECHO_T}$ac_res" >&6; }
18687 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18688   cat >>confdefs.h <<_ACEOF
18689 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18690 _ACEOF
18691
18692 fi
18693
18694 done
18695
18696
18697
18698
18699 for ac_header in langinfo.h wchar.h
18700 do
18701 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18702 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18703 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18704 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18705   echo $ECHO_N "(cached) $ECHO_C" >&6
18706 else
18707   cat >conftest.$ac_ext <<_ACEOF
18708 /* confdefs.h.  */
18709 _ACEOF
18710 cat confdefs.h >>conftest.$ac_ext
18711 cat >>conftest.$ac_ext <<_ACEOF
18712 /* end confdefs.h.  */
18713 $ac_includes_default
18714
18715 #include <$ac_header>
18716 _ACEOF
18717 rm -f conftest.$ac_objext
18718 if { (ac_try="$ac_compile"
18719 case "(($ac_try" in
18720   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18721   *) ac_try_echo=$ac_try;;
18722 esac
18723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18724   (eval "$ac_compile") 2>conftest.er1
18725   ac_status=$?
18726   grep -v '^ *+' conftest.er1 >conftest.err
18727   rm -f conftest.er1
18728   cat conftest.err >&5
18729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18730   (exit $ac_status); } && {
18731          test -z "$ac_c_werror_flag" ||
18732          test ! -s conftest.err
18733        } && test -s conftest.$ac_objext; then
18734   eval "$as_ac_Header=yes"
18735 else
18736   echo "$as_me: failed program was:" >&5
18737 sed 's/^/| /' conftest.$ac_ext >&5
18738
18739         eval "$as_ac_Header=no"
18740 fi
18741
18742 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18743 fi
18744 ac_res=`eval echo '${'$as_ac_Header'}'`
18745                { echo "$as_me:$LINENO: result: $ac_res" >&5
18746 echo "${ECHO_T}$ac_res" >&6; }
18747 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18748   cat >>confdefs.h <<_ACEOF
18749 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18750 _ACEOF
18751
18752 fi
18753
18754 done
18755
18756
18757 if test "$ac_cv_header_wchar_h" != "yes"; then
18758
18759 for ac_header in wcstr.h
18760 do
18761 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18762 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18763 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18764 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18765   echo $ECHO_N "(cached) $ECHO_C" >&6
18766 else
18767   cat >conftest.$ac_ext <<_ACEOF
18768 /* confdefs.h.  */
18769 _ACEOF
18770 cat confdefs.h >>conftest.$ac_ext
18771 cat >>conftest.$ac_ext <<_ACEOF
18772 /* end confdefs.h.  */
18773 $ac_includes_default
18774
18775 #include <$ac_header>
18776 _ACEOF
18777 rm -f conftest.$ac_objext
18778 if { (ac_try="$ac_compile"
18779 case "(($ac_try" in
18780   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18781   *) ac_try_echo=$ac_try;;
18782 esac
18783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18784   (eval "$ac_compile") 2>conftest.er1
18785   ac_status=$?
18786   grep -v '^ *+' conftest.er1 >conftest.err
18787   rm -f conftest.er1
18788   cat conftest.err >&5
18789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18790   (exit $ac_status); } && {
18791          test -z "$ac_c_werror_flag" ||
18792          test ! -s conftest.err
18793        } && test -s conftest.$ac_objext; then
18794   eval "$as_ac_Header=yes"
18795 else
18796   echo "$as_me: failed program was:" >&5
18797 sed 's/^/| /' conftest.$ac_ext >&5
18798
18799         eval "$as_ac_Header=no"
18800 fi
18801
18802 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18803 fi
18804 ac_res=`eval echo '${'$as_ac_Header'}'`
18805                { echo "$as_me:$LINENO: result: $ac_res" >&5
18806 echo "${ECHO_T}$ac_res" >&6; }
18807 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18808   cat >>confdefs.h <<_ACEOF
18809 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18810 _ACEOF
18811
18812 fi
18813
18814 done
18815
18816 fi
18817
18818 case "${host}" in
18819   *-pc-os2_emx | *-pc-os2-emx )
18820                   if test $ac_cv_header_langinfo_h = "yes" \
18821                 -a \(   "$wx_cv_gccversion" = "EMX2" \
18822                      -o "$wx_cv_gccversion" = "EMX3" \
18823                      -o "$wx_cv_gccversion" = "Innotek5" \); then
18824           LIBS="$LIBS -lintl"
18825       fi
18826   ;;
18827 esac
18828
18829 if test "$USE_UNIX" = 1 ; then
18830
18831 for ac_header in sys/select.h
18832 do
18833 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18834 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18835 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18836 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18837   echo $ECHO_N "(cached) $ECHO_C" >&6
18838 else
18839   cat >conftest.$ac_ext <<_ACEOF
18840 /* confdefs.h.  */
18841 _ACEOF
18842 cat confdefs.h >>conftest.$ac_ext
18843 cat >>conftest.$ac_ext <<_ACEOF
18844 /* end confdefs.h.  */
18845 $ac_includes_default
18846
18847 #include <$ac_header>
18848 _ACEOF
18849 rm -f conftest.$ac_objext
18850 if { (ac_try="$ac_compile"
18851 case "(($ac_try" in
18852   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18853   *) ac_try_echo=$ac_try;;
18854 esac
18855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18856   (eval "$ac_compile") 2>conftest.er1
18857   ac_status=$?
18858   grep -v '^ *+' conftest.er1 >conftest.err
18859   rm -f conftest.er1
18860   cat conftest.err >&5
18861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18862   (exit $ac_status); } && {
18863          test -z "$ac_c_werror_flag" ||
18864          test ! -s conftest.err
18865        } && test -s conftest.$ac_objext; then
18866   eval "$as_ac_Header=yes"
18867 else
18868   echo "$as_me: failed program was:" >&5
18869 sed 's/^/| /' conftest.$ac_ext >&5
18870
18871         eval "$as_ac_Header=no"
18872 fi
18873
18874 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18875 fi
18876 ac_res=`eval echo '${'$as_ac_Header'}'`
18877                { echo "$as_me:$LINENO: result: $ac_res" >&5
18878 echo "${ECHO_T}$ac_res" >&6; }
18879 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18880   cat >>confdefs.h <<_ACEOF
18881 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18882 _ACEOF
18883
18884 fi
18885
18886 done
18887
18888 fi
18889
18890
18891 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
18892 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
18893 if test "${ac_cv_c_const+set}" = set; then
18894   echo $ECHO_N "(cached) $ECHO_C" >&6
18895 else
18896   cat >conftest.$ac_ext <<_ACEOF
18897 /* confdefs.h.  */
18898 _ACEOF
18899 cat confdefs.h >>conftest.$ac_ext
18900 cat >>conftest.$ac_ext <<_ACEOF
18901 /* end confdefs.h.  */
18902
18903 int
18904 main ()
18905 {
18906 /* FIXME: Include the comments suggested by Paul. */
18907 #ifndef __cplusplus
18908   /* Ultrix mips cc rejects this.  */
18909   typedef int charset[2];
18910   const charset cs;
18911   /* SunOS 4.1.1 cc rejects this.  */
18912   char const *const *pcpcc;
18913   char **ppc;
18914   /* NEC SVR4.0.2 mips cc rejects this.  */
18915   struct point {int x, y;};
18916   static struct point const zero = {0,0};
18917   /* AIX XL C 1.02.0.0 rejects this.
18918      It does not let you subtract one const X* pointer from another in
18919      an arm of an if-expression whose if-part is not a constant
18920      expression */
18921   const char *g = "string";
18922   pcpcc = &g + (g ? g-g : 0);
18923   /* HPUX 7.0 cc rejects these. */
18924   ++pcpcc;
18925   ppc = (char**) pcpcc;
18926   pcpcc = (char const *const *) ppc;
18927   { /* SCO 3.2v4 cc rejects this.  */
18928     char *t;
18929     char const *s = 0 ? (char *) 0 : (char const *) 0;
18930
18931     *t++ = 0;
18932     if (s) return 0;
18933   }
18934   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
18935     int x[] = {25, 17};
18936     const int *foo = &x[0];
18937     ++foo;
18938   }
18939   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
18940     typedef const int *iptr;
18941     iptr p = 0;
18942     ++p;
18943   }
18944   { /* AIX XL C 1.02.0.0 rejects this saying
18945        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
18946     struct s { int j; const int *ap[3]; };
18947     struct s *b; b->j = 5;
18948   }
18949   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
18950     const int foo = 10;
18951     if (!foo) return 0;
18952   }
18953   return !cs[0] && !zero.x;
18954 #endif
18955
18956   ;
18957   return 0;
18958 }
18959 _ACEOF
18960 rm -f conftest.$ac_objext
18961 if { (ac_try="$ac_compile"
18962 case "(($ac_try" in
18963   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18964   *) ac_try_echo=$ac_try;;
18965 esac
18966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18967   (eval "$ac_compile") 2>conftest.er1
18968   ac_status=$?
18969   grep -v '^ *+' conftest.er1 >conftest.err
18970   rm -f conftest.er1
18971   cat conftest.err >&5
18972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18973   (exit $ac_status); } && {
18974          test -z "$ac_c_werror_flag" ||
18975          test ! -s conftest.err
18976        } && test -s conftest.$ac_objext; then
18977   ac_cv_c_const=yes
18978 else
18979   echo "$as_me: failed program was:" >&5
18980 sed 's/^/| /' conftest.$ac_ext >&5
18981
18982         ac_cv_c_const=no
18983 fi
18984
18985 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18986 fi
18987 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
18988 echo "${ECHO_T}$ac_cv_c_const" >&6; }
18989 if test $ac_cv_c_const = no; then
18990
18991 cat >>confdefs.h <<\_ACEOF
18992 #define const
18993 _ACEOF
18994
18995 fi
18996
18997 { echo "$as_me:$LINENO: checking for inline" >&5
18998 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
18999 if test "${ac_cv_c_inline+set}" = set; then
19000   echo $ECHO_N "(cached) $ECHO_C" >&6
19001 else
19002   ac_cv_c_inline=no
19003 for ac_kw in inline __inline__ __inline; do
19004   cat >conftest.$ac_ext <<_ACEOF
19005 /* confdefs.h.  */
19006 _ACEOF
19007 cat confdefs.h >>conftest.$ac_ext
19008 cat >>conftest.$ac_ext <<_ACEOF
19009 /* end confdefs.h.  */
19010 #ifndef __cplusplus
19011 typedef int foo_t;
19012 static $ac_kw foo_t static_foo () {return 0; }
19013 $ac_kw foo_t foo () {return 0; }
19014 #endif
19015
19016 _ACEOF
19017 rm -f conftest.$ac_objext
19018 if { (ac_try="$ac_compile"
19019 case "(($ac_try" in
19020   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19021   *) ac_try_echo=$ac_try;;
19022 esac
19023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19024   (eval "$ac_compile") 2>conftest.er1
19025   ac_status=$?
19026   grep -v '^ *+' conftest.er1 >conftest.err
19027   rm -f conftest.er1
19028   cat conftest.err >&5
19029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19030   (exit $ac_status); } && {
19031          test -z "$ac_c_werror_flag" ||
19032          test ! -s conftest.err
19033        } && test -s conftest.$ac_objext; then
19034   ac_cv_c_inline=$ac_kw
19035 else
19036   echo "$as_me: failed program was:" >&5
19037 sed 's/^/| /' conftest.$ac_ext >&5
19038
19039
19040 fi
19041
19042 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19043   test "$ac_cv_c_inline" != no && break
19044 done
19045
19046 fi
19047 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
19048 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
19049
19050
19051 case $ac_cv_c_inline in
19052   inline | yes) ;;
19053   *)
19054     case $ac_cv_c_inline in
19055       no) ac_val=;;
19056       *) ac_val=$ac_cv_c_inline;;
19057     esac
19058     cat >>confdefs.h <<_ACEOF
19059 #ifndef __cplusplus
19060 #define inline $ac_val
19061 #endif
19062 _ACEOF
19063     ;;
19064 esac
19065
19066
19067 { echo "$as_me:$LINENO: checking for short" >&5
19068 echo $ECHO_N "checking for short... $ECHO_C" >&6; }
19069 if test "${ac_cv_type_short+set}" = set; then
19070   echo $ECHO_N "(cached) $ECHO_C" >&6
19071 else
19072   cat >conftest.$ac_ext <<_ACEOF
19073 /* confdefs.h.  */
19074 _ACEOF
19075 cat confdefs.h >>conftest.$ac_ext
19076 cat >>conftest.$ac_ext <<_ACEOF
19077 /* end confdefs.h.  */
19078 $ac_includes_default
19079 typedef short ac__type_new_;
19080 int
19081 main ()
19082 {
19083 if ((ac__type_new_ *) 0)
19084   return 0;
19085 if (sizeof (ac__type_new_))
19086   return 0;
19087   ;
19088   return 0;
19089 }
19090 _ACEOF
19091 rm -f conftest.$ac_objext
19092 if { (ac_try="$ac_compile"
19093 case "(($ac_try" in
19094   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19095   *) ac_try_echo=$ac_try;;
19096 esac
19097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19098   (eval "$ac_compile") 2>conftest.er1
19099   ac_status=$?
19100   grep -v '^ *+' conftest.er1 >conftest.err
19101   rm -f conftest.er1
19102   cat conftest.err >&5
19103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19104   (exit $ac_status); } && {
19105          test -z "$ac_c_werror_flag" ||
19106          test ! -s conftest.err
19107        } && test -s conftest.$ac_objext; then
19108   ac_cv_type_short=yes
19109 else
19110   echo "$as_me: failed program was:" >&5
19111 sed 's/^/| /' conftest.$ac_ext >&5
19112
19113         ac_cv_type_short=no
19114 fi
19115
19116 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19117 fi
19118 { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
19119 echo "${ECHO_T}$ac_cv_type_short" >&6; }
19120
19121 # The cast to long int works around a bug in the HP C Compiler
19122 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19123 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19124 # This bug is HP SR number 8606223364.
19125 { echo "$as_me:$LINENO: checking size of short" >&5
19126 echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
19127 if test "${ac_cv_sizeof_short+set}" = set; then
19128   echo $ECHO_N "(cached) $ECHO_C" >&6
19129 else
19130   if test "$cross_compiling" = yes; then
19131   # Depending upon the size, compute the lo and hi bounds.
19132 cat >conftest.$ac_ext <<_ACEOF
19133 /* confdefs.h.  */
19134 _ACEOF
19135 cat confdefs.h >>conftest.$ac_ext
19136 cat >>conftest.$ac_ext <<_ACEOF
19137 /* end confdefs.h.  */
19138 $ac_includes_default
19139    typedef short ac__type_sizeof_;
19140 int
19141 main ()
19142 {
19143 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
19144 test_array [0] = 0
19145
19146   ;
19147   return 0;
19148 }
19149 _ACEOF
19150 rm -f conftest.$ac_objext
19151 if { (ac_try="$ac_compile"
19152 case "(($ac_try" in
19153   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19154   *) ac_try_echo=$ac_try;;
19155 esac
19156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19157   (eval "$ac_compile") 2>conftest.er1
19158   ac_status=$?
19159   grep -v '^ *+' conftest.er1 >conftest.err
19160   rm -f conftest.er1
19161   cat conftest.err >&5
19162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19163   (exit $ac_status); } && {
19164          test -z "$ac_c_werror_flag" ||
19165          test ! -s conftest.err
19166        } && test -s conftest.$ac_objext; then
19167   ac_lo=0 ac_mid=0
19168   while :; do
19169     cat >conftest.$ac_ext <<_ACEOF
19170 /* confdefs.h.  */
19171 _ACEOF
19172 cat confdefs.h >>conftest.$ac_ext
19173 cat >>conftest.$ac_ext <<_ACEOF
19174 /* end confdefs.h.  */
19175 $ac_includes_default
19176    typedef short ac__type_sizeof_;
19177 int
19178 main ()
19179 {
19180 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
19181 test_array [0] = 0
19182
19183   ;
19184   return 0;
19185 }
19186 _ACEOF
19187 rm -f conftest.$ac_objext
19188 if { (ac_try="$ac_compile"
19189 case "(($ac_try" in
19190   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19191   *) ac_try_echo=$ac_try;;
19192 esac
19193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19194   (eval "$ac_compile") 2>conftest.er1
19195   ac_status=$?
19196   grep -v '^ *+' conftest.er1 >conftest.err
19197   rm -f conftest.er1
19198   cat conftest.err >&5
19199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19200   (exit $ac_status); } && {
19201          test -z "$ac_c_werror_flag" ||
19202          test ! -s conftest.err
19203        } && test -s conftest.$ac_objext; then
19204   ac_hi=$ac_mid; break
19205 else
19206   echo "$as_me: failed program was:" >&5
19207 sed 's/^/| /' conftest.$ac_ext >&5
19208
19209         ac_lo=`expr $ac_mid + 1`
19210                         if test $ac_lo -le $ac_mid; then
19211                           ac_lo= ac_hi=
19212                           break
19213                         fi
19214                         ac_mid=`expr 2 '*' $ac_mid + 1`
19215 fi
19216
19217 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19218   done
19219 else
19220   echo "$as_me: failed program was:" >&5
19221 sed 's/^/| /' conftest.$ac_ext >&5
19222
19223         cat >conftest.$ac_ext <<_ACEOF
19224 /* confdefs.h.  */
19225 _ACEOF
19226 cat confdefs.h >>conftest.$ac_ext
19227 cat >>conftest.$ac_ext <<_ACEOF
19228 /* end confdefs.h.  */
19229 $ac_includes_default
19230    typedef short ac__type_sizeof_;
19231 int
19232 main ()
19233 {
19234 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
19235 test_array [0] = 0
19236
19237   ;
19238   return 0;
19239 }
19240 _ACEOF
19241 rm -f conftest.$ac_objext
19242 if { (ac_try="$ac_compile"
19243 case "(($ac_try" in
19244   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19245   *) ac_try_echo=$ac_try;;
19246 esac
19247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19248   (eval "$ac_compile") 2>conftest.er1
19249   ac_status=$?
19250   grep -v '^ *+' conftest.er1 >conftest.err
19251   rm -f conftest.er1
19252   cat conftest.err >&5
19253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19254   (exit $ac_status); } && {
19255          test -z "$ac_c_werror_flag" ||
19256          test ! -s conftest.err
19257        } && test -s conftest.$ac_objext; then
19258   ac_hi=-1 ac_mid=-1
19259   while :; do
19260     cat >conftest.$ac_ext <<_ACEOF
19261 /* confdefs.h.  */
19262 _ACEOF
19263 cat confdefs.h >>conftest.$ac_ext
19264 cat >>conftest.$ac_ext <<_ACEOF
19265 /* end confdefs.h.  */
19266 $ac_includes_default
19267    typedef short ac__type_sizeof_;
19268 int
19269 main ()
19270 {
19271 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
19272 test_array [0] = 0
19273
19274   ;
19275   return 0;
19276 }
19277 _ACEOF
19278 rm -f conftest.$ac_objext
19279 if { (ac_try="$ac_compile"
19280 case "(($ac_try" in
19281   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19282   *) ac_try_echo=$ac_try;;
19283 esac
19284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19285   (eval "$ac_compile") 2>conftest.er1
19286   ac_status=$?
19287   grep -v '^ *+' conftest.er1 >conftest.err
19288   rm -f conftest.er1
19289   cat conftest.err >&5
19290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19291   (exit $ac_status); } && {
19292          test -z "$ac_c_werror_flag" ||
19293          test ! -s conftest.err
19294        } && test -s conftest.$ac_objext; then
19295   ac_lo=$ac_mid; break
19296 else
19297   echo "$as_me: failed program was:" >&5
19298 sed 's/^/| /' conftest.$ac_ext >&5
19299
19300         ac_hi=`expr '(' $ac_mid ')' - 1`
19301                         if test $ac_mid -le $ac_hi; then
19302                           ac_lo= ac_hi=
19303                           break
19304                         fi
19305                         ac_mid=`expr 2 '*' $ac_mid`
19306 fi
19307
19308 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19309   done
19310 else
19311   echo "$as_me: failed program was:" >&5
19312 sed 's/^/| /' conftest.$ac_ext >&5
19313
19314         ac_lo= ac_hi=
19315 fi
19316
19317 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19318 fi
19319
19320 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19321 # Binary search between lo and hi bounds.
19322 while test "x$ac_lo" != "x$ac_hi"; do
19323   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19324   cat >conftest.$ac_ext <<_ACEOF
19325 /* confdefs.h.  */
19326 _ACEOF
19327 cat confdefs.h >>conftest.$ac_ext
19328 cat >>conftest.$ac_ext <<_ACEOF
19329 /* end confdefs.h.  */
19330 $ac_includes_default
19331    typedef short ac__type_sizeof_;
19332 int
19333 main ()
19334 {
19335 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
19336 test_array [0] = 0
19337
19338   ;
19339   return 0;
19340 }
19341 _ACEOF
19342 rm -f conftest.$ac_objext
19343 if { (ac_try="$ac_compile"
19344 case "(($ac_try" in
19345   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19346   *) ac_try_echo=$ac_try;;
19347 esac
19348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19349   (eval "$ac_compile") 2>conftest.er1
19350   ac_status=$?
19351   grep -v '^ *+' conftest.er1 >conftest.err
19352   rm -f conftest.er1
19353   cat conftest.err >&5
19354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19355   (exit $ac_status); } && {
19356          test -z "$ac_c_werror_flag" ||
19357          test ! -s conftest.err
19358        } && test -s conftest.$ac_objext; then
19359   ac_hi=$ac_mid
19360 else
19361   echo "$as_me: failed program was:" >&5
19362 sed 's/^/| /' conftest.$ac_ext >&5
19363
19364         ac_lo=`expr '(' $ac_mid ')' + 1`
19365 fi
19366
19367 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19368 done
19369 case $ac_lo in
19370 ?*) ac_cv_sizeof_short=$ac_lo;;
19371 '') if test "$ac_cv_type_short" = yes; then
19372      { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
19373 See \`config.log' for more details." >&5
19374 echo "$as_me: error: cannot compute sizeof (short)
19375 See \`config.log' for more details." >&2;}
19376    { (exit 77); exit 77; }; }
19377    else
19378      ac_cv_sizeof_short=0
19379    fi ;;
19380 esac
19381 else
19382   cat >conftest.$ac_ext <<_ACEOF
19383 /* confdefs.h.  */
19384 _ACEOF
19385 cat confdefs.h >>conftest.$ac_ext
19386 cat >>conftest.$ac_ext <<_ACEOF
19387 /* end confdefs.h.  */
19388 $ac_includes_default
19389    typedef short ac__type_sizeof_;
19390 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
19391 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
19392 #include <stdio.h>
19393 #include <stdlib.h>
19394 int
19395 main ()
19396 {
19397
19398   FILE *f = fopen ("conftest.val", "w");
19399   if (! f)
19400     return 1;
19401   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
19402     {
19403       long int i = longval ();
19404       if (i != ((long int) (sizeof (ac__type_sizeof_))))
19405         return 1;
19406       fprintf (f, "%ld\n", i);
19407     }
19408   else
19409     {
19410       unsigned long int i = ulongval ();
19411       if (i != ((long int) (sizeof (ac__type_sizeof_))))
19412         return 1;
19413       fprintf (f, "%lu\n", i);
19414     }
19415   return ferror (f) || fclose (f) != 0;
19416
19417   ;
19418   return 0;
19419 }
19420 _ACEOF
19421 rm -f conftest$ac_exeext
19422 if { (ac_try="$ac_link"
19423 case "(($ac_try" in
19424   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19425   *) ac_try_echo=$ac_try;;
19426 esac
19427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19428   (eval "$ac_link") 2>&5
19429   ac_status=$?
19430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19431   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19432   { (case "(($ac_try" in
19433   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19434   *) ac_try_echo=$ac_try;;
19435 esac
19436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19437   (eval "$ac_try") 2>&5
19438   ac_status=$?
19439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19440   (exit $ac_status); }; }; then
19441   ac_cv_sizeof_short=`cat conftest.val`
19442 else
19443   echo "$as_me: program exited with status $ac_status" >&5
19444 echo "$as_me: failed program was:" >&5
19445 sed 's/^/| /' conftest.$ac_ext >&5
19446
19447 ( exit $ac_status )
19448 if test "$ac_cv_type_short" = yes; then
19449      { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
19450 See \`config.log' for more details." >&5
19451 echo "$as_me: error: cannot compute sizeof (short)
19452 See \`config.log' for more details." >&2;}
19453    { (exit 77); exit 77; }; }
19454    else
19455      ac_cv_sizeof_short=0
19456    fi
19457 fi
19458 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19459 fi
19460 rm -f conftest.val
19461 fi
19462 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
19463 echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
19464
19465
19466
19467 cat >>confdefs.h <<_ACEOF
19468 #define SIZEOF_SHORT $ac_cv_sizeof_short
19469 _ACEOF
19470
19471
19472 { echo "$as_me:$LINENO: checking for void *" >&5
19473 echo $ECHO_N "checking for void *... $ECHO_C" >&6; }
19474 if test "${ac_cv_type_void_p+set}" = set; then
19475   echo $ECHO_N "(cached) $ECHO_C" >&6
19476 else
19477   cat >conftest.$ac_ext <<_ACEOF
19478 /* confdefs.h.  */
19479 _ACEOF
19480 cat confdefs.h >>conftest.$ac_ext
19481 cat >>conftest.$ac_ext <<_ACEOF
19482 /* end confdefs.h.  */
19483 $ac_includes_default
19484 typedef void * ac__type_new_;
19485 int
19486 main ()
19487 {
19488 if ((ac__type_new_ *) 0)
19489   return 0;
19490 if (sizeof (ac__type_new_))
19491   return 0;
19492   ;
19493   return 0;
19494 }
19495 _ACEOF
19496 rm -f conftest.$ac_objext
19497 if { (ac_try="$ac_compile"
19498 case "(($ac_try" in
19499   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19500   *) ac_try_echo=$ac_try;;
19501 esac
19502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19503   (eval "$ac_compile") 2>conftest.er1
19504   ac_status=$?
19505   grep -v '^ *+' conftest.er1 >conftest.err
19506   rm -f conftest.er1
19507   cat conftest.err >&5
19508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19509   (exit $ac_status); } && {
19510          test -z "$ac_c_werror_flag" ||
19511          test ! -s conftest.err
19512        } && test -s conftest.$ac_objext; then
19513   ac_cv_type_void_p=yes
19514 else
19515   echo "$as_me: failed program was:" >&5
19516 sed 's/^/| /' conftest.$ac_ext >&5
19517
19518         ac_cv_type_void_p=no
19519 fi
19520
19521 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19522 fi
19523 { echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
19524 echo "${ECHO_T}$ac_cv_type_void_p" >&6; }
19525
19526 # The cast to long int works around a bug in the HP C Compiler
19527 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19528 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19529 # This bug is HP SR number 8606223364.
19530 { echo "$as_me:$LINENO: checking size of void *" >&5
19531 echo $ECHO_N "checking size of void *... $ECHO_C" >&6; }
19532 if test "${ac_cv_sizeof_void_p+set}" = set; then
19533   echo $ECHO_N "(cached) $ECHO_C" >&6
19534 else
19535   if test "$cross_compiling" = yes; then
19536   # Depending upon the size, compute the lo and hi bounds.
19537 cat >conftest.$ac_ext <<_ACEOF
19538 /* confdefs.h.  */
19539 _ACEOF
19540 cat confdefs.h >>conftest.$ac_ext
19541 cat >>conftest.$ac_ext <<_ACEOF
19542 /* end confdefs.h.  */
19543 $ac_includes_default
19544    typedef void * ac__type_sizeof_;
19545 int
19546 main ()
19547 {
19548 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
19549 test_array [0] = 0
19550
19551   ;
19552   return 0;
19553 }
19554 _ACEOF
19555 rm -f conftest.$ac_objext
19556 if { (ac_try="$ac_compile"
19557 case "(($ac_try" in
19558   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19559   *) ac_try_echo=$ac_try;;
19560 esac
19561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19562   (eval "$ac_compile") 2>conftest.er1
19563   ac_status=$?
19564   grep -v '^ *+' conftest.er1 >conftest.err
19565   rm -f conftest.er1
19566   cat conftest.err >&5
19567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19568   (exit $ac_status); } && {
19569          test -z "$ac_c_werror_flag" ||
19570          test ! -s conftest.err
19571        } && test -s conftest.$ac_objext; then
19572   ac_lo=0 ac_mid=0
19573   while :; do
19574     cat >conftest.$ac_ext <<_ACEOF
19575 /* confdefs.h.  */
19576 _ACEOF
19577 cat confdefs.h >>conftest.$ac_ext
19578 cat >>conftest.$ac_ext <<_ACEOF
19579 /* end confdefs.h.  */
19580 $ac_includes_default
19581    typedef void * ac__type_sizeof_;
19582 int
19583 main ()
19584 {
19585 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
19586 test_array [0] = 0
19587
19588   ;
19589   return 0;
19590 }
19591 _ACEOF
19592 rm -f conftest.$ac_objext
19593 if { (ac_try="$ac_compile"
19594 case "(($ac_try" in
19595   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19596   *) ac_try_echo=$ac_try;;
19597 esac
19598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19599   (eval "$ac_compile") 2>conftest.er1
19600   ac_status=$?
19601   grep -v '^ *+' conftest.er1 >conftest.err
19602   rm -f conftest.er1
19603   cat conftest.err >&5
19604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19605   (exit $ac_status); } && {
19606          test -z "$ac_c_werror_flag" ||
19607          test ! -s conftest.err
19608        } && test -s conftest.$ac_objext; then
19609   ac_hi=$ac_mid; break
19610 else
19611   echo "$as_me: failed program was:" >&5
19612 sed 's/^/| /' conftest.$ac_ext >&5
19613
19614         ac_lo=`expr $ac_mid + 1`
19615                         if test $ac_lo -le $ac_mid; then
19616                           ac_lo= ac_hi=
19617                           break
19618                         fi
19619                         ac_mid=`expr 2 '*' $ac_mid + 1`
19620 fi
19621
19622 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19623   done
19624 else
19625   echo "$as_me: failed program was:" >&5
19626 sed 's/^/| /' conftest.$ac_ext >&5
19627
19628         cat >conftest.$ac_ext <<_ACEOF
19629 /* confdefs.h.  */
19630 _ACEOF
19631 cat confdefs.h >>conftest.$ac_ext
19632 cat >>conftest.$ac_ext <<_ACEOF
19633 /* end confdefs.h.  */
19634 $ac_includes_default
19635    typedef void * ac__type_sizeof_;
19636 int
19637 main ()
19638 {
19639 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
19640 test_array [0] = 0
19641
19642   ;
19643   return 0;
19644 }
19645 _ACEOF
19646 rm -f conftest.$ac_objext
19647 if { (ac_try="$ac_compile"
19648 case "(($ac_try" in
19649   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19650   *) ac_try_echo=$ac_try;;
19651 esac
19652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19653   (eval "$ac_compile") 2>conftest.er1
19654   ac_status=$?
19655   grep -v '^ *+' conftest.er1 >conftest.err
19656   rm -f conftest.er1
19657   cat conftest.err >&5
19658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19659   (exit $ac_status); } && {
19660          test -z "$ac_c_werror_flag" ||
19661          test ! -s conftest.err
19662        } && test -s conftest.$ac_objext; then
19663   ac_hi=-1 ac_mid=-1
19664   while :; do
19665     cat >conftest.$ac_ext <<_ACEOF
19666 /* confdefs.h.  */
19667 _ACEOF
19668 cat confdefs.h >>conftest.$ac_ext
19669 cat >>conftest.$ac_ext <<_ACEOF
19670 /* end confdefs.h.  */
19671 $ac_includes_default
19672    typedef void * ac__type_sizeof_;
19673 int
19674 main ()
19675 {
19676 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
19677 test_array [0] = 0
19678
19679   ;
19680   return 0;
19681 }
19682 _ACEOF
19683 rm -f conftest.$ac_objext
19684 if { (ac_try="$ac_compile"
19685 case "(($ac_try" in
19686   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19687   *) ac_try_echo=$ac_try;;
19688 esac
19689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19690   (eval "$ac_compile") 2>conftest.er1
19691   ac_status=$?
19692   grep -v '^ *+' conftest.er1 >conftest.err
19693   rm -f conftest.er1
19694   cat conftest.err >&5
19695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19696   (exit $ac_status); } && {
19697          test -z "$ac_c_werror_flag" ||
19698          test ! -s conftest.err
19699        } && test -s conftest.$ac_objext; then
19700   ac_lo=$ac_mid; break
19701 else
19702   echo "$as_me: failed program was:" >&5
19703 sed 's/^/| /' conftest.$ac_ext >&5
19704
19705         ac_hi=`expr '(' $ac_mid ')' - 1`
19706                         if test $ac_mid -le $ac_hi; then
19707                           ac_lo= ac_hi=
19708                           break
19709                         fi
19710                         ac_mid=`expr 2 '*' $ac_mid`
19711 fi
19712
19713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19714   done
19715 else
19716   echo "$as_me: failed program was:" >&5
19717 sed 's/^/| /' conftest.$ac_ext >&5
19718
19719         ac_lo= ac_hi=
19720 fi
19721
19722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19723 fi
19724
19725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19726 # Binary search between lo and hi bounds.
19727 while test "x$ac_lo" != "x$ac_hi"; do
19728   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19729   cat >conftest.$ac_ext <<_ACEOF
19730 /* confdefs.h.  */
19731 _ACEOF
19732 cat confdefs.h >>conftest.$ac_ext
19733 cat >>conftest.$ac_ext <<_ACEOF
19734 /* end confdefs.h.  */
19735 $ac_includes_default
19736    typedef void * ac__type_sizeof_;
19737 int
19738 main ()
19739 {
19740 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
19741 test_array [0] = 0
19742
19743   ;
19744   return 0;
19745 }
19746 _ACEOF
19747 rm -f conftest.$ac_objext
19748 if { (ac_try="$ac_compile"
19749 case "(($ac_try" in
19750   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19751   *) ac_try_echo=$ac_try;;
19752 esac
19753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19754   (eval "$ac_compile") 2>conftest.er1
19755   ac_status=$?
19756   grep -v '^ *+' conftest.er1 >conftest.err
19757   rm -f conftest.er1
19758   cat conftest.err >&5
19759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19760   (exit $ac_status); } && {
19761          test -z "$ac_c_werror_flag" ||
19762          test ! -s conftest.err
19763        } && test -s conftest.$ac_objext; then
19764   ac_hi=$ac_mid
19765 else
19766   echo "$as_me: failed program was:" >&5
19767 sed 's/^/| /' conftest.$ac_ext >&5
19768
19769         ac_lo=`expr '(' $ac_mid ')' + 1`
19770 fi
19771
19772 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19773 done
19774 case $ac_lo in
19775 ?*) ac_cv_sizeof_void_p=$ac_lo;;
19776 '') if test "$ac_cv_type_void_p" = yes; then
19777      { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
19778 See \`config.log' for more details." >&5
19779 echo "$as_me: error: cannot compute sizeof (void *)
19780 See \`config.log' for more details." >&2;}
19781    { (exit 77); exit 77; }; }
19782    else
19783      ac_cv_sizeof_void_p=0
19784    fi ;;
19785 esac
19786 else
19787   cat >conftest.$ac_ext <<_ACEOF
19788 /* confdefs.h.  */
19789 _ACEOF
19790 cat confdefs.h >>conftest.$ac_ext
19791 cat >>conftest.$ac_ext <<_ACEOF
19792 /* end confdefs.h.  */
19793 $ac_includes_default
19794    typedef void * ac__type_sizeof_;
19795 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
19796 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
19797 #include <stdio.h>
19798 #include <stdlib.h>
19799 int
19800 main ()
19801 {
19802
19803   FILE *f = fopen ("conftest.val", "w");
19804   if (! f)
19805     return 1;
19806   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
19807     {
19808       long int i = longval ();
19809       if (i != ((long int) (sizeof (ac__type_sizeof_))))
19810         return 1;
19811       fprintf (f, "%ld\n", i);
19812     }
19813   else
19814     {
19815       unsigned long int i = ulongval ();
19816       if (i != ((long int) (sizeof (ac__type_sizeof_))))
19817         return 1;
19818       fprintf (f, "%lu\n", i);
19819     }
19820   return ferror (f) || fclose (f) != 0;
19821
19822   ;
19823   return 0;
19824 }
19825 _ACEOF
19826 rm -f conftest$ac_exeext
19827 if { (ac_try="$ac_link"
19828 case "(($ac_try" in
19829   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19830   *) ac_try_echo=$ac_try;;
19831 esac
19832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19833   (eval "$ac_link") 2>&5
19834   ac_status=$?
19835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19836   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19837   { (case "(($ac_try" in
19838   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19839   *) ac_try_echo=$ac_try;;
19840 esac
19841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19842   (eval "$ac_try") 2>&5
19843   ac_status=$?
19844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19845   (exit $ac_status); }; }; then
19846   ac_cv_sizeof_void_p=`cat conftest.val`
19847 else
19848   echo "$as_me: program exited with status $ac_status" >&5
19849 echo "$as_me: failed program was:" >&5
19850 sed 's/^/| /' conftest.$ac_ext >&5
19851
19852 ( exit $ac_status )
19853 if test "$ac_cv_type_void_p" = yes; then
19854      { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
19855 See \`config.log' for more details." >&5
19856 echo "$as_me: error: cannot compute sizeof (void *)
19857 See \`config.log' for more details." >&2;}
19858    { (exit 77); exit 77; }; }
19859    else
19860      ac_cv_sizeof_void_p=0
19861    fi
19862 fi
19863 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19864 fi
19865 rm -f conftest.val
19866 fi
19867 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
19868 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6; }
19869
19870
19871
19872 cat >>confdefs.h <<_ACEOF
19873 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
19874 _ACEOF
19875
19876
19877 { echo "$as_me:$LINENO: checking for int" >&5
19878 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
19879 if test "${ac_cv_type_int+set}" = set; then
19880   echo $ECHO_N "(cached) $ECHO_C" >&6
19881 else
19882   cat >conftest.$ac_ext <<_ACEOF
19883 /* confdefs.h.  */
19884 _ACEOF
19885 cat confdefs.h >>conftest.$ac_ext
19886 cat >>conftest.$ac_ext <<_ACEOF
19887 /* end confdefs.h.  */
19888 $ac_includes_default
19889 typedef int ac__type_new_;
19890 int
19891 main ()
19892 {
19893 if ((ac__type_new_ *) 0)
19894   return 0;
19895 if (sizeof (ac__type_new_))
19896   return 0;
19897   ;
19898   return 0;
19899 }
19900 _ACEOF
19901 rm -f conftest.$ac_objext
19902 if { (ac_try="$ac_compile"
19903 case "(($ac_try" in
19904   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19905   *) ac_try_echo=$ac_try;;
19906 esac
19907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19908   (eval "$ac_compile") 2>conftest.er1
19909   ac_status=$?
19910   grep -v '^ *+' conftest.er1 >conftest.err
19911   rm -f conftest.er1
19912   cat conftest.err >&5
19913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19914   (exit $ac_status); } && {
19915          test -z "$ac_c_werror_flag" ||
19916          test ! -s conftest.err
19917        } && test -s conftest.$ac_objext; then
19918   ac_cv_type_int=yes
19919 else
19920   echo "$as_me: failed program was:" >&5
19921 sed 's/^/| /' conftest.$ac_ext >&5
19922
19923         ac_cv_type_int=no
19924 fi
19925
19926 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19927 fi
19928 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
19929 echo "${ECHO_T}$ac_cv_type_int" >&6; }
19930
19931 # The cast to long int works around a bug in the HP C Compiler
19932 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19933 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19934 # This bug is HP SR number 8606223364.
19935 { echo "$as_me:$LINENO: checking size of int" >&5
19936 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
19937 if test "${ac_cv_sizeof_int+set}" = set; then
19938   echo $ECHO_N "(cached) $ECHO_C" >&6
19939 else
19940   if test "$cross_compiling" = yes; then
19941   # Depending upon the size, compute the lo and hi bounds.
19942 cat >conftest.$ac_ext <<_ACEOF
19943 /* confdefs.h.  */
19944 _ACEOF
19945 cat confdefs.h >>conftest.$ac_ext
19946 cat >>conftest.$ac_ext <<_ACEOF
19947 /* end confdefs.h.  */
19948 $ac_includes_default
19949    typedef int ac__type_sizeof_;
19950 int
19951 main ()
19952 {
19953 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
19954 test_array [0] = 0
19955
19956   ;
19957   return 0;
19958 }
19959 _ACEOF
19960 rm -f conftest.$ac_objext
19961 if { (ac_try="$ac_compile"
19962 case "(($ac_try" in
19963   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19964   *) ac_try_echo=$ac_try;;
19965 esac
19966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19967   (eval "$ac_compile") 2>conftest.er1
19968   ac_status=$?
19969   grep -v '^ *+' conftest.er1 >conftest.err
19970   rm -f conftest.er1
19971   cat conftest.err >&5
19972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19973   (exit $ac_status); } && {
19974          test -z "$ac_c_werror_flag" ||
19975          test ! -s conftest.err
19976        } && test -s conftest.$ac_objext; then
19977   ac_lo=0 ac_mid=0
19978   while :; do
19979     cat >conftest.$ac_ext <<_ACEOF
19980 /* confdefs.h.  */
19981 _ACEOF
19982 cat confdefs.h >>conftest.$ac_ext
19983 cat >>conftest.$ac_ext <<_ACEOF
19984 /* end confdefs.h.  */
19985 $ac_includes_default
19986    typedef int ac__type_sizeof_;
19987 int
19988 main ()
19989 {
19990 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
19991 test_array [0] = 0
19992
19993   ;
19994   return 0;
19995 }
19996 _ACEOF
19997 rm -f conftest.$ac_objext
19998 if { (ac_try="$ac_compile"
19999 case "(($ac_try" in
20000   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20001   *) ac_try_echo=$ac_try;;
20002 esac
20003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20004   (eval "$ac_compile") 2>conftest.er1
20005   ac_status=$?
20006   grep -v '^ *+' conftest.er1 >conftest.err
20007   rm -f conftest.er1
20008   cat conftest.err >&5
20009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20010   (exit $ac_status); } && {
20011          test -z "$ac_c_werror_flag" ||
20012          test ! -s conftest.err
20013        } && test -s conftest.$ac_objext; then
20014   ac_hi=$ac_mid; break
20015 else
20016   echo "$as_me: failed program was:" >&5
20017 sed 's/^/| /' conftest.$ac_ext >&5
20018
20019         ac_lo=`expr $ac_mid + 1`
20020                         if test $ac_lo -le $ac_mid; then
20021                           ac_lo= ac_hi=
20022                           break
20023                         fi
20024                         ac_mid=`expr 2 '*' $ac_mid + 1`
20025 fi
20026
20027 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20028   done
20029 else
20030   echo "$as_me: failed program was:" >&5
20031 sed 's/^/| /' conftest.$ac_ext >&5
20032
20033         cat >conftest.$ac_ext <<_ACEOF
20034 /* confdefs.h.  */
20035 _ACEOF
20036 cat confdefs.h >>conftest.$ac_ext
20037 cat >>conftest.$ac_ext <<_ACEOF
20038 /* end confdefs.h.  */
20039 $ac_includes_default
20040    typedef int ac__type_sizeof_;
20041 int
20042 main ()
20043 {
20044 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
20045 test_array [0] = 0
20046
20047   ;
20048   return 0;
20049 }
20050 _ACEOF
20051 rm -f conftest.$ac_objext
20052 if { (ac_try="$ac_compile"
20053 case "(($ac_try" in
20054   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20055   *) ac_try_echo=$ac_try;;
20056 esac
20057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20058   (eval "$ac_compile") 2>conftest.er1
20059   ac_status=$?
20060   grep -v '^ *+' conftest.er1 >conftest.err
20061   rm -f conftest.er1
20062   cat conftest.err >&5
20063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20064   (exit $ac_status); } && {
20065          test -z "$ac_c_werror_flag" ||
20066          test ! -s conftest.err
20067        } && test -s conftest.$ac_objext; then
20068   ac_hi=-1 ac_mid=-1
20069   while :; do
20070     cat >conftest.$ac_ext <<_ACEOF
20071 /* confdefs.h.  */
20072 _ACEOF
20073 cat confdefs.h >>conftest.$ac_ext
20074 cat >>conftest.$ac_ext <<_ACEOF
20075 /* end confdefs.h.  */
20076 $ac_includes_default
20077    typedef int ac__type_sizeof_;
20078 int
20079 main ()
20080 {
20081 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
20082 test_array [0] = 0
20083
20084   ;
20085   return 0;
20086 }
20087 _ACEOF
20088 rm -f conftest.$ac_objext
20089 if { (ac_try="$ac_compile"
20090 case "(($ac_try" in
20091   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20092   *) ac_try_echo=$ac_try;;
20093 esac
20094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20095   (eval "$ac_compile") 2>conftest.er1
20096   ac_status=$?
20097   grep -v '^ *+' conftest.er1 >conftest.err
20098   rm -f conftest.er1
20099   cat conftest.err >&5
20100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20101   (exit $ac_status); } && {
20102          test -z "$ac_c_werror_flag" ||
20103          test ! -s conftest.err
20104        } && test -s conftest.$ac_objext; then
20105   ac_lo=$ac_mid; break
20106 else
20107   echo "$as_me: failed program was:" >&5
20108 sed 's/^/| /' conftest.$ac_ext >&5
20109
20110         ac_hi=`expr '(' $ac_mid ')' - 1`
20111                         if test $ac_mid -le $ac_hi; then
20112                           ac_lo= ac_hi=
20113                           break
20114                         fi
20115                         ac_mid=`expr 2 '*' $ac_mid`
20116 fi
20117
20118 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20119   done
20120 else
20121   echo "$as_me: failed program was:" >&5
20122 sed 's/^/| /' conftest.$ac_ext >&5
20123
20124         ac_lo= ac_hi=
20125 fi
20126
20127 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20128 fi
20129
20130 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20131 # Binary search between lo and hi bounds.
20132 while test "x$ac_lo" != "x$ac_hi"; do
20133   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20134   cat >conftest.$ac_ext <<_ACEOF
20135 /* confdefs.h.  */
20136 _ACEOF
20137 cat confdefs.h >>conftest.$ac_ext
20138 cat >>conftest.$ac_ext <<_ACEOF
20139 /* end confdefs.h.  */
20140 $ac_includes_default
20141    typedef int ac__type_sizeof_;
20142 int
20143 main ()
20144 {
20145 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
20146 test_array [0] = 0
20147
20148   ;
20149   return 0;
20150 }
20151 _ACEOF
20152 rm -f conftest.$ac_objext
20153 if { (ac_try="$ac_compile"
20154 case "(($ac_try" in
20155   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20156   *) ac_try_echo=$ac_try;;
20157 esac
20158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20159   (eval "$ac_compile") 2>conftest.er1
20160   ac_status=$?
20161   grep -v '^ *+' conftest.er1 >conftest.err
20162   rm -f conftest.er1
20163   cat conftest.err >&5
20164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20165   (exit $ac_status); } && {
20166          test -z "$ac_c_werror_flag" ||
20167          test ! -s conftest.err
20168        } && test -s conftest.$ac_objext; then
20169   ac_hi=$ac_mid
20170 else
20171   echo "$as_me: failed program was:" >&5
20172 sed 's/^/| /' conftest.$ac_ext >&5
20173
20174         ac_lo=`expr '(' $ac_mid ')' + 1`
20175 fi
20176
20177 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20178 done
20179 case $ac_lo in
20180 ?*) ac_cv_sizeof_int=$ac_lo;;
20181 '') if test "$ac_cv_type_int" = yes; then
20182      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
20183 See \`config.log' for more details." >&5
20184 echo "$as_me: error: cannot compute sizeof (int)
20185 See \`config.log' for more details." >&2;}
20186    { (exit 77); exit 77; }; }
20187    else
20188      ac_cv_sizeof_int=0
20189    fi ;;
20190 esac
20191 else
20192   cat >conftest.$ac_ext <<_ACEOF
20193 /* confdefs.h.  */
20194 _ACEOF
20195 cat confdefs.h >>conftest.$ac_ext
20196 cat >>conftest.$ac_ext <<_ACEOF
20197 /* end confdefs.h.  */
20198 $ac_includes_default
20199    typedef int ac__type_sizeof_;
20200 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
20201 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
20202 #include <stdio.h>
20203 #include <stdlib.h>
20204 int
20205 main ()
20206 {
20207
20208   FILE *f = fopen ("conftest.val", "w");
20209   if (! f)
20210     return 1;
20211   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
20212     {
20213       long int i = longval ();
20214       if (i != ((long int) (sizeof (ac__type_sizeof_))))
20215         return 1;
20216       fprintf (f, "%ld\n", i);
20217     }
20218   else
20219     {
20220       unsigned long int i = ulongval ();
20221       if (i != ((long int) (sizeof (ac__type_sizeof_))))
20222         return 1;
20223       fprintf (f, "%lu\n", i);
20224     }
20225   return ferror (f) || fclose (f) != 0;
20226
20227   ;
20228   return 0;
20229 }
20230 _ACEOF
20231 rm -f conftest$ac_exeext
20232 if { (ac_try="$ac_link"
20233 case "(($ac_try" in
20234   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20235   *) ac_try_echo=$ac_try;;
20236 esac
20237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20238   (eval "$ac_link") 2>&5
20239   ac_status=$?
20240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20241   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20242   { (case "(($ac_try" in
20243   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20244   *) ac_try_echo=$ac_try;;
20245 esac
20246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20247   (eval "$ac_try") 2>&5
20248   ac_status=$?
20249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20250   (exit $ac_status); }; }; then
20251   ac_cv_sizeof_int=`cat conftest.val`
20252 else
20253   echo "$as_me: program exited with status $ac_status" >&5
20254 echo "$as_me: failed program was:" >&5
20255 sed 's/^/| /' conftest.$ac_ext >&5
20256
20257 ( exit $ac_status )
20258 if test "$ac_cv_type_int" = yes; then
20259      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
20260 See \`config.log' for more details." >&5
20261 echo "$as_me: error: cannot compute sizeof (int)
20262 See \`config.log' for more details." >&2;}
20263    { (exit 77); exit 77; }; }
20264    else
20265      ac_cv_sizeof_int=0
20266    fi
20267 fi
20268 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20269 fi
20270 rm -f conftest.val
20271 fi
20272 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
20273 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
20274
20275
20276
20277 cat >>confdefs.h <<_ACEOF
20278 #define SIZEOF_INT $ac_cv_sizeof_int
20279 _ACEOF
20280
20281
20282 { echo "$as_me:$LINENO: checking for long" >&5
20283 echo $ECHO_N "checking for long... $ECHO_C" >&6; }
20284 if test "${ac_cv_type_long+set}" = set; then
20285   echo $ECHO_N "(cached) $ECHO_C" >&6
20286 else
20287   cat >conftest.$ac_ext <<_ACEOF
20288 /* confdefs.h.  */
20289 _ACEOF
20290 cat confdefs.h >>conftest.$ac_ext
20291 cat >>conftest.$ac_ext <<_ACEOF
20292 /* end confdefs.h.  */
20293 $ac_includes_default
20294 typedef long ac__type_new_;
20295 int
20296 main ()
20297 {
20298 if ((ac__type_new_ *) 0)
20299   return 0;
20300 if (sizeof (ac__type_new_))
20301   return 0;
20302   ;
20303   return 0;
20304 }
20305 _ACEOF
20306 rm -f conftest.$ac_objext
20307 if { (ac_try="$ac_compile"
20308 case "(($ac_try" in
20309   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20310   *) ac_try_echo=$ac_try;;
20311 esac
20312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20313   (eval "$ac_compile") 2>conftest.er1
20314   ac_status=$?
20315   grep -v '^ *+' conftest.er1 >conftest.err
20316   rm -f conftest.er1
20317   cat conftest.err >&5
20318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20319   (exit $ac_status); } && {
20320          test -z "$ac_c_werror_flag" ||
20321          test ! -s conftest.err
20322        } && test -s conftest.$ac_objext; then
20323   ac_cv_type_long=yes
20324 else
20325   echo "$as_me: failed program was:" >&5
20326 sed 's/^/| /' conftest.$ac_ext >&5
20327
20328         ac_cv_type_long=no
20329 fi
20330
20331 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20332 fi
20333 { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
20334 echo "${ECHO_T}$ac_cv_type_long" >&6; }
20335
20336 # The cast to long int works around a bug in the HP C Compiler
20337 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20338 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20339 # This bug is HP SR number 8606223364.
20340 { echo "$as_me:$LINENO: checking size of long" >&5
20341 echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
20342 if test "${ac_cv_sizeof_long+set}" = set; then
20343   echo $ECHO_N "(cached) $ECHO_C" >&6
20344 else
20345   if test "$cross_compiling" = yes; then
20346   # Depending upon the size, compute the lo and hi bounds.
20347 cat >conftest.$ac_ext <<_ACEOF
20348 /* confdefs.h.  */
20349 _ACEOF
20350 cat confdefs.h >>conftest.$ac_ext
20351 cat >>conftest.$ac_ext <<_ACEOF
20352 /* end confdefs.h.  */
20353 $ac_includes_default
20354    typedef long ac__type_sizeof_;
20355 int
20356 main ()
20357 {
20358 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
20359 test_array [0] = 0
20360
20361   ;
20362   return 0;
20363 }
20364 _ACEOF
20365 rm -f conftest.$ac_objext
20366 if { (ac_try="$ac_compile"
20367 case "(($ac_try" in
20368   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20369   *) ac_try_echo=$ac_try;;
20370 esac
20371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20372   (eval "$ac_compile") 2>conftest.er1
20373   ac_status=$?
20374   grep -v '^ *+' conftest.er1 >conftest.err
20375   rm -f conftest.er1
20376   cat conftest.err >&5
20377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20378   (exit $ac_status); } && {
20379          test -z "$ac_c_werror_flag" ||
20380          test ! -s conftest.err
20381        } && test -s conftest.$ac_objext; then
20382   ac_lo=0 ac_mid=0
20383   while :; do
20384     cat >conftest.$ac_ext <<_ACEOF
20385 /* confdefs.h.  */
20386 _ACEOF
20387 cat confdefs.h >>conftest.$ac_ext
20388 cat >>conftest.$ac_ext <<_ACEOF
20389 /* end confdefs.h.  */
20390 $ac_includes_default
20391    typedef long ac__type_sizeof_;
20392 int
20393 main ()
20394 {
20395 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
20396 test_array [0] = 0
20397
20398   ;
20399   return 0;
20400 }
20401 _ACEOF
20402 rm -f conftest.$ac_objext
20403 if { (ac_try="$ac_compile"
20404 case "(($ac_try" in
20405   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20406   *) ac_try_echo=$ac_try;;
20407 esac
20408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20409   (eval "$ac_compile") 2>conftest.er1
20410   ac_status=$?
20411   grep -v '^ *+' conftest.er1 >conftest.err
20412   rm -f conftest.er1
20413   cat conftest.err >&5
20414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20415   (exit $ac_status); } && {
20416          test -z "$ac_c_werror_flag" ||
20417          test ! -s conftest.err
20418        } && test -s conftest.$ac_objext; then
20419   ac_hi=$ac_mid; break
20420 else
20421   echo "$as_me: failed program was:" >&5
20422 sed 's/^/| /' conftest.$ac_ext >&5
20423
20424         ac_lo=`expr $ac_mid + 1`
20425                         if test $ac_lo -le $ac_mid; then
20426                           ac_lo= ac_hi=
20427                           break
20428                         fi
20429                         ac_mid=`expr 2 '*' $ac_mid + 1`
20430 fi
20431
20432 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20433   done
20434 else
20435   echo "$as_me: failed program was:" >&5
20436 sed 's/^/| /' conftest.$ac_ext >&5
20437
20438         cat >conftest.$ac_ext <<_ACEOF
20439 /* confdefs.h.  */
20440 _ACEOF
20441 cat confdefs.h >>conftest.$ac_ext
20442 cat >>conftest.$ac_ext <<_ACEOF
20443 /* end confdefs.h.  */
20444 $ac_includes_default
20445    typedef long ac__type_sizeof_;
20446 int
20447 main ()
20448 {
20449 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
20450 test_array [0] = 0
20451
20452   ;
20453   return 0;
20454 }
20455 _ACEOF
20456 rm -f conftest.$ac_objext
20457 if { (ac_try="$ac_compile"
20458 case "(($ac_try" in
20459   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20460   *) ac_try_echo=$ac_try;;
20461 esac
20462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20463   (eval "$ac_compile") 2>conftest.er1
20464   ac_status=$?
20465   grep -v '^ *+' conftest.er1 >conftest.err
20466   rm -f conftest.er1
20467   cat conftest.err >&5
20468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20469   (exit $ac_status); } && {
20470          test -z "$ac_c_werror_flag" ||
20471          test ! -s conftest.err
20472        } && test -s conftest.$ac_objext; then
20473   ac_hi=-1 ac_mid=-1
20474   while :; do
20475     cat >conftest.$ac_ext <<_ACEOF
20476 /* confdefs.h.  */
20477 _ACEOF
20478 cat confdefs.h >>conftest.$ac_ext
20479 cat >>conftest.$ac_ext <<_ACEOF
20480 /* end confdefs.h.  */
20481 $ac_includes_default
20482    typedef long ac__type_sizeof_;
20483 int
20484 main ()
20485 {
20486 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
20487 test_array [0] = 0
20488
20489   ;
20490   return 0;
20491 }
20492 _ACEOF
20493 rm -f conftest.$ac_objext
20494 if { (ac_try="$ac_compile"
20495 case "(($ac_try" in
20496   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20497   *) ac_try_echo=$ac_try;;
20498 esac
20499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20500   (eval "$ac_compile") 2>conftest.er1
20501   ac_status=$?
20502   grep -v '^ *+' conftest.er1 >conftest.err
20503   rm -f conftest.er1
20504   cat conftest.err >&5
20505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20506   (exit $ac_status); } && {
20507          test -z "$ac_c_werror_flag" ||
20508          test ! -s conftest.err
20509        } && test -s conftest.$ac_objext; then
20510   ac_lo=$ac_mid; break
20511 else
20512   echo "$as_me: failed program was:" >&5
20513 sed 's/^/| /' conftest.$ac_ext >&5
20514
20515         ac_hi=`expr '(' $ac_mid ')' - 1`
20516                         if test $ac_mid -le $ac_hi; then
20517                           ac_lo= ac_hi=
20518                           break
20519                         fi
20520                         ac_mid=`expr 2 '*' $ac_mid`
20521 fi
20522
20523 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20524   done
20525 else
20526   echo "$as_me: failed program was:" >&5
20527 sed 's/^/| /' conftest.$ac_ext >&5
20528
20529         ac_lo= ac_hi=
20530 fi
20531
20532 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20533 fi
20534
20535 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20536 # Binary search between lo and hi bounds.
20537 while test "x$ac_lo" != "x$ac_hi"; do
20538   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20539   cat >conftest.$ac_ext <<_ACEOF
20540 /* confdefs.h.  */
20541 _ACEOF
20542 cat confdefs.h >>conftest.$ac_ext
20543 cat >>conftest.$ac_ext <<_ACEOF
20544 /* end confdefs.h.  */
20545 $ac_includes_default
20546    typedef long ac__type_sizeof_;
20547 int
20548 main ()
20549 {
20550 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
20551 test_array [0] = 0
20552
20553   ;
20554   return 0;
20555 }
20556 _ACEOF
20557 rm -f conftest.$ac_objext
20558 if { (ac_try="$ac_compile"
20559 case "(($ac_try" in
20560   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20561   *) ac_try_echo=$ac_try;;
20562 esac
20563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20564   (eval "$ac_compile") 2>conftest.er1
20565   ac_status=$?
20566   grep -v '^ *+' conftest.er1 >conftest.err
20567   rm -f conftest.er1
20568   cat conftest.err >&5
20569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20570   (exit $ac_status); } && {
20571          test -z "$ac_c_werror_flag" ||
20572          test ! -s conftest.err
20573        } && test -s conftest.$ac_objext; then
20574   ac_hi=$ac_mid
20575 else
20576   echo "$as_me: failed program was:" >&5
20577 sed 's/^/| /' conftest.$ac_ext >&5
20578
20579         ac_lo=`expr '(' $ac_mid ')' + 1`
20580 fi
20581
20582 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20583 done
20584 case $ac_lo in
20585 ?*) ac_cv_sizeof_long=$ac_lo;;
20586 '') if test "$ac_cv_type_long" = yes; then
20587      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
20588 See \`config.log' for more details." >&5
20589 echo "$as_me: error: cannot compute sizeof (long)
20590 See \`config.log' for more details." >&2;}
20591    { (exit 77); exit 77; }; }
20592    else
20593      ac_cv_sizeof_long=0
20594    fi ;;
20595 esac
20596 else
20597   cat >conftest.$ac_ext <<_ACEOF
20598 /* confdefs.h.  */
20599 _ACEOF
20600 cat confdefs.h >>conftest.$ac_ext
20601 cat >>conftest.$ac_ext <<_ACEOF
20602 /* end confdefs.h.  */
20603 $ac_includes_default
20604    typedef long ac__type_sizeof_;
20605 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
20606 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
20607 #include <stdio.h>
20608 #include <stdlib.h>
20609 int
20610 main ()
20611 {
20612
20613   FILE *f = fopen ("conftest.val", "w");
20614   if (! f)
20615     return 1;
20616   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
20617     {
20618       long int i = longval ();
20619       if (i != ((long int) (sizeof (ac__type_sizeof_))))
20620         return 1;
20621       fprintf (f, "%ld\n", i);
20622     }
20623   else
20624     {
20625       unsigned long int i = ulongval ();
20626       if (i != ((long int) (sizeof (ac__type_sizeof_))))
20627         return 1;
20628       fprintf (f, "%lu\n", i);
20629     }
20630   return ferror (f) || fclose (f) != 0;
20631
20632   ;
20633   return 0;
20634 }
20635 _ACEOF
20636 rm -f conftest$ac_exeext
20637 if { (ac_try="$ac_link"
20638 case "(($ac_try" in
20639   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20640   *) ac_try_echo=$ac_try;;
20641 esac
20642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20643   (eval "$ac_link") 2>&5
20644   ac_status=$?
20645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20646   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20647   { (case "(($ac_try" in
20648   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20649   *) ac_try_echo=$ac_try;;
20650 esac
20651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20652   (eval "$ac_try") 2>&5
20653   ac_status=$?
20654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20655   (exit $ac_status); }; }; then
20656   ac_cv_sizeof_long=`cat conftest.val`
20657 else
20658   echo "$as_me: program exited with status $ac_status" >&5
20659 echo "$as_me: failed program was:" >&5
20660 sed 's/^/| /' conftest.$ac_ext >&5
20661
20662 ( exit $ac_status )
20663 if test "$ac_cv_type_long" = yes; then
20664      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
20665 See \`config.log' for more details." >&5
20666 echo "$as_me: error: cannot compute sizeof (long)
20667 See \`config.log' for more details." >&2;}
20668    { (exit 77); exit 77; }; }
20669    else
20670      ac_cv_sizeof_long=0
20671    fi
20672 fi
20673 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20674 fi
20675 rm -f conftest.val
20676 fi
20677 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
20678 echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
20679
20680
20681
20682 cat >>confdefs.h <<_ACEOF
20683 #define SIZEOF_LONG $ac_cv_sizeof_long
20684 _ACEOF
20685
20686
20687 { echo "$as_me:$LINENO: checking for size_t" >&5
20688 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
20689 if test "${ac_cv_type_size_t+set}" = set; then
20690   echo $ECHO_N "(cached) $ECHO_C" >&6
20691 else
20692   cat >conftest.$ac_ext <<_ACEOF
20693 /* confdefs.h.  */
20694 _ACEOF
20695 cat confdefs.h >>conftest.$ac_ext
20696 cat >>conftest.$ac_ext <<_ACEOF
20697 /* end confdefs.h.  */
20698 $ac_includes_default
20699 typedef size_t ac__type_new_;
20700 int
20701 main ()
20702 {
20703 if ((ac__type_new_ *) 0)
20704   return 0;
20705 if (sizeof (ac__type_new_))
20706   return 0;
20707   ;
20708   return 0;
20709 }
20710 _ACEOF
20711 rm -f conftest.$ac_objext
20712 if { (ac_try="$ac_compile"
20713 case "(($ac_try" in
20714   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20715   *) ac_try_echo=$ac_try;;
20716 esac
20717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20718   (eval "$ac_compile") 2>conftest.er1
20719   ac_status=$?
20720   grep -v '^ *+' conftest.er1 >conftest.err
20721   rm -f conftest.er1
20722   cat conftest.err >&5
20723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20724   (exit $ac_status); } && {
20725          test -z "$ac_c_werror_flag" ||
20726          test ! -s conftest.err
20727        } && test -s conftest.$ac_objext; then
20728   ac_cv_type_size_t=yes
20729 else
20730   echo "$as_me: failed program was:" >&5
20731 sed 's/^/| /' conftest.$ac_ext >&5
20732
20733         ac_cv_type_size_t=no
20734 fi
20735
20736 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20737 fi
20738 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
20739 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
20740
20741 # The cast to long int works around a bug in the HP C Compiler
20742 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20743 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20744 # This bug is HP SR number 8606223364.
20745 { echo "$as_me:$LINENO: checking size of size_t" >&5
20746 echo $ECHO_N "checking size of size_t... $ECHO_C" >&6; }
20747 if test "${ac_cv_sizeof_size_t+set}" = set; then
20748   echo $ECHO_N "(cached) $ECHO_C" >&6
20749 else
20750   if test "$cross_compiling" = yes; then
20751   # Depending upon the size, compute the lo and hi bounds.
20752 cat >conftest.$ac_ext <<_ACEOF
20753 /* confdefs.h.  */
20754 _ACEOF
20755 cat confdefs.h >>conftest.$ac_ext
20756 cat >>conftest.$ac_ext <<_ACEOF
20757 /* end confdefs.h.  */
20758 $ac_includes_default
20759    typedef size_t ac__type_sizeof_;
20760 int
20761 main ()
20762 {
20763 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
20764 test_array [0] = 0
20765
20766   ;
20767   return 0;
20768 }
20769 _ACEOF
20770 rm -f conftest.$ac_objext
20771 if { (ac_try="$ac_compile"
20772 case "(($ac_try" in
20773   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20774   *) ac_try_echo=$ac_try;;
20775 esac
20776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20777   (eval "$ac_compile") 2>conftest.er1
20778   ac_status=$?
20779   grep -v '^ *+' conftest.er1 >conftest.err
20780   rm -f conftest.er1
20781   cat conftest.err >&5
20782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20783   (exit $ac_status); } && {
20784          test -z "$ac_c_werror_flag" ||
20785          test ! -s conftest.err
20786        } && test -s conftest.$ac_objext; then
20787   ac_lo=0 ac_mid=0
20788   while :; do
20789     cat >conftest.$ac_ext <<_ACEOF
20790 /* confdefs.h.  */
20791 _ACEOF
20792 cat confdefs.h >>conftest.$ac_ext
20793 cat >>conftest.$ac_ext <<_ACEOF
20794 /* end confdefs.h.  */
20795 $ac_includes_default
20796    typedef size_t ac__type_sizeof_;
20797 int
20798 main ()
20799 {
20800 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
20801 test_array [0] = 0
20802
20803   ;
20804   return 0;
20805 }
20806 _ACEOF
20807 rm -f conftest.$ac_objext
20808 if { (ac_try="$ac_compile"
20809 case "(($ac_try" in
20810   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20811   *) ac_try_echo=$ac_try;;
20812 esac
20813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20814   (eval "$ac_compile") 2>conftest.er1
20815   ac_status=$?
20816   grep -v '^ *+' conftest.er1 >conftest.err
20817   rm -f conftest.er1
20818   cat conftest.err >&5
20819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20820   (exit $ac_status); } && {
20821          test -z "$ac_c_werror_flag" ||
20822          test ! -s conftest.err
20823        } && test -s conftest.$ac_objext; then
20824   ac_hi=$ac_mid; break
20825 else
20826   echo "$as_me: failed program was:" >&5
20827 sed 's/^/| /' conftest.$ac_ext >&5
20828
20829         ac_lo=`expr $ac_mid + 1`
20830                         if test $ac_lo -le $ac_mid; then
20831                           ac_lo= ac_hi=
20832                           break
20833                         fi
20834                         ac_mid=`expr 2 '*' $ac_mid + 1`
20835 fi
20836
20837 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20838   done
20839 else
20840   echo "$as_me: failed program was:" >&5
20841 sed 's/^/| /' conftest.$ac_ext >&5
20842
20843         cat >conftest.$ac_ext <<_ACEOF
20844 /* confdefs.h.  */
20845 _ACEOF
20846 cat confdefs.h >>conftest.$ac_ext
20847 cat >>conftest.$ac_ext <<_ACEOF
20848 /* end confdefs.h.  */
20849 $ac_includes_default
20850    typedef size_t ac__type_sizeof_;
20851 int
20852 main ()
20853 {
20854 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
20855 test_array [0] = 0
20856
20857   ;
20858   return 0;
20859 }
20860 _ACEOF
20861 rm -f conftest.$ac_objext
20862 if { (ac_try="$ac_compile"
20863 case "(($ac_try" in
20864   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20865   *) ac_try_echo=$ac_try;;
20866 esac
20867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20868   (eval "$ac_compile") 2>conftest.er1
20869   ac_status=$?
20870   grep -v '^ *+' conftest.er1 >conftest.err
20871   rm -f conftest.er1
20872   cat conftest.err >&5
20873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20874   (exit $ac_status); } && {
20875          test -z "$ac_c_werror_flag" ||
20876          test ! -s conftest.err
20877        } && test -s conftest.$ac_objext; then
20878   ac_hi=-1 ac_mid=-1
20879   while :; do
20880     cat >conftest.$ac_ext <<_ACEOF
20881 /* confdefs.h.  */
20882 _ACEOF
20883 cat confdefs.h >>conftest.$ac_ext
20884 cat >>conftest.$ac_ext <<_ACEOF
20885 /* end confdefs.h.  */
20886 $ac_includes_default
20887    typedef size_t ac__type_sizeof_;
20888 int
20889 main ()
20890 {
20891 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
20892 test_array [0] = 0
20893
20894   ;
20895   return 0;
20896 }
20897 _ACEOF
20898 rm -f conftest.$ac_objext
20899 if { (ac_try="$ac_compile"
20900 case "(($ac_try" in
20901   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20902   *) ac_try_echo=$ac_try;;
20903 esac
20904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20905   (eval "$ac_compile") 2>conftest.er1
20906   ac_status=$?
20907   grep -v '^ *+' conftest.er1 >conftest.err
20908   rm -f conftest.er1
20909   cat conftest.err >&5
20910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20911   (exit $ac_status); } && {
20912          test -z "$ac_c_werror_flag" ||
20913          test ! -s conftest.err
20914        } && test -s conftest.$ac_objext; then
20915   ac_lo=$ac_mid; break
20916 else
20917   echo "$as_me: failed program was:" >&5
20918 sed 's/^/| /' conftest.$ac_ext >&5
20919
20920         ac_hi=`expr '(' $ac_mid ')' - 1`
20921                         if test $ac_mid -le $ac_hi; then
20922                           ac_lo= ac_hi=
20923                           break
20924                         fi
20925                         ac_mid=`expr 2 '*' $ac_mid`
20926 fi
20927
20928 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20929   done
20930 else
20931   echo "$as_me: failed program was:" >&5
20932 sed 's/^/| /' conftest.$ac_ext >&5
20933
20934         ac_lo= ac_hi=
20935 fi
20936
20937 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20938 fi
20939
20940 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20941 # Binary search between lo and hi bounds.
20942 while test "x$ac_lo" != "x$ac_hi"; do
20943   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20944   cat >conftest.$ac_ext <<_ACEOF
20945 /* confdefs.h.  */
20946 _ACEOF
20947 cat confdefs.h >>conftest.$ac_ext
20948 cat >>conftest.$ac_ext <<_ACEOF
20949 /* end confdefs.h.  */
20950 $ac_includes_default
20951    typedef size_t ac__type_sizeof_;
20952 int
20953 main ()
20954 {
20955 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
20956 test_array [0] = 0
20957
20958   ;
20959   return 0;
20960 }
20961 _ACEOF
20962 rm -f conftest.$ac_objext
20963 if { (ac_try="$ac_compile"
20964 case "(($ac_try" in
20965   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20966   *) ac_try_echo=$ac_try;;
20967 esac
20968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20969   (eval "$ac_compile") 2>conftest.er1
20970   ac_status=$?
20971   grep -v '^ *+' conftest.er1 >conftest.err
20972   rm -f conftest.er1
20973   cat conftest.err >&5
20974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20975   (exit $ac_status); } && {
20976          test -z "$ac_c_werror_flag" ||
20977          test ! -s conftest.err
20978        } && test -s conftest.$ac_objext; then
20979   ac_hi=$ac_mid
20980 else
20981   echo "$as_me: failed program was:" >&5
20982 sed 's/^/| /' conftest.$ac_ext >&5
20983
20984         ac_lo=`expr '(' $ac_mid ')' + 1`
20985 fi
20986
20987 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20988 done
20989 case $ac_lo in
20990 ?*) ac_cv_sizeof_size_t=$ac_lo;;
20991 '') if test "$ac_cv_type_size_t" = yes; then
20992      { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
20993 See \`config.log' for more details." >&5
20994 echo "$as_me: error: cannot compute sizeof (size_t)
20995 See \`config.log' for more details." >&2;}
20996    { (exit 77); exit 77; }; }
20997    else
20998      ac_cv_sizeof_size_t=0
20999    fi ;;
21000 esac
21001 else
21002   cat >conftest.$ac_ext <<_ACEOF
21003 /* confdefs.h.  */
21004 _ACEOF
21005 cat confdefs.h >>conftest.$ac_ext
21006 cat >>conftest.$ac_ext <<_ACEOF
21007 /* end confdefs.h.  */
21008 $ac_includes_default
21009    typedef size_t ac__type_sizeof_;
21010 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
21011 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
21012 #include <stdio.h>
21013 #include <stdlib.h>
21014 int
21015 main ()
21016 {
21017
21018   FILE *f = fopen ("conftest.val", "w");
21019   if (! f)
21020     return 1;
21021   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
21022     {
21023       long int i = longval ();
21024       if (i != ((long int) (sizeof (ac__type_sizeof_))))
21025         return 1;
21026       fprintf (f, "%ld\n", i);
21027     }
21028   else
21029     {
21030       unsigned long int i = ulongval ();
21031       if (i != ((long int) (sizeof (ac__type_sizeof_))))
21032         return 1;
21033       fprintf (f, "%lu\n", i);
21034     }
21035   return ferror (f) || fclose (f) != 0;
21036
21037   ;
21038   return 0;
21039 }
21040 _ACEOF
21041 rm -f conftest$ac_exeext
21042 if { (ac_try="$ac_link"
21043 case "(($ac_try" in
21044   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21045   *) ac_try_echo=$ac_try;;
21046 esac
21047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21048   (eval "$ac_link") 2>&5
21049   ac_status=$?
21050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21051   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21052   { (case "(($ac_try" in
21053   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21054   *) ac_try_echo=$ac_try;;
21055 esac
21056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21057   (eval "$ac_try") 2>&5
21058   ac_status=$?
21059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21060   (exit $ac_status); }; }; then
21061   ac_cv_sizeof_size_t=`cat conftest.val`
21062 else
21063   echo "$as_me: program exited with status $ac_status" >&5
21064 echo "$as_me: failed program was:" >&5
21065 sed 's/^/| /' conftest.$ac_ext >&5
21066
21067 ( exit $ac_status )
21068 if test "$ac_cv_type_size_t" = yes; then
21069      { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
21070 See \`config.log' for more details." >&5
21071 echo "$as_me: error: cannot compute sizeof (size_t)
21072 See \`config.log' for more details." >&2;}
21073    { (exit 77); exit 77; }; }
21074    else
21075      ac_cv_sizeof_size_t=0
21076    fi
21077 fi
21078 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21079 fi
21080 rm -f conftest.val
21081 fi
21082 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
21083 echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6; }
21084
21085
21086
21087 cat >>confdefs.h <<_ACEOF
21088 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
21089 _ACEOF
21090
21091
21092
21093 case "${host}" in
21094     arm-*-linux* )
21095         { echo "$as_me:$LINENO: checking for long long" >&5
21096 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
21097 if test "${ac_cv_type_long_long+set}" = set; then
21098   echo $ECHO_N "(cached) $ECHO_C" >&6
21099 else
21100   cat >conftest.$ac_ext <<_ACEOF
21101 /* confdefs.h.  */
21102 _ACEOF
21103 cat confdefs.h >>conftest.$ac_ext
21104 cat >>conftest.$ac_ext <<_ACEOF
21105 /* end confdefs.h.  */
21106 $ac_includes_default
21107 typedef long long ac__type_new_;
21108 int
21109 main ()
21110 {
21111 if ((ac__type_new_ *) 0)
21112   return 0;
21113 if (sizeof (ac__type_new_))
21114   return 0;
21115   ;
21116   return 0;
21117 }
21118 _ACEOF
21119 rm -f conftest.$ac_objext
21120 if { (ac_try="$ac_compile"
21121 case "(($ac_try" in
21122   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21123   *) ac_try_echo=$ac_try;;
21124 esac
21125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21126   (eval "$ac_compile") 2>conftest.er1
21127   ac_status=$?
21128   grep -v '^ *+' conftest.er1 >conftest.err
21129   rm -f conftest.er1
21130   cat conftest.err >&5
21131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21132   (exit $ac_status); } && {
21133          test -z "$ac_c_werror_flag" ||
21134          test ! -s conftest.err
21135        } && test -s conftest.$ac_objext; then
21136   ac_cv_type_long_long=yes
21137 else
21138   echo "$as_me: failed program was:" >&5
21139 sed 's/^/| /' conftest.$ac_ext >&5
21140
21141         ac_cv_type_long_long=no
21142 fi
21143
21144 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21145 fi
21146 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
21147 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
21148
21149 # The cast to long int works around a bug in the HP C Compiler
21150 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21151 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21152 # This bug is HP SR number 8606223364.
21153 { echo "$as_me:$LINENO: checking size of long long" >&5
21154 echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
21155 if test "${ac_cv_sizeof_long_long+set}" = set; then
21156   echo $ECHO_N "(cached) $ECHO_C" >&6
21157 else
21158   if test "$cross_compiling" = yes; then
21159   # Depending upon the size, compute the lo and hi bounds.
21160 cat >conftest.$ac_ext <<_ACEOF
21161 /* confdefs.h.  */
21162 _ACEOF
21163 cat confdefs.h >>conftest.$ac_ext
21164 cat >>conftest.$ac_ext <<_ACEOF
21165 /* end confdefs.h.  */
21166 $ac_includes_default
21167    typedef long long ac__type_sizeof_;
21168 int
21169 main ()
21170 {
21171 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
21172 test_array [0] = 0
21173
21174   ;
21175   return 0;
21176 }
21177 _ACEOF
21178 rm -f conftest.$ac_objext
21179 if { (ac_try="$ac_compile"
21180 case "(($ac_try" in
21181   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21182   *) ac_try_echo=$ac_try;;
21183 esac
21184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21185   (eval "$ac_compile") 2>conftest.er1
21186   ac_status=$?
21187   grep -v '^ *+' conftest.er1 >conftest.err
21188   rm -f conftest.er1
21189   cat conftest.err >&5
21190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21191   (exit $ac_status); } && {
21192          test -z "$ac_c_werror_flag" ||
21193          test ! -s conftest.err
21194        } && test -s conftest.$ac_objext; then
21195   ac_lo=0 ac_mid=0
21196   while :; do
21197     cat >conftest.$ac_ext <<_ACEOF
21198 /* confdefs.h.  */
21199 _ACEOF
21200 cat confdefs.h >>conftest.$ac_ext
21201 cat >>conftest.$ac_ext <<_ACEOF
21202 /* end confdefs.h.  */
21203 $ac_includes_default
21204    typedef long long ac__type_sizeof_;
21205 int
21206 main ()
21207 {
21208 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21209 test_array [0] = 0
21210
21211   ;
21212   return 0;
21213 }
21214 _ACEOF
21215 rm -f conftest.$ac_objext
21216 if { (ac_try="$ac_compile"
21217 case "(($ac_try" in
21218   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21219   *) ac_try_echo=$ac_try;;
21220 esac
21221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21222   (eval "$ac_compile") 2>conftest.er1
21223   ac_status=$?
21224   grep -v '^ *+' conftest.er1 >conftest.err
21225   rm -f conftest.er1
21226   cat conftest.err >&5
21227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21228   (exit $ac_status); } && {
21229          test -z "$ac_c_werror_flag" ||
21230          test ! -s conftest.err
21231        } && test -s conftest.$ac_objext; then
21232   ac_hi=$ac_mid; break
21233 else
21234   echo "$as_me: failed program was:" >&5
21235 sed 's/^/| /' conftest.$ac_ext >&5
21236
21237         ac_lo=`expr $ac_mid + 1`
21238                         if test $ac_lo -le $ac_mid; then
21239                           ac_lo= ac_hi=
21240                           break
21241                         fi
21242                         ac_mid=`expr 2 '*' $ac_mid + 1`
21243 fi
21244
21245 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21246   done
21247 else
21248   echo "$as_me: failed program was:" >&5
21249 sed 's/^/| /' conftest.$ac_ext >&5
21250
21251         cat >conftest.$ac_ext <<_ACEOF
21252 /* confdefs.h.  */
21253 _ACEOF
21254 cat confdefs.h >>conftest.$ac_ext
21255 cat >>conftest.$ac_ext <<_ACEOF
21256 /* end confdefs.h.  */
21257 $ac_includes_default
21258    typedef long long ac__type_sizeof_;
21259 int
21260 main ()
21261 {
21262 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
21263 test_array [0] = 0
21264
21265   ;
21266   return 0;
21267 }
21268 _ACEOF
21269 rm -f conftest.$ac_objext
21270 if { (ac_try="$ac_compile"
21271 case "(($ac_try" in
21272   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21273   *) ac_try_echo=$ac_try;;
21274 esac
21275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21276   (eval "$ac_compile") 2>conftest.er1
21277   ac_status=$?
21278   grep -v '^ *+' conftest.er1 >conftest.err
21279   rm -f conftest.er1
21280   cat conftest.err >&5
21281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21282   (exit $ac_status); } && {
21283          test -z "$ac_c_werror_flag" ||
21284          test ! -s conftest.err
21285        } && test -s conftest.$ac_objext; then
21286   ac_hi=-1 ac_mid=-1
21287   while :; do
21288     cat >conftest.$ac_ext <<_ACEOF
21289 /* confdefs.h.  */
21290 _ACEOF
21291 cat confdefs.h >>conftest.$ac_ext
21292 cat >>conftest.$ac_ext <<_ACEOF
21293 /* end confdefs.h.  */
21294 $ac_includes_default
21295    typedef long long ac__type_sizeof_;
21296 int
21297 main ()
21298 {
21299 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
21300 test_array [0] = 0
21301
21302   ;
21303   return 0;
21304 }
21305 _ACEOF
21306 rm -f conftest.$ac_objext
21307 if { (ac_try="$ac_compile"
21308 case "(($ac_try" in
21309   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21310   *) ac_try_echo=$ac_try;;
21311 esac
21312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21313   (eval "$ac_compile") 2>conftest.er1
21314   ac_status=$?
21315   grep -v '^ *+' conftest.er1 >conftest.err
21316   rm -f conftest.er1
21317   cat conftest.err >&5
21318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21319   (exit $ac_status); } && {
21320          test -z "$ac_c_werror_flag" ||
21321          test ! -s conftest.err
21322        } && test -s conftest.$ac_objext; then
21323   ac_lo=$ac_mid; break
21324 else
21325   echo "$as_me: failed program was:" >&5
21326 sed 's/^/| /' conftest.$ac_ext >&5
21327
21328         ac_hi=`expr '(' $ac_mid ')' - 1`
21329                         if test $ac_mid -le $ac_hi; then
21330                           ac_lo= ac_hi=
21331                           break
21332                         fi
21333                         ac_mid=`expr 2 '*' $ac_mid`
21334 fi
21335
21336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21337   done
21338 else
21339   echo "$as_me: failed program was:" >&5
21340 sed 's/^/| /' conftest.$ac_ext >&5
21341
21342         ac_lo= ac_hi=
21343 fi
21344
21345 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21346 fi
21347
21348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21349 # Binary search between lo and hi bounds.
21350 while test "x$ac_lo" != "x$ac_hi"; do
21351   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21352   cat >conftest.$ac_ext <<_ACEOF
21353 /* confdefs.h.  */
21354 _ACEOF
21355 cat confdefs.h >>conftest.$ac_ext
21356 cat >>conftest.$ac_ext <<_ACEOF
21357 /* end confdefs.h.  */
21358 $ac_includes_default
21359    typedef long long ac__type_sizeof_;
21360 int
21361 main ()
21362 {
21363 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21364 test_array [0] = 0
21365
21366   ;
21367   return 0;
21368 }
21369 _ACEOF
21370 rm -f conftest.$ac_objext
21371 if { (ac_try="$ac_compile"
21372 case "(($ac_try" in
21373   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21374   *) ac_try_echo=$ac_try;;
21375 esac
21376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21377   (eval "$ac_compile") 2>conftest.er1
21378   ac_status=$?
21379   grep -v '^ *+' conftest.er1 >conftest.err
21380   rm -f conftest.er1
21381   cat conftest.err >&5
21382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21383   (exit $ac_status); } && {
21384          test -z "$ac_c_werror_flag" ||
21385          test ! -s conftest.err
21386        } && test -s conftest.$ac_objext; then
21387   ac_hi=$ac_mid
21388 else
21389   echo "$as_me: failed program was:" >&5
21390 sed 's/^/| /' conftest.$ac_ext >&5
21391
21392         ac_lo=`expr '(' $ac_mid ')' + 1`
21393 fi
21394
21395 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21396 done
21397 case $ac_lo in
21398 ?*) ac_cv_sizeof_long_long=$ac_lo;;
21399 '') if test "$ac_cv_type_long_long" = yes; then
21400      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
21401 See \`config.log' for more details." >&5
21402 echo "$as_me: error: cannot compute sizeof (long long)
21403 See \`config.log' for more details." >&2;}
21404    { (exit 77); exit 77; }; }
21405    else
21406      ac_cv_sizeof_long_long=0
21407    fi ;;
21408 esac
21409 else
21410   cat >conftest.$ac_ext <<_ACEOF
21411 /* confdefs.h.  */
21412 _ACEOF
21413 cat confdefs.h >>conftest.$ac_ext
21414 cat >>conftest.$ac_ext <<_ACEOF
21415 /* end confdefs.h.  */
21416 $ac_includes_default
21417    typedef long long ac__type_sizeof_;
21418 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
21419 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
21420 #include <stdio.h>
21421 #include <stdlib.h>
21422 int
21423 main ()
21424 {
21425
21426   FILE *f = fopen ("conftest.val", "w");
21427   if (! f)
21428     return 1;
21429   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
21430     {
21431       long int i = longval ();
21432       if (i != ((long int) (sizeof (ac__type_sizeof_))))
21433         return 1;
21434       fprintf (f, "%ld\n", i);
21435     }
21436   else
21437     {
21438       unsigned long int i = ulongval ();
21439       if (i != ((long int) (sizeof (ac__type_sizeof_))))
21440         return 1;
21441       fprintf (f, "%lu\n", i);
21442     }
21443   return ferror (f) || fclose (f) != 0;
21444
21445   ;
21446   return 0;
21447 }
21448 _ACEOF
21449 rm -f conftest$ac_exeext
21450 if { (ac_try="$ac_link"
21451 case "(($ac_try" in
21452   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21453   *) ac_try_echo=$ac_try;;
21454 esac
21455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21456   (eval "$ac_link") 2>&5
21457   ac_status=$?
21458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21459   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21460   { (case "(($ac_try" in
21461   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21462   *) ac_try_echo=$ac_try;;
21463 esac
21464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21465   (eval "$ac_try") 2>&5
21466   ac_status=$?
21467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21468   (exit $ac_status); }; }; then
21469   ac_cv_sizeof_long_long=`cat conftest.val`
21470 else
21471   echo "$as_me: program exited with status $ac_status" >&5
21472 echo "$as_me: failed program was:" >&5
21473 sed 's/^/| /' conftest.$ac_ext >&5
21474
21475 ( exit $ac_status )
21476 if test "$ac_cv_type_long_long" = yes; then
21477      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
21478 See \`config.log' for more details." >&5
21479 echo "$as_me: error: cannot compute sizeof (long long)
21480 See \`config.log' for more details." >&2;}
21481    { (exit 77); exit 77; }; }
21482    else
21483      ac_cv_sizeof_long_long=0
21484    fi
21485 fi
21486 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21487 fi
21488 rm -f conftest.val
21489 fi
21490 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
21491 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
21492
21493
21494
21495 cat >>confdefs.h <<_ACEOF
21496 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
21497 _ACEOF
21498
21499
21500     ;;
21501     *-hp-hpux* )
21502         { echo "$as_me:$LINENO: checking for long long" >&5
21503 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
21504 if test "${ac_cv_type_long_long+set}" = set; then
21505   echo $ECHO_N "(cached) $ECHO_C" >&6
21506 else
21507   cat >conftest.$ac_ext <<_ACEOF
21508 /* confdefs.h.  */
21509 _ACEOF
21510 cat confdefs.h >>conftest.$ac_ext
21511 cat >>conftest.$ac_ext <<_ACEOF
21512 /* end confdefs.h.  */
21513 $ac_includes_default
21514 typedef long long ac__type_new_;
21515 int
21516 main ()
21517 {
21518 if ((ac__type_new_ *) 0)
21519   return 0;
21520 if (sizeof (ac__type_new_))
21521   return 0;
21522   ;
21523   return 0;
21524 }
21525 _ACEOF
21526 rm -f conftest.$ac_objext
21527 if { (ac_try="$ac_compile"
21528 case "(($ac_try" in
21529   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21530   *) ac_try_echo=$ac_try;;
21531 esac
21532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21533   (eval "$ac_compile") 2>conftest.er1
21534   ac_status=$?
21535   grep -v '^ *+' conftest.er1 >conftest.err
21536   rm -f conftest.er1
21537   cat conftest.err >&5
21538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21539   (exit $ac_status); } && {
21540          test -z "$ac_c_werror_flag" ||
21541          test ! -s conftest.err
21542        } && test -s conftest.$ac_objext; then
21543   ac_cv_type_long_long=yes
21544 else
21545   echo "$as_me: failed program was:" >&5
21546 sed 's/^/| /' conftest.$ac_ext >&5
21547
21548         ac_cv_type_long_long=no
21549 fi
21550
21551 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21552 fi
21553 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
21554 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
21555
21556 # The cast to long int works around a bug in the HP C Compiler
21557 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21558 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21559 # This bug is HP SR number 8606223364.
21560 { echo "$as_me:$LINENO: checking size of long long" >&5
21561 echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
21562 if test "${ac_cv_sizeof_long_long+set}" = set; then
21563   echo $ECHO_N "(cached) $ECHO_C" >&6
21564 else
21565   if test "$cross_compiling" = yes; then
21566   # Depending upon the size, compute the lo and hi bounds.
21567 cat >conftest.$ac_ext <<_ACEOF
21568 /* confdefs.h.  */
21569 _ACEOF
21570 cat confdefs.h >>conftest.$ac_ext
21571 cat >>conftest.$ac_ext <<_ACEOF
21572 /* end confdefs.h.  */
21573 $ac_includes_default
21574    typedef long long ac__type_sizeof_;
21575 int
21576 main ()
21577 {
21578 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
21579 test_array [0] = 0
21580
21581   ;
21582   return 0;
21583 }
21584 _ACEOF
21585 rm -f conftest.$ac_objext
21586 if { (ac_try="$ac_compile"
21587 case "(($ac_try" in
21588   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21589   *) ac_try_echo=$ac_try;;
21590 esac
21591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21592   (eval "$ac_compile") 2>conftest.er1
21593   ac_status=$?
21594   grep -v '^ *+' conftest.er1 >conftest.err
21595   rm -f conftest.er1
21596   cat conftest.err >&5
21597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21598   (exit $ac_status); } && {
21599          test -z "$ac_c_werror_flag" ||
21600          test ! -s conftest.err
21601        } && test -s conftest.$ac_objext; then
21602   ac_lo=0 ac_mid=0
21603   while :; do
21604     cat >conftest.$ac_ext <<_ACEOF
21605 /* confdefs.h.  */
21606 _ACEOF
21607 cat confdefs.h >>conftest.$ac_ext
21608 cat >>conftest.$ac_ext <<_ACEOF
21609 /* end confdefs.h.  */
21610 $ac_includes_default
21611    typedef long long ac__type_sizeof_;
21612 int
21613 main ()
21614 {
21615 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21616 test_array [0] = 0
21617
21618   ;
21619   return 0;
21620 }
21621 _ACEOF
21622 rm -f conftest.$ac_objext
21623 if { (ac_try="$ac_compile"
21624 case "(($ac_try" in
21625   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21626   *) ac_try_echo=$ac_try;;
21627 esac
21628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21629   (eval "$ac_compile") 2>conftest.er1
21630   ac_status=$?
21631   grep -v '^ *+' conftest.er1 >conftest.err
21632   rm -f conftest.er1
21633   cat conftest.err >&5
21634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21635   (exit $ac_status); } && {
21636          test -z "$ac_c_werror_flag" ||
21637          test ! -s conftest.err
21638        } && test -s conftest.$ac_objext; then
21639   ac_hi=$ac_mid; break
21640 else
21641   echo "$as_me: failed program was:" >&5
21642 sed 's/^/| /' conftest.$ac_ext >&5
21643
21644         ac_lo=`expr $ac_mid + 1`
21645                         if test $ac_lo -le $ac_mid; then
21646                           ac_lo= ac_hi=
21647                           break
21648                         fi
21649                         ac_mid=`expr 2 '*' $ac_mid + 1`
21650 fi
21651
21652 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21653   done
21654 else
21655   echo "$as_me: failed program was:" >&5
21656 sed 's/^/| /' conftest.$ac_ext >&5
21657
21658         cat >conftest.$ac_ext <<_ACEOF
21659 /* confdefs.h.  */
21660 _ACEOF
21661 cat confdefs.h >>conftest.$ac_ext
21662 cat >>conftest.$ac_ext <<_ACEOF
21663 /* end confdefs.h.  */
21664 $ac_includes_default
21665    typedef long long ac__type_sizeof_;
21666 int
21667 main ()
21668 {
21669 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
21670 test_array [0] = 0
21671
21672   ;
21673   return 0;
21674 }
21675 _ACEOF
21676 rm -f conftest.$ac_objext
21677 if { (ac_try="$ac_compile"
21678 case "(($ac_try" in
21679   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21680   *) ac_try_echo=$ac_try;;
21681 esac
21682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21683   (eval "$ac_compile") 2>conftest.er1
21684   ac_status=$?
21685   grep -v '^ *+' conftest.er1 >conftest.err
21686   rm -f conftest.er1
21687   cat conftest.err >&5
21688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21689   (exit $ac_status); } && {
21690          test -z "$ac_c_werror_flag" ||
21691          test ! -s conftest.err
21692        } && test -s conftest.$ac_objext; then
21693   ac_hi=-1 ac_mid=-1
21694   while :; do
21695     cat >conftest.$ac_ext <<_ACEOF
21696 /* confdefs.h.  */
21697 _ACEOF
21698 cat confdefs.h >>conftest.$ac_ext
21699 cat >>conftest.$ac_ext <<_ACEOF
21700 /* end confdefs.h.  */
21701 $ac_includes_default
21702    typedef long long ac__type_sizeof_;
21703 int
21704 main ()
21705 {
21706 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
21707 test_array [0] = 0
21708
21709   ;
21710   return 0;
21711 }
21712 _ACEOF
21713 rm -f conftest.$ac_objext
21714 if { (ac_try="$ac_compile"
21715 case "(($ac_try" in
21716   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21717   *) ac_try_echo=$ac_try;;
21718 esac
21719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21720   (eval "$ac_compile") 2>conftest.er1
21721   ac_status=$?
21722   grep -v '^ *+' conftest.er1 >conftest.err
21723   rm -f conftest.er1
21724   cat conftest.err >&5
21725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21726   (exit $ac_status); } && {
21727          test -z "$ac_c_werror_flag" ||
21728          test ! -s conftest.err
21729        } && test -s conftest.$ac_objext; then
21730   ac_lo=$ac_mid; break
21731 else
21732   echo "$as_me: failed program was:" >&5
21733 sed 's/^/| /' conftest.$ac_ext >&5
21734
21735         ac_hi=`expr '(' $ac_mid ')' - 1`
21736                         if test $ac_mid -le $ac_hi; then
21737                           ac_lo= ac_hi=
21738                           break
21739                         fi
21740                         ac_mid=`expr 2 '*' $ac_mid`
21741 fi
21742
21743 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21744   done
21745 else
21746   echo "$as_me: failed program was:" >&5
21747 sed 's/^/| /' conftest.$ac_ext >&5
21748
21749         ac_lo= ac_hi=
21750 fi
21751
21752 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21753 fi
21754
21755 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21756 # Binary search between lo and hi bounds.
21757 while test "x$ac_lo" != "x$ac_hi"; do
21758   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21759   cat >conftest.$ac_ext <<_ACEOF
21760 /* confdefs.h.  */
21761 _ACEOF
21762 cat confdefs.h >>conftest.$ac_ext
21763 cat >>conftest.$ac_ext <<_ACEOF
21764 /* end confdefs.h.  */
21765 $ac_includes_default
21766    typedef long long ac__type_sizeof_;
21767 int
21768 main ()
21769 {
21770 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21771 test_array [0] = 0
21772
21773   ;
21774   return 0;
21775 }
21776 _ACEOF
21777 rm -f conftest.$ac_objext
21778 if { (ac_try="$ac_compile"
21779 case "(($ac_try" in
21780   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21781   *) ac_try_echo=$ac_try;;
21782 esac
21783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21784   (eval "$ac_compile") 2>conftest.er1
21785   ac_status=$?
21786   grep -v '^ *+' conftest.er1 >conftest.err
21787   rm -f conftest.er1
21788   cat conftest.err >&5
21789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21790   (exit $ac_status); } && {
21791          test -z "$ac_c_werror_flag" ||
21792          test ! -s conftest.err
21793        } && test -s conftest.$ac_objext; then
21794   ac_hi=$ac_mid
21795 else
21796   echo "$as_me: failed program was:" >&5
21797 sed 's/^/| /' conftest.$ac_ext >&5
21798
21799         ac_lo=`expr '(' $ac_mid ')' + 1`
21800 fi
21801
21802 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21803 done
21804 case $ac_lo in
21805 ?*) ac_cv_sizeof_long_long=$ac_lo;;
21806 '') if test "$ac_cv_type_long_long" = yes; then
21807      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
21808 See \`config.log' for more details." >&5
21809 echo "$as_me: error: cannot compute sizeof (long long)
21810 See \`config.log' for more details." >&2;}
21811    { (exit 77); exit 77; }; }
21812    else
21813      ac_cv_sizeof_long_long=0
21814    fi ;;
21815 esac
21816 else
21817   cat >conftest.$ac_ext <<_ACEOF
21818 /* confdefs.h.  */
21819 _ACEOF
21820 cat confdefs.h >>conftest.$ac_ext
21821 cat >>conftest.$ac_ext <<_ACEOF
21822 /* end confdefs.h.  */
21823 $ac_includes_default
21824    typedef long long ac__type_sizeof_;
21825 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
21826 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
21827 #include <stdio.h>
21828 #include <stdlib.h>
21829 int
21830 main ()
21831 {
21832
21833   FILE *f = fopen ("conftest.val", "w");
21834   if (! f)
21835     return 1;
21836   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
21837     {
21838       long int i = longval ();
21839       if (i != ((long int) (sizeof (ac__type_sizeof_))))
21840         return 1;
21841       fprintf (f, "%ld\n", i);
21842     }
21843   else
21844     {
21845       unsigned long int i = ulongval ();
21846       if (i != ((long int) (sizeof (ac__type_sizeof_))))
21847         return 1;
21848       fprintf (f, "%lu\n", i);
21849     }
21850   return ferror (f) || fclose (f) != 0;
21851
21852   ;
21853   return 0;
21854 }
21855 _ACEOF
21856 rm -f conftest$ac_exeext
21857 if { (ac_try="$ac_link"
21858 case "(($ac_try" in
21859   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21860   *) ac_try_echo=$ac_try;;
21861 esac
21862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21863   (eval "$ac_link") 2>&5
21864   ac_status=$?
21865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21866   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21867   { (case "(($ac_try" in
21868   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21869   *) ac_try_echo=$ac_try;;
21870 esac
21871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21872   (eval "$ac_try") 2>&5
21873   ac_status=$?
21874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21875   (exit $ac_status); }; }; then
21876   ac_cv_sizeof_long_long=`cat conftest.val`
21877 else
21878   echo "$as_me: program exited with status $ac_status" >&5
21879 echo "$as_me: failed program was:" >&5
21880 sed 's/^/| /' conftest.$ac_ext >&5
21881
21882 ( exit $ac_status )
21883 if test "$ac_cv_type_long_long" = yes; then
21884      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
21885 See \`config.log' for more details." >&5
21886 echo "$as_me: error: cannot compute sizeof (long long)
21887 See \`config.log' for more details." >&2;}
21888    { (exit 77); exit 77; }; }
21889    else
21890      ac_cv_sizeof_long_long=0
21891    fi
21892 fi
21893 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21894 fi
21895 rm -f conftest.val
21896 fi
21897 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
21898 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
21899
21900
21901
21902 cat >>confdefs.h <<_ACEOF
21903 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
21904 _ACEOF
21905
21906
21907         if test "$ac_cv_sizeof_long_long" != 0; then
21908                         CPPFLAGS="-D_INCLUDE_LONGLONG $CPPFLAGS"
21909         fi
21910     ;;
21911     * )
21912         { echo "$as_me:$LINENO: checking for long long" >&5
21913 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
21914 if test "${ac_cv_type_long_long+set}" = set; then
21915   echo $ECHO_N "(cached) $ECHO_C" >&6
21916 else
21917   cat >conftest.$ac_ext <<_ACEOF
21918 /* confdefs.h.  */
21919 _ACEOF
21920 cat confdefs.h >>conftest.$ac_ext
21921 cat >>conftest.$ac_ext <<_ACEOF
21922 /* end confdefs.h.  */
21923 $ac_includes_default
21924 typedef long long ac__type_new_;
21925 int
21926 main ()
21927 {
21928 if ((ac__type_new_ *) 0)
21929   return 0;
21930 if (sizeof (ac__type_new_))
21931   return 0;
21932   ;
21933   return 0;
21934 }
21935 _ACEOF
21936 rm -f conftest.$ac_objext
21937 if { (ac_try="$ac_compile"
21938 case "(($ac_try" in
21939   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21940   *) ac_try_echo=$ac_try;;
21941 esac
21942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21943   (eval "$ac_compile") 2>conftest.er1
21944   ac_status=$?
21945   grep -v '^ *+' conftest.er1 >conftest.err
21946   rm -f conftest.er1
21947   cat conftest.err >&5
21948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21949   (exit $ac_status); } && {
21950          test -z "$ac_c_werror_flag" ||
21951          test ! -s conftest.err
21952        } && test -s conftest.$ac_objext; then
21953   ac_cv_type_long_long=yes
21954 else
21955   echo "$as_me: failed program was:" >&5
21956 sed 's/^/| /' conftest.$ac_ext >&5
21957
21958         ac_cv_type_long_long=no
21959 fi
21960
21961 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21962 fi
21963 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
21964 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
21965
21966 # The cast to long int works around a bug in the HP C Compiler
21967 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21968 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21969 # This bug is HP SR number 8606223364.
21970 { echo "$as_me:$LINENO: checking size of long long" >&5
21971 echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
21972 if test "${ac_cv_sizeof_long_long+set}" = set; then
21973   echo $ECHO_N "(cached) $ECHO_C" >&6
21974 else
21975   if test "$cross_compiling" = yes; then
21976   # Depending upon the size, compute the lo and hi bounds.
21977 cat >conftest.$ac_ext <<_ACEOF
21978 /* confdefs.h.  */
21979 _ACEOF
21980 cat confdefs.h >>conftest.$ac_ext
21981 cat >>conftest.$ac_ext <<_ACEOF
21982 /* end confdefs.h.  */
21983 $ac_includes_default
21984    typedef long long ac__type_sizeof_;
21985 int
21986 main ()
21987 {
21988 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
21989 test_array [0] = 0
21990
21991   ;
21992   return 0;
21993 }
21994 _ACEOF
21995 rm -f conftest.$ac_objext
21996 if { (ac_try="$ac_compile"
21997 case "(($ac_try" in
21998   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21999   *) ac_try_echo=$ac_try;;
22000 esac
22001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22002   (eval "$ac_compile") 2>conftest.er1
22003   ac_status=$?
22004   grep -v '^ *+' conftest.er1 >conftest.err
22005   rm -f conftest.er1
22006   cat conftest.err >&5
22007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22008   (exit $ac_status); } && {
22009          test -z "$ac_c_werror_flag" ||
22010          test ! -s conftest.err
22011        } && test -s conftest.$ac_objext; then
22012   ac_lo=0 ac_mid=0
22013   while :; do
22014     cat >conftest.$ac_ext <<_ACEOF
22015 /* confdefs.h.  */
22016 _ACEOF
22017 cat confdefs.h >>conftest.$ac_ext
22018 cat >>conftest.$ac_ext <<_ACEOF
22019 /* end confdefs.h.  */
22020 $ac_includes_default
22021    typedef long long ac__type_sizeof_;
22022 int
22023 main ()
22024 {
22025 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22026 test_array [0] = 0
22027
22028   ;
22029   return 0;
22030 }
22031 _ACEOF
22032 rm -f conftest.$ac_objext
22033 if { (ac_try="$ac_compile"
22034 case "(($ac_try" in
22035   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22036   *) ac_try_echo=$ac_try;;
22037 esac
22038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22039   (eval "$ac_compile") 2>conftest.er1
22040   ac_status=$?
22041   grep -v '^ *+' conftest.er1 >conftest.err
22042   rm -f conftest.er1
22043   cat conftest.err >&5
22044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22045   (exit $ac_status); } && {
22046          test -z "$ac_c_werror_flag" ||
22047          test ! -s conftest.err
22048        } && test -s conftest.$ac_objext; then
22049   ac_hi=$ac_mid; break
22050 else
22051   echo "$as_me: failed program was:" >&5
22052 sed 's/^/| /' conftest.$ac_ext >&5
22053
22054         ac_lo=`expr $ac_mid + 1`
22055                         if test $ac_lo -le $ac_mid; then
22056                           ac_lo= ac_hi=
22057                           break
22058                         fi
22059                         ac_mid=`expr 2 '*' $ac_mid + 1`
22060 fi
22061
22062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22063   done
22064 else
22065   echo "$as_me: failed program was:" >&5
22066 sed 's/^/| /' conftest.$ac_ext >&5
22067
22068         cat >conftest.$ac_ext <<_ACEOF
22069 /* confdefs.h.  */
22070 _ACEOF
22071 cat confdefs.h >>conftest.$ac_ext
22072 cat >>conftest.$ac_ext <<_ACEOF
22073 /* end confdefs.h.  */
22074 $ac_includes_default
22075    typedef long long ac__type_sizeof_;
22076 int
22077 main ()
22078 {
22079 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
22080 test_array [0] = 0
22081
22082   ;
22083   return 0;
22084 }
22085 _ACEOF
22086 rm -f conftest.$ac_objext
22087 if { (ac_try="$ac_compile"
22088 case "(($ac_try" in
22089   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22090   *) ac_try_echo=$ac_try;;
22091 esac
22092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22093   (eval "$ac_compile") 2>conftest.er1
22094   ac_status=$?
22095   grep -v '^ *+' conftest.er1 >conftest.err
22096   rm -f conftest.er1
22097   cat conftest.err >&5
22098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22099   (exit $ac_status); } && {
22100          test -z "$ac_c_werror_flag" ||
22101          test ! -s conftest.err
22102        } && test -s conftest.$ac_objext; then
22103   ac_hi=-1 ac_mid=-1
22104   while :; do
22105     cat >conftest.$ac_ext <<_ACEOF
22106 /* confdefs.h.  */
22107 _ACEOF
22108 cat confdefs.h >>conftest.$ac_ext
22109 cat >>conftest.$ac_ext <<_ACEOF
22110 /* end confdefs.h.  */
22111 $ac_includes_default
22112    typedef long long ac__type_sizeof_;
22113 int
22114 main ()
22115 {
22116 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
22117 test_array [0] = 0
22118
22119   ;
22120   return 0;
22121 }
22122 _ACEOF
22123 rm -f conftest.$ac_objext
22124 if { (ac_try="$ac_compile"
22125 case "(($ac_try" in
22126   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22127   *) ac_try_echo=$ac_try;;
22128 esac
22129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22130   (eval "$ac_compile") 2>conftest.er1
22131   ac_status=$?
22132   grep -v '^ *+' conftest.er1 >conftest.err
22133   rm -f conftest.er1
22134   cat conftest.err >&5
22135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22136   (exit $ac_status); } && {
22137          test -z "$ac_c_werror_flag" ||
22138          test ! -s conftest.err
22139        } && test -s conftest.$ac_objext; then
22140   ac_lo=$ac_mid; break
22141 else
22142   echo "$as_me: failed program was:" >&5
22143 sed 's/^/| /' conftest.$ac_ext >&5
22144
22145         ac_hi=`expr '(' $ac_mid ')' - 1`
22146                         if test $ac_mid -le $ac_hi; then
22147                           ac_lo= ac_hi=
22148                           break
22149                         fi
22150                         ac_mid=`expr 2 '*' $ac_mid`
22151 fi
22152
22153 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22154   done
22155 else
22156   echo "$as_me: failed program was:" >&5
22157 sed 's/^/| /' conftest.$ac_ext >&5
22158
22159         ac_lo= ac_hi=
22160 fi
22161
22162 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22163 fi
22164
22165 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22166 # Binary search between lo and hi bounds.
22167 while test "x$ac_lo" != "x$ac_hi"; do
22168   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22169   cat >conftest.$ac_ext <<_ACEOF
22170 /* confdefs.h.  */
22171 _ACEOF
22172 cat confdefs.h >>conftest.$ac_ext
22173 cat >>conftest.$ac_ext <<_ACEOF
22174 /* end confdefs.h.  */
22175 $ac_includes_default
22176    typedef long long ac__type_sizeof_;
22177 int
22178 main ()
22179 {
22180 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22181 test_array [0] = 0
22182
22183   ;
22184   return 0;
22185 }
22186 _ACEOF
22187 rm -f conftest.$ac_objext
22188 if { (ac_try="$ac_compile"
22189 case "(($ac_try" in
22190   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22191   *) ac_try_echo=$ac_try;;
22192 esac
22193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22194   (eval "$ac_compile") 2>conftest.er1
22195   ac_status=$?
22196   grep -v '^ *+' conftest.er1 >conftest.err
22197   rm -f conftest.er1
22198   cat conftest.err >&5
22199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22200   (exit $ac_status); } && {
22201          test -z "$ac_c_werror_flag" ||
22202          test ! -s conftest.err
22203        } && test -s conftest.$ac_objext; then
22204   ac_hi=$ac_mid
22205 else
22206   echo "$as_me: failed program was:" >&5
22207 sed 's/^/| /' conftest.$ac_ext >&5
22208
22209         ac_lo=`expr '(' $ac_mid ')' + 1`
22210 fi
22211
22212 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22213 done
22214 case $ac_lo in
22215 ?*) ac_cv_sizeof_long_long=$ac_lo;;
22216 '') if test "$ac_cv_type_long_long" = yes; then
22217      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
22218 See \`config.log' for more details." >&5
22219 echo "$as_me: error: cannot compute sizeof (long long)
22220 See \`config.log' for more details." >&2;}
22221    { (exit 77); exit 77; }; }
22222    else
22223      ac_cv_sizeof_long_long=0
22224    fi ;;
22225 esac
22226 else
22227   cat >conftest.$ac_ext <<_ACEOF
22228 /* confdefs.h.  */
22229 _ACEOF
22230 cat confdefs.h >>conftest.$ac_ext
22231 cat >>conftest.$ac_ext <<_ACEOF
22232 /* end confdefs.h.  */
22233 $ac_includes_default
22234    typedef long long ac__type_sizeof_;
22235 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
22236 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
22237 #include <stdio.h>
22238 #include <stdlib.h>
22239 int
22240 main ()
22241 {
22242
22243   FILE *f = fopen ("conftest.val", "w");
22244   if (! f)
22245     return 1;
22246   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
22247     {
22248       long int i = longval ();
22249       if (i != ((long int) (sizeof (ac__type_sizeof_))))
22250         return 1;
22251       fprintf (f, "%ld\n", i);
22252     }
22253   else
22254     {
22255       unsigned long int i = ulongval ();
22256       if (i != ((long int) (sizeof (ac__type_sizeof_))))
22257         return 1;
22258       fprintf (f, "%lu\n", i);
22259     }
22260   return ferror (f) || fclose (f) != 0;
22261
22262   ;
22263   return 0;
22264 }
22265 _ACEOF
22266 rm -f conftest$ac_exeext
22267 if { (ac_try="$ac_link"
22268 case "(($ac_try" in
22269   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22270   *) ac_try_echo=$ac_try;;
22271 esac
22272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22273   (eval "$ac_link") 2>&5
22274   ac_status=$?
22275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22276   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22277   { (case "(($ac_try" in
22278   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22279   *) ac_try_echo=$ac_try;;
22280 esac
22281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22282   (eval "$ac_try") 2>&5
22283   ac_status=$?
22284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22285   (exit $ac_status); }; }; then
22286   ac_cv_sizeof_long_long=`cat conftest.val`
22287 else
22288   echo "$as_me: program exited with status $ac_status" >&5
22289 echo "$as_me: failed program was:" >&5
22290 sed 's/^/| /' conftest.$ac_ext >&5
22291
22292 ( exit $ac_status )
22293 if test "$ac_cv_type_long_long" = yes; then
22294      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
22295 See \`config.log' for more details." >&5
22296 echo "$as_me: error: cannot compute sizeof (long long)
22297 See \`config.log' for more details." >&2;}
22298    { (exit 77); exit 77; }; }
22299    else
22300      ac_cv_sizeof_long_long=0
22301    fi
22302 fi
22303 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22304 fi
22305 rm -f conftest.val
22306 fi
22307 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
22308 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
22309
22310
22311
22312 cat >>confdefs.h <<_ACEOF
22313 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
22314 _ACEOF
22315
22316
22317 esac
22318
22319 { echo "$as_me:$LINENO: checking for wchar_t" >&5
22320 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
22321 if test "${ac_cv_type_wchar_t+set}" = set; then
22322   echo $ECHO_N "(cached) $ECHO_C" >&6
22323 else
22324   cat >conftest.$ac_ext <<_ACEOF
22325 /* confdefs.h.  */
22326 _ACEOF
22327 cat confdefs.h >>conftest.$ac_ext
22328 cat >>conftest.$ac_ext <<_ACEOF
22329 /* end confdefs.h.  */
22330
22331         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
22332         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
22333         #  error "fake wchar_t"
22334         #endif
22335         #ifdef HAVE_WCHAR_H
22336         #  ifdef __CYGWIN__
22337         #    include <stddef.h>
22338         #  endif
22339         #  include <wchar.h>
22340         #endif
22341         #ifdef HAVE_STDLIB_H
22342         #  include <stdlib.h>
22343         #endif
22344         #include <stdio.h>
22345
22346
22347
22348 typedef wchar_t ac__type_new_;
22349 int
22350 main ()
22351 {
22352 if ((ac__type_new_ *) 0)
22353   return 0;
22354 if (sizeof (ac__type_new_))
22355   return 0;
22356   ;
22357   return 0;
22358 }
22359 _ACEOF
22360 rm -f conftest.$ac_objext
22361 if { (ac_try="$ac_compile"
22362 case "(($ac_try" in
22363   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22364   *) ac_try_echo=$ac_try;;
22365 esac
22366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22367   (eval "$ac_compile") 2>conftest.er1
22368   ac_status=$?
22369   grep -v '^ *+' conftest.er1 >conftest.err
22370   rm -f conftest.er1
22371   cat conftest.err >&5
22372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22373   (exit $ac_status); } && {
22374          test -z "$ac_c_werror_flag" ||
22375          test ! -s conftest.err
22376        } && test -s conftest.$ac_objext; then
22377   ac_cv_type_wchar_t=yes
22378 else
22379   echo "$as_me: failed program was:" >&5
22380 sed 's/^/| /' conftest.$ac_ext >&5
22381
22382         ac_cv_type_wchar_t=no
22383 fi
22384
22385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22386 fi
22387 { echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
22388 echo "${ECHO_T}$ac_cv_type_wchar_t" >&6; }
22389
22390 # The cast to long int works around a bug in the HP C Compiler
22391 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22392 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22393 # This bug is HP SR number 8606223364.
22394 { echo "$as_me:$LINENO: checking size of wchar_t" >&5
22395 echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6; }
22396 if test "${ac_cv_sizeof_wchar_t+set}" = set; then
22397   echo $ECHO_N "(cached) $ECHO_C" >&6
22398 else
22399   if test "$cross_compiling" = yes; then
22400   # Depending upon the size, compute the lo and hi bounds.
22401 cat >conftest.$ac_ext <<_ACEOF
22402 /* confdefs.h.  */
22403 _ACEOF
22404 cat confdefs.h >>conftest.$ac_ext
22405 cat >>conftest.$ac_ext <<_ACEOF
22406 /* end confdefs.h.  */
22407
22408         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
22409         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
22410         #  error "fake wchar_t"
22411         #endif
22412         #ifdef HAVE_WCHAR_H
22413         #  ifdef __CYGWIN__
22414         #    include <stddef.h>
22415         #  endif
22416         #  include <wchar.h>
22417         #endif
22418         #ifdef HAVE_STDLIB_H
22419         #  include <stdlib.h>
22420         #endif
22421         #include <stdio.h>
22422
22423
22424
22425    typedef wchar_t ac__type_sizeof_;
22426 int
22427 main ()
22428 {
22429 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
22430 test_array [0] = 0
22431
22432   ;
22433   return 0;
22434 }
22435 _ACEOF
22436 rm -f conftest.$ac_objext
22437 if { (ac_try="$ac_compile"
22438 case "(($ac_try" in
22439   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22440   *) ac_try_echo=$ac_try;;
22441 esac
22442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22443   (eval "$ac_compile") 2>conftest.er1
22444   ac_status=$?
22445   grep -v '^ *+' conftest.er1 >conftest.err
22446   rm -f conftest.er1
22447   cat conftest.err >&5
22448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22449   (exit $ac_status); } && {
22450          test -z "$ac_c_werror_flag" ||
22451          test ! -s conftest.err
22452        } && test -s conftest.$ac_objext; then
22453   ac_lo=0 ac_mid=0
22454   while :; do
22455     cat >conftest.$ac_ext <<_ACEOF
22456 /* confdefs.h.  */
22457 _ACEOF
22458 cat confdefs.h >>conftest.$ac_ext
22459 cat >>conftest.$ac_ext <<_ACEOF
22460 /* end confdefs.h.  */
22461
22462         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
22463         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
22464         #  error "fake wchar_t"
22465         #endif
22466         #ifdef HAVE_WCHAR_H
22467         #  ifdef __CYGWIN__
22468         #    include <stddef.h>
22469         #  endif
22470         #  include <wchar.h>
22471         #endif
22472         #ifdef HAVE_STDLIB_H
22473         #  include <stdlib.h>
22474         #endif
22475         #include <stdio.h>
22476
22477
22478
22479    typedef wchar_t ac__type_sizeof_;
22480 int
22481 main ()
22482 {
22483 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22484 test_array [0] = 0
22485
22486   ;
22487   return 0;
22488 }
22489 _ACEOF
22490 rm -f conftest.$ac_objext
22491 if { (ac_try="$ac_compile"
22492 case "(($ac_try" in
22493   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22494   *) ac_try_echo=$ac_try;;
22495 esac
22496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22497   (eval "$ac_compile") 2>conftest.er1
22498   ac_status=$?
22499   grep -v '^ *+' conftest.er1 >conftest.err
22500   rm -f conftest.er1
22501   cat conftest.err >&5
22502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22503   (exit $ac_status); } && {
22504          test -z "$ac_c_werror_flag" ||
22505          test ! -s conftest.err
22506        } && test -s conftest.$ac_objext; then
22507   ac_hi=$ac_mid; break
22508 else
22509   echo "$as_me: failed program was:" >&5
22510 sed 's/^/| /' conftest.$ac_ext >&5
22511
22512         ac_lo=`expr $ac_mid + 1`
22513                         if test $ac_lo -le $ac_mid; then
22514                           ac_lo= ac_hi=
22515                           break
22516                         fi
22517                         ac_mid=`expr 2 '*' $ac_mid + 1`
22518 fi
22519
22520 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22521   done
22522 else
22523   echo "$as_me: failed program was:" >&5
22524 sed 's/^/| /' conftest.$ac_ext >&5
22525
22526         cat >conftest.$ac_ext <<_ACEOF
22527 /* confdefs.h.  */
22528 _ACEOF
22529 cat confdefs.h >>conftest.$ac_ext
22530 cat >>conftest.$ac_ext <<_ACEOF
22531 /* end confdefs.h.  */
22532
22533         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
22534         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
22535         #  error "fake wchar_t"
22536         #endif
22537         #ifdef HAVE_WCHAR_H
22538         #  ifdef __CYGWIN__
22539         #    include <stddef.h>
22540         #  endif
22541         #  include <wchar.h>
22542         #endif
22543         #ifdef HAVE_STDLIB_H
22544         #  include <stdlib.h>
22545         #endif
22546         #include <stdio.h>
22547
22548
22549
22550    typedef wchar_t ac__type_sizeof_;
22551 int
22552 main ()
22553 {
22554 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
22555 test_array [0] = 0
22556
22557   ;
22558   return 0;
22559 }
22560 _ACEOF
22561 rm -f conftest.$ac_objext
22562 if { (ac_try="$ac_compile"
22563 case "(($ac_try" in
22564   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22565   *) ac_try_echo=$ac_try;;
22566 esac
22567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22568   (eval "$ac_compile") 2>conftest.er1
22569   ac_status=$?
22570   grep -v '^ *+' conftest.er1 >conftest.err
22571   rm -f conftest.er1
22572   cat conftest.err >&5
22573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22574   (exit $ac_status); } && {
22575          test -z "$ac_c_werror_flag" ||
22576          test ! -s conftest.err
22577        } && test -s conftest.$ac_objext; then
22578   ac_hi=-1 ac_mid=-1
22579   while :; do
22580     cat >conftest.$ac_ext <<_ACEOF
22581 /* confdefs.h.  */
22582 _ACEOF
22583 cat confdefs.h >>conftest.$ac_ext
22584 cat >>conftest.$ac_ext <<_ACEOF
22585 /* end confdefs.h.  */
22586
22587         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
22588         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
22589         #  error "fake wchar_t"
22590         #endif
22591         #ifdef HAVE_WCHAR_H
22592         #  ifdef __CYGWIN__
22593         #    include <stddef.h>
22594         #  endif
22595         #  include <wchar.h>
22596         #endif
22597         #ifdef HAVE_STDLIB_H
22598         #  include <stdlib.h>
22599         #endif
22600         #include <stdio.h>
22601
22602
22603
22604    typedef wchar_t ac__type_sizeof_;
22605 int
22606 main ()
22607 {
22608 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
22609 test_array [0] = 0
22610
22611   ;
22612   return 0;
22613 }
22614 _ACEOF
22615 rm -f conftest.$ac_objext
22616 if { (ac_try="$ac_compile"
22617 case "(($ac_try" in
22618   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22619   *) ac_try_echo=$ac_try;;
22620 esac
22621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22622   (eval "$ac_compile") 2>conftest.er1
22623   ac_status=$?
22624   grep -v '^ *+' conftest.er1 >conftest.err
22625   rm -f conftest.er1
22626   cat conftest.err >&5
22627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22628   (exit $ac_status); } && {
22629          test -z "$ac_c_werror_flag" ||
22630          test ! -s conftest.err
22631        } && test -s conftest.$ac_objext; then
22632   ac_lo=$ac_mid; break
22633 else
22634   echo "$as_me: failed program was:" >&5
22635 sed 's/^/| /' conftest.$ac_ext >&5
22636
22637         ac_hi=`expr '(' $ac_mid ')' - 1`
22638                         if test $ac_mid -le $ac_hi; then
22639                           ac_lo= ac_hi=
22640                           break
22641                         fi
22642                         ac_mid=`expr 2 '*' $ac_mid`
22643 fi
22644
22645 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22646   done
22647 else
22648   echo "$as_me: failed program was:" >&5
22649 sed 's/^/| /' conftest.$ac_ext >&5
22650
22651         ac_lo= ac_hi=
22652 fi
22653
22654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22655 fi
22656
22657 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22658 # Binary search between lo and hi bounds.
22659 while test "x$ac_lo" != "x$ac_hi"; do
22660   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22661   cat >conftest.$ac_ext <<_ACEOF
22662 /* confdefs.h.  */
22663 _ACEOF
22664 cat confdefs.h >>conftest.$ac_ext
22665 cat >>conftest.$ac_ext <<_ACEOF
22666 /* end confdefs.h.  */
22667
22668         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
22669         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
22670         #  error "fake wchar_t"
22671         #endif
22672         #ifdef HAVE_WCHAR_H
22673         #  ifdef __CYGWIN__
22674         #    include <stddef.h>
22675         #  endif
22676         #  include <wchar.h>
22677         #endif
22678         #ifdef HAVE_STDLIB_H
22679         #  include <stdlib.h>
22680         #endif
22681         #include <stdio.h>
22682
22683
22684
22685    typedef wchar_t ac__type_sizeof_;
22686 int
22687 main ()
22688 {
22689 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22690 test_array [0] = 0
22691
22692   ;
22693   return 0;
22694 }
22695 _ACEOF
22696 rm -f conftest.$ac_objext
22697 if { (ac_try="$ac_compile"
22698 case "(($ac_try" in
22699   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22700   *) ac_try_echo=$ac_try;;
22701 esac
22702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22703   (eval "$ac_compile") 2>conftest.er1
22704   ac_status=$?
22705   grep -v '^ *+' conftest.er1 >conftest.err
22706   rm -f conftest.er1
22707   cat conftest.err >&5
22708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22709   (exit $ac_status); } && {
22710          test -z "$ac_c_werror_flag" ||
22711          test ! -s conftest.err
22712        } && test -s conftest.$ac_objext; then
22713   ac_hi=$ac_mid
22714 else
22715   echo "$as_me: failed program was:" >&5
22716 sed 's/^/| /' conftest.$ac_ext >&5
22717
22718         ac_lo=`expr '(' $ac_mid ')' + 1`
22719 fi
22720
22721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22722 done
22723 case $ac_lo in
22724 ?*) ac_cv_sizeof_wchar_t=$ac_lo;;
22725 '') if test "$ac_cv_type_wchar_t" = yes; then
22726      { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t)
22727 See \`config.log' for more details." >&5
22728 echo "$as_me: error: cannot compute sizeof (wchar_t)
22729 See \`config.log' for more details." >&2;}
22730    { (exit 77); exit 77; }; }
22731    else
22732      ac_cv_sizeof_wchar_t=0
22733    fi ;;
22734 esac
22735 else
22736   cat >conftest.$ac_ext <<_ACEOF
22737 /* confdefs.h.  */
22738 _ACEOF
22739 cat confdefs.h >>conftest.$ac_ext
22740 cat >>conftest.$ac_ext <<_ACEOF
22741 /* end confdefs.h.  */
22742
22743         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
22744         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
22745         #  error "fake wchar_t"
22746         #endif
22747         #ifdef HAVE_WCHAR_H
22748         #  ifdef __CYGWIN__
22749         #    include <stddef.h>
22750         #  endif
22751         #  include <wchar.h>
22752         #endif
22753         #ifdef HAVE_STDLIB_H
22754         #  include <stdlib.h>
22755         #endif
22756         #include <stdio.h>
22757
22758
22759
22760    typedef wchar_t ac__type_sizeof_;
22761 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
22762 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
22763 #include <stdio.h>
22764 #include <stdlib.h>
22765 int
22766 main ()
22767 {
22768
22769   FILE *f = fopen ("conftest.val", "w");
22770   if (! f)
22771     return 1;
22772   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
22773     {
22774       long int i = longval ();
22775       if (i != ((long int) (sizeof (ac__type_sizeof_))))
22776         return 1;
22777       fprintf (f, "%ld\n", i);
22778     }
22779   else
22780     {
22781       unsigned long int i = ulongval ();
22782       if (i != ((long int) (sizeof (ac__type_sizeof_))))
22783         return 1;
22784       fprintf (f, "%lu\n", i);
22785     }
22786   return ferror (f) || fclose (f) != 0;
22787
22788   ;
22789   return 0;
22790 }
22791 _ACEOF
22792 rm -f conftest$ac_exeext
22793 if { (ac_try="$ac_link"
22794 case "(($ac_try" in
22795   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22796   *) ac_try_echo=$ac_try;;
22797 esac
22798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22799   (eval "$ac_link") 2>&5
22800   ac_status=$?
22801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22802   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22803   { (case "(($ac_try" in
22804   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22805   *) ac_try_echo=$ac_try;;
22806 esac
22807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22808   (eval "$ac_try") 2>&5
22809   ac_status=$?
22810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22811   (exit $ac_status); }; }; then
22812   ac_cv_sizeof_wchar_t=`cat conftest.val`
22813 else
22814   echo "$as_me: program exited with status $ac_status" >&5
22815 echo "$as_me: failed program was:" >&5
22816 sed 's/^/| /' conftest.$ac_ext >&5
22817
22818 ( exit $ac_status )
22819 if test "$ac_cv_type_wchar_t" = yes; then
22820      { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t)
22821 See \`config.log' for more details." >&5
22822 echo "$as_me: error: cannot compute sizeof (wchar_t)
22823 See \`config.log' for more details." >&2;}
22824    { (exit 77); exit 77; }; }
22825    else
22826      ac_cv_sizeof_wchar_t=0
22827    fi
22828 fi
22829 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22830 fi
22831 rm -f conftest.val
22832 fi
22833 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
22834 echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6; }
22835
22836
22837
22838 cat >>confdefs.h <<_ACEOF
22839 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
22840 _ACEOF
22841
22842
22843 if test "$ac_cv_sizeof_wchar_t" != 0; then
22844     wxUSE_WCHAR_T=yes
22845 else
22846     wxUSE_WCHAR_T=no
22847 fi
22848
22849 { echo "$as_me:$LINENO: checking for va_copy" >&5
22850 echo $ECHO_N "checking for va_copy... $ECHO_C" >&6; }
22851 if test "${wx_cv_func_va_copy+set}" = set; then
22852   echo $ECHO_N "(cached) $ECHO_C" >&6
22853 else
22854
22855         ac_ext=cpp
22856 ac_cpp='$CXXCPP $CPPFLAGS'
22857 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22858 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22859 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22860
22861         cat >conftest.$ac_ext <<_ACEOF
22862
22863             #include <stdarg.h>
22864             void foo(char *f, ...)
22865             {
22866                 va_list ap1, ap2;
22867                 va_start(ap1, f);
22868                 va_copy(ap2, ap1);
22869                 va_end(ap2);
22870                 va_end(ap1);
22871             }
22872             int main()
22873             {
22874                 foo("hi", 17);
22875                 return 0;
22876             }
22877 _ACEOF
22878 rm -f conftest.$ac_objext conftest$ac_exeext
22879 if { (ac_try="$ac_link"
22880 case "(($ac_try" in
22881   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22882   *) ac_try_echo=$ac_try;;
22883 esac
22884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22885   (eval "$ac_link") 2>conftest.er1
22886   ac_status=$?
22887   grep -v '^ *+' conftest.er1 >conftest.err
22888   rm -f conftest.er1
22889   cat conftest.err >&5
22890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22891   (exit $ac_status); } && {
22892          test -z "$ac_cxx_werror_flag" ||
22893          test ! -s conftest.err
22894        } && test -s conftest$ac_exeext &&
22895        $as_test_x conftest$ac_exeext; then
22896   wx_cv_func_va_copy=yes
22897 else
22898   echo "$as_me: failed program was:" >&5
22899 sed 's/^/| /' conftest.$ac_ext >&5
22900
22901         wx_cv_func_va_copy=no
22902
22903 fi
22904
22905 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22906       conftest$ac_exeext conftest.$ac_ext
22907         ac_ext=c
22908 ac_cpp='$CPP $CPPFLAGS'
22909 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22910 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22911 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22912
22913
22914
22915 fi
22916 { echo "$as_me:$LINENO: result: $wx_cv_func_va_copy" >&5
22917 echo "${ECHO_T}$wx_cv_func_va_copy" >&6; }
22918
22919 if test $wx_cv_func_va_copy = "yes"; then
22920     cat >>confdefs.h <<\_ACEOF
22921 #define HAVE_VA_COPY 1
22922 _ACEOF
22923
22924 else
22925         { echo "$as_me:$LINENO: checking if va_list can be copied by value" >&5
22926 echo $ECHO_N "checking if va_list can be copied by value... $ECHO_C" >&6; }
22927 if test "${wx_cv_type_va_list_lvalue+set}" = set; then
22928   echo $ECHO_N "(cached) $ECHO_C" >&6
22929 else
22930
22931             if test "$cross_compiling" = yes; then
22932                   wx_cv_type_va_list_lvalue=yes
22933
22934 else
22935   cat >conftest.$ac_ext <<_ACEOF
22936
22937                 #include <stdarg.h>
22938                 int foo(char *f, ...)
22939                 {
22940                     va_list ap1, ap2;
22941                     va_start(ap1, f);
22942                     ap2 = ap1;
22943                     if ( va_arg(ap1, int) != 17 || va_arg(ap2, int) != 17 )
22944                         return 1;
22945                     va_end(ap2);
22946                     va_end(ap1);
22947                     return 0;
22948                 }
22949                 int main()
22950                 {
22951                     return foo("hi", 17);
22952                 }
22953 _ACEOF
22954 rm -f conftest$ac_exeext
22955 if { (ac_try="$ac_link"
22956 case "(($ac_try" in
22957   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22958   *) ac_try_echo=$ac_try;;
22959 esac
22960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22961   (eval "$ac_link") 2>&5
22962   ac_status=$?
22963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22964   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22965   { (case "(($ac_try" in
22966   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22967   *) ac_try_echo=$ac_try;;
22968 esac
22969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22970   (eval "$ac_try") 2>&5
22971   ac_status=$?
22972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22973   (exit $ac_status); }; }; then
22974   wx_cv_type_va_list_lvalue=yes
22975 else
22976   echo "$as_me: program exited with status $ac_status" >&5
22977 echo "$as_me: failed program was:" >&5
22978 sed 's/^/| /' conftest.$ac_ext >&5
22979
22980 ( exit $ac_status )
22981 wx_cv_type_va_list_lvalue=no
22982 fi
22983 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22984 fi
22985
22986
22987
22988
22989 fi
22990 { echo "$as_me:$LINENO: result: $wx_cv_type_va_list_lvalue" >&5
22991 echo "${ECHO_T}$wx_cv_type_va_list_lvalue" >&6; }
22992
22993     if test $wx_cv_type_va_list_lvalue != "yes"; then
22994                         cat >>confdefs.h <<\_ACEOF
22995 #define VA_LIST_IS_ARRAY 1
22996 _ACEOF
22997
22998     fi
22999 fi
23000
23001 if test "$wxUSE_VARARG_MACROS" = "yes"; then
23002
23003 { echo "$as_me:$LINENO: checking whether the compiler supports variadic macros" >&5
23004 echo $ECHO_N "checking whether the compiler supports variadic macros... $ECHO_C" >&6; }
23005 if test "${wx_cv_have_variadic_macros+set}" = set; then
23006   echo $ECHO_N "(cached) $ECHO_C" >&6
23007 else
23008
23009                         ac_ext=cpp
23010 ac_cpp='$CXXCPP $CPPFLAGS'
23011 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23012 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23013 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23014
23015         cat >conftest.$ac_ext <<_ACEOF
23016 /* confdefs.h.  */
23017 _ACEOF
23018 cat confdefs.h >>conftest.$ac_ext
23019 cat >>conftest.$ac_ext <<_ACEOF
23020 /* end confdefs.h.  */
23021
23022                     #include <stdio.h>
23023                     #define test(fmt, ...) printf(fmt, __VA_ARGS__)
23024
23025 int
23026 main ()
23027 {
23028
23029                     test("%s %d %p", "test", 1, 0);
23030
23031
23032   ;
23033   return 0;
23034 }
23035 _ACEOF
23036 rm -f conftest.$ac_objext
23037 if { (ac_try="$ac_compile"
23038 case "(($ac_try" in
23039   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23040   *) ac_try_echo=$ac_try;;
23041 esac
23042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23043   (eval "$ac_compile") 2>conftest.er1
23044   ac_status=$?
23045   grep -v '^ *+' conftest.er1 >conftest.err
23046   rm -f conftest.er1
23047   cat conftest.err >&5
23048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23049   (exit $ac_status); } && {
23050          test -z "$ac_cxx_werror_flag" ||
23051          test ! -s conftest.err
23052        } && test -s conftest.$ac_objext; then
23053   wx_cv_have_variadic_macros=yes
23054 else
23055   echo "$as_me: failed program was:" >&5
23056 sed 's/^/| /' conftest.$ac_ext >&5
23057
23058         wx_cv_have_variadic_macros=no
23059
23060 fi
23061
23062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23063         ac_ext=c
23064 ac_cpp='$CPP $CPPFLAGS'
23065 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23066 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23067 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23068
23069
23070
23071 fi
23072 { echo "$as_me:$LINENO: result: $wx_cv_have_variadic_macros" >&5
23073 echo "${ECHO_T}$wx_cv_have_variadic_macros" >&6; }
23074
23075 if test $wx_cv_have_variadic_macros = "yes"; then
23076     cat >>confdefs.h <<\_ACEOF
23077 #define HAVE_VARIADIC_MACROS 1
23078 _ACEOF
23079
23080 fi
23081
23082 fi
23083 # Check whether --enable-largefile was given.
23084 if test "${enable_largefile+set}" = set; then
23085   enableval=$enable_largefile;
23086 fi
23087
23088 if test "$enable_largefile" != no; then
23089             wx_largefile=no
23090
23091     { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
23092 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
23093 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
23094   echo $ECHO_N "(cached) $ECHO_C" >&6
23095 else
23096
23097           cat >conftest.$ac_ext <<_ACEOF
23098 /* confdefs.h.  */
23099 _ACEOF
23100 cat confdefs.h >>conftest.$ac_ext
23101 cat >>conftest.$ac_ext <<_ACEOF
23102 /* end confdefs.h.  */
23103 #define _FILE_OFFSET_BITS 64
23104                           #include <sys/types.h>
23105 int
23106 main ()
23107 {
23108 typedef struct {
23109     unsigned int field: sizeof(off_t) == 8;
23110 } wxlf;
23111
23112   ;
23113   return 0;
23114 }
23115 _ACEOF
23116 rm -f conftest.$ac_objext
23117 if { (ac_try="$ac_compile"
23118 case "(($ac_try" in
23119   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23120   *) ac_try_echo=$ac_try;;
23121 esac
23122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23123   (eval "$ac_compile") 2>conftest.er1
23124   ac_status=$?
23125   grep -v '^ *+' conftest.er1 >conftest.err
23126   rm -f conftest.er1
23127   cat conftest.err >&5
23128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23129   (exit $ac_status); } && {
23130          test -z "$ac_c_werror_flag" ||
23131          test ! -s conftest.err
23132        } && test -s conftest.$ac_objext; then
23133   ac_cv_sys_file_offset_bits=64
23134 else
23135   echo "$as_me: failed program was:" >&5
23136 sed 's/^/| /' conftest.$ac_ext >&5
23137
23138         ac_cv_sys_file_offset_bits=no
23139 fi
23140
23141 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23142
23143
23144 fi
23145 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
23146 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
23147
23148     if test "$ac_cv_sys_file_offset_bits" != no; then
23149         wx_largefile=yes
23150         cat >>confdefs.h <<_ACEOF
23151 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
23152 _ACEOF
23153
23154     fi
23155
23156     if test "x$wx_largefile" != "xyes"; then
23157
23158     { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
23159 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
23160 if test "${ac_cv_sys_large_files+set}" = set; then
23161   echo $ECHO_N "(cached) $ECHO_C" >&6
23162 else
23163
23164           cat >conftest.$ac_ext <<_ACEOF
23165 /* confdefs.h.  */
23166 _ACEOF
23167 cat confdefs.h >>conftest.$ac_ext
23168 cat >>conftest.$ac_ext <<_ACEOF
23169 /* end confdefs.h.  */
23170 #define _LARGE_FILES 1
23171                           #include <sys/types.h>
23172 int
23173 main ()
23174 {
23175 typedef struct {
23176     unsigned int field: sizeof(off_t) == 8;
23177 } wxlf;
23178
23179   ;
23180   return 0;
23181 }
23182 _ACEOF
23183 rm -f conftest.$ac_objext
23184 if { (ac_try="$ac_compile"
23185 case "(($ac_try" in
23186   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23187   *) ac_try_echo=$ac_try;;
23188 esac
23189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23190   (eval "$ac_compile") 2>conftest.er1
23191   ac_status=$?
23192   grep -v '^ *+' conftest.er1 >conftest.err
23193   rm -f conftest.er1
23194   cat conftest.err >&5
23195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23196   (exit $ac_status); } && {
23197          test -z "$ac_c_werror_flag" ||
23198          test ! -s conftest.err
23199        } && test -s conftest.$ac_objext; then
23200   ac_cv_sys_large_files=1
23201 else
23202   echo "$as_me: failed program was:" >&5
23203 sed 's/^/| /' conftest.$ac_ext >&5
23204
23205         ac_cv_sys_large_files=no
23206 fi
23207
23208 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23209
23210
23211 fi
23212 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
23213 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
23214
23215     if test "$ac_cv_sys_large_files" != no; then
23216         wx_largefile=yes
23217         cat >>confdefs.h <<_ACEOF
23218 #define _LARGE_FILES $ac_cv_sys_large_files
23219 _ACEOF
23220
23221     fi
23222
23223     fi
23224
23225     { echo "$as_me:$LINENO: checking if large file support is available" >&5
23226 echo $ECHO_N "checking if large file support is available... $ECHO_C" >&6; }
23227     if test "x$wx_largefile" = "xyes"; then
23228         cat >>confdefs.h <<\_ACEOF
23229 #define HAVE_LARGEFILE_SUPPORT 1
23230 _ACEOF
23231
23232     fi
23233     { echo "$as_me:$LINENO: result: $wx_largefile" >&5
23234 echo "${ECHO_T}$wx_largefile" >&6; }
23235 fi
23236
23237
23238 if test "x$wx_largefile" = "xyes"; then
23239     if test "x$ac_cv_sys_file_offset_bits" = "x64"; then
23240         WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES"
23241
23242                                                         if test "$USE_HPUX" = 1 -a "$GXX" = "yes"; then
23243             { echo "$as_me:$LINENO: checking if -D__STDC_EXT__ is required" >&5
23244 echo $ECHO_N "checking if -D__STDC_EXT__ is required... $ECHO_C" >&6; }
23245 if test "${wx_cv_STDC_EXT_required+set}" = set; then
23246   echo $ECHO_N "(cached) $ECHO_C" >&6
23247 else
23248
23249                     ac_ext=cpp
23250 ac_cpp='$CXXCPP $CPPFLAGS'
23251 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23252 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23253 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23254
23255                     cat >conftest.$ac_ext <<_ACEOF
23256 /* confdefs.h.  */
23257 _ACEOF
23258 cat confdefs.h >>conftest.$ac_ext
23259 cat >>conftest.$ac_ext <<_ACEOF
23260 /* end confdefs.h.  */
23261
23262 int
23263 main ()
23264 {
23265
23266                             #ifndef __STDC_EXT__
23267                                 choke me
23268                             #endif
23269
23270   ;
23271   return 0;
23272 }
23273 _ACEOF
23274 rm -f conftest.$ac_objext
23275 if { (ac_try="$ac_compile"
23276 case "(($ac_try" in
23277   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23278   *) ac_try_echo=$ac_try;;
23279 esac
23280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23281   (eval "$ac_compile") 2>conftest.er1
23282   ac_status=$?
23283   grep -v '^ *+' conftest.er1 >conftest.err
23284   rm -f conftest.er1
23285   cat conftest.err >&5
23286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23287   (exit $ac_status); } && {
23288          test -z "$ac_cxx_werror_flag" ||
23289          test ! -s conftest.err
23290        } && test -s conftest.$ac_objext; then
23291   wx_cv_STDC_EXT_required=no
23292 else
23293   echo "$as_me: failed program was:" >&5
23294 sed 's/^/| /' conftest.$ac_ext >&5
23295
23296         wx_cv_STDC_EXT_required=yes
23297
23298 fi
23299
23300 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23301                     ac_ext=c
23302 ac_cpp='$CPP $CPPFLAGS'
23303 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23304 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23305 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23306
23307
23308
23309 fi
23310 { echo "$as_me:$LINENO: result: $wx_cv_STDC_EXT_required" >&5
23311 echo "${ECHO_T}$wx_cv_STDC_EXT_required" >&6; }
23312             if test "x$wx_cv_STDC_EXT_required" = "xyes"; then
23313                 WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -D__STDC_EXT__"
23314             fi
23315         fi
23316     else
23317         WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_LARGE_FILES"
23318     fi
23319         { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
23320 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6; }
23321 if test "${ac_cv_sys_largefile_source+set}" = set; then
23322   echo $ECHO_N "(cached) $ECHO_C" >&6
23323 else
23324   while :; do
23325   cat >conftest.$ac_ext <<_ACEOF
23326 /* confdefs.h.  */
23327 _ACEOF
23328 cat confdefs.h >>conftest.$ac_ext
23329 cat >>conftest.$ac_ext <<_ACEOF
23330 /* end confdefs.h.  */
23331 #include <sys/types.h> /* for off_t */
23332      #include <stdio.h>
23333 int
23334 main ()
23335 {
23336 int (*fp) (FILE *, off_t, int) = fseeko;
23337      return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
23338   ;
23339   return 0;
23340 }
23341 _ACEOF
23342 rm -f conftest.$ac_objext conftest$ac_exeext
23343 if { (ac_try="$ac_link"
23344 case "(($ac_try" in
23345   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23346   *) ac_try_echo=$ac_try;;
23347 esac
23348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23349   (eval "$ac_link") 2>conftest.er1
23350   ac_status=$?
23351   grep -v '^ *+' conftest.er1 >conftest.err
23352   rm -f conftest.er1
23353   cat conftest.err >&5
23354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23355   (exit $ac_status); } && {
23356          test -z "$ac_c_werror_flag" ||
23357          test ! -s conftest.err
23358        } && test -s conftest$ac_exeext &&
23359        $as_test_x conftest$ac_exeext; then
23360   ac_cv_sys_largefile_source=no; break
23361 else
23362   echo "$as_me: failed program was:" >&5
23363 sed 's/^/| /' conftest.$ac_ext >&5
23364
23365
23366 fi
23367
23368 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23369       conftest$ac_exeext conftest.$ac_ext
23370   cat >conftest.$ac_ext <<_ACEOF
23371 /* confdefs.h.  */
23372 _ACEOF
23373 cat confdefs.h >>conftest.$ac_ext
23374 cat >>conftest.$ac_ext <<_ACEOF
23375 /* end confdefs.h.  */
23376 #define _LARGEFILE_SOURCE 1
23377 #include <sys/types.h> /* for off_t */
23378      #include <stdio.h>
23379 int
23380 main ()
23381 {
23382 int (*fp) (FILE *, off_t, int) = fseeko;
23383      return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
23384   ;
23385   return 0;
23386 }
23387 _ACEOF
23388 rm -f conftest.$ac_objext conftest$ac_exeext
23389 if { (ac_try="$ac_link"
23390 case "(($ac_try" in
23391   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23392   *) ac_try_echo=$ac_try;;
23393 esac
23394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23395   (eval "$ac_link") 2>conftest.er1
23396   ac_status=$?
23397   grep -v '^ *+' conftest.er1 >conftest.err
23398   rm -f conftest.er1
23399   cat conftest.err >&5
23400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23401   (exit $ac_status); } && {
23402          test -z "$ac_c_werror_flag" ||
23403          test ! -s conftest.err
23404        } && test -s conftest$ac_exeext &&
23405        $as_test_x conftest$ac_exeext; then
23406   ac_cv_sys_largefile_source=1; break
23407 else
23408   echo "$as_me: failed program was:" >&5
23409 sed 's/^/| /' conftest.$ac_ext >&5
23410
23411
23412 fi
23413
23414 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23415       conftest$ac_exeext conftest.$ac_ext
23416   ac_cv_sys_largefile_source=unknown
23417   break
23418 done
23419 fi
23420 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
23421 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
23422 case $ac_cv_sys_largefile_source in #(
23423   no | unknown) ;;
23424   *)
23425 cat >>confdefs.h <<_ACEOF
23426 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
23427 _ACEOF
23428 ;;
23429 esac
23430 rm -f conftest*
23431
23432 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
23433 # in glibc 2.1.3, but that breaks too many other things.
23434 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
23435 if test $ac_cv_sys_largefile_source != unknown; then
23436
23437 cat >>confdefs.h <<\_ACEOF
23438 #define HAVE_FSEEKO 1
23439 _ACEOF
23440
23441 fi
23442
23443     if test "$ac_cv_sys_largefile_source" != no; then
23444         WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_LARGEFILE_SOURCE=$ac_cv_sys_largefile_source"
23445     fi
23446 fi
23447
23448 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
23449 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
23450 if test "${ac_cv_c_bigendian+set}" = set; then
23451   echo $ECHO_N "(cached) $ECHO_C" >&6
23452 else
23453   ac_cv_c_bigendian=unknown
23454 # See if sys/param.h defines the BYTE_ORDER macro.
23455 cat >conftest.$ac_ext <<_ACEOF
23456 /* confdefs.h.  */
23457 _ACEOF
23458 cat confdefs.h >>conftest.$ac_ext
23459 cat >>conftest.$ac_ext <<_ACEOF
23460 /* end confdefs.h.  */
23461 #include <sys/types.h>
23462 #include <sys/param.h>
23463 int
23464 main ()
23465 {
23466
23467 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
23468  bogus endian macros
23469 #endif
23470   ;
23471   return 0;
23472 }
23473 _ACEOF
23474 rm -f conftest.$ac_objext
23475 if { (ac_try="$ac_compile"
23476 case "(($ac_try" in
23477   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23478   *) ac_try_echo=$ac_try;;
23479 esac
23480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23481   (eval "$ac_compile") 2>conftest.er1
23482   ac_status=$?
23483   grep -v '^ *+' conftest.er1 >conftest.err
23484   rm -f conftest.er1
23485   cat conftest.err >&5
23486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23487   (exit $ac_status); } && {
23488          test -z "$ac_c_werror_flag" ||
23489          test ! -s conftest.err
23490        } && test -s conftest.$ac_objext; then
23491   # It does; now see whether it defined to BIG_ENDIAN or not.
23492 cat >conftest.$ac_ext <<_ACEOF
23493 /* confdefs.h.  */
23494 _ACEOF
23495 cat confdefs.h >>conftest.$ac_ext
23496 cat >>conftest.$ac_ext <<_ACEOF
23497 /* end confdefs.h.  */
23498 #include <sys/types.h>
23499 #include <sys/param.h>
23500 int
23501 main ()
23502 {
23503
23504 #if BYTE_ORDER != BIG_ENDIAN
23505  not big endian
23506 #endif
23507   ;
23508   return 0;
23509 }
23510 _ACEOF
23511 rm -f conftest.$ac_objext
23512 if { (ac_try="$ac_compile"
23513 case "(($ac_try" in
23514   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23515   *) ac_try_echo=$ac_try;;
23516 esac
23517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23518   (eval "$ac_compile") 2>conftest.er1
23519   ac_status=$?
23520   grep -v '^ *+' conftest.er1 >conftest.err
23521   rm -f conftest.er1
23522   cat conftest.err >&5
23523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23524   (exit $ac_status); } && {
23525          test -z "$ac_c_werror_flag" ||
23526          test ! -s conftest.err
23527        } && test -s conftest.$ac_objext; then
23528   ac_cv_c_bigendian=yes
23529 else
23530   echo "$as_me: failed program was:" >&5
23531 sed 's/^/| /' conftest.$ac_ext >&5
23532
23533         ac_cv_c_bigendian=no
23534 fi
23535
23536 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23537 else
23538   echo "$as_me: failed program was:" >&5
23539 sed 's/^/| /' conftest.$ac_ext >&5
23540
23541
23542 fi
23543
23544 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23545 if test $ac_cv_c_bigendian = unknown; then
23546 if test "$cross_compiling" = yes; then
23547   ac_cv_c_bigendian=unknown
23548 else
23549   cat >conftest.$ac_ext <<_ACEOF
23550 /* confdefs.h.  */
23551 _ACEOF
23552 cat confdefs.h >>conftest.$ac_ext
23553 cat >>conftest.$ac_ext <<_ACEOF
23554 /* end confdefs.h.  */
23555 main () {
23556   /* Are we little or big endian?  From Harbison&Steele.  */
23557   union
23558   {
23559     long l;
23560     char c[sizeof (long)];
23561   } u;
23562   u.l = 1;
23563   exit (u.c[sizeof (long) - 1] == 1);
23564 }
23565 _ACEOF
23566 rm -f conftest$ac_exeext
23567 if { (ac_try="$ac_link"
23568 case "(($ac_try" in
23569   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23570   *) ac_try_echo=$ac_try;;
23571 esac
23572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23573   (eval "$ac_link") 2>&5
23574   ac_status=$?
23575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23576   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23577   { (case "(($ac_try" in
23578   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23579   *) ac_try_echo=$ac_try;;
23580 esac
23581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23582   (eval "$ac_try") 2>&5
23583   ac_status=$?
23584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23585   (exit $ac_status); }; }; then
23586   ac_cv_c_bigendian=no
23587 else
23588   echo "$as_me: program exited with status $ac_status" >&5
23589 echo "$as_me: failed program was:" >&5
23590 sed 's/^/| /' conftest.$ac_ext >&5
23591
23592 ( exit $ac_status )
23593 ac_cv_c_bigendian=yes
23594 fi
23595 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23596 fi
23597
23598
23599 fi
23600 fi
23601 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
23602 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
23603 if test $ac_cv_c_bigendian = unknown; then
23604   { 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
23605 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;}
23606 fi
23607 if test $ac_cv_c_bigendian = yes; then
23608   cat >>confdefs.h <<\_ACEOF
23609 #define WORDS_BIGENDIAN 1
23610 _ACEOF
23611
23612 fi
23613
23614
23615
23616
23617     ac_ext=cpp
23618 ac_cpp='$CXXCPP $CPPFLAGS'
23619 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23620 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23621 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23622
23623
23624
23625 for ac_header in iostream
23626 do
23627 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23628 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23629 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23630 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23631   echo $ECHO_N "(cached) $ECHO_C" >&6
23632 else
23633   cat >conftest.$ac_ext <<_ACEOF
23634 /* confdefs.h.  */
23635 _ACEOF
23636 cat confdefs.h >>conftest.$ac_ext
23637 cat >>conftest.$ac_ext <<_ACEOF
23638 /* end confdefs.h.  */
23639
23640
23641 #include <$ac_header>
23642 _ACEOF
23643 rm -f conftest.$ac_objext
23644 if { (ac_try="$ac_compile"
23645 case "(($ac_try" in
23646   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23647   *) ac_try_echo=$ac_try;;
23648 esac
23649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23650   (eval "$ac_compile") 2>conftest.er1
23651   ac_status=$?
23652   grep -v '^ *+' conftest.er1 >conftest.err
23653   rm -f conftest.er1
23654   cat conftest.err >&5
23655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23656   (exit $ac_status); } && {
23657          test -z "$ac_cxx_werror_flag" ||
23658          test ! -s conftest.err
23659        } && test -s conftest.$ac_objext; then
23660   eval "$as_ac_Header=yes"
23661 else
23662   echo "$as_me: failed program was:" >&5
23663 sed 's/^/| /' conftest.$ac_ext >&5
23664
23665         eval "$as_ac_Header=no"
23666 fi
23667
23668 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23669 fi
23670 ac_res=`eval echo '${'$as_ac_Header'}'`
23671                { echo "$as_me:$LINENO: result: $ac_res" >&5
23672 echo "${ECHO_T}$ac_res" >&6; }
23673 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23674   cat >>confdefs.h <<_ACEOF
23675 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23676 _ACEOF
23677
23678 fi
23679
23680 done
23681
23682
23683     if test "$ac_cv_header_iostream" = "yes" ; then
23684       :
23685     else
23686       cat >>confdefs.h <<\_ACEOF
23687 #define wxUSE_IOSTREAMH 1
23688 _ACEOF
23689
23690     fi
23691
23692     ac_ext=c
23693 ac_cpp='$CPP $CPPFLAGS'
23694 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23695 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23696 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23697
23698
23699
23700
23701   { echo "$as_me:$LINENO: checking if C++ compiler supports bool" >&5
23702 echo $ECHO_N "checking if C++ compiler supports bool... $ECHO_C" >&6; }
23703 if test "${wx_cv_cpp_bool+set}" = set; then
23704   echo $ECHO_N "(cached) $ECHO_C" >&6
23705 else
23706
23707
23708     ac_ext=cpp
23709 ac_cpp='$CXXCPP $CPPFLAGS'
23710 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23711 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23712 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23713
23714
23715     cat >conftest.$ac_ext <<_ACEOF
23716 /* confdefs.h.  */
23717 _ACEOF
23718 cat confdefs.h >>conftest.$ac_ext
23719 cat >>conftest.$ac_ext <<_ACEOF
23720 /* end confdefs.h.  */
23721
23722
23723 int
23724 main ()
23725 {
23726
23727         bool b = true;
23728
23729         return 0;
23730
23731   ;
23732   return 0;
23733 }
23734 _ACEOF
23735 rm -f conftest.$ac_objext
23736 if { (ac_try="$ac_compile"
23737 case "(($ac_try" in
23738   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23739   *) ac_try_echo=$ac_try;;
23740 esac
23741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23742   (eval "$ac_compile") 2>conftest.er1
23743   ac_status=$?
23744   grep -v '^ *+' conftest.er1 >conftest.err
23745   rm -f conftest.er1
23746   cat conftest.err >&5
23747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23748   (exit $ac_status); } && {
23749          test -z "$ac_cxx_werror_flag" ||
23750          test ! -s conftest.err
23751        } && test -s conftest.$ac_objext; then
23752
23753         wx_cv_cpp_bool=yes
23754
23755 else
23756   echo "$as_me: failed program was:" >&5
23757 sed 's/^/| /' conftest.$ac_ext >&5
23758
23759
23760         wx_cv_cpp_bool=no
23761
23762
23763 fi
23764
23765 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23766
23767     ac_ext=c
23768 ac_cpp='$CPP $CPPFLAGS'
23769 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23770 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23771 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23772
23773
23774 fi
23775 { echo "$as_me:$LINENO: result: $wx_cv_cpp_bool" >&5
23776 echo "${ECHO_T}$wx_cv_cpp_bool" >&6; }
23777
23778   if test "$wx_cv_cpp_bool" = "yes"; then
23779     cat >>confdefs.h <<\_ACEOF
23780 #define HAVE_BOOL 1
23781 _ACEOF
23782
23783   fi
23784
23785
23786
23787   { echo "$as_me:$LINENO: checking if C++ compiler supports the explicit keyword" >&5
23788 echo $ECHO_N "checking if C++ compiler supports the explicit keyword... $ECHO_C" >&6; }
23789 if test "${wx_cv_explicit+set}" = set; then
23790   echo $ECHO_N "(cached) $ECHO_C" >&6
23791 else
23792
23793
23794     ac_ext=cpp
23795 ac_cpp='$CXXCPP $CPPFLAGS'
23796 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23797 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23798 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23799
23800
23801             cat >conftest.$ac_ext <<_ACEOF
23802 /* confdefs.h.  */
23803 _ACEOF
23804 cat confdefs.h >>conftest.$ac_ext
23805 cat >>conftest.$ac_ext <<_ACEOF
23806 /* end confdefs.h.  */
23807
23808         class Foo { public: explicit Foo(int) {} };
23809
23810 int
23811 main ()
23812 {
23813
23814         return 0;
23815
23816   ;
23817   return 0;
23818 }
23819 _ACEOF
23820 rm -f conftest.$ac_objext
23821 if { (ac_try="$ac_compile"
23822 case "(($ac_try" in
23823   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23824   *) ac_try_echo=$ac_try;;
23825 esac
23826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23827   (eval "$ac_compile") 2>conftest.er1
23828   ac_status=$?
23829   grep -v '^ *+' conftest.er1 >conftest.err
23830   rm -f conftest.er1
23831   cat conftest.err >&5
23832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23833   (exit $ac_status); } && {
23834          test -z "$ac_cxx_werror_flag" ||
23835          test ! -s conftest.err
23836        } && test -s conftest.$ac_objext; then
23837
23838         cat >conftest.$ac_ext <<_ACEOF
23839 /* confdefs.h.  */
23840 _ACEOF
23841 cat confdefs.h >>conftest.$ac_ext
23842 cat >>conftest.$ac_ext <<_ACEOF
23843 /* end confdefs.h.  */
23844
23845                 class Foo { public: explicit Foo(int) {} };
23846                 static void TakeFoo(const Foo& foo) { }
23847
23848 int
23849 main ()
23850 {
23851
23852                 TakeFoo(17);
23853                 return 0;
23854
23855   ;
23856   return 0;
23857 }
23858 _ACEOF
23859 rm -f conftest.$ac_objext
23860 if { (ac_try="$ac_compile"
23861 case "(($ac_try" in
23862   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23863   *) ac_try_echo=$ac_try;;
23864 esac
23865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23866   (eval "$ac_compile") 2>conftest.er1
23867   ac_status=$?
23868   grep -v '^ *+' conftest.er1 >conftest.err
23869   rm -f conftest.er1
23870   cat conftest.err >&5
23871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23872   (exit $ac_status); } && {
23873          test -z "$ac_cxx_werror_flag" ||
23874          test ! -s conftest.err
23875        } && test -s conftest.$ac_objext; then
23876   wx_cv_explicit=no
23877 else
23878   echo "$as_me: failed program was:" >&5
23879 sed 's/^/| /' conftest.$ac_ext >&5
23880
23881         wx_cv_explicit=yes
23882
23883 fi
23884
23885 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23886
23887 else
23888   echo "$as_me: failed program was:" >&5
23889 sed 's/^/| /' conftest.$ac_ext >&5
23890
23891         wx_cv_explicit=no
23892
23893 fi
23894
23895 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23896
23897     ac_ext=c
23898 ac_cpp='$CPP $CPPFLAGS'
23899 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23900 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23901 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23902
23903
23904 fi
23905 { echo "$as_me:$LINENO: result: $wx_cv_explicit" >&5
23906 echo "${ECHO_T}$wx_cv_explicit" >&6; }
23907
23908   if test "$wx_cv_explicit" = "yes"; then
23909     cat >>confdefs.h <<\_ACEOF
23910 #define HAVE_EXPLICIT 1
23911 _ACEOF
23912
23913   fi
23914
23915
23916 { echo "$as_me:$LINENO: checking whether the compiler supports const_cast<>" >&5
23917 echo $ECHO_N "checking whether the compiler supports const_cast<>... $ECHO_C" >&6; }
23918 if test "${ac_cv_cxx_const_cast+set}" = set; then
23919   echo $ECHO_N "(cached) $ECHO_C" >&6
23920 else
23921
23922  ac_ext=cpp
23923 ac_cpp='$CXXCPP $CPPFLAGS'
23924 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23925 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23926 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23927
23928  cat >conftest.$ac_ext <<_ACEOF
23929 /* confdefs.h.  */
23930 _ACEOF
23931 cat confdefs.h >>conftest.$ac_ext
23932 cat >>conftest.$ac_ext <<_ACEOF
23933 /* end confdefs.h.  */
23934
23935 int
23936 main ()
23937 {
23938 int x = 0;const int& y = x;int& z = const_cast<int&>(y);return z;
23939   ;
23940   return 0;
23941 }
23942 _ACEOF
23943 rm -f conftest.$ac_objext
23944 if { (ac_try="$ac_compile"
23945 case "(($ac_try" in
23946   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23947   *) ac_try_echo=$ac_try;;
23948 esac
23949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23950   (eval "$ac_compile") 2>conftest.er1
23951   ac_status=$?
23952   grep -v '^ *+' conftest.er1 >conftest.err
23953   rm -f conftest.er1
23954   cat conftest.err >&5
23955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23956   (exit $ac_status); } && {
23957          test -z "$ac_cxx_werror_flag" ||
23958          test ! -s conftest.err
23959        } && test -s conftest.$ac_objext; then
23960   ac_cv_cxx_const_cast=yes
23961 else
23962   echo "$as_me: failed program was:" >&5
23963 sed 's/^/| /' conftest.$ac_ext >&5
23964
23965         ac_cv_cxx_const_cast=no
23966 fi
23967
23968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23969  ac_ext=c
23970 ac_cpp='$CPP $CPPFLAGS'
23971 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23972 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23973 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23974
23975
23976 fi
23977 { echo "$as_me:$LINENO: result: $ac_cv_cxx_const_cast" >&5
23978 echo "${ECHO_T}$ac_cv_cxx_const_cast" >&6; }
23979 if test "$ac_cv_cxx_const_cast" = yes; then
23980
23981 cat >>confdefs.h <<\_ACEOF
23982 #define HAVE_CONST_CAST
23983 _ACEOF
23984
23985 fi
23986
23987 { echo "$as_me:$LINENO: checking whether the compiler supports reinterpret_cast<>" >&5
23988 echo $ECHO_N "checking whether the compiler supports reinterpret_cast<>... $ECHO_C" >&6; }
23989 if test "${ac_cv_cxx_reinterpret_cast+set}" = set; then
23990   echo $ECHO_N "(cached) $ECHO_C" >&6
23991 else
23992
23993  ac_ext=cpp
23994 ac_cpp='$CXXCPP $CPPFLAGS'
23995 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23996 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23997 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23998
23999  cat >conftest.$ac_ext <<_ACEOF
24000 /* confdefs.h.  */
24001 _ACEOF
24002 cat confdefs.h >>conftest.$ac_ext
24003 cat >>conftest.$ac_ext <<_ACEOF
24004 /* end confdefs.h.  */
24005 #include <typeinfo>
24006 class Base { public : Base () {} virtual void f () = 0;};
24007 class Derived : public Base { public : Derived () {} virtual void f () {} };
24008 class Unrelated { public : Unrelated () {} };
24009 int g (Unrelated&) { return 0; }
24010 int
24011 main ()
24012 {
24013
24014 Derived d;Base& b=d;Unrelated& e=reinterpret_cast<Unrelated&>(b);return g(e);
24015   ;
24016   return 0;
24017 }
24018 _ACEOF
24019 rm -f conftest.$ac_objext
24020 if { (ac_try="$ac_compile"
24021 case "(($ac_try" in
24022   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24023   *) ac_try_echo=$ac_try;;
24024 esac
24025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24026   (eval "$ac_compile") 2>conftest.er1
24027   ac_status=$?
24028   grep -v '^ *+' conftest.er1 >conftest.err
24029   rm -f conftest.er1
24030   cat conftest.err >&5
24031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24032   (exit $ac_status); } && {
24033          test -z "$ac_cxx_werror_flag" ||
24034          test ! -s conftest.err
24035        } && test -s conftest.$ac_objext; then
24036   ac_cv_cxx_reinterpret_cast=yes
24037 else
24038   echo "$as_me: failed program was:" >&5
24039 sed 's/^/| /' conftest.$ac_ext >&5
24040
24041         ac_cv_cxx_reinterpret_cast=no
24042 fi
24043
24044 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24045  ac_ext=c
24046 ac_cpp='$CPP $CPPFLAGS'
24047 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24048 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24049 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24050
24051
24052 fi
24053 { echo "$as_me:$LINENO: result: $ac_cv_cxx_reinterpret_cast" >&5
24054 echo "${ECHO_T}$ac_cv_cxx_reinterpret_cast" >&6; }
24055 if test "$ac_cv_cxx_reinterpret_cast" = yes; then
24056
24057 cat >>confdefs.h <<\_ACEOF
24058 #define HAVE_REINTERPRET_CAST
24059 _ACEOF
24060
24061 fi
24062
24063 { echo "$as_me:$LINENO: checking whether the compiler supports static_cast<>" >&5
24064 echo $ECHO_N "checking whether the compiler supports static_cast<>... $ECHO_C" >&6; }
24065 if test "${ac_cv_cxx_static_cast+set}" = set; then
24066   echo $ECHO_N "(cached) $ECHO_C" >&6
24067 else
24068
24069  ac_ext=cpp
24070 ac_cpp='$CXXCPP $CPPFLAGS'
24071 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24072 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24073 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24074
24075  cat >conftest.$ac_ext <<_ACEOF
24076 /* confdefs.h.  */
24077 _ACEOF
24078 cat confdefs.h >>conftest.$ac_ext
24079 cat >>conftest.$ac_ext <<_ACEOF
24080 /* end confdefs.h.  */
24081 #include <typeinfo>
24082 class Base { public : Base () {} virtual void f () = 0; };
24083 class Derived : public Base { public : Derived () {} virtual void f () {} };
24084 int g (Derived&) { return 0; }
24085 int
24086 main ()
24087 {
24088
24089 Derived d; Base& b = d; Derived& s = static_cast<Derived&> (b); return g (s);
24090   ;
24091   return 0;
24092 }
24093 _ACEOF
24094 rm -f conftest.$ac_objext
24095 if { (ac_try="$ac_compile"
24096 case "(($ac_try" in
24097   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24098   *) ac_try_echo=$ac_try;;
24099 esac
24100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24101   (eval "$ac_compile") 2>conftest.er1
24102   ac_status=$?
24103   grep -v '^ *+' conftest.er1 >conftest.err
24104   rm -f conftest.er1
24105   cat conftest.err >&5
24106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24107   (exit $ac_status); } && {
24108          test -z "$ac_cxx_werror_flag" ||
24109          test ! -s conftest.err
24110        } && test -s conftest.$ac_objext; then
24111   ac_cv_cxx_static_cast=yes
24112 else
24113   echo "$as_me: failed program was:" >&5
24114 sed 's/^/| /' conftest.$ac_ext >&5
24115
24116         ac_cv_cxx_static_cast=no
24117 fi
24118
24119 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24120  ac_ext=c
24121 ac_cpp='$CPP $CPPFLAGS'
24122 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24123 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24124 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24125
24126
24127 fi
24128 { echo "$as_me:$LINENO: result: $ac_cv_cxx_static_cast" >&5
24129 echo "${ECHO_T}$ac_cv_cxx_static_cast" >&6; }
24130 if test "$ac_cv_cxx_static_cast" = yes; then
24131
24132 cat >>confdefs.h <<\_ACEOF
24133 #define HAVE_STATIC_CAST
24134 _ACEOF
24135
24136 fi
24137
24138
24139 if test "x$SUNCXX" = xyes; then
24140     CXXFLAGS="-features=tmplife $CXXFLAGS"
24141 fi
24142
24143 if test "x$SUNCC" = xyes; then
24144     CFLAGS="-erroff=E_NO_EXPLICIT_TYPE_GIVEN $CFLAGS"
24145 fi
24146
24147 if test "x$SGICC" = "xyes"; then
24148     CFLAGS="-woff 3970 $CFLAGS"
24149 fi
24150 if test "x$SGICXX" = "xyes"; then
24151     CXXFLAGS="-woff 3970 $CXXFLAGS"
24152 fi
24153
24154 if test "x$HPCC" = "xyes"; then
24155                     CFLAGS="+W 2011,2450 $CFLAGS"
24156 fi
24157 if test "x$HPCXX" = "xyes"; then
24158             CXXFLAGS="+W 2340 $CXXFLAGS"
24159 fi
24160
24161 if test "x$COMPAQCXX" = "xyes"; then
24162                                 CXXFLAGS="-w0 -msg_disable basclsnondto,unrimpret,intconlosbit"
24163 fi
24164
24165 ac_ext=cpp
24166 ac_cpp='$CXXCPP $CPPFLAGS'
24167 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24168 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24169 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24170
24171
24172 if test "$wxUSE_STD_STRING" = "yes" -o "$wxUSE_STL" = "yes"; then
24173     if test "$wxUSE_UNICODE" = "yes"; then
24174         std_string="std::wstring"
24175         char_type="wchar_t"
24176     else
24177         std_string="std::string"
24178         char_type="char"
24179     fi
24180
24181         { echo "$as_me:$LINENO: checking for $std_string in <string>" >&5
24182 echo $ECHO_N "checking for $std_string in <string>... $ECHO_C" >&6; }
24183 if test "${wx_cv_class_stdstring+set}" = set; then
24184   echo $ECHO_N "(cached) $ECHO_C" >&6
24185 else
24186
24187             cat >conftest.$ac_ext <<_ACEOF
24188 /* confdefs.h.  */
24189 _ACEOF
24190 cat confdefs.h >>conftest.$ac_ext
24191 cat >>conftest.$ac_ext <<_ACEOF
24192 /* end confdefs.h.  */
24193 #include <string>
24194 int
24195 main ()
24196 {
24197 $std_string foo;
24198   ;
24199   return 0;
24200 }
24201 _ACEOF
24202 rm -f conftest.$ac_objext
24203 if { (ac_try="$ac_compile"
24204 case "(($ac_try" in
24205   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24206   *) ac_try_echo=$ac_try;;
24207 esac
24208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24209   (eval "$ac_compile") 2>conftest.er1
24210   ac_status=$?
24211   grep -v '^ *+' conftest.er1 >conftest.err
24212   rm -f conftest.er1
24213   cat conftest.err >&5
24214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24215   (exit $ac_status); } && {
24216          test -z "$ac_cxx_werror_flag" ||
24217          test ! -s conftest.err
24218        } && test -s conftest.$ac_objext; then
24219   wx_cv_class_stdstring=yes
24220 else
24221   echo "$as_me: failed program was:" >&5
24222 sed 's/^/| /' conftest.$ac_ext >&5
24223
24224         wx_cv_class_stdstring=no
24225
24226 fi
24227
24228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24229
24230
24231 fi
24232 { echo "$as_me:$LINENO: result: $wx_cv_class_stdstring" >&5
24233 echo "${ECHO_T}$wx_cv_class_stdstring" >&6; }
24234
24235     if test "$wx_cv_class_stdstring" = yes; then
24236         if test "$wxUSE_UNICODE" = "yes"; then
24237             cat >>confdefs.h <<\_ACEOF
24238 #define HAVE_STD_WSTRING 1
24239 _ACEOF
24240
24241         fi
24242                     else
24243         { echo "$as_me:$LINENO: checking if std::basic_string<$char_type> works" >&5
24244 echo $ECHO_N "checking if std::basic_string<$char_type> works... $ECHO_C" >&6; }
24245 if test "${wx_cv_class_stdbasicstring+set}" = set; then
24246   echo $ECHO_N "(cached) $ECHO_C" >&6
24247 else
24248
24249                 cat >conftest.$ac_ext <<_ACEOF
24250 /* confdefs.h.  */
24251 _ACEOF
24252 cat confdefs.h >>conftest.$ac_ext
24253 cat >>conftest.$ac_ext <<_ACEOF
24254 /* end confdefs.h.  */
24255
24256                     #ifdef HAVE_WCHAR_H
24257                     #  ifdef __CYGWIN__
24258                     #    include <stddef.h>
24259                     #  endif
24260                     #  include <wchar.h>
24261                     #endif
24262                     #ifdef HAVE_STDLIB_H
24263                     #  include <stdlib.h>
24264                     #endif
24265                     #include <stdio.h>
24266                     #include <string>
24267
24268 int
24269 main ()
24270 {
24271 std::basic_string<$char_type> foo;
24272                      const $char_type* dummy = foo.c_str();
24273   ;
24274   return 0;
24275 }
24276 _ACEOF
24277 rm -f conftest.$ac_objext
24278 if { (ac_try="$ac_compile"
24279 case "(($ac_try" in
24280   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24281   *) ac_try_echo=$ac_try;;
24282 esac
24283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24284   (eval "$ac_compile") 2>conftest.er1
24285   ac_status=$?
24286   grep -v '^ *+' conftest.er1 >conftest.err
24287   rm -f conftest.er1
24288   cat conftest.err >&5
24289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24290   (exit $ac_status); } && {
24291          test -z "$ac_cxx_werror_flag" ||
24292          test ! -s conftest.err
24293        } && test -s conftest.$ac_objext; then
24294   wx_cv_class_stdbasicstring=yes
24295 else
24296   echo "$as_me: failed program was:" >&5
24297 sed 's/^/| /' conftest.$ac_ext >&5
24298
24299         wx_cv_class_stdbasicstring=no
24300
24301 fi
24302
24303 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24304
24305
24306 fi
24307 { echo "$as_me:$LINENO: result: $wx_cv_class_stdbasicstring" >&5
24308 echo "${ECHO_T}$wx_cv_class_stdbasicstring" >&6; }
24309
24310         if test "$wx_cv_class_stdbasicstring" != yes; then
24311             if test "$wxUSE_STL" = "yes"; then
24312                 { { echo "$as_me:$LINENO: error: Can't use --enable-stl without $std_string or std::basic_string<$char_type>" >&5
24313 echo "$as_me: error: Can't use --enable-stl without $std_string or std::basic_string<$char_type>" >&2;}
24314    { (exit 1); exit 1; }; }
24315             elif test "$wxUSE_STD_STRING" = "yes"; then
24316                 { { echo "$as_me:$LINENO: error: Can't use --enable-std_string without $std_string or std::basic_string<$char_type>" >&5
24317 echo "$as_me: error: Can't use --enable-std_string without $std_string or std::basic_string<$char_type>" >&2;}
24318    { (exit 1); exit 1; }; }
24319             else
24320                 { echo "$as_me:$LINENO: WARNING: No $std_string or std::basic_string<$char_type>, switching to --disable-std_string" >&5
24321 echo "$as_me: WARNING: No $std_string or std::basic_string<$char_type>, switching to --disable-std_string" >&2;}
24322                 wxUSE_STD_STRING=no
24323             fi
24324         fi
24325     fi
24326 fi
24327
24328 if test "$wxUSE_STD_IOSTREAM" = "yes"; then
24329     { echo "$as_me:$LINENO: checking for std::istream" >&5
24330 echo $ECHO_N "checking for std::istream... $ECHO_C" >&6; }
24331 if test "${ac_cv_type_std__istream+set}" = set; then
24332   echo $ECHO_N "(cached) $ECHO_C" >&6
24333 else
24334   cat >conftest.$ac_ext <<_ACEOF
24335 /* confdefs.h.  */
24336 _ACEOF
24337 cat confdefs.h >>conftest.$ac_ext
24338 cat >>conftest.$ac_ext <<_ACEOF
24339 /* end confdefs.h.  */
24340 #include <iostream>
24341
24342 typedef std::istream ac__type_new_;
24343 int
24344 main ()
24345 {
24346 if ((ac__type_new_ *) 0)
24347   return 0;
24348 if (sizeof (ac__type_new_))
24349   return 0;
24350   ;
24351   return 0;
24352 }
24353 _ACEOF
24354 rm -f conftest.$ac_objext
24355 if { (ac_try="$ac_compile"
24356 case "(($ac_try" in
24357   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24358   *) ac_try_echo=$ac_try;;
24359 esac
24360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24361   (eval "$ac_compile") 2>conftest.er1
24362   ac_status=$?
24363   grep -v '^ *+' conftest.er1 >conftest.err
24364   rm -f conftest.er1
24365   cat conftest.err >&5
24366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24367   (exit $ac_status); } && {
24368          test -z "$ac_cxx_werror_flag" ||
24369          test ! -s conftest.err
24370        } && test -s conftest.$ac_objext; then
24371   ac_cv_type_std__istream=yes
24372 else
24373   echo "$as_me: failed program was:" >&5
24374 sed 's/^/| /' conftest.$ac_ext >&5
24375
24376         ac_cv_type_std__istream=no
24377 fi
24378
24379 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24380 fi
24381 { echo "$as_me:$LINENO: result: $ac_cv_type_std__istream" >&5
24382 echo "${ECHO_T}$ac_cv_type_std__istream" >&6; }
24383 if test $ac_cv_type_std__istream = yes; then
24384
24385 cat >>confdefs.h <<_ACEOF
24386 #define HAVE_STD__ISTREAM 1
24387 _ACEOF
24388
24389
24390 else
24391   wxUSE_STD_IOSTREAM=no
24392 fi
24393 { echo "$as_me:$LINENO: checking for std::ostream" >&5
24394 echo $ECHO_N "checking for std::ostream... $ECHO_C" >&6; }
24395 if test "${ac_cv_type_std__ostream+set}" = set; then
24396   echo $ECHO_N "(cached) $ECHO_C" >&6
24397 else
24398   cat >conftest.$ac_ext <<_ACEOF
24399 /* confdefs.h.  */
24400 _ACEOF
24401 cat confdefs.h >>conftest.$ac_ext
24402 cat >>conftest.$ac_ext <<_ACEOF
24403 /* end confdefs.h.  */
24404 #include <iostream>
24405
24406 typedef std::ostream ac__type_new_;
24407 int
24408 main ()
24409 {
24410 if ((ac__type_new_ *) 0)
24411   return 0;
24412 if (sizeof (ac__type_new_))
24413   return 0;
24414   ;
24415   return 0;
24416 }
24417 _ACEOF
24418 rm -f conftest.$ac_objext
24419 if { (ac_try="$ac_compile"
24420 case "(($ac_try" in
24421   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24422   *) ac_try_echo=$ac_try;;
24423 esac
24424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24425   (eval "$ac_compile") 2>conftest.er1
24426   ac_status=$?
24427   grep -v '^ *+' conftest.er1 >conftest.err
24428   rm -f conftest.er1
24429   cat conftest.err >&5
24430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24431   (exit $ac_status); } && {
24432          test -z "$ac_cxx_werror_flag" ||
24433          test ! -s conftest.err
24434        } && test -s conftest.$ac_objext; then
24435   ac_cv_type_std__ostream=yes
24436 else
24437   echo "$as_me: failed program was:" >&5
24438 sed 's/^/| /' conftest.$ac_ext >&5
24439
24440         ac_cv_type_std__ostream=no
24441 fi
24442
24443 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24444 fi
24445 { echo "$as_me:$LINENO: result: $ac_cv_type_std__ostream" >&5
24446 echo "${ECHO_T}$ac_cv_type_std__ostream" >&6; }
24447 if test $ac_cv_type_std__ostream = yes; then
24448
24449 cat >>confdefs.h <<_ACEOF
24450 #define HAVE_STD__OSTREAM 1
24451 _ACEOF
24452
24453
24454 else
24455   wxUSE_STD_IOSTREAM=no
24456 fi
24457
24458
24459     if test "$wxUSE_STD_IOSTREAM" != "yes"; then
24460         if test "$wxUSE_STD_IOSTREAM" = "yes"; then
24461             { { echo "$as_me:$LINENO: error: Can't use --enable-std_iostreams without std::istream and std::ostream" >&5
24462 echo "$as_me: error: Can't use --enable-std_iostreams without std::istream and std::ostream" >&2;}
24463    { (exit 1); exit 1; }; }
24464         else
24465             { echo "$as_me:$LINENO: WARNING: No std::iostreams, switching to --disable-std_iostreams" >&5
24466 echo "$as_me: WARNING: No std::iostreams, switching to --disable-std_iostreams" >&2;}
24467         fi
24468     fi
24469 fi
24470
24471 if test "$wxUSE_STL" = "yes"; then
24472         { echo "$as_me:$LINENO: checking for basic STL functionality" >&5
24473 echo $ECHO_N "checking for basic STL functionality... $ECHO_C" >&6; }
24474 if test "${wx_cv_lib_stl+set}" = set; then
24475   echo $ECHO_N "(cached) $ECHO_C" >&6
24476 else
24477   cat >conftest.$ac_ext <<_ACEOF
24478 /* confdefs.h.  */
24479 _ACEOF
24480 cat confdefs.h >>conftest.$ac_ext
24481 cat >>conftest.$ac_ext <<_ACEOF
24482 /* end confdefs.h.  */
24483 #include <string>
24484             #include <functional>
24485             #include <algorithm>
24486             #include <vector>
24487             #include <list>
24488 int
24489 main ()
24490 {
24491 std::vector<int> moo;
24492              std::list<int> foo;
24493              std::vector<int>::iterator it =
24494                  std::find_if(moo.begin(), moo.end(),
24495                               std::bind2nd(std::less<int>(), 3));
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_lib_stl=yes
24518 else
24519   echo "$as_me: failed program was:" >&5
24520 sed 's/^/| /' conftest.$ac_ext >&5
24521
24522         wx_cv_lib_stl=no
24523
24524 fi
24525
24526 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24527
24528 fi
24529 { echo "$as_me:$LINENO: result: $wx_cv_lib_stl" >&5
24530 echo "${ECHO_T}$wx_cv_lib_stl" >&6; }
24531
24532     if test "$wx_cv_lib_stl" != yes; then
24533          { { echo "$as_me:$LINENO: error: Can't use --enable-stl as basic STL functionality is missing" >&5
24534 echo "$as_me: error: Can't use --enable-stl as basic STL functionality is missing" >&2;}
24535    { (exit 1); exit 1; }; }
24536     fi
24537
24538         { echo "$as_me:$LINENO: checking for compliant std::string::compare" >&5
24539 echo $ECHO_N "checking for compliant std::string::compare... $ECHO_C" >&6; }
24540 if test "${wx_cv_func_stdstring_compare+set}" = set; then
24541   echo $ECHO_N "(cached) $ECHO_C" >&6
24542 else
24543   cat >conftest.$ac_ext <<_ACEOF
24544 /* confdefs.h.  */
24545 _ACEOF
24546 cat confdefs.h >>conftest.$ac_ext
24547 cat >>conftest.$ac_ext <<_ACEOF
24548 /* end confdefs.h.  */
24549 #include <string>
24550 int
24551 main ()
24552 {
24553 std::string foo, bar;
24554             foo.compare(bar);
24555             foo.compare(1, 1, bar);
24556             foo.compare(1, 1, bar, 1, 1);
24557             foo.compare("");
24558             foo.compare(1, 1, "");
24559             foo.compare(1, 1, "", 2);
24560   ;
24561   return 0;
24562 }
24563 _ACEOF
24564 rm -f conftest.$ac_objext
24565 if { (ac_try="$ac_compile"
24566 case "(($ac_try" in
24567   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24568   *) ac_try_echo=$ac_try;;
24569 esac
24570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24571   (eval "$ac_compile") 2>conftest.er1
24572   ac_status=$?
24573   grep -v '^ *+' conftest.er1 >conftest.err
24574   rm -f conftest.er1
24575   cat conftest.err >&5
24576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24577   (exit $ac_status); } && {
24578          test -z "$ac_cxx_werror_flag" ||
24579          test ! -s conftest.err
24580        } && test -s conftest.$ac_objext; then
24581   wx_cv_func_stdstring_compare=yes
24582 else
24583   echo "$as_me: failed program was:" >&5
24584 sed 's/^/| /' conftest.$ac_ext >&5
24585
24586         wx_cv_func_stdstring_compare=no
24587
24588 fi
24589
24590 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24591
24592 fi
24593 { echo "$as_me:$LINENO: result: $wx_cv_func_stdstring_compare" >&5
24594 echo "${ECHO_T}$wx_cv_func_stdstring_compare" >&6; }
24595
24596     if test "$wx_cv_func_stdstring_compare" = yes; then
24597         cat >>confdefs.h <<\_ACEOF
24598 #define HAVE_STD_STRING_COMPARE 1
24599 _ACEOF
24600
24601     fi
24602
24603         { echo "$as_me:$LINENO: checking for hash_map" >&5
24604 echo $ECHO_N "checking for hash_map... $ECHO_C" >&6; }
24605 if test "${ac_cv_header_hash_map+set}" = set; then
24606   echo $ECHO_N "(cached) $ECHO_C" >&6
24607 else
24608   cat >conftest.$ac_ext <<_ACEOF
24609 /* confdefs.h.  */
24610 _ACEOF
24611 cat confdefs.h >>conftest.$ac_ext
24612 cat >>conftest.$ac_ext <<_ACEOF
24613 /* end confdefs.h.  */
24614
24615
24616
24617 #include <hash_map>
24618 _ACEOF
24619 rm -f conftest.$ac_objext
24620 if { (ac_try="$ac_compile"
24621 case "(($ac_try" in
24622   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24623   *) ac_try_echo=$ac_try;;
24624 esac
24625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24626   (eval "$ac_compile") 2>conftest.er1
24627   ac_status=$?
24628   grep -v '^ *+' conftest.er1 >conftest.err
24629   rm -f conftest.er1
24630   cat conftest.err >&5
24631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24632   (exit $ac_status); } && {
24633          test -z "$ac_cxx_werror_flag" ||
24634          test ! -s conftest.err
24635        } && test -s conftest.$ac_objext; then
24636   ac_cv_header_hash_map=yes
24637 else
24638   echo "$as_me: failed program was:" >&5
24639 sed 's/^/| /' conftest.$ac_ext >&5
24640
24641         ac_cv_header_hash_map=no
24642 fi
24643
24644 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24645 fi
24646 { echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5
24647 echo "${ECHO_T}$ac_cv_header_hash_map" >&6; }
24648 if test $ac_cv_header_hash_map = yes; then
24649   { echo "$as_me:$LINENO: checking for standard hash_map and hash_set" >&5
24650 echo $ECHO_N "checking for standard hash_map and hash_set... $ECHO_C" >&6; }
24651 if test "${wx_cv_class_stdhashmapset+set}" = set; then
24652   echo $ECHO_N "(cached) $ECHO_C" >&6
24653 else
24654   cat >conftest.$ac_ext <<_ACEOF
24655 /* confdefs.h.  */
24656 _ACEOF
24657 cat confdefs.h >>conftest.$ac_ext
24658 cat >>conftest.$ac_ext <<_ACEOF
24659 /* end confdefs.h.  */
24660 #include <hash_map>
24661                 #include <hash_set>
24662 int
24663 main ()
24664 {
24665 std::hash_map<double*, char*, std::hash<double*>, std::equal_to<double*> > test1;
24666                  std::hash_set<char*, std::hash<char*>, std::equal_to<char*> > test2;
24667   ;
24668   return 0;
24669 }
24670 _ACEOF
24671 rm -f conftest.$ac_objext
24672 if { (ac_try="$ac_compile"
24673 case "(($ac_try" in
24674   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24675   *) ac_try_echo=$ac_try;;
24676 esac
24677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24678   (eval "$ac_compile") 2>conftest.er1
24679   ac_status=$?
24680   grep -v '^ *+' conftest.er1 >conftest.err
24681   rm -f conftest.er1
24682   cat conftest.err >&5
24683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24684   (exit $ac_status); } && {
24685          test -z "$ac_cxx_werror_flag" ||
24686          test ! -s conftest.err
24687        } && test -s conftest.$ac_objext; then
24688   wx_cv_class_stdhashmapset=yes
24689 else
24690   echo "$as_me: failed program was:" >&5
24691 sed 's/^/| /' conftest.$ac_ext >&5
24692
24693         wx_cv_class_stdhashmapset=no
24694 fi
24695
24696 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24697
24698
24699 fi
24700 { echo "$as_me:$LINENO: result: $wx_cv_class_stdhashmapset" >&5
24701 echo "${ECHO_T}$wx_cv_class_stdhashmapset" >&6; }
24702 fi
24703
24704
24705
24706     if test "$wx_cv_class_stdhashmapset" = yes; then
24707         cat >>confdefs.h <<\_ACEOF
24708 #define HAVE_HASH_MAP 1
24709 _ACEOF
24710
24711         cat >>confdefs.h <<\_ACEOF
24712 #define HAVE_STD_HASH_MAP 1
24713 _ACEOF
24714
24715     fi
24716
24717     { echo "$as_me:$LINENO: checking for ext/hash_map" >&5
24718 echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6; }
24719 if test "${ac_cv_header_ext_hash_map+set}" = set; then
24720   echo $ECHO_N "(cached) $ECHO_C" >&6
24721 else
24722   cat >conftest.$ac_ext <<_ACEOF
24723 /* confdefs.h.  */
24724 _ACEOF
24725 cat confdefs.h >>conftest.$ac_ext
24726 cat >>conftest.$ac_ext <<_ACEOF
24727 /* end confdefs.h.  */
24728
24729
24730
24731 #include <ext/hash_map>
24732 _ACEOF
24733 rm -f conftest.$ac_objext
24734 if { (ac_try="$ac_compile"
24735 case "(($ac_try" in
24736   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24737   *) ac_try_echo=$ac_try;;
24738 esac
24739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24740   (eval "$ac_compile") 2>conftest.er1
24741   ac_status=$?
24742   grep -v '^ *+' conftest.er1 >conftest.err
24743   rm -f conftest.er1
24744   cat conftest.err >&5
24745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24746   (exit $ac_status); } && {
24747          test -z "$ac_cxx_werror_flag" ||
24748          test ! -s conftest.err
24749        } && test -s conftest.$ac_objext; then
24750   ac_cv_header_ext_hash_map=yes
24751 else
24752   echo "$as_me: failed program was:" >&5
24753 sed 's/^/| /' conftest.$ac_ext >&5
24754
24755         ac_cv_header_ext_hash_map=no
24756 fi
24757
24758 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24759 fi
24760 { echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5
24761 echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6; }
24762 if test $ac_cv_header_ext_hash_map = yes; then
24763   { echo "$as_me:$LINENO: checking for GNU hash_map and hash_set" >&5
24764 echo $ECHO_N "checking for GNU hash_map and hash_set... $ECHO_C" >&6; }
24765 if test "${wx_cv_class_gnuhashmapset+set}" = set; then
24766   echo $ECHO_N "(cached) $ECHO_C" >&6
24767 else
24768   cat >conftest.$ac_ext <<_ACEOF
24769 /* confdefs.h.  */
24770 _ACEOF
24771 cat confdefs.h >>conftest.$ac_ext
24772 cat >>conftest.$ac_ext <<_ACEOF
24773 /* end confdefs.h.  */
24774 #include <ext/hash_map>
24775                 #include <ext/hash_set>
24776 int
24777 main ()
24778 {
24779 __gnu_cxx::hash_map<double*, char*, __gnu_cxx::hash<double*>, std::equal_to<double*> > test1;
24780                  __gnu_cxx::hash_set<char*, __gnu_cxx::hash<char*>, std::equal_to<char*> > test2;
24781   ;
24782   return 0;
24783 }
24784 _ACEOF
24785 rm -f conftest.$ac_objext
24786 if { (ac_try="$ac_compile"
24787 case "(($ac_try" in
24788   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24789   *) ac_try_echo=$ac_try;;
24790 esac
24791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24792   (eval "$ac_compile") 2>conftest.er1
24793   ac_status=$?
24794   grep -v '^ *+' conftest.er1 >conftest.err
24795   rm -f conftest.er1
24796   cat conftest.err >&5
24797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24798   (exit $ac_status); } && {
24799          test -z "$ac_cxx_werror_flag" ||
24800          test ! -s conftest.err
24801        } && test -s conftest.$ac_objext; then
24802   wx_cv_class_gnuhashmapset=yes
24803 else
24804   echo "$as_me: failed program was:" >&5
24805 sed 's/^/| /' conftest.$ac_ext >&5
24806
24807         wx_cv_class_gnuhashmapset=no
24808 fi
24809
24810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24811
24812
24813 fi
24814 { echo "$as_me:$LINENO: result: $wx_cv_class_gnuhashmapset" >&5
24815 echo "${ECHO_T}$wx_cv_class_gnuhashmapset" >&6; }
24816 fi
24817
24818
24819
24820     if test "$wx_cv_class_gnuhashmapset" = yes; then
24821          cat >>confdefs.h <<\_ACEOF
24822 #define HAVE_EXT_HASH_MAP 1
24823 _ACEOF
24824
24825          cat >>confdefs.h <<\_ACEOF
24826 #define HAVE_GNU_CXX_HASH_MAP 1
24827 _ACEOF
24828
24829     fi
24830 fi
24831
24832
24833
24834   if test -n "$GCC"; then
24835     { echo "$as_me:$LINENO: checking for __sync_fetch_and_add and __sync_sub_and_fetch builtins" >&5
24836 echo $ECHO_N "checking for __sync_fetch_and_add and __sync_sub_and_fetch builtins... $ECHO_C" >&6; }
24837     if test "${wx_cv_cc_gcc_atomic_builtins+set}" = set; then
24838   echo $ECHO_N "(cached) $ECHO_C" >&6
24839 else
24840
24841       cat >conftest.$ac_ext <<_ACEOF
24842 /* confdefs.h.  */
24843 _ACEOF
24844 cat confdefs.h >>conftest.$ac_ext
24845 cat >>conftest.$ac_ext <<_ACEOF
24846 /* end confdefs.h.  */
24847
24848 int
24849 main ()
24850 {
24851
24852           unsigned int value=0;
24853           /* wxAtomicInc doesn't use return value here */
24854           __sync_fetch_and_add(&value, 2);
24855           __sync_sub_and_fetch(&value, 1);
24856           /* but wxAtomicDec does, so mimic that: */
24857           unsigned int r2 = __sync_sub_and_fetch(&value, 1);
24858
24859   ;
24860   return 0;
24861 }
24862 _ACEOF
24863 rm -f conftest.$ac_objext conftest$ac_exeext
24864 if { (ac_try="$ac_link"
24865 case "(($ac_try" in
24866   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24867   *) ac_try_echo=$ac_try;;
24868 esac
24869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24870   (eval "$ac_link") 2>conftest.er1
24871   ac_status=$?
24872   grep -v '^ *+' conftest.er1 >conftest.err
24873   rm -f conftest.er1
24874   cat conftest.err >&5
24875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24876   (exit $ac_status); } && {
24877          test -z "$ac_cxx_werror_flag" ||
24878          test ! -s conftest.err
24879        } && test -s conftest$ac_exeext &&
24880        $as_test_x conftest$ac_exeext; then
24881   wx_cv_cc_gcc_atomic_builtins=yes
24882 else
24883   echo "$as_me: failed program was:" >&5
24884 sed 's/^/| /' conftest.$ac_ext >&5
24885
24886         wx_cv_cc_gcc_atomic_builtins=no
24887 fi
24888
24889 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24890       conftest$ac_exeext conftest.$ac_ext
24891
24892 fi
24893
24894     { echo "$as_me:$LINENO: result: $wx_cv_cc_gcc_atomic_builtins" >&5
24895 echo "${ECHO_T}$wx_cv_cc_gcc_atomic_builtins" >&6; }
24896     if test $wx_cv_cc_gcc_atomic_builtins = yes; then
24897       cat >>confdefs.h <<\_ACEOF
24898 #define HAVE_GCC_ATOMIC_BUILTINS 1
24899 _ACEOF
24900
24901     fi
24902   fi
24903
24904
24905 ac_ext=c
24906 ac_cpp='$CPP $CPPFLAGS'
24907 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24908 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24909 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24910
24911
24912
24913 SEARCH_INCLUDE="\
24914     /usr/local/include        \
24915                               \
24916     /usr/Motif-2.1/include    \
24917     /usr/Motif-1.2/include    \
24918     /usr/include/Motif1.2     \
24919                               \
24920     /usr/dt/include           \
24921     /usr/openwin/include      \
24922                               \
24923     /usr/include/Xm           \
24924                               \
24925     /usr/X11R6/include        \
24926     /usr/X11R6.4/include      \
24927     /usr/X11R5/include        \
24928     /usr/X11R4/include        \
24929                               \
24930     /usr/include/X11R6        \
24931     /usr/include/X11R5        \
24932     /usr/include/X11R4        \
24933                               \
24934     /usr/local/X11R6/include  \
24935     /usr/local/X11R5/include  \
24936     /usr/local/X11R4/include  \
24937                               \
24938     /usr/local/include/X11R6  \
24939     /usr/local/include/X11R5  \
24940     /usr/local/include/X11R4  \
24941                               \
24942     /usr/X11/include          \
24943     /usr/include/X11          \
24944     /usr/local/X11/include    \
24945     /usr/local/include/X11    \
24946                               \
24947     /usr/XFree86/include/X11  \
24948     /usr/pkg/include          \
24949                               \
24950     /usr/openwin/share/include"
24951
24952 { echo "$as_me:$LINENO: checking for libraries directory" >&5
24953 echo $ECHO_N "checking for libraries directory... $ECHO_C" >&6; }
24954
24955 case "${host}" in
24956     *-*-irix6* )
24957         if test "${wx_cv_std_libpath+set}" = set; then
24958   echo $ECHO_N "(cached) $ECHO_C" >&6
24959 else
24960
24961                 for d in /usr/lib /usr/lib32 /usr/lib/64 /usr/lib64; do
24962                     for e in a so sl dylib dll.a; do
24963                         libc="$d/libc.$e"
24964                         if test -f $libc; then
24965                             save_LIBS="$LIBS"
24966                             LIBS="$libc"
24967                             cat >conftest.$ac_ext <<_ACEOF
24968 int main() { return 0; }
24969 _ACEOF
24970 rm -f conftest.$ac_objext conftest$ac_exeext
24971 if { (ac_try="$ac_link"
24972 case "(($ac_try" in
24973   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24974   *) ac_try_echo=$ac_try;;
24975 esac
24976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24977   (eval "$ac_link") 2>conftest.er1
24978   ac_status=$?
24979   grep -v '^ *+' conftest.er1 >conftest.err
24980   rm -f conftest.er1
24981   cat conftest.err >&5
24982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24983   (exit $ac_status); } && {
24984          test -z "$ac_c_werror_flag" ||
24985          test ! -s conftest.err
24986        } && test -s conftest$ac_exeext &&
24987        $as_test_x conftest$ac_exeext; then
24988   wx_cv_std_libpath=`echo $d | sed s@/usr/@@`
24989 else
24990   echo "$as_me: failed program was:" >&5
24991 sed 's/^/| /' conftest.$ac_ext >&5
24992
24993
24994 fi
24995
24996 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24997       conftest$ac_exeext conftest.$ac_ext
24998                             LIBS="$save_LIBS"
24999                             if test "x$wx_cv_std_libpath" != "x"; then
25000                                 break 2
25001                             fi
25002                         fi
25003                     done
25004                 done
25005                 if test "x$wx_cv_std_libpath" = "x"; then
25006                     wx_cv_std_libpath="lib"
25007                 fi
25008
25009
25010 fi
25011
25012         ;;
25013
25014     *-*-solaris2* )
25015                 if test "$ac_cv_sizeof_void_p" = 8 -a -d "/usr/lib/64"; then
25016             wx_cv_std_libpath="lib/64"
25017         else
25018             wx_cv_std_libpath="lib"
25019         fi
25020         ;;
25021
25022     *-*-linux* )
25023                 if test "$ac_cv_sizeof_void_p" = 8 -a \
25024                 -d "/usr/lib64" -a ! -h "/usr/lib64"; then
25025             wx_cv_std_libpath="lib64"
25026         else
25027             wx_cv_std_libpath="lib"
25028         fi
25029         ;;
25030
25031     *)
25032         wx_cv_std_libpath="lib";
25033         ;;
25034 esac
25035
25036 { echo "$as_me:$LINENO: result: $wx_cv_std_libpath" >&5
25037 echo "${ECHO_T}$wx_cv_std_libpath" >&6; }
25038
25039 SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s@include@$wx_cv_std_libpath@g` /usr/$wx_cv_std_libpath"
25040
25041 if test "$build" != "$host" -a "$GCC" = yes; then
25042                     if cross_root=`$CC -print-prog-name=ld 2>/dev/null`; then
25043         cross_root=`dirname $cross_root`
25044         cross_root=`dirname $cross_root`
25045
25046                         SEARCH_LIB=`for x in $SEARCH_LIB; do echo $x; done | sed -ne "s|^/usr|$cross_root|p"`
25047         SEARCH_INCLUDE=`for x in $SEARCH_INCLUDE; do echo $x; done | sed -ne "s|^/usr|$cross_root|p"`
25048         SEARCH_INCLUDE="$SEARCH_INCLUDE $cross_root/include"
25049
25050                 if test -z "$PKG_CONFIG_PATH"; then
25051             PKG_CONFIG_PATH="$cross_root/local/lib/pkgconfig:$cross_root/lib/pkgconfig"
25052             export PKG_CONFIG_PATH
25053         fi
25054
25055                                 if test -z "$x_includes" -o "$x_includes" = NONE; then
25056
25057 ac_find_includes=
25058 for ac_dir in $SEARCH_INCLUDE /usr/include;
25059   do
25060     if test -f "$ac_dir/X11/Intrinsic.h"; then
25061       ac_find_includes=$ac_dir
25062       break
25063     fi
25064   done
25065
25066             x_includes=$ac_find_includes
25067         fi
25068         if test -z "$x_libraries" -o "$x_libraries" = NONE; then
25069
25070   ac_find_libraries=
25071   for ac_dir in $SEARCH_LIB;
25072   do
25073     for ac_extension in a so sl dylib dll.a; do
25074       if test -f "$ac_dir/libXt.$ac_extension"; then
25075         ac_find_libraries=$ac_dir
25076         break 2
25077       fi
25078     done
25079   done
25080
25081             x_libraries=$ac_find_libraries
25082         fi
25083     fi
25084 fi
25085
25086
25087 cat >confcache <<\_ACEOF
25088 # This file is a shell script that caches the results of configure
25089 # tests run on this system so they can be shared between configure
25090 # scripts and configure runs, see configure's option --config-cache.
25091 # It is not useful on other systems.  If it contains results you don't
25092 # want to keep, you may remove or edit it.
25093 #
25094 # config.status only pays attention to the cache file if you give it
25095 # the --recheck option to rerun configure.
25096 #
25097 # `ac_cv_env_foo' variables (set or unset) will be overridden when
25098 # loading this file, other *unset* `ac_cv_foo' will be assigned the
25099 # following values.
25100
25101 _ACEOF
25102
25103 # The following way of writing the cache mishandles newlines in values,
25104 # but we know of no workaround that is simple, portable, and efficient.
25105 # So, we kill variables containing newlines.
25106 # Ultrix sh set writes to stderr and can't be redirected directly,
25107 # and sets the high bit in the cache file unless we assign to the vars.
25108 (
25109   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
25110     eval ac_val=\$$ac_var
25111     case $ac_val in #(
25112     *${as_nl}*)
25113       case $ac_var in #(
25114       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
25115 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
25116       esac
25117       case $ac_var in #(
25118       _ | IFS | as_nl) ;; #(
25119       *) $as_unset $ac_var ;;
25120       esac ;;
25121     esac
25122   done
25123
25124   (set) 2>&1 |
25125     case $as_nl`(ac_space=' '; set) 2>&1` in #(
25126     *${as_nl}ac_space=\ *)
25127       # `set' does not quote correctly, so add quotes (double-quote
25128       # substitution turns \\\\ into \\, and sed turns \\ into \).
25129       sed -n \
25130         "s/'/'\\\\''/g;
25131           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
25132       ;; #(
25133     *)
25134       # `set' quotes correctly as required by POSIX, so do not add quotes.
25135       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
25136       ;;
25137     esac |
25138     sort
25139 ) |
25140   sed '
25141      /^ac_cv_env_/b end
25142      t clear
25143      :clear
25144      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
25145      t end
25146      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
25147      :end' >>confcache
25148 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
25149   if test -w "$cache_file"; then
25150     test "x$cache_file" != "x/dev/null" &&
25151       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
25152 echo "$as_me: updating cache $cache_file" >&6;}
25153     cat confcache >$cache_file
25154   else
25155     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
25156 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
25157   fi
25158 fi
25159 rm -f confcache
25160
25161 if test "$USE_LINUX" = 1 -o "$USE_GNU" = 1; then
25162     { echo "$as_me:$LINENO: checking for glibc 2.1 or later" >&5
25163 echo $ECHO_N "checking for glibc 2.1 or later... $ECHO_C" >&6; }
25164 if test "${wx_cv_lib_glibc21+set}" = set; then
25165   echo $ECHO_N "(cached) $ECHO_C" >&6
25166 else
25167
25168         cat >conftest.$ac_ext <<_ACEOF
25169 /* confdefs.h.  */
25170 _ACEOF
25171 cat confdefs.h >>conftest.$ac_ext
25172 cat >>conftest.$ac_ext <<_ACEOF
25173 /* end confdefs.h.  */
25174 #include <features.h>
25175 int
25176 main ()
25177 {
25178
25179                 #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1)
25180                 not glibc 2.1
25181                 #endif
25182
25183   ;
25184   return 0;
25185 }
25186 _ACEOF
25187 rm -f conftest.$ac_objext
25188 if { (ac_try="$ac_compile"
25189 case "(($ac_try" in
25190   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25191   *) ac_try_echo=$ac_try;;
25192 esac
25193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25194   (eval "$ac_compile") 2>conftest.er1
25195   ac_status=$?
25196   grep -v '^ *+' conftest.er1 >conftest.err
25197   rm -f conftest.er1
25198   cat conftest.err >&5
25199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25200   (exit $ac_status); } && {
25201          test -z "$ac_c_werror_flag" ||
25202          test ! -s conftest.err
25203        } && test -s conftest.$ac_objext; then
25204
25205                 wx_cv_lib_glibc21=yes
25206
25207 else
25208   echo "$as_me: failed program was:" >&5
25209 sed 's/^/| /' conftest.$ac_ext >&5
25210
25211
25212                 wx_cv_lib_glibc21=no
25213
25214
25215 fi
25216
25217 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25218
25219 fi
25220 { echo "$as_me:$LINENO: result: $wx_cv_lib_glibc21" >&5
25221 echo "${ECHO_T}$wx_cv_lib_glibc21" >&6; }
25222     if test "$wx_cv_lib_glibc21" = "yes"; then
25223         cat >>confdefs.h <<\_ACEOF
25224 #define wxHAVE_GLIBC2 1
25225 _ACEOF
25226
25227     fi
25228 fi
25229
25230 if test "x$wx_cv_lib_glibc21" = "xyes"; then
25231     if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then
25232         cat >>confdefs.h <<\_ACEOF
25233 #define _GNU_SOURCE 1
25234 _ACEOF
25235
25236     fi
25237 fi
25238
25239 have_cos=0
25240 have_floor=0
25241
25242 for ac_func in cos
25243 do
25244 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25245 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25246 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25247 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25248   echo $ECHO_N "(cached) $ECHO_C" >&6
25249 else
25250   cat >conftest.$ac_ext <<_ACEOF
25251 /* confdefs.h.  */
25252 _ACEOF
25253 cat confdefs.h >>conftest.$ac_ext
25254 cat >>conftest.$ac_ext <<_ACEOF
25255 /* end confdefs.h.  */
25256 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25257    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25258 #define $ac_func innocuous_$ac_func
25259
25260 /* System header to define __stub macros and hopefully few prototypes,
25261     which can conflict with char $ac_func (); below.
25262     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25263     <limits.h> exists even on freestanding compilers.  */
25264
25265 #ifdef __STDC__
25266 # include <limits.h>
25267 #else
25268 # include <assert.h>
25269 #endif
25270
25271 #undef $ac_func
25272
25273 /* Override any GCC internal prototype to avoid an error.
25274    Use char because int might match the return type of a GCC
25275    builtin and then its argument prototype would still apply.  */
25276 #ifdef __cplusplus
25277 extern "C"
25278 #endif
25279 char $ac_func ();
25280 /* The GNU C library defines this for functions which it implements
25281     to always fail with ENOSYS.  Some functions are actually named
25282     something starting with __ and the normal name is an alias.  */
25283 #if defined __stub_$ac_func || defined __stub___$ac_func
25284 choke me
25285 #endif
25286
25287 int
25288 main ()
25289 {
25290 return $ac_func ();
25291   ;
25292   return 0;
25293 }
25294 _ACEOF
25295 rm -f conftest.$ac_objext conftest$ac_exeext
25296 if { (ac_try="$ac_link"
25297 case "(($ac_try" in
25298   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25299   *) ac_try_echo=$ac_try;;
25300 esac
25301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25302   (eval "$ac_link") 2>conftest.er1
25303   ac_status=$?
25304   grep -v '^ *+' conftest.er1 >conftest.err
25305   rm -f conftest.er1
25306   cat conftest.err >&5
25307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25308   (exit $ac_status); } && {
25309          test -z "$ac_c_werror_flag" ||
25310          test ! -s conftest.err
25311        } && test -s conftest$ac_exeext &&
25312        $as_test_x conftest$ac_exeext; then
25313   eval "$as_ac_var=yes"
25314 else
25315   echo "$as_me: failed program was:" >&5
25316 sed 's/^/| /' conftest.$ac_ext >&5
25317
25318         eval "$as_ac_var=no"
25319 fi
25320
25321 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25322       conftest$ac_exeext conftest.$ac_ext
25323 fi
25324 ac_res=`eval echo '${'$as_ac_var'}'`
25325                { echo "$as_me:$LINENO: result: $ac_res" >&5
25326 echo "${ECHO_T}$ac_res" >&6; }
25327 if test `eval echo '${'$as_ac_var'}'` = yes; then
25328   cat >>confdefs.h <<_ACEOF
25329 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25330 _ACEOF
25331  have_cos=1
25332 fi
25333 done
25334
25335
25336 for ac_func in floor
25337 do
25338 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25339 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25340 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25341 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25342   echo $ECHO_N "(cached) $ECHO_C" >&6
25343 else
25344   cat >conftest.$ac_ext <<_ACEOF
25345 /* confdefs.h.  */
25346 _ACEOF
25347 cat confdefs.h >>conftest.$ac_ext
25348 cat >>conftest.$ac_ext <<_ACEOF
25349 /* end confdefs.h.  */
25350 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25351    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25352 #define $ac_func innocuous_$ac_func
25353
25354 /* System header to define __stub macros and hopefully few prototypes,
25355     which can conflict with char $ac_func (); below.
25356     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25357     <limits.h> exists even on freestanding compilers.  */
25358
25359 #ifdef __STDC__
25360 # include <limits.h>
25361 #else
25362 # include <assert.h>
25363 #endif
25364
25365 #undef $ac_func
25366
25367 /* Override any GCC internal prototype to avoid an error.
25368    Use char because int might match the return type of a GCC
25369    builtin and then its argument prototype would still apply.  */
25370 #ifdef __cplusplus
25371 extern "C"
25372 #endif
25373 char $ac_func ();
25374 /* The GNU C library defines this for functions which it implements
25375     to always fail with ENOSYS.  Some functions are actually named
25376     something starting with __ and the normal name is an alias.  */
25377 #if defined __stub_$ac_func || defined __stub___$ac_func
25378 choke me
25379 #endif
25380
25381 int
25382 main ()
25383 {
25384 return $ac_func ();
25385   ;
25386   return 0;
25387 }
25388 _ACEOF
25389 rm -f conftest.$ac_objext conftest$ac_exeext
25390 if { (ac_try="$ac_link"
25391 case "(($ac_try" in
25392   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25393   *) ac_try_echo=$ac_try;;
25394 esac
25395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25396   (eval "$ac_link") 2>conftest.er1
25397   ac_status=$?
25398   grep -v '^ *+' conftest.er1 >conftest.err
25399   rm -f conftest.er1
25400   cat conftest.err >&5
25401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25402   (exit $ac_status); } && {
25403          test -z "$ac_c_werror_flag" ||
25404          test ! -s conftest.err
25405        } && test -s conftest$ac_exeext &&
25406        $as_test_x conftest$ac_exeext; then
25407   eval "$as_ac_var=yes"
25408 else
25409   echo "$as_me: failed program was:" >&5
25410 sed 's/^/| /' conftest.$ac_ext >&5
25411
25412         eval "$as_ac_var=no"
25413 fi
25414
25415 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25416       conftest$ac_exeext conftest.$ac_ext
25417 fi
25418 ac_res=`eval echo '${'$as_ac_var'}'`
25419                { echo "$as_me:$LINENO: result: $ac_res" >&5
25420 echo "${ECHO_T}$ac_res" >&6; }
25421 if test `eval echo '${'$as_ac_var'}'` = yes; then
25422   cat >>confdefs.h <<_ACEOF
25423 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25424 _ACEOF
25425  have_floor=1
25426 fi
25427 done
25428
25429 { echo "$as_me:$LINENO: checking if floating point functions link without -lm" >&5
25430 echo $ECHO_N "checking if floating point functions link without -lm... $ECHO_C" >&6; }
25431 if test "$have_cos" = 1 -a "$have_floor" = 1; then
25432     { echo "$as_me:$LINENO: result: yes" >&5
25433 echo "${ECHO_T}yes" >&6; }
25434 else
25435     { echo "$as_me:$LINENO: result: no" >&5
25436 echo "${ECHO_T}no" >&6; }
25437     LIBS="$LIBS -lm"
25438     # use different functions to avoid configure caching
25439     have_sin=0
25440     have_ceil=0
25441
25442 for ac_func in sin
25443 do
25444 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25445 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25446 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25447 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25448   echo $ECHO_N "(cached) $ECHO_C" >&6
25449 else
25450   cat >conftest.$ac_ext <<_ACEOF
25451 /* confdefs.h.  */
25452 _ACEOF
25453 cat confdefs.h >>conftest.$ac_ext
25454 cat >>conftest.$ac_ext <<_ACEOF
25455 /* end confdefs.h.  */
25456 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25457    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25458 #define $ac_func innocuous_$ac_func
25459
25460 /* System header to define __stub macros and hopefully few prototypes,
25461     which can conflict with char $ac_func (); below.
25462     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25463     <limits.h> exists even on freestanding compilers.  */
25464
25465 #ifdef __STDC__
25466 # include <limits.h>
25467 #else
25468 # include <assert.h>
25469 #endif
25470
25471 #undef $ac_func
25472
25473 /* Override any GCC internal prototype to avoid an error.
25474    Use char because int might match the return type of a GCC
25475    builtin and then its argument prototype would still apply.  */
25476 #ifdef __cplusplus
25477 extern "C"
25478 #endif
25479 char $ac_func ();
25480 /* The GNU C library defines this for functions which it implements
25481     to always fail with ENOSYS.  Some functions are actually named
25482     something starting with __ and the normal name is an alias.  */
25483 #if defined __stub_$ac_func || defined __stub___$ac_func
25484 choke me
25485 #endif
25486
25487 int
25488 main ()
25489 {
25490 return $ac_func ();
25491   ;
25492   return 0;
25493 }
25494 _ACEOF
25495 rm -f conftest.$ac_objext conftest$ac_exeext
25496 if { (ac_try="$ac_link"
25497 case "(($ac_try" in
25498   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25499   *) ac_try_echo=$ac_try;;
25500 esac
25501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25502   (eval "$ac_link") 2>conftest.er1
25503   ac_status=$?
25504   grep -v '^ *+' conftest.er1 >conftest.err
25505   rm -f conftest.er1
25506   cat conftest.err >&5
25507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25508   (exit $ac_status); } && {
25509          test -z "$ac_c_werror_flag" ||
25510          test ! -s conftest.err
25511        } && test -s conftest$ac_exeext &&
25512        $as_test_x conftest$ac_exeext; then
25513   eval "$as_ac_var=yes"
25514 else
25515   echo "$as_me: failed program was:" >&5
25516 sed 's/^/| /' conftest.$ac_ext >&5
25517
25518         eval "$as_ac_var=no"
25519 fi
25520
25521 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25522       conftest$ac_exeext conftest.$ac_ext
25523 fi
25524 ac_res=`eval echo '${'$as_ac_var'}'`
25525                { echo "$as_me:$LINENO: result: $ac_res" >&5
25526 echo "${ECHO_T}$ac_res" >&6; }
25527 if test `eval echo '${'$as_ac_var'}'` = yes; then
25528   cat >>confdefs.h <<_ACEOF
25529 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25530 _ACEOF
25531  have_sin=1
25532 fi
25533 done
25534
25535
25536 for ac_func in ceil
25537 do
25538 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25539 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25540 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25541 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25542   echo $ECHO_N "(cached) $ECHO_C" >&6
25543 else
25544   cat >conftest.$ac_ext <<_ACEOF
25545 /* confdefs.h.  */
25546 _ACEOF
25547 cat confdefs.h >>conftest.$ac_ext
25548 cat >>conftest.$ac_ext <<_ACEOF
25549 /* end confdefs.h.  */
25550 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25551    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25552 #define $ac_func innocuous_$ac_func
25553
25554 /* System header to define __stub macros and hopefully few prototypes,
25555     which can conflict with char $ac_func (); below.
25556     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25557     <limits.h> exists even on freestanding compilers.  */
25558
25559 #ifdef __STDC__
25560 # include <limits.h>
25561 #else
25562 # include <assert.h>
25563 #endif
25564
25565 #undef $ac_func
25566
25567 /* Override any GCC internal prototype to avoid an error.
25568    Use char because int might match the return type of a GCC
25569    builtin and then its argument prototype would still apply.  */
25570 #ifdef __cplusplus
25571 extern "C"
25572 #endif
25573 char $ac_func ();
25574 /* The GNU C library defines this for functions which it implements
25575     to always fail with ENOSYS.  Some functions are actually named
25576     something starting with __ and the normal name is an alias.  */
25577 #if defined __stub_$ac_func || defined __stub___$ac_func
25578 choke me
25579 #endif
25580
25581 int
25582 main ()
25583 {
25584 return $ac_func ();
25585   ;
25586   return 0;
25587 }
25588 _ACEOF
25589 rm -f conftest.$ac_objext conftest$ac_exeext
25590 if { (ac_try="$ac_link"
25591 case "(($ac_try" in
25592   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25593   *) ac_try_echo=$ac_try;;
25594 esac
25595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25596   (eval "$ac_link") 2>conftest.er1
25597   ac_status=$?
25598   grep -v '^ *+' conftest.er1 >conftest.err
25599   rm -f conftest.er1
25600   cat conftest.err >&5
25601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25602   (exit $ac_status); } && {
25603          test -z "$ac_c_werror_flag" ||
25604          test ! -s conftest.err
25605        } && test -s conftest$ac_exeext &&
25606        $as_test_x conftest$ac_exeext; then
25607   eval "$as_ac_var=yes"
25608 else
25609   echo "$as_me: failed program was:" >&5
25610 sed 's/^/| /' conftest.$ac_ext >&5
25611
25612         eval "$as_ac_var=no"
25613 fi
25614
25615 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25616       conftest$ac_exeext conftest.$ac_ext
25617 fi
25618 ac_res=`eval echo '${'$as_ac_var'}'`
25619                { echo "$as_me:$LINENO: result: $ac_res" >&5
25620 echo "${ECHO_T}$ac_res" >&6; }
25621 if test `eval echo '${'$as_ac_var'}'` = yes; then
25622   cat >>confdefs.h <<_ACEOF
25623 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25624 _ACEOF
25625  have_ceil=1
25626 fi
25627 done
25628
25629     { echo "$as_me:$LINENO: checking if floating point functions link with -lm" >&5
25630 echo $ECHO_N "checking if floating point functions link with -lm... $ECHO_C" >&6; }
25631     if test "$have_sin" = 1 -a "$have_ceil" = 1; then
25632         { echo "$as_me:$LINENO: result: yes" >&5
25633 echo "${ECHO_T}yes" >&6; }
25634     else
25635         { echo "$as_me:$LINENO: result: no" >&5
25636 echo "${ECHO_T}no" >&6; }
25637         # not sure we should warn the user, crash, etc.
25638     fi
25639 fi
25640
25641 ac_ext=cpp
25642 ac_cpp='$CXXCPP $CPPFLAGS'
25643 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25644 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25645 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25646
25647 if test "wxUSE_UNICODE" = "yes"; then
25648
25649   for wx_func in wcstoull
25650   do
25651     { echo "$as_me:$LINENO: checking for $wx_func" >&5
25652 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
25653 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
25654   echo $ECHO_N "(cached) $ECHO_C" >&6
25655 else
25656
25657         cat >conftest.$ac_ext <<_ACEOF
25658
25659             /* confdefs.h.  */
25660 _ACEOF
25661 cat confdefs.h >>conftest.$ac_ext
25662 cat >>conftest.$ac_ext <<_ACEOF
25663 /* end confdefs.h.  */
25664
25665
25666                 $ac_includes_default
25667
25668 int
25669 main ()
25670 {
25671
25672                 #ifndef $wx_func
25673                   &$wx_func;
25674                 #endif
25675
25676
25677   ;
25678   return 0;
25679 }
25680
25681 _ACEOF
25682 rm -f conftest.$ac_objext conftest$ac_exeext
25683 if { (ac_try="$ac_link"
25684 case "(($ac_try" in
25685   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25686   *) ac_try_echo=$ac_try;;
25687 esac
25688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25689   (eval "$ac_link") 2>conftest.er1
25690   ac_status=$?
25691   grep -v '^ *+' conftest.er1 >conftest.err
25692   rm -f conftest.er1
25693   cat conftest.err >&5
25694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25695   (exit $ac_status); } && {
25696          test -z "$ac_cxx_werror_flag" ||
25697          test ! -s conftest.err
25698        } && test -s conftest$ac_exeext &&
25699        $as_test_x conftest$ac_exeext; then
25700   eval wx_cv_func_$wx_func=yes
25701 else
25702   echo "$as_me: failed program was:" >&5
25703 sed 's/^/| /' conftest.$ac_ext >&5
25704
25705         eval wx_cv_func_$wx_func=no
25706 fi
25707
25708 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25709       conftest$ac_exeext conftest.$ac_ext
25710
25711 fi
25712 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
25713                { echo "$as_me:$LINENO: result: $ac_res" >&5
25714 echo "${ECHO_T}$ac_res" >&6; }
25715
25716     if eval test \$wx_cv_func_$wx_func = yes
25717     then
25718       cat >>confdefs.h <<_ACEOF
25719 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
25720 _ACEOF
25721
25722
25723     else
25724       :
25725
25726     fi
25727   done
25728
25729 else
25730
25731   for wx_func in strtoull
25732   do
25733     { echo "$as_me:$LINENO: checking for $wx_func" >&5
25734 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
25735 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
25736   echo $ECHO_N "(cached) $ECHO_C" >&6
25737 else
25738
25739         cat >conftest.$ac_ext <<_ACEOF
25740
25741             /* confdefs.h.  */
25742 _ACEOF
25743 cat confdefs.h >>conftest.$ac_ext
25744 cat >>conftest.$ac_ext <<_ACEOF
25745 /* end confdefs.h.  */
25746
25747
25748                 $ac_includes_default
25749
25750 int
25751 main ()
25752 {
25753
25754                 #ifndef $wx_func
25755                   &$wx_func;
25756                 #endif
25757
25758
25759   ;
25760   return 0;
25761 }
25762
25763 _ACEOF
25764 rm -f conftest.$ac_objext conftest$ac_exeext
25765 if { (ac_try="$ac_link"
25766 case "(($ac_try" in
25767   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25768   *) ac_try_echo=$ac_try;;
25769 esac
25770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25771   (eval "$ac_link") 2>conftest.er1
25772   ac_status=$?
25773   grep -v '^ *+' conftest.er1 >conftest.err
25774   rm -f conftest.er1
25775   cat conftest.err >&5
25776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25777   (exit $ac_status); } && {
25778          test -z "$ac_cxx_werror_flag" ||
25779          test ! -s conftest.err
25780        } && test -s conftest$ac_exeext &&
25781        $as_test_x conftest$ac_exeext; then
25782   eval wx_cv_func_$wx_func=yes
25783 else
25784   echo "$as_me: failed program was:" >&5
25785 sed 's/^/| /' conftest.$ac_ext >&5
25786
25787         eval wx_cv_func_$wx_func=no
25788 fi
25789
25790 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25791       conftest$ac_exeext conftest.$ac_ext
25792
25793 fi
25794 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
25795                { echo "$as_me:$LINENO: result: $ac_res" >&5
25796 echo "${ECHO_T}$ac_res" >&6; }
25797
25798     if eval test \$wx_cv_func_$wx_func = yes
25799     then
25800       cat >>confdefs.h <<_ACEOF
25801 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
25802 _ACEOF
25803
25804
25805     else
25806       :
25807
25808     fi
25809   done
25810
25811 fi
25812 ac_ext=c
25813 ac_cpp='$CPP $CPPFLAGS'
25814 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25815 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25816 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25817
25818
25819
25820
25821 if test "$wxUSE_REGEX" != "no"; then
25822     cat >>confdefs.h <<\_ACEOF
25823 #define wxUSE_REGEX 1
25824 _ACEOF
25825
25826
25827     if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_REGEX" = "yes"; then
25828         { echo "$as_me:$LINENO: WARNING: Defaulting to the the builtin regex library for Unicode build." >&5
25829 echo "$as_me: WARNING: Defaulting to the the builtin regex library for Unicode build." >&2;}
25830         wxUSE_REGEX=builtin
25831     fi
25832
25833     if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then
25834                         { echo "$as_me:$LINENO: checking for regex.h" >&5
25835 echo $ECHO_N "checking for regex.h... $ECHO_C" >&6; }
25836 if test "${ac_cv_header_regex_h+set}" = set; then
25837   echo $ECHO_N "(cached) $ECHO_C" >&6
25838 else
25839   cat >conftest.$ac_ext <<_ACEOF
25840 /* confdefs.h.  */
25841 _ACEOF
25842 cat confdefs.h >>conftest.$ac_ext
25843 cat >>conftest.$ac_ext <<_ACEOF
25844 /* end confdefs.h.  */
25845
25846
25847 #include <regex.h>
25848 _ACEOF
25849 rm -f conftest.$ac_objext
25850 if { (ac_try="$ac_compile"
25851 case "(($ac_try" in
25852   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25853   *) ac_try_echo=$ac_try;;
25854 esac
25855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25856   (eval "$ac_compile") 2>conftest.er1
25857   ac_status=$?
25858   grep -v '^ *+' conftest.er1 >conftest.err
25859   rm -f conftest.er1
25860   cat conftest.err >&5
25861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25862   (exit $ac_status); } && {
25863          test -z "$ac_c_werror_flag" ||
25864          test ! -s conftest.err
25865        } && test -s conftest.$ac_objext; then
25866   ac_cv_header_regex_h=yes
25867 else
25868   echo "$as_me: failed program was:" >&5
25869 sed 's/^/| /' conftest.$ac_ext >&5
25870
25871         ac_cv_header_regex_h=no
25872 fi
25873
25874 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25875 fi
25876 { echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
25877 echo "${ECHO_T}$ac_cv_header_regex_h" >&6; }
25878 if test $ac_cv_header_regex_h = yes; then
25879
25880
25881 for ac_func in regcomp re_search
25882 do
25883 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25884 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25885 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25886 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25887   echo $ECHO_N "(cached) $ECHO_C" >&6
25888 else
25889   cat >conftest.$ac_ext <<_ACEOF
25890 /* confdefs.h.  */
25891 _ACEOF
25892 cat confdefs.h >>conftest.$ac_ext
25893 cat >>conftest.$ac_ext <<_ACEOF
25894 /* end confdefs.h.  */
25895 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25896    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25897 #define $ac_func innocuous_$ac_func
25898
25899 /* System header to define __stub macros and hopefully few prototypes,
25900     which can conflict with char $ac_func (); below.
25901     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25902     <limits.h> exists even on freestanding compilers.  */
25903
25904 #ifdef __STDC__
25905 # include <limits.h>
25906 #else
25907 # include <assert.h>
25908 #endif
25909
25910 #undef $ac_func
25911
25912 /* Override any GCC internal prototype to avoid an error.
25913    Use char because int might match the return type of a GCC
25914    builtin and then its argument prototype would still apply.  */
25915 #ifdef __cplusplus
25916 extern "C"
25917 #endif
25918 char $ac_func ();
25919 /* The GNU C library defines this for functions which it implements
25920     to always fail with ENOSYS.  Some functions are actually named
25921     something starting with __ and the normal name is an alias.  */
25922 #if defined __stub_$ac_func || defined __stub___$ac_func
25923 choke me
25924 #endif
25925
25926 int
25927 main ()
25928 {
25929 return $ac_func ();
25930   ;
25931   return 0;
25932 }
25933 _ACEOF
25934 rm -f conftest.$ac_objext conftest$ac_exeext
25935 if { (ac_try="$ac_link"
25936 case "(($ac_try" in
25937   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25938   *) ac_try_echo=$ac_try;;
25939 esac
25940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25941   (eval "$ac_link") 2>conftest.er1
25942   ac_status=$?
25943   grep -v '^ *+' conftest.er1 >conftest.err
25944   rm -f conftest.er1
25945   cat conftest.err >&5
25946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25947   (exit $ac_status); } && {
25948          test -z "$ac_c_werror_flag" ||
25949          test ! -s conftest.err
25950        } && test -s conftest$ac_exeext &&
25951        $as_test_x conftest$ac_exeext; then
25952   eval "$as_ac_var=yes"
25953 else
25954   echo "$as_me: failed program was:" >&5
25955 sed 's/^/| /' conftest.$ac_ext >&5
25956
25957         eval "$as_ac_var=no"
25958 fi
25959
25960 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25961       conftest$ac_exeext conftest.$ac_ext
25962 fi
25963 ac_res=`eval echo '${'$as_ac_var'}'`
25964                { echo "$as_me:$LINENO: result: $ac_res" >&5
25965 echo "${ECHO_T}$ac_res" >&6; }
25966 if test `eval echo '${'$as_ac_var'}'` = yes; then
25967   cat >>confdefs.h <<_ACEOF
25968 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25969 _ACEOF
25970
25971 fi
25972 done
25973
25974 fi
25975
25976
25977
25978         if test "x$ac_cv_func_regcomp" != "xyes"; then
25979             if test "$wxUSE_REGEX" = "sys" ; then
25980                 { { echo "$as_me:$LINENO: error: system regex library not found! Use --with-regex to use built-in version" >&5
25981 echo "$as_me: error: system regex library not found! Use --with-regex to use built-in version" >&2;}
25982    { (exit 1); exit 1; }; }
25983             else
25984                 { echo "$as_me:$LINENO: WARNING: system regex library not found, will use built-in instead" >&5
25985 echo "$as_me: WARNING: system regex library not found, will use built-in instead" >&2;}
25986                 wxUSE_REGEX=builtin
25987             fi
25988         else
25989                         wxUSE_REGEX=sys
25990                         cat >>confdefs.h <<\_ACEOF
25991 #define WX_NO_REGEX_ADVANCED 1
25992 _ACEOF
25993
25994         fi
25995     fi
25996 fi
25997
25998
25999 ZLIB_LINK=
26000 if test "$wxUSE_ZLIB" != "no" ; then
26001     cat >>confdefs.h <<\_ACEOF
26002 #define wxUSE_ZLIB 1
26003 _ACEOF
26004
26005
26006     if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then
26007                                                 if test "$USE_DARWIN" = 1; then
26008             system_zlib_h_ok="yes"
26009         else
26010                                                                                     { echo "$as_me:$LINENO: checking for zlib.h >= 1.1.4" >&5
26011 echo $ECHO_N "checking for zlib.h >= 1.1.4... $ECHO_C" >&6; }
26012 if test "${ac_cv_header_zlib_h+set}" = set; then
26013   echo $ECHO_N "(cached) $ECHO_C" >&6
26014 else
26015   if test "$cross_compiling" = yes; then
26016                       unset ac_cv_header_zlib_h
26017
26018 else
26019   cat >conftest.$ac_ext <<_ACEOF
26020 /* confdefs.h.  */
26021 _ACEOF
26022 cat confdefs.h >>conftest.$ac_ext
26023 cat >>conftest.$ac_ext <<_ACEOF
26024 /* end confdefs.h.  */
26025
26026                         #include <zlib.h>
26027                         #include <stdio.h>
26028
26029                         int main()
26030                         {
26031                             FILE *f=fopen("conftestval", "w");
26032                             if (!f) exit(1);
26033                             fprintf(f, "%s",
26034                                     ZLIB_VERSION[0] == '1' &&
26035                                     (ZLIB_VERSION[2] > '1' ||
26036                                     (ZLIB_VERSION[2] == '1' &&
26037                                      ZLIB_VERSION[4] >= '4')) ? "yes" : "no");
26038                             exit(0);
26039                         }
26040
26041 _ACEOF
26042 rm -f conftest$ac_exeext
26043 if { (ac_try="$ac_link"
26044 case "(($ac_try" in
26045   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26046   *) ac_try_echo=$ac_try;;
26047 esac
26048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26049   (eval "$ac_link") 2>&5
26050   ac_status=$?
26051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26052   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26053   { (case "(($ac_try" in
26054   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26055   *) ac_try_echo=$ac_try;;
26056 esac
26057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26058   (eval "$ac_try") 2>&5
26059   ac_status=$?
26060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26061   (exit $ac_status); }; }; then
26062   ac_cv_header_zlib_h=`cat conftestval`
26063 else
26064   echo "$as_me: program exited with status $ac_status" >&5
26065 echo "$as_me: failed program was:" >&5
26066 sed 's/^/| /' conftest.$ac_ext >&5
26067
26068 ( exit $ac_status )
26069 ac_cv_header_zlib_h=no
26070 fi
26071 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26072 fi
26073
26074
26075
26076 fi
26077 { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
26078 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
26079                                     { echo "$as_me:$LINENO: checking for zlib.h" >&5
26080 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
26081 if test "${ac_cv_header_zlib_h+set}" = set; then
26082   echo $ECHO_N "(cached) $ECHO_C" >&6
26083 else
26084   cat >conftest.$ac_ext <<_ACEOF
26085 /* confdefs.h.  */
26086 _ACEOF
26087 cat confdefs.h >>conftest.$ac_ext
26088 cat >>conftest.$ac_ext <<_ACEOF
26089 /* end confdefs.h.  */
26090
26091
26092 #include <zlib.h>
26093 _ACEOF
26094 rm -f conftest.$ac_objext
26095 if { (ac_try="$ac_compile"
26096 case "(($ac_try" in
26097   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26098   *) ac_try_echo=$ac_try;;
26099 esac
26100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26101   (eval "$ac_compile") 2>conftest.er1
26102   ac_status=$?
26103   grep -v '^ *+' conftest.er1 >conftest.err
26104   rm -f conftest.er1
26105   cat conftest.err >&5
26106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26107   (exit $ac_status); } && {
26108          test -z "$ac_c_werror_flag" ||
26109          test ! -s conftest.err
26110        } && test -s conftest.$ac_objext; then
26111   ac_cv_header_zlib_h=yes
26112 else
26113   echo "$as_me: failed program was:" >&5
26114 sed 's/^/| /' conftest.$ac_ext >&5
26115
26116         ac_cv_header_zlib_h=no
26117 fi
26118
26119 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26120 fi
26121 { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
26122 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
26123
26124
26125
26126             system_zlib_h_ok=$ac_cv_header_zlib_h
26127         fi
26128
26129         if test "$system_zlib_h_ok" = "yes"; then
26130             { echo "$as_me:$LINENO: checking for deflate in -lz" >&5
26131 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6; }
26132 if test "${ac_cv_lib_z_deflate+set}" = set; then
26133   echo $ECHO_N "(cached) $ECHO_C" >&6
26134 else
26135   ac_check_lib_save_LIBS=$LIBS
26136 LIBS="-lz  $LIBS"
26137 cat >conftest.$ac_ext <<_ACEOF
26138 /* confdefs.h.  */
26139 _ACEOF
26140 cat confdefs.h >>conftest.$ac_ext
26141 cat >>conftest.$ac_ext <<_ACEOF
26142 /* end confdefs.h.  */
26143
26144 /* Override any GCC internal prototype to avoid an error.
26145    Use char because int might match the return type of a GCC
26146    builtin and then its argument prototype would still apply.  */
26147 #ifdef __cplusplus
26148 extern "C"
26149 #endif
26150 char deflate ();
26151 int
26152 main ()
26153 {
26154 return deflate ();
26155   ;
26156   return 0;
26157 }
26158 _ACEOF
26159 rm -f conftest.$ac_objext conftest$ac_exeext
26160 if { (ac_try="$ac_link"
26161 case "(($ac_try" in
26162   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26163   *) ac_try_echo=$ac_try;;
26164 esac
26165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26166   (eval "$ac_link") 2>conftest.er1
26167   ac_status=$?
26168   grep -v '^ *+' conftest.er1 >conftest.err
26169   rm -f conftest.er1
26170   cat conftest.err >&5
26171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26172   (exit $ac_status); } && {
26173          test -z "$ac_c_werror_flag" ||
26174          test ! -s conftest.err
26175        } && test -s conftest$ac_exeext &&
26176        $as_test_x conftest$ac_exeext; then
26177   ac_cv_lib_z_deflate=yes
26178 else
26179   echo "$as_me: failed program was:" >&5
26180 sed 's/^/| /' conftest.$ac_ext >&5
26181
26182         ac_cv_lib_z_deflate=no
26183 fi
26184
26185 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26186       conftest$ac_exeext conftest.$ac_ext
26187 LIBS=$ac_check_lib_save_LIBS
26188 fi
26189 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
26190 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6; }
26191 if test $ac_cv_lib_z_deflate = yes; then
26192   ZLIB_LINK=" -lz"
26193 fi
26194
26195         fi
26196
26197         if test "x$ZLIB_LINK" = "x" ; then
26198             if test "$wxUSE_ZLIB" = "sys" ; then
26199                 { { echo "$as_me:$LINENO: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&5
26200 echo "$as_me: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&2;}
26201    { (exit 1); exit 1; }; }
26202             else
26203                 { echo "$as_me:$LINENO: WARNING: zlib library not found or too old, will use built-in instead" >&5
26204 echo "$as_me: WARNING: zlib library not found or too old, will use built-in instead" >&2;}
26205                 wxUSE_ZLIB=builtin
26206             fi
26207         else
26208                         wxUSE_ZLIB=sys
26209         fi
26210     fi
26211 fi
26212
26213
26214 PNG_LINK=
26215 if test "$wxUSE_LIBPNG" != "no" ; then
26216     cat >>confdefs.h <<\_ACEOF
26217 #define wxUSE_LIBPNG 1
26218 _ACEOF
26219
26220
26221     if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then
26222         { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&5
26223 echo "$as_me: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&2;}
26224         wxUSE_LIBPNG=sys
26225     fi
26226
26227                 if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
26228         { echo "$as_me:$LINENO: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&5
26229 echo "$as_me: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&2;}
26230         wxUSE_LIBPNG=builtin
26231     fi
26232
26233     if test "$wxUSE_MGL" != 1 ; then
26234                 if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then
26235                                     { echo "$as_me:$LINENO: checking for png.h > 0.90" >&5
26236 echo $ECHO_N "checking for png.h > 0.90... $ECHO_C" >&6; }
26237 if test "${ac_cv_header_png_h+set}" = set; then
26238   echo $ECHO_N "(cached) $ECHO_C" >&6
26239 else
26240   if test "$cross_compiling" = yes; then
26241                       unset ac_cv_header_png_h
26242
26243 else
26244   cat >conftest.$ac_ext <<_ACEOF
26245 /* confdefs.h.  */
26246 _ACEOF
26247 cat confdefs.h >>conftest.$ac_ext
26248 cat >>conftest.$ac_ext <<_ACEOF
26249 /* end confdefs.h.  */
26250
26251                         #include <png.h>
26252                         #include <stdio.h>
26253
26254                         int main()
26255                         {
26256                             FILE *f=fopen("conftestval", "w");
26257                             if (!f) exit(1);
26258                             fprintf(f, "%s",
26259                                      PNG_LIBPNG_VER > 90 ? "yes" : "no");
26260                             exit(0);
26261                         }
26262
26263 _ACEOF
26264 rm -f conftest$ac_exeext
26265 if { (ac_try="$ac_link"
26266 case "(($ac_try" in
26267   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26268   *) ac_try_echo=$ac_try;;
26269 esac
26270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26271   (eval "$ac_link") 2>&5
26272   ac_status=$?
26273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26274   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26275   { (case "(($ac_try" in
26276   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26277   *) ac_try_echo=$ac_try;;
26278 esac
26279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26280   (eval "$ac_try") 2>&5
26281   ac_status=$?
26282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26283   (exit $ac_status); }; }; then
26284   ac_cv_header_png_h=`cat conftestval`
26285 else
26286   echo "$as_me: program exited with status $ac_status" >&5
26287 echo "$as_me: failed program was:" >&5
26288 sed 's/^/| /' conftest.$ac_ext >&5
26289
26290 ( exit $ac_status )
26291 ac_cv_header_png_h=no
26292 fi
26293 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26294 fi
26295
26296
26297
26298 fi
26299 { echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
26300 echo "${ECHO_T}$ac_cv_header_png_h" >&6; }
26301             { echo "$as_me:$LINENO: checking for png.h" >&5
26302 echo $ECHO_N "checking for png.h... $ECHO_C" >&6; }
26303 if test "${ac_cv_header_png_h+set}" = set; then
26304   echo $ECHO_N "(cached) $ECHO_C" >&6
26305 else
26306   cat >conftest.$ac_ext <<_ACEOF
26307 /* confdefs.h.  */
26308 _ACEOF
26309 cat confdefs.h >>conftest.$ac_ext
26310 cat >>conftest.$ac_ext <<_ACEOF
26311 /* end confdefs.h.  */
26312
26313
26314 #include <png.h>
26315 _ACEOF
26316 rm -f conftest.$ac_objext
26317 if { (ac_try="$ac_compile"
26318 case "(($ac_try" in
26319   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26320   *) ac_try_echo=$ac_try;;
26321 esac
26322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26323   (eval "$ac_compile") 2>conftest.er1
26324   ac_status=$?
26325   grep -v '^ *+' conftest.er1 >conftest.err
26326   rm -f conftest.er1
26327   cat conftest.err >&5
26328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26329   (exit $ac_status); } && {
26330          test -z "$ac_c_werror_flag" ||
26331          test ! -s conftest.err
26332        } && test -s conftest.$ac_objext; then
26333   ac_cv_header_png_h=yes
26334 else
26335   echo "$as_me: failed program was:" >&5
26336 sed 's/^/| /' conftest.$ac_ext >&5
26337
26338         ac_cv_header_png_h=no
26339 fi
26340
26341 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26342 fi
26343 { echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
26344 echo "${ECHO_T}$ac_cv_header_png_h" >&6; }
26345
26346
26347
26348             if test "$ac_cv_header_png_h" = "yes"; then
26349                 { echo "$as_me:$LINENO: checking for png_check_sig in -lpng" >&5
26350 echo $ECHO_N "checking for png_check_sig in -lpng... $ECHO_C" >&6; }
26351 if test "${ac_cv_lib_png_png_check_sig+set}" = set; then
26352   echo $ECHO_N "(cached) $ECHO_C" >&6
26353 else
26354   ac_check_lib_save_LIBS=$LIBS
26355 LIBS="-lpng -lz -lm $LIBS"
26356 cat >conftest.$ac_ext <<_ACEOF
26357 /* confdefs.h.  */
26358 _ACEOF
26359 cat confdefs.h >>conftest.$ac_ext
26360 cat >>conftest.$ac_ext <<_ACEOF
26361 /* end confdefs.h.  */
26362
26363 /* Override any GCC internal prototype to avoid an error.
26364    Use char because int might match the return type of a GCC
26365    builtin and then its argument prototype would still apply.  */
26366 #ifdef __cplusplus
26367 extern "C"
26368 #endif
26369 char png_check_sig ();
26370 int
26371 main ()
26372 {
26373 return png_check_sig ();
26374   ;
26375   return 0;
26376 }
26377 _ACEOF
26378 rm -f conftest.$ac_objext conftest$ac_exeext
26379 if { (ac_try="$ac_link"
26380 case "(($ac_try" in
26381   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26382   *) ac_try_echo=$ac_try;;
26383 esac
26384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26385   (eval "$ac_link") 2>conftest.er1
26386   ac_status=$?
26387   grep -v '^ *+' conftest.er1 >conftest.err
26388   rm -f conftest.er1
26389   cat conftest.err >&5
26390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26391   (exit $ac_status); } && {
26392          test -z "$ac_c_werror_flag" ||
26393          test ! -s conftest.err
26394        } && test -s conftest$ac_exeext &&
26395        $as_test_x conftest$ac_exeext; then
26396   ac_cv_lib_png_png_check_sig=yes
26397 else
26398   echo "$as_me: failed program was:" >&5
26399 sed 's/^/| /' conftest.$ac_ext >&5
26400
26401         ac_cv_lib_png_png_check_sig=no
26402 fi
26403
26404 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26405       conftest$ac_exeext conftest.$ac_ext
26406 LIBS=$ac_check_lib_save_LIBS
26407 fi
26408 { echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_check_sig" >&5
26409 echo "${ECHO_T}$ac_cv_lib_png_png_check_sig" >&6; }
26410 if test $ac_cv_lib_png_png_check_sig = yes; then
26411   PNG_LINK=" -lpng -lz"
26412 fi
26413
26414             fi
26415
26416             if test "x$PNG_LINK" = "x" ; then
26417                 if test "$wxUSE_LIBPNG" = "sys" ; then
26418                     { { echo "$as_me:$LINENO: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&5
26419 echo "$as_me: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&2;}
26420    { (exit 1); exit 1; }; }
26421                 else
26422                     { echo "$as_me:$LINENO: WARNING: system png library not found or too old, will use built-in instead" >&5
26423 echo "$as_me: WARNING: system png library not found or too old, will use built-in instead" >&2;}
26424                     wxUSE_LIBPNG=builtin
26425                 fi
26426             else
26427                                 wxUSE_LIBPNG=sys
26428             fi
26429         fi
26430     fi
26431 fi
26432
26433
26434 JPEG_LINK=
26435 if test "$wxUSE_LIBJPEG" != "no" ; then
26436     cat >>confdefs.h <<\_ACEOF
26437 #define wxUSE_LIBJPEG 1
26438 _ACEOF
26439
26440
26441     if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then
26442         { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&5
26443 echo "$as_me: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&2;}
26444         wxUSE_LIBJPEG=sys
26445     fi
26446
26447     if test "$wxUSE_MGL" != 1 ; then
26448                 if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then
26449                                                 { echo "$as_me:$LINENO: checking for jpeglib.h" >&5
26450 echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6; }
26451             if test "${ac_cv_header_jpeglib_h+set}" = set; then
26452   echo $ECHO_N "(cached) $ECHO_C" >&6
26453 else
26454   cat >conftest.$ac_ext <<_ACEOF
26455 /* confdefs.h.  */
26456 _ACEOF
26457 cat confdefs.h >>conftest.$ac_ext
26458 cat >>conftest.$ac_ext <<_ACEOF
26459 /* end confdefs.h.  */
26460
26461                         #undef HAVE_STDLIB_H
26462                         #include <stdio.h>
26463                         #include <jpeglib.h>
26464
26465 int
26466 main ()
26467 {
26468
26469
26470   ;
26471   return 0;
26472 }
26473 _ACEOF
26474 rm -f conftest.$ac_objext
26475 if { (ac_try="$ac_compile"
26476 case "(($ac_try" in
26477   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26478   *) ac_try_echo=$ac_try;;
26479 esac
26480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26481   (eval "$ac_compile") 2>conftest.er1
26482   ac_status=$?
26483   grep -v '^ *+' conftest.er1 >conftest.err
26484   rm -f conftest.er1
26485   cat conftest.err >&5
26486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26487   (exit $ac_status); } && {
26488          test -z "$ac_c_werror_flag" ||
26489          test ! -s conftest.err
26490        } && test -s conftest.$ac_objext; then
26491   ac_cv_header_jpeglib_h=yes
26492 else
26493   echo "$as_me: failed program was:" >&5
26494 sed 's/^/| /' conftest.$ac_ext >&5
26495
26496         ac_cv_header_jpeglib_h=no
26497
26498 fi
26499
26500 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26501
26502 fi
26503
26504             { echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5
26505 echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6; }
26506
26507             if test "$ac_cv_header_jpeglib_h" = "yes"; then
26508                 { echo "$as_me:$LINENO: checking for jpeg_read_header in -ljpeg" >&5
26509 echo $ECHO_N "checking for jpeg_read_header in -ljpeg... $ECHO_C" >&6; }
26510 if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then
26511   echo $ECHO_N "(cached) $ECHO_C" >&6
26512 else
26513   ac_check_lib_save_LIBS=$LIBS
26514 LIBS="-ljpeg  $LIBS"
26515 cat >conftest.$ac_ext <<_ACEOF
26516 /* confdefs.h.  */
26517 _ACEOF
26518 cat confdefs.h >>conftest.$ac_ext
26519 cat >>conftest.$ac_ext <<_ACEOF
26520 /* end confdefs.h.  */
26521
26522 /* Override any GCC internal prototype to avoid an error.
26523    Use char because int might match the return type of a GCC
26524    builtin and then its argument prototype would still apply.  */
26525 #ifdef __cplusplus
26526 extern "C"
26527 #endif
26528 char jpeg_read_header ();
26529 int
26530 main ()
26531 {
26532 return jpeg_read_header ();
26533   ;
26534   return 0;
26535 }
26536 _ACEOF
26537 rm -f conftest.$ac_objext conftest$ac_exeext
26538 if { (ac_try="$ac_link"
26539 case "(($ac_try" in
26540   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26541   *) ac_try_echo=$ac_try;;
26542 esac
26543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26544   (eval "$ac_link") 2>conftest.er1
26545   ac_status=$?
26546   grep -v '^ *+' conftest.er1 >conftest.err
26547   rm -f conftest.er1
26548   cat conftest.err >&5
26549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26550   (exit $ac_status); } && {
26551          test -z "$ac_c_werror_flag" ||
26552          test ! -s conftest.err
26553        } && test -s conftest$ac_exeext &&
26554        $as_test_x conftest$ac_exeext; then
26555   ac_cv_lib_jpeg_jpeg_read_header=yes
26556 else
26557   echo "$as_me: failed program was:" >&5
26558 sed 's/^/| /' conftest.$ac_ext >&5
26559
26560         ac_cv_lib_jpeg_jpeg_read_header=no
26561 fi
26562
26563 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26564       conftest$ac_exeext conftest.$ac_ext
26565 LIBS=$ac_check_lib_save_LIBS
26566 fi
26567 { echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
26568 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_read_header" >&6; }
26569 if test $ac_cv_lib_jpeg_jpeg_read_header = yes; then
26570   JPEG_LINK=" -ljpeg"
26571 fi
26572
26573             fi
26574
26575             if test "x$JPEG_LINK" = "x" ; then
26576                 if test "$wxUSE_LIBJPEG" = "sys" ; then
26577                     { { echo "$as_me:$LINENO: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&5
26578 echo "$as_me: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&2;}
26579    { (exit 1); exit 1; }; }
26580                 else
26581                     { echo "$as_me:$LINENO: WARNING: system jpeg library not found, will use built-in instead" >&5
26582 echo "$as_me: WARNING: system jpeg library not found, will use built-in instead" >&2;}
26583                     wxUSE_LIBJPEG=builtin
26584                 fi
26585             else
26586                                 wxUSE_LIBJPEG=sys
26587
26588                 if test "$wxUSE_MSW" = 1; then
26589                                                                                                     { echo "$as_me:$LINENO: checking for boolean" >&5
26590 echo $ECHO_N "checking for boolean... $ECHO_C" >&6; }
26591 if test "${ac_cv_type_boolean+set}" = set; then
26592   echo $ECHO_N "(cached) $ECHO_C" >&6
26593 else
26594   cat >conftest.$ac_ext <<_ACEOF
26595 /* confdefs.h.  */
26596 _ACEOF
26597 cat confdefs.h >>conftest.$ac_ext
26598 cat >>conftest.$ac_ext <<_ACEOF
26599 /* end confdefs.h.  */
26600 #include <windows.h>
26601
26602 typedef boolean ac__type_new_;
26603 int
26604 main ()
26605 {
26606 if ((ac__type_new_ *) 0)
26607   return 0;
26608 if (sizeof (ac__type_new_))
26609   return 0;
26610   ;
26611   return 0;
26612 }
26613 _ACEOF
26614 rm -f conftest.$ac_objext
26615 if { (ac_try="$ac_compile"
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_compile") 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_objext; then
26631   ac_cv_type_boolean=yes
26632 else
26633   echo "$as_me: failed program was:" >&5
26634 sed 's/^/| /' conftest.$ac_ext >&5
26635
26636         ac_cv_type_boolean=no
26637 fi
26638
26639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26640 fi
26641 { echo "$as_me:$LINENO: result: $ac_cv_type_boolean" >&5
26642 echo "${ECHO_T}$ac_cv_type_boolean" >&6; }
26643 if test $ac_cv_type_boolean = yes; then
26644
26645 cat >>confdefs.h <<_ACEOF
26646 #define HAVE_BOOLEAN 1
26647 _ACEOF
26648
26649
26650                             { echo "$as_me:$LINENO: checking for boolean" >&5
26651 echo $ECHO_N "checking for boolean... $ECHO_C" >&6; }
26652 if test "${ac_cv_type_boolean+set}" = set; then
26653   echo $ECHO_N "(cached) $ECHO_C" >&6
26654 else
26655   cat >conftest.$ac_ext <<_ACEOF
26656 /* confdefs.h.  */
26657 _ACEOF
26658 cat confdefs.h >>conftest.$ac_ext
26659 cat >>conftest.$ac_ext <<_ACEOF
26660 /* end confdefs.h.  */
26661
26662                                     #undef HAVE_BOOLEAN
26663                                     #include <stdio.h>
26664                                     #include <jpeglib.h>
26665
26666
26667 typedef boolean ac__type_new_;
26668 int
26669 main ()
26670 {
26671 if ((ac__type_new_ *) 0)
26672   return 0;
26673 if (sizeof (ac__type_new_))
26674   return 0;
26675   ;
26676   return 0;
26677 }
26678 _ACEOF
26679 rm -f conftest.$ac_objext
26680 if { (ac_try="$ac_compile"
26681 case "(($ac_try" in
26682   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26683   *) ac_try_echo=$ac_try;;
26684 esac
26685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26686   (eval "$ac_compile") 2>conftest.er1
26687   ac_status=$?
26688   grep -v '^ *+' conftest.er1 >conftest.err
26689   rm -f conftest.er1
26690   cat conftest.err >&5
26691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26692   (exit $ac_status); } && {
26693          test -z "$ac_c_werror_flag" ||
26694          test ! -s conftest.err
26695        } && test -s conftest.$ac_objext; then
26696   ac_cv_type_boolean=yes
26697 else
26698   echo "$as_me: failed program was:" >&5
26699 sed 's/^/| /' conftest.$ac_ext >&5
26700
26701         ac_cv_type_boolean=no
26702 fi
26703
26704 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26705 fi
26706 { echo "$as_me:$LINENO: result: $ac_cv_type_boolean" >&5
26707 echo "${ECHO_T}$ac_cv_type_boolean" >&6; }
26708
26709 # The cast to long int works around a bug in the HP C Compiler
26710 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26711 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26712 # This bug is HP SR number 8606223364.
26713 { echo "$as_me:$LINENO: checking size of boolean" >&5
26714 echo $ECHO_N "checking size of boolean... $ECHO_C" >&6; }
26715 if test "${ac_cv_sizeof_boolean+set}" = set; then
26716   echo $ECHO_N "(cached) $ECHO_C" >&6
26717 else
26718   if test "$cross_compiling" = yes; then
26719   # Depending upon the size, compute the lo and hi bounds.
26720 cat >conftest.$ac_ext <<_ACEOF
26721 /* confdefs.h.  */
26722 _ACEOF
26723 cat confdefs.h >>conftest.$ac_ext
26724 cat >>conftest.$ac_ext <<_ACEOF
26725 /* end confdefs.h.  */
26726
26727                                     #undef HAVE_BOOLEAN
26728                                     #include <stdio.h>
26729                                     #include <jpeglib.h>
26730
26731
26732    typedef boolean ac__type_sizeof_;
26733 int
26734 main ()
26735 {
26736 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
26737 test_array [0] = 0
26738
26739   ;
26740   return 0;
26741 }
26742 _ACEOF
26743 rm -f conftest.$ac_objext
26744 if { (ac_try="$ac_compile"
26745 case "(($ac_try" in
26746   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26747   *) ac_try_echo=$ac_try;;
26748 esac
26749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26750   (eval "$ac_compile") 2>conftest.er1
26751   ac_status=$?
26752   grep -v '^ *+' conftest.er1 >conftest.err
26753   rm -f conftest.er1
26754   cat conftest.err >&5
26755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26756   (exit $ac_status); } && {
26757          test -z "$ac_c_werror_flag" ||
26758          test ! -s conftest.err
26759        } && test -s conftest.$ac_objext; then
26760   ac_lo=0 ac_mid=0
26761   while :; do
26762     cat >conftest.$ac_ext <<_ACEOF
26763 /* confdefs.h.  */
26764 _ACEOF
26765 cat confdefs.h >>conftest.$ac_ext
26766 cat >>conftest.$ac_ext <<_ACEOF
26767 /* end confdefs.h.  */
26768
26769                                     #undef HAVE_BOOLEAN
26770                                     #include <stdio.h>
26771                                     #include <jpeglib.h>
26772
26773
26774    typedef boolean ac__type_sizeof_;
26775 int
26776 main ()
26777 {
26778 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
26779 test_array [0] = 0
26780
26781   ;
26782   return 0;
26783 }
26784 _ACEOF
26785 rm -f conftest.$ac_objext
26786 if { (ac_try="$ac_compile"
26787 case "(($ac_try" in
26788   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26789   *) ac_try_echo=$ac_try;;
26790 esac
26791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26792   (eval "$ac_compile") 2>conftest.er1
26793   ac_status=$?
26794   grep -v '^ *+' conftest.er1 >conftest.err
26795   rm -f conftest.er1
26796   cat conftest.err >&5
26797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26798   (exit $ac_status); } && {
26799          test -z "$ac_c_werror_flag" ||
26800          test ! -s conftest.err
26801        } && test -s conftest.$ac_objext; then
26802   ac_hi=$ac_mid; break
26803 else
26804   echo "$as_me: failed program was:" >&5
26805 sed 's/^/| /' conftest.$ac_ext >&5
26806
26807         ac_lo=`expr $ac_mid + 1`
26808                         if test $ac_lo -le $ac_mid; then
26809                           ac_lo= ac_hi=
26810                           break
26811                         fi
26812                         ac_mid=`expr 2 '*' $ac_mid + 1`
26813 fi
26814
26815 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26816   done
26817 else
26818   echo "$as_me: failed program was:" >&5
26819 sed 's/^/| /' conftest.$ac_ext >&5
26820
26821         cat >conftest.$ac_ext <<_ACEOF
26822 /* confdefs.h.  */
26823 _ACEOF
26824 cat confdefs.h >>conftest.$ac_ext
26825 cat >>conftest.$ac_ext <<_ACEOF
26826 /* end confdefs.h.  */
26827
26828                                     #undef HAVE_BOOLEAN
26829                                     #include <stdio.h>
26830                                     #include <jpeglib.h>
26831
26832
26833    typedef boolean ac__type_sizeof_;
26834 int
26835 main ()
26836 {
26837 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
26838 test_array [0] = 0
26839
26840   ;
26841   return 0;
26842 }
26843 _ACEOF
26844 rm -f conftest.$ac_objext
26845 if { (ac_try="$ac_compile"
26846 case "(($ac_try" in
26847   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26848   *) ac_try_echo=$ac_try;;
26849 esac
26850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26851   (eval "$ac_compile") 2>conftest.er1
26852   ac_status=$?
26853   grep -v '^ *+' conftest.er1 >conftest.err
26854   rm -f conftest.er1
26855   cat conftest.err >&5
26856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26857   (exit $ac_status); } && {
26858          test -z "$ac_c_werror_flag" ||
26859          test ! -s conftest.err
26860        } && test -s conftest.$ac_objext; then
26861   ac_hi=-1 ac_mid=-1
26862   while :; do
26863     cat >conftest.$ac_ext <<_ACEOF
26864 /* confdefs.h.  */
26865 _ACEOF
26866 cat confdefs.h >>conftest.$ac_ext
26867 cat >>conftest.$ac_ext <<_ACEOF
26868 /* end confdefs.h.  */
26869
26870                                     #undef HAVE_BOOLEAN
26871                                     #include <stdio.h>
26872                                     #include <jpeglib.h>
26873
26874
26875    typedef boolean ac__type_sizeof_;
26876 int
26877 main ()
26878 {
26879 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
26880 test_array [0] = 0
26881
26882   ;
26883   return 0;
26884 }
26885 _ACEOF
26886 rm -f conftest.$ac_objext
26887 if { (ac_try="$ac_compile"
26888 case "(($ac_try" in
26889   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26890   *) ac_try_echo=$ac_try;;
26891 esac
26892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26893   (eval "$ac_compile") 2>conftest.er1
26894   ac_status=$?
26895   grep -v '^ *+' conftest.er1 >conftest.err
26896   rm -f conftest.er1
26897   cat conftest.err >&5
26898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26899   (exit $ac_status); } && {
26900          test -z "$ac_c_werror_flag" ||
26901          test ! -s conftest.err
26902        } && test -s conftest.$ac_objext; then
26903   ac_lo=$ac_mid; break
26904 else
26905   echo "$as_me: failed program was:" >&5
26906 sed 's/^/| /' conftest.$ac_ext >&5
26907
26908         ac_hi=`expr '(' $ac_mid ')' - 1`
26909                         if test $ac_mid -le $ac_hi; then
26910                           ac_lo= ac_hi=
26911                           break
26912                         fi
26913                         ac_mid=`expr 2 '*' $ac_mid`
26914 fi
26915
26916 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26917   done
26918 else
26919   echo "$as_me: failed program was:" >&5
26920 sed 's/^/| /' conftest.$ac_ext >&5
26921
26922         ac_lo= ac_hi=
26923 fi
26924
26925 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26926 fi
26927
26928 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26929 # Binary search between lo and hi bounds.
26930 while test "x$ac_lo" != "x$ac_hi"; do
26931   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
26932   cat >conftest.$ac_ext <<_ACEOF
26933 /* confdefs.h.  */
26934 _ACEOF
26935 cat confdefs.h >>conftest.$ac_ext
26936 cat >>conftest.$ac_ext <<_ACEOF
26937 /* end confdefs.h.  */
26938
26939                                     #undef HAVE_BOOLEAN
26940                                     #include <stdio.h>
26941                                     #include <jpeglib.h>
26942
26943
26944    typedef boolean ac__type_sizeof_;
26945 int
26946 main ()
26947 {
26948 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
26949 test_array [0] = 0
26950
26951   ;
26952   return 0;
26953 }
26954 _ACEOF
26955 rm -f conftest.$ac_objext
26956 if { (ac_try="$ac_compile"
26957 case "(($ac_try" in
26958   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26959   *) ac_try_echo=$ac_try;;
26960 esac
26961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26962   (eval "$ac_compile") 2>conftest.er1
26963   ac_status=$?
26964   grep -v '^ *+' conftest.er1 >conftest.err
26965   rm -f conftest.er1
26966   cat conftest.err >&5
26967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26968   (exit $ac_status); } && {
26969          test -z "$ac_c_werror_flag" ||
26970          test ! -s conftest.err
26971        } && test -s conftest.$ac_objext; then
26972   ac_hi=$ac_mid
26973 else
26974   echo "$as_me: failed program was:" >&5
26975 sed 's/^/| /' conftest.$ac_ext >&5
26976
26977         ac_lo=`expr '(' $ac_mid ')' + 1`
26978 fi
26979
26980 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26981 done
26982 case $ac_lo in
26983 ?*) ac_cv_sizeof_boolean=$ac_lo;;
26984 '') if test "$ac_cv_type_boolean" = yes; then
26985      { { echo "$as_me:$LINENO: error: cannot compute sizeof (boolean)
26986 See \`config.log' for more details." >&5
26987 echo "$as_me: error: cannot compute sizeof (boolean)
26988 See \`config.log' for more details." >&2;}
26989    { (exit 77); exit 77; }; }
26990    else
26991      ac_cv_sizeof_boolean=0
26992    fi ;;
26993 esac
26994 else
26995   cat >conftest.$ac_ext <<_ACEOF
26996 /* confdefs.h.  */
26997 _ACEOF
26998 cat confdefs.h >>conftest.$ac_ext
26999 cat >>conftest.$ac_ext <<_ACEOF
27000 /* end confdefs.h.  */
27001
27002                                     #undef HAVE_BOOLEAN
27003                                     #include <stdio.h>
27004                                     #include <jpeglib.h>
27005
27006
27007    typedef boolean ac__type_sizeof_;
27008 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
27009 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
27010 #include <stdio.h>
27011 #include <stdlib.h>
27012 int
27013 main ()
27014 {
27015
27016   FILE *f = fopen ("conftest.val", "w");
27017   if (! f)
27018     return 1;
27019   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
27020     {
27021       long int i = longval ();
27022       if (i != ((long int) (sizeof (ac__type_sizeof_))))
27023         return 1;
27024       fprintf (f, "%ld\n", i);
27025     }
27026   else
27027     {
27028       unsigned long int i = ulongval ();
27029       if (i != ((long int) (sizeof (ac__type_sizeof_))))
27030         return 1;
27031       fprintf (f, "%lu\n", i);
27032     }
27033   return ferror (f) || fclose (f) != 0;
27034
27035   ;
27036   return 0;
27037 }
27038 _ACEOF
27039 rm -f conftest$ac_exeext
27040 if { (ac_try="$ac_link"
27041 case "(($ac_try" in
27042   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27043   *) ac_try_echo=$ac_try;;
27044 esac
27045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27046   (eval "$ac_link") 2>&5
27047   ac_status=$?
27048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27049   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27050   { (case "(($ac_try" in
27051   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27052   *) ac_try_echo=$ac_try;;
27053 esac
27054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27055   (eval "$ac_try") 2>&5
27056   ac_status=$?
27057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27058   (exit $ac_status); }; }; then
27059   ac_cv_sizeof_boolean=`cat conftest.val`
27060 else
27061   echo "$as_me: program exited with status $ac_status" >&5
27062 echo "$as_me: failed program was:" >&5
27063 sed 's/^/| /' conftest.$ac_ext >&5
27064
27065 ( exit $ac_status )
27066 if test "$ac_cv_type_boolean" = yes; then
27067      { { echo "$as_me:$LINENO: error: cannot compute sizeof (boolean)
27068 See \`config.log' for more details." >&5
27069 echo "$as_me: error: cannot compute sizeof (boolean)
27070 See \`config.log' for more details." >&2;}
27071    { (exit 77); exit 77; }; }
27072    else
27073      ac_cv_sizeof_boolean=0
27074    fi
27075 fi
27076 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27077 fi
27078 rm -f conftest.val
27079 fi
27080 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_boolean" >&5
27081 echo "${ECHO_T}$ac_cv_sizeof_boolean" >&6; }
27082
27083
27084
27085 cat >>confdefs.h <<_ACEOF
27086 #define SIZEOF_BOOLEAN $ac_cv_sizeof_boolean
27087 _ACEOF
27088
27089
27090                             cat >>confdefs.h <<_ACEOF
27091 #define wxHACK_BOOLEAN wxInt`expr 8 \* $ac_cv_sizeof_boolean`
27092 _ACEOF
27093
27094
27095 fi
27096
27097                 fi
27098             fi
27099         fi
27100     fi
27101 fi
27102
27103
27104 TIFF_LINK=
27105 TIFF_PREREQ_LINKS=-lm
27106 if test "$wxUSE_LIBTIFF" != "no" ; then
27107     cat >>confdefs.h <<\_ACEOF
27108 #define wxUSE_LIBTIFF 1
27109 _ACEOF
27110
27111
27112     if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then
27113                         if test "$wxUSE_LIBJPEG" = "sys"; then
27114             TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $JPEG_LINK"
27115         fi
27116         if test "$wxUSE_ZLIB" = "sys"; then
27117             TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $ZLIB_LINK"
27118         fi
27119         { echo "$as_me:$LINENO: checking for tiffio.h" >&5
27120 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
27121 if test "${ac_cv_header_tiffio_h+set}" = set; then
27122   echo $ECHO_N "(cached) $ECHO_C" >&6
27123 else
27124   cat >conftest.$ac_ext <<_ACEOF
27125 /* confdefs.h.  */
27126 _ACEOF
27127 cat confdefs.h >>conftest.$ac_ext
27128 cat >>conftest.$ac_ext <<_ACEOF
27129 /* end confdefs.h.  */
27130
27131
27132
27133 #include <tiffio.h>
27134 _ACEOF
27135 rm -f conftest.$ac_objext
27136 if { (ac_try="$ac_compile"
27137 case "(($ac_try" in
27138   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27139   *) ac_try_echo=$ac_try;;
27140 esac
27141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27142   (eval "$ac_compile") 2>conftest.er1
27143   ac_status=$?
27144   grep -v '^ *+' conftest.er1 >conftest.err
27145   rm -f conftest.er1
27146   cat conftest.err >&5
27147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27148   (exit $ac_status); } && {
27149          test -z "$ac_c_werror_flag" ||
27150          test ! -s conftest.err
27151        } && test -s conftest.$ac_objext; then
27152   ac_cv_header_tiffio_h=yes
27153 else
27154   echo "$as_me: failed program was:" >&5
27155 sed 's/^/| /' conftest.$ac_ext >&5
27156
27157         ac_cv_header_tiffio_h=no
27158 fi
27159
27160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27161 fi
27162 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
27163 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
27164 if test $ac_cv_header_tiffio_h = yes; then
27165
27166                             { echo "$as_me:$LINENO: checking for TIFFError in -ltiff" >&5
27167 echo $ECHO_N "checking for TIFFError in -ltiff... $ECHO_C" >&6; }
27168 if test "${ac_cv_lib_tiff_TIFFError+set}" = set; then
27169   echo $ECHO_N "(cached) $ECHO_C" >&6
27170 else
27171   ac_check_lib_save_LIBS=$LIBS
27172 LIBS="-ltiff $TIFF_PREREQ_LINKS $LIBS"
27173 cat >conftest.$ac_ext <<_ACEOF
27174 /* confdefs.h.  */
27175 _ACEOF
27176 cat confdefs.h >>conftest.$ac_ext
27177 cat >>conftest.$ac_ext <<_ACEOF
27178 /* end confdefs.h.  */
27179
27180 /* Override any GCC internal prototype to avoid an error.
27181    Use char because int might match the return type of a GCC
27182    builtin and then its argument prototype would still apply.  */
27183 #ifdef __cplusplus
27184 extern "C"
27185 #endif
27186 char TIFFError ();
27187 int
27188 main ()
27189 {
27190 return TIFFError ();
27191   ;
27192   return 0;
27193 }
27194 _ACEOF
27195 rm -f conftest.$ac_objext conftest$ac_exeext
27196 if { (ac_try="$ac_link"
27197 case "(($ac_try" in
27198   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27199   *) ac_try_echo=$ac_try;;
27200 esac
27201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27202   (eval "$ac_link") 2>conftest.er1
27203   ac_status=$?
27204   grep -v '^ *+' conftest.er1 >conftest.err
27205   rm -f conftest.er1
27206   cat conftest.err >&5
27207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27208   (exit $ac_status); } && {
27209          test -z "$ac_c_werror_flag" ||
27210          test ! -s conftest.err
27211        } && test -s conftest$ac_exeext &&
27212        $as_test_x conftest$ac_exeext; then
27213   ac_cv_lib_tiff_TIFFError=yes
27214 else
27215   echo "$as_me: failed program was:" >&5
27216 sed 's/^/| /' conftest.$ac_ext >&5
27217
27218         ac_cv_lib_tiff_TIFFError=no
27219 fi
27220
27221 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27222       conftest$ac_exeext conftest.$ac_ext
27223 LIBS=$ac_check_lib_save_LIBS
27224 fi
27225 { echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFError" >&5
27226 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFError" >&6; }
27227 if test $ac_cv_lib_tiff_TIFFError = yes; then
27228   TIFF_LINK=" -ltiff"
27229 fi
27230
27231
27232 fi
27233
27234
27235
27236         if test "x$TIFF_LINK" = "x" ; then
27237             if test "$wxUSE_LIBTIFF" = "sys" ; then
27238                 { { echo "$as_me:$LINENO: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&5
27239 echo "$as_me: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&2;}
27240    { (exit 1); exit 1; }; }
27241             else
27242                 { echo "$as_me:$LINENO: WARNING: system tiff library not found, will use built-in instead" >&5
27243 echo "$as_me: WARNING: system tiff library not found, will use built-in instead" >&2;}
27244                 wxUSE_LIBTIFF=builtin
27245             fi
27246         else
27247                         wxUSE_LIBTIFF=sys
27248         fi
27249     fi
27250     if test "$wxUSE_LIBTIFF" = "builtin" ; then
27251         if test "$wxUSE_LIBJPEG" = "no"; then
27252                                                                                     ac_configure_args="$ac_configure_args --disable-jpeg"
27253         fi
27254         subdirs="$subdirs src/tiff"
27255
27256     fi
27257 fi
27258
27259
27260 if test "$wxUSE_WCHAR_T" != "yes"; then
27261     if test "$wxUSE_EXPAT" != "no"; then
27262         { echo "$as_me:$LINENO: WARNING: wxWidgets requires wchar_t to use expat, disabling" >&5
27263 echo "$as_me: WARNING: wxWidgets requires wchar_t to use expat, disabling" >&2;}
27264         wxUSE_EXPAT=no
27265     fi
27266     if test "$wxUSE_XML" != "no"; then
27267         { echo "$as_me:$LINENO: WARNING: wxWidgets requires wchar_t to use xml, disabling" >&5
27268 echo "$as_me: WARNING: wxWidgets requires wchar_t to use xml, disabling" >&2;}
27269         wxUSE_XML=no
27270     fi
27271 fi
27272
27273 if test "$wxUSE_EXPAT" != "no"; then
27274     wxUSE_XML=yes
27275     cat >>confdefs.h <<\_ACEOF
27276 #define wxUSE_EXPAT 1
27277 _ACEOF
27278
27279     cat >>confdefs.h <<\_ACEOF
27280 #define wxUSE_XML 1
27281 _ACEOF
27282
27283
27284     if test "$wxUSE_EXPAT" = "sys" -o "$wxUSE_EXPAT" = "yes" ; then
27285         { echo "$as_me:$LINENO: checking for expat.h" >&5
27286 echo $ECHO_N "checking for expat.h... $ECHO_C" >&6; }
27287 if test "${ac_cv_header_expat_h+set}" = set; then
27288   echo $ECHO_N "(cached) $ECHO_C" >&6
27289 else
27290   cat >conftest.$ac_ext <<_ACEOF
27291 /* confdefs.h.  */
27292 _ACEOF
27293 cat confdefs.h >>conftest.$ac_ext
27294 cat >>conftest.$ac_ext <<_ACEOF
27295 /* end confdefs.h.  */
27296
27297
27298 #include <expat.h>
27299 _ACEOF
27300 rm -f conftest.$ac_objext
27301 if { (ac_try="$ac_compile"
27302 case "(($ac_try" in
27303   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27304   *) ac_try_echo=$ac_try;;
27305 esac
27306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27307   (eval "$ac_compile") 2>conftest.er1
27308   ac_status=$?
27309   grep -v '^ *+' conftest.er1 >conftest.err
27310   rm -f conftest.er1
27311   cat conftest.err >&5
27312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27313   (exit $ac_status); } && {
27314          test -z "$ac_c_werror_flag" ||
27315          test ! -s conftest.err
27316        } && test -s conftest.$ac_objext; then
27317   ac_cv_header_expat_h=yes
27318 else
27319   echo "$as_me: failed program was:" >&5
27320 sed 's/^/| /' conftest.$ac_ext >&5
27321
27322         ac_cv_header_expat_h=no
27323 fi
27324
27325 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27326 fi
27327 { echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
27328 echo "${ECHO_T}$ac_cv_header_expat_h" >&6; }
27329 if test $ac_cv_header_expat_h = yes; then
27330   found_expat_h=1
27331 fi
27332
27333
27334         if test "x$found_expat_h" = "x1"; then
27335                         { echo "$as_me:$LINENO: checking if expat.h is valid C++ header" >&5
27336 echo $ECHO_N "checking if expat.h is valid C++ header... $ECHO_C" >&6; }
27337 if test "${wx_cv_expat_is_not_broken+set}" = set; then
27338   echo $ECHO_N "(cached) $ECHO_C" >&6
27339 else
27340
27341                 ac_ext=cpp
27342 ac_cpp='$CXXCPP $CPPFLAGS'
27343 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27344 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27345 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27346
27347                 cat >conftest.$ac_ext <<_ACEOF
27348 /* confdefs.h.  */
27349 _ACEOF
27350 cat confdefs.h >>conftest.$ac_ext
27351 cat >>conftest.$ac_ext <<_ACEOF
27352 /* end confdefs.h.  */
27353 #include <expat.h>
27354 int
27355 main ()
27356 {
27357
27358   ;
27359   return 0;
27360 }
27361 _ACEOF
27362 rm -f conftest.$ac_objext
27363 if { (ac_try="$ac_compile"
27364 case "(($ac_try" in
27365   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27366   *) ac_try_echo=$ac_try;;
27367 esac
27368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27369   (eval "$ac_compile") 2>conftest.er1
27370   ac_status=$?
27371   grep -v '^ *+' conftest.er1 >conftest.err
27372   rm -f conftest.er1
27373   cat conftest.err >&5
27374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27375   (exit $ac_status); } && {
27376          test -z "$ac_cxx_werror_flag" ||
27377          test ! -s conftest.err
27378        } && test -s conftest.$ac_objext; then
27379   wx_cv_expat_is_not_broken=yes
27380 else
27381   echo "$as_me: failed program was:" >&5
27382 sed 's/^/| /' conftest.$ac_ext >&5
27383
27384         wx_cv_expat_is_not_broken=no
27385
27386 fi
27387
27388 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27389                 ac_ext=c
27390 ac_cpp='$CPP $CPPFLAGS'
27391 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27392 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27393 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27394
27395
27396
27397 fi
27398 { echo "$as_me:$LINENO: result: $wx_cv_expat_is_not_broken" >&5
27399 echo "${ECHO_T}$wx_cv_expat_is_not_broken" >&6; }
27400             if test "$wx_cv_expat_is_not_broken" = "yes" ; then
27401                 { echo "$as_me:$LINENO: checking for XML_ParserCreate in -lexpat" >&5
27402 echo $ECHO_N "checking for XML_ParserCreate in -lexpat... $ECHO_C" >&6; }
27403 if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then
27404   echo $ECHO_N "(cached) $ECHO_C" >&6
27405 else
27406   ac_check_lib_save_LIBS=$LIBS
27407 LIBS="-lexpat  $LIBS"
27408 cat >conftest.$ac_ext <<_ACEOF
27409 /* confdefs.h.  */
27410 _ACEOF
27411 cat confdefs.h >>conftest.$ac_ext
27412 cat >>conftest.$ac_ext <<_ACEOF
27413 /* end confdefs.h.  */
27414
27415 /* Override any GCC internal prototype to avoid an error.
27416    Use char because int might match the return type of a GCC
27417    builtin and then its argument prototype would still apply.  */
27418 #ifdef __cplusplus
27419 extern "C"
27420 #endif
27421 char XML_ParserCreate ();
27422 int
27423 main ()
27424 {
27425 return XML_ParserCreate ();
27426   ;
27427   return 0;
27428 }
27429 _ACEOF
27430 rm -f conftest.$ac_objext conftest$ac_exeext
27431 if { (ac_try="$ac_link"
27432 case "(($ac_try" in
27433   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27434   *) ac_try_echo=$ac_try;;
27435 esac
27436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27437   (eval "$ac_link") 2>conftest.er1
27438   ac_status=$?
27439   grep -v '^ *+' conftest.er1 >conftest.err
27440   rm -f conftest.er1
27441   cat conftest.err >&5
27442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27443   (exit $ac_status); } && {
27444          test -z "$ac_c_werror_flag" ||
27445          test ! -s conftest.err
27446        } && test -s conftest$ac_exeext &&
27447        $as_test_x conftest$ac_exeext; then
27448   ac_cv_lib_expat_XML_ParserCreate=yes
27449 else
27450   echo "$as_me: failed program was:" >&5
27451 sed 's/^/| /' conftest.$ac_ext >&5
27452
27453         ac_cv_lib_expat_XML_ParserCreate=no
27454 fi
27455
27456 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27457       conftest$ac_exeext conftest.$ac_ext
27458 LIBS=$ac_check_lib_save_LIBS
27459 fi
27460 { echo "$as_me:$LINENO: result: $ac_cv_lib_expat_XML_ParserCreate" >&5
27461 echo "${ECHO_T}$ac_cv_lib_expat_XML_ParserCreate" >&6; }
27462 if test $ac_cv_lib_expat_XML_ParserCreate = yes; then
27463   EXPAT_LINK=" -lexpat"
27464 fi
27465
27466             fi
27467         fi
27468         if test "x$EXPAT_LINK" = "x" ; then
27469             if test "$wxUSE_EXPAT" = "sys" ; then
27470                 { { echo "$as_me:$LINENO: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&5
27471 echo "$as_me: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&2;}
27472    { (exit 1); exit 1; }; }
27473             else
27474                 { echo "$as_me:$LINENO: WARNING: system expat library not found, will use built-in instead" >&5
27475 echo "$as_me: WARNING: system expat library not found, will use built-in instead" >&2;}
27476                 wxUSE_EXPAT=builtin
27477             fi
27478         else
27479                         wxUSE_EXPAT=sys
27480         fi
27481     fi
27482     if test "$wxUSE_EXPAT" = "builtin" ; then
27483                 subdirs="$subdirs src/expat"
27484
27485     fi
27486 fi
27487
27488
27489
27490 if test "$wxUSE_LIBMSPACK" != "no"; then
27491     { echo "$as_me:$LINENO: checking for mspack.h" >&5
27492 echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6; }
27493 if test "${ac_cv_header_mspack_h+set}" = set; then
27494   echo $ECHO_N "(cached) $ECHO_C" >&6
27495 else
27496   cat >conftest.$ac_ext <<_ACEOF
27497 /* confdefs.h.  */
27498 _ACEOF
27499 cat confdefs.h >>conftest.$ac_ext
27500 cat >>conftest.$ac_ext <<_ACEOF
27501 /* end confdefs.h.  */
27502
27503
27504 #include <mspack.h>
27505 _ACEOF
27506 rm -f conftest.$ac_objext
27507 if { (ac_try="$ac_compile"
27508 case "(($ac_try" in
27509   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27510   *) ac_try_echo=$ac_try;;
27511 esac
27512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27513   (eval "$ac_compile") 2>conftest.er1
27514   ac_status=$?
27515   grep -v '^ *+' conftest.er1 >conftest.err
27516   rm -f conftest.er1
27517   cat conftest.err >&5
27518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27519   (exit $ac_status); } && {
27520          test -z "$ac_c_werror_flag" ||
27521          test ! -s conftest.err
27522        } && test -s conftest.$ac_objext; then
27523   ac_cv_header_mspack_h=yes
27524 else
27525   echo "$as_me: failed program was:" >&5
27526 sed 's/^/| /' conftest.$ac_ext >&5
27527
27528         ac_cv_header_mspack_h=no
27529 fi
27530
27531 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27532 fi
27533 { echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
27534 echo "${ECHO_T}$ac_cv_header_mspack_h" >&6; }
27535 if test $ac_cv_header_mspack_h = yes; then
27536   found_mspack_h=1
27537 fi
27538
27539
27540     if test "x$found_mspack_h" = "x1"; then
27541         { echo "$as_me:$LINENO: checking for mspack_create_chm_decompressor in -lmspack" >&5
27542 echo $ECHO_N "checking for mspack_create_chm_decompressor in -lmspack... $ECHO_C" >&6; }
27543 if test "${ac_cv_lib_mspack_mspack_create_chm_decompressor+set}" = set; then
27544   echo $ECHO_N "(cached) $ECHO_C" >&6
27545 else
27546   ac_check_lib_save_LIBS=$LIBS
27547 LIBS="-lmspack  $LIBS"
27548 cat >conftest.$ac_ext <<_ACEOF
27549 /* confdefs.h.  */
27550 _ACEOF
27551 cat confdefs.h >>conftest.$ac_ext
27552 cat >>conftest.$ac_ext <<_ACEOF
27553 /* end confdefs.h.  */
27554
27555 /* Override any GCC internal prototype to avoid an error.
27556    Use char because int might match the return type of a GCC
27557    builtin and then its argument prototype would still apply.  */
27558 #ifdef __cplusplus
27559 extern "C"
27560 #endif
27561 char mspack_create_chm_decompressor ();
27562 int
27563 main ()
27564 {
27565 return mspack_create_chm_decompressor ();
27566   ;
27567   return 0;
27568 }
27569 _ACEOF
27570 rm -f conftest.$ac_objext conftest$ac_exeext
27571 if { (ac_try="$ac_link"
27572 case "(($ac_try" in
27573   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27574   *) ac_try_echo=$ac_try;;
27575 esac
27576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27577   (eval "$ac_link") 2>conftest.er1
27578   ac_status=$?
27579   grep -v '^ *+' conftest.er1 >conftest.err
27580   rm -f conftest.er1
27581   cat conftest.err >&5
27582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27583   (exit $ac_status); } && {
27584          test -z "$ac_c_werror_flag" ||
27585          test ! -s conftest.err
27586        } && test -s conftest$ac_exeext &&
27587        $as_test_x conftest$ac_exeext; then
27588   ac_cv_lib_mspack_mspack_create_chm_decompressor=yes
27589 else
27590   echo "$as_me: failed program was:" >&5
27591 sed 's/^/| /' conftest.$ac_ext >&5
27592
27593         ac_cv_lib_mspack_mspack_create_chm_decompressor=no
27594 fi
27595
27596 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27597       conftest$ac_exeext conftest.$ac_ext
27598 LIBS=$ac_check_lib_save_LIBS
27599 fi
27600 { echo "$as_me:$LINENO: result: $ac_cv_lib_mspack_mspack_create_chm_decompressor" >&5
27601 echo "${ECHO_T}$ac_cv_lib_mspack_mspack_create_chm_decompressor" >&6; }
27602 if test $ac_cv_lib_mspack_mspack_create_chm_decompressor = yes; then
27603   MSPACK_LINK=" -lmspack"
27604 fi
27605
27606     fi
27607     if test "x$MSPACK_LINK" = "x" ; then
27608         wxUSE_LIBMSPACK=no
27609     fi
27610 fi
27611
27612 if test "$wxUSE_LIBMSPACK" != "no"; then
27613     cat >>confdefs.h <<\_ACEOF
27614 #define wxUSE_LIBMSPACK 1
27615 _ACEOF
27616
27617 fi
27618
27619
27620
27621 AFMINSTALL=
27622 WIN32INSTALL=
27623
27624 TOOLKIT=
27625 TOOLKIT_INCLUDE=
27626 WIDGET_SET=
27627
27628 if test "$USE_WIN32" = 1 ; then
27629
27630 for ac_header in w32api.h
27631 do
27632 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27633 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27634 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27635 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27636   echo $ECHO_N "(cached) $ECHO_C" >&6
27637 else
27638   cat >conftest.$ac_ext <<_ACEOF
27639 /* confdefs.h.  */
27640 _ACEOF
27641 cat confdefs.h >>conftest.$ac_ext
27642 cat >>conftest.$ac_ext <<_ACEOF
27643 /* end confdefs.h.  */
27644
27645
27646 #include <$ac_header>
27647 _ACEOF
27648 rm -f conftest.$ac_objext
27649 if { (ac_try="$ac_compile"
27650 case "(($ac_try" in
27651   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27652   *) ac_try_echo=$ac_try;;
27653 esac
27654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27655   (eval "$ac_compile") 2>conftest.er1
27656   ac_status=$?
27657   grep -v '^ *+' conftest.er1 >conftest.err
27658   rm -f conftest.er1
27659   cat conftest.err >&5
27660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27661   (exit $ac_status); } && {
27662          test -z "$ac_c_werror_flag" ||
27663          test ! -s conftest.err
27664        } && test -s conftest.$ac_objext; then
27665   eval "$as_ac_Header=yes"
27666 else
27667   echo "$as_me: failed program was:" >&5
27668 sed 's/^/| /' conftest.$ac_ext >&5
27669
27670         eval "$as_ac_Header=no"
27671 fi
27672
27673 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27674 fi
27675 ac_res=`eval echo '${'$as_ac_Header'}'`
27676                { echo "$as_me:$LINENO: result: $ac_res" >&5
27677 echo "${ECHO_T}$ac_res" >&6; }
27678 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27679   cat >>confdefs.h <<_ACEOF
27680 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27681 _ACEOF
27682
27683 fi
27684
27685 done
27686
27687     { echo "$as_me:$LINENO: checking for windows.h" >&5
27688 echo $ECHO_N "checking for windows.h... $ECHO_C" >&6; }
27689 if test "${ac_cv_header_windows_h+set}" = set; then
27690   echo $ECHO_N "(cached) $ECHO_C" >&6
27691 else
27692   cat >conftest.$ac_ext <<_ACEOF
27693 /* confdefs.h.  */
27694 _ACEOF
27695 cat confdefs.h >>conftest.$ac_ext
27696 cat >>conftest.$ac_ext <<_ACEOF
27697 /* end confdefs.h.  */
27698
27699
27700 #include <windows.h>
27701 _ACEOF
27702 rm -f conftest.$ac_objext
27703 if { (ac_try="$ac_compile"
27704 case "(($ac_try" in
27705   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27706   *) ac_try_echo=$ac_try;;
27707 esac
27708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27709   (eval "$ac_compile") 2>conftest.er1
27710   ac_status=$?
27711   grep -v '^ *+' conftest.er1 >conftest.err
27712   rm -f conftest.er1
27713   cat conftest.err >&5
27714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27715   (exit $ac_status); } && {
27716          test -z "$ac_c_werror_flag" ||
27717          test ! -s conftest.err
27718        } && test -s conftest.$ac_objext; then
27719   ac_cv_header_windows_h=yes
27720 else
27721   echo "$as_me: failed program was:" >&5
27722 sed 's/^/| /' conftest.$ac_ext >&5
27723
27724         ac_cv_header_windows_h=no
27725 fi
27726
27727 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27728 fi
27729 { echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
27730 echo "${ECHO_T}$ac_cv_header_windows_h" >&6; }
27731 if test $ac_cv_header_windows_h = yes; then
27732   :
27733 else
27734
27735         { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of windows.h" >&5
27736 echo "$as_me: error: please set CFLAGS to contain the location of windows.h" >&2;}
27737    { (exit 1); exit 1; }; }
27738
27739 fi
27740
27741
27742
27743             LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lcomdlg32 -lctl3d32 -ladvapi32 -lwsock32 -lgdi32"
27744
27745     if test "$wxUSE_ACCESSIBILITY" = "yes" ; then
27746         LIBS="$LIBS -loleacc"
27747     fi
27748
27749     case "${host}" in
27750         *-*-cygwin* )
27751                         LIBS="$LIBS -lkernel32 -luser32"
27752     esac
27753
27754         RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
27755     RESPROGRAMOBJ="\$(PROGRAM)_resources.o"
27756
27757                 WXCONFIG_RESFLAGS="--define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
27758
27759         WIN32INSTALL=win32install
27760
27761         { echo "$as_me:$LINENO: checking for pbt.h" >&5
27762 echo $ECHO_N "checking for pbt.h... $ECHO_C" >&6; }
27763 if test "${ac_cv_header_pbt_h+set}" = set; then
27764   echo $ECHO_N "(cached) $ECHO_C" >&6
27765 else
27766   cat >conftest.$ac_ext <<_ACEOF
27767 /* confdefs.h.  */
27768 _ACEOF
27769 cat confdefs.h >>conftest.$ac_ext
27770 cat >>conftest.$ac_ext <<_ACEOF
27771 /* end confdefs.h.  */
27772
27773
27774 #include <pbt.h>
27775 _ACEOF
27776 rm -f conftest.$ac_objext
27777 if { (ac_try="$ac_compile"
27778 case "(($ac_try" in
27779   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27780   *) ac_try_echo=$ac_try;;
27781 esac
27782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27783   (eval "$ac_compile") 2>conftest.er1
27784   ac_status=$?
27785   grep -v '^ *+' conftest.er1 >conftest.err
27786   rm -f conftest.er1
27787   cat conftest.err >&5
27788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27789   (exit $ac_status); } && {
27790          test -z "$ac_c_werror_flag" ||
27791          test ! -s conftest.err
27792        } && test -s conftest.$ac_objext; then
27793   ac_cv_header_pbt_h=yes
27794 else
27795   echo "$as_me: failed program was:" >&5
27796 sed 's/^/| /' conftest.$ac_ext >&5
27797
27798         ac_cv_header_pbt_h=no
27799 fi
27800
27801 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27802 fi
27803 { echo "$as_me:$LINENO: result: $ac_cv_header_pbt_h" >&5
27804 echo "${ECHO_T}$ac_cv_header_pbt_h" >&6; }
27805 if test $ac_cv_header_pbt_h = yes; then
27806   :
27807 else
27808   cat >>confdefs.h <<\_ACEOF
27809 #define NEED_PBT_H 1
27810 _ACEOF
27811
27812 fi
27813
27814
27815 fi
27816
27817 if test "$wxUSE_GUI" = "yes"; then
27818     USE_GUI=1
27819
27820     GUI_TK_LIBRARY=
27821
27822     WXGTK12=
27823     WXGTK127=
27824     WXGTK2=
27825     WXGPE=
27826
27827     if test "$wxUSE_COCOA" = 1 ; then
27828         if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes"; then
27829             { echo "$as_me:$LINENO: WARNING: Printing not supported under wxCocoa yet, disabled" >&5
27830 echo "$as_me: WARNING: Printing not supported under wxCocoa yet, disabled" >&2;}
27831             wxUSE_PRINTING_ARCHITECTURE=no
27832         fi
27833         if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
27834             { echo "$as_me:$LINENO: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&5
27835 echo "$as_me: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&2;}
27836             wxUSE_DRAG_AND_DROP=no
27837         fi
27838         if test "$wxUSE_DRAGIMAGE" = "yes"; then
27839             { echo "$as_me:$LINENO: WARNING: wxDragImage not supported under wxCocoa yet, disabled" >&5
27840 echo "$as_me: WARNING: wxDragImage not supported under wxCocoa yet, disabled" >&2;}
27841             wxUSE_DRAGIMAGE=no
27842         fi
27843     fi
27844
27845     if test "$wxUSE_MSW" = 1 ; then
27846         TOOLKIT=MSW
27847         GUIDIST=MSW_DIST
27848
27849                 case "${host}" in
27850             *-*-mingw32* )
27851                 WXCONFIG_LDFLAGS_GUI="$LDFLAGS -Wl,--subsystem,windows -mwindows"
27852         esac
27853     fi
27854
27855     if test "$wxUSE_GTK" = 1; then
27856                 { echo "$as_me:$LINENO: checking for GTK+ version" >&5
27857 echo $ECHO_N "checking for GTK+ version... $ECHO_C" >&6; }
27858
27859         gtk_version_cached=1
27860         if test "${wx_cv_lib_gtk+set}" = set; then
27861   echo $ECHO_N "(cached) $ECHO_C" >&6
27862 else
27863
27864                                                 gtk_version_cached=0
27865                 { echo "$as_me:$LINENO: result: " >&5
27866 echo "${ECHO_T}" >&6; }
27867
27868                                                 GTK_MODULES=
27869                 if test "$wxUSE_THREADS" = "yes"; then
27870                     GTK_MODULES=gthread
27871                 fi
27872
27873                                 wx_cv_lib_gtk=
27874                 if test "x$wxGTK_VERSION" != "x1"
27875                 then
27876                                                                                 case "${host}" in
27877                         *-*-solaris2* )
27878                             if test "$wxUSE_THREADS" = "yes" -a "$GCC" = yes; then
27879                                 enable_gtktest=no
27880                             fi
27881                     esac
27882
27883                     # Check whether --enable-gtktest was given.
27884 if test "${enable_gtktest+set}" = set; then
27885   enableval=$enable_gtktest;
27886 else
27887   enable_gtktest=yes
27888 fi
27889
27890
27891   pkg_config_args=gtk+-2.0
27892   for module in . $GTK_MODULES
27893   do
27894       case "$module" in
27895          gthread)
27896              pkg_config_args="$pkg_config_args gthread-2.0"
27897          ;;
27898       esac
27899   done
27900
27901   no_gtk=""
27902
27903   # Extract the first word of "pkg-config", so it can be a program name with args.
27904 set dummy pkg-config; ac_word=$2
27905 { echo "$as_me:$LINENO: checking for $ac_word" >&5
27906 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
27907 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
27908   echo $ECHO_N "(cached) $ECHO_C" >&6
27909 else
27910   case $PKG_CONFIG in
27911   [\\/]* | ?:[\\/]*)
27912   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
27913   ;;
27914   *)
27915   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27916 for as_dir in $PATH
27917 do
27918   IFS=$as_save_IFS
27919   test -z "$as_dir" && as_dir=.
27920   for ac_exec_ext in '' $ac_executable_extensions; do
27921   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27922     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
27923     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27924     break 2
27925   fi
27926 done
27927 done
27928 IFS=$as_save_IFS
27929
27930   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
27931   ;;
27932 esac
27933 fi
27934 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
27935 if test -n "$PKG_CONFIG"; then
27936   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
27937 echo "${ECHO_T}$PKG_CONFIG" >&6; }
27938 else
27939   { echo "$as_me:$LINENO: result: no" >&5
27940 echo "${ECHO_T}no" >&6; }
27941 fi
27942
27943
27944
27945   if test x$PKG_CONFIG != xno ; then
27946     if pkg-config --atleast-pkgconfig-version 0.7 ; then
27947       :
27948     else
27949       echo "*** pkg-config too old; version 0.7 or better required."
27950       no_gtk=yes
27951       PKG_CONFIG=no
27952     fi
27953   else
27954     no_gtk=yes
27955   fi
27956
27957   min_gtk_version=2.4.0
27958   { echo "$as_me:$LINENO: checking for GTK+ - version >= $min_gtk_version" >&5
27959 echo $ECHO_N "checking for GTK+ - version >= $min_gtk_version... $ECHO_C" >&6; }
27960
27961   if test x$PKG_CONFIG != xno ; then
27962     ## don't try to run the test against uninstalled libtool libs
27963     if $PKG_CONFIG --uninstalled $pkg_config_args; then
27964           echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
27965           enable_gtktest=no
27966     fi
27967
27968     if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
27969           :
27970     else
27971           no_gtk=yes
27972     fi
27973   fi
27974
27975   if test x"$no_gtk" = x ; then
27976     GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
27977     GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
27978     gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
27979            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
27980     gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
27981            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
27982     gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
27983            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
27984     if test "x$enable_gtktest" = "xyes" ; then
27985       ac_save_CFLAGS="$CFLAGS"
27986       ac_save_LIBS="$LIBS"
27987       CFLAGS="$CFLAGS $GTK_CFLAGS"
27988       LIBS="$GTK_LIBS $LIBS"
27989       rm -f conf.gtktest
27990       if test "$cross_compiling" = yes; then
27991   echo $ac_n "cross compiling; assumed OK... $ac_c"
27992 else
27993   cat >conftest.$ac_ext <<_ACEOF
27994 /* confdefs.h.  */
27995 _ACEOF
27996 cat confdefs.h >>conftest.$ac_ext
27997 cat >>conftest.$ac_ext <<_ACEOF
27998 /* end confdefs.h.  */
27999
28000 #include <gtk/gtk.h>
28001 #include <stdio.h>
28002 #include <stdlib.h>
28003
28004 int
28005 main ()
28006 {
28007   int major, minor, micro;
28008   char *tmp_version;
28009
28010   system ("touch conf.gtktest");
28011
28012   /* HP/UX 9 (%@#!) writes to sscanf strings */
28013   tmp_version = g_strdup("$min_gtk_version");
28014   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
28015      printf("%s, bad version string\n", "$min_gtk_version");
28016      exit(1);
28017    }
28018
28019   if ((gtk_major_version != $gtk_config_major_version) ||
28020       (gtk_minor_version != $gtk_config_minor_version) ||
28021       (gtk_micro_version != $gtk_config_micro_version))
28022     {
28023       printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
28024              $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
28025              gtk_major_version, gtk_minor_version, gtk_micro_version);
28026       printf ("*** was found! If pkg-config was correct, then it is best\n");
28027       printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
28028       printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
28029       printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
28030       printf("*** required on your system.\n");
28031       printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
28032       printf("*** to point to the correct configuration files\n");
28033     }
28034   else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
28035            (gtk_minor_version != GTK_MINOR_VERSION) ||
28036            (gtk_micro_version != GTK_MICRO_VERSION))
28037     {
28038       printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
28039              GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
28040       printf("*** library (version %d.%d.%d)\n",
28041              gtk_major_version, gtk_minor_version, gtk_micro_version);
28042     }
28043   else
28044     {
28045       if ((gtk_major_version > major) ||
28046         ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
28047         ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
28048       {
28049         return 0;
28050        }
28051      else
28052       {
28053         printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
28054                gtk_major_version, gtk_minor_version, gtk_micro_version);
28055         printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
28056                major, minor, micro);
28057         printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
28058         printf("***\n");
28059         printf("*** If you have already installed a sufficiently new version, this error\n");
28060         printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
28061         printf("*** being found. The easiest way to fix this is to remove the old version\n");
28062         printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
28063         printf("*** correct copy of pkg-config. (In this case, you will have to\n");
28064         printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
28065         printf("*** so that the correct libraries are found at run-time))\n");
28066       }
28067     }
28068   return 1;
28069 }
28070
28071 _ACEOF
28072 rm -f conftest$ac_exeext
28073 if { (ac_try="$ac_link"
28074 case "(($ac_try" in
28075   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28076   *) ac_try_echo=$ac_try;;
28077 esac
28078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28079   (eval "$ac_link") 2>&5
28080   ac_status=$?
28081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28082   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28083   { (case "(($ac_try" in
28084   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28085   *) ac_try_echo=$ac_try;;
28086 esac
28087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28088   (eval "$ac_try") 2>&5
28089   ac_status=$?
28090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28091   (exit $ac_status); }; }; then
28092   :
28093 else
28094   echo "$as_me: program exited with status $ac_status" >&5
28095 echo "$as_me: failed program was:" >&5
28096 sed 's/^/| /' conftest.$ac_ext >&5
28097
28098 ( exit $ac_status )
28099 no_gtk=yes
28100 fi
28101 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28102 fi
28103
28104
28105        CFLAGS="$ac_save_CFLAGS"
28106        LIBS="$ac_save_LIBS"
28107      fi
28108   fi
28109   if test "x$no_gtk" = x ; then
28110      { echo "$as_me:$LINENO: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5
28111 echo "${ECHO_T}yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6; }
28112      wx_cv_lib_gtk=2.0
28113   else
28114      { echo "$as_me:$LINENO: result: no" >&5
28115 echo "${ECHO_T}no" >&6; }
28116      if test "$PKG_CONFIG" = "no" ; then
28117        echo "*** A new enough version of pkg-config was not found."
28118        echo "*** See http://pkgconfig.sourceforge.net"
28119      else
28120        if test -f conf.gtktest ; then
28121         :
28122        else
28123           echo "*** Could not run GTK+ test program, checking why..."
28124           ac_save_CFLAGS="$CFLAGS"
28125           ac_save_LIBS="$LIBS"
28126           CFLAGS="$CFLAGS $GTK_CFLAGS"
28127           LIBS="$LIBS $GTK_LIBS"
28128           cat >conftest.$ac_ext <<_ACEOF
28129 /* confdefs.h.  */
28130 _ACEOF
28131 cat confdefs.h >>conftest.$ac_ext
28132 cat >>conftest.$ac_ext <<_ACEOF
28133 /* end confdefs.h.  */
28134
28135 #include <gtk/gtk.h>
28136 #include <stdio.h>
28137
28138 int
28139 main ()
28140 {
28141  return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
28142   ;
28143   return 0;
28144 }
28145 _ACEOF
28146 rm -f conftest.$ac_objext conftest$ac_exeext
28147 if { (ac_try="$ac_link"
28148 case "(($ac_try" in
28149   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28150   *) ac_try_echo=$ac_try;;
28151 esac
28152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28153   (eval "$ac_link") 2>conftest.er1
28154   ac_status=$?
28155   grep -v '^ *+' conftest.er1 >conftest.err
28156   rm -f conftest.er1
28157   cat conftest.err >&5
28158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28159   (exit $ac_status); } && {
28160          test -z "$ac_c_werror_flag" ||
28161          test ! -s conftest.err
28162        } && test -s conftest$ac_exeext &&
28163        $as_test_x conftest$ac_exeext; then
28164    echo "*** The test program compiled, but did not run. This usually means"
28165           echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
28166           echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
28167           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
28168           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
28169           echo "*** is required on your system"
28170           echo "***"
28171           echo "*** If you have an old version installed, it is best to remove it, although"
28172           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
28173 else
28174   echo "$as_me: failed program was:" >&5
28175 sed 's/^/| /' conftest.$ac_ext >&5
28176
28177          echo "*** The test program failed to compile or link. See the file config.log for the"
28178           echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."
28179 fi
28180
28181 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28182       conftest$ac_exeext conftest.$ac_ext
28183           CFLAGS="$ac_save_CFLAGS"
28184           LIBS="$ac_save_LIBS"
28185        fi
28186      fi
28187      GTK_CFLAGS=""
28188      GTK_LIBS=""
28189      :
28190   fi
28191
28192
28193   rm -f conf.gtktest
28194
28195
28196                                         case "${host}" in
28197                         *-*-solaris2* )
28198                             if test "$wxUSE_SHARED" != "yes"; then
28199                                 GTK_LIBS="$GTK_LIBS -lX11"
28200                             fi
28201                     esac
28202                 fi
28203
28204                                 if test -z "$wx_cv_lib_gtk"; then
28205                     if test "x$wxGTK_VERSION" = "x1" -o "x$wxGTK_VERSION" = "xany" ; then
28206
28207 # Check whether --with-gtk-prefix was given.
28208 if test "${with_gtk_prefix+set}" = set; then
28209   withval=$with_gtk_prefix; gtk_config_prefix="$withval"
28210 else
28211   gtk_config_prefix=""
28212 fi
28213
28214
28215 # Check whether --with-gtk-exec-prefix was given.
28216 if test "${with_gtk_exec_prefix+set}" = set; then
28217   withval=$with_gtk_exec_prefix; gtk_config_exec_prefix="$withval"
28218 else
28219   gtk_config_exec_prefix=""
28220 fi
28221
28222 # Check whether --enable-gtktest was given.
28223 if test "${enable_gtktest+set}" = set; then
28224   enableval=$enable_gtktest;
28225 else
28226   enable_gtktest=yes
28227 fi
28228
28229
28230   for module in . $GTK_MODULES
28231   do
28232       case "$module" in
28233          gthread)
28234              gtk_config_args="$gtk_config_args gthread"
28235          ;;
28236       esac
28237   done
28238
28239   if test x$gtk_config_exec_prefix != x ; then
28240      gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
28241      if test x${GTK_CONFIG+set} != xset ; then
28242         GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
28243      fi
28244   fi
28245   if test x$gtk_config_prefix != x ; then
28246      gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
28247      if test x${GTK_CONFIG+set} != xset ; then
28248         GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
28249      fi
28250   fi
28251
28252   # Extract the first word of "gtk-config", so it can be a program name with args.
28253 set dummy gtk-config; ac_word=$2
28254 { echo "$as_me:$LINENO: checking for $ac_word" >&5
28255 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
28256 if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
28257   echo $ECHO_N "(cached) $ECHO_C" >&6
28258 else
28259   case $GTK_CONFIG in
28260   [\\/]* | ?:[\\/]*)
28261   ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
28262   ;;
28263   *)
28264   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28265 for as_dir in $PATH
28266 do
28267   IFS=$as_save_IFS
28268   test -z "$as_dir" && as_dir=.
28269   for ac_exec_ext in '' $ac_executable_extensions; do
28270   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28271     ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
28272     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28273     break 2
28274   fi
28275 done
28276 done
28277 IFS=$as_save_IFS
28278
28279   test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
28280   ;;
28281 esac
28282 fi
28283 GTK_CONFIG=$ac_cv_path_GTK_CONFIG
28284 if test -n "$GTK_CONFIG"; then
28285   { echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
28286 echo "${ECHO_T}$GTK_CONFIG" >&6; }
28287 else
28288   { echo "$as_me:$LINENO: result: no" >&5
28289 echo "${ECHO_T}no" >&6; }
28290 fi
28291
28292
28293   min_gtk_version=1.2.7
28294   { echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
28295 echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6; }
28296   no_gtk=""
28297   if test "$GTK_CONFIG" = "no" ; then
28298     no_gtk=yes
28299   else
28300     GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
28301     GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
28302     gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
28303            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
28304     gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
28305            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
28306     gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
28307            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
28308     if test "x$enable_gtktest" = "xyes" ; then
28309       ac_save_CFLAGS="$CFLAGS"
28310       ac_save_LIBS="$LIBS"
28311       CFLAGS="$CFLAGS $GTK_CFLAGS"
28312       LIBS="$GTK_LIBS $LIBS"
28313       rm -f conf.gtktest
28314       if test "$cross_compiling" = yes; then
28315   echo $ac_n "cross compiling; assumed OK... $ac_c"
28316 else
28317   cat >conftest.$ac_ext <<_ACEOF
28318 /* confdefs.h.  */
28319 _ACEOF
28320 cat confdefs.h >>conftest.$ac_ext
28321 cat >>conftest.$ac_ext <<_ACEOF
28322 /* end confdefs.h.  */
28323
28324 #include <gtk/gtk.h>
28325 #include <stdio.h>
28326 #include <stdlib.h>
28327
28328 int
28329 main ()
28330 {
28331   int major, minor, micro;
28332   char *tmp_version;
28333
28334   system ("touch conf.gtktest");
28335
28336   /* HP/UX 9 (%@#!) writes to sscanf strings */
28337   tmp_version = g_strdup("$min_gtk_version");
28338   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
28339      printf("%s, bad version string\n", "$min_gtk_version");
28340      exit(1);
28341    }
28342
28343   if ((gtk_major_version != $gtk_config_major_version) ||
28344       (gtk_minor_version != $gtk_config_minor_version) ||
28345       (gtk_micro_version != $gtk_config_micro_version))
28346     {
28347       printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
28348              $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
28349              gtk_major_version, gtk_minor_version, gtk_micro_version);
28350       printf ("*** was found! If gtk-config was correct, then it is best\n");
28351       printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
28352       printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
28353       printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
28354       printf("*** required on your system.\n");
28355       printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
28356       printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
28357       printf("*** before re-running configure\n");
28358     }
28359 #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
28360   else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
28361            (gtk_minor_version != GTK_MINOR_VERSION) ||
28362            (gtk_micro_version != GTK_MICRO_VERSION))
28363     {
28364       printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
28365              GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
28366       printf("*** library (version %d.%d.%d)\n",
28367              gtk_major_version, gtk_minor_version, gtk_micro_version);
28368     }
28369 #endif /* defined (GTK_MAJOR_VERSION) ... */
28370   else
28371     {
28372       if ((gtk_major_version > major) ||
28373         ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
28374         ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
28375       {
28376         return 0;
28377        }
28378      else
28379       {
28380         printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
28381                gtk_major_version, gtk_minor_version, gtk_micro_version);
28382         printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
28383                major, minor, micro);
28384         printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
28385         printf("***\n");
28386         printf("*** If you have already installed a sufficiently new version, this error\n");
28387         printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
28388         printf("*** being found. The easiest way to fix this is to remove the old version\n");
28389         printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
28390         printf("*** correct copy of gtk-config. (In this case, you will have to\n");
28391         printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
28392         printf("*** so that the correct libraries are found at run-time))\n");
28393       }
28394     }
28395   return 1;
28396 }
28397
28398 _ACEOF
28399 rm -f conftest$ac_exeext
28400 if { (ac_try="$ac_link"
28401 case "(($ac_try" in
28402   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28403   *) ac_try_echo=$ac_try;;
28404 esac
28405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28406   (eval "$ac_link") 2>&5
28407   ac_status=$?
28408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28409   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28410   { (case "(($ac_try" in
28411   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28412   *) ac_try_echo=$ac_try;;
28413 esac
28414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28415   (eval "$ac_try") 2>&5
28416   ac_status=$?
28417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28418   (exit $ac_status); }; }; then
28419   :
28420 else
28421   echo "$as_me: program exited with status $ac_status" >&5
28422 echo "$as_me: failed program was:" >&5
28423 sed 's/^/| /' conftest.$ac_ext >&5
28424
28425 ( exit $ac_status )
28426 no_gtk=yes
28427 fi
28428 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28429 fi
28430
28431
28432        CFLAGS="$ac_save_CFLAGS"
28433        LIBS="$ac_save_LIBS"
28434      fi
28435   fi
28436   if test "x$no_gtk" = x ; then
28437      { echo "$as_me:$LINENO: result: yes" >&5
28438 echo "${ECHO_T}yes" >&6; }
28439      wx_cv_lib_gtk=1.2.7
28440   else
28441      { echo "$as_me:$LINENO: result: no" >&5
28442 echo "${ECHO_T}no" >&6; }
28443      if test "$GTK_CONFIG" = "no" ; then
28444        echo "*** The gtk-config script installed by GTK could not be found"
28445        echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
28446        echo "*** your path, or set the GTK_CONFIG environment variable to the"
28447        echo "*** full path to gtk-config."
28448      else
28449        if test -f conf.gtktest ; then
28450         :
28451        else
28452           echo "*** Could not run GTK test program, checking why..."
28453           CFLAGS="$CFLAGS $GTK_CFLAGS"
28454           LIBS="$LIBS $GTK_LIBS"
28455           cat >conftest.$ac_ext <<_ACEOF
28456 /* confdefs.h.  */
28457 _ACEOF
28458 cat confdefs.h >>conftest.$ac_ext
28459 cat >>conftest.$ac_ext <<_ACEOF
28460 /* end confdefs.h.  */
28461
28462 #include <gtk/gtk.h>
28463 #include <stdio.h>
28464
28465 int
28466 main ()
28467 {
28468  return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
28469   ;
28470   return 0;
28471 }
28472 _ACEOF
28473 rm -f conftest.$ac_objext conftest$ac_exeext
28474 if { (ac_try="$ac_link"
28475 case "(($ac_try" in
28476   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28477   *) ac_try_echo=$ac_try;;
28478 esac
28479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28480   (eval "$ac_link") 2>conftest.er1
28481   ac_status=$?
28482   grep -v '^ *+' conftest.er1 >conftest.err
28483   rm -f conftest.er1
28484   cat conftest.err >&5
28485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28486   (exit $ac_status); } && {
28487          test -z "$ac_c_werror_flag" ||
28488          test ! -s conftest.err
28489        } && test -s conftest$ac_exeext &&
28490        $as_test_x conftest$ac_exeext; then
28491    echo "*** The test program compiled, but did not run. This usually means"
28492           echo "*** that the run-time linker is not finding GTK or finding the wrong"
28493           echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
28494           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
28495           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
28496           echo "*** is required on your system"
28497           echo "***"
28498           echo "*** If you have an old version installed, it is best to remove it, although"
28499           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
28500           echo "***"
28501           echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
28502           echo "*** came with the system with the command"
28503           echo "***"
28504           echo "***    rpm --erase --nodeps gtk gtk-devel"
28505 else
28506   echo "$as_me: failed program was:" >&5
28507 sed 's/^/| /' conftest.$ac_ext >&5
28508
28509          echo "*** The test program failed to compile or link. See the file config.log for the"
28510           echo "*** exact error that occured. This usually means GTK was incorrectly installed"
28511           echo "*** or that you have moved GTK since it was installed. In the latter case, you"
28512           echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
28513 fi
28514
28515 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28516       conftest$ac_exeext conftest.$ac_ext
28517           CFLAGS="$ac_save_CFLAGS"
28518           LIBS="$ac_save_LIBS"
28519        fi
28520      fi
28521      GTK_CFLAGS=""
28522      GTK_LIBS=""
28523      :
28524   fi
28525
28526
28527   rm -f conf.gtktest
28528
28529
28530                         if test -z "$wx_cv_lib_gtk"; then
28531
28532 # Check whether --with-gtk-prefix was given.
28533 if test "${with_gtk_prefix+set}" = set; then
28534   withval=$with_gtk_prefix; gtk_config_prefix="$withval"
28535 else
28536   gtk_config_prefix=""
28537 fi
28538
28539
28540 # Check whether --with-gtk-exec-prefix was given.
28541 if test "${with_gtk_exec_prefix+set}" = set; then
28542   withval=$with_gtk_exec_prefix; gtk_config_exec_prefix="$withval"
28543 else
28544   gtk_config_exec_prefix=""
28545 fi
28546
28547 # Check whether --enable-gtktest was given.
28548 if test "${enable_gtktest+set}" = set; then
28549   enableval=$enable_gtktest;
28550 else
28551   enable_gtktest=yes
28552 fi
28553
28554
28555   for module in . $GTK_MODULES
28556   do
28557       case "$module" in
28558          gthread)
28559              gtk_config_args="$gtk_config_args gthread"
28560          ;;
28561       esac
28562   done
28563
28564   if test x$gtk_config_exec_prefix != x ; then
28565      gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
28566      if test x${GTK_CONFIG+set} != xset ; then
28567         GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
28568      fi
28569   fi
28570   if test x$gtk_config_prefix != x ; then
28571      gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
28572      if test x${GTK_CONFIG+set} != xset ; then
28573         GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
28574      fi
28575   fi
28576
28577   # Extract the first word of "gtk-config", so it can be a program name with args.
28578 set dummy gtk-config; ac_word=$2
28579 { echo "$as_me:$LINENO: checking for $ac_word" >&5
28580 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
28581 if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
28582   echo $ECHO_N "(cached) $ECHO_C" >&6
28583 else
28584   case $GTK_CONFIG in
28585   [\\/]* | ?:[\\/]*)
28586   ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
28587   ;;
28588   *)
28589   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28590 for as_dir in $PATH
28591 do
28592   IFS=$as_save_IFS
28593   test -z "$as_dir" && as_dir=.
28594   for ac_exec_ext in '' $ac_executable_extensions; do
28595   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28596     ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
28597     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28598     break 2
28599   fi
28600 done
28601 done
28602 IFS=$as_save_IFS
28603
28604   test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
28605   ;;
28606 esac
28607 fi
28608 GTK_CONFIG=$ac_cv_path_GTK_CONFIG
28609 if test -n "$GTK_CONFIG"; then
28610   { echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
28611 echo "${ECHO_T}$GTK_CONFIG" >&6; }
28612 else
28613   { echo "$as_me:$LINENO: result: no" >&5
28614 echo "${ECHO_T}no" >&6; }
28615 fi
28616
28617
28618   min_gtk_version=1.2.3
28619   { echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
28620 echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6; }
28621   no_gtk=""
28622   if test "$GTK_CONFIG" = "no" ; then
28623     no_gtk=yes
28624   else
28625     GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
28626     GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
28627     gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
28628            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
28629     gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
28630            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
28631     gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
28632            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
28633     if test "x$enable_gtktest" = "xyes" ; then
28634       ac_save_CFLAGS="$CFLAGS"
28635       ac_save_LIBS="$LIBS"
28636       CFLAGS="$CFLAGS $GTK_CFLAGS"
28637       LIBS="$GTK_LIBS $LIBS"
28638       rm -f conf.gtktest
28639       if test "$cross_compiling" = yes; then
28640   echo $ac_n "cross compiling; assumed OK... $ac_c"
28641 else
28642   cat >conftest.$ac_ext <<_ACEOF
28643 /* confdefs.h.  */
28644 _ACEOF
28645 cat confdefs.h >>conftest.$ac_ext
28646 cat >>conftest.$ac_ext <<_ACEOF
28647 /* end confdefs.h.  */
28648
28649 #include <gtk/gtk.h>
28650 #include <stdio.h>
28651 #include <stdlib.h>
28652
28653 int
28654 main ()
28655 {
28656   int major, minor, micro;
28657   char *tmp_version;
28658
28659   system ("touch conf.gtktest");
28660
28661   /* HP/UX 9 (%@#!) writes to sscanf strings */
28662   tmp_version = g_strdup("$min_gtk_version");
28663   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
28664      printf("%s, bad version string\n", "$min_gtk_version");
28665      exit(1);
28666    }
28667
28668   if ((gtk_major_version != $gtk_config_major_version) ||
28669       (gtk_minor_version != $gtk_config_minor_version) ||
28670       (gtk_micro_version != $gtk_config_micro_version))
28671     {
28672       printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
28673              $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
28674              gtk_major_version, gtk_minor_version, gtk_micro_version);
28675       printf ("*** was found! If gtk-config was correct, then it is best\n");
28676       printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
28677       printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
28678       printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
28679       printf("*** required on your system.\n");
28680       printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
28681       printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
28682       printf("*** before re-running configure\n");
28683     }
28684 #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
28685   else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
28686            (gtk_minor_version != GTK_MINOR_VERSION) ||
28687            (gtk_micro_version != GTK_MICRO_VERSION))
28688     {
28689       printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
28690              GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
28691       printf("*** library (version %d.%d.%d)\n",
28692              gtk_major_version, gtk_minor_version, gtk_micro_version);
28693     }
28694 #endif /* defined (GTK_MAJOR_VERSION) ... */
28695   else
28696     {
28697       if ((gtk_major_version > major) ||
28698         ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
28699         ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
28700       {
28701         return 0;
28702        }
28703      else
28704       {
28705         printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
28706                gtk_major_version, gtk_minor_version, gtk_micro_version);
28707         printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
28708                major, minor, micro);
28709         printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
28710         printf("***\n");
28711         printf("*** If you have already installed a sufficiently new version, this error\n");
28712         printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
28713         printf("*** being found. The easiest way to fix this is to remove the old version\n");
28714         printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
28715         printf("*** correct copy of gtk-config. (In this case, you will have to\n");
28716         printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
28717         printf("*** so that the correct libraries are found at run-time))\n");
28718       }
28719     }
28720   return 1;
28721 }
28722
28723 _ACEOF
28724 rm -f conftest$ac_exeext
28725 if { (ac_try="$ac_link"
28726 case "(($ac_try" in
28727   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28728   *) ac_try_echo=$ac_try;;
28729 esac
28730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28731   (eval "$ac_link") 2>&5
28732   ac_status=$?
28733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28734   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28735   { (case "(($ac_try" in
28736   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28737   *) ac_try_echo=$ac_try;;
28738 esac
28739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28740   (eval "$ac_try") 2>&5
28741   ac_status=$?
28742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28743   (exit $ac_status); }; }; then
28744   :
28745 else
28746   echo "$as_me: program exited with status $ac_status" >&5
28747 echo "$as_me: failed program was:" >&5
28748 sed 's/^/| /' conftest.$ac_ext >&5
28749
28750 ( exit $ac_status )
28751 no_gtk=yes
28752 fi
28753 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28754 fi
28755
28756
28757        CFLAGS="$ac_save_CFLAGS"
28758        LIBS="$ac_save_LIBS"
28759      fi
28760   fi
28761   if test "x$no_gtk" = x ; then
28762      { echo "$as_me:$LINENO: result: yes" >&5
28763 echo "${ECHO_T}yes" >&6; }
28764      wx_cv_lib_gtk=1.2.3
28765   else
28766      { echo "$as_me:$LINENO: result: no" >&5
28767 echo "${ECHO_T}no" >&6; }
28768      if test "$GTK_CONFIG" = "no" ; then
28769        echo "*** The gtk-config script installed by GTK could not be found"
28770        echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
28771        echo "*** your path, or set the GTK_CONFIG environment variable to the"
28772        echo "*** full path to gtk-config."
28773      else
28774        if test -f conf.gtktest ; then
28775         :
28776        else
28777           echo "*** Could not run GTK test program, checking why..."
28778           CFLAGS="$CFLAGS $GTK_CFLAGS"
28779           LIBS="$LIBS $GTK_LIBS"
28780           cat >conftest.$ac_ext <<_ACEOF
28781 /* confdefs.h.  */
28782 _ACEOF
28783 cat confdefs.h >>conftest.$ac_ext
28784 cat >>conftest.$ac_ext <<_ACEOF
28785 /* end confdefs.h.  */
28786
28787 #include <gtk/gtk.h>
28788 #include <stdio.h>
28789
28790 int
28791 main ()
28792 {
28793  return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
28794   ;
28795   return 0;
28796 }
28797 _ACEOF
28798 rm -f conftest.$ac_objext conftest$ac_exeext
28799 if { (ac_try="$ac_link"
28800 case "(($ac_try" in
28801   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28802   *) ac_try_echo=$ac_try;;
28803 esac
28804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28805   (eval "$ac_link") 2>conftest.er1
28806   ac_status=$?
28807   grep -v '^ *+' conftest.er1 >conftest.err
28808   rm -f conftest.er1
28809   cat conftest.err >&5
28810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28811   (exit $ac_status); } && {
28812          test -z "$ac_c_werror_flag" ||
28813          test ! -s conftest.err
28814        } && test -s conftest$ac_exeext &&
28815        $as_test_x conftest$ac_exeext; then
28816    echo "*** The test program compiled, but did not run. This usually means"
28817           echo "*** that the run-time linker is not finding GTK or finding the wrong"
28818           echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
28819           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
28820           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
28821           echo "*** is required on your system"
28822           echo "***"
28823           echo "*** If you have an old version installed, it is best to remove it, although"
28824           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
28825           echo "***"
28826           echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
28827           echo "*** came with the system with the command"
28828           echo "***"
28829           echo "***    rpm --erase --nodeps gtk gtk-devel"
28830 else
28831   echo "$as_me: failed program was:" >&5
28832 sed 's/^/| /' conftest.$ac_ext >&5
28833
28834          echo "*** The test program failed to compile or link. See the file config.log for the"
28835           echo "*** exact error that occured. This usually means GTK was incorrectly installed"
28836           echo "*** or that you have moved GTK since it was installed. In the latter case, you"
28837           echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
28838 fi
28839
28840 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28841       conftest$ac_exeext conftest.$ac_ext
28842           CFLAGS="$ac_save_CFLAGS"
28843           LIBS="$ac_save_LIBS"
28844        fi
28845      fi
28846      GTK_CFLAGS=""
28847      GTK_LIBS=""
28848      :
28849   fi
28850
28851
28852   rm -f conf.gtktest
28853
28854                         fi
28855                     fi
28856                 fi
28857
28858                 if test -z "$wx_cv_lib_gtk"; then
28859                                         wx_cv_lib_gtk=none
28860                 else
28861                                                             wx_cv_cflags_gtk=$GTK_CFLAGS
28862                     wx_cv_libs_gtk=`echo $GTK_LIBS | sed -e 's/ -l[^ ]*cairo[^ ]*//g'`
28863                 fi
28864
28865
28866 fi
28867
28868
28869                         if test "$gtk_version_cached" = 1; then
28870             { echo "$as_me:$LINENO: result: $wx_cv_lib_gtk" >&5
28871 echo "${ECHO_T}$wx_cv_lib_gtk" >&6; }
28872         fi
28873
28874         case "$wx_cv_lib_gtk" in
28875             2.0)    WXGTK2=1
28876                     TOOLKIT_VERSION=2
28877                     ;;
28878             1.2.7)  WXGTK127=1
28879                     WXGTK12=1
28880                     ;;
28881             1.2.3)  WXGTK12=1
28882                     ;;
28883             *)      { { echo "$as_me:$LINENO: error:
28884 The development files for GTK+ were not found. For GTK+ 2, please
28885 ensure that pkg-config is in the path and that gtk+-2.0.pc is
28886 installed. For GTK+ 1.2 please check that gtk-config is in the path,
28887 and that the version is 1.2.3 or above. Also check that the
28888 libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config
28889 --libs' are in the LD_LIBRARY_PATH or equivalent.
28890                             " >&5
28891 echo "$as_me: error:
28892 The development files for GTK+ were not found. For GTK+ 2, please
28893 ensure that pkg-config is in the path and that gtk+-2.0.pc is
28894 installed. For GTK+ 1.2 please check that gtk-config is in the path,
28895 and that the version is 1.2.3 or above. Also check that the
28896 libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config
28897 --libs' are in the LD_LIBRARY_PATH or equivalent.
28898                             " >&2;}
28899    { (exit 1); exit 1; }; }
28900                     ;;
28901         esac
28902
28903         if test "$WXGTK2" = 1; then
28904             save_CFLAGS="$CFLAGS"
28905             save_LIBS="$LIBS"
28906             CFLAGS="$wx_cv_cflags_gtk $CFLAGS"
28907             LIBS="$LIBS $wx_cv_libs_gtk"
28908
28909                         { echo "$as_me:$LINENO: checking if GTK+ is version >= 2.10" >&5
28910 echo $ECHO_N "checking if GTK+ is version >= 2.10... $ECHO_C" >&6; }
28911             cat >conftest.$ac_ext <<_ACEOF
28912 /* confdefs.h.  */
28913 _ACEOF
28914 cat confdefs.h >>conftest.$ac_ext
28915 cat >>conftest.$ac_ext <<_ACEOF
28916 /* end confdefs.h.  */
28917
28918                             #include <gtk/gtk.h>
28919
28920 int
28921 main ()
28922 {
28923
28924                             #if !GTK_CHECK_VERSION(2,10,0)
28925                             Not GTK+ 2.10
28926                             #endif
28927
28928   ;
28929   return 0;
28930 }
28931 _ACEOF
28932 rm -f conftest.$ac_objext
28933 if { (ac_try="$ac_compile"
28934 case "(($ac_try" in
28935   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28936   *) ac_try_echo=$ac_try;;
28937 esac
28938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28939   (eval "$ac_compile") 2>conftest.er1
28940   ac_status=$?
28941   grep -v '^ *+' conftest.er1 >conftest.err
28942   rm -f conftest.er1
28943   cat conftest.err >&5
28944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28945   (exit $ac_status); } && {
28946          test -z "$ac_c_werror_flag" ||
28947          test ! -s conftest.err
28948        } && test -s conftest.$ac_objext; then
28949
28950                             cat >>confdefs.h <<\_ACEOF
28951 #define __WXGTK210__ 1
28952 _ACEOF
28953
28954                             cat >>confdefs.h <<\_ACEOF
28955 #define __WXGTK26__ 1
28956 _ACEOF
28957
28958                             { echo "$as_me:$LINENO: result: yes" >&5
28959 echo "${ECHO_T}yes" >&6; }
28960                             ac_wxgtk210=1
28961
28962 else
28963   echo "$as_me: failed program was:" >&5
28964 sed 's/^/| /' conftest.$ac_ext >&5
28965
28966
28967                             { echo "$as_me:$LINENO: result: no" >&5
28968 echo "${ECHO_T}no" >&6; }
28969                             ac_wxgtk210=0
28970
28971 fi
28972
28973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28974
28975             if test "$ac_wxgtk210" = 0; then
28976                                 { echo "$as_me:$LINENO: checking if GTK+ is version >= 2.6" >&5
28977 echo $ECHO_N "checking if GTK+ is version >= 2.6... $ECHO_C" >&6; }
28978                 cat >conftest.$ac_ext <<_ACEOF
28979 /* confdefs.h.  */
28980 _ACEOF
28981 cat confdefs.h >>conftest.$ac_ext
28982 cat >>conftest.$ac_ext <<_ACEOF
28983 /* end confdefs.h.  */
28984
28985                                 #include <gtk/gtk.h>
28986
28987 int
28988 main ()
28989 {
28990
28991                                 #if !GTK_CHECK_VERSION(2,6,0)
28992                                 Not GTK+ 2.6
28993                                 #endif
28994
28995   ;
28996   return 0;
28997 }
28998 _ACEOF
28999 rm -f conftest.$ac_objext
29000 if { (ac_try="$ac_compile"
29001 case "(($ac_try" in
29002   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29003   *) ac_try_echo=$ac_try;;
29004 esac
29005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29006   (eval "$ac_compile") 2>conftest.er1
29007   ac_status=$?
29008   grep -v '^ *+' conftest.er1 >conftest.err
29009   rm -f conftest.er1
29010   cat conftest.err >&5
29011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29012   (exit $ac_status); } && {
29013          test -z "$ac_c_werror_flag" ||
29014          test ! -s conftest.err
29015        } && test -s conftest.$ac_objext; then
29016
29017                                 cat >>confdefs.h <<\_ACEOF
29018 #define __WXGTK26__ 1
29019 _ACEOF
29020
29021                                 { echo "$as_me:$LINENO: result: yes" >&5
29022 echo "${ECHO_T}yes" >&6; }
29023                                 ac_wxgtk26=1
29024
29025 else
29026   echo "$as_me: failed program was:" >&5
29027 sed 's/^/| /' conftest.$ac_ext >&5
29028
29029
29030                                 { echo "$as_me:$LINENO: result: no" >&5
29031 echo "${ECHO_T}no" >&6; }
29032                                 ac_wxgtk26=0
29033
29034 fi
29035
29036 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29037             fi
29038
29039             CFLAGS="$save_CFLAGS"
29040             LIBS="$save_LIBS"
29041         else
29042             if test "$wxUSE_UNICODE" = "yes"; then
29043                 { echo "$as_me:$LINENO: WARNING: Unicode configuration not supported with GTK+ 1.x" >&5
29044 echo "$as_me: WARNING: Unicode configuration not supported with GTK+ 1.x" >&2;}
29045                 wxUSE_UNICODE=no
29046             fi
29047
29048                         { echo "$as_me:$LINENO: checking for gdk_im_open in -lgdk" >&5
29049 echo $ECHO_N "checking for gdk_im_open in -lgdk... $ECHO_C" >&6; }
29050 if test "${ac_cv_lib_gdk_gdk_im_open+set}" = set; then
29051   echo $ECHO_N "(cached) $ECHO_C" >&6
29052 else
29053   ac_check_lib_save_LIBS=$LIBS
29054 LIBS="-lgdk  $LIBS"
29055 cat >conftest.$ac_ext <<_ACEOF
29056 /* confdefs.h.  */
29057 _ACEOF
29058 cat confdefs.h >>conftest.$ac_ext
29059 cat >>conftest.$ac_ext <<_ACEOF
29060 /* end confdefs.h.  */
29061
29062 /* Override any GCC internal prototype to avoid an error.
29063    Use char because int might match the return type of a GCC
29064    builtin and then its argument prototype would still apply.  */
29065 #ifdef __cplusplus
29066 extern "C"
29067 #endif
29068 char gdk_im_open ();
29069 int
29070 main ()
29071 {
29072 return gdk_im_open ();
29073   ;
29074   return 0;
29075 }
29076 _ACEOF
29077 rm -f conftest.$ac_objext conftest$ac_exeext
29078 if { (ac_try="$ac_link"
29079 case "(($ac_try" in
29080   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29081   *) ac_try_echo=$ac_try;;
29082 esac
29083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29084   (eval "$ac_link") 2>conftest.er1
29085   ac_status=$?
29086   grep -v '^ *+' conftest.er1 >conftest.err
29087   rm -f conftest.er1
29088   cat conftest.err >&5
29089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29090   (exit $ac_status); } && {
29091          test -z "$ac_c_werror_flag" ||
29092          test ! -s conftest.err
29093        } && test -s conftest$ac_exeext &&
29094        $as_test_x conftest$ac_exeext; then
29095   ac_cv_lib_gdk_gdk_im_open=yes
29096 else
29097   echo "$as_me: failed program was:" >&5
29098 sed 's/^/| /' conftest.$ac_ext >&5
29099
29100         ac_cv_lib_gdk_gdk_im_open=no
29101 fi
29102
29103 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29104       conftest$ac_exeext conftest.$ac_ext
29105 LIBS=$ac_check_lib_save_LIBS
29106 fi
29107 { echo "$as_me:$LINENO: result: $ac_cv_lib_gdk_gdk_im_open" >&5
29108 echo "${ECHO_T}$ac_cv_lib_gdk_gdk_im_open" >&6; }
29109 if test $ac_cv_lib_gdk_gdk_im_open = yes; then
29110   cat >>confdefs.h <<\_ACEOF
29111 #define HAVE_XIM 1
29112 _ACEOF
29113
29114 fi
29115
29116
29117                                     if test "$USE_DARWIN" != 1; then
29118
29119 for ac_func in poll
29120 do
29121 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29122 { echo "$as_me:$LINENO: checking for $ac_func" >&5
29123 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
29124 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
29125   echo $ECHO_N "(cached) $ECHO_C" >&6
29126 else
29127   cat >conftest.$ac_ext <<_ACEOF
29128 /* confdefs.h.  */
29129 _ACEOF
29130 cat confdefs.h >>conftest.$ac_ext
29131 cat >>conftest.$ac_ext <<_ACEOF
29132 /* end confdefs.h.  */
29133 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29134    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29135 #define $ac_func innocuous_$ac_func
29136
29137 /* System header to define __stub macros and hopefully few prototypes,
29138     which can conflict with char $ac_func (); below.
29139     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29140     <limits.h> exists even on freestanding compilers.  */
29141
29142 #ifdef __STDC__
29143 # include <limits.h>
29144 #else
29145 # include <assert.h>
29146 #endif
29147
29148 #undef $ac_func
29149
29150 /* Override any GCC internal prototype to avoid an error.
29151    Use char because int might match the return type of a GCC
29152    builtin and then its argument prototype would still apply.  */
29153 #ifdef __cplusplus
29154 extern "C"
29155 #endif
29156 char $ac_func ();
29157 /* The GNU C library defines this for functions which it implements
29158     to always fail with ENOSYS.  Some functions are actually named
29159     something starting with __ and the normal name is an alias.  */
29160 #if defined __stub_$ac_func || defined __stub___$ac_func
29161 choke me
29162 #endif
29163
29164 int
29165 main ()
29166 {
29167 return $ac_func ();
29168   ;
29169   return 0;
29170 }
29171 _ACEOF
29172 rm -f conftest.$ac_objext conftest$ac_exeext
29173 if { (ac_try="$ac_link"
29174 case "(($ac_try" in
29175   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29176   *) ac_try_echo=$ac_try;;
29177 esac
29178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29179   (eval "$ac_link") 2>conftest.er1
29180   ac_status=$?
29181   grep -v '^ *+' conftest.er1 >conftest.err
29182   rm -f conftest.er1
29183   cat conftest.err >&5
29184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29185   (exit $ac_status); } && {
29186          test -z "$ac_c_werror_flag" ||
29187          test ! -s conftest.err
29188        } && test -s conftest$ac_exeext &&
29189        $as_test_x conftest$ac_exeext; then
29190   eval "$as_ac_var=yes"
29191 else
29192   echo "$as_me: failed program was:" >&5
29193 sed 's/^/| /' conftest.$ac_ext >&5
29194
29195         eval "$as_ac_var=no"
29196 fi
29197
29198 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29199       conftest$ac_exeext conftest.$ac_ext
29200 fi
29201 ac_res=`eval echo '${'$as_ac_var'}'`
29202                { echo "$as_me:$LINENO: result: $ac_res" >&5
29203 echo "${ECHO_T}$ac_res" >&6; }
29204 if test `eval echo '${'$as_ac_var'}'` = yes; then
29205   cat >>confdefs.h <<_ACEOF
29206 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29207 _ACEOF
29208
29209 fi
29210 done
29211
29212             fi
29213         fi
29214
29215         TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
29216         GUI_TK_LIBRARY="$wx_cv_libs_gtk $GUI_TK_LIBRARY"
29217
29218         AFMINSTALL=afminstall
29219         TOOLKIT=GTK
29220         GUIDIST=GTK_DIST
29221
29222                 if test "$wxUSE_GPE" = "yes"; then
29223             { echo "$as_me:$LINENO: checking for gpewidget library" >&5
29224 echo $ECHO_N "checking for gpewidget library... $ECHO_C" >&6; }
29225
29226   ac_find_libraries=
29227   for ac_dir in $SEARCH_LIB;
29228   do
29229     for ac_extension in a so sl dylib dll.a; do
29230       if test -f "$ac_dir/libgpewidget.$ac_extension"; then
29231         ac_find_libraries=$ac_dir
29232         break 2
29233       fi
29234     done
29235   done
29236
29237             if test "$ac_find_libraries" != "" ; then
29238
29239     if test "$ac_find_libraries" = "default location"; then
29240     ac_path_to_link=""
29241   else
29242     echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
29243     result=$?
29244     if test $result = 0; then
29245       ac_path_to_link=""
29246     else
29247       ac_path_to_link=" -L$ac_find_libraries"
29248     fi
29249   fi
29250
29251                                                 GUI_TK_LIBRARY="-L${prefix}/lib -lgpewidget $GUI_TK_LIBRARY"
29252                 WXGPE=1
29253                 { echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
29254 echo "${ECHO_T}found in $ac_find_libraries" >&6; }
29255             else
29256                 { echo "$as_me:$LINENO: result: not found" >&5
29257 echo "${ECHO_T}not found" >&6; }
29258             fi
29259
29260                                                                                                                     fi
29261     fi
29262
29263     if test "$wxUSE_MGL" = 1; then
29264        { echo "$as_me:$LINENO: checking for SciTech MGL library" >&5
29265 echo $ECHO_N "checking for SciTech MGL library... $ECHO_C" >&6; }
29266         if test "x$MGL_ROOT" = x ; then
29267             { echo "$as_me:$LINENO: result: not found" >&5
29268 echo "${ECHO_T}not found" >&6; }
29269             { { echo "$as_me:$LINENO: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&5
29270 echo "$as_me: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&2;}
29271    { (exit 1); exit 1; }; }
29272         else
29273             { echo "$as_me:$LINENO: result: $MGL_ROOT" >&5
29274 echo "${ECHO_T}$MGL_ROOT" >&6; }
29275         fi
29276
29277         { echo "$as_me:$LINENO: checking for libmgl location" >&5
29278 echo $ECHO_N "checking for libmgl location... $ECHO_C" >&6; }
29279                                 case "${host}" in
29280             *-*-linux* )
29281                                           if test "x$wxUSE_SHARED" = xyes ; then
29282                   mgl_os_candidates="linux/gcc/x86/so linux/gcc/x86/a linux/gcc/glibc.so linux/gcc/glibc"
29283               else
29284                   mgl_os_candidates="linux/gcc/x86/a linux/gcc/x86/so linux/gcc/glibc linux/gcc/glibc.so"
29285               fi
29286               ;;
29287             *-pc-msdosdjgpp )
29288               mgl_os_candidates="dos32/dj2"
29289               ;;
29290             *)
29291               { { echo "$as_me:$LINENO: error: This system type ${host} is not yet supported by wxMGL." >&5
29292 echo "$as_me: error: This system type ${host} is not yet supported by wxMGL." >&2;}
29293    { (exit 1); exit 1; }; }
29294         esac
29295
29296         mgl_lib_type=""
29297         mgl_os=""
29298
29299         for mgl_os_i in $mgl_os_candidates ; do
29300             if test "x$mgl_os" = x ; then
29301                 if test "$wxUSE_DEBUG_FLAG" = yes ; then
29302                     if test -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.a -o \
29303                             -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.so; then
29304                         mgl_lib_type=debug
29305                         mgl_os=$mgl_os_i
29306                     fi
29307                 fi
29308                 if test "x$mgl_lib_type" = x ; then
29309                     if test -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.a -o \
29310                             -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.so; then
29311                         mgl_lib_type=release
29312                         mgl_os=$mgl_os_i
29313                     fi
29314                 fi
29315             fi
29316         done
29317
29318         if test "x$mgl_os" = x ; then
29319             { echo "$as_me:$LINENO: result: not found" >&5
29320 echo "${ECHO_T}not found" >&6; }
29321             { { echo "$as_me:$LINENO: error: Cannot find MGL libraries, make sure they are compiled." >&5
29322 echo "$as_me: error: Cannot find MGL libraries, make sure they are compiled." >&2;}
29323    { (exit 1); exit 1; }; }
29324         fi
29325         { echo "$as_me:$LINENO: result: \"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&5
29326 echo "${ECHO_T}\"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&6; }
29327
29328         wxUSE_UNIVERSAL="yes"
29329
29330         TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
29331         GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm"
29332
29333         AFMINSTALL=afminstall
29334         TOOLKIT=MGL
29335         GUIDIST=MGL_DIST
29336     fi
29337
29338     if test "$wxUSE_DFB" = 1; then
29339
29340
29341 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
29342         if test -n "$ac_tool_prefix"; then
29343   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
29344 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
29345 { echo "$as_me:$LINENO: checking for $ac_word" >&5
29346 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
29347 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
29348   echo $ECHO_N "(cached) $ECHO_C" >&6
29349 else
29350   case $PKG_CONFIG in
29351   [\\/]* | ?:[\\/]*)
29352   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
29353   ;;
29354   *)
29355   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29356 for as_dir in $PATH
29357 do
29358   IFS=$as_save_IFS
29359   test -z "$as_dir" && as_dir=.
29360   for ac_exec_ext in '' $ac_executable_extensions; do
29361   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29362     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
29363     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29364     break 2
29365   fi
29366 done
29367 done
29368 IFS=$as_save_IFS
29369
29370   ;;
29371 esac
29372 fi
29373 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
29374 if test -n "$PKG_CONFIG"; then
29375   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
29376 echo "${ECHO_T}$PKG_CONFIG" >&6; }
29377 else
29378   { echo "$as_me:$LINENO: result: no" >&5
29379 echo "${ECHO_T}no" >&6; }
29380 fi
29381
29382
29383 fi
29384 if test -z "$ac_cv_path_PKG_CONFIG"; then
29385   ac_pt_PKG_CONFIG=$PKG_CONFIG
29386   # Extract the first word of "pkg-config", so it can be a program name with args.
29387 set dummy pkg-config; ac_word=$2
29388 { echo "$as_me:$LINENO: checking for $ac_word" >&5
29389 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
29390 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
29391   echo $ECHO_N "(cached) $ECHO_C" >&6
29392 else
29393   case $ac_pt_PKG_CONFIG in
29394   [\\/]* | ?:[\\/]*)
29395   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
29396   ;;
29397   *)
29398   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29399 for as_dir in $PATH
29400 do
29401   IFS=$as_save_IFS
29402   test -z "$as_dir" && as_dir=.
29403   for ac_exec_ext in '' $ac_executable_extensions; do
29404   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29405     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
29406     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29407     break 2
29408   fi
29409 done
29410 done
29411 IFS=$as_save_IFS
29412
29413   ;;
29414 esac
29415 fi
29416 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
29417 if test -n "$ac_pt_PKG_CONFIG"; then
29418   { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
29419 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
29420 else
29421   { echo "$as_me:$LINENO: result: no" >&5
29422 echo "${ECHO_T}no" >&6; }
29423 fi
29424
29425   if test "x$ac_pt_PKG_CONFIG" = x; then
29426     PKG_CONFIG=""
29427   else
29428     case $cross_compiling:$ac_tool_warned in
29429 yes:)
29430 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
29431 whose name does not start with the host triplet.  If you think this
29432 configuration is useful to you, please write to autoconf@gnu.org." >&5
29433 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
29434 whose name does not start with the host triplet.  If you think this
29435 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
29436 ac_tool_warned=yes ;;
29437 esac
29438     PKG_CONFIG=$ac_pt_PKG_CONFIG
29439   fi
29440 else
29441   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
29442 fi
29443
29444 fi
29445 if test -n "$PKG_CONFIG"; then
29446         _pkg_min_version=0.9.0
29447         { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
29448 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
29449         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
29450                 { echo "$as_me:$LINENO: result: yes" >&5
29451 echo "${ECHO_T}yes" >&6; }
29452         else
29453                 { echo "$as_me:$LINENO: result: no" >&5
29454 echo "${ECHO_T}no" >&6; }
29455                 PKG_CONFIG=""
29456         fi
29457
29458 fi
29459
29460
29461 pkg_failed=no
29462 { echo "$as_me:$LINENO: checking for DIRECTFB" >&5
29463 echo $ECHO_N "checking for DIRECTFB... $ECHO_C" >&6; }
29464
29465 if test -n "$PKG_CONFIG"; then
29466     if test -n "$DIRECTFB_CFLAGS"; then
29467         pkg_cv_DIRECTFB_CFLAGS="$DIRECTFB_CFLAGS"
29468     else
29469         if test -n "$PKG_CONFIG" && \
29470     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"directfb >= 0.9.23\"") >&5
29471   ($PKG_CONFIG --exists --print-errors "directfb >= 0.9.23") 2>&5
29472   ac_status=$?
29473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29474   (exit $ac_status); }; then
29475   pkg_cv_DIRECTFB_CFLAGS=`$PKG_CONFIG --cflags "directfb >= 0.9.23" 2>/dev/null`
29476 else
29477   pkg_failed=yes
29478 fi
29479     fi
29480 else
29481         pkg_failed=untried
29482 fi
29483 if test -n "$PKG_CONFIG"; then
29484     if test -n "$DIRECTFB_LIBS"; then
29485         pkg_cv_DIRECTFB_LIBS="$DIRECTFB_LIBS"
29486     else
29487         if test -n "$PKG_CONFIG" && \
29488     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"directfb >= 0.9.23\"") >&5
29489   ($PKG_CONFIG --exists --print-errors "directfb >= 0.9.23") 2>&5
29490   ac_status=$?
29491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29492   (exit $ac_status); }; then
29493   pkg_cv_DIRECTFB_LIBS=`$PKG_CONFIG --libs "directfb >= 0.9.23" 2>/dev/null`
29494 else
29495   pkg_failed=yes
29496 fi
29497     fi
29498 else
29499         pkg_failed=untried
29500 fi
29501
29502
29503
29504 if test $pkg_failed = yes; then
29505
29506 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29507         _pkg_short_errors_supported=yes
29508 else
29509         _pkg_short_errors_supported=no
29510 fi
29511         if test $_pkg_short_errors_supported = yes; then
29512                 DIRECTFB_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "directfb >= 0.9.23"`
29513         else
29514                 DIRECTFB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "directfb >= 0.9.23"`
29515         fi
29516         # Put the nasty error message in config.log where it belongs
29517         echo "$DIRECTFB_PKG_ERRORS" >&5
29518
29519
29520                            { { echo "$as_me:$LINENO: error: DirectFB not found." >&5
29521 echo "$as_me: error: DirectFB not found." >&2;}
29522    { (exit 1); exit 1; }; }
29523
29524
29525 elif test $pkg_failed = untried; then
29526
29527                            { { echo "$as_me:$LINENO: error: DirectFB not found." >&5
29528 echo "$as_me: error: DirectFB not found." >&2;}
29529    { (exit 1); exit 1; }; }
29530
29531
29532 else
29533         DIRECTFB_CFLAGS=$pkg_cv_DIRECTFB_CFLAGS
29534         DIRECTFB_LIBS=$pkg_cv_DIRECTFB_LIBS
29535         { echo "$as_me:$LINENO: result: yes" >&5
29536 echo "${ECHO_T}yes" >&6; }
29537
29538                            wxUSE_UNIVERSAL="yes"
29539                            TOOLKIT_INCLUDE="$DIRECTFB_CFLAGS"
29540                            GUI_TK_LIBRARY="$DIRECTFB_LIBS"
29541                            TOOLKIT=DFB
29542                            GUIDIST=DFB_DIST
29543
29544 fi
29545     fi
29546
29547     if test "$wxUSE_MICROWIN" = 1; then
29548         { echo "$as_me:$LINENO: checking for MicroWindows" >&5
29549 echo $ECHO_N "checking for MicroWindows... $ECHO_C" >&6; }
29550         if test "x$MICROWINDOWS" = x ; then
29551             { echo "$as_me:$LINENO: result: not found" >&5
29552 echo "${ECHO_T}not found" >&6; }
29553             { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&5
29554 echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&2;}
29555    { (exit 1); exit 1; }; }
29556         else
29557             { echo "$as_me:$LINENO: result: $MICROWINDOWS" >&5
29558 echo "${ECHO_T}$MICROWINDOWS" >&6; }
29559         fi
29560
29561         if test -f $MICROWINDOWS/lib/libmwin.a; then
29562             { echo "$as_me:$LINENO: result: MicroWindows' libraries found." >&5
29563 echo "${ECHO_T}MicroWindows' libraries found." >&6; }
29564         else
29565             { { echo "$as_me:$LINENO: error: Cannot find MicroWindows libraries, make sure they are compiled." >&5
29566 echo "$as_me: error: Cannot find MicroWindows libraries, make sure they are compiled." >&2;}
29567    { (exit 1); exit 1; }; }
29568         fi
29569
29570         TOOLKIT_INCLUDE="-I$MICROWINDOWS/include"
29571         GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib"
29572
29573         wxUSE_UNIVERSAL="yes"
29574
29575         AFMINSTALL=afminstall
29576         TOOLKIT=MICROWIN
29577         GUIDIST=MICROWIN_DIST
29578
29579         TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1"
29580     fi
29581
29582         if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
29583                                 { echo "$as_me:$LINENO: checking for X" >&5
29584 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
29585
29586
29587 # Check whether --with-x was given.
29588 if test "${with_x+set}" = set; then
29589   withval=$with_x;
29590 fi
29591
29592 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
29593 if test "x$with_x" = xno; then
29594   # The user explicitly disabled X.
29595   have_x=disabled
29596 else
29597   case $x_includes,$x_libraries in #(
29598     *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
29599 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
29600    { (exit 1); exit 1; }; };; #(
29601     *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
29602   echo $ECHO_N "(cached) $ECHO_C" >&6
29603 else
29604   # One or both of the vars are not set, and there is no cached value.
29605 ac_x_includes=no ac_x_libraries=no
29606 rm -f -r conftest.dir
29607 if mkdir conftest.dir; then
29608   cd conftest.dir
29609   cat >Imakefile <<'_ACEOF'
29610 incroot:
29611         @echo incroot='${INCROOT}'
29612 usrlibdir:
29613         @echo usrlibdir='${USRLIBDIR}'
29614 libdir:
29615         @echo libdir='${LIBDIR}'
29616 _ACEOF
29617   if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
29618     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
29619     for ac_var in incroot usrlibdir libdir; do
29620       eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
29621     done
29622     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
29623     for ac_extension in a so sl; do
29624       if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
29625          test -f "$ac_im_libdir/libX11.$ac_extension"; then
29626         ac_im_usrlibdir=$ac_im_libdir; break
29627       fi
29628     done
29629     # Screen out bogus values from the imake configuration.  They are
29630     # bogus both because they are the default anyway, and because
29631     # using them would break gcc on systems where it needs fixed includes.
29632     case $ac_im_incroot in
29633         /usr/include) ac_x_includes= ;;
29634         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
29635     esac
29636     case $ac_im_usrlibdir in
29637         /usr/lib | /lib) ;;
29638         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
29639     esac
29640   fi
29641   cd ..
29642   rm -f -r conftest.dir
29643 fi
29644
29645 # Standard set of common directories for X headers.
29646 # Check X11 before X11Rn because it is often a symlink to the current release.
29647 ac_x_header_dirs='
29648 /usr/X11/include
29649 /usr/X11R6/include
29650 /usr/X11R5/include
29651 /usr/X11R4/include
29652
29653 /usr/include/X11
29654 /usr/include/X11R6
29655 /usr/include/X11R5
29656 /usr/include/X11R4
29657
29658 /usr/local/X11/include
29659 /usr/local/X11R6/include
29660 /usr/local/X11R5/include
29661 /usr/local/X11R4/include
29662
29663 /usr/local/include/X11
29664 /usr/local/include/X11R6
29665 /usr/local/include/X11R5
29666 /usr/local/include/X11R4
29667
29668 /usr/X386/include
29669 /usr/x386/include
29670 /usr/XFree86/include/X11
29671
29672 /usr/include
29673 /usr/local/include
29674 /usr/unsupported/include
29675 /usr/athena/include
29676 /usr/local/x11r5/include
29677 /usr/lpp/Xamples/include
29678
29679 /usr/openwin/include
29680 /usr/openwin/share/include'
29681
29682 if test "$ac_x_includes" = no; then
29683   # Guess where to find include files, by looking for Xlib.h.
29684   # First, try using that file with no special directory specified.
29685   cat >conftest.$ac_ext <<_ACEOF
29686 /* confdefs.h.  */
29687 _ACEOF
29688 cat confdefs.h >>conftest.$ac_ext
29689 cat >>conftest.$ac_ext <<_ACEOF
29690 /* end confdefs.h.  */
29691 #include <X11/Xlib.h>
29692 _ACEOF
29693 if { (ac_try="$ac_cpp conftest.$ac_ext"
29694 case "(($ac_try" in
29695   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29696   *) ac_try_echo=$ac_try;;
29697 esac
29698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29699   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29700   ac_status=$?
29701   grep -v '^ *+' conftest.er1 >conftest.err
29702   rm -f conftest.er1
29703   cat conftest.err >&5
29704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29705   (exit $ac_status); } >/dev/null && {
29706          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29707          test ! -s conftest.err
29708        }; then
29709   # We can compile using X headers with no special include directory.
29710 ac_x_includes=
29711 else
29712   echo "$as_me: failed program was:" >&5
29713 sed 's/^/| /' conftest.$ac_ext >&5
29714
29715   for ac_dir in $ac_x_header_dirs; do
29716   if test -r "$ac_dir/X11/Xlib.h"; then
29717     ac_x_includes=$ac_dir
29718     break
29719   fi
29720 done
29721 fi
29722
29723 rm -f conftest.err conftest.$ac_ext
29724 fi # $ac_x_includes = no
29725
29726 if test "$ac_x_libraries" = no; then
29727   # Check for the libraries.
29728   # See if we find them without any special options.
29729   # Don't add to $LIBS permanently.
29730   ac_save_LIBS=$LIBS
29731   LIBS="-lX11 $LIBS"
29732   cat >conftest.$ac_ext <<_ACEOF
29733 /* confdefs.h.  */
29734 _ACEOF
29735 cat confdefs.h >>conftest.$ac_ext
29736 cat >>conftest.$ac_ext <<_ACEOF
29737 /* end confdefs.h.  */
29738 #include <X11/Xlib.h>
29739 int
29740 main ()
29741 {
29742 XrmInitialize ()
29743   ;
29744   return 0;
29745 }
29746 _ACEOF
29747 rm -f conftest.$ac_objext conftest$ac_exeext
29748 if { (ac_try="$ac_link"
29749 case "(($ac_try" in
29750   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29751   *) ac_try_echo=$ac_try;;
29752 esac
29753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29754   (eval "$ac_link") 2>conftest.er1
29755   ac_status=$?
29756   grep -v '^ *+' conftest.er1 >conftest.err
29757   rm -f conftest.er1
29758   cat conftest.err >&5
29759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29760   (exit $ac_status); } && {
29761          test -z "$ac_c_werror_flag" ||
29762          test ! -s conftest.err
29763        } && test -s conftest$ac_exeext &&
29764        $as_test_x conftest$ac_exeext; then
29765   LIBS=$ac_save_LIBS
29766 # We can link X programs with no special library path.
29767 ac_x_libraries=
29768 else
29769   echo "$as_me: failed program was:" >&5
29770 sed 's/^/| /' conftest.$ac_ext >&5
29771
29772         LIBS=$ac_save_LIBS
29773 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
29774 do
29775   # Don't even attempt the hair of trying to link an X program!
29776   for ac_extension in a so sl; do
29777     if test -r "$ac_dir/libX11.$ac_extension"; then
29778       ac_x_libraries=$ac_dir
29779       break 2
29780     fi
29781   done
29782 done
29783 fi
29784
29785 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29786       conftest$ac_exeext conftest.$ac_ext
29787 fi # $ac_x_libraries = no
29788
29789 case $ac_x_includes,$ac_x_libraries in #(
29790   no,* | *,no | *\'*)
29791     # Didn't find X, or a directory has "'" in its name.
29792     ac_cv_have_x="have_x=no";; #(
29793   *)
29794     # Record where we found X for the cache.
29795     ac_cv_have_x="have_x=yes\
29796         ac_x_includes='$ac_x_includes'\
29797         ac_x_libraries='$ac_x_libraries'"
29798 esac
29799 fi
29800 ;; #(
29801     *) have_x=yes;;
29802   esac
29803   eval "$ac_cv_have_x"
29804 fi # $with_x != no
29805
29806 if test "$have_x" != yes; then
29807   { echo "$as_me:$LINENO: result: $have_x" >&5
29808 echo "${ECHO_T}$have_x" >&6; }
29809   no_x=yes
29810 else
29811   # If each of the values was on the command line, it overrides each guess.
29812   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
29813   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
29814   # Update the cache value to reflect the command line values.
29815   ac_cv_have_x="have_x=yes\
29816         ac_x_includes='$x_includes'\
29817         ac_x_libraries='$x_libraries'"
29818   { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
29819 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
29820 fi
29821
29822 if test "$no_x" = yes; then
29823   # Not all programs may use this symbol, but it does not hurt to define it.
29824
29825 cat >>confdefs.h <<\_ACEOF
29826 #define X_DISPLAY_MISSING 1
29827 _ACEOF
29828
29829   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
29830 else
29831   if test -n "$x_includes"; then
29832     X_CFLAGS="$X_CFLAGS -I$x_includes"
29833   fi
29834
29835   # It would also be nice to do this for all -L options, not just this one.
29836   if test -n "$x_libraries"; then
29837     X_LIBS="$X_LIBS -L$x_libraries"
29838     # For Solaris; some versions of Sun CC require a space after -R and
29839     # others require no space.  Words are not sufficient . . . .
29840     { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
29841 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; }
29842     ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
29843     ac_xsave_c_werror_flag=$ac_c_werror_flag
29844     ac_c_werror_flag=yes
29845     cat >conftest.$ac_ext <<_ACEOF
29846 /* confdefs.h.  */
29847 _ACEOF
29848 cat confdefs.h >>conftest.$ac_ext
29849 cat >>conftest.$ac_ext <<_ACEOF
29850 /* end confdefs.h.  */
29851
29852 int
29853 main ()
29854 {
29855
29856   ;
29857   return 0;
29858 }
29859 _ACEOF
29860 rm -f conftest.$ac_objext conftest$ac_exeext
29861 if { (ac_try="$ac_link"
29862 case "(($ac_try" in
29863   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29864   *) ac_try_echo=$ac_try;;
29865 esac
29866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29867   (eval "$ac_link") 2>conftest.er1
29868   ac_status=$?
29869   grep -v '^ *+' conftest.er1 >conftest.err
29870   rm -f conftest.er1
29871   cat conftest.err >&5
29872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29873   (exit $ac_status); } && {
29874          test -z "$ac_c_werror_flag" ||
29875          test ! -s conftest.err
29876        } && test -s conftest$ac_exeext &&
29877        $as_test_x conftest$ac_exeext; then
29878   { echo "$as_me:$LINENO: result: no" >&5
29879 echo "${ECHO_T}no" >&6; }
29880        X_LIBS="$X_LIBS -R$x_libraries"
29881 else
29882   echo "$as_me: failed program was:" >&5
29883 sed 's/^/| /' conftest.$ac_ext >&5
29884
29885         LIBS="$ac_xsave_LIBS -R $x_libraries"
29886        cat >conftest.$ac_ext <<_ACEOF
29887 /* confdefs.h.  */
29888 _ACEOF
29889 cat confdefs.h >>conftest.$ac_ext
29890 cat >>conftest.$ac_ext <<_ACEOF
29891 /* end confdefs.h.  */
29892
29893 int
29894 main ()
29895 {
29896
29897   ;
29898   return 0;
29899 }
29900 _ACEOF
29901 rm -f conftest.$ac_objext conftest$ac_exeext
29902 if { (ac_try="$ac_link"
29903 case "(($ac_try" in
29904   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29905   *) ac_try_echo=$ac_try;;
29906 esac
29907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29908   (eval "$ac_link") 2>conftest.er1
29909   ac_status=$?
29910   grep -v '^ *+' conftest.er1 >conftest.err
29911   rm -f conftest.er1
29912   cat conftest.err >&5
29913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29914   (exit $ac_status); } && {
29915          test -z "$ac_c_werror_flag" ||
29916          test ! -s conftest.err
29917        } && test -s conftest$ac_exeext &&
29918        $as_test_x conftest$ac_exeext; then
29919   { echo "$as_me:$LINENO: result: yes" >&5
29920 echo "${ECHO_T}yes" >&6; }
29921           X_LIBS="$X_LIBS -R $x_libraries"
29922 else
29923   echo "$as_me: failed program was:" >&5
29924 sed 's/^/| /' conftest.$ac_ext >&5
29925
29926         { echo "$as_me:$LINENO: result: neither works" >&5
29927 echo "${ECHO_T}neither works" >&6; }
29928 fi
29929
29930 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29931       conftest$ac_exeext conftest.$ac_ext
29932 fi
29933
29934 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29935       conftest$ac_exeext conftest.$ac_ext
29936     ac_c_werror_flag=$ac_xsave_c_werror_flag
29937     LIBS=$ac_xsave_LIBS
29938   fi
29939
29940   # Check for system-dependent libraries X programs must link with.
29941   # Do this before checking for the system-independent R6 libraries
29942   # (-lICE), since we may need -lsocket or whatever for X linking.
29943
29944   if test "$ISC" = yes; then
29945     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
29946   else
29947     # Martyn Johnson says this is needed for Ultrix, if the X
29948     # libraries were built with DECnet support.  And Karl Berry says
29949     # the Alpha needs dnet_stub (dnet does not exist).
29950     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
29951     cat >conftest.$ac_ext <<_ACEOF
29952 /* confdefs.h.  */
29953 _ACEOF
29954 cat confdefs.h >>conftest.$ac_ext
29955 cat >>conftest.$ac_ext <<_ACEOF
29956 /* end confdefs.h.  */
29957
29958 /* Override any GCC internal prototype to avoid an error.
29959    Use char because int might match the return type of a GCC
29960    builtin and then its argument prototype would still apply.  */
29961 #ifdef __cplusplus
29962 extern "C"
29963 #endif
29964 char XOpenDisplay ();
29965 int
29966 main ()
29967 {
29968 return XOpenDisplay ();
29969   ;
29970   return 0;
29971 }
29972 _ACEOF
29973 rm -f conftest.$ac_objext conftest$ac_exeext
29974 if { (ac_try="$ac_link"
29975 case "(($ac_try" in
29976   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29977   *) ac_try_echo=$ac_try;;
29978 esac
29979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29980   (eval "$ac_link") 2>conftest.er1
29981   ac_status=$?
29982   grep -v '^ *+' conftest.er1 >conftest.err
29983   rm -f conftest.er1
29984   cat conftest.err >&5
29985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29986   (exit $ac_status); } && {
29987          test -z "$ac_c_werror_flag" ||
29988          test ! -s conftest.err
29989        } && test -s conftest$ac_exeext &&
29990        $as_test_x conftest$ac_exeext; then
29991   :
29992 else
29993   echo "$as_me: failed program was:" >&5
29994 sed 's/^/| /' conftest.$ac_ext >&5
29995
29996         { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
29997 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
29998 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
29999   echo $ECHO_N "(cached) $ECHO_C" >&6
30000 else
30001   ac_check_lib_save_LIBS=$LIBS
30002 LIBS="-ldnet  $LIBS"
30003 cat >conftest.$ac_ext <<_ACEOF
30004 /* confdefs.h.  */
30005 _ACEOF
30006 cat confdefs.h >>conftest.$ac_ext
30007 cat >>conftest.$ac_ext <<_ACEOF
30008 /* end confdefs.h.  */
30009
30010 /* Override any GCC internal prototype to avoid an error.
30011    Use char because int might match the return type of a GCC
30012    builtin and then its argument prototype would still apply.  */
30013 #ifdef __cplusplus
30014 extern "C"
30015 #endif
30016 char dnet_ntoa ();
30017 int
30018 main ()
30019 {
30020 return dnet_ntoa ();
30021   ;
30022   return 0;
30023 }
30024 _ACEOF
30025 rm -f conftest.$ac_objext conftest$ac_exeext
30026 if { (ac_try="$ac_link"
30027 case "(($ac_try" in
30028   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30029   *) ac_try_echo=$ac_try;;
30030 esac
30031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30032   (eval "$ac_link") 2>conftest.er1
30033   ac_status=$?
30034   grep -v '^ *+' conftest.er1 >conftest.err
30035   rm -f conftest.er1
30036   cat conftest.err >&5
30037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30038   (exit $ac_status); } && {
30039          test -z "$ac_c_werror_flag" ||
30040          test ! -s conftest.err
30041        } && test -s conftest$ac_exeext &&
30042        $as_test_x conftest$ac_exeext; then
30043   ac_cv_lib_dnet_dnet_ntoa=yes
30044 else
30045   echo "$as_me: failed program was:" >&5
30046 sed 's/^/| /' conftest.$ac_ext >&5
30047
30048         ac_cv_lib_dnet_dnet_ntoa=no
30049 fi
30050
30051 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30052       conftest$ac_exeext conftest.$ac_ext
30053 LIBS=$ac_check_lib_save_LIBS
30054 fi
30055 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
30056 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
30057 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
30058   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
30059 fi
30060
30061     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
30062       { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
30063 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; }
30064 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
30065   echo $ECHO_N "(cached) $ECHO_C" >&6
30066 else
30067   ac_check_lib_save_LIBS=$LIBS
30068 LIBS="-ldnet_stub  $LIBS"
30069 cat >conftest.$ac_ext <<_ACEOF
30070 /* confdefs.h.  */
30071 _ACEOF
30072 cat confdefs.h >>conftest.$ac_ext
30073 cat >>conftest.$ac_ext <<_ACEOF
30074 /* end confdefs.h.  */
30075
30076 /* Override any GCC internal prototype to avoid an error.
30077    Use char because int might match the return type of a GCC
30078    builtin and then its argument prototype would still apply.  */
30079 #ifdef __cplusplus
30080 extern "C"
30081 #endif
30082 char dnet_ntoa ();
30083 int
30084 main ()
30085 {
30086 return dnet_ntoa ();
30087   ;
30088   return 0;
30089 }
30090 _ACEOF
30091 rm -f conftest.$ac_objext conftest$ac_exeext
30092 if { (ac_try="$ac_link"
30093 case "(($ac_try" in
30094   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30095   *) ac_try_echo=$ac_try;;
30096 esac
30097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30098   (eval "$ac_link") 2>conftest.er1
30099   ac_status=$?
30100   grep -v '^ *+' conftest.er1 >conftest.err
30101   rm -f conftest.er1
30102   cat conftest.err >&5
30103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30104   (exit $ac_status); } && {
30105          test -z "$ac_c_werror_flag" ||
30106          test ! -s conftest.err
30107        } && test -s conftest$ac_exeext &&
30108        $as_test_x conftest$ac_exeext; then
30109   ac_cv_lib_dnet_stub_dnet_ntoa=yes
30110 else
30111   echo "$as_me: failed program was:" >&5
30112 sed 's/^/| /' conftest.$ac_ext >&5
30113
30114         ac_cv_lib_dnet_stub_dnet_ntoa=no
30115 fi
30116
30117 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30118       conftest$ac_exeext conftest.$ac_ext
30119 LIBS=$ac_check_lib_save_LIBS
30120 fi
30121 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
30122 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
30123 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
30124   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
30125 fi
30126
30127     fi
30128 fi
30129
30130 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30131       conftest$ac_exeext conftest.$ac_ext
30132     LIBS="$ac_xsave_LIBS"
30133
30134     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
30135     # to get the SysV transport functions.
30136     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
30137     # needs -lnsl.
30138     # The nsl library prevents programs from opening the X display
30139     # on Irix 5.2, according to T.E. Dickey.
30140     # The functions gethostbyname, getservbyname, and inet_addr are
30141     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
30142     { echo "$as_me:$LINENO: checking for gethostbyname" >&5
30143 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
30144 if test "${ac_cv_func_gethostbyname+set}" = set; then
30145   echo $ECHO_N "(cached) $ECHO_C" >&6
30146 else
30147   cat >conftest.$ac_ext <<_ACEOF
30148 /* confdefs.h.  */
30149 _ACEOF
30150 cat confdefs.h >>conftest.$ac_ext
30151 cat >>conftest.$ac_ext <<_ACEOF
30152 /* end confdefs.h.  */
30153 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
30154    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30155 #define gethostbyname innocuous_gethostbyname
30156
30157 /* System header to define __stub macros and hopefully few prototypes,
30158     which can conflict with char gethostbyname (); below.
30159     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30160     <limits.h> exists even on freestanding compilers.  */
30161
30162 #ifdef __STDC__
30163 # include <limits.h>
30164 #else
30165 # include <assert.h>
30166 #endif
30167
30168 #undef gethostbyname
30169
30170 /* Override any GCC internal prototype to avoid an error.
30171    Use char because int might match the return type of a GCC
30172    builtin and then its argument prototype would still apply.  */
30173 #ifdef __cplusplus
30174 extern "C"
30175 #endif
30176 char gethostbyname ();
30177 /* The GNU C library defines this for functions which it implements
30178     to always fail with ENOSYS.  Some functions are actually named
30179     something starting with __ and the normal name is an alias.  */
30180 #if defined __stub_gethostbyname || defined __stub___gethostbyname
30181 choke me
30182 #endif
30183
30184 int
30185 main ()
30186 {
30187 return gethostbyname ();
30188   ;
30189   return 0;
30190 }
30191 _ACEOF
30192 rm -f conftest.$ac_objext conftest$ac_exeext
30193 if { (ac_try="$ac_link"
30194 case "(($ac_try" in
30195   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30196   *) ac_try_echo=$ac_try;;
30197 esac
30198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30199   (eval "$ac_link") 2>conftest.er1
30200   ac_status=$?
30201   grep -v '^ *+' conftest.er1 >conftest.err
30202   rm -f conftest.er1
30203   cat conftest.err >&5
30204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30205   (exit $ac_status); } && {
30206          test -z "$ac_c_werror_flag" ||
30207          test ! -s conftest.err
30208        } && test -s conftest$ac_exeext &&
30209        $as_test_x conftest$ac_exeext; then
30210   ac_cv_func_gethostbyname=yes
30211 else
30212   echo "$as_me: failed program was:" >&5
30213 sed 's/^/| /' conftest.$ac_ext >&5
30214
30215         ac_cv_func_gethostbyname=no
30216 fi
30217
30218 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30219       conftest$ac_exeext conftest.$ac_ext
30220 fi
30221 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
30222 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
30223
30224     if test $ac_cv_func_gethostbyname = no; then
30225       { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
30226 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
30227 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
30228   echo $ECHO_N "(cached) $ECHO_C" >&6
30229 else
30230   ac_check_lib_save_LIBS=$LIBS
30231 LIBS="-lnsl  $LIBS"
30232 cat >conftest.$ac_ext <<_ACEOF
30233 /* confdefs.h.  */
30234 _ACEOF
30235 cat confdefs.h >>conftest.$ac_ext
30236 cat >>conftest.$ac_ext <<_ACEOF
30237 /* end confdefs.h.  */
30238
30239 /* Override any GCC internal prototype to avoid an error.
30240    Use char because int might match the return type of a GCC
30241    builtin and then its argument prototype would still apply.  */
30242 #ifdef __cplusplus
30243 extern "C"
30244 #endif
30245 char gethostbyname ();
30246 int
30247 main ()
30248 {
30249 return gethostbyname ();
30250   ;
30251   return 0;
30252 }
30253 _ACEOF
30254 rm -f conftest.$ac_objext conftest$ac_exeext
30255 if { (ac_try="$ac_link"
30256 case "(($ac_try" in
30257   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30258   *) ac_try_echo=$ac_try;;
30259 esac
30260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30261   (eval "$ac_link") 2>conftest.er1
30262   ac_status=$?
30263   grep -v '^ *+' conftest.er1 >conftest.err
30264   rm -f conftest.er1
30265   cat conftest.err >&5
30266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30267   (exit $ac_status); } && {
30268          test -z "$ac_c_werror_flag" ||
30269          test ! -s conftest.err
30270        } && test -s conftest$ac_exeext &&
30271        $as_test_x conftest$ac_exeext; then
30272   ac_cv_lib_nsl_gethostbyname=yes
30273 else
30274   echo "$as_me: failed program was:" >&5
30275 sed 's/^/| /' conftest.$ac_ext >&5
30276
30277         ac_cv_lib_nsl_gethostbyname=no
30278 fi
30279
30280 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30281       conftest$ac_exeext conftest.$ac_ext
30282 LIBS=$ac_check_lib_save_LIBS
30283 fi
30284 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
30285 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
30286 if test $ac_cv_lib_nsl_gethostbyname = yes; then
30287   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
30288 fi
30289
30290       if test $ac_cv_lib_nsl_gethostbyname = no; then
30291         { echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
30292 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; }
30293 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
30294   echo $ECHO_N "(cached) $ECHO_C" >&6
30295 else
30296   ac_check_lib_save_LIBS=$LIBS
30297 LIBS="-lbsd  $LIBS"
30298 cat >conftest.$ac_ext <<_ACEOF
30299 /* confdefs.h.  */
30300 _ACEOF
30301 cat confdefs.h >>conftest.$ac_ext
30302 cat >>conftest.$ac_ext <<_ACEOF
30303 /* end confdefs.h.  */
30304
30305 /* Override any GCC internal prototype to avoid an error.
30306    Use char because int might match the return type of a GCC
30307    builtin and then its argument prototype would still apply.  */
30308 #ifdef __cplusplus
30309 extern "C"
30310 #endif
30311 char gethostbyname ();
30312 int
30313 main ()
30314 {
30315 return gethostbyname ();
30316   ;
30317   return 0;
30318 }
30319 _ACEOF
30320 rm -f conftest.$ac_objext conftest$ac_exeext
30321 if { (ac_try="$ac_link"
30322 case "(($ac_try" in
30323   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30324   *) ac_try_echo=$ac_try;;
30325 esac
30326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30327   (eval "$ac_link") 2>conftest.er1
30328   ac_status=$?
30329   grep -v '^ *+' conftest.er1 >conftest.err
30330   rm -f conftest.er1
30331   cat conftest.err >&5
30332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30333   (exit $ac_status); } && {
30334          test -z "$ac_c_werror_flag" ||
30335          test ! -s conftest.err
30336        } && test -s conftest$ac_exeext &&
30337        $as_test_x conftest$ac_exeext; then
30338   ac_cv_lib_bsd_gethostbyname=yes
30339 else
30340   echo "$as_me: failed program was:" >&5
30341 sed 's/^/| /' conftest.$ac_ext >&5
30342
30343         ac_cv_lib_bsd_gethostbyname=no
30344 fi
30345
30346 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30347       conftest$ac_exeext conftest.$ac_ext
30348 LIBS=$ac_check_lib_save_LIBS
30349 fi
30350 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
30351 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; }
30352 if test $ac_cv_lib_bsd_gethostbyname = yes; then
30353   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
30354 fi
30355
30356       fi
30357     fi
30358
30359     # lieder@skyler.mavd.honeywell.com says without -lsocket,
30360     # socket/setsockopt and other routines are undefined under SCO ODT
30361     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
30362     # on later versions), says Simon Leinen: it contains gethostby*
30363     # variants that don't use the name server (or something).  -lsocket
30364     # must be given before -lnsl if both are needed.  We assume that
30365     # if connect needs -lnsl, so does gethostbyname.
30366     { echo "$as_me:$LINENO: checking for connect" >&5
30367 echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
30368 if test "${ac_cv_func_connect+set}" = set; then
30369   echo $ECHO_N "(cached) $ECHO_C" >&6
30370 else
30371   cat >conftest.$ac_ext <<_ACEOF
30372 /* confdefs.h.  */
30373 _ACEOF
30374 cat confdefs.h >>conftest.$ac_ext
30375 cat >>conftest.$ac_ext <<_ACEOF
30376 /* end confdefs.h.  */
30377 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
30378    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30379 #define connect innocuous_connect
30380
30381 /* System header to define __stub macros and hopefully few prototypes,
30382     which can conflict with char connect (); below.
30383     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30384     <limits.h> exists even on freestanding compilers.  */
30385
30386 #ifdef __STDC__
30387 # include <limits.h>
30388 #else
30389 # include <assert.h>
30390 #endif
30391
30392 #undef connect
30393
30394 /* Override any GCC internal prototype to avoid an error.
30395    Use char because int might match the return type of a GCC
30396    builtin and then its argument prototype would still apply.  */
30397 #ifdef __cplusplus
30398 extern "C"
30399 #endif
30400 char connect ();
30401 /* The GNU C library defines this for functions which it implements
30402     to always fail with ENOSYS.  Some functions are actually named
30403     something starting with __ and the normal name is an alias.  */
30404 #if defined __stub_connect || defined __stub___connect
30405 choke me
30406 #endif
30407
30408 int
30409 main ()
30410 {
30411 return connect ();
30412   ;
30413   return 0;
30414 }
30415 _ACEOF
30416 rm -f conftest.$ac_objext conftest$ac_exeext
30417 if { (ac_try="$ac_link"
30418 case "(($ac_try" in
30419   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30420   *) ac_try_echo=$ac_try;;
30421 esac
30422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30423   (eval "$ac_link") 2>conftest.er1
30424   ac_status=$?
30425   grep -v '^ *+' conftest.er1 >conftest.err
30426   rm -f conftest.er1
30427   cat conftest.err >&5
30428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30429   (exit $ac_status); } && {
30430          test -z "$ac_c_werror_flag" ||
30431          test ! -s conftest.err
30432        } && test -s conftest$ac_exeext &&
30433        $as_test_x conftest$ac_exeext; then
30434   ac_cv_func_connect=yes
30435 else
30436   echo "$as_me: failed program was:" >&5
30437 sed 's/^/| /' conftest.$ac_ext >&5
30438
30439         ac_cv_func_connect=no
30440 fi
30441
30442 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30443       conftest$ac_exeext conftest.$ac_ext
30444 fi
30445 { echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
30446 echo "${ECHO_T}$ac_cv_func_connect" >&6; }
30447
30448     if test $ac_cv_func_connect = no; then
30449       { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
30450 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
30451 if test "${ac_cv_lib_socket_connect+set}" = set; then
30452   echo $ECHO_N "(cached) $ECHO_C" >&6
30453 else
30454   ac_check_lib_save_LIBS=$LIBS
30455 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
30456 cat >conftest.$ac_ext <<_ACEOF
30457 /* confdefs.h.  */
30458 _ACEOF
30459 cat confdefs.h >>conftest.$ac_ext
30460 cat >>conftest.$ac_ext <<_ACEOF
30461 /* end confdefs.h.  */
30462
30463 /* Override any GCC internal prototype to avoid an error.
30464    Use char because int might match the return type of a GCC
30465    builtin and then its argument prototype would still apply.  */
30466 #ifdef __cplusplus
30467 extern "C"
30468 #endif
30469 char connect ();
30470 int
30471 main ()
30472 {
30473 return connect ();
30474   ;
30475   return 0;
30476 }
30477 _ACEOF
30478 rm -f conftest.$ac_objext conftest$ac_exeext
30479 if { (ac_try="$ac_link"
30480 case "(($ac_try" in
30481   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30482   *) ac_try_echo=$ac_try;;
30483 esac
30484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30485   (eval "$ac_link") 2>conftest.er1
30486   ac_status=$?
30487   grep -v '^ *+' conftest.er1 >conftest.err
30488   rm -f conftest.er1
30489   cat conftest.err >&5
30490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30491   (exit $ac_status); } && {
30492          test -z "$ac_c_werror_flag" ||
30493          test ! -s conftest.err
30494        } && test -s conftest$ac_exeext &&
30495        $as_test_x conftest$ac_exeext; then
30496   ac_cv_lib_socket_connect=yes
30497 else
30498   echo "$as_me: failed program was:" >&5
30499 sed 's/^/| /' conftest.$ac_ext >&5
30500
30501         ac_cv_lib_socket_connect=no
30502 fi
30503
30504 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30505       conftest$ac_exeext conftest.$ac_ext
30506 LIBS=$ac_check_lib_save_LIBS
30507 fi
30508 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
30509 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
30510 if test $ac_cv_lib_socket_connect = yes; then
30511   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
30512 fi
30513
30514     fi
30515
30516     # Guillermo Gomez says -lposix is necessary on A/UX.
30517     { echo "$as_me:$LINENO: checking for remove" >&5
30518 echo $ECHO_N "checking for remove... $ECHO_C" >&6; }
30519 if test "${ac_cv_func_remove+set}" = set; then
30520   echo $ECHO_N "(cached) $ECHO_C" >&6
30521 else
30522   cat >conftest.$ac_ext <<_ACEOF
30523 /* confdefs.h.  */
30524 _ACEOF
30525 cat confdefs.h >>conftest.$ac_ext
30526 cat >>conftest.$ac_ext <<_ACEOF
30527 /* end confdefs.h.  */
30528 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
30529    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30530 #define remove innocuous_remove
30531
30532 /* System header to define __stub macros and hopefully few prototypes,
30533     which can conflict with char remove (); below.
30534     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30535     <limits.h> exists even on freestanding compilers.  */
30536
30537 #ifdef __STDC__
30538 # include <limits.h>
30539 #else
30540 # include <assert.h>
30541 #endif
30542
30543 #undef remove
30544
30545 /* Override any GCC internal prototype to avoid an error.
30546    Use char because int might match the return type of a GCC
30547    builtin and then its argument prototype would still apply.  */
30548 #ifdef __cplusplus
30549 extern "C"
30550 #endif
30551 char remove ();
30552 /* The GNU C library defines this for functions which it implements
30553     to always fail with ENOSYS.  Some functions are actually named
30554     something starting with __ and the normal name is an alias.  */
30555 #if defined __stub_remove || defined __stub___remove
30556 choke me
30557 #endif
30558
30559 int
30560 main ()
30561 {
30562 return remove ();
30563   ;
30564   return 0;
30565 }
30566 _ACEOF
30567 rm -f conftest.$ac_objext conftest$ac_exeext
30568 if { (ac_try="$ac_link"
30569 case "(($ac_try" in
30570   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30571   *) ac_try_echo=$ac_try;;
30572 esac
30573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30574   (eval "$ac_link") 2>conftest.er1
30575   ac_status=$?
30576   grep -v '^ *+' conftest.er1 >conftest.err
30577   rm -f conftest.er1
30578   cat conftest.err >&5
30579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30580   (exit $ac_status); } && {
30581          test -z "$ac_c_werror_flag" ||
30582          test ! -s conftest.err
30583        } && test -s conftest$ac_exeext &&
30584        $as_test_x conftest$ac_exeext; then
30585   ac_cv_func_remove=yes
30586 else
30587   echo "$as_me: failed program was:" >&5
30588 sed 's/^/| /' conftest.$ac_ext >&5
30589
30590         ac_cv_func_remove=no
30591 fi
30592
30593 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30594       conftest$ac_exeext conftest.$ac_ext
30595 fi
30596 { echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
30597 echo "${ECHO_T}$ac_cv_func_remove" >&6; }
30598
30599     if test $ac_cv_func_remove = no; then
30600       { echo "$as_me:$LINENO: checking for remove in -lposix" >&5
30601 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; }
30602 if test "${ac_cv_lib_posix_remove+set}" = set; then
30603   echo $ECHO_N "(cached) $ECHO_C" >&6
30604 else
30605   ac_check_lib_save_LIBS=$LIBS
30606 LIBS="-lposix  $LIBS"
30607 cat >conftest.$ac_ext <<_ACEOF
30608 /* confdefs.h.  */
30609 _ACEOF
30610 cat confdefs.h >>conftest.$ac_ext
30611 cat >>conftest.$ac_ext <<_ACEOF
30612 /* end confdefs.h.  */
30613
30614 /* Override any GCC internal prototype to avoid an error.
30615    Use char because int might match the return type of a GCC
30616    builtin and then its argument prototype would still apply.  */
30617 #ifdef __cplusplus
30618 extern "C"
30619 #endif
30620 char remove ();
30621 int
30622 main ()
30623 {
30624 return remove ();
30625   ;
30626   return 0;
30627 }
30628 _ACEOF
30629 rm -f conftest.$ac_objext conftest$ac_exeext
30630 if { (ac_try="$ac_link"
30631 case "(($ac_try" in
30632   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30633   *) ac_try_echo=$ac_try;;
30634 esac
30635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30636   (eval "$ac_link") 2>conftest.er1
30637   ac_status=$?
30638   grep -v '^ *+' conftest.er1 >conftest.err
30639   rm -f conftest.er1
30640   cat conftest.err >&5
30641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30642   (exit $ac_status); } && {
30643          test -z "$ac_c_werror_flag" ||
30644          test ! -s conftest.err
30645        } && test -s conftest$ac_exeext &&
30646        $as_test_x conftest$ac_exeext; then
30647   ac_cv_lib_posix_remove=yes
30648 else
30649   echo "$as_me: failed program was:" >&5
30650 sed 's/^/| /' conftest.$ac_ext >&5
30651
30652         ac_cv_lib_posix_remove=no
30653 fi
30654
30655 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30656       conftest$ac_exeext conftest.$ac_ext
30657 LIBS=$ac_check_lib_save_LIBS
30658 fi
30659 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
30660 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; }
30661 if test $ac_cv_lib_posix_remove = yes; then
30662   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
30663 fi
30664
30665     fi
30666
30667     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
30668     { echo "$as_me:$LINENO: checking for shmat" >&5
30669 echo $ECHO_N "checking for shmat... $ECHO_C" >&6; }
30670 if test "${ac_cv_func_shmat+set}" = set; then
30671   echo $ECHO_N "(cached) $ECHO_C" >&6
30672 else
30673   cat >conftest.$ac_ext <<_ACEOF
30674 /* confdefs.h.  */
30675 _ACEOF
30676 cat confdefs.h >>conftest.$ac_ext
30677 cat >>conftest.$ac_ext <<_ACEOF
30678 /* end confdefs.h.  */
30679 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
30680    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30681 #define shmat innocuous_shmat
30682
30683 /* System header to define __stub macros and hopefully few prototypes,
30684     which can conflict with char shmat (); below.
30685     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30686     <limits.h> exists even on freestanding compilers.  */
30687
30688 #ifdef __STDC__
30689 # include <limits.h>
30690 #else
30691 # include <assert.h>
30692 #endif
30693
30694 #undef shmat
30695
30696 /* Override any GCC internal prototype to avoid an error.
30697    Use char because int might match the return type of a GCC
30698    builtin and then its argument prototype would still apply.  */
30699 #ifdef __cplusplus
30700 extern "C"
30701 #endif
30702 char shmat ();
30703 /* The GNU C library defines this for functions which it implements
30704     to always fail with ENOSYS.  Some functions are actually named
30705     something starting with __ and the normal name is an alias.  */
30706 #if defined __stub_shmat || defined __stub___shmat
30707 choke me
30708 #endif
30709
30710 int
30711 main ()
30712 {
30713 return shmat ();
30714   ;
30715   return 0;
30716 }
30717 _ACEOF
30718 rm -f conftest.$ac_objext conftest$ac_exeext
30719 if { (ac_try="$ac_link"
30720 case "(($ac_try" in
30721   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30722   *) ac_try_echo=$ac_try;;
30723 esac
30724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30725   (eval "$ac_link") 2>conftest.er1
30726   ac_status=$?
30727   grep -v '^ *+' conftest.er1 >conftest.err
30728   rm -f conftest.er1
30729   cat conftest.err >&5
30730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30731   (exit $ac_status); } && {
30732          test -z "$ac_c_werror_flag" ||
30733          test ! -s conftest.err
30734        } && test -s conftest$ac_exeext &&
30735        $as_test_x conftest$ac_exeext; then
30736   ac_cv_func_shmat=yes
30737 else
30738   echo "$as_me: failed program was:" >&5
30739 sed 's/^/| /' conftest.$ac_ext >&5
30740
30741         ac_cv_func_shmat=no
30742 fi
30743
30744 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30745       conftest$ac_exeext conftest.$ac_ext
30746 fi
30747 { echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
30748 echo "${ECHO_T}$ac_cv_func_shmat" >&6; }
30749
30750     if test $ac_cv_func_shmat = no; then
30751       { echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
30752 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; }
30753 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
30754   echo $ECHO_N "(cached) $ECHO_C" >&6
30755 else
30756   ac_check_lib_save_LIBS=$LIBS
30757 LIBS="-lipc  $LIBS"
30758 cat >conftest.$ac_ext <<_ACEOF
30759 /* confdefs.h.  */
30760 _ACEOF
30761 cat confdefs.h >>conftest.$ac_ext
30762 cat >>conftest.$ac_ext <<_ACEOF
30763 /* end confdefs.h.  */
30764
30765 /* Override any GCC internal prototype to avoid an error.
30766    Use char because int might match the return type of a GCC
30767    builtin and then its argument prototype would still apply.  */
30768 #ifdef __cplusplus
30769 extern "C"
30770 #endif
30771 char shmat ();
30772 int
30773 main ()
30774 {
30775 return shmat ();
30776   ;
30777   return 0;
30778 }
30779 _ACEOF
30780 rm -f conftest.$ac_objext conftest$ac_exeext
30781 if { (ac_try="$ac_link"
30782 case "(($ac_try" in
30783   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30784   *) ac_try_echo=$ac_try;;
30785 esac
30786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30787   (eval "$ac_link") 2>conftest.er1
30788   ac_status=$?
30789   grep -v '^ *+' conftest.er1 >conftest.err
30790   rm -f conftest.er1
30791   cat conftest.err >&5
30792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30793   (exit $ac_status); } && {
30794          test -z "$ac_c_werror_flag" ||
30795          test ! -s conftest.err
30796        } && test -s conftest$ac_exeext &&
30797        $as_test_x conftest$ac_exeext; then
30798   ac_cv_lib_ipc_shmat=yes
30799 else
30800   echo "$as_me: failed program was:" >&5
30801 sed 's/^/| /' conftest.$ac_ext >&5
30802
30803         ac_cv_lib_ipc_shmat=no
30804 fi
30805
30806 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30807       conftest$ac_exeext conftest.$ac_ext
30808 LIBS=$ac_check_lib_save_LIBS
30809 fi
30810 { echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
30811 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; }
30812 if test $ac_cv_lib_ipc_shmat = yes; then
30813   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
30814 fi
30815
30816     fi
30817   fi
30818
30819   # Check for libraries that X11R6 Xt/Xaw programs need.
30820   ac_save_LDFLAGS=$LDFLAGS
30821   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
30822   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
30823   # check for ICE first), but we must link in the order -lSM -lICE or
30824   # we get undefined symbols.  So assume we have SM if we have ICE.
30825   # These have to be linked with before -lX11, unlike the other
30826   # libraries we check for below, so use a different variable.
30827   # John Interrante, Karl Berry
30828   { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
30829 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; }
30830 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
30831   echo $ECHO_N "(cached) $ECHO_C" >&6
30832 else
30833   ac_check_lib_save_LIBS=$LIBS
30834 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
30835 cat >conftest.$ac_ext <<_ACEOF
30836 /* confdefs.h.  */
30837 _ACEOF
30838 cat confdefs.h >>conftest.$ac_ext
30839 cat >>conftest.$ac_ext <<_ACEOF
30840 /* end confdefs.h.  */
30841
30842 /* Override any GCC internal prototype to avoid an error.
30843    Use char because int might match the return type of a GCC
30844    builtin and then its argument prototype would still apply.  */
30845 #ifdef __cplusplus
30846 extern "C"
30847 #endif
30848 char IceConnectionNumber ();
30849 int
30850 main ()
30851 {
30852 return IceConnectionNumber ();
30853   ;
30854   return 0;
30855 }
30856 _ACEOF
30857 rm -f conftest.$ac_objext conftest$ac_exeext
30858 if { (ac_try="$ac_link"
30859 case "(($ac_try" in
30860   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30861   *) ac_try_echo=$ac_try;;
30862 esac
30863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30864   (eval "$ac_link") 2>conftest.er1
30865   ac_status=$?
30866   grep -v '^ *+' conftest.er1 >conftest.err
30867   rm -f conftest.er1
30868   cat conftest.err >&5
30869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30870   (exit $ac_status); } && {
30871          test -z "$ac_c_werror_flag" ||
30872          test ! -s conftest.err
30873        } && test -s conftest$ac_exeext &&
30874        $as_test_x conftest$ac_exeext; then
30875   ac_cv_lib_ICE_IceConnectionNumber=yes
30876 else
30877   echo "$as_me: failed program was:" >&5
30878 sed 's/^/| /' conftest.$ac_ext >&5
30879
30880         ac_cv_lib_ICE_IceConnectionNumber=no
30881 fi
30882
30883 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30884       conftest$ac_exeext conftest.$ac_ext
30885 LIBS=$ac_check_lib_save_LIBS
30886 fi
30887 { echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
30888 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
30889 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
30890   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
30891 fi
30892
30893   LDFLAGS=$ac_save_LDFLAGS
30894
30895 fi
30896
30897
30898         if test "$no_x" = "yes"; then
30899           { { echo "$as_me:$LINENO: error: X11 not found, please use --x-includes and/or --x-libraries options (see config.log for details)" >&5
30900 echo "$as_me: error: X11 not found, please use --x-includes and/or --x-libraries options (see config.log for details)" >&2;}
30901    { (exit 1); exit 1; }; }
30902         fi
30903
30904                                 GUI_TK_LIBRARY=`echo $X_LIBS | sed 's/ -LNONE//' | sed 's/ -RNONE//'`
30905         TOOLKIT_INCLUDE=`echo $X_CFLAGS | sed 's/ -INONE//'`
30906         AFMINSTALL=afminstall
30907         COMPILED_X_PROGRAM=0
30908
30909     fi
30910
30911     if test "$wxUSE_X11" = 1; then
30912         if test "$wxUSE_NANOX" = "yes"; then
30913             { echo "$as_me:$LINENO: checking for MicroWindows/NanoX distribution" >&5
30914 echo $ECHO_N "checking for MicroWindows/NanoX distribution... $ECHO_C" >&6; }
30915             if test "x$MICROWIN" = x ; then
30916                 { echo "$as_me:$LINENO: result: not found" >&5
30917 echo "${ECHO_T}not found" >&6; }
30918                 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&5
30919 echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&2;}
30920    { (exit 1); exit 1; }; }
30921             else
30922                 { echo "$as_me:$LINENO: result: $MICROWIN" >&5
30923 echo "${ECHO_T}$MICROWIN" >&6; }
30924                 cat >>confdefs.h <<\_ACEOF
30925 #define wxUSE_NANOX 1
30926 _ACEOF
30927
30928             fi
30929         fi
30930
30931         if test "$wxUSE_UNICODE" = "yes"; then
30932
30933
30934 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
30935         if test -n "$ac_tool_prefix"; then
30936   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
30937 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
30938 { echo "$as_me:$LINENO: checking for $ac_word" >&5
30939 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
30940 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
30941   echo $ECHO_N "(cached) $ECHO_C" >&6
30942 else
30943   case $PKG_CONFIG in
30944   [\\/]* | ?:[\\/]*)
30945   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
30946   ;;
30947   *)
30948   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30949 for as_dir in $PATH
30950 do
30951   IFS=$as_save_IFS
30952   test -z "$as_dir" && as_dir=.
30953   for ac_exec_ext in '' $ac_executable_extensions; do
30954   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30955     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
30956     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30957     break 2
30958   fi
30959 done
30960 done
30961 IFS=$as_save_IFS
30962
30963   ;;
30964 esac
30965 fi
30966 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
30967 if test -n "$PKG_CONFIG"; then
30968   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
30969 echo "${ECHO_T}$PKG_CONFIG" >&6; }
30970 else
30971   { echo "$as_me:$LINENO: result: no" >&5
30972 echo "${ECHO_T}no" >&6; }
30973 fi
30974
30975
30976 fi
30977 if test -z "$ac_cv_path_PKG_CONFIG"; then
30978   ac_pt_PKG_CONFIG=$PKG_CONFIG
30979   # Extract the first word of "pkg-config", so it can be a program name with args.
30980 set dummy pkg-config; ac_word=$2
30981 { echo "$as_me:$LINENO: checking for $ac_word" >&5
30982 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
30983 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
30984   echo $ECHO_N "(cached) $ECHO_C" >&6
30985 else
30986   case $ac_pt_PKG_CONFIG in
30987   [\\/]* | ?:[\\/]*)
30988   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
30989   ;;
30990   *)
30991   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30992 for as_dir in $PATH
30993 do
30994   IFS=$as_save_IFS
30995   test -z "$as_dir" && as_dir=.
30996   for ac_exec_ext in '' $ac_executable_extensions; do
30997   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30998     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
30999     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31000     break 2
31001   fi
31002 done
31003 done
31004 IFS=$as_save_IFS
31005
31006   ;;
31007 esac
31008 fi
31009 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
31010 if test -n "$ac_pt_PKG_CONFIG"; then
31011   { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
31012 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
31013 else
31014   { echo "$as_me:$LINENO: result: no" >&5
31015 echo "${ECHO_T}no" >&6; }
31016 fi
31017
31018   if test "x$ac_pt_PKG_CONFIG" = x; then
31019     PKG_CONFIG=""
31020   else
31021     case $cross_compiling:$ac_tool_warned in
31022 yes:)
31023 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
31024 whose name does not start with the host triplet.  If you think this
31025 configuration is useful to you, please write to autoconf@gnu.org." >&5
31026 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
31027 whose name does not start with the host triplet.  If you think this
31028 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
31029 ac_tool_warned=yes ;;
31030 esac
31031     PKG_CONFIG=$ac_pt_PKG_CONFIG
31032   fi
31033 else
31034   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
31035 fi
31036
31037 fi
31038 if test -n "$PKG_CONFIG"; then
31039         _pkg_min_version=0.9.0
31040         { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
31041 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
31042         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
31043                 { echo "$as_me:$LINENO: result: yes" >&5
31044 echo "${ECHO_T}yes" >&6; }
31045         else
31046                 { echo "$as_me:$LINENO: result: no" >&5
31047 echo "${ECHO_T}no" >&6; }
31048                 PKG_CONFIG=""
31049         fi
31050
31051 fi
31052
31053
31054 pkg_failed=no
31055 { echo "$as_me:$LINENO: checking for PANGOX" >&5
31056 echo $ECHO_N "checking for PANGOX... $ECHO_C" >&6; }
31057
31058 if test -n "$PKG_CONFIG"; then
31059     if test -n "$PANGOX_CFLAGS"; then
31060         pkg_cv_PANGOX_CFLAGS="$PANGOX_CFLAGS"
31061     else
31062         if test -n "$PKG_CONFIG" && \
31063     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangox\"") >&5
31064   ($PKG_CONFIG --exists --print-errors "pangox") 2>&5
31065   ac_status=$?
31066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31067   (exit $ac_status); }; then
31068   pkg_cv_PANGOX_CFLAGS=`$PKG_CONFIG --cflags "pangox" 2>/dev/null`
31069 else
31070   pkg_failed=yes
31071 fi
31072     fi
31073 else
31074         pkg_failed=untried
31075 fi
31076 if test -n "$PKG_CONFIG"; then
31077     if test -n "$PANGOX_LIBS"; then
31078         pkg_cv_PANGOX_LIBS="$PANGOX_LIBS"
31079     else
31080         if test -n "$PKG_CONFIG" && \
31081     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangox\"") >&5
31082   ($PKG_CONFIG --exists --print-errors "pangox") 2>&5
31083   ac_status=$?
31084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31085   (exit $ac_status); }; then
31086   pkg_cv_PANGOX_LIBS=`$PKG_CONFIG --libs "pangox" 2>/dev/null`
31087 else
31088   pkg_failed=yes
31089 fi
31090     fi
31091 else
31092         pkg_failed=untried
31093 fi
31094
31095
31096
31097 if test $pkg_failed = yes; then
31098
31099 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31100         _pkg_short_errors_supported=yes
31101 else
31102         _pkg_short_errors_supported=no
31103 fi
31104         if test $_pkg_short_errors_supported = yes; then
31105                 PANGOX_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "pangox"`
31106         else
31107                 PANGOX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangox"`
31108         fi
31109         # Put the nasty error message in config.log where it belongs
31110         echo "$PANGOX_PKG_ERRORS" >&5
31111
31112
31113                     { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5
31114 echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;}
31115    { (exit 1); exit 1; }; }
31116
31117
31118 elif test $pkg_failed = untried; then
31119
31120                     { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5
31121 echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;}
31122    { (exit 1); exit 1; }; }
31123
31124
31125 else
31126         PANGOX_CFLAGS=$pkg_cv_PANGOX_CFLAGS
31127         PANGOX_LIBS=$pkg_cv_PANGOX_LIBS
31128         { echo "$as_me:$LINENO: result: yes" >&5
31129 echo "${ECHO_T}yes" >&6; }
31130
31131                     CFLAGS="$PANGOX_CFLAGS $CFLAGS"
31132                     CXXFLAGS="$PANGOX_CFLAGS $CXXFLAGS"
31133                     GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOX_LIBS"
31134
31135 fi
31136
31137 pkg_failed=no
31138 { echo "$as_me:$LINENO: checking for PANGOFT2" >&5
31139 echo $ECHO_N "checking for PANGOFT2... $ECHO_C" >&6; }
31140
31141 if test -n "$PKG_CONFIG"; then
31142     if test -n "$PANGOFT2_CFLAGS"; then
31143         pkg_cv_PANGOFT2_CFLAGS="$PANGOFT2_CFLAGS"
31144     else
31145         if test -n "$PKG_CONFIG" && \
31146     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangoft2\"") >&5
31147   ($PKG_CONFIG --exists --print-errors "pangoft2") 2>&5
31148   ac_status=$?
31149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31150   (exit $ac_status); }; then
31151   pkg_cv_PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2" 2>/dev/null`
31152 else
31153   pkg_failed=yes
31154 fi
31155     fi
31156 else
31157         pkg_failed=untried
31158 fi
31159 if test -n "$PKG_CONFIG"; then
31160     if test -n "$PANGOFT2_LIBS"; then
31161         pkg_cv_PANGOFT2_LIBS="$PANGOFT2_LIBS"
31162     else
31163         if test -n "$PKG_CONFIG" && \
31164     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangoft2\"") >&5
31165   ($PKG_CONFIG --exists --print-errors "pangoft2") 2>&5
31166   ac_status=$?
31167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31168   (exit $ac_status); }; then
31169   pkg_cv_PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2" 2>/dev/null`
31170 else
31171   pkg_failed=yes
31172 fi
31173     fi
31174 else
31175         pkg_failed=untried
31176 fi
31177
31178
31179
31180 if test $pkg_failed = yes; then
31181
31182 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31183         _pkg_short_errors_supported=yes
31184 else
31185         _pkg_short_errors_supported=no
31186 fi
31187         if test $_pkg_short_errors_supported = yes; then
31188                 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "pangoft2"`
31189         else
31190                 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
31191         fi
31192         # Put the nasty error message in config.log where it belongs
31193         echo "$PANGOFT2_PKG_ERRORS" >&5
31194
31195
31196                     { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
31197 echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
31198                     wxUSE_PRINTING_ARCHITECTURE="no"
31199
31200
31201 elif test $pkg_failed = untried; then
31202
31203                     { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
31204 echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
31205                     wxUSE_PRINTING_ARCHITECTURE="no"
31206
31207
31208 else
31209         PANGOFT2_CFLAGS=$pkg_cv_PANGOFT2_CFLAGS
31210         PANGOFT2_LIBS=$pkg_cv_PANGOFT2_LIBS
31211         { echo "$as_me:$LINENO: result: yes" >&5
31212 echo "${ECHO_T}yes" >&6; }
31213
31214                     CFLAGS="$PANGOFT2_CFLAGS $CFLAGS"
31215                     CXXFLAGS="$PANGOFT2_CFLAGS $CXXFLAGS"
31216                     GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS"
31217
31218 fi
31219
31220 pkg_failed=no
31221 { echo "$as_me:$LINENO: checking for PANGOXFT" >&5
31222 echo $ECHO_N "checking for PANGOXFT... $ECHO_C" >&6; }
31223
31224 if test -n "$PKG_CONFIG"; then
31225     if test -n "$PANGOXFT_CFLAGS"; then
31226         pkg_cv_PANGOXFT_CFLAGS="$PANGOXFT_CFLAGS"
31227     else
31228         if test -n "$PKG_CONFIG" && \
31229     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangoxft\"") >&5
31230   ($PKG_CONFIG --exists --print-errors "pangoxft") 2>&5
31231   ac_status=$?
31232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31233   (exit $ac_status); }; then
31234   pkg_cv_PANGOXFT_CFLAGS=`$PKG_CONFIG --cflags "pangoxft" 2>/dev/null`
31235 else
31236   pkg_failed=yes
31237 fi
31238     fi
31239 else
31240         pkg_failed=untried
31241 fi
31242 if test -n "$PKG_CONFIG"; then
31243     if test -n "$PANGOXFT_LIBS"; then
31244         pkg_cv_PANGOXFT_LIBS="$PANGOXFT_LIBS"
31245     else
31246         if test -n "$PKG_CONFIG" && \
31247     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangoxft\"") >&5
31248   ($PKG_CONFIG --exists --print-errors "pangoxft") 2>&5
31249   ac_status=$?
31250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31251   (exit $ac_status); }; then
31252   pkg_cv_PANGOXFT_LIBS=`$PKG_CONFIG --libs "pangoxft" 2>/dev/null`
31253 else
31254   pkg_failed=yes
31255 fi
31256     fi
31257 else
31258         pkg_failed=untried
31259 fi
31260
31261
31262
31263 if test $pkg_failed = yes; then
31264
31265 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31266         _pkg_short_errors_supported=yes
31267 else
31268         _pkg_short_errors_supported=no
31269 fi
31270         if test $_pkg_short_errors_supported = yes; then
31271                 PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "pangoxft"`
31272         else
31273                 PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoxft"`
31274         fi
31275         # Put the nasty error message in config.log where it belongs
31276         echo "$PANGOXFT_PKG_ERRORS" >&5
31277
31278
31279                     { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5
31280 echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;}
31281
31282
31283 elif test $pkg_failed = untried; then
31284
31285                     { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5
31286 echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;}
31287
31288
31289 else
31290         PANGOXFT_CFLAGS=$pkg_cv_PANGOXFT_CFLAGS
31291         PANGOXFT_LIBS=$pkg_cv_PANGOXFT_LIBS
31292         { echo "$as_me:$LINENO: result: yes" >&5
31293 echo "${ECHO_T}yes" >&6; }
31294
31295                     cat >>confdefs.h <<\_ACEOF
31296 #define HAVE_PANGO_XFT 1
31297 _ACEOF
31298
31299                     CFLAGS="$PANGOXFT_CFLAGS $CFLAGS"
31300                     CXXFLAGS="$PANGOXFT_CFLAGS $CXXFLAGS"
31301                     GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOXFT_LIBS"
31302
31303 fi
31304             save_LIBS="$LIBS"
31305             LIBS="$LIBS $PANGOX_LIBS"
31306
31307 for ac_func in pango_font_family_is_monospace
31308 do
31309 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31310 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31311 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31312 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31313   echo $ECHO_N "(cached) $ECHO_C" >&6
31314 else
31315   cat >conftest.$ac_ext <<_ACEOF
31316 /* confdefs.h.  */
31317 _ACEOF
31318 cat confdefs.h >>conftest.$ac_ext
31319 cat >>conftest.$ac_ext <<_ACEOF
31320 /* end confdefs.h.  */
31321 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31322    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31323 #define $ac_func innocuous_$ac_func
31324
31325 /* System header to define __stub macros and hopefully few prototypes,
31326     which can conflict with char $ac_func (); below.
31327     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31328     <limits.h> exists even on freestanding compilers.  */
31329
31330 #ifdef __STDC__
31331 # include <limits.h>
31332 #else
31333 # include <assert.h>
31334 #endif
31335
31336 #undef $ac_func
31337
31338 /* Override any GCC internal prototype to avoid an error.
31339    Use char because int might match the return type of a GCC
31340    builtin and then its argument prototype would still apply.  */
31341 #ifdef __cplusplus
31342 extern "C"
31343 #endif
31344 char $ac_func ();
31345 /* The GNU C library defines this for functions which it implements
31346     to always fail with ENOSYS.  Some functions are actually named
31347     something starting with __ and the normal name is an alias.  */
31348 #if defined __stub_$ac_func || defined __stub___$ac_func
31349 choke me
31350 #endif
31351
31352 int
31353 main ()
31354 {
31355 return $ac_func ();
31356   ;
31357   return 0;
31358 }
31359 _ACEOF
31360 rm -f conftest.$ac_objext conftest$ac_exeext
31361 if { (ac_try="$ac_link"
31362 case "(($ac_try" in
31363   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31364   *) ac_try_echo=$ac_try;;
31365 esac
31366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31367   (eval "$ac_link") 2>conftest.er1
31368   ac_status=$?
31369   grep -v '^ *+' conftest.er1 >conftest.err
31370   rm -f conftest.er1
31371   cat conftest.err >&5
31372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31373   (exit $ac_status); } && {
31374          test -z "$ac_c_werror_flag" ||
31375          test ! -s conftest.err
31376        } && test -s conftest$ac_exeext &&
31377        $as_test_x conftest$ac_exeext; then
31378   eval "$as_ac_var=yes"
31379 else
31380   echo "$as_me: failed program was:" >&5
31381 sed 's/^/| /' conftest.$ac_ext >&5
31382
31383         eval "$as_ac_var=no"
31384 fi
31385
31386 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31387       conftest$ac_exeext conftest.$ac_ext
31388 fi
31389 ac_res=`eval echo '${'$as_ac_var'}'`
31390                { echo "$as_me:$LINENO: result: $ac_res" >&5
31391 echo "${ECHO_T}$ac_res" >&6; }
31392 if test `eval echo '${'$as_ac_var'}'` = yes; then
31393   cat >>confdefs.h <<_ACEOF
31394 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31395 _ACEOF
31396
31397 fi
31398 done
31399
31400             LIBS="$save_LIBS"
31401         fi
31402
31403         wxUSE_UNIVERSAL="yes"
31404
31405         if test "$wxUSE_NANOX" = "yes"; then
31406             TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE"
31407             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"
31408             GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a"
31409         else
31410             GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11"
31411         fi
31412
31413         TOOLKIT=X11
31414         GUIDIST=X11_DIST
31415     fi
31416
31417     if test "$wxUSE_MOTIF" = 1; then
31418         { echo "$as_me:$LINENO: checking for Motif/Lesstif headers" >&5
31419 echo $ECHO_N "checking for Motif/Lesstif headers... $ECHO_C" >&6; }
31420
31421 ac_find_includes=
31422 for ac_dir in $SEARCH_INCLUDE /usr/include;
31423   do
31424     if test -f "$ac_dir/Xm/Xm.h"; then
31425       ac_find_includes=$ac_dir
31426       break
31427     fi
31428   done
31429
31430         if test "$ac_find_includes" != "" ; then
31431             { echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
31432 echo "${ECHO_T}found in $ac_find_includes" >&6; }
31433
31434     if test "x$ac_find_includes" = "x/usr/include"; then
31435     ac_path_to_include=""
31436   else
31437     echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
31438     result=$?
31439     if test $result = 0; then
31440       ac_path_to_include=""
31441     else
31442       ac_path_to_include=" -I$ac_find_includes"
31443     fi
31444   fi
31445
31446             TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include"
31447         else
31448             save_CFLAGS=$CFLAGS
31449             CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
31450
31451             cat >conftest.$ac_ext <<_ACEOF
31452 /* confdefs.h.  */
31453 _ACEOF
31454 cat confdefs.h >>conftest.$ac_ext
31455 cat >>conftest.$ac_ext <<_ACEOF
31456 /* end confdefs.h.  */
31457
31458                     #include <Xm/Xm.h>
31459
31460 int
31461 main ()
31462 {
31463
31464                     int version;
31465                     version = xmUseVersion;
31466
31467   ;
31468   return 0;
31469 }
31470 _ACEOF
31471 rm -f conftest.$ac_objext
31472 if { (ac_try="$ac_compile"
31473 case "(($ac_try" in
31474   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31475   *) ac_try_echo=$ac_try;;
31476 esac
31477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31478   (eval "$ac_compile") 2>conftest.er1
31479   ac_status=$?
31480   grep -v '^ *+' conftest.er1 >conftest.err
31481   rm -f conftest.er1
31482   cat conftest.err >&5
31483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31484   (exit $ac_status); } && {
31485          test -z "$ac_c_werror_flag" ||
31486          test ! -s conftest.err
31487        } && test -s conftest.$ac_objext; then
31488
31489                     { echo "$as_me:$LINENO: result: found in default search path" >&5
31490 echo "${ECHO_T}found in default search path" >&6; }
31491                     COMPILED_X_PROGRAM=1
31492
31493 else
31494   echo "$as_me: failed program was:" >&5
31495 sed 's/^/| /' conftest.$ac_ext >&5
31496
31497
31498                     { echo "$as_me:$LINENO: result: no" >&5
31499 echo "${ECHO_T}no" >&6; }
31500                     { { echo "$as_me:$LINENO: error: please set CPPFLAGS to contain the location of Xm/Xm.h" >&5
31501 echo "$as_me: error: please set CPPFLAGS to contain the location of Xm/Xm.h" >&2;}
31502    { (exit 1); exit 1; }; }
31503
31504
31505 fi
31506
31507 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31508
31509             CFLAGS=$save_CFLAGS
31510         fi
31511
31512
31513         { echo "$as_me:$LINENO: checking for Motif/Lesstif library" >&5
31514 echo $ECHO_N "checking for Motif/Lesstif library... $ECHO_C" >&6; }
31515
31516   ac_find_libraries=
31517   for ac_dir in $SEARCH_LIB;
31518   do
31519     for ac_extension in a so sl dylib dll.a; do
31520       if test -f "$ac_dir/libXm.$ac_extension"; then
31521         ac_find_libraries=$ac_dir
31522         break 2
31523       fi
31524     done
31525   done
31526
31527
31528         if test "x$ac_find_libraries" != "x" ; then
31529             { echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
31530 echo "${ECHO_T}found in $ac_find_libraries" >&6; }
31531
31532
31533     if test "$ac_find_libraries" = "default location"; then
31534     ac_path_to_link=""
31535   else
31536     echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
31537     result=$?
31538     if test $result = 0; then
31539       ac_path_to_link=""
31540     else
31541       ac_path_to_link=" -L$ac_find_libraries"
31542     fi
31543   fi
31544
31545             GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
31546         else
31547                                                 save_CFLAGS=$CFLAGS
31548             CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
31549             save_LIBS="$LIBS"
31550             LIBS="$GUI_TK_LIBRARY -lXm -lXmu -lXext -lX11"
31551
31552             cat >conftest.$ac_ext <<_ACEOF
31553 /* confdefs.h.  */
31554 _ACEOF
31555 cat confdefs.h >>conftest.$ac_ext
31556 cat >>conftest.$ac_ext <<_ACEOF
31557 /* end confdefs.h.  */
31558
31559                     #include <Xm/Xm.h>
31560
31561 int
31562 main ()
31563 {
31564
31565                     int version;
31566                     version = xmUseVersion;
31567
31568   ;
31569   return 0;
31570 }
31571 _ACEOF
31572 rm -f conftest.$ac_objext conftest$ac_exeext
31573 if { (ac_try="$ac_link"
31574 case "(($ac_try" in
31575   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31576   *) ac_try_echo=$ac_try;;
31577 esac
31578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31579   (eval "$ac_link") 2>conftest.er1
31580   ac_status=$?
31581   grep -v '^ *+' conftest.er1 >conftest.err
31582   rm -f conftest.er1
31583   cat conftest.err >&5
31584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31585   (exit $ac_status); } && {
31586          test -z "$ac_c_werror_flag" ||
31587          test ! -s conftest.err
31588        } && test -s conftest$ac_exeext &&
31589        $as_test_x conftest$ac_exeext; then
31590
31591                     { echo "$as_me:$LINENO: result: found in default search path" >&5
31592 echo "${ECHO_T}found in default search path" >&6; }
31593                     COMPILED_X_PROGRAM=1
31594
31595 else
31596   echo "$as_me: failed program was:" >&5
31597 sed 's/^/| /' conftest.$ac_ext >&5
31598
31599
31600                     { echo "$as_me:$LINENO: result: no" >&5
31601 echo "${ECHO_T}no" >&6; }
31602                     { { echo "$as_me:$LINENO: error: please set LDFLAGS to contain the location of libXm" >&5
31603 echo "$as_me: error: please set LDFLAGS to contain the location of libXm" >&2;}
31604    { (exit 1); exit 1; }; }
31605
31606
31607 fi
31608
31609 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31610       conftest$ac_exeext conftest.$ac_ext
31611
31612             CFLAGS=$save_CFLAGS
31613             LIBS="$save_LIBS"
31614         fi
31615
31616         { echo "$as_me:$LINENO: checking if we need -lXp and/or -lSM -lICE" >&5
31617 echo $ECHO_N "checking if we need -lXp and/or -lSM -lICE... $ECHO_C" >&6; }
31618         libp_link=""
31619         libsm_ice_link=""
31620         libs_found=0
31621         for libp in "" " -lXp"; do
31622             if test "$libs_found" = 0; then
31623                 for libsm_ice in "" " -lSM -lICE"; do
31624                     if test "$libs_found" = 0; then
31625                         save_LIBS="$LIBS"
31626                         LIBS="$GUI_TK_LIBRARY -lXm ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11"
31627                         save_CFLAGS=$CFLAGS
31628                         CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
31629
31630                         cat >conftest.$ac_ext <<_ACEOF
31631 /* confdefs.h.  */
31632 _ACEOF
31633 cat confdefs.h >>conftest.$ac_ext
31634 cat >>conftest.$ac_ext <<_ACEOF
31635 /* end confdefs.h.  */
31636
31637                                 #include <Xm/Xm.h>
31638                                 #include <Xm/List.h>
31639
31640 int
31641 main ()
31642 {
31643
31644                                 XmString string = NULL;
31645                                 Widget w = NULL;
31646                                 int position = 0;
31647                                 XmListAddItem(w, string, position);
31648
31649   ;
31650   return 0;
31651 }
31652 _ACEOF
31653 rm -f conftest.$ac_objext conftest$ac_exeext
31654 if { (ac_try="$ac_link"
31655 case "(($ac_try" in
31656   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31657   *) ac_try_echo=$ac_try;;
31658 esac
31659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31660   (eval "$ac_link") 2>conftest.er1
31661   ac_status=$?
31662   grep -v '^ *+' conftest.er1 >conftest.err
31663   rm -f conftest.er1
31664   cat conftest.err >&5
31665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31666   (exit $ac_status); } && {
31667          test -z "$ac_c_werror_flag" ||
31668          test ! -s conftest.err
31669        } && test -s conftest$ac_exeext &&
31670        $as_test_x conftest$ac_exeext; then
31671
31672                                 libp_link="$libp"
31673                                 libsm_ice_link="$libsm_ice"
31674                                 { echo "$as_me:$LINENO: result: need${libp_link}${libsm_ice_link}" >&5
31675 echo "${ECHO_T}need${libp_link}${libsm_ice_link}" >&6; }
31676                                 libs_found=1
31677
31678 else
31679   echo "$as_me: failed program was:" >&5
31680 sed 's/^/| /' conftest.$ac_ext >&5
31681
31682
31683
31684 fi
31685
31686 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31687       conftest$ac_exeext conftest.$ac_ext
31688
31689                         LIBS="$save_LIBS"
31690                         CFLAGS=$save_CFLAGS
31691                     fi
31692                 done
31693             fi
31694         done
31695
31696         if test "$libs_found" = 0; then
31697             { echo "$as_me:$LINENO: result: can't find the right libraries" >&5
31698 echo "${ECHO_T}can't find the right libraries" >&6; }
31699             { { echo "$as_me:$LINENO: error: can't link a simple motif program" >&5
31700 echo "$as_me: error: can't link a simple motif program" >&2;}
31701    { (exit 1); exit 1; }; }
31702         fi
31703
31704                         { echo "$as_me:$LINENO: checking for SgCreateList in -lSgm" >&5
31705 echo $ECHO_N "checking for SgCreateList in -lSgm... $ECHO_C" >&6; }
31706 if test "${ac_cv_lib_Sgm_SgCreateList+set}" = set; then
31707   echo $ECHO_N "(cached) $ECHO_C" >&6
31708 else
31709   ac_check_lib_save_LIBS=$LIBS
31710 LIBS="-lSgm  $LIBS"
31711 cat >conftest.$ac_ext <<_ACEOF
31712 /* confdefs.h.  */
31713 _ACEOF
31714 cat confdefs.h >>conftest.$ac_ext
31715 cat >>conftest.$ac_ext <<_ACEOF
31716 /* end confdefs.h.  */
31717
31718 /* Override any GCC internal prototype to avoid an error.
31719    Use char because int might match the return type of a GCC
31720    builtin and then its argument prototype would still apply.  */
31721 #ifdef __cplusplus
31722 extern "C"
31723 #endif
31724 char SgCreateList ();
31725 int
31726 main ()
31727 {
31728 return SgCreateList ();
31729   ;
31730   return 0;
31731 }
31732 _ACEOF
31733 rm -f conftest.$ac_objext conftest$ac_exeext
31734 if { (ac_try="$ac_link"
31735 case "(($ac_try" in
31736   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31737   *) ac_try_echo=$ac_try;;
31738 esac
31739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31740   (eval "$ac_link") 2>conftest.er1
31741   ac_status=$?
31742   grep -v '^ *+' conftest.er1 >conftest.err
31743   rm -f conftest.er1
31744   cat conftest.err >&5
31745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31746   (exit $ac_status); } && {
31747          test -z "$ac_c_werror_flag" ||
31748          test ! -s conftest.err
31749        } && test -s conftest$ac_exeext &&
31750        $as_test_x conftest$ac_exeext; then
31751   ac_cv_lib_Sgm_SgCreateList=yes
31752 else
31753   echo "$as_me: failed program was:" >&5
31754 sed 's/^/| /' conftest.$ac_ext >&5
31755
31756         ac_cv_lib_Sgm_SgCreateList=no
31757 fi
31758
31759 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31760       conftest$ac_exeext conftest.$ac_ext
31761 LIBS=$ac_check_lib_save_LIBS
31762 fi
31763 { echo "$as_me:$LINENO: result: $ac_cv_lib_Sgm_SgCreateList" >&5
31764 echo "${ECHO_T}$ac_cv_lib_Sgm_SgCreateList" >&6; }
31765 if test $ac_cv_lib_Sgm_SgCreateList = yes; then
31766   libsgm_link=" -lSgm"
31767 fi
31768
31769
31770         save_CFLAGS=$CFLAGS
31771         CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
31772
31773         { echo "$as_me:$LINENO: checking for Motif 2" >&5
31774 echo $ECHO_N "checking for Motif 2... $ECHO_C" >&6; }
31775 if test "${wx_cv_lib_motif2+set}" = set; then
31776   echo $ECHO_N "(cached) $ECHO_C" >&6
31777 else
31778   cat >conftest.$ac_ext <<_ACEOF
31779 /* confdefs.h.  */
31780 _ACEOF
31781 cat confdefs.h >>conftest.$ac_ext
31782 cat >>conftest.$ac_ext <<_ACEOF
31783 /* end confdefs.h.  */
31784
31785                             #include <Xm/Xm.h>
31786
31787 int
31788 main ()
31789 {
31790
31791                             #if XmVersion < 2000
31792                             Not Motif 2
31793                             #endif
31794
31795   ;
31796   return 0;
31797 }
31798 _ACEOF
31799 rm -f conftest.$ac_objext
31800 if { (ac_try="$ac_compile"
31801 case "(($ac_try" in
31802   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31803   *) ac_try_echo=$ac_try;;
31804 esac
31805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31806   (eval "$ac_compile") 2>conftest.er1
31807   ac_status=$?
31808   grep -v '^ *+' conftest.er1 >conftest.err
31809   rm -f conftest.er1
31810   cat conftest.err >&5
31811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31812   (exit $ac_status); } && {
31813          test -z "$ac_c_werror_flag" ||
31814          test ! -s conftest.err
31815        } && test -s conftest.$ac_objext; then
31816   wx_cv_lib_motif2="yes"
31817 else
31818   echo "$as_me: failed program was:" >&5
31819 sed 's/^/| /' conftest.$ac_ext >&5
31820
31821         wx_cv_lib_motif2="no"
31822 fi
31823
31824 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31825 fi
31826 { echo "$as_me:$LINENO: result: $wx_cv_lib_motif2" >&5
31827 echo "${ECHO_T}$wx_cv_lib_motif2" >&6; }
31828         if test "$wx_cv_lib_motif2" = "yes"; then
31829             cat >>confdefs.h <<\_ACEOF
31830 #define __WXMOTIF20__ 1
31831 _ACEOF
31832
31833         else
31834             cat >>confdefs.h <<\_ACEOF
31835 #define __WXMOTIF20__ 0
31836 _ACEOF
31837
31838         fi
31839
31840         { echo "$as_me:$LINENO: checking whether Motif is Lesstif" >&5
31841 echo $ECHO_N "checking whether Motif is Lesstif... $ECHO_C" >&6; }
31842 if test "${wx_cv_lib_lesstif+set}" = set; then
31843   echo $ECHO_N "(cached) $ECHO_C" >&6
31844 else
31845   cat >conftest.$ac_ext <<_ACEOF
31846 /* confdefs.h.  */
31847 _ACEOF
31848 cat confdefs.h >>conftest.$ac_ext
31849 cat >>conftest.$ac_ext <<_ACEOF
31850 /* end confdefs.h.  */
31851
31852                             #include <Xm/Xm.h>
31853
31854 int
31855 main ()
31856 {
31857
31858                             #if !defined(LesstifVersion) || LesstifVersion <= 0
31859                             Not Lesstif
31860                             #endif
31861
31862   ;
31863   return 0;
31864 }
31865 _ACEOF
31866 rm -f conftest.$ac_objext
31867 if { (ac_try="$ac_compile"
31868 case "(($ac_try" in
31869   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31870   *) ac_try_echo=$ac_try;;
31871 esac
31872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31873   (eval "$ac_compile") 2>conftest.er1
31874   ac_status=$?
31875   grep -v '^ *+' conftest.er1 >conftest.err
31876   rm -f conftest.er1
31877   cat conftest.err >&5
31878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31879   (exit $ac_status); } && {
31880          test -z "$ac_c_werror_flag" ||
31881          test ! -s conftest.err
31882        } && test -s conftest.$ac_objext; then
31883   wx_cv_lib_lesstif="yes"
31884 else
31885   echo "$as_me: failed program was:" >&5
31886 sed 's/^/| /' conftest.$ac_ext >&5
31887
31888         wx_cv_lib_lesstif="no"
31889 fi
31890
31891 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31892
31893 fi
31894 { echo "$as_me:$LINENO: result: $wx_cv_lib_lesstif" >&5
31895 echo "${ECHO_T}$wx_cv_lib_lesstif" >&6; }
31896         if test "$wx_cv_lib_lesstif" = "yes"; then
31897             cat >>confdefs.h <<\_ACEOF
31898 #define __WXLESSTIF__ 1
31899 _ACEOF
31900
31901         else
31902             cat >>confdefs.h <<\_ACEOF
31903 #define __WXLESSTIF__ 0
31904 _ACEOF
31905
31906         fi
31907
31908         CFLAGS=$save_CFLAGS
31909
31910         GUI_TK_LIBRARY="$GUI_TK_LIBRARY${libsgm_link} -lXm${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11"
31911         TOOLKIT=MOTIF
31912         GUIDIST=MOTIF_DIST
31913     fi
31914
31915         if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
31916                 if test "$wxUSE_LIBXPM" = "sys"; then
31917             { echo "$as_me:$LINENO: checking for Xpm library" >&5
31918 echo $ECHO_N "checking for Xpm library... $ECHO_C" >&6; }
31919
31920   ac_find_libraries=
31921   for ac_dir in $SEARCH_LIB;
31922   do
31923     for ac_extension in a so sl dylib dll.a; do
31924       if test -f "$ac_dir/libXpm.$ac_extension"; then
31925         ac_find_libraries=$ac_dir
31926         break 2
31927       fi
31928     done
31929   done
31930
31931             if test "$ac_find_libraries" != "" ; then
31932
31933     if test "$ac_find_libraries" = "default location"; then
31934     ac_path_to_link=""
31935   else
31936     echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
31937     result=$?
31938     if test $result = 0; then
31939       ac_path_to_link=""
31940     else
31941       ac_path_to_link=" -L$ac_find_libraries"
31942     fi
31943   fi
31944
31945                 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
31946                 { echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
31947 echo "${ECHO_T}found in $ac_find_libraries" >&6; }
31948
31949                 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
31950 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
31951 if test "${wx_cv_x11_xpm_h+set}" = set; then
31952   echo $ECHO_N "(cached) $ECHO_C" >&6
31953 else
31954
31955                         save_CFLAGS=$CFLAGS
31956                         CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
31957
31958                         cat >conftest.$ac_ext <<_ACEOF
31959 /* confdefs.h.  */
31960 _ACEOF
31961 cat confdefs.h >>conftest.$ac_ext
31962 cat >>conftest.$ac_ext <<_ACEOF
31963 /* end confdefs.h.  */
31964
31965                                 #include <X11/xpm.h>
31966
31967 int
31968 main ()
31969 {
31970
31971                                 int version;
31972                                 version = XpmLibraryVersion();
31973
31974   ;
31975   return 0;
31976 }
31977 _ACEOF
31978 rm -f conftest.$ac_objext
31979 if { (ac_try="$ac_compile"
31980 case "(($ac_try" in
31981   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31982   *) ac_try_echo=$ac_try;;
31983 esac
31984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31985   (eval "$ac_compile") 2>conftest.er1
31986   ac_status=$?
31987   grep -v '^ *+' conftest.er1 >conftest.err
31988   rm -f conftest.er1
31989   cat conftest.err >&5
31990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31991   (exit $ac_status); } && {
31992          test -z "$ac_c_werror_flag" ||
31993          test ! -s conftest.err
31994        } && test -s conftest.$ac_objext; then
31995   wx_cv_x11_xpm_h=yes
31996 else
31997   echo "$as_me: failed program was:" >&5
31998 sed 's/^/| /' conftest.$ac_ext >&5
31999
32000         wx_cv_x11_xpm_h=no
32001
32002 fi
32003
32004 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32005
32006                         CFLAGS=$save_CFLAGS
32007
32008
32009 fi
32010 { echo "$as_me:$LINENO: result: $wx_cv_x11_xpm_h" >&5
32011 echo "${ECHO_T}$wx_cv_x11_xpm_h" >&6; }
32012
32013                 if test $wx_cv_x11_xpm_h = "yes"; then
32014                     GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXpm"
32015                     cat >>confdefs.h <<\_ACEOF
32016 #define wxHAVE_LIB_XPM 1
32017 _ACEOF
32018
32019                 else
32020                     { echo "$as_me:$LINENO: WARNING: built-in less efficient XPM decoder will be used" >&5
32021 echo "$as_me: WARNING: built-in less efficient XPM decoder will be used" >&2;}
32022                 fi
32023             fi
32024
32025         fi
32026
32027                 { echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
32028 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6; }
32029 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
32030   echo $ECHO_N "(cached) $ECHO_C" >&6
32031 else
32032   ac_check_lib_save_LIBS=$LIBS
32033 LIBS="-lXext $GUI_TK_LIBRARY -lX11 $LIBS"
32034 cat >conftest.$ac_ext <<_ACEOF
32035 /* confdefs.h.  */
32036 _ACEOF
32037 cat confdefs.h >>conftest.$ac_ext
32038 cat >>conftest.$ac_ext <<_ACEOF
32039 /* end confdefs.h.  */
32040
32041 /* Override any GCC internal prototype to avoid an error.
32042    Use char because int might match the return type of a GCC
32043    builtin and then its argument prototype would still apply.  */
32044 #ifdef __cplusplus
32045 extern "C"
32046 #endif
32047 char XShapeQueryExtension ();
32048 int
32049 main ()
32050 {
32051 return XShapeQueryExtension ();
32052   ;
32053   return 0;
32054 }
32055 _ACEOF
32056 rm -f conftest.$ac_objext conftest$ac_exeext
32057 if { (ac_try="$ac_link"
32058 case "(($ac_try" in
32059   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32060   *) ac_try_echo=$ac_try;;
32061 esac
32062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32063   (eval "$ac_link") 2>conftest.er1
32064   ac_status=$?
32065   grep -v '^ *+' conftest.er1 >conftest.err
32066   rm -f conftest.er1
32067   cat conftest.err >&5
32068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32069   (exit $ac_status); } && {
32070          test -z "$ac_c_werror_flag" ||
32071          test ! -s conftest.err
32072        } && test -s conftest$ac_exeext &&
32073        $as_test_x conftest$ac_exeext; then
32074   ac_cv_lib_Xext_XShapeQueryExtension=yes
32075 else
32076   echo "$as_me: failed program was:" >&5
32077 sed 's/^/| /' conftest.$ac_ext >&5
32078
32079         ac_cv_lib_Xext_XShapeQueryExtension=no
32080 fi
32081
32082 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32083       conftest$ac_exeext conftest.$ac_ext
32084 LIBS=$ac_check_lib_save_LIBS
32085 fi
32086 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
32087 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
32088 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
32089
32090                       GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXext"
32091                       wxHAVE_XEXT_LIB=1
32092
32093 fi
32094
32095
32096         if test "$wxHAVE_XEXT_LIB" = 1; then
32097             save_CFLAGS="$CFLAGS"
32098             CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
32099
32100             { echo "$as_me:$LINENO: checking for X11/extensions/shape.h" >&5
32101 echo $ECHO_N "checking for X11/extensions/shape.h... $ECHO_C" >&6; }
32102             cat >conftest.$ac_ext <<_ACEOF
32103 /* confdefs.h.  */
32104 _ACEOF
32105 cat confdefs.h >>conftest.$ac_ext
32106 cat >>conftest.$ac_ext <<_ACEOF
32107 /* end confdefs.h.  */
32108
32109                             #include <X11/Xlib.h>
32110                             #include <X11/extensions/shape.h>
32111
32112 int
32113 main ()
32114 {
32115
32116                             int dummy1, dummy2;
32117                             XShapeQueryExtension((Display*)NULL,
32118                                                  (int*)NULL, (int*)NULL);
32119
32120   ;
32121   return 0;
32122 }
32123 _ACEOF
32124 rm -f conftest.$ac_objext
32125 if { (ac_try="$ac_compile"
32126 case "(($ac_try" in
32127   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32128   *) ac_try_echo=$ac_try;;
32129 esac
32130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32131   (eval "$ac_compile") 2>conftest.er1
32132   ac_status=$?
32133   grep -v '^ *+' conftest.er1 >conftest.err
32134   rm -f conftest.er1
32135   cat conftest.err >&5
32136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32137   (exit $ac_status); } && {
32138          test -z "$ac_c_werror_flag" ||
32139          test ! -s conftest.err
32140        } && test -s conftest.$ac_objext; then
32141
32142                             cat >>confdefs.h <<\_ACEOF
32143 #define HAVE_XSHAPE 1
32144 _ACEOF
32145
32146                             { echo "$as_me:$LINENO: result: found" >&5
32147 echo "${ECHO_T}found" >&6; }
32148
32149 else
32150   echo "$as_me: failed program was:" >&5
32151 sed 's/^/| /' conftest.$ac_ext >&5
32152
32153
32154                             { echo "$as_me:$LINENO: result: not found" >&5
32155 echo "${ECHO_T}not found" >&6; }
32156
32157 fi
32158
32159 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32160             CFLAGS="$save_CFLAGS"
32161
32162         fi
32163     fi
32164
32165     if test "$wxUSE_MAC" = 1; then
32166         { echo "$as_me:$LINENO: checking for compiler syntax to enable Pascal strings" >&5
32167 echo $ECHO_N "checking for compiler syntax to enable Pascal strings... $ECHO_C" >&6; }
32168         if test "$GCC" = yes; then
32169             { echo "$as_me:$LINENO: result: gcc" >&5
32170 echo "${ECHO_T}gcc" >&6; }
32171             CPPFLAGS_PASCAL="-fpascal-strings"
32172         elif test "`echo $CXX | sed -e 's@.*/@@'`" = "xlC"; then
32173             { echo "$as_me:$LINENO: result: xlc" >&5
32174 echo "${ECHO_T}xlc" >&6; }
32175             CPPFLAGS_PASCAL="-qmacpstr"
32176         else
32177             { echo "$as_me:$LINENO: result: none" >&5
32178 echo "${ECHO_T}none" >&6; }
32179         fi
32180
32181         if test "x$wxUSE_UNIX" = "xyes"; then
32182             CPPFLAGS="$CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -I/Developer/Headers/FlatCarbon $CPPFLAGS"
32183         else
32184                         CPPFLAGS="$CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -DTARGET_CARBON $CPPFLAGS"
32185         fi
32186
32187         TOOLKIT=MAC
32188                 GUIDIST=MACX_DIST
32189                         WXBASEPORT="_carbon"
32190     fi
32191
32192     if test "$wxUSE_COCOA" = 1; then
32193         TOOLKIT=COCOA
32194         GUIDIST=COCOA_DIST
32195     fi
32196
32197     if test "$wxUSE_PM" = 1; then
32198         TOOLKIT=PM
32199         GUIDIST=PM_DIST
32200         { echo "$as_me:$LINENO: checking for type SPBCDATA" >&5
32201 echo $ECHO_N "checking for type SPBCDATA... $ECHO_C" >&6; }
32202 if test "${wx_cv_spbcdata+set}" = set; then
32203   echo $ECHO_N "(cached) $ECHO_C" >&6
32204 else
32205
32206                 cat >conftest.$ac_ext <<_ACEOF
32207 /* confdefs.h.  */
32208 _ACEOF
32209 cat confdefs.h >>conftest.$ac_ext
32210 cat >>conftest.$ac_ext <<_ACEOF
32211 /* end confdefs.h.  */
32212
32213                         #define INCL_PM
32214                         #include <os2.h>
32215
32216 int
32217 main ()
32218 {
32219
32220                         SPBCDATA test;
32221
32222   ;
32223   return 0;
32224 }
32225 _ACEOF
32226 rm -f conftest.$ac_objext
32227 if { (ac_try="$ac_compile"
32228 case "(($ac_try" in
32229   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32230   *) ac_try_echo=$ac_try;;
32231 esac
32232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32233   (eval "$ac_compile") 2>conftest.er1
32234   ac_status=$?
32235   grep -v '^ *+' conftest.er1 >conftest.err
32236   rm -f conftest.er1
32237   cat conftest.err >&5
32238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32239   (exit $ac_status); } && {
32240          test -z "$ac_c_werror_flag" ||
32241          test ! -s conftest.err
32242        } && test -s conftest.$ac_objext; then
32243   wx_cv_spbcdata=yes
32244 else
32245   echo "$as_me: failed program was:" >&5
32246 sed 's/^/| /' conftest.$ac_ext >&5
32247
32248         wx_cv_spbcdata=no
32249
32250 fi
32251
32252 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32253
32254
32255 fi
32256 { echo "$as_me:$LINENO: result: $wx_cv_spbcdata" >&5
32257 echo "${ECHO_T}$wx_cv_spbcdata" >&6; }
32258
32259         if test $wx_cv_spbcdata = "yes"; then
32260             cat >>confdefs.h <<\_ACEOF
32261 #define HAVE_SPBCDATA 1
32262 _ACEOF
32263
32264         fi
32265     fi
32266
32267         if test "$TOOLKIT" = "PM" ; then
32268         TOOLKIT_DIR="os2"
32269     else
32270         TOOLKIT_DIR=`echo ${TOOLKIT} | tr '[A-Z]' '[a-z]'`
32271     fi
32272
32273     if test "$wxUSE_UNIVERSAL" = "yes"; then
32274         TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__"
32275         WIDGET_SET=univ
32276     fi
32277
32278         GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
32279     DISTDIR="wx\$(TOOLKIT)"
32280 else
32281     USE_GUI=0
32282
32283             TOOLKIT_DIR="base"
32284
32285         if test "$USE_WIN32" = 1 ; then
32286                         TOOLKIT="MSW"
32287     fi
32288
32289         GUIDIST="BASE_DIST"
32290     DISTDIR="wxBase"
32291 fi
32292
32293
32294
32295 if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_UTF8" = "auto" ; then
32296     if test "$USE_UNIX" = 1 -a "$wxUSE_DARWIN" != 1 ; then
32297         wxUSE_UNICODE_UTF8=yes
32298     elif test "$USE_OS2" = 1 ; then
32299                                 wxUSE_UNICODE_UTF8=yes
32300     else
32301         wxUSE_UNICODE_UTF8=no
32302     fi
32303 fi
32304
32305
32306 if test "$wxUSE_GUI" = "yes"; then
32307     if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_PM" != 1; then
32308
32309 for ac_header in X11/Xlib.h
32310 do
32311 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32312 { echo "$as_me:$LINENO: checking for $ac_header" >&5
32313 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
32314 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32315   echo $ECHO_N "(cached) $ECHO_C" >&6
32316 else
32317   cat >conftest.$ac_ext <<_ACEOF
32318 /* confdefs.h.  */
32319 _ACEOF
32320 cat confdefs.h >>conftest.$ac_ext
32321 cat >>conftest.$ac_ext <<_ACEOF
32322 /* end confdefs.h.  */
32323
32324
32325 #include <$ac_header>
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   eval "$as_ac_Header=yes"
32345 else
32346   echo "$as_me: failed program was:" >&5
32347 sed 's/^/| /' conftest.$ac_ext >&5
32348
32349         eval "$as_ac_Header=no"
32350 fi
32351
32352 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32353 fi
32354 ac_res=`eval echo '${'$as_ac_Header'}'`
32355                { echo "$as_me:$LINENO: result: $ac_res" >&5
32356 echo "${ECHO_T}$ac_res" >&6; }
32357 if test `eval echo '${'$as_ac_Header'}'` = yes; then
32358   cat >>confdefs.h <<_ACEOF
32359 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32360 _ACEOF
32361
32362 fi
32363
32364 done
32365
32366
32367 for ac_header in X11/XKBlib.h
32368 do
32369 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32370 { echo "$as_me:$LINENO: checking for $ac_header" >&5
32371 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
32372 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32373   echo $ECHO_N "(cached) $ECHO_C" >&6
32374 else
32375   cat >conftest.$ac_ext <<_ACEOF
32376 /* confdefs.h.  */
32377 _ACEOF
32378 cat confdefs.h >>conftest.$ac_ext
32379 cat >>conftest.$ac_ext <<_ACEOF
32380 /* end confdefs.h.  */
32381
32382                           #if HAVE_X11_XLIB_H
32383                             #include <X11/Xlib.h>
32384                           #endif
32385
32386
32387 #include <$ac_header>
32388 _ACEOF
32389 rm -f conftest.$ac_objext
32390 if { (ac_try="$ac_compile"
32391 case "(($ac_try" in
32392   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32393   *) ac_try_echo=$ac_try;;
32394 esac
32395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32396   (eval "$ac_compile") 2>conftest.er1
32397   ac_status=$?
32398   grep -v '^ *+' conftest.er1 >conftest.err
32399   rm -f conftest.er1
32400   cat conftest.err >&5
32401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32402   (exit $ac_status); } && {
32403          test -z "$ac_c_werror_flag" ||
32404          test ! -s conftest.err
32405        } && test -s conftest.$ac_objext; then
32406   eval "$as_ac_Header=yes"
32407 else
32408   echo "$as_me: failed program was:" >&5
32409 sed 's/^/| /' conftest.$ac_ext >&5
32410
32411         eval "$as_ac_Header=no"
32412 fi
32413
32414 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32415 fi
32416 ac_res=`eval echo '${'$as_ac_Header'}'`
32417                { echo "$as_me:$LINENO: result: $ac_res" >&5
32418 echo "${ECHO_T}$ac_res" >&6; }
32419 if test `eval echo '${'$as_ac_Header'}'` = yes; then
32420   cat >>confdefs.h <<_ACEOF
32421 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32422 _ACEOF
32423
32424 fi
32425
32426 done
32427
32428     fi
32429 fi
32430
32431
32432
32433 if test "$wxUSE_DISPLAY" = "yes"; then
32434     if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1; then
32435         { echo "$as_me:$LINENO: checking for Xinerama" >&5
32436 echo $ECHO_N "checking for Xinerama... $ECHO_C" >&6; }
32437
32438   ac_find_libraries=
32439   for ac_dir in $SEARCH_LIB;
32440   do
32441     for ac_extension in a so sl dylib dll.a; do
32442       if test -f "$ac_dir/libXinerama.$ac_extension"; then
32443         ac_find_libraries=$ac_dir
32444         break 2
32445       fi
32446     done
32447   done
32448
32449         if test "$ac_find_libraries" != "" ; then
32450
32451     if test "$ac_find_libraries" = "default location"; then
32452     ac_path_to_link=""
32453   else
32454     echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
32455     result=$?
32456     if test $result = 0; then
32457       ac_path_to_link=""
32458     else
32459       ac_path_to_link=" -L$ac_find_libraries"
32460     fi
32461   fi
32462
32463             if test "$ac_path_to_link" != " -L/usr/lib" ; then
32464                 LDFLAGS="$LDFLAGS $ac_path_to_link"
32465             fi
32466             GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXinerama"
32467             { echo "$as_me:$LINENO: result: yes" >&5
32468 echo "${ECHO_T}yes" >&6; }
32469
32470             { echo "$as_me:$LINENO: checking for Xxf86vm extension" >&5
32471 echo $ECHO_N "checking for Xxf86vm extension... $ECHO_C" >&6; }
32472
32473   ac_find_libraries=
32474   for ac_dir in $SEARCH_LIB;
32475   do
32476     for ac_extension in a so sl dylib dll.a; do
32477       if test -f "$ac_dir/libXxf86vm.$ac_extension"; then
32478         ac_find_libraries=$ac_dir
32479         break 2
32480       fi
32481     done
32482   done
32483
32484             if test "$ac_find_libraries" != "" ; then
32485                 { echo "$as_me:$LINENO: result: yes" >&5
32486 echo "${ECHO_T}yes" >&6; }
32487
32488 for ac_header in X11/extensions/xf86vmode.h
32489 do
32490 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32491 { echo "$as_me:$LINENO: checking for $ac_header" >&5
32492 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
32493 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32494   echo $ECHO_N "(cached) $ECHO_C" >&6
32495 else
32496   cat >conftest.$ac_ext <<_ACEOF
32497 /* confdefs.h.  */
32498 _ACEOF
32499 cat confdefs.h >>conftest.$ac_ext
32500 cat >>conftest.$ac_ext <<_ACEOF
32501 /* end confdefs.h.  */
32502
32503                                       #if HAVE_X11_XLIB_H
32504                                         #include <X11/Xlib.h>
32505                                       #endif
32506
32507
32508 #include <$ac_header>
32509 _ACEOF
32510 rm -f conftest.$ac_objext
32511 if { (ac_try="$ac_compile"
32512 case "(($ac_try" in
32513   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32514   *) ac_try_echo=$ac_try;;
32515 esac
32516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32517   (eval "$ac_compile") 2>conftest.er1
32518   ac_status=$?
32519   grep -v '^ *+' conftest.er1 >conftest.err
32520   rm -f conftest.er1
32521   cat conftest.err >&5
32522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32523   (exit $ac_status); } && {
32524          test -z "$ac_c_werror_flag" ||
32525          test ! -s conftest.err
32526        } && test -s conftest.$ac_objext; then
32527   eval "$as_ac_Header=yes"
32528 else
32529   echo "$as_me: failed program was:" >&5
32530 sed 's/^/| /' conftest.$ac_ext >&5
32531
32532         eval "$as_ac_Header=no"
32533 fi
32534
32535 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32536 fi
32537 ac_res=`eval echo '${'$as_ac_Header'}'`
32538                { echo "$as_me:$LINENO: result: $ac_res" >&5
32539 echo "${ECHO_T}$ac_res" >&6; }
32540 if test `eval echo '${'$as_ac_Header'}'` = yes; then
32541   cat >>confdefs.h <<_ACEOF
32542 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32543 _ACEOF
32544
32545                                   GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXxf86vm"
32546
32547 fi
32548
32549 done
32550
32551             else
32552                 { echo "$as_me:$LINENO: result: no" >&5
32553 echo "${ECHO_T}no" >&6; }
32554             fi
32555
32556         else
32557             { echo "$as_me:$LINENO: result: no" >&5
32558 echo "${ECHO_T}no" >&6; }
32559             { echo "$as_me:$LINENO: WARNING: Xinerama not found; disabling wxDisplay" >&5
32560 echo "$as_me: WARNING: Xinerama not found; disabling wxDisplay" >&2;}
32561             wxUSE_DISPLAY="no"
32562         fi
32563     elif test "$wxUSE_MSW" = 1; then
32564         { echo "$as_me:$LINENO: checking for ddraw.h" >&5
32565 echo $ECHO_N "checking for ddraw.h... $ECHO_C" >&6; }
32566 if test "${ac_cv_header_ddraw_h+set}" = set; then
32567   echo $ECHO_N "(cached) $ECHO_C" >&6
32568 else
32569   cat >conftest.$ac_ext <<_ACEOF
32570 /* confdefs.h.  */
32571 _ACEOF
32572 cat confdefs.h >>conftest.$ac_ext
32573 cat >>conftest.$ac_ext <<_ACEOF
32574 /* end confdefs.h.  */
32575 #include <windows.h>
32576
32577 #include <ddraw.h>
32578 _ACEOF
32579 rm -f conftest.$ac_objext
32580 if { (ac_try="$ac_compile"
32581 case "(($ac_try" in
32582   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32583   *) ac_try_echo=$ac_try;;
32584 esac
32585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32586   (eval "$ac_compile") 2>conftest.er1
32587   ac_status=$?
32588   grep -v '^ *+' conftest.er1 >conftest.err
32589   rm -f conftest.er1
32590   cat conftest.err >&5
32591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32592   (exit $ac_status); } && {
32593          test -z "$ac_c_werror_flag" ||
32594          test ! -s conftest.err
32595        } && test -s conftest.$ac_objext; then
32596   ac_cv_header_ddraw_h=yes
32597 else
32598   echo "$as_me: failed program was:" >&5
32599 sed 's/^/| /' conftest.$ac_ext >&5
32600
32601         ac_cv_header_ddraw_h=no
32602 fi
32603
32604 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32605 fi
32606 { echo "$as_me:$LINENO: result: $ac_cv_header_ddraw_h" >&5
32607 echo "${ECHO_T}$ac_cv_header_ddraw_h" >&6; }
32608
32609
32610     fi
32611 fi
32612
32613 if test "$wxUSE_DETECT_SM" = "yes"; then
32614     if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1; then
32615         { echo "$as_me:$LINENO: checking for -lSM - X11 session management" >&5
32616 echo $ECHO_N "checking for -lSM - X11 session management... $ECHO_C" >&6; }
32617
32618   ac_find_libraries=
32619   for ac_dir in $SEARCH_LIB;
32620   do
32621     for ac_extension in a so sl dylib dll.a; do
32622       if test -f "$ac_dir/libSM.$ac_extension"; then
32623         ac_find_libraries=$ac_dir
32624         break 2
32625       fi
32626     done
32627   done
32628
32629         if test "$ac_find_libraries" != "" ; then
32630
32631     if test "$ac_find_libraries" = "default location"; then
32632     ac_path_to_link=""
32633   else
32634     echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
32635     result=$?
32636     if test $result = 0; then
32637       ac_path_to_link=""
32638     else
32639       ac_path_to_link=" -L$ac_find_libraries"
32640     fi
32641   fi
32642
32643             if test "$ac_path_to_link" != " -L/usr/lib" ; then
32644                 LDFLAGS="$LDFLAGS $ac_path_to_link"
32645             fi
32646             GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lSM"
32647             { echo "$as_me:$LINENO: result: yes" >&5
32648 echo "${ECHO_T}yes" >&6; }
32649         else
32650             { echo "$as_me:$LINENO: result: no" >&5
32651 echo "${ECHO_T}no" >&6; }
32652             { echo "$as_me:$LINENO: WARNING: libSM not found; disabling session management detection" >&5
32653 echo "$as_me: WARNING: libSM not found; disabling session management detection" >&2;}
32654             wxUSE_DETECT_SM="no"
32655         fi
32656     else
32657         wxUSE_DETECT_SM="no"
32658     fi
32659 fi
32660
32661
32662
32663 USE_OPENGL=0
32664 if test "$wxUSE_OPENGL" = "yes"; then
32665     if test "$wxUSE_MGL" = 1 -o "$wxUSE_DFB" = 1; then
32666         { echo "$as_me:$LINENO: WARNING: wxGLCanvas not implemented for this port, library will be compiled without it." >&5
32667 echo "$as_me: WARNING: wxGLCanvas not implemented for this port, library will be compiled without it." >&2;}
32668         wxUSE_OPENGL="no"
32669     elif test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1; then
32670         OPENGL_LIBS="-framework OpenGL -framework AGL"
32671     elif test "$wxUSE_MSW" = 1; then
32672         OPENGL_LIBS="-lopengl32 -lglu32"
32673     else
32674                         { echo "$as_me:$LINENO: checking for OpenGL headers" >&5
32675 echo $ECHO_N "checking for OpenGL headers... $ECHO_C" >&6; }
32676
32677 ac_find_includes=
32678 for ac_dir in $SEARCH_INCLUDE /opt/graphics/OpenGL/include /usr/include;
32679   do
32680     if test -f "$ac_dir/GL/gl.h"; then
32681       ac_find_includes=$ac_dir
32682       break
32683     fi
32684   done
32685
32686         if test "$ac_find_includes" != "" ; then
32687             { echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
32688 echo "${ECHO_T}found in $ac_find_includes" >&6; }
32689
32690     if test "x$ac_find_includes" = "x/usr/include"; then
32691     ac_path_to_include=""
32692   else
32693     echo "$CPPFLAGS" | grep "\-I$ac_find_includes" > /dev/null
32694     result=$?
32695     if test $result = 0; then
32696       ac_path_to_include=""
32697     else
32698       ac_path_to_include=" -I$ac_find_includes"
32699     fi
32700   fi
32701
32702             CPPFLAGS="$ac_path_to_include $CPPFLAGS"
32703         else
32704             { echo "$as_me:$LINENO: result: not found" >&5
32705 echo "${ECHO_T}not found" >&6; }
32706         fi
32707
32708         { echo "$as_me:$LINENO: checking for GL/gl.h" >&5
32709 echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6; }
32710 if test "${ac_cv_header_GL_gl_h+set}" = set; then
32711   echo $ECHO_N "(cached) $ECHO_C" >&6
32712 else
32713   cat >conftest.$ac_ext <<_ACEOF
32714 /* confdefs.h.  */
32715 _ACEOF
32716 cat confdefs.h >>conftest.$ac_ext
32717 cat >>conftest.$ac_ext <<_ACEOF
32718 /* end confdefs.h.  */
32719
32720
32721 #include <GL/gl.h>
32722 _ACEOF
32723 rm -f conftest.$ac_objext
32724 if { (ac_try="$ac_compile"
32725 case "(($ac_try" in
32726   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32727   *) ac_try_echo=$ac_try;;
32728 esac
32729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32730   (eval "$ac_compile") 2>conftest.er1
32731   ac_status=$?
32732   grep -v '^ *+' conftest.er1 >conftest.err
32733   rm -f conftest.er1
32734   cat conftest.err >&5
32735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32736   (exit $ac_status); } && {
32737          test -z "$ac_c_werror_flag" ||
32738          test ! -s conftest.err
32739        } && test -s conftest.$ac_objext; then
32740   ac_cv_header_GL_gl_h=yes
32741 else
32742   echo "$as_me: failed program was:" >&5
32743 sed 's/^/| /' conftest.$ac_ext >&5
32744
32745         ac_cv_header_GL_gl_h=no
32746 fi
32747
32748 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32749 fi
32750 { echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
32751 echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6; }
32752 if test $ac_cv_header_GL_gl_h = yes; then
32753
32754             { echo "$as_me:$LINENO: checking for GL/glu.h" >&5
32755 echo $ECHO_N "checking for GL/glu.h... $ECHO_C" >&6; }
32756 if test "${ac_cv_header_GL_glu_h+set}" = set; then
32757   echo $ECHO_N "(cached) $ECHO_C" >&6
32758 else
32759   cat >conftest.$ac_ext <<_ACEOF
32760 /* confdefs.h.  */
32761 _ACEOF
32762 cat confdefs.h >>conftest.$ac_ext
32763 cat >>conftest.$ac_ext <<_ACEOF
32764 /* end confdefs.h.  */
32765
32766
32767 #include <GL/glu.h>
32768 _ACEOF
32769 rm -f conftest.$ac_objext
32770 if { (ac_try="$ac_compile"
32771 case "(($ac_try" in
32772   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32773   *) ac_try_echo=$ac_try;;
32774 esac
32775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32776   (eval "$ac_compile") 2>conftest.er1
32777   ac_status=$?
32778   grep -v '^ *+' conftest.er1 >conftest.err
32779   rm -f conftest.er1
32780   cat conftest.err >&5
32781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32782   (exit $ac_status); } && {
32783          test -z "$ac_c_werror_flag" ||
32784          test ! -s conftest.err
32785        } && test -s conftest.$ac_objext; then
32786   ac_cv_header_GL_glu_h=yes
32787 else
32788   echo "$as_me: failed program was:" >&5
32789 sed 's/^/| /' conftest.$ac_ext >&5
32790
32791         ac_cv_header_GL_glu_h=no
32792 fi
32793
32794 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32795 fi
32796 { echo "$as_me:$LINENO: result: $ac_cv_header_GL_glu_h" >&5
32797 echo "${ECHO_T}$ac_cv_header_GL_glu_h" >&6; }
32798 if test $ac_cv_header_GL_glu_h = yes; then
32799
32800                 found_gl=0
32801
32802                 { echo "$as_me:$LINENO: checking for -lGL" >&5
32803 echo $ECHO_N "checking for -lGL... $ECHO_C" >&6; }
32804
32805   ac_find_libraries=
32806   for ac_dir in $SEARCH_LIB /opt/graphics/OpenGL/lib;
32807   do
32808     for ac_extension in a so sl dylib dll.a; do
32809       if test -f "$ac_dir/libGL.$ac_extension"; then
32810         ac_find_libraries=$ac_dir
32811         break 2
32812       fi
32813     done
32814   done
32815
32816                 if test "$ac_find_libraries" != "" ; then
32817                     { echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
32818 echo "${ECHO_T}found in $ac_find_libraries" >&6; }
32819
32820
32821     if test "$ac_find_libraries" = "default location"; then
32822     ac_path_to_link=""
32823   else
32824     echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
32825     result=$?
32826     if test $result = 0; then
32827       ac_path_to_link=""
32828     else
32829       ac_path_to_link=" -L$ac_find_libraries"
32830     fi
32831   fi
32832
32833                     if test "$ac_path_to_link" != " -L/usr/lib" ; then
32834                         LDFLAGS_GL="$ac_path_to_link"
32835                     fi
32836
32837                                                                                 { echo "$as_me:$LINENO: checking for -lGLU" >&5
32838 echo $ECHO_N "checking for -lGLU... $ECHO_C" >&6; }
32839
32840   ac_find_libraries=
32841   for ac_dir in $SEARCH_LIB;
32842   do
32843     for ac_extension in a so sl dylib dll.a; do
32844       if test -f "$ac_dir/libGLU.$ac_extension"; then
32845         ac_find_libraries=$ac_dir
32846         break 2
32847       fi
32848     done
32849   done
32850
32851                     if test "$ac_find_libraries" != "" ; then
32852
32853     if test "$ac_find_libraries" = "default location"; then
32854     ac_path_to_link=""
32855   else
32856     echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
32857     result=$?
32858     if test $result = 0; then
32859       ac_path_to_link=""
32860     else
32861       ac_path_to_link=" -L$ac_find_libraries"
32862     fi
32863   fi
32864
32865                         if test "$ac_path_to_link" != " -L/usr/lib" -a \
32866                                     "$ac_path_to_link" != "$LDFLAGS_GL"; then
32867                             LDFLAGS_GL="$LDFLAGS_GL$ac_path_to_link"
32868                         fi
32869
32870                         found_gl=1
32871                         OPENGL_LIBS="-lGL -lGLU"
32872                         { echo "$as_me:$LINENO: result: yes" >&5
32873 echo "${ECHO_T}yes" >&6; }
32874                     else
32875                         { echo "$as_me:$LINENO: result: no" >&5
32876 echo "${ECHO_T}no" >&6; }
32877                     fi
32878                 else
32879                     { echo "$as_me:$LINENO: result: no" >&5
32880 echo "${ECHO_T}no" >&6; }
32881                 fi
32882
32883                 if test "$found_gl" != 1; then
32884                     { echo "$as_me:$LINENO: checking for -lMesaGL" >&5
32885 echo $ECHO_N "checking for -lMesaGL... $ECHO_C" >&6; }
32886
32887   ac_find_libraries=
32888   for ac_dir in $SEARCH_LIB;
32889   do
32890     for ac_extension in a so sl dylib dll.a; do
32891       if test -f "$ac_dir/libMesaGL.$ac_extension"; then
32892         ac_find_libraries=$ac_dir
32893         break 2
32894       fi
32895     done
32896   done
32897
32898                     if test "$ac_find_libraries" != "" ; then
32899
32900     if test "$ac_find_libraries" = "default location"; then
32901     ac_path_to_link=""
32902   else
32903     echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
32904     result=$?
32905     if test $result = 0; then
32906       ac_path_to_link=""
32907     else
32908       ac_path_to_link=" -L$ac_find_libraries"
32909     fi
32910   fi
32911
32912                         LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
32913                         OPENGL_LIBS="-lMesaGL -lMesaGLU"
32914                         { echo "$as_me:$LINENO: result: yes" >&5
32915 echo "${ECHO_T}yes" >&6; }
32916                     else
32917                         { echo "$as_me:$LINENO: result: no" >&5
32918 echo "${ECHO_T}no" >&6; }
32919                     fi
32920                 fi
32921
32922 fi
32923
32924
32925
32926 fi
32927
32928
32929
32930         if test "x$OPENGL_LIBS" = "x"; then
32931                                                 { { echo "$as_me:$LINENO: error: OpenGL libraries not available" >&5
32932 echo "$as_me: error: OpenGL libraries not available" >&2;}
32933    { (exit 1); exit 1; }; }
32934         fi
32935     fi
32936
32937     if test "$wxUSE_OPENGL" = "yes"; then
32938         USE_OPENGL=1
32939         cat >>confdefs.h <<\_ACEOF
32940 #define wxUSE_OPENGL 1
32941 _ACEOF
32942
32943         cat >>confdefs.h <<\_ACEOF
32944 #define wxUSE_GLCANVAS 1
32945 _ACEOF
32946
32947         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl opengl/cube opengl/penguin opengl/isosurf"
32948     fi
32949 fi
32950
32951
32952 if test -n "$TOOLKIT" ; then
32953     TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__"
32954 fi
32955
32956
32957
32958 if test "$wxUSE_SHARED" = "yes"; then
32959     case "${host}" in
32960       *-pc-msdosdjgpp )
32961                 wxUSE_SHARED=no
32962         { echo "$as_me:$LINENO: WARNING: Host system doesn't support shared libraries, disabling" >&5
32963 echo "$as_me: WARNING: Host system doesn't support shared libraries, disabling" >&2;}
32964       ;;
32965     esac
32966 fi
32967
32968 if test "$wxUSE_SHARED" = "yes"; then
32969
32970
32971     case "${host}" in
32972         *-*-cygwin* | *-*-mingw* )
32973                                                                                                 wx_cv_version_script=no
32974             ;;
32975
32976         *)
32977             { echo "$as_me:$LINENO: checking if the linker accepts --version-script" >&5
32978 echo $ECHO_N "checking if the linker accepts --version-script... $ECHO_C" >&6; }
32979 if test "${wx_cv_version_script+set}" = set; then
32980   echo $ECHO_N "(cached) $ECHO_C" >&6
32981 else
32982
32983                 echo "VER_1 { *; };" >conftest.sym
32984                 echo "int main() { return 0; }" >conftest.cpp
32985
32986                 if { ac_try='
32987                         $CXX -o conftest.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
32988                         -Wl,--version-script,conftest.sym >/dev/null 2>conftest.stderr'
32989   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32990   (eval $ac_try) 2>&5
32991   ac_status=$?
32992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32993   (exit $ac_status); }; } ; then
32994                   if test -s conftest.stderr ; then
32995                       wx_cv_version_script=no
32996                   else
32997                       wx_cv_version_script=yes
32998                   fi
32999                 else
33000                   wx_cv_version_script=no
33001                 fi
33002
33003                                                                                                                                                                                                 if test $wx_cv_version_script = yes
33004                 then
33005                   echo "struct B { virtual ~B() { } }; \
33006                         struct D : public B { }; \
33007                         void F() { D d; }" > conftest.cpp
33008
33009                   if { ac_try='
33010                         $CXX -shared -fPIC -o conftest1.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
33011                         -Wl,--version-script,conftest.sym >/dev/null 2>/dev/null'
33012   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33013   (eval $ac_try) 2>&5
33014   ac_status=$?
33015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33016   (exit $ac_status); }; } &&
33017                      { ac_try='
33018                         $CXX -shared -fPIC -o conftest2.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
33019                         -Wl,--version-script,conftest.sym conftest1.output >/dev/null 2>/dev/null'
33020   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33021   (eval $ac_try) 2>&5
33022   ac_status=$?
33023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33024   (exit $ac_status); }; }
33025                   then
33026                     if { ac_try='
33027                           $CXX -shared -fPIC -o conftest3.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
33028                           -Wl,--version-script,conftest.sym conftest2.output conftest1.output >/dev/null 2>/dev/null'
33029   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33030   (eval $ac_try) 2>&5
33031   ac_status=$?
33032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33033   (exit $ac_status); }; }
33034                     then
33035                       wx_cv_version_script=yes
33036                     else
33037                       wx_cv_version_script=no
33038                     fi
33039                   fi
33040                 fi
33041
33042                 rm -f conftest.output conftest.stderr conftest.sym conftest.cpp
33043                 rm -f conftest1.output conftest2.output conftest3.output
33044
33045 fi
33046 { echo "$as_me:$LINENO: result: $wx_cv_version_script" >&5
33047 echo "${ECHO_T}$wx_cv_version_script" >&6; }
33048
33049             if test $wx_cv_version_script = yes ; then
33050                 LDFLAGS_VERSIONING="-Wl,--version-script,\$(wx_top_builddir)/version-script"
33051             fi
33052             ;;
33053     esac
33054
33055
33056             if test "$wxUSE_VISIBILITY" != "no"; then
33057
33058
33059   if test -n "$GCC"; then
33060     CFLAGS_VISIBILITY="-fvisibility=hidden"
33061     CXXFLAGS_VISIBILITY="-fvisibility=hidden -fvisibility-inlines-hidden"
33062     { echo "$as_me:$LINENO: checking for symbols visibility support" >&5
33063 echo $ECHO_N "checking for symbols visibility support... $ECHO_C" >&6; }
33064     if test "${wx_cv_cc_visibility+set}" = set; then
33065   echo $ECHO_N "(cached) $ECHO_C" >&6
33066 else
33067
33068       wx_save_CXXFLAGS="$CXXFLAGS"
33069       CXXFLAGS="$CXXFLAGS $CXXFLAGS_VISIBILITY"
33070       ac_ext=cpp
33071 ac_cpp='$CXXCPP $CPPFLAGS'
33072 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33073 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33074 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33075
33076       cat >conftest.$ac_ext <<_ACEOF
33077 /* confdefs.h.  */
33078 _ACEOF
33079 cat confdefs.h >>conftest.$ac_ext
33080 cat >>conftest.$ac_ext <<_ACEOF
33081 /* end confdefs.h.  */
33082
33083          /* we need gcc >= 4.0, older versions with visibility support
33084             didn't have class visibility: */
33085          #if defined(__GNUC__) && __GNUC__ < 4
33086          error this gcc is too old;
33087          #endif
33088
33089          /* visibility only makes sense for ELF shared libs: */
33090          #if !defined(__ELF__) && !defined(__APPLE__)
33091          error this platform has no visibility;
33092          #endif
33093
33094          extern __attribute__((__visibility__("hidden"))) int hiddenvar;
33095          extern __attribute__((__visibility__("default"))) int exportedvar;
33096          extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void);
33097          extern __attribute__((__visibility__("default"))) int exportedfunc (void);
33098          class __attribute__((__visibility__("default"))) Foo {
33099            Foo() {}
33100          };
33101
33102 int
33103 main ()
33104 {
33105
33106   ;
33107   return 0;
33108 }
33109 _ACEOF
33110 rm -f conftest.$ac_objext
33111 if { (ac_try="$ac_compile"
33112 case "(($ac_try" in
33113   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33114   *) ac_try_echo=$ac_try;;
33115 esac
33116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33117   (eval "$ac_compile") 2>conftest.er1
33118   ac_status=$?
33119   grep -v '^ *+' conftest.er1 >conftest.err
33120   rm -f conftest.er1
33121   cat conftest.err >&5
33122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33123   (exit $ac_status); } && {
33124          test -z "$ac_cxx_werror_flag" ||
33125          test ! -s conftest.err
33126        } && test -s conftest.$ac_objext; then
33127   wx_cv_cc_visibility=yes
33128 else
33129   echo "$as_me: failed program was:" >&5
33130 sed 's/^/| /' conftest.$ac_ext >&5
33131
33132         wx_cv_cc_visibility=no
33133 fi
33134
33135 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33136       ac_ext=c
33137 ac_cpp='$CPP $CPPFLAGS'
33138 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33139 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33140 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33141
33142       CXXFLAGS="$wx_save_CXXFLAGS"
33143 fi
33144
33145     { echo "$as_me:$LINENO: result: $wx_cv_cc_visibility" >&5
33146 echo "${ECHO_T}$wx_cv_cc_visibility" >&6; }
33147     if test $wx_cv_cc_visibility = yes; then
33148                               { echo "$as_me:$LINENO: checking for broken libstdc++ visibility" >&5
33149 echo $ECHO_N "checking for broken libstdc++ visibility... $ECHO_C" >&6; }
33150       if test "${wx_cv_cc_broken_libstdcxx_visibility+set}" = set; then
33151   echo $ECHO_N "(cached) $ECHO_C" >&6
33152 else
33153
33154         wx_save_CXXFLAGS="$CXXFLAGS"
33155         wx_save_LDFLAGS="$LDFLAGS"
33156         CXXFLAGS="$CXXFLAGS $CXXFLAGS_VISIBILITY"
33157         LDFLAGS="$LDFLAGS -shared -fPIC"
33158         ac_ext=cpp
33159 ac_cpp='$CXXCPP $CPPFLAGS'
33160 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33161 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33162 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33163
33164         cat >conftest.$ac_ext <<_ACEOF
33165 /* confdefs.h.  */
33166 _ACEOF
33167 cat confdefs.h >>conftest.$ac_ext
33168 cat >>conftest.$ac_ext <<_ACEOF
33169 /* end confdefs.h.  */
33170
33171             #include <string>
33172
33173 int
33174 main ()
33175 {
33176
33177             std::string s("hello");
33178             return s.length();
33179
33180   ;
33181   return 0;
33182 }
33183 _ACEOF
33184 rm -f conftest.$ac_objext conftest$ac_exeext
33185 if { (ac_try="$ac_link"
33186 case "(($ac_try" in
33187   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33188   *) ac_try_echo=$ac_try;;
33189 esac
33190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33191   (eval "$ac_link") 2>conftest.er1
33192   ac_status=$?
33193   grep -v '^ *+' conftest.er1 >conftest.err
33194   rm -f conftest.er1
33195   cat conftest.err >&5
33196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33197   (exit $ac_status); } && {
33198          test -z "$ac_cxx_werror_flag" ||
33199          test ! -s conftest.err
33200        } && test -s conftest$ac_exeext &&
33201        $as_test_x conftest$ac_exeext; then
33202   wx_cv_cc_broken_libstdcxx_visibility=no
33203 else
33204   echo "$as_me: failed program was:" >&5
33205 sed 's/^/| /' conftest.$ac_ext >&5
33206
33207         wx_cv_cc_broken_libstdcxx_visibility=yes
33208 fi
33209
33210 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33211       conftest$ac_exeext conftest.$ac_ext
33212         ac_ext=c
33213 ac_cpp='$CPP $CPPFLAGS'
33214 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33215 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33216 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33217
33218         CXXFLAGS="$wx_save_CXXFLAGS"
33219         LDFLAGS="$wx_save_LDFLAGS"
33220 fi
33221
33222       { echo "$as_me:$LINENO: result: $wx_cv_cc_broken_libstdcxx_visibility" >&5
33223 echo "${ECHO_T}$wx_cv_cc_broken_libstdcxx_visibility" >&6; }
33224
33225       if test $wx_cv_cc_broken_libstdcxx_visibility = yes; then
33226         { echo "$as_me:$LINENO: checking whether we can work around it" >&5
33227 echo $ECHO_N "checking whether we can work around it... $ECHO_C" >&6; }
33228         if test "${wx_cv_cc_visibility_workaround+set}" = set; then
33229   echo $ECHO_N "(cached) $ECHO_C" >&6
33230 else
33231
33232           ac_ext=cpp
33233 ac_cpp='$CXXCPP $CPPFLAGS'
33234 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33235 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33236 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33237
33238           cat >conftest.$ac_ext <<_ACEOF
33239 /* confdefs.h.  */
33240 _ACEOF
33241 cat confdefs.h >>conftest.$ac_ext
33242 cat >>conftest.$ac_ext <<_ACEOF
33243 /* end confdefs.h.  */
33244
33245               #pragma GCC visibility push(default)
33246               #include <string>
33247               #pragma GCC visibility pop
33248
33249 int
33250 main ()
33251 {
33252
33253               std::string s("hello");
33254               return s.length();
33255
33256   ;
33257   return 0;
33258 }
33259 _ACEOF
33260 rm -f conftest.$ac_objext conftest$ac_exeext
33261 if { (ac_try="$ac_link"
33262 case "(($ac_try" in
33263   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33264   *) ac_try_echo=$ac_try;;
33265 esac
33266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33267   (eval "$ac_link") 2>conftest.er1
33268   ac_status=$?
33269   grep -v '^ *+' conftest.er1 >conftest.err
33270   rm -f conftest.er1
33271   cat conftest.err >&5
33272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33273   (exit $ac_status); } && {
33274          test -z "$ac_cxx_werror_flag" ||
33275          test ! -s conftest.err
33276        } && test -s conftest$ac_exeext &&
33277        $as_test_x conftest$ac_exeext; then
33278   wx_cv_cc_visibility_workaround=no
33279 else
33280   echo "$as_me: failed program was:" >&5
33281 sed 's/^/| /' conftest.$ac_ext >&5
33282
33283         wx_cv_cc_visibility_workaround=yes
33284 fi
33285
33286 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33287       conftest$ac_exeext conftest.$ac_ext
33288           ac_ext=c
33289 ac_cpp='$CPP $CPPFLAGS'
33290 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33291 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33292 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33293
33294
33295 fi
33296
33297         { echo "$as_me:$LINENO: result: $wx_cv_cc_visibility_workaround" >&5
33298 echo "${ECHO_T}$wx_cv_cc_visibility_workaround" >&6; }
33299
33300         if test $wx_cv_cc_visibility_workaround = no; then
33301                     wx_cv_cc_visibility=no
33302         fi
33303       fi
33304     fi
33305
33306     if test $wx_cv_cc_visibility = yes; then
33307       cat >>confdefs.h <<\_ACEOF
33308 #define HAVE_VISIBILITY 1
33309 _ACEOF
33310
33311       if test $wx_cv_cc_broken_libstdcxx_visibility = yes; then
33312         cat >>confdefs.h <<\_ACEOF
33313 #define HAVE_BROKEN_LIBSTDCXX_VISIBILITY 1
33314 _ACEOF
33315
33316       fi
33317     else
33318       CFLAGS_VISIBILITY=""
33319       CXXFLAGS_VISIBILITY=""
33320     fi
33321
33322
33323   fi
33324
33325     fi
33326
33327         if test "x$SUNCXX" = xyes; then
33328         SAMPLES_RPATH_FLAG="-R\$(wx_top_builddir)/lib"
33329         WXCONFIG_RPATH="-R\$libdir"
33330     else
33331     case "${host}" in
33332       *-*-linux* | *-*-gnu* )
33333         SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(wx_top_builddir)/lib"
33334         WXCONFIG_RPATH="-Wl,-rpath,\$libdir"
33335         ;;
33336
33337       *-*-solaris2* )
33338
33339                         CPPFLAGS="-isystem /usr/openwin/include $CPPFLAGS"
33340
33341                         saveLdflags="$LDFLAGS"
33342         LDFLAGS="$saveLdflags -Wl,-rpath,/"
33343         { echo "$as_me:$LINENO: checking if the linker accepts -rpath" >&5
33344 echo $ECHO_N "checking if the linker accepts -rpath... $ECHO_C" >&6; }
33345         cat >conftest.$ac_ext <<_ACEOF
33346 /* confdefs.h.  */
33347 _ACEOF
33348 cat confdefs.h >>conftest.$ac_ext
33349 cat >>conftest.$ac_ext <<_ACEOF
33350 /* end confdefs.h.  */
33351
33352 int
33353 main ()
33354 {
33355
33356   ;
33357   return 0;
33358 }
33359 _ACEOF
33360 rm -f conftest.$ac_objext conftest$ac_exeext
33361 if { (ac_try="$ac_link"
33362 case "(($ac_try" in
33363   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33364   *) ac_try_echo=$ac_try;;
33365 esac
33366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33367   (eval "$ac_link") 2>conftest.er1
33368   ac_status=$?
33369   grep -v '^ *+' conftest.er1 >conftest.err
33370   rm -f conftest.er1
33371   cat conftest.err >&5
33372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33373   (exit $ac_status); } && {
33374          test -z "$ac_c_werror_flag" ||
33375          test ! -s conftest.err
33376        } && test -s conftest$ac_exeext &&
33377        $as_test_x conftest$ac_exeext; then
33378
33379                 { echo "$as_me:$LINENO: result: yes" >&5
33380 echo "${ECHO_T}yes" >&6; }
33381                 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(wx_top_builddir)/lib"
33382                 WXCONFIG_RPATH="-Wl,-rpath,\$libdir"
33383
33384 else
33385   echo "$as_me: failed program was:" >&5
33386 sed 's/^/| /' conftest.$ac_ext >&5
33387
33388
33389                 { echo "$as_me:$LINENO: result: no" >&5
33390 echo "${ECHO_T}no" >&6; }
33391                 { echo "$as_me:$LINENO: checking if the linker accepts -R" >&5
33392 echo $ECHO_N "checking if the linker accepts -R... $ECHO_C" >&6; }
33393                 LDFLAGS="$saveLdflags -Wl,-R,/"
33394                 cat >conftest.$ac_ext <<_ACEOF
33395 /* confdefs.h.  */
33396 _ACEOF
33397 cat confdefs.h >>conftest.$ac_ext
33398 cat >>conftest.$ac_ext <<_ACEOF
33399 /* end confdefs.h.  */
33400
33401 int
33402 main ()
33403 {
33404
33405   ;
33406   return 0;
33407 }
33408 _ACEOF
33409 rm -f conftest.$ac_objext conftest$ac_exeext
33410 if { (ac_try="$ac_link"
33411 case "(($ac_try" in
33412   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33413   *) ac_try_echo=$ac_try;;
33414 esac
33415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33416   (eval "$ac_link") 2>conftest.er1
33417   ac_status=$?
33418   grep -v '^ *+' conftest.er1 >conftest.err
33419   rm -f conftest.er1
33420   cat conftest.err >&5
33421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33422   (exit $ac_status); } && {
33423          test -z "$ac_c_werror_flag" ||
33424          test ! -s conftest.err
33425        } && test -s conftest$ac_exeext &&
33426        $as_test_x conftest$ac_exeext; then
33427
33428                         { echo "$as_me:$LINENO: result: yes" >&5
33429 echo "${ECHO_T}yes" >&6; }
33430                         SAMPLES_RPATH_FLAG="-Wl,-R,\$(wx_top_builddir)/lib"
33431                         WXCONFIG_RPATH="-Wl,-R,\$libdir"
33432
33433 else
33434   echo "$as_me: failed program was:" >&5
33435 sed 's/^/| /' conftest.$ac_ext >&5
33436
33437
33438                         { echo "$as_me:$LINENO: result: no" >&5
33439 echo "${ECHO_T}no" >&6; }
33440
33441 fi
33442
33443 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33444       conftest$ac_exeext conftest.$ac_ext
33445
33446 fi
33447
33448 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33449       conftest$ac_exeext conftest.$ac_ext
33450         LDFLAGS="$saveLdflags"
33451       ;;
33452
33453       *-*-darwin* )
33454         install_name_tool=`which install_name_tool`
33455         if test "$install_name_tool" -a -x "$install_name_tool"; then
33456             SAMPLES_RPATH_POSTLINK="\$(wx_top_builddir)/change-install-names \$(LIBDIRNAME) \$(prefix) \$@"
33457             cat <<EOF >change-install-names
33458 #!/bin/sh
33459 libnames=\`cd \${1} ; ls -1 | grep '\.[0-9][0-9]*\.dylib\$'\`
33460 inst_cmd="install_name_tool "
33461 for i in \${libnames} ; do
33462     inst_cmd="\${inst_cmd} -change \${2}/lib/\${i} \${1}/\${i}"
33463 done
33464 \${inst_cmd} \${3}
33465 EOF
33466             chmod +x change-install-names
33467         fi
33468       ;;
33469
33470       *-*-cygwin* | *-*-mingw32* )
33471         ;;
33472
33473       *-*-hpux* )
33474         SAMPLES_RPATH_FLAG="-Wl,+b,\$(wx_top_builddir)/lib"
33475         WXCONFIG_RPATH="-Wl,+b,\$libdir"
33476         ;;
33477
33478     esac
33479     fi
33480
33481             WXCONFIG_ONLY_CPPFLAGS="$WXCONFIG_ONLY_CPPFLAGS -DWXUSINGDLL"
33482
33483     if test $wxUSE_RPATH = "no"; then
33484         SAMPLES_RPATH_FLAG=''
33485         SAMPLES_RPATH_POSTLINK=''
33486         WXCONFIG_RPATH=''
33487     fi
33488
33489     SHARED=1
33490
33491 else
33492
33493     config_linkage_component="-static"
33494     SHARED=0
33495
33496 fi
33497
33498
33499 UNICODE=0
33500 lib_unicode_suffix=
33501 WX_CHARTYPE="ansi"
33502 if test "$wxUSE_UNICODE" = "yes"; then
33503     lib_unicode_suffix=u
33504     WX_CHARTYPE="unicode"
33505     UNICODE=1
33506 fi
33507
33508 lib_debug_suffix=
33509 WX_DEBUGTYPE="release"
33510 DEBUG_FLAG=0
33511 if test "$wxUSE_DEBUG_FLAG" = "yes"; then
33512     lib_debug_suffix=d
33513     WX_DEBUGTYPE="debug"
33514     DEBUG_FLAG=1
33515 fi
33516
33517 WX_FLAVOUR=${WX_FLAVOUR:+-$WX_FLAVOUR}
33518 WX_LIB_FLAVOUR=`echo $WX_FLAVOUR | tr '-' '_'`
33519
33520 DEBUG_INFO=0
33521 if test "$wxUSE_DEBUG_INFO" = "yes"; then
33522     DEBUG_INFO=1
33523 fi
33524
33525 WX_VERSION_TAG=`echo WX${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}_${WX_RELEASE} | tr '[a-z]' '[A-Z]'`
33526
33527 TOOLCHAIN_NAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}"
33528
33529 TOOLCHAIN_FULLNAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}-${WX_CHARTYPE}-${WX_DEBUGTYPE}${config_linkage_component}-${WX_RELEASE}${WX_FLAVOUR}"
33530
33531 if test "$cross_compiling" = "yes"; then
33532     HOST_SUFFIX="-$host_alias"
33533     TOOLCHAIN_NAME="$TOOLCHAIN_NAME$HOST_SUFFIX"
33534     TOOLCHAIN_FULLNAME="${host_alias}-$TOOLCHAIN_FULLNAME"
33535 fi
33536
33537 WX_LIBRARY_BASENAME_NOGUI="wx_base${WXBASEPORT}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
33538 if test "${TOOLKIT_DIR}" = "os2"; then
33539     WX_LIBRARY_BASENAME_GUI="wx_pm${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
33540 else
33541     WX_LIBRARY_BASENAME_GUI="wx_${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
33542 fi
33543
33544
33545
33546 if test "$wxUSE_COCOA" = 1; then
33547
33548     ac_ext=c
33549 ac_cpp='$CPP $CPPFLAGS'
33550 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33551 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33552 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33553
33554 ac_ext=m
33555
33556     { echo "$as_me:$LINENO: checking if AppKit/NSEvent.h conflicts with CoreFoundation" >&5
33557 echo $ECHO_N "checking if AppKit/NSEvent.h conflicts with CoreFoundation... $ECHO_C" >&6; }
33558     cat >conftest.$ac_ext <<_ACEOF
33559 /* confdefs.h.  */
33560 _ACEOF
33561 cat confdefs.h >>conftest.$ac_ext
33562 cat >>conftest.$ac_ext <<_ACEOF
33563 /* end confdefs.h.  */
33564 #include <AppKit/NSEvent.h>
33565 #include <CoreFoundation/CoreFoundation.h>
33566
33567 int
33568 main ()
33569 {
33570
33571   ;
33572   return 0;
33573 }
33574 _ACEOF
33575 rm -f conftest.$ac_objext
33576 if { (ac_try="$ac_compile"
33577 case "(($ac_try" in
33578   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33579   *) ac_try_echo=$ac_try;;
33580 esac
33581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33582   (eval "$ac_compile") 2>conftest.er1
33583   ac_status=$?
33584   grep -v '^ *+' conftest.er1 >conftest.err
33585   rm -f conftest.er1
33586   cat conftest.err >&5
33587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33588   (exit $ac_status); } && {
33589          test -z "$ac_c_werror_flag" ||
33590          test ! -s conftest.err
33591        } && test -s conftest.$ac_objext; then
33592   { echo "$as_me:$LINENO: result: no" >&5
33593 echo "${ECHO_T}no" >&6; }
33594 else
33595   echo "$as_me: failed program was:" >&5
33596 sed 's/^/| /' conftest.$ac_ext >&5
33597
33598         { echo "$as_me:$LINENO: result: yes" >&5
33599 echo "${ECHO_T}yes" >&6; }
33600         { echo "$as_me:$LINENO: checking if defining __Point__ will fix it" >&5
33601 echo $ECHO_N "checking if defining __Point__ will fix it... $ECHO_C" >&6; }
33602         cat >conftest.$ac_ext <<_ACEOF
33603 /* confdefs.h.  */
33604 _ACEOF
33605 cat confdefs.h >>conftest.$ac_ext
33606 cat >>conftest.$ac_ext <<_ACEOF
33607 /* end confdefs.h.  */
33608 #define __Point__ 1
33609 #include <AppKit/NSEvent.h>
33610 #include <CoreFoundation/CoreFoundation.h>
33611
33612 int
33613 main ()
33614 {
33615
33616   ;
33617   return 0;
33618 }
33619 _ACEOF
33620 rm -f conftest.$ac_objext
33621 if { (ac_try="$ac_compile"
33622 case "(($ac_try" in
33623   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33624   *) ac_try_echo=$ac_try;;
33625 esac
33626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33627   (eval "$ac_compile") 2>conftest.er1
33628   ac_status=$?
33629   grep -v '^ *+' conftest.er1 >conftest.err
33630   rm -f conftest.er1
33631   cat conftest.err >&5
33632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33633   (exit $ac_status); } && {
33634          test -z "$ac_c_werror_flag" ||
33635          test ! -s conftest.err
33636        } && test -s conftest.$ac_objext; then
33637   { echo "$as_me:$LINENO: result: yes" >&5
33638 echo "${ECHO_T}yes" >&6; }
33639             cat >>confdefs.h <<\_ACEOF
33640 #define __Point__ 1
33641 _ACEOF
33642
33643
33644 else
33645   echo "$as_me: failed program was:" >&5
33646 sed 's/^/| /' conftest.$ac_ext >&5
33647
33648         { { echo "$as_me:$LINENO: error: no
33649 See \`config.log' for more details." >&5
33650 echo "$as_me: error: no
33651 See \`config.log' for more details." >&2;}
33652    { (exit 1); exit 1; }; }
33653
33654 fi
33655
33656 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33657
33658 fi
33659
33660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33661     ac_ext=c
33662 ac_cpp='$CPP $CPPFLAGS'
33663 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33664 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33665 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33666
33667 fi
33668
33669
33670 { echo "$as_me:$LINENO: checking for mode_t" >&5
33671 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
33672 if test "${ac_cv_type_mode_t+set}" = set; then
33673   echo $ECHO_N "(cached) $ECHO_C" >&6
33674 else
33675   cat >conftest.$ac_ext <<_ACEOF
33676 /* confdefs.h.  */
33677 _ACEOF
33678 cat confdefs.h >>conftest.$ac_ext
33679 cat >>conftest.$ac_ext <<_ACEOF
33680 /* end confdefs.h.  */
33681 $ac_includes_default
33682 typedef mode_t ac__type_new_;
33683 int
33684 main ()
33685 {
33686 if ((ac__type_new_ *) 0)
33687   return 0;
33688 if (sizeof (ac__type_new_))
33689   return 0;
33690   ;
33691   return 0;
33692 }
33693 _ACEOF
33694 rm -f conftest.$ac_objext
33695 if { (ac_try="$ac_compile"
33696 case "(($ac_try" in
33697   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33698   *) ac_try_echo=$ac_try;;
33699 esac
33700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33701   (eval "$ac_compile") 2>conftest.er1
33702   ac_status=$?
33703   grep -v '^ *+' conftest.er1 >conftest.err
33704   rm -f conftest.er1
33705   cat conftest.err >&5
33706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33707   (exit $ac_status); } && {
33708          test -z "$ac_c_werror_flag" ||
33709          test ! -s conftest.err
33710        } && test -s conftest.$ac_objext; then
33711   ac_cv_type_mode_t=yes
33712 else
33713   echo "$as_me: failed program was:" >&5
33714 sed 's/^/| /' conftest.$ac_ext >&5
33715
33716         ac_cv_type_mode_t=no
33717 fi
33718
33719 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33720 fi
33721 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
33722 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
33723 if test $ac_cv_type_mode_t = yes; then
33724   :
33725 else
33726
33727 cat >>confdefs.h <<_ACEOF
33728 #define mode_t int
33729 _ACEOF
33730
33731 fi
33732
33733 { echo "$as_me:$LINENO: checking for off_t" >&5
33734 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
33735 if test "${ac_cv_type_off_t+set}" = set; then
33736   echo $ECHO_N "(cached) $ECHO_C" >&6
33737 else
33738   cat >conftest.$ac_ext <<_ACEOF
33739 /* confdefs.h.  */
33740 _ACEOF
33741 cat confdefs.h >>conftest.$ac_ext
33742 cat >>conftest.$ac_ext <<_ACEOF
33743 /* end confdefs.h.  */
33744 $ac_includes_default
33745 typedef off_t ac__type_new_;
33746 int
33747 main ()
33748 {
33749 if ((ac__type_new_ *) 0)
33750   return 0;
33751 if (sizeof (ac__type_new_))
33752   return 0;
33753   ;
33754   return 0;
33755 }
33756 _ACEOF
33757 rm -f conftest.$ac_objext
33758 if { (ac_try="$ac_compile"
33759 case "(($ac_try" in
33760   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33761   *) ac_try_echo=$ac_try;;
33762 esac
33763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33764   (eval "$ac_compile") 2>conftest.er1
33765   ac_status=$?
33766   grep -v '^ *+' conftest.er1 >conftest.err
33767   rm -f conftest.er1
33768   cat conftest.err >&5
33769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33770   (exit $ac_status); } && {
33771          test -z "$ac_c_werror_flag" ||
33772          test ! -s conftest.err
33773        } && test -s conftest.$ac_objext; then
33774   ac_cv_type_off_t=yes
33775 else
33776   echo "$as_me: failed program was:" >&5
33777 sed 's/^/| /' conftest.$ac_ext >&5
33778
33779         ac_cv_type_off_t=no
33780 fi
33781
33782 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33783 fi
33784 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
33785 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
33786 if test $ac_cv_type_off_t = yes; then
33787   :
33788 else
33789
33790 cat >>confdefs.h <<_ACEOF
33791 #define off_t long int
33792 _ACEOF
33793
33794 fi
33795
33796 { echo "$as_me:$LINENO: checking for pid_t" >&5
33797 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
33798 if test "${ac_cv_type_pid_t+set}" = set; then
33799   echo $ECHO_N "(cached) $ECHO_C" >&6
33800 else
33801   cat >conftest.$ac_ext <<_ACEOF
33802 /* confdefs.h.  */
33803 _ACEOF
33804 cat confdefs.h >>conftest.$ac_ext
33805 cat >>conftest.$ac_ext <<_ACEOF
33806 /* end confdefs.h.  */
33807 $ac_includes_default
33808 typedef pid_t ac__type_new_;
33809 int
33810 main ()
33811 {
33812 if ((ac__type_new_ *) 0)
33813   return 0;
33814 if (sizeof (ac__type_new_))
33815   return 0;
33816   ;
33817   return 0;
33818 }
33819 _ACEOF
33820 rm -f conftest.$ac_objext
33821 if { (ac_try="$ac_compile"
33822 case "(($ac_try" in
33823   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33824   *) ac_try_echo=$ac_try;;
33825 esac
33826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33827   (eval "$ac_compile") 2>conftest.er1
33828   ac_status=$?
33829   grep -v '^ *+' conftest.er1 >conftest.err
33830   rm -f conftest.er1
33831   cat conftest.err >&5
33832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33833   (exit $ac_status); } && {
33834          test -z "$ac_c_werror_flag" ||
33835          test ! -s conftest.err
33836        } && test -s conftest.$ac_objext; then
33837   ac_cv_type_pid_t=yes
33838 else
33839   echo "$as_me: failed program was:" >&5
33840 sed 's/^/| /' conftest.$ac_ext >&5
33841
33842         ac_cv_type_pid_t=no
33843 fi
33844
33845 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33846 fi
33847 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
33848 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
33849 if test $ac_cv_type_pid_t = yes; then
33850   :
33851 else
33852
33853 cat >>confdefs.h <<_ACEOF
33854 #define pid_t int
33855 _ACEOF
33856
33857 fi
33858
33859 { echo "$as_me:$LINENO: checking for size_t" >&5
33860 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
33861 if test "${ac_cv_type_size_t+set}" = set; then
33862   echo $ECHO_N "(cached) $ECHO_C" >&6
33863 else
33864   cat >conftest.$ac_ext <<_ACEOF
33865 /* confdefs.h.  */
33866 _ACEOF
33867 cat confdefs.h >>conftest.$ac_ext
33868 cat >>conftest.$ac_ext <<_ACEOF
33869 /* end confdefs.h.  */
33870 $ac_includes_default
33871 typedef size_t ac__type_new_;
33872 int
33873 main ()
33874 {
33875 if ((ac__type_new_ *) 0)
33876   return 0;
33877 if (sizeof (ac__type_new_))
33878   return 0;
33879   ;
33880   return 0;
33881 }
33882 _ACEOF
33883 rm -f conftest.$ac_objext
33884 if { (ac_try="$ac_compile"
33885 case "(($ac_try" in
33886   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33887   *) ac_try_echo=$ac_try;;
33888 esac
33889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33890   (eval "$ac_compile") 2>conftest.er1
33891   ac_status=$?
33892   grep -v '^ *+' conftest.er1 >conftest.err
33893   rm -f conftest.er1
33894   cat conftest.err >&5
33895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33896   (exit $ac_status); } && {
33897          test -z "$ac_c_werror_flag" ||
33898          test ! -s conftest.err
33899        } && test -s conftest.$ac_objext; then
33900   ac_cv_type_size_t=yes
33901 else
33902   echo "$as_me: failed program was:" >&5
33903 sed 's/^/| /' conftest.$ac_ext >&5
33904
33905         ac_cv_type_size_t=no
33906 fi
33907
33908 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33909 fi
33910 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
33911 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
33912 if test $ac_cv_type_size_t = yes; then
33913   :
33914 else
33915
33916 cat >>confdefs.h <<_ACEOF
33917 #define size_t unsigned int
33918 _ACEOF
33919
33920 fi
33921
33922
33923 { echo "$as_me:$LINENO: checking for ssize_t" >&5
33924 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
33925 if test "${ac_cv_type_ssize_t+set}" = set; then
33926   echo $ECHO_N "(cached) $ECHO_C" >&6
33927 else
33928   cat >conftest.$ac_ext <<_ACEOF
33929 /* confdefs.h.  */
33930 _ACEOF
33931 cat confdefs.h >>conftest.$ac_ext
33932 cat >>conftest.$ac_ext <<_ACEOF
33933 /* end confdefs.h.  */
33934 $ac_includes_default
33935 typedef ssize_t ac__type_new_;
33936 int
33937 main ()
33938 {
33939 if ((ac__type_new_ *) 0)
33940   return 0;
33941 if (sizeof (ac__type_new_))
33942   return 0;
33943   ;
33944   return 0;
33945 }
33946 _ACEOF
33947 rm -f conftest.$ac_objext
33948 if { (ac_try="$ac_compile"
33949 case "(($ac_try" in
33950   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33951   *) ac_try_echo=$ac_try;;
33952 esac
33953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33954   (eval "$ac_compile") 2>conftest.er1
33955   ac_status=$?
33956   grep -v '^ *+' conftest.er1 >conftest.err
33957   rm -f conftest.er1
33958   cat conftest.err >&5
33959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33960   (exit $ac_status); } && {
33961          test -z "$ac_c_werror_flag" ||
33962          test ! -s conftest.err
33963        } && test -s conftest.$ac_objext; then
33964   ac_cv_type_ssize_t=yes
33965 else
33966   echo "$as_me: failed program was:" >&5
33967 sed 's/^/| /' conftest.$ac_ext >&5
33968
33969         ac_cv_type_ssize_t=no
33970 fi
33971
33972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33973 fi
33974 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
33975 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
33976 if test $ac_cv_type_ssize_t = yes; then
33977
33978 cat >>confdefs.h <<_ACEOF
33979 #define HAVE_SSIZE_T 1
33980 _ACEOF
33981
33982
33983 fi
33984
33985
33986 ac_ext=cpp
33987 ac_cpp='$CXXCPP $CPPFLAGS'
33988 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33989 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33990 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33991  { echo "$as_me:$LINENO: checking if size_t is unsigned int" >&5
33992 echo $ECHO_N "checking if size_t is unsigned int... $ECHO_C" >&6; }
33993 if test "${wx_cv_size_t_is_uint+set}" = set; then
33994   echo $ECHO_N "(cached) $ECHO_C" >&6
33995 else
33996
33997                             cat >conftest.$ac_ext <<_ACEOF
33998 /* confdefs.h.  */
33999 _ACEOF
34000 cat confdefs.h >>conftest.$ac_ext
34001 cat >>conftest.$ac_ext <<_ACEOF
34002 /* end confdefs.h.  */
34003 #include <stddef.h>
34004 int
34005 main ()
34006 {
34007
34008             return 0; }
34009
34010             struct Foo { void foo(size_t); void foo(unsigned int); };
34011
34012             int bar() {
34013
34014   ;
34015   return 0;
34016 }
34017 _ACEOF
34018 rm -f conftest.$ac_objext
34019 if { (ac_try="$ac_compile"
34020 case "(($ac_try" in
34021   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34022   *) ac_try_echo=$ac_try;;
34023 esac
34024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34025   (eval "$ac_compile") 2>conftest.er1
34026   ac_status=$?
34027   grep -v '^ *+' conftest.er1 >conftest.err
34028   rm -f conftest.er1
34029   cat conftest.err >&5
34030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34031   (exit $ac_status); } && {
34032          test -z "$ac_cxx_werror_flag" ||
34033          test ! -s conftest.err
34034        } && test -s conftest.$ac_objext; then
34035   wx_cv_size_t_is_uint=no
34036 else
34037   echo "$as_me: failed program was:" >&5
34038 sed 's/^/| /' conftest.$ac_ext >&5
34039
34040         wx_cv_size_t_is_uint=yes
34041
34042 fi
34043
34044 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34045
34046
34047 fi
34048 { echo "$as_me:$LINENO: result: $wx_cv_size_t_is_uint" >&5
34049 echo "${ECHO_T}$wx_cv_size_t_is_uint" >&6; }
34050
34051 if test "$wx_cv_size_t_is_uint" = "yes"; then
34052     cat >>confdefs.h <<\_ACEOF
34053 #define wxSIZE_T_IS_UINT 1
34054 _ACEOF
34055
34056 else
34057     { echo "$as_me:$LINENO: checking if size_t is unsigned long" >&5
34058 echo $ECHO_N "checking if size_t is unsigned long... $ECHO_C" >&6; }
34059 if test "${wx_cv_size_t_is_ulong+set}" = set; then
34060   echo $ECHO_N "(cached) $ECHO_C" >&6
34061 else
34062   cat >conftest.$ac_ext <<_ACEOF
34063 /* confdefs.h.  */
34064 _ACEOF
34065 cat confdefs.h >>conftest.$ac_ext
34066 cat >>conftest.$ac_ext <<_ACEOF
34067 /* end confdefs.h.  */
34068 #include <stddef.h>
34069 int
34070 main ()
34071 {
34072
34073                 return 0; }
34074
34075                 struct Foo { void foo(size_t); void foo(unsigned long); };
34076
34077                 int bar() {
34078
34079   ;
34080   return 0;
34081 }
34082 _ACEOF
34083 rm -f conftest.$ac_objext
34084 if { (ac_try="$ac_compile"
34085 case "(($ac_try" in
34086   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34087   *) ac_try_echo=$ac_try;;
34088 esac
34089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34090   (eval "$ac_compile") 2>conftest.er1
34091   ac_status=$?
34092   grep -v '^ *+' conftest.er1 >conftest.err
34093   rm -f conftest.er1
34094   cat conftest.err >&5
34095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34096   (exit $ac_status); } && {
34097          test -z "$ac_cxx_werror_flag" ||
34098          test ! -s conftest.err
34099        } && test -s conftest.$ac_objext; then
34100   wx_cv_size_t_is_ulong=no
34101 else
34102   echo "$as_me: failed program was:" >&5
34103 sed 's/^/| /' conftest.$ac_ext >&5
34104
34105         wx_cv_size_t_is_ulong=yes
34106
34107 fi
34108
34109 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34110
34111 fi
34112 { echo "$as_me:$LINENO: result: $wx_cv_size_t_is_ulong" >&5
34113 echo "${ECHO_T}$wx_cv_size_t_is_ulong" >&6; }
34114
34115     if test "$wx_cv_size_t_is_ulong" = "yes"; then
34116         cat >>confdefs.h <<\_ACEOF
34117 #define wxSIZE_T_IS_ULONG 1
34118 _ACEOF
34119
34120     fi
34121 fi
34122
34123 { echo "$as_me:$LINENO: checking if wchar_t is separate type" >&5
34124 echo $ECHO_N "checking if wchar_t is separate type... $ECHO_C" >&6; }
34125 if test "${wx_cv_wchar_t_is_separate_type+set}" = set; then
34126   echo $ECHO_N "(cached) $ECHO_C" >&6
34127 else
34128   cat >conftest.$ac_ext <<_ACEOF
34129 /* confdefs.h.  */
34130 _ACEOF
34131 cat confdefs.h >>conftest.$ac_ext
34132 cat >>conftest.$ac_ext <<_ACEOF
34133 /* end confdefs.h.  */
34134 #include <wchar.h>
34135 int
34136 main ()
34137 {
34138
34139             return 0; }
34140
34141             struct Foo { void foo(wchar_t);
34142                          void foo(unsigned short);
34143                          void foo(unsigned int);
34144                          void foo(unsigned long); };
34145
34146             int bar() {
34147
34148   ;
34149   return 0;
34150 }
34151 _ACEOF
34152 rm -f conftest.$ac_objext
34153 if { (ac_try="$ac_compile"
34154 case "(($ac_try" in
34155   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34156   *) ac_try_echo=$ac_try;;
34157 esac
34158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34159   (eval "$ac_compile") 2>conftest.er1
34160   ac_status=$?
34161   grep -v '^ *+' conftest.er1 >conftest.err
34162   rm -f conftest.er1
34163   cat conftest.err >&5
34164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34165   (exit $ac_status); } && {
34166          test -z "$ac_cxx_werror_flag" ||
34167          test ! -s conftest.err
34168        } && test -s conftest.$ac_objext; then
34169   wx_cv_wchar_t_is_separate_type=yes
34170 else
34171   echo "$as_me: failed program was:" >&5
34172 sed 's/^/| /' conftest.$ac_ext >&5
34173
34174         wx_cv_wchar_t_is_separate_type=no
34175
34176 fi
34177
34178 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34179
34180 fi
34181 { echo "$as_me:$LINENO: result: $wx_cv_wchar_t_is_separate_type" >&5
34182 echo "${ECHO_T}$wx_cv_wchar_t_is_separate_type" >&6; }
34183
34184 if test "$wx_cv_wchar_t_is_separate_type" = "yes"; then
34185     cat >>confdefs.h <<\_ACEOF
34186 #define wxWCHAR_T_IS_REAL_TYPE 1
34187 _ACEOF
34188
34189 else
34190     cat >>confdefs.h <<\_ACEOF
34191 #define wxWCHAR_T_IS_REAL_TYPE 0
34192 _ACEOF
34193
34194 fi
34195
34196 ac_ext=c
34197 ac_cpp='$CPP $CPPFLAGS'
34198 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34199 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34200 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34201
34202
34203 { echo "$as_me:$LINENO: checking for pw_gecos in struct passwd" >&5
34204 echo $ECHO_N "checking for pw_gecos in struct passwd... $ECHO_C" >&6; }
34205 if test "${wx_cv_struct_pw_gecos+set}" = set; then
34206   echo $ECHO_N "(cached) $ECHO_C" >&6
34207 else
34208
34209         cat >conftest.$ac_ext <<_ACEOF
34210 /* confdefs.h.  */
34211 _ACEOF
34212 cat confdefs.h >>conftest.$ac_ext
34213 cat >>conftest.$ac_ext <<_ACEOF
34214 /* end confdefs.h.  */
34215 #include <pwd.h>
34216 int
34217 main ()
34218 {
34219
34220                 char *p;
34221                 struct passwd *pw;
34222                 p = pw->pw_gecos;
34223
34224   ;
34225   return 0;
34226 }
34227 _ACEOF
34228 rm -f conftest.$ac_objext
34229 if { (ac_try="$ac_compile"
34230 case "(($ac_try" in
34231   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34232   *) ac_try_echo=$ac_try;;
34233 esac
34234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34235   (eval "$ac_compile") 2>conftest.er1
34236   ac_status=$?
34237   grep -v '^ *+' conftest.er1 >conftest.err
34238   rm -f conftest.er1
34239   cat conftest.err >&5
34240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34241   (exit $ac_status); } && {
34242          test -z "$ac_c_werror_flag" ||
34243          test ! -s conftest.err
34244        } && test -s conftest.$ac_objext; then
34245
34246                 wx_cv_struct_pw_gecos=yes
34247
34248 else
34249   echo "$as_me: failed program was:" >&5
34250 sed 's/^/| /' conftest.$ac_ext >&5
34251
34252
34253                 wx_cv_struct_pw_gecos=no
34254
34255
34256 fi
34257
34258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34259
34260
34261 fi
34262 { echo "$as_me:$LINENO: result: $wx_cv_struct_pw_gecos" >&5
34263 echo "${ECHO_T}$wx_cv_struct_pw_gecos" >&6; }
34264
34265 if test "$wx_cv_struct_pw_gecos" = "yes"; then
34266     cat >>confdefs.h <<\_ACEOF
34267 #define HAVE_PW_GECOS 1
34268 _ACEOF
34269
34270 fi
34271
34272
34273 if test "$wxUSE_WCHAR_T" = "yes"; then
34274     cat >>confdefs.h <<\_ACEOF
34275 #define wxUSE_WCHAR_T 1
34276 _ACEOF
34277
34278
34279         WCSLEN_FOUND=0
34280     WCHAR_LINK=
34281
34282 for ac_func in wcslen
34283 do
34284 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34285 { echo "$as_me:$LINENO: checking for $ac_func" >&5
34286 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
34287 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
34288   echo $ECHO_N "(cached) $ECHO_C" >&6
34289 else
34290   cat >conftest.$ac_ext <<_ACEOF
34291 /* confdefs.h.  */
34292 _ACEOF
34293 cat confdefs.h >>conftest.$ac_ext
34294 cat >>conftest.$ac_ext <<_ACEOF
34295 /* end confdefs.h.  */
34296 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34297    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34298 #define $ac_func innocuous_$ac_func
34299
34300 /* System header to define __stub macros and hopefully few prototypes,
34301     which can conflict with char $ac_func (); below.
34302     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34303     <limits.h> exists even on freestanding compilers.  */
34304
34305 #ifdef __STDC__
34306 # include <limits.h>
34307 #else
34308 # include <assert.h>
34309 #endif
34310
34311 #undef $ac_func
34312
34313 /* Override any GCC internal prototype to avoid an error.
34314    Use char because int might match the return type of a GCC
34315    builtin and then its argument prototype would still apply.  */
34316 #ifdef __cplusplus
34317 extern "C"
34318 #endif
34319 char $ac_func ();
34320 /* The GNU C library defines this for functions which it implements
34321     to always fail with ENOSYS.  Some functions are actually named
34322     something starting with __ and the normal name is an alias.  */
34323 #if defined __stub_$ac_func || defined __stub___$ac_func
34324 choke me
34325 #endif
34326
34327 int
34328 main ()
34329 {
34330 return $ac_func ();
34331   ;
34332   return 0;
34333 }
34334 _ACEOF
34335 rm -f conftest.$ac_objext conftest$ac_exeext
34336 if { (ac_try="$ac_link"
34337 case "(($ac_try" in
34338   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34339   *) ac_try_echo=$ac_try;;
34340 esac
34341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34342   (eval "$ac_link") 2>conftest.er1
34343   ac_status=$?
34344   grep -v '^ *+' conftest.er1 >conftest.err
34345   rm -f conftest.er1
34346   cat conftest.err >&5
34347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34348   (exit $ac_status); } && {
34349          test -z "$ac_c_werror_flag" ||
34350          test ! -s conftest.err
34351        } && test -s conftest$ac_exeext &&
34352        $as_test_x conftest$ac_exeext; then
34353   eval "$as_ac_var=yes"
34354 else
34355   echo "$as_me: failed program was:" >&5
34356 sed 's/^/| /' conftest.$ac_ext >&5
34357
34358         eval "$as_ac_var=no"
34359 fi
34360
34361 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34362       conftest$ac_exeext conftest.$ac_ext
34363 fi
34364 ac_res=`eval echo '${'$as_ac_var'}'`
34365                { echo "$as_me:$LINENO: result: $ac_res" >&5
34366 echo "${ECHO_T}$ac_res" >&6; }
34367 if test `eval echo '${'$as_ac_var'}'` = yes; then
34368   cat >>confdefs.h <<_ACEOF
34369 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34370 _ACEOF
34371  WCSLEN_FOUND=1
34372 fi
34373 done
34374
34375
34376     if test "$WCSLEN_FOUND" = 0; then
34377         if test "$TOOLKIT" = "MSW"; then
34378             { echo "$as_me:$LINENO: checking for wcslen in -lmsvcrt" >&5
34379 echo $ECHO_N "checking for wcslen in -lmsvcrt... $ECHO_C" >&6; }
34380 if test "${ac_cv_lib_msvcrt_wcslen+set}" = set; then
34381   echo $ECHO_N "(cached) $ECHO_C" >&6
34382 else
34383   ac_check_lib_save_LIBS=$LIBS
34384 LIBS="-lmsvcrt  $LIBS"
34385 cat >conftest.$ac_ext <<_ACEOF
34386 /* confdefs.h.  */
34387 _ACEOF
34388 cat confdefs.h >>conftest.$ac_ext
34389 cat >>conftest.$ac_ext <<_ACEOF
34390 /* end confdefs.h.  */
34391
34392 /* Override any GCC internal prototype to avoid an error.
34393    Use char because int might match the return type of a GCC
34394    builtin and then its argument prototype would still apply.  */
34395 #ifdef __cplusplus
34396 extern "C"
34397 #endif
34398 char wcslen ();
34399 int
34400 main ()
34401 {
34402 return wcslen ();
34403   ;
34404   return 0;
34405 }
34406 _ACEOF
34407 rm -f conftest.$ac_objext conftest$ac_exeext
34408 if { (ac_try="$ac_link"
34409 case "(($ac_try" in
34410   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34411   *) ac_try_echo=$ac_try;;
34412 esac
34413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34414   (eval "$ac_link") 2>conftest.er1
34415   ac_status=$?
34416   grep -v '^ *+' conftest.er1 >conftest.err
34417   rm -f conftest.er1
34418   cat conftest.err >&5
34419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34420   (exit $ac_status); } && {
34421          test -z "$ac_c_werror_flag" ||
34422          test ! -s conftest.err
34423        } && test -s conftest$ac_exeext &&
34424        $as_test_x conftest$ac_exeext; then
34425   ac_cv_lib_msvcrt_wcslen=yes
34426 else
34427   echo "$as_me: failed program was:" >&5
34428 sed 's/^/| /' conftest.$ac_ext >&5
34429
34430         ac_cv_lib_msvcrt_wcslen=no
34431 fi
34432
34433 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34434       conftest$ac_exeext conftest.$ac_ext
34435 LIBS=$ac_check_lib_save_LIBS
34436 fi
34437 { echo "$as_me:$LINENO: result: $ac_cv_lib_msvcrt_wcslen" >&5
34438 echo "${ECHO_T}$ac_cv_lib_msvcrt_wcslen" >&6; }
34439 if test $ac_cv_lib_msvcrt_wcslen = yes; then
34440   WCHAR_OK=1
34441 fi
34442
34443         else
34444             { echo "$as_me:$LINENO: checking for wcslen in -lw" >&5
34445 echo $ECHO_N "checking for wcslen in -lw... $ECHO_C" >&6; }
34446 if test "${ac_cv_lib_w_wcslen+set}" = set; then
34447   echo $ECHO_N "(cached) $ECHO_C" >&6
34448 else
34449   ac_check_lib_save_LIBS=$LIBS
34450 LIBS="-lw  $LIBS"
34451 cat >conftest.$ac_ext <<_ACEOF
34452 /* confdefs.h.  */
34453 _ACEOF
34454 cat confdefs.h >>conftest.$ac_ext
34455 cat >>conftest.$ac_ext <<_ACEOF
34456 /* end confdefs.h.  */
34457
34458 /* Override any GCC internal prototype to avoid an error.
34459    Use char because int might match the return type of a GCC
34460    builtin and then its argument prototype would still apply.  */
34461 #ifdef __cplusplus
34462 extern "C"
34463 #endif
34464 char wcslen ();
34465 int
34466 main ()
34467 {
34468 return wcslen ();
34469   ;
34470   return 0;
34471 }
34472 _ACEOF
34473 rm -f conftest.$ac_objext conftest$ac_exeext
34474 if { (ac_try="$ac_link"
34475 case "(($ac_try" in
34476   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34477   *) ac_try_echo=$ac_try;;
34478 esac
34479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34480   (eval "$ac_link") 2>conftest.er1
34481   ac_status=$?
34482   grep -v '^ *+' conftest.er1 >conftest.err
34483   rm -f conftest.er1
34484   cat conftest.err >&5
34485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34486   (exit $ac_status); } && {
34487          test -z "$ac_c_werror_flag" ||
34488          test ! -s conftest.err
34489        } && test -s conftest$ac_exeext &&
34490        $as_test_x conftest$ac_exeext; then
34491   ac_cv_lib_w_wcslen=yes
34492 else
34493   echo "$as_me: failed program was:" >&5
34494 sed 's/^/| /' conftest.$ac_ext >&5
34495
34496         ac_cv_lib_w_wcslen=no
34497 fi
34498
34499 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34500       conftest$ac_exeext conftest.$ac_ext
34501 LIBS=$ac_check_lib_save_LIBS
34502 fi
34503 { echo "$as_me:$LINENO: result: $ac_cv_lib_w_wcslen" >&5
34504 echo "${ECHO_T}$ac_cv_lib_w_wcslen" >&6; }
34505 if test $ac_cv_lib_w_wcslen = yes; then
34506
34507                             WCHAR_LINK=" -lw"
34508                             WCSLEN_FOUND=1
34509
34510 fi
34511
34512         fi
34513     fi
34514
34515     if test "$WCSLEN_FOUND" = 1; then
34516         cat >>confdefs.h <<\_ACEOF
34517 #define HAVE_WCSLEN 1
34518 _ACEOF
34519
34520     fi
34521
34522
34523 for ac_func in wcsdup
34524 do
34525 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34526 { echo "$as_me:$LINENO: checking for $ac_func" >&5
34527 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
34528 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
34529   echo $ECHO_N "(cached) $ECHO_C" >&6
34530 else
34531   cat >conftest.$ac_ext <<_ACEOF
34532 /* confdefs.h.  */
34533 _ACEOF
34534 cat confdefs.h >>conftest.$ac_ext
34535 cat >>conftest.$ac_ext <<_ACEOF
34536 /* end confdefs.h.  */
34537 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34538    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34539 #define $ac_func innocuous_$ac_func
34540
34541 /* System header to define __stub macros and hopefully few prototypes,
34542     which can conflict with char $ac_func (); below.
34543     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34544     <limits.h> exists even on freestanding compilers.  */
34545
34546 #ifdef __STDC__
34547 # include <limits.h>
34548 #else
34549 # include <assert.h>
34550 #endif
34551
34552 #undef $ac_func
34553
34554 /* Override any GCC internal prototype to avoid an error.
34555    Use char because int might match the return type of a GCC
34556    builtin and then its argument prototype would still apply.  */
34557 #ifdef __cplusplus
34558 extern "C"
34559 #endif
34560 char $ac_func ();
34561 /* The GNU C library defines this for functions which it implements
34562     to always fail with ENOSYS.  Some functions are actually named
34563     something starting with __ and the normal name is an alias.  */
34564 #if defined __stub_$ac_func || defined __stub___$ac_func
34565 choke me
34566 #endif
34567
34568 int
34569 main ()
34570 {
34571 return $ac_func ();
34572   ;
34573   return 0;
34574 }
34575 _ACEOF
34576 rm -f conftest.$ac_objext conftest$ac_exeext
34577 if { (ac_try="$ac_link"
34578 case "(($ac_try" in
34579   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34580   *) ac_try_echo=$ac_try;;
34581 esac
34582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34583   (eval "$ac_link") 2>conftest.er1
34584   ac_status=$?
34585   grep -v '^ *+' conftest.er1 >conftest.err
34586   rm -f conftest.er1
34587   cat conftest.err >&5
34588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34589   (exit $ac_status); } && {
34590          test -z "$ac_c_werror_flag" ||
34591          test ! -s conftest.err
34592        } && test -s conftest$ac_exeext &&
34593        $as_test_x conftest$ac_exeext; then
34594   eval "$as_ac_var=yes"
34595 else
34596   echo "$as_me: failed program was:" >&5
34597 sed 's/^/| /' conftest.$ac_ext >&5
34598
34599         eval "$as_ac_var=no"
34600 fi
34601
34602 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34603       conftest$ac_exeext conftest.$ac_ext
34604 fi
34605 ac_res=`eval echo '${'$as_ac_var'}'`
34606                { echo "$as_me:$LINENO: result: $ac_res" >&5
34607 echo "${ECHO_T}$ac_res" >&6; }
34608 if test `eval echo '${'$as_ac_var'}'` = yes; then
34609   cat >>confdefs.h <<_ACEOF
34610 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34611 _ACEOF
34612
34613 fi
34614 done
34615
34616
34617                     if test "$USE_HPUX" = 1 -a "$GCC" != "yes"; then
34618         CPPFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CPPFLAGS"
34619     fi
34620
34621                 { echo "$as_me:$LINENO: checking for mbstate_t" >&5
34622 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6; }
34623 if test "${ac_cv_type_mbstate_t+set}" = set; then
34624   echo $ECHO_N "(cached) $ECHO_C" >&6
34625 else
34626   cat >conftest.$ac_ext <<_ACEOF
34627 /* confdefs.h.  */
34628 _ACEOF
34629 cat confdefs.h >>conftest.$ac_ext
34630 cat >>conftest.$ac_ext <<_ACEOF
34631 /* end confdefs.h.  */
34632 #include <wchar.h>
34633
34634 typedef mbstate_t ac__type_new_;
34635 int
34636 main ()
34637 {
34638 if ((ac__type_new_ *) 0)
34639   return 0;
34640 if (sizeof (ac__type_new_))
34641   return 0;
34642   ;
34643   return 0;
34644 }
34645 _ACEOF
34646 rm -f conftest.$ac_objext
34647 if { (ac_try="$ac_compile"
34648 case "(($ac_try" in
34649   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34650   *) ac_try_echo=$ac_try;;
34651 esac
34652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34653   (eval "$ac_compile") 2>conftest.er1
34654   ac_status=$?
34655   grep -v '^ *+' conftest.er1 >conftest.err
34656   rm -f conftest.er1
34657   cat conftest.err >&5
34658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34659   (exit $ac_status); } && {
34660          test -z "$ac_c_werror_flag" ||
34661          test ! -s conftest.err
34662        } && test -s conftest.$ac_objext; then
34663   ac_cv_type_mbstate_t=yes
34664 else
34665   echo "$as_me: failed program was:" >&5
34666 sed 's/^/| /' conftest.$ac_ext >&5
34667
34668         ac_cv_type_mbstate_t=no
34669 fi
34670
34671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34672 fi
34673 { echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
34674 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6; }
34675 if test $ac_cv_type_mbstate_t = yes; then
34676
34677 cat >>confdefs.h <<_ACEOF
34678 #define HAVE_MBSTATE_T 1
34679 _ACEOF
34680
34681
34682 for ac_func in wcsrtombs
34683 do
34684 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34685 { echo "$as_me:$LINENO: checking for $ac_func" >&5
34686 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
34687 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
34688   echo $ECHO_N "(cached) $ECHO_C" >&6
34689 else
34690   cat >conftest.$ac_ext <<_ACEOF
34691 /* confdefs.h.  */
34692 _ACEOF
34693 cat confdefs.h >>conftest.$ac_ext
34694 cat >>conftest.$ac_ext <<_ACEOF
34695 /* end confdefs.h.  */
34696 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34697    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34698 #define $ac_func innocuous_$ac_func
34699
34700 /* System header to define __stub macros and hopefully few prototypes,
34701     which can conflict with char $ac_func (); below.
34702     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34703     <limits.h> exists even on freestanding compilers.  */
34704
34705 #ifdef __STDC__
34706 # include <limits.h>
34707 #else
34708 # include <assert.h>
34709 #endif
34710
34711 #undef $ac_func
34712
34713 /* Override any GCC internal prototype to avoid an error.
34714    Use char because int might match the return type of a GCC
34715    builtin and then its argument prototype would still apply.  */
34716 #ifdef __cplusplus
34717 extern "C"
34718 #endif
34719 char $ac_func ();
34720 /* The GNU C library defines this for functions which it implements
34721     to always fail with ENOSYS.  Some functions are actually named
34722     something starting with __ and the normal name is an alias.  */
34723 #if defined __stub_$ac_func || defined __stub___$ac_func
34724 choke me
34725 #endif
34726
34727 int
34728 main ()
34729 {
34730 return $ac_func ();
34731   ;
34732   return 0;
34733 }
34734 _ACEOF
34735 rm -f conftest.$ac_objext conftest$ac_exeext
34736 if { (ac_try="$ac_link"
34737 case "(($ac_try" in
34738   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34739   *) ac_try_echo=$ac_try;;
34740 esac
34741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34742   (eval "$ac_link") 2>conftest.er1
34743   ac_status=$?
34744   grep -v '^ *+' conftest.er1 >conftest.err
34745   rm -f conftest.er1
34746   cat conftest.err >&5
34747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34748   (exit $ac_status); } && {
34749          test -z "$ac_c_werror_flag" ||
34750          test ! -s conftest.err
34751        } && test -s conftest$ac_exeext &&
34752        $as_test_x conftest$ac_exeext; then
34753   eval "$as_ac_var=yes"
34754 else
34755   echo "$as_me: failed program was:" >&5
34756 sed 's/^/| /' conftest.$ac_ext >&5
34757
34758         eval "$as_ac_var=no"
34759 fi
34760
34761 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34762       conftest$ac_exeext conftest.$ac_ext
34763 fi
34764 ac_res=`eval echo '${'$as_ac_var'}'`
34765                { echo "$as_me:$LINENO: result: $ac_res" >&5
34766 echo "${ECHO_T}$ac_res" >&6; }
34767 if test `eval echo '${'$as_ac_var'}'` = yes; then
34768   cat >>confdefs.h <<_ACEOF
34769 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34770 _ACEOF
34771
34772 fi
34773 done
34774
34775 fi
34776
34777 else
34778     { echo "$as_me:$LINENO: WARNING: Wide character support is unavailable" >&5
34779 echo "$as_me: WARNING: Wide character support is unavailable" >&2;}
34780 fi
34781
34782
34783
34784 for ac_func in snprintf vsnprintf
34785 do
34786 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34787 { echo "$as_me:$LINENO: checking for $ac_func" >&5
34788 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
34789 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
34790   echo $ECHO_N "(cached) $ECHO_C" >&6
34791 else
34792   cat >conftest.$ac_ext <<_ACEOF
34793 /* confdefs.h.  */
34794 _ACEOF
34795 cat confdefs.h >>conftest.$ac_ext
34796 cat >>conftest.$ac_ext <<_ACEOF
34797 /* end confdefs.h.  */
34798 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34799    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34800 #define $ac_func innocuous_$ac_func
34801
34802 /* System header to define __stub macros and hopefully few prototypes,
34803     which can conflict with char $ac_func (); below.
34804     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34805     <limits.h> exists even on freestanding compilers.  */
34806
34807 #ifdef __STDC__
34808 # include <limits.h>
34809 #else
34810 # include <assert.h>
34811 #endif
34812
34813 #undef $ac_func
34814
34815 /* Override any GCC internal prototype to avoid an error.
34816    Use char because int might match the return type of a GCC
34817    builtin and then its argument prototype would still apply.  */
34818 #ifdef __cplusplus
34819 extern "C"
34820 #endif
34821 char $ac_func ();
34822 /* The GNU C library defines this for functions which it implements
34823     to always fail with ENOSYS.  Some functions are actually named
34824     something starting with __ and the normal name is an alias.  */
34825 #if defined __stub_$ac_func || defined __stub___$ac_func
34826 choke me
34827 #endif
34828
34829 int
34830 main ()
34831 {
34832 return $ac_func ();
34833   ;
34834   return 0;
34835 }
34836 _ACEOF
34837 rm -f conftest.$ac_objext conftest$ac_exeext
34838 if { (ac_try="$ac_link"
34839 case "(($ac_try" in
34840   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34841   *) ac_try_echo=$ac_try;;
34842 esac
34843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34844   (eval "$ac_link") 2>conftest.er1
34845   ac_status=$?
34846   grep -v '^ *+' conftest.er1 >conftest.err
34847   rm -f conftest.er1
34848   cat conftest.err >&5
34849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34850   (exit $ac_status); } && {
34851          test -z "$ac_c_werror_flag" ||
34852          test ! -s conftest.err
34853        } && test -s conftest$ac_exeext &&
34854        $as_test_x conftest$ac_exeext; then
34855   eval "$as_ac_var=yes"
34856 else
34857   echo "$as_me: failed program was:" >&5
34858 sed 's/^/| /' conftest.$ac_ext >&5
34859
34860         eval "$as_ac_var=no"
34861 fi
34862
34863 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34864       conftest$ac_exeext conftest.$ac_ext
34865 fi
34866 ac_res=`eval echo '${'$as_ac_var'}'`
34867                { echo "$as_me:$LINENO: result: $ac_res" >&5
34868 echo "${ECHO_T}$ac_res" >&6; }
34869 if test `eval echo '${'$as_ac_var'}'` = yes; then
34870   cat >>confdefs.h <<_ACEOF
34871 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34872 _ACEOF
34873
34874 fi
34875 done
34876
34877
34878 if test "$ac_cv_func_vsnprintf" = "yes"; then
34879         { echo "$as_me:$LINENO: checking for vsnprintf declaration" >&5
34880 echo $ECHO_N "checking for vsnprintf declaration... $ECHO_C" >&6; }
34881 if test "${wx_cv_func_vsnprintf_decl+set}" = set; then
34882   echo $ECHO_N "(cached) $ECHO_C" >&6
34883 else
34884
34885                                                             cat >conftest.$ac_ext <<_ACEOF
34886 /* confdefs.h.  */
34887 _ACEOF
34888 cat confdefs.h >>conftest.$ac_ext
34889 cat >>conftest.$ac_ext <<_ACEOF
34890 /* end confdefs.h.  */
34891
34892                     #include <stdio.h>
34893                     #include <stdarg.h>
34894                     #ifdef __MSL__
34895                     #if __MSL__ >= 0x6000
34896                     namespace std {}
34897                     using namespace std;
34898                     #endif
34899                     #endif
34900
34901 int
34902 main ()
34903 {
34904
34905                     char *buf;
34906                     va_list ap;
34907                     vsnprintf(buf, 10u, "%s", ap);
34908
34909   ;
34910   return 0;
34911 }
34912 _ACEOF
34913 rm -f conftest.$ac_objext
34914 if { (ac_try="$ac_compile"
34915 case "(($ac_try" in
34916   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34917   *) ac_try_echo=$ac_try;;
34918 esac
34919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34920   (eval "$ac_compile") 2>conftest.er1
34921   ac_status=$?
34922   grep -v '^ *+' conftest.er1 >conftest.err
34923   rm -f conftest.er1
34924   cat conftest.err >&5
34925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34926   (exit $ac_status); } && {
34927          test -z "$ac_c_werror_flag" ||
34928          test ! -s conftest.err
34929        } && test -s conftest.$ac_objext; then
34930   wx_cv_func_vsnprintf_decl=yes
34931 else
34932   echo "$as_me: failed program was:" >&5
34933 sed 's/^/| /' conftest.$ac_ext >&5
34934
34935         wx_cv_func_vsnprintf_decl=no
34936
34937 fi
34938
34939 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34940
34941
34942 fi
34943 { echo "$as_me:$LINENO: result: $wx_cv_func_vsnprintf_decl" >&5
34944 echo "${ECHO_T}$wx_cv_func_vsnprintf_decl" >&6; }
34945
34946     if test "$wx_cv_func_vsnprintf_decl" = "yes"; then
34947         cat >>confdefs.h <<\_ACEOF
34948 #define HAVE_VSNPRINTF_DECL 1
34949 _ACEOF
34950
34951
34952                         { echo "$as_me:$LINENO: checking if vsnprintf declaration is broken" >&5
34953 echo $ECHO_N "checking if vsnprintf declaration is broken... $ECHO_C" >&6; }
34954 if test "${wx_cv_func_broken_vsnprintf_decl+set}" = set; then
34955   echo $ECHO_N "(cached) $ECHO_C" >&6
34956 else
34957
34958                 cat >conftest.$ac_ext <<_ACEOF
34959 /* confdefs.h.  */
34960 _ACEOF
34961 cat confdefs.h >>conftest.$ac_ext
34962 cat >>conftest.$ac_ext <<_ACEOF
34963 /* end confdefs.h.  */
34964
34965                         #include <stdio.h>
34966                         #include <stdarg.h>
34967                         #ifdef __MSL__
34968                         #if __MSL__ >= 0x6000
34969                         namespace std {}
34970                         using namespace std;
34971                         #endif
34972                         #endif
34973
34974 int
34975 main ()
34976 {
34977
34978                         char *buf;
34979                         va_list ap;
34980                         const char *fmt = "%s";
34981                         vsnprintf(buf, 10u, fmt, ap);
34982
34983   ;
34984   return 0;
34985 }
34986 _ACEOF
34987 rm -f conftest.$ac_objext
34988 if { (ac_try="$ac_compile"
34989 case "(($ac_try" in
34990   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34991   *) ac_try_echo=$ac_try;;
34992 esac
34993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34994   (eval "$ac_compile") 2>conftest.er1
34995   ac_status=$?
34996   grep -v '^ *+' conftest.er1 >conftest.err
34997   rm -f conftest.er1
34998   cat conftest.err >&5
34999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35000   (exit $ac_status); } && {
35001          test -z "$ac_c_werror_flag" ||
35002          test ! -s conftest.err
35003        } && test -s conftest.$ac_objext; then
35004   wx_cv_func_broken_vsnprintf_decl=no
35005 else
35006   echo "$as_me: failed program was:" >&5
35007 sed 's/^/| /' conftest.$ac_ext >&5
35008
35009         wx_cv_func_broken_vsnprintf_decl=yes
35010
35011 fi
35012
35013 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35014
35015
35016 fi
35017 { echo "$as_me:$LINENO: result: $wx_cv_func_broken_vsnprintf_decl" >&5
35018 echo "${ECHO_T}$wx_cv_func_broken_vsnprintf_decl" >&6; }
35019
35020         if test "$wx_cv_func_broken_vsnprintf_decl" = "yes"; then
35021             cat >>confdefs.h <<\_ACEOF
35022 #define HAVE_BROKEN_VSNPRINTF_DECL 1
35023 _ACEOF
35024
35025         fi
35026     fi
35027 fi
35028
35029 if test "$ac_cv_func_snprintf" = "yes"; then
35030     { echo "$as_me:$LINENO: checking for snprintf declaration" >&5
35031 echo $ECHO_N "checking for snprintf declaration... $ECHO_C" >&6; }
35032 if test "${wx_cv_func_snprintf_decl+set}" = set; then
35033   echo $ECHO_N "(cached) $ECHO_C" >&6
35034 else
35035
35036             cat >conftest.$ac_ext <<_ACEOF
35037 /* confdefs.h.  */
35038 _ACEOF
35039 cat confdefs.h >>conftest.$ac_ext
35040 cat >>conftest.$ac_ext <<_ACEOF
35041 /* end confdefs.h.  */
35042
35043                     #include <stdio.h>
35044                     #include <stdarg.h>
35045                     #ifdef __MSL__
35046                     #if __MSL__ >= 0x6000
35047                     namespace std {}
35048                     using namespace std;
35049                     #endif
35050                     #endif
35051
35052 int
35053 main ()
35054 {
35055
35056                     char *buf;
35057                     snprintf(buf, 10u, "%s", "wx");
35058
35059   ;
35060   return 0;
35061 }
35062 _ACEOF
35063 rm -f conftest.$ac_objext
35064 if { (ac_try="$ac_compile"
35065 case "(($ac_try" in
35066   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35067   *) ac_try_echo=$ac_try;;
35068 esac
35069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35070   (eval "$ac_compile") 2>conftest.er1
35071   ac_status=$?
35072   grep -v '^ *+' conftest.er1 >conftest.err
35073   rm -f conftest.er1
35074   cat conftest.err >&5
35075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35076   (exit $ac_status); } && {
35077          test -z "$ac_c_werror_flag" ||
35078          test ! -s conftest.err
35079        } && test -s conftest.$ac_objext; then
35080   wx_cv_func_snprintf_decl=yes
35081 else
35082   echo "$as_me: failed program was:" >&5
35083 sed 's/^/| /' conftest.$ac_ext >&5
35084
35085         wx_cv_func_snprintf_decl=no
35086
35087 fi
35088
35089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35090
35091
35092 fi
35093 { echo "$as_me:$LINENO: result: $wx_cv_func_snprintf_decl" >&5
35094 echo "${ECHO_T}$wx_cv_func_snprintf_decl" >&6; }
35095
35096     if test "$wx_cv_func_snprintf_decl" = "yes"; then
35097         cat >>confdefs.h <<\_ACEOF
35098 #define HAVE_SNPRINTF_DECL 1
35099 _ACEOF
35100
35101     fi
35102
35103     if test "$wxUSE_PRINTF_POS_PARAMS" = "yes"; then
35104
35105                                         { echo "$as_me:$LINENO: checking if snprintf supports positional arguments" >&5
35106 echo $ECHO_N "checking if snprintf supports positional arguments... $ECHO_C" >&6; }
35107 if test "${wx_cv_func_snprintf_pos_params+set}" = set; then
35108   echo $ECHO_N "(cached) $ECHO_C" >&6
35109 else
35110
35111                 if test "$cross_compiling" = yes; then
35112
35113                         { echo "$as_me:$LINENO: WARNING: Assuming Unix98 printf() is not available,
35114 define HAVE_UNIX98_PRINTF as 1 in setup.h if it is available." >&5
35115 echo "$as_me: WARNING: Assuming Unix98 printf() is not available,
35116 define HAVE_UNIX98_PRINTF as 1 in setup.h if it is available." >&2;}
35117                         wx_cv_func_snprintf_pos_params=no
35118
35119
35120 else
35121   cat >conftest.$ac_ext <<_ACEOF
35122 /* confdefs.h.  */
35123 _ACEOF
35124 cat confdefs.h >>conftest.$ac_ext
35125 cat >>conftest.$ac_ext <<_ACEOF
35126 /* end confdefs.h.  */
35127
35128                         #include <stdio.h>
35129
35130                         int main (void)
35131                         {
35132                             char buffer[128];
35133                             snprintf (buffer, 128, "%2$d %3$d %1$d", 1, 2, 3);
35134                             if (strcmp ("2 3 1", buffer) == 0)
35135                                 exit (0);
35136                             exit (1);
35137                         }
35138
35139 _ACEOF
35140 rm -f conftest$ac_exeext
35141 if { (ac_try="$ac_link"
35142 case "(($ac_try" in
35143   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35144   *) ac_try_echo=$ac_try;;
35145 esac
35146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35147   (eval "$ac_link") 2>&5
35148   ac_status=$?
35149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35150   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35151   { (case "(($ac_try" in
35152   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35153   *) ac_try_echo=$ac_try;;
35154 esac
35155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35156   (eval "$ac_try") 2>&5
35157   ac_status=$?
35158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35159   (exit $ac_status); }; }; then
35160   wx_cv_func_snprintf_pos_params=no
35161 else
35162   echo "$as_me: program exited with status $ac_status" >&5
35163 echo "$as_me: failed program was:" >&5
35164 sed 's/^/| /' conftest.$ac_ext >&5
35165
35166 ( exit $ac_status )
35167 wx_cv_func_snprintf_pos_params=yes
35168 fi
35169 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35170 fi
35171
35172
35173
35174
35175 fi
35176 { echo "$as_me:$LINENO: result: $wx_cv_func_snprintf_pos_params" >&5
35177 echo "${ECHO_T}$wx_cv_func_snprintf_pos_params" >&6; }
35178
35179         if test "$wx_cv_func_snprintf_pos_params" = "yes"; then
35180             cat >>confdefs.h <<\_ACEOF
35181 #define HAVE_UNIX98_PRINTF 1
35182 _ACEOF
35183
35184         fi
35185     fi
35186 fi
35187
35188 if test "$wxUSE_UNICODE" = yes; then
35189
35190             wchar_headers="#include <stdio.h>
35191 #include <wchar.h>"
35192     case "${host}" in
35193         *-*-solaris2* )
35194
35195 for ac_header in widec.h
35196 do
35197 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35198 { echo "$as_me:$LINENO: checking for $ac_header" >&5
35199 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
35200 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35201   echo $ECHO_N "(cached) $ECHO_C" >&6
35202 else
35203   cat >conftest.$ac_ext <<_ACEOF
35204 /* confdefs.h.  */
35205 _ACEOF
35206 cat confdefs.h >>conftest.$ac_ext
35207 cat >>conftest.$ac_ext <<_ACEOF
35208 /* end confdefs.h.  */
35209 $ac_includes_default
35210
35211 #include <$ac_header>
35212 _ACEOF
35213 rm -f conftest.$ac_objext
35214 if { (ac_try="$ac_compile"
35215 case "(($ac_try" in
35216   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35217   *) ac_try_echo=$ac_try;;
35218 esac
35219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35220   (eval "$ac_compile") 2>conftest.er1
35221   ac_status=$?
35222   grep -v '^ *+' conftest.er1 >conftest.err
35223   rm -f conftest.er1
35224   cat conftest.err >&5
35225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35226   (exit $ac_status); } && {
35227          test -z "$ac_c_werror_flag" ||
35228          test ! -s conftest.err
35229        } && test -s conftest.$ac_objext; then
35230   eval "$as_ac_Header=yes"
35231 else
35232   echo "$as_me: failed program was:" >&5
35233 sed 's/^/| /' conftest.$ac_ext >&5
35234
35235         eval "$as_ac_Header=no"
35236 fi
35237
35238 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35239 fi
35240 ac_res=`eval echo '${'$as_ac_Header'}'`
35241                { echo "$as_me:$LINENO: result: $ac_res" >&5
35242 echo "${ECHO_T}$ac_res" >&6; }
35243 if test `eval echo '${'$as_ac_Header'}'` = yes; then
35244   cat >>confdefs.h <<_ACEOF
35245 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35246 _ACEOF
35247
35248 fi
35249
35250 done
35251
35252             if test "$ac_cv_header_widec_h" = "yes"; then
35253                 wchar_headers="$wchar_headers
35254 #include <widec.h>"
35255             fi
35256     esac
35257
35258
35259   for wx_func in putws fputws wprintf vswprintf
35260   do
35261     { echo "$as_me:$LINENO: checking for $wx_func" >&5
35262 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
35263 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
35264   echo $ECHO_N "(cached) $ECHO_C" >&6
35265 else
35266
35267         cat >conftest.$ac_ext <<_ACEOF
35268
35269             /* confdefs.h.  */
35270 _ACEOF
35271 cat confdefs.h >>conftest.$ac_ext
35272 cat >>conftest.$ac_ext <<_ACEOF
35273 /* end confdefs.h.  */
35274
35275                 $wchar_headers
35276                 $ac_includes_default
35277
35278 int
35279 main ()
35280 {
35281
35282                 #ifndef $wx_func
35283                   &$wx_func;
35284                 #endif
35285
35286
35287   ;
35288   return 0;
35289 }
35290
35291 _ACEOF
35292 rm -f conftest.$ac_objext conftest$ac_exeext
35293 if { (ac_try="$ac_link"
35294 case "(($ac_try" in
35295   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35296   *) ac_try_echo=$ac_try;;
35297 esac
35298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35299   (eval "$ac_link") 2>conftest.er1
35300   ac_status=$?
35301   grep -v '^ *+' conftest.er1 >conftest.err
35302   rm -f conftest.er1
35303   cat conftest.err >&5
35304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35305   (exit $ac_status); } && {
35306          test -z "$ac_c_werror_flag" ||
35307          test ! -s conftest.err
35308        } && test -s conftest$ac_exeext &&
35309        $as_test_x conftest$ac_exeext; then
35310   eval wx_cv_func_$wx_func=yes
35311 else
35312   echo "$as_me: failed program was:" >&5
35313 sed 's/^/| /' conftest.$ac_ext >&5
35314
35315         eval wx_cv_func_$wx_func=no
35316 fi
35317
35318 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35319       conftest$ac_exeext conftest.$ac_ext
35320
35321 fi
35322 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
35323                { echo "$as_me:$LINENO: result: $ac_res" >&5
35324 echo "${ECHO_T}$ac_res" >&6; }
35325
35326     if eval test \$wx_cv_func_$wx_func = yes
35327     then
35328       cat >>confdefs.h <<_ACEOF
35329 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
35330 _ACEOF
35331
35332
35333     else
35334       :
35335
35336     fi
35337   done
35338
35339
35340                 { echo "$as_me:$LINENO: checking for _vsnwprintf" >&5
35341 echo $ECHO_N "checking for _vsnwprintf... $ECHO_C" >&6; }
35342     cat >conftest.$ac_ext <<_ACEOF
35343 /* confdefs.h.  */
35344 _ACEOF
35345 cat confdefs.h >>conftest.$ac_ext
35346 cat >>conftest.$ac_ext <<_ACEOF
35347 /* end confdefs.h.  */
35348 #include <wchar.h>
35349 int
35350 main ()
35351 {
35352 &_vsnwprintf;
35353   ;
35354   return 0;
35355 }
35356 _ACEOF
35357 rm -f conftest.$ac_objext
35358 if { (ac_try="$ac_compile"
35359 case "(($ac_try" in
35360   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35361   *) ac_try_echo=$ac_try;;
35362 esac
35363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35364   (eval "$ac_compile") 2>conftest.er1
35365   ac_status=$?
35366   grep -v '^ *+' conftest.er1 >conftest.err
35367   rm -f conftest.er1
35368   cat conftest.err >&5
35369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35370   (exit $ac_status); } && {
35371          test -z "$ac_c_werror_flag" ||
35372          test ! -s conftest.err
35373        } && test -s conftest.$ac_objext; then
35374   { echo "$as_me:$LINENO: result: yes" >&5
35375 echo "${ECHO_T}yes" >&6; }
35376                     cat >>confdefs.h <<\_ACEOF
35377 #define HAVE__VSNWPRINTF 1
35378 _ACEOF
35379
35380 else
35381   echo "$as_me: failed program was:" >&5
35382 sed 's/^/| /' conftest.$ac_ext >&5
35383
35384         { echo "$as_me:$LINENO: result: no" >&5
35385 echo "${ECHO_T}no" >&6; }
35386 fi
35387
35388 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext;
35389 fi
35390
35391 if test "$wxUSE_FILE" = "yes"; then
35392
35393   for wx_func in fsync
35394   do
35395     { echo "$as_me:$LINENO: checking for $wx_func" >&5
35396 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
35397 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
35398   echo $ECHO_N "(cached) $ECHO_C" >&6
35399 else
35400
35401         cat >conftest.$ac_ext <<_ACEOF
35402
35403             /* confdefs.h.  */
35404 _ACEOF
35405 cat confdefs.h >>conftest.$ac_ext
35406 cat >>conftest.$ac_ext <<_ACEOF
35407 /* end confdefs.h.  */
35408
35409
35410                 $ac_includes_default
35411
35412 int
35413 main ()
35414 {
35415
35416                 #ifndef $wx_func
35417                   &$wx_func;
35418                 #endif
35419
35420
35421   ;
35422   return 0;
35423 }
35424
35425 _ACEOF
35426 rm -f conftest.$ac_objext conftest$ac_exeext
35427 if { (ac_try="$ac_link"
35428 case "(($ac_try" in
35429   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35430   *) ac_try_echo=$ac_try;;
35431 esac
35432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35433   (eval "$ac_link") 2>conftest.er1
35434   ac_status=$?
35435   grep -v '^ *+' conftest.er1 >conftest.err
35436   rm -f conftest.er1
35437   cat conftest.err >&5
35438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35439   (exit $ac_status); } && {
35440          test -z "$ac_c_werror_flag" ||
35441          test ! -s conftest.err
35442        } && test -s conftest$ac_exeext &&
35443        $as_test_x conftest$ac_exeext; then
35444   eval wx_cv_func_$wx_func=yes
35445 else
35446   echo "$as_me: failed program was:" >&5
35447 sed 's/^/| /' conftest.$ac_ext >&5
35448
35449         eval wx_cv_func_$wx_func=no
35450 fi
35451
35452 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35453       conftest$ac_exeext conftest.$ac_ext
35454
35455 fi
35456 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
35457                { echo "$as_me:$LINENO: result: $ac_res" >&5
35458 echo "${ECHO_T}$ac_res" >&6; }
35459
35460     if eval test \$wx_cv_func_$wx_func = yes
35461     then
35462       cat >>confdefs.h <<_ACEOF
35463 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
35464 _ACEOF
35465
35466
35467     else
35468       :
35469
35470     fi
35471   done
35472
35473 fi
35474
35475 ac_ext=cpp
35476 ac_cpp='$CXXCPP $CPPFLAGS'
35477 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35478 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35479 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
35480
35481
35482   for wx_func in round
35483   do
35484     { echo "$as_me:$LINENO: checking for $wx_func" >&5
35485 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
35486 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
35487   echo $ECHO_N "(cached) $ECHO_C" >&6
35488 else
35489
35490         cat >conftest.$ac_ext <<_ACEOF
35491
35492             /* confdefs.h.  */
35493 _ACEOF
35494 cat confdefs.h >>conftest.$ac_ext
35495 cat >>conftest.$ac_ext <<_ACEOF
35496 /* end confdefs.h.  */
35497
35498                 #include <math.h>
35499                 $ac_includes_default
35500
35501 int
35502 main ()
35503 {
35504
35505                 #ifndef $wx_func
35506                   &$wx_func;
35507                 #endif
35508
35509
35510   ;
35511   return 0;
35512 }
35513
35514 _ACEOF
35515 rm -f conftest.$ac_objext conftest$ac_exeext
35516 if { (ac_try="$ac_link"
35517 case "(($ac_try" in
35518   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35519   *) ac_try_echo=$ac_try;;
35520 esac
35521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35522   (eval "$ac_link") 2>conftest.er1
35523   ac_status=$?
35524   grep -v '^ *+' conftest.er1 >conftest.err
35525   rm -f conftest.er1
35526   cat conftest.err >&5
35527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35528   (exit $ac_status); } && {
35529          test -z "$ac_cxx_werror_flag" ||
35530          test ! -s conftest.err
35531        } && test -s conftest$ac_exeext &&
35532        $as_test_x conftest$ac_exeext; then
35533   eval wx_cv_func_$wx_func=yes
35534 else
35535   echo "$as_me: failed program was:" >&5
35536 sed 's/^/| /' conftest.$ac_ext >&5
35537
35538         eval wx_cv_func_$wx_func=no
35539 fi
35540
35541 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35542       conftest$ac_exeext conftest.$ac_ext
35543
35544 fi
35545 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
35546                { echo "$as_me:$LINENO: result: $ac_res" >&5
35547 echo "${ECHO_T}$ac_res" >&6; }
35548
35549     if eval test \$wx_cv_func_$wx_func = yes
35550     then
35551       cat >>confdefs.h <<_ACEOF
35552 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
35553 _ACEOF
35554
35555
35556     else
35557       :
35558
35559     fi
35560   done
35561
35562 ac_ext=c
35563 ac_cpp='$CPP $CPPFLAGS'
35564 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35565 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35566 ac_compiler_gnu=$ac_cv_c_compiler_gnu
35567
35568
35569 if test "$TOOLKIT" != "MSW"; then
35570
35571
35572
35573
35574
35575 # Check whether --with-libiconv-prefix was given.
35576 if test "${with_libiconv_prefix+set}" = set; then
35577   withval=$with_libiconv_prefix;
35578     for dir in `echo "$withval" | tr : ' '`; do
35579       if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
35580       if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
35581     done
35582
35583 fi
35584
35585
35586   { echo "$as_me:$LINENO: checking for iconv" >&5
35587 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
35588 if test "${am_cv_func_iconv+set}" = set; then
35589   echo $ECHO_N "(cached) $ECHO_C" >&6
35590 else
35591
35592     am_cv_func_iconv="no, consider installing GNU libiconv"
35593     am_cv_lib_iconv=no
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 #include <stdlib.h>
35601 #include <iconv.h>
35602 int
35603 main ()
35604 {
35605 iconv_t cd = iconv_open("","");
35606        iconv(cd,NULL,NULL,NULL,NULL);
35607        iconv_close(cd);
35608   ;
35609   return 0;
35610 }
35611 _ACEOF
35612 rm -f conftest.$ac_objext conftest$ac_exeext
35613 if { (ac_try="$ac_link"
35614 case "(($ac_try" in
35615   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35616   *) ac_try_echo=$ac_try;;
35617 esac
35618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35619   (eval "$ac_link") 2>conftest.er1
35620   ac_status=$?
35621   grep -v '^ *+' conftest.er1 >conftest.err
35622   rm -f conftest.er1
35623   cat conftest.err >&5
35624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35625   (exit $ac_status); } && {
35626          test -z "$ac_c_werror_flag" ||
35627          test ! -s conftest.err
35628        } && test -s conftest$ac_exeext &&
35629        $as_test_x conftest$ac_exeext; then
35630   am_cv_func_iconv=yes
35631 else
35632   echo "$as_me: failed program was:" >&5
35633 sed 's/^/| /' conftest.$ac_ext >&5
35634
35635
35636 fi
35637
35638 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35639       conftest$ac_exeext conftest.$ac_ext
35640     if test "$am_cv_func_iconv" != yes; then
35641       am_save_LIBS="$LIBS"
35642       LIBS="$LIBS -liconv"
35643       cat >conftest.$ac_ext <<_ACEOF
35644 /* confdefs.h.  */
35645 _ACEOF
35646 cat confdefs.h >>conftest.$ac_ext
35647 cat >>conftest.$ac_ext <<_ACEOF
35648 /* end confdefs.h.  */
35649 #include <stdlib.h>
35650 #include <iconv.h>
35651 int
35652 main ()
35653 {
35654 iconv_t cd = iconv_open("","");
35655          iconv(cd,NULL,NULL,NULL,NULL);
35656          iconv_close(cd);
35657   ;
35658   return 0;
35659 }
35660 _ACEOF
35661 rm -f conftest.$ac_objext conftest$ac_exeext
35662 if { (ac_try="$ac_link"
35663 case "(($ac_try" in
35664   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35665   *) ac_try_echo=$ac_try;;
35666 esac
35667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35668   (eval "$ac_link") 2>conftest.er1
35669   ac_status=$?
35670   grep -v '^ *+' conftest.er1 >conftest.err
35671   rm -f conftest.er1
35672   cat conftest.err >&5
35673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35674   (exit $ac_status); } && {
35675          test -z "$ac_c_werror_flag" ||
35676          test ! -s conftest.err
35677        } && test -s conftest$ac_exeext &&
35678        $as_test_x conftest$ac_exeext; then
35679   am_cv_lib_iconv=yes
35680         am_cv_func_iconv=yes
35681 else
35682   echo "$as_me: failed program was:" >&5
35683 sed 's/^/| /' conftest.$ac_ext >&5
35684
35685
35686 fi
35687
35688 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35689       conftest$ac_exeext conftest.$ac_ext
35690       LIBS="$am_save_LIBS"
35691     fi
35692
35693 fi
35694 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
35695 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
35696   if test "$am_cv_func_iconv" = yes; then
35697
35698 cat >>confdefs.h <<\_ACEOF
35699 #define HAVE_ICONV 1
35700 _ACEOF
35701
35702     { echo "$as_me:$LINENO: checking if iconv needs const" >&5
35703 echo $ECHO_N "checking if iconv needs const... $ECHO_C" >&6; }
35704 if test "${wx_cv_func_iconv_const+set}" = set; then
35705   echo $ECHO_N "(cached) $ECHO_C" >&6
35706 else
35707   cat >conftest.$ac_ext <<_ACEOF
35708 /* confdefs.h.  */
35709 _ACEOF
35710 cat confdefs.h >>conftest.$ac_ext
35711 cat >>conftest.$ac_ext <<_ACEOF
35712 /* end confdefs.h.  */
35713
35714 #include <stdlib.h>
35715 #include <iconv.h>
35716 extern
35717 #ifdef __cplusplus
35718 "C"
35719 #endif
35720 #if defined(__STDC__) || defined(__cplusplus)
35721 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
35722 #else
35723 size_t iconv();
35724 #endif
35725
35726 int
35727 main ()
35728 {
35729
35730   ;
35731   return 0;
35732 }
35733 _ACEOF
35734 rm -f conftest.$ac_objext
35735 if { (ac_try="$ac_compile"
35736 case "(($ac_try" in
35737   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35738   *) ac_try_echo=$ac_try;;
35739 esac
35740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35741   (eval "$ac_compile") 2>conftest.er1
35742   ac_status=$?
35743   grep -v '^ *+' conftest.er1 >conftest.err
35744   rm -f conftest.er1
35745   cat conftest.err >&5
35746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35747   (exit $ac_status); } && {
35748          test -z "$ac_c_werror_flag" ||
35749          test ! -s conftest.err
35750        } && test -s conftest.$ac_objext; then
35751   wx_cv_func_iconv_const="no"
35752 else
35753   echo "$as_me: failed program was:" >&5
35754 sed 's/^/| /' conftest.$ac_ext >&5
35755
35756         wx_cv_func_iconv_const="yes"
35757
35758 fi
35759
35760 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35761
35762 fi
35763 { echo "$as_me:$LINENO: result: $wx_cv_func_iconv_const" >&5
35764 echo "${ECHO_T}$wx_cv_func_iconv_const" >&6; }
35765
35766     iconv_const=
35767     if test "x$wx_cv_func_iconv_const" = "xyes"; then
35768         iconv_const="const"
35769     fi
35770
35771
35772 cat >>confdefs.h <<_ACEOF
35773 #define ICONV_CONST $iconv_const
35774 _ACEOF
35775
35776   fi
35777   LIBICONV=
35778   if test "$am_cv_lib_iconv" = yes; then
35779     LIBICONV="-liconv"
35780   fi
35781
35782
35783 LIBS="$LIBICONV $LIBS"
35784
35785 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
35786
35787 for ac_func in sigaction
35788 do
35789 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35790 { echo "$as_me:$LINENO: checking for $ac_func" >&5
35791 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
35792 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
35793   echo $ECHO_N "(cached) $ECHO_C" >&6
35794 else
35795   cat >conftest.$ac_ext <<_ACEOF
35796 /* confdefs.h.  */
35797 _ACEOF
35798 cat confdefs.h >>conftest.$ac_ext
35799 cat >>conftest.$ac_ext <<_ACEOF
35800 /* end confdefs.h.  */
35801 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35802    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
35803 #define $ac_func innocuous_$ac_func
35804
35805 /* System header to define __stub macros and hopefully few prototypes,
35806     which can conflict with char $ac_func (); below.
35807     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35808     <limits.h> exists even on freestanding compilers.  */
35809
35810 #ifdef __STDC__
35811 # include <limits.h>
35812 #else
35813 # include <assert.h>
35814 #endif
35815
35816 #undef $ac_func
35817
35818 /* Override any GCC internal prototype to avoid an error.
35819    Use char because int might match the return type of a GCC
35820    builtin and then its argument prototype would still apply.  */
35821 #ifdef __cplusplus
35822 extern "C"
35823 #endif
35824 char $ac_func ();
35825 /* The GNU C library defines this for functions which it implements
35826     to always fail with ENOSYS.  Some functions are actually named
35827     something starting with __ and the normal name is an alias.  */
35828 #if defined __stub_$ac_func || defined __stub___$ac_func
35829 choke me
35830 #endif
35831
35832 int
35833 main ()
35834 {
35835 return $ac_func ();
35836   ;
35837   return 0;
35838 }
35839 _ACEOF
35840 rm -f conftest.$ac_objext conftest$ac_exeext
35841 if { (ac_try="$ac_link"
35842 case "(($ac_try" in
35843   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35844   *) ac_try_echo=$ac_try;;
35845 esac
35846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35847   (eval "$ac_link") 2>conftest.er1
35848   ac_status=$?
35849   grep -v '^ *+' conftest.er1 >conftest.err
35850   rm -f conftest.er1
35851   cat conftest.err >&5
35852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35853   (exit $ac_status); } && {
35854          test -z "$ac_c_werror_flag" ||
35855          test ! -s conftest.err
35856        } && test -s conftest$ac_exeext &&
35857        $as_test_x conftest$ac_exeext; then
35858   eval "$as_ac_var=yes"
35859 else
35860   echo "$as_me: failed program was:" >&5
35861 sed 's/^/| /' conftest.$ac_ext >&5
35862
35863         eval "$as_ac_var=no"
35864 fi
35865
35866 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35867       conftest$ac_exeext conftest.$ac_ext
35868 fi
35869 ac_res=`eval echo '${'$as_ac_var'}'`
35870                { echo "$as_me:$LINENO: result: $ac_res" >&5
35871 echo "${ECHO_T}$ac_res" >&6; }
35872 if test `eval echo '${'$as_ac_var'}'` = yes; then
35873   cat >>confdefs.h <<_ACEOF
35874 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35875 _ACEOF
35876
35877 fi
35878 done
35879
35880
35881     if test "$ac_cv_func_sigaction" = "no"; then
35882         { echo "$as_me:$LINENO: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&5
35883 echo "$as_me: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&2;}
35884         wxUSE_ON_FATAL_EXCEPTION=no
35885     fi
35886
35887     if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
35888       { echo "$as_me:$LINENO: checking for sa_handler type" >&5
35889 echo $ECHO_N "checking for sa_handler type... $ECHO_C" >&6; }
35890 if test "${wx_cv_type_sa_handler+set}" = set; then
35891   echo $ECHO_N "(cached) $ECHO_C" >&6
35892 else
35893
35894                 ac_ext=cpp
35895 ac_cpp='$CXXCPP $CPPFLAGS'
35896 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35897 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35898 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
35899
35900         cat >conftest.$ac_ext <<_ACEOF
35901 /* confdefs.h.  */
35902 _ACEOF
35903 cat confdefs.h >>conftest.$ac_ext
35904 cat >>conftest.$ac_ext <<_ACEOF
35905 /* end confdefs.h.  */
35906 #include <signal.h>
35907 int
35908 main ()
35909 {
35910
35911                         extern void testSigHandler(int);
35912
35913                         struct sigaction sa;
35914                         sa.sa_handler = testSigHandler;
35915
35916   ;
35917   return 0;
35918 }
35919 _ACEOF
35920 rm -f conftest.$ac_objext
35921 if { (ac_try="$ac_compile"
35922 case "(($ac_try" in
35923   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35924   *) ac_try_echo=$ac_try;;
35925 esac
35926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35927   (eval "$ac_compile") 2>conftest.er1
35928   ac_status=$?
35929   grep -v '^ *+' conftest.er1 >conftest.err
35930   rm -f conftest.er1
35931   cat conftest.err >&5
35932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35933   (exit $ac_status); } && {
35934          test -z "$ac_cxx_werror_flag" ||
35935          test ! -s conftest.err
35936        } && test -s conftest.$ac_objext; then
35937
35938                         wx_cv_type_sa_handler=int
35939
35940 else
35941   echo "$as_me: failed program was:" >&5
35942 sed 's/^/| /' conftest.$ac_ext >&5
35943
35944
35945                         wx_cv_type_sa_handler=void
35946
35947 fi
35948
35949 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35950         ac_ext=c
35951 ac_cpp='$CPP $CPPFLAGS'
35952 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35953 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35954 ac_compiler_gnu=$ac_cv_c_compiler_gnu
35955
35956
35957 fi
35958 { echo "$as_me:$LINENO: result: $wx_cv_type_sa_handler" >&5
35959 echo "${ECHO_T}$wx_cv_type_sa_handler" >&6; }
35960
35961       cat >>confdefs.h <<_ACEOF
35962 #define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
35963 _ACEOF
35964
35965     fi
35966 fi
35967
35968 if test "$wxUSE_STACKWALKER" = "yes" -a "$wxUSE_UNIX" = "yes"; then
35969     { echo "$as_me:$LINENO: checking for backtrace() in <execinfo.h>" >&5
35970 echo $ECHO_N "checking for backtrace() in <execinfo.h>... $ECHO_C" >&6; }
35971 if test "${wx_cv_func_backtrace+set}" = set; then
35972   echo $ECHO_N "(cached) $ECHO_C" >&6
35973 else
35974
35975             ac_ext=cpp
35976 ac_cpp='$CXXCPP $CPPFLAGS'
35977 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35978 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35979 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
35980
35981             cat >conftest.$ac_ext <<_ACEOF
35982 /* confdefs.h.  */
35983 _ACEOF
35984 cat confdefs.h >>conftest.$ac_ext
35985 cat >>conftest.$ac_ext <<_ACEOF
35986 /* end confdefs.h.  */
35987 #include <execinfo.h>
35988 int
35989 main ()
35990 {
35991
35992                     void *trace[1];
35993                     char **messages;
35994
35995                     backtrace(trace, 1);
35996                     messages = backtrace_symbols(trace, 1);
35997
35998   ;
35999   return 0;
36000 }
36001 _ACEOF
36002 rm -f conftest.$ac_objext
36003 if { (ac_try="$ac_compile"
36004 case "(($ac_try" in
36005   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36006   *) ac_try_echo=$ac_try;;
36007 esac
36008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36009   (eval "$ac_compile") 2>conftest.er1
36010   ac_status=$?
36011   grep -v '^ *+' conftest.er1 >conftest.err
36012   rm -f conftest.er1
36013   cat conftest.err >&5
36014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36015   (exit $ac_status); } && {
36016          test -z "$ac_cxx_werror_flag" ||
36017          test ! -s conftest.err
36018        } && test -s conftest.$ac_objext; then
36019   wx_cv_func_backtrace=yes
36020 else
36021   echo "$as_me: failed program was:" >&5
36022 sed 's/^/| /' conftest.$ac_ext >&5
36023
36024         wx_cv_func_backtrace=no
36025
36026 fi
36027
36028 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36029             ac_ext=c
36030 ac_cpp='$CPP $CPPFLAGS'
36031 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36032 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36033 ac_compiler_gnu=$ac_cv_c_compiler_gnu
36034
36035
36036
36037 fi
36038 { echo "$as_me:$LINENO: result: $wx_cv_func_backtrace" >&5
36039 echo "${ECHO_T}$wx_cv_func_backtrace" >&6; }
36040
36041
36042     if test "$wx_cv_func_backtrace" = "no"; then
36043         { echo "$as_me:$LINENO: WARNING: backtrace() is not available, wxStackWalker will not be available" >&5
36044 echo "$as_me: WARNING: backtrace() is not available, wxStackWalker will not be available" >&2;}
36045         wxUSE_STACKWALKER=no
36046     else
36047         { echo "$as_me:$LINENO: checking for __cxa_demangle() in <cxxabi.h>" >&5
36048 echo $ECHO_N "checking for __cxa_demangle() in <cxxabi.h>... $ECHO_C" >&6; }
36049 if test "${wx_cv_func_cxa_demangle+set}" = set; then
36050   echo $ECHO_N "(cached) $ECHO_C" >&6
36051 else
36052
36053                 ac_ext=cpp
36054 ac_cpp='$CXXCPP $CPPFLAGS'
36055 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36056 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36057 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
36058
36059                 cat >conftest.$ac_ext <<_ACEOF
36060 /* confdefs.h.  */
36061 _ACEOF
36062 cat confdefs.h >>conftest.$ac_ext
36063 cat >>conftest.$ac_ext <<_ACEOF
36064 /* end confdefs.h.  */
36065 #include <cxxabi.h>
36066 int
36067 main ()
36068 {
36069
36070                         int rc;
36071                         __cxxabiv1::__cxa_demangle("foo", 0, 0, &rc);
36072
36073   ;
36074   return 0;
36075 }
36076 _ACEOF
36077 rm -f conftest.$ac_objext conftest$ac_exeext
36078 if { (ac_try="$ac_link"
36079 case "(($ac_try" in
36080   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36081   *) ac_try_echo=$ac_try;;
36082 esac
36083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36084   (eval "$ac_link") 2>conftest.er1
36085   ac_status=$?
36086   grep -v '^ *+' conftest.er1 >conftest.err
36087   rm -f conftest.er1
36088   cat conftest.err >&5
36089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36090   (exit $ac_status); } && {
36091          test -z "$ac_cxx_werror_flag" ||
36092          test ! -s conftest.err
36093        } && test -s conftest$ac_exeext &&
36094        $as_test_x conftest$ac_exeext; then
36095   wx_cv_func_cxa_demangle=yes
36096 else
36097   echo "$as_me: failed program was:" >&5
36098 sed 's/^/| /' conftest.$ac_ext >&5
36099
36100         wx_cv_func_cxa_demangle=no
36101
36102 fi
36103
36104 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36105       conftest$ac_exeext conftest.$ac_ext
36106                 ac_ext=c
36107 ac_cpp='$CPP $CPPFLAGS'
36108 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36109 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36110 ac_compiler_gnu=$ac_cv_c_compiler_gnu
36111
36112
36113
36114 fi
36115 { echo "$as_me:$LINENO: result: $wx_cv_func_cxa_demangle" >&5
36116 echo "${ECHO_T}$wx_cv_func_cxa_demangle" >&6; }
36117
36118         if test "$wx_cv_func_cxa_demangle" = "yes"; then
36119             cat >>confdefs.h <<\_ACEOF
36120 #define HAVE_CXA_DEMANGLE 1
36121 _ACEOF
36122
36123         fi
36124     fi
36125 fi
36126
36127 if test "$wxUSE_STACKWALKER" = "yes" -a "$USE_WIN32" != 1 -a "$USE_UNIX" != 1; then
36128     { echo "$as_me:$LINENO: WARNING: wxStackWalker is only available on Win32 and UNIX... disabled" >&5
36129 echo "$as_me: WARNING: wxStackWalker is only available on Win32 and UNIX... disabled" >&2;}
36130     wxUSE_STACKWALKER=no
36131 fi
36132
36133
36134
36135
36136 for ac_func in mkstemp mktemp
36137 do
36138 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36139 { echo "$as_me:$LINENO: checking for $ac_func" >&5
36140 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
36141 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
36142   echo $ECHO_N "(cached) $ECHO_C" >&6
36143 else
36144   cat >conftest.$ac_ext <<_ACEOF
36145 /* confdefs.h.  */
36146 _ACEOF
36147 cat confdefs.h >>conftest.$ac_ext
36148 cat >>conftest.$ac_ext <<_ACEOF
36149 /* end confdefs.h.  */
36150 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36151    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36152 #define $ac_func innocuous_$ac_func
36153
36154 /* System header to define __stub macros and hopefully few prototypes,
36155     which can conflict with char $ac_func (); below.
36156     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36157     <limits.h> exists even on freestanding compilers.  */
36158
36159 #ifdef __STDC__
36160 # include <limits.h>
36161 #else
36162 # include <assert.h>
36163 #endif
36164
36165 #undef $ac_func
36166
36167 /* Override any GCC internal prototype to avoid an error.
36168    Use char because int might match the return type of a GCC
36169    builtin and then its argument prototype would still apply.  */
36170 #ifdef __cplusplus
36171 extern "C"
36172 #endif
36173 char $ac_func ();
36174 /* The GNU C library defines this for functions which it implements
36175     to always fail with ENOSYS.  Some functions are actually named
36176     something starting with __ and the normal name is an alias.  */
36177 #if defined __stub_$ac_func || defined __stub___$ac_func
36178 choke me
36179 #endif
36180
36181 int
36182 main ()
36183 {
36184 return $ac_func ();
36185   ;
36186   return 0;
36187 }
36188 _ACEOF
36189 rm -f conftest.$ac_objext conftest$ac_exeext
36190 if { (ac_try="$ac_link"
36191 case "(($ac_try" in
36192   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36193   *) ac_try_echo=$ac_try;;
36194 esac
36195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36196   (eval "$ac_link") 2>conftest.er1
36197   ac_status=$?
36198   grep -v '^ *+' conftest.er1 >conftest.err
36199   rm -f conftest.er1
36200   cat conftest.err >&5
36201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36202   (exit $ac_status); } && {
36203          test -z "$ac_c_werror_flag" ||
36204          test ! -s conftest.err
36205        } && test -s conftest$ac_exeext &&
36206        $as_test_x conftest$ac_exeext; then
36207   eval "$as_ac_var=yes"
36208 else
36209   echo "$as_me: failed program was:" >&5
36210 sed 's/^/| /' conftest.$ac_ext >&5
36211
36212         eval "$as_ac_var=no"
36213 fi
36214
36215 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36216       conftest$ac_exeext conftest.$ac_ext
36217 fi
36218 ac_res=`eval echo '${'$as_ac_var'}'`
36219                { echo "$as_me:$LINENO: result: $ac_res" >&5
36220 echo "${ECHO_T}$ac_res" >&6; }
36221 if test `eval echo '${'$as_ac_var'}'` = yes; then
36222   cat >>confdefs.h <<_ACEOF
36223 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36224 _ACEOF
36225  break
36226 fi
36227 done
36228
36229
36230 { echo "$as_me:$LINENO: checking for statfs" >&5
36231 echo $ECHO_N "checking for statfs... $ECHO_C" >&6; }
36232 if test "${wx_cv_func_statfs+set}" = set; then
36233   echo $ECHO_N "(cached) $ECHO_C" >&6
36234 else
36235   cat >conftest.$ac_ext <<_ACEOF
36236 /* confdefs.h.  */
36237 _ACEOF
36238 cat confdefs.h >>conftest.$ac_ext
36239 cat >>conftest.$ac_ext <<_ACEOF
36240 /* end confdefs.h.  */
36241
36242              #if defined(__BSD__)
36243              #include <sys/param.h>
36244              #include <sys/mount.h>
36245              #else
36246              #include <sys/vfs.h>
36247              #endif
36248
36249 int
36250 main ()
36251 {
36252
36253              long l;
36254              struct statfs fs;
36255              statfs("/", &fs);
36256              l = fs.f_bsize;
36257              l += fs.f_blocks;
36258              l += fs.f_bavail;
36259
36260   ;
36261   return 0;
36262 }
36263 _ACEOF
36264 rm -f conftest.$ac_objext
36265 if { (ac_try="$ac_compile"
36266 case "(($ac_try" in
36267   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36268   *) ac_try_echo=$ac_try;;
36269 esac
36270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36271   (eval "$ac_compile") 2>conftest.er1
36272   ac_status=$?
36273   grep -v '^ *+' conftest.er1 >conftest.err
36274   rm -f conftest.er1
36275   cat conftest.err >&5
36276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36277   (exit $ac_status); } && {
36278          test -z "$ac_c_werror_flag" ||
36279          test ! -s conftest.err
36280        } && test -s conftest.$ac_objext; then
36281   wx_cv_func_statfs=yes
36282 else
36283   echo "$as_me: failed program was:" >&5
36284 sed 's/^/| /' conftest.$ac_ext >&5
36285
36286         wx_cv_func_statfs=no
36287
36288 fi
36289
36290 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36291
36292 fi
36293 { echo "$as_me:$LINENO: result: $wx_cv_func_statfs" >&5
36294 echo "${ECHO_T}$wx_cv_func_statfs" >&6; }
36295
36296 if test "$wx_cv_func_statfs" = "yes"; then
36297         { echo "$as_me:$LINENO: checking for statfs declaration" >&5
36298 echo $ECHO_N "checking for statfs declaration... $ECHO_C" >&6; }
36299 if test "${wx_cv_func_statfs_decl+set}" = set; then
36300   echo $ECHO_N "(cached) $ECHO_C" >&6
36301 else
36302   ac_ext=cpp
36303 ac_cpp='$CXXCPP $CPPFLAGS'
36304 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36305 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36306 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
36307
36308         cat >conftest.$ac_ext <<_ACEOF
36309 /* confdefs.h.  */
36310 _ACEOF
36311 cat confdefs.h >>conftest.$ac_ext
36312 cat >>conftest.$ac_ext <<_ACEOF
36313 /* end confdefs.h.  */
36314
36315                  #if defined(__BSD__)
36316                  #include <sys/param.h>
36317                  #include <sys/mount.h>
36318                  #else
36319                  #include <sys/vfs.h>
36320                  #endif
36321
36322 int
36323 main ()
36324 {
36325
36326                 struct statfs fs;
36327                 statfs("", &fs);
36328
36329   ;
36330   return 0;
36331 }
36332 _ACEOF
36333 rm -f conftest.$ac_objext
36334 if { (ac_try="$ac_compile"
36335 case "(($ac_try" in
36336   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36337   *) ac_try_echo=$ac_try;;
36338 esac
36339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36340   (eval "$ac_compile") 2>conftest.er1
36341   ac_status=$?
36342   grep -v '^ *+' conftest.er1 >conftest.err
36343   rm -f conftest.er1
36344   cat conftest.err >&5
36345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36346   (exit $ac_status); } && {
36347          test -z "$ac_cxx_werror_flag" ||
36348          test ! -s conftest.err
36349        } && test -s conftest.$ac_objext; then
36350   wx_cv_func_statfs_decl=yes
36351 else
36352   echo "$as_me: failed program was:" >&5
36353 sed 's/^/| /' conftest.$ac_ext >&5
36354
36355         wx_cv_func_statfs_decl=no
36356
36357 fi
36358
36359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36360         ac_ext=c
36361 ac_cpp='$CPP $CPPFLAGS'
36362 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36363 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36364 ac_compiler_gnu=$ac_cv_c_compiler_gnu
36365
36366
36367 fi
36368 { echo "$as_me:$LINENO: result: $wx_cv_func_statfs_decl" >&5
36369 echo "${ECHO_T}$wx_cv_func_statfs_decl" >&6; }
36370
36371     if test "$wx_cv_func_statfs_decl" = "yes"; then
36372         cat >>confdefs.h <<\_ACEOF
36373 #define HAVE_STATFS_DECL 1
36374 _ACEOF
36375
36376     fi
36377
36378     wx_cv_type_statvfs_t="struct statfs"
36379     cat >>confdefs.h <<\_ACEOF
36380 #define HAVE_STATFS 1
36381 _ACEOF
36382
36383 else
36384     { echo "$as_me:$LINENO: checking for statvfs" >&5
36385 echo $ECHO_N "checking for statvfs... $ECHO_C" >&6; }
36386 if test "${wx_cv_func_statvfs+set}" = set; then
36387   echo $ECHO_N "(cached) $ECHO_C" >&6
36388 else
36389   cat >conftest.$ac_ext <<_ACEOF
36390 /* confdefs.h.  */
36391 _ACEOF
36392 cat confdefs.h >>conftest.$ac_ext
36393 cat >>conftest.$ac_ext <<_ACEOF
36394 /* end confdefs.h.  */
36395
36396                 #include <stddef.h>
36397                 #include <sys/statvfs.h>
36398
36399 int
36400 main ()
36401 {
36402
36403                 statvfs("/", NULL);
36404
36405   ;
36406   return 0;
36407 }
36408 _ACEOF
36409 rm -f conftest.$ac_objext
36410 if { (ac_try="$ac_compile"
36411 case "(($ac_try" in
36412   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36413   *) ac_try_echo=$ac_try;;
36414 esac
36415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36416   (eval "$ac_compile") 2>conftest.er1
36417   ac_status=$?
36418   grep -v '^ *+' conftest.er1 >conftest.err
36419   rm -f conftest.er1
36420   cat conftest.err >&5
36421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36422   (exit $ac_status); } && {
36423          test -z "$ac_c_werror_flag" ||
36424          test ! -s conftest.err
36425        } && test -s conftest.$ac_objext; then
36426   wx_cv_func_statvfs=yes
36427 else
36428   echo "$as_me: failed program was:" >&5
36429 sed 's/^/| /' conftest.$ac_ext >&5
36430
36431         wx_cv_func_statvfs=no
36432
36433 fi
36434
36435 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36436
36437 fi
36438 { echo "$as_me:$LINENO: result: $wx_cv_func_statvfs" >&5
36439 echo "${ECHO_T}$wx_cv_func_statvfs" >&6; }
36440
36441     if test "$wx_cv_func_statvfs" = "yes"; then
36442                                                                 { echo "$as_me:$LINENO: checking for statvfs argument type" >&5
36443 echo $ECHO_N "checking for statvfs argument type... $ECHO_C" >&6; }
36444 if test "${wx_cv_type_statvfs_t+set}" = set; then
36445   echo $ECHO_N "(cached) $ECHO_C" >&6
36446 else
36447   ac_ext=cpp
36448 ac_cpp='$CXXCPP $CPPFLAGS'
36449 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36450 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36451 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
36452
36453             cat >conftest.$ac_ext <<_ACEOF
36454 /* confdefs.h.  */
36455 _ACEOF
36456 cat confdefs.h >>conftest.$ac_ext
36457 cat >>conftest.$ac_ext <<_ACEOF
36458 /* end confdefs.h.  */
36459
36460                     #include <sys/statvfs.h>
36461
36462 int
36463 main ()
36464 {
36465
36466                     long l;
36467                     statvfs_t fs;
36468                     statvfs("/", &fs);
36469                     l = fs.f_bsize;
36470                     l += fs.f_blocks;
36471                     l += fs.f_bavail;
36472
36473   ;
36474   return 0;
36475 }
36476 _ACEOF
36477 rm -f conftest.$ac_objext
36478 if { (ac_try="$ac_compile"
36479 case "(($ac_try" in
36480   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36481   *) ac_try_echo=$ac_try;;
36482 esac
36483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36484   (eval "$ac_compile") 2>conftest.er1
36485   ac_status=$?
36486   grep -v '^ *+' conftest.er1 >conftest.err
36487   rm -f conftest.er1
36488   cat conftest.err >&5
36489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36490   (exit $ac_status); } && {
36491          test -z "$ac_cxx_werror_flag" ||
36492          test ! -s conftest.err
36493        } && test -s conftest.$ac_objext; then
36494   wx_cv_type_statvfs_t=statvfs_t
36495 else
36496   echo "$as_me: failed program was:" >&5
36497 sed 's/^/| /' conftest.$ac_ext >&5
36498
36499
36500                     cat >conftest.$ac_ext <<_ACEOF
36501 /* confdefs.h.  */
36502 _ACEOF
36503 cat confdefs.h >>conftest.$ac_ext
36504 cat >>conftest.$ac_ext <<_ACEOF
36505 /* end confdefs.h.  */
36506
36507                             #include <sys/statvfs.h>
36508
36509 int
36510 main ()
36511 {
36512
36513                             long l;
36514                             struct statvfs fs;
36515                             statvfs("/", &fs);
36516                             l = fs.f_bsize;
36517                             l += fs.f_blocks;
36518                             l += fs.f_bavail;
36519
36520   ;
36521   return 0;
36522 }
36523 _ACEOF
36524 rm -f conftest.$ac_objext
36525 if { (ac_try="$ac_compile"
36526 case "(($ac_try" in
36527   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36528   *) ac_try_echo=$ac_try;;
36529 esac
36530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36531   (eval "$ac_compile") 2>conftest.er1
36532   ac_status=$?
36533   grep -v '^ *+' conftest.er1 >conftest.err
36534   rm -f conftest.er1
36535   cat conftest.err >&5
36536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36537   (exit $ac_status); } && {
36538          test -z "$ac_cxx_werror_flag" ||
36539          test ! -s conftest.err
36540        } && test -s conftest.$ac_objext; then
36541   wx_cv_type_statvfs_t="struct statvfs"
36542 else
36543   echo "$as_me: failed program was:" >&5
36544 sed 's/^/| /' conftest.$ac_ext >&5
36545
36546         wx_cv_type_statvfs_t="unknown"
36547
36548 fi
36549
36550 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36551
36552
36553 fi
36554
36555 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36556             ac_ext=c
36557 ac_cpp='$CPP $CPPFLAGS'
36558 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36559 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36560 ac_compiler_gnu=$ac_cv_c_compiler_gnu
36561
36562
36563 fi
36564 { echo "$as_me:$LINENO: result: $wx_cv_type_statvfs_t" >&5
36565 echo "${ECHO_T}$wx_cv_type_statvfs_t" >&6; }
36566
36567         if test "$wx_cv_type_statvfs_t" != "unknown"; then
36568             cat >>confdefs.h <<\_ACEOF
36569 #define HAVE_STATVFS 1
36570 _ACEOF
36571
36572         fi
36573     else
36574                 wx_cv_type_statvfs_t="unknown"
36575     fi
36576 fi
36577
36578 if test "$wx_cv_type_statvfs_t" != "unknown"; then
36579     cat >>confdefs.h <<_ACEOF
36580 #define WX_STATFS_T $wx_cv_type_statvfs_t
36581 _ACEOF
36582
36583 else
36584     { echo "$as_me:$LINENO: WARNING: wxGetDiskSpace() function won't work without statfs()" >&5
36585 echo "$as_me: WARNING: wxGetDiskSpace() function won't work without statfs()" >&2;}
36586 fi
36587
36588 if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
36589
36590
36591 for ac_func in fcntl flock
36592 do
36593 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36594 { echo "$as_me:$LINENO: checking for $ac_func" >&5
36595 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
36596 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
36597   echo $ECHO_N "(cached) $ECHO_C" >&6
36598 else
36599   cat >conftest.$ac_ext <<_ACEOF
36600 /* confdefs.h.  */
36601 _ACEOF
36602 cat confdefs.h >>conftest.$ac_ext
36603 cat >>conftest.$ac_ext <<_ACEOF
36604 /* end confdefs.h.  */
36605 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36606    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36607 #define $ac_func innocuous_$ac_func
36608
36609 /* System header to define __stub macros and hopefully few prototypes,
36610     which can conflict with char $ac_func (); below.
36611     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36612     <limits.h> exists even on freestanding compilers.  */
36613
36614 #ifdef __STDC__
36615 # include <limits.h>
36616 #else
36617 # include <assert.h>
36618 #endif
36619
36620 #undef $ac_func
36621
36622 /* Override any GCC internal prototype to avoid an error.
36623    Use char because int might match the return type of a GCC
36624    builtin and then its argument prototype would still apply.  */
36625 #ifdef __cplusplus
36626 extern "C"
36627 #endif
36628 char $ac_func ();
36629 /* The GNU C library defines this for functions which it implements
36630     to always fail with ENOSYS.  Some functions are actually named
36631     something starting with __ and the normal name is an alias.  */
36632 #if defined __stub_$ac_func || defined __stub___$ac_func
36633 choke me
36634 #endif
36635
36636 int
36637 main ()
36638 {
36639 return $ac_func ();
36640   ;
36641   return 0;
36642 }
36643 _ACEOF
36644 rm -f conftest.$ac_objext conftest$ac_exeext
36645 if { (ac_try="$ac_link"
36646 case "(($ac_try" in
36647   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36648   *) ac_try_echo=$ac_try;;
36649 esac
36650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36651   (eval "$ac_link") 2>conftest.er1
36652   ac_status=$?
36653   grep -v '^ *+' conftest.er1 >conftest.err
36654   rm -f conftest.er1
36655   cat conftest.err >&5
36656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36657   (exit $ac_status); } && {
36658          test -z "$ac_c_werror_flag" ||
36659          test ! -s conftest.err
36660        } && test -s conftest$ac_exeext &&
36661        $as_test_x conftest$ac_exeext; then
36662   eval "$as_ac_var=yes"
36663 else
36664   echo "$as_me: failed program was:" >&5
36665 sed 's/^/| /' conftest.$ac_ext >&5
36666
36667         eval "$as_ac_var=no"
36668 fi
36669
36670 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36671       conftest$ac_exeext conftest.$ac_ext
36672 fi
36673 ac_res=`eval echo '${'$as_ac_var'}'`
36674                { echo "$as_me:$LINENO: result: $ac_res" >&5
36675 echo "${ECHO_T}$ac_res" >&6; }
36676 if test `eval echo '${'$as_ac_var'}'` = yes; then
36677   cat >>confdefs.h <<_ACEOF
36678 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36679 _ACEOF
36680  break
36681 fi
36682 done
36683
36684
36685     if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
36686         { echo "$as_me:$LINENO: WARNING: wxSingleInstanceChecker not available" >&5
36687 echo "$as_me: WARNING: wxSingleInstanceChecker not available" >&2;}
36688         wxUSE_SNGLINST_CHECKER=no
36689     fi
36690 fi
36691
36692
36693
36694 for ac_func in setenv putenv
36695 do
36696 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36697 { echo "$as_me:$LINENO: checking for $ac_func" >&5
36698 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
36699 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
36700   echo $ECHO_N "(cached) $ECHO_C" >&6
36701 else
36702   cat >conftest.$ac_ext <<_ACEOF
36703 /* confdefs.h.  */
36704 _ACEOF
36705 cat confdefs.h >>conftest.$ac_ext
36706 cat >>conftest.$ac_ext <<_ACEOF
36707 /* end confdefs.h.  */
36708 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36709    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36710 #define $ac_func innocuous_$ac_func
36711
36712 /* System header to define __stub macros and hopefully few prototypes,
36713     which can conflict with char $ac_func (); below.
36714     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36715     <limits.h> exists even on freestanding compilers.  */
36716
36717 #ifdef __STDC__
36718 # include <limits.h>
36719 #else
36720 # include <assert.h>
36721 #endif
36722
36723 #undef $ac_func
36724
36725 /* Override any GCC internal prototype to avoid an error.
36726    Use char because int might match the return type of a GCC
36727    builtin and then its argument prototype would still apply.  */
36728 #ifdef __cplusplus
36729 extern "C"
36730 #endif
36731 char $ac_func ();
36732 /* The GNU C library defines this for functions which it implements
36733     to always fail with ENOSYS.  Some functions are actually named
36734     something starting with __ and the normal name is an alias.  */
36735 #if defined __stub_$ac_func || defined __stub___$ac_func
36736 choke me
36737 #endif
36738
36739 int
36740 main ()
36741 {
36742 return $ac_func ();
36743   ;
36744   return 0;
36745 }
36746 _ACEOF
36747 rm -f conftest.$ac_objext conftest$ac_exeext
36748 if { (ac_try="$ac_link"
36749 case "(($ac_try" in
36750   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36751   *) ac_try_echo=$ac_try;;
36752 esac
36753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36754   (eval "$ac_link") 2>conftest.er1
36755   ac_status=$?
36756   grep -v '^ *+' conftest.er1 >conftest.err
36757   rm -f conftest.er1
36758   cat conftest.err >&5
36759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36760   (exit $ac_status); } && {
36761          test -z "$ac_c_werror_flag" ||
36762          test ! -s conftest.err
36763        } && test -s conftest$ac_exeext &&
36764        $as_test_x conftest$ac_exeext; then
36765   eval "$as_ac_var=yes"
36766 else
36767   echo "$as_me: failed program was:" >&5
36768 sed 's/^/| /' conftest.$ac_ext >&5
36769
36770         eval "$as_ac_var=no"
36771 fi
36772
36773 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36774       conftest$ac_exeext conftest.$ac_ext
36775 fi
36776 ac_res=`eval echo '${'$as_ac_var'}'`
36777                { echo "$as_me:$LINENO: result: $ac_res" >&5
36778 echo "${ECHO_T}$ac_res" >&6; }
36779 if test `eval echo '${'$as_ac_var'}'` = yes; then
36780   cat >>confdefs.h <<_ACEOF
36781 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36782 _ACEOF
36783  break
36784 fi
36785 done
36786
36787 if test "$ac_cv_func_setenv" = "yes"; then
36788
36789 for ac_func in unsetenv
36790 do
36791 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36792 { echo "$as_me:$LINENO: checking for $ac_func" >&5
36793 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
36794 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
36795   echo $ECHO_N "(cached) $ECHO_C" >&6
36796 else
36797   cat >conftest.$ac_ext <<_ACEOF
36798 /* confdefs.h.  */
36799 _ACEOF
36800 cat confdefs.h >>conftest.$ac_ext
36801 cat >>conftest.$ac_ext <<_ACEOF
36802 /* end confdefs.h.  */
36803 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36804    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36805 #define $ac_func innocuous_$ac_func
36806
36807 /* System header to define __stub macros and hopefully few prototypes,
36808     which can conflict with char $ac_func (); below.
36809     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36810     <limits.h> exists even on freestanding compilers.  */
36811
36812 #ifdef __STDC__
36813 # include <limits.h>
36814 #else
36815 # include <assert.h>
36816 #endif
36817
36818 #undef $ac_func
36819
36820 /* Override any GCC internal prototype to avoid an error.
36821    Use char because int might match the return type of a GCC
36822    builtin and then its argument prototype would still apply.  */
36823 #ifdef __cplusplus
36824 extern "C"
36825 #endif
36826 char $ac_func ();
36827 /* The GNU C library defines this for functions which it implements
36828     to always fail with ENOSYS.  Some functions are actually named
36829     something starting with __ and the normal name is an alias.  */
36830 #if defined __stub_$ac_func || defined __stub___$ac_func
36831 choke me
36832 #endif
36833
36834 int
36835 main ()
36836 {
36837 return $ac_func ();
36838   ;
36839   return 0;
36840 }
36841 _ACEOF
36842 rm -f conftest.$ac_objext conftest$ac_exeext
36843 if { (ac_try="$ac_link"
36844 case "(($ac_try" in
36845   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36846   *) ac_try_echo=$ac_try;;
36847 esac
36848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36849   (eval "$ac_link") 2>conftest.er1
36850   ac_status=$?
36851   grep -v '^ *+' conftest.er1 >conftest.err
36852   rm -f conftest.er1
36853   cat conftest.err >&5
36854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36855   (exit $ac_status); } && {
36856          test -z "$ac_c_werror_flag" ||
36857          test ! -s conftest.err
36858        } && test -s conftest$ac_exeext &&
36859        $as_test_x conftest$ac_exeext; then
36860   eval "$as_ac_var=yes"
36861 else
36862   echo "$as_me: failed program was:" >&5
36863 sed 's/^/| /' conftest.$ac_ext >&5
36864
36865         eval "$as_ac_var=no"
36866 fi
36867
36868 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36869       conftest$ac_exeext conftest.$ac_ext
36870 fi
36871 ac_res=`eval echo '${'$as_ac_var'}'`
36872                { echo "$as_me:$LINENO: result: $ac_res" >&5
36873 echo "${ECHO_T}$ac_res" >&6; }
36874 if test `eval echo '${'$as_ac_var'}'` = yes; then
36875   cat >>confdefs.h <<_ACEOF
36876 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36877 _ACEOF
36878
36879 fi
36880 done
36881
36882 fi
36883
36884 HAVE_SOME_SLEEP_FUNC=0
36885 if test "$USE_BEOS" = 1; then
36886             cat >>confdefs.h <<\_ACEOF
36887 #define HAVE_SLEEP 1
36888 _ACEOF
36889
36890     HAVE_SOME_SLEEP_FUNC=1
36891 fi
36892
36893 if test "$USE_DARWIN" = 1; then
36894             cat >>confdefs.h <<\_ACEOF
36895 #define HAVE_USLEEP 1
36896 _ACEOF
36897
36898     HAVE_SOME_SLEEP_FUNC=1
36899 fi
36900
36901 if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
36902         POSIX4_LINK=
36903
36904 for ac_func in nanosleep
36905 do
36906 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36907 { echo "$as_me:$LINENO: checking for $ac_func" >&5
36908 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
36909 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
36910   echo $ECHO_N "(cached) $ECHO_C" >&6
36911 else
36912   cat >conftest.$ac_ext <<_ACEOF
36913 /* confdefs.h.  */
36914 _ACEOF
36915 cat confdefs.h >>conftest.$ac_ext
36916 cat >>conftest.$ac_ext <<_ACEOF
36917 /* end confdefs.h.  */
36918 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36919    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36920 #define $ac_func innocuous_$ac_func
36921
36922 /* System header to define __stub macros and hopefully few prototypes,
36923     which can conflict with char $ac_func (); below.
36924     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36925     <limits.h> exists even on freestanding compilers.  */
36926
36927 #ifdef __STDC__
36928 # include <limits.h>
36929 #else
36930 # include <assert.h>
36931 #endif
36932
36933 #undef $ac_func
36934
36935 /* Override any GCC internal prototype to avoid an error.
36936    Use char because int might match the return type of a GCC
36937    builtin and then its argument prototype would still apply.  */
36938 #ifdef __cplusplus
36939 extern "C"
36940 #endif
36941 char $ac_func ();
36942 /* The GNU C library defines this for functions which it implements
36943     to always fail with ENOSYS.  Some functions are actually named
36944     something starting with __ and the normal name is an alias.  */
36945 #if defined __stub_$ac_func || defined __stub___$ac_func
36946 choke me
36947 #endif
36948
36949 int
36950 main ()
36951 {
36952 return $ac_func ();
36953   ;
36954   return 0;
36955 }
36956 _ACEOF
36957 rm -f conftest.$ac_objext conftest$ac_exeext
36958 if { (ac_try="$ac_link"
36959 case "(($ac_try" in
36960   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36961   *) ac_try_echo=$ac_try;;
36962 esac
36963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36964   (eval "$ac_link") 2>conftest.er1
36965   ac_status=$?
36966   grep -v '^ *+' conftest.er1 >conftest.err
36967   rm -f conftest.er1
36968   cat conftest.err >&5
36969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36970   (exit $ac_status); } && {
36971          test -z "$ac_c_werror_flag" ||
36972          test ! -s conftest.err
36973        } && test -s conftest$ac_exeext &&
36974        $as_test_x conftest$ac_exeext; then
36975   eval "$as_ac_var=yes"
36976 else
36977   echo "$as_me: failed program was:" >&5
36978 sed 's/^/| /' conftest.$ac_ext >&5
36979
36980         eval "$as_ac_var=no"
36981 fi
36982
36983 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36984       conftest$ac_exeext conftest.$ac_ext
36985 fi
36986 ac_res=`eval echo '${'$as_ac_var'}'`
36987                { echo "$as_me:$LINENO: result: $ac_res" >&5
36988 echo "${ECHO_T}$ac_res" >&6; }
36989 if test `eval echo '${'$as_ac_var'}'` = yes; then
36990   cat >>confdefs.h <<_ACEOF
36991 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36992 _ACEOF
36993  cat >>confdefs.h <<\_ACEOF
36994 #define HAVE_NANOSLEEP 1
36995 _ACEOF
36996
36997 else
36998
36999             { echo "$as_me:$LINENO: checking for nanosleep in -lposix4" >&5
37000 echo $ECHO_N "checking for nanosleep in -lposix4... $ECHO_C" >&6; }
37001 if test "${ac_cv_lib_posix4_nanosleep+set}" = set; then
37002   echo $ECHO_N "(cached) $ECHO_C" >&6
37003 else
37004   ac_check_lib_save_LIBS=$LIBS
37005 LIBS="-lposix4  $LIBS"
37006 cat >conftest.$ac_ext <<_ACEOF
37007 /* confdefs.h.  */
37008 _ACEOF
37009 cat confdefs.h >>conftest.$ac_ext
37010 cat >>conftest.$ac_ext <<_ACEOF
37011 /* end confdefs.h.  */
37012
37013 /* Override any GCC internal prototype to avoid an error.
37014    Use char because int might match the return type of a GCC
37015    builtin and then its argument prototype would still apply.  */
37016 #ifdef __cplusplus
37017 extern "C"
37018 #endif
37019 char nanosleep ();
37020 int
37021 main ()
37022 {
37023 return nanosleep ();
37024   ;
37025   return 0;
37026 }
37027 _ACEOF
37028 rm -f conftest.$ac_objext conftest$ac_exeext
37029 if { (ac_try="$ac_link"
37030 case "(($ac_try" in
37031   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37032   *) ac_try_echo=$ac_try;;
37033 esac
37034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37035   (eval "$ac_link") 2>conftest.er1
37036   ac_status=$?
37037   grep -v '^ *+' conftest.er1 >conftest.err
37038   rm -f conftest.er1
37039   cat conftest.err >&5
37040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37041   (exit $ac_status); } && {
37042          test -z "$ac_c_werror_flag" ||
37043          test ! -s conftest.err
37044        } && test -s conftest$ac_exeext &&
37045        $as_test_x conftest$ac_exeext; then
37046   ac_cv_lib_posix4_nanosleep=yes
37047 else
37048   echo "$as_me: failed program was:" >&5
37049 sed 's/^/| /' conftest.$ac_ext >&5
37050
37051         ac_cv_lib_posix4_nanosleep=no
37052 fi
37053
37054 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37055       conftest$ac_exeext conftest.$ac_ext
37056 LIBS=$ac_check_lib_save_LIBS
37057 fi
37058 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_nanosleep" >&5
37059 echo "${ECHO_T}$ac_cv_lib_posix4_nanosleep" >&6; }
37060 if test $ac_cv_lib_posix4_nanosleep = yes; then
37061
37062                     cat >>confdefs.h <<\_ACEOF
37063 #define HAVE_NANOSLEEP 1
37064 _ACEOF
37065
37066                     POSIX4_LINK=" -lposix4"
37067
37068 else
37069
37070
37071   for wx_func in usleep
37072   do
37073     { echo "$as_me:$LINENO: checking for $wx_func" >&5
37074 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
37075 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
37076   echo $ECHO_N "(cached) $ECHO_C" >&6
37077 else
37078
37079         cat >conftest.$ac_ext <<_ACEOF
37080
37081             /* confdefs.h.  */
37082 _ACEOF
37083 cat confdefs.h >>conftest.$ac_ext
37084 cat >>conftest.$ac_ext <<_ACEOF
37085 /* end confdefs.h.  */
37086
37087
37088                 $ac_includes_default
37089
37090 int
37091 main ()
37092 {
37093
37094                 #ifndef $wx_func
37095                   &$wx_func;
37096                 #endif
37097
37098
37099   ;
37100   return 0;
37101 }
37102
37103 _ACEOF
37104 rm -f conftest.$ac_objext conftest$ac_exeext
37105 if { (ac_try="$ac_link"
37106 case "(($ac_try" in
37107   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37108   *) ac_try_echo=$ac_try;;
37109 esac
37110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37111   (eval "$ac_link") 2>conftest.er1
37112   ac_status=$?
37113   grep -v '^ *+' conftest.er1 >conftest.err
37114   rm -f conftest.er1
37115   cat conftest.err >&5
37116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37117   (exit $ac_status); } && {
37118          test -z "$ac_c_werror_flag" ||
37119          test ! -s conftest.err
37120        } && test -s conftest$ac_exeext &&
37121        $as_test_x conftest$ac_exeext; then
37122   eval wx_cv_func_$wx_func=yes
37123 else
37124   echo "$as_me: failed program was:" >&5
37125 sed 's/^/| /' conftest.$ac_ext >&5
37126
37127         eval wx_cv_func_$wx_func=no
37128 fi
37129
37130 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37131       conftest$ac_exeext conftest.$ac_ext
37132
37133 fi
37134 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
37135                { echo "$as_me:$LINENO: result: $ac_res" >&5
37136 echo "${ECHO_T}$ac_res" >&6; }
37137
37138     if eval test \$wx_cv_func_$wx_func = yes
37139     then
37140       cat >>confdefs.h <<_ACEOF
37141 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
37142 _ACEOF
37143
37144
37145     else
37146       :
37147       { echo "$as_me:$LINENO: WARNING: wxSleep() function will not work" >&5
37148 echo "$as_me: WARNING: wxSleep() function will not work" >&2;}
37149
37150     fi
37151   done
37152
37153
37154
37155 fi
37156
37157
37158
37159 fi
37160 done
37161
37162 fi
37163
37164
37165   for wx_func in uname
37166   do
37167     { echo "$as_me:$LINENO: checking for $wx_func" >&5
37168 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
37169 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
37170   echo $ECHO_N "(cached) $ECHO_C" >&6
37171 else
37172
37173         cat >conftest.$ac_ext <<_ACEOF
37174
37175             /* confdefs.h.  */
37176 _ACEOF
37177 cat confdefs.h >>conftest.$ac_ext
37178 cat >>conftest.$ac_ext <<_ACEOF
37179 /* end confdefs.h.  */
37180
37181                 #include <sys/utsname.h>
37182                 $ac_includes_default
37183
37184 int
37185 main ()
37186 {
37187
37188                 #ifndef $wx_func
37189                   &$wx_func;
37190                 #endif
37191
37192
37193   ;
37194   return 0;
37195 }
37196
37197 _ACEOF
37198 rm -f conftest.$ac_objext conftest$ac_exeext
37199 if { (ac_try="$ac_link"
37200 case "(($ac_try" in
37201   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37202   *) ac_try_echo=$ac_try;;
37203 esac
37204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37205   (eval "$ac_link") 2>conftest.er1
37206   ac_status=$?
37207   grep -v '^ *+' conftest.er1 >conftest.err
37208   rm -f conftest.er1
37209   cat conftest.err >&5
37210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37211   (exit $ac_status); } && {
37212          test -z "$ac_c_werror_flag" ||
37213          test ! -s conftest.err
37214        } && test -s conftest$ac_exeext &&
37215        $as_test_x conftest$ac_exeext; then
37216   eval wx_cv_func_$wx_func=yes
37217 else
37218   echo "$as_me: failed program was:" >&5
37219 sed 's/^/| /' conftest.$ac_ext >&5
37220
37221         eval wx_cv_func_$wx_func=no
37222 fi
37223
37224 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37225       conftest$ac_exeext conftest.$ac_ext
37226
37227 fi
37228 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
37229                { echo "$as_me:$LINENO: result: $ac_res" >&5
37230 echo "${ECHO_T}$ac_res" >&6; }
37231
37232     if eval test \$wx_cv_func_$wx_func = yes
37233     then
37234       cat >>confdefs.h <<_ACEOF
37235 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
37236 _ACEOF
37237
37238
37239     else
37240       :
37241
37242     fi
37243   done
37244
37245 if test "$wx_cv_func_uname" != yes; then
37246
37247   for wx_func in gethostname
37248   do
37249     { echo "$as_me:$LINENO: checking for $wx_func" >&5
37250 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
37251 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
37252   echo $ECHO_N "(cached) $ECHO_C" >&6
37253 else
37254
37255         cat >conftest.$ac_ext <<_ACEOF
37256
37257             /* confdefs.h.  */
37258 _ACEOF
37259 cat confdefs.h >>conftest.$ac_ext
37260 cat >>conftest.$ac_ext <<_ACEOF
37261 /* end confdefs.h.  */
37262
37263
37264                 $ac_includes_default
37265
37266 int
37267 main ()
37268 {
37269
37270                 #ifndef $wx_func
37271                   &$wx_func;
37272                 #endif
37273
37274
37275   ;
37276   return 0;
37277 }
37278
37279 _ACEOF
37280 rm -f conftest.$ac_objext conftest$ac_exeext
37281 if { (ac_try="$ac_link"
37282 case "(($ac_try" in
37283   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37284   *) ac_try_echo=$ac_try;;
37285 esac
37286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37287   (eval "$ac_link") 2>conftest.er1
37288   ac_status=$?
37289   grep -v '^ *+' conftest.er1 >conftest.err
37290   rm -f conftest.er1
37291   cat conftest.err >&5
37292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37293   (exit $ac_status); } && {
37294          test -z "$ac_c_werror_flag" ||
37295          test ! -s conftest.err
37296        } && test -s conftest$ac_exeext &&
37297        $as_test_x conftest$ac_exeext; then
37298   eval wx_cv_func_$wx_func=yes
37299 else
37300   echo "$as_me: failed program was:" >&5
37301 sed 's/^/| /' conftest.$ac_ext >&5
37302
37303         eval wx_cv_func_$wx_func=no
37304 fi
37305
37306 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37307       conftest$ac_exeext conftest.$ac_ext
37308
37309 fi
37310 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
37311                { echo "$as_me:$LINENO: result: $ac_res" >&5
37312 echo "${ECHO_T}$ac_res" >&6; }
37313
37314     if eval test \$wx_cv_func_$wx_func = yes
37315     then
37316       cat >>confdefs.h <<_ACEOF
37317 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
37318 _ACEOF
37319
37320
37321     else
37322       :
37323
37324     fi
37325   done
37326
37327 fi
37328
37329
37330   for wx_func in strtok_r
37331   do
37332     { echo "$as_me:$LINENO: checking for $wx_func" >&5
37333 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
37334 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
37335   echo $ECHO_N "(cached) $ECHO_C" >&6
37336 else
37337
37338         cat >conftest.$ac_ext <<_ACEOF
37339
37340             /* confdefs.h.  */
37341 _ACEOF
37342 cat confdefs.h >>conftest.$ac_ext
37343 cat >>conftest.$ac_ext <<_ACEOF
37344 /* end confdefs.h.  */
37345
37346                 #define _REENTRANT
37347                 $ac_includes_default
37348
37349 int
37350 main ()
37351 {
37352
37353                 #ifndef $wx_func
37354                   &$wx_func;
37355                 #endif
37356
37357
37358   ;
37359   return 0;
37360 }
37361
37362 _ACEOF
37363 rm -f conftest.$ac_objext conftest$ac_exeext
37364 if { (ac_try="$ac_link"
37365 case "(($ac_try" in
37366   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37367   *) ac_try_echo=$ac_try;;
37368 esac
37369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37370   (eval "$ac_link") 2>conftest.er1
37371   ac_status=$?
37372   grep -v '^ *+' conftest.er1 >conftest.err
37373   rm -f conftest.er1
37374   cat conftest.err >&5
37375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37376   (exit $ac_status); } && {
37377          test -z "$ac_c_werror_flag" ||
37378          test ! -s conftest.err
37379        } && test -s conftest$ac_exeext &&
37380        $as_test_x conftest$ac_exeext; then
37381   eval wx_cv_func_$wx_func=yes
37382 else
37383   echo "$as_me: failed program was:" >&5
37384 sed 's/^/| /' conftest.$ac_ext >&5
37385
37386         eval wx_cv_func_$wx_func=no
37387 fi
37388
37389 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37390       conftest$ac_exeext conftest.$ac_ext
37391
37392 fi
37393 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
37394                { echo "$as_me:$LINENO: result: $ac_res" >&5
37395 echo "${ECHO_T}$ac_res" >&6; }
37396
37397     if eval test \$wx_cv_func_$wx_func = yes
37398     then
37399       cat >>confdefs.h <<_ACEOF
37400 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
37401 _ACEOF
37402
37403
37404     else
37405       :
37406
37407     fi
37408   done
37409
37410
37411 INET_LINK=
37412
37413 for ac_func in inet_addr
37414 do
37415 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37416 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37417 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37418 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37419   echo $ECHO_N "(cached) $ECHO_C" >&6
37420 else
37421   cat >conftest.$ac_ext <<_ACEOF
37422 /* confdefs.h.  */
37423 _ACEOF
37424 cat confdefs.h >>conftest.$ac_ext
37425 cat >>conftest.$ac_ext <<_ACEOF
37426 /* end confdefs.h.  */
37427 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37428    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37429 #define $ac_func innocuous_$ac_func
37430
37431 /* System header to define __stub macros and hopefully few prototypes,
37432     which can conflict with char $ac_func (); below.
37433     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37434     <limits.h> exists even on freestanding compilers.  */
37435
37436 #ifdef __STDC__
37437 # include <limits.h>
37438 #else
37439 # include <assert.h>
37440 #endif
37441
37442 #undef $ac_func
37443
37444 /* Override any GCC internal prototype to avoid an error.
37445    Use char because int might match the return type of a GCC
37446    builtin and then its argument prototype would still apply.  */
37447 #ifdef __cplusplus
37448 extern "C"
37449 #endif
37450 char $ac_func ();
37451 /* The GNU C library defines this for functions which it implements
37452     to always fail with ENOSYS.  Some functions are actually named
37453     something starting with __ and the normal name is an alias.  */
37454 #if defined __stub_$ac_func || defined __stub___$ac_func
37455 choke me
37456 #endif
37457
37458 int
37459 main ()
37460 {
37461 return $ac_func ();
37462   ;
37463   return 0;
37464 }
37465 _ACEOF
37466 rm -f conftest.$ac_objext conftest$ac_exeext
37467 if { (ac_try="$ac_link"
37468 case "(($ac_try" in
37469   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37470   *) ac_try_echo=$ac_try;;
37471 esac
37472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37473   (eval "$ac_link") 2>conftest.er1
37474   ac_status=$?
37475   grep -v '^ *+' conftest.er1 >conftest.err
37476   rm -f conftest.er1
37477   cat conftest.err >&5
37478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37479   (exit $ac_status); } && {
37480          test -z "$ac_c_werror_flag" ||
37481          test ! -s conftest.err
37482        } && test -s conftest$ac_exeext &&
37483        $as_test_x conftest$ac_exeext; then
37484   eval "$as_ac_var=yes"
37485 else
37486   echo "$as_me: failed program was:" >&5
37487 sed 's/^/| /' conftest.$ac_ext >&5
37488
37489         eval "$as_ac_var=no"
37490 fi
37491
37492 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37493       conftest$ac_exeext conftest.$ac_ext
37494 fi
37495 ac_res=`eval echo '${'$as_ac_var'}'`
37496                { echo "$as_me:$LINENO: result: $ac_res" >&5
37497 echo "${ECHO_T}$ac_res" >&6; }
37498 if test `eval echo '${'$as_ac_var'}'` = yes; then
37499   cat >>confdefs.h <<_ACEOF
37500 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37501 _ACEOF
37502  cat >>confdefs.h <<\_ACEOF
37503 #define HAVE_INET_ADDR 1
37504 _ACEOF
37505
37506 else
37507
37508         { echo "$as_me:$LINENO: checking for inet_addr in -lnsl" >&5
37509 echo $ECHO_N "checking for inet_addr in -lnsl... $ECHO_C" >&6; }
37510 if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then
37511   echo $ECHO_N "(cached) $ECHO_C" >&6
37512 else
37513   ac_check_lib_save_LIBS=$LIBS
37514 LIBS="-lnsl  $LIBS"
37515 cat >conftest.$ac_ext <<_ACEOF
37516 /* confdefs.h.  */
37517 _ACEOF
37518 cat confdefs.h >>conftest.$ac_ext
37519 cat >>conftest.$ac_ext <<_ACEOF
37520 /* end confdefs.h.  */
37521
37522 /* Override any GCC internal prototype to avoid an error.
37523    Use char because int might match the return type of a GCC
37524    builtin and then its argument prototype would still apply.  */
37525 #ifdef __cplusplus
37526 extern "C"
37527 #endif
37528 char inet_addr ();
37529 int
37530 main ()
37531 {
37532 return inet_addr ();
37533   ;
37534   return 0;
37535 }
37536 _ACEOF
37537 rm -f conftest.$ac_objext conftest$ac_exeext
37538 if { (ac_try="$ac_link"
37539 case "(($ac_try" in
37540   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37541   *) ac_try_echo=$ac_try;;
37542 esac
37543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37544   (eval "$ac_link") 2>conftest.er1
37545   ac_status=$?
37546   grep -v '^ *+' conftest.er1 >conftest.err
37547   rm -f conftest.er1
37548   cat conftest.err >&5
37549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37550   (exit $ac_status); } && {
37551          test -z "$ac_c_werror_flag" ||
37552          test ! -s conftest.err
37553        } && test -s conftest$ac_exeext &&
37554        $as_test_x conftest$ac_exeext; then
37555   ac_cv_lib_nsl_inet_addr=yes
37556 else
37557   echo "$as_me: failed program was:" >&5
37558 sed 's/^/| /' conftest.$ac_ext >&5
37559
37560         ac_cv_lib_nsl_inet_addr=no
37561 fi
37562
37563 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37564       conftest$ac_exeext conftest.$ac_ext
37565 LIBS=$ac_check_lib_save_LIBS
37566 fi
37567 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_addr" >&5
37568 echo "${ECHO_T}$ac_cv_lib_nsl_inet_addr" >&6; }
37569 if test $ac_cv_lib_nsl_inet_addr = yes; then
37570   INET_LINK="nsl"
37571 else
37572
37573                 { echo "$as_me:$LINENO: checking for inet_addr in -lresolv" >&5
37574 echo $ECHO_N "checking for inet_addr in -lresolv... $ECHO_C" >&6; }
37575 if test "${ac_cv_lib_resolv_inet_addr+set}" = set; then
37576   echo $ECHO_N "(cached) $ECHO_C" >&6
37577 else
37578   ac_check_lib_save_LIBS=$LIBS
37579 LIBS="-lresolv  $LIBS"
37580 cat >conftest.$ac_ext <<_ACEOF
37581 /* confdefs.h.  */
37582 _ACEOF
37583 cat confdefs.h >>conftest.$ac_ext
37584 cat >>conftest.$ac_ext <<_ACEOF
37585 /* end confdefs.h.  */
37586
37587 /* Override any GCC internal prototype to avoid an error.
37588    Use char because int might match the return type of a GCC
37589    builtin and then its argument prototype would still apply.  */
37590 #ifdef __cplusplus
37591 extern "C"
37592 #endif
37593 char inet_addr ();
37594 int
37595 main ()
37596 {
37597 return inet_addr ();
37598   ;
37599   return 0;
37600 }
37601 _ACEOF
37602 rm -f conftest.$ac_objext conftest$ac_exeext
37603 if { (ac_try="$ac_link"
37604 case "(($ac_try" in
37605   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37606   *) ac_try_echo=$ac_try;;
37607 esac
37608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37609   (eval "$ac_link") 2>conftest.er1
37610   ac_status=$?
37611   grep -v '^ *+' conftest.er1 >conftest.err
37612   rm -f conftest.er1
37613   cat conftest.err >&5
37614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37615   (exit $ac_status); } && {
37616          test -z "$ac_c_werror_flag" ||
37617          test ! -s conftest.err
37618        } && test -s conftest$ac_exeext &&
37619        $as_test_x conftest$ac_exeext; then
37620   ac_cv_lib_resolv_inet_addr=yes
37621 else
37622   echo "$as_me: failed program was:" >&5
37623 sed 's/^/| /' conftest.$ac_ext >&5
37624
37625         ac_cv_lib_resolv_inet_addr=no
37626 fi
37627
37628 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37629       conftest$ac_exeext conftest.$ac_ext
37630 LIBS=$ac_check_lib_save_LIBS
37631 fi
37632 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_addr" >&5
37633 echo "${ECHO_T}$ac_cv_lib_resolv_inet_addr" >&6; }
37634 if test $ac_cv_lib_resolv_inet_addr = yes; then
37635   INET_LINK="resolv"
37636 else
37637
37638                         { echo "$as_me:$LINENO: checking for inet_addr in -lsocket" >&5
37639 echo $ECHO_N "checking for inet_addr in -lsocket... $ECHO_C" >&6; }
37640 if test "${ac_cv_lib_socket_inet_addr+set}" = set; then
37641   echo $ECHO_N "(cached) $ECHO_C" >&6
37642 else
37643   ac_check_lib_save_LIBS=$LIBS
37644 LIBS="-lsocket  $LIBS"
37645 cat >conftest.$ac_ext <<_ACEOF
37646 /* confdefs.h.  */
37647 _ACEOF
37648 cat confdefs.h >>conftest.$ac_ext
37649 cat >>conftest.$ac_ext <<_ACEOF
37650 /* end confdefs.h.  */
37651
37652 /* Override any GCC internal prototype to avoid an error.
37653    Use char because int might match the return type of a GCC
37654    builtin and then its argument prototype would still apply.  */
37655 #ifdef __cplusplus
37656 extern "C"
37657 #endif
37658 char inet_addr ();
37659 int
37660 main ()
37661 {
37662 return inet_addr ();
37663   ;
37664   return 0;
37665 }
37666 _ACEOF
37667 rm -f conftest.$ac_objext conftest$ac_exeext
37668 if { (ac_try="$ac_link"
37669 case "(($ac_try" in
37670   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37671   *) ac_try_echo=$ac_try;;
37672 esac
37673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37674   (eval "$ac_link") 2>conftest.er1
37675   ac_status=$?
37676   grep -v '^ *+' conftest.er1 >conftest.err
37677   rm -f conftest.er1
37678   cat conftest.err >&5
37679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37680   (exit $ac_status); } && {
37681          test -z "$ac_c_werror_flag" ||
37682          test ! -s conftest.err
37683        } && test -s conftest$ac_exeext &&
37684        $as_test_x conftest$ac_exeext; then
37685   ac_cv_lib_socket_inet_addr=yes
37686 else
37687   echo "$as_me: failed program was:" >&5
37688 sed 's/^/| /' conftest.$ac_ext >&5
37689
37690         ac_cv_lib_socket_inet_addr=no
37691 fi
37692
37693 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37694       conftest$ac_exeext conftest.$ac_ext
37695 LIBS=$ac_check_lib_save_LIBS
37696 fi
37697 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_inet_addr" >&5
37698 echo "${ECHO_T}$ac_cv_lib_socket_inet_addr" >&6; }
37699 if test $ac_cv_lib_socket_inet_addr = yes; then
37700   INET_LINK="socket"
37701
37702 fi
37703
37704
37705
37706 fi
37707
37708
37709
37710 fi
37711
37712
37713
37714 fi
37715 done
37716
37717
37718
37719 for ac_func in inet_aton
37720 do
37721 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37722 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37723 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37724 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37725   echo $ECHO_N "(cached) $ECHO_C" >&6
37726 else
37727   cat >conftest.$ac_ext <<_ACEOF
37728 /* confdefs.h.  */
37729 _ACEOF
37730 cat confdefs.h >>conftest.$ac_ext
37731 cat >>conftest.$ac_ext <<_ACEOF
37732 /* end confdefs.h.  */
37733 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37734    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37735 #define $ac_func innocuous_$ac_func
37736
37737 /* System header to define __stub macros and hopefully few prototypes,
37738     which can conflict with char $ac_func (); below.
37739     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37740     <limits.h> exists even on freestanding compilers.  */
37741
37742 #ifdef __STDC__
37743 # include <limits.h>
37744 #else
37745 # include <assert.h>
37746 #endif
37747
37748 #undef $ac_func
37749
37750 /* Override any GCC internal prototype to avoid an error.
37751    Use char because int might match the return type of a GCC
37752    builtin and then its argument prototype would still apply.  */
37753 #ifdef __cplusplus
37754 extern "C"
37755 #endif
37756 char $ac_func ();
37757 /* The GNU C library defines this for functions which it implements
37758     to always fail with ENOSYS.  Some functions are actually named
37759     something starting with __ and the normal name is an alias.  */
37760 #if defined __stub_$ac_func || defined __stub___$ac_func
37761 choke me
37762 #endif
37763
37764 int
37765 main ()
37766 {
37767 return $ac_func ();
37768   ;
37769   return 0;
37770 }
37771 _ACEOF
37772 rm -f conftest.$ac_objext conftest$ac_exeext
37773 if { (ac_try="$ac_link"
37774 case "(($ac_try" in
37775   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37776   *) ac_try_echo=$ac_try;;
37777 esac
37778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37779   (eval "$ac_link") 2>conftest.er1
37780   ac_status=$?
37781   grep -v '^ *+' conftest.er1 >conftest.err
37782   rm -f conftest.er1
37783   cat conftest.err >&5
37784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37785   (exit $ac_status); } && {
37786          test -z "$ac_c_werror_flag" ||
37787          test ! -s conftest.err
37788        } && test -s conftest$ac_exeext &&
37789        $as_test_x conftest$ac_exeext; then
37790   eval "$as_ac_var=yes"
37791 else
37792   echo "$as_me: failed program was:" >&5
37793 sed 's/^/| /' conftest.$ac_ext >&5
37794
37795         eval "$as_ac_var=no"
37796 fi
37797
37798 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37799       conftest$ac_exeext conftest.$ac_ext
37800 fi
37801 ac_res=`eval echo '${'$as_ac_var'}'`
37802                { echo "$as_me:$LINENO: result: $ac_res" >&5
37803 echo "${ECHO_T}$ac_res" >&6; }
37804 if test `eval echo '${'$as_ac_var'}'` = yes; then
37805   cat >>confdefs.h <<_ACEOF
37806 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37807 _ACEOF
37808  cat >>confdefs.h <<\_ACEOF
37809 #define HAVE_INET_ATON 1
37810 _ACEOF
37811
37812 else
37813
37814                         as_ac_Lib=`echo "ac_cv_lib_$INET_LINK''_inet_aton" | $as_tr_sh`
37815 { echo "$as_me:$LINENO: checking for inet_aton in -l$INET_LINK" >&5
37816 echo $ECHO_N "checking for inet_aton in -l$INET_LINK... $ECHO_C" >&6; }
37817 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
37818   echo $ECHO_N "(cached) $ECHO_C" >&6
37819 else
37820   ac_check_lib_save_LIBS=$LIBS
37821 LIBS="-l$INET_LINK  $LIBS"
37822 cat >conftest.$ac_ext <<_ACEOF
37823 /* confdefs.h.  */
37824 _ACEOF
37825 cat confdefs.h >>conftest.$ac_ext
37826 cat >>conftest.$ac_ext <<_ACEOF
37827 /* end confdefs.h.  */
37828
37829 /* Override any GCC internal prototype to avoid an error.
37830    Use char because int might match the return type of a GCC
37831    builtin and then its argument prototype would still apply.  */
37832 #ifdef __cplusplus
37833 extern "C"
37834 #endif
37835 char inet_aton ();
37836 int
37837 main ()
37838 {
37839 return inet_aton ();
37840   ;
37841   return 0;
37842 }
37843 _ACEOF
37844 rm -f conftest.$ac_objext conftest$ac_exeext
37845 if { (ac_try="$ac_link"
37846 case "(($ac_try" in
37847   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37848   *) ac_try_echo=$ac_try;;
37849 esac
37850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37851   (eval "$ac_link") 2>conftest.er1
37852   ac_status=$?
37853   grep -v '^ *+' conftest.er1 >conftest.err
37854   rm -f conftest.er1
37855   cat conftest.err >&5
37856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37857   (exit $ac_status); } && {
37858          test -z "$ac_c_werror_flag" ||
37859          test ! -s conftest.err
37860        } && test -s conftest$ac_exeext &&
37861        $as_test_x conftest$ac_exeext; then
37862   eval "$as_ac_Lib=yes"
37863 else
37864   echo "$as_me: failed program was:" >&5
37865 sed 's/^/| /' conftest.$ac_ext >&5
37866
37867         eval "$as_ac_Lib=no"
37868 fi
37869
37870 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37871       conftest$ac_exeext conftest.$ac_ext
37872 LIBS=$ac_check_lib_save_LIBS
37873 fi
37874 ac_res=`eval echo '${'$as_ac_Lib'}'`
37875                { echo "$as_me:$LINENO: result: $ac_res" >&5
37876 echo "${ECHO_T}$ac_res" >&6; }
37877 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
37878   cat >>confdefs.h <<\_ACEOF
37879 #define HAVE_INET_ATON 1
37880 _ACEOF
37881
37882 fi
37883
37884
37885 fi
37886 done
37887
37888
37889 if test "x$INET_LINK" != "x"; then
37890     cat >>confdefs.h <<\_ACEOF
37891 #define HAVE_INET_ADDR 1
37892 _ACEOF
37893
37894     INET_LINK=" -l$INET_LINK"
37895 fi
37896
37897
37898   for wx_func in fdopen
37899   do
37900     { echo "$as_me:$LINENO: checking for $wx_func" >&5
37901 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
37902 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
37903   echo $ECHO_N "(cached) $ECHO_C" >&6
37904 else
37905
37906         cat >conftest.$ac_ext <<_ACEOF
37907
37908             /* confdefs.h.  */
37909 _ACEOF
37910 cat confdefs.h >>conftest.$ac_ext
37911 cat >>conftest.$ac_ext <<_ACEOF
37912 /* end confdefs.h.  */
37913
37914
37915                 $ac_includes_default
37916
37917 int
37918 main ()
37919 {
37920
37921                 #ifndef $wx_func
37922                   &$wx_func;
37923                 #endif
37924
37925
37926   ;
37927   return 0;
37928 }
37929
37930 _ACEOF
37931 rm -f conftest.$ac_objext conftest$ac_exeext
37932 if { (ac_try="$ac_link"
37933 case "(($ac_try" in
37934   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37935   *) ac_try_echo=$ac_try;;
37936 esac
37937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37938   (eval "$ac_link") 2>conftest.er1
37939   ac_status=$?
37940   grep -v '^ *+' conftest.er1 >conftest.err
37941   rm -f conftest.er1
37942   cat conftest.err >&5
37943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37944   (exit $ac_status); } && {
37945          test -z "$ac_c_werror_flag" ||
37946          test ! -s conftest.err
37947        } && test -s conftest$ac_exeext &&
37948        $as_test_x conftest$ac_exeext; then
37949   eval wx_cv_func_$wx_func=yes
37950 else
37951   echo "$as_me: failed program was:" >&5
37952 sed 's/^/| /' conftest.$ac_ext >&5
37953
37954         eval wx_cv_func_$wx_func=no
37955 fi
37956
37957 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37958       conftest$ac_exeext conftest.$ac_ext
37959
37960 fi
37961 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
37962                { echo "$as_me:$LINENO: result: $ac_res" >&5
37963 echo "${ECHO_T}$ac_res" >&6; }
37964
37965     if eval test \$wx_cv_func_$wx_func = yes
37966     then
37967       cat >>confdefs.h <<_ACEOF
37968 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
37969 _ACEOF
37970
37971
37972     else
37973       :
37974
37975     fi
37976   done
37977
37978
37979 if test "$wxUSE_TARSTREAM" = "yes"; then
37980
37981   for wx_func in sysconf
37982   do
37983     { echo "$as_me:$LINENO: checking for $wx_func" >&5
37984 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
37985 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
37986   echo $ECHO_N "(cached) $ECHO_C" >&6
37987 else
37988
37989         cat >conftest.$ac_ext <<_ACEOF
37990
37991             /* confdefs.h.  */
37992 _ACEOF
37993 cat confdefs.h >>conftest.$ac_ext
37994 cat >>conftest.$ac_ext <<_ACEOF
37995 /* end confdefs.h.  */
37996
37997
37998                 $ac_includes_default
37999
38000 int
38001 main ()
38002 {
38003
38004                 #ifndef $wx_func
38005                   &$wx_func;
38006                 #endif
38007
38008
38009   ;
38010   return 0;
38011 }
38012
38013 _ACEOF
38014 rm -f conftest.$ac_objext conftest$ac_exeext
38015 if { (ac_try="$ac_link"
38016 case "(($ac_try" in
38017   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38018   *) ac_try_echo=$ac_try;;
38019 esac
38020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38021   (eval "$ac_link") 2>conftest.er1
38022   ac_status=$?
38023   grep -v '^ *+' conftest.er1 >conftest.err
38024   rm -f conftest.er1
38025   cat conftest.err >&5
38026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38027   (exit $ac_status); } && {
38028          test -z "$ac_c_werror_flag" ||
38029          test ! -s conftest.err
38030        } && test -s conftest$ac_exeext &&
38031        $as_test_x conftest$ac_exeext; then
38032   eval wx_cv_func_$wx_func=yes
38033 else
38034   echo "$as_me: failed program was:" >&5
38035 sed 's/^/| /' conftest.$ac_ext >&5
38036
38037         eval wx_cv_func_$wx_func=no
38038 fi
38039
38040 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38041       conftest$ac_exeext conftest.$ac_ext
38042
38043 fi
38044 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
38045                { echo "$as_me:$LINENO: result: $ac_res" >&5
38046 echo "${ECHO_T}$ac_res" >&6; }
38047
38048     if eval test \$wx_cv_func_$wx_func = yes
38049     then
38050       cat >>confdefs.h <<_ACEOF
38051 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
38052 _ACEOF
38053
38054
38055     else
38056       :
38057
38058     fi
38059   done
38060
38061
38062
38063   for wx_func in getpwuid_r
38064   do
38065     { echo "$as_me:$LINENO: checking for $wx_func" >&5
38066 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
38067 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
38068   echo $ECHO_N "(cached) $ECHO_C" >&6
38069 else
38070
38071         cat >conftest.$ac_ext <<_ACEOF
38072
38073             /* confdefs.h.  */
38074 _ACEOF
38075 cat confdefs.h >>conftest.$ac_ext
38076 cat >>conftest.$ac_ext <<_ACEOF
38077 /* end confdefs.h.  */
38078
38079
38080                     #define _REENTRANT
38081                     #include <pwd.h>
38082
38083                 $ac_includes_default
38084
38085 int
38086 main ()
38087 {
38088
38089                 #ifndef $wx_func
38090                   &$wx_func;
38091                 #endif
38092
38093                     struct passwd pw, *ppw;
38094                     char buf[1024];
38095                     getpwuid_r(0, &pw, buf, sizeof(buf), &ppw)
38096
38097
38098   ;
38099   return 0;
38100 }
38101
38102 _ACEOF
38103 rm -f conftest.$ac_objext conftest$ac_exeext
38104 if { (ac_try="$ac_link"
38105 case "(($ac_try" in
38106   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38107   *) ac_try_echo=$ac_try;;
38108 esac
38109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38110   (eval "$ac_link") 2>conftest.er1
38111   ac_status=$?
38112   grep -v '^ *+' conftest.er1 >conftest.err
38113   rm -f conftest.er1
38114   cat conftest.err >&5
38115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38116   (exit $ac_status); } && {
38117          test -z "$ac_c_werror_flag" ||
38118          test ! -s conftest.err
38119        } && test -s conftest$ac_exeext &&
38120        $as_test_x conftest$ac_exeext; then
38121   eval wx_cv_func_$wx_func=yes
38122 else
38123   echo "$as_me: failed program was:" >&5
38124 sed 's/^/| /' conftest.$ac_ext >&5
38125
38126         eval wx_cv_func_$wx_func=no
38127 fi
38128
38129 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38130       conftest$ac_exeext conftest.$ac_ext
38131
38132 fi
38133 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
38134                { echo "$as_me:$LINENO: result: $ac_res" >&5
38135 echo "${ECHO_T}$ac_res" >&6; }
38136
38137     if eval test \$wx_cv_func_$wx_func = yes
38138     then
38139       cat >>confdefs.h <<_ACEOF
38140 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
38141 _ACEOF
38142
38143
38144     else
38145       :
38146
38147     fi
38148   done
38149
38150
38151
38152   for wx_func in getgrgid_r
38153   do
38154     { echo "$as_me:$LINENO: checking for $wx_func" >&5
38155 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
38156 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
38157   echo $ECHO_N "(cached) $ECHO_C" >&6
38158 else
38159
38160         cat >conftest.$ac_ext <<_ACEOF
38161
38162             /* confdefs.h.  */
38163 _ACEOF
38164 cat confdefs.h >>conftest.$ac_ext
38165 cat >>conftest.$ac_ext <<_ACEOF
38166 /* end confdefs.h.  */
38167
38168
38169                     #define _REENTRANT
38170                     #include <grp.h>
38171
38172                 $ac_includes_default
38173
38174 int
38175 main ()
38176 {
38177
38178                 #ifndef $wx_func
38179                   &$wx_func;
38180                 #endif
38181
38182                     struct group grp, *pgrp;
38183                     char buf[1024];
38184                     getgrgid_r(0, &grp, buf, sizeof(buf), &pgrp)
38185
38186
38187   ;
38188   return 0;
38189 }
38190
38191 _ACEOF
38192 rm -f conftest.$ac_objext conftest$ac_exeext
38193 if { (ac_try="$ac_link"
38194 case "(($ac_try" in
38195   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38196   *) ac_try_echo=$ac_try;;
38197 esac
38198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38199   (eval "$ac_link") 2>conftest.er1
38200   ac_status=$?
38201   grep -v '^ *+' conftest.er1 >conftest.err
38202   rm -f conftest.er1
38203   cat conftest.err >&5
38204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38205   (exit $ac_status); } && {
38206          test -z "$ac_c_werror_flag" ||
38207          test ! -s conftest.err
38208        } && test -s conftest$ac_exeext &&
38209        $as_test_x conftest$ac_exeext; then
38210   eval wx_cv_func_$wx_func=yes
38211 else
38212   echo "$as_me: failed program was:" >&5
38213 sed 's/^/| /' conftest.$ac_ext >&5
38214
38215         eval wx_cv_func_$wx_func=no
38216 fi
38217
38218 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38219       conftest$ac_exeext conftest.$ac_ext
38220
38221 fi
38222 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
38223                { echo "$as_me:$LINENO: result: $ac_res" >&5
38224 echo "${ECHO_T}$ac_res" >&6; }
38225
38226     if eval test \$wx_cv_func_$wx_func = yes
38227     then
38228       cat >>confdefs.h <<_ACEOF
38229 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
38230 _ACEOF
38231
38232
38233     else
38234       :
38235
38236     fi
38237   done
38238
38239 fi
38240
38241 fi
38242
38243
38244
38245 cat >confcache <<\_ACEOF
38246 # This file is a shell script that caches the results of configure
38247 # tests run on this system so they can be shared between configure
38248 # scripts and configure runs, see configure's option --config-cache.
38249 # It is not useful on other systems.  If it contains results you don't
38250 # want to keep, you may remove or edit it.
38251 #
38252 # config.status only pays attention to the cache file if you give it
38253 # the --recheck option to rerun configure.
38254 #
38255 # `ac_cv_env_foo' variables (set or unset) will be overridden when
38256 # loading this file, other *unset* `ac_cv_foo' will be assigned the
38257 # following values.
38258
38259 _ACEOF
38260
38261 # The following way of writing the cache mishandles newlines in values,
38262 # but we know of no workaround that is simple, portable, and efficient.
38263 # So, we kill variables containing newlines.
38264 # Ultrix sh set writes to stderr and can't be redirected directly,
38265 # and sets the high bit in the cache file unless we assign to the vars.
38266 (
38267   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
38268     eval ac_val=\$$ac_var
38269     case $ac_val in #(
38270     *${as_nl}*)
38271       case $ac_var in #(
38272       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
38273 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
38274       esac
38275       case $ac_var in #(
38276       _ | IFS | as_nl) ;; #(
38277       *) $as_unset $ac_var ;;
38278       esac ;;
38279     esac
38280   done
38281
38282   (set) 2>&1 |
38283     case $as_nl`(ac_space=' '; set) 2>&1` in #(
38284     *${as_nl}ac_space=\ *)
38285       # `set' does not quote correctly, so add quotes (double-quote
38286       # substitution turns \\\\ into \\, and sed turns \\ into \).
38287       sed -n \
38288         "s/'/'\\\\''/g;
38289           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
38290       ;; #(
38291     *)
38292       # `set' quotes correctly as required by POSIX, so do not add quotes.
38293       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
38294       ;;
38295     esac |
38296     sort
38297 ) |
38298   sed '
38299      /^ac_cv_env_/b end
38300      t clear
38301      :clear
38302      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
38303      t end
38304      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
38305      :end' >>confcache
38306 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
38307   if test -w "$cache_file"; then
38308     test "x$cache_file" != "x/dev/null" &&
38309       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
38310 echo "$as_me: updating cache $cache_file" >&6;}
38311     cat confcache >$cache_file
38312   else
38313     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
38314 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
38315   fi
38316 fi
38317 rm -f confcache
38318
38319
38320 if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
38321
38322
38323     THREADS_LINK=
38324     THREADS_CFLAGS=
38325
38326     if test "$wxUSE_THREADS" = "yes" ; then
38327         if test "$USE_BEOS" = 1; then
38328             { echo "$as_me:$LINENO: WARNING: BeOS threads are not yet supported... disabled" >&5
38329 echo "$as_me: WARNING: BeOS threads are not yet supported... disabled" >&2;}
38330             wxUSE_THREADS="no"
38331         fi
38332     fi
38333
38334     if test "$wxUSE_THREADS" = "yes" ; then
38335
38336
38337                                 THREAD_OPTS="-pthread"
38338         if test "x$SUNCXX" = xyes; then
38339             THREAD_OPTS="-mt lthread $THREAD_OPTS"
38340         fi
38341
38342         case "${host}" in
38343           *-*-solaris2* | *-*-sunos4* )
38344                 if test "x$GCC" = "xyes"; then
38345                                         THREAD_OPTS="-pthreads $THREAD_OPTS"
38346                 fi
38347                 ;;
38348           *-*-freebsd*)
38349                                                 THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r"
38350                 ;;
38351           *-*-darwin* | *-*-cygwin* )
38352                                                 THREAD_OPTS=""
38353                 ;;
38354           *-*-aix*)
38355                                 THREAD_OPTS="pthreads"
38356                 ;;
38357           *-hp-hpux* )
38358                 if test "x$GCC" = "xyes"; then
38359                                         $CXX -dumpspecs | grep 'pthread:' >/dev/null ||
38360                         THREAD_OPTS=""
38361                 else
38362                                                             THREAD_OPTS="-mt"
38363                 fi
38364                 ;;
38365
38366           *-*-irix* )
38367                                                                 if test "x$GCC" = "xyes"; then
38368                     THREAD_OPTS=""
38369                 fi
38370                 ;;
38371
38372           *-*-*UnixWare*)
38373                                 if test "x$GCC" != "xyes"; then
38374                     THREAD_OPTS="-Ethread"
38375                 fi
38376                 ;;
38377         esac
38378
38379                                 THREAD_OPTS="$THREAD_OPTS pthread none"
38380
38381                 THREADS_OK=no
38382         for flag in $THREAD_OPTS; do
38383             case $flag in
38384                 none)
38385                     { echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
38386 echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6; }
38387                     ;;
38388
38389                 -*)
38390                     { echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
38391 echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6; }
38392                     THREADS_CFLAGS="$flag"
38393                     ;;
38394
38395                 *)
38396                     { echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
38397 echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6; }
38398                     THREADS_LINK="-l$flag"
38399                     ;;
38400               esac
38401
38402               save_LIBS="$LIBS"
38403               save_CFLAGS="$CFLAGS"
38404               LIBS="$THREADS_LINK $LIBS"
38405               CFLAGS="$THREADS_CFLAGS $CFLAGS"
38406
38407               cat >conftest.$ac_ext <<_ACEOF
38408 /* confdefs.h.  */
38409 _ACEOF
38410 cat confdefs.h >>conftest.$ac_ext
38411 cat >>conftest.$ac_ext <<_ACEOF
38412 /* end confdefs.h.  */
38413 #include <pthread.h>
38414 int
38415 main ()
38416 {
38417 pthread_create(0,0,0,0);
38418   ;
38419   return 0;
38420 }
38421 _ACEOF
38422 rm -f conftest.$ac_objext conftest$ac_exeext
38423 if { (ac_try="$ac_link"
38424 case "(($ac_try" in
38425   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38426   *) ac_try_echo=$ac_try;;
38427 esac
38428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38429   (eval "$ac_link") 2>conftest.er1
38430   ac_status=$?
38431   grep -v '^ *+' conftest.er1 >conftest.err
38432   rm -f conftest.er1
38433   cat conftest.err >&5
38434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38435   (exit $ac_status); } && {
38436          test -z "$ac_c_werror_flag" ||
38437          test ! -s conftest.err
38438        } && test -s conftest$ac_exeext &&
38439        $as_test_x conftest$ac_exeext; then
38440   THREADS_OK=yes
38441 else
38442   echo "$as_me: failed program was:" >&5
38443 sed 's/^/| /' conftest.$ac_ext >&5
38444
38445
38446 fi
38447
38448 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38449       conftest$ac_exeext conftest.$ac_ext
38450
38451               LIBS="$save_LIBS"
38452               CFLAGS="$save_CFLAGS"
38453
38454               { echo "$as_me:$LINENO: result: $THREADS_OK" >&5
38455 echo "${ECHO_T}$THREADS_OK" >&6; }
38456               if test "x$THREADS_OK" = "xyes"; then
38457                       break;
38458               fi
38459
38460               THREADS_LINK=""
38461               THREADS_CFLAGS=""
38462       done
38463
38464       if test "x$THREADS_OK" != "xyes"; then
38465           wxUSE_THREADS=no
38466           { echo "$as_me:$LINENO: WARNING: No thread support on this system... disabled" >&5
38467 echo "$as_me: WARNING: No thread support on this system... disabled" >&2;}
38468       else
38469                               LDFLAGS="$THREADS_CFLAGS $LDFLAGS"
38470           LIBS="$THREADS_LINK $LIBS"
38471
38472           { echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
38473 echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6; }
38474           flag=no
38475           case "${host}" in
38476             *-aix*)
38477                                                                                                                 LDFLAGS="-L/usr/lib/threads $LDFLAGS"
38478                 flag="-D_THREAD_SAFE"
38479                 ;;
38480             *-freebsd*)
38481                 flag="-D_THREAD_SAFE"
38482                 ;;
38483             *-hp-hpux* )
38484                 flag="-D_REENTRANT"
38485                 if test "x$GCC" != "xyes"; then
38486                                         flag="$flag -D_RWSTD_MULTI_THREAD"
38487                 fi
38488                 ;;
38489             *solaris* | alpha*-osf*)
38490                 flag="-D_REENTRANT"
38491                 ;;
38492           esac
38493           { echo "$as_me:$LINENO: result: ${flag}" >&5
38494 echo "${ECHO_T}${flag}" >&6; }
38495           if test "x$flag" != xno; then
38496               THREADS_CFLAGS="$THREADS_CFLAGS $flag"
38497           fi
38498
38499                     WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS $THREADS_CFLAGS"
38500       fi
38501     fi
38502
38503         if test "$wxUSE_THREADS" = "yes" ; then
38504
38505 for ac_func in thr_setconcurrency
38506 do
38507 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38508 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38509 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38510 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38511   echo $ECHO_N "(cached) $ECHO_C" >&6
38512 else
38513   cat >conftest.$ac_ext <<_ACEOF
38514 /* confdefs.h.  */
38515 _ACEOF
38516 cat confdefs.h >>conftest.$ac_ext
38517 cat >>conftest.$ac_ext <<_ACEOF
38518 /* end confdefs.h.  */
38519 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38520    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38521 #define $ac_func innocuous_$ac_func
38522
38523 /* System header to define __stub macros and hopefully few prototypes,
38524     which can conflict with char $ac_func (); below.
38525     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38526     <limits.h> exists even on freestanding compilers.  */
38527
38528 #ifdef __STDC__
38529 # include <limits.h>
38530 #else
38531 # include <assert.h>
38532 #endif
38533
38534 #undef $ac_func
38535
38536 /* Override any GCC internal prototype to avoid an error.
38537    Use char because int might match the return type of a GCC
38538    builtin and then its argument prototype would still apply.  */
38539 #ifdef __cplusplus
38540 extern "C"
38541 #endif
38542 char $ac_func ();
38543 /* The GNU C library defines this for functions which it implements
38544     to always fail with ENOSYS.  Some functions are actually named
38545     something starting with __ and the normal name is an alias.  */
38546 #if defined __stub_$ac_func || defined __stub___$ac_func
38547 choke me
38548 #endif
38549
38550 int
38551 main ()
38552 {
38553 return $ac_func ();
38554   ;
38555   return 0;
38556 }
38557 _ACEOF
38558 rm -f conftest.$ac_objext conftest$ac_exeext
38559 if { (ac_try="$ac_link"
38560 case "(($ac_try" in
38561   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38562   *) ac_try_echo=$ac_try;;
38563 esac
38564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38565   (eval "$ac_link") 2>conftest.er1
38566   ac_status=$?
38567   grep -v '^ *+' conftest.er1 >conftest.err
38568   rm -f conftest.er1
38569   cat conftest.err >&5
38570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38571   (exit $ac_status); } && {
38572          test -z "$ac_c_werror_flag" ||
38573          test ! -s conftest.err
38574        } && test -s conftest$ac_exeext &&
38575        $as_test_x conftest$ac_exeext; then
38576   eval "$as_ac_var=yes"
38577 else
38578   echo "$as_me: failed program was:" >&5
38579 sed 's/^/| /' conftest.$ac_ext >&5
38580
38581         eval "$as_ac_var=no"
38582 fi
38583
38584 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38585       conftest$ac_exeext conftest.$ac_ext
38586 fi
38587 ac_res=`eval echo '${'$as_ac_var'}'`
38588                { echo "$as_me:$LINENO: result: $ac_res" >&5
38589 echo "${ECHO_T}$ac_res" >&6; }
38590 if test `eval echo '${'$as_ac_var'}'` = yes; then
38591   cat >>confdefs.h <<_ACEOF
38592 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38593 _ACEOF
38594
38595 fi
38596 done
38597
38598
38599                   { echo "$as_me:$LINENO: checking for pthread_cleanup_push/pop" >&5
38600 echo $ECHO_N "checking for pthread_cleanup_push/pop... $ECHO_C" >&6; }
38601 if test "${wx_cv_func_pthread_cleanup+set}" = set; then
38602   echo $ECHO_N "(cached) $ECHO_C" >&6
38603 else
38604
38605                                 ac_ext=cpp
38606 ac_cpp='$CXXCPP $CPPFLAGS'
38607 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38608 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38609 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
38610
38611         cat >conftest.$ac_ext <<_ACEOF
38612 /* confdefs.h.  */
38613 _ACEOF
38614 cat confdefs.h >>conftest.$ac_ext
38615 cat >>conftest.$ac_ext <<_ACEOF
38616 /* end confdefs.h.  */
38617 #include <pthread.h>
38618                void ThreadCleanupFunc(void *p);
38619
38620 int
38621 main ()
38622 {
38623
38624                 void *p;
38625                 pthread_cleanup_push(ThreadCleanupFunc, p);
38626                 pthread_cleanup_pop(0);
38627
38628   ;
38629   return 0;
38630 }
38631 _ACEOF
38632 rm -f conftest.$ac_objext
38633 if { (ac_try="$ac_compile"
38634 case "(($ac_try" in
38635   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38636   *) ac_try_echo=$ac_try;;
38637 esac
38638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38639   (eval "$ac_compile") 2>conftest.er1
38640   ac_status=$?
38641   grep -v '^ *+' conftest.er1 >conftest.err
38642   rm -f conftest.er1
38643   cat conftest.err >&5
38644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38645   (exit $ac_status); } && {
38646          test -z "$ac_cxx_werror_flag" ||
38647          test ! -s conftest.err
38648        } && test -s conftest.$ac_objext; then
38649
38650                wx_cv_func_pthread_cleanup=yes
38651
38652 else
38653   echo "$as_me: failed program was:" >&5
38654 sed 's/^/| /' conftest.$ac_ext >&5
38655
38656
38657                wx_cv_func_pthread_cleanup=no
38658
38659
38660 fi
38661
38662 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38663         ac_ext=c
38664 ac_cpp='$CPP $CPPFLAGS'
38665 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38666 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38667 ac_compiler_gnu=$ac_cv_c_compiler_gnu
38668
38669
38670 fi
38671 { echo "$as_me:$LINENO: result: $wx_cv_func_pthread_cleanup" >&5
38672 echo "${ECHO_T}$wx_cv_func_pthread_cleanup" >&6; }
38673       if test "x$wx_cv_func_pthread_cleanup" = "xyes"; then
38674         cat >>confdefs.h <<\_ACEOF
38675 #define wxHAVE_PTHREAD_CLEANUP 1
38676 _ACEOF
38677
38678       fi
38679
38680
38681 for ac_header in sched.h
38682 do
38683 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
38684 { echo "$as_me:$LINENO: checking for $ac_header" >&5
38685 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
38686 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
38687   echo $ECHO_N "(cached) $ECHO_C" >&6
38688 else
38689   cat >conftest.$ac_ext <<_ACEOF
38690 /* confdefs.h.  */
38691 _ACEOF
38692 cat confdefs.h >>conftest.$ac_ext
38693 cat >>conftest.$ac_ext <<_ACEOF
38694 /* end confdefs.h.  */
38695 $ac_includes_default
38696
38697 #include <$ac_header>
38698 _ACEOF
38699 rm -f conftest.$ac_objext
38700 if { (ac_try="$ac_compile"
38701 case "(($ac_try" in
38702   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38703   *) ac_try_echo=$ac_try;;
38704 esac
38705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38706   (eval "$ac_compile") 2>conftest.er1
38707   ac_status=$?
38708   grep -v '^ *+' conftest.er1 >conftest.err
38709   rm -f conftest.er1
38710   cat conftest.err >&5
38711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38712   (exit $ac_status); } && {
38713          test -z "$ac_c_werror_flag" ||
38714          test ! -s conftest.err
38715        } && test -s conftest.$ac_objext; then
38716   eval "$as_ac_Header=yes"
38717 else
38718   echo "$as_me: failed program was:" >&5
38719 sed 's/^/| /' conftest.$ac_ext >&5
38720
38721         eval "$as_ac_Header=no"
38722 fi
38723
38724 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38725 fi
38726 ac_res=`eval echo '${'$as_ac_Header'}'`
38727                { echo "$as_me:$LINENO: result: $ac_res" >&5
38728 echo "${ECHO_T}$ac_res" >&6; }
38729 if test `eval echo '${'$as_ac_Header'}'` = yes; then
38730   cat >>confdefs.h <<_ACEOF
38731 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
38732 _ACEOF
38733
38734 fi
38735
38736 done
38737
38738       if test "$ac_cv_header_sched_h" = "yes"; then
38739           { echo "$as_me:$LINENO: checking for sched_yield" >&5
38740 echo $ECHO_N "checking for sched_yield... $ECHO_C" >&6; }
38741 if test "${ac_cv_func_sched_yield+set}" = set; then
38742   echo $ECHO_N "(cached) $ECHO_C" >&6
38743 else
38744   cat >conftest.$ac_ext <<_ACEOF
38745 /* confdefs.h.  */
38746 _ACEOF
38747 cat confdefs.h >>conftest.$ac_ext
38748 cat >>conftest.$ac_ext <<_ACEOF
38749 /* end confdefs.h.  */
38750 /* Define sched_yield to an innocuous variant, in case <limits.h> declares sched_yield.
38751    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38752 #define sched_yield innocuous_sched_yield
38753
38754 /* System header to define __stub macros and hopefully few prototypes,
38755     which can conflict with char sched_yield (); below.
38756     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38757     <limits.h> exists even on freestanding compilers.  */
38758
38759 #ifdef __STDC__
38760 # include <limits.h>
38761 #else
38762 # include <assert.h>
38763 #endif
38764
38765 #undef sched_yield
38766
38767 /* Override any GCC internal prototype to avoid an error.
38768    Use char because int might match the return type of a GCC
38769    builtin and then its argument prototype would still apply.  */
38770 #ifdef __cplusplus
38771 extern "C"
38772 #endif
38773 char sched_yield ();
38774 /* The GNU C library defines this for functions which it implements
38775     to always fail with ENOSYS.  Some functions are actually named
38776     something starting with __ and the normal name is an alias.  */
38777 #if defined __stub_sched_yield || defined __stub___sched_yield
38778 choke me
38779 #endif
38780
38781 int
38782 main ()
38783 {
38784 return sched_yield ();
38785   ;
38786   return 0;
38787 }
38788 _ACEOF
38789 rm -f conftest.$ac_objext conftest$ac_exeext
38790 if { (ac_try="$ac_link"
38791 case "(($ac_try" in
38792   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38793   *) ac_try_echo=$ac_try;;
38794 esac
38795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38796   (eval "$ac_link") 2>conftest.er1
38797   ac_status=$?
38798   grep -v '^ *+' conftest.er1 >conftest.err
38799   rm -f conftest.er1
38800   cat conftest.err >&5
38801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38802   (exit $ac_status); } && {
38803          test -z "$ac_c_werror_flag" ||
38804          test ! -s conftest.err
38805        } && test -s conftest$ac_exeext &&
38806        $as_test_x conftest$ac_exeext; then
38807   ac_cv_func_sched_yield=yes
38808 else
38809   echo "$as_me: failed program was:" >&5
38810 sed 's/^/| /' conftest.$ac_ext >&5
38811
38812         ac_cv_func_sched_yield=no
38813 fi
38814
38815 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38816       conftest$ac_exeext conftest.$ac_ext
38817 fi
38818 { echo "$as_me:$LINENO: result: $ac_cv_func_sched_yield" >&5
38819 echo "${ECHO_T}$ac_cv_func_sched_yield" >&6; }
38820 if test $ac_cv_func_sched_yield = yes; then
38821   cat >>confdefs.h <<\_ACEOF
38822 #define HAVE_SCHED_YIELD 1
38823 _ACEOF
38824
38825 else
38826
38827                 { echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5
38828 echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6; }
38829 if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then
38830   echo $ECHO_N "(cached) $ECHO_C" >&6
38831 else
38832   ac_check_lib_save_LIBS=$LIBS
38833 LIBS="-lposix4  $LIBS"
38834 cat >conftest.$ac_ext <<_ACEOF
38835 /* confdefs.h.  */
38836 _ACEOF
38837 cat confdefs.h >>conftest.$ac_ext
38838 cat >>conftest.$ac_ext <<_ACEOF
38839 /* end confdefs.h.  */
38840
38841 /* Override any GCC internal prototype to avoid an error.
38842    Use char because int might match the return type of a GCC
38843    builtin and then its argument prototype would still apply.  */
38844 #ifdef __cplusplus
38845 extern "C"
38846 #endif
38847 char sched_yield ();
38848 int
38849 main ()
38850 {
38851 return sched_yield ();
38852   ;
38853   return 0;
38854 }
38855 _ACEOF
38856 rm -f conftest.$ac_objext conftest$ac_exeext
38857 if { (ac_try="$ac_link"
38858 case "(($ac_try" in
38859   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38860   *) ac_try_echo=$ac_try;;
38861 esac
38862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38863   (eval "$ac_link") 2>conftest.er1
38864   ac_status=$?
38865   grep -v '^ *+' conftest.er1 >conftest.err
38866   rm -f conftest.er1
38867   cat conftest.err >&5
38868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38869   (exit $ac_status); } && {
38870          test -z "$ac_c_werror_flag" ||
38871          test ! -s conftest.err
38872        } && test -s conftest$ac_exeext &&
38873        $as_test_x conftest$ac_exeext; then
38874   ac_cv_lib_posix4_sched_yield=yes
38875 else
38876   echo "$as_me: failed program was:" >&5
38877 sed 's/^/| /' conftest.$ac_ext >&5
38878
38879         ac_cv_lib_posix4_sched_yield=no
38880 fi
38881
38882 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38883       conftest$ac_exeext conftest.$ac_ext
38884 LIBS=$ac_check_lib_save_LIBS
38885 fi
38886 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5
38887 echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6; }
38888 if test $ac_cv_lib_posix4_sched_yield = yes; then
38889   cat >>confdefs.h <<\_ACEOF
38890 #define HAVE_SCHED_YIELD 1
38891 _ACEOF
38892  POSIX4_LINK=" -lposix4"
38893 else
38894   { echo "$as_me:$LINENO: WARNING: wxThread::Yield will not work properly" >&5
38895 echo "$as_me: WARNING: wxThread::Yield will not work properly" >&2;}
38896
38897 fi
38898
38899
38900
38901 fi
38902
38903       fi
38904
38905                                           HAVE_PRIOR_FUNCS=0
38906       { echo "$as_me:$LINENO: checking for pthread_attr_getschedpolicy" >&5
38907 echo $ECHO_N "checking for pthread_attr_getschedpolicy... $ECHO_C" >&6; }
38908 if test "${ac_cv_func_pthread_attr_getschedpolicy+set}" = set; then
38909   echo $ECHO_N "(cached) $ECHO_C" >&6
38910 else
38911   cat >conftest.$ac_ext <<_ACEOF
38912 /* confdefs.h.  */
38913 _ACEOF
38914 cat confdefs.h >>conftest.$ac_ext
38915 cat >>conftest.$ac_ext <<_ACEOF
38916 /* end confdefs.h.  */
38917 /* Define pthread_attr_getschedpolicy to an innocuous variant, in case <limits.h> declares pthread_attr_getschedpolicy.
38918    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38919 #define pthread_attr_getschedpolicy innocuous_pthread_attr_getschedpolicy
38920
38921 /* System header to define __stub macros and hopefully few prototypes,
38922     which can conflict with char pthread_attr_getschedpolicy (); below.
38923     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38924     <limits.h> exists even on freestanding compilers.  */
38925
38926 #ifdef __STDC__
38927 # include <limits.h>
38928 #else
38929 # include <assert.h>
38930 #endif
38931
38932 #undef pthread_attr_getschedpolicy
38933
38934 /* Override any GCC internal prototype to avoid an error.
38935    Use char because int might match the return type of a GCC
38936    builtin and then its argument prototype would still apply.  */
38937 #ifdef __cplusplus
38938 extern "C"
38939 #endif
38940 char pthread_attr_getschedpolicy ();
38941 /* The GNU C library defines this for functions which it implements
38942     to always fail with ENOSYS.  Some functions are actually named
38943     something starting with __ and the normal name is an alias.  */
38944 #if defined __stub_pthread_attr_getschedpolicy || defined __stub___pthread_attr_getschedpolicy
38945 choke me
38946 #endif
38947
38948 int
38949 main ()
38950 {
38951 return pthread_attr_getschedpolicy ();
38952   ;
38953   return 0;
38954 }
38955 _ACEOF
38956 rm -f conftest.$ac_objext conftest$ac_exeext
38957 if { (ac_try="$ac_link"
38958 case "(($ac_try" in
38959   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38960   *) ac_try_echo=$ac_try;;
38961 esac
38962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38963   (eval "$ac_link") 2>conftest.er1
38964   ac_status=$?
38965   grep -v '^ *+' conftest.er1 >conftest.err
38966   rm -f conftest.er1
38967   cat conftest.err >&5
38968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38969   (exit $ac_status); } && {
38970          test -z "$ac_c_werror_flag" ||
38971          test ! -s conftest.err
38972        } && test -s conftest$ac_exeext &&
38973        $as_test_x conftest$ac_exeext; then
38974   ac_cv_func_pthread_attr_getschedpolicy=yes
38975 else
38976   echo "$as_me: failed program was:" >&5
38977 sed 's/^/| /' conftest.$ac_ext >&5
38978
38979         ac_cv_func_pthread_attr_getschedpolicy=no
38980 fi
38981
38982 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38983       conftest$ac_exeext conftest.$ac_ext
38984 fi
38985 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_getschedpolicy" >&5
38986 echo "${ECHO_T}$ac_cv_func_pthread_attr_getschedpolicy" >&6; }
38987 if test $ac_cv_func_pthread_attr_getschedpolicy = yes; then
38988   { echo "$as_me:$LINENO: checking for pthread_attr_setschedparam" >&5
38989 echo $ECHO_N "checking for pthread_attr_setschedparam... $ECHO_C" >&6; }
38990 if test "${ac_cv_func_pthread_attr_setschedparam+set}" = set; then
38991   echo $ECHO_N "(cached) $ECHO_C" >&6
38992 else
38993   cat >conftest.$ac_ext <<_ACEOF
38994 /* confdefs.h.  */
38995 _ACEOF
38996 cat confdefs.h >>conftest.$ac_ext
38997 cat >>conftest.$ac_ext <<_ACEOF
38998 /* end confdefs.h.  */
38999 /* Define pthread_attr_setschedparam to an innocuous variant, in case <limits.h> declares pthread_attr_setschedparam.
39000    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39001 #define pthread_attr_setschedparam innocuous_pthread_attr_setschedparam
39002
39003 /* System header to define __stub macros and hopefully few prototypes,
39004     which can conflict with char pthread_attr_setschedparam (); below.
39005     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39006     <limits.h> exists even on freestanding compilers.  */
39007
39008 #ifdef __STDC__
39009 # include <limits.h>
39010 #else
39011 # include <assert.h>
39012 #endif
39013
39014 #undef pthread_attr_setschedparam
39015
39016 /* Override any GCC internal prototype to avoid an error.
39017    Use char because int might match the return type of a GCC
39018    builtin and then its argument prototype would still apply.  */
39019 #ifdef __cplusplus
39020 extern "C"
39021 #endif
39022 char pthread_attr_setschedparam ();
39023 /* The GNU C library defines this for functions which it implements
39024     to always fail with ENOSYS.  Some functions are actually named
39025     something starting with __ and the normal name is an alias.  */
39026 #if defined __stub_pthread_attr_setschedparam || defined __stub___pthread_attr_setschedparam
39027 choke me
39028 #endif
39029
39030 int
39031 main ()
39032 {
39033 return pthread_attr_setschedparam ();
39034   ;
39035   return 0;
39036 }
39037 _ACEOF
39038 rm -f conftest.$ac_objext conftest$ac_exeext
39039 if { (ac_try="$ac_link"
39040 case "(($ac_try" in
39041   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39042   *) ac_try_echo=$ac_try;;
39043 esac
39044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39045   (eval "$ac_link") 2>conftest.er1
39046   ac_status=$?
39047   grep -v '^ *+' conftest.er1 >conftest.err
39048   rm -f conftest.er1
39049   cat conftest.err >&5
39050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39051   (exit $ac_status); } && {
39052          test -z "$ac_c_werror_flag" ||
39053          test ! -s conftest.err
39054        } && test -s conftest$ac_exeext &&
39055        $as_test_x conftest$ac_exeext; then
39056   ac_cv_func_pthread_attr_setschedparam=yes
39057 else
39058   echo "$as_me: failed program was:" >&5
39059 sed 's/^/| /' conftest.$ac_ext >&5
39060
39061         ac_cv_func_pthread_attr_setschedparam=no
39062 fi
39063
39064 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39065       conftest$ac_exeext conftest.$ac_ext
39066 fi
39067 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setschedparam" >&5
39068 echo "${ECHO_T}$ac_cv_func_pthread_attr_setschedparam" >&6; }
39069 if test $ac_cv_func_pthread_attr_setschedparam = yes; then
39070   { echo "$as_me:$LINENO: checking for sched_get_priority_max" >&5
39071 echo $ECHO_N "checking for sched_get_priority_max... $ECHO_C" >&6; }
39072 if test "${ac_cv_func_sched_get_priority_max+set}" = set; then
39073   echo $ECHO_N "(cached) $ECHO_C" >&6
39074 else
39075   cat >conftest.$ac_ext <<_ACEOF
39076 /* confdefs.h.  */
39077 _ACEOF
39078 cat confdefs.h >>conftest.$ac_ext
39079 cat >>conftest.$ac_ext <<_ACEOF
39080 /* end confdefs.h.  */
39081 /* Define sched_get_priority_max to an innocuous variant, in case <limits.h> declares sched_get_priority_max.
39082    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39083 #define sched_get_priority_max innocuous_sched_get_priority_max
39084
39085 /* System header to define __stub macros and hopefully few prototypes,
39086     which can conflict with char sched_get_priority_max (); below.
39087     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39088     <limits.h> exists even on freestanding compilers.  */
39089
39090 #ifdef __STDC__
39091 # include <limits.h>
39092 #else
39093 # include <assert.h>
39094 #endif
39095
39096 #undef sched_get_priority_max
39097
39098 /* Override any GCC internal prototype to avoid an error.
39099    Use char because int might match the return type of a GCC
39100    builtin and then its argument prototype would still apply.  */
39101 #ifdef __cplusplus
39102 extern "C"
39103 #endif
39104 char sched_get_priority_max ();
39105 /* The GNU C library defines this for functions which it implements
39106     to always fail with ENOSYS.  Some functions are actually named
39107     something starting with __ and the normal name is an alias.  */
39108 #if defined __stub_sched_get_priority_max || defined __stub___sched_get_priority_max
39109 choke me
39110 #endif
39111
39112 int
39113 main ()
39114 {
39115 return sched_get_priority_max ();
39116   ;
39117   return 0;
39118 }
39119 _ACEOF
39120 rm -f conftest.$ac_objext conftest$ac_exeext
39121 if { (ac_try="$ac_link"
39122 case "(($ac_try" in
39123   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39124   *) ac_try_echo=$ac_try;;
39125 esac
39126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39127   (eval "$ac_link") 2>conftest.er1
39128   ac_status=$?
39129   grep -v '^ *+' conftest.er1 >conftest.err
39130   rm -f conftest.er1
39131   cat conftest.err >&5
39132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39133   (exit $ac_status); } && {
39134          test -z "$ac_c_werror_flag" ||
39135          test ! -s conftest.err
39136        } && test -s conftest$ac_exeext &&
39137        $as_test_x conftest$ac_exeext; then
39138   ac_cv_func_sched_get_priority_max=yes
39139 else
39140   echo "$as_me: failed program was:" >&5
39141 sed 's/^/| /' conftest.$ac_ext >&5
39142
39143         ac_cv_func_sched_get_priority_max=no
39144 fi
39145
39146 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39147       conftest$ac_exeext conftest.$ac_ext
39148 fi
39149 { echo "$as_me:$LINENO: result: $ac_cv_func_sched_get_priority_max" >&5
39150 echo "${ECHO_T}$ac_cv_func_sched_get_priority_max" >&6; }
39151 if test $ac_cv_func_sched_get_priority_max = yes; then
39152   HAVE_PRIOR_FUNCS=1
39153 else
39154   { echo "$as_me:$LINENO: checking for sched_get_priority_max in -lposix4" >&5
39155 echo $ECHO_N "checking for sched_get_priority_max in -lposix4... $ECHO_C" >&6; }
39156 if test "${ac_cv_lib_posix4_sched_get_priority_max+set}" = set; then
39157   echo $ECHO_N "(cached) $ECHO_C" >&6
39158 else
39159   ac_check_lib_save_LIBS=$LIBS
39160 LIBS="-lposix4  $LIBS"
39161 cat >conftest.$ac_ext <<_ACEOF
39162 /* confdefs.h.  */
39163 _ACEOF
39164 cat confdefs.h >>conftest.$ac_ext
39165 cat >>conftest.$ac_ext <<_ACEOF
39166 /* end confdefs.h.  */
39167
39168 /* Override any GCC internal prototype to avoid an error.
39169    Use char because int might match the return type of a GCC
39170    builtin and then its argument prototype would still apply.  */
39171 #ifdef __cplusplus
39172 extern "C"
39173 #endif
39174 char sched_get_priority_max ();
39175 int
39176 main ()
39177 {
39178 return sched_get_priority_max ();
39179   ;
39180   return 0;
39181 }
39182 _ACEOF
39183 rm -f conftest.$ac_objext conftest$ac_exeext
39184 if { (ac_try="$ac_link"
39185 case "(($ac_try" in
39186   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39187   *) ac_try_echo=$ac_try;;
39188 esac
39189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39190   (eval "$ac_link") 2>conftest.er1
39191   ac_status=$?
39192   grep -v '^ *+' conftest.er1 >conftest.err
39193   rm -f conftest.er1
39194   cat conftest.err >&5
39195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39196   (exit $ac_status); } && {
39197          test -z "$ac_c_werror_flag" ||
39198          test ! -s conftest.err
39199        } && test -s conftest$ac_exeext &&
39200        $as_test_x conftest$ac_exeext; then
39201   ac_cv_lib_posix4_sched_get_priority_max=yes
39202 else
39203   echo "$as_me: failed program was:" >&5
39204 sed 's/^/| /' conftest.$ac_ext >&5
39205
39206         ac_cv_lib_posix4_sched_get_priority_max=no
39207 fi
39208
39209 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39210       conftest$ac_exeext conftest.$ac_ext
39211 LIBS=$ac_check_lib_save_LIBS
39212 fi
39213 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_get_priority_max" >&5
39214 echo "${ECHO_T}$ac_cv_lib_posix4_sched_get_priority_max" >&6; }
39215 if test $ac_cv_lib_posix4_sched_get_priority_max = yes; then
39216
39217                                 HAVE_PRIOR_FUNCS=1
39218                                 POSIX4_LINK=" -lposix4"
39219
39220 fi
39221
39222
39223 fi
39224
39225
39226 fi
39227
39228
39229 fi
39230
39231
39232       if test "$HAVE_PRIOR_FUNCS" = 1; then
39233         cat >>confdefs.h <<\_ACEOF
39234 #define HAVE_THREAD_PRIORITY_FUNCTIONS 1
39235 _ACEOF
39236
39237       else
39238         { echo "$as_me:$LINENO: WARNING: Setting thread priority will not work" >&5
39239 echo "$as_me: WARNING: Setting thread priority will not work" >&2;}
39240       fi
39241
39242       { echo "$as_me:$LINENO: checking for pthread_cancel" >&5
39243 echo $ECHO_N "checking for pthread_cancel... $ECHO_C" >&6; }
39244 if test "${ac_cv_func_pthread_cancel+set}" = set; then
39245   echo $ECHO_N "(cached) $ECHO_C" >&6
39246 else
39247   cat >conftest.$ac_ext <<_ACEOF
39248 /* confdefs.h.  */
39249 _ACEOF
39250 cat confdefs.h >>conftest.$ac_ext
39251 cat >>conftest.$ac_ext <<_ACEOF
39252 /* end confdefs.h.  */
39253 /* Define pthread_cancel to an innocuous variant, in case <limits.h> declares pthread_cancel.
39254    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39255 #define pthread_cancel innocuous_pthread_cancel
39256
39257 /* System header to define __stub macros and hopefully few prototypes,
39258     which can conflict with char pthread_cancel (); below.
39259     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39260     <limits.h> exists even on freestanding compilers.  */
39261
39262 #ifdef __STDC__
39263 # include <limits.h>
39264 #else
39265 # include <assert.h>
39266 #endif
39267
39268 #undef pthread_cancel
39269
39270 /* Override any GCC internal prototype to avoid an error.
39271    Use char because int might match the return type of a GCC
39272    builtin and then its argument prototype would still apply.  */
39273 #ifdef __cplusplus
39274 extern "C"
39275 #endif
39276 char pthread_cancel ();
39277 /* The GNU C library defines this for functions which it implements
39278     to always fail with ENOSYS.  Some functions are actually named
39279     something starting with __ and the normal name is an alias.  */
39280 #if defined __stub_pthread_cancel || defined __stub___pthread_cancel
39281 choke me
39282 #endif
39283
39284 int
39285 main ()
39286 {
39287 return pthread_cancel ();
39288   ;
39289   return 0;
39290 }
39291 _ACEOF
39292 rm -f conftest.$ac_objext conftest$ac_exeext
39293 if { (ac_try="$ac_link"
39294 case "(($ac_try" in
39295   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39296   *) ac_try_echo=$ac_try;;
39297 esac
39298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39299   (eval "$ac_link") 2>conftest.er1
39300   ac_status=$?
39301   grep -v '^ *+' conftest.er1 >conftest.err
39302   rm -f conftest.er1
39303   cat conftest.err >&5
39304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39305   (exit $ac_status); } && {
39306          test -z "$ac_c_werror_flag" ||
39307          test ! -s conftest.err
39308        } && test -s conftest$ac_exeext &&
39309        $as_test_x conftest$ac_exeext; then
39310   ac_cv_func_pthread_cancel=yes
39311 else
39312   echo "$as_me: failed program was:" >&5
39313 sed 's/^/| /' conftest.$ac_ext >&5
39314
39315         ac_cv_func_pthread_cancel=no
39316 fi
39317
39318 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39319       conftest$ac_exeext conftest.$ac_ext
39320 fi
39321 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_cancel" >&5
39322 echo "${ECHO_T}$ac_cv_func_pthread_cancel" >&6; }
39323 if test $ac_cv_func_pthread_cancel = yes; then
39324   cat >>confdefs.h <<\_ACEOF
39325 #define HAVE_PTHREAD_CANCEL 1
39326 _ACEOF
39327
39328 else
39329   { echo "$as_me:$LINENO: WARNING: wxThread::Kill() will not work properly" >&5
39330 echo "$as_me: WARNING: wxThread::Kill() will not work properly" >&2;}
39331 fi
39332
39333
39334       { echo "$as_me:$LINENO: checking for pthread_mutex_timedlock" >&5
39335 echo $ECHO_N "checking for pthread_mutex_timedlock... $ECHO_C" >&6; }
39336 if test "${ac_cv_func_pthread_mutex_timedlock+set}" = set; then
39337   echo $ECHO_N "(cached) $ECHO_C" >&6
39338 else
39339   cat >conftest.$ac_ext <<_ACEOF
39340 /* confdefs.h.  */
39341 _ACEOF
39342 cat confdefs.h >>conftest.$ac_ext
39343 cat >>conftest.$ac_ext <<_ACEOF
39344 /* end confdefs.h.  */
39345 /* Define pthread_mutex_timedlock to an innocuous variant, in case <limits.h> declares pthread_mutex_timedlock.
39346    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39347 #define pthread_mutex_timedlock innocuous_pthread_mutex_timedlock
39348
39349 /* System header to define __stub macros and hopefully few prototypes,
39350     which can conflict with char pthread_mutex_timedlock (); below.
39351     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39352     <limits.h> exists even on freestanding compilers.  */
39353
39354 #ifdef __STDC__
39355 # include <limits.h>
39356 #else
39357 # include <assert.h>
39358 #endif
39359
39360 #undef pthread_mutex_timedlock
39361
39362 /* Override any GCC internal prototype to avoid an error.
39363    Use char because int might match the return type of a GCC
39364    builtin and then its argument prototype would still apply.  */
39365 #ifdef __cplusplus
39366 extern "C"
39367 #endif
39368 char pthread_mutex_timedlock ();
39369 /* The GNU C library defines this for functions which it implements
39370     to always fail with ENOSYS.  Some functions are actually named
39371     something starting with __ and the normal name is an alias.  */
39372 #if defined __stub_pthread_mutex_timedlock || defined __stub___pthread_mutex_timedlock
39373 choke me
39374 #endif
39375
39376 int
39377 main ()
39378 {
39379 return pthread_mutex_timedlock ();
39380   ;
39381   return 0;
39382 }
39383 _ACEOF
39384 rm -f conftest.$ac_objext conftest$ac_exeext
39385 if { (ac_try="$ac_link"
39386 case "(($ac_try" in
39387   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39388   *) ac_try_echo=$ac_try;;
39389 esac
39390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39391   (eval "$ac_link") 2>conftest.er1
39392   ac_status=$?
39393   grep -v '^ *+' conftest.er1 >conftest.err
39394   rm -f conftest.er1
39395   cat conftest.err >&5
39396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39397   (exit $ac_status); } && {
39398          test -z "$ac_c_werror_flag" ||
39399          test ! -s conftest.err
39400        } && test -s conftest$ac_exeext &&
39401        $as_test_x conftest$ac_exeext; then
39402   ac_cv_func_pthread_mutex_timedlock=yes
39403 else
39404   echo "$as_me: failed program was:" >&5
39405 sed 's/^/| /' conftest.$ac_ext >&5
39406
39407         ac_cv_func_pthread_mutex_timedlock=no
39408 fi
39409
39410 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39411       conftest$ac_exeext conftest.$ac_ext
39412 fi
39413 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_mutex_timedlock" >&5
39414 echo "${ECHO_T}$ac_cv_func_pthread_mutex_timedlock" >&6; }
39415 if test $ac_cv_func_pthread_mutex_timedlock = yes; then
39416   cat >>confdefs.h <<\_ACEOF
39417 #define HAVE_PTHREAD_MUTEX_TIMEDLOCK 1
39418 _ACEOF
39419
39420 else
39421   { echo "$as_me:$LINENO: WARNING: wxMutex::LockTimeout() will not work" >&5
39422 echo "$as_me: WARNING: wxMutex::LockTimeout() will not work" >&2;}
39423 fi
39424
39425
39426       { echo "$as_me:$LINENO: checking for pthread_attr_setstacksize" >&5
39427 echo $ECHO_N "checking for pthread_attr_setstacksize... $ECHO_C" >&6; }
39428 if test "${ac_cv_func_pthread_attr_setstacksize+set}" = set; then
39429   echo $ECHO_N "(cached) $ECHO_C" >&6
39430 else
39431   cat >conftest.$ac_ext <<_ACEOF
39432 /* confdefs.h.  */
39433 _ACEOF
39434 cat confdefs.h >>conftest.$ac_ext
39435 cat >>conftest.$ac_ext <<_ACEOF
39436 /* end confdefs.h.  */
39437 /* Define pthread_attr_setstacksize to an innocuous variant, in case <limits.h> declares pthread_attr_setstacksize.
39438    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39439 #define pthread_attr_setstacksize innocuous_pthread_attr_setstacksize
39440
39441 /* System header to define __stub macros and hopefully few prototypes,
39442     which can conflict with char pthread_attr_setstacksize (); below.
39443     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39444     <limits.h> exists even on freestanding compilers.  */
39445
39446 #ifdef __STDC__
39447 # include <limits.h>
39448 #else
39449 # include <assert.h>
39450 #endif
39451
39452 #undef pthread_attr_setstacksize
39453
39454 /* Override any GCC internal prototype to avoid an error.
39455    Use char because int might match the return type of a GCC
39456    builtin and then its argument prototype would still apply.  */
39457 #ifdef __cplusplus
39458 extern "C"
39459 #endif
39460 char pthread_attr_setstacksize ();
39461 /* The GNU C library defines this for functions which it implements
39462     to always fail with ENOSYS.  Some functions are actually named
39463     something starting with __ and the normal name is an alias.  */
39464 #if defined __stub_pthread_attr_setstacksize || defined __stub___pthread_attr_setstacksize
39465 choke me
39466 #endif
39467
39468 int
39469 main ()
39470 {
39471 return pthread_attr_setstacksize ();
39472   ;
39473   return 0;
39474 }
39475 _ACEOF
39476 rm -f conftest.$ac_objext conftest$ac_exeext
39477 if { (ac_try="$ac_link"
39478 case "(($ac_try" in
39479   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39480   *) ac_try_echo=$ac_try;;
39481 esac
39482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39483   (eval "$ac_link") 2>conftest.er1
39484   ac_status=$?
39485   grep -v '^ *+' conftest.er1 >conftest.err
39486   rm -f conftest.er1
39487   cat conftest.err >&5
39488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39489   (exit $ac_status); } && {
39490          test -z "$ac_c_werror_flag" ||
39491          test ! -s conftest.err
39492        } && test -s conftest$ac_exeext &&
39493        $as_test_x conftest$ac_exeext; then
39494   ac_cv_func_pthread_attr_setstacksize=yes
39495 else
39496   echo "$as_me: failed program was:" >&5
39497 sed 's/^/| /' conftest.$ac_ext >&5
39498
39499         ac_cv_func_pthread_attr_setstacksize=no
39500 fi
39501
39502 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39503       conftest$ac_exeext conftest.$ac_ext
39504 fi
39505 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setstacksize" >&5
39506 echo "${ECHO_T}$ac_cv_func_pthread_attr_setstacksize" >&6; }
39507 if test $ac_cv_func_pthread_attr_setstacksize = yes; then
39508   cat >>confdefs.h <<\_ACEOF
39509 #define HAVE_PTHREAD_ATTR_SETSTACKSIZE 1
39510 _ACEOF
39511
39512 fi
39513
39514
39515
39516       { echo "$as_me:$LINENO: checking for pthread_mutexattr_t" >&5
39517 echo $ECHO_N "checking for pthread_mutexattr_t... $ECHO_C" >&6; }
39518 if test "${wx_cv_type_pthread_mutexattr_t+set}" = set; then
39519   echo $ECHO_N "(cached) $ECHO_C" >&6
39520 else
39521
39522         cat >conftest.$ac_ext <<_ACEOF
39523 /* confdefs.h.  */
39524 _ACEOF
39525 cat confdefs.h >>conftest.$ac_ext
39526 cat >>conftest.$ac_ext <<_ACEOF
39527 /* end confdefs.h.  */
39528 #include <pthread.h>
39529 int
39530 main ()
39531 {
39532
39533                pthread_mutexattr_t attr;
39534                pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
39535
39536   ;
39537   return 0;
39538 }
39539 _ACEOF
39540 rm -f conftest.$ac_objext
39541 if { (ac_try="$ac_compile"
39542 case "(($ac_try" in
39543   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39544   *) ac_try_echo=$ac_try;;
39545 esac
39546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39547   (eval "$ac_compile") 2>conftest.er1
39548   ac_status=$?
39549   grep -v '^ *+' conftest.er1 >conftest.err
39550   rm -f conftest.er1
39551   cat conftest.err >&5
39552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39553   (exit $ac_status); } && {
39554          test -z "$ac_c_werror_flag" ||
39555          test ! -s conftest.err
39556        } && test -s conftest.$ac_objext; then
39557   wx_cv_type_pthread_mutexattr_t=yes
39558 else
39559   echo "$as_me: failed program was:" >&5
39560 sed 's/^/| /' conftest.$ac_ext >&5
39561
39562         wx_cv_type_pthread_mutexattr_t=no
39563
39564 fi
39565
39566 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39567
39568 fi
39569 { echo "$as_me:$LINENO: result: $wx_cv_type_pthread_mutexattr_t" >&5
39570 echo "${ECHO_T}$wx_cv_type_pthread_mutexattr_t" >&6; }
39571
39572       if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
39573         cat >>confdefs.h <<\_ACEOF
39574 #define HAVE_PTHREAD_MUTEXATTR_T 1
39575 _ACEOF
39576
39577
39578                         { echo "$as_me:$LINENO: checking for pthread_mutexattr_settype declaration" >&5
39579 echo $ECHO_N "checking for pthread_mutexattr_settype declaration... $ECHO_C" >&6; }
39580 if test "${wx_cv_func_pthread_mutexattr_settype_decl+set}" = set; then
39581   echo $ECHO_N "(cached) $ECHO_C" >&6
39582 else
39583
39584                        cat >conftest.$ac_ext <<_ACEOF
39585 /* confdefs.h.  */
39586 _ACEOF
39587 cat confdefs.h >>conftest.$ac_ext
39588 cat >>conftest.$ac_ext <<_ACEOF
39589 /* end confdefs.h.  */
39590 #include <pthread.h>
39591 int
39592 main ()
39593 {
39594
39595                                pthread_mutexattr_t attr;
39596                                pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
39597
39598   ;
39599   return 0;
39600 }
39601 _ACEOF
39602 rm -f conftest.$ac_objext
39603 if { (ac_try="$ac_compile"
39604 case "(($ac_try" in
39605   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39606   *) ac_try_echo=$ac_try;;
39607 esac
39608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39609   (eval "$ac_compile") 2>conftest.er1
39610   ac_status=$?
39611   grep -v '^ *+' conftest.er1 >conftest.err
39612   rm -f conftest.er1
39613   cat conftest.err >&5
39614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39615   (exit $ac_status); } && {
39616          test -z "$ac_c_werror_flag" ||
39617          test ! -s conftest.err
39618        } && test -s conftest.$ac_objext; then
39619   wx_cv_func_pthread_mutexattr_settype_decl=yes
39620 else
39621   echo "$as_me: failed program was:" >&5
39622 sed 's/^/| /' conftest.$ac_ext >&5
39623
39624         wx_cv_func_pthread_mutexattr_settype_decl=no
39625
39626 fi
39627
39628 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39629
39630 fi
39631 { echo "$as_me:$LINENO: result: $wx_cv_func_pthread_mutexattr_settype_decl" >&5
39632 echo "${ECHO_T}$wx_cv_func_pthread_mutexattr_settype_decl" >&6; }
39633         if test "$wx_cv_func_pthread_mutexattr_settype_decl" = "yes"; then
39634             cat >>confdefs.h <<\_ACEOF
39635 #define HAVE_PTHREAD_MUTEXATTR_SETTYPE_DECL 1
39636 _ACEOF
39637
39638         fi
39639       else
39640                 { echo "$as_me:$LINENO: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
39641 echo $ECHO_N "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER... $ECHO_C" >&6; }
39642 if test "${wx_cv_type_pthread_rec_mutex_init+set}" = set; then
39643   echo $ECHO_N "(cached) $ECHO_C" >&6
39644 else
39645
39646             cat >conftest.$ac_ext <<_ACEOF
39647 /* confdefs.h.  */
39648 _ACEOF
39649 cat confdefs.h >>conftest.$ac_ext
39650 cat >>conftest.$ac_ext <<_ACEOF
39651 /* end confdefs.h.  */
39652 #include <pthread.h>
39653 int
39654 main ()
39655 {
39656
39657                     pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
39658
39659   ;
39660   return 0;
39661 }
39662 _ACEOF
39663 rm -f conftest.$ac_objext
39664 if { (ac_try="$ac_compile"
39665 case "(($ac_try" in
39666   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39667   *) ac_try_echo=$ac_try;;
39668 esac
39669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39670   (eval "$ac_compile") 2>conftest.er1
39671   ac_status=$?
39672   grep -v '^ *+' conftest.er1 >conftest.err
39673   rm -f conftest.er1
39674   cat conftest.err >&5
39675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39676   (exit $ac_status); } && {
39677          test -z "$ac_c_werror_flag" ||
39678          test ! -s conftest.err
39679        } && test -s conftest.$ac_objext; then
39680
39681                     wx_cv_type_pthread_rec_mutex_init=yes
39682
39683 else
39684   echo "$as_me: failed program was:" >&5
39685 sed 's/^/| /' conftest.$ac_ext >&5
39686
39687
39688                     wx_cv_type_pthread_rec_mutex_init=no
39689
39690
39691 fi
39692
39693 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39694
39695 fi
39696 { echo "$as_me:$LINENO: result: $wx_cv_type_pthread_rec_mutex_init" >&5
39697 echo "${ECHO_T}$wx_cv_type_pthread_rec_mutex_init" >&6; }
39698         if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
39699           cat >>confdefs.h <<\_ACEOF
39700 #define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
39701 _ACEOF
39702
39703         else
39704                     { echo "$as_me:$LINENO: WARNING: wxMutex won't be recursive on this platform" >&5
39705 echo "$as_me: WARNING: wxMutex won't be recursive on this platform" >&2;}
39706         fi
39707       fi
39708     fi
39709
39710 else
39711     if test "$wxUSE_THREADS" = "yes" ; then
39712       case "${host}" in
39713         *-*-mingw32* )
39714                         { echo "$as_me:$LINENO: checking if compiler supports -mthreads" >&5
39715 echo $ECHO_N "checking if compiler supports -mthreads... $ECHO_C" >&6; }
39716 if test "${wx_cv_cflags_mthread+set}" = set; then
39717   echo $ECHO_N "(cached) $ECHO_C" >&6
39718 else
39719
39720                     CFLAGS_OLD="$CFLAGS"
39721                     CFLAGS="-mthreads $CFLAGS"
39722                     cat >conftest.$ac_ext <<_ACEOF
39723 /* confdefs.h.  */
39724 _ACEOF
39725 cat confdefs.h >>conftest.$ac_ext
39726 cat >>conftest.$ac_ext <<_ACEOF
39727 /* end confdefs.h.  */
39728
39729 int
39730 main ()
39731 {
39732
39733   ;
39734   return 0;
39735 }
39736 _ACEOF
39737 rm -f conftest.$ac_objext
39738 if { (ac_try="$ac_compile"
39739 case "(($ac_try" in
39740   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39741   *) ac_try_echo=$ac_try;;
39742 esac
39743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39744   (eval "$ac_compile") 2>conftest.er1
39745   ac_status=$?
39746   grep -v '^ *+' conftest.er1 >conftest.err
39747   rm -f conftest.er1
39748   cat conftest.err >&5
39749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39750   (exit $ac_status); } && {
39751          test -z "$ac_c_werror_flag" ||
39752          test ! -s conftest.err
39753        } && test -s conftest.$ac_objext; then
39754   wx_cv_cflags_mthread=yes
39755 else
39756   echo "$as_me: failed program was:" >&5
39757 sed 's/^/| /' conftest.$ac_ext >&5
39758
39759         wx_cv_cflags_mthread=no
39760
39761 fi
39762
39763 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39764
39765
39766 fi
39767 { echo "$as_me:$LINENO: result: $wx_cv_cflags_mthread" >&5
39768 echo "${ECHO_T}$wx_cv_cflags_mthread" >&6; }
39769
39770             if test "$wx_cv_cflags_mthread" = "yes"; then
39771                                 WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -mthreads"
39772                 LDFLAGS="$LDFLAGS -mthreads"
39773             else
39774                                 CFLAGS="$CFLAGS_OLD"
39775             fi
39776         ;;
39777         *-pc-os2*emx )
39778             WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -Zmt -D__ST_MT_ERRNO__"
39779             LDFLAGS="$LDFLAGS -Zmt"
39780         ;;
39781       esac
39782     fi
39783 fi
39784
39785 { echo "$as_me:$LINENO: checking for localtime_r" >&5
39786 echo $ECHO_N "checking for localtime_r... $ECHO_C" >&6; }
39787 if test "${ac_cv_func_localtime_r+set}" = set; then
39788   echo $ECHO_N "(cached) $ECHO_C" >&6
39789 else
39790   cat >conftest.$ac_ext <<_ACEOF
39791 /* confdefs.h.  */
39792 _ACEOF
39793 cat confdefs.h >>conftest.$ac_ext
39794 cat >>conftest.$ac_ext <<_ACEOF
39795 /* end confdefs.h.  */
39796 /* Define localtime_r to an innocuous variant, in case <limits.h> declares localtime_r.
39797    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39798 #define localtime_r innocuous_localtime_r
39799
39800 /* System header to define __stub macros and hopefully few prototypes,
39801     which can conflict with char localtime_r (); below.
39802     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39803     <limits.h> exists even on freestanding compilers.  */
39804
39805 #ifdef __STDC__
39806 # include <limits.h>
39807 #else
39808 # include <assert.h>
39809 #endif
39810
39811 #undef localtime_r
39812
39813 /* Override any GCC internal prototype to avoid an error.
39814    Use char because int might match the return type of a GCC
39815    builtin and then its argument prototype would still apply.  */
39816 #ifdef __cplusplus
39817 extern "C"
39818 #endif
39819 char localtime_r ();
39820 /* The GNU C library defines this for functions which it implements
39821     to always fail with ENOSYS.  Some functions are actually named
39822     something starting with __ and the normal name is an alias.  */
39823 #if defined __stub_localtime_r || defined __stub___localtime_r
39824 choke me
39825 #endif
39826
39827 int
39828 main ()
39829 {
39830 return localtime_r ();
39831   ;
39832   return 0;
39833 }
39834 _ACEOF
39835 rm -f conftest.$ac_objext conftest$ac_exeext
39836 if { (ac_try="$ac_link"
39837 case "(($ac_try" in
39838   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39839   *) ac_try_echo=$ac_try;;
39840 esac
39841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39842   (eval "$ac_link") 2>conftest.er1
39843   ac_status=$?
39844   grep -v '^ *+' conftest.er1 >conftest.err
39845   rm -f conftest.er1
39846   cat conftest.err >&5
39847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39848   (exit $ac_status); } && {
39849          test -z "$ac_c_werror_flag" ||
39850          test ! -s conftest.err
39851        } && test -s conftest$ac_exeext &&
39852        $as_test_x conftest$ac_exeext; then
39853   ac_cv_func_localtime_r=yes
39854 else
39855   echo "$as_me: failed program was:" >&5
39856 sed 's/^/| /' conftest.$ac_ext >&5
39857
39858         ac_cv_func_localtime_r=no
39859 fi
39860
39861 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39862       conftest$ac_exeext conftest.$ac_ext
39863 fi
39864 { echo "$as_me:$LINENO: result: $ac_cv_func_localtime_r" >&5
39865 echo "${ECHO_T}$ac_cv_func_localtime_r" >&6; }
39866 if test $ac_cv_func_localtime_r = yes; then
39867    cat >>confdefs.h <<\_ACEOF
39868 #define HAVE_LOCALTIME_R 1
39869 _ACEOF
39870
39871 fi
39872
39873 { echo "$as_me:$LINENO: checking for gmtime_r" >&5
39874 echo $ECHO_N "checking for gmtime_r... $ECHO_C" >&6; }
39875 if test "${ac_cv_func_gmtime_r+set}" = set; then
39876   echo $ECHO_N "(cached) $ECHO_C" >&6
39877 else
39878   cat >conftest.$ac_ext <<_ACEOF
39879 /* confdefs.h.  */
39880 _ACEOF
39881 cat confdefs.h >>conftest.$ac_ext
39882 cat >>conftest.$ac_ext <<_ACEOF
39883 /* end confdefs.h.  */
39884 /* Define gmtime_r to an innocuous variant, in case <limits.h> declares gmtime_r.
39885    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39886 #define gmtime_r innocuous_gmtime_r
39887
39888 /* System header to define __stub macros and hopefully few prototypes,
39889     which can conflict with char gmtime_r (); below.
39890     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39891     <limits.h> exists even on freestanding compilers.  */
39892
39893 #ifdef __STDC__
39894 # include <limits.h>
39895 #else
39896 # include <assert.h>
39897 #endif
39898
39899 #undef gmtime_r
39900
39901 /* Override any GCC internal prototype to avoid an error.
39902    Use char because int might match the return type of a GCC
39903    builtin and then its argument prototype would still apply.  */
39904 #ifdef __cplusplus
39905 extern "C"
39906 #endif
39907 char gmtime_r ();
39908 /* The GNU C library defines this for functions which it implements
39909     to always fail with ENOSYS.  Some functions are actually named
39910     something starting with __ and the normal name is an alias.  */
39911 #if defined __stub_gmtime_r || defined __stub___gmtime_r
39912 choke me
39913 #endif
39914
39915 int
39916 main ()
39917 {
39918 return gmtime_r ();
39919   ;
39920   return 0;
39921 }
39922 _ACEOF
39923 rm -f conftest.$ac_objext conftest$ac_exeext
39924 if { (ac_try="$ac_link"
39925 case "(($ac_try" in
39926   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39927   *) ac_try_echo=$ac_try;;
39928 esac
39929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39930   (eval "$ac_link") 2>conftest.er1
39931   ac_status=$?
39932   grep -v '^ *+' conftest.er1 >conftest.err
39933   rm -f conftest.er1
39934   cat conftest.err >&5
39935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39936   (exit $ac_status); } && {
39937          test -z "$ac_c_werror_flag" ||
39938          test ! -s conftest.err
39939        } && test -s conftest$ac_exeext &&
39940        $as_test_x conftest$ac_exeext; then
39941   ac_cv_func_gmtime_r=yes
39942 else
39943   echo "$as_me: failed program was:" >&5
39944 sed 's/^/| /' conftest.$ac_ext >&5
39945
39946         ac_cv_func_gmtime_r=no
39947 fi
39948
39949 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39950       conftest$ac_exeext conftest.$ac_ext
39951 fi
39952 { echo "$as_me:$LINENO: result: $ac_cv_func_gmtime_r" >&5
39953 echo "${ECHO_T}$ac_cv_func_gmtime_r" >&6; }
39954 if test $ac_cv_func_gmtime_r = yes; then
39955    cat >>confdefs.h <<\_ACEOF
39956 #define HAVE_GMTIME_R 1
39957 _ACEOF
39958
39959 fi
39960
39961
39962
39963
39964     ac_ext=c
39965 ac_cpp='$CPP $CPPFLAGS'
39966 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39967 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39968 ac_compiler_gnu=$ac_cv_c_compiler_gnu
39969
39970     { echo "$as_me:$LINENO: checking how many arguments gethostbyname_r() takes" >&5
39971 echo $ECHO_N "checking how many arguments gethostbyname_r() takes... $ECHO_C" >&6; }
39972
39973     if test "${ac_cv_func_which_gethostbyname_r+set}" = set; then
39974   echo $ECHO_N "(cached) $ECHO_C" >&6
39975 else
39976
39977
39978 ################################################################
39979
39980 ac_cv_func_which_gethostbyname_r=unknown
39981
39982 #
39983 # ONE ARGUMENT (sanity check)
39984 #
39985
39986 # This should fail, as there is no variant of gethostbyname_r() that takes
39987 # a single argument. If it actually compiles, then we can assume that
39988 # netdb.h is not declaring the function, and the compiler is thereby
39989 # assuming an implicit prototype. In which case, we're out of luck.
39990 #
39991 cat >conftest.$ac_ext <<_ACEOF
39992 /* confdefs.h.  */
39993 _ACEOF
39994 cat confdefs.h >>conftest.$ac_ext
39995 cat >>conftest.$ac_ext <<_ACEOF
39996 /* end confdefs.h.  */
39997 #include <netdb.h>
39998 int
39999 main ()
40000 {
40001
40002             char *name = "www.gnu.org";
40003             (void)gethostbyname_r(name) /* ; */
40004
40005   ;
40006   return 0;
40007 }
40008 _ACEOF
40009 rm -f conftest.$ac_objext
40010 if { (ac_try="$ac_compile"
40011 case "(($ac_try" in
40012   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40013   *) ac_try_echo=$ac_try;;
40014 esac
40015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40016   (eval "$ac_compile") 2>conftest.er1
40017   ac_status=$?
40018   grep -v '^ *+' conftest.er1 >conftest.err
40019   rm -f conftest.er1
40020   cat conftest.err >&5
40021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40022   (exit $ac_status); } && {
40023          test -z "$ac_c_werror_flag" ||
40024          test ! -s conftest.err
40025        } && test -s conftest.$ac_objext; then
40026   ac_cv_func_which_gethostbyname_r=no
40027 else
40028   echo "$as_me: failed program was:" >&5
40029 sed 's/^/| /' conftest.$ac_ext >&5
40030
40031
40032 fi
40033
40034 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40035
40036 #
40037 # SIX ARGUMENTS
40038 # (e.g. Linux)
40039 #
40040
40041 if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then
40042
40043 cat >conftest.$ac_ext <<_ACEOF
40044 /* confdefs.h.  */
40045 _ACEOF
40046 cat confdefs.h >>conftest.$ac_ext
40047 cat >>conftest.$ac_ext <<_ACEOF
40048 /* end confdefs.h.  */
40049 #include <netdb.h>
40050 int
40051 main ()
40052 {
40053
40054             char *name = "www.gnu.org";
40055             struct hostent ret, *retp;
40056             char buf[1024];
40057             int buflen = 1024;
40058             int my_h_errno;
40059             (void)gethostbyname_r(name, &ret, buf, buflen, &retp, &my_h_errno) /* ; */
40060
40061   ;
40062   return 0;
40063 }
40064 _ACEOF
40065 rm -f conftest.$ac_objext
40066 if { (ac_try="$ac_compile"
40067 case "(($ac_try" in
40068   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40069   *) ac_try_echo=$ac_try;;
40070 esac
40071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40072   (eval "$ac_compile") 2>conftest.er1
40073   ac_status=$?
40074   grep -v '^ *+' conftest.er1 >conftest.err
40075   rm -f conftest.er1
40076   cat conftest.err >&5
40077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40078   (exit $ac_status); } && {
40079          test -z "$ac_c_werror_flag" ||
40080          test ! -s conftest.err
40081        } && test -s conftest.$ac_objext; then
40082   ac_cv_func_which_gethostbyname_r=six
40083 else
40084   echo "$as_me: failed program was:" >&5
40085 sed 's/^/| /' conftest.$ac_ext >&5
40086
40087
40088 fi
40089
40090 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40091
40092 fi
40093
40094 #
40095 # FIVE ARGUMENTS
40096 # (e.g. Solaris)
40097 #
40098
40099 if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then
40100
40101 cat >conftest.$ac_ext <<_ACEOF
40102 /* confdefs.h.  */
40103 _ACEOF
40104 cat confdefs.h >>conftest.$ac_ext
40105 cat >>conftest.$ac_ext <<_ACEOF
40106 /* end confdefs.h.  */
40107 #include <netdb.h>
40108 int
40109 main ()
40110 {
40111
40112             char *name = "www.gnu.org";
40113             struct hostent ret;
40114             char buf[1024];
40115             int buflen = 1024;
40116             int my_h_errno;
40117             (void)gethostbyname_r(name, &ret, buf, buflen, &my_h_errno) /* ; */
40118
40119   ;
40120   return 0;
40121 }
40122 _ACEOF
40123 rm -f conftest.$ac_objext
40124 if { (ac_try="$ac_compile"
40125 case "(($ac_try" in
40126   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40127   *) ac_try_echo=$ac_try;;
40128 esac
40129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40130   (eval "$ac_compile") 2>conftest.er1
40131   ac_status=$?
40132   grep -v '^ *+' conftest.er1 >conftest.err
40133   rm -f conftest.er1
40134   cat conftest.err >&5
40135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40136   (exit $ac_status); } && {
40137          test -z "$ac_c_werror_flag" ||
40138          test ! -s conftest.err
40139        } && test -s conftest.$ac_objext; then
40140   ac_cv_func_which_gethostbyname_r=five
40141 else
40142   echo "$as_me: failed program was:" >&5
40143 sed 's/^/| /' conftest.$ac_ext >&5
40144
40145
40146 fi
40147
40148 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40149
40150 fi
40151
40152 #
40153 # THREE ARGUMENTS
40154 # (e.g. AIX, HP-UX, Tru64)
40155 #
40156
40157 if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then
40158
40159 cat >conftest.$ac_ext <<_ACEOF
40160 /* confdefs.h.  */
40161 _ACEOF
40162 cat confdefs.h >>conftest.$ac_ext
40163 cat >>conftest.$ac_ext <<_ACEOF
40164 /* end confdefs.h.  */
40165 #include <netdb.h>
40166 int
40167 main ()
40168 {
40169
40170             char *name = "www.gnu.org";
40171             struct hostent ret;
40172             struct hostent_data data;
40173             (void)gethostbyname_r(name, &ret, &data) /* ; */
40174
40175   ;
40176   return 0;
40177 }
40178 _ACEOF
40179 rm -f conftest.$ac_objext
40180 if { (ac_try="$ac_compile"
40181 case "(($ac_try" in
40182   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40183   *) ac_try_echo=$ac_try;;
40184 esac
40185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40186   (eval "$ac_compile") 2>conftest.er1
40187   ac_status=$?
40188   grep -v '^ *+' conftest.er1 >conftest.err
40189   rm -f conftest.er1
40190   cat conftest.err >&5
40191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40192   (exit $ac_status); } && {
40193          test -z "$ac_c_werror_flag" ||
40194          test ! -s conftest.err
40195        } && test -s conftest.$ac_objext; then
40196   ac_cv_func_which_gethostbyname_r=three
40197 else
40198   echo "$as_me: failed program was:" >&5
40199 sed 's/^/| /' conftest.$ac_ext >&5
40200
40201
40202 fi
40203
40204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40205
40206 fi
40207
40208 ################################################################
40209
40210
40211 fi
40212
40213 case "$ac_cv_func_which_gethostbyname_r" in
40214     three)
40215     { echo "$as_me:$LINENO: result: three" >&5
40216 echo "${ECHO_T}three" >&6; }
40217     cat >>confdefs.h <<\_ACEOF
40218 #define HAVE_FUNC_GETHOSTBYNAME_R_3 1
40219 _ACEOF
40220
40221     ;;
40222
40223     five)
40224     { echo "$as_me:$LINENO: result: five" >&5
40225 echo "${ECHO_T}five" >&6; }
40226     cat >>confdefs.h <<\_ACEOF
40227 #define HAVE_FUNC_GETHOSTBYNAME_R_5 1
40228 _ACEOF
40229
40230     ;;
40231
40232     six)
40233     { echo "$as_me:$LINENO: result: six" >&5
40234 echo "${ECHO_T}six" >&6; }
40235     cat >>confdefs.h <<\_ACEOF
40236 #define HAVE_FUNC_GETHOSTBYNAME_R_6 1
40237 _ACEOF
40238
40239     ;;
40240
40241     no)
40242     { echo "$as_me:$LINENO: result: cannot find function declaration in netdb.h" >&5
40243 echo "${ECHO_T}cannot find function declaration in netdb.h" >&6; }
40244     ;;
40245
40246     unknown)
40247     { echo "$as_me:$LINENO: result: can't tell" >&5
40248 echo "${ECHO_T}can't tell" >&6; }
40249     ;;
40250
40251     *)
40252     { { echo "$as_me:$LINENO: error: internal error" >&5
40253 echo "$as_me: error: internal error" >&2;}
40254    { (exit 1); exit 1; }; }
40255     ;;
40256 esac
40257
40258 ac_ext=c
40259 ac_cpp='$CPP $CPPFLAGS'
40260 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40261 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40262 ac_compiler_gnu=$ac_cv_c_compiler_gnu
40263
40264
40265
40266       if test "x$ac_cv_func_which_gethostbyname_r" = "xno" -o \
40267               "x$ac_cv_func_which_gethostbyname_r" = "xunknown" ; then
40268           { echo "$as_me:$LINENO: checking for gethostbyname" >&5
40269 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
40270 if test "${ac_cv_func_gethostbyname+set}" = set; then
40271   echo $ECHO_N "(cached) $ECHO_C" >&6
40272 else
40273   cat >conftest.$ac_ext <<_ACEOF
40274 /* confdefs.h.  */
40275 _ACEOF
40276 cat confdefs.h >>conftest.$ac_ext
40277 cat >>conftest.$ac_ext <<_ACEOF
40278 /* end confdefs.h.  */
40279 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
40280    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40281 #define gethostbyname innocuous_gethostbyname
40282
40283 /* System header to define __stub macros and hopefully few prototypes,
40284     which can conflict with char gethostbyname (); below.
40285     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40286     <limits.h> exists even on freestanding compilers.  */
40287
40288 #ifdef __STDC__
40289 # include <limits.h>
40290 #else
40291 # include <assert.h>
40292 #endif
40293
40294 #undef gethostbyname
40295
40296 /* Override any GCC internal prototype to avoid an error.
40297    Use char because int might match the return type of a GCC
40298    builtin and then its argument prototype would still apply.  */
40299 #ifdef __cplusplus
40300 extern "C"
40301 #endif
40302 char gethostbyname ();
40303 /* The GNU C library defines this for functions which it implements
40304     to always fail with ENOSYS.  Some functions are actually named
40305     something starting with __ and the normal name is an alias.  */
40306 #if defined __stub_gethostbyname || defined __stub___gethostbyname
40307 choke me
40308 #endif
40309
40310 int
40311 main ()
40312 {
40313 return gethostbyname ();
40314   ;
40315   return 0;
40316 }
40317 _ACEOF
40318 rm -f conftest.$ac_objext conftest$ac_exeext
40319 if { (ac_try="$ac_link"
40320 case "(($ac_try" in
40321   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40322   *) ac_try_echo=$ac_try;;
40323 esac
40324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40325   (eval "$ac_link") 2>conftest.er1
40326   ac_status=$?
40327   grep -v '^ *+' conftest.er1 >conftest.err
40328   rm -f conftest.er1
40329   cat conftest.err >&5
40330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40331   (exit $ac_status); } && {
40332          test -z "$ac_c_werror_flag" ||
40333          test ! -s conftest.err
40334        } && test -s conftest$ac_exeext &&
40335        $as_test_x conftest$ac_exeext; then
40336   ac_cv_func_gethostbyname=yes
40337 else
40338   echo "$as_me: failed program was:" >&5
40339 sed 's/^/| /' conftest.$ac_ext >&5
40340
40341         ac_cv_func_gethostbyname=no
40342 fi
40343
40344 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40345       conftest$ac_exeext conftest.$ac_ext
40346 fi
40347 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
40348 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
40349 if test $ac_cv_func_gethostbyname = yes; then
40350    cat >>confdefs.h <<\_ACEOF
40351 #define HAVE_GETHOSTBYNAME 1
40352 _ACEOF
40353
40354 fi
40355
40356       fi
40357
40358 { echo "$as_me:$LINENO: checking how many arguments getservbyname_r() takes" >&5
40359 echo $ECHO_N "checking how many arguments getservbyname_r() takes... $ECHO_C" >&6; }
40360 if test "${ac_cv_func_which_getservbyname_r+set}" = set; then
40361   echo $ECHO_N "(cached) $ECHO_C" >&6
40362 else
40363
40364                 ac_ext=cpp
40365 ac_cpp='$CXXCPP $CPPFLAGS'
40366 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40367 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40368 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
40369
40370
40371         cat >conftest.$ac_ext <<_ACEOF
40372 /* confdefs.h.  */
40373 _ACEOF
40374 cat confdefs.h >>conftest.$ac_ext
40375 cat >>conftest.$ac_ext <<_ACEOF
40376 /* end confdefs.h.  */
40377 #include <netdb.h>
40378 int
40379 main ()
40380 {
40381
40382                 char *name;
40383                 char *proto;
40384                 struct servent *se, *res;
40385                 char buffer[2048];
40386                 int buflen = 2048;
40387                 (void) getservbyname_r(name, proto, se, buffer, buflen, &res)
40388
40389   ;
40390   return 0;
40391 }
40392 _ACEOF
40393 rm -f conftest.$ac_objext
40394 if { (ac_try="$ac_compile"
40395 case "(($ac_try" in
40396   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40397   *) ac_try_echo=$ac_try;;
40398 esac
40399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40400   (eval "$ac_compile") 2>conftest.er1
40401   ac_status=$?
40402   grep -v '^ *+' conftest.er1 >conftest.err
40403   rm -f conftest.er1
40404   cat conftest.err >&5
40405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40406   (exit $ac_status); } && {
40407          test -z "$ac_cxx_werror_flag" ||
40408          test ! -s conftest.err
40409        } && test -s conftest.$ac_objext; then
40410   ac_cv_func_which_getservbyname_r=six
40411 else
40412   echo "$as_me: failed program was:" >&5
40413 sed 's/^/| /' conftest.$ac_ext >&5
40414
40415
40416                 cat >conftest.$ac_ext <<_ACEOF
40417 /* confdefs.h.  */
40418 _ACEOF
40419 cat confdefs.h >>conftest.$ac_ext
40420 cat >>conftest.$ac_ext <<_ACEOF
40421 /* end confdefs.h.  */
40422 #include <netdb.h>
40423 int
40424 main ()
40425 {
40426
40427                         char *name;
40428                         char *proto;
40429                         struct servent *se;
40430                         char buffer[2048];
40431                         int buflen = 2048;
40432                         (void) getservbyname_r(name, proto, se, buffer, buflen)
40433
40434   ;
40435   return 0;
40436 }
40437 _ACEOF
40438 rm -f conftest.$ac_objext
40439 if { (ac_try="$ac_compile"
40440 case "(($ac_try" in
40441   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40442   *) ac_try_echo=$ac_try;;
40443 esac
40444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40445   (eval "$ac_compile") 2>conftest.er1
40446   ac_status=$?
40447   grep -v '^ *+' conftest.er1 >conftest.err
40448   rm -f conftest.er1
40449   cat conftest.err >&5
40450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40451   (exit $ac_status); } && {
40452          test -z "$ac_cxx_werror_flag" ||
40453          test ! -s conftest.err
40454        } && test -s conftest.$ac_objext; then
40455   ac_cv_func_which_getservbyname_r=five
40456 else
40457   echo "$as_me: failed program was:" >&5
40458 sed 's/^/| /' conftest.$ac_ext >&5
40459
40460
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 #include <netdb.h>
40468 int
40469 main ()
40470 {
40471
40472                                 char *name;
40473                                 char *proto;
40474                                 struct servent *se;
40475                                 struct servent_data data;
40476                                 (void) getservbyname_r(name, proto, se, &data);
40477
40478   ;
40479   return 0;
40480 }
40481 _ACEOF
40482 rm -f conftest.$ac_objext
40483 if { (ac_try="$ac_compile"
40484 case "(($ac_try" in
40485   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40486   *) ac_try_echo=$ac_try;;
40487 esac
40488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40489   (eval "$ac_compile") 2>conftest.er1
40490   ac_status=$?
40491   grep -v '^ *+' conftest.er1 >conftest.err
40492   rm -f conftest.er1
40493   cat conftest.err >&5
40494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40495   (exit $ac_status); } && {
40496          test -z "$ac_cxx_werror_flag" ||
40497          test ! -s conftest.err
40498        } && test -s conftest.$ac_objext; then
40499   ac_cv_func_which_getservbyname_r=four
40500 else
40501   echo "$as_me: failed program was:" >&5
40502 sed 's/^/| /' conftest.$ac_ext >&5
40503
40504         ac_cv_func_which_getservbyname_r=no
40505
40506 fi
40507
40508 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40509
40510
40511 fi
40512
40513 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40514
40515
40516 fi
40517
40518 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40519         ac_ext=c
40520 ac_cpp='$CPP $CPPFLAGS'
40521 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40522 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40523 ac_compiler_gnu=$ac_cv_c_compiler_gnu
40524
40525
40526
40527 fi
40528 { echo "$as_me:$LINENO: result: $ac_cv_func_which_getservbyname_r" >&5
40529 echo "${ECHO_T}$ac_cv_func_which_getservbyname_r" >&6; }
40530
40531 if test $ac_cv_func_which_getservbyname_r = six; then
40532   cat >>confdefs.h <<\_ACEOF
40533 #define HAVE_FUNC_GETSERVBYNAME_R_6 1
40534 _ACEOF
40535
40536 elif test $ac_cv_func_which_getservbyname_r = five; then
40537   cat >>confdefs.h <<\_ACEOF
40538 #define HAVE_FUNC_GETSERVBYNAME_R_5 1
40539 _ACEOF
40540
40541 elif test $ac_cv_func_which_getservbyname_r = four; then
40542   cat >>confdefs.h <<\_ACEOF
40543 #define HAVE_FUNC_GETSERVBYNAME_R_4 1
40544 _ACEOF
40545
40546 fi
40547
40548
40549       if test "x$ac_cv_func_which_getservbyname_r" = "xno" -o \
40550               "x$ac_cv_func_which_getservbyname_r" = "xunknown" ; then
40551
40552 for ac_func in getservbyname
40553 do
40554 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40555 { echo "$as_me:$LINENO: checking for $ac_func" >&5
40556 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
40557 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
40558   echo $ECHO_N "(cached) $ECHO_C" >&6
40559 else
40560   cat >conftest.$ac_ext <<_ACEOF
40561 /* confdefs.h.  */
40562 _ACEOF
40563 cat confdefs.h >>conftest.$ac_ext
40564 cat >>conftest.$ac_ext <<_ACEOF
40565 /* end confdefs.h.  */
40566 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40567    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40568 #define $ac_func innocuous_$ac_func
40569
40570 /* System header to define __stub macros and hopefully few prototypes,
40571     which can conflict with char $ac_func (); below.
40572     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40573     <limits.h> exists even on freestanding compilers.  */
40574
40575 #ifdef __STDC__
40576 # include <limits.h>
40577 #else
40578 # include <assert.h>
40579 #endif
40580
40581 #undef $ac_func
40582
40583 /* Override any GCC internal prototype to avoid an error.
40584    Use char because int might match the return type of a GCC
40585    builtin and then its argument prototype would still apply.  */
40586 #ifdef __cplusplus
40587 extern "C"
40588 #endif
40589 char $ac_func ();
40590 /* The GNU C library defines this for functions which it implements
40591     to always fail with ENOSYS.  Some functions are actually named
40592     something starting with __ and the normal name is an alias.  */
40593 #if defined __stub_$ac_func || defined __stub___$ac_func
40594 choke me
40595 #endif
40596
40597 int
40598 main ()
40599 {
40600 return $ac_func ();
40601   ;
40602   return 0;
40603 }
40604 _ACEOF
40605 rm -f conftest.$ac_objext conftest$ac_exeext
40606 if { (ac_try="$ac_link"
40607 case "(($ac_try" in
40608   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40609   *) ac_try_echo=$ac_try;;
40610 esac
40611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40612   (eval "$ac_link") 2>conftest.er1
40613   ac_status=$?
40614   grep -v '^ *+' conftest.er1 >conftest.err
40615   rm -f conftest.er1
40616   cat conftest.err >&5
40617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40618   (exit $ac_status); } && {
40619          test -z "$ac_c_werror_flag" ||
40620          test ! -s conftest.err
40621        } && test -s conftest$ac_exeext &&
40622        $as_test_x conftest$ac_exeext; then
40623   eval "$as_ac_var=yes"
40624 else
40625   echo "$as_me: failed program was:" >&5
40626 sed 's/^/| /' conftest.$ac_ext >&5
40627
40628         eval "$as_ac_var=no"
40629 fi
40630
40631 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40632       conftest$ac_exeext conftest.$ac_ext
40633 fi
40634 ac_res=`eval echo '${'$as_ac_var'}'`
40635                { echo "$as_me:$LINENO: result: $ac_res" >&5
40636 echo "${ECHO_T}$ac_res" >&6; }
40637 if test `eval echo '${'$as_ac_var'}'` = yes; then
40638   cat >>confdefs.h <<_ACEOF
40639 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40640 _ACEOF
40641   cat >>confdefs.h <<\_ACEOF
40642 #define HAVE_GETSERVBYNAME 1
40643 _ACEOF
40644
40645 fi
40646 done
40647
40648       fi
40649
40650 if test "$wxUSE_THREADS" = "yes"; then
40651   cat >>confdefs.h <<\_ACEOF
40652 #define wxUSE_THREADS 1
40653 _ACEOF
40654
40655
40656   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
40657 else
40658       if test "$wx_cv_func_strtok_r" = "yes"; then
40659     { echo "$as_me:$LINENO: checking if -D_REENTRANT is needed" >&5
40660 echo $ECHO_N "checking if -D_REENTRANT is needed... $ECHO_C" >&6; }
40661     if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
40662         WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_REENTRANT"
40663         { echo "$as_me:$LINENO: result: yes" >&5
40664 echo "${ECHO_T}yes" >&6; }
40665     else
40666         { echo "$as_me:$LINENO: result: no" >&5
40667 echo "${ECHO_T}no" >&6; }
40668     fi
40669   fi
40670 fi
40671
40672 if test "$WXGTK2" = 1 ; then
40673   cat >>confdefs.h <<_ACEOF
40674 #define __WXGTK20__ $WXGTK2
40675 _ACEOF
40676
40677   WXGTK12=1
40678 fi
40679
40680 if test "$WXGTK12" = 1 ; then
40681   cat >>confdefs.h <<_ACEOF
40682 #define __WXGTK12__ $WXGTK12
40683 _ACEOF
40684
40685 fi
40686
40687 if test "$WXGTK127" = 1 ; then
40688   cat >>confdefs.h <<_ACEOF
40689 #define __WXGTK127__ $WXGTK127
40690 _ACEOF
40691
40692 fi
40693
40694 if test "$WXGPE" = 1 ; then
40695   cat >>confdefs.h <<_ACEOF
40696 #define __WXGPE__ $WXGPE
40697 _ACEOF
40698
40699 fi
40700
40701 DEBUG_CFLAGS=
40702 if test "$wxUSE_DEBUG_INFO" = "yes" ; then
40703     DEBUG_CFLAGS="-g"
40704     wxUSE_OPTIMISE=no
40705 fi
40706
40707 if test "$wxUSE_DEBUG_GDB" = "yes" ; then
40708     wxUSE_DEBUG_INFO=yes
40709     if test "$GCC" = yes; then
40710         DEBUG_CFLAGS="-ggdb"
40711     fi
40712 fi
40713
40714 if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
40715     cat >>confdefs.h <<\_ACEOF
40716 #define WXDEBUG 1
40717 _ACEOF
40718
40719     WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D__WXDEBUG__"
40720 else
40721     if test "$wxUSE_GTK" = 1 ; then
40722         if test "x$wxGTK_VERSION" = "x1" ; then
40723             CPPFLAGS="-DGTK_NO_CHECK_CASTS $CPPFLAGS"
40724         fi
40725     fi
40726 fi
40727
40728 if test "$wxUSE_MEM_TRACING" = "yes" ; then
40729     cat >>confdefs.h <<\_ACEOF
40730 #define wxUSE_MEMORY_TRACING 1
40731 _ACEOF
40732
40733     cat >>confdefs.h <<\_ACEOF
40734 #define wxUSE_GLOBAL_MEMORY_OPERATORS 1
40735 _ACEOF
40736
40737     cat >>confdefs.h <<\_ACEOF
40738 #define wxUSE_DEBUG_NEW_ALWAYS 1
40739 _ACEOF
40740
40741     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
40742 fi
40743
40744 if test "$wxUSE_DMALLOC" = "yes" ; then
40745     DMALLOC_LIBS="-ldmallocthcxx"
40746 fi
40747
40748 PROFILE_FLAGS=
40749 if test "$wxUSE_PROFILE" = "yes" ; then
40750     PROFILE_FLAGS=" -pg"
40751 fi
40752
40753 if test "$GCC" = "yes" ; then
40754     if test "$wxUSE_NO_RTTI" = "yes" ; then
40755         WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -fno-rtti"
40756     fi
40757     if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
40758         WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -fno-exceptions"
40759     fi
40760     if test "$wxUSE_PERMISSIVE" = "yes" ; then
40761         WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -fpermissive"
40762     fi
40763
40764                                                 case "${host}" in
40765       powerpc*-*-aix* )
40766         WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -mminimal-toc"
40767         ;;
40768       *-hppa* )
40769         WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -ffunction-sections"
40770         ;;
40771     esac
40772 fi
40773
40774 OPTIMISE_CFLAGS=
40775 if test "$wxUSE_OPTIMISE" = "no" ; then
40776     if test "$GCC" = yes ; then
40777                         OPTIMISE_CFLAGS="-O0"
40778     fi
40779 else
40780     if test "$GCC" = yes ; then
40781         case "${host}" in
40782             *-pc-os2_emx | *-pc-os2-emx )
40783                                                 OPTIMISE_CFLAGS="-O2"
40784             ;;
40785             *)
40786                                                                 OPTIMISE_CFLAGS="-O2 -fno-strict-aliasing"
40787             ;;
40788         esac
40789     else
40790         OPTIMISE_CFLAGS="-O"
40791     fi
40792 fi
40793
40794
40795 if test "x$WXWIN_COMPATIBILITY_2_6" = "xyes"; then
40796     cat >>confdefs.h <<\_ACEOF
40797 #define WXWIN_COMPATIBILITY_2_6 1
40798 _ACEOF
40799
40800
40801     WXWIN_COMPATIBILITY_2_8="yes"
40802 fi
40803
40804 if test "x$WXWIN_COMPATIBILITY_2_8" != "xno"; then
40805     cat >>confdefs.h <<\_ACEOF
40806 #define WXWIN_COMPATIBILITY_2_8 1
40807 _ACEOF
40808
40809 fi
40810
40811
40812 if test "$wxUSE_GUI" = "yes"; then
40813     cat >>confdefs.h <<\_ACEOF
40814 #define wxUSE_GUI 1
40815 _ACEOF
40816
40817
40818                                             fi
40819
40820
40821 if test "$wxUSE_UNIX" = "yes"; then
40822   cat >>confdefs.h <<\_ACEOF
40823 #define wxUSE_UNIX 1
40824 _ACEOF
40825
40826 fi
40827
40828
40829 if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
40830
40831     HAVE_DL_FUNCS=0
40832     HAVE_SHL_FUNCS=0
40833     if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then
40834         if test "$USE_DARWIN" = 1; then
40835                         HAVE_DL_FUNCS=1
40836         elif test "$USE_DOS" = 1; then
40837             HAVE_DL_FUNCS=0
40838         else
40839
40840 for ac_func in dlopen
40841 do
40842 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40843 { echo "$as_me:$LINENO: checking for $ac_func" >&5
40844 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
40845 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
40846   echo $ECHO_N "(cached) $ECHO_C" >&6
40847 else
40848   cat >conftest.$ac_ext <<_ACEOF
40849 /* confdefs.h.  */
40850 _ACEOF
40851 cat confdefs.h >>conftest.$ac_ext
40852 cat >>conftest.$ac_ext <<_ACEOF
40853 /* end confdefs.h.  */
40854 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40855    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40856 #define $ac_func innocuous_$ac_func
40857
40858 /* System header to define __stub macros and hopefully few prototypes,
40859     which can conflict with char $ac_func (); below.
40860     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40861     <limits.h> exists even on freestanding compilers.  */
40862
40863 #ifdef __STDC__
40864 # include <limits.h>
40865 #else
40866 # include <assert.h>
40867 #endif
40868
40869 #undef $ac_func
40870
40871 /* Override any GCC internal prototype to avoid an error.
40872    Use char because int might match the return type of a GCC
40873    builtin and then its argument prototype would still apply.  */
40874 #ifdef __cplusplus
40875 extern "C"
40876 #endif
40877 char $ac_func ();
40878 /* The GNU C library defines this for functions which it implements
40879     to always fail with ENOSYS.  Some functions are actually named
40880     something starting with __ and the normal name is an alias.  */
40881 #if defined __stub_$ac_func || defined __stub___$ac_func
40882 choke me
40883 #endif
40884
40885 int
40886 main ()
40887 {
40888 return $ac_func ();
40889   ;
40890   return 0;
40891 }
40892 _ACEOF
40893 rm -f conftest.$ac_objext conftest$ac_exeext
40894 if { (ac_try="$ac_link"
40895 case "(($ac_try" in
40896   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40897   *) ac_try_echo=$ac_try;;
40898 esac
40899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40900   (eval "$ac_link") 2>conftest.er1
40901   ac_status=$?
40902   grep -v '^ *+' conftest.er1 >conftest.err
40903   rm -f conftest.er1
40904   cat conftest.err >&5
40905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40906   (exit $ac_status); } && {
40907          test -z "$ac_c_werror_flag" ||
40908          test ! -s conftest.err
40909        } && test -s conftest$ac_exeext &&
40910        $as_test_x conftest$ac_exeext; then
40911   eval "$as_ac_var=yes"
40912 else
40913   echo "$as_me: failed program was:" >&5
40914 sed 's/^/| /' conftest.$ac_ext >&5
40915
40916         eval "$as_ac_var=no"
40917 fi
40918
40919 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40920       conftest$ac_exeext conftest.$ac_ext
40921 fi
40922 ac_res=`eval echo '${'$as_ac_var'}'`
40923                { echo "$as_me:$LINENO: result: $ac_res" >&5
40924 echo "${ECHO_T}$ac_res" >&6; }
40925 if test `eval echo '${'$as_ac_var'}'` = yes; then
40926   cat >>confdefs.h <<_ACEOF
40927 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40928 _ACEOF
40929
40930                 cat >>confdefs.h <<\_ACEOF
40931 #define HAVE_DLOPEN 1
40932 _ACEOF
40933
40934                 HAVE_DL_FUNCS=1
40935
40936 else
40937
40938                 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
40939 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
40940 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
40941   echo $ECHO_N "(cached) $ECHO_C" >&6
40942 else
40943   ac_check_lib_save_LIBS=$LIBS
40944 LIBS="-ldl  $LIBS"
40945 cat >conftest.$ac_ext <<_ACEOF
40946 /* confdefs.h.  */
40947 _ACEOF
40948 cat confdefs.h >>conftest.$ac_ext
40949 cat >>conftest.$ac_ext <<_ACEOF
40950 /* end confdefs.h.  */
40951
40952 /* Override any GCC internal prototype to avoid an error.
40953    Use char because int might match the return type of a GCC
40954    builtin and then its argument prototype would still apply.  */
40955 #ifdef __cplusplus
40956 extern "C"
40957 #endif
40958 char dlopen ();
40959 int
40960 main ()
40961 {
40962 return dlopen ();
40963   ;
40964   return 0;
40965 }
40966 _ACEOF
40967 rm -f conftest.$ac_objext conftest$ac_exeext
40968 if { (ac_try="$ac_link"
40969 case "(($ac_try" in
40970   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40971   *) ac_try_echo=$ac_try;;
40972 esac
40973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40974   (eval "$ac_link") 2>conftest.er1
40975   ac_status=$?
40976   grep -v '^ *+' conftest.er1 >conftest.err
40977   rm -f conftest.er1
40978   cat conftest.err >&5
40979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40980   (exit $ac_status); } && {
40981          test -z "$ac_c_werror_flag" ||
40982          test ! -s conftest.err
40983        } && test -s conftest$ac_exeext &&
40984        $as_test_x conftest$ac_exeext; then
40985   ac_cv_lib_dl_dlopen=yes
40986 else
40987   echo "$as_me: failed program was:" >&5
40988 sed 's/^/| /' conftest.$ac_ext >&5
40989
40990         ac_cv_lib_dl_dlopen=no
40991 fi
40992
40993 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40994       conftest$ac_exeext conftest.$ac_ext
40995 LIBS=$ac_check_lib_save_LIBS
40996 fi
40997 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
40998 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
40999 if test $ac_cv_lib_dl_dlopen = yes; then
41000
41001                                 cat >>confdefs.h <<\_ACEOF
41002 #define HAVE_DLOPEN 1
41003 _ACEOF
41004
41005                                 HAVE_DL_FUNCS=1
41006                                 DL_LINK=" -ldl$DL_LINK"
41007
41008 else
41009
41010
41011 for ac_func in shl_load
41012 do
41013 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41014 { echo "$as_me:$LINENO: checking for $ac_func" >&5
41015 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
41016 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
41017   echo $ECHO_N "(cached) $ECHO_C" >&6
41018 else
41019   cat >conftest.$ac_ext <<_ACEOF
41020 /* confdefs.h.  */
41021 _ACEOF
41022 cat confdefs.h >>conftest.$ac_ext
41023 cat >>conftest.$ac_ext <<_ACEOF
41024 /* end confdefs.h.  */
41025 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41026    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41027 #define $ac_func innocuous_$ac_func
41028
41029 /* System header to define __stub macros and hopefully few prototypes,
41030     which can conflict with char $ac_func (); below.
41031     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41032     <limits.h> exists even on freestanding compilers.  */
41033
41034 #ifdef __STDC__
41035 # include <limits.h>
41036 #else
41037 # include <assert.h>
41038 #endif
41039
41040 #undef $ac_func
41041
41042 /* Override any GCC internal prototype to avoid an error.
41043    Use char because int might match the return type of a GCC
41044    builtin and then its argument prototype would still apply.  */
41045 #ifdef __cplusplus
41046 extern "C"
41047 #endif
41048 char $ac_func ();
41049 /* The GNU C library defines this for functions which it implements
41050     to always fail with ENOSYS.  Some functions are actually named
41051     something starting with __ and the normal name is an alias.  */
41052 #if defined __stub_$ac_func || defined __stub___$ac_func
41053 choke me
41054 #endif
41055
41056 int
41057 main ()
41058 {
41059 return $ac_func ();
41060   ;
41061   return 0;
41062 }
41063 _ACEOF
41064 rm -f conftest.$ac_objext conftest$ac_exeext
41065 if { (ac_try="$ac_link"
41066 case "(($ac_try" in
41067   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41068   *) ac_try_echo=$ac_try;;
41069 esac
41070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41071   (eval "$ac_link") 2>conftest.er1
41072   ac_status=$?
41073   grep -v '^ *+' conftest.er1 >conftest.err
41074   rm -f conftest.er1
41075   cat conftest.err >&5
41076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41077   (exit $ac_status); } && {
41078          test -z "$ac_c_werror_flag" ||
41079          test ! -s conftest.err
41080        } && test -s conftest$ac_exeext &&
41081        $as_test_x conftest$ac_exeext; then
41082   eval "$as_ac_var=yes"
41083 else
41084   echo "$as_me: failed program was:" >&5
41085 sed 's/^/| /' conftest.$ac_ext >&5
41086
41087         eval "$as_ac_var=no"
41088 fi
41089
41090 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41091       conftest$ac_exeext conftest.$ac_ext
41092 fi
41093 ac_res=`eval echo '${'$as_ac_var'}'`
41094                { echo "$as_me:$LINENO: result: $ac_res" >&5
41095 echo "${ECHO_T}$ac_res" >&6; }
41096 if test `eval echo '${'$as_ac_var'}'` = yes; then
41097   cat >>confdefs.h <<_ACEOF
41098 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41099 _ACEOF
41100
41101                                                 cat >>confdefs.h <<\_ACEOF
41102 #define HAVE_SHL_LOAD 1
41103 _ACEOF
41104
41105                                                 HAVE_SHL_FUNCS=1
41106
41107 else
41108
41109                                                 { echo "$as_me:$LINENO: checking for dld in -lshl_load" >&5
41110 echo $ECHO_N "checking for dld in -lshl_load... $ECHO_C" >&6; }
41111 if test "${ac_cv_lib_shl_load_dld+set}" = set; then
41112   echo $ECHO_N "(cached) $ECHO_C" >&6
41113 else
41114   ac_check_lib_save_LIBS=$LIBS
41115 LIBS="-lshl_load  $LIBS"
41116 cat >conftest.$ac_ext <<_ACEOF
41117 /* confdefs.h.  */
41118 _ACEOF
41119 cat confdefs.h >>conftest.$ac_ext
41120 cat >>conftest.$ac_ext <<_ACEOF
41121 /* end confdefs.h.  */
41122
41123 /* Override any GCC internal prototype to avoid an error.
41124    Use char because int might match the return type of a GCC
41125    builtin and then its argument prototype would still apply.  */
41126 #ifdef __cplusplus
41127 extern "C"
41128 #endif
41129 char dld ();
41130 int
41131 main ()
41132 {
41133 return dld ();
41134   ;
41135   return 0;
41136 }
41137 _ACEOF
41138 rm -f conftest.$ac_objext conftest$ac_exeext
41139 if { (ac_try="$ac_link"
41140 case "(($ac_try" in
41141   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41142   *) ac_try_echo=$ac_try;;
41143 esac
41144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41145   (eval "$ac_link") 2>conftest.er1
41146   ac_status=$?
41147   grep -v '^ *+' conftest.er1 >conftest.err
41148   rm -f conftest.er1
41149   cat conftest.err >&5
41150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41151   (exit $ac_status); } && {
41152          test -z "$ac_c_werror_flag" ||
41153          test ! -s conftest.err
41154        } && test -s conftest$ac_exeext &&
41155        $as_test_x conftest$ac_exeext; then
41156   ac_cv_lib_shl_load_dld=yes
41157 else
41158   echo "$as_me: failed program was:" >&5
41159 sed 's/^/| /' conftest.$ac_ext >&5
41160
41161         ac_cv_lib_shl_load_dld=no
41162 fi
41163
41164 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41165       conftest$ac_exeext conftest.$ac_ext
41166 LIBS=$ac_check_lib_save_LIBS
41167 fi
41168 { echo "$as_me:$LINENO: result: $ac_cv_lib_shl_load_dld" >&5
41169 echo "${ECHO_T}$ac_cv_lib_shl_load_dld" >&6; }
41170 if test $ac_cv_lib_shl_load_dld = yes; then
41171
41172                                                                 HAVE_SHL_FUNCS=1
41173                                                                 DL_LINK=" -ldld$DL_LINK"
41174
41175 fi
41176
41177
41178 fi
41179 done
41180
41181
41182 fi
41183
41184
41185 fi
41186 done
41187
41188
41189                 if test "$HAVE_DL_FUNCS" = 1; then
41190
41191 for ac_func in dlerror
41192 do
41193 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41194 { echo "$as_me:$LINENO: checking for $ac_func" >&5
41195 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
41196 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
41197   echo $ECHO_N "(cached) $ECHO_C" >&6
41198 else
41199   cat >conftest.$ac_ext <<_ACEOF
41200 /* confdefs.h.  */
41201 _ACEOF
41202 cat confdefs.h >>conftest.$ac_ext
41203 cat >>conftest.$ac_ext <<_ACEOF
41204 /* end confdefs.h.  */
41205 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41206    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41207 #define $ac_func innocuous_$ac_func
41208
41209 /* System header to define __stub macros and hopefully few prototypes,
41210     which can conflict with char $ac_func (); below.
41211     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41212     <limits.h> exists even on freestanding compilers.  */
41213
41214 #ifdef __STDC__
41215 # include <limits.h>
41216 #else
41217 # include <assert.h>
41218 #endif
41219
41220 #undef $ac_func
41221
41222 /* Override any GCC internal prototype to avoid an error.
41223    Use char because int might match the return type of a GCC
41224    builtin and then its argument prototype would still apply.  */
41225 #ifdef __cplusplus
41226 extern "C"
41227 #endif
41228 char $ac_func ();
41229 /* The GNU C library defines this for functions which it implements
41230     to always fail with ENOSYS.  Some functions are actually named
41231     something starting with __ and the normal name is an alias.  */
41232 #if defined __stub_$ac_func || defined __stub___$ac_func
41233 choke me
41234 #endif
41235
41236 int
41237 main ()
41238 {
41239 return $ac_func ();
41240   ;
41241   return 0;
41242 }
41243 _ACEOF
41244 rm -f conftest.$ac_objext conftest$ac_exeext
41245 if { (ac_try="$ac_link"
41246 case "(($ac_try" in
41247   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41248   *) ac_try_echo=$ac_try;;
41249 esac
41250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41251   (eval "$ac_link") 2>conftest.er1
41252   ac_status=$?
41253   grep -v '^ *+' conftest.er1 >conftest.err
41254   rm -f conftest.er1
41255   cat conftest.err >&5
41256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41257   (exit $ac_status); } && {
41258          test -z "$ac_c_werror_flag" ||
41259          test ! -s conftest.err
41260        } && test -s conftest$ac_exeext &&
41261        $as_test_x conftest$ac_exeext; then
41262   eval "$as_ac_var=yes"
41263 else
41264   echo "$as_me: failed program was:" >&5
41265 sed 's/^/| /' conftest.$ac_ext >&5
41266
41267         eval "$as_ac_var=no"
41268 fi
41269
41270 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41271       conftest$ac_exeext conftest.$ac_ext
41272 fi
41273 ac_res=`eval echo '${'$as_ac_var'}'`
41274                { echo "$as_me:$LINENO: result: $ac_res" >&5
41275 echo "${ECHO_T}$ac_res" >&6; }
41276 if test `eval echo '${'$as_ac_var'}'` = yes; then
41277   cat >>confdefs.h <<_ACEOF
41278 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41279 _ACEOF
41280  cat >>confdefs.h <<\_ACEOF
41281 #define HAVE_DLERROR 1
41282 _ACEOF
41283
41284 else
41285
41286                     { echo "$as_me:$LINENO: checking for dlerror in -ldl" >&5
41287 echo $ECHO_N "checking for dlerror in -ldl... $ECHO_C" >&6; }
41288 if test "${ac_cv_lib_dl_dlerror+set}" = set; then
41289   echo $ECHO_N "(cached) $ECHO_C" >&6
41290 else
41291   ac_check_lib_save_LIBS=$LIBS
41292 LIBS="-ldl  $LIBS"
41293 cat >conftest.$ac_ext <<_ACEOF
41294 /* confdefs.h.  */
41295 _ACEOF
41296 cat confdefs.h >>conftest.$ac_ext
41297 cat >>conftest.$ac_ext <<_ACEOF
41298 /* end confdefs.h.  */
41299
41300 /* Override any GCC internal prototype to avoid an error.
41301    Use char because int might match the return type of a GCC
41302    builtin and then its argument prototype would still apply.  */
41303 #ifdef __cplusplus
41304 extern "C"
41305 #endif
41306 char dlerror ();
41307 int
41308 main ()
41309 {
41310 return dlerror ();
41311   ;
41312   return 0;
41313 }
41314 _ACEOF
41315 rm -f conftest.$ac_objext conftest$ac_exeext
41316 if { (ac_try="$ac_link"
41317 case "(($ac_try" in
41318   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41319   *) ac_try_echo=$ac_try;;
41320 esac
41321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41322   (eval "$ac_link") 2>conftest.er1
41323   ac_status=$?
41324   grep -v '^ *+' conftest.er1 >conftest.err
41325   rm -f conftest.er1
41326   cat conftest.err >&5
41327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41328   (exit $ac_status); } && {
41329          test -z "$ac_c_werror_flag" ||
41330          test ! -s conftest.err
41331        } && test -s conftest$ac_exeext &&
41332        $as_test_x conftest$ac_exeext; then
41333   ac_cv_lib_dl_dlerror=yes
41334 else
41335   echo "$as_me: failed program was:" >&5
41336 sed 's/^/| /' conftest.$ac_ext >&5
41337
41338         ac_cv_lib_dl_dlerror=no
41339 fi
41340
41341 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41342       conftest$ac_exeext conftest.$ac_ext
41343 LIBS=$ac_check_lib_save_LIBS
41344 fi
41345 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlerror" >&5
41346 echo "${ECHO_T}$ac_cv_lib_dl_dlerror" >&6; }
41347 if test $ac_cv_lib_dl_dlerror = yes; then
41348   cat >>confdefs.h <<\_ACEOF
41349 #define HAVE_DLERROR 1
41350 _ACEOF
41351
41352 fi
41353
41354
41355
41356 fi
41357 done
41358
41359         fi
41360         fi
41361
41362         if test "$HAVE_DL_FUNCS" = 0; then
41363             if test "$HAVE_SHL_FUNCS" = 0; then
41364               if test "$USE_UNIX" = 1 -o "$USE_DOS" = 1; then
41365                   { echo "$as_me:$LINENO: WARNING: Missing dynamic loading support, several features will be disabled" >&5
41366 echo "$as_me: WARNING: Missing dynamic loading support, several features will be disabled" >&2;}
41367                   wxUSE_DYNAMIC_LOADER=no
41368                   wxUSE_DYNLIB_CLASS=no
41369               else
41370                   { echo "$as_me:$LINENO: WARNING: Assuming wxLibrary class works on this platform" >&5
41371 echo "$as_me: WARNING: Assuming wxLibrary class works on this platform" >&2;}
41372               fi
41373             fi
41374         fi
41375     fi
41376 fi
41377
41378 if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then
41379     cat >>confdefs.h <<\_ACEOF
41380 #define wxUSE_DYNAMIC_LOADER 1
41381 _ACEOF
41382
41383 fi
41384 if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
41385     cat >>confdefs.h <<\_ACEOF
41386 #define wxUSE_DYNLIB_CLASS 1
41387 _ACEOF
41388
41389 fi
41390
41391
41392
41393 if test "$wxUSE_PLUGINS" = "yes" ; then
41394     if test "$wxUSE_SHARED" = "no" ; then
41395         { echo "$as_me:$LINENO: WARNING: plugins supported only in shared build, disabling" >&5
41396 echo "$as_me: WARNING: plugins supported only in shared build, disabling" >&2;}
41397         wxUSE_PLUGINS=no
41398     fi
41399     if test "$wxUSE_MONOLITHIC" = "yes" ; then
41400         { echo "$as_me:$LINENO: WARNING: plugins not supported monolithic build, disabling" >&5
41401 echo "$as_me: WARNING: plugins not supported monolithic build, disabling" >&2;}
41402         wxUSE_PLUGINS=no
41403     fi
41404     if test "$wxUSE_DYNLIB_CLASS" = "no" ; then
41405         { echo "$as_me:$LINENO: WARNING: plugins require wxDynamicLibrary, disabling" >&5
41406 echo "$as_me: WARNING: plugins require wxDynamicLibrary, disabling" >&2;}
41407         wxUSE_PLUGINS=no
41408     fi
41409     if test "$wxUSE_PLUGINS" = "yes" ; then
41410         cat >>confdefs.h <<\_ACEOF
41411 #define wxUSE_PLUGINS 1
41412 _ACEOF
41413
41414     fi
41415 fi
41416
41417
41418 if test "$wxUSE_STL" = "yes"; then
41419   cat >>confdefs.h <<\_ACEOF
41420 #define wxUSE_STL 1
41421 _ACEOF
41422
41423 fi
41424
41425 if test "$wxUSE_EXTENDED_RTTI" = "yes"; then
41426   cat >>confdefs.h <<\_ACEOF
41427 #define wxUSE_EXTENDED_RTTI 1
41428 _ACEOF
41429
41430 fi
41431
41432 if test "$wxUSE_APPLE_IEEE" = "yes"; then
41433   cat >>confdefs.h <<\_ACEOF
41434 #define wxUSE_APPLE_IEEE 1
41435 _ACEOF
41436
41437 fi
41438
41439 if test "$wxUSE_TIMER" = "yes"; then
41440   cat >>confdefs.h <<\_ACEOF
41441 #define wxUSE_TIMER 1
41442 _ACEOF
41443
41444 fi
41445
41446 if test "$USE_UNIX" = 1 ; then
41447         if test "$wxUSE_MGL" != 1; then
41448                                 { echo "$as_me:$LINENO: checking for SNDCTL_DSP_SPEED in sys/soundcard.h" >&5
41449 echo $ECHO_N "checking for SNDCTL_DSP_SPEED in sys/soundcard.h... $ECHO_C" >&6; }
41450 if test "${ac_cv_header_sys_soundcard+set}" = set; then
41451   echo $ECHO_N "(cached) $ECHO_C" >&6
41452 else
41453
41454             cat >conftest.$ac_ext <<_ACEOF
41455 /* confdefs.h.  */
41456 _ACEOF
41457 cat confdefs.h >>conftest.$ac_ext
41458 cat >>conftest.$ac_ext <<_ACEOF
41459 /* end confdefs.h.  */
41460
41461                     #include <sys/ioctl.h>
41462                     #include <sys/soundcard.h>
41463
41464 int
41465 main ()
41466 {
41467
41468                     ioctl(0, SNDCTL_DSP_SPEED, 0);
41469
41470   ;
41471   return 0;
41472 }
41473 _ACEOF
41474 rm -f conftest.$ac_objext conftest$ac_exeext
41475 if { (ac_try="$ac_link"
41476 case "(($ac_try" in
41477   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41478   *) ac_try_echo=$ac_try;;
41479 esac
41480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41481   (eval "$ac_link") 2>conftest.er1
41482   ac_status=$?
41483   grep -v '^ *+' conftest.er1 >conftest.err
41484   rm -f conftest.er1
41485   cat conftest.err >&5
41486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41487   (exit $ac_status); } && {
41488          test -z "$ac_c_werror_flag" ||
41489          test ! -s conftest.err
41490        } && test -s conftest$ac_exeext &&
41491        $as_test_x conftest$ac_exeext; then
41492   ac_cv_header_sys_soundcard=yes
41493 else
41494   echo "$as_me: failed program was:" >&5
41495 sed 's/^/| /' conftest.$ac_ext >&5
41496
41497
41498                     saveLibs="$LIBS"
41499                     LIBS="$saveLibs -lossaudio"
41500                     cat >conftest.$ac_ext <<_ACEOF
41501 /* confdefs.h.  */
41502 _ACEOF
41503 cat confdefs.h >>conftest.$ac_ext
41504 cat >>conftest.$ac_ext <<_ACEOF
41505 /* end confdefs.h.  */
41506
41507                             #include <sys/ioctl.h>
41508                             #include <sys/soundcard.h>
41509
41510 int
41511 main ()
41512 {
41513
41514                             ioctl(0, SNDCTL_DSP_SPEED, 0);
41515
41516   ;
41517   return 0;
41518 }
41519 _ACEOF
41520 rm -f conftest.$ac_objext conftest$ac_exeext
41521 if { (ac_try="$ac_link"
41522 case "(($ac_try" in
41523   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41524   *) ac_try_echo=$ac_try;;
41525 esac
41526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41527   (eval "$ac_link") 2>conftest.er1
41528   ac_status=$?
41529   grep -v '^ *+' conftest.er1 >conftest.err
41530   rm -f conftest.er1
41531   cat conftest.err >&5
41532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41533   (exit $ac_status); } && {
41534          test -z "$ac_c_werror_flag" ||
41535          test ! -s conftest.err
41536        } && test -s conftest$ac_exeext &&
41537        $as_test_x conftest$ac_exeext; then
41538   ac_cv_header_sys_soundcard=yes
41539 else
41540   echo "$as_me: failed program was:" >&5
41541 sed 's/^/| /' conftest.$ac_ext >&5
41542
41543
41544                             LIBS="$saveLibs"
41545                             ac_cv_header_sys_soundcard=no
41546
41547
41548 fi
41549
41550 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41551       conftest$ac_exeext conftest.$ac_ext
41552
41553
41554 fi
41555
41556 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41557       conftest$ac_exeext conftest.$ac_ext
41558
41559 fi
41560 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard" >&5
41561 echo "${ECHO_T}$ac_cv_header_sys_soundcard" >&6; }
41562     fi
41563
41564     if test "$ac_cv_header_sys_soundcard" = "yes"; then
41565         cat >>confdefs.h <<\_ACEOF
41566 #define HAVE_SYS_SOUNDCARD_H 1
41567 _ACEOF
41568
41569     fi
41570 fi
41571
41572 WITH_PLUGIN_SDL=0
41573 if test "$wxUSE_SOUND" = "yes"; then
41574   if test "$USE_UNIX" = 1 ; then
41575     if test "$wxUSE_LIBSDL" != "no"; then
41576
41577 # Check whether --with-sdl-prefix was given.
41578 if test "${with_sdl_prefix+set}" = set; then
41579   withval=$with_sdl_prefix; sdl_prefix="$withval"
41580 else
41581   sdl_prefix=""
41582 fi
41583
41584
41585 # Check whether --with-sdl-exec-prefix was given.
41586 if test "${with_sdl_exec_prefix+set}" = set; then
41587   withval=$with_sdl_exec_prefix; sdl_exec_prefix="$withval"
41588 else
41589   sdl_exec_prefix=""
41590 fi
41591
41592 # Check whether --enable-sdltest was given.
41593 if test "${enable_sdltest+set}" = set; then
41594   enableval=$enable_sdltest;
41595 else
41596   enable_sdltest=yes
41597 fi
41598
41599
41600   if test x$sdl_exec_prefix != x ; then
41601     sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
41602     if test x${SDL_CONFIG+set} != xset ; then
41603       SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
41604     fi
41605   fi
41606   if test x$sdl_prefix != x ; then
41607     sdl_args="$sdl_args --prefix=$sdl_prefix"
41608     if test x${SDL_CONFIG+set} != xset ; then
41609       SDL_CONFIG=$sdl_prefix/bin/sdl-config
41610     fi
41611   fi
41612
41613   if test "x$prefix" != xNONE; then
41614     PATH="$prefix/bin:$prefix/usr/bin:$PATH"
41615   fi
41616   # Extract the first word of "sdl-config", so it can be a program name with args.
41617 set dummy sdl-config; ac_word=$2
41618 { echo "$as_me:$LINENO: checking for $ac_word" >&5
41619 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
41620 if test "${ac_cv_path_SDL_CONFIG+set}" = set; then
41621   echo $ECHO_N "(cached) $ECHO_C" >&6
41622 else
41623   case $SDL_CONFIG in
41624   [\\/]* | ?:[\\/]*)
41625   ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
41626   ;;
41627   *)
41628   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41629 for as_dir in $PATH
41630 do
41631   IFS=$as_save_IFS
41632   test -z "$as_dir" && as_dir=.
41633   for ac_exec_ext in '' $ac_executable_extensions; do
41634   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
41635     ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
41636     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
41637     break 2
41638   fi
41639 done
41640 done
41641 IFS=$as_save_IFS
41642
41643   test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
41644   ;;
41645 esac
41646 fi
41647 SDL_CONFIG=$ac_cv_path_SDL_CONFIG
41648 if test -n "$SDL_CONFIG"; then
41649   { echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5
41650 echo "${ECHO_T}$SDL_CONFIG" >&6; }
41651 else
41652   { echo "$as_me:$LINENO: result: no" >&5
41653 echo "${ECHO_T}no" >&6; }
41654 fi
41655
41656
41657   min_sdl_version=1.2.0
41658   { echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5
41659 echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6; }
41660   no_sdl=""
41661   if test "$SDL_CONFIG" = "no" ; then
41662     no_sdl=yes
41663   else
41664     SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
41665     SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
41666
41667     sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
41668            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
41669     sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
41670            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
41671     sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
41672            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
41673     if test "x$enable_sdltest" = "xyes" ; then
41674       ac_save_CFLAGS="$CFLAGS"
41675       ac_save_CXXFLAGS="$CXXFLAGS"
41676       ac_save_LIBS="$LIBS"
41677       CFLAGS="$CFLAGS $SDL_CFLAGS"
41678       CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
41679       LIBS="$LIBS $SDL_LIBS"
41680       rm -f conf.sdltest
41681       if test "$cross_compiling" = yes; then
41682   echo $ac_n "cross compiling; assumed OK... $ac_c"
41683 else
41684   cat >conftest.$ac_ext <<_ACEOF
41685 /* confdefs.h.  */
41686 _ACEOF
41687 cat confdefs.h >>conftest.$ac_ext
41688 cat >>conftest.$ac_ext <<_ACEOF
41689 /* end confdefs.h.  */
41690
41691 #include <stdio.h>
41692 #include <stdlib.h>
41693 #include <string.h>
41694 #include "SDL.h"
41695
41696 char*
41697 my_strdup (char *str)
41698 {
41699   char *new_str;
41700
41701   if (str)
41702     {
41703       new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
41704       strcpy (new_str, str);
41705     }
41706   else
41707     new_str = NULL;
41708
41709   return new_str;
41710 }
41711
41712 int main (int argc, char *argv[])
41713 {
41714   int major, minor, micro;
41715   char *tmp_version;
41716
41717   /* This hangs on some systems (?)
41718   system ("touch conf.sdltest");
41719   */
41720   { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
41721
41722   /* HP/UX 9 (%@#!) writes to sscanf strings */
41723   tmp_version = my_strdup("$min_sdl_version");
41724   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
41725      printf("%s, bad version string\n", "$min_sdl_version");
41726      exit(1);
41727    }
41728
41729    if (($sdl_major_version > major) ||
41730       (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
41731       (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
41732     {
41733       return 0;
41734     }
41735   else
41736     {
41737       printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
41738       printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
41739       printf("*** best to upgrade to the required version.\n");
41740       printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
41741       printf("*** to point to the correct copy of sdl-config, and remove the file\n");
41742       printf("*** config.cache before re-running configure\n");
41743       return 1;
41744     }
41745 }
41746
41747
41748 _ACEOF
41749 rm -f conftest$ac_exeext
41750 if { (ac_try="$ac_link"
41751 case "(($ac_try" in
41752   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41753   *) ac_try_echo=$ac_try;;
41754 esac
41755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41756   (eval "$ac_link") 2>&5
41757   ac_status=$?
41758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41759   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
41760   { (case "(($ac_try" in
41761   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41762   *) ac_try_echo=$ac_try;;
41763 esac
41764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41765   (eval "$ac_try") 2>&5
41766   ac_status=$?
41767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41768   (exit $ac_status); }; }; then
41769   :
41770 else
41771   echo "$as_me: program exited with status $ac_status" >&5
41772 echo "$as_me: failed program was:" >&5
41773 sed 's/^/| /' conftest.$ac_ext >&5
41774
41775 ( exit $ac_status )
41776 no_sdl=yes
41777 fi
41778 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
41779 fi
41780
41781
41782        CFLAGS="$ac_save_CFLAGS"
41783        CXXFLAGS="$ac_save_CXXFLAGS"
41784        LIBS="$ac_save_LIBS"
41785      fi
41786   fi
41787   if test "x$no_sdl" = x ; then
41788      { echo "$as_me:$LINENO: result: yes" >&5
41789 echo "${ECHO_T}yes" >&6; }
41790
41791                     EXTRALIBS_SDL="$SDL_LIBS"
41792                     CFLAGS="$SDL_CFLAGS $CFLAGS"
41793                     CXXFLAGS="$SDL_CFLAGS $CXXFLAGS"
41794                     cat >>confdefs.h <<\_ACEOF
41795 #define wxUSE_LIBSDL 1
41796 _ACEOF
41797
41798
41799   else
41800      { echo "$as_me:$LINENO: result: no" >&5
41801 echo "${ECHO_T}no" >&6; }
41802      if test "$SDL_CONFIG" = "no" ; then
41803        echo "*** The sdl-config script installed by SDL could not be found"
41804        echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
41805        echo "*** your path, or set the SDL_CONFIG environment variable to the"
41806        echo "*** full path to sdl-config."
41807      else
41808        if test -f conf.sdltest ; then
41809         :
41810        else
41811           echo "*** Could not run SDL test program, checking why..."
41812           CFLAGS="$CFLAGS $SDL_CFLAGS"
41813           CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
41814           LIBS="$LIBS $SDL_LIBS"
41815           cat >conftest.$ac_ext <<_ACEOF
41816 /* confdefs.h.  */
41817 _ACEOF
41818 cat confdefs.h >>conftest.$ac_ext
41819 cat >>conftest.$ac_ext <<_ACEOF
41820 /* end confdefs.h.  */
41821
41822 #include <stdio.h>
41823 #include "SDL.h"
41824
41825 int main(int argc, char *argv[])
41826 { return 0; }
41827 #undef  main
41828 #define main K_and_R_C_main
41829
41830 int
41831 main ()
41832 {
41833  return 0;
41834   ;
41835   return 0;
41836 }
41837 _ACEOF
41838 rm -f conftest.$ac_objext conftest$ac_exeext
41839 if { (ac_try="$ac_link"
41840 case "(($ac_try" in
41841   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41842   *) ac_try_echo=$ac_try;;
41843 esac
41844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41845   (eval "$ac_link") 2>conftest.er1
41846   ac_status=$?
41847   grep -v '^ *+' conftest.er1 >conftest.err
41848   rm -f conftest.er1
41849   cat conftest.err >&5
41850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41851   (exit $ac_status); } && {
41852          test -z "$ac_c_werror_flag" ||
41853          test ! -s conftest.err
41854        } && test -s conftest$ac_exeext &&
41855        $as_test_x conftest$ac_exeext; then
41856    echo "*** The test program compiled, but did not run. This usually means"
41857           echo "*** that the run-time linker is not finding SDL or finding the wrong"
41858           echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
41859           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
41860           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
41861           echo "*** is required on your system"
41862           echo "***"
41863           echo "*** If you have an old version installed, it is best to remove it, although"
41864           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
41865 else
41866   echo "$as_me: failed program was:" >&5
41867 sed 's/^/| /' conftest.$ac_ext >&5
41868
41869          echo "*** The test program failed to compile or link. See the file config.log for the"
41870           echo "*** exact error that occured. This usually means SDL was incorrectly installed"
41871           echo "*** or that you have moved SDL since it was installed. In the latter case, you"
41872           echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
41873 fi
41874
41875 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41876       conftest$ac_exeext conftest.$ac_ext
41877           CFLAGS="$ac_save_CFLAGS"
41878           CXXFLAGS="$ac_save_CXXFLAGS"
41879           LIBS="$ac_save_LIBS"
41880        fi
41881      fi
41882      SDL_CFLAGS=""
41883      SDL_LIBS=""
41884      wxUSE_LIBSDL="no"
41885   fi
41886
41887
41888   rm -f conf.sdltest
41889
41890       if test "$wxUSE_LIBSDL" = "yes" -a "$wxUSE_PLUGINS" = "yes" ; then
41891         WITH_PLUGIN_SDL=1
41892       fi
41893     fi
41894   else
41895         if test "$wxUSE_MGL" = 1; then
41896         { echo "$as_me:$LINENO: WARNING: wxSound not supported in MGL under DOS... disabled" >&5
41897 echo "$as_me: WARNING: wxSound not supported in MGL under DOS... disabled" >&2;}
41898         wxUSE_SOUND="no"
41899     fi
41900   fi
41901 fi
41902
41903 if test "$wxUSE_SOUND" = "yes"; then
41904   cat >>confdefs.h <<\_ACEOF
41905 #define wxUSE_SOUND 1
41906 _ACEOF
41907
41908   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sound"
41909 fi
41910
41911 if test "$WXGTK2" = 1; then
41912
41913
41914 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
41915         if test -n "$ac_tool_prefix"; then
41916   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
41917 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
41918 { echo "$as_me:$LINENO: checking for $ac_word" >&5
41919 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
41920 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
41921   echo $ECHO_N "(cached) $ECHO_C" >&6
41922 else
41923   case $PKG_CONFIG in
41924   [\\/]* | ?:[\\/]*)
41925   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
41926   ;;
41927   *)
41928   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41929 for as_dir in $PATH
41930 do
41931   IFS=$as_save_IFS
41932   test -z "$as_dir" && as_dir=.
41933   for ac_exec_ext in '' $ac_executable_extensions; do
41934   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
41935     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
41936     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
41937     break 2
41938   fi
41939 done
41940 done
41941 IFS=$as_save_IFS
41942
41943   ;;
41944 esac
41945 fi
41946 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
41947 if test -n "$PKG_CONFIG"; then
41948   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
41949 echo "${ECHO_T}$PKG_CONFIG" >&6; }
41950 else
41951   { echo "$as_me:$LINENO: result: no" >&5
41952 echo "${ECHO_T}no" >&6; }
41953 fi
41954
41955
41956 fi
41957 if test -z "$ac_cv_path_PKG_CONFIG"; then
41958   ac_pt_PKG_CONFIG=$PKG_CONFIG
41959   # Extract the first word of "pkg-config", so it can be a program name with args.
41960 set dummy pkg-config; ac_word=$2
41961 { echo "$as_me:$LINENO: checking for $ac_word" >&5
41962 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
41963 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
41964   echo $ECHO_N "(cached) $ECHO_C" >&6
41965 else
41966   case $ac_pt_PKG_CONFIG in
41967   [\\/]* | ?:[\\/]*)
41968   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
41969   ;;
41970   *)
41971   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41972 for as_dir in $PATH
41973 do
41974   IFS=$as_save_IFS
41975   test -z "$as_dir" && as_dir=.
41976   for ac_exec_ext in '' $ac_executable_extensions; do
41977   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
41978     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
41979     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
41980     break 2
41981   fi
41982 done
41983 done
41984 IFS=$as_save_IFS
41985
41986   ;;
41987 esac
41988 fi
41989 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
41990 if test -n "$ac_pt_PKG_CONFIG"; then
41991   { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
41992 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
41993 else
41994   { echo "$as_me:$LINENO: result: no" >&5
41995 echo "${ECHO_T}no" >&6; }
41996 fi
41997
41998   if test "x$ac_pt_PKG_CONFIG" = x; then
41999     PKG_CONFIG=""
42000   else
42001     case $cross_compiling:$ac_tool_warned in
42002 yes:)
42003 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
42004 whose name does not start with the host triplet.  If you think this
42005 configuration is useful to you, please write to autoconf@gnu.org." >&5
42006 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
42007 whose name does not start with the host triplet.  If you think this
42008 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
42009 ac_tool_warned=yes ;;
42010 esac
42011     PKG_CONFIG=$ac_pt_PKG_CONFIG
42012   fi
42013 else
42014   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
42015 fi
42016
42017 fi
42018 if test -n "$PKG_CONFIG"; then
42019         _pkg_min_version=0.9.0
42020         { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
42021 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
42022         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
42023                 { echo "$as_me:$LINENO: result: yes" >&5
42024 echo "${ECHO_T}yes" >&6; }
42025         else
42026                 { echo "$as_me:$LINENO: result: no" >&5
42027 echo "${ECHO_T}no" >&6; }
42028                 PKG_CONFIG=""
42029         fi
42030
42031 fi
42032
42033     if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
42034
42035         if test "$wxUSE_GTKPRINT" = "yes" ; then
42036
42037
42038 pkg_failed=no
42039 { echo "$as_me:$LINENO: checking for GTKPRINT" >&5
42040 echo $ECHO_N "checking for GTKPRINT... $ECHO_C" >&6; }
42041
42042 if test -n "$PKG_CONFIG"; then
42043     if test -n "$GTKPRINT_CFLAGS"; then
42044         pkg_cv_GTKPRINT_CFLAGS="$GTKPRINT_CFLAGS"
42045     else
42046         if test -n "$PKG_CONFIG" && \
42047     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk+-unix-print-2.0 >= 2.10\"") >&5
42048   ($PKG_CONFIG --exists --print-errors "gtk+-unix-print-2.0 >= 2.10") 2>&5
42049   ac_status=$?
42050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42051   (exit $ac_status); }; then
42052   pkg_cv_GTKPRINT_CFLAGS=`$PKG_CONFIG --cflags "gtk+-unix-print-2.0 >= 2.10" 2>/dev/null`
42053 else
42054   pkg_failed=yes
42055 fi
42056     fi
42057 else
42058         pkg_failed=untried
42059 fi
42060 if test -n "$PKG_CONFIG"; then
42061     if test -n "$GTKPRINT_LIBS"; then
42062         pkg_cv_GTKPRINT_LIBS="$GTKPRINT_LIBS"
42063     else
42064         if test -n "$PKG_CONFIG" && \
42065     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk+-unix-print-2.0 >= 2.10\"") >&5
42066   ($PKG_CONFIG --exists --print-errors "gtk+-unix-print-2.0 >= 2.10") 2>&5
42067   ac_status=$?
42068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42069   (exit $ac_status); }; then
42070   pkg_cv_GTKPRINT_LIBS=`$PKG_CONFIG --libs "gtk+-unix-print-2.0 >= 2.10" 2>/dev/null`
42071 else
42072   pkg_failed=yes
42073 fi
42074     fi
42075 else
42076         pkg_failed=untried
42077 fi
42078
42079
42080
42081 if test $pkg_failed = yes; then
42082
42083 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
42084         _pkg_short_errors_supported=yes
42085 else
42086         _pkg_short_errors_supported=no
42087 fi
42088         if test $_pkg_short_errors_supported = yes; then
42089                 GTKPRINT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gtk+-unix-print-2.0 >= 2.10"`
42090         else
42091                 GTKPRINT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+-unix-print-2.0 >= 2.10"`
42092         fi
42093         # Put the nasty error message in config.log where it belongs
42094         echo "$GTKPRINT_PKG_ERRORS" >&5
42095
42096
42097                         { echo "$as_me:$LINENO: WARNING: GTK printing support not found (GTK+ >= 2.10), library will use GNOME printing support or standard PostScript printing" >&5
42098 echo "$as_me: WARNING: GTK printing support not found (GTK+ >= 2.10), library will use GNOME printing support or standard PostScript printing" >&2;}
42099                         wxUSE_GTKPRINT="no"
42100
42101
42102 elif test $pkg_failed = untried; then
42103
42104                         { echo "$as_me:$LINENO: WARNING: GTK printing support not found (GTK+ >= 2.10), library will use GNOME printing support or standard PostScript printing" >&5
42105 echo "$as_me: WARNING: GTK printing support not found (GTK+ >= 2.10), library will use GNOME printing support or standard PostScript printing" >&2;}
42106                         wxUSE_GTKPRINT="no"
42107
42108
42109 else
42110         GTKPRINT_CFLAGS=$pkg_cv_GTKPRINT_CFLAGS
42111         GTKPRINT_LIBS=$pkg_cv_GTKPRINT_LIBS
42112         { echo "$as_me:$LINENO: result: yes" >&5
42113 echo "${ECHO_T}yes" >&6; }
42114
42115                         CFLAGS="$GTKPRINT_CFLAGS $CFLAGS"
42116                         CXXFLAGS="$GTKPRINT_CFLAGS $CXXFLAGS"
42117                         cat >>confdefs.h <<\_ACEOF
42118 #define wxUSE_GTKPRINT 1
42119 _ACEOF
42120
42121
42122 fi
42123         fi
42124
42125         if test "$wxUSE_LIBGNOMEPRINT" = "yes" ; then
42126
42127
42128 pkg_failed=no
42129 { echo "$as_me:$LINENO: checking for LIBGNOMEPRINTUI" >&5
42130 echo $ECHO_N "checking for LIBGNOMEPRINTUI... $ECHO_C" >&6; }
42131
42132 if test -n "$PKG_CONFIG"; then
42133     if test -n "$LIBGNOMEPRINTUI_CFLAGS"; then
42134         pkg_cv_LIBGNOMEPRINTUI_CFLAGS="$LIBGNOMEPRINTUI_CFLAGS"
42135     else
42136         if test -n "$PKG_CONFIG" && \
42137     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgnomeprintui-2.2 >= 2.8\"") >&5
42138   ($PKG_CONFIG --exists --print-errors "libgnomeprintui-2.2 >= 2.8") 2>&5
42139   ac_status=$?
42140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42141   (exit $ac_status); }; then
42142   pkg_cv_LIBGNOMEPRINTUI_CFLAGS=`$PKG_CONFIG --cflags "libgnomeprintui-2.2 >= 2.8" 2>/dev/null`
42143 else
42144   pkg_failed=yes
42145 fi
42146     fi
42147 else
42148         pkg_failed=untried
42149 fi
42150 if test -n "$PKG_CONFIG"; then
42151     if test -n "$LIBGNOMEPRINTUI_LIBS"; then
42152         pkg_cv_LIBGNOMEPRINTUI_LIBS="$LIBGNOMEPRINTUI_LIBS"
42153     else
42154         if test -n "$PKG_CONFIG" && \
42155     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgnomeprintui-2.2 >= 2.8\"") >&5
42156   ($PKG_CONFIG --exists --print-errors "libgnomeprintui-2.2 >= 2.8") 2>&5
42157   ac_status=$?
42158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42159   (exit $ac_status); }; then
42160   pkg_cv_LIBGNOMEPRINTUI_LIBS=`$PKG_CONFIG --libs "libgnomeprintui-2.2 >= 2.8" 2>/dev/null`
42161 else
42162   pkg_failed=yes
42163 fi
42164     fi
42165 else
42166         pkg_failed=untried
42167 fi
42168
42169
42170
42171 if test $pkg_failed = yes; then
42172
42173 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
42174         _pkg_short_errors_supported=yes
42175 else
42176         _pkg_short_errors_supported=no
42177 fi
42178         if test $_pkg_short_errors_supported = yes; then
42179                 LIBGNOMEPRINTUI_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libgnomeprintui-2.2 >= 2.8"`
42180         else
42181                 LIBGNOMEPRINTUI_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libgnomeprintui-2.2 >= 2.8"`
42182         fi
42183         # Put the nasty error message in config.log where it belongs
42184         echo "$LIBGNOMEPRINTUI_PKG_ERRORS" >&5
42185
42186
42187                         { echo "$as_me:$LINENO: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&5
42188 echo "$as_me: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&2;}
42189                         wxUSE_LIBGNOMEPRINT="no"
42190
42191
42192 elif test $pkg_failed = untried; then
42193
42194                         { echo "$as_me:$LINENO: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&5
42195 echo "$as_me: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&2;}
42196                         wxUSE_LIBGNOMEPRINT="no"
42197
42198
42199 else
42200         LIBGNOMEPRINTUI_CFLAGS=$pkg_cv_LIBGNOMEPRINTUI_CFLAGS
42201         LIBGNOMEPRINTUI_LIBS=$pkg_cv_LIBGNOMEPRINTUI_LIBS
42202         { echo "$as_me:$LINENO: result: yes" >&5
42203 echo "${ECHO_T}yes" >&6; }
42204
42205                         CFLAGS="$LIBGNOMEPRINTUI_CFLAGS $CFLAGS"
42206                         CXXFLAGS="$LIBGNOMEPRINTUI_CFLAGS $CXXFLAGS"
42207                         cat >>confdefs.h <<\_ACEOF
42208 #define wxUSE_LIBGNOMEPRINT 1
42209 _ACEOF
42210
42211
42212 fi
42213         fi
42214     fi
42215
42216     if test "$wxUSE_MIMETYPE" = "yes" ; then
42217         if test "$wxUSE_LIBGNOMEVFS" = "yes" ; then
42218
42219
42220 pkg_failed=no
42221 { echo "$as_me:$LINENO: checking for GNOMEVFS" >&5
42222 echo $ECHO_N "checking for GNOMEVFS... $ECHO_C" >&6; }
42223
42224 if test -n "$PKG_CONFIG"; then
42225     if test -n "$GNOMEVFS_CFLAGS"; then
42226         pkg_cv_GNOMEVFS_CFLAGS="$GNOMEVFS_CFLAGS"
42227     else
42228         if test -n "$PKG_CONFIG" && \
42229     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gnome-vfs-2.0 >= 2.0\"") >&5
42230   ($PKG_CONFIG --exists --print-errors "gnome-vfs-2.0 >= 2.0") 2>&5
42231   ac_status=$?
42232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42233   (exit $ac_status); }; then
42234   pkg_cv_GNOMEVFS_CFLAGS=`$PKG_CONFIG --cflags "gnome-vfs-2.0 >= 2.0" 2>/dev/null`
42235 else
42236   pkg_failed=yes
42237 fi
42238     fi
42239 else
42240         pkg_failed=untried
42241 fi
42242 if test -n "$PKG_CONFIG"; then
42243     if test -n "$GNOMEVFS_LIBS"; then
42244         pkg_cv_GNOMEVFS_LIBS="$GNOMEVFS_LIBS"
42245     else
42246         if test -n "$PKG_CONFIG" && \
42247     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gnome-vfs-2.0 >= 2.0\"") >&5
42248   ($PKG_CONFIG --exists --print-errors "gnome-vfs-2.0 >= 2.0") 2>&5
42249   ac_status=$?
42250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42251   (exit $ac_status); }; then
42252   pkg_cv_GNOMEVFS_LIBS=`$PKG_CONFIG --libs "gnome-vfs-2.0 >= 2.0" 2>/dev/null`
42253 else
42254   pkg_failed=yes
42255 fi
42256     fi
42257 else
42258         pkg_failed=untried
42259 fi
42260
42261
42262
42263 if test $pkg_failed = yes; then
42264
42265 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
42266         _pkg_short_errors_supported=yes
42267 else
42268         _pkg_short_errors_supported=no
42269 fi
42270         if test $_pkg_short_errors_supported = yes; then
42271                 GNOMEVFS_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gnome-vfs-2.0 >= 2.0"`
42272         else
42273                 GNOMEVFS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gnome-vfs-2.0 >= 2.0"`
42274         fi
42275         # Put the nasty error message in config.log where it belongs
42276         echo "$GNOMEVFS_PKG_ERRORS" >&5
42277
42278
42279                         { echo "$as_me:$LINENO: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&5
42280 echo "$as_me: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&2;}
42281                         wxUSE_LIBGNOMEVFS="no"
42282
42283
42284 elif test $pkg_failed = untried; then
42285
42286                         { echo "$as_me:$LINENO: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&5
42287 echo "$as_me: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&2;}
42288                         wxUSE_LIBGNOMEVFS="no"
42289
42290
42291 else
42292         GNOMEVFS_CFLAGS=$pkg_cv_GNOMEVFS_CFLAGS
42293         GNOMEVFS_LIBS=$pkg_cv_GNOMEVFS_LIBS
42294         { echo "$as_me:$LINENO: result: yes" >&5
42295 echo "${ECHO_T}yes" >&6; }
42296
42297                         CFLAGS="$GNOMEVFS_CFLAGS $CFLAGS"
42298                         CXXFLAGS="$GNOMEVFS_CFLAGS $CXXFLAGS"
42299                         cat >>confdefs.h <<\_ACEOF
42300 #define wxUSE_LIBGNOMEVFS 1
42301 _ACEOF
42302
42303
42304 fi
42305         fi
42306     fi
42307
42308     if test "$wxUSE_LIBHILDON" = "yes" ; then
42309
42310 pkg_failed=no
42311 { echo "$as_me:$LINENO: checking for HILDON" >&5
42312 echo $ECHO_N "checking for HILDON... $ECHO_C" >&6; }
42313
42314 if test -n "$PKG_CONFIG"; then
42315     if test -n "$HILDON_CFLAGS"; then
42316         pkg_cv_HILDON_CFLAGS="$HILDON_CFLAGS"
42317     else
42318         if test -n "$PKG_CONFIG" && \
42319     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"hildon-lgpl >= 0.9\"") >&5
42320   ($PKG_CONFIG --exists --print-errors "hildon-lgpl >= 0.9") 2>&5
42321   ac_status=$?
42322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42323   (exit $ac_status); }; then
42324   pkg_cv_HILDON_CFLAGS=`$PKG_CONFIG --cflags "hildon-lgpl >= 0.9" 2>/dev/null`
42325 else
42326   pkg_failed=yes
42327 fi
42328     fi
42329 else
42330         pkg_failed=untried
42331 fi
42332 if test -n "$PKG_CONFIG"; then
42333     if test -n "$HILDON_LIBS"; then
42334         pkg_cv_HILDON_LIBS="$HILDON_LIBS"
42335     else
42336         if test -n "$PKG_CONFIG" && \
42337     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"hildon-lgpl >= 0.9\"") >&5
42338   ($PKG_CONFIG --exists --print-errors "hildon-lgpl >= 0.9") 2>&5
42339   ac_status=$?
42340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42341   (exit $ac_status); }; then
42342   pkg_cv_HILDON_LIBS=`$PKG_CONFIG --libs "hildon-lgpl >= 0.9" 2>/dev/null`
42343 else
42344   pkg_failed=yes
42345 fi
42346     fi
42347 else
42348         pkg_failed=untried
42349 fi
42350
42351
42352
42353 if test $pkg_failed = yes; then
42354
42355 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
42356         _pkg_short_errors_supported=yes
42357 else
42358         _pkg_short_errors_supported=no
42359 fi
42360         if test $_pkg_short_errors_supported = yes; then
42361                 HILDON_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "hildon-lgpl >= 0.9"`
42362         else
42363                 HILDON_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "hildon-lgpl >= 0.9"`
42364         fi
42365         # Put the nasty error message in config.log where it belongs
42366         echo "$HILDON_PKG_ERRORS" >&5
42367
42368
42369                 { echo "$as_me:$LINENO: WARNING: libhildon_lgpl not found" >&5
42370 echo "$as_me: WARNING: libhildon_lgpl not found" >&2;}
42371                         wxUSE_LIBHILDON="no"
42372
42373
42374 elif test $pkg_failed = untried; then
42375
42376                 { echo "$as_me:$LINENO: WARNING: libhildon_lgpl not found" >&5
42377 echo "$as_me: WARNING: libhildon_lgpl not found" >&2;}
42378                         wxUSE_LIBHILDON="no"
42379
42380
42381 else
42382         HILDON_CFLAGS=$pkg_cv_HILDON_CFLAGS
42383         HILDON_LIBS=$pkg_cv_HILDON_LIBS
42384         { echo "$as_me:$LINENO: result: yes" >&5
42385 echo "${ECHO_T}yes" >&6; }
42386
42387                 EXTRALIBS_HILDON="$HILDON_LIBS"
42388                 CFLAGS="$CFLAGS $HILDON_CFLAGS"
42389                 CXXFLAGS="$CXXFLAGS $HILDON_CFLAGS"
42390                 cat >>confdefs.h <<\_ACEOF
42391 #define wxUSE_LIBHILDON 1
42392 _ACEOF
42393
42394
42395 fi
42396     fi
42397 fi
42398
42399 if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
42400   cat >>confdefs.h <<\_ACEOF
42401 #define wxUSE_CMDLINE_PARSER 1
42402 _ACEOF
42403
42404 fi
42405
42406 if test "$wxUSE_STOPWATCH" = "yes"; then
42407   cat >>confdefs.h <<\_ACEOF
42408 #define wxUSE_STOPWATCH 1
42409 _ACEOF
42410
42411 fi
42412
42413 if test "$wxUSE_DATETIME" = "yes"; then
42414   cat >>confdefs.h <<\_ACEOF
42415 #define wxUSE_DATETIME 1
42416 _ACEOF
42417
42418 fi
42419
42420 if test "$wxUSE_FILE" = "yes"; then
42421   cat >>confdefs.h <<\_ACEOF
42422 #define wxUSE_FILE 1
42423 _ACEOF
42424
42425 fi
42426
42427 if test "$wxUSE_FFILE" = "yes"; then
42428   cat >>confdefs.h <<\_ACEOF
42429 #define wxUSE_FFILE 1
42430 _ACEOF
42431
42432 fi
42433
42434 if test "$wxUSE_ARCHIVE_STREAMS" = "yes"; then
42435   if test "$wxUSE_STREAMS" != yes; then
42436     { echo "$as_me:$LINENO: WARNING: wxArchive requires wxStreams... disabled" >&5
42437 echo "$as_me: WARNING: wxArchive requires wxStreams... disabled" >&2;}
42438     wxUSE_ARCHIVE_STREAMS=no
42439   else
42440     cat >>confdefs.h <<\_ACEOF
42441 #define wxUSE_ARCHIVE_STREAMS 1
42442 _ACEOF
42443
42444   fi
42445 fi
42446
42447 if test "$wxUSE_ZIPSTREAM" = "yes"; then
42448   if test "$wxUSE_ARCHIVE_STREAMS" != "yes"; then
42449     { echo "$as_me:$LINENO: WARNING: wxZip requires wxArchive... disabled" >&5
42450 echo "$as_me: WARNING: wxZip requires wxArchive... disabled" >&2;}
42451   elif test "$wxUSE_ZLIB" = "no"; then
42452     { echo "$as_me:$LINENO: WARNING: wxZip requires wxZlib... disabled" >&5
42453 echo "$as_me: WARNING: wxZip requires wxZlib... disabled" >&2;}
42454   else
42455     cat >>confdefs.h <<\_ACEOF
42456 #define wxUSE_ZIPSTREAM 1
42457 _ACEOF
42458
42459   fi
42460 fi
42461
42462 if test "$wxUSE_TARSTREAM" = "yes"; then
42463   if test "$wxUSE_ARCHIVE_STREAMS" != "yes"; then
42464     { echo "$as_me:$LINENO: WARNING: wxTar requires wxArchive... disabled" >&5
42465 echo "$as_me: WARNING: wxTar requires wxArchive... disabled" >&2;}
42466   else
42467     cat >>confdefs.h <<\_ACEOF
42468 #define wxUSE_TARSTREAM 1
42469 _ACEOF
42470
42471   fi
42472 fi
42473
42474 if test "$wxUSE_FILESYSTEM" = "yes"; then
42475   if test "$wxUSE_STREAMS" != yes -o \( "$wxUSE_FILE" != yes -a "$wxUSE_FFILE" != yes \); then
42476     { echo "$as_me:$LINENO: WARNING: wxFileSystem requires wxStreams and wxFile or wxFFile... disabled" >&5
42477 echo "$as_me: WARNING: wxFileSystem requires wxStreams and wxFile or wxFFile... disabled" >&2;}
42478     wxUSE_FILESYSTEM=no
42479   else
42480     cat >>confdefs.h <<\_ACEOF
42481 #define wxUSE_FILESYSTEM 1
42482 _ACEOF
42483
42484   fi
42485 fi
42486
42487 if test "$wxUSE_FS_ARCHIVE" = "yes"; then
42488   if test "$wxUSE_FILESYSTEM" != yes -o "$wxUSE_ARCHIVE_STREAMS" != yes; then
42489     { echo "$as_me:$LINENO: WARNING: wxArchiveFSHandler requires wxArchive and wxFileSystem... disabled" >&5
42490 echo "$as_me: WARNING: wxArchiveFSHandler requires wxArchive and wxFileSystem... disabled" >&2;}
42491   else
42492     cat >>confdefs.h <<\_ACEOF
42493 #define wxUSE_FS_ARCHIVE 1
42494 _ACEOF
42495
42496   fi
42497 fi
42498
42499 if test "$wxUSE_FS_ZIP" = "yes"; then
42500   if test "$wxUSE_FS_ARCHIVE" != yes; then
42501     { echo "$as_me:$LINENO: WARNING: wxZipFSHandler requires wxArchiveFSHandler... disabled" >&5
42502 echo "$as_me: WARNING: wxZipFSHandler requires wxArchiveFSHandler... disabled" >&2;}
42503   else
42504     cat >>confdefs.h <<\_ACEOF
42505 #define wxUSE_FS_ZIP 1
42506 _ACEOF
42507
42508   fi
42509 fi
42510
42511 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
42512   if test "$USE_UNIX" != 1; then
42513     { echo "$as_me:$LINENO: WARNING: Catching fatal exceptions not currently supported on this system, wxApp::OnFatalException will not be called" >&5
42514 echo "$as_me: WARNING: Catching fatal exceptions not currently supported on this system, wxApp::OnFatalException will not be called" >&2;}
42515     wxUSE_ON_FATAL_EXCEPTION=no
42516   else
42517     cat >>confdefs.h <<\_ACEOF
42518 #define wxUSE_ON_FATAL_EXCEPTION 1
42519 _ACEOF
42520
42521   fi
42522 fi
42523
42524 if test "$wxUSE_STACKWALKER" = "yes"; then
42525     cat >>confdefs.h <<\_ACEOF
42526 #define wxUSE_STACKWALKER 1
42527 _ACEOF
42528
42529 fi
42530
42531 if test "$wxUSE_DEBUGREPORT" = "yes"; then
42532     if test "$USE_UNIX" != 1 -a "$USE_WIN32" != 1; then
42533         { echo "$as_me:$LINENO: WARNING: Creating debug reports not currently supported on this system, disabled" >&5
42534 echo "$as_me: WARNING: Creating debug reports not currently supported on this system, disabled" >&2;}
42535         wxUSE_DEBUGREPORT=no
42536     else
42537         cat >>confdefs.h <<\_ACEOF
42538 #define wxUSE_DEBUGREPORT 1
42539 _ACEOF
42540
42541         if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
42542             SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS debugrpt"
42543         fi
42544     fi
42545 fi
42546
42547 if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
42548   cat >>confdefs.h <<\_ACEOF
42549 #define wxUSE_SNGLINST_CHECKER 1
42550 _ACEOF
42551
42552 fi
42553
42554 if test "$wxUSE_BUSYINFO" = "yes"; then
42555   cat >>confdefs.h <<\_ACEOF
42556 #define wxUSE_BUSYINFO 1
42557 _ACEOF
42558
42559 fi
42560
42561 if test "$wxUSE_STD_IOSTREAM" = "yes"; then
42562   cat >>confdefs.h <<\_ACEOF
42563 #define wxUSE_STD_IOSTREAM 1
42564 _ACEOF
42565
42566 fi
42567
42568 if test "$wxUSE_STD_STRING" = "yes"; then
42569   cat >>confdefs.h <<\_ACEOF
42570 #define wxUSE_STD_STRING 1
42571 _ACEOF
42572
42573 fi
42574
42575 if test "$wxUSE_STDPATHS" = "yes"; then
42576   cat >>confdefs.h <<\_ACEOF
42577 #define wxUSE_STDPATHS 1
42578 _ACEOF
42579
42580 fi
42581
42582 if test "$wxUSE_TEXTBUFFER" = "yes"; then
42583     cat >>confdefs.h <<\_ACEOF
42584 #define wxUSE_TEXTBUFFER 1
42585 _ACEOF
42586
42587 fi
42588
42589 if test "$wxUSE_TEXTFILE" = "yes"; then
42590   if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then
42591     { echo "$as_me:$LINENO: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&5
42592 echo "$as_me: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&2;}
42593   else
42594     cat >>confdefs.h <<\_ACEOF
42595 #define wxUSE_TEXTFILE 1
42596 _ACEOF
42597
42598   fi
42599 fi
42600
42601 if test "$wxUSE_CONFIG" = "yes" ; then
42602   if test "$wxUSE_TEXTFILE" != "yes"; then
42603     { echo "$as_me:$LINENO: WARNING: wxConfig requires wxTextFile... disabled" >&5
42604 echo "$as_me: WARNING: wxConfig requires wxTextFile... disabled" >&2;}
42605   else
42606     cat >>confdefs.h <<\_ACEOF
42607 #define wxUSE_CONFIG 1
42608 _ACEOF
42609
42610     cat >>confdefs.h <<\_ACEOF
42611 #define wxUSE_CONFIG_NATIVE 1
42612 _ACEOF
42613
42614     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
42615   fi
42616 fi
42617
42618 if test "$wxUSE_INTL" = "yes" ; then
42619   if test "$wxUSE_FILE" != "yes"; then
42620     { echo "$as_me:$LINENO: WARNING: I18n code requires wxFile... disabled" >&5
42621 echo "$as_me: WARNING: I18n code requires wxFile... disabled" >&2;}
42622   else
42623     cat >>confdefs.h <<\_ACEOF
42624 #define wxUSE_INTL 1
42625 _ACEOF
42626
42627     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
42628     GUIDIST="$GUIDIST INTL_DIST"
42629   fi
42630 fi
42631
42632 if test "$wxUSE_LOG" = "yes"; then
42633   cat >>confdefs.h <<\_ACEOF
42634 #define wxUSE_LOG 1
42635 _ACEOF
42636
42637
42638     if test "$wxUSE_LOGGUI" = "yes"; then
42639       cat >>confdefs.h <<\_ACEOF
42640 #define wxUSE_LOGGUI 1
42641 _ACEOF
42642
42643     fi
42644
42645     if test "$wxUSE_LOGWINDOW" = "yes"; then
42646       cat >>confdefs.h <<\_ACEOF
42647 #define wxUSE_LOGWINDOW 1
42648 _ACEOF
42649
42650     fi
42651
42652     if test "$wxUSE_LOGDIALOG" = "yes"; then
42653       cat >>confdefs.h <<\_ACEOF
42654 #define wxUSE_LOG_DIALOG 1
42655 _ACEOF
42656
42657     fi
42658
42659         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS keyboard"
42660 fi
42661
42662 if test "$wxUSE_LONGLONG" = "yes"; then
42663   cat >>confdefs.h <<\_ACEOF
42664 #define wxUSE_LONGLONG 1
42665 _ACEOF
42666
42667 fi
42668
42669 if test "$wxUSE_GEOMETRY" = "yes"; then
42670   cat >>confdefs.h <<\_ACEOF
42671 #define wxUSE_GEOMETRY 1
42672 _ACEOF
42673
42674 fi
42675
42676 if test "$wxUSE_BASE64" = "yes"; then
42677   cat >>confdefs.h <<\_ACEOF
42678 #define wxUSE_BASE64 1
42679 _ACEOF
42680
42681 fi
42682
42683 if test "$wxUSE_STREAMS" = "yes" ; then
42684   cat >>confdefs.h <<\_ACEOF
42685 #define wxUSE_STREAMS 1
42686 _ACEOF
42687
42688 fi
42689
42690 if test "$wxUSE_PRINTF_POS_PARAMS" = "yes"; then
42691   cat >>confdefs.h <<\_ACEOF
42692 #define wxUSE_PRINTF_POS_PARAMS 1
42693 _ACEOF
42694
42695 fi
42696
42697 if test "$wxUSE_OBJC_UNIQUIFYING" = "yes"; then
42698   cat >>confdefs.h <<\_ACEOF
42699 #define wxUSE_OBJC_UNIQUIFYING 1
42700 _ACEOF
42701
42702 fi
42703
42704
42705 if test "$wxUSE_CONSOLE_EVENTLOOP" = "yes"; then
42706     cat >>confdefs.h <<\_ACEOF
42707 #define wxUSE_CONSOLE_EVENTLOOP 1
42708 _ACEOF
42709
42710
42711     if test "$wxUSE_UNIX" = "yes"; then
42712         if test "$wxUSE_SELECT_DISPATCHER" = "yes"; then
42713             cat >>confdefs.h <<\_ACEOF
42714 #define wxUSE_SELECT_DISPATCHER 1
42715 _ACEOF
42716
42717         fi
42718
42719         if test "$wxUSE_EPOLL_DISPATCHER" = "yes"; then
42720
42721 for ac_header in sys/epoll.h
42722 do
42723 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
42724 { echo "$as_me:$LINENO: checking for $ac_header" >&5
42725 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
42726 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
42727   echo $ECHO_N "(cached) $ECHO_C" >&6
42728 else
42729   cat >conftest.$ac_ext <<_ACEOF
42730 /* confdefs.h.  */
42731 _ACEOF
42732 cat confdefs.h >>conftest.$ac_ext
42733 cat >>conftest.$ac_ext <<_ACEOF
42734 /* end confdefs.h.  */
42735 $ac_includes_default
42736
42737 #include <$ac_header>
42738 _ACEOF
42739 rm -f conftest.$ac_objext
42740 if { (ac_try="$ac_compile"
42741 case "(($ac_try" in
42742   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42743   *) ac_try_echo=$ac_try;;
42744 esac
42745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42746   (eval "$ac_compile") 2>conftest.er1
42747   ac_status=$?
42748   grep -v '^ *+' conftest.er1 >conftest.err
42749   rm -f conftest.er1
42750   cat conftest.err >&5
42751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42752   (exit $ac_status); } && {
42753          test -z "$ac_c_werror_flag" ||
42754          test ! -s conftest.err
42755        } && test -s conftest.$ac_objext; then
42756   eval "$as_ac_Header=yes"
42757 else
42758   echo "$as_me: failed program was:" >&5
42759 sed 's/^/| /' conftest.$ac_ext >&5
42760
42761         eval "$as_ac_Header=no"
42762 fi
42763
42764 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42765 fi
42766 ac_res=`eval echo '${'$as_ac_Header'}'`
42767                { echo "$as_me:$LINENO: result: $ac_res" >&5
42768 echo "${ECHO_T}$ac_res" >&6; }
42769 if test `eval echo '${'$as_ac_Header'}'` = yes; then
42770   cat >>confdefs.h <<_ACEOF
42771 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
42772 _ACEOF
42773
42774 fi
42775
42776 done
42777
42778             if test "$ac_cv_header_sys_epoll_h" = "yes"; then
42779                 cat >>confdefs.h <<\_ACEOF
42780 #define wxUSE_EPOLL_DISPATCHER 1
42781 _ACEOF
42782
42783             else
42784                 { echo "$as_me:$LINENO: WARNING: sys/epoll.h not available, wxEpollDispatcher disabled" >&5
42785 echo "$as_me: WARNING: sys/epoll.h not available, wxEpollDispatcher disabled" >&2;}
42786             fi
42787         fi
42788     fi
42789 fi
42790
42791
42792
42793
42794 for ac_func in gettimeofday ftime
42795 do
42796 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42797 { echo "$as_me:$LINENO: checking for $ac_func" >&5
42798 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
42799 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
42800   echo $ECHO_N "(cached) $ECHO_C" >&6
42801 else
42802   cat >conftest.$ac_ext <<_ACEOF
42803 /* confdefs.h.  */
42804 _ACEOF
42805 cat confdefs.h >>conftest.$ac_ext
42806 cat >>conftest.$ac_ext <<_ACEOF
42807 /* end confdefs.h.  */
42808 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42809    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
42810 #define $ac_func innocuous_$ac_func
42811
42812 /* System header to define __stub macros and hopefully few prototypes,
42813     which can conflict with char $ac_func (); below.
42814     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42815     <limits.h> exists even on freestanding compilers.  */
42816
42817 #ifdef __STDC__
42818 # include <limits.h>
42819 #else
42820 # include <assert.h>
42821 #endif
42822
42823 #undef $ac_func
42824
42825 /* Override any GCC internal prototype to avoid an error.
42826    Use char because int might match the return type of a GCC
42827    builtin and then its argument prototype would still apply.  */
42828 #ifdef __cplusplus
42829 extern "C"
42830 #endif
42831 char $ac_func ();
42832 /* The GNU C library defines this for functions which it implements
42833     to always fail with ENOSYS.  Some functions are actually named
42834     something starting with __ and the normal name is an alias.  */
42835 #if defined __stub_$ac_func || defined __stub___$ac_func
42836 choke me
42837 #endif
42838
42839 int
42840 main ()
42841 {
42842 return $ac_func ();
42843   ;
42844   return 0;
42845 }
42846 _ACEOF
42847 rm -f conftest.$ac_objext conftest$ac_exeext
42848 if { (ac_try="$ac_link"
42849 case "(($ac_try" in
42850   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42851   *) ac_try_echo=$ac_try;;
42852 esac
42853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42854   (eval "$ac_link") 2>conftest.er1
42855   ac_status=$?
42856   grep -v '^ *+' conftest.er1 >conftest.err
42857   rm -f conftest.er1
42858   cat conftest.err >&5
42859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42860   (exit $ac_status); } && {
42861          test -z "$ac_c_werror_flag" ||
42862          test ! -s conftest.err
42863        } && test -s conftest$ac_exeext &&
42864        $as_test_x conftest$ac_exeext; then
42865   eval "$as_ac_var=yes"
42866 else
42867   echo "$as_me: failed program was:" >&5
42868 sed 's/^/| /' conftest.$ac_ext >&5
42869
42870         eval "$as_ac_var=no"
42871 fi
42872
42873 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42874       conftest$ac_exeext conftest.$ac_ext
42875 fi
42876 ac_res=`eval echo '${'$as_ac_var'}'`
42877                { echo "$as_me:$LINENO: result: $ac_res" >&5
42878 echo "${ECHO_T}$ac_res" >&6; }
42879 if test `eval echo '${'$as_ac_var'}'` = yes; then
42880   cat >>confdefs.h <<_ACEOF
42881 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42882 _ACEOF
42883  break
42884 fi
42885 done
42886
42887
42888 if test "$ac_cv_func_gettimeofday" = "yes"; then
42889     { echo "$as_me:$LINENO: checking whether gettimeofday takes two arguments" >&5
42890 echo $ECHO_N "checking whether gettimeofday takes two arguments... $ECHO_C" >&6; }
42891 if test "${wx_cv_func_gettimeofday_has_2_args+set}" = set; then
42892   echo $ECHO_N "(cached) $ECHO_C" >&6
42893 else
42894
42895                 cat >conftest.$ac_ext <<_ACEOF
42896 /* confdefs.h.  */
42897 _ACEOF
42898 cat confdefs.h >>conftest.$ac_ext
42899 cat >>conftest.$ac_ext <<_ACEOF
42900 /* end confdefs.h.  */
42901
42902                 #include <sys/time.h>
42903                 #include <unistd.h>
42904
42905 int
42906 main ()
42907 {
42908
42909                 struct timeval tv;
42910                 gettimeofday(&tv, NULL);
42911
42912   ;
42913   return 0;
42914 }
42915 _ACEOF
42916 rm -f conftest.$ac_objext
42917 if { (ac_try="$ac_compile"
42918 case "(($ac_try" in
42919   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42920   *) ac_try_echo=$ac_try;;
42921 esac
42922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42923   (eval "$ac_compile") 2>conftest.er1
42924   ac_status=$?
42925   grep -v '^ *+' conftest.er1 >conftest.err
42926   rm -f conftest.er1
42927   cat conftest.err >&5
42928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42929   (exit $ac_status); } && {
42930          test -z "$ac_c_werror_flag" ||
42931          test ! -s conftest.err
42932        } && test -s conftest.$ac_objext; then
42933   wx_cv_func_gettimeofday_has_2_args=yes
42934 else
42935   echo "$as_me: failed program was:" >&5
42936 sed 's/^/| /' conftest.$ac_ext >&5
42937
42938         cat >conftest.$ac_ext <<_ACEOF
42939 /* confdefs.h.  */
42940 _ACEOF
42941 cat confdefs.h >>conftest.$ac_ext
42942 cat >>conftest.$ac_ext <<_ACEOF
42943 /* end confdefs.h.  */
42944
42945                     #include <sys/time.h>
42946                     #include <unistd.h>
42947
42948 int
42949 main ()
42950 {
42951
42952                     struct timeval tv;
42953                     gettimeofday(&tv);
42954
42955   ;
42956   return 0;
42957 }
42958 _ACEOF
42959 rm -f conftest.$ac_objext
42960 if { (ac_try="$ac_compile"
42961 case "(($ac_try" in
42962   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42963   *) ac_try_echo=$ac_try;;
42964 esac
42965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42966   (eval "$ac_compile") 2>conftest.er1
42967   ac_status=$?
42968   grep -v '^ *+' conftest.er1 >conftest.err
42969   rm -f conftest.er1
42970   cat conftest.err >&5
42971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42972   (exit $ac_status); } && {
42973          test -z "$ac_c_werror_flag" ||
42974          test ! -s conftest.err
42975        } && test -s conftest.$ac_objext; then
42976   wx_cv_func_gettimeofday_has_2_args=no
42977 else
42978   echo "$as_me: failed program was:" >&5
42979 sed 's/^/| /' conftest.$ac_ext >&5
42980
42981
42982                     { echo "$as_me:$LINENO: WARNING: failed to determine number of gettimeofday() arguments" >&5
42983 echo "$as_me: WARNING: failed to determine number of gettimeofday() arguments" >&2;}
42984                     wx_cv_func_gettimeofday_has_2_args=unknown
42985
42986
42987 fi
42988
42989 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42990
42991 fi
42992
42993 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42994
42995 fi
42996 { echo "$as_me:$LINENO: result: $wx_cv_func_gettimeofday_has_2_args" >&5
42997 echo "${ECHO_T}$wx_cv_func_gettimeofday_has_2_args" >&6; }
42998
42999     if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
43000         cat >>confdefs.h <<\_ACEOF
43001 #define WX_GETTIMEOFDAY_NO_TZ 1
43002 _ACEOF
43003
43004     fi
43005 fi
43006
43007 if test "$wxUSE_DATETIME" = "yes"; then
43008         { echo "$as_me:$LINENO: checking for strptime" >&5
43009 echo $ECHO_N "checking for strptime... $ECHO_C" >&6; }
43010 if test "${ac_cv_func_strptime+set}" = set; then
43011   echo $ECHO_N "(cached) $ECHO_C" >&6
43012 else
43013   cat >conftest.$ac_ext <<_ACEOF
43014 /* confdefs.h.  */
43015 _ACEOF
43016 cat confdefs.h >>conftest.$ac_ext
43017 cat >>conftest.$ac_ext <<_ACEOF
43018 /* end confdefs.h.  */
43019 /* Define strptime to an innocuous variant, in case <limits.h> declares strptime.
43020    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
43021 #define strptime innocuous_strptime
43022
43023 /* System header to define __stub macros and hopefully few prototypes,
43024     which can conflict with char strptime (); below.
43025     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43026     <limits.h> exists even on freestanding compilers.  */
43027
43028 #ifdef __STDC__
43029 # include <limits.h>
43030 #else
43031 # include <assert.h>
43032 #endif
43033
43034 #undef strptime
43035
43036 /* Override any GCC internal prototype to avoid an error.
43037    Use char because int might match the return type of a GCC
43038    builtin and then its argument prototype would still apply.  */
43039 #ifdef __cplusplus
43040 extern "C"
43041 #endif
43042 char strptime ();
43043 /* The GNU C library defines this for functions which it implements
43044     to always fail with ENOSYS.  Some functions are actually named
43045     something starting with __ and the normal name is an alias.  */
43046 #if defined __stub_strptime || defined __stub___strptime
43047 choke me
43048 #endif
43049
43050 int
43051 main ()
43052 {
43053 return strptime ();
43054   ;
43055   return 0;
43056 }
43057 _ACEOF
43058 rm -f conftest.$ac_objext conftest$ac_exeext
43059 if { (ac_try="$ac_link"
43060 case "(($ac_try" in
43061   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43062   *) ac_try_echo=$ac_try;;
43063 esac
43064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43065   (eval "$ac_link") 2>conftest.er1
43066   ac_status=$?
43067   grep -v '^ *+' conftest.er1 >conftest.err
43068   rm -f conftest.er1
43069   cat conftest.err >&5
43070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43071   (exit $ac_status); } && {
43072          test -z "$ac_c_werror_flag" ||
43073          test ! -s conftest.err
43074        } && test -s conftest$ac_exeext &&
43075        $as_test_x conftest$ac_exeext; then
43076   ac_cv_func_strptime=yes
43077 else
43078   echo "$as_me: failed program was:" >&5
43079 sed 's/^/| /' conftest.$ac_ext >&5
43080
43081         ac_cv_func_strptime=no
43082 fi
43083
43084 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43085       conftest$ac_exeext conftest.$ac_ext
43086 fi
43087 { echo "$as_me:$LINENO: result: $ac_cv_func_strptime" >&5
43088 echo "${ECHO_T}$ac_cv_func_strptime" >&6; }
43089
43090     if test "$ac_cv_func_strptime" = "yes"; then
43091         { echo "$as_me:$LINENO: checking for strptime declaration" >&5
43092 echo $ECHO_N "checking for strptime declaration... $ECHO_C" >&6; }
43093 if test "${wx_cv_func_strptime_decl+set}" = set; then
43094   echo $ECHO_N "(cached) $ECHO_C" >&6
43095 else
43096
43097                 ac_ext=cpp
43098 ac_cpp='$CXXCPP $CPPFLAGS'
43099 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43100 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43101 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
43102
43103                 cat >conftest.$ac_ext <<_ACEOF
43104 /* confdefs.h.  */
43105 _ACEOF
43106 cat confdefs.h >>conftest.$ac_ext
43107 cat >>conftest.$ac_ext <<_ACEOF
43108 /* end confdefs.h.  */
43109
43110                         #include <time.h>
43111
43112 int
43113 main ()
43114 {
43115
43116                         struct tm t;
43117                         strptime("foo", "bar", &t);
43118
43119   ;
43120   return 0;
43121 }
43122 _ACEOF
43123 rm -f conftest.$ac_objext
43124 if { (ac_try="$ac_compile"
43125 case "(($ac_try" in
43126   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43127   *) ac_try_echo=$ac_try;;
43128 esac
43129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43130   (eval "$ac_compile") 2>conftest.er1
43131   ac_status=$?
43132   grep -v '^ *+' conftest.er1 >conftest.err
43133   rm -f conftest.er1
43134   cat conftest.err >&5
43135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43136   (exit $ac_status); } && {
43137          test -z "$ac_cxx_werror_flag" ||
43138          test ! -s conftest.err
43139        } && test -s conftest.$ac_objext; then
43140   wx_cv_func_strptime_decl=yes
43141 else
43142   echo "$as_me: failed program was:" >&5
43143 sed 's/^/| /' conftest.$ac_ext >&5
43144
43145         wx_cv_func_strptime_decl=no
43146
43147 fi
43148
43149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43150                 ac_ext=c
43151 ac_cpp='$CPP $CPPFLAGS'
43152 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43153 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43154 ac_compiler_gnu=$ac_cv_c_compiler_gnu
43155
43156
43157
43158 fi
43159 { echo "$as_me:$LINENO: result: $wx_cv_func_strptime_decl" >&5
43160 echo "${ECHO_T}$wx_cv_func_strptime_decl" >&6; }
43161     fi
43162     if test "$wx_cv_func_strptime_decl" = "yes"; then
43163         cat >>confdefs.h <<\_ACEOF
43164 #define HAVE_STRPTIME_DECL 1
43165 _ACEOF
43166
43167     else
43168         wx_strptime_decl="extern char *strptime(const char *, const char *, struct tm *);"
43169     fi
43170     if test "$ac_cv_func_strptime" = "yes"; then
43171                                         { echo "$as_me:$LINENO: checking whether strptime() fails on invalid strings" >&5
43172 echo $ECHO_N "checking whether strptime() fails on invalid strings... $ECHO_C" >&6; }
43173 if test "${wx_cv_func_strptime_ok+set}" = set; then
43174   echo $ECHO_N "(cached) $ECHO_C" >&6
43175 else
43176   if test "$cross_compiling" = yes; then
43177                   wx_cv_func_strptime_ok=no
43178
43179 else
43180   cat >conftest.$ac_ext <<_ACEOF
43181
43182                     #include <stdlib.h>
43183                     #include <time.h>
43184                     #include "confdefs.h"
43185
43186                     $wx_strptime_decl
43187
43188                     int main()
43189                     {
43190                         struct tm t;
43191                         return !!strptime("", "%x", &t);
43192                     }
43193
43194 _ACEOF
43195 rm -f conftest$ac_exeext
43196 if { (ac_try="$ac_link"
43197 case "(($ac_try" in
43198   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43199   *) ac_try_echo=$ac_try;;
43200 esac
43201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43202   (eval "$ac_link") 2>&5
43203   ac_status=$?
43204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43205   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
43206   { (case "(($ac_try" in
43207   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43208   *) ac_try_echo=$ac_try;;
43209 esac
43210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43211   (eval "$ac_try") 2>&5
43212   ac_status=$?
43213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43214   (exit $ac_status); }; }; then
43215   wx_cv_func_strptime_ok=yes
43216 else
43217   echo "$as_me: program exited with status $ac_status" >&5
43218 echo "$as_me: failed program was:" >&5
43219 sed 's/^/| /' conftest.$ac_ext >&5
43220
43221 ( exit $ac_status )
43222 wx_cv_func_strptime_ok=no
43223 fi
43224 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
43225 fi
43226
43227
43228
43229 fi
43230 { echo "$as_me:$LINENO: result: $wx_cv_func_strptime_ok" >&5
43231 echo "${ECHO_T}$wx_cv_func_strptime_ok" >&6; }
43232
43233         if test "$wx_cv_func_strptime_ok" = "yes"; then
43234             cat >>confdefs.h <<\_ACEOF
43235 #define HAVE_STRPTIME 1
43236 _ACEOF
43237
43238         fi
43239     fi
43240
43241             { echo "$as_me:$LINENO: checking for timezone variable in <time.h>" >&5
43242 echo $ECHO_N "checking for timezone variable in <time.h>... $ECHO_C" >&6; }
43243 if test "${wx_cv_var_timezone+set}" = set; then
43244   echo $ECHO_N "(cached) $ECHO_C" >&6
43245 else
43246
43247                         ac_ext=cpp
43248 ac_cpp='$CXXCPP $CPPFLAGS'
43249 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43250 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43251 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
43252
43253                         cat >conftest.$ac_ext <<_ACEOF
43254 /* confdefs.h.  */
43255 _ACEOF
43256 cat confdefs.h >>conftest.$ac_ext
43257 cat >>conftest.$ac_ext <<_ACEOF
43258 /* end confdefs.h.  */
43259
43260                                 #include <time.h>
43261
43262 int
43263 main ()
43264 {
43265
43266                                 int tz;
43267                                 tz = timezone;
43268
43269   ;
43270   return 0;
43271 }
43272 _ACEOF
43273 rm -f conftest.$ac_objext
43274 if { (ac_try="$ac_compile"
43275 case "(($ac_try" in
43276   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43277   *) ac_try_echo=$ac_try;;
43278 esac
43279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43280   (eval "$ac_compile") 2>conftest.er1
43281   ac_status=$?
43282   grep -v '^ *+' conftest.er1 >conftest.err
43283   rm -f conftest.er1
43284   cat conftest.err >&5
43285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43286   (exit $ac_status); } && {
43287          test -z "$ac_cxx_werror_flag" ||
43288          test ! -s conftest.err
43289        } && test -s conftest.$ac_objext; then
43290
43291                                 wx_cv_var_timezone=timezone
43292
43293 else
43294   echo "$as_me: failed program was:" >&5
43295 sed 's/^/| /' conftest.$ac_ext >&5
43296
43297
43298                                 cat >conftest.$ac_ext <<_ACEOF
43299 /* confdefs.h.  */
43300 _ACEOF
43301 cat confdefs.h >>conftest.$ac_ext
43302 cat >>conftest.$ac_ext <<_ACEOF
43303 /* end confdefs.h.  */
43304
43305                                         #include <time.h>
43306
43307 int
43308 main ()
43309 {
43310
43311                                         int tz;
43312                                         tz = _timezone;
43313
43314   ;
43315   return 0;
43316 }
43317 _ACEOF
43318 rm -f conftest.$ac_objext
43319 if { (ac_try="$ac_compile"
43320 case "(($ac_try" in
43321   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43322   *) ac_try_echo=$ac_try;;
43323 esac
43324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43325   (eval "$ac_compile") 2>conftest.er1
43326   ac_status=$?
43327   grep -v '^ *+' conftest.er1 >conftest.err
43328   rm -f conftest.er1
43329   cat conftest.err >&5
43330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43331   (exit $ac_status); } && {
43332          test -z "$ac_cxx_werror_flag" ||
43333          test ! -s conftest.err
43334        } && test -s conftest.$ac_objext; then
43335
43336                                         wx_cv_var_timezone=_timezone
43337
43338 else
43339   echo "$as_me: failed program was:" >&5
43340 sed 's/^/| /' conftest.$ac_ext >&5
43341
43342
43343                                         cat >conftest.$ac_ext <<_ACEOF
43344 /* confdefs.h.  */
43345 _ACEOF
43346 cat confdefs.h >>conftest.$ac_ext
43347 cat >>conftest.$ac_ext <<_ACEOF
43348 /* end confdefs.h.  */
43349
43350                                                 #include <time.h>
43351
43352 int
43353 main ()
43354 {
43355
43356                                                 int tz;
43357                                                 tz = __timezone;
43358
43359   ;
43360   return 0;
43361 }
43362 _ACEOF
43363 rm -f conftest.$ac_objext
43364 if { (ac_try="$ac_compile"
43365 case "(($ac_try" in
43366   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43367   *) ac_try_echo=$ac_try;;
43368 esac
43369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43370   (eval "$ac_compile") 2>conftest.er1
43371   ac_status=$?
43372   grep -v '^ *+' conftest.er1 >conftest.err
43373   rm -f conftest.er1
43374   cat conftest.err >&5
43375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43376   (exit $ac_status); } && {
43377          test -z "$ac_cxx_werror_flag" ||
43378          test ! -s conftest.err
43379        } && test -s conftest.$ac_objext; then
43380
43381                                                 wx_cv_var_timezone=__timezone
43382
43383 else
43384   echo "$as_me: failed program was:" >&5
43385 sed 's/^/| /' conftest.$ac_ext >&5
43386
43387
43388                                                 if test "$USE_DOS" = 0 ; then
43389                                                     { echo "$as_me:$LINENO: WARNING: no timezone variable" >&5
43390 echo "$as_me: WARNING: no timezone variable" >&2;}
43391                                                 fi
43392
43393
43394 fi
43395
43396 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43397
43398
43399 fi
43400
43401 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43402
43403
43404 fi
43405
43406 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43407                         ac_ext=c
43408 ac_cpp='$CPP $CPPFLAGS'
43409 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43410 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43411 ac_compiler_gnu=$ac_cv_c_compiler_gnu
43412
43413
43414
43415 fi
43416 { echo "$as_me:$LINENO: result: $wx_cv_var_timezone" >&5
43417 echo "${ECHO_T}$wx_cv_var_timezone" >&6; }
43418
43419         if test "x$wx_cv_var_timezone" != x ; then
43420         cat >>confdefs.h <<_ACEOF
43421 #define WX_TIMEZONE $wx_cv_var_timezone
43422 _ACEOF
43423
43424     fi
43425
43426
43427 for ac_func in localtime
43428 do
43429 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43430 { echo "$as_me:$LINENO: checking for $ac_func" >&5
43431 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
43432 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
43433   echo $ECHO_N "(cached) $ECHO_C" >&6
43434 else
43435   cat >conftest.$ac_ext <<_ACEOF
43436 /* confdefs.h.  */
43437 _ACEOF
43438 cat confdefs.h >>conftest.$ac_ext
43439 cat >>conftest.$ac_ext <<_ACEOF
43440 /* end confdefs.h.  */
43441 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43442    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
43443 #define $ac_func innocuous_$ac_func
43444
43445 /* System header to define __stub macros and hopefully few prototypes,
43446     which can conflict with char $ac_func (); below.
43447     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43448     <limits.h> exists even on freestanding compilers.  */
43449
43450 #ifdef __STDC__
43451 # include <limits.h>
43452 #else
43453 # include <assert.h>
43454 #endif
43455
43456 #undef $ac_func
43457
43458 /* Override any GCC internal prototype to avoid an error.
43459    Use char because int might match the return type of a GCC
43460    builtin and then its argument prototype would still apply.  */
43461 #ifdef __cplusplus
43462 extern "C"
43463 #endif
43464 char $ac_func ();
43465 /* The GNU C library defines this for functions which it implements
43466     to always fail with ENOSYS.  Some functions are actually named
43467     something starting with __ and the normal name is an alias.  */
43468 #if defined __stub_$ac_func || defined __stub___$ac_func
43469 choke me
43470 #endif
43471
43472 int
43473 main ()
43474 {
43475 return $ac_func ();
43476   ;
43477   return 0;
43478 }
43479 _ACEOF
43480 rm -f conftest.$ac_objext conftest$ac_exeext
43481 if { (ac_try="$ac_link"
43482 case "(($ac_try" in
43483   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43484   *) ac_try_echo=$ac_try;;
43485 esac
43486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43487   (eval "$ac_link") 2>conftest.er1
43488   ac_status=$?
43489   grep -v '^ *+' conftest.er1 >conftest.err
43490   rm -f conftest.er1
43491   cat conftest.err >&5
43492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43493   (exit $ac_status); } && {
43494          test -z "$ac_c_werror_flag" ||
43495          test ! -s conftest.err
43496        } && test -s conftest$ac_exeext &&
43497        $as_test_x conftest$ac_exeext; then
43498   eval "$as_ac_var=yes"
43499 else
43500   echo "$as_me: failed program was:" >&5
43501 sed 's/^/| /' conftest.$ac_ext >&5
43502
43503         eval "$as_ac_var=no"
43504 fi
43505
43506 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43507       conftest$ac_exeext conftest.$ac_ext
43508 fi
43509 ac_res=`eval echo '${'$as_ac_var'}'`
43510                { echo "$as_me:$LINENO: result: $ac_res" >&5
43511 echo "${ECHO_T}$ac_res" >&6; }
43512 if test `eval echo '${'$as_ac_var'}'` = yes; then
43513   cat >>confdefs.h <<_ACEOF
43514 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43515 _ACEOF
43516
43517 fi
43518 done
43519
43520
43521     if test "$ac_cv_func_localtime" = "yes"; then
43522         { echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
43523 echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6; }
43524 if test "${wx_cv_struct_tm_has_gmtoff+set}" = set; then
43525   echo $ECHO_N "(cached) $ECHO_C" >&6
43526 else
43527
43528             cat >conftest.$ac_ext <<_ACEOF
43529 /* confdefs.h.  */
43530 _ACEOF
43531 cat confdefs.h >>conftest.$ac_ext
43532 cat >>conftest.$ac_ext <<_ACEOF
43533 /* end confdefs.h.  */
43534
43535                     #include <time.h>
43536
43537 int
43538 main ()
43539 {
43540
43541                     struct tm tm;
43542                     tm.tm_gmtoff++;
43543
43544   ;
43545   return 0;
43546 }
43547 _ACEOF
43548 rm -f conftest.$ac_objext
43549 if { (ac_try="$ac_compile"
43550 case "(($ac_try" in
43551   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43552   *) ac_try_echo=$ac_try;;
43553 esac
43554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43555   (eval "$ac_compile") 2>conftest.er1
43556   ac_status=$?
43557   grep -v '^ *+' conftest.er1 >conftest.err
43558   rm -f conftest.er1
43559   cat conftest.err >&5
43560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43561   (exit $ac_status); } && {
43562          test -z "$ac_c_werror_flag" ||
43563          test ! -s conftest.err
43564        } && test -s conftest.$ac_objext; then
43565
43566                     wx_cv_struct_tm_has_gmtoff=yes
43567
43568 else
43569   echo "$as_me: failed program was:" >&5
43570 sed 's/^/| /' conftest.$ac_ext >&5
43571
43572         wx_cv_struct_tm_has_gmtoff=no
43573
43574 fi
43575
43576 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43577
43578 fi
43579 { echo "$as_me:$LINENO: result: $wx_cv_struct_tm_has_gmtoff" >&5
43580 echo "${ECHO_T}$wx_cv_struct_tm_has_gmtoff" >&6; }
43581     fi
43582
43583     if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
43584         cat >>confdefs.h <<\_ACEOF
43585 #define WX_GMTOFF_IN_TM 1
43586 _ACEOF
43587
43588     fi
43589
43590     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
43591 fi
43592
43593
43594 if test "$wxUSE_SOCKETS" = "yes"; then
43595     if test "$wxUSE_MGL" = 1; then
43596         { echo "$as_me:$LINENO: WARNING: wxSocket not yet supported under MGL... disabled" >&5
43597 echo "$as_me: WARNING: wxSocket not yet supported under MGL... disabled" >&2;}
43598         wxUSE_SOCKETS="no"
43599     fi
43600 fi
43601
43602 if test "$wxUSE_SOCKETS" = "yes"; then
43603         if test "$TOOLKIT" != "MSW"; then
43604                 { echo "$as_me:$LINENO: checking for socket" >&5
43605 echo $ECHO_N "checking for socket... $ECHO_C" >&6; }
43606 if test "${ac_cv_func_socket+set}" = set; then
43607   echo $ECHO_N "(cached) $ECHO_C" >&6
43608 else
43609   cat >conftest.$ac_ext <<_ACEOF
43610 /* confdefs.h.  */
43611 _ACEOF
43612 cat confdefs.h >>conftest.$ac_ext
43613 cat >>conftest.$ac_ext <<_ACEOF
43614 /* end confdefs.h.  */
43615 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
43616    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
43617 #define socket innocuous_socket
43618
43619 /* System header to define __stub macros and hopefully few prototypes,
43620     which can conflict with char socket (); below.
43621     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43622     <limits.h> exists even on freestanding compilers.  */
43623
43624 #ifdef __STDC__
43625 # include <limits.h>
43626 #else
43627 # include <assert.h>
43628 #endif
43629
43630 #undef socket
43631
43632 /* Override any GCC internal prototype to avoid an error.
43633    Use char because int might match the return type of a GCC
43634    builtin and then its argument prototype would still apply.  */
43635 #ifdef __cplusplus
43636 extern "C"
43637 #endif
43638 char socket ();
43639 /* The GNU C library defines this for functions which it implements
43640     to always fail with ENOSYS.  Some functions are actually named
43641     something starting with __ and the normal name is an alias.  */
43642 #if defined __stub_socket || defined __stub___socket
43643 choke me
43644 #endif
43645
43646 int
43647 main ()
43648 {
43649 return socket ();
43650   ;
43651   return 0;
43652 }
43653 _ACEOF
43654 rm -f conftest.$ac_objext conftest$ac_exeext
43655 if { (ac_try="$ac_link"
43656 case "(($ac_try" in
43657   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43658   *) ac_try_echo=$ac_try;;
43659 esac
43660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43661   (eval "$ac_link") 2>conftest.er1
43662   ac_status=$?
43663   grep -v '^ *+' conftest.er1 >conftest.err
43664   rm -f conftest.er1
43665   cat conftest.err >&5
43666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43667   (exit $ac_status); } && {
43668          test -z "$ac_c_werror_flag" ||
43669          test ! -s conftest.err
43670        } && test -s conftest$ac_exeext &&
43671        $as_test_x conftest$ac_exeext; then
43672   ac_cv_func_socket=yes
43673 else
43674   echo "$as_me: failed program was:" >&5
43675 sed 's/^/| /' conftest.$ac_ext >&5
43676
43677         ac_cv_func_socket=no
43678 fi
43679
43680 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43681       conftest$ac_exeext conftest.$ac_ext
43682 fi
43683 { echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
43684 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
43685 if test $ac_cv_func_socket = yes; then
43686   :
43687 else
43688
43689                 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
43690 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
43691 if test "${ac_cv_lib_socket_socket+set}" = set; then
43692   echo $ECHO_N "(cached) $ECHO_C" >&6
43693 else
43694   ac_check_lib_save_LIBS=$LIBS
43695 LIBS="-lsocket  $LIBS"
43696 cat >conftest.$ac_ext <<_ACEOF
43697 /* confdefs.h.  */
43698 _ACEOF
43699 cat confdefs.h >>conftest.$ac_ext
43700 cat >>conftest.$ac_ext <<_ACEOF
43701 /* end confdefs.h.  */
43702
43703 /* Override any GCC internal prototype to avoid an error.
43704    Use char because int might match the return type of a GCC
43705    builtin and then its argument prototype would still apply.  */
43706 #ifdef __cplusplus
43707 extern "C"
43708 #endif
43709 char socket ();
43710 int
43711 main ()
43712 {
43713 return socket ();
43714   ;
43715   return 0;
43716 }
43717 _ACEOF
43718 rm -f conftest.$ac_objext conftest$ac_exeext
43719 if { (ac_try="$ac_link"
43720 case "(($ac_try" in
43721   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43722   *) ac_try_echo=$ac_try;;
43723 esac
43724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43725   (eval "$ac_link") 2>conftest.er1
43726   ac_status=$?
43727   grep -v '^ *+' conftest.er1 >conftest.err
43728   rm -f conftest.er1
43729   cat conftest.err >&5
43730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43731   (exit $ac_status); } && {
43732          test -z "$ac_c_werror_flag" ||
43733          test ! -s conftest.err
43734        } && test -s conftest$ac_exeext &&
43735        $as_test_x conftest$ac_exeext; then
43736   ac_cv_lib_socket_socket=yes
43737 else
43738   echo "$as_me: failed program was:" >&5
43739 sed 's/^/| /' conftest.$ac_ext >&5
43740
43741         ac_cv_lib_socket_socket=no
43742 fi
43743
43744 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43745       conftest$ac_exeext conftest.$ac_ext
43746 LIBS=$ac_check_lib_save_LIBS
43747 fi
43748 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
43749 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
43750 if test $ac_cv_lib_socket_socket = yes; then
43751   if test "$INET_LINK" != " -lsocket"; then
43752                         INET_LINK="$INET_LINK -lsocket"
43753                     fi
43754 else
43755
43756                         { echo "$as_me:$LINENO: WARNING: socket library not found - sockets will be disabled" >&5
43757 echo "$as_me: WARNING: socket library not found - sockets will be disabled" >&2;}
43758                         wxUSE_SOCKETS=no
43759
43760
43761 fi
43762
43763
43764
43765 fi
43766
43767     fi
43768 fi
43769
43770 if test "$wxUSE_SOCKETS" = "yes" ; then
43771                 if test "$TOOLKIT" != "MSW"; then
43772                                         { echo "$as_me:$LINENO: checking what is the type of the third argument of getsockname" >&5
43773 echo $ECHO_N "checking what is the type of the third argument of getsockname... $ECHO_C" >&6; }
43774 if test "${wx_cv_type_getsockname3+set}" = set; then
43775   echo $ECHO_N "(cached) $ECHO_C" >&6
43776 else
43777
43778                 ac_ext=cpp
43779 ac_cpp='$CXXCPP $CPPFLAGS'
43780 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43781 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43782 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
43783
43784                 cat >conftest.$ac_ext <<_ACEOF
43785 /* confdefs.h.  */
43786 _ACEOF
43787 cat confdefs.h >>conftest.$ac_ext
43788 cat >>conftest.$ac_ext <<_ACEOF
43789 /* end confdefs.h.  */
43790
43791                         #include <sys/types.h>
43792                         #include <sys/socket.h>
43793
43794 int
43795 main ()
43796 {
43797
43798                         socklen_t len;
43799                         getsockname(0, 0, &len);
43800
43801   ;
43802   return 0;
43803 }
43804 _ACEOF
43805 rm -f conftest.$ac_objext
43806 if { (ac_try="$ac_compile"
43807 case "(($ac_try" in
43808   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43809   *) ac_try_echo=$ac_try;;
43810 esac
43811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43812   (eval "$ac_compile") 2>conftest.er1
43813   ac_status=$?
43814   grep -v '^ *+' conftest.er1 >conftest.err
43815   rm -f conftest.er1
43816   cat conftest.err >&5
43817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43818   (exit $ac_status); } && {
43819          test -z "$ac_cxx_werror_flag" ||
43820          test ! -s conftest.err
43821        } && test -s conftest.$ac_objext; then
43822   wx_cv_type_getsockname3=socklen_t
43823 else
43824   echo "$as_me: failed program was:" >&5
43825 sed 's/^/| /' conftest.$ac_ext >&5
43826
43827
43828                                                                                                                                                                         CFLAGS_OLD="$CFLAGS"
43829                         if test "$GCC" = yes ; then
43830                             CFLAGS="-Werror $CFLAGS"
43831                         fi
43832
43833                         cat >conftest.$ac_ext <<_ACEOF
43834 /* confdefs.h.  */
43835 _ACEOF
43836 cat confdefs.h >>conftest.$ac_ext
43837 cat >>conftest.$ac_ext <<_ACEOF
43838 /* end confdefs.h.  */
43839
43840                                 #include <sys/types.h>
43841                                 #include <sys/socket.h>
43842
43843 int
43844 main ()
43845 {
43846
43847                                 size_t len;
43848                                 getsockname(0, 0, &len);
43849
43850   ;
43851   return 0;
43852 }
43853 _ACEOF
43854 rm -f conftest.$ac_objext
43855 if { (ac_try="$ac_compile"
43856 case "(($ac_try" in
43857   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43858   *) ac_try_echo=$ac_try;;
43859 esac
43860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43861   (eval "$ac_compile") 2>conftest.er1
43862   ac_status=$?
43863   grep -v '^ *+' conftest.er1 >conftest.err
43864   rm -f conftest.er1
43865   cat conftest.err >&5
43866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43867   (exit $ac_status); } && {
43868          test -z "$ac_cxx_werror_flag" ||
43869          test ! -s conftest.err
43870        } && test -s conftest.$ac_objext; then
43871   wx_cv_type_getsockname3=size_t
43872 else
43873   echo "$as_me: failed program was:" >&5
43874 sed 's/^/| /' conftest.$ac_ext >&5
43875
43876         cat >conftest.$ac_ext <<_ACEOF
43877 /* confdefs.h.  */
43878 _ACEOF
43879 cat confdefs.h >>conftest.$ac_ext
43880 cat >>conftest.$ac_ext <<_ACEOF
43881 /* end confdefs.h.  */
43882
43883                                     #include <sys/types.h>
43884                                     #include <sys/socket.h>
43885
43886 int
43887 main ()
43888 {
43889
43890                                     int len;
43891                                     getsockname(0, 0, &len);
43892
43893   ;
43894   return 0;
43895 }
43896 _ACEOF
43897 rm -f conftest.$ac_objext
43898 if { (ac_try="$ac_compile"
43899 case "(($ac_try" in
43900   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43901   *) ac_try_echo=$ac_try;;
43902 esac
43903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43904   (eval "$ac_compile") 2>conftest.er1
43905   ac_status=$?
43906   grep -v '^ *+' conftest.er1 >conftest.err
43907   rm -f conftest.er1
43908   cat conftest.err >&5
43909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43910   (exit $ac_status); } && {
43911          test -z "$ac_cxx_werror_flag" ||
43912          test ! -s conftest.err
43913        } && test -s conftest.$ac_objext; then
43914   wx_cv_type_getsockname3=int
43915 else
43916   echo "$as_me: failed program was:" >&5
43917 sed 's/^/| /' conftest.$ac_ext >&5
43918
43919         wx_cv_type_getsockname3=unknown
43920
43921 fi
43922
43923 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43924
43925 fi
43926
43927 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43928
43929                         CFLAGS="$CFLAGS_OLD"
43930
43931
43932 fi
43933
43934 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43935                 ac_ext=c
43936 ac_cpp='$CPP $CPPFLAGS'
43937 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43938 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43939 ac_compiler_gnu=$ac_cv_c_compiler_gnu
43940
43941
43942 fi
43943 { echo "$as_me:$LINENO: result: $wx_cv_type_getsockname3" >&5
43944 echo "${ECHO_T}$wx_cv_type_getsockname3" >&6; }
43945
43946         if test "$wx_cv_type_getsockname3" = "unknown"; then
43947             wxUSE_SOCKETS=no
43948             { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
43949 echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
43950         else
43951             cat >>confdefs.h <<_ACEOF
43952 #define WX_SOCKLEN_T $wx_cv_type_getsockname3
43953 _ACEOF
43954
43955         fi
43956                 { echo "$as_me:$LINENO: checking what is the type of the fifth argument of getsockopt" >&5
43957 echo $ECHO_N "checking what is the type of the fifth argument of getsockopt... $ECHO_C" >&6; }
43958 if test "${wx_cv_type_getsockopt5+set}" = set; then
43959   echo $ECHO_N "(cached) $ECHO_C" >&6
43960 else
43961
43962                                                                                                 ac_ext=cpp
43963 ac_cpp='$CXXCPP $CPPFLAGS'
43964 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43965 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43966 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
43967
43968                 cat >conftest.$ac_ext <<_ACEOF
43969 /* confdefs.h.  */
43970 _ACEOF
43971 cat confdefs.h >>conftest.$ac_ext
43972 cat >>conftest.$ac_ext <<_ACEOF
43973 /* end confdefs.h.  */
43974
43975                         #include <sys/types.h>
43976                         #include <sys/socket.h>
43977
43978 int
43979 main ()
43980 {
43981
43982                         socklen_t len;
43983                         getsockopt(0, 0, 0, 0, &len);
43984
43985   ;
43986   return 0;
43987 }
43988 _ACEOF
43989 rm -f conftest.$ac_objext
43990 if { (ac_try="$ac_compile"
43991 case "(($ac_try" in
43992   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43993   *) ac_try_echo=$ac_try;;
43994 esac
43995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43996   (eval "$ac_compile") 2>conftest.er1
43997   ac_status=$?
43998   grep -v '^ *+' conftest.er1 >conftest.err
43999   rm -f conftest.er1
44000   cat conftest.err >&5
44001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44002   (exit $ac_status); } && {
44003          test -z "$ac_cxx_werror_flag" ||
44004          test ! -s conftest.err
44005        } && test -s conftest.$ac_objext; then
44006   wx_cv_type_getsockopt5=socklen_t
44007 else
44008   echo "$as_me: failed program was:" >&5
44009 sed 's/^/| /' conftest.$ac_ext >&5
44010
44011
44012                         cat >conftest.$ac_ext <<_ACEOF
44013 /* confdefs.h.  */
44014 _ACEOF
44015 cat confdefs.h >>conftest.$ac_ext
44016 cat >>conftest.$ac_ext <<_ACEOF
44017 /* end confdefs.h.  */
44018
44019                                 #include <sys/types.h>
44020                                 #include <sys/socket.h>
44021
44022 int
44023 main ()
44024 {
44025
44026                                 size_t len;
44027                                 getsockopt(0, 0, 0, 0, &len);
44028
44029   ;
44030   return 0;
44031 }
44032 _ACEOF
44033 rm -f conftest.$ac_objext
44034 if { (ac_try="$ac_compile"
44035 case "(($ac_try" in
44036   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44037   *) ac_try_echo=$ac_try;;
44038 esac
44039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44040   (eval "$ac_compile") 2>conftest.er1
44041   ac_status=$?
44042   grep -v '^ *+' conftest.er1 >conftest.err
44043   rm -f conftest.er1
44044   cat conftest.err >&5
44045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44046   (exit $ac_status); } && {
44047          test -z "$ac_cxx_werror_flag" ||
44048          test ! -s conftest.err
44049        } && test -s conftest.$ac_objext; then
44050   wx_cv_type_getsockopt5=size_t
44051 else
44052   echo "$as_me: failed program was:" >&5
44053 sed 's/^/| /' conftest.$ac_ext >&5
44054
44055         cat >conftest.$ac_ext <<_ACEOF
44056 /* confdefs.h.  */
44057 _ACEOF
44058 cat confdefs.h >>conftest.$ac_ext
44059 cat >>conftest.$ac_ext <<_ACEOF
44060 /* end confdefs.h.  */
44061
44062                                     #include <sys/types.h>
44063                                     #include <sys/socket.h>
44064
44065 int
44066 main ()
44067 {
44068
44069                                     int len;
44070                                     getsockopt(0, 0, 0, 0, &len);
44071
44072   ;
44073   return 0;
44074 }
44075 _ACEOF
44076 rm -f conftest.$ac_objext
44077 if { (ac_try="$ac_compile"
44078 case "(($ac_try" in
44079   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44080   *) ac_try_echo=$ac_try;;
44081 esac
44082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44083   (eval "$ac_compile") 2>conftest.er1
44084   ac_status=$?
44085   grep -v '^ *+' conftest.er1 >conftest.err
44086   rm -f conftest.er1
44087   cat conftest.err >&5
44088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44089   (exit $ac_status); } && {
44090          test -z "$ac_cxx_werror_flag" ||
44091          test ! -s conftest.err
44092        } && test -s conftest.$ac_objext; then
44093   wx_cv_type_getsockopt5=int
44094 else
44095   echo "$as_me: failed program was:" >&5
44096 sed 's/^/| /' conftest.$ac_ext >&5
44097
44098         wx_cv_type_getsockopt5=unknown
44099
44100 fi
44101
44102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44103
44104 fi
44105
44106 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44107
44108
44109 fi
44110
44111 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44112                 ac_ext=c
44113 ac_cpp='$CPP $CPPFLAGS'
44114 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44115 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44116 ac_compiler_gnu=$ac_cv_c_compiler_gnu
44117
44118
44119 fi
44120 { echo "$as_me:$LINENO: result: $wx_cv_type_getsockopt5" >&5
44121 echo "${ECHO_T}$wx_cv_type_getsockopt5" >&6; }
44122
44123         if test "$wx_cv_type_getsockopt5" = "unknown"; then
44124             wxUSE_SOCKETS=no
44125             { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
44126 echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
44127         else
44128             cat >>confdefs.h <<_ACEOF
44129 #define SOCKOPTLEN_T $wx_cv_type_getsockopt5
44130 _ACEOF
44131
44132         fi
44133     fi
44134 fi
44135
44136 if test "$wxUSE_SOCKETS" = "yes" ; then
44137     if test "$wxUSE_IPV6" = "yes"; then
44138         { echo "$as_me:$LINENO: checking whether we have sockaddr_in6" >&5
44139 echo $ECHO_N "checking whether we have sockaddr_in6... $ECHO_C" >&6; }
44140 if test "${wx_cv_type_sockaddr_in6+set}" = set; then
44141   echo $ECHO_N "(cached) $ECHO_C" >&6
44142 else
44143
44144                 cat >conftest.$ac_ext <<_ACEOF
44145 /* confdefs.h.  */
44146 _ACEOF
44147 cat confdefs.h >>conftest.$ac_ext
44148 cat >>conftest.$ac_ext <<_ACEOF
44149 /* end confdefs.h.  */
44150
44151                         #include <sys/types.h>
44152                         #include <sys/socket.h>
44153                         #include <netinet/in.h>
44154
44155 int
44156 main ()
44157 {
44158
44159                         struct sockaddr_in6 sa6;
44160
44161   ;
44162   return 0;
44163 }
44164 _ACEOF
44165 rm -f conftest.$ac_objext
44166 if { (ac_try="$ac_compile"
44167 case "(($ac_try" in
44168   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44169   *) ac_try_echo=$ac_try;;
44170 esac
44171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44172   (eval "$ac_compile") 2>conftest.er1
44173   ac_status=$?
44174   grep -v '^ *+' conftest.er1 >conftest.err
44175   rm -f conftest.er1
44176   cat conftest.err >&5
44177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44178   (exit $ac_status); } && {
44179          test -z "$ac_c_werror_flag" ||
44180          test ! -s conftest.err
44181        } && test -s conftest.$ac_objext; then
44182   wx_cv_type_sockaddr_in6=yes
44183 else
44184   echo "$as_me: failed program was:" >&5
44185 sed 's/^/| /' conftest.$ac_ext >&5
44186
44187         wx_cv_type_sockaddr_in6=no
44188
44189 fi
44190
44191 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44192
44193
44194 fi
44195 { echo "$as_me:$LINENO: result: $wx_cv_type_sockaddr_in6" >&5
44196 echo "${ECHO_T}$wx_cv_type_sockaddr_in6" >&6; }
44197
44198         if test "$wx_cv_type_sockaddr_in6"="yes"; then
44199             cat >>confdefs.h <<\_ACEOF
44200 #define wxUSE_IPV6 1
44201 _ACEOF
44202
44203         else
44204             { echo "$as_me:$LINENO: WARNING: IPv6 support not available... disabled" >&5
44205 echo "$as_me: WARNING: IPv6 support not available... disabled" >&2;}
44206         fi
44207     fi
44208
44209     cat >>confdefs.h <<\_ACEOF
44210 #define wxUSE_SOCKETS 1
44211 _ACEOF
44212
44213     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
44214 fi
44215
44216 if test "$wxUSE_PROTOCOL" = "yes"; then
44217     if test "$wxUSE_SOCKETS" != "yes"; then
44218         { echo "$as_me:$LINENO: WARNING: Protocol classes require sockets... disabled" >&5
44219 echo "$as_me: WARNING: Protocol classes require sockets... disabled" >&2;}
44220         wxUSE_PROTOCOL=no
44221     fi
44222 fi
44223
44224 if test "$wxUSE_PROTOCOL" = "yes"; then
44225     cat >>confdefs.h <<\_ACEOF
44226 #define wxUSE_PROTOCOL 1
44227 _ACEOF
44228
44229
44230     if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then
44231         cat >>confdefs.h <<\_ACEOF
44232 #define wxUSE_PROTOCOL_HTTP 1
44233 _ACEOF
44234
44235     fi
44236     if test "$wxUSE_PROTOCOL_FTP" = "yes"; then
44237         cat >>confdefs.h <<\_ACEOF
44238 #define wxUSE_PROTOCOL_FTP 1
44239 _ACEOF
44240
44241     fi
44242     if test "$wxUSE_PROTOCOL_FILE" = "yes"; then
44243         cat >>confdefs.h <<\_ACEOF
44244 #define wxUSE_PROTOCOL_FILE 1
44245 _ACEOF
44246
44247     fi
44248 else
44249     if test "$wxUSE_FS_INET" = "yes"; then
44250         { echo "$as_me:$LINENO: WARNING: HTTP filesystem require protocol classes... disabled" >&5
44251 echo "$as_me: WARNING: HTTP filesystem require protocol classes... disabled" >&2;}
44252         wxUSE_FS_INET="no"
44253     fi
44254 fi
44255
44256 if test "$wxUSE_URL" = "yes"; then
44257     if test "$wxUSE_PROTOCOL" != "yes"; then
44258         { echo "$as_me:$LINENO: WARNING: wxURL class requires wxProtocol... disabled" >&5
44259 echo "$as_me: WARNING: wxURL class requires wxProtocol... disabled" >&2;}
44260         wxUSE_URL=no
44261     fi
44262     if test "$wxUSE_URL" = "yes"; then
44263         cat >>confdefs.h <<\_ACEOF
44264 #define wxUSE_URL 1
44265 _ACEOF
44266
44267     fi
44268 fi
44269
44270 if test "$wxUSE_VARIANT" = "yes"; then
44271     cat >>confdefs.h <<\_ACEOF
44272 #define wxUSE_VARIANT 1
44273 _ACEOF
44274
44275 fi
44276
44277 if test "$wxUSE_FS_INET" = "yes"; then
44278   cat >>confdefs.h <<\_ACEOF
44279 #define wxUSE_FS_INET 1
44280 _ACEOF
44281
44282 fi
44283
44284
44285 if test "$wxUSE_GUI" = "yes" -a "$wxUSE_JOYSTICK" = "yes"; then
44286     wxUSE_JOYSTICK=no
44287
44288         if test "$TOOLKIT" = "MSW"; then
44289         wxUSE_JOYSTICK=yes
44290
44291         elif test "$TOOLKIT" = "MAC" -o "$TOOLKIT" = "COCOA"; then
44292         if test "$USE_DARWIN" = 1; then
44293                         { echo "$as_me:$LINENO: checking headers have declarations needed for joystick support" >&5
44294 echo $ECHO_N "checking headers have declarations needed for joystick support... $ECHO_C" >&6; }
44295             ac_ext=cpp
44296 ac_cpp='$CXXCPP $CPPFLAGS'
44297 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44298 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44299 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
44300
44301             cat >conftest.$ac_ext <<_ACEOF
44302 /* confdefs.h.  */
44303 _ACEOF
44304 cat confdefs.h >>conftest.$ac_ext
44305 cat >>conftest.$ac_ext <<_ACEOF
44306 /* end confdefs.h.  */
44307  #include <IOKit/hid/IOHIDLib.h>
44308 int
44309 main ()
44310 {
44311  IOHIDQueueInterface *qi = NULL;
44312                               IOHIDCallbackFunction cb = NULL;
44313                               qi->setEventCallout(NULL, cb, NULL, NULL);
44314   ;
44315   return 0;
44316 }
44317 _ACEOF
44318 rm -f conftest.$ac_objext
44319 if { (ac_try="$ac_compile"
44320 case "(($ac_try" in
44321   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44322   *) ac_try_echo=$ac_try;;
44323 esac
44324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44325   (eval "$ac_compile") 2>conftest.er1
44326   ac_status=$?
44327   grep -v '^ *+' conftest.er1 >conftest.err
44328   rm -f conftest.er1
44329   cat conftest.err >&5
44330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44331   (exit $ac_status); } && {
44332          test -z "$ac_cxx_werror_flag" ||
44333          test ! -s conftest.err
44334        } && test -s conftest.$ac_objext; then
44335    wxUSE_JOYSTICK=yes
44336
44337 else
44338   echo "$as_me: failed program was:" >&5
44339 sed 's/^/| /' conftest.$ac_ext >&5
44340
44341
44342 fi
44343
44344 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44345             ac_ext=c
44346 ac_cpp='$CPP $CPPFLAGS'
44347 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44348 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44349 ac_compiler_gnu=$ac_cv_c_compiler_gnu
44350
44351             { echo "$as_me:$LINENO: result: $wxUSE_JOYSTICK" >&5
44352 echo "${ECHO_T}$wxUSE_JOYSTICK" >&6; }
44353         fi
44354
44355         else
44356                 if test "$wxUSE_MGL" != 1; then
44357
44358 for ac_header in linux/joystick.h
44359 do
44360 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
44361 { echo "$as_me:$LINENO: checking for $ac_header" >&5
44362 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
44363 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
44364   echo $ECHO_N "(cached) $ECHO_C" >&6
44365 else
44366   cat >conftest.$ac_ext <<_ACEOF
44367 /* confdefs.h.  */
44368 _ACEOF
44369 cat confdefs.h >>conftest.$ac_ext
44370 cat >>conftest.$ac_ext <<_ACEOF
44371 /* end confdefs.h.  */
44372 $ac_includes_default
44373
44374 #include <$ac_header>
44375 _ACEOF
44376 rm -f conftest.$ac_objext
44377 if { (ac_try="$ac_compile"
44378 case "(($ac_try" in
44379   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44380   *) ac_try_echo=$ac_try;;
44381 esac
44382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44383   (eval "$ac_compile") 2>conftest.er1
44384   ac_status=$?
44385   grep -v '^ *+' conftest.er1 >conftest.err
44386   rm -f conftest.er1
44387   cat conftest.err >&5
44388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44389   (exit $ac_status); } && {
44390          test -z "$ac_c_werror_flag" ||
44391          test ! -s conftest.err
44392        } && test -s conftest.$ac_objext; then
44393   eval "$as_ac_Header=yes"
44394 else
44395   echo "$as_me: failed program was:" >&5
44396 sed 's/^/| /' conftest.$ac_ext >&5
44397
44398         eval "$as_ac_Header=no"
44399 fi
44400
44401 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44402 fi
44403 ac_res=`eval echo '${'$as_ac_Header'}'`
44404                { echo "$as_me:$LINENO: result: $ac_res" >&5
44405 echo "${ECHO_T}$ac_res" >&6; }
44406 if test `eval echo '${'$as_ac_Header'}'` = yes; then
44407   cat >>confdefs.h <<_ACEOF
44408 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
44409 _ACEOF
44410  wxUSE_JOYSTICK=yes
44411 fi
44412
44413 done
44414
44415         fi
44416     fi
44417
44418     if test "$wxUSE_JOYSTICK" = "yes"; then
44419         cat >>confdefs.h <<\_ACEOF
44420 #define wxUSE_JOYSTICK 1
44421 _ACEOF
44422
44423         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
44424     else
44425         { echo "$as_me:$LINENO: WARNING: Joystick not supported by this system... disabled" >&5
44426 echo "$as_me: WARNING: Joystick not supported by this system... disabled" >&2;}
44427     fi
44428 fi
44429
44430
44431
44432 if test "$wxUSE_FONTENUM" = "yes" ; then
44433   cat >>confdefs.h <<\_ACEOF
44434 #define wxUSE_FONTENUM 1
44435 _ACEOF
44436
44437 fi
44438
44439 if test "$wxUSE_FONTMAP" = "yes" ; then
44440   cat >>confdefs.h <<\_ACEOF
44441 #define wxUSE_FONTMAP 1
44442 _ACEOF
44443
44444 fi
44445
44446 if test "$wxUSE_UNICODE" = "yes" ; then
44447   cat >>confdefs.h <<\_ACEOF
44448 #define wxUSE_UNICODE 1
44449 _ACEOF
44450
44451
44452   if test "$USE_WIN32" != 1; then
44453       wxUSE_UNICODE_MSLU=no
44454   fi
44455
44456   if test "$USE_WIN32" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then
44457         { echo "$as_me:$LINENO: checking for main in -lunicows" >&5
44458 echo $ECHO_N "checking for main in -lunicows... $ECHO_C" >&6; }
44459 if test "${ac_cv_lib_unicows_main+set}" = set; then
44460   echo $ECHO_N "(cached) $ECHO_C" >&6
44461 else
44462   ac_check_lib_save_LIBS=$LIBS
44463 LIBS="-lunicows  $LIBS"
44464 cat >conftest.$ac_ext <<_ACEOF
44465 /* confdefs.h.  */
44466 _ACEOF
44467 cat confdefs.h >>conftest.$ac_ext
44468 cat >>conftest.$ac_ext <<_ACEOF
44469 /* end confdefs.h.  */
44470
44471
44472 int
44473 main ()
44474 {
44475 return main ();
44476   ;
44477   return 0;
44478 }
44479 _ACEOF
44480 rm -f conftest.$ac_objext conftest$ac_exeext
44481 if { (ac_try="$ac_link"
44482 case "(($ac_try" in
44483   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44484   *) ac_try_echo=$ac_try;;
44485 esac
44486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44487   (eval "$ac_link") 2>conftest.er1
44488   ac_status=$?
44489   grep -v '^ *+' conftest.er1 >conftest.err
44490   rm -f conftest.er1
44491   cat conftest.err >&5
44492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44493   (exit $ac_status); } && {
44494          test -z "$ac_c_werror_flag" ||
44495          test ! -s conftest.err
44496        } && test -s conftest$ac_exeext &&
44497        $as_test_x conftest$ac_exeext; then
44498   ac_cv_lib_unicows_main=yes
44499 else
44500   echo "$as_me: failed program was:" >&5
44501 sed 's/^/| /' conftest.$ac_ext >&5
44502
44503         ac_cv_lib_unicows_main=no
44504 fi
44505
44506 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
44507       conftest$ac_exeext conftest.$ac_ext
44508 LIBS=$ac_check_lib_save_LIBS
44509 fi
44510 { echo "$as_me:$LINENO: result: $ac_cv_lib_unicows_main" >&5
44511 echo "${ECHO_T}$ac_cv_lib_unicows_main" >&6; }
44512 if test $ac_cv_lib_unicows_main = yes; then
44513
44514                 cat >>confdefs.h <<\_ACEOF
44515 #define wxUSE_UNICODE_MSLU 1
44516 _ACEOF
44517
44518
44519 else
44520
44521                 { echo "$as_me:$LINENO: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
44522                              Applications will only run on Windows NT/2000/XP!" >&5
44523 echo "$as_me: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
44524                              Applications will only run on Windows NT/2000/XP!" >&2;}
44525                 wxUSE_UNICODE_MSLU=no
44526
44527 fi
44528
44529     fi
44530 fi
44531
44532 if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_UTF8" = "yes"; then
44533     cat >>confdefs.h <<\_ACEOF
44534 #define wxUSE_UNICODE_UTF8 1
44535 _ACEOF
44536
44537
44538     if test "$wxUSE_UNICODE_UTF8_LOCALE" = "yes"; then
44539         cat >>confdefs.h <<\_ACEOF
44540 #define wxUSE_UTF8_LOCALE_ONLY 1
44541 _ACEOF
44542
44543     fi
44544 fi
44545
44546
44547 if test "$wxUSE_CONSTRAINTS" = "yes"; then
44548     cat >>confdefs.h <<\_ACEOF
44549 #define wxUSE_CONSTRAINTS 1
44550 _ACEOF
44551
44552     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
44553 fi
44554
44555 if test "$wxUSE_MDI" = "yes"; then
44556     cat >>confdefs.h <<\_ACEOF
44557 #define wxUSE_MDI 1
44558 _ACEOF
44559
44560
44561     if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
44562         cat >>confdefs.h <<\_ACEOF
44563 #define wxUSE_MDI_ARCHITECTURE 1
44564 _ACEOF
44565
44566         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
44567     fi
44568 fi
44569
44570 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
44571     cat >>confdefs.h <<\_ACEOF
44572 #define wxUSE_DOC_VIEW_ARCHITECTURE 1
44573 _ACEOF
44574
44575     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
44576     if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
44577         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
44578     fi
44579 fi
44580
44581 if test "$wxUSE_HELP" = "yes"; then
44582     cat >>confdefs.h <<\_ACEOF
44583 #define wxUSE_HELP 1
44584 _ACEOF
44585
44586     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
44587
44588     if test "$wxUSE_MSW" = 1; then
44589       if test "$wxUSE_MS_HTML_HELP" = "yes"; then
44590         cat >>confdefs.h <<\_ACEOF
44591 #define wxUSE_MS_HTML_HELP 1
44592 _ACEOF
44593
44594       fi
44595     fi
44596
44597     if test "$wxUSE_WXHTML_HELP" = "yes"; then
44598       if test "$wxUSE_HTML" = "yes"; then
44599         cat >>confdefs.h <<\_ACEOF
44600 #define wxUSE_WXHTML_HELP 1
44601 _ACEOF
44602
44603       else
44604         { echo "$as_me:$LINENO: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&5
44605 echo "$as_me: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&2;}
44606         wxUSE_WXHTML_HELP=no
44607       fi
44608     fi
44609 fi
44610
44611 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
44612     if test "$wxUSE_CONSTRAINTS" != "yes"; then
44613         { echo "$as_me:$LINENO: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&5
44614 echo "$as_me: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&2;}
44615     else
44616         cat >>confdefs.h <<\_ACEOF
44617 #define wxUSE_PRINTING_ARCHITECTURE 1
44618 _ACEOF
44619
44620     fi
44621     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
44622 fi
44623
44624 if test "$wxUSE_POSTSCRIPT" = "yes" ; then
44625   cat >>confdefs.h <<\_ACEOF
44626 #define wxUSE_POSTSCRIPT 1
44627 _ACEOF
44628
44629 fi
44630
44631 cat >>confdefs.h <<\_ACEOF
44632 #define wxUSE_AFM_FOR_POSTSCRIPT 1
44633 _ACEOF
44634
44635
44636 if test "$wxUSE_SVG" = "yes"; then
44637     cat >>confdefs.h <<\_ACEOF
44638 #define wxUSE_SVG 1
44639 _ACEOF
44640
44641 fi
44642
44643
44644 if test "$wxUSE_METAFILE" = "yes"; then
44645     if test "$wxUSE_MSW" != 1 -a "$wxUSE_MAC" != 1 -a "$wxUSE_PM" != 1; then
44646         { echo "$as_me:$LINENO: WARNING: wxMetafile is not available on this system... disabled" >&5
44647 echo "$as_me: WARNING: wxMetafile is not available on this system... disabled" >&2;}
44648         wxUSE_METAFILE=no
44649     fi
44650 fi
44651
44652
44653 if test "$USE_WIN32" = 1 -a \( "$wxUSE_DATAOBJ"       = "yes" \
44654                           -o "$wxUSE_CLIPBOARD"     = "yes" \
44655                           -o "$wxUSE_OLE"     = "yes" \
44656                           -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then
44657     { echo "$as_me:$LINENO: checking for ole2.h" >&5
44658 echo $ECHO_N "checking for ole2.h... $ECHO_C" >&6; }
44659 if test "${ac_cv_header_ole2_h+set}" = set; then
44660   echo $ECHO_N "(cached) $ECHO_C" >&6
44661 else
44662   cat >conftest.$ac_ext <<_ACEOF
44663 /* confdefs.h.  */
44664 _ACEOF
44665 cat confdefs.h >>conftest.$ac_ext
44666 cat >>conftest.$ac_ext <<_ACEOF
44667 /* end confdefs.h.  */
44668
44669
44670 #include <ole2.h>
44671 _ACEOF
44672 rm -f conftest.$ac_objext
44673 if { (ac_try="$ac_compile"
44674 case "(($ac_try" in
44675   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44676   *) ac_try_echo=$ac_try;;
44677 esac
44678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44679   (eval "$ac_compile") 2>conftest.er1
44680   ac_status=$?
44681   grep -v '^ *+' conftest.er1 >conftest.err
44682   rm -f conftest.er1
44683   cat conftest.err >&5
44684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44685   (exit $ac_status); } && {
44686          test -z "$ac_c_werror_flag" ||
44687          test ! -s conftest.err
44688        } && test -s conftest.$ac_objext; then
44689   ac_cv_header_ole2_h=yes
44690 else
44691   echo "$as_me: failed program was:" >&5
44692 sed 's/^/| /' conftest.$ac_ext >&5
44693
44694         ac_cv_header_ole2_h=no
44695 fi
44696
44697 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44698 fi
44699 { echo "$as_me:$LINENO: result: $ac_cv_header_ole2_h" >&5
44700 echo "${ECHO_T}$ac_cv_header_ole2_h" >&6; }
44701
44702
44703
44704     if test "$ac_cv_header_ole2_h" = "yes" ; then
44705         if test "$GCC" = yes ; then
44706             { echo "$as_me:$LINENO: checking if g++ requires -fvtable-thunks" >&5
44707 echo $ECHO_N "checking if g++ requires -fvtable-thunks... $ECHO_C" >&6; }
44708             cat >conftest.$ac_ext <<_ACEOF
44709 /* confdefs.h.  */
44710 _ACEOF
44711 cat confdefs.h >>conftest.$ac_ext
44712 cat >>conftest.$ac_ext <<_ACEOF
44713 /* end confdefs.h.  */
44714 #include <windows.h>
44715                             #include <ole2.h>
44716 int
44717 main ()
44718 {
44719
44720   ;
44721   return 0;
44722 }
44723 _ACEOF
44724 rm -f conftest.$ac_objext
44725 if { (ac_try="$ac_compile"
44726 case "(($ac_try" in
44727   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44728   *) ac_try_echo=$ac_try;;
44729 esac
44730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44731   (eval "$ac_compile") 2>conftest.er1
44732   ac_status=$?
44733   grep -v '^ *+' conftest.er1 >conftest.err
44734   rm -f conftest.er1
44735   cat conftest.err >&5
44736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44737   (exit $ac_status); } && {
44738          test -z "$ac_c_werror_flag" ||
44739          test ! -s conftest.err
44740        } && test -s conftest.$ac_objext; then
44741   { echo "$as_me:$LINENO: result: no" >&5
44742 echo "${ECHO_T}no" >&6; }
44743 else
44744   echo "$as_me: failed program was:" >&5
44745 sed 's/^/| /' conftest.$ac_ext >&5
44746
44747         { echo "$as_me:$LINENO: result: yes" >&5
44748 echo "${ECHO_T}yes" >&6; }
44749                             WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -fvtable-thunks"
44750 fi
44751
44752 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44753             LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS"
44754             if test "$wxUSE_OLE" = "yes" ; then
44755                 cat >>confdefs.h <<\_ACEOF
44756 #define wxUSE_OLE 1
44757 _ACEOF
44758
44759                 cat >>confdefs.h <<\_ACEOF
44760 #define wxUSE_OLE_AUTOMATION 1
44761 _ACEOF
44762
44763                 cat >>confdefs.h <<\_ACEOF
44764 #define wxUSE_ACTIVEX 1
44765 _ACEOF
44766
44767                 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS oleauto"
44768             fi
44769         fi
44770
44771                 if test "$wxUSE_DATAOBJ" = "yes" ; then
44772             cat >>confdefs.h <<\_ACEOF
44773 #define wxUSE_DATAOBJ 1
44774 _ACEOF
44775
44776         fi
44777     else
44778         { echo "$as_me:$LINENO: WARNING: Some features disabled because OLE headers not found" >&5
44779 echo "$as_me: WARNING: Some features disabled because OLE headers not found" >&2;}
44780
44781         wxUSE_CLIPBOARD=no
44782         wxUSE_DRAG_AND_DROP=no
44783         wxUSE_DATAOBJ=no
44784         wxUSE_OLE=no
44785     fi
44786
44787     if test "$wxUSE_METAFILE" = "yes"; then
44788         cat >>confdefs.h <<\_ACEOF
44789 #define wxUSE_METAFILE 1
44790 _ACEOF
44791
44792
44793                 cat >>confdefs.h <<\_ACEOF
44794 #define wxUSE_ENH_METAFILE 1
44795 _ACEOF
44796
44797     fi
44798 fi
44799
44800 if test "$wxUSE_IPC" = "yes"; then
44801     if test "$wxUSE_SOCKETS" != "yes" -a "$USE_WIN32" != 1; then
44802         { echo "$as_me:$LINENO: WARNING: wxWidgets IPC classes require sockets... disabled" >&5
44803 echo "$as_me: WARNING: wxWidgets IPC classes require sockets... disabled" >&2;}
44804         wxUSE_IPC=no
44805     fi
44806
44807     if test "$wxUSE_IPC" = "yes"; then
44808         cat >>confdefs.h <<\_ACEOF
44809 #define wxUSE_IPC 1
44810 _ACEOF
44811
44812         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ipc"
44813     fi
44814 fi
44815
44816 if test "$wxUSE_DATAOBJ" = "yes"; then
44817     if test "$wxUSE_MGL" = 1 -o "$wxUSE_DFB" = 1; then
44818         { echo "$as_me:$LINENO: WARNING: wxDataObject not yet supported under $TOOLKIT... disabled" >&5
44819 echo "$as_me: WARNING: wxDataObject not yet supported under $TOOLKIT... disabled" >&2;}
44820         wxUSE_DATAOBJ=no
44821     else
44822         cat >>confdefs.h <<\_ACEOF
44823 #define wxUSE_DATAOBJ 1
44824 _ACEOF
44825
44826     fi
44827 else
44828     { echo "$as_me:$LINENO: WARNING: Clipboard and drag-and-drop require wxDataObject -- disabled" >&5
44829 echo "$as_me: WARNING: Clipboard and drag-and-drop require wxDataObject -- disabled" >&2;}
44830     wxUSE_CLIPBOARD=no
44831     wxUSE_DRAG_AND_DROP=no
44832 fi
44833
44834 if test "$wxUSE_CLIPBOARD" = "yes"; then
44835     if test "$wxUSE_MGL" = 1 -o "$wxUSE_DFB" = 1; then
44836         { echo "$as_me:$LINENO: WARNING: Clipboard not yet supported under $TOOLKIT... disabled" >&5
44837 echo "$as_me: WARNING: Clipboard not yet supported under $TOOLKIT... disabled" >&2;}
44838         wxUSE_CLIPBOARD=no
44839     fi
44840
44841     if test "$wxUSE_CLIPBOARD" = "yes"; then
44842         cat >>confdefs.h <<\_ACEOF
44843 #define wxUSE_CLIPBOARD 1
44844 _ACEOF
44845
44846     fi
44847 fi
44848
44849 if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
44850     if test "$wxUSE_GTK" = 1; then
44851         if test "$WXGTK12" != 1; then
44852             { echo "$as_me:$LINENO: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&5
44853 echo "$as_me: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&2;}
44854             wxUSE_DRAG_AND_DROP=no
44855         fi
44856     fi
44857
44858     if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_X11" = 1 -o "$wxUSE_MGL" = 1 -o \
44859             "$wxUSE_DFB" = 1; then
44860         { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under $TOOLKIT... disabled" >&5
44861 echo "$as_me: WARNING: Drag and drop not yet supported under $TOOLKIT... disabled" >&2;}
44862         wxUSE_DRAG_AND_DROP=no
44863     fi
44864
44865     if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
44866         cat >>confdefs.h <<\_ACEOF
44867 #define wxUSE_DRAG_AND_DROP 1
44868 _ACEOF
44869
44870     fi
44871
44872 fi
44873
44874 if test "$wxUSE_DRAG_AND_DROP" = "yes" -o "$wxUSE_CLIPBOARD" = "yes"; then
44875     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
44876 fi
44877
44878 if test "$wxUSE_SPLINES" = "yes" ; then
44879   cat >>confdefs.h <<\_ACEOF
44880 #define wxUSE_SPLINES 1
44881 _ACEOF
44882
44883 fi
44884
44885 if test "$wxUSE_MOUSEWHEEL" = "yes" ; then
44886   cat >>confdefs.h <<\_ACEOF
44887 #define wxUSE_MOUSEWHEEL 1
44888 _ACEOF
44889
44890 fi
44891
44892
44893 USES_CONTROLS=0
44894 if test "$wxUSE_CONTROLS" = "yes"; then
44895   USES_CONTROLS=1
44896 fi
44897
44898 if test "$wxUSE_ACCEL" = "yes"; then
44899   cat >>confdefs.h <<\_ACEOF
44900 #define wxUSE_ACCEL 1
44901 _ACEOF
44902
44903   USES_CONTROLS=1
44904 fi
44905
44906 if test "$wxUSE_ANIMATIONCTRL" = "yes"; then
44907   cat >>confdefs.h <<\_ACEOF
44908 #define wxUSE_ANIMATIONCTRL 1
44909 _ACEOF
44910
44911   USES_CONTROLS=1
44912   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS animate"
44913 fi
44914
44915 if test "$wxUSE_BUTTON" = "yes"; then
44916   cat >>confdefs.h <<\_ACEOF
44917 #define wxUSE_BUTTON 1
44918 _ACEOF
44919
44920   USES_CONTROLS=1
44921 fi
44922
44923 if test "$wxUSE_BMPBUTTON" = "yes"; then
44924   cat >>confdefs.h <<\_ACEOF
44925 #define wxUSE_BMPBUTTON 1
44926 _ACEOF
44927
44928   USES_CONTROLS=1
44929 fi
44930
44931 if test "$wxUSE_CALCTRL" = "yes"; then
44932   cat >>confdefs.h <<\_ACEOF
44933 #define wxUSE_CALENDARCTRL 1
44934 _ACEOF
44935
44936   USES_CONTROLS=1
44937   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
44938 fi
44939
44940 if test "$wxUSE_CARET" = "yes"; then
44941   cat >>confdefs.h <<\_ACEOF
44942 #define wxUSE_CARET 1
44943 _ACEOF
44944
44945   USES_CONTROLS=1
44946   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
44947 fi
44948
44949 if test "$wxUSE_COLLPANE" = "yes"; then
44950     cat >>confdefs.h <<\_ACEOF
44951 #define wxUSE_COLLPANE 1
44952 _ACEOF
44953
44954     USES_CONTROLS=1
44955     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS collpane"
44956 fi
44957
44958 if test "$wxUSE_COMBOBOX" = "yes"; then
44959   cat >>confdefs.h <<\_ACEOF
44960 #define wxUSE_COMBOBOX 1
44961 _ACEOF
44962
44963   USES_CONTROLS=1
44964 fi
44965
44966 if test "$wxUSE_COMBOCTRL" = "yes"; then
44967   cat >>confdefs.h <<\_ACEOF
44968 #define wxUSE_COMBOCTRL 1
44969 _ACEOF
44970
44971   USES_CONTROLS=1
44972 fi
44973
44974 if test "$wxUSE_CHOICE" = "yes"; then
44975   cat >>confdefs.h <<\_ACEOF
44976 #define wxUSE_CHOICE 1
44977 _ACEOF
44978
44979   USES_CONTROLS=1
44980 fi
44981
44982 if test "$wxUSE_CHOICEBOOK" = "yes"; then
44983     cat >>confdefs.h <<\_ACEOF
44984 #define wxUSE_CHOICEBOOK 1
44985 _ACEOF
44986
44987     USES_CONTROLS=1
44988 fi
44989
44990 if test "$wxUSE_CHECKBOX" = "yes"; then
44991   cat >>confdefs.h <<\_ACEOF
44992 #define wxUSE_CHECKBOX 1
44993 _ACEOF
44994
44995   USES_CONTROLS=1
44996 fi
44997
44998 if test "$wxUSE_CHECKLST" = "yes"; then
44999   cat >>confdefs.h <<\_ACEOF
45000 #define wxUSE_CHECKLISTBOX 1
45001 _ACEOF
45002
45003   USES_CONTROLS=1
45004 fi
45005
45006 if test "$wxUSE_COLOURPICKERCTRL" = "yes"; then
45007   cat >>confdefs.h <<\_ACEOF
45008 #define wxUSE_COLOURPICKERCTRL 1
45009 _ACEOF
45010
45011   USES_CONTROLS=1
45012 fi
45013
45014 if test "$wxUSE_DATEPICKCTRL" = "yes"; then
45015   cat >>confdefs.h <<\_ACEOF
45016 #define wxUSE_DATEPICKCTRL 1
45017 _ACEOF
45018
45019   USES_CONTROLS=1
45020 fi
45021
45022 if test "$wxUSE_DIRPICKERCTRL" = "yes"; then
45023   cat >>confdefs.h <<\_ACEOF
45024 #define wxUSE_DIRPICKERCTRL 1
45025 _ACEOF
45026
45027   USES_CONTROLS=1
45028 fi
45029
45030 if test "$wxUSE_FILECTRL" = "yes"; then
45031   cat >>confdefs.h <<\_ACEOF
45032 #define wxUSE_FILECTRL 1
45033 _ACEOF
45034
45035   USES_CONTROLS=1
45036 fi
45037
45038 if test "$wxUSE_FILEPICKERCTRL" = "yes"; then
45039   cat >>confdefs.h <<\_ACEOF
45040 #define wxUSE_FILEPICKERCTRL 1
45041 _ACEOF
45042
45043   USES_CONTROLS=1
45044 fi
45045
45046 if test "$wxUSE_FONTPICKERCTRL" = "yes"; then
45047   cat >>confdefs.h <<\_ACEOF
45048 #define wxUSE_FONTPICKERCTRL 1
45049 _ACEOF
45050
45051   USES_CONTROLS=1
45052 fi
45053
45054 if test "$wxUSE_DISPLAY" = "yes"; then
45055     if test "$wxUSE_DFB" = 1 -o "$wxUSE_MGL" = 1; then
45056         { echo "$as_me:$LINENO: WARNING: wxDisplay not yet supported under $TOOLKIT... disabled" >&5
45057 echo "$as_me: WARNING: wxDisplay not yet supported under $TOOLKIT... disabled" >&2;}
45058         wxUSE_DISPLAY=no
45059     else
45060         cat >>confdefs.h <<\_ACEOF
45061 #define wxUSE_DISPLAY 1
45062 _ACEOF
45063
45064         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS display"
45065     fi
45066 fi
45067
45068 if test "$wxUSE_DETECT_SM" = "yes"; then
45069     cat >>confdefs.h <<\_ACEOF
45070 #define wxUSE_DETECT_SM 1
45071 _ACEOF
45072
45073 fi
45074
45075 if test "$wxUSE_GAUGE" = "yes"; then
45076   cat >>confdefs.h <<\_ACEOF
45077 #define wxUSE_GAUGE 1
45078 _ACEOF
45079
45080   USES_CONTROLS=1
45081 fi
45082
45083 if test "$wxUSE_GRID" = "yes"; then
45084   cat >>confdefs.h <<\_ACEOF
45085 #define wxUSE_GRID 1
45086 _ACEOF
45087
45088   USES_CONTROLS=1
45089   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
45090 fi
45091
45092 if test "$wxUSE_HYPERLINKCTRL" = "yes"; then
45093   cat >>confdefs.h <<\_ACEOF
45094 #define wxUSE_HYPERLINKCTRL 1
45095 _ACEOF
45096
45097   USES_CONTROLS=1
45098 fi
45099
45100 if test "$wxUSE_BITMAPCOMBOBOX" = "yes"; then
45101   cat >>confdefs.h <<\_ACEOF
45102 #define wxUSE_BITMAPCOMBOBOX 1
45103 _ACEOF
45104
45105   USES_CONTROLS=1
45106 fi
45107
45108 if test "$wxUSE_DATAVIEWCTRL" = "yes"; then
45109   cat >>confdefs.h <<\_ACEOF
45110 #define wxUSE_DATAVIEWCTRL 1
45111 _ACEOF
45112
45113   USES_CONTROLS=1
45114   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dataview"
45115 fi
45116
45117 if test "$wxUSE_IMAGLIST" = "yes"; then
45118     cat >>confdefs.h <<\_ACEOF
45119 #define wxUSE_IMAGLIST 1
45120 _ACEOF
45121
45122 fi
45123
45124 if test "$wxUSE_LISTBOOK" = "yes"; then
45125     cat >>confdefs.h <<\_ACEOF
45126 #define wxUSE_LISTBOOK 1
45127 _ACEOF
45128
45129     USES_CONTROLS=1
45130 fi
45131
45132 if test "$wxUSE_LISTBOX" = "yes"; then
45133     cat >>confdefs.h <<\_ACEOF
45134 #define wxUSE_LISTBOX 1
45135 _ACEOF
45136
45137     USES_CONTROLS=1
45138 fi
45139
45140 if test "$wxUSE_LISTCTRL" = "yes"; then
45141     if test "$wxUSE_IMAGLIST" = "yes"; then
45142         cat >>confdefs.h <<\_ACEOF
45143 #define wxUSE_LISTCTRL 1
45144 _ACEOF
45145
45146         USES_CONTROLS=1
45147         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
45148     else
45149         { echo "$as_me:$LINENO: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&5
45150 echo "$as_me: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&2;}
45151     fi
45152 fi
45153
45154 if test "$wxUSE_EDITABLELISTBOX" = "yes"; then
45155     cat >>confdefs.h <<\_ACEOF
45156 #define wxUSE_EDITABLELISTBOX 1
45157 _ACEOF
45158
45159     USES_CONTROLS=1
45160     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS editlbox"
45161 fi
45162
45163 if test "$wxUSE_NOTEBOOK" = "yes"; then
45164     cat >>confdefs.h <<\_ACEOF
45165 #define wxUSE_NOTEBOOK 1
45166 _ACEOF
45167
45168     USES_CONTROLS=1
45169     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
45170 fi
45171
45172 if test "$wxUSE_NOTIFICATION_MESSAGE" = "yes"; then
45173     cat >>confdefs.h <<\_ACEOF
45174 #define wxUSE_NOTIFICATION_MESSAGE 1
45175 _ACEOF
45176
45177 fi
45178
45179 if test "$wxUSE_ODCOMBOBOX" = "yes"; then
45180   cat >>confdefs.h <<\_ACEOF
45181 #define wxUSE_ODCOMBOBOX 1
45182 _ACEOF
45183
45184   USES_CONTROLS=1
45185   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS combo"
45186 fi
45187
45188 if test "$wxUSE_RADIOBOX" = "yes"; then
45189     cat >>confdefs.h <<\_ACEOF
45190 #define wxUSE_RADIOBOX 1
45191 _ACEOF
45192
45193     USES_CONTROLS=1
45194 fi
45195
45196 if test "$wxUSE_RADIOBTN" = "yes"; then
45197     cat >>confdefs.h <<\_ACEOF
45198 #define wxUSE_RADIOBTN 1
45199 _ACEOF
45200
45201     USES_CONTROLS=1
45202 fi
45203
45204 if test "$wxUSE_SASH" = "yes"; then
45205     cat >>confdefs.h <<\_ACEOF
45206 #define wxUSE_SASH 1
45207 _ACEOF
45208
45209     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
45210 fi
45211
45212 if test "$wxUSE_SCROLLBAR" = "yes"; then
45213     cat >>confdefs.h <<\_ACEOF
45214 #define wxUSE_SCROLLBAR 1
45215 _ACEOF
45216
45217     USES_CONTROLS=1
45218     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
45219 fi
45220
45221 if test "$wxUSE_SEARCHCTRL" = "yes"; then
45222     cat >>confdefs.h <<\_ACEOF
45223 #define wxUSE_SEARCHCTRL 1
45224 _ACEOF
45225
45226     USES_CONTROLS=1
45227 fi
45228
45229 if test "$wxUSE_SLIDER" = "yes"; then
45230     cat >>confdefs.h <<\_ACEOF
45231 #define wxUSE_SLIDER 1
45232 _ACEOF
45233
45234     USES_CONTROLS=1
45235 fi
45236
45237 if test "$wxUSE_SPINBTN" = "yes"; then
45238     cat >>confdefs.h <<\_ACEOF
45239 #define wxUSE_SPINBTN 1
45240 _ACEOF
45241
45242     USES_CONTROLS=1
45243 fi
45244
45245 if test "$wxUSE_SPINCTRL" = "yes"; then
45246     cat >>confdefs.h <<\_ACEOF
45247 #define wxUSE_SPINCTRL 1
45248 _ACEOF
45249
45250     USES_CONTROLS=1
45251 fi
45252
45253 if test "$wxUSE_SPLITTER" = "yes"; then
45254     cat >>confdefs.h <<\_ACEOF
45255 #define wxUSE_SPLITTER 1
45256 _ACEOF
45257
45258     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
45259 fi
45260
45261 if test "$wxUSE_STATBMP" = "yes"; then
45262     cat >>confdefs.h <<\_ACEOF
45263 #define wxUSE_STATBMP 1
45264 _ACEOF
45265
45266     USES_CONTROLS=1
45267 fi
45268
45269 if test "$wxUSE_STATBOX" = "yes"; then
45270     cat >>confdefs.h <<\_ACEOF
45271 #define wxUSE_STATBOX 1
45272 _ACEOF
45273
45274     USES_CONTROLS=1
45275 fi
45276
45277 if test "$wxUSE_STATTEXT" = "yes"; then
45278     cat >>confdefs.h <<\_ACEOF
45279 #define wxUSE_STATTEXT 1
45280 _ACEOF
45281
45282     USES_CONTROLS=1
45283 fi
45284
45285 if test "$wxUSE_STATLINE" = "yes"; then
45286     cat >>confdefs.h <<\_ACEOF
45287 #define wxUSE_STATLINE 1
45288 _ACEOF
45289
45290     USES_CONTROLS=1
45291 fi
45292
45293 if test "$wxUSE_STATUSBAR" = "yes"; then
45294         cat >>confdefs.h <<\_ACEOF
45295 #define wxUSE_NATIVE_STATUSBAR 1
45296 _ACEOF
45297
45298     cat >>confdefs.h <<\_ACEOF
45299 #define wxUSE_STATUSBAR 1
45300 _ACEOF
45301
45302     USES_CONTROLS=1
45303
45304     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
45305 fi
45306
45307 if test "$wxUSE_TAB_DIALOG" = "yes"; then
45308     cat >>confdefs.h <<\_ACEOF
45309 #define wxUSE_TAB_DIALOG 1
45310 _ACEOF
45311
45312 fi
45313
45314 if test "$wxUSE_TEXTCTRL" = "yes"; then
45315     cat >>confdefs.h <<\_ACEOF
45316 #define wxUSE_TEXTCTRL 1
45317 _ACEOF
45318
45319     USES_CONTROLS=1
45320     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
45321 fi
45322
45323 if test "$wxUSE_TOGGLEBTN" = "yes"; then
45324     if test "$wxUSE_COCOA" = 1 ; then
45325         { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&5
45326 echo "$as_me: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&2;}
45327         wxUSE_TOGGLEBTN=no
45328     fi
45329
45330     if test "$wxUSE_TOGGLEBTN" = "yes"; then
45331         cat >>confdefs.h <<\_ACEOF
45332 #define wxUSE_TOGGLEBTN 1
45333 _ACEOF
45334
45335         USES_CONTROLS=1
45336     fi
45337 fi
45338
45339 if test "$wxUSE_TOOLBAR" = "yes"; then
45340     cat >>confdefs.h <<\_ACEOF
45341 #define wxUSE_TOOLBAR 1
45342 _ACEOF
45343
45344     USES_CONTROLS=1
45345
45346     if test "$wxUSE_UNIVERSAL" = "yes"; then
45347         wxUSE_TOOLBAR_NATIVE="no"
45348     else
45349         wxUSE_TOOLBAR_NATIVE="yes"
45350         cat >>confdefs.h <<\_ACEOF
45351 #define wxUSE_TOOLBAR_NATIVE 1
45352 _ACEOF
45353
45354     fi
45355
45356     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
45357 fi
45358
45359 if test "$wxUSE_TOOLTIPS" = "yes"; then
45360     if test "$wxUSE_MOTIF" = 1; then
45361         { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet under Motif... disabled" >&5
45362 echo "$as_me: WARNING: wxTooltip not supported yet under Motif... disabled" >&2;}
45363     else
45364         if test "$wxUSE_UNIVERSAL" = "yes"; then
45365             { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&5
45366 echo "$as_me: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&2;}
45367         else
45368             cat >>confdefs.h <<\_ACEOF
45369 #define wxUSE_TOOLTIPS 1
45370 _ACEOF
45371
45372         fi
45373     fi
45374 fi
45375
45376 if test "$wxUSE_TREEBOOK" = "yes"; then
45377     cat >>confdefs.h <<\_ACEOF
45378 #define wxUSE_TREEBOOK 1
45379 _ACEOF
45380
45381     USES_CONTROLS=1
45382 fi
45383
45384 if test "$wxUSE_TOOLBOOK" = "yes"; then
45385     cat >>confdefs.h <<\_ACEOF
45386 #define wxUSE_TOOLBOOK 1
45387 _ACEOF
45388
45389     USES_CONTROLS=1
45390 fi
45391
45392 if test "$wxUSE_TREECTRL" = "yes"; then
45393     if test "$wxUSE_IMAGLIST" = "yes"; then
45394         cat >>confdefs.h <<\_ACEOF
45395 #define wxUSE_TREECTRL 1
45396 _ACEOF
45397
45398         USES_CONTROLS=1
45399         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
45400     else
45401         { echo "$as_me:$LINENO: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&5
45402 echo "$as_me: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&2;}
45403     fi
45404 fi
45405
45406 if test "$wxUSE_POPUPWIN" = "yes"; then
45407     if test "$wxUSE_COCOA" = 1 ; then
45408         { echo "$as_me:$LINENO: WARNING: Popup window not yet supported under Mac OS X... disabled" >&5
45409 echo "$as_me: WARNING: Popup window not yet supported under Mac OS X... disabled" >&2;}
45410     else
45411         if test "$wxUSE_PM" = 1; then
45412             { echo "$as_me:$LINENO: WARNING: wxPopupWindow not yet supported under PM... disabled" >&5
45413 echo "$as_me: WARNING: wxPopupWindow not yet supported under PM... disabled" >&2;}
45414         else
45415             cat >>confdefs.h <<\_ACEOF
45416 #define wxUSE_POPUPWIN 1
45417 _ACEOF
45418
45419             SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS popup"
45420
45421             USES_CONTROLS=1
45422         fi
45423     fi
45424 fi
45425
45426 if test "$wxUSE_DIALUP_MANAGER" = "yes"; then
45427     if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 -o "$wxUSE_MGL" = 1; then
45428         { echo "$as_me:$LINENO: WARNING: Dialup manager not supported on this platform... disabled" >&5
45429 echo "$as_me: WARNING: Dialup manager not supported on this platform... disabled" >&2;}
45430     else
45431         cat >>confdefs.h <<\_ACEOF
45432 #define wxUSE_DIALUP_MANAGER 1
45433 _ACEOF
45434
45435         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
45436     fi
45437 fi
45438
45439 if test "$wxUSE_TIPWINDOW" = "yes"; then
45440     if test "$wxUSE_PM" = 1; then
45441         { echo "$as_me:$LINENO: WARNING: wxTipWindow not yet supported under PM... disabled" >&5
45442 echo "$as_me: WARNING: wxTipWindow not yet supported under PM... disabled" >&2;}
45443     else
45444         cat >>confdefs.h <<\_ACEOF
45445 #define wxUSE_TIPWINDOW 1
45446 _ACEOF
45447
45448     fi
45449 fi
45450
45451 if test "$USES_CONTROLS" = 1; then
45452     cat >>confdefs.h <<\_ACEOF
45453 #define wxUSE_CONTROLS 1
45454 _ACEOF
45455
45456 fi
45457
45458
45459 if test "$wxUSE_ACCESSIBILITY" = "yes"; then
45460     cat >>confdefs.h <<\_ACEOF
45461 #define wxUSE_ACCESSIBILITY 1
45462 _ACEOF
45463
45464     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS access"
45465 fi
45466
45467 if test "$wxUSE_DRAGIMAGE" = "yes"; then
45468     cat >>confdefs.h <<\_ACEOF
45469 #define wxUSE_DRAGIMAGE 1
45470 _ACEOF
45471
45472     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
45473 fi
45474
45475 if test "$wxUSE_EXCEPTIONS" = "yes"; then
45476     if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
45477         { echo "$as_me:$LINENO: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&5
45478 echo "$as_me: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&2;}
45479     else
45480         cat >>confdefs.h <<\_ACEOF
45481 #define wxUSE_EXCEPTIONS 1
45482 _ACEOF
45483
45484         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS except"
45485     fi
45486 fi
45487
45488 USE_HTML=0
45489 if test "$wxUSE_HTML" = "yes"; then
45490     cat >>confdefs.h <<\_ACEOF
45491 #define wxUSE_HTML 1
45492 _ACEOF
45493
45494     USE_HTML=1
45495     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html html/about html/help html/helpview html/printing html/test html/virtual html/widget html/zip htlbox"
45496     if test "$wxUSE_MAC" = 1; then
45497         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html/htmlctrl"
45498     fi
45499 fi
45500 if test "$wxUSE_WEBKIT" = "yes"; then
45501     if test "$wxUSE_MAC" = 1 -a "$USE_DARWIN" = 1; then
45502         old_CPPFLAGS="$CPPFLAGS"
45503         CPPFLAGS="-x objective-c++ $CPPFLAGS"
45504         { echo "$as_me:$LINENO: checking for WebKit/HIWebView.h" >&5
45505 echo $ECHO_N "checking for WebKit/HIWebView.h... $ECHO_C" >&6; }
45506 if test "${ac_cv_header_WebKit_HIWebView_h+set}" = set; then
45507   echo $ECHO_N "(cached) $ECHO_C" >&6
45508 else
45509   cat >conftest.$ac_ext <<_ACEOF
45510 /* confdefs.h.  */
45511 _ACEOF
45512 cat confdefs.h >>conftest.$ac_ext
45513 cat >>conftest.$ac_ext <<_ACEOF
45514 /* end confdefs.h.  */
45515
45516                            #include <Carbon/Carbon.h>
45517                            #include <WebKit/WebKit.h>
45518
45519
45520 #include <WebKit/HIWebView.h>
45521 _ACEOF
45522 rm -f conftest.$ac_objext
45523 if { (ac_try="$ac_compile"
45524 case "(($ac_try" in
45525   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45526   *) ac_try_echo=$ac_try;;
45527 esac
45528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45529   (eval "$ac_compile") 2>conftest.er1
45530   ac_status=$?
45531   grep -v '^ *+' conftest.er1 >conftest.err
45532   rm -f conftest.er1
45533   cat conftest.err >&5
45534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45535   (exit $ac_status); } && {
45536          test -z "$ac_c_werror_flag" ||
45537          test ! -s conftest.err
45538        } && test -s conftest.$ac_objext; then
45539   ac_cv_header_WebKit_HIWebView_h=yes
45540 else
45541   echo "$as_me: failed program was:" >&5
45542 sed 's/^/| /' conftest.$ac_ext >&5
45543
45544         ac_cv_header_WebKit_HIWebView_h=no
45545 fi
45546
45547 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45548 fi
45549 { echo "$as_me:$LINENO: result: $ac_cv_header_WebKit_HIWebView_h" >&5
45550 echo "${ECHO_T}$ac_cv_header_WebKit_HIWebView_h" >&6; }
45551 if test $ac_cv_header_WebKit_HIWebView_h = yes; then
45552
45553                            cat >>confdefs.h <<\_ACEOF
45554 #define wxUSE_WEBKIT 1
45555 _ACEOF
45556
45557                            WEBKIT_LINK="-framework WebKit"
45558
45559 else
45560
45561                            { echo "$as_me:$LINENO: WARNING: WebKit headers not found; disabling wxWebKit" >&5
45562 echo "$as_me: WARNING: WebKit headers not found; disabling wxWebKit" >&2;}
45563                            wxUSE_WEBKIT=no
45564
45565 fi
45566
45567
45568         CPPFLAGS="$old_CPPFLAGS"
45569     elif test "$wxUSE_COCOA" = 1; then
45570         cat >>confdefs.h <<\_ACEOF
45571 #define wxUSE_WEBKIT 1
45572 _ACEOF
45573
45574     else
45575         wxUSE_WEBKIT=no
45576     fi
45577 fi
45578
45579 USE_XRC=0
45580 if test "$wxUSE_XRC" = "yes"; then
45581     if test "$wxUSE_XML" != "yes"; then
45582         { echo "$as_me:$LINENO: WARNING: XML library not built, XRC resources disabled" >&5
45583 echo "$as_me: WARNING: XML library not built, XRC resources disabled" >&2;}
45584         wxUSE_XRC=no
45585     else
45586         cat >>confdefs.h <<\_ACEOF
45587 #define wxUSE_XRC 1
45588 _ACEOF
45589
45590         USE_XRC=1
45591         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS xrc"
45592     fi
45593 fi
45594
45595 USE_AUI=0
45596 if test "$wxUSE_AUI" = "yes"; then
45597    cat >>confdefs.h <<\_ACEOF
45598 #define wxUSE_AUI 1
45599 _ACEOF
45600
45601    USE_AUI=1
45602    SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS aui"
45603 fi
45604
45605 USE_STC=0
45606 if test "$wxUSE_STC" = "yes"; then
45607    cat >>confdefs.h <<\_ACEOF
45608 #define wxUSE_STC 1
45609 _ACEOF
45610
45611    USE_STC=1
45612    SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS stc"
45613 fi
45614
45615 if test "$wxUSE_MENUS" = "yes"; then
45616     cat >>confdefs.h <<\_ACEOF
45617 #define wxUSE_MENUS 1
45618 _ACEOF
45619
45620     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
45621 fi
45622
45623 if test "$wxUSE_METAFILE" = "yes"; then
45624     cat >>confdefs.h <<\_ACEOF
45625 #define wxUSE_METAFILE 1
45626 _ACEOF
45627
45628 fi
45629
45630 if test "$wxUSE_MIMETYPE" = "yes"; then
45631     cat >>confdefs.h <<\_ACEOF
45632 #define wxUSE_MIMETYPE 1
45633 _ACEOF
45634
45635 fi
45636
45637 if test "$wxUSE_MINIFRAME" = "yes"; then
45638     cat >>confdefs.h <<\_ACEOF
45639 #define wxUSE_MINIFRAME 1
45640 _ACEOF
45641
45642 fi
45643
45644 if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
45645     cat >>confdefs.h <<\_ACEOF
45646 #define wxUSE_SYSTEM_OPTIONS 1
45647 _ACEOF
45648
45649 fi
45650
45651 if test "$wxUSE_TASKBARICON" = "yes"; then
45652     cat >>confdefs.h <<\_ACEOF
45653 #define wxUSE_TASKBARICON 1
45654 _ACEOF
45655
45656     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar"
45657 fi
45658
45659
45660 if test "$wxUSE_VALIDATORS" = "yes"; then
45661     cat >>confdefs.h <<\_ACEOF
45662 #define wxUSE_VALIDATORS 1
45663 _ACEOF
45664
45665     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
45666 fi
45667
45668 if test "$wxUSE_PALETTE" = "yes" ; then
45669     if test "$wxUSE_DFB" = 1; then
45670         { echo "$as_me:$LINENO: WARNING: wxPalette not yet supported under DFB... disabled" >&5
45671 echo "$as_me: WARNING: wxPalette not yet supported under DFB... disabled" >&2;}
45672         wxUSE_PALETTE=no
45673     else
45674         cat >>confdefs.h <<\_ACEOF
45675 #define wxUSE_PALETTE 1
45676 _ACEOF
45677
45678     fi
45679 fi
45680
45681 if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then
45682     LIBS=" -lunicows $LIBS"
45683 fi
45684
45685 USE_RICHTEXT=0
45686 if test "$wxUSE_RICHTEXT" = "yes"; then
45687     cat >>confdefs.h <<\_ACEOF
45688 #define wxUSE_RICHTEXT 1
45689 _ACEOF
45690
45691     USE_RICHTEXT=1
45692     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS richtext"
45693 fi
45694
45695
45696 if test "$wxUSE_IMAGE" = "yes" ; then
45697     cat >>confdefs.h <<\_ACEOF
45698 #define wxUSE_IMAGE 1
45699 _ACEOF
45700
45701
45702     if test "$wxUSE_GIF" = "yes" ; then
45703       cat >>confdefs.h <<\_ACEOF
45704 #define wxUSE_GIF 1
45705 _ACEOF
45706
45707     fi
45708
45709     if test "$wxUSE_PCX" = "yes" ; then
45710       cat >>confdefs.h <<\_ACEOF
45711 #define wxUSE_PCX 1
45712 _ACEOF
45713
45714     fi
45715
45716     if test "$wxUSE_TGA" = "yes" ; then
45717       cat >>confdefs.h <<\_ACEOF
45718 #define wxUSE_TGA 1
45719 _ACEOF
45720
45721     fi
45722
45723     if test "$wxUSE_IFF" = "yes" ; then
45724       cat >>confdefs.h <<\_ACEOF
45725 #define wxUSE_IFF 1
45726 _ACEOF
45727
45728     fi
45729
45730     if test "$wxUSE_PNM" = "yes" ; then
45731       cat >>confdefs.h <<\_ACEOF
45732 #define wxUSE_PNM 1
45733 _ACEOF
45734
45735     fi
45736
45737     if test "$wxUSE_XPM" = "yes" ; then
45738       cat >>confdefs.h <<\_ACEOF
45739 #define wxUSE_XPM 1
45740 _ACEOF
45741
45742     fi
45743
45744     if test "$wxUSE_ICO_CUR" = "yes" ; then
45745       cat >>confdefs.h <<\_ACEOF
45746 #define wxUSE_ICO_CUR 1
45747 _ACEOF
45748
45749     fi
45750 fi
45751
45752
45753 if test "$wxUSE_ABOUTDLG" = "yes"; then
45754     cat >>confdefs.h <<\_ACEOF
45755 #define wxUSE_ABOUTDLG 1
45756 _ACEOF
45757
45758 fi
45759
45760 if test "$wxUSE_CHOICEDLG" = "yes"; then
45761     cat >>confdefs.h <<\_ACEOF
45762 #define wxUSE_CHOICEDLG 1
45763 _ACEOF
45764
45765 fi
45766
45767 if test "$wxUSE_COLOURDLG" = "yes"; then
45768     cat >>confdefs.h <<\_ACEOF
45769 #define wxUSE_COLOURDLG 1
45770 _ACEOF
45771
45772 fi
45773
45774 if test "$wxUSE_FILEDLG" = "yes"; then
45775     cat >>confdefs.h <<\_ACEOF
45776 #define wxUSE_FILEDLG 1
45777 _ACEOF
45778
45779 fi
45780
45781 if test "$wxUSE_FINDREPLDLG" = "yes"; then
45782     cat >>confdefs.h <<\_ACEOF
45783 #define wxUSE_FINDREPLDLG 1
45784 _ACEOF
45785
45786 fi
45787
45788 if test "$wxUSE_FONTDLG" = "yes"; then
45789     cat >>confdefs.h <<\_ACEOF
45790 #define wxUSE_FONTDLG 1
45791 _ACEOF
45792
45793 fi
45794
45795 if test "$wxUSE_DIRDLG" = "yes"; then
45796     if test "$wxUSE_TREECTRL" != "yes"; then
45797         { echo "$as_me:$LINENO: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&5
45798 echo "$as_me: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&2;}
45799     else
45800         cat >>confdefs.h <<\_ACEOF
45801 #define wxUSE_DIRDLG 1
45802 _ACEOF
45803
45804     fi
45805 fi
45806
45807 if test "$wxUSE_MSGDLG" = "yes"; then
45808     cat >>confdefs.h <<\_ACEOF
45809 #define wxUSE_MSGDLG 1
45810 _ACEOF
45811
45812 fi
45813
45814 if test "$wxUSE_NUMBERDLG" = "yes"; then
45815     cat >>confdefs.h <<\_ACEOF
45816 #define wxUSE_NUMBERDLG 1
45817 _ACEOF
45818
45819 fi
45820
45821 if test "$wxUSE_PROGRESSDLG" = "yes"; then
45822     if test "$wxUSE_CONSTRAINTS" != "yes"; then
45823        { echo "$as_me:$LINENO: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&5
45824 echo "$as_me: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&2;}
45825     else
45826         cat >>confdefs.h <<\_ACEOF
45827 #define wxUSE_PROGRESSDLG 1
45828 _ACEOF
45829
45830     fi
45831 fi
45832
45833 if test "$wxUSE_SPLASH" = "yes"; then
45834     cat >>confdefs.h <<\_ACEOF
45835 #define wxUSE_SPLASH 1
45836 _ACEOF
45837
45838     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splash"
45839 fi
45840
45841 if test "$wxUSE_STARTUP_TIPS" = "yes"; then
45842     if test "$wxUSE_CONSTRAINTS" != "yes"; then
45843        { echo "$as_me:$LINENO: WARNING: Startup tips requires constraints and won't be compiled without them" >&5
45844 echo "$as_me: WARNING: Startup tips requires constraints and won't be compiled without them" >&2;}
45845     else
45846         cat >>confdefs.h <<\_ACEOF
45847 #define wxUSE_STARTUP_TIPS 1
45848 _ACEOF
45849
45850     fi
45851 fi
45852
45853 if test "$wxUSE_TEXTDLG" = "yes"; then
45854     cat >>confdefs.h <<\_ACEOF
45855 #define wxUSE_TEXTDLG 1
45856 _ACEOF
45857
45858 fi
45859
45860 if test "$wxUSE_WIZARDDLG" = "yes"; then
45861     cat >>confdefs.h <<\_ACEOF
45862 #define wxUSE_WIZARDDLG 1
45863 _ACEOF
45864
45865     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
45866 fi
45867
45868
45869 if test "$wxUSE_MSW" = 1 -o "$wxUSE_PM" = 1; then
45870     if test "$wxUSE_OWNER_DRAWN" = "yes"; then
45871         cat >>confdefs.h <<\_ACEOF
45872 #define wxUSE_OWNER_DRAWN 1
45873 _ACEOF
45874
45875     fi
45876 fi
45877
45878
45879 if test "$wxUSE_MSW" = 1 ; then
45880
45881     if test "$wxUSE_DC_CACHEING" = "yes"; then
45882         cat >>confdefs.h <<\_ACEOF
45883 #define wxUSE_DC_CACHEING 1
45884 _ACEOF
45885
45886     fi
45887
45888     if test "$wxUSE_DIB" = "yes"; then
45889         cat >>confdefs.h <<\_ACEOF
45890 #define wxUSE_WXDIB 1
45891 _ACEOF
45892
45893     fi
45894
45895     if test "$wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW" = "yes"; then
45896         cat >>confdefs.h <<\_ACEOF
45897 #define wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW 1
45898 _ACEOF
45899
45900     fi
45901
45902     if test "$wxUSE_UXTHEME" = "yes"; then
45903         cat >>confdefs.h <<\_ACEOF
45904 #define wxUSE_UXTHEME 1
45905 _ACEOF
45906
45907     fi
45908
45909 fi
45910
45911 if test "$wxUSE_AUTOID_MANAGEMENT" = "yes"; then
45912     cat >>confdefs.h <<\_ACEOF
45913 #define wxUSE_AUTOID_MANAGEMENT 1
45914 _ACEOF
45915
45916 fi
45917
45918 if test "$USE_WIN32" = 1 ; then
45919     if test "$wxUSE_INICONF" = "yes"; then
45920         cat >>confdefs.h <<\_ACEOF
45921 #define wxUSE_INICONF 1
45922 _ACEOF
45923
45924     fi
45925
45926     if test "$wxUSE_REGKEY" = "yes"; then
45927         cat >>confdefs.h <<\_ACEOF
45928 #define wxUSE_REGKEY 1
45929 _ACEOF
45930
45931     fi
45932 fi
45933
45934
45935 if test "$wxUSE_GRAPHICS_CONTEXT" = "yes"; then
45936    if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1; then
45937       cat >>confdefs.h <<\_ACEOF
45938 #define wxUSE_GRAPHICS_CONTEXT 1
45939 _ACEOF
45940
45941    elif test "$wxUSE_GTK" != 1; then
45942             cat >>confdefs.h <<\_ACEOF
45943 #define wxUSE_GRAPHICS_CONTEXT 1
45944 _ACEOF
45945
45946    else
45947
45948 pkg_failed=no
45949 { echo "$as_me:$LINENO: checking for CAIRO" >&5
45950 echo $ECHO_N "checking for CAIRO... $ECHO_C" >&6; }
45951
45952 if test -n "$PKG_CONFIG"; then
45953     if test -n "$CAIRO_CFLAGS"; then
45954         pkg_cv_CAIRO_CFLAGS="$CAIRO_CFLAGS"
45955     else
45956         if test -n "$PKG_CONFIG" && \
45957     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"cairo\"") >&5
45958   ($PKG_CONFIG --exists --print-errors "cairo") 2>&5
45959   ac_status=$?
45960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45961   (exit $ac_status); }; then
45962   pkg_cv_CAIRO_CFLAGS=`$PKG_CONFIG --cflags "cairo" 2>/dev/null`
45963 else
45964   pkg_failed=yes
45965 fi
45966     fi
45967 else
45968         pkg_failed=untried
45969 fi
45970 if test -n "$PKG_CONFIG"; then
45971     if test -n "$CAIRO_LIBS"; then
45972         pkg_cv_CAIRO_LIBS="$CAIRO_LIBS"
45973     else
45974         if test -n "$PKG_CONFIG" && \
45975     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"cairo\"") >&5
45976   ($PKG_CONFIG --exists --print-errors "cairo") 2>&5
45977   ac_status=$?
45978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45979   (exit $ac_status); }; then
45980   pkg_cv_CAIRO_LIBS=`$PKG_CONFIG --libs "cairo" 2>/dev/null`
45981 else
45982   pkg_failed=yes
45983 fi
45984     fi
45985 else
45986         pkg_failed=untried
45987 fi
45988
45989
45990
45991 if test $pkg_failed = yes; then
45992
45993 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
45994         _pkg_short_errors_supported=yes
45995 else
45996         _pkg_short_errors_supported=no
45997 fi
45998         if test $_pkg_short_errors_supported = yes; then
45999                 CAIRO_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cairo"`
46000         else
46001                 CAIRO_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cairo"`
46002         fi
46003         # Put the nasty error message in config.log where it belongs
46004         echo "$CAIRO_PKG_ERRORS" >&5
46005
46006         { echo "$as_me:$LINENO: WARNING: Cairo library not found, unable to set wxUSE_GRAPHICS_CONTEXT" >&5
46007 echo "$as_me: WARNING: Cairo library not found, unable to set wxUSE_GRAPHICS_CONTEXT" >&2;}
46008
46009 elif test $pkg_failed = untried; then
46010         { echo "$as_me:$LINENO: WARNING: Cairo library not found, unable to set wxUSE_GRAPHICS_CONTEXT" >&5
46011 echo "$as_me: WARNING: Cairo library not found, unable to set wxUSE_GRAPHICS_CONTEXT" >&2;}
46012
46013 else
46014         CAIRO_CFLAGS=$pkg_cv_CAIRO_CFLAGS
46015         CAIRO_LIBS=$pkg_cv_CAIRO_LIBS
46016         { echo "$as_me:$LINENO: result: yes" >&5
46017 echo "${ECHO_T}yes" >&6; }
46018         cat >>confdefs.h <<\_ACEOF
46019 #define wxUSE_GRAPHICS_CONTEXT 1
46020 _ACEOF
46021
46022 fi
46023    fi
46024 fi
46025
46026
46027 USE_MEDIA=0
46028
46029 if test "$wxUSE_MEDIACTRL" = "yes"; then
46030     USE_MEDIA=1
46031
46032                 if test "$wxUSE_GTK" = 1; then
46033         wxUSE_GSTREAMER="no"
46034
46035                                                                 GST_VERSION_MAJOR=0
46036         GST_VERSION_MINOR=10
46037         GST_VERSION=$GST_VERSION_MAJOR.$GST_VERSION_MINOR
46038
46039         if test "$wxUSE_GSTREAMER8" = "no"; then
46040
46041 pkg_failed=no
46042 { echo "$as_me:$LINENO: checking for GST" >&5
46043 echo $ECHO_N "checking for GST... $ECHO_C" >&6; }
46044
46045 if test -n "$PKG_CONFIG"; then
46046     if test -n "$GST_CFLAGS"; then
46047         pkg_cv_GST_CFLAGS="$GST_CFLAGS"
46048     else
46049         if test -n "$PKG_CONFIG" && \
46050     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gstreamer-\$GST_VERSION gstreamer-plugins-base-\$GST_VERSION gconf-2.0\"") >&5
46051   ($PKG_CONFIG --exists --print-errors "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0") 2>&5
46052   ac_status=$?
46053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46054   (exit $ac_status); }; then
46055   pkg_cv_GST_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0" 2>/dev/null`
46056 else
46057   pkg_failed=yes
46058 fi
46059     fi
46060 else
46061         pkg_failed=untried
46062 fi
46063 if test -n "$PKG_CONFIG"; then
46064     if test -n "$GST_LIBS"; then
46065         pkg_cv_GST_LIBS="$GST_LIBS"
46066     else
46067         if test -n "$PKG_CONFIG" && \
46068     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gstreamer-\$GST_VERSION gstreamer-plugins-base-\$GST_VERSION gconf-2.0\"") >&5
46069   ($PKG_CONFIG --exists --print-errors "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0") 2>&5
46070   ac_status=$?
46071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46072   (exit $ac_status); }; then
46073   pkg_cv_GST_LIBS=`$PKG_CONFIG --libs "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0" 2>/dev/null`
46074 else
46075   pkg_failed=yes
46076 fi
46077     fi
46078 else
46079         pkg_failed=untried
46080 fi
46081
46082
46083
46084 if test $pkg_failed = yes; then
46085
46086 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
46087         _pkg_short_errors_supported=yes
46088 else
46089         _pkg_short_errors_supported=no
46090 fi
46091         if test $_pkg_short_errors_supported = yes; then
46092                 GST_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0"`
46093         else
46094                 GST_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0"`
46095         fi
46096         # Put the nasty error message in config.log where it belongs
46097         echo "$GST_PKG_ERRORS" >&5
46098
46099
46100                     { echo "$as_me:$LINENO: WARNING: GStreamer 0.10 not available, falling back to 0.8" >&5
46101 echo "$as_me: WARNING: GStreamer 0.10 not available, falling back to 0.8" >&2;}
46102                     GST_VERSION_MINOR=8
46103
46104
46105 elif test $pkg_failed = untried; then
46106
46107                     { echo "$as_me:$LINENO: WARNING: GStreamer 0.10 not available, falling back to 0.8" >&5
46108 echo "$as_me: WARNING: GStreamer 0.10 not available, falling back to 0.8" >&2;}
46109                     GST_VERSION_MINOR=8
46110
46111
46112 else
46113         GST_CFLAGS=$pkg_cv_GST_CFLAGS
46114         GST_LIBS=$pkg_cv_GST_LIBS
46115         { echo "$as_me:$LINENO: result: yes" >&5
46116 echo "${ECHO_T}yes" >&6; }
46117
46118                     wxUSE_GSTREAMER="yes"
46119                     GST_LIBS="$GST_LIBS -lgstinterfaces-$GST_VERSION"
46120
46121 fi
46122         else
46123                         GST_VERSION_MINOR=8
46124         fi
46125
46126         if test $GST_VERSION_MINOR = "8"; then
46127             GST_VERSION=$GST_VERSION_MAJOR.$GST_VERSION_MINOR
46128
46129 pkg_failed=no
46130 { echo "$as_me:$LINENO: checking for GST" >&5
46131 echo $ECHO_N "checking for GST... $ECHO_C" >&6; }
46132
46133 if test -n "$PKG_CONFIG"; then
46134     if test -n "$GST_CFLAGS"; then
46135         pkg_cv_GST_CFLAGS="$GST_CFLAGS"
46136     else
46137         if test -n "$PKG_CONFIG" && \
46138     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gstreamer-\$GST_VERSION gstreamer-interfaces-\$GST_VERSION gstreamer-gconf-\$GST_VERSION\"") >&5
46139   ($PKG_CONFIG --exists --print-errors "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION") 2>&5
46140   ac_status=$?
46141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46142   (exit $ac_status); }; then
46143   pkg_cv_GST_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION" 2>/dev/null`
46144 else
46145   pkg_failed=yes
46146 fi
46147     fi
46148 else
46149         pkg_failed=untried
46150 fi
46151 if test -n "$PKG_CONFIG"; then
46152     if test -n "$GST_LIBS"; then
46153         pkg_cv_GST_LIBS="$GST_LIBS"
46154     else
46155         if test -n "$PKG_CONFIG" && \
46156     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gstreamer-\$GST_VERSION gstreamer-interfaces-\$GST_VERSION gstreamer-gconf-\$GST_VERSION\"") >&5
46157   ($PKG_CONFIG --exists --print-errors "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION") 2>&5
46158   ac_status=$?
46159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46160   (exit $ac_status); }; then
46161   pkg_cv_GST_LIBS=`$PKG_CONFIG --libs "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION" 2>/dev/null`
46162 else
46163   pkg_failed=yes
46164 fi
46165     fi
46166 else
46167         pkg_failed=untried
46168 fi
46169
46170
46171
46172 if test $pkg_failed = yes; then
46173
46174 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
46175         _pkg_short_errors_supported=yes
46176 else
46177         _pkg_short_errors_supported=no
46178 fi
46179         if test $_pkg_short_errors_supported = yes; then
46180                 GST_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION"`
46181         else
46182                 GST_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION"`
46183         fi
46184         # Put the nasty error message in config.log where it belongs
46185         echo "$GST_PKG_ERRORS" >&5
46186
46187
46188                     { echo "$as_me:$LINENO: WARNING: GStreamer 0.8/0.10 not available." >&5
46189 echo "$as_me: WARNING: GStreamer 0.8/0.10 not available." >&2;}
46190
46191 elif test $pkg_failed = untried; then
46192
46193                     { echo "$as_me:$LINENO: WARNING: GStreamer 0.8/0.10 not available." >&5
46194 echo "$as_me: WARNING: GStreamer 0.8/0.10 not available." >&2;}
46195
46196 else
46197         GST_CFLAGS=$pkg_cv_GST_CFLAGS
46198         GST_LIBS=$pkg_cv_GST_LIBS
46199         { echo "$as_me:$LINENO: result: yes" >&5
46200 echo "${ECHO_T}yes" >&6; }
46201         wxUSE_GSTREAMER="yes"
46202 fi
46203         fi
46204
46205
46206         if test "$wxUSE_GSTREAMER" = "yes"; then
46207             CPPFLAGS="$GST_CFLAGS $CPPFLAGS"
46208             EXTRALIBS_MEDIA="$GST_LIBS"
46209
46210             cat >>confdefs.h <<\_ACEOF
46211 #define wxUSE_GSTREAMER 1
46212 _ACEOF
46213
46214         else
46215             USE_MEDIA=0
46216         fi
46217     fi
46218
46219     if test $USE_MEDIA = 1; then
46220         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mediaplayer"
46221         cat >>confdefs.h <<\_ACEOF
46222 #define wxUSE_MEDIACTRL 1
46223 _ACEOF
46224
46225     fi
46226 fi
46227
46228
46229 if test "$cross_compiling" = "yes"; then
46230         OSINFO="\"$host\""
46231 else
46232         OSINFO=`uname -s -r -m`
46233     OSINFO="\"$OSINFO\""
46234 fi
46235
46236 cat >>confdefs.h <<_ACEOF
46237 #define WXWIN_OS_DESCRIPTION $OSINFO
46238 _ACEOF
46239
46240
46241
46242 if test "x$prefix" != "xNONE"; then
46243     wxPREFIX=$prefix
46244 else
46245     wxPREFIX=$ac_default_prefix
46246 fi
46247
46248 cat >>confdefs.h <<_ACEOF
46249 #define wxINSTALL_PREFIX "$wxPREFIX"
46250 _ACEOF
46251
46252
46253
46254
46255 STD_BASE_LIBS="base"
46256 STD_GUI_LIBS=""
46257 BUILT_WX_LIBS="base"
46258 ALL_WX_LIBS="xrc stc gl media qa html adv core xml net base"
46259
46260 if test "$wxUSE_SOCKETS" = "yes" ; then
46261     STD_BASE_LIBS="net $STD_BASE_LIBS"
46262     BUILT_WX_LIBS="net $BUILT_WX_LIBS"
46263 fi
46264 if test "$wxUSE_XML" = "yes" ; then
46265     STD_BASE_LIBS="xml $STD_BASE_LIBS"
46266     BUILT_WX_LIBS="xml $BUILT_WX_LIBS"
46267 fi
46268
46269 if test "$wxUSE_GUI" = "yes"; then
46270     STD_GUI_LIBS="adv core"
46271     BUILT_WX_LIBS="$STD_GUI_LIBS $BUILT_WX_LIBS"
46272
46273     if test "$wxUSE_DEBUGREPORT" = "yes" ; then
46274         STD_GUI_LIBS="qa $STD_GUI_LIBS"
46275         BUILT_WX_LIBS="qa $BUILT_WX_LIBS"
46276     fi
46277     if test "$wxUSE_HTML" = "yes" ; then
46278         STD_GUI_LIBS="html $STD_GUI_LIBS"
46279         BUILT_WX_LIBS="html $BUILT_WX_LIBS"
46280     fi
46281     if test "$wxUSE_MEDIACTRL" = "yes" ; then
46282         BUILT_WX_LIBS="media $BUILT_WX_LIBS"
46283     fi
46284     if test "$wxUSE_OPENGL" = "yes" ; then
46285         BUILT_WX_LIBS="gl $BUILT_WX_LIBS"
46286     fi
46287     if test "$wxUSE_AUI" = "yes" ; then
46288         BUILT_WX_LIBS="aui $BUILT_WX_LIBS"
46289     fi
46290     if test "$wxUSE_STC" = "yes" ; then
46291         BUILT_WX_LIBS="stc $BUILT_WX_LIBS"
46292     fi
46293     if test "$wxUSE_XRC" = "yes" ; then
46294         STD_GUI_LIBS="xrc $STD_GUI_LIBS"
46295         BUILT_WX_LIBS="xrc $BUILT_WX_LIBS"
46296     fi
46297 fi
46298
46299
46300
46301
46302
46303
46304
46305
46306 if test "$wxUSE_MAC" = 1 ; then
46307     if test "$wxUSE_SOUND" = "yes" || test "$wxUSE_MEDIACTRL" = "yes"; then
46308         if test "$USE_DARWIN" = 1; then
46309             LDFLAGS="$LDFLAGS -framework QuickTime"
46310         else
46311             LDFLAGS="$LDFLAGS -lQuickTimeLib"
46312         fi
46313     fi
46314     if test "$USE_DARWIN" = 1; then
46315         LDFLAGS="$LDFLAGS -framework IOKit -framework Carbon -framework Cocoa -framework System"
46316     else
46317         LDFLAGS="$LDFLAGS -lCarbonLib"
46318     fi
46319 fi
46320 if test "$wxUSE_COCOA" = 1 ; then
46321     LDFLAGS="$LDFLAGS -framework IOKit -framework Cocoa"
46322     if test "$wxUSE_MEDIACTRL" = "yes"; then
46323         LDFLAGS="$LDFLAGS -framework QuickTime"
46324     fi
46325 fi
46326 if test "$USE_DARWIN" = 1 -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1 ; then
46327     LDFLAGS="$LDFLAGS -framework IOKit -framework CoreServices -framework System -framework ApplicationServices"
46328 fi
46329
46330 LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK $LIBS"
46331
46332 if test "$wxUSE_GUI" = "yes"; then
46333
46334
46335         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs drawing \
46336                      erase event exec font image minimal mobile \
46337                      mobile/wxedit mobile/styles render \
46338                      shaped svg taborder vscroll widgets"
46339
46340     if test "$wxUSE_MONOLITHIC" != "yes"; then
46341         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS console"
46342     fi
46343     if test "$TOOLKIT" = "MSW"; then
46344         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS regtest"
46345         if test "$wxUSE_UNIVERSAL" != "yes"; then
46346             SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ownerdrw nativdlg"
46347         fi
46348     fi
46349     if test "$TOOLKIT" = "PM" -a "$wxUSE_UNIVERSAL" != "yes"; then
46350         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ownerdrw"
46351     fi
46352 else
46353     SAMPLES_SUBDIRS="console"
46354     if test "$wxUSE_SOCKETS" = "yes" ; then
46355         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
46356     fi
46357 fi
46358
46359
46360 if test "x$INTELCC" = "xyes" ; then
46361                                         CWARNINGS="-Wall -wd810,869,981,1418,1572,1684"
46362 elif test "$GCC" = yes ; then
46363     CWARNINGS="-Wall -Wundef"
46364 fi
46365
46366 if test "x$INTELCXX" = "xyes" ; then
46367                                                             CXXWARNINGS="-Wall -wd279,383,444,810,869,981,1418,1419"
46368 elif test "$GXX" = yes ; then
46369         CXXWARNINGS="-Wall -Wundef -Wunused-parameter -Wno-ctor-dtor-privacy"
46370 fi
46371
46372
46373 WXCONFIG_CFLAGS=`echo $WXCONFIG_CFLAGS`
46374 WXCONFIG_CXXFLAGS=`echo $WXCONFIG_CFLAGS $WXCONFIG_CXXFLAGS`
46375
46376
46377 CPPFLAGS=`echo $WXCONFIG_CPPFLAGS \
46378  -I\\${wx_top_builddir}/lib/wx/include/${TOOLCHAIN_FULLNAME} \
46379  -I\\${top_srcdir}/include $TOOLKIT_INCLUDE \
46380  $CPPFLAGS `
46381
46382 C_AND_CXX_FLAGS="$DEBUG_CFLAGS $PROFILE_FLAGS $OPTIMISE_CFLAGS"
46383 CFLAGS=`echo $WXCONFIG_CFLAGS $CWARNINGS $C_AND_CXX_FLAGS $CFLAGS `
46384 CXXFLAGS=`echo $WXCONFIG_CXXFLAGS $C_AND_CXX_FLAGS $CXXFLAGS `
46385
46386 WXCONFIG_CPPFLAGS=`echo $WXCONFIG_CPPFLAGS $WXCONFIG_ONLY_CPPFLAGS`
46387
46388
46389 if test "x$MWCC" = "xyes"; then
46390
46391             CC="$CC -cwd source -I-"
46392     CXX="$CXX -cwd source -I-"
46393 fi
46394
46395
46396 LIBS=`echo $LIBS`
46397 EXTRALIBS="$LDFLAGS $LDFLAGS_VERSIONING $LIBS $DMALLOC_LIBS"
46398 EXTRALIBS_XML="$EXPAT_LINK"
46399 EXTRALIBS_HTML="$MSPACK_LINK"
46400 EXTRALIBS_MEDIA="$GST_LIBS"
46401 EXTRALIBS_STC="-lwxscintilla${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}${HOST_SUFFIX}"
46402 if test "$wxUSE_GUI" = "yes"; then
46403     EXTRALIBS_GUI=`echo $GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK $WEBKIT_LINK $EXTRALIBS_HILDON $EXTRALIBS_GNOMEVFS $EXTRALIBS_GNOMEPRINT`
46404 fi
46405 if test "$wxUSE_OPENGL" = "yes"; then
46406     EXTRALIBS_OPENGL="$LDFLAGS_GL $OPENGL_LIBS"
46407 fi
46408
46409 LDFLAGS="$LDFLAGS $PROFILE_FLAGS"
46410
46411 WXCONFIG_LIBS="$LIBS"
46412
46413 if test "$wxUSE_REGEX" = "builtin" ; then
46414     wxconfig_3rdparty="regex${lib_unicode_suffix} $wxconfig_3rdparty"
46415 fi
46416 if test "$wxUSE_EXPAT" = "builtin" ; then
46417     wxconfig_3rdparty="expat $wxconfig_3rdparty"
46418 fi
46419 if test "$wxUSE_LIBTIFF" = "builtin" ; then
46420     wxconfig_3rdparty="tiff $wxconfig_3rdparty"
46421 fi
46422 if test "$wxUSE_LIBJPEG" = "builtin" ; then
46423     wxconfig_3rdparty="jpeg $wxconfig_3rdparty"
46424 fi
46425 if test "$wxUSE_LIBPNG" = "builtin" ; then
46426     wxconfig_3rdparty="png $wxconfig_3rdparty"
46427 fi
46428 if test "$wxUSE_ZLIB" = "builtin" ; then
46429     wxconfig_3rdparty="zlib $wxconfig_3rdparty"
46430 fi
46431
46432 for i in $wxconfig_3rdparty ; do
46433     WXCONFIG_LIBS="-lwx${i}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}${HOST_SUFFIX} $WXCONFIG_LIBS"
46434 done
46435
46436
46437 if test "x$wxUSE_UNIVERSAL" = "xyes" ; then
46438     WXUNIV=1
46439
46440     case "$wxUNIV_THEMES" in
46441         ''|all)
46442             cat >>confdefs.h <<\_ACEOF
46443 #define wxUSE_ALL_THEMES 1
46444 _ACEOF
46445
46446             ;;
46447
46448         *)
46449             for t in `echo $wxUNIV_THEMES | tr , ' ' | tr '[a-z]' '[A-Z]'`; do
46450                 cat >>confdefs.h <<_ACEOF
46451 #define wxUSE_THEME_$t 1
46452 _ACEOF
46453
46454             done
46455     esac
46456 else
46457     WXUNIV=0
46458 fi
46459
46460
46461
46462
46463
46464
46465
46466
46467 if test $wxUSE_MONOLITHIC = "yes" ; then
46468     MONOLITHIC=1
46469 else
46470     MONOLITHIC=0
46471 fi
46472
46473 if test $wxUSE_PLUGINS = "yes" ; then
46474     USE_PLUGINS=1
46475 else
46476     USE_PLUGINS=0
46477 fi
46478
46479 if test "$wxUSE_DEBUGREPORT" = "yes" ; then
46480     USE_QA=1
46481 else
46482     USE_QA=0
46483 fi
46484
46485 if test $wxUSE_OFFICIAL_BUILD = "yes" ; then
46486     OFFICIAL_BUILD=1
46487 else
46488     OFFICIAL_BUILD=0
46489 fi
46490
46491
46492
46493
46494
46495
46496
46497
46498
46499
46500
46501
46502
46503
46504
46505
46506
46507
46508
46509
46510
46511
46512
46513
46514
46515
46516
46517 TOOLKIT_LOWERCASE=`echo $TOOLKIT | tr '[A-Z]' '[a-z]'`
46518
46519
46520
46521
46522
46523
46524
46525
46526 case "$TOOLKIT" in
46527     GTK)
46528         TOOLKIT_DESC="GTK+"
46529         if test "$WXGTK2" = 1; then
46530             TOOLKIT_DESC="$TOOLKIT_DESC 2"
46531             if test "$wxUSE_GTKPRINT" = "yes" ; then
46532                 TOOLKIT_EXTRA="$TOOLKIT_EXTRA GTK+ printing";
46533             fi
46534             if test "$wxUSE_LIBGNOMEPRINT" = "yes" ; then
46535                 TOOLKIT_EXTRA="$TOOLKIT_EXTRA gnomeprint";
46536             fi
46537             if test "$wxUSE_LIBGNOMEVFS" = "yes" ; then
46538                 TOOLKIT_EXTRA="$TOOLKIT_EXTRA gnomevfs"
46539             fi
46540             if test "$wxUSE_LIBHILDON" = "yes"; then
46541                 TOOLKIT_EXTRA="$TOOLKIT_EXTRA hildon"
46542             fi
46543
46544             if test "$TOOLKIT_EXTRA" != ""; then
46545                 TOOLKIT_DESC="$TOOLKIT_DESC with support for `echo $TOOLKIT_EXTRA | tr -s ' '`"
46546             fi
46547         fi
46548         ;;
46549
46550     ?*)
46551         TOOLKIT_DESC=$TOOLKIT_LOWERCASE
46552         ;;
46553
46554     *)
46555         TOOLKIT_DESC="base only"
46556         ;;
46557 esac
46558
46559 if test "$wxUSE_WINE" = "yes"; then
46560     BAKEFILE_FORCE_PLATFORM=win32
46561 fi
46562
46563 if test "$wxUSE_UNICODE" = yes -a "$GCC" = yes -a "$bk_use_pch" != no
46564 then
46565     { echo "$as_me:$LINENO: checking for gcc precompiled header bug" >&5
46566 echo $ECHO_N "checking for gcc precompiled header bug... $ECHO_C" >&6; }
46567 if test "${wx_cv_gcc_pch_bug+set}" = set; then
46568   echo $ECHO_N "(cached) $ECHO_C" >&6
46569 else
46570
46571             echo '#include <stdio.h>
46572                   const wchar_t test_var[] = L"awidetest";' > conftest.h
46573
46574             echo '#include "conftest.h"
46575                   int main()
46576                   {
46577                      printf("%ls", test_var);
46578                      return 0;
46579                   }' > conftest.cpp
46580
46581             wx_cv_gcc_pch_bug="pch not supported"
46582
46583             if $CXX conftest.h >/dev/null 2>&1
46584             then
46585                 wx_cv_gcc_pch_bug=
46586
46587                 if $CXX -o conftest$PROGRAM_EXT conftest.cpp >/dev/null 2>&1
46588                 then
46589                     if tr -dc '[a-z]' < conftest$PROGRAM_EXT |
46590                         grep awidetest >/dev/null
46591                     then
46592                         wx_cv_gcc_pch_bug=no
46593                     else
46594                         wx_cv_gcc_pch_bug=yes
46595                     fi
46596                 fi
46597             fi
46598
46599             rm -f conftest.h conftest.gch conftest.cpp conftest$PROGRAM_EXT
46600
46601 fi
46602 { echo "$as_me:$LINENO: result: $wx_cv_gcc_pch_bug" >&5
46603 echo "${ECHO_T}$wx_cv_gcc_pch_bug" >&6; }
46604
46605     if test "$wx_cv_gcc_pch_bug" = yes; then
46606                         bk_use_pch=no
46607     fi
46608 fi
46609
46610
46611
46612
46613     if test "x$BAKEFILE_HOST" = "x"; then
46614                if test "x${host}" = "x" ; then
46615                        { { echo "$as_me:$LINENO: error: You must call the autoconf \"CANONICAL_HOST\" macro in your configure.ac (or .in) file." >&5
46616 echo "$as_me: error: You must call the autoconf \"CANONICAL_HOST\" macro in your configure.ac (or .in) file." >&2;}
46617    { (exit 1); exit 1; }; }
46618                fi
46619
46620         BAKEFILE_HOST="${host}"
46621     fi
46622
46623     if test "x$BAKEFILE_CHECK_BASICS" != "xno"; then
46624
46625     if test -n "$ac_tool_prefix"; then
46626   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
46627 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
46628 { echo "$as_me:$LINENO: checking for $ac_word" >&5
46629 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
46630 if test "${ac_cv_prog_RANLIB+set}" = set; then
46631   echo $ECHO_N "(cached) $ECHO_C" >&6
46632 else
46633   if test -n "$RANLIB"; then
46634   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
46635 else
46636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
46637 for as_dir in $PATH
46638 do
46639   IFS=$as_save_IFS
46640   test -z "$as_dir" && as_dir=.
46641   for ac_exec_ext in '' $ac_executable_extensions; do
46642   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
46643     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
46644     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
46645     break 2
46646   fi
46647 done
46648 done
46649 IFS=$as_save_IFS
46650
46651 fi
46652 fi
46653 RANLIB=$ac_cv_prog_RANLIB
46654 if test -n "$RANLIB"; then
46655   { echo "$as_me:$LINENO: result: $RANLIB" >&5
46656 echo "${ECHO_T}$RANLIB" >&6; }
46657 else
46658   { echo "$as_me:$LINENO: result: no" >&5
46659 echo "${ECHO_T}no" >&6; }
46660 fi
46661
46662
46663 fi
46664 if test -z "$ac_cv_prog_RANLIB"; then
46665   ac_ct_RANLIB=$RANLIB
46666   # Extract the first word of "ranlib", so it can be a program name with args.
46667 set dummy ranlib; ac_word=$2
46668 { echo "$as_me:$LINENO: checking for $ac_word" >&5
46669 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
46670 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
46671   echo $ECHO_N "(cached) $ECHO_C" >&6
46672 else
46673   if test -n "$ac_ct_RANLIB"; then
46674   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
46675 else
46676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
46677 for as_dir in $PATH
46678 do
46679   IFS=$as_save_IFS
46680   test -z "$as_dir" && as_dir=.
46681   for ac_exec_ext in '' $ac_executable_extensions; do
46682   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
46683     ac_cv_prog_ac_ct_RANLIB="ranlib"
46684     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
46685     break 2
46686   fi
46687 done
46688 done
46689 IFS=$as_save_IFS
46690
46691 fi
46692 fi
46693 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
46694 if test -n "$ac_ct_RANLIB"; then
46695   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
46696 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
46697 else
46698   { echo "$as_me:$LINENO: result: no" >&5
46699 echo "${ECHO_T}no" >&6; }
46700 fi
46701
46702   if test "x$ac_ct_RANLIB" = x; then
46703     RANLIB=":"
46704   else
46705     case $cross_compiling:$ac_tool_warned in
46706 yes:)
46707 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
46708 whose name does not start with the host triplet.  If you think this
46709 configuration is useful to you, please write to autoconf@gnu.org." >&5
46710 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
46711 whose name does not start with the host triplet.  If you think this
46712 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
46713 ac_tool_warned=yes ;;
46714 esac
46715     RANLIB=$ac_ct_RANLIB
46716   fi
46717 else
46718   RANLIB="$ac_cv_prog_RANLIB"
46719 fi
46720
46721     # Find a good install program.  We prefer a C program (faster),
46722 # so one script is as good as another.  But avoid the broken or
46723 # incompatible versions:
46724 # SysV /etc/install, /usr/sbin/install
46725 # SunOS /usr/etc/install
46726 # IRIX /sbin/install
46727 # AIX /bin/install
46728 # AmigaOS /C/install, which installs bootblocks on floppy discs
46729 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
46730 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
46731 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
46732 # OS/2's system install, which has a completely different semantic
46733 # ./install, which can be erroneously created by make from ./install.sh.
46734 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
46735 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
46736 if test -z "$INSTALL"; then
46737 if test "${ac_cv_path_install+set}" = set; then
46738   echo $ECHO_N "(cached) $ECHO_C" >&6
46739 else
46740   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
46741 for as_dir in $PATH
46742 do
46743   IFS=$as_save_IFS
46744   test -z "$as_dir" && as_dir=.
46745   # Account for people who put trailing slashes in PATH elements.
46746 case $as_dir/ in
46747   ./ | .// | /cC/* | \
46748   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
46749   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
46750   /usr/ucb/* ) ;;
46751   *)
46752     # OSF1 and SCO ODT 3.0 have their own names for install.
46753     # Don't use installbsd from OSF since it installs stuff as root
46754     # by default.
46755     for ac_prog in ginstall scoinst install; do
46756       for ac_exec_ext in '' $ac_executable_extensions; do
46757         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
46758           if test $ac_prog = install &&
46759             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
46760             # AIX install.  It has an incompatible calling convention.
46761             :
46762           elif test $ac_prog = install &&
46763             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
46764             # program-specific install script used by HP pwplus--don't use.
46765             :
46766           else
46767             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
46768             break 3
46769           fi
46770         fi
46771       done
46772     done
46773     ;;
46774 esac
46775 done
46776 IFS=$as_save_IFS
46777
46778
46779 fi
46780   if test "${ac_cv_path_install+set}" = set; then
46781     INSTALL=$ac_cv_path_install
46782   else
46783     # As a last resort, use the slow shell script.  Don't cache a
46784     # value for INSTALL within a source directory, because that will
46785     # break other packages using the cache if that directory is
46786     # removed, or if the value is a relative name.
46787     INSTALL=$ac_install_sh
46788   fi
46789 fi
46790 { echo "$as_me:$LINENO: result: $INSTALL" >&5
46791 echo "${ECHO_T}$INSTALL" >&6; }
46792
46793 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
46794 # It thinks the first close brace ends the variable substitution.
46795 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
46796
46797 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
46798
46799 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
46800
46801     { echo "$as_me:$LINENO: checking whether ln -s works" >&5
46802 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
46803 LN_S=$as_ln_s
46804 if test "$LN_S" = "ln -s"; then
46805   { echo "$as_me:$LINENO: result: yes" >&5
46806 echo "${ECHO_T}yes" >&6; }
46807 else
46808   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
46809 echo "${ECHO_T}no, using $LN_S" >&6; }
46810 fi
46811
46812
46813     { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
46814 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
46815 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
46816 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
46817   echo $ECHO_N "(cached) $ECHO_C" >&6
46818 else
46819   cat >conftest.make <<\_ACEOF
46820 SHELL = /bin/sh
46821 all:
46822         @echo '@@@%%%=$(MAKE)=@@@%%%'
46823 _ACEOF
46824 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
46825 case `${MAKE-make} -f conftest.make 2>/dev/null` in
46826   *@@@%%%=?*=@@@%%%*)
46827     eval ac_cv_prog_make_${ac_make}_set=yes;;
46828   *)
46829     eval ac_cv_prog_make_${ac_make}_set=no;;
46830 esac
46831 rm -f conftest.make
46832 fi
46833 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
46834   { echo "$as_me:$LINENO: result: yes" >&5
46835 echo "${ECHO_T}yes" >&6; }
46836   SET_MAKE=
46837 else
46838   { echo "$as_me:$LINENO: result: no" >&5
46839 echo "${ECHO_T}no" >&6; }
46840   SET_MAKE="MAKE=${MAKE-make}"
46841 fi
46842
46843
46844
46845     if test "x$SUNCXX" = "xyes"; then
46846                                 AR=$CXX
46847         AROPTIONS="-xar -o"
46848
46849     elif test "x$SGICC" = "xyes"; then
46850                 AR=$CXX
46851         AROPTIONS="-ar -o"
46852
46853     else
46854         if test -n "$ac_tool_prefix"; then
46855   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
46856 set dummy ${ac_tool_prefix}ar; ac_word=$2
46857 { echo "$as_me:$LINENO: checking for $ac_word" >&5
46858 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
46859 if test "${ac_cv_prog_AR+set}" = set; then
46860   echo $ECHO_N "(cached) $ECHO_C" >&6
46861 else
46862   if test -n "$AR"; then
46863   ac_cv_prog_AR="$AR" # Let the user override the test.
46864 else
46865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
46866 for as_dir in $PATH
46867 do
46868   IFS=$as_save_IFS
46869   test -z "$as_dir" && as_dir=.
46870   for ac_exec_ext in '' $ac_executable_extensions; do
46871   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
46872     ac_cv_prog_AR="${ac_tool_prefix}ar"
46873     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
46874     break 2
46875   fi
46876 done
46877 done
46878 IFS=$as_save_IFS
46879
46880 fi
46881 fi
46882 AR=$ac_cv_prog_AR
46883 if test -n "$AR"; then
46884   { echo "$as_me:$LINENO: result: $AR" >&5
46885 echo "${ECHO_T}$AR" >&6; }
46886 else
46887   { echo "$as_me:$LINENO: result: no" >&5
46888 echo "${ECHO_T}no" >&6; }
46889 fi
46890
46891
46892 fi
46893 if test -z "$ac_cv_prog_AR"; then
46894   ac_ct_AR=$AR
46895   # Extract the first word of "ar", so it can be a program name with args.
46896 set dummy ar; ac_word=$2
46897 { echo "$as_me:$LINENO: checking for $ac_word" >&5
46898 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
46899 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
46900   echo $ECHO_N "(cached) $ECHO_C" >&6
46901 else
46902   if test -n "$ac_ct_AR"; then
46903   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
46904 else
46905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
46906 for as_dir in $PATH
46907 do
46908   IFS=$as_save_IFS
46909   test -z "$as_dir" && as_dir=.
46910   for ac_exec_ext in '' $ac_executable_extensions; do
46911   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
46912     ac_cv_prog_ac_ct_AR="ar"
46913     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
46914     break 2
46915   fi
46916 done
46917 done
46918 IFS=$as_save_IFS
46919
46920 fi
46921 fi
46922 ac_ct_AR=$ac_cv_prog_ac_ct_AR
46923 if test -n "$ac_ct_AR"; then
46924   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
46925 echo "${ECHO_T}$ac_ct_AR" >&6; }
46926 else
46927   { echo "$as_me:$LINENO: result: no" >&5
46928 echo "${ECHO_T}no" >&6; }
46929 fi
46930
46931   if test "x$ac_ct_AR" = x; then
46932     AR="ar"
46933   else
46934     case $cross_compiling:$ac_tool_warned in
46935 yes:)
46936 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
46937 whose name does not start with the host triplet.  If you think this
46938 configuration is useful to you, please write to autoconf@gnu.org." >&5
46939 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
46940 whose name does not start with the host triplet.  If you think this
46941 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
46942 ac_tool_warned=yes ;;
46943 esac
46944     AR=$ac_ct_AR
46945   fi
46946 else
46947   AR="$ac_cv_prog_AR"
46948 fi
46949
46950         AROPTIONS=rcu
46951     fi
46952
46953
46954     if test -n "$ac_tool_prefix"; then
46955   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
46956 set dummy ${ac_tool_prefix}strip; ac_word=$2
46957 { echo "$as_me:$LINENO: checking for $ac_word" >&5
46958 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
46959 if test "${ac_cv_prog_STRIP+set}" = set; then
46960   echo $ECHO_N "(cached) $ECHO_C" >&6
46961 else
46962   if test -n "$STRIP"; then
46963   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
46964 else
46965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
46966 for as_dir in $PATH
46967 do
46968   IFS=$as_save_IFS
46969   test -z "$as_dir" && as_dir=.
46970   for ac_exec_ext in '' $ac_executable_extensions; do
46971   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
46972     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
46973     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
46974     break 2
46975   fi
46976 done
46977 done
46978 IFS=$as_save_IFS
46979
46980 fi
46981 fi
46982 STRIP=$ac_cv_prog_STRIP
46983 if test -n "$STRIP"; then
46984   { echo "$as_me:$LINENO: result: $STRIP" >&5
46985 echo "${ECHO_T}$STRIP" >&6; }
46986 else
46987   { echo "$as_me:$LINENO: result: no" >&5
46988 echo "${ECHO_T}no" >&6; }
46989 fi
46990
46991
46992 fi
46993 if test -z "$ac_cv_prog_STRIP"; then
46994   ac_ct_STRIP=$STRIP
46995   # Extract the first word of "strip", so it can be a program name with args.
46996 set dummy strip; ac_word=$2
46997 { echo "$as_me:$LINENO: checking for $ac_word" >&5
46998 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
46999 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
47000   echo $ECHO_N "(cached) $ECHO_C" >&6
47001 else
47002   if test -n "$ac_ct_STRIP"; then
47003   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
47004 else
47005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47006 for as_dir in $PATH
47007 do
47008   IFS=$as_save_IFS
47009   test -z "$as_dir" && as_dir=.
47010   for ac_exec_ext in '' $ac_executable_extensions; do
47011   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
47012     ac_cv_prog_ac_ct_STRIP="strip"
47013     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
47014     break 2
47015   fi
47016 done
47017 done
47018 IFS=$as_save_IFS
47019
47020 fi
47021 fi
47022 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
47023 if test -n "$ac_ct_STRIP"; then
47024   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
47025 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
47026 else
47027   { echo "$as_me:$LINENO: result: no" >&5
47028 echo "${ECHO_T}no" >&6; }
47029 fi
47030
47031   if test "x$ac_ct_STRIP" = x; then
47032     STRIP=":"
47033   else
47034     case $cross_compiling:$ac_tool_warned in
47035 yes:)
47036 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
47037 whose name does not start with the host triplet.  If you think this
47038 configuration is useful to you, please write to autoconf@gnu.org." >&5
47039 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
47040 whose name does not start with the host triplet.  If you think this
47041 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
47042 ac_tool_warned=yes ;;
47043 esac
47044     STRIP=$ac_ct_STRIP
47045   fi
47046 else
47047   STRIP="$ac_cv_prog_STRIP"
47048 fi
47049
47050     if test -n "$ac_tool_prefix"; then
47051   # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
47052 set dummy ${ac_tool_prefix}nm; ac_word=$2
47053 { echo "$as_me:$LINENO: checking for $ac_word" >&5
47054 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
47055 if test "${ac_cv_prog_NM+set}" = set; then
47056   echo $ECHO_N "(cached) $ECHO_C" >&6
47057 else
47058   if test -n "$NM"; then
47059   ac_cv_prog_NM="$NM" # Let the user override the test.
47060 else
47061 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47062 for as_dir in $PATH
47063 do
47064   IFS=$as_save_IFS
47065   test -z "$as_dir" && as_dir=.
47066   for ac_exec_ext in '' $ac_executable_extensions; do
47067   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
47068     ac_cv_prog_NM="${ac_tool_prefix}nm"
47069     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
47070     break 2
47071   fi
47072 done
47073 done
47074 IFS=$as_save_IFS
47075
47076 fi
47077 fi
47078 NM=$ac_cv_prog_NM
47079 if test -n "$NM"; then
47080   { echo "$as_me:$LINENO: result: $NM" >&5
47081 echo "${ECHO_T}$NM" >&6; }
47082 else
47083   { echo "$as_me:$LINENO: result: no" >&5
47084 echo "${ECHO_T}no" >&6; }
47085 fi
47086
47087
47088 fi
47089 if test -z "$ac_cv_prog_NM"; then
47090   ac_ct_NM=$NM
47091   # Extract the first word of "nm", so it can be a program name with args.
47092 set dummy nm; ac_word=$2
47093 { echo "$as_me:$LINENO: checking for $ac_word" >&5
47094 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
47095 if test "${ac_cv_prog_ac_ct_NM+set}" = set; then
47096   echo $ECHO_N "(cached) $ECHO_C" >&6
47097 else
47098   if test -n "$ac_ct_NM"; then
47099   ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
47100 else
47101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47102 for as_dir in $PATH
47103 do
47104   IFS=$as_save_IFS
47105   test -z "$as_dir" && as_dir=.
47106   for ac_exec_ext in '' $ac_executable_extensions; do
47107   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
47108     ac_cv_prog_ac_ct_NM="nm"
47109     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
47110     break 2
47111   fi
47112 done
47113 done
47114 IFS=$as_save_IFS
47115
47116 fi
47117 fi
47118 ac_ct_NM=$ac_cv_prog_ac_ct_NM
47119 if test -n "$ac_ct_NM"; then
47120   { echo "$as_me:$LINENO: result: $ac_ct_NM" >&5
47121 echo "${ECHO_T}$ac_ct_NM" >&6; }
47122 else
47123   { echo "$as_me:$LINENO: result: no" >&5
47124 echo "${ECHO_T}no" >&6; }
47125 fi
47126
47127   if test "x$ac_ct_NM" = x; then
47128     NM=":"
47129   else
47130     case $cross_compiling:$ac_tool_warned in
47131 yes:)
47132 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
47133 whose name does not start with the host triplet.  If you think this
47134 configuration is useful to you, please write to autoconf@gnu.org." >&5
47135 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
47136 whose name does not start with the host triplet.  If you think this
47137 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
47138 ac_tool_warned=yes ;;
47139 esac
47140     NM=$ac_ct_NM
47141   fi
47142 else
47143   NM="$ac_cv_prog_NM"
47144 fi
47145
47146
47147     case ${BAKEFILE_HOST} in
47148         *-hp-hpux* )
47149                                     INSTALL_DIR="mkdir -p"
47150             ;;
47151         * )
47152                                     INSTALL_DIR='$(INSTALL) -d'
47153             ;;
47154     esac
47155
47156
47157     LDFLAGS_GUI=
47158     case ${BAKEFILE_HOST} in
47159         *-*-cygwin* | *-*-mingw32* )
47160         LDFLAGS_GUI="-mwindows"
47161     esac
47162
47163
47164     fi
47165
47166         { echo "$as_me:$LINENO: checking if make is GNU make" >&5
47167 echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6; }
47168 if test "${bakefile_cv_prog_makeisgnu+set}" = set; then
47169   echo $ECHO_N "(cached) $ECHO_C" >&6
47170 else
47171
47172         if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
47173                 egrep -s GNU > /dev/null); then
47174             bakefile_cv_prog_makeisgnu="yes"
47175         else
47176             bakefile_cv_prog_makeisgnu="no"
47177         fi
47178
47179 fi
47180 { echo "$as_me:$LINENO: result: $bakefile_cv_prog_makeisgnu" >&5
47181 echo "${ECHO_T}$bakefile_cv_prog_makeisgnu" >&6; }
47182
47183     if test "x$bakefile_cv_prog_makeisgnu" = "xyes"; then
47184         IF_GNU_MAKE=""
47185     else
47186         IF_GNU_MAKE="#"
47187     fi
47188
47189
47190
47191     PLATFORM_UNIX=0
47192     PLATFORM_WIN32=0
47193     PLATFORM_MSDOS=0
47194     PLATFORM_MAC=0
47195     PLATFORM_MACOS=0
47196     PLATFORM_MACOSX=0
47197     PLATFORM_OS2=0
47198     PLATFORM_BEOS=0
47199
47200     if test "x$BAKEFILE_FORCE_PLATFORM" = "x"; then
47201         case "${BAKEFILE_HOST}" in
47202             *-*-mingw32* )
47203                 PLATFORM_WIN32=1
47204             ;;
47205             *-pc-msdosdjgpp )
47206                 PLATFORM_MSDOS=1
47207             ;;
47208             *-pc-os2_emx | *-pc-os2-emx )
47209                 PLATFORM_OS2=1
47210             ;;
47211             *-*-darwin* )
47212                 PLATFORM_MAC=1
47213                 PLATFORM_MACOSX=1
47214             ;;
47215             *-*-beos* )
47216                 PLATFORM_BEOS=1
47217             ;;
47218             powerpc-apple-macos* )
47219                 PLATFORM_MAC=1
47220                 PLATFORM_MACOS=1
47221             ;;
47222             * )
47223                 PLATFORM_UNIX=1
47224             ;;
47225         esac
47226     else
47227         case "$BAKEFILE_FORCE_PLATFORM" in
47228             win32 )
47229                 PLATFORM_WIN32=1
47230             ;;
47231             msdos )
47232                 PLATFORM_MSDOS=1
47233             ;;
47234             os2 )
47235                 PLATFORM_OS2=1
47236             ;;
47237             darwin )
47238                 PLATFORM_MAC=1
47239                 PLATFORM_MACOSX=1
47240             ;;
47241             unix )
47242                 PLATFORM_UNIX=1
47243             ;;
47244             beos )
47245                 PLATFORM_BEOS=1
47246             ;;
47247             * )
47248                                             ;;
47249         esac
47250     fi
47251
47252
47253
47254
47255
47256
47257
47258
47259
47260
47261
47262     # Check whether --enable-omf was given.
47263 if test "${enable_omf+set}" = set; then
47264   enableval=$enable_omf; bk_os2_use_omf="$enableval"
47265 fi
47266
47267
47268     case "${BAKEFILE_HOST}" in
47269       *-*-darwin* )
47270                         if test "x$GCC" = "xyes"; then
47271             CFLAGS="$CFLAGS -fno-common"
47272             CXXFLAGS="$CXXFLAGS -fno-common"
47273         fi
47274         if test "x$XLCC" = "xyes"; then
47275             CFLAGS="$CFLAGS -qnocommon"
47276             CXXFLAGS="$CXXFLAGS -qnocommon"
47277         fi
47278         ;;
47279
47280       *-pc-os2_emx | *-pc-os2-emx )
47281         if test "x$bk_os2_use_omf" = "xyes" ; then
47282             AR=emxomfar
47283             RANLIB=:
47284             LDFLAGS="-Zomf $LDFLAGS"
47285             CFLAGS="-Zomf $CFLAGS"
47286             CXXFLAGS="-Zomf $CXXFLAGS"
47287             OS2_LIBEXT="lib"
47288         else
47289             OS2_LIBEXT="a"
47290         fi
47291         ;;
47292
47293       i*86-*-beos* )
47294         LDFLAGS="-L/boot/develop/lib/x86 $LDFLAGS"
47295         ;;
47296     esac
47297
47298
47299     SO_SUFFIX="so"
47300     SO_SUFFIX_MODULE="so"
47301     EXEEXT=""
47302     LIBPREFIX="lib"
47303     LIBEXT=".a"
47304     DLLPREFIX="lib"
47305     DLLPREFIX_MODULE=""
47306     DLLIMP_SUFFIX=""
47307     dlldir="$libdir"
47308
47309     case "${BAKEFILE_HOST}" in
47310         *-hp-hpux* )
47311             SO_SUFFIX="sl"
47312             SO_SUFFIX_MODULE="sl"
47313         ;;
47314         *-*-aix* )
47315                                                                         SO_SUFFIX="a"
47316             SO_SUFFIX_MODULE="a"
47317         ;;
47318         *-*-cygwin* )
47319             SO_SUFFIX="dll"
47320             SO_SUFFIX_MODULE="dll"
47321             DLLIMP_SUFFIX="dll.a"
47322             EXEEXT=".exe"
47323             DLLPREFIX="cyg"
47324             dlldir="$bindir"
47325         ;;
47326         *-*-mingw32* )
47327             SO_SUFFIX="dll"
47328             SO_SUFFIX_MODULE="dll"
47329             DLLIMP_SUFFIX="dll.a"
47330             EXEEXT=".exe"
47331             DLLPREFIX=""
47332             dlldir="$bindir"
47333         ;;
47334         *-pc-msdosdjgpp )
47335             EXEEXT=".exe"
47336             DLLPREFIX=""
47337             dlldir="$bindir"
47338         ;;
47339         *-pc-os2_emx | *-pc-os2-emx )
47340             SO_SUFFIX="dll"
47341             SO_SUFFIX_MODULE="dll"
47342             DLLIMP_SUFFIX=$OS2_LIBEXT
47343             EXEEXT=".exe"
47344             DLLPREFIX=""
47345             LIBPREFIX=""
47346             LIBEXT=".$OS2_LIBEXT"
47347             dlldir="$bindir"
47348         ;;
47349         *-*-darwin* )
47350             SO_SUFFIX="dylib"
47351             SO_SUFFIX_MODULE="bundle"
47352         ;;
47353     esac
47354
47355     if test "x$DLLIMP_SUFFIX" = "x" ; then
47356         DLLIMP_SUFFIX="$SO_SUFFIX"
47357     fi
47358
47359
47360
47361
47362
47363
47364
47365
47366
47367
47368
47369
47370         PIC_FLAG=""
47371     if test "x$GCC" = "xyes"; then
47372                 PIC_FLAG="-fPIC"
47373     fi
47374
47375         SHARED_LD_CC="\$(CC) -shared ${PIC_FLAG} -o"
47376     SHARED_LD_CXX="\$(CXX) -shared ${PIC_FLAG} -o"
47377     WINDOWS_IMPLIB=0
47378
47379     case "${BAKEFILE_HOST}" in
47380       *-hp-hpux* )
47381                 if test "x$GCC" != "xyes"; then
47382                         LDFLAGS="$LDFLAGS -L/usr/lib"
47383
47384             SHARED_LD_CC="${CC} -b -o"
47385             SHARED_LD_CXX="${CXX} -b -o"
47386             PIC_FLAG="+Z"
47387         fi
47388       ;;
47389
47390       *-*-linux* )
47391         if test "$INTELCC" = "yes"; then
47392             PIC_FLAG="-KPIC"
47393         elif test "x$SUNCXX" = "xyes"; then
47394             SHARED_LD_CC="${CC} -G -o"
47395             SHARED_LD_CXX="${CXX} -G -o"
47396             PIC_FLAG="-KPIC"
47397         fi
47398       ;;
47399
47400       *-*-solaris2* )
47401         if test "x$SUNCXX" = xyes ; then
47402             SHARED_LD_CC="${CC} -G -o"
47403             SHARED_LD_CXX="${CXX} -G -o"
47404             PIC_FLAG="-KPIC"
47405         fi
47406       ;;
47407
47408       *-*-darwin* )
47409
47410 D='$'
47411 cat <<EOF >shared-ld-sh
47412 #!/bin/sh
47413 #-----------------------------------------------------------------------------
47414 #-- Name:        distrib/mac/shared-ld-sh
47415 #-- Purpose:     Link a mach-o dynamic shared library for Darwin / Mac OS X
47416 #-- Author:      Gilles Depeyrot
47417 #-- Copyright:   (c) 2002 Gilles Depeyrot
47418 #-- Licence:     any use permitted
47419 #-----------------------------------------------------------------------------
47420
47421 verbose=0
47422 args=""
47423 objects=""
47424 linking_flag="-dynamiclib"
47425 ldargs="-r -keep_private_externs -nostdlib"
47426
47427 while test ${D}# -gt 0; do
47428     case ${D}1 in
47429
47430        -v)
47431         verbose=1
47432         ;;
47433
47434        -o|-compatibility_version|-current_version|-framework|-undefined|-install_name)
47435         # collect these options and values
47436         args="${D}{args} ${D}1 ${D}2"
47437         shift
47438         ;;
47439
47440        -s|-Wl,*)
47441         # collect these load args
47442         ldargs="${D}{ldargs} ${D}1"
47443         ;;
47444
47445        -l*|-L*|-flat_namespace|-headerpad_max_install_names)
47446         # collect these options
47447         args="${D}{args} ${D}1"
47448         ;;
47449
47450        -dynamiclib|-bundle)
47451         linking_flag="${D}1"
47452         ;;
47453
47454        -*)
47455         echo "shared-ld: unhandled option '${D}1'"
47456         exit 1
47457         ;;
47458
47459         *.o | *.a | *.dylib)
47460         # collect object files
47461         objects="${D}{objects} ${D}1"
47462         ;;
47463
47464         *)
47465         echo "shared-ld: unhandled argument '${D}1'"
47466         exit 1
47467         ;;
47468
47469     esac
47470     shift
47471 done
47472
47473 status=0
47474
47475 #
47476 # Link one module containing all the others
47477 #
47478 if test ${D}{verbose} = 1; then
47479     echo "c++ ${D}{ldargs} ${D}{objects} -o master.${D}${D}.o"
47480 fi
47481 c++ ${D}{ldargs} ${D}{objects} -o master.${D}${D}.o
47482 status=${D}?
47483
47484 #
47485 # Link the shared library from the single module created, but only if the
47486 # previous command didn't fail:
47487 #
47488 if test ${D}{status} = 0; then
47489     if test ${D}{verbose} = 1; then
47490         echo "c++ ${D}{linking_flag} master.${D}${D}.o ${D}{args}"
47491     fi
47492     c++ ${D}{linking_flag} master.${D}${D}.o ${D}{args}
47493     status=${D}?
47494 fi
47495
47496 #
47497 # Remove intermediate module
47498 #
47499 rm -f master.${D}${D}.o
47500
47501 exit ${D}status
47502 EOF
47503
47504         chmod +x shared-ld-sh
47505
47506         SHARED_LD_MODULE_CC="`pwd`/shared-ld-sh -bundle -headerpad_max_install_names -o"
47507         SHARED_LD_MODULE_CXX="$SHARED_LD_MODULE_CC"
47508
47509
47510                                 { echo "$as_me:$LINENO: checking for gcc 3.1 or later" >&5
47511 echo $ECHO_N "checking for gcc 3.1 or later... $ECHO_C" >&6; }
47512 if test "${bakefile_cv_gcc31+set}" = set; then
47513   echo $ECHO_N "(cached) $ECHO_C" >&6
47514 else
47515
47516            cat >conftest.$ac_ext <<_ACEOF
47517 /* confdefs.h.  */
47518 _ACEOF
47519 cat confdefs.h >>conftest.$ac_ext
47520 cat >>conftest.$ac_ext <<_ACEOF
47521 /* end confdefs.h.  */
47522
47523 int
47524 main ()
47525 {
47526
47527                    #if (__GNUC__ < 3) || \
47528                        ((__GNUC__ == 3) && (__GNUC_MINOR__ < 1))
47529                        This is old gcc
47530                    #endif
47531
47532   ;
47533   return 0;
47534 }
47535 _ACEOF
47536 rm -f conftest.$ac_objext
47537 if { (ac_try="$ac_compile"
47538 case "(($ac_try" in
47539   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47540   *) ac_try_echo=$ac_try;;
47541 esac
47542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47543   (eval "$ac_compile") 2>conftest.er1
47544   ac_status=$?
47545   grep -v '^ *+' conftest.er1 >conftest.err
47546   rm -f conftest.er1
47547   cat conftest.err >&5
47548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47549   (exit $ac_status); } && {
47550          test -z "$ac_c_werror_flag" ||
47551          test ! -s conftest.err
47552        } && test -s conftest.$ac_objext; then
47553
47554                    bakefile_cv_gcc31=yes
47555
47556 else
47557   echo "$as_me: failed program was:" >&5
47558 sed 's/^/| /' conftest.$ac_ext >&5
47559
47560
47561                    bakefile_cv_gcc31=no
47562
47563
47564 fi
47565
47566 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47567
47568 fi
47569 { echo "$as_me:$LINENO: result: $bakefile_cv_gcc31" >&5
47570 echo "${ECHO_T}$bakefile_cv_gcc31" >&6; }
47571         if test "$bakefile_cv_gcc31" = "no"; then
47572                         SHARED_LD_CC="`pwd`/shared-ld-sh -dynamiclib -headerpad_max_install_names -o"
47573             SHARED_LD_CXX="$SHARED_LD_CC"
47574         else
47575                         SHARED_LD_CC="\${CC} -dynamiclib -single_module -headerpad_max_install_names -o"
47576             SHARED_LD_CXX="\${CXX} -dynamiclib -single_module -headerpad_max_install_names -o"
47577         fi
47578
47579         if test "x$GCC" == "xyes"; then
47580             PIC_FLAG="-dynamic -fPIC"
47581         fi
47582         if test "x$XLCC" = "xyes"; then
47583             PIC_FLAG="-dynamic -DPIC"
47584         fi
47585       ;;
47586
47587       *-*-aix* )
47588         if test "x$GCC" = "xyes"; then
47589                                                             PIC_FLAG=""
47590
47591                                                                                     case "${BAKEFILE_HOST}" in
47592                 *-*-aix5* )
47593                     LD_EXPFULL="-Wl,-bexpfull"
47594                     ;;
47595             esac
47596
47597             SHARED_LD_CC="\$(CC) -shared $LD_EXPFULL -o"
47598             SHARED_LD_CXX="\$(CXX) -shared $LD_EXPFULL -o"
47599         else
47600                                     # Extract the first word of "makeC++SharedLib", so it can be a program name with args.
47601 set dummy makeC++SharedLib; ac_word=$2
47602 { echo "$as_me:$LINENO: checking for $ac_word" >&5
47603 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
47604 if test "${ac_cv_prog_AIX_CXX_LD+set}" = set; then
47605   echo $ECHO_N "(cached) $ECHO_C" >&6
47606 else
47607   if test -n "$AIX_CXX_LD"; then
47608   ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test.
47609 else
47610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47611 for as_dir in $PATH
47612 do
47613   IFS=$as_save_IFS
47614   test -z "$as_dir" && as_dir=.
47615   for ac_exec_ext in '' $ac_executable_extensions; do
47616   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
47617     ac_cv_prog_AIX_CXX_LD="makeC++SharedLib"
47618     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
47619     break 2
47620   fi
47621 done
47622 done
47623 IFS=$as_save_IFS
47624
47625   test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib"
47626 fi
47627 fi
47628 AIX_CXX_LD=$ac_cv_prog_AIX_CXX_LD
47629 if test -n "$AIX_CXX_LD"; then
47630   { echo "$as_me:$LINENO: result: $AIX_CXX_LD" >&5
47631 echo "${ECHO_T}$AIX_CXX_LD" >&6; }
47632 else
47633   { echo "$as_me:$LINENO: result: no" >&5
47634 echo "${ECHO_T}no" >&6; }
47635 fi
47636
47637
47638             SHARED_LD_CC="$AIX_CC_LD -p 0 -o"
47639             SHARED_LD_CXX="$AIX_CXX_LD -p 0 -o"
47640         fi
47641       ;;
47642
47643       *-*-beos* )
47644                         SHARED_LD_CC="${LD} -nostart -o"
47645         SHARED_LD_CXX="${LD} -nostart -o"
47646       ;;
47647
47648       *-*-irix* )
47649                 if test "x$GCC" != "xyes"; then
47650             PIC_FLAG="-KPIC"
47651         fi
47652       ;;
47653
47654       *-*-cygwin* | *-*-mingw32* )
47655         PIC_FLAG=""
47656         SHARED_LD_CC="\$(CC) -shared -o"
47657         SHARED_LD_CXX="\$(CXX) -shared -o"
47658         WINDOWS_IMPLIB=1
47659       ;;
47660
47661       *-pc-os2_emx | *-pc-os2-emx )
47662         SHARED_LD_CC="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
47663         SHARED_LD_CXX="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
47664         PIC_FLAG=""
47665
47666 D='$'
47667 cat <<EOF >dllar.sh
47668 #!/bin/sh
47669 #
47670 # dllar - a tool to build both a .dll and an .a file
47671 # from a set of object (.o) files for EMX/OS2.
47672 #
47673 #  Written by Andrew Zabolotny, bit@freya.etu.ru
47674 #  Ported to Unix like shell by Stefan Neis, Stefan.Neis@t-online.de
47675 #
47676 #  This script will accept a set of files on the command line.
47677 #  All the public symbols from the .o files will be exported into
47678 #  a .DEF file, then linker will be run (through gcc) against them to
47679 #  build a shared library consisting of all given .o files. All libraries
47680 #  (.a) will be first decompressed into component .o files then act as
47681 #  described above. You can optionally give a description (-d "description")
47682 #  which will be put into .DLL. To see the list of accepted options (as well
47683 #  as command-line format) simply run this program without options. The .DLL
47684 #  is built to be imported by name (there is no guarantee that new versions
47685 #  of the library you build will have same ordinals for same symbols).
47686 #
47687 #  dllar is free software; you can redistribute it and/or modify
47688 #  it under the terms of the GNU General Public License as published by
47689 #  the Free Software Foundation; either version 2, or (at your option)
47690 #  any later version.
47691 #
47692 #  dllar is distributed in the hope that it will be useful,
47693 #  but WITHOUT ANY WARRANTY; without even the implied warranty of
47694 #  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
47695 #  GNU General Public License for more details.
47696 #
47697 #  You should have received a copy of the GNU General Public License
47698 #  along with dllar; see the file COPYING.  If not, write to the Free
47699 #  Software Foundation, 59 Temple Place - Suite 330, Boston, MA
47700 #  02111-1307, USA.
47701
47702 # To successfuly run this program you will need:
47703 #  - Current drive should have LFN support (HPFS, ext2, network, etc)
47704 #    (Sometimes dllar generates filenames which won't fit 8.3 scheme)
47705 #  - gcc
47706 #    (used to build the .dll)
47707 #  - emxexp
47708 #    (used to create .def file from .o files)
47709 #  - emximp
47710 #    (used to create .a file from .def file)
47711 #  - GNU text utilites (cat, sort, uniq)
47712 #    used to process emxexp output
47713 #  - GNU file utilities (mv, rm)
47714 #  - GNU sed
47715 #  - lxlite (optional, see flag below)
47716 #    (used for general .dll cleanup)
47717 #
47718
47719 flag_USE_LXLITE=1;
47720
47721 #
47722 # helper functions
47723 # basnam, variant of basename, which does _not_ remove the path, _iff_
47724 #                              second argument (suffix to remove) is given
47725 basnam(){
47726     case ${D}# in
47727     1)
47728         echo ${D}1 | sed 's/.*\\///' | sed 's/.*\\\\//'
47729         ;;
47730     2)
47731         echo ${D}1 | sed 's/'${D}2'${D}//'
47732         ;;
47733     *)
47734         echo "error in basnam ${D}*"
47735         exit 8
47736         ;;
47737     esac
47738 }
47739
47740 # Cleanup temporary files and output
47741 CleanUp() {
47742     cd ${D}curDir
47743     for i in ${D}inputFiles ; do
47744         case ${D}i in
47745         *!)
47746             rm -rf \`basnam ${D}i !\`
47747             ;;
47748         *)
47749             ;;
47750         esac
47751     done
47752
47753     # Kill result in case of failure as there is just to many stupid make/nmake
47754     # things out there which doesn't do this.
47755     if [ ${D}# -eq 0 ]; then
47756         rm -f ${D}arcFile ${D}arcFile2 ${D}defFile ${D}dllFile
47757     fi
47758 }
47759
47760 # Print usage and exit script with rc=1.
47761 PrintHelp() {
47762  echo 'Usage: dllar.sh [-o[utput] output_file] [-i[mport] importlib_name]'
47763  echo '       [-name-mangler-script script.sh]'
47764  echo '       [-d[escription] "dll descrption"] [-cc "CC"] [-f[lags] "CFLAGS"]'
47765  echo '       [-ord[inals]] -ex[clude] "symbol(s)"'
47766  echo '       [-libf[lags] "{INIT|TERM}{GLOBAL|INSTANCE}"] [-nocrt[dll]] [-nolxl[ite]]'
47767  echo '       [*.o] [*.a]'
47768  echo '*> "output_file" should have no extension.'
47769  echo '   If it has the .o, .a or .dll extension, it is automatically removed.'
47770  echo '   The import library name is derived from this and is set to "name".a,'
47771  echo '   unless overridden by -import'
47772  echo '*> "importlib_name" should have no extension.'
47773  echo '   If it has the .o, or .a extension, it is automatically removed.'
47774  echo '   This name is used as the import library name and may be longer and'
47775  echo '   more descriptive than the DLL name which has to follow the old '
47776  echo '   8.3 convention of FAT.'
47777  echo '*> "script.sh may be given to override the output_file name by a'
47778  echo '   different name. It is mainly useful if the regular make process'
47779  echo '   of some package does not take into account OS/2 restriction of'
47780  echo '   DLL name lengths. It takes the importlib name as input and is'
47781  echo '   supposed to procude a shorter name as output. The script should'
47782  echo '   expect to get importlib_name without extension and should produce'
47783  echo '   a (max.) 8 letter name without extension.'
47784  echo '*> "cc" is used to use another GCC executable.   (default: gcc.exe)'
47785  echo '*> "flags" should be any set of valid GCC flags. (default: -s -Zcrtdll)'
47786  echo '   These flags will be put at the start of GCC command line.'
47787  echo '*> -ord[inals] tells dllar to export entries by ordinals. Be careful.'
47788  echo '*> -ex[clude] defines symbols which will not be exported. You can define'
47789  echo '   multiple symbols, for example -ex "myfunc yourfunc _GLOBAL*".'
47790  echo '   If the last character of a symbol is "*", all symbols beginning'
47791  echo '   with the prefix before "*" will be exclude, (see _GLOBAL* above).'
47792  echo '*> -libf[lags] can be used to add INITGLOBAL/INITINSTANCE and/or'
47793  echo '   TERMGLOBAL/TERMINSTANCE flags to the dynamically-linked library.'
47794  echo '*> -nocrt[dll] switch will disable linking the library against emx''s'
47795  echo '   C runtime DLLs.'
47796  echo '*> -nolxl[ite] switch will disable running lxlite on the resulting DLL.'
47797  echo '*> All other switches (for example -L./ or -lmylib) will be passed'
47798  echo '   unchanged to GCC at the end of command line.'
47799  echo '*> If you create a DLL from a library and you do not specify -o,'
47800  echo '   the basename for DLL and import library will be set to library name,'
47801  echo '   the initial library will be renamed to 'name'_s.a (_s for static)'
47802  echo '   i.e. "dllar gcc.a" will create gcc.dll and gcc.a, and the initial'
47803  echo '   library will be renamed into gcc_s.a.'
47804  echo '--------'
47805  echo 'Example:'
47806  echo '   dllar -o gcc290.dll libgcc.a -d "GNU C runtime library" -ord'
47807  echo '    -ex "__main __ctordtor*" -libf "INITINSTANCE TERMINSTANCE"'
47808  CleanUp
47809  exit 1
47810 }
47811
47812 # Execute a command.
47813 # If exit code of the commnad <> 0 CleanUp() is called and we'll exit the script.
47814 # @Uses    Whatever CleanUp() uses.
47815 doCommand() {
47816     echo "${D}*"
47817     eval ${D}*
47818     rcCmd=${D}?
47819
47820     if [ ${D}rcCmd -ne 0 ]; then
47821         echo "command failed, exit code="${D}rcCmd
47822         CleanUp
47823         exit ${D}rcCmd
47824     fi
47825 }
47826
47827 # main routine
47828 # setup globals
47829 cmdLine=${D}*
47830 outFile=""
47831 outimpFile=""
47832 inputFiles=""
47833 renameScript=""
47834 description=""
47835 CC=gcc.exe
47836 CFLAGS="-s -Zcrtdll"
47837 EXTRA_CFLAGS=""
47838 EXPORT_BY_ORDINALS=0
47839 exclude_symbols=""
47840 library_flags=""
47841 curDir=\`pwd\`
47842 curDirS=curDir
47843 case ${D}curDirS in
47844 */)
47845   ;;
47846 *)
47847   curDirS=${D}{curDirS}"/"
47848   ;;
47849 esac
47850 # Parse commandline
47851 libsToLink=0
47852 omfLinking=0
47853 while [ ${D}1 ]; do
47854     case ${D}1 in
47855     -ord*)
47856         EXPORT_BY_ORDINALS=1;
47857         ;;
47858     -o*)
47859         shift
47860         outFile=${D}1
47861         ;;
47862     -i*)
47863         shift
47864         outimpFile=${D}1
47865         ;;
47866     -name-mangler-script)
47867         shift
47868         renameScript=${D}1
47869         ;;
47870     -d*)
47871         shift
47872         description=${D}1
47873         ;;
47874     -f*)
47875         shift
47876         CFLAGS=${D}1
47877         ;;
47878     -c*)
47879         shift
47880         CC=${D}1
47881         ;;
47882     -h*)
47883         PrintHelp
47884         ;;
47885     -ex*)
47886         shift
47887         exclude_symbols=${D}{exclude_symbols}${D}1" "
47888         ;;
47889     -libf*)
47890         shift
47891         library_flags=${D}{library_flags}${D}1" "
47892         ;;
47893     -nocrt*)
47894         CFLAGS="-s"
47895         ;;
47896     -nolxl*)
47897         flag_USE_LXLITE=0
47898         ;;
47899     -* | /*)
47900         case ${D}1 in
47901         -L* | -l*)
47902             libsToLink=1
47903             ;;
47904         -Zomf)
47905             omfLinking=1
47906             ;;
47907         *)
47908             ;;
47909         esac
47910         EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
47911         ;;
47912     *.dll)
47913         EXTRA_CFLAGS="${D}{EXTRA_CFLAGS} \`basnam ${D}1 .dll\`"
47914         if [ ${D}omfLinking -eq 1 ]; then
47915             EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.lib"
47916         else
47917             EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.a"
47918         fi
47919         ;;
47920     *)
47921         found=0;
47922         if [ ${D}libsToLink -ne 0 ]; then
47923             EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
47924         else
47925             for file in ${D}1 ; do
47926                 if [ -f ${D}file ]; then
47927                     inputFiles="${D}{inputFiles} ${D}file"
47928                     found=1
47929                 fi
47930             done
47931             if [ ${D}found -eq 0 ]; then
47932                 echo "ERROR: No file(s) found: "${D}1
47933                 exit 8
47934             fi
47935         fi
47936       ;;
47937     esac
47938     shift
47939 done # iterate cmdline words
47940
47941 #
47942 if [ -z "${D}inputFiles" ]; then
47943     echo "dllar: no input files"
47944     PrintHelp
47945 fi
47946
47947 # Now extract all .o files from .a files
47948 newInputFiles=""
47949 for file in ${D}inputFiles ; do
47950     case ${D}file in
47951     *.a | *.lib)
47952         case ${D}file in
47953         *.a)
47954             suffix=".a"
47955             AR="ar"
47956             ;;
47957         *.lib)
47958             suffix=".lib"
47959             AR="emxomfar"
47960             EXTRA_CFLAGS="${D}EXTRA_CFLAGS -Zomf"
47961             ;;
47962         *)
47963             ;;
47964         esac
47965         dirname=\`basnam ${D}file ${D}suffix\`"_%"
47966         mkdir ${D}dirname
47967         if [ ${D}? -ne 0 ]; then
47968             echo "Failed to create subdirectory ./${D}dirname"
47969             CleanUp
47970             exit 8;
47971         fi
47972         # Append '!' to indicate archive
47973         newInputFiles="${D}newInputFiles ${D}{dirname}!"
47974         doCommand "cd ${D}dirname; ${D}AR x ../${D}file"
47975         cd ${D}curDir
47976         found=0;
47977         for subfile in ${D}dirname/*.o* ; do
47978             if [ -f ${D}subfile ]; then
47979                 found=1
47980                 if [ -s ${D}subfile ]; then
47981                     # FIXME: This should be: is file size > 32 byte, _not_ > 0!
47982                     newInputFiles="${D}newInputFiles ${D}subfile"
47983                 fi
47984             fi
47985         done
47986         if [ ${D}found -eq 0 ]; then
47987             echo "WARNING: there are no files in archive \\'${D}file\\'"
47988         fi
47989         ;;
47990     *)
47991         newInputFiles="${D}{newInputFiles} ${D}file"
47992         ;;
47993     esac
47994 done
47995 inputFiles="${D}newInputFiles"
47996
47997 # Output filename(s).
47998 do_backup=0;
47999 if [ -z ${D}outFile ]; then
48000     do_backup=1;
48001     set outFile ${D}inputFiles; outFile=${D}2
48002 fi
48003
48004 # If it is an archive, remove the '!' and the '_%' suffixes
48005 case ${D}outFile in
48006 *_%!)
48007     outFile=\`basnam ${D}outFile _%!\`
48008     ;;
48009 *)
48010     ;;
48011 esac
48012 case ${D}outFile in
48013 *.dll)
48014     outFile=\`basnam ${D}outFile .dll\`
48015     ;;
48016 *.DLL)
48017     outFile=\`basnam ${D}outFile .DLL\`
48018     ;;
48019 *.o)
48020     outFile=\`basnam ${D}outFile .o\`
48021     ;;
48022 *.obj)
48023     outFile=\`basnam ${D}outFile .obj\`
48024     ;;
48025 *.a)
48026     outFile=\`basnam ${D}outFile .a\`
48027     ;;
48028 *.lib)
48029     outFile=\`basnam ${D}outFile .lib\`
48030     ;;
48031 *)
48032     ;;
48033 esac
48034 case ${D}outimpFile in
48035 *.a)
48036     outimpFile=\`basnam ${D}outimpFile .a\`
48037     ;;
48038 *.lib)
48039     outimpFile=\`basnam ${D}outimpFile .lib\`
48040     ;;
48041 *)
48042     ;;
48043 esac
48044 if [ -z ${D}outimpFile ]; then
48045     outimpFile=${D}outFile
48046 fi
48047 defFile="${D}{outFile}.def"
48048 arcFile="${D}{outimpFile}.a"
48049 arcFile2="${D}{outimpFile}.lib"
48050
48051 #create ${D}dllFile as something matching 8.3 restrictions,
48052 if [ -z ${D}renameScript ] ; then
48053     dllFile="${D}outFile"
48054 else
48055     dllFile=\`${D}renameScript ${D}outimpFile\`
48056 fi
48057
48058 if [ ${D}do_backup -ne 0 ] ; then
48059     if [ -f ${D}arcFile ] ; then
48060         doCommand "mv ${D}arcFile ${D}{outFile}_s.a"
48061     fi
48062     if [ -f ${D}arcFile2 ] ; then
48063         doCommand "mv ${D}arcFile2 ${D}{outFile}_s.lib"
48064     fi
48065 fi
48066
48067 # Extract public symbols from all the object files.
48068 tmpdefFile=${D}{defFile}_%
48069 rm -f ${D}tmpdefFile
48070 for file in ${D}inputFiles ; do
48071     case ${D}file in
48072     *!)
48073         ;;
48074     *)
48075         doCommand "emxexp -u ${D}file >> ${D}tmpdefFile"
48076         ;;
48077     esac
48078 done
48079
48080 # Create the def file.
48081 rm -f ${D}defFile
48082 echo "LIBRARY \`basnam ${D}dllFile\` ${D}library_flags" >> ${D}defFile
48083 dllFile="${D}{dllFile}.dll"
48084 if [ ! -z ${D}description ]; then
48085     echo "DESCRIPTION  \\"${D}{description}\\"" >> ${D}defFile
48086 fi
48087 echo "EXPORTS" >> ${D}defFile
48088
48089 doCommand "cat ${D}tmpdefFile | sort.exe | uniq.exe > ${D}{tmpdefFile}%"
48090 grep -v "^ *;" < ${D}{tmpdefFile}% | grep -v "^ *${D}" >${D}tmpdefFile
48091
48092 # Checks if the export is ok or not.
48093 for word in ${D}exclude_symbols; do
48094     grep -v ${D}word < ${D}tmpdefFile >${D}{tmpdefFile}%
48095     mv ${D}{tmpdefFile}% ${D}tmpdefFile
48096 done
48097
48098
48099 if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then
48100     sed "=" < ${D}tmpdefFile | \\
48101     sed '
48102       N
48103       : loop
48104       s/^\\([0-9]\\+\\)\\([^;]*\\)\\(;.*\\)\\?/\\2 @\\1 NONAME/
48105       t loop
48106     ' > ${D}{tmpdefFile}%
48107     grep -v "^ *${D}" < ${D}{tmpdefFile}% > ${D}tmpdefFile
48108 else
48109     rm -f ${D}{tmpdefFile}%
48110 fi
48111 cat ${D}tmpdefFile >> ${D}defFile
48112 rm -f ${D}tmpdefFile
48113
48114 # Do linking, create implib, and apply lxlite.
48115 gccCmdl="";
48116 for file in ${D}inputFiles ; do
48117     case ${D}file in
48118     *!)
48119         ;;
48120     *)
48121         gccCmdl="${D}gccCmdl ${D}file"
48122         ;;
48123     esac
48124 done
48125 doCommand "${D}CC ${D}CFLAGS -Zdll -o ${D}dllFile ${D}defFile ${D}gccCmdl ${D}EXTRA_CFLAGS"
48126 touch "${D}{outFile}.dll"
48127
48128 doCommand "emximp -o ${D}arcFile ${D}defFile"
48129 if [ ${D}flag_USE_LXLITE -ne 0 ]; then
48130     add_flags="";
48131     if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then
48132         add_flags="-ynd"
48133     fi
48134     doCommand "lxlite -cs -t: -mrn -mln ${D}add_flags ${D}dllFile"
48135 fi
48136 doCommand "emxomf -s -l ${D}arcFile"
48137
48138 # Successful exit.
48139 CleanUp 1
48140 exit 0
48141 EOF
48142
48143         chmod +x dllar.sh
48144       ;;
48145
48146       powerpc-apple-macos* | \
48147       *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | *-*-k*bsd*-gnu | \
48148       *-*-mirbsd* | \
48149       *-*-sunos4* | \
48150       *-*-osf* | \
48151       *-*-dgux5* | \
48152       *-*-sysv5* | \
48153       *-pc-msdosdjgpp )
48154               ;;
48155
48156       *)
48157         { { echo "$as_me:$LINENO: error: unknown system type $BAKEFILE_HOST." >&5
48158 echo "$as_me: error: unknown system type $BAKEFILE_HOST." >&2;}
48159    { (exit 1); exit 1; }; }
48160     esac
48161
48162     if test "x$PIC_FLAG" != "x" ; then
48163         PIC_FLAG="$PIC_FLAG -DPIC"
48164     fi
48165
48166     if test "x$SHARED_LD_MODULE_CC" = "x" ; then
48167         SHARED_LD_MODULE_CC="$SHARED_LD_CC"
48168     fi
48169     if test "x$SHARED_LD_MODULE_CXX" = "x" ; then
48170         SHARED_LD_MODULE_CXX="$SHARED_LD_CXX"
48171     fi
48172
48173
48174
48175
48176
48177
48178
48179
48180
48181     USE_SOVERSION=0
48182     USE_SOVERLINUX=0
48183     USE_SOVERSOLARIS=0
48184     USE_SOVERCYGWIN=0
48185     USE_SOSYMLINKS=0
48186     USE_MACVERSION=0
48187     SONAME_FLAG=
48188
48189     case "${BAKEFILE_HOST}" in
48190       *-*-linux* | *-*-freebsd* | *-*-k*bsd*-gnu )
48191         if test "x$SUNCXX" = "xyes"; then
48192             SONAME_FLAG="-h "
48193         else
48194             SONAME_FLAG="-Wl,-soname,"
48195         fi
48196         USE_SOVERSION=1
48197         USE_SOVERLINUX=1
48198         USE_SOSYMLINKS=1
48199       ;;
48200
48201       *-*-solaris2* )
48202         SONAME_FLAG="-h "
48203         USE_SOVERSION=1
48204         USE_SOVERSOLARIS=1
48205         USE_SOSYMLINKS=1
48206       ;;
48207
48208       *-*-darwin* )
48209         USE_MACVERSION=1
48210         USE_SOVERSION=1
48211         USE_SOSYMLINKS=1
48212       ;;
48213
48214       *-*-cygwin* )
48215         USE_SOVERSION=1
48216         USE_SOVERCYGWIN=1
48217       ;;
48218     esac
48219
48220
48221
48222
48223
48224
48225
48226
48227
48228
48229     # Check whether --enable-dependency-tracking was given.
48230 if test "${enable_dependency_tracking+set}" = set; then
48231   enableval=$enable_dependency_tracking; bk_use_trackdeps="$enableval"
48232 fi
48233
48234
48235     { echo "$as_me:$LINENO: checking for dependency tracking method" >&5
48236 echo $ECHO_N "checking for dependency tracking method... $ECHO_C" >&6; }
48237
48238     BK_DEPS=""
48239     if test "x$bk_use_trackdeps" = "xno" ; then
48240         DEPS_TRACKING=0
48241         { echo "$as_me:$LINENO: result: disabled" >&5
48242 echo "${ECHO_T}disabled" >&6; }
48243     else
48244         DEPS_TRACKING=1
48245
48246         if test "x$GCC" = "xyes"; then
48247             DEPSMODE=gcc
48248             case "${BAKEFILE_HOST}" in
48249                 *-*-darwin* )
48250                                                             DEPSFLAG="-no-cpp-precomp -MMD"
48251                 ;;
48252                 * )
48253                     DEPSFLAG="-MMD"
48254                 ;;
48255             esac
48256             { echo "$as_me:$LINENO: result: gcc" >&5
48257 echo "${ECHO_T}gcc" >&6; }
48258         elif test "x$MWCC" = "xyes"; then
48259             DEPSMODE=mwcc
48260             DEPSFLAG="-MM"
48261             { echo "$as_me:$LINENO: result: mwcc" >&5
48262 echo "${ECHO_T}mwcc" >&6; }
48263         elif test "x$SUNCC" = "xyes"; then
48264             DEPSMODE=unixcc
48265             DEPSFLAG="-xM1"
48266             { echo "$as_me:$LINENO: result: Sun cc" >&5
48267 echo "${ECHO_T}Sun cc" >&6; }
48268         elif test "x$SGICC" = "xyes"; then
48269             DEPSMODE=unixcc
48270             DEPSFLAG="-M"
48271             { echo "$as_me:$LINENO: result: SGI cc" >&5
48272 echo "${ECHO_T}SGI cc" >&6; }
48273         elif test "x$HPCC" = "xyes"; then
48274             DEPSMODE=unixcc
48275             DEPSFLAG="+make"
48276             { echo "$as_me:$LINENO: result: HP cc" >&5
48277 echo "${ECHO_T}HP cc" >&6; }
48278         elif test "x$COMPAQCC" = "xyes"; then
48279             DEPSMODE=gcc
48280             DEPSFLAG="-MD"
48281             { echo "$as_me:$LINENO: result: Compaq cc" >&5
48282 echo "${ECHO_T}Compaq cc" >&6; }
48283         else
48284             DEPS_TRACKING=0
48285             { echo "$as_me:$LINENO: result: none" >&5
48286 echo "${ECHO_T}none" >&6; }
48287         fi
48288
48289         if test $DEPS_TRACKING = 1 ; then
48290
48291 D='$'
48292 cat <<EOF >bk-deps
48293 #!/bin/sh
48294
48295 # This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
48296 # script. It is used to track C/C++ files dependencies in portable way.
48297 #
48298 # Permission is given to use this file in any way.
48299
48300 DEPSMODE=${DEPSMODE}
48301 DEPSDIR=.deps
48302 DEPSFLAG="${DEPSFLAG}"
48303
48304 mkdir -p ${D}DEPSDIR
48305
48306 if test ${D}DEPSMODE = gcc ; then
48307     ${D}* ${D}{DEPSFLAG}
48308     status=${D}?
48309     if test ${D}{status} != 0 ; then
48310         exit ${D}{status}
48311     fi
48312     # move created file to the location we want it in:
48313     while test ${D}# -gt 0; do
48314         case "${D}1" in
48315             -o )
48316                 shift
48317                 objfile=${D}1
48318             ;;
48319             -* )
48320             ;;
48321             * )
48322                 srcfile=${D}1
48323             ;;
48324         esac
48325         shift
48326     done
48327     depfile=\`basename ${D}srcfile | sed -e 's/\\..*${D}/.d/g'\`
48328     depobjname=\`echo ${D}depfile |sed -e 's/\\.d/.o/g'\`
48329     if test -f ${D}depfile ; then
48330         sed -e "s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d
48331         rm -f ${D}depfile
48332     else
48333         # "g++ -MMD -o fooobj.o foosrc.cpp" produces fooobj.d
48334         depfile=\`basename ${D}objfile | sed -e 's/\\..*${D}/.d/g'\`
48335         if test ! -f ${D}depfile ; then
48336             # "cxx -MD -o fooobj.o foosrc.cpp" creates fooobj.o.d (Compaq C++)
48337             depfile="${D}objfile.d"
48338         fi
48339         if test -f ${D}depfile ; then
48340             sed -e "/^${D}objfile/!s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d
48341             rm -f ${D}depfile
48342         fi
48343     fi
48344     exit 0
48345 elif test ${D}DEPSMODE = mwcc ; then
48346     ${D}* || exit ${D}?
48347     # Run mwcc again with -MM and redirect into the dep file we want
48348     # NOTE: We can't use shift here because we need ${D}* to be valid
48349     prevarg=
48350     for arg in ${D}* ; do
48351         if test "${D}prevarg" = "-o"; then
48352             objfile=${D}arg
48353         else
48354             case "${D}arg" in
48355                 -* )
48356                 ;;
48357                 * )
48358                     srcfile=${D}arg
48359                 ;;
48360             esac
48361         fi
48362         prevarg="${D}arg"
48363     done
48364     ${D}* ${D}DEPSFLAG >${D}{DEPSDIR}/${D}{objfile}.d
48365     exit 0
48366 elif test ${D}DEPSMODE = unixcc; then
48367     ${D}* || exit ${D}?
48368     # Run compiler again with deps flag and redirect into the dep file.
48369     # It doesn't work if the '-o FILE' option is used, but without it the
48370     # dependency file will contain the wrong name for the object. So it is
48371     # removed from the command line, and the dep file is fixed with sed.
48372     cmd=""
48373     while test ${D}# -gt 0; do
48374         case "${D}1" in
48375             -o )
48376                 shift
48377                 objfile=${D}1
48378             ;;
48379             * )
48380                 eval arg${D}#=\\${D}1
48381                 cmd="${D}cmd \\${D}arg${D}#"
48382             ;;
48383         esac
48384         shift
48385     done
48386     eval "${D}cmd ${D}DEPSFLAG" | sed "s|.*:|${D}objfile:|" >${D}{DEPSDIR}/${D}{objfile}.d
48387     exit 0
48388 else
48389     ${D}*
48390     exit ${D}?
48391 fi
48392 EOF
48393
48394             chmod +x bk-deps
48395                                     BK_DEPS="`pwd`/bk-deps"
48396         fi
48397     fi
48398
48399
48400
48401
48402
48403     case ${BAKEFILE_HOST} in
48404         *-*-cygwin* | *-*-mingw32* )
48405                         if test -n "$ac_tool_prefix"; then
48406   # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
48407 set dummy ${ac_tool_prefix}windres; ac_word=$2
48408 { echo "$as_me:$LINENO: checking for $ac_word" >&5
48409 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
48410 if test "${ac_cv_prog_WINDRES+set}" = set; then
48411   echo $ECHO_N "(cached) $ECHO_C" >&6
48412 else
48413   if test -n "$WINDRES"; then
48414   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
48415 else
48416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
48417 for as_dir in $PATH
48418 do
48419   IFS=$as_save_IFS
48420   test -z "$as_dir" && as_dir=.
48421   for ac_exec_ext in '' $ac_executable_extensions; do
48422   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
48423     ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
48424     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
48425     break 2
48426   fi
48427 done
48428 done
48429 IFS=$as_save_IFS
48430
48431 fi
48432 fi
48433 WINDRES=$ac_cv_prog_WINDRES
48434 if test -n "$WINDRES"; then
48435   { echo "$as_me:$LINENO: result: $WINDRES" >&5
48436 echo "${ECHO_T}$WINDRES" >&6; }
48437 else
48438   { echo "$as_me:$LINENO: result: no" >&5
48439 echo "${ECHO_T}no" >&6; }
48440 fi
48441
48442
48443 fi
48444 if test -z "$ac_cv_prog_WINDRES"; then
48445   ac_ct_WINDRES=$WINDRES
48446   # Extract the first word of "windres", so it can be a program name with args.
48447 set dummy windres; ac_word=$2
48448 { echo "$as_me:$LINENO: checking for $ac_word" >&5
48449 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
48450 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
48451   echo $ECHO_N "(cached) $ECHO_C" >&6
48452 else
48453   if test -n "$ac_ct_WINDRES"; then
48454   ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
48455 else
48456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
48457 for as_dir in $PATH
48458 do
48459   IFS=$as_save_IFS
48460   test -z "$as_dir" && as_dir=.
48461   for ac_exec_ext in '' $ac_executable_extensions; do
48462   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
48463     ac_cv_prog_ac_ct_WINDRES="windres"
48464     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
48465     break 2
48466   fi
48467 done
48468 done
48469 IFS=$as_save_IFS
48470
48471 fi
48472 fi
48473 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
48474 if test -n "$ac_ct_WINDRES"; then
48475   { echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
48476 echo "${ECHO_T}$ac_ct_WINDRES" >&6; }
48477 else
48478   { echo "$as_me:$LINENO: result: no" >&5
48479 echo "${ECHO_T}no" >&6; }
48480 fi
48481
48482   if test "x$ac_ct_WINDRES" = x; then
48483     WINDRES=""
48484   else
48485     case $cross_compiling:$ac_tool_warned in
48486 yes:)
48487 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
48488 whose name does not start with the host triplet.  If you think this
48489 configuration is useful to you, please write to autoconf@gnu.org." >&5
48490 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
48491 whose name does not start with the host triplet.  If you think this
48492 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
48493 ac_tool_warned=yes ;;
48494 esac
48495     WINDRES=$ac_ct_WINDRES
48496   fi
48497 else
48498   WINDRES="$ac_cv_prog_WINDRES"
48499 fi
48500
48501          ;;
48502
48503       *-*-darwin* | powerpc-apple-macos* )
48504             # Extract the first word of "Rez", so it can be a program name with args.
48505 set dummy Rez; ac_word=$2
48506 { echo "$as_me:$LINENO: checking for $ac_word" >&5
48507 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
48508 if test "${ac_cv_prog_REZ+set}" = set; then
48509   echo $ECHO_N "(cached) $ECHO_C" >&6
48510 else
48511   if test -n "$REZ"; then
48512   ac_cv_prog_REZ="$REZ" # Let the user override the test.
48513 else
48514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
48515 for as_dir in $PATH
48516 do
48517   IFS=$as_save_IFS
48518   test -z "$as_dir" && as_dir=.
48519   for ac_exec_ext in '' $ac_executable_extensions; do
48520   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
48521     ac_cv_prog_REZ="Rez"
48522     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
48523     break 2
48524   fi
48525 done
48526 done
48527 IFS=$as_save_IFS
48528
48529   test -z "$ac_cv_prog_REZ" && ac_cv_prog_REZ="/Developer/Tools/Rez"
48530 fi
48531 fi
48532 REZ=$ac_cv_prog_REZ
48533 if test -n "$REZ"; then
48534   { echo "$as_me:$LINENO: result: $REZ" >&5
48535 echo "${ECHO_T}$REZ" >&6; }
48536 else
48537   { echo "$as_me:$LINENO: result: no" >&5
48538 echo "${ECHO_T}no" >&6; }
48539 fi
48540
48541
48542             # Extract the first word of "SetFile", so it can be a program name with args.
48543 set dummy SetFile; ac_word=$2
48544 { echo "$as_me:$LINENO: checking for $ac_word" >&5
48545 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
48546 if test "${ac_cv_prog_SETFILE+set}" = set; then
48547   echo $ECHO_N "(cached) $ECHO_C" >&6
48548 else
48549   if test -n "$SETFILE"; then
48550   ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
48551 else
48552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
48553 for as_dir in $PATH
48554 do
48555   IFS=$as_save_IFS
48556   test -z "$as_dir" && as_dir=.
48557   for ac_exec_ext in '' $ac_executable_extensions; do
48558   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
48559     ac_cv_prog_SETFILE="SetFile"
48560     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
48561     break 2
48562   fi
48563 done
48564 done
48565 IFS=$as_save_IFS
48566
48567   test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
48568 fi
48569 fi
48570 SETFILE=$ac_cv_prog_SETFILE
48571 if test -n "$SETFILE"; then
48572   { echo "$as_me:$LINENO: result: $SETFILE" >&5
48573 echo "${ECHO_T}$SETFILE" >&6; }
48574 else
48575   { echo "$as_me:$LINENO: result: no" >&5
48576 echo "${ECHO_T}no" >&6; }
48577 fi
48578
48579
48580         ;;
48581     esac
48582
48583
48584
48585
48586
48587
48588     BAKEFILE_BAKEFILE_M4_VERSION="0.2.2"
48589
48590
48591 BAKEFILE_AUTOCONF_INC_M4_VERSION="0.2.2"
48592
48593
48594
48595     # Check whether --enable-precomp-headers was given.
48596 if test "${enable_precomp_headers+set}" = set; then
48597   enableval=$enable_precomp_headers; bk_use_pch="$enableval"
48598 fi
48599
48600
48601     GCC_PCH=0
48602     ICC_PCH=0
48603     USE_PCH=0
48604     BK_MAKE_PCH=""
48605
48606     case ${BAKEFILE_HOST} in
48607         *-*-cygwin* )
48608                                                 bk_use_pch="no"
48609             ;;
48610     esac
48611
48612     if test "x$bk_use_pch" = "x" -o "x$bk_use_pch" = "xyes" ; then
48613         if test "x$GCC" = "xyes"; then
48614                         { echo "$as_me:$LINENO: checking if the compiler supports precompiled headers" >&5
48615 echo $ECHO_N "checking if the compiler supports precompiled headers... $ECHO_C" >&6; }
48616             cat >conftest.$ac_ext <<_ACEOF
48617 /* confdefs.h.  */
48618 _ACEOF
48619 cat confdefs.h >>conftest.$ac_ext
48620 cat >>conftest.$ac_ext <<_ACEOF
48621 /* end confdefs.h.  */
48622
48623 int
48624 main ()
48625 {
48626
48627                     #if !defined(__GNUC__) || !defined(__GNUC_MINOR__)
48628                         There is no PCH support
48629                     #endif
48630                     #if (__GNUC__ < 3)
48631                         There is no PCH support
48632                     #endif
48633                     #if (__GNUC__ == 3) && \
48634                        ((!defined(__APPLE_CC__) && (__GNUC_MINOR__ < 4)) || \
48635                        ( defined(__APPLE_CC__) && (__GNUC_MINOR__ < 3))) || \
48636                        ( defined(__INTEL_COMPILER) )
48637                         There is no PCH support
48638                     #endif
48639
48640   ;
48641   return 0;
48642 }
48643 _ACEOF
48644 rm -f conftest.$ac_objext
48645 if { (ac_try="$ac_compile"
48646 case "(($ac_try" in
48647   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48648   *) ac_try_echo=$ac_try;;
48649 esac
48650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48651   (eval "$ac_compile") 2>conftest.er1
48652   ac_status=$?
48653   grep -v '^ *+' conftest.er1 >conftest.err
48654   rm -f conftest.er1
48655   cat conftest.err >&5
48656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48657   (exit $ac_status); } && {
48658          test -z "$ac_c_werror_flag" ||
48659          test ! -s conftest.err
48660        } && test -s conftest.$ac_objext; then
48661
48662                     { echo "$as_me:$LINENO: result: yes" >&5
48663 echo "${ECHO_T}yes" >&6; }
48664                     GCC_PCH=1
48665
48666 else
48667   echo "$as_me: failed program was:" >&5
48668 sed 's/^/| /' conftest.$ac_ext >&5
48669
48670
48671                     cat >conftest.$ac_ext <<_ACEOF
48672 /* confdefs.h.  */
48673 _ACEOF
48674 cat confdefs.h >>conftest.$ac_ext
48675 cat >>conftest.$ac_ext <<_ACEOF
48676 /* end confdefs.h.  */
48677
48678 int
48679 main ()
48680 {
48681
48682                             #if !defined(__INTEL_COMPILER) || \
48683                                 (__INTEL_COMPILER < 800)
48684                                 There is no PCH support
48685                             #endif
48686
48687   ;
48688   return 0;
48689 }
48690 _ACEOF
48691 rm -f conftest.$ac_objext
48692 if { (ac_try="$ac_compile"
48693 case "(($ac_try" in
48694   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48695   *) ac_try_echo=$ac_try;;
48696 esac
48697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48698   (eval "$ac_compile") 2>conftest.er1
48699   ac_status=$?
48700   grep -v '^ *+' conftest.er1 >conftest.err
48701   rm -f conftest.er1
48702   cat conftest.err >&5
48703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48704   (exit $ac_status); } && {
48705          test -z "$ac_c_werror_flag" ||
48706          test ! -s conftest.err
48707        } && test -s conftest.$ac_objext; then
48708
48709                             { echo "$as_me:$LINENO: result: yes" >&5
48710 echo "${ECHO_T}yes" >&6; }
48711                             ICC_PCH=1
48712
48713 else
48714   echo "$as_me: failed program was:" >&5
48715 sed 's/^/| /' conftest.$ac_ext >&5
48716
48717
48718                             { echo "$as_me:$LINENO: result: no" >&5
48719 echo "${ECHO_T}no" >&6; }
48720
48721 fi
48722
48723 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
48724
48725 fi
48726
48727 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
48728             if test $GCC_PCH = 1 -o $ICC_PCH = 1 ; then
48729                 USE_PCH=1
48730
48731 D='$'
48732 cat <<EOF >bk-make-pch
48733 #!/bin/sh
48734
48735 # This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
48736 # script. It is used to generated precompiled headers.
48737 #
48738 # Permission is given to use this file in any way.
48739
48740 outfile="${D}{1}"
48741 header="${D}{2}"
48742 shift
48743 shift
48744
48745 compiler=""
48746 headerfile=""
48747
48748 while test ${D}{#} -gt 0; do
48749     add_to_cmdline=1
48750     case "${D}{1}" in
48751         -I* )
48752             incdir=\`echo ${D}{1} | sed -e 's/-I\\(.*\\)/\\1/g'\`
48753             if test "x${D}{headerfile}" = "x" -a -f "${D}{incdir}/${D}{header}" ; then
48754                 headerfile="${D}{incdir}/${D}{header}"
48755             fi
48756         ;;
48757         -use-pch|-use_pch )
48758             shift
48759             add_to_cmdline=0
48760         ;;
48761     esac
48762     if test ${D}add_to_cmdline = 1 ; then
48763         compiler="${D}{compiler} ${D}{1}"
48764     fi
48765     shift
48766 done
48767
48768 if test "x${D}{headerfile}" = "x" ; then
48769     echo "error: can't find header ${D}{header} in include paths" >&2
48770 else
48771     if test -f ${D}{outfile} ; then
48772         rm -f ${D}{outfile}
48773     else
48774         mkdir -p \`dirname ${D}{outfile}\`
48775     fi
48776     depsfile=".deps/\`echo ${D}{outfile} | tr '/.' '__'\`.d"
48777     mkdir -p .deps
48778     if test "x${GCC_PCH}" = "x1" ; then
48779         # can do this because gcc is >= 3.4:
48780         ${D}{compiler} -o ${D}{outfile} -MMD -MF "${D}{depsfile}" "${D}{headerfile}"
48781     elif test "x${ICC_PCH}" = "x1" ; then
48782         filename=pch_gen-${D}${D}
48783         file=${D}{filename}.c
48784         dfile=${D}{filename}.d
48785         cat > ${D}file <<EOT
48786 #include "${D}header"
48787 EOT
48788         # using -MF icc complains about differing command lines in creation/use
48789         ${D}compiler -c -create_pch ${D}outfile -MMD ${D}file && \\
48790           sed -e "s,^.*:,${D}outfile:," -e "s, ${D}file,," < ${D}dfile > ${D}depsfile && \\
48791           rm -f ${D}file ${D}dfile ${D}{filename}.o
48792     fi
48793     exit ${D}{?}
48794 fi
48795 EOF
48796
48797                 chmod +x bk-make-pch
48798                                                                 BK_MAKE_PCH="`pwd`/bk-make-pch"
48799             fi
48800         fi
48801     fi
48802
48803
48804
48805
48806
48807     COND_BUILD_DEBUG="#"
48808     if test "x$BUILD" = "xdebug" ; then
48809         COND_BUILD_DEBUG=""
48810     fi
48811
48812     COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="#"
48813     if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then
48814         COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT=""
48815     fi
48816
48817     COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="#"
48818     if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then
48819         COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT=""
48820     fi
48821
48822     COND_BUILD_DEBUG_UNICODE_0="#"
48823     if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x0" ; then
48824         COND_BUILD_DEBUG_UNICODE_0=""
48825     fi
48826
48827     COND_BUILD_DEBUG_UNICODE_1="#"
48828     if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x1" ; then
48829         COND_BUILD_DEBUG_UNICODE_1=""
48830     fi
48831
48832     COND_BUILD_RELEASE="#"
48833     if test "x$BUILD" = "xrelease" ; then
48834         COND_BUILD_RELEASE=""
48835     fi
48836
48837     COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="#"
48838     if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then
48839         COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT=""
48840     fi
48841
48842     COND_BUILD_RELEASE_UNICODE_0="#"
48843     if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x0" ; then
48844         COND_BUILD_RELEASE_UNICODE_0=""
48845     fi
48846
48847     COND_BUILD_RELEASE_UNICODE_1="#"
48848     if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x1" ; then
48849         COND_BUILD_RELEASE_UNICODE_1=""
48850     fi
48851
48852     COND_DEBUG_FLAG_1="#"
48853     if test "x$DEBUG_FLAG" = "x1" ; then
48854         COND_DEBUG_FLAG_1=""
48855     fi
48856
48857     COND_DEBUG_INFO_0="#"
48858     if test "x$DEBUG_INFO" = "x0" ; then
48859         COND_DEBUG_INFO_0=""
48860     fi
48861
48862     COND_DEBUG_INFO_1="#"
48863     if test "x$DEBUG_INFO" = "x1" ; then
48864         COND_DEBUG_INFO_1=""
48865     fi
48866
48867     COND_DEPS_TRACKING_0="#"
48868     if test "x$DEPS_TRACKING" = "x0" ; then
48869         COND_DEPS_TRACKING_0=""
48870     fi
48871
48872     COND_DEPS_TRACKING_1="#"
48873     if test "x$DEPS_TRACKING" = "x1" ; then
48874         COND_DEPS_TRACKING_1=""
48875     fi
48876
48877     COND_GCC_PCH_1="#"
48878     if test "x$GCC_PCH" = "x1" ; then
48879         COND_GCC_PCH_1=""
48880     fi
48881
48882     COND_ICC_PCH_1="#"
48883     if test "x$ICC_PCH" = "x1" ; then
48884         COND_ICC_PCH_1=""
48885     fi
48886
48887     COND_MONOLITHIC_0="#"
48888     if test "x$MONOLITHIC" = "x0" ; then
48889         COND_MONOLITHIC_0=""
48890     fi
48891
48892     COND_MONOLITHIC_0_SHARED_0="#"
48893     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" ; then
48894         COND_MONOLITHIC_0_SHARED_0=""
48895     fi
48896
48897     COND_MONOLITHIC_0_SHARED_0_USE_AUI_1="#"
48898     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_AUI" = "x1" ; then
48899         COND_MONOLITHIC_0_SHARED_0_USE_AUI_1=""
48900     fi
48901
48902     COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="#"
48903     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" ; then
48904         COND_MONOLITHIC_0_SHARED_0_USE_GUI_1=""
48905     fi
48906
48907     COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1="#"
48908     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then
48909         COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1=""
48910     fi
48911
48912     COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1="#"
48913     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_MEDIA" = "x1" ; then
48914         COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1=""
48915     fi
48916
48917     COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1="#"
48918     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_QA" = "x1" ; then
48919         COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1=""
48920     fi
48921
48922     COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1="#"
48923     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_RICHTEXT" = "x1" ; then
48924         COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1=""
48925     fi
48926
48927     COND_MONOLITHIC_0_SHARED_0_USE_STC_1="#"
48928     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_STC" = "x1" ; then
48929         COND_MONOLITHIC_0_SHARED_0_USE_STC_1=""
48930     fi
48931
48932     COND_MONOLITHIC_0_SHARED_0_USE_XRC_1="#"
48933     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then
48934         COND_MONOLITHIC_0_SHARED_0_USE_XRC_1=""
48935     fi
48936
48937     COND_MONOLITHIC_0_SHARED_1="#"
48938     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" ; then
48939         COND_MONOLITHIC_0_SHARED_1=""
48940     fi
48941
48942     COND_MONOLITHIC_0_SHARED_1_USE_AUI_1="#"
48943     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_AUI" = "x1" ; then
48944         COND_MONOLITHIC_0_SHARED_1_USE_AUI_1=""
48945     fi
48946
48947     COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="#"
48948     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" ; then
48949         COND_MONOLITHIC_0_SHARED_1_USE_GUI_1=""
48950     fi
48951
48952     COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1="#"
48953     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then
48954         COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1=""
48955     fi
48956
48957     COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1="#"
48958     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_MEDIA" = "x1" ; then
48959         COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1=""
48960     fi
48961
48962     COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1="#"
48963     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_QA" = "x1" ; then
48964         COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1=""
48965     fi
48966
48967     COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1="#"
48968     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_RICHTEXT" = "x1" ; then
48969         COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1=""
48970     fi
48971
48972     COND_MONOLITHIC_0_SHARED_1_USE_STC_1="#"
48973     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_STC" = "x1" ; then
48974         COND_MONOLITHIC_0_SHARED_1_USE_STC_1=""
48975     fi
48976
48977     COND_MONOLITHIC_0_SHARED_1_USE_XRC_1="#"
48978     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then
48979         COND_MONOLITHIC_0_SHARED_1_USE_XRC_1=""
48980     fi
48981
48982     COND_MONOLITHIC_0_USE_AUI_1="#"
48983     if test "x$MONOLITHIC" = "x0" -a "x$USE_AUI" = "x1" ; then
48984         COND_MONOLITHIC_0_USE_AUI_1=""
48985     fi
48986
48987     COND_MONOLITHIC_0_USE_GUI_1="#"
48988     if test "x$MONOLITHIC" = "x0" -a "x$USE_GUI" = "x1" ; then
48989         COND_MONOLITHIC_0_USE_GUI_1=""
48990     fi
48991
48992     COND_MONOLITHIC_0_USE_GUI_1_USE_MEDIA_1="#"
48993     if test "x$MONOLITHIC" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_MEDIA" = "x1" ; then
48994         COND_MONOLITHIC_0_USE_GUI_1_USE_MEDIA_1=""
48995     fi
48996
48997     COND_MONOLITHIC_0_USE_HTML_1="#"
48998     if test "x$MONOLITHIC" = "x0" -a "x$USE_HTML" = "x1" ; then
48999         COND_MONOLITHIC_0_USE_HTML_1=""
49000     fi
49001
49002     COND_MONOLITHIC_0_USE_MEDIA_1="#"
49003     if test "x$MONOLITHIC" = "x0" -a "x$USE_MEDIA" = "x1" ; then
49004         COND_MONOLITHIC_0_USE_MEDIA_1=""
49005     fi
49006
49007     COND_MONOLITHIC_0_USE_QA_1="#"
49008     if test "x$MONOLITHIC" = "x0" -a "x$USE_QA" = "x1" ; then
49009         COND_MONOLITHIC_0_USE_QA_1=""
49010     fi
49011
49012     COND_MONOLITHIC_0_USE_RICHTEXT_1="#"
49013     if test "x$MONOLITHIC" = "x0" -a "x$USE_RICHTEXT" = "x1" ; then
49014         COND_MONOLITHIC_0_USE_RICHTEXT_1=""
49015     fi
49016
49017     COND_MONOLITHIC_0_USE_STC_1="#"
49018     if test "x$MONOLITHIC" = "x0" -a "x$USE_STC" = "x1" ; then
49019         COND_MONOLITHIC_0_USE_STC_1=""
49020     fi
49021
49022     COND_MONOLITHIC_0_USE_XRC_1="#"
49023     if test "x$MONOLITHIC" = "x0" -a "x$USE_XRC" = "x1" ; then
49024         COND_MONOLITHIC_0_USE_XRC_1=""
49025     fi
49026
49027     COND_MONOLITHIC_1="#"
49028     if test "x$MONOLITHIC" = "x1" ; then
49029         COND_MONOLITHIC_1=""
49030     fi
49031
49032     COND_MONOLITHIC_1_SHARED_0="#"
49033     if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x0" ; then
49034         COND_MONOLITHIC_1_SHARED_0=""
49035     fi
49036
49037     COND_MONOLITHIC_1_SHARED_1="#"
49038     if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x1" ; then
49039         COND_MONOLITHIC_1_SHARED_1=""
49040     fi
49041
49042     COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="#"
49043     if test "x$OFFICIAL_BUILD" = "x0" -a "x$PLATFORM_WIN32" = "x1" ; then
49044         COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1=""
49045     fi
49046
49047     COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="#"
49048     if test "x$OFFICIAL_BUILD" = "x1" -a "x$PLATFORM_WIN32" = "x1" ; then
49049         COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1=""
49050     fi
49051
49052     COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1="#"
49053     if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERCYGWIN" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
49054         COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1=""
49055     fi
49056
49057     COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="#"
49058     if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
49059         COND_PLATFORM_MACOSX_0_USE_SOVERSION_1=""
49060     fi
49061
49062     COND_PLATFORM_MACOSX_1="#"
49063     if test "x$PLATFORM_MACOSX" = "x1" ; then
49064         COND_PLATFORM_MACOSX_1=""
49065     fi
49066
49067     COND_PLATFORM_MACOSX_1_TOOLKIT_="#"
49068     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "x" ; then
49069         COND_PLATFORM_MACOSX_1_TOOLKIT_=""
49070     fi
49071
49072     COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="#"
49073     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xCOCOA" ; then
49074         COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA=""
49075     fi
49076
49077     COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="#"
49078     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xGTK" ; then
49079         COND_PLATFORM_MACOSX_1_TOOLKIT_GTK=""
49080     fi
49081
49082     COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="#"
49083     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" ; then
49084         COND_PLATFORM_MACOSX_1_TOOLKIT_MAC=""
49085     fi
49086
49087     COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1="#"
49088     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
49089         COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1=""
49090     fi
49091
49092     COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF="#"
49093     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMOTIF" ; then
49094         COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF=""
49095     fi
49096
49097     COND_PLATFORM_MACOSX_1_TOOLKIT_X11="#"
49098     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xX11" ; then
49099         COND_PLATFORM_MACOSX_1_TOOLKIT_X11=""
49100     fi
49101
49102     COND_PLATFORM_MACOSX_1_USE_GUI_1="#"
49103     if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_GUI" = "x1" ; then
49104         COND_PLATFORM_MACOSX_1_USE_GUI_1=""
49105     fi
49106
49107     COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="#"
49108     if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
49109         COND_PLATFORM_MACOSX_1_USE_SOVERSION_1=""
49110     fi
49111
49112     COND_PLATFORM_MACOS_1="#"
49113     if test "x$PLATFORM_MACOS" = "x1" ; then
49114         COND_PLATFORM_MACOS_1=""
49115     fi
49116
49117     COND_PLATFORM_MAC_1="#"
49118     if test "x$PLATFORM_MAC" = "x1" ; then
49119         COND_PLATFORM_MAC_1=""
49120     fi
49121
49122     COND_PLATFORM_MSDOS_0="#"
49123     if test "x$PLATFORM_MSDOS" = "x0" ; then
49124         COND_PLATFORM_MSDOS_0=""
49125     fi
49126
49127     COND_PLATFORM_MSDOS_1="#"
49128     if test "x$PLATFORM_MSDOS" = "x1" ; then
49129         COND_PLATFORM_MSDOS_1=""
49130     fi
49131
49132     COND_PLATFORM_OS2_1="#"
49133     if test "x$PLATFORM_OS2" = "x1" ; then
49134         COND_PLATFORM_OS2_1=""
49135     fi
49136
49137     COND_PLATFORM_UNIX_0="#"
49138     if test "x$PLATFORM_UNIX" = "x0" ; then
49139         COND_PLATFORM_UNIX_0=""
49140     fi
49141
49142     COND_PLATFORM_UNIX_1="#"
49143     if test "x$PLATFORM_UNIX" = "x1" ; then
49144         COND_PLATFORM_UNIX_1=""
49145     fi
49146
49147     COND_PLATFORM_UNIX_1_TOOLKIT_MGL="#"
49148     if test "x$PLATFORM_UNIX" = "x1" -a "x$TOOLKIT" = "xMGL" ; then
49149         COND_PLATFORM_UNIX_1_TOOLKIT_MGL=""
49150     fi
49151
49152     COND_PLATFORM_UNIX_1_TOOLKIT_MGL_USE_GUI_1="#"
49153     if test "x$PLATFORM_UNIX" = "x1" -a "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then
49154         COND_PLATFORM_UNIX_1_TOOLKIT_MGL_USE_GUI_1=""
49155     fi
49156
49157     COND_PLATFORM_UNIX_1_USE_GUI_1="#"
49158     if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_GUI" = "x1" ; then
49159         COND_PLATFORM_UNIX_1_USE_GUI_1=""
49160     fi
49161
49162     COND_PLATFORM_UNIX_1_USE_PLUGINS_0="#"
49163     if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_PLUGINS" = "x0" ; then
49164         COND_PLATFORM_UNIX_1_USE_PLUGINS_0=""
49165     fi
49166
49167     COND_PLATFORM_WIN32_0="#"
49168     if test "x$PLATFORM_WIN32" = "x0" ; then
49169         COND_PLATFORM_WIN32_0=""
49170     fi
49171
49172     COND_PLATFORM_WIN32_1="#"
49173     if test "x$PLATFORM_WIN32" = "x1" ; then
49174         COND_PLATFORM_WIN32_1=""
49175     fi
49176
49177     COND_SHARED_0="#"
49178     if test "x$SHARED" = "x0" ; then
49179         COND_SHARED_0=""
49180     fi
49181
49182     COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0="#"
49183     if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMAC" -a "x$WXUNIV" = "x0" ; then
49184         COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0=""
49185     fi
49186
49187     COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0="#"
49188     if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then
49189         COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0=""
49190     fi
49191
49192     COND_SHARED_0_TOOLKIT_PM_WXUNIV_0="#"
49193     if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xPM" -a "x$WXUNIV" = "x0" ; then
49194         COND_SHARED_0_TOOLKIT_PM_WXUNIV_0=""
49195     fi
49196
49197     COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="#"
49198     if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
49199         COND_SHARED_0_USE_GUI_1_USE_OPENGL_1=""
49200     fi
49201
49202     COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
49203     if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
49204         COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
49205     fi
49206
49207     COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
49208     if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
49209         COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
49210     fi
49211
49212     COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
49213     if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
49214         COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
49215     fi
49216
49217     COND_SHARED_0_USE_STC_1="#"
49218     if test "x$SHARED" = "x0" -a "x$USE_STC" = "x1" ; then
49219         COND_SHARED_0_USE_STC_1=""
49220     fi
49221
49222     COND_SHARED_0_WXUSE_EXPAT_BUILTIN="#"
49223     if test "x$SHARED" = "x0" -a "x$wxUSE_EXPAT" = "xbuiltin" ; then
49224         COND_SHARED_0_WXUSE_EXPAT_BUILTIN=""
49225     fi
49226
49227     COND_SHARED_0_WXUSE_REGEX_BUILTIN="#"
49228     if test "x$SHARED" = "x0" -a "x$wxUSE_REGEX" = "xbuiltin" ; then
49229         COND_SHARED_0_WXUSE_REGEX_BUILTIN=""
49230     fi
49231
49232     COND_SHARED_0_WXUSE_ZLIB_BUILTIN="#"
49233     if test "x$SHARED" = "x0" -a "x$wxUSE_ZLIB" = "xbuiltin" ; then
49234         COND_SHARED_0_WXUSE_ZLIB_BUILTIN=""
49235     fi
49236
49237     COND_SHARED_1="#"
49238     if test "x$SHARED" = "x1" ; then
49239         COND_SHARED_1=""
49240     fi
49241
49242     COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="#"
49243     if test "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
49244         COND_SHARED_1_USE_GUI_1_USE_OPENGL_1=""
49245     fi
49246
49247     COND_TOOLKIT_="#"
49248     if test "x$TOOLKIT" = "x" ; then
49249         COND_TOOLKIT_=""
49250     fi
49251
49252     COND_TOOLKIT_COCOA="#"
49253     if test "x$TOOLKIT" = "xCOCOA" ; then
49254         COND_TOOLKIT_COCOA=""
49255     fi
49256
49257     COND_TOOLKIT_COCOA_USE_GUI_1="#"
49258     if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" ; then
49259         COND_TOOLKIT_COCOA_USE_GUI_1=""
49260     fi
49261
49262     COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="#"
49263     if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
49264         COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0=""
49265     fi
49266
49267     COND_TOOLKIT_DFB="#"
49268     if test "x$TOOLKIT" = "xDFB" ; then
49269         COND_TOOLKIT_DFB=""
49270     fi
49271
49272     COND_TOOLKIT_DFB_USE_GUI_1="#"
49273     if test "x$TOOLKIT" = "xDFB" -a "x$USE_GUI" = "x1" ; then
49274         COND_TOOLKIT_DFB_USE_GUI_1=""
49275     fi
49276
49277     COND_TOOLKIT_GTK="#"
49278     if test "x$TOOLKIT" = "xGTK" ; then
49279         COND_TOOLKIT_GTK=""
49280     fi
49281
49282     COND_TOOLKIT_GTK_TOOLKIT_VERSION_="#"
49283     if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x" ; then
49284         COND_TOOLKIT_GTK_TOOLKIT_VERSION_=""
49285     fi
49286
49287     COND_TOOLKIT_GTK_TOOLKIT_VERSION_2="#"
49288     if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x2" ; then
49289         COND_TOOLKIT_GTK_TOOLKIT_VERSION_2=""
49290     fi
49291
49292     COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1="#"
49293     if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x2" -a "x$USE_GUI" = "x1" ; then
49294         COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1=""
49295     fi
49296
49297     COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0="#"
49298     if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x2" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
49299         COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0=""
49300     fi
49301
49302     COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_WXUNIV_0="#"
49303     if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x2" -a "x$WXUNIV" = "x0" ; then
49304         COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_WXUNIV_0=""
49305     fi
49306
49307     COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1="#"
49308     if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x" -a "x$USE_GUI" = "x1" ; then
49309         COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1=""
49310     fi
49311
49312     COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0="#"
49313     if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
49314         COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0=""
49315     fi
49316
49317     COND_TOOLKIT_GTK_USE_GUI_1="#"
49318     if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" ; then
49319         COND_TOOLKIT_GTK_USE_GUI_1=""
49320     fi
49321
49322     COND_TOOLKIT_MAC="#"
49323     if test "x$TOOLKIT" = "xMAC" ; then
49324         COND_TOOLKIT_MAC=""
49325     fi
49326
49327     COND_TOOLKIT_MAC_USE_GUI_1="#"
49328     if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
49329         COND_TOOLKIT_MAC_USE_GUI_1=""
49330     fi
49331
49332     COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#"
49333     if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
49334         COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0=""
49335     fi
49336
49337     COND_TOOLKIT_MGL="#"
49338     if test "x$TOOLKIT" = "xMGL" ; then
49339         COND_TOOLKIT_MGL=""
49340     fi
49341
49342     COND_TOOLKIT_MGL_USE_GUI_1="#"
49343     if test "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then
49344         COND_TOOLKIT_MGL_USE_GUI_1=""
49345     fi
49346
49347     COND_TOOLKIT_MOTIF="#"
49348     if test "x$TOOLKIT" = "xMOTIF" ; then
49349         COND_TOOLKIT_MOTIF=""
49350     fi
49351
49352     COND_TOOLKIT_MOTIF_USE_GUI_1="#"
49353     if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" ; then
49354         COND_TOOLKIT_MOTIF_USE_GUI_1=""
49355     fi
49356
49357     COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="#"
49358     if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
49359         COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0=""
49360     fi
49361
49362     COND_TOOLKIT_MSW="#"
49363     if test "x$TOOLKIT" = "xMSW" ; then
49364         COND_TOOLKIT_MSW=""
49365     fi
49366
49367     COND_TOOLKIT_MSW_USE_GUI_1="#"
49368     if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" ; then
49369         COND_TOOLKIT_MSW_USE_GUI_1=""
49370     fi
49371
49372     COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="#"
49373     if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
49374         COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0=""
49375     fi
49376
49377     COND_TOOLKIT_MSW_WXUNIV_0="#"
49378     if test "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then
49379         COND_TOOLKIT_MSW_WXUNIV_0=""
49380     fi
49381
49382     COND_TOOLKIT_PM="#"
49383     if test "x$TOOLKIT" = "xPM" ; then
49384         COND_TOOLKIT_PM=""
49385     fi
49386
49387     COND_TOOLKIT_PM_USE_GUI_1="#"
49388     if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" ; then
49389         COND_TOOLKIT_PM_USE_GUI_1=""
49390     fi
49391
49392     COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="#"
49393     if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
49394         COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0=""
49395     fi
49396
49397     COND_TOOLKIT_WINCE="#"
49398     if test "x$TOOLKIT" = "xWINCE" ; then
49399         COND_TOOLKIT_WINCE=""
49400     fi
49401
49402     COND_TOOLKIT_WINCE_USE_GUI_1="#"
49403     if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" ; then
49404         COND_TOOLKIT_WINCE_USE_GUI_1=""
49405     fi
49406
49407     COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0="#"
49408     if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
49409         COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0=""
49410     fi
49411
49412     COND_TOOLKIT_WINCE_WXUNIV_0="#"
49413     if test "x$TOOLKIT" = "xWINCE" -a "x$WXUNIV" = "x0" ; then
49414         COND_TOOLKIT_WINCE_WXUNIV_0=""
49415     fi
49416
49417     COND_TOOLKIT_X11="#"
49418     if test "x$TOOLKIT" = "xX11" ; then
49419         COND_TOOLKIT_X11=""
49420     fi
49421
49422     COND_TOOLKIT_X11_USE_GUI_1="#"
49423     if test "x$TOOLKIT" = "xX11" -a "x$USE_GUI" = "x1" ; then
49424         COND_TOOLKIT_X11_USE_GUI_1=""
49425     fi
49426
49427     COND_UNICODE_1="#"
49428     if test "x$UNICODE" = "x1" ; then
49429         COND_UNICODE_1=""
49430     fi
49431
49432     COND_USE_EXCEPTIONS_0="#"
49433     if test "x$USE_EXCEPTIONS" = "x0" ; then
49434         COND_USE_EXCEPTIONS_0=""
49435     fi
49436
49437     COND_USE_EXCEPTIONS_1="#"
49438     if test "x$USE_EXCEPTIONS" = "x1" ; then
49439         COND_USE_EXCEPTIONS_1=""
49440     fi
49441
49442     COND_USE_GUI_0="#"
49443     if test "x$USE_GUI" = "x0" ; then
49444         COND_USE_GUI_0=""
49445     fi
49446
49447     COND_USE_GUI_1="#"
49448     if test "x$USE_GUI" = "x1" ; then
49449         COND_USE_GUI_1=""
49450     fi
49451
49452     COND_USE_GUI_1_USE_OPENGL_1="#"
49453     if test "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
49454         COND_USE_GUI_1_USE_OPENGL_1=""
49455     fi
49456
49457     COND_USE_GUI_1_WXUNIV_0="#"
49458     if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
49459         COND_USE_GUI_1_WXUNIV_0=""
49460     fi
49461
49462     COND_USE_GUI_1_WXUNIV_1="#"
49463     if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then
49464         COND_USE_GUI_1_WXUNIV_1=""
49465     fi
49466
49467     COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
49468     if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
49469         COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
49470     fi
49471
49472     COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
49473     if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
49474         COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
49475     fi
49476
49477     COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
49478     if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
49479         COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
49480     fi
49481
49482     COND_USE_OPENGL_1="#"
49483     if test "x$USE_OPENGL" = "x1" ; then
49484         COND_USE_OPENGL_1=""
49485     fi
49486
49487     COND_USE_PCH_1="#"
49488     if test "x$USE_PCH" = "x1" ; then
49489         COND_USE_PCH_1=""
49490     fi
49491
49492     COND_USE_PLUGINS_0="#"
49493     if test "x$USE_PLUGINS" = "x0" ; then
49494         COND_USE_PLUGINS_0=""
49495     fi
49496
49497     COND_USE_RTTI_0="#"
49498     if test "x$USE_RTTI" = "x0" ; then
49499         COND_USE_RTTI_0=""
49500     fi
49501
49502     COND_USE_RTTI_1="#"
49503     if test "x$USE_RTTI" = "x1" ; then
49504         COND_USE_RTTI_1=""
49505     fi
49506
49507     COND_USE_SOSYMLINKS_1="#"
49508     if test "x$USE_SOSYMLINKS" = "x1" ; then
49509         COND_USE_SOSYMLINKS_1=""
49510     fi
49511
49512     COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1="#"
49513     if test "x$USE_SOVERCYGWIN" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
49514         COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1=""
49515     fi
49516
49517     COND_USE_SOVERLINUX_1="#"
49518     if test "x$USE_SOVERLINUX" = "x1" ; then
49519         COND_USE_SOVERLINUX_1=""
49520     fi
49521
49522     COND_USE_SOVERSION_0="#"
49523     if test "x$USE_SOVERSION" = "x0" ; then
49524         COND_USE_SOVERSION_0=""
49525     fi
49526
49527     COND_USE_SOVERSOLARIS_1="#"
49528     if test "x$USE_SOVERSOLARIS" = "x1" ; then
49529         COND_USE_SOVERSOLARIS_1=""
49530     fi
49531
49532     COND_USE_STC_1="#"
49533     if test "x$USE_STC" = "x1" ; then
49534         COND_USE_STC_1=""
49535     fi
49536
49537     COND_USE_THREADS_0="#"
49538     if test "x$USE_THREADS" = "x0" ; then
49539         COND_USE_THREADS_0=""
49540     fi
49541
49542     COND_USE_THREADS_1="#"
49543     if test "x$USE_THREADS" = "x1" ; then
49544         COND_USE_THREADS_1=""
49545     fi
49546
49547     COND_USE_XRC_1="#"
49548     if test "x$USE_XRC" = "x1" ; then
49549         COND_USE_XRC_1=""
49550     fi
49551
49552     COND_WINDOWS_IMPLIB_1="#"
49553     if test "x$WINDOWS_IMPLIB" = "x1" ; then
49554         COND_WINDOWS_IMPLIB_1=""
49555     fi
49556
49557     COND_WITH_PLUGIN_SDL_1="#"
49558     if test "x$WITH_PLUGIN_SDL" = "x1" ; then
49559         COND_WITH_PLUGIN_SDL_1=""
49560     fi
49561
49562     COND_WXUNIV_0="#"
49563     if test "x$WXUNIV" = "x0" ; then
49564         COND_WXUNIV_0=""
49565     fi
49566
49567     COND_WXUNIV_1="#"
49568     if test "x$WXUNIV" = "x1" ; then
49569         COND_WXUNIV_1=""
49570     fi
49571
49572     COND_WXUSE_EXPAT_BUILTIN="#"
49573     if test "x$wxUSE_EXPAT" = "xbuiltin" ; then
49574         COND_WXUSE_EXPAT_BUILTIN=""
49575     fi
49576
49577     COND_WXUSE_LIBJPEG_BUILTIN="#"
49578     if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
49579         COND_WXUSE_LIBJPEG_BUILTIN=""
49580     fi
49581
49582     COND_WXUSE_LIBPNG_BUILTIN="#"
49583     if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then
49584         COND_WXUSE_LIBPNG_BUILTIN=""
49585     fi
49586
49587     COND_WXUSE_LIBTIFF_BUILTIN="#"
49588     if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
49589         COND_WXUSE_LIBTIFF_BUILTIN=""
49590     fi
49591
49592     COND_WXUSE_REGEX_BUILTIN="#"
49593     if test "x$wxUSE_REGEX" = "xbuiltin" ; then
49594         COND_WXUSE_REGEX_BUILTIN=""
49595     fi
49596
49597     COND_WXUSE_ZLIB_BUILTIN="#"
49598     if test "x$wxUSE_ZLIB" = "xbuiltin" ; then
49599         COND_WXUSE_ZLIB_BUILTIN=""
49600     fi
49601
49602
49603
49604     if test "$BAKEFILE_AUTOCONF_INC_M4_VERSION" = "" ; then
49605         { { 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
49606 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;}
49607    { (exit 1); exit 1; }; }
49608     fi
49609
49610     if test "$BAKEFILE_BAKEFILE_M4_VERSION" != "$BAKEFILE_AUTOCONF_INC_M4_VERSION" ; then
49611         { { 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
49612 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;}
49613    { (exit 1); exit 1; }; }
49614     fi
49615
49616
49617 case ${INSTALL} in
49618   /* ) # Absolute
49619      ;;
49620   ?:* ) # Drive letter, considered as absolute.
49621      ;;
49622   *)
49623      INSTALL=`pwd`/${INSTALL} ;;
49624 esac
49625
49626 if test "$wxUSE_GUI" = "yes"; then
49627
49628 if test "$wxUSE_MSW" = 1 ; then
49629     if test "x$WINDRES" = "x"; then
49630         { { echo "$as_me:$LINENO: error: Required windres program not found" >&5
49631 echo "$as_me: error: Required windres program not found" >&2;}
49632    { (exit 1); exit 1; }; }
49633     fi
49634
49635     RESCOMP="$WINDRES"
49636 fi
49637
49638 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1; then
49639             WX_RESOURCES_MACOSX_ASCII="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.r"
49640     WX_RESOURCES_MACOSX_DATA="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.rsrc"
49641
49642         LIBWXMACRES="\$(wx_top_builddir)/lib/${WX_RESOURCES_MACOSX_ASCII}"
49643
49644     # Extract the first word of "DeRez", so it can be a program name with args.
49645 set dummy DeRez; ac_word=$2
49646 { echo "$as_me:$LINENO: checking for $ac_word" >&5
49647 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
49648 if test "${ac_cv_prog_DEREZ+set}" = set; then
49649   echo $ECHO_N "(cached) $ECHO_C" >&6
49650 else
49651   if test -n "$DEREZ"; then
49652   ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
49653 else
49654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
49655 for as_dir in $PATH
49656 do
49657   IFS=$as_save_IFS
49658   test -z "$as_dir" && as_dir=.
49659   for ac_exec_ext in '' $ac_executable_extensions; do
49660   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
49661     ac_cv_prog_DEREZ="DeRez"
49662     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
49663     break 2
49664   fi
49665 done
49666 done
49667 IFS=$as_save_IFS
49668
49669   test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
49670 fi
49671 fi
49672 DEREZ=$ac_cv_prog_DEREZ
49673 if test -n "$DEREZ"; then
49674   { echo "$as_me:$LINENO: result: $DEREZ" >&5
49675 echo "${ECHO_T}$DEREZ" >&6; }
49676 else
49677   { echo "$as_me:$LINENO: result: no" >&5
49678 echo "${ECHO_T}no" >&6; }
49679 fi
49680
49681
49682
49683     MACSETFILE="\$(SETFILE)"
49684
49685             if test "$wxUSE_MAC" = 1; then
49686         POSTLINK_COMMAND="\$(REZ) -d __DARWIN__ -t APPL Carbon.r -o"
49687         RESCOMP="$REZ"
49688         WXCONFIG_RESFLAGS="-d __DARWIN__ -t APPL Carbon.r -o"
49689     else
49690         POSTLINK_COMMAND="cat /dev/null | \$(REZ) -d __DARWIN__ -t APPL ${LIBWXMACRES}"
49691         RESCOMP="cat /dev/null \| $REZ"
49692         WXCONFIG_RESFLAGS="-d __DARWIN__ -t APPL \$libdir/$WX_RESOURCES_MACOSX_ASCII"
49693     fi
49694
49695 else
49696         MACSETFILE="@true"
49697
49698     if test "$wxUSE_PM" = 1; then
49699         RESCOMP="emxbind"
49700         WXCONFIG_RESFLAGS="-ep"
49701
49702                 POSTLINK_COMMAND="$RESCOMP $WXCONFIG_RESFLAGS"
49703     else
49704         POSTLINK_COMMAND="@true"
49705     fi
49706 fi
49707
49708 fi
49709
49710
49711 if test $GCC_PCH = 1
49712 then
49713     if test "$wx_cv_gcc_pch_bug" = yes; then
49714         { echo "$as_me:$LINENO: WARNING: *** Precompiled header support is broken on this compiler" >&5
49715 echo "$as_me: WARNING: *** Precompiled header support is broken on this compiler" >&2;}
49716         { echo "$as_me:$LINENO: WARNING: *** --enable-precomp-headers is not recommended" >&5
49717 echo "$as_me: WARNING: *** --enable-precomp-headers is not recommended" >&2;}
49718         { echo "$as_me:$LINENO: WARNING: *** see http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13361" >&5
49719 echo "$as_me: WARNING: *** see http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13361" >&2;}
49720     fi
49721
49722     CPPFLAGS="-DWX_PRECOMP $CPPFLAGS"
49723 fi
49724
49725
49726 if test "$wxUSE_MAC" = 1 ; then
49727     if test "x$wxUSE_UNIVERSAL_BINARY" != "xno" ; then
49728         sed "s/DEPSMODE=gcc/DEPSMODE=none/" < bk-deps > temp
49729         mv temp bk-deps
49730         chmod +x bk-deps
49731     fi
49732 fi
49733
49734 if test "$wxUSE_SHARED" = "yes"; then
49735                 case "${host}" in
49736       *-pc-os2_emx | *-pc-os2-emx )
49737         SHARED_LD_CC="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
49738         SHARED_LD_CXX="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
49739         cp -p ${srcdir}/src/os2/dllnames.sh .
49740         cp -p ${srcdir}/src/os2/dllar.sh .
49741       ;;
49742     esac
49743 fi
49744 if test "$wxUSE_OMF" = "yes"; then
49745     case "${host}" in
49746       *-pc-os2_emx | *-pc-os2-emx )
49747         LDFLAGS="$LDFLAGS -Zlinker /EXEPACK"
49748         LDFLAGS_GUI="-Zlinker /PMTYPE:PM"
49749         WXCONFIG_LDFLAGS_GUI="-Zlinker /PMTYPE:PM"
49750       ;;
49751     esac
49752 fi
49753
49754 WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS $TOOLCHAIN_DEFS"
49755
49756
49757 case "${host}" in
49758     *-*-solaris2* )
49759                         if test "$GCC" = yes; then
49760             CPPFLAGS=`echo $CPPFLAGS | sed 's/-mt//'`
49761             LIBS=`echo $LIBS | sed 's/-mt//'`
49762             EXTRALIBS_GUI=`echo $EXTRALIBS_GUI | sed 's/-mt//'`
49763         fi
49764         ;;
49765
49766     *-*-linux* )
49767                         if test "x$SUNCXX" = xyes; then
49768             CPPFLAGS=`echo $CPPFLAGS | sed 's/-pthread//'`
49769             LIBS=`echo $LIBS | sed 's/-pthread//'`
49770             EXTRALIBS_GUI=`echo $EXTRALIBS_GUI | sed 's/-pthread//'`
49771         fi
49772         ;;
49773 esac
49774
49775 CFLAGS="$CFLAGS $CFLAGS_VISIBILITY"
49776 CXXFLAGS="$CXXFLAGS $CXXFLAGS_VISIBILITY"
49777
49778 SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
49779
49780
49781
49782
49783
49784
49785
49786
49787
49788
49789
49790
49791
49792
49793
49794
49795
49796
49797
49798
49799
49800
49801
49802
49803
49804
49805
49806
49807
49808
49809
49810
49811
49812
49813
49814
49815
49816
49817
49818
49819
49820
49821
49822
49823
49824
49825
49826
49827
49828
49829
49830
49831
49832
49833
49834
49835
49836
49837
49838
49839 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
49840 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
49841 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
49842 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
49843   echo $ECHO_N "(cached) $ECHO_C" >&6
49844 else
49845   cat >conftest.make <<\_ACEOF
49846 SHELL = /bin/sh
49847 all:
49848         @echo '@@@%%%=$(MAKE)=@@@%%%'
49849 _ACEOF
49850 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
49851 case `${MAKE-make} -f conftest.make 2>/dev/null` in
49852   *@@@%%%=?*=@@@%%%*)
49853     eval ac_cv_prog_make_${ac_make}_set=yes;;
49854   *)
49855     eval ac_cv_prog_make_${ac_make}_set=no;;
49856 esac
49857 rm -f conftest.make
49858 fi
49859 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
49860   { echo "$as_me:$LINENO: result: yes" >&5
49861 echo "${ECHO_T}yes" >&6; }
49862   SET_MAKE=
49863 else
49864   { echo "$as_me:$LINENO: result: no" >&5
49865 echo "${ECHO_T}no" >&6; }
49866   SET_MAKE="MAKE=${MAKE-make}"
49867 fi
49868
49869
49870
49871 ac_config_headers="$ac_config_headers lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h:setup.h.in"
49872
49873
49874 if test "$USE_WIN32" = 1; then
49875     ac_config_commands="$ac_config_commands
49876             rcdefs.h
49877         "
49878
49879 fi
49880
49881 ac_config_files="$ac_config_files lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in"
49882
49883
49884 ac_config_files="$ac_config_files lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in"
49885
49886
49887 if test "$wx_cv_version_script" = "yes"; then
49888     ac_config_files="$ac_config_files version-script"
49889
49890 fi
49891 ac_config_files="$ac_config_files Makefile"
49892
49893
49894 ac_config_commands="$ac_config_commands wx-config"
49895
49896
49897
49898 if test "$wxWITH_SUBDIRS" != "no"; then
49899 if test "$wxUSE_GUI" = "yes"; then
49900     SUBDIRS="samples demos utils"
49901 else
49902             SUBDIRS="samples utils"
49903 fi
49904
49905
49906
49907 # Check whether --with-cppunit-prefix was given.
49908 if test "${with_cppunit_prefix+set}" = set; then
49909   withval=$with_cppunit_prefix; cppunit_config_prefix="$withval"
49910 else
49911   cppunit_config_prefix=""
49912 fi
49913
49914
49915 # Check whether --with-cppunit-exec-prefix was given.
49916 if test "${with_cppunit_exec_prefix+set}" = set; then
49917   withval=$with_cppunit_exec_prefix; cppunit_config_exec_prefix="$withval"
49918 else
49919   cppunit_config_exec_prefix=""
49920 fi
49921
49922
49923   if test x$cppunit_config_exec_prefix != x ; then
49924      cppunit_config_args="$cppunit_config_args --exec-prefix=$cppunit_config_exec_prefix"
49925      if test x${CPPUNIT_CONFIG+set} != xset ; then
49926         CPPUNIT_CONFIG=$cppunit_config_exec_prefix/bin/cppunit-config
49927      fi
49928   fi
49929   if test x$cppunit_config_prefix != x ; then
49930      cppunit_config_args="$cppunit_config_args --prefix=$cppunit_config_prefix"
49931      if test x${CPPUNIT_CONFIG+set} != xset ; then
49932         CPPUNIT_CONFIG=$cppunit_config_prefix/bin/cppunit-config
49933      fi
49934   fi
49935
49936   # Extract the first word of "cppunit-config", so it can be a program name with args.
49937 set dummy cppunit-config; ac_word=$2
49938 { echo "$as_me:$LINENO: checking for $ac_word" >&5
49939 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
49940 if test "${ac_cv_path_CPPUNIT_CONFIG+set}" = set; then
49941   echo $ECHO_N "(cached) $ECHO_C" >&6
49942 else
49943   case $CPPUNIT_CONFIG in
49944   [\\/]* | ?:[\\/]*)
49945   ac_cv_path_CPPUNIT_CONFIG="$CPPUNIT_CONFIG" # Let the user override the test with a path.
49946   ;;
49947   *)
49948   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
49949 for as_dir in $PATH
49950 do
49951   IFS=$as_save_IFS
49952   test -z "$as_dir" && as_dir=.
49953   for ac_exec_ext in '' $ac_executable_extensions; do
49954   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
49955     ac_cv_path_CPPUNIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
49956     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
49957     break 2
49958   fi
49959 done
49960 done
49961 IFS=$as_save_IFS
49962
49963   test -z "$ac_cv_path_CPPUNIT_CONFIG" && ac_cv_path_CPPUNIT_CONFIG="no"
49964   ;;
49965 esac
49966 fi
49967 CPPUNIT_CONFIG=$ac_cv_path_CPPUNIT_CONFIG
49968 if test -n "$CPPUNIT_CONFIG"; then
49969   { echo "$as_me:$LINENO: result: $CPPUNIT_CONFIG" >&5
49970 echo "${ECHO_T}$CPPUNIT_CONFIG" >&6; }
49971 else
49972   { echo "$as_me:$LINENO: result: no" >&5
49973 echo "${ECHO_T}no" >&6; }
49974 fi
49975
49976
49977   cppunit_version_min=1.8.0
49978
49979   { echo "$as_me:$LINENO: checking for Cppunit - version >= $cppunit_version_min" >&5
49980 echo $ECHO_N "checking for Cppunit - version >= $cppunit_version_min... $ECHO_C" >&6; }
49981   no_cppunit=""
49982   if test "$CPPUNIT_CONFIG" = "no" ; then
49983     { echo "$as_me:$LINENO: result: no" >&5
49984 echo "${ECHO_T}no" >&6; }
49985     no_cppunit=yes
49986   else
49987     CPPUNIT_CFLAGS=`$CPPUNIT_CONFIG --cflags`
49988     CPPUNIT_LIBS=`$CPPUNIT_CONFIG --libs`
49989     cppunit_version=`$CPPUNIT_CONFIG --version`
49990
49991     cppunit_major_version=`echo $cppunit_version | \
49992            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
49993     cppunit_minor_version=`echo $cppunit_version | \
49994            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
49995     cppunit_micro_version=`echo $cppunit_version | \
49996            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
49997
49998     cppunit_major_min=`echo $cppunit_version_min | \
49999            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
50000     cppunit_minor_min=`echo $cppunit_version_min | \
50001            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
50002     cppunit_micro_min=`echo $cppunit_version_min | \
50003            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
50004
50005     cppunit_version_proper=`expr \
50006         $cppunit_major_version \> $cppunit_major_min \| \
50007         $cppunit_major_version \= $cppunit_major_min \& \
50008         $cppunit_minor_version \> $cppunit_minor_min \| \
50009         $cppunit_major_version \= $cppunit_major_min \& \
50010         $cppunit_minor_version \= $cppunit_minor_min \& \
50011         $cppunit_micro_version \>= $cppunit_micro_min `
50012
50013     if test "$cppunit_version_proper" = "1" ; then
50014       { echo "$as_me:$LINENO: result: $cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&5
50015 echo "${ECHO_T}$cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&6; }
50016     else
50017       { echo "$as_me:$LINENO: result: no" >&5
50018 echo "${ECHO_T}no" >&6; }
50019       no_cppunit=yes
50020     fi
50021   fi
50022
50023   if test "x$no_cppunit" = x ; then
50024      SUBDIRS="$SUBDIRS tests"
50025   else
50026      CPPUNIT_CFLAGS=""
50027      CPPUNIT_LIBS=""
50028      :
50029   fi
50030
50031
50032
50033
50034
50035 for subdir in $SUBDIRS; do
50036     if test -d ${srcdir}/${subdir} ; then
50037         if test "$wxUSE_GUI" = "yes"; then
50038             if test ${subdir} = "samples"; then
50039                                                 makefiles="samples/Makefile.in $makefiles"
50040                 for sample in $SAMPLES_SUBDIRS; do
50041                     if test -d $srcdir/samples/$sample; then
50042                         makefiles="samples/$sample/Makefile.in $makefiles"
50043                     fi
50044                 done
50045             else
50046                                                                 disabled_var=DISABLED_`echo $subdir | tr '[a-z]' '[A-Z]'`
50047                 eval "disabled=\$$disabled_var"
50048                 disabled=/`echo X $disabled | sed 's@ @/|/@g'`/
50049                 makefiles=`(cd $srcdir ; find $subdir -name Makefile.in) | $EGREP -v "$disabled"`
50050             fi
50051         else
50052                                                 if test ${subdir} = "samples"; then
50053                                                 makefiles="samples/Makefile.in $makefiles"
50054                 for sample in `echo $SAMPLES_SUBDIRS`; do
50055                     if test -d $srcdir/samples/$sample; then
50056                         makefiles="samples/$sample/Makefile.in $makefiles"
50057                     fi
50058                 done
50059             elif test ${subdir} = "utils"; then
50060                 makefiles=""
50061                 for util in HelpGen tex2rtf ; do
50062                     if test -d $srcdir/utils/$util ; then
50063                         makefiles="utils/$util/Makefile.in \
50064                                    utils/$util/src/Makefile.in \
50065                                    $makefiles"
50066                     fi
50067                 done
50068             else
50069                                 makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)`
50070             fi
50071         fi
50072
50073         for mkin in $makefiles ; do
50074             mk=`echo $mkin | sed 's/Makefile\.in/Makefile/g'`
50075             ac_config_files="$ac_config_files $mk"
50076
50077         done
50078     fi
50079 done
50080 fi
50081 cat >confcache <<\_ACEOF
50082 # This file is a shell script that caches the results of configure
50083 # tests run on this system so they can be shared between configure
50084 # scripts and configure runs, see configure's option --config-cache.
50085 # It is not useful on other systems.  If it contains results you don't
50086 # want to keep, you may remove or edit it.
50087 #
50088 # config.status only pays attention to the cache file if you give it
50089 # the --recheck option to rerun configure.
50090 #
50091 # `ac_cv_env_foo' variables (set or unset) will be overridden when
50092 # loading this file, other *unset* `ac_cv_foo' will be assigned the
50093 # following values.
50094
50095 _ACEOF
50096
50097 # The following way of writing the cache mishandles newlines in values,
50098 # but we know of no workaround that is simple, portable, and efficient.
50099 # So, we kill variables containing newlines.
50100 # Ultrix sh set writes to stderr and can't be redirected directly,
50101 # and sets the high bit in the cache file unless we assign to the vars.
50102 (
50103   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
50104     eval ac_val=\$$ac_var
50105     case $ac_val in #(
50106     *${as_nl}*)
50107       case $ac_var in #(
50108       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
50109 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
50110       esac
50111       case $ac_var in #(
50112       _ | IFS | as_nl) ;; #(
50113       *) $as_unset $ac_var ;;
50114       esac ;;
50115     esac
50116   done
50117
50118   (set) 2>&1 |
50119     case $as_nl`(ac_space=' '; set) 2>&1` in #(
50120     *${as_nl}ac_space=\ *)
50121       # `set' does not quote correctly, so add quotes (double-quote
50122       # substitution turns \\\\ into \\, and sed turns \\ into \).
50123       sed -n \
50124         "s/'/'\\\\''/g;
50125           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
50126       ;; #(
50127     *)
50128       # `set' quotes correctly as required by POSIX, so do not add quotes.
50129       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
50130       ;;
50131     esac |
50132     sort
50133 ) |
50134   sed '
50135      /^ac_cv_env_/b end
50136      t clear
50137      :clear
50138      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
50139      t end
50140      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
50141      :end' >>confcache
50142 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
50143   if test -w "$cache_file"; then
50144     test "x$cache_file" != "x/dev/null" &&
50145       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
50146 echo "$as_me: updating cache $cache_file" >&6;}
50147     cat confcache >$cache_file
50148   else
50149     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
50150 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
50151   fi
50152 fi
50153 rm -f confcache
50154
50155 test "x$prefix" = xNONE && prefix=$ac_default_prefix
50156 # Let make expand exec_prefix.
50157 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
50158
50159 DEFS=-DHAVE_CONFIG_H
50160
50161 ac_libobjs=
50162 ac_ltlibobjs=
50163 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
50164   # 1. Remove the extension, and $U if already installed.
50165   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
50166   ac_i=`echo "$ac_i" | sed "$ac_script"`
50167   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
50168   #    will be set to the directory where LIBOBJS objects are built.
50169   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
50170   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
50171 done
50172 LIBOBJS=$ac_libobjs
50173
50174 LTLIBOBJS=$ac_ltlibobjs
50175
50176
50177
50178 : ${CONFIG_STATUS=./config.status}
50179 ac_clean_files_save=$ac_clean_files
50180 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
50181 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
50182 echo "$as_me: creating $CONFIG_STATUS" >&6;}
50183 cat >$CONFIG_STATUS <<_ACEOF
50184 #! $SHELL
50185 # Generated by $as_me.
50186 # Run this file to recreate the current configuration.
50187 # Compiler output produced by configure, useful for debugging
50188 # configure, is in config.log if it exists.
50189
50190 debug=false
50191 ac_cs_recheck=false
50192 ac_cs_silent=false
50193 SHELL=\${CONFIG_SHELL-$SHELL}
50194 _ACEOF
50195
50196 cat >>$CONFIG_STATUS <<\_ACEOF
50197 ## --------------------- ##
50198 ## M4sh Initialization.  ##
50199 ## --------------------- ##
50200
50201 # Be more Bourne compatible
50202 DUALCASE=1; export DUALCASE # for MKS sh
50203 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
50204   emulate sh
50205   NULLCMD=:
50206   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
50207   # is contrary to our usage.  Disable this feature.
50208   alias -g '${1+"$@"}'='"$@"'
50209   setopt NO_GLOB_SUBST
50210 else
50211   case `(set -o) 2>/dev/null` in
50212   *posix*) set -o posix ;;
50213 esac
50214
50215 fi
50216
50217
50218
50219
50220 # PATH needs CR
50221 # Avoid depending upon Character Ranges.
50222 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
50223 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
50224 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
50225 as_cr_digits='0123456789'
50226 as_cr_alnum=$as_cr_Letters$as_cr_digits
50227
50228 # The user is always right.
50229 if test "${PATH_SEPARATOR+set}" != set; then
50230   echo "#! /bin/sh" >conf$$.sh
50231   echo  "exit 0"   >>conf$$.sh
50232   chmod +x conf$$.sh
50233   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
50234     PATH_SEPARATOR=';'
50235   else
50236     PATH_SEPARATOR=:
50237   fi
50238   rm -f conf$$.sh
50239 fi
50240
50241 # Support unset when possible.
50242 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
50243   as_unset=unset
50244 else
50245   as_unset=false
50246 fi
50247
50248
50249 # IFS
50250 # We need space, tab and new line, in precisely that order.  Quoting is
50251 # there to prevent editors from complaining about space-tab.
50252 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
50253 # splitting by setting IFS to empty value.)
50254 as_nl='
50255 '
50256 IFS=" ""        $as_nl"
50257
50258 # Find who we are.  Look in the path if we contain no directory separator.
50259 case $0 in
50260   *[\\/]* ) as_myself=$0 ;;
50261   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
50262 for as_dir in $PATH
50263 do
50264   IFS=$as_save_IFS
50265   test -z "$as_dir" && as_dir=.
50266   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
50267 done
50268 IFS=$as_save_IFS
50269
50270      ;;
50271 esac
50272 # We did not find ourselves, most probably we were run as `sh COMMAND'
50273 # in which case we are not to be found in the path.
50274 if test "x$as_myself" = x; then
50275   as_myself=$0
50276 fi
50277 if test ! -f "$as_myself"; then
50278   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
50279   { (exit 1); exit 1; }
50280 fi
50281
50282 # Work around bugs in pre-3.0 UWIN ksh.
50283 for as_var in ENV MAIL MAILPATH
50284 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
50285 done
50286 PS1='$ '
50287 PS2='> '
50288 PS4='+ '
50289
50290 # NLS nuisances.
50291 for as_var in \
50292   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
50293   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
50294   LC_TELEPHONE LC_TIME
50295 do
50296   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
50297     eval $as_var=C; export $as_var
50298   else
50299     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
50300   fi
50301 done
50302
50303 # Required to use basename.
50304 if expr a : '\(a\)' >/dev/null 2>&1 &&
50305    test "X`expr 00001 : '.*\(...\)'`" = X001; then
50306   as_expr=expr
50307 else
50308   as_expr=false
50309 fi
50310
50311 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
50312   as_basename=basename
50313 else
50314   as_basename=false
50315 fi
50316
50317
50318 # Name of the executable.
50319 as_me=`$as_basename -- "$0" ||
50320 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
50321          X"$0" : 'X\(//\)$' \| \
50322          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
50323 echo X/"$0" |
50324     sed '/^.*\/\([^/][^/]*\)\/*$/{
50325             s//\1/
50326             q
50327           }
50328           /^X\/\(\/\/\)$/{
50329             s//\1/
50330             q
50331           }
50332           /^X\/\(\/\).*/{
50333             s//\1/
50334             q
50335           }
50336           s/.*/./; q'`
50337
50338 # CDPATH.
50339 $as_unset CDPATH
50340
50341
50342
50343   as_lineno_1=$LINENO
50344   as_lineno_2=$LINENO
50345   test "x$as_lineno_1" != "x$as_lineno_2" &&
50346   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
50347
50348   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
50349   # uniformly replaced by the line number.  The first 'sed' inserts a
50350   # line-number line after each line using $LINENO; the second 'sed'
50351   # does the real work.  The second script uses 'N' to pair each
50352   # line-number line with the line containing $LINENO, and appends
50353   # trailing '-' during substitution so that $LINENO is not a special
50354   # case at line end.
50355   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
50356   # scripts with optimization help from Paolo Bonzini.  Blame Lee
50357   # E. McMahon (1931-1989) for sed's syntax.  :-)
50358   sed -n '
50359     p
50360     /[$]LINENO/=
50361   ' <$as_myself |
50362     sed '
50363       s/[$]LINENO.*/&-/
50364       t lineno
50365       b
50366       :lineno
50367       N
50368       :loop
50369       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
50370       t loop
50371       s/-\n.*//
50372     ' >$as_me.lineno &&
50373   chmod +x "$as_me.lineno" ||
50374     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
50375    { (exit 1); exit 1; }; }
50376
50377   # Don't try to exec as it changes $[0], causing all sort of problems
50378   # (the dirname of $[0] is not the place where we might find the
50379   # original and so on.  Autoconf is especially sensitive to this).
50380   . "./$as_me.lineno"
50381   # Exit status is that of the last command.
50382   exit
50383 }
50384
50385
50386 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
50387   as_dirname=dirname
50388 else
50389   as_dirname=false
50390 fi
50391
50392 ECHO_C= ECHO_N= ECHO_T=
50393 case `echo -n x` in
50394 -n*)
50395   case `echo 'x\c'` in
50396   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
50397   *)   ECHO_C='\c';;
50398   esac;;
50399 *)
50400   ECHO_N='-n';;
50401 esac
50402
50403 if expr a : '\(a\)' >/dev/null 2>&1 &&
50404    test "X`expr 00001 : '.*\(...\)'`" = X001; then
50405   as_expr=expr
50406 else
50407   as_expr=false
50408 fi
50409
50410 rm -f conf$$ conf$$.exe conf$$.file
50411 if test -d conf$$.dir; then
50412   rm -f conf$$.dir/conf$$.file
50413 else
50414   rm -f conf$$.dir
50415   mkdir conf$$.dir
50416 fi
50417 echo >conf$$.file
50418 if ln -s conf$$.file conf$$ 2>/dev/null; then
50419   as_ln_s='ln -s'
50420   # ... but there are two gotchas:
50421   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
50422   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
50423   # In both cases, we have to default to `cp -p'.
50424   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
50425     as_ln_s='cp -p'
50426 elif ln conf$$.file conf$$ 2>/dev/null; then
50427   as_ln_s=ln
50428 else
50429   as_ln_s='cp -p'
50430 fi
50431 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
50432 rmdir conf$$.dir 2>/dev/null
50433
50434 if mkdir -p . 2>/dev/null; then
50435   as_mkdir_p=:
50436 else
50437   test -d ./-p && rmdir ./-p
50438   as_mkdir_p=false
50439 fi
50440
50441 if test -x / >/dev/null 2>&1; then
50442   as_test_x='test -x'
50443 else
50444   if ls -dL / >/dev/null 2>&1; then
50445     as_ls_L_option=L
50446   else
50447     as_ls_L_option=
50448   fi
50449   as_test_x='
50450     eval sh -c '\''
50451       if test -d "$1"; then
50452         test -d "$1/.";
50453       else
50454         case $1 in
50455         -*)set "./$1";;
50456         esac;
50457         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
50458         ???[sx]*):;;*)false;;esac;fi
50459     '\'' sh
50460   '
50461 fi
50462 as_executable_p=$as_test_x
50463
50464 # Sed expression to map a string onto a valid CPP name.
50465 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
50466
50467 # Sed expression to map a string onto a valid variable name.
50468 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
50469
50470
50471 exec 6>&1
50472
50473 # Save the log message, to keep $[0] and so on meaningful, and to
50474 # report actual input values of CONFIG_FILES etc. instead of their
50475 # values after options handling.
50476 ac_log="
50477 This file was extended by wxWidgets $as_me 2.9.0, which was
50478 generated by GNU Autoconf 2.61.  Invocation command line was
50479
50480   CONFIG_FILES    = $CONFIG_FILES
50481   CONFIG_HEADERS  = $CONFIG_HEADERS
50482   CONFIG_LINKS    = $CONFIG_LINKS
50483   CONFIG_COMMANDS = $CONFIG_COMMANDS
50484   $ $0 $@
50485
50486 on `(hostname || uname -n) 2>/dev/null | sed 1q`
50487 "
50488
50489 _ACEOF
50490
50491 cat >>$CONFIG_STATUS <<_ACEOF
50492 # Files that config.status was made for.
50493 config_files="$ac_config_files"
50494 config_headers="$ac_config_headers"
50495 config_commands="$ac_config_commands"
50496
50497 _ACEOF
50498
50499 cat >>$CONFIG_STATUS <<\_ACEOF
50500 ac_cs_usage="\
50501 \`$as_me' instantiates files from templates according to the
50502 current configuration.
50503
50504 Usage: $0 [OPTIONS] [FILE]...
50505
50506   -h, --help       print this help, then exit
50507   -V, --version    print version number and configuration settings, then exit
50508   -q, --quiet      do not print progress messages
50509   -d, --debug      don't remove temporary files
50510       --recheck    update $as_me by reconfiguring in the same conditions
50511   --file=FILE[:TEMPLATE]
50512                    instantiate the configuration file FILE
50513   --header=FILE[:TEMPLATE]
50514                    instantiate the configuration header FILE
50515
50516 Configuration files:
50517 $config_files
50518
50519 Configuration headers:
50520 $config_headers
50521
50522 Configuration commands:
50523 $config_commands
50524
50525 Report bugs to <bug-autoconf@gnu.org>."
50526
50527 _ACEOF
50528 cat >>$CONFIG_STATUS <<_ACEOF
50529 ac_cs_version="\\
50530 wxWidgets config.status 2.9.0
50531 configured by $0, generated by GNU Autoconf 2.61,
50532   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
50533
50534 Copyright (C) 2006 Free Software Foundation, Inc.
50535 This config.status script is free software; the Free Software Foundation
50536 gives unlimited permission to copy, distribute and modify it."
50537
50538 ac_pwd='$ac_pwd'
50539 srcdir='$srcdir'
50540 INSTALL='$INSTALL'
50541 _ACEOF
50542
50543 cat >>$CONFIG_STATUS <<\_ACEOF
50544 # If no file are specified by the user, then we need to provide default
50545 # value.  By we need to know if files were specified by the user.
50546 ac_need_defaults=:
50547 while test $# != 0
50548 do
50549   case $1 in
50550   --*=*)
50551     ac_option=`expr "X$1" : 'X\([^=]*\)='`
50552     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
50553     ac_shift=:
50554     ;;
50555   *)
50556     ac_option=$1
50557     ac_optarg=$2
50558     ac_shift=shift
50559     ;;
50560   esac
50561
50562   case $ac_option in
50563   # Handling of the options.
50564   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
50565     ac_cs_recheck=: ;;
50566   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
50567     echo "$ac_cs_version"; exit ;;
50568   --debug | --debu | --deb | --de | --d | -d )
50569     debug=: ;;
50570   --file | --fil | --fi | --f )
50571     $ac_shift
50572     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
50573     ac_need_defaults=false;;
50574   --header | --heade | --head | --hea )
50575     $ac_shift
50576     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
50577     ac_need_defaults=false;;
50578   --he | --h)
50579     # Conflict between --help and --header
50580     { echo "$as_me: error: ambiguous option: $1
50581 Try \`$0 --help' for more information." >&2
50582    { (exit 1); exit 1; }; };;
50583   --help | --hel | -h )
50584     echo "$ac_cs_usage"; exit ;;
50585   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
50586   | -silent | --silent | --silen | --sile | --sil | --si | --s)
50587     ac_cs_silent=: ;;
50588
50589   # This is an error.
50590   -*) { echo "$as_me: error: unrecognized option: $1
50591 Try \`$0 --help' for more information." >&2
50592    { (exit 1); exit 1; }; } ;;
50593
50594   *) ac_config_targets="$ac_config_targets $1"
50595      ac_need_defaults=false ;;
50596
50597   esac
50598   shift
50599 done
50600
50601 ac_configure_extra_args=
50602
50603 if $ac_cs_silent; then
50604   exec 6>/dev/null
50605   ac_configure_extra_args="$ac_configure_extra_args --silent"
50606 fi
50607
50608 _ACEOF
50609 cat >>$CONFIG_STATUS <<_ACEOF
50610 if \$ac_cs_recheck; then
50611   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
50612   CONFIG_SHELL=$SHELL
50613   export CONFIG_SHELL
50614   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
50615 fi
50616
50617 _ACEOF
50618 cat >>$CONFIG_STATUS <<\_ACEOF
50619 exec 5>>config.log
50620 {
50621   echo
50622   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
50623 ## Running $as_me. ##
50624 _ASBOX
50625   echo "$ac_log"
50626 } >&5
50627
50628 _ACEOF
50629 cat >>$CONFIG_STATUS <<_ACEOF
50630 #
50631 # INIT-COMMANDS
50632 #
50633
50634             CPP="$CPP"
50635             infile="$srcdir/include/wx/msw/genrcdefs.h"
50636             outdir="lib/wx/include/$TOOLCHAIN_FULLNAME/wx/msw"
50637
50638
50639  TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
50640  TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
50641  TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
50642                      LN_S="${LN_S}"
50643
50644
50645 _ACEOF
50646
50647 cat >>$CONFIG_STATUS <<\_ACEOF
50648
50649 # Handling of arguments.
50650 for ac_config_target in $ac_config_targets
50651 do
50652   case $ac_config_target in
50653     "lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h:setup.h.in" ;;
50654     "rcdefs.h") CONFIG_COMMANDS="$CONFIG_COMMANDS rcdefs.h" ;;
50655     "lib/wx/config/${TOOLCHAIN_FULLNAME}") CONFIG_FILES="$CONFIG_FILES lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in" ;;
50656     "lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}") CONFIG_FILES="$CONFIG_FILES lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in" ;;
50657     "version-script") CONFIG_FILES="$CONFIG_FILES version-script" ;;
50658     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
50659     "wx-config") CONFIG_COMMANDS="$CONFIG_COMMANDS wx-config" ;;
50660     "$mk") CONFIG_FILES="$CONFIG_FILES $mk" ;;
50661
50662   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
50663 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
50664    { (exit 1); exit 1; }; };;
50665   esac
50666 done
50667
50668
50669 # If the user did not use the arguments to specify the items to instantiate,
50670 # then the envvar interface is used.  Set only those that are not.
50671 # We use the long form for the default assignment because of an extremely
50672 # bizarre bug on SunOS 4.1.3.
50673 if $ac_need_defaults; then
50674   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
50675   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
50676   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
50677 fi
50678
50679 # Have a temporary directory for convenience.  Make it in the build tree
50680 # simply because there is no reason against having it here, and in addition,
50681 # creating and moving files from /tmp can sometimes cause problems.
50682 # Hook for its removal unless debugging.
50683 # Note that there is a small window in which the directory will not be cleaned:
50684 # after its creation but before its name has been assigned to `$tmp'.
50685 $debug ||
50686 {
50687   tmp=
50688   trap 'exit_status=$?
50689   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
50690 ' 0
50691   trap '{ (exit 1); exit 1; }' 1 2 13 15
50692 }
50693 # Create a (secure) tmp directory for tmp files.
50694
50695 {
50696   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
50697   test -n "$tmp" && test -d "$tmp"
50698 }  ||
50699 {
50700   tmp=./conf$$-$RANDOM
50701   (umask 077 && mkdir "$tmp")
50702 } ||
50703 {
50704    echo "$me: cannot create a temporary directory in ." >&2
50705    { (exit 1); exit 1; }
50706 }
50707
50708 #
50709 # Set up the sed scripts for CONFIG_FILES section.
50710 #
50711
50712 # No need to generate the scripts if there are no CONFIG_FILES.
50713 # This happens for instance when ./config.status config.h
50714 if test -n "$CONFIG_FILES"; then
50715
50716 _ACEOF
50717
50718
50719
50720 ac_delim='%!_!# '
50721 for ac_last_try in false false false false false :; do
50722   cat >conf$$subs.sed <<_ACEOF
50723 SHELL!$SHELL$ac_delim
50724 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
50725 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
50726 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
50727 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
50728 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
50729 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
50730 exec_prefix!$exec_prefix$ac_delim
50731 prefix!$prefix$ac_delim
50732 program_transform_name!$program_transform_name$ac_delim
50733 bindir!$bindir$ac_delim
50734 sbindir!$sbindir$ac_delim
50735 libexecdir!$libexecdir$ac_delim
50736 datarootdir!$datarootdir$ac_delim
50737 datadir!$datadir$ac_delim
50738 sysconfdir!$sysconfdir$ac_delim
50739 sharedstatedir!$sharedstatedir$ac_delim
50740 localstatedir!$localstatedir$ac_delim
50741 includedir!$includedir$ac_delim
50742 oldincludedir!$oldincludedir$ac_delim
50743 docdir!$docdir$ac_delim
50744 infodir!$infodir$ac_delim
50745 htmldir!$htmldir$ac_delim
50746 dvidir!$dvidir$ac_delim
50747 pdfdir!$pdfdir$ac_delim
50748 psdir!$psdir$ac_delim
50749 libdir!$libdir$ac_delim
50750 localedir!$localedir$ac_delim
50751 mandir!$mandir$ac_delim
50752 DEFS!$DEFS$ac_delim
50753 ECHO_C!$ECHO_C$ac_delim
50754 ECHO_N!$ECHO_N$ac_delim
50755 ECHO_T!$ECHO_T$ac_delim
50756 LIBS!$LIBS$ac_delim
50757 build_alias!$build_alias$ac_delim
50758 host_alias!$host_alias$ac_delim
50759 target_alias!$target_alias$ac_delim
50760 build!$build$ac_delim
50761 build_cpu!$build_cpu$ac_delim
50762 build_vendor!$build_vendor$ac_delim
50763 build_os!$build_os$ac_delim
50764 host!$host$ac_delim
50765 host_cpu!$host_cpu$ac_delim
50766 host_vendor!$host_vendor$ac_delim
50767 host_os!$host_os$ac_delim
50768 target!$target$ac_delim
50769 target_cpu!$target_cpu$ac_delim
50770 target_vendor!$target_vendor$ac_delim
50771 target_os!$target_os$ac_delim
50772 wx_top_builddir!$wx_top_builddir$ac_delim
50773 CC!$CC$ac_delim
50774 CFLAGS!$CFLAGS$ac_delim
50775 LDFLAGS!$LDFLAGS$ac_delim
50776 CPPFLAGS!$CPPFLAGS$ac_delim
50777 ac_ct_CC!$ac_ct_CC$ac_delim
50778 EXEEXT!$EXEEXT$ac_delim
50779 OBJEXT!$OBJEXT$ac_delim
50780 CPP!$CPP$ac_delim
50781 GREP!$GREP$ac_delim
50782 EGREP!$EGREP$ac_delim
50783 CXX!$CXX$ac_delim
50784 CXXFLAGS!$CXXFLAGS$ac_delim
50785 ac_ct_CXX!$ac_ct_CXX$ac_delim
50786 AR!$AR$ac_delim
50787 subdirs!$subdirs$ac_delim
50788 PKG_CONFIG!$PKG_CONFIG$ac_delim
50789 GTK_CFLAGS!$GTK_CFLAGS$ac_delim
50790 GTK_LIBS!$GTK_LIBS$ac_delim
50791 GTK_CONFIG!$GTK_CONFIG$ac_delim
50792 DIRECTFB_CFLAGS!$DIRECTFB_CFLAGS$ac_delim
50793 DIRECTFB_LIBS!$DIRECTFB_LIBS$ac_delim
50794 XMKMF!$XMKMF$ac_delim
50795 X_CFLAGS!$X_CFLAGS$ac_delim
50796 X_PRE_LIBS!$X_PRE_LIBS$ac_delim
50797 X_LIBS!$X_LIBS$ac_delim
50798 X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
50799 PANGOX_CFLAGS!$PANGOX_CFLAGS$ac_delim
50800 PANGOX_LIBS!$PANGOX_LIBS$ac_delim
50801 PANGOFT2_CFLAGS!$PANGOFT2_CFLAGS$ac_delim
50802 PANGOFT2_LIBS!$PANGOFT2_LIBS$ac_delim
50803 PANGOXFT_CFLAGS!$PANGOXFT_CFLAGS$ac_delim
50804 PANGOXFT_LIBS!$PANGOXFT_LIBS$ac_delim
50805 CFLAGS_VISIBILITY!$CFLAGS_VISIBILITY$ac_delim
50806 CXXFLAGS_VISIBILITY!$CXXFLAGS_VISIBILITY$ac_delim
50807 LIBICONV!$LIBICONV$ac_delim
50808 SDL_CONFIG!$SDL_CONFIG$ac_delim
50809 SDL_CFLAGS!$SDL_CFLAGS$ac_delim
50810 SDL_LIBS!$SDL_LIBS$ac_delim
50811 GTKPRINT_CFLAGS!$GTKPRINT_CFLAGS$ac_delim
50812 GTKPRINT_LIBS!$GTKPRINT_LIBS$ac_delim
50813 LIBGNOMEPRINTUI_CFLAGS!$LIBGNOMEPRINTUI_CFLAGS$ac_delim
50814 LIBGNOMEPRINTUI_LIBS!$LIBGNOMEPRINTUI_LIBS$ac_delim
50815 GNOMEVFS_CFLAGS!$GNOMEVFS_CFLAGS$ac_delim
50816 GNOMEVFS_LIBS!$GNOMEVFS_LIBS$ac_delim
50817 HILDON_CFLAGS!$HILDON_CFLAGS$ac_delim
50818 HILDON_LIBS!$HILDON_LIBS$ac_delim
50819 CAIRO_CFLAGS!$CAIRO_CFLAGS$ac_delim
50820 _ACEOF
50821
50822   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
50823     break
50824   elif $ac_last_try; then
50825     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
50826 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
50827    { (exit 1); exit 1; }; }
50828   else
50829     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
50830   fi
50831 done
50832
50833 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
50834 if test -n "$ac_eof"; then
50835   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
50836   ac_eof=`expr $ac_eof + 1`
50837 fi
50838
50839 cat >>$CONFIG_STATUS <<_ACEOF
50840 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
50841 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
50842 _ACEOF
50843 sed '
50844 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
50845 s/^/s,@/; s/!/@,|#_!!_#|/
50846 :n
50847 t n
50848 s/'"$ac_delim"'$/,g/; t
50849 s/$/\\/; p
50850 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
50851 ' >>$CONFIG_STATUS <conf$$subs.sed
50852 rm -f conf$$subs.sed
50853 cat >>$CONFIG_STATUS <<_ACEOF
50854 CEOF$ac_eof
50855 _ACEOF
50856
50857
50858 ac_delim='%!_!# '
50859 for ac_last_try in false false false false false :; do
50860   cat >conf$$subs.sed <<_ACEOF
50861 CAIRO_LIBS!$CAIRO_LIBS$ac_delim
50862 GST_CFLAGS!$GST_CFLAGS$ac_delim
50863 GST_LIBS!$GST_LIBS$ac_delim
50864 ALL_WX_LIBS!$ALL_WX_LIBS$ac_delim
50865 BUILT_WX_LIBS!$BUILT_WX_LIBS$ac_delim
50866 STD_BASE_LIBS!$STD_BASE_LIBS$ac_delim
50867 STD_GUI_LIBS!$STD_GUI_LIBS$ac_delim
50868 wxUSE_ZLIB!$wxUSE_ZLIB$ac_delim
50869 wxUSE_REGEX!$wxUSE_REGEX$ac_delim
50870 wxUSE_EXPAT!$wxUSE_EXPAT$ac_delim
50871 wxUSE_LIBJPEG!$wxUSE_LIBJPEG$ac_delim
50872 wxUSE_LIBPNG!$wxUSE_LIBPNG$ac_delim
50873 wxUSE_LIBTIFF!$wxUSE_LIBTIFF$ac_delim
50874 VENDOR!$VENDOR$ac_delim
50875 OFFICIAL_BUILD!$OFFICIAL_BUILD$ac_delim
50876 WX_FLAVOUR!$WX_FLAVOUR$ac_delim
50877 WX_LIB_FLAVOUR!$WX_LIB_FLAVOUR$ac_delim
50878 WXUNIV!$WXUNIV$ac_delim
50879 MONOLITHIC!$MONOLITHIC$ac_delim
50880 USE_PLUGINS!$USE_PLUGINS$ac_delim
50881 CXXWARNINGS!$CXXWARNINGS$ac_delim
50882 EXTRALIBS!$EXTRALIBS$ac_delim
50883 EXTRALIBS_XML!$EXTRALIBS_XML$ac_delim
50884 EXTRALIBS_HTML!$EXTRALIBS_HTML$ac_delim
50885 EXTRALIBS_MEDIA!$EXTRALIBS_MEDIA$ac_delim
50886 EXTRALIBS_GUI!$EXTRALIBS_GUI$ac_delim
50887 EXTRALIBS_OPENGL!$EXTRALIBS_OPENGL$ac_delim
50888 EXTRALIBS_SDL!$EXTRALIBS_SDL$ac_delim
50889 WITH_PLUGIN_SDL!$WITH_PLUGIN_SDL$ac_delim
50890 EXTRALIBS_GTKPRINT!$EXTRALIBS_GTKPRINT$ac_delim
50891 EXTRALIBS_GNOMEPRINT!$EXTRALIBS_GNOMEPRINT$ac_delim
50892 EXTRALIBS_GNOMEVFS!$EXTRALIBS_GNOMEVFS$ac_delim
50893 EXTRALIBS_HILDON!$EXTRALIBS_HILDON$ac_delim
50894 UNICODE!$UNICODE$ac_delim
50895 BUILD!$BUILD$ac_delim
50896 DEBUG_INFO!$DEBUG_INFO$ac_delim
50897 DEBUG_FLAG!$DEBUG_FLAG$ac_delim
50898 TOOLKIT_LOWERCASE!$TOOLKIT_LOWERCASE$ac_delim
50899 TOOLKIT_VERSION!$TOOLKIT_VERSION$ac_delim
50900 SAMPLES_RPATH_FLAG!$SAMPLES_RPATH_FLAG$ac_delim
50901 SAMPLES_RPATH_POSTLINK!$SAMPLES_RPATH_POSTLINK$ac_delim
50902 HOST_SUFFIX!$HOST_SUFFIX$ac_delim
50903 CPPUNIT_CFLAGS!$CPPUNIT_CFLAGS$ac_delim
50904 CPPUNIT_LIBS!$CPPUNIT_LIBS$ac_delim
50905 RANLIB!$RANLIB$ac_delim
50906 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
50907 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
50908 INSTALL_DATA!$INSTALL_DATA$ac_delim
50909 LN_S!$LN_S$ac_delim
50910 SET_MAKE!$SET_MAKE$ac_delim
50911 MAKE_SET!$MAKE_SET$ac_delim
50912 AROPTIONS!$AROPTIONS$ac_delim
50913 STRIP!$STRIP$ac_delim
50914 NM!$NM$ac_delim
50915 INSTALL_DIR!$INSTALL_DIR$ac_delim
50916 LDFLAGS_GUI!$LDFLAGS_GUI$ac_delim
50917 IF_GNU_MAKE!$IF_GNU_MAKE$ac_delim
50918 PLATFORM_UNIX!$PLATFORM_UNIX$ac_delim
50919 PLATFORM_WIN32!$PLATFORM_WIN32$ac_delim
50920 PLATFORM_MSDOS!$PLATFORM_MSDOS$ac_delim
50921 PLATFORM_MAC!$PLATFORM_MAC$ac_delim
50922 PLATFORM_MACOS!$PLATFORM_MACOS$ac_delim
50923 PLATFORM_MACOSX!$PLATFORM_MACOSX$ac_delim
50924 PLATFORM_OS2!$PLATFORM_OS2$ac_delim
50925 PLATFORM_BEOS!$PLATFORM_BEOS$ac_delim
50926 SO_SUFFIX!$SO_SUFFIX$ac_delim
50927 SO_SUFFIX_MODULE!$SO_SUFFIX_MODULE$ac_delim
50928 DLLIMP_SUFFIX!$DLLIMP_SUFFIX$ac_delim
50929 LIBPREFIX!$LIBPREFIX$ac_delim
50930 LIBEXT!$LIBEXT$ac_delim
50931 DLLPREFIX!$DLLPREFIX$ac_delim
50932 DLLPREFIX_MODULE!$DLLPREFIX_MODULE$ac_delim
50933 dlldir!$dlldir$ac_delim
50934 AIX_CXX_LD!$AIX_CXX_LD$ac_delim
50935 SHARED_LD_CC!$SHARED_LD_CC$ac_delim
50936 SHARED_LD_CXX!$SHARED_LD_CXX$ac_delim
50937 SHARED_LD_MODULE_CC!$SHARED_LD_MODULE_CC$ac_delim
50938 SHARED_LD_MODULE_CXX!$SHARED_LD_MODULE_CXX$ac_delim
50939 PIC_FLAG!$PIC_FLAG$ac_delim
50940 WINDOWS_IMPLIB!$WINDOWS_IMPLIB$ac_delim
50941 USE_SOVERSION!$USE_SOVERSION$ac_delim
50942 USE_SOVERLINUX!$USE_SOVERLINUX$ac_delim
50943 USE_SOVERSOLARIS!$USE_SOVERSOLARIS$ac_delim
50944 USE_SOVERCYGWIN!$USE_SOVERCYGWIN$ac_delim
50945 USE_MACVERSION!$USE_MACVERSION$ac_delim
50946 USE_SOSYMLINKS!$USE_SOSYMLINKS$ac_delim
50947 SONAME_FLAG!$SONAME_FLAG$ac_delim
50948 DEPS_TRACKING!$DEPS_TRACKING$ac_delim
50949 BK_DEPS!$BK_DEPS$ac_delim
50950 WINDRES!$WINDRES$ac_delim
50951 REZ!$REZ$ac_delim
50952 SETFILE!$SETFILE$ac_delim
50953 GCC_PCH!$GCC_PCH$ac_delim
50954 ICC_PCH!$ICC_PCH$ac_delim
50955 BK_MAKE_PCH!$BK_MAKE_PCH$ac_delim
50956 COND_BUILD_DEBUG!$COND_BUILD_DEBUG$ac_delim
50957 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT!$COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT$ac_delim
50958 _ACEOF
50959
50960   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
50961     break
50962   elif $ac_last_try; then
50963     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
50964 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
50965    { (exit 1); exit 1; }; }
50966   else
50967     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
50968   fi
50969 done
50970
50971 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
50972 if test -n "$ac_eof"; then
50973   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
50974   ac_eof=`expr $ac_eof + 1`
50975 fi
50976
50977 cat >>$CONFIG_STATUS <<_ACEOF
50978 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
50979 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
50980 _ACEOF
50981 sed '
50982 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
50983 s/^/s,@/; s/!/@,|#_!!_#|/
50984 :n
50985 t n
50986 s/'"$ac_delim"'$/,g/; t
50987 s/$/\\/; p
50988 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
50989 ' >>$CONFIG_STATUS <conf$$subs.sed
50990 rm -f conf$$subs.sed
50991 cat >>$CONFIG_STATUS <<_ACEOF
50992 CEOF$ac_eof
50993 _ACEOF
50994
50995
50996 ac_delim='%!_!# '
50997 for ac_last_try in false false false false false :; do
50998   cat >conf$$subs.sed <<_ACEOF
50999 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT!$COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT$ac_delim
51000 COND_BUILD_DEBUG_UNICODE_0!$COND_BUILD_DEBUG_UNICODE_0$ac_delim
51001 COND_BUILD_DEBUG_UNICODE_1!$COND_BUILD_DEBUG_UNICODE_1$ac_delim
51002 COND_BUILD_RELEASE!$COND_BUILD_RELEASE$ac_delim
51003 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT!$COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT$ac_delim
51004 COND_BUILD_RELEASE_UNICODE_0!$COND_BUILD_RELEASE_UNICODE_0$ac_delim
51005 COND_BUILD_RELEASE_UNICODE_1!$COND_BUILD_RELEASE_UNICODE_1$ac_delim
51006 COND_DEBUG_FLAG_1!$COND_DEBUG_FLAG_1$ac_delim
51007 COND_DEBUG_INFO_0!$COND_DEBUG_INFO_0$ac_delim
51008 COND_DEBUG_INFO_1!$COND_DEBUG_INFO_1$ac_delim
51009 COND_DEPS_TRACKING_0!$COND_DEPS_TRACKING_0$ac_delim
51010 COND_DEPS_TRACKING_1!$COND_DEPS_TRACKING_1$ac_delim
51011 COND_GCC_PCH_1!$COND_GCC_PCH_1$ac_delim
51012 COND_ICC_PCH_1!$COND_ICC_PCH_1$ac_delim
51013 COND_MONOLITHIC_0!$COND_MONOLITHIC_0$ac_delim
51014 COND_MONOLITHIC_0_SHARED_0!$COND_MONOLITHIC_0_SHARED_0$ac_delim
51015 COND_MONOLITHIC_0_SHARED_0_USE_AUI_1!$COND_MONOLITHIC_0_SHARED_0_USE_AUI_1$ac_delim
51016 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1!$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1$ac_delim
51017 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1!$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1$ac_delim
51018 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1!$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1$ac_delim
51019 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1!$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1$ac_delim
51020 COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1!$COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1$ac_delim
51021 COND_MONOLITHIC_0_SHARED_0_USE_STC_1!$COND_MONOLITHIC_0_SHARED_0_USE_STC_1$ac_delim
51022 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1!$COND_MONOLITHIC_0_SHARED_0_USE_XRC_1$ac_delim
51023 COND_MONOLITHIC_0_SHARED_1!$COND_MONOLITHIC_0_SHARED_1$ac_delim
51024 COND_MONOLITHIC_0_SHARED_1_USE_AUI_1!$COND_MONOLITHIC_0_SHARED_1_USE_AUI_1$ac_delim
51025 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1!$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1$ac_delim
51026 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1!$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1$ac_delim
51027 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1!$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1$ac_delim
51028 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1!$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1$ac_delim
51029 COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1!$COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1$ac_delim
51030 COND_MONOLITHIC_0_SHARED_1_USE_STC_1!$COND_MONOLITHIC_0_SHARED_1_USE_STC_1$ac_delim
51031 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1!$COND_MONOLITHIC_0_SHARED_1_USE_XRC_1$ac_delim
51032 COND_MONOLITHIC_0_USE_AUI_1!$COND_MONOLITHIC_0_USE_AUI_1$ac_delim
51033 COND_MONOLITHIC_0_USE_GUI_1!$COND_MONOLITHIC_0_USE_GUI_1$ac_delim
51034 COND_MONOLITHIC_0_USE_GUI_1_USE_MEDIA_1!$COND_MONOLITHIC_0_USE_GUI_1_USE_MEDIA_1$ac_delim
51035 COND_MONOLITHIC_0_USE_HTML_1!$COND_MONOLITHIC_0_USE_HTML_1$ac_delim
51036 COND_MONOLITHIC_0_USE_MEDIA_1!$COND_MONOLITHIC_0_USE_MEDIA_1$ac_delim
51037 COND_MONOLITHIC_0_USE_QA_1!$COND_MONOLITHIC_0_USE_QA_1$ac_delim
51038 COND_MONOLITHIC_0_USE_RICHTEXT_1!$COND_MONOLITHIC_0_USE_RICHTEXT_1$ac_delim
51039 COND_MONOLITHIC_0_USE_STC_1!$COND_MONOLITHIC_0_USE_STC_1$ac_delim
51040 COND_MONOLITHIC_0_USE_XRC_1!$COND_MONOLITHIC_0_USE_XRC_1$ac_delim
51041 COND_MONOLITHIC_1!$COND_MONOLITHIC_1$ac_delim
51042 COND_MONOLITHIC_1_SHARED_0!$COND_MONOLITHIC_1_SHARED_0$ac_delim
51043 COND_MONOLITHIC_1_SHARED_1!$COND_MONOLITHIC_1_SHARED_1$ac_delim
51044 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1!$COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1$ac_delim
51045 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1!$COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1$ac_delim
51046 COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1!$COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1$ac_delim
51047 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1!$COND_PLATFORM_MACOSX_0_USE_SOVERSION_1$ac_delim
51048 COND_PLATFORM_MACOSX_1!$COND_PLATFORM_MACOSX_1$ac_delim
51049 COND_PLATFORM_MACOSX_1_TOOLKIT_!$COND_PLATFORM_MACOSX_1_TOOLKIT_$ac_delim
51050 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA!$COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA$ac_delim
51051 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK!$COND_PLATFORM_MACOSX_1_TOOLKIT_GTK$ac_delim
51052 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC!$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC$ac_delim
51053 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1!$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1$ac_delim
51054 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF!$COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF$ac_delim
51055 COND_PLATFORM_MACOSX_1_TOOLKIT_X11!$COND_PLATFORM_MACOSX_1_TOOLKIT_X11$ac_delim
51056 COND_PLATFORM_MACOSX_1_USE_GUI_1!$COND_PLATFORM_MACOSX_1_USE_GUI_1$ac_delim
51057 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1!$COND_PLATFORM_MACOSX_1_USE_SOVERSION_1$ac_delim
51058 COND_PLATFORM_MACOS_1!$COND_PLATFORM_MACOS_1$ac_delim
51059 COND_PLATFORM_MAC_1!$COND_PLATFORM_MAC_1$ac_delim
51060 COND_PLATFORM_MSDOS_0!$COND_PLATFORM_MSDOS_0$ac_delim
51061 COND_PLATFORM_MSDOS_1!$COND_PLATFORM_MSDOS_1$ac_delim
51062 COND_PLATFORM_OS2_1!$COND_PLATFORM_OS2_1$ac_delim
51063 COND_PLATFORM_UNIX_0!$COND_PLATFORM_UNIX_0$ac_delim
51064 COND_PLATFORM_UNIX_1!$COND_PLATFORM_UNIX_1$ac_delim
51065 COND_PLATFORM_UNIX_1_TOOLKIT_MGL!$COND_PLATFORM_UNIX_1_TOOLKIT_MGL$ac_delim
51066 COND_PLATFORM_UNIX_1_TOOLKIT_MGL_USE_GUI_1!$COND_PLATFORM_UNIX_1_TOOLKIT_MGL_USE_GUI_1$ac_delim
51067 COND_PLATFORM_UNIX_1_USE_GUI_1!$COND_PLATFORM_UNIX_1_USE_GUI_1$ac_delim
51068 COND_PLATFORM_UNIX_1_USE_PLUGINS_0!$COND_PLATFORM_UNIX_1_USE_PLUGINS_0$ac_delim
51069 COND_PLATFORM_WIN32_0!$COND_PLATFORM_WIN32_0$ac_delim
51070 COND_PLATFORM_WIN32_1!$COND_PLATFORM_WIN32_1$ac_delim
51071 COND_SHARED_0!$COND_SHARED_0$ac_delim
51072 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0!$COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0$ac_delim
51073 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0!$COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0$ac_delim
51074 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0!$COND_SHARED_0_TOOLKIT_PM_WXUNIV_0$ac_delim
51075 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1!$COND_SHARED_0_USE_GUI_1_USE_OPENGL_1$ac_delim
51076 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN!$COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN$ac_delim
51077 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN!$COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN$ac_delim
51078 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN!$COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN$ac_delim
51079 COND_SHARED_0_USE_STC_1!$COND_SHARED_0_USE_STC_1$ac_delim
51080 COND_SHARED_0_WXUSE_EXPAT_BUILTIN!$COND_SHARED_0_WXUSE_EXPAT_BUILTIN$ac_delim
51081 COND_SHARED_0_WXUSE_REGEX_BUILTIN!$COND_SHARED_0_WXUSE_REGEX_BUILTIN$ac_delim
51082 COND_SHARED_0_WXUSE_ZLIB_BUILTIN!$COND_SHARED_0_WXUSE_ZLIB_BUILTIN$ac_delim
51083 COND_SHARED_1!$COND_SHARED_1$ac_delim
51084 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1!$COND_SHARED_1_USE_GUI_1_USE_OPENGL_1$ac_delim
51085 COND_TOOLKIT_!$COND_TOOLKIT_$ac_delim
51086 COND_TOOLKIT_COCOA!$COND_TOOLKIT_COCOA$ac_delim
51087 COND_TOOLKIT_COCOA_USE_GUI_1!$COND_TOOLKIT_COCOA_USE_GUI_1$ac_delim
51088 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0$ac_delim
51089 COND_TOOLKIT_DFB!$COND_TOOLKIT_DFB$ac_delim
51090 COND_TOOLKIT_DFB_USE_GUI_1!$COND_TOOLKIT_DFB_USE_GUI_1$ac_delim
51091 COND_TOOLKIT_GTK!$COND_TOOLKIT_GTK$ac_delim
51092 COND_TOOLKIT_GTK_TOOLKIT_VERSION_!$COND_TOOLKIT_GTK_TOOLKIT_VERSION_$ac_delim
51093 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2!$COND_TOOLKIT_GTK_TOOLKIT_VERSION_2$ac_delim
51094 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1!$COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1$ac_delim
51095 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0$ac_delim
51096 _ACEOF
51097
51098   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
51099     break
51100   elif $ac_last_try; then
51101     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
51102 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
51103    { (exit 1); exit 1; }; }
51104   else
51105     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
51106   fi
51107 done
51108
51109 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
51110 if test -n "$ac_eof"; then
51111   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
51112   ac_eof=`expr $ac_eof + 1`
51113 fi
51114
51115 cat >>$CONFIG_STATUS <<_ACEOF
51116 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
51117 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
51118 _ACEOF
51119 sed '
51120 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
51121 s/^/s,@/; s/!/@,|#_!!_#|/
51122 :n
51123 t n
51124 s/'"$ac_delim"'$/,g/; t
51125 s/$/\\/; p
51126 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
51127 ' >>$CONFIG_STATUS <conf$$subs.sed
51128 rm -f conf$$subs.sed
51129 cat >>$CONFIG_STATUS <<_ACEOF
51130 CEOF$ac_eof
51131 _ACEOF
51132
51133
51134 ac_delim='%!_!# '
51135 for ac_last_try in false false false false false :; do
51136   cat >conf$$subs.sed <<_ACEOF
51137 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_WXUNIV_0!$COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_WXUNIV_0$ac_delim
51138 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1!$COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1$ac_delim
51139 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0$ac_delim
51140 COND_TOOLKIT_GTK_USE_GUI_1!$COND_TOOLKIT_GTK_USE_GUI_1$ac_delim
51141 COND_TOOLKIT_MAC!$COND_TOOLKIT_MAC$ac_delim
51142 COND_TOOLKIT_MAC_USE_GUI_1!$COND_TOOLKIT_MAC_USE_GUI_1$ac_delim
51143 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0$ac_delim
51144 COND_TOOLKIT_MGL!$COND_TOOLKIT_MGL$ac_delim
51145 COND_TOOLKIT_MGL_USE_GUI_1!$COND_TOOLKIT_MGL_USE_GUI_1$ac_delim
51146 COND_TOOLKIT_MOTIF!$COND_TOOLKIT_MOTIF$ac_delim
51147 COND_TOOLKIT_MOTIF_USE_GUI_1!$COND_TOOLKIT_MOTIF_USE_GUI_1$ac_delim
51148 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0$ac_delim
51149 COND_TOOLKIT_MSW!$COND_TOOLKIT_MSW$ac_delim
51150 COND_TOOLKIT_MSW_USE_GUI_1!$COND_TOOLKIT_MSW_USE_GUI_1$ac_delim
51151 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0$ac_delim
51152 COND_TOOLKIT_MSW_WXUNIV_0!$COND_TOOLKIT_MSW_WXUNIV_0$ac_delim
51153 COND_TOOLKIT_PM!$COND_TOOLKIT_PM$ac_delim
51154 COND_TOOLKIT_PM_USE_GUI_1!$COND_TOOLKIT_PM_USE_GUI_1$ac_delim
51155 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0$ac_delim
51156 COND_TOOLKIT_WINCE!$COND_TOOLKIT_WINCE$ac_delim
51157 COND_TOOLKIT_WINCE_USE_GUI_1!$COND_TOOLKIT_WINCE_USE_GUI_1$ac_delim
51158 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0$ac_delim
51159 COND_TOOLKIT_WINCE_WXUNIV_0!$COND_TOOLKIT_WINCE_WXUNIV_0$ac_delim
51160 COND_TOOLKIT_X11!$COND_TOOLKIT_X11$ac_delim
51161 COND_TOOLKIT_X11_USE_GUI_1!$COND_TOOLKIT_X11_USE_GUI_1$ac_delim
51162 COND_UNICODE_1!$COND_UNICODE_1$ac_delim
51163 COND_USE_EXCEPTIONS_0!$COND_USE_EXCEPTIONS_0$ac_delim
51164 COND_USE_EXCEPTIONS_1!$COND_USE_EXCEPTIONS_1$ac_delim
51165 COND_USE_GUI_0!$COND_USE_GUI_0$ac_delim
51166 COND_USE_GUI_1!$COND_USE_GUI_1$ac_delim
51167 COND_USE_GUI_1_USE_OPENGL_1!$COND_USE_GUI_1_USE_OPENGL_1$ac_delim
51168 COND_USE_GUI_1_WXUNIV_0!$COND_USE_GUI_1_WXUNIV_0$ac_delim
51169 COND_USE_GUI_1_WXUNIV_1!$COND_USE_GUI_1_WXUNIV_1$ac_delim
51170 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN!$COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN$ac_delim
51171 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN!$COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN$ac_delim
51172 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN!$COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN$ac_delim
51173 COND_USE_OPENGL_1!$COND_USE_OPENGL_1$ac_delim
51174 COND_USE_PCH_1!$COND_USE_PCH_1$ac_delim
51175 COND_USE_PLUGINS_0!$COND_USE_PLUGINS_0$ac_delim
51176 COND_USE_RTTI_0!$COND_USE_RTTI_0$ac_delim
51177 COND_USE_RTTI_1!$COND_USE_RTTI_1$ac_delim
51178 COND_USE_SOSYMLINKS_1!$COND_USE_SOSYMLINKS_1$ac_delim
51179 COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1!$COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1$ac_delim
51180 COND_USE_SOVERLINUX_1!$COND_USE_SOVERLINUX_1$ac_delim
51181 COND_USE_SOVERSION_0!$COND_USE_SOVERSION_0$ac_delim
51182 COND_USE_SOVERSOLARIS_1!$COND_USE_SOVERSOLARIS_1$ac_delim
51183 COND_USE_STC_1!$COND_USE_STC_1$ac_delim
51184 COND_USE_THREADS_0!$COND_USE_THREADS_0$ac_delim
51185 COND_USE_THREADS_1!$COND_USE_THREADS_1$ac_delim
51186 COND_USE_XRC_1!$COND_USE_XRC_1$ac_delim
51187 COND_WINDOWS_IMPLIB_1!$COND_WINDOWS_IMPLIB_1$ac_delim
51188 COND_WITH_PLUGIN_SDL_1!$COND_WITH_PLUGIN_SDL_1$ac_delim
51189 COND_WXUNIV_0!$COND_WXUNIV_0$ac_delim
51190 COND_WXUNIV_1!$COND_WXUNIV_1$ac_delim
51191 COND_WXUSE_EXPAT_BUILTIN!$COND_WXUSE_EXPAT_BUILTIN$ac_delim
51192 COND_WXUSE_LIBJPEG_BUILTIN!$COND_WXUSE_LIBJPEG_BUILTIN$ac_delim
51193 COND_WXUSE_LIBPNG_BUILTIN!$COND_WXUSE_LIBPNG_BUILTIN$ac_delim
51194 COND_WXUSE_LIBTIFF_BUILTIN!$COND_WXUSE_LIBTIFF_BUILTIN$ac_delim
51195 COND_WXUSE_REGEX_BUILTIN!$COND_WXUSE_REGEX_BUILTIN$ac_delim
51196 COND_WXUSE_ZLIB_BUILTIN!$COND_WXUSE_ZLIB_BUILTIN$ac_delim
51197 DEREZ!$DEREZ$ac_delim
51198 SHARED!$SHARED$ac_delim
51199 WX_LIBRARY_BASENAME_NOGUI!$WX_LIBRARY_BASENAME_NOGUI$ac_delim
51200 WX_LIBRARY_BASENAME_GUI!$WX_LIBRARY_BASENAME_GUI$ac_delim
51201 USE_GUI!$USE_GUI$ac_delim
51202 AFMINSTALL!$AFMINSTALL$ac_delim
51203 WIN32INSTALL!$WIN32INSTALL$ac_delim
51204 TOOLKIT!$TOOLKIT$ac_delim
51205 TOOLKIT_DIR!$TOOLKIT_DIR$ac_delim
51206 TOOLCHAIN_NAME!$TOOLCHAIN_NAME$ac_delim
51207 TOOLCHAIN_FULLNAME!$TOOLCHAIN_FULLNAME$ac_delim
51208 cross_compiling!$cross_compiling$ac_delim
51209 WIDGET_SET!$WIDGET_SET$ac_delim
51210 WX_RELEASE!$WX_RELEASE$ac_delim
51211 WX_VERSION!$WX_VERSION$ac_delim
51212 WX_SUBVERSION!$WX_SUBVERSION$ac_delim
51213 WX_CHARTYPE!$WX_CHARTYPE$ac_delim
51214 WX_DEBUGTYPE!$WX_DEBUGTYPE$ac_delim
51215 WXCONFIG_CPPFLAGS!$WXCONFIG_CPPFLAGS$ac_delim
51216 WXCONFIG_CFLAGS!$WXCONFIG_CFLAGS$ac_delim
51217 WXCONFIG_CXXFLAGS!$WXCONFIG_CXXFLAGS$ac_delim
51218 WXCONFIG_LIBS!$WXCONFIG_LIBS$ac_delim
51219 WXCONFIG_RPATH!$WXCONFIG_RPATH$ac_delim
51220 WXCONFIG_LDFLAGS_GUI!$WXCONFIG_LDFLAGS_GUI$ac_delim
51221 WXCONFIG_RESFLAGS!$WXCONFIG_RESFLAGS$ac_delim
51222 GUIDIST!$GUIDIST$ac_delim
51223 DISTDIR!$DISTDIR$ac_delim
51224 SAMPLES_SUBDIRS!$SAMPLES_SUBDIRS$ac_delim
51225 LDFLAGS_GL!$LDFLAGS_GL$ac_delim
51226 OPENGL_LIBS!$OPENGL_LIBS$ac_delim
51227 DMALLOC_LIBS!$DMALLOC_LIBS$ac_delim
51228 WX_VERSION_TAG!$WX_VERSION_TAG$ac_delim
51229 RESCOMP!$RESCOMP$ac_delim
51230 RESFLAGS!$RESFLAGS$ac_delim
51231 RESPROGRAMOBJ!$RESPROGRAMOBJ$ac_delim
51232 WX_RESOURCES_MACOSX_ASCII!$WX_RESOURCES_MACOSX_ASCII$ac_delim
51233 WX_RESOURCES_MACOSX_DATA!$WX_RESOURCES_MACOSX_DATA$ac_delim
51234 _ACEOF
51235
51236   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
51237     break
51238   elif $ac_last_try; then
51239     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
51240 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
51241    { (exit 1); exit 1; }; }
51242   else
51243     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
51244   fi
51245 done
51246
51247 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
51248 if test -n "$ac_eof"; then
51249   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
51250   ac_eof=`expr $ac_eof + 1`
51251 fi
51252
51253 cat >>$CONFIG_STATUS <<_ACEOF
51254 cat >"\$tmp/subs-4.sed" <<\CEOF$ac_eof
51255 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
51256 _ACEOF
51257 sed '
51258 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
51259 s/^/s,@/; s/!/@,|#_!!_#|/
51260 :n
51261 t n
51262 s/'"$ac_delim"'$/,g/; t
51263 s/$/\\/; p
51264 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
51265 ' >>$CONFIG_STATUS <conf$$subs.sed
51266 rm -f conf$$subs.sed
51267 cat >>$CONFIG_STATUS <<_ACEOF
51268 CEOF$ac_eof
51269 _ACEOF
51270
51271
51272 ac_delim='%!_!# '
51273 for ac_last_try in false false false false false :; do
51274   cat >conf$$subs.sed <<_ACEOF
51275 LIBWXMACRES!$LIBWXMACRES$ac_delim
51276 POSTLINK_COMMAND!$POSTLINK_COMMAND$ac_delim
51277 MACSETFILE!$MACSETFILE$ac_delim
51278 GCC!$GCC$ac_delim
51279 DLLTOOL!$DLLTOOL$ac_delim
51280 CPPUNIT_CONFIG!$CPPUNIT_CONFIG$ac_delim
51281 LIBOBJS!$LIBOBJS$ac_delim
51282 LTLIBOBJS!$LTLIBOBJS$ac_delim
51283 _ACEOF
51284
51285   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 8; then
51286     break
51287   elif $ac_last_try; then
51288     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
51289 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
51290    { (exit 1); exit 1; }; }
51291   else
51292     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
51293   fi
51294 done
51295
51296 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
51297 if test -n "$ac_eof"; then
51298   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
51299   ac_eof=`expr $ac_eof + 1`
51300 fi
51301
51302 cat >>$CONFIG_STATUS <<_ACEOF
51303 cat >"\$tmp/subs-5.sed" <<\CEOF$ac_eof
51304 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
51305 _ACEOF
51306 sed '
51307 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
51308 s/^/s,@/; s/!/@,|#_!!_#|/
51309 :n
51310 t n
51311 s/'"$ac_delim"'$/,g/; t
51312 s/$/\\/; p
51313 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
51314 ' >>$CONFIG_STATUS <conf$$subs.sed
51315 rm -f conf$$subs.sed
51316 cat >>$CONFIG_STATUS <<_ACEOF
51317 :end
51318 s/|#_!!_#|//g
51319 CEOF$ac_eof
51320 _ACEOF
51321
51322
51323 # VPATH may cause trouble with some makes, so we remove $(srcdir),
51324 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
51325 # trailing colons and then remove the whole line if VPATH becomes empty
51326 # (actually we leave an empty line to preserve line numbers).
51327 if test "x$srcdir" = x.; then
51328   ac_vpsub='/^[  ]*VPATH[        ]*=/{
51329 s/:*\$(srcdir):*/:/
51330 s/:*\${srcdir}:*/:/
51331 s/:*@srcdir@:*/:/
51332 s/^\([^=]*=[     ]*\):*/\1/
51333 s/:*$//
51334 s/^[^=]*=[       ]*$//
51335 }'
51336 fi
51337
51338 cat >>$CONFIG_STATUS <<\_ACEOF
51339 fi # test -n "$CONFIG_FILES"
51340
51341
51342 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
51343 do
51344   case $ac_tag in
51345   :[FHLC]) ac_mode=$ac_tag; continue;;
51346   esac
51347   case $ac_mode$ac_tag in
51348   :[FHL]*:*);;
51349   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
51350 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
51351    { (exit 1); exit 1; }; };;
51352   :[FH]-) ac_tag=-:-;;
51353   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
51354   esac
51355   ac_save_IFS=$IFS
51356   IFS=:
51357   set x $ac_tag
51358   IFS=$ac_save_IFS
51359   shift
51360   ac_file=$1
51361   shift
51362
51363   case $ac_mode in
51364   :L) ac_source=$1;;
51365   :[FH])
51366     ac_file_inputs=
51367     for ac_f
51368     do
51369       case $ac_f in
51370       -) ac_f="$tmp/stdin";;
51371       *) # Look for the file first in the build tree, then in the source tree
51372          # (if the path is not absolute).  The absolute path cannot be DOS-style,
51373          # because $ac_f cannot contain `:'.
51374          test -f "$ac_f" ||
51375            case $ac_f in
51376            [\\/$]*) false;;
51377            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
51378            esac ||
51379            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
51380 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
51381    { (exit 1); exit 1; }; };;
51382       esac
51383       ac_file_inputs="$ac_file_inputs $ac_f"
51384     done
51385
51386     # Let's still pretend it is `configure' which instantiates (i.e., don't
51387     # use $as_me), people would be surprised to read:
51388     #    /* config.h.  Generated by config.status.  */
51389     configure_input="Generated from "`IFS=:
51390           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
51391     if test x"$ac_file" != x-; then
51392       configure_input="$ac_file.  $configure_input"
51393       { echo "$as_me:$LINENO: creating $ac_file" >&5
51394 echo "$as_me: creating $ac_file" >&6;}
51395     fi
51396
51397     case $ac_tag in
51398     *:-:* | *:-) cat >"$tmp/stdin";;
51399     esac
51400     ;;
51401   esac
51402
51403   ac_dir=`$as_dirname -- "$ac_file" ||
51404 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
51405          X"$ac_file" : 'X\(//\)[^/]' \| \
51406          X"$ac_file" : 'X\(//\)$' \| \
51407          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
51408 echo X"$ac_file" |
51409     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
51410             s//\1/
51411             q
51412           }
51413           /^X\(\/\/\)[^/].*/{
51414             s//\1/
51415             q
51416           }
51417           /^X\(\/\/\)$/{
51418             s//\1/
51419             q
51420           }
51421           /^X\(\/\).*/{
51422             s//\1/
51423             q
51424           }
51425           s/.*/./; q'`
51426   { as_dir="$ac_dir"
51427   case $as_dir in #(
51428   -*) as_dir=./$as_dir;;
51429   esac
51430   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
51431     as_dirs=
51432     while :; do
51433       case $as_dir in #(
51434       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
51435       *) as_qdir=$as_dir;;
51436       esac
51437       as_dirs="'$as_qdir' $as_dirs"
51438       as_dir=`$as_dirname -- "$as_dir" ||
51439 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
51440          X"$as_dir" : 'X\(//\)[^/]' \| \
51441          X"$as_dir" : 'X\(//\)$' \| \
51442          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
51443 echo X"$as_dir" |
51444     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
51445             s//\1/
51446             q
51447           }
51448           /^X\(\/\/\)[^/].*/{
51449             s//\1/
51450             q
51451           }
51452           /^X\(\/\/\)$/{
51453             s//\1/
51454             q
51455           }
51456           /^X\(\/\).*/{
51457             s//\1/
51458             q
51459           }
51460           s/.*/./; q'`
51461       test -d "$as_dir" && break
51462     done
51463     test -z "$as_dirs" || eval "mkdir $as_dirs"
51464   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
51465 echo "$as_me: error: cannot create directory $as_dir" >&2;}
51466    { (exit 1); exit 1; }; }; }
51467   ac_builddir=.
51468
51469 case "$ac_dir" in
51470 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
51471 *)
51472   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
51473   # A ".." for each directory in $ac_dir_suffix.
51474   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
51475   case $ac_top_builddir_sub in
51476   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
51477   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
51478   esac ;;
51479 esac
51480 ac_abs_top_builddir=$ac_pwd
51481 ac_abs_builddir=$ac_pwd$ac_dir_suffix
51482 # for backward compatibility:
51483 ac_top_builddir=$ac_top_build_prefix
51484
51485 case $srcdir in
51486   .)  # We are building in place.
51487     ac_srcdir=.
51488     ac_top_srcdir=$ac_top_builddir_sub
51489     ac_abs_top_srcdir=$ac_pwd ;;
51490   [\\/]* | ?:[\\/]* )  # Absolute name.
51491     ac_srcdir=$srcdir$ac_dir_suffix;
51492     ac_top_srcdir=$srcdir
51493     ac_abs_top_srcdir=$srcdir ;;
51494   *) # Relative name.
51495     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
51496     ac_top_srcdir=$ac_top_build_prefix$srcdir
51497     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
51498 esac
51499 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
51500
51501
51502   case $ac_mode in
51503   :F)
51504   #
51505   # CONFIG_FILE
51506   #
51507
51508   case $INSTALL in
51509   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
51510   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
51511   esac
51512 _ACEOF
51513
51514 cat >>$CONFIG_STATUS <<\_ACEOF
51515 # If the template does not know about datarootdir, expand it.
51516 # FIXME: This hack should be removed a few years after 2.60.
51517 ac_datarootdir_hack=; ac_datarootdir_seen=
51518
51519 case `sed -n '/datarootdir/ {
51520   p
51521   q
51522 }
51523 /@datadir@/p
51524 /@docdir@/p
51525 /@infodir@/p
51526 /@localedir@/p
51527 /@mandir@/p
51528 ' $ac_file_inputs` in
51529 *datarootdir*) ac_datarootdir_seen=yes;;
51530 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
51531   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
51532 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
51533 _ACEOF
51534 cat >>$CONFIG_STATUS <<_ACEOF
51535   ac_datarootdir_hack='
51536   s&@datadir@&$datadir&g
51537   s&@docdir@&$docdir&g
51538   s&@infodir@&$infodir&g
51539   s&@localedir@&$localedir&g
51540   s&@mandir@&$mandir&g
51541     s&\\\${datarootdir}&$datarootdir&g' ;;
51542 esac
51543 _ACEOF
51544
51545 # Neutralize VPATH when `$srcdir' = `.'.
51546 # Shell code in configure.ac might set extrasub.
51547 # FIXME: do we really want to maintain this feature?
51548 cat >>$CONFIG_STATUS <<_ACEOF
51549   sed "$ac_vpsub
51550 $extrasub
51551 _ACEOF
51552 cat >>$CONFIG_STATUS <<\_ACEOF
51553 :t
51554 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
51555 s&@configure_input@&$configure_input&;t t
51556 s&@top_builddir@&$ac_top_builddir_sub&;t t
51557 s&@srcdir@&$ac_srcdir&;t t
51558 s&@abs_srcdir@&$ac_abs_srcdir&;t t
51559 s&@top_srcdir@&$ac_top_srcdir&;t t
51560 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
51561 s&@builddir@&$ac_builddir&;t t
51562 s&@abs_builddir@&$ac_abs_builddir&;t t
51563 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
51564 s&@INSTALL@&$ac_INSTALL&;t t
51565 $ac_datarootdir_hack
51566 " $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
51567
51568 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
51569   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
51570   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
51571   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
51572 which seems to be undefined.  Please make sure it is defined." >&5
51573 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
51574 which seems to be undefined.  Please make sure it is defined." >&2;}
51575
51576   rm -f "$tmp/stdin"
51577   case $ac_file in
51578   -) cat "$tmp/out"; rm -f "$tmp/out";;
51579   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
51580   esac
51581  ;;
51582   :H)
51583   #
51584   # CONFIG_HEADER
51585   #
51586 _ACEOF
51587
51588 # Transform confdefs.h into a sed script `conftest.defines', that
51589 # substitutes the proper values into config.h.in to produce config.h.
51590 rm -f conftest.defines conftest.tail
51591 # First, append a space to every undef/define line, to ease matching.
51592 echo 's/$/ /' >conftest.defines
51593 # Then, protect against being on the right side of a sed subst, or in
51594 # an unquoted here document, in config.status.  If some macros were
51595 # called several times there might be several #defines for the same
51596 # symbol, which is useless.  But do not sort them, since the last
51597 # AC_DEFINE must be honored.
51598 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
51599 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
51600 # NAME is the cpp macro being defined, VALUE is the value it is being given.
51601 # PARAMS is the parameter list in the macro definition--in most cases, it's
51602 # just an empty string.
51603 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
51604 ac_dB='\\)[      (].*,\\1define\\2'
51605 ac_dC=' '
51606 ac_dD=' ,'
51607
51608 uniq confdefs.h |
51609   sed -n '
51610         t rset
51611         :rset
51612         s/^[     ]*#[    ]*define[       ][      ]*//
51613         t ok
51614         d
51615         :ok
51616         s/[\\&,]/\\&/g
51617         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
51618         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
51619   ' >>conftest.defines
51620
51621 # Remove the space that was appended to ease matching.
51622 # Then replace #undef with comments.  This is necessary, for
51623 # example, in the case of _POSIX_SOURCE, which is predefined and required
51624 # on some systems where configure will not decide to define it.
51625 # (The regexp can be short, since the line contains either #define or #undef.)
51626 echo 's/ $//
51627 s,^[     #]*u.*,/* & */,' >>conftest.defines
51628
51629 # Break up conftest.defines:
51630 ac_max_sed_lines=50
51631
51632 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
51633 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
51634 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
51635 # et cetera.
51636 ac_in='$ac_file_inputs'
51637 ac_out='"$tmp/out1"'
51638 ac_nxt='"$tmp/out2"'
51639
51640 while :
51641 do
51642   # Write a here document:
51643     cat >>$CONFIG_STATUS <<_ACEOF
51644     # First, check the format of the line:
51645     cat >"\$tmp/defines.sed" <<\\CEOF
51646 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
51647 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
51648 b
51649 :def
51650 _ACEOF
51651   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
51652   echo 'CEOF
51653     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
51654   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
51655   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
51656   grep . conftest.tail >/dev/null || break
51657   rm -f conftest.defines
51658   mv conftest.tail conftest.defines
51659 done
51660 rm -f conftest.defines conftest.tail
51661
51662 echo "ac_result=$ac_in" >>$CONFIG_STATUS
51663 cat >>$CONFIG_STATUS <<\_ACEOF
51664   if test x"$ac_file" != x-; then
51665     echo "/* $configure_input  */" >"$tmp/config.h"
51666     cat "$ac_result" >>"$tmp/config.h"
51667     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
51668       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
51669 echo "$as_me: $ac_file is unchanged" >&6;}
51670     else
51671       rm -f $ac_file
51672       mv "$tmp/config.h" $ac_file
51673     fi
51674   else
51675     echo "/* $configure_input  */"
51676     cat "$ac_result"
51677   fi
51678   rm -f "$tmp/out12"
51679  ;;
51680
51681   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
51682 echo "$as_me: executing $ac_file commands" >&6;}
51683  ;;
51684   esac
51685
51686
51687   case $ac_file$ac_mode in
51688     "rcdefs.h":C)
51689             mkdir -p $outdir &&
51690             $CPP $infile | sed 's/^# *[1-9].*//;s/^ *//;/./,/^$/!d' > $outdir/rcdefs.h
51691          ;;
51692     "lib/wx/config/${TOOLCHAIN_FULLNAME}":F)  chmod +x lib/wx/config/${TOOLCHAIN_FULLNAME}  ;;
51693     "lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}":F)  chmod +x lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}  ;;
51694     "wx-config":C)  rm -f wx-config
51695                      ${LN_S} lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} wx-config
51696                     ;;
51697
51698   esac
51699 done # for ac_tag
51700
51701
51702 { (exit 0); exit 0; }
51703 _ACEOF
51704 chmod +x $CONFIG_STATUS
51705 ac_clean_files=$ac_clean_files_save
51706
51707
51708 # configure is writing to config.log, and then calls config.status.
51709 # config.status does its own redirection, appending to config.log.
51710 # Unfortunately, on DOS this fails, as config.log is still kept open
51711 # by configure, so config.status won't be able to write to it; its
51712 # output is simply discarded.  So we exec the FD to /dev/null,
51713 # effectively closing config.log, so it can be properly (re)opened and
51714 # appended to by config.status.  When coming back to configure, we
51715 # need to make the FD available again.
51716 if test "$no_create" != yes; then
51717   ac_cs_success=:
51718   ac_config_status_args=
51719   test "$silent" = yes &&
51720     ac_config_status_args="$ac_config_status_args --quiet"
51721   exec 5>/dev/null
51722   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
51723   exec 5>>config.log
51724   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
51725   # would make configure fail if this is the last instruction.
51726   $ac_cs_success || { (exit 1); exit 1; }
51727 fi
51728
51729 #
51730 # CONFIG_SUBDIRS section.
51731 #
51732 if test "$no_recursion" != yes; then
51733
51734   # Remove --cache-file and --srcdir arguments so they do not pile up.
51735   ac_sub_configure_args=
51736   ac_prev=
51737   eval "set x $ac_configure_args"
51738   shift
51739   for ac_arg
51740   do
51741     if test -n "$ac_prev"; then
51742       ac_prev=
51743       continue
51744     fi
51745     case $ac_arg in
51746     -cache-file | --cache-file | --cache-fil | --cache-fi \
51747     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
51748       ac_prev=cache_file ;;
51749     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
51750     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
51751     | --c=*)
51752       ;;
51753     --config-cache | -C)
51754       ;;
51755     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
51756       ac_prev=srcdir ;;
51757     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
51758       ;;
51759     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
51760       ac_prev=prefix ;;
51761     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
51762       ;;
51763     *)
51764       case $ac_arg in
51765       *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
51766       esac
51767       ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
51768     esac
51769   done
51770
51771   # Always prepend --prefix to ensure using the same prefix
51772   # in subdir configurations.
51773   ac_arg="--prefix=$prefix"
51774   case $ac_arg in
51775   *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
51776   esac
51777   ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
51778
51779   # Pass --silent
51780   if test "$silent" = yes; then
51781     ac_sub_configure_args="--silent $ac_sub_configure_args"
51782   fi
51783
51784   ac_popdir=`pwd`
51785   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
51786
51787     # Do not complain, so a configure script can configure whichever
51788     # parts of a large source tree are present.
51789     test -d "$srcdir/$ac_dir" || continue
51790
51791     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
51792     echo "$as_me:$LINENO: $ac_msg" >&5
51793     echo "$ac_msg" >&6
51794     { as_dir="$ac_dir"
51795   case $as_dir in #(
51796   -*) as_dir=./$as_dir;;
51797   esac
51798   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
51799     as_dirs=
51800     while :; do
51801       case $as_dir in #(
51802       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
51803       *) as_qdir=$as_dir;;
51804       esac
51805       as_dirs="'$as_qdir' $as_dirs"
51806       as_dir=`$as_dirname -- "$as_dir" ||
51807 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
51808          X"$as_dir" : 'X\(//\)[^/]' \| \
51809          X"$as_dir" : 'X\(//\)$' \| \
51810          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
51811 echo X"$as_dir" |
51812     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
51813             s//\1/
51814             q
51815           }
51816           /^X\(\/\/\)[^/].*/{
51817             s//\1/
51818             q
51819           }
51820           /^X\(\/\/\)$/{
51821             s//\1/
51822             q
51823           }
51824           /^X\(\/\).*/{
51825             s//\1/
51826             q
51827           }
51828           s/.*/./; q'`
51829       test -d "$as_dir" && break
51830     done
51831     test -z "$as_dirs" || eval "mkdir $as_dirs"
51832   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
51833 echo "$as_me: error: cannot create directory $as_dir" >&2;}
51834    { (exit 1); exit 1; }; }; }
51835     ac_builddir=.
51836
51837 case "$ac_dir" in
51838 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
51839 *)
51840   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
51841   # A ".." for each directory in $ac_dir_suffix.
51842   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
51843   case $ac_top_builddir_sub in
51844   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
51845   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
51846   esac ;;
51847 esac
51848 ac_abs_top_builddir=$ac_pwd
51849 ac_abs_builddir=$ac_pwd$ac_dir_suffix
51850 # for backward compatibility:
51851 ac_top_builddir=$ac_top_build_prefix
51852
51853 case $srcdir in
51854   .)  # We are building in place.
51855     ac_srcdir=.
51856     ac_top_srcdir=$ac_top_builddir_sub
51857     ac_abs_top_srcdir=$ac_pwd ;;
51858   [\\/]* | ?:[\\/]* )  # Absolute name.
51859     ac_srcdir=$srcdir$ac_dir_suffix;
51860     ac_top_srcdir=$srcdir
51861     ac_abs_top_srcdir=$srcdir ;;
51862   *) # Relative name.
51863     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
51864     ac_top_srcdir=$ac_top_build_prefix$srcdir
51865     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
51866 esac
51867 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
51868
51869
51870     cd "$ac_dir"
51871
51872     # Check for guested configure; otherwise get Cygnus style configure.
51873     if test -f "$ac_srcdir/configure.gnu"; then
51874       ac_sub_configure=$ac_srcdir/configure.gnu
51875     elif test -f "$ac_srcdir/configure"; then
51876       ac_sub_configure=$ac_srcdir/configure
51877     elif test -f "$ac_srcdir/configure.in"; then
51878       # This should be Cygnus configure.
51879       ac_sub_configure=$ac_aux_dir/configure
51880     else
51881       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
51882 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
51883       ac_sub_configure=
51884     fi
51885
51886     # The recursion is here.
51887     if test -n "$ac_sub_configure"; then
51888       # Make the cache file name correct relative to the subdirectory.
51889       case $cache_file in
51890       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
51891       *) # Relative name.
51892         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
51893       esac
51894
51895       { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
51896 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
51897       # The eval makes quoting arguments work.
51898       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
51899            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
51900         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
51901 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
51902    { (exit 1); exit 1; }; }
51903     fi
51904
51905     cd "$ac_popdir"
51906   done
51907 fi
51908
51909
51910 echo
51911 echo "Configured wxWidgets ${WX_VERSION} for \`${host}'"
51912 echo ""
51913 echo "  Which GUI toolkit should wxWidgets use?                 ${TOOLKIT_DESC}"
51914 echo "  Should wxWidgets be compiled into single library?       ${wxUSE_MONOLITHIC:-yes}"
51915
51916 echo "  Should wxWidgets be compiled in debug mode?             ${wxUSE_DEBUG:-no}"
51917 echo "  Should wxWidgets be linked as a shared library?         ${wxUSE_SHARED:-no}"
51918 echo $ECHO_N "  Should wxWidgets support Unicode?                       ${wxUSE_UNICODE:-no}$ECHO_C"
51919 if test "$wxUSE_UNICODE" = "yes"; then
51920     if test "$wxUSE_UNICODE_UTF8" = "yes"; then
51921         echo " (using UTF-8)"
51922     else
51923         echo " (using wchar_t)"
51924     fi
51925 else
51926     echo
51927 fi
51928
51929 echo "  What level of wxWidgets compatibility should be enabled?"
51930 echo "                                       wxWidgets 2.6      ${WXWIN_COMPATIBILITY_2_6:-no}"
51931 echo "                                       wxWidgets 2.8      ${WXWIN_COMPATIBILITY_2_8:-yes}"
51932
51933 echo "  Which libraries should wxWidgets use?"
51934 echo "                                       STL                ${wxUSE_STL}"
51935 echo "                                       jpeg               ${wxUSE_LIBJPEG-none}"
51936 echo "                                       png                ${wxUSE_LIBPNG-none}"
51937 echo "                                       regex              ${wxUSE_REGEX}"
51938 echo "                                       tiff               ${wxUSE_LIBTIFF-none}"
51939 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
51940 echo "                                       xpm                ${wxUSE_LIBXPM-none}"
51941 fi
51942 echo "                                       zlib               ${wxUSE_ZLIB}"
51943 echo "                                       expat              ${wxUSE_EXPAT}"
51944 echo "                                       libmspack          ${wxUSE_LIBMSPACK}"
51945 echo "                                       sdl                ${wxUSE_LIBSDL}"
51946
51947 echo ""
51948