Disable symbols visibility support for the Clang compiler.
[wxWidgets.git] / configure
1 #! /bin/sh
2 # From configure.in Id.
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.61 for wxWidgets 2.9.3.
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.3'
579 PACKAGE_STRING='wxWidgets 2.9.3'
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 wx_top_builddir
665 CC
666 CFLAGS
667 LDFLAGS
668 CPPFLAGS
669 ac_ct_CC
670 EXEEXT
671 OBJEXT
672 CPP
673 GREP
674 EGREP
675 CXX
676 CXXFLAGS
677 ac_ct_CXX
678 AR
679 OSX_SW_VERS
680 CXXCPP
681 subdirs
682 PKG_CONFIG
683 GTK_CFLAGS
684 GTK_LIBS
685 GTK_CONFIG
686 DIRECTFB_CFLAGS
687 DIRECTFB_LIBS
688 XMKMF
689 X_CFLAGS
690 X_PRE_LIBS
691 X_LIBS
692 X_EXTRA_LIBS
693 PANGOX_CFLAGS
694 PANGOX_LIBS
695 PANGOFT2_CFLAGS
696 PANGOFT2_LIBS
697 PANGOXFT_CFLAGS
698 PANGOXFT_LIBS
699 CFLAGS_VISIBILITY
700 CXXFLAGS_VISIBILITY
701 LIBICONV
702 GXX_VERSION
703 SDL_CONFIG
704 SDL_CFLAGS
705 SDL_LIBS
706 GTKPRINT_CFLAGS
707 GTKPRINT_LIBS
708 LIBGNOMEPRINTUI_CFLAGS
709 LIBGNOMEPRINTUI_LIBS
710 GNOMEVFS_CFLAGS
711 GNOMEVFS_LIBS
712 HILDON_CFLAGS
713 HILDON_LIBS
714 HILDON2_CFLAGS
715 HILDON2_LIBS
716 PYTHON
717 COND_PYTHON
718 CAIRO_CFLAGS
719 CAIRO_LIBS
720 GST_CFLAGS
721 GST_LIBS
722 ALL_WX_LIBS
723 BUILT_WX_LIBS
724 STD_BASE_LIBS
725 STD_GUI_LIBS
726 wxUSE_ZLIB
727 wxUSE_REGEX
728 wxUSE_EXPAT
729 wxUSE_LIBJPEG
730 wxUSE_LIBPNG
731 wxUSE_LIBTIFF
732 VENDOR
733 OFFICIAL_BUILD
734 WX_FLAVOUR
735 WX_LIB_FLAVOUR
736 WXUNIV
737 MONOLITHIC
738 USE_PLUGINS
739 CXXWARNINGS
740 EXTRALIBS
741 EXTRALIBS_XML
742 EXTRALIBS_HTML
743 EXTRALIBS_MEDIA
744 EXTRALIBS_GUI
745 EXTRALIBS_OPENGL
746 EXTRALIBS_SDL
747 EXTRALIBS_STC
748 WITH_PLUGIN_SDL
749 EXTRALIBS_GTKPRINT
750 EXTRALIBS_GNOMEPRINT
751 EXTRALIBS_GNOMEVFS
752 EXTRALIBS_HILDON
753 UNICODE
754 DEBUG_INFO
755 DEBUG_FLAG
756 TOOLKIT_LOWERCASE
757 TOOLKIT_VERSION
758 DYLIB_RPATH_INSTALL
759 DYLIB_RPATH_POSTLINK
760 SAMPLES_RPATH_FLAG
761 HEADER_PAD_OPTION
762 HOST_SUFFIX
763 CPPUNIT_CFLAGS
764 CPPUNIT_LIBS
765 RANLIB
766 INSTALL_PROGRAM
767 INSTALL_SCRIPT
768 INSTALL_DATA
769 LN_S
770 SET_MAKE
771 MAKE_SET
772 AROPTIONS
773 STRIP
774 NM
775 INSTALL_DIR
776 LDFLAGS_GUI
777 IF_GNU_MAKE
778 PLATFORM_UNIX
779 PLATFORM_WIN32
780 PLATFORM_MSDOS
781 PLATFORM_MAC
782 PLATFORM_MACOS
783 PLATFORM_MACOSX
784 PLATFORM_OS2
785 PLATFORM_BEOS
786 SO_SUFFIX
787 SO_SUFFIX_MODULE
788 DLLIMP_SUFFIX
789 LIBPREFIX
790 LIBEXT
791 DLLPREFIX
792 DLLPREFIX_MODULE
793 dlldir
794 AIX_CXX_LD
795 SHARED_LD_CC
796 SHARED_LD_CXX
797 SHARED_LD_MODULE_CC
798 SHARED_LD_MODULE_CXX
799 PIC_FLAG
800 WINDOWS_IMPLIB
801 USE_SOVERSION
802 USE_SOVERLINUX
803 USE_SOVERSOLARIS
804 USE_SOVERCYGWIN
805 USE_MACVERSION
806 USE_SOTWOSYMLINKS
807 SONAME_FLAG
808 DEPS_TRACKING
809 BK_DEPS
810 WINDRES
811 REZ
812 SETFILE
813 OBJCXXFLAGS
814 GCC_PCH
815 ICC_PCH
816 ICC_PCH_CREATE_SWITCH
817 ICC_PCH_USE_SWITCH
818 BK_MAKE_PCH
819 COND_BUILD_DEBUG
820 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT
821 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT
822 COND_BUILD_DEBUG_UNICODE_0
823 COND_BUILD_DEBUG_UNICODE_1
824 COND_BUILD_RELEASE
825 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT
826 COND_BUILD_RELEASE_UNICODE_0
827 COND_BUILD_RELEASE_UNICODE_1
828 COND_BUILD_debug
829 COND_BUILD_debug_DEBUG_FLAG_default
830 COND_BUILD_debug_DEBUG_INFO_default
831 COND_BUILD_debug_UNICODE_0
832 COND_BUILD_debug_UNICODE_1
833 COND_BUILD_release
834 COND_BUILD_release_DEBUG_INFO_default
835 COND_BUILD_release_UNICODE_0
836 COND_BUILD_release_UNICODE_1
837 COND_DEBUG_FLAG_0
838 COND_DEBUG_FLAG_1
839 COND_DEBUG_INFO_0
840 COND_DEBUG_INFO_1
841 COND_DEPS_TRACKING_0
842 COND_DEPS_TRACKING_1
843 COND_GCC_PCH_1
844 COND_ICC_PCH_1
845 COND_MONOLITHIC_0
846 COND_MONOLITHIC_0_SHARED_0
847 COND_MONOLITHIC_0_SHARED_0_USE_AUI_1
848 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1
849 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1
850 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1
851 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1
852 COND_MONOLITHIC_0_SHARED_0_USE_PROPGRID_1
853 COND_MONOLITHIC_0_SHARED_0_USE_RIBBON_1
854 COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1
855 COND_MONOLITHIC_0_SHARED_0_USE_STC_1
856 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1
857 COND_MONOLITHIC_0_SHARED_1
858 COND_MONOLITHIC_0_SHARED_1_USE_AUI_1
859 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1
860 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1
861 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1
862 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1
863 COND_MONOLITHIC_0_SHARED_1_USE_PROPGRID_1
864 COND_MONOLITHIC_0_SHARED_1_USE_RIBBON_1
865 COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1
866 COND_MONOLITHIC_0_SHARED_1_USE_STC_1
867 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1
868 COND_MONOLITHIC_0_USE_AUI_1
869 COND_MONOLITHIC_0_USE_GUI_1
870 COND_MONOLITHIC_0_USE_GUI_1_USE_MEDIA_1
871 COND_MONOLITHIC_0_USE_HTML_1
872 COND_MONOLITHIC_0_USE_MEDIA_1
873 COND_MONOLITHIC_0_USE_PROPGRID_1
874 COND_MONOLITHIC_0_USE_QA_1
875 COND_MONOLITHIC_0_USE_RIBBON_1
876 COND_MONOLITHIC_0_USE_RICHTEXT_1
877 COND_MONOLITHIC_0_USE_STC_1
878 COND_MONOLITHIC_0_USE_XRC_1
879 COND_MONOLITHIC_1
880 COND_MONOLITHIC_1_SHARED_0
881 COND_MONOLITHIC_1_SHARED_1
882 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1
883 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1
884 COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1
885 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1
886 COND_PLATFORM_MACOSX_1
887 COND_PLATFORM_MACOSX_1_PLATFORM_MSDOS_0
888 COND_PLATFORM_MACOSX_1_PLATFORM_WIN32_1_SHARED_0
889 COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_CARBON_USE_GUI_1
890 COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_CARBON_USE_GUI_1_WXUNIV_0
891 COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_COCOA_USE_GUI_1
892 COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_COCOA_USE_GUI_1_WXUNIV_0
893 COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_IPHONE_USE_GUI_1
894 COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_IPHONE_USE_GUI_1_WXUNIV_0
895 COND_PLATFORM_MACOSX_1_USE_GUI_1
896 COND_PLATFORM_MACOSX_1_USE_OPENGL_1
897 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1
898 COND_PLATFORM_MACOS_1
899 COND_PLATFORM_MAC_0
900 COND_PLATFORM_MAC_1
901 COND_PLATFORM_MSDOS_0
902 COND_PLATFORM_MSDOS_1
903 COND_PLATFORM_OS2_1
904 COND_PLATFORM_UNIX_0
905 COND_PLATFORM_UNIX_1
906 COND_PLATFORM_UNIX_1_TOOLKIT_MGL
907 COND_PLATFORM_UNIX_1_TOOLKIT_MGL_USE_GUI_1
908 COND_PLATFORM_UNIX_1_USE_GUI_1
909 COND_PLATFORM_UNIX_1_USE_PLUGINS_0
910 COND_PLATFORM_WIN32_0
911 COND_PLATFORM_WIN32_1
912 COND_PLATFORM_WIN32_1_SHARED_0
913 COND_SHARED_0
914 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0
915 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0
916 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0
917 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1
918 COND_SHARED_0_USE_GUI_1_wxUSE_LIBJPEG_builtin
919 COND_SHARED_0_USE_GUI_1_wxUSE_LIBPNG_builtin
920 COND_SHARED_0_USE_GUI_1_wxUSE_LIBTIFF_builtin
921 COND_SHARED_0_USE_STC_1
922 COND_SHARED_0_wxUSE_EXPAT_builtin
923 COND_SHARED_0_wxUSE_REGEX_builtin
924 COND_SHARED_0_wxUSE_ZLIB_builtin
925 COND_SHARED_1
926 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1
927 COND_TOOLKIT_
928 COND_TOOLKIT_COCOA
929 COND_TOOLKIT_COCOA_USE_GUI_1
930 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0
931 COND_TOOLKIT_DFB
932 COND_TOOLKIT_DFB_USE_GUI_1
933 COND_TOOLKIT_GTK
934 COND_TOOLKIT_GTK_TOOLKIT_VERSION_
935 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2
936 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1
937 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0
938 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1
939 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0
940 COND_TOOLKIT_GTK_USE_GUI_1
941 COND_TOOLKIT_MAC
942 COND_TOOLKIT_MGL
943 COND_TOOLKIT_MGL_USE_GUI_1
944 COND_TOOLKIT_MOTIF
945 COND_TOOLKIT_MOTIF_USE_GUI_1
946 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0
947 COND_TOOLKIT_MSW
948 COND_TOOLKIT_MSW_USE_GUI_1
949 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0
950 COND_TOOLKIT_MSW_WXUNIV_0
951 COND_TOOLKIT_OSX_CARBON
952 COND_TOOLKIT_OSX_CARBON_USE_GUI_1
953 COND_TOOLKIT_OSX_COCOA
954 COND_TOOLKIT_OSX_COCOA_USE_GUI_1
955 COND_TOOLKIT_OSX_IPHONE
956 COND_TOOLKIT_OSX_IPHONE_USE_GUI_1
957 COND_TOOLKIT_OSX_IPHONE_USE_GUI_1_WXUNIV_0
958 COND_TOOLKIT_PM
959 COND_TOOLKIT_PM_USE_GUI_1
960 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0
961 COND_TOOLKIT_WINCE
962 COND_TOOLKIT_WINCE_USE_GUI_1
963 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0
964 COND_TOOLKIT_WINCE_WXUNIV_0
965 COND_TOOLKIT_X11
966 COND_TOOLKIT_X11_USE_GUI_1
967 COND_UNICODE_1
968 COND_USE_CAIRO_1
969 COND_USE_EXCEPTIONS_0
970 COND_USE_EXCEPTIONS_1
971 COND_USE_GUI_0
972 COND_USE_GUI_1
973 COND_USE_GUI_1_USE_OPENGL_1
974 COND_USE_GUI_1_WXUNIV_0
975 COND_USE_GUI_1_WXUNIV_1
976 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN
977 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN
978 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN
979 COND_USE_GUI_1_wxUSE_LIBJPEG_builtin
980 COND_USE_GUI_1_wxUSE_LIBPNG_builtin
981 COND_USE_GUI_1_wxUSE_LIBTIFF_builtin
982 COND_USE_OPENGL_1
983 COND_USE_PCH_1
984 COND_USE_PLUGINS_0
985 COND_USE_RTTI_0
986 COND_USE_RTTI_1
987 COND_USE_SOTWOSYMLINKS_1
988 COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1
989 COND_USE_SOVERLINUX_1
990 COND_USE_SOVERSION_0
991 COND_USE_SOVERSION_1_USE_SOVERSOLARIS_1
992 COND_USE_SOVERSOLARIS_1
993 COND_USE_STC_1
994 COND_USE_THREADS_0
995 COND_USE_THREADS_1
996 COND_USE_XRC_1
997 COND_WINDOWS_IMPLIB_1
998 COND_WITH_PLUGIN_SDL_1
999 COND_WXUNIV_0
1000 COND_WXUNIV_1
1001 COND_WXUSE_EXPAT_BUILTIN
1002 COND_WXUSE_LIBJPEG_BUILTIN
1003 COND_WXUSE_LIBPNG_BUILTIN
1004 COND_WXUSE_LIBTIFF_BUILTIN
1005 COND_WXUSE_REGEX_BUILTIN
1006 COND_WXUSE_ZLIB_BUILTIN
1007 COND_wxUSE_EXPAT_builtin
1008 COND_wxUSE_LIBJPEG_builtin
1009 COND_wxUSE_LIBPNG_builtin
1010 COND_wxUSE_LIBTIFF_builtin
1011 COND_wxUSE_REGEX_builtin
1012 COND_wxUSE_ZLIB_builtin
1013 DEREZ
1014 SHARED
1015 WX_LIBRARY_BASENAME_NOGUI
1016 WX_LIBRARY_BASENAME_GUI
1017 USE_GUI
1018 AFMINSTALL
1019 WIN32INSTALL
1020 TOOLKIT
1021 TOOLKIT_DIR
1022 TOOLCHAIN_NAME
1023 TOOLCHAIN_FULLNAME
1024 cross_compiling
1025 WIDGET_SET
1026 WX_RELEASE
1027 WX_VERSION
1028 WX_SUBVERSION
1029 WX_CHARTYPE
1030 WXCONFIG_CPPFLAGS
1031 WXCONFIG_CFLAGS
1032 WXCONFIG_CXXFLAGS
1033 WXCONFIG_LIBS
1034 WXCONFIG_RPATH
1035 WXCONFIG_LDFLAGS
1036 WXCONFIG_LDFLAGS_GUI
1037 WXCONFIG_RESFLAGS
1038 GUIDIST
1039 DISTDIR
1040 SAMPLES_SUBDIRS
1041 LDFLAGS_GL
1042 OPENGL_LIBS
1043 DMALLOC_LIBS
1044 WX_VERSION_TAG
1045 RESCOMP
1046 RESFLAGS
1047 RESPROGRAMOBJ
1048 WX_RESOURCES_MACOSX_ASCII
1049 WX_RESOURCES_MACOSX_DATA
1050 LIBWXMACRES
1051 POSTLINK_COMMAND
1052 MACSETFILE
1053 GCC
1054 DLLTOOL
1055 CPPUNIT_CONFIG
1056 LIBOBJS
1057 LTLIBOBJS'
1058 ac_subst_files=''
1059       ac_precious_vars='build_alias
1060 host_alias
1061 target_alias
1062 CC
1063 CFLAGS
1064 LDFLAGS
1065 LIBS
1066 CPPFLAGS
1067 CPP
1068 CXX
1069 CXXFLAGS
1070 CCC
1071 CXXCPP
1072 PKG_CONFIG
1073 DIRECTFB_CFLAGS
1074 DIRECTFB_LIBS
1075 XMKMF
1076 PANGOX_CFLAGS
1077 PANGOX_LIBS
1078 PANGOFT2_CFLAGS
1079 PANGOFT2_LIBS
1080 PANGOXFT_CFLAGS
1081 PANGOXFT_LIBS
1082 GTKPRINT_CFLAGS
1083 GTKPRINT_LIBS
1084 LIBGNOMEPRINTUI_CFLAGS
1085 LIBGNOMEPRINTUI_LIBS
1086 GNOMEVFS_CFLAGS
1087 GNOMEVFS_LIBS
1088 HILDON_CFLAGS
1089 HILDON_LIBS
1090 HILDON2_CFLAGS
1091 HILDON2_LIBS
1092 CAIRO_CFLAGS
1093 CAIRO_LIBS
1094 GST_CFLAGS
1095 GST_LIBS'
1096 ac_subdirs_all='src/tiff
1097 src/expat'
1098
1099 # Initialize some variables set by options.
1100 ac_init_help=
1101 ac_init_version=false
1102 # The variables have the same names as the options, with
1103 # dashes changed to underlines.
1104 cache_file=/dev/null
1105 exec_prefix=NONE
1106 no_create=
1107 no_recursion=
1108 prefix=NONE
1109 program_prefix=NONE
1110 program_suffix=NONE
1111 program_transform_name=s,x,x,
1112 silent=
1113 site=
1114 srcdir=
1115 verbose=
1116 x_includes=NONE
1117 x_libraries=NONE
1118
1119 # Installation directory options.
1120 # These are left unexpanded so users can "make install exec_prefix=/foo"
1121 # and all the variables that are supposed to be based on exec_prefix
1122 # by default will actually change.
1123 # Use braces instead of parens because sh, perl, etc. also accept them.
1124 # (The list follows the same order as the GNU Coding Standards.)
1125 bindir='${exec_prefix}/bin'
1126 sbindir='${exec_prefix}/sbin'
1127 libexecdir='${exec_prefix}/libexec'
1128 datarootdir='${prefix}/share'
1129 datadir='${datarootdir}'
1130 sysconfdir='${prefix}/etc'
1131 sharedstatedir='${prefix}/com'
1132 localstatedir='${prefix}/var'
1133 includedir='${prefix}/include'
1134 oldincludedir='/usr/include'
1135 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1136 infodir='${datarootdir}/info'
1137 htmldir='${docdir}'
1138 dvidir='${docdir}'
1139 pdfdir='${docdir}'
1140 psdir='${docdir}'
1141 libdir='${exec_prefix}/lib'
1142 localedir='${datarootdir}/locale'
1143 mandir='${datarootdir}/man'
1144
1145 ac_prev=
1146 ac_dashdash=
1147 for ac_option
1148 do
1149   # If the previous option needs an argument, assign it.
1150   if test -n "$ac_prev"; then
1151     eval $ac_prev=\$ac_option
1152     ac_prev=
1153     continue
1154   fi
1155
1156   case $ac_option in
1157   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1158   *)    ac_optarg=yes ;;
1159   esac
1160
1161   # Accept the important Cygnus configure options, so we can diagnose typos.
1162
1163   case $ac_dashdash$ac_option in
1164   --)
1165     ac_dashdash=yes ;;
1166
1167   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1168     ac_prev=bindir ;;
1169   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1170     bindir=$ac_optarg ;;
1171
1172   -build | --build | --buil | --bui | --bu)
1173     ac_prev=build_alias ;;
1174   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1175     build_alias=$ac_optarg ;;
1176
1177   -cache-file | --cache-file | --cache-fil | --cache-fi \
1178   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1179     ac_prev=cache_file ;;
1180   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1181   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1182     cache_file=$ac_optarg ;;
1183
1184   --config-cache | -C)
1185     cache_file=config.cache ;;
1186
1187   -datadir | --datadir | --datadi | --datad)
1188     ac_prev=datadir ;;
1189   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1190     datadir=$ac_optarg ;;
1191
1192   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1193   | --dataroo | --dataro | --datar)
1194     ac_prev=datarootdir ;;
1195   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1196   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1197     datarootdir=$ac_optarg ;;
1198
1199   -disable-* | --disable-*)
1200     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1201     # Reject names that are not valid shell variable names.
1202     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1203       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1204    { (exit 1); exit 1; }; }
1205     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1206     eval enable_$ac_feature=no ;;
1207
1208   -docdir | --docdir | --docdi | --doc | --do)
1209     ac_prev=docdir ;;
1210   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1211     docdir=$ac_optarg ;;
1212
1213   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1214     ac_prev=dvidir ;;
1215   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1216     dvidir=$ac_optarg ;;
1217
1218   -enable-* | --enable-*)
1219     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1220     # Reject names that are not valid shell variable names.
1221     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1222       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1223    { (exit 1); exit 1; }; }
1224     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1225     eval enable_$ac_feature=\$ac_optarg ;;
1226
1227   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1228   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1229   | --exec | --exe | --ex)
1230     ac_prev=exec_prefix ;;
1231   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1232   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1233   | --exec=* | --exe=* | --ex=*)
1234     exec_prefix=$ac_optarg ;;
1235
1236   -gas | --gas | --ga | --g)
1237     # Obsolete; use --with-gas.
1238     with_gas=yes ;;
1239
1240   -help | --help | --hel | --he | -h)
1241     ac_init_help=long ;;
1242   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1243     ac_init_help=recursive ;;
1244   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1245     ac_init_help=short ;;
1246
1247   -host | --host | --hos | --ho)
1248     ac_prev=host_alias ;;
1249   -host=* | --host=* | --hos=* | --ho=*)
1250     host_alias=$ac_optarg ;;
1251
1252   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1253     ac_prev=htmldir ;;
1254   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1255   | --ht=*)
1256     htmldir=$ac_optarg ;;
1257
1258   -includedir | --includedir | --includedi | --included | --include \
1259   | --includ | --inclu | --incl | --inc)
1260     ac_prev=includedir ;;
1261   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1262   | --includ=* | --inclu=* | --incl=* | --inc=*)
1263     includedir=$ac_optarg ;;
1264
1265   -infodir | --infodir | --infodi | --infod | --info | --inf)
1266     ac_prev=infodir ;;
1267   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1268     infodir=$ac_optarg ;;
1269
1270   -libdir | --libdir | --libdi | --libd)
1271     ac_prev=libdir ;;
1272   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1273     libdir=$ac_optarg ;;
1274
1275   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1276   | --libexe | --libex | --libe)
1277     ac_prev=libexecdir ;;
1278   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1279   | --libexe=* | --libex=* | --libe=*)
1280     libexecdir=$ac_optarg ;;
1281
1282   -localedir | --localedir | --localedi | --localed | --locale)
1283     ac_prev=localedir ;;
1284   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1285     localedir=$ac_optarg ;;
1286
1287   -localstatedir | --localstatedir | --localstatedi | --localstated \
1288   | --localstate | --localstat | --localsta | --localst | --locals)
1289     ac_prev=localstatedir ;;
1290   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1291   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1292     localstatedir=$ac_optarg ;;
1293
1294   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1295     ac_prev=mandir ;;
1296   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1297     mandir=$ac_optarg ;;
1298
1299   -nfp | --nfp | --nf)
1300     # Obsolete; use --without-fp.
1301     with_fp=no ;;
1302
1303   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1304   | --no-cr | --no-c | -n)
1305     no_create=yes ;;
1306
1307   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1308   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1309     no_recursion=yes ;;
1310
1311   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1312   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1313   | --oldin | --oldi | --old | --ol | --o)
1314     ac_prev=oldincludedir ;;
1315   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1316   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1317   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1318     oldincludedir=$ac_optarg ;;
1319
1320   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1321     ac_prev=prefix ;;
1322   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1323     prefix=$ac_optarg ;;
1324
1325   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1326   | --program-pre | --program-pr | --program-p)
1327     ac_prev=program_prefix ;;
1328   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1329   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1330     program_prefix=$ac_optarg ;;
1331
1332   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1333   | --program-suf | --program-su | --program-s)
1334     ac_prev=program_suffix ;;
1335   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1336   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1337     program_suffix=$ac_optarg ;;
1338
1339   -program-transform-name | --program-transform-name \
1340   | --program-transform-nam | --program-transform-na \
1341   | --program-transform-n | --program-transform- \
1342   | --program-transform | --program-transfor \
1343   | --program-transfo | --program-transf \
1344   | --program-trans | --program-tran \
1345   | --progr-tra | --program-tr | --program-t)
1346     ac_prev=program_transform_name ;;
1347   -program-transform-name=* | --program-transform-name=* \
1348   | --program-transform-nam=* | --program-transform-na=* \
1349   | --program-transform-n=* | --program-transform-=* \
1350   | --program-transform=* | --program-transfor=* \
1351   | --program-transfo=* | --program-transf=* \
1352   | --program-trans=* | --program-tran=* \
1353   | --progr-tra=* | --program-tr=* | --program-t=*)
1354     program_transform_name=$ac_optarg ;;
1355
1356   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1357     ac_prev=pdfdir ;;
1358   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1359     pdfdir=$ac_optarg ;;
1360
1361   -psdir | --psdir | --psdi | --psd | --ps)
1362     ac_prev=psdir ;;
1363   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1364     psdir=$ac_optarg ;;
1365
1366   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1367   | -silent | --silent | --silen | --sile | --sil)
1368     silent=yes ;;
1369
1370   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1371     ac_prev=sbindir ;;
1372   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1373   | --sbi=* | --sb=*)
1374     sbindir=$ac_optarg ;;
1375
1376   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1377   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1378   | --sharedst | --shareds | --shared | --share | --shar \
1379   | --sha | --sh)
1380     ac_prev=sharedstatedir ;;
1381   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1382   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1383   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1384   | --sha=* | --sh=*)
1385     sharedstatedir=$ac_optarg ;;
1386
1387   -site | --site | --sit)
1388     ac_prev=site ;;
1389   -site=* | --site=* | --sit=*)
1390     site=$ac_optarg ;;
1391
1392   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1393     ac_prev=srcdir ;;
1394   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1395     srcdir=$ac_optarg ;;
1396
1397   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1398   | --syscon | --sysco | --sysc | --sys | --sy)
1399     ac_prev=sysconfdir ;;
1400   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1401   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1402     sysconfdir=$ac_optarg ;;
1403
1404   -target | --target | --targe | --targ | --tar | --ta | --t)
1405     ac_prev=target_alias ;;
1406   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1407     target_alias=$ac_optarg ;;
1408
1409   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1410     verbose=yes ;;
1411
1412   -version | --version | --versio | --versi | --vers | -V)
1413     ac_init_version=: ;;
1414
1415   -with-* | --with-*)
1416     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1417     # Reject names that are not valid shell variable names.
1418     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1419       { echo "$as_me: error: invalid package name: $ac_package" >&2
1420    { (exit 1); exit 1; }; }
1421     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1422     eval with_$ac_package=\$ac_optarg ;;
1423
1424   -without-* | --without-*)
1425     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1426     # Reject names that are not valid shell variable names.
1427     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1428       { echo "$as_me: error: invalid package name: $ac_package" >&2
1429    { (exit 1); exit 1; }; }
1430     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1431     eval with_$ac_package=no ;;
1432
1433   --x)
1434     # Obsolete; use --with-x.
1435     with_x=yes ;;
1436
1437   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1438   | --x-incl | --x-inc | --x-in | --x-i)
1439     ac_prev=x_includes ;;
1440   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1441   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1442     x_includes=$ac_optarg ;;
1443
1444   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1445   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1446     ac_prev=x_libraries ;;
1447   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1448   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1449     x_libraries=$ac_optarg ;;
1450
1451   -*) { echo "$as_me: error: unrecognized option: $ac_option
1452 Try \`$0 --help' for more information." >&2
1453    { (exit 1); exit 1; }; }
1454     ;;
1455
1456   *=*)
1457     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1458     # Reject names that are not valid shell variable names.
1459     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1460       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1461    { (exit 1); exit 1; }; }
1462     eval $ac_envvar=\$ac_optarg
1463     export $ac_envvar ;;
1464
1465   *)
1466     # FIXME: should be removed in autoconf 3.0.
1467     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1468     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1469       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1470     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1471     ;;
1472
1473   esac
1474 done
1475
1476 if test -n "$ac_prev"; then
1477   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1478   { echo "$as_me: error: missing argument to $ac_option" >&2
1479    { (exit 1); exit 1; }; }
1480 fi
1481
1482 # Be sure to have absolute directory names.
1483 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1484                 datadir sysconfdir sharedstatedir localstatedir includedir \
1485                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1486                 libdir localedir mandir
1487 do
1488   eval ac_val=\$$ac_var
1489   case $ac_val in
1490     [\\/$]* | ?:[\\/]* )  continue;;
1491     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1492   esac
1493   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1494    { (exit 1); exit 1; }; }
1495 done
1496
1497 # There might be people who depend on the old broken behavior: `$host'
1498 # used to hold the argument of --host etc.
1499 # FIXME: To remove some day.
1500 build=$build_alias
1501 host=$host_alias
1502 target=$target_alias
1503
1504 # FIXME: To remove some day.
1505 if test "x$host_alias" != x; then
1506   if test "x$build_alias" = x; then
1507     cross_compiling=maybe
1508     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1509     If a cross compiler is detected then cross compile mode will be used." >&2
1510   elif test "x$build_alias" != "x$host_alias"; then
1511     cross_compiling=yes
1512   fi
1513 fi
1514
1515 ac_tool_prefix=
1516 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1517
1518 test "$silent" = yes && exec 6>/dev/null
1519
1520
1521 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1522 ac_ls_di=`ls -di .` &&
1523 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1524   { echo "$as_me: error: Working directory cannot be determined" >&2
1525    { (exit 1); exit 1; }; }
1526 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1527   { echo "$as_me: error: pwd does not report name of working directory" >&2
1528    { (exit 1); exit 1; }; }
1529
1530
1531 # Find the source files, if location was not specified.
1532 if test -z "$srcdir"; then
1533   ac_srcdir_defaulted=yes
1534   # Try the directory containing this script, then the parent directory.
1535   ac_confdir=`$as_dirname -- "$0" ||
1536 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1537          X"$0" : 'X\(//\)[^/]' \| \
1538          X"$0" : 'X\(//\)$' \| \
1539          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1540 echo X"$0" |
1541     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1542             s//\1/
1543             q
1544           }
1545           /^X\(\/\/\)[^/].*/{
1546             s//\1/
1547             q
1548           }
1549           /^X\(\/\/\)$/{
1550             s//\1/
1551             q
1552           }
1553           /^X\(\/\).*/{
1554             s//\1/
1555             q
1556           }
1557           s/.*/./; q'`
1558   srcdir=$ac_confdir
1559   if test ! -r "$srcdir/$ac_unique_file"; then
1560     srcdir=..
1561   fi
1562 else
1563   ac_srcdir_defaulted=no
1564 fi
1565 if test ! -r "$srcdir/$ac_unique_file"; then
1566   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1567   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1568    { (exit 1); exit 1; }; }
1569 fi
1570 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1571 ac_abs_confdir=`(
1572         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1573    { (exit 1); exit 1; }; }
1574         pwd)`
1575 # When building in place, set srcdir=.
1576 if test "$ac_abs_confdir" = "$ac_pwd"; then
1577   srcdir=.
1578 fi
1579 # Remove unnecessary trailing slashes from srcdir.
1580 # Double slashes in file names in object file debugging info
1581 # mess up M-x gdb in Emacs.
1582 case $srcdir in
1583 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1584 esac
1585 for ac_var in $ac_precious_vars; do
1586   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1587   eval ac_env_${ac_var}_value=\$${ac_var}
1588   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1589   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1590 done
1591
1592 #
1593 # Report the --help message.
1594 #
1595 if test "$ac_init_help" = "long"; then
1596   # Omit some internal or obsolete options to make the list less imposing.
1597   # This message is too long to be a string in the A/UX 3.1 sh.
1598   cat <<_ACEOF
1599 \`configure' configures wxWidgets 2.9.3 to adapt to many kinds of systems.
1600
1601 Usage: $0 [OPTION]... [VAR=VALUE]...
1602
1603 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1604 VAR=VALUE.  See below for descriptions of some of the useful variables.
1605
1606 Defaults for the options are specified in brackets.
1607
1608 Configuration:
1609   -h, --help              display this help and exit
1610       --help=short        display options specific to this package
1611       --help=recursive    display the short help of all the included packages
1612   -V, --version           display version information and exit
1613   -q, --quiet, --silent   do not print \`checking...' messages
1614       --cache-file=FILE   cache test results in FILE [disabled]
1615   -C, --config-cache      alias for \`--cache-file=config.cache'
1616   -n, --no-create         do not create output files
1617       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1618
1619 Installation directories:
1620   --prefix=PREFIX         install architecture-independent files in PREFIX
1621                           [$ac_default_prefix]
1622   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1623                           [PREFIX]
1624
1625 By default, \`make install' will install all the files in
1626 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1627 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1628 for instance \`--prefix=\$HOME'.
1629
1630 For better control, use the options below.
1631
1632 Fine tuning of the installation directories:
1633   --bindir=DIR           user executables [EPREFIX/bin]
1634   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1635   --libexecdir=DIR       program executables [EPREFIX/libexec]
1636   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1637   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1638   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1639   --libdir=DIR           object code libraries [EPREFIX/lib]
1640   --includedir=DIR       C header files [PREFIX/include]
1641   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1642   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1643   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1644   --infodir=DIR          info documentation [DATAROOTDIR/info]
1645   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1646   --mandir=DIR           man documentation [DATAROOTDIR/man]
1647   --docdir=DIR           documentation root [DATAROOTDIR/doc/wxwidgets]
1648   --htmldir=DIR          html documentation [DOCDIR]
1649   --dvidir=DIR           dvi documentation [DOCDIR]
1650   --pdfdir=DIR           pdf documentation [DOCDIR]
1651   --psdir=DIR            ps documentation [DOCDIR]
1652 _ACEOF
1653
1654   cat <<\_ACEOF
1655
1656 X features:
1657   --x-includes=DIR    X include files are in DIR
1658   --x-libraries=DIR   X library files are in DIR
1659
1660 System types:
1661   --build=BUILD     configure for building on BUILD [guessed]
1662   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1663 _ACEOF
1664 fi
1665
1666 if test -n "$ac_init_help"; then
1667   case $ac_init_help in
1668      short | recursive ) echo "Configuration of wxWidgets 2.9.3:";;
1669    esac
1670   cat <<\_ACEOF
1671
1672 Optional Features:
1673   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1674   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1675   --disable-gui           don't build GUI parts of the library
1676   --enable-monolithic     build wxWidgets as single library
1677   --enable-plugins        build parts of wxWidgets as loadable components
1678   --enable-official_build official build of wxWidgets (win32 DLL only)
1679   --enable-vendor=VENDOR  vendor name (win32 DLL only)
1680   --disable-all-features  disable all optional features to build minimal library
1681   --enable-universal      use wxWidgets GUI controls instead of native ones
1682   --enable-nanox          use NanoX
1683   --disable-gtk2          use GTK+ 1.2 instead of 2.0
1684   --enable-gpe            use GNOME PDA Environment features if possible
1685   --enable-debug          build library for debugging
1686   --disable-debug_flag    disable all debugging support
1687   --enable-debug_info     generate debug information
1688   --enable-debug_gdb      create code with extra GDB debugging information
1689   --enable-debug_cntxt    obsolete, don't use: use wxDebugContext
1690   --enable-mem_tracing    obsolete, don't use: create code with memory tracing
1691   --disable-shared        create static library instead of shared
1692   --enable-stl            use standard C++ classes for everything
1693   --enable-std_containers use standard C++ container classes
1694   --enable-std_iostreams  use standard C++ stream classes
1695   --enable-std_string     use standard C++ string classes
1696  --enable-std_string_conv_in_wxstring     provide implicit conversion to std::string in wxString
1697   --disable-unicode       compile without Unicode support
1698   --enable-mslu           use MS Layer for Unicode on Windows 9x (Win32 only)
1699   --enable-utf8           use UTF-8 representation for strings (Unix only)
1700   --enable-utf8only       only support UTF-8 locales in UTF-8 build (Unix only)
1701   --enable-extended_rtti  use extended RTTI (XTI)
1702   --enable-omf            use OMF object format
1703   --disable-optimise      compile without optimisations
1704   --enable-profile        create code with profiling information
1705   --enable-no_rtti        create code without RTTI information
1706   --enable-no_exceptions  create code without C++ exceptions handling
1707   --enable-permissive     compile code disregarding strict ANSI
1708   --enable-no_deps        create code without dependency information
1709   --disable-vararg_macros don't use vararg macros, even if they are supported
1710   --enable-universal_binary  create universal binary with Mac PPC and i386 (and x86_64 if using Cocoa) architectures
1711   --enable-macosx_arch=ARCH  build for just the specified architecture
1712   --enable-compat26       enable wxWidgets 2.6 compatibility
1713   --disable-compat28      disable wxWidgets 2.8 compatibility
1714   --disable-rpath         disable use of rpath for uninstalled builds
1715   --enable-objc_uniquifying enable Objective-C class name uniquifying
1716   --disable-visibility    disable use of ELF symbols visibility even if supported
1717   --disable-tls           disable use of compiler TLS support
1718   --enable-intl           use internationalization system
1719   --enable-xlocale        use x-locale support (requires wxLocale)
1720   --enable-config         use wxConfig (and derived) classes
1721   --enable-protocols      use wxProtocol and derived classes
1722   --enable-ftp            use wxFTP (requires wxProtocol
1723   --enable-http           use wxHTTP (requires wxProtocol
1724   --enable-fileproto      use wxFileProto class (requires wxProtocol
1725   --enable-sockets        use socket/network classes
1726   --enable-ipv6           enable IPv6 support in wxSocket
1727   --enable-ole            use OLE classes (Win32 only)
1728   --enable-dataobj        use data object classes
1729   --enable-ipc            use interprocess communication (wxSocket etc.)
1730   --enable-baseevtloop    use event loop in console programs too
1731   --enable-epollloop      use wxEpollDispatcher class (Linux only)
1732   --enable-selectloop     use wxSelectDispatcher class
1733   --enable-any            use wxAny class
1734   --enable-apple_ieee     use the Apple IEEE codec
1735   --enable-arcstream      use wxArchive streams
1736   --enable-base64         use base64 encoding/decoding functions
1737   --enable-backtrace      use wxStackWalker class for getting backtraces
1738   --enable-catch_segvs    catch signals in wxApp::OnFatalException (Unix only)
1739   --enable-cmdline        use wxCmdLineParser class
1740   --enable-datetime       use wxDateTime class
1741   --enable-debugreport    use wxDebugReport class
1742   --enable-dialupman      use dialup network classes
1743   --enable-dynlib         use wxLibrary class for DLL loading
1744   --enable-dynamicloader  use (new) wxDynamicLibrary class
1745   --enable-exceptions     build exception-safe library
1746   --enable-ffile          use wxFFile class
1747   --enable-file           use wxFile class
1748   --enable-filehistory    use wxFileHistory class
1749   --enable-filesystem     use virtual file systems classes
1750   --enable-fontenum       use wxFontEnumerator class
1751   --enable-fontmap        use font encodings conversion classes
1752   --enable-fs_archive     use virtual archive filesystems
1753   --enable-fs_inet        use virtual HTTP/FTP filesystems
1754   --enable-fs_zip         now replaced by fs_archive
1755   --enable-fswatcher      use wxFileSystemWatcher class
1756   --enable-geometry       use geometry class
1757   --enable-log            use logging system
1758   --enable-longlong       use wxLongLong class
1759   --enable-mimetype       use wxMimeTypesManager
1760   --enable-printfposparam use wxVsnprintf() which supports positional parameters
1761   --enable-snglinst       use wxSingleInstanceChecker class
1762   --enable-sound          use wxSound class
1763   --enable-stdpaths       use wxStandardPaths class
1764   --enable-stopwatch      use wxStopWatch class
1765   --enable-streams        use wxStream etc classes
1766   --enable-sysoptions     use wxSystemOptions
1767   --enable-tarstream      use wxTar streams
1768   --enable-textbuf        use wxTextBuffer class
1769   --enable-textfile       use wxTextFile class
1770   --enable-timer          use wxTimer class
1771   --enable-variant        use wxVariant class
1772   --enable-zipstream      use wxZip streams
1773   --enable-url            use wxURL class
1774   --enable-protocol       use wxProtocol class
1775   --enable-protocol-http  HTTP support in wxProtocol
1776   --enable-protocol-ftp   FTP support in wxProtocol
1777   --enable-protocol-file  FILE support in wxProtocol
1778   --enable-threads        use threads
1779   --enable-iniconf        use wxIniConfig (Win32 only)
1780   --enable-regkey         use wxRegKey class (Win32 only)
1781   --enable-docview        use document view architecture
1782   --enable-help           use help subsystem
1783   --enable-mshtmlhelp     use MS HTML Help (win32)
1784   --enable-html           use wxHTML sub-library
1785   --enable-htmlhelp       use wxHTML-based help
1786   --enable-xrc            use XRC resources sub-library
1787   --enable-aui            use AUI docking library
1788   --enable-propgrid       use wxPropertyGrid library
1789   --enable-ribbon         use wxRibbon library
1790   --enable-stc            use wxStyledTextCtrl library
1791   --enable-constraints    use layout-constraints system
1792   --enable-loggui         use standard GUI logger
1793   --enable-logwin         use wxLogWindow
1794   --enable-logdialog      use wxLogDialog
1795   --enable-mdi            use multiple document interface architecture
1796   --enable-mdidoc         use docview architecture with MDI
1797   --enable-mediactrl      use wxMediaCtrl class
1798   --enable-gstreamer8     force GStreamer 0.8 instead of 0.10 with the wxMediaCtrl class on unix
1799   --enable-webkit         use wxWebKitCtrl (Mac)
1800   --enable-richtext       use wxRichTextCtrl
1801   --enable-postscript     use wxPostscriptDC device context (default for gtk+)
1802   --enable-printarch      use printing architecture
1803   --enable-svg            use wxSVGFileDC device context
1804   --enable-graphics_ctx   use graphics context 2D drawing API
1805   --enable-clipboard      use wxClipboard class
1806   --enable-dnd            use Drag'n'Drop classes
1807   --enable-metafile       use win32 metafiles
1808   --disable-controls      disable compilation of all standard controls
1809   --enable-markup         support wxControl::SetLabelMarkup
1810   --enable-accel          use accelerators
1811   --enable-animatectrl    use wxAnimationCtrl class
1812   --enable-artstd         use standard XPM icons in wxArtProvider
1813   --enable-arttango       use Tango icons in wxArtProvider
1814   --enable-bmpbutton      use wxBitmapButton class
1815   --enable-bmpcombobox    use wxBitmapComboBox class
1816   --enable-button         use wxButton class
1817   --enable-calendar       use wxCalendarCtrl class
1818   --enable-caret          use wxCaret class
1819   --enable-checkbox       use wxCheckBox class
1820   --enable-checklst       use wxCheckListBox (listbox with checkboxes) class
1821   --enable-choice         use wxChoice class
1822   --enable-choicebook     use wxChoicebook class
1823   --enable-collpane       use wxCollapsiblePane class
1824   --enable-colourpicker   use wxColourPickerCtrl class
1825   --enable-combobox       use wxComboBox class
1826   --enable-comboctrl      use wxComboCtrl class
1827   --enable-commandlinkbutton      use wxCommmandLinkButton class
1828   --enable-dataviewctrl   use wxDataViewCtrl class
1829   --enable-datepick       use wxDatePickerCtrl class
1830   --enable-detect_sm      use code to detect X11 session manager
1831   --enable-dirpicker      use wxDirPickerCtrl class
1832   --enable-display        use wxDisplay class
1833   --enable-editablebox    use wxEditableListBox class
1834   --enable-filectrl       use wxFileCtrl class
1835   --enable-filepicker     use wxFilePickerCtrl class
1836   --enable-fontpicker     use wxFontPickerCtrl class
1837   --enable-gauge          use wxGauge class
1838   --enable-grid           use wxGrid class
1839   --enable-headerctrl     use wxHeaderCtrl class
1840   --enable-hyperlink      use wxHyperlinkCtrl class
1841   --enable-imaglist       use wxImageList class
1842   --enable-infobar        use wxInfoBar class
1843   --enable-listbook       use wxListbook class
1844   --enable-listbox        use wxListBox class
1845   --enable-listctrl       use wxListCtrl class
1846   --enable-notebook       use wxNotebook class
1847   --enable-notifmsg       use wxNotificationMessage class
1848   --enable-odcombobox     use wxOwnerDrawnComboBox class
1849   --enable-popupwin       use wxPopUpWindow class
1850   --enable-radiobox       use wxRadioBox class
1851   --enable-radiobtn       use wxRadioButton class
1852   --enable-richmsgdlg     use wxRichMessageDialog class
1853   --enable-rearrangectrl  use wxRearrangeList/Ctrl/Dialog
1854   --enable-sash           use wxSashWindow class
1855   --enable-scrollbar      use wxScrollBar class and scrollable windows
1856   --enable-searchctrl     use wxSearchCtrl class
1857   --enable-slider         use wxSlider class
1858   --enable-spinbtn        use wxSpinButton class
1859   --enable-spinctrl       use wxSpinCtrl class
1860   --enable-splitter       use wxSplitterWindow class
1861   --enable-statbmp        use wxStaticBitmap class
1862   --enable-statbox        use wxStaticBox class
1863   --enable-statline       use wxStaticLine class
1864   --enable-stattext       use wxStaticText class
1865   --enable-statusbar      use wxStatusBar class
1866   --enable-taskbaricon    use wxTaskBarIcon class
1867   --enable-tbarnative     use native wxToolBar class
1868   --enable-textctrl       use wxTextCtrl class
1869   --enable-tipwindow      use wxTipWindow class
1870   --enable-togglebtn      use wxToggleButton class
1871   --enable-toolbar        use wxToolBar class
1872   --enable-toolbook       use wxToolbook class
1873   --enable-treebook       use wxTreebook class
1874   --enable-treectrl       use wxTreeCtrl class
1875   --enable-commondlg      use all common dialogs
1876   --enable-aboutdlg       use wxAboutBox
1877   --enable-choicedlg      use wxChoiceDialog
1878   --enable-coldlg         use wxColourDialog
1879   --enable-filedlg        use wxFileDialog
1880   --enable-finddlg        use wxFindReplaceDialog
1881   --enable-fontdlg        use wxFontDialog
1882   --enable-dirdlg         use wxDirDialog
1883   --enable-msgdlg         use wxMessageDialog
1884   --enable-numberdlg      use wxNumberEntryDialog
1885   --enable-splash         use wxSplashScreen
1886   --enable-textdlg        use wxTextDialog
1887   --enable-tipdlg         use startup tips
1888   --enable-progressdlg    use wxProgressDialog
1889   --enable-wizarddlg      use wxWizard
1890   --enable-menus          use wxMenu/wxMenuBar/wxMenuItem classes
1891   --enable-miniframe      use wxMiniFrame class
1892   --enable-tooltips       use wxToolTip class
1893   --enable-splines        use spline drawing code
1894   --enable-mousewheel     use mousewheel
1895   --enable-validators     use wxValidator and derived classes
1896   --enable-busyinfo       use wxBusyInfo
1897   --enable-joystick       use wxJoystick
1898   --enable-metafiles      use wxMetaFile (Win32 only)
1899   --enable-dragimage      use wxDragImage
1900   --enable-accessibility  enable accessibility support
1901   --enable-uiactionsim    use wxUIActionSimulator (experimental)
1902   --enable-dctransform    use wxDC::SetTransformMatrix and related
1903   --enable-palette        use wxPalette class
1904   --enable-image          use wxImage class
1905   --enable-gif            use gif images (GIF file format)
1906   --enable-pcx            use pcx images (PCX file format)
1907   --enable-tga            use tga images (TGA file format)
1908   --enable-iff            use iff images (IFF file format)
1909   --enable-pnm            use pnm images (PNM file format)
1910   --enable-xpm            use xpm images (XPM file format)
1911   --enable-ico_cur        use Windows ICO and CUR formats
1912   --enable-dccache        cache temporary wxDC objects (Win32 only)
1913   --enable-ps-in-msw      use PS printing in wxMSW (Win32 only)
1914   --enable-ownerdrawn     use owner drawn controls (Win32 and OS/2 only)
1915   --enable-uxtheme        enable support for Windows XP themed look (Win32 only)
1916   --enable-wxdib          use wxDIB class (Win32 only)
1917   --enable-autoidman      use automatic ids management
1918   --disable-largefile     omit support for large files
1919   --disable-gtktest       do not try to compile and run a test GTK+ program
1920   --disable-gtktest       Do not try to compile and run a test GTK program
1921   --disable-sdltest       Do not try to compile and run a test SDL program
1922   --enable-omf            use OMF object format (OS/2)
1923   --disable-dependency-tracking
1924                           don't use dependency tracking even if the compiler
1925                           can
1926   --disable-precomp-headers
1927                           don't use precompiled headers even if compiler can
1928
1929 Optional Packages:
1930   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1931   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1932   --without-subdirs       don't generate makefiles for samples/demos/...
1933   --with-flavour=NAME     specify a name to identify this build
1934   --with-themes=all|list  use only the specified comma-separated list of wxUniversal themes
1935   --with-gtk[=VERSION]    use GTK+, VERSION can be 2 (default), 1 or "any"
1936   --with-motif            use Motif/Lesstif
1937   --with-osx_carbon       use Mac OS X (Carbon)
1938   --with-osx_cocoa        use Mac OS X (Cocoa)
1939   --with-osx_iphone       use iPhone OS X port
1940   --with-osx              use Mac OS X (default port, currently Carbon)
1941   --with-carbon           same as --with-osx_carbon
1942   --with-cocoa            same as --with-osx_cocoa
1943   --with-iphone           same as --with-osx_iphone
1944   --with-mac              same as --with-osx
1945   --with-old_cocoa        use old, deprecated, Cocoa port
1946   --with-wine             use Wine
1947   --with-msw              use MS-Windows
1948   --with-pm               use OS/2 Presentation Manager
1949   --with-mgl              use SciTech MGL
1950   --with-directfb         use DirectFB
1951   --with-microwin         use MicroWindows
1952   --with-x11              use X11
1953   --with-libpng           use libpng (PNG image format)
1954   --with-libjpeg          use libjpeg (JPEG file format)
1955   --with-libtiff          use libtiff (TIFF file format)
1956   --with-libxpm           use libxpm (XPM file format)
1957   --with-libiconv         use libiconv (character conversion)
1958   --with-libmspack        use libmspack (CHM help files loading)
1959   --without-gtkprint      don't use GTK printing support
1960   --without-gnomeprint    don't use GNOME printing libraries
1961   --with-gnomevfs         use GNOME VFS for associating MIME types
1962   --with-hildon           use Hildon framework for Nokia 770/800/810
1963   --with-opengl           use OpenGL (or Mesa)
1964   --with-dmalloc          use dmalloc library (http://dmalloc.com/)
1965   --with-sdl              use SDL for audio on Unix
1966   --with-regex            enable support for wxRegEx class
1967   --with-zlib             use zlib for LZW compression
1968   --with-expat            enable XML support using expat parser
1969   --with-macosx-sdk=PATH  use an OS X SDK at PATH
1970   --with-macosx-version-min=VER   build binaries which require at least this OS X version
1971   --with-gtk-prefix=PFX   Prefix where GTK is installed (optional)
1972   --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)
1973   --with-x                use the X Window System
1974   --with-libiconv-prefix=DIR  search for libiconv in DIR/include and DIR/lib
1975   --with-sdl-prefix=PFX   Prefix where SDL is installed (optional)
1976   --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1977   --with-cppunit-prefix=PFX   Prefix where CppUnit is installed (optional)
1978   --with-cppunit-exec-prefix=PFX  Exec prefix where CppUnit is installed (optional)
1979
1980 Some influential environment variables:
1981   CC          C compiler command
1982   CFLAGS      C compiler flags
1983   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1984               nonstandard directory <lib dir>
1985   LIBS        libraries to pass to the linker, e.g. -l<library>
1986   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1987               you have headers in a nonstandard directory <include dir>
1988   CPP         C preprocessor
1989   CXX         C++ compiler command
1990   CXXFLAGS    C++ compiler flags
1991   CXXCPP      C++ preprocessor
1992   PKG_CONFIG  path to pkg-config utility
1993   DIRECTFB_CFLAGS
1994               C compiler flags for DIRECTFB, overriding pkg-config
1995   DIRECTFB_LIBS
1996               linker flags for DIRECTFB, overriding pkg-config
1997   XMKMF       Path to xmkmf, Makefile generator for X Window System
1998   PANGOX_CFLAGS
1999               C compiler flags for PANGOX, overriding pkg-config
2000   PANGOX_LIBS linker flags for PANGOX, overriding pkg-config
2001   PANGOFT2_CFLAGS
2002               C compiler flags for PANGOFT2, overriding pkg-config
2003   PANGOFT2_LIBS
2004               linker flags for PANGOFT2, overriding pkg-config
2005   PANGOXFT_CFLAGS
2006               C compiler flags for PANGOXFT, overriding pkg-config
2007   PANGOXFT_LIBS
2008               linker flags for PANGOXFT, overriding pkg-config
2009   GTKPRINT_CFLAGS
2010               C compiler flags for GTKPRINT, overriding pkg-config
2011   GTKPRINT_LIBS
2012               linker flags for GTKPRINT, overriding pkg-config
2013   LIBGNOMEPRINTUI_CFLAGS
2014               C compiler flags for LIBGNOMEPRINTUI, overriding pkg-config
2015   LIBGNOMEPRINTUI_LIBS
2016               linker flags for LIBGNOMEPRINTUI, overriding pkg-config
2017   GNOMEVFS_CFLAGS
2018               C compiler flags for GNOMEVFS, overriding pkg-config
2019   GNOMEVFS_LIBS
2020               linker flags for GNOMEVFS, overriding pkg-config
2021   HILDON_CFLAGS
2022               C compiler flags for HILDON, overriding pkg-config
2023   HILDON_LIBS linker flags for HILDON, overriding pkg-config
2024   HILDON2_CFLAGS
2025               C compiler flags for HILDON2, overriding pkg-config
2026   HILDON2_LIBS
2027               linker flags for HILDON2, overriding pkg-config
2028   CAIRO_CFLAGS
2029               C compiler flags for CAIRO, overriding pkg-config
2030   CAIRO_LIBS  linker flags for CAIRO, overriding pkg-config
2031   GST_CFLAGS  C compiler flags for GST, overriding pkg-config
2032   GST_LIBS    linker flags for GST, overriding pkg-config
2033
2034 Use these variables to override the choices made by `configure' or to help
2035 it to find libraries and programs with nonstandard names/locations.
2036
2037 Report bugs to <wx-dev@lists.wxwidgets.org>.
2038 _ACEOF
2039 ac_status=$?
2040 fi
2041
2042 if test "$ac_init_help" = "recursive"; then
2043   # If there are subdirs, report their specific --help.
2044   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2045     test -d "$ac_dir" || continue
2046     ac_builddir=.
2047
2048 case "$ac_dir" in
2049 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2050 *)
2051   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
2052   # A ".." for each directory in $ac_dir_suffix.
2053   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
2054   case $ac_top_builddir_sub in
2055   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2056   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2057   esac ;;
2058 esac
2059 ac_abs_top_builddir=$ac_pwd
2060 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2061 # for backward compatibility:
2062 ac_top_builddir=$ac_top_build_prefix
2063
2064 case $srcdir in
2065   .)  # We are building in place.
2066     ac_srcdir=.
2067     ac_top_srcdir=$ac_top_builddir_sub
2068     ac_abs_top_srcdir=$ac_pwd ;;
2069   [\\/]* | ?:[\\/]* )  # Absolute name.
2070     ac_srcdir=$srcdir$ac_dir_suffix;
2071     ac_top_srcdir=$srcdir
2072     ac_abs_top_srcdir=$srcdir ;;
2073   *) # Relative name.
2074     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2075     ac_top_srcdir=$ac_top_build_prefix$srcdir
2076     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2077 esac
2078 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2079
2080     cd "$ac_dir" || { ac_status=$?; continue; }
2081     # Check for guested configure.
2082     if test -f "$ac_srcdir/configure.gnu"; then
2083       echo &&
2084       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2085     elif test -f "$ac_srcdir/configure"; then
2086       echo &&
2087       $SHELL "$ac_srcdir/configure" --help=recursive
2088     else
2089       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2090     fi || ac_status=$?
2091     cd "$ac_pwd" || { ac_status=$?; break; }
2092   done
2093 fi
2094
2095 test -n "$ac_init_help" && exit $ac_status
2096 if $ac_init_version; then
2097   cat <<\_ACEOF
2098 wxWidgets configure 2.9.3
2099 generated by GNU Autoconf 2.61
2100
2101 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
2102 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
2103 This configure script is free software; the Free Software Foundation
2104 gives unlimited permission to copy, distribute and modify it.
2105 _ACEOF
2106   exit
2107 fi
2108 cat >config.log <<_ACEOF
2109 This file contains any messages produced by compilers while
2110 running configure, to aid debugging if configure makes a mistake.
2111
2112 It was created by wxWidgets $as_me 2.9.3, which was
2113 generated by GNU Autoconf 2.61.  Invocation command line was
2114
2115   $ $0 $@
2116
2117 _ACEOF
2118 exec 5>>config.log
2119 {
2120 cat <<_ASUNAME
2121 ## --------- ##
2122 ## Platform. ##
2123 ## --------- ##
2124
2125 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2126 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2127 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2128 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2129 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2130
2131 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2132 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2133
2134 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2135 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2136 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2137 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2138 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2139 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2140 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2141
2142 _ASUNAME
2143
2144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2145 for as_dir in $PATH
2146 do
2147   IFS=$as_save_IFS
2148   test -z "$as_dir" && as_dir=.
2149   echo "PATH: $as_dir"
2150 done
2151 IFS=$as_save_IFS
2152
2153 } >&5
2154
2155 cat >&5 <<_ACEOF
2156
2157
2158 ## ----------- ##
2159 ## Core tests. ##
2160 ## ----------- ##
2161
2162 _ACEOF
2163
2164
2165 # Keep a trace of the command line.
2166 # Strip out --no-create and --no-recursion so they do not pile up.
2167 # Strip out --silent because we don't want to record it for future runs.
2168 # Also quote any args containing shell meta-characters.
2169 # Make two passes to allow for proper duplicate-argument suppression.
2170 ac_configure_args=
2171 ac_configure_args0=
2172 ac_configure_args1=
2173 ac_must_keep_next=false
2174 for ac_pass in 1 2
2175 do
2176   for ac_arg
2177   do
2178     case $ac_arg in
2179     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2180     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2181     | -silent | --silent | --silen | --sile | --sil)
2182       continue ;;
2183     *\'*)
2184       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2185     esac
2186     case $ac_pass in
2187     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
2188     2)
2189       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
2190       if test $ac_must_keep_next = true; then
2191         ac_must_keep_next=false # Got value, back to normal.
2192       else
2193         case $ac_arg in
2194           *=* | --config-cache | -C | -disable-* | --disable-* \
2195           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2196           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2197           | -with-* | --with-* | -without-* | --without-* | --x)
2198             case "$ac_configure_args0 " in
2199               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2200             esac
2201             ;;
2202           -* ) ac_must_keep_next=true ;;
2203         esac
2204       fi
2205       ac_configure_args="$ac_configure_args '$ac_arg'"
2206       ;;
2207     esac
2208   done
2209 done
2210 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
2211 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
2212
2213 # When interrupted or exit'd, cleanup temporary files, and complete
2214 # config.log.  We remove comments because anyway the quotes in there
2215 # would cause problems or look ugly.
2216 # WARNING: Use '\'' to represent an apostrophe within the trap.
2217 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2218 trap 'exit_status=$?
2219   # Save into config.log some information that might help in debugging.
2220   {
2221     echo
2222
2223     cat <<\_ASBOX
2224 ## ---------------- ##
2225 ## Cache variables. ##
2226 ## ---------------- ##
2227 _ASBOX
2228     echo
2229     # The following way of writing the cache mishandles newlines in values,
2230 (
2231   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2232     eval ac_val=\$$ac_var
2233     case $ac_val in #(
2234     *${as_nl}*)
2235       case $ac_var in #(
2236       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
2237 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
2238       esac
2239       case $ac_var in #(
2240       _ | IFS | as_nl) ;; #(
2241       *) $as_unset $ac_var ;;
2242       esac ;;
2243     esac
2244   done
2245   (set) 2>&1 |
2246     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2247     *${as_nl}ac_space=\ *)
2248       sed -n \
2249         "s/'\''/'\''\\\\'\'''\''/g;
2250           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2251       ;; #(
2252     *)
2253       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2254       ;;
2255     esac |
2256     sort
2257 )
2258     echo
2259
2260     cat <<\_ASBOX
2261 ## ----------------- ##
2262 ## Output variables. ##
2263 ## ----------------- ##
2264 _ASBOX
2265     echo
2266     for ac_var in $ac_subst_vars
2267     do
2268       eval ac_val=\$$ac_var
2269       case $ac_val in
2270       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2271       esac
2272       echo "$ac_var='\''$ac_val'\''"
2273     done | sort
2274     echo
2275
2276     if test -n "$ac_subst_files"; then
2277       cat <<\_ASBOX
2278 ## ------------------- ##
2279 ## File substitutions. ##
2280 ## ------------------- ##
2281 _ASBOX
2282       echo
2283       for ac_var in $ac_subst_files
2284       do
2285         eval ac_val=\$$ac_var
2286         case $ac_val in
2287         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2288         esac
2289         echo "$ac_var='\''$ac_val'\''"
2290       done | sort
2291       echo
2292     fi
2293
2294     if test -s confdefs.h; then
2295       cat <<\_ASBOX
2296 ## ----------- ##
2297 ## confdefs.h. ##
2298 ## ----------- ##
2299 _ASBOX
2300       echo
2301       cat confdefs.h
2302       echo
2303     fi
2304     test "$ac_signal" != 0 &&
2305       echo "$as_me: caught signal $ac_signal"
2306     echo "$as_me: exit $exit_status"
2307   } >&5
2308   rm -f core *.core core.conftest.* &&
2309     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2310     exit $exit_status
2311 ' 0
2312 for ac_signal in 1 2 13 15; do
2313   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
2314 done
2315 ac_signal=0
2316
2317 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2318 rm -f -r conftest* confdefs.h
2319
2320 # Predefined preprocessor variables.
2321
2322 cat >>confdefs.h <<_ACEOF
2323 #define PACKAGE_NAME "$PACKAGE_NAME"
2324 _ACEOF
2325
2326
2327 cat >>confdefs.h <<_ACEOF
2328 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2329 _ACEOF
2330
2331
2332 cat >>confdefs.h <<_ACEOF
2333 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2334 _ACEOF
2335
2336
2337 cat >>confdefs.h <<_ACEOF
2338 #define PACKAGE_STRING "$PACKAGE_STRING"
2339 _ACEOF
2340
2341
2342 cat >>confdefs.h <<_ACEOF
2343 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2344 _ACEOF
2345
2346
2347 # Let the site file select an alternate cache file if it wants to.
2348 # Prefer explicitly selected file to automatically selected ones.
2349 if test -n "$CONFIG_SITE"; then
2350   set x "$CONFIG_SITE"
2351 elif test "x$prefix" != xNONE; then
2352   set x "$prefix/share/config.site" "$prefix/etc/config.site"
2353 else
2354   set x "$ac_default_prefix/share/config.site" \
2355         "$ac_default_prefix/etc/config.site"
2356 fi
2357 shift
2358 for ac_site_file
2359 do
2360   if test -r "$ac_site_file"; then
2361     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
2362 echo "$as_me: loading site script $ac_site_file" >&6;}
2363     sed 's/^/| /' "$ac_site_file" >&5
2364     . "$ac_site_file"
2365   fi
2366 done
2367
2368 if test -r "$cache_file"; then
2369   # Some versions of bash will fail to source /dev/null (special
2370   # files actually), so we avoid doing that.
2371   if test -f "$cache_file"; then
2372     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
2373 echo "$as_me: loading cache $cache_file" >&6;}
2374     case $cache_file in
2375       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2376       *)                      . "./$cache_file";;
2377     esac
2378   fi
2379 else
2380   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
2381 echo "$as_me: creating cache $cache_file" >&6;}
2382   >$cache_file
2383 fi
2384
2385 # Check that the precious variables saved in the cache have kept the same
2386 # value.
2387 ac_cache_corrupted=false
2388 for ac_var in $ac_precious_vars; do
2389   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2390   eval ac_new_set=\$ac_env_${ac_var}_set
2391   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2392   eval ac_new_val=\$ac_env_${ac_var}_value
2393   case $ac_old_set,$ac_new_set in
2394     set,)
2395       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2396 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2397       ac_cache_corrupted=: ;;
2398     ,set)
2399       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2400 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2401       ac_cache_corrupted=: ;;
2402     ,);;
2403     *)
2404       if test "x$ac_old_val" != "x$ac_new_val"; then
2405         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2406 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2407         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
2408 echo "$as_me:   former value:  $ac_old_val" >&2;}
2409         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
2410 echo "$as_me:   current value: $ac_new_val" >&2;}
2411         ac_cache_corrupted=:
2412       fi;;
2413   esac
2414   # Pass precious variables to config.status.
2415   if test "$ac_new_set" = set; then
2416     case $ac_new_val in
2417     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2418     *) ac_arg=$ac_var=$ac_new_val ;;
2419     esac
2420     case " $ac_configure_args " in
2421       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2422       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2423     esac
2424   fi
2425 done
2426 if $ac_cache_corrupted; then
2427   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2428 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2429   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2430 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2431    { (exit 1); exit 1; }; }
2432 fi
2433
2434
2435
2436
2437
2438
2439
2440
2441
2442
2443
2444
2445
2446
2447
2448
2449
2450
2451
2452
2453
2454
2455
2456
2457
2458 ac_ext=c
2459 ac_cpp='$CPP $CPPFLAGS'
2460 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2461 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2462 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2463
2464
2465
2466
2467
2468 ac_aux_dir=
2469 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2470   if test -f "$ac_dir/install-sh"; then
2471     ac_aux_dir=$ac_dir
2472     ac_install_sh="$ac_aux_dir/install-sh -c"
2473     break
2474   elif test -f "$ac_dir/install.sh"; then
2475     ac_aux_dir=$ac_dir
2476     ac_install_sh="$ac_aux_dir/install.sh -c"
2477     break
2478   elif test -f "$ac_dir/shtool"; then
2479     ac_aux_dir=$ac_dir
2480     ac_install_sh="$ac_aux_dir/shtool install -c"
2481     break
2482   fi
2483 done
2484 if test -z "$ac_aux_dir"; then
2485   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2486 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2487    { (exit 1); exit 1; }; }
2488 fi
2489
2490 # These three variables are undocumented and unsupported,
2491 # and are intended to be withdrawn in a future Autoconf release.
2492 # They can cause serious problems if a builder's source tree is in a directory
2493 # whose full name contains unusual characters.
2494 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2495 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2496 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2497
2498
2499 # Make sure we can run config.sub.
2500 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2501   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2502 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2503    { (exit 1); exit 1; }; }
2504
2505 { echo "$as_me:$LINENO: checking build system type" >&5
2506 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2507 if test "${ac_cv_build+set}" = set; then
2508   echo $ECHO_N "(cached) $ECHO_C" >&6
2509 else
2510   ac_build_alias=$build_alias
2511 test "x$ac_build_alias" = x &&
2512   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2513 test "x$ac_build_alias" = x &&
2514   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2515 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2516    { (exit 1); exit 1; }; }
2517 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2518   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2519 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2520    { (exit 1); exit 1; }; }
2521
2522 fi
2523 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2524 echo "${ECHO_T}$ac_cv_build" >&6; }
2525 case $ac_cv_build in
2526 *-*-*) ;;
2527 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2528 echo "$as_me: error: invalid value of canonical build" >&2;}
2529    { (exit 1); exit 1; }; };;
2530 esac
2531 build=$ac_cv_build
2532 ac_save_IFS=$IFS; IFS='-'
2533 set x $ac_cv_build
2534 shift
2535 build_cpu=$1
2536 build_vendor=$2
2537 shift; shift
2538 # Remember, the first character of IFS is used to create $*,
2539 # except with old shells:
2540 build_os=$*
2541 IFS=$ac_save_IFS
2542 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2543
2544
2545 { echo "$as_me:$LINENO: checking host system type" >&5
2546 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2547 if test "${ac_cv_host+set}" = set; then
2548   echo $ECHO_N "(cached) $ECHO_C" >&6
2549 else
2550   if test "x$host_alias" = x; then
2551   ac_cv_host=$ac_cv_build
2552 else
2553   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2554     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2555 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2556    { (exit 1); exit 1; }; }
2557 fi
2558
2559 fi
2560 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2561 echo "${ECHO_T}$ac_cv_host" >&6; }
2562 case $ac_cv_host in
2563 *-*-*) ;;
2564 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2565 echo "$as_me: error: invalid value of canonical host" >&2;}
2566    { (exit 1); exit 1; }; };;
2567 esac
2568 host=$ac_cv_host
2569 ac_save_IFS=$IFS; IFS='-'
2570 set x $ac_cv_host
2571 shift
2572 host_cpu=$1
2573 host_vendor=$2
2574 shift; shift
2575 # Remember, the first character of IFS is used to create $*,
2576 # except with old shells:
2577 host_os=$*
2578 IFS=$ac_save_IFS
2579 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2580
2581
2582
2583 if test "$cross_compiling" != "no"; then
2584     HOST_PREFIX="${host_alias}-"
2585     HOST_SUFFIX="-$host_alias"
2586 else
2587     HOST_PREFIX=
2588     HOST_SUFFIX=
2589 fi
2590
2591
2592 wx_major_version_number=2
2593 wx_minor_version_number=9
2594 wx_release_number=3
2595 wx_subrelease_number=0
2596
2597 WX_RELEASE=$wx_major_version_number.$wx_minor_version_number
2598 WX_VERSION=$WX_RELEASE.$wx_release_number
2599 WX_SUBVERSION=$WX_VERSION.$wx_subrelease_number
2600
2601 WX_MSW_VERSION=$wx_major_version_number$wx_minor_version_number$wx_release_number
2602
2603
2604 wx_top_builddir="`pwd`"
2605
2606
2607
2608
2609 USE_UNIX=1
2610 USE_OS2=0
2611 USE_WIN32=0
2612 USE_DOS=0
2613 USE_BEOS=0
2614 USE_MAC=0
2615
2616 USE_AIX=
2617 USE_BSD=                            USE_DARWIN=                         USE_FREEBSD=
2618 USE_GNU=                            USE_HPUX=
2619 USE_LINUX=
2620 USE_NETBSD=
2621 USE_OPENBSD=
2622 USE_OSF=                            USE_SGI=
2623 USE_SOLARIS=                        USE_SUN=                            USE_SUNOS=                          USE_SVR4=                           USE_SYSV=                           USE_VMS=
2624 USE_ULTRIX=
2625 USE_UNIXWARE=
2626
2627 USE_ALPHA=
2628
2629 NEEDS_D_REENTRANT_FOR_R_FUNCS=0
2630
2631 ALL_TOOLKITS="COCOA GTK OSX_CARBON OSX_COCOA OSX_IPHONE MGL MICROWIN MOTIF MSW PM X11 DFB"
2632
2633 DEFAULT_wxUSE_OLD_COCOA=0
2634 DEFAULT_wxUSE_GTK=0
2635 DEFAULT_wxUSE_OSX_CARBON=0
2636 DEFAULT_wxUSE_OSX_COCOA=0
2637 DEFAULT_wxUSE_OSX_IPHONE=0
2638 DEFAULT_wxUSE_MGL=0
2639 DEFAULT_wxUSE_MICROWIN=0
2640 DEFAULT_wxUSE_MOTIF=0
2641 DEFAULT_wxUSE_MSW=0
2642 DEFAULT_wxUSE_PM=0
2643 DEFAULT_wxUSE_X11=0
2644 DEFAULT_wxUSE_DFB=0
2645
2646 DEFAULT_DEFAULT_wxUSE_OLD_COCOA=0
2647 DEFAULT_DEFAULT_wxUSE_GTK=0
2648 DEFAULT_DEFAULT_wxUSE_OSX_CARBON=0
2649 DEFAULT_DEFAULT_wxUSE_OSX_COCOA=0
2650 DEFAULT_DEFAULT_wxUSE_OSX_IPHONE=0
2651 DEFAULT_DEFAULT_wxUSE_MGL=0
2652 DEFAULT_DEFAULT_wxUSE_MICROWIN=0
2653 DEFAULT_DEFAULT_wxUSE_MOTIF=0
2654 DEFAULT_DEFAULT_wxUSE_MSW=0
2655 DEFAULT_DEFAULT_wxUSE_PM=0
2656 DEFAULT_DEFAULT_wxUSE_X11=0
2657 DEFAULT_DEFAULT_wxUSE_DFB=0
2658
2659 PROGRAM_EXT=
2660 SAMPLES_RPATH_FLAG=
2661 DYLIB_RPATH_INSTALL=
2662 DYLIB_RPATH_POSTLINK=
2663
2664 DEFAULT_STD_FLAG=yes
2665
2666 case "${host}" in
2667   *-hp-hpux* )
2668     USE_HPUX=1
2669     DEFAULT_DEFAULT_wxUSE_MOTIF=1
2670     NEEDS_D_REENTRANT_FOR_R_FUNCS=1
2671     cat >>confdefs.h <<\_ACEOF
2672 #define __HPUX__ 1
2673 _ACEOF
2674
2675
2676             CPPFLAGS="-D_HPUX_SOURCE $CPPFLAGS"
2677   ;;
2678   *-*-linux* )
2679     USE_LINUX=1
2680     cat >>confdefs.h <<\_ACEOF
2681 #define __LINUX__ 1
2682 _ACEOF
2683
2684     TMP=`uname -m`
2685     if test "x$TMP" = "xalpha"; then
2686       USE_ALPHA=1
2687       cat >>confdefs.h <<\_ACEOF
2688 #define __ALPHA__ 1
2689 _ACEOF
2690
2691     fi
2692     DEFAULT_DEFAULT_wxUSE_GTK=1
2693   ;;
2694   *-*-gnu* | *-*-k*bsd*-gnu )
2695     USE_GNU=1
2696     TMP=`uname -m`
2697     if test "x$TMP" = "xalpha"; then
2698       USE_ALPHA=1
2699       cat >>confdefs.h <<\_ACEOF
2700 #define __ALPHA__ 1
2701 _ACEOF
2702
2703     fi
2704     DEFAULT_DEFAULT_wxUSE_GTK=1
2705   ;;
2706   *-*-irix5* | *-*-irix6* )
2707     USE_SGI=1
2708     USE_SVR4=1
2709     cat >>confdefs.h <<\_ACEOF
2710 #define __SGI__ 1
2711 _ACEOF
2712
2713     cat >>confdefs.h <<\_ACEOF
2714 #define __SVR4__ 1
2715 _ACEOF
2716
2717     DEFAULT_DEFAULT_wxUSE_MOTIF=1
2718   ;;
2719   *-*-qnx*)
2720     USE_QNX=1
2721     cat >>confdefs.h <<\_ACEOF
2722 #define __QNX__ 1
2723 _ACEOF
2724
2725     DEFAULT_DEFAULT_wxUSE_X11=1
2726   ;;
2727   *-*-solaris2* )
2728     USE_SUN=1
2729     USE_SOLARIS=1
2730     USE_SVR4=1
2731     cat >>confdefs.h <<\_ACEOF
2732 #define __SUN__ 1
2733 _ACEOF
2734
2735     cat >>confdefs.h <<\_ACEOF
2736 #define __SOLARIS__ 1
2737 _ACEOF
2738
2739     cat >>confdefs.h <<\_ACEOF
2740 #define __SVR4__ 1
2741 _ACEOF
2742
2743     DEFAULT_DEFAULT_wxUSE_MOTIF=1
2744     NEEDS_D_REENTRANT_FOR_R_FUNCS=1
2745   ;;
2746   *-*-sunos4* )
2747     USE_SUN=1
2748     USE_SUNOS=1
2749     USE_BSD=1
2750     cat >>confdefs.h <<\_ACEOF
2751 #define __SUN__ 1
2752 _ACEOF
2753
2754     cat >>confdefs.h <<\_ACEOF
2755 #define __SUNOS__ 1
2756 _ACEOF
2757
2758     cat >>confdefs.h <<\_ACEOF
2759 #define __BSD__ 1
2760 _ACEOF
2761
2762     DEFAULT_DEFAULT_wxUSE_MOTIF=1
2763   ;;
2764   *-*-freebsd*)
2765     USE_BSD=1
2766     USE_FREEBSD=1
2767     cat >>confdefs.h <<\_ACEOF
2768 #define __FREEBSD__ 1
2769 _ACEOF
2770
2771     cat >>confdefs.h <<\_ACEOF
2772 #define __BSD__ 1
2773 _ACEOF
2774
2775     DEFAULT_DEFAULT_wxUSE_GTK=1
2776   ;;
2777   *-*-openbsd*|*-*-mirbsd*)
2778     USE_BSD=1
2779     USE_OPENBSD=1
2780     cat >>confdefs.h <<\_ACEOF
2781 #define __OPENBSD__ 1
2782 _ACEOF
2783
2784     cat >>confdefs.h <<\_ACEOF
2785 #define __BSD__ 1
2786 _ACEOF
2787
2788     DEFAULT_DEFAULT_wxUSE_GTK=1
2789   ;;
2790   *-*-netbsd*)
2791     USE_BSD=1
2792     USE_NETBSD=1
2793     cat >>confdefs.h <<\_ACEOF
2794 #define __NETBSD__ 1
2795 _ACEOF
2796
2797     cat >>confdefs.h <<\_ACEOF
2798 #define __BSD__ 1
2799 _ACEOF
2800
2801     DEFAULT_DEFAULT_wxUSE_GTK=1
2802     NEEDS_D_REENTRANT_FOR_R_FUNCS=1
2803
2804             CPPFLAGS="-D_NETBSD_SOURCE -D_LIBC $CPPFLAGS"
2805   ;;
2806   *-*-osf* )
2807     USE_ALPHA=1
2808     USE_OSF=1
2809     cat >>confdefs.h <<\_ACEOF
2810 #define __ALPHA__ 1
2811 _ACEOF
2812
2813     cat >>confdefs.h <<\_ACEOF
2814 #define __OSF__ 1
2815 _ACEOF
2816
2817     DEFAULT_DEFAULT_wxUSE_MOTIF=1
2818     NEEDS_D_REENTRANT_FOR_R_FUNCS=1
2819   ;;
2820   *-*-dgux5* )
2821     USE_ALPHA=1
2822     USE_SVR4=1
2823     cat >>confdefs.h <<\_ACEOF
2824 #define __ALPHA__ 1
2825 _ACEOF
2826
2827     cat >>confdefs.h <<\_ACEOF
2828 #define __SVR4__ 1
2829 _ACEOF
2830
2831     DEFAULT_DEFAULT_wxUSE_MOTIF=1
2832   ;;
2833   *-*-sysv5* )
2834     USE_SYSV=1
2835     USE_SVR4=1
2836     cat >>confdefs.h <<\_ACEOF
2837 #define __SYSV__ 1
2838 _ACEOF
2839
2840     cat >>confdefs.h <<\_ACEOF
2841 #define __SVR4__ 1
2842 _ACEOF
2843
2844     DEFAULT_DEFAULT_wxUSE_MOTIF=1
2845   ;;
2846   *-*-aix* )
2847     USE_AIX=1
2848     USE_SYSV=1
2849     USE_SVR4=1
2850     cat >>confdefs.h <<\_ACEOF
2851 #define __AIX__ 1
2852 _ACEOF
2853
2854     cat >>confdefs.h <<\_ACEOF
2855 #define __SYSV__ 1
2856 _ACEOF
2857
2858     cat >>confdefs.h <<\_ACEOF
2859 #define __SVR4__ 1
2860 _ACEOF
2861
2862     DEFAULT_DEFAULT_wxUSE_MOTIF=1
2863   ;;
2864
2865   *-*-*UnixWare*)
2866     USE_SYSV=1
2867     USE_SVR4=1
2868     USE_UNIXWARE=1
2869     cat >>confdefs.h <<\_ACEOF
2870 #define __UNIXWARE__ 1
2871 _ACEOF
2872
2873   ;;
2874
2875   *-*-cygwin* | *-*-mingw32* )
2876                 PROGRAM_EXT=".exe"
2877     DEFAULT_DEFAULT_wxUSE_MSW=1
2878   ;;
2879
2880   *-pc-msdosdjgpp )
2881     USE_UNIX=0
2882     USE_DOS=1
2883     cat >>confdefs.h <<\_ACEOF
2884 #define __DOS__ 1
2885 _ACEOF
2886
2887     PROGRAM_EXT=".exe"
2888     DEFAULT_DEFAULT_wxUSE_MGL=1
2889   ;;
2890
2891   *-pc-os2_emx | *-pc-os2-emx )
2892     cat >>confdefs.h <<\_ACEOF
2893 #define __EMX__ 1
2894 _ACEOF
2895
2896     USE_OS2=1
2897     cat >>confdefs.h <<\_ACEOF
2898 #define __OS2__ 1
2899 _ACEOF
2900
2901     PROGRAM_EXT=".exe"
2902     DEFAULT_DEFAULT_wxUSE_PM=1
2903         CXX=gcc
2904     LDFLAGS="$LDFLAGS -Zcrtdll"
2905                         ac_executable_extensions=".exe"
2906     export ac_executable_extensions
2907             ac_save_IFS="$IFS"
2908     IFS='\\'
2909     ac_TEMP_PATH=
2910     for ac_dir in $PATH; do
2911       IFS=$ac_save_IFS
2912       if test -z "$ac_TEMP_PATH"; then
2913         ac_TEMP_PATH="$ac_dir"
2914       else
2915         ac_TEMP_PATH="$ac_TEMP_PATH/$ac_dir"
2916       fi
2917     done
2918     export PATH="$ac_TEMP_PATH"
2919     unset ac_TEMP_PATH
2920     DEFAULT_STD_FLAG=no
2921   ;;
2922
2923   arm-apple-darwin*)
2924         USE_BSD=1
2925     USE_DARWIN=1
2926     cat >>confdefs.h <<\_ACEOF
2927 #define __BSD__ 1
2928 _ACEOF
2929
2930     cat >>confdefs.h <<\_ACEOF
2931 #define __DARWIN__ 1
2932 _ACEOF
2933
2934     DEFAULT_DEFAULT_wxUSE_OSX_IPHONE=1
2935   ;;
2936
2937   *-*-darwin* )
2938         USE_BSD=1
2939     USE_DARWIN=1
2940     cat >>confdefs.h <<\_ACEOF
2941 #define __BSD__ 1
2942 _ACEOF
2943
2944     cat >>confdefs.h <<\_ACEOF
2945 #define __DARWIN__ 1
2946 _ACEOF
2947
2948     cat >>confdefs.h <<\_ACEOF
2949 #define TARGET_CARBON 1
2950 _ACEOF
2951
2952     DEFAULT_DEFAULT_wxUSE_OSX_CARBON=1
2953   ;;
2954
2955   *-*-beos* )
2956         USE_BEOS=1
2957     cat >>confdefs.h <<\_ACEOF
2958 #define __BEOS__ 1
2959 _ACEOF
2960
2961   ;;
2962
2963   *)
2964     { echo "$as_me:$LINENO: WARNING: *** System type ${host} is unknown, assuming generic Unix and continuing nevertheless." >&5
2965 echo "$as_me: WARNING: *** System type ${host} is unknown, assuming generic Unix and continuing nevertheless." >&2;}
2966     { echo "$as_me:$LINENO: WARNING: *** Please report the build results to wx-dev@lists.wxwidgets.org." >&5
2967 echo "$as_me: WARNING: *** Please report the build results to wx-dev@lists.wxwidgets.org." >&2;}
2968
2969     DEFAULT_DEFAULT_wxUSE_X11=1
2970     DEFAULT_wxUSE_SHARED=no
2971 esac
2972
2973
2974
2975 DEFAULT_wxUSE_ALL_FEATURES=yes
2976
2977 DEFAULT_wxUSE_STD_CONTAINERS=no
2978 DEFAULT_wxUSE_STD_IOSTREAM=$DEFAULT_STD_FLAG
2979 DEFAULT_wxUSE_STD_STRING=$DEFAULT_STD_FLAG
2980
2981 DEFAULT_wxUSE_DMALLOC=no
2982 DEFAULT_wxUSE_LIBGNOMEVFS=no
2983 DEFAULT_wxUSE_LIBHILDON=no
2984 DEFAULT_wxUSE_LIBHILDON2=no
2985 DEFAULT_wxUSE_LIBMSPACK=no
2986 DEFAULT_wxUSE_LIBSDL=no
2987
2988 DEFAULT_wxUSE_ACCESSIBILITY=no
2989 DEFAULT_wxUSE_IPV6=no
2990 DEFAULT_wxUSE_GSTREAMER8=no
2991
2992 DEFAULT_wxUSE_ARTPROVIDER_TANGO=auto
2993 DEFAULT_wxUSE_UNICODE_UTF8=auto
2994 DEFAULT_wxUSE_OPENGL=auto
2995 DEFAULT_wxUSE_MEDIACTRL=auto
2996 DEFAULT_wxUSE_COMPILER_TLS=auto
2997
2998 DEFAULT_wxUSE_UNICODE_UTF8_LOCALE=no
2999
3000 DEFAULT_wxUSE_UNIVERSAL_BINARY=no
3001 DEFAULT_wxUSE_MAC_ARCH=no
3002
3003 DEFAULT_wxUSE_OFFICIAL_BUILD=no
3004
3005 DEFAULT_wxUSE_GTK2=yes
3006
3007 DEFAULT_wxUSE_OBJC_UNIQUIFYING=no
3008
3009
3010
3011
3012
3013           enablestring=disable
3014           defaultval=
3015           if test -z "$defaultval"; then
3016               if test x"$enablestring" = xdisable; then
3017                   defaultval=yes
3018               else
3019                   defaultval=no
3020               fi
3021           fi
3022
3023           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gui" >&5
3024 echo $ECHO_N "checking for --${enablestring:-enable}-gui... $ECHO_C" >&6; }
3025           # Check whether --enable-gui was given.
3026 if test "${enable_gui+set}" = set; then
3027   enableval=$enable_gui;
3028                           if test "$enableval" = yes; then
3029                             wx_cv_use_gui='wxUSE_GUI=yes'
3030                           else
3031                             wx_cv_use_gui='wxUSE_GUI=no'
3032                           fi
3033
3034 else
3035
3036                           wx_cv_use_gui='wxUSE_GUI=${'DEFAULT_wxUSE_GUI":-$defaultval}"
3037
3038 fi
3039
3040
3041           eval "$wx_cv_use_gui"
3042
3043           if test x"$enablestring" = xdisable; then
3044             if test $wxUSE_GUI = no; then
3045               result=yes
3046             else
3047               result=no
3048             fi
3049           else
3050             result=$wxUSE_GUI
3051           fi
3052
3053           { echo "$as_me:$LINENO: result: $result" >&5
3054 echo "${ECHO_T}$result" >&6; }
3055
3056
3057           enablestring=
3058           defaultval=
3059           if test -z "$defaultval"; then
3060               if test x"$enablestring" = xdisable; then
3061                   defaultval=yes
3062               else
3063                   defaultval=no
3064               fi
3065           fi
3066
3067           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-monolithic" >&5
3068 echo $ECHO_N "checking for --${enablestring:-enable}-monolithic... $ECHO_C" >&6; }
3069           # Check whether --enable-monolithic was given.
3070 if test "${enable_monolithic+set}" = set; then
3071   enableval=$enable_monolithic;
3072                           if test "$enableval" = yes; then
3073                             wx_cv_use_monolithic='wxUSE_MONOLITHIC=yes'
3074                           else
3075                             wx_cv_use_monolithic='wxUSE_MONOLITHIC=no'
3076                           fi
3077
3078 else
3079
3080                           wx_cv_use_monolithic='wxUSE_MONOLITHIC=${'DEFAULT_wxUSE_MONOLITHIC":-$defaultval}"
3081
3082 fi
3083
3084
3085           eval "$wx_cv_use_monolithic"
3086
3087           if test x"$enablestring" = xdisable; then
3088             if test $wxUSE_MONOLITHIC = no; then
3089               result=yes
3090             else
3091               result=no
3092             fi
3093           else
3094             result=$wxUSE_MONOLITHIC
3095           fi
3096
3097           { echo "$as_me:$LINENO: result: $result" >&5
3098 echo "${ECHO_T}$result" >&6; }
3099
3100
3101           enablestring=
3102           defaultval=
3103           if test -z "$defaultval"; then
3104               if test x"$enablestring" = xdisable; then
3105                   defaultval=yes
3106               else
3107                   defaultval=no
3108               fi
3109           fi
3110
3111           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-plugins" >&5
3112 echo $ECHO_N "checking for --${enablestring:-enable}-plugins... $ECHO_C" >&6; }
3113           # Check whether --enable-plugins was given.
3114 if test "${enable_plugins+set}" = set; then
3115   enableval=$enable_plugins;
3116                           if test "$enableval" = yes; then
3117                             wx_cv_use_plugins='wxUSE_PLUGINS=yes'
3118                           else
3119                             wx_cv_use_plugins='wxUSE_PLUGINS=no'
3120                           fi
3121
3122 else
3123
3124                           wx_cv_use_plugins='wxUSE_PLUGINS=${'DEFAULT_wxUSE_PLUGINS":-$defaultval}"
3125
3126 fi
3127
3128
3129           eval "$wx_cv_use_plugins"
3130
3131           if test x"$enablestring" = xdisable; then
3132             if test $wxUSE_PLUGINS = no; then
3133               result=yes
3134             else
3135               result=no
3136             fi
3137           else
3138             result=$wxUSE_PLUGINS
3139           fi
3140
3141           { echo "$as_me:$LINENO: result: $result" >&5
3142 echo "${ECHO_T}$result" >&6; }
3143
3144
3145           withstring=without
3146           defaultval=$wxUSE_ALL_FEATURES
3147           if test -z "$defaultval"; then
3148               if test x"$withstring" = xwithout; then
3149                   defaultval=yes
3150               else
3151                   defaultval=no
3152               fi
3153           fi
3154           { echo "$as_me:$LINENO: checking for --${withstring:-with}-subdirs" >&5
3155 echo $ECHO_N "checking for --${withstring:-with}-subdirs... $ECHO_C" >&6; }
3156
3157 # Check whether --with-subdirs was given.
3158 if test "${with_subdirs+set}" = set; then
3159   withval=$with_subdirs;
3160                         if test "$withval" = yes; then
3161                           wx_cv_use_subdirs='wxWITH_SUBDIRS=yes'
3162                         else
3163                           wx_cv_use_subdirs='wxWITH_SUBDIRS=no'
3164                         fi
3165
3166 else
3167
3168                         wx_cv_use_subdirs='wxWITH_SUBDIRS=${'DEFAULT_wxWITH_SUBDIRS":-$defaultval}"
3169
3170 fi
3171
3172
3173           eval "$wx_cv_use_subdirs"
3174
3175           if test x"$withstring" = xwithout; then
3176             if test $wxWITH_SUBDIRS = yes; then
3177               result=no
3178             else
3179               result=yes
3180             fi
3181           else
3182             result=$wxWITH_SUBDIRS
3183           fi
3184
3185           { echo "$as_me:$LINENO: result: $result" >&5
3186 echo "${ECHO_T}$result" >&6; }
3187
3188
3189 # Check whether --with-flavour was given.
3190 if test "${with_flavour+set}" = set; then
3191   withval=$with_flavour; WX_FLAVOUR="$withval"
3192 fi
3193
3194
3195           enablestring=
3196           defaultval=
3197           if test -z "$defaultval"; then
3198               if test x"$enablestring" = xdisable; then
3199                   defaultval=yes
3200               else
3201                   defaultval=no
3202               fi
3203           fi
3204
3205           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-official_build" >&5
3206 echo $ECHO_N "checking for --${enablestring:-enable}-official_build... $ECHO_C" >&6; }
3207           # Check whether --enable-official_build was given.
3208 if test "${enable_official_build+set}" = set; then
3209   enableval=$enable_official_build;
3210                           if test "$enableval" = yes; then
3211                             wx_cv_use_official_build='wxUSE_OFFICIAL_BUILD=yes'
3212                           else
3213                             wx_cv_use_official_build='wxUSE_OFFICIAL_BUILD=no'
3214                           fi
3215
3216 else
3217
3218                           wx_cv_use_official_build='wxUSE_OFFICIAL_BUILD=${'DEFAULT_wxUSE_OFFICIAL_BUILD":-$defaultval}"
3219
3220 fi
3221
3222
3223           eval "$wx_cv_use_official_build"
3224
3225           if test x"$enablestring" = xdisable; then
3226             if test $wxUSE_OFFICIAL_BUILD = no; then
3227               result=yes
3228             else
3229               result=no
3230             fi
3231           else
3232             result=$wxUSE_OFFICIAL_BUILD
3233           fi
3234
3235           { echo "$as_me:$LINENO: result: $result" >&5
3236 echo "${ECHO_T}$result" >&6; }
3237
3238 # Check whether --enable-vendor was given.
3239 if test "${enable_vendor+set}" = set; then
3240   enableval=$enable_vendor; VENDOR="$enableval"
3241 fi
3242
3243 if test "x$VENDOR" = "x"; then
3244     VENDOR="custom"
3245 fi
3246
3247
3248           enablestring=disable
3249           defaultval=
3250           if test -z "$defaultval"; then
3251               if test x"$enablestring" = xdisable; then
3252                   defaultval=yes
3253               else
3254                   defaultval=no
3255               fi
3256           fi
3257
3258           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-all-features" >&5
3259 echo $ECHO_N "checking for --${enablestring:-enable}-all-features... $ECHO_C" >&6; }
3260           # Check whether --enable-all-features was given.
3261 if test "${enable_all_features+set}" = set; then
3262   enableval=$enable_all_features;
3263                           if test "$enableval" = yes; then
3264                             wx_cv_use_all_features='wxUSE_ALL_FEATURES=yes'
3265                           else
3266                             wx_cv_use_all_features='wxUSE_ALL_FEATURES=no'
3267                           fi
3268
3269 else
3270
3271                           wx_cv_use_all_features='wxUSE_ALL_FEATURES=${'DEFAULT_wxUSE_ALL_FEATURES":-$defaultval}"
3272
3273 fi
3274
3275
3276           eval "$wx_cv_use_all_features"
3277
3278           if test x"$enablestring" = xdisable; then
3279             if test $wxUSE_ALL_FEATURES = no; then
3280               result=yes
3281             else
3282               result=no
3283             fi
3284           else
3285             result=$wxUSE_ALL_FEATURES
3286           fi
3287
3288           { echo "$as_me:$LINENO: result: $result" >&5
3289 echo "${ECHO_T}$result" >&6; }
3290
3291
3292 if test "$wxUSE_ALL_FEATURES" = "no"; then
3293                     DEFAULT_wxUSE_ARTPROVIDER_TANGO=no
3294     DEFAULT_wxUSE_MEDIACTRL=no
3295 fi
3296
3297
3298 if test "$wxUSE_GUI" = "yes"; then
3299
3300
3301           enablestring=
3302           defaultval=
3303           if test -z "$defaultval"; then
3304               if test x"$enablestring" = xdisable; then
3305                   defaultval=yes
3306               else
3307                   defaultval=no
3308               fi
3309           fi
3310
3311           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal" >&5
3312 echo $ECHO_N "checking for --${enablestring:-enable}-universal... $ECHO_C" >&6; }
3313           # Check whether --enable-universal was given.
3314 if test "${enable_universal+set}" = set; then
3315   enableval=$enable_universal;
3316                           if test "$enableval" = yes; then
3317                             wx_cv_use_universal='wxUSE_UNIVERSAL=yes'
3318                           else
3319                             wx_cv_use_universal='wxUSE_UNIVERSAL=no'
3320                           fi
3321
3322 else
3323
3324                           wx_cv_use_universal='wxUSE_UNIVERSAL=${'DEFAULT_wxUSE_UNIVERSAL":-$defaultval}"
3325
3326 fi
3327
3328
3329           eval "$wx_cv_use_universal"
3330
3331           if test x"$enablestring" = xdisable; then
3332             if test $wxUSE_UNIVERSAL = no; then
3333               result=yes
3334             else
3335               result=no
3336             fi
3337           else
3338             result=$wxUSE_UNIVERSAL
3339           fi
3340
3341           { echo "$as_me:$LINENO: result: $result" >&5
3342 echo "${ECHO_T}$result" >&6; }
3343
3344 if test "$wxUSE_UNIVERSAL" = "yes"; then
3345
3346 # Check whether --with-themes was given.
3347 if test "${with_themes+set}" = set; then
3348   withval=$with_themes; wxUNIV_THEMES="$withval"
3349 fi
3350
3351 fi
3352
3353
3354 # Check whether --with-gtk was given.
3355 if test "${with_gtk+set}" = set; then
3356   withval=$with_gtk; wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
3357 fi
3358
3359
3360 # Check whether --with-motif was given.
3361 if test "${with_motif+set}" = set; then
3362   withval=$with_motif; wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
3363 fi
3364
3365
3366 # Check whether --with-osx_carbon was given.
3367 if test "${with_osx_carbon+set}" = set; then
3368   withval=$with_osx_carbon; wxUSE_OSX_CARBON="$withval" CACHE_OSX_CARBON=1 TOOLKIT_GIVEN=1
3369 fi
3370
3371
3372 # Check whether --with-osx_cocoa was given.
3373 if test "${with_osx_cocoa+set}" = set; then
3374   withval=$with_osx_cocoa; wxUSE_OSX_COCOA="$withval" CACHE_OSX_COCOA=1 TOOLKIT_GIVEN=1
3375 fi
3376
3377
3378 # Check whether --with-osx_iphone was given.
3379 if test "${with_osx_iphone+set}" = set; then
3380   withval=$with_osx_iphone; wxUSE_OSX_IPHONE="$withval" CACHE_OSX_IPHONE=1 TOOLKIT_GIVEN=1
3381 fi
3382
3383
3384 # Check whether --with-osx was given.
3385 if test "${with_osx+set}" = set; then
3386   withval=$with_osx; wxUSE_OSX_CARBON="$withval" CACHE_OSX_CARBON=1 TOOLKIT_GIVEN=1
3387 fi
3388
3389
3390 # Check whether --with-carbon was given.
3391 if test "${with_carbon+set}" = set; then
3392   withval=$with_carbon; wxUSE_OSX_CARBON="$withval" CACHE_OSX_CARBON=1 TOOLKIT_GIVEN=1
3393 fi
3394
3395
3396 # Check whether --with-cocoa was given.
3397 if test "${with_cocoa+set}" = set; then
3398   withval=$with_cocoa; wxUSE_OSX_COCOA="$withval" CACHE_OSX_COCOA=1 TOOLKIT_GIVEN=1
3399 fi
3400
3401
3402 # Check whether --with-iphone was given.
3403 if test "${with_iphone+set}" = set; then
3404   withval=$with_iphone; wxUSE_OSX_IPHONE="$withval" CACHE_OSX_IPHONE=1 TOOLKIT_GIVEN=1
3405 fi
3406
3407
3408 # Check whether --with-mac was given.
3409 if test "${with_mac+set}" = set; then
3410   withval=$with_mac; wxUSE_OSX_CARBON="$withval" CACHE_OSX_CARBON=1 TOOLKIT_GIVEN=1
3411 fi
3412
3413
3414 # Check whether --with-old_cocoa was given.
3415 if test "${with_old_cocoa+set}" = set; then
3416   withval=$with_old_cocoa; wxUSE_OLD_COCOA="$withval" CACHE_OLD_COCOA=1 TOOLKIT_GIVEN=1
3417 fi
3418
3419
3420 # Check whether --with-wine was given.
3421 if test "${with_wine+set}" = set; then
3422   withval=$with_wine; wxUSE_WINE="$withval" CACHE_WINE=1
3423 fi
3424
3425
3426 # Check whether --with-msw was given.
3427 if test "${with_msw+set}" = set; then
3428   withval=$with_msw; wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1
3429 fi
3430
3431
3432 # Check whether --with-pm was given.
3433 if test "${with_pm+set}" = set; then
3434   withval=$with_pm; wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
3435 fi
3436
3437
3438 # Check whether --with-mgl was given.
3439 if test "${with_mgl+set}" = set; then
3440   withval=$with_mgl; wxUSE_MGL="$withval" wxUSE_UNIVERSAL="yes" CACHE_MGL=1 TOOLKIT_GIVEN=1
3441 fi
3442
3443
3444 # Check whether --with-directfb was given.
3445 if test "${with_directfb+set}" = set; then
3446   withval=$with_directfb; wxUSE_DFB="$withval" wxUSE_UNIVERSAL="yes" CACHE_DFB=1 TOOLKIT_GIVEN=1
3447 fi
3448
3449
3450 # Check whether --with-microwin was given.
3451 if test "${with_microwin+set}" = set; then
3452   withval=$with_microwin; wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1
3453 fi
3454
3455
3456 # Check whether --with-x11 was given.
3457 if test "${with_x11+set}" = set; then
3458   withval=$with_x11; wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1
3459 fi
3460
3461
3462           enablestring=
3463           defaultval=
3464           if test -z "$defaultval"; then
3465               if test x"$enablestring" = xdisable; then
3466                   defaultval=yes
3467               else
3468                   defaultval=no
3469               fi
3470           fi
3471
3472           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-nanox" >&5
3473 echo $ECHO_N "checking for --${enablestring:-enable}-nanox... $ECHO_C" >&6; }
3474           # Check whether --enable-nanox was given.
3475 if test "${enable_nanox+set}" = set; then
3476   enableval=$enable_nanox;
3477                           if test "$enableval" = yes; then
3478                             wx_cv_use_nanox='wxUSE_NANOX=yes'
3479                           else
3480                             wx_cv_use_nanox='wxUSE_NANOX=no'
3481                           fi
3482
3483 else
3484
3485                           wx_cv_use_nanox='wxUSE_NANOX=${'DEFAULT_wxUSE_NANOX":-$defaultval}"
3486
3487 fi
3488
3489
3490           eval "$wx_cv_use_nanox"
3491
3492           if test x"$enablestring" = xdisable; then
3493             if test $wxUSE_NANOX = no; then
3494               result=yes
3495             else
3496               result=no
3497             fi
3498           else
3499             result=$wxUSE_NANOX
3500           fi
3501
3502           { echo "$as_me:$LINENO: result: $result" >&5
3503 echo "${ECHO_T}$result" >&6; }
3504
3505
3506 # Check whether --enable-gtk2 was given.
3507 if test "${enable_gtk2+set}" = set; then
3508   enableval=$enable_gtk2; wxUSE_GTK2="$enableval"
3509 fi
3510
3511
3512           enablestring=
3513           defaultval=
3514           if test -z "$defaultval"; then
3515               if test x"$enablestring" = xdisable; then
3516                   defaultval=yes
3517               else
3518                   defaultval=no
3519               fi
3520           fi
3521
3522           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gpe" >&5
3523 echo $ECHO_N "checking for --${enablestring:-enable}-gpe... $ECHO_C" >&6; }
3524           # Check whether --enable-gpe was given.
3525 if test "${enable_gpe+set}" = set; then
3526   enableval=$enable_gpe;
3527                           if test "$enableval" = yes; then
3528                             wx_cv_use_gpe='wxUSE_GPE=yes'
3529                           else
3530                             wx_cv_use_gpe='wxUSE_GPE=no'
3531                           fi
3532
3533 else
3534
3535                           wx_cv_use_gpe='wxUSE_GPE=${'DEFAULT_wxUSE_GPE":-$defaultval}"
3536
3537 fi
3538
3539
3540           eval "$wx_cv_use_gpe"
3541
3542           if test x"$enablestring" = xdisable; then
3543             if test $wxUSE_GPE = no; then
3544               result=yes
3545             else
3546               result=no
3547             fi
3548           else
3549             result=$wxUSE_GPE
3550           fi
3551
3552           { echo "$as_me:$LINENO: result: $result" >&5
3553 echo "${ECHO_T}$result" >&6; }
3554
3555
3556
3557 { echo "$as_me:$LINENO: checking for toolkit" >&5
3558 echo $ECHO_N "checking for toolkit... $ECHO_C" >&6; }
3559
3560
3561
3562 # In Wine, we need to default to MSW, not GTK or MOTIF
3563 if test "$wxUSE_WINE" = "yes"; then
3564     DEFAULT_DEFAULT_wxUSE_GTK=0
3565     DEFAULT_DEFAULT_wxUSE_MOTIF=0
3566     DEFAULT_DEFAULT_wxUSE_MSW=1
3567     wxUSE_SHARED=no
3568     CC=${CC:-winegcc}
3569     CXX=${CXX:-wineg++}
3570 fi
3571
3572
3573 if test "$wxUSE_GUI" = "yes"; then
3574
3575     if test "$USE_BEOS" = 1; then
3576         { { echo "$as_me:$LINENO: error: BeOS GUI is not supported yet, use --disable-gui" >&5
3577 echo "$as_me: error: BeOS GUI is not supported yet, use --disable-gui" >&2;}
3578    { (exit 1); exit 1; }; }
3579     fi
3580
3581     if test "$TOOLKIT_GIVEN" = 1; then
3582             for toolkit in $ALL_TOOLKITS; do
3583         var=wxUSE_$toolkit
3584         eval "value=\$${var}"
3585         if test "x$value" = "xno"; then
3586           eval "$var=0"
3587         elif test "x$value" != "x"; then
3588           eval "$var=1"
3589         fi
3590
3591         if test "x$value" != "x" -a "x$value" != "xyes" -a "x$value" != "xno"; then
3592           eval "wx${toolkit}_VERSION=$value"
3593         fi
3594       done
3595     else
3596             for toolkit in $ALL_TOOLKITS; do
3597         var=DEFAULT_DEFAULT_wxUSE_$toolkit
3598         eval "wxUSE_$toolkit=\$${var}"
3599       done
3600     fi
3601
3602             NUM_TOOLKITS=`expr ${wxUSE_OLD_COCOA:-0} + ${wxUSE_GTK:-0} + ${wxUSE_OSX_CARBON:-0} \
3603                   + ${wxUSE_OSX_COCOA:-0} + ${wxUSE_OSX_IPHONE:-0} + ${wxUSE_MGL:-0} + ${wxUSE_DFB:-0} \
3604                   + ${wxUSE_MICROWIN:-0} + ${wxUSE_MOTIF:-0} + ${wxUSE_MSW:-0} + ${wxUSE_X11:-0}`
3605
3606         case "${host}" in
3607       *-pc-os2_emx | *-pc-os2-emx )
3608         NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
3609     esac
3610
3611     case "$NUM_TOOLKITS" in
3612       1)
3613       ;;
3614       0)
3615         { { echo "$as_me:$LINENO: error: Please specify a toolkit -- cannot determine the default for ${host}" >&5
3616 echo "$as_me: error: Please specify a toolkit -- cannot determine the default for ${host}" >&2;}
3617    { (exit 1); exit 1; }; }
3618       ;;
3619       *)
3620         { { echo "$as_me:$LINENO: error: Please specify at most one toolkit" >&5
3621 echo "$as_me: error: Please specify at most one toolkit" >&2;}
3622    { (exit 1); exit 1; }; }
3623     esac
3624
3625     # to be removed when --disable-gtk2 isn't needed
3626     if test "x$wxUSE_GTK2" = "xyes"; then
3627         wxGTK_VERSION=2
3628         wxUSE_GTK1=0
3629     elif test "x$wxUSE_GTK2" = "xno"; then
3630         wxGTK_VERSION=1
3631         wxUSE_GTK1=1
3632     fi
3633
3634     for toolkit in $ALL_TOOLKITS; do
3635         var=wxUSE_$toolkit
3636         eval "value=\$${var}"
3637         if test "$value" = 1; then
3638           toolkit_echo=`echo $toolkit | tr '[A-Z]' '[a-z]'`
3639           { echo "$as_me:$LINENO: result: $toolkit_echo" >&5
3640 echo "${ECHO_T}$toolkit_echo" >&6; }
3641         fi
3642     done
3643 else
3644     if test "x$host_alias" != "x"; then
3645         { echo "$as_me:$LINENO: result: base ($host_alias hosted) only" >&5
3646 echo "${ECHO_T}base ($host_alias hosted) only" >&6; }
3647     else
3648         { echo "$as_me:$LINENO: result: base only" >&5
3649 echo "${ECHO_T}base only" >&6; }
3650     fi
3651 fi
3652
3653 wxUSE_MAC=0
3654 if test "$wxUSE_OSX_CARBON" = 1 \
3655        -o "$wxUSE_OSX_COCOA" = 1 \
3656        -o "$wxUSE_OSX_IPHONE" = 1; then
3657     wxUSE_MAC=1
3658 fi
3659
3660
3661
3662           { echo "$as_me:$LINENO: checking for --with-libpng" >&5
3663 echo $ECHO_N "checking for --with-libpng... $ECHO_C" >&6; }
3664
3665 # Check whether --with-libpng was given.
3666 if test "${with_libpng+set}" = set; then
3667   withval=$with_libpng;
3668                         if test "$withval" = yes; then
3669                           wx_cv_use_libpng='wxUSE_LIBPNG=yes'
3670                         elif test "$withval" = no; then
3671                           wx_cv_use_libpng='wxUSE_LIBPNG=no'
3672                         elif test "$withval" = sys; then
3673                           wx_cv_use_libpng='wxUSE_LIBPNG=sys'
3674                         elif test "$withval" = builtin; then
3675                           wx_cv_use_libpng='wxUSE_LIBPNG=builtin'
3676                         else
3677                           { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
3678 echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
3679    { (exit 1); exit 1; }; }
3680                         fi
3681
3682 else
3683
3684                         wx_cv_use_libpng='wxUSE_LIBPNG=${'DEFAULT_wxUSE_LIBPNG":-$wxUSE_ALL_FEATURES}"
3685
3686 fi
3687
3688
3689           eval "$wx_cv_use_libpng"
3690
3691           if test "$wxUSE_LIBPNG" = yes; then
3692             { echo "$as_me:$LINENO: result: yes" >&5
3693 echo "${ECHO_T}yes" >&6; }
3694           elif test "$wxUSE_LIBPNG" = no; then
3695             { echo "$as_me:$LINENO: result: no" >&5
3696 echo "${ECHO_T}no" >&6; }
3697           elif test "$wxUSE_LIBPNG" = sys; then
3698             { echo "$as_me:$LINENO: result: system version" >&5
3699 echo "${ECHO_T}system version" >&6; }
3700           elif test "$wxUSE_LIBPNG" = builtin; then
3701             { echo "$as_me:$LINENO: result: builtin version" >&5
3702 echo "${ECHO_T}builtin version" >&6; }
3703           else
3704             { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
3705 echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
3706    { (exit 1); exit 1; }; }
3707           fi
3708
3709
3710           { echo "$as_me:$LINENO: checking for --with-libjpeg" >&5
3711 echo $ECHO_N "checking for --with-libjpeg... $ECHO_C" >&6; }
3712
3713 # Check whether --with-libjpeg was given.
3714 if test "${with_libjpeg+set}" = set; then
3715   withval=$with_libjpeg;
3716                         if test "$withval" = yes; then
3717                           wx_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
3718                         elif test "$withval" = no; then
3719                           wx_cv_use_libjpeg='wxUSE_LIBJPEG=no'
3720                         elif test "$withval" = sys; then
3721                           wx_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
3722                         elif test "$withval" = builtin; then
3723                           wx_cv_use_libjpeg='wxUSE_LIBJPEG=builtin'
3724                         else
3725                           { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
3726 echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
3727    { (exit 1); exit 1; }; }
3728                         fi
3729
3730 else
3731
3732                         wx_cv_use_libjpeg='wxUSE_LIBJPEG=${'DEFAULT_wxUSE_LIBJPEG":-$wxUSE_ALL_FEATURES}"
3733
3734 fi
3735
3736
3737           eval "$wx_cv_use_libjpeg"
3738
3739           if test "$wxUSE_LIBJPEG" = yes; then
3740             { echo "$as_me:$LINENO: result: yes" >&5
3741 echo "${ECHO_T}yes" >&6; }
3742           elif test "$wxUSE_LIBJPEG" = no; then
3743             { echo "$as_me:$LINENO: result: no" >&5
3744 echo "${ECHO_T}no" >&6; }
3745           elif test "$wxUSE_LIBJPEG" = sys; then
3746             { echo "$as_me:$LINENO: result: system version" >&5
3747 echo "${ECHO_T}system version" >&6; }
3748           elif test "$wxUSE_LIBJPEG" = builtin; then
3749             { echo "$as_me:$LINENO: result: builtin version" >&5
3750 echo "${ECHO_T}builtin version" >&6; }
3751           else
3752             { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
3753 echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
3754    { (exit 1); exit 1; }; }
3755           fi
3756
3757
3758           { echo "$as_me:$LINENO: checking for --with-libtiff" >&5
3759 echo $ECHO_N "checking for --with-libtiff... $ECHO_C" >&6; }
3760
3761 # Check whether --with-libtiff was given.
3762 if test "${with_libtiff+set}" = set; then
3763   withval=$with_libtiff;
3764                         if test "$withval" = yes; then
3765                           wx_cv_use_libtiff='wxUSE_LIBTIFF=yes'
3766                         elif test "$withval" = no; then
3767                           wx_cv_use_libtiff='wxUSE_LIBTIFF=no'
3768                         elif test "$withval" = sys; then
3769                           wx_cv_use_libtiff='wxUSE_LIBTIFF=sys'
3770                         elif test "$withval" = builtin; then
3771                           wx_cv_use_libtiff='wxUSE_LIBTIFF=builtin'
3772                         else
3773                           { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
3774 echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
3775    { (exit 1); exit 1; }; }
3776                         fi
3777
3778 else
3779
3780                         wx_cv_use_libtiff='wxUSE_LIBTIFF=${'DEFAULT_wxUSE_LIBTIFF":-$wxUSE_ALL_FEATURES}"
3781
3782 fi
3783
3784
3785           eval "$wx_cv_use_libtiff"
3786
3787           if test "$wxUSE_LIBTIFF" = yes; then
3788             { echo "$as_me:$LINENO: result: yes" >&5
3789 echo "${ECHO_T}yes" >&6; }
3790           elif test "$wxUSE_LIBTIFF" = no; then
3791             { echo "$as_me:$LINENO: result: no" >&5
3792 echo "${ECHO_T}no" >&6; }
3793           elif test "$wxUSE_LIBTIFF" = sys; then
3794             { echo "$as_me:$LINENO: result: system version" >&5
3795 echo "${ECHO_T}system version" >&6; }
3796           elif test "$wxUSE_LIBTIFF" = builtin; then
3797             { echo "$as_me:$LINENO: result: builtin version" >&5
3798 echo "${ECHO_T}builtin version" >&6; }
3799           else
3800             { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
3801 echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
3802    { (exit 1); exit 1; }; }
3803           fi
3804
3805
3806           { echo "$as_me:$LINENO: checking for --with-libxpm" >&5
3807 echo $ECHO_N "checking for --with-libxpm... $ECHO_C" >&6; }
3808
3809 # Check whether --with-libxpm was given.
3810 if test "${with_libxpm+set}" = set; then
3811   withval=$with_libxpm;
3812                         if test "$withval" = yes; then
3813                           wx_cv_use_libxpm='wxUSE_LIBXPM=yes'
3814                         elif test "$withval" = no; then
3815                           wx_cv_use_libxpm='wxUSE_LIBXPM=no'
3816                         elif test "$withval" = sys; then
3817                           wx_cv_use_libxpm='wxUSE_LIBXPM=sys'
3818                         elif test "$withval" = builtin; then
3819                           wx_cv_use_libxpm='wxUSE_LIBXPM=builtin'
3820                         else
3821                           { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
3822 echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
3823    { (exit 1); exit 1; }; }
3824                         fi
3825
3826 else
3827
3828                         wx_cv_use_libxpm='wxUSE_LIBXPM=${'DEFAULT_wxUSE_LIBXPM":-$wxUSE_ALL_FEATURES}"
3829
3830 fi
3831
3832
3833           eval "$wx_cv_use_libxpm"
3834
3835           if test "$wxUSE_LIBXPM" = yes; then
3836             { echo "$as_me:$LINENO: result: yes" >&5
3837 echo "${ECHO_T}yes" >&6; }
3838           elif test "$wxUSE_LIBXPM" = no; then
3839             { echo "$as_me:$LINENO: result: no" >&5
3840 echo "${ECHO_T}no" >&6; }
3841           elif test "$wxUSE_LIBXPM" = sys; then
3842             { echo "$as_me:$LINENO: result: system version" >&5
3843 echo "${ECHO_T}system version" >&6; }
3844           elif test "$wxUSE_LIBXPM" = builtin; then
3845             { echo "$as_me:$LINENO: result: builtin version" >&5
3846 echo "${ECHO_T}builtin version" >&6; }
3847           else
3848             { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
3849 echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
3850    { (exit 1); exit 1; }; }
3851           fi
3852
3853
3854           withstring=
3855           defaultval=$wxUSE_ALL_FEATURES
3856           if test -z "$defaultval"; then
3857               if test x"$withstring" = xwithout; then
3858                   defaultval=yes
3859               else
3860                   defaultval=no
3861               fi
3862           fi
3863           { echo "$as_me:$LINENO: checking for --${withstring:-with}-libiconv" >&5
3864 echo $ECHO_N "checking for --${withstring:-with}-libiconv... $ECHO_C" >&6; }
3865
3866 # Check whether --with-libiconv was given.
3867 if test "${with_libiconv+set}" = set; then
3868   withval=$with_libiconv;
3869                         if test "$withval" = yes; then
3870                           wx_cv_use_libiconv='wxUSE_LIBICONV=yes'
3871                         else
3872                           wx_cv_use_libiconv='wxUSE_LIBICONV=no'
3873                         fi
3874
3875 else
3876
3877                         wx_cv_use_libiconv='wxUSE_LIBICONV=${'DEFAULT_wxUSE_LIBICONV":-$defaultval}"
3878
3879 fi
3880
3881
3882           eval "$wx_cv_use_libiconv"
3883
3884           if test x"$withstring" = xwithout; then
3885             if test $wxUSE_LIBICONV = yes; then
3886               result=no
3887             else
3888               result=yes
3889             fi
3890           else
3891             result=$wxUSE_LIBICONV
3892           fi
3893
3894           { echo "$as_me:$LINENO: result: $result" >&5
3895 echo "${ECHO_T}$result" >&6; }
3896
3897
3898           withstring=
3899           defaultval=$wxUSE_ALL_FEATURES
3900           if test -z "$defaultval"; then
3901               if test x"$withstring" = xwithout; then
3902                   defaultval=yes
3903               else
3904                   defaultval=no
3905               fi
3906           fi
3907           { echo "$as_me:$LINENO: checking for --${withstring:-with}-libmspack" >&5
3908 echo $ECHO_N "checking for --${withstring:-with}-libmspack... $ECHO_C" >&6; }
3909
3910 # Check whether --with-libmspack was given.
3911 if test "${with_libmspack+set}" = set; then
3912   withval=$with_libmspack;
3913                         if test "$withval" = yes; then
3914                           wx_cv_use_libmspack='wxUSE_LIBMSPACK=yes'
3915                         else
3916                           wx_cv_use_libmspack='wxUSE_LIBMSPACK=no'
3917                         fi
3918
3919 else
3920
3921                         wx_cv_use_libmspack='wxUSE_LIBMSPACK=${'DEFAULT_wxUSE_LIBMSPACK":-$defaultval}"
3922
3923 fi
3924
3925
3926           eval "$wx_cv_use_libmspack"
3927
3928           if test x"$withstring" = xwithout; then
3929             if test $wxUSE_LIBMSPACK = yes; then
3930               result=no
3931             else
3932               result=yes
3933             fi
3934           else
3935             result=$wxUSE_LIBMSPACK
3936           fi
3937
3938           { echo "$as_me:$LINENO: result: $result" >&5
3939 echo "${ECHO_T}$result" >&6; }
3940
3941
3942           withstring=without
3943           defaultval=$wxUSE_ALL_FEATURES
3944           if test -z "$defaultval"; then
3945               if test x"$withstring" = xwithout; then
3946                   defaultval=yes
3947               else
3948                   defaultval=no
3949               fi
3950           fi
3951           { echo "$as_me:$LINENO: checking for --${withstring:-with}-gtkprint" >&5
3952 echo $ECHO_N "checking for --${withstring:-with}-gtkprint... $ECHO_C" >&6; }
3953
3954 # Check whether --with-gtkprint was given.
3955 if test "${with_gtkprint+set}" = set; then
3956   withval=$with_gtkprint;
3957                         if test "$withval" = yes; then
3958                           wx_cv_use_gtkprint='wxUSE_GTKPRINT=yes'
3959                         else
3960                           wx_cv_use_gtkprint='wxUSE_GTKPRINT=no'
3961                         fi
3962
3963 else
3964
3965                         wx_cv_use_gtkprint='wxUSE_GTKPRINT=${'DEFAULT_wxUSE_GTKPRINT":-$defaultval}"
3966
3967 fi
3968
3969
3970           eval "$wx_cv_use_gtkprint"
3971
3972           if test x"$withstring" = xwithout; then
3973             if test $wxUSE_GTKPRINT = yes; then
3974               result=no
3975             else
3976               result=yes
3977             fi
3978           else
3979             result=$wxUSE_GTKPRINT
3980           fi
3981
3982           { echo "$as_me:$LINENO: result: $result" >&5
3983 echo "${ECHO_T}$result" >&6; }
3984
3985
3986           withstring=without
3987           defaultval=$wxUSE_ALL_FEATURES
3988           if test -z "$defaultval"; then
3989               if test x"$withstring" = xwithout; then
3990                   defaultval=yes
3991               else
3992                   defaultval=no
3993               fi
3994           fi
3995           { echo "$as_me:$LINENO: checking for --${withstring:-with}-gnomeprint" >&5
3996 echo $ECHO_N "checking for --${withstring:-with}-gnomeprint... $ECHO_C" >&6; }
3997
3998 # Check whether --with-gnomeprint was given.
3999 if test "${with_gnomeprint+set}" = set; then
4000   withval=$with_gnomeprint;
4001                         if test "$withval" = yes; then
4002                           wx_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=yes'
4003                         else
4004                           wx_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=no'
4005                         fi
4006
4007 else
4008
4009                         wx_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=${'DEFAULT_wxUSE_LIBGNOMEPRINT":-$defaultval}"
4010
4011 fi
4012
4013
4014           eval "$wx_cv_use_gnomeprint"
4015
4016           if test x"$withstring" = xwithout; then
4017             if test $wxUSE_LIBGNOMEPRINT = yes; then
4018               result=no
4019             else
4020               result=yes
4021             fi
4022           else
4023             result=$wxUSE_LIBGNOMEPRINT
4024           fi
4025
4026           { echo "$as_me:$LINENO: result: $result" >&5
4027 echo "${ECHO_T}$result" >&6; }
4028
4029
4030           withstring=
4031           defaultval=$wxUSE_ALL_FEATURES
4032           if test -z "$defaultval"; then
4033               if test x"$withstring" = xwithout; then
4034                   defaultval=yes
4035               else
4036                   defaultval=no
4037               fi
4038           fi
4039           { echo "$as_me:$LINENO: checking for --${withstring:-with}-gnomevfs" >&5
4040 echo $ECHO_N "checking for --${withstring:-with}-gnomevfs... $ECHO_C" >&6; }
4041
4042 # Check whether --with-gnomevfs was given.
4043 if test "${with_gnomevfs+set}" = set; then
4044   withval=$with_gnomevfs;
4045                         if test "$withval" = yes; then
4046                           wx_cv_use_gnomevfs='wxUSE_LIBGNOMEVFS=yes'
4047                         else
4048                           wx_cv_use_gnomevfs='wxUSE_LIBGNOMEVFS=no'
4049                         fi
4050
4051 else
4052
4053                         wx_cv_use_gnomevfs='wxUSE_LIBGNOMEVFS=${'DEFAULT_wxUSE_LIBGNOMEVFS":-$defaultval}"
4054
4055 fi
4056
4057
4058           eval "$wx_cv_use_gnomevfs"
4059
4060           if test x"$withstring" = xwithout; then
4061             if test $wxUSE_LIBGNOMEVFS = yes; then
4062               result=no
4063             else
4064               result=yes
4065             fi
4066           else
4067             result=$wxUSE_LIBGNOMEVFS
4068           fi
4069
4070           { echo "$as_me:$LINENO: result: $result" >&5
4071 echo "${ECHO_T}$result" >&6; }
4072
4073
4074           withstring=
4075           defaultval=$wxUSE_ALL_FEATURES
4076           if test -z "$defaultval"; then
4077               if test x"$withstring" = xwithout; then
4078                   defaultval=yes
4079               else
4080                   defaultval=no
4081               fi
4082           fi
4083           { echo "$as_me:$LINENO: checking for --${withstring:-with}-hildon" >&5
4084 echo $ECHO_N "checking for --${withstring:-with}-hildon... $ECHO_C" >&6; }
4085
4086 # Check whether --with-hildon was given.
4087 if test "${with_hildon+set}" = set; then
4088   withval=$with_hildon;
4089                         if test "$withval" = yes; then
4090                           wx_cv_use_hildon='wxUSE_LIBHILDON=yes'
4091                         else
4092                           wx_cv_use_hildon='wxUSE_LIBHILDON=no'
4093                         fi
4094
4095 else
4096
4097                         wx_cv_use_hildon='wxUSE_LIBHILDON=${'DEFAULT_wxUSE_LIBHILDON":-$defaultval}"
4098
4099 fi
4100
4101
4102           eval "$wx_cv_use_hildon"
4103
4104           if test x"$withstring" = xwithout; then
4105             if test $wxUSE_LIBHILDON = yes; then
4106               result=no
4107             else
4108               result=yes
4109             fi
4110           else
4111             result=$wxUSE_LIBHILDON
4112           fi
4113
4114           { echo "$as_me:$LINENO: result: $result" >&5
4115 echo "${ECHO_T}$result" >&6; }
4116
4117
4118           withstring=
4119           defaultval=$wxUSE_ALL_FEATURES
4120           if test -z "$defaultval"; then
4121               if test x"$withstring" = xwithout; then
4122                   defaultval=yes
4123               else
4124                   defaultval=no
4125               fi
4126           fi
4127           { echo "$as_me:$LINENO: checking for --${withstring:-with}-opengl" >&5
4128 echo $ECHO_N "checking for --${withstring:-with}-opengl... $ECHO_C" >&6; }
4129
4130 # Check whether --with-opengl was given.
4131 if test "${with_opengl+set}" = set; then
4132   withval=$with_opengl;
4133                         if test "$withval" = yes; then
4134                           wx_cv_use_opengl='wxUSE_OPENGL=yes'
4135                         else
4136                           wx_cv_use_opengl='wxUSE_OPENGL=no'
4137                         fi
4138
4139 else
4140
4141                         wx_cv_use_opengl='wxUSE_OPENGL=${'DEFAULT_wxUSE_OPENGL":-$defaultval}"
4142
4143 fi
4144
4145
4146           eval "$wx_cv_use_opengl"
4147
4148           if test x"$withstring" = xwithout; then
4149             if test $wxUSE_OPENGL = yes; then
4150               result=no
4151             else
4152               result=yes
4153             fi
4154           else
4155             result=$wxUSE_OPENGL
4156           fi
4157
4158           { echo "$as_me:$LINENO: result: $result" >&5
4159 echo "${ECHO_T}$result" >&6; }
4160
4161
4162 fi
4163
4164
4165           withstring=
4166           defaultval=$wxUSE_ALL_FEATURES
4167           if test -z "$defaultval"; then
4168               if test x"$withstring" = xwithout; then
4169                   defaultval=yes
4170               else
4171                   defaultval=no
4172               fi
4173           fi
4174           { echo "$as_me:$LINENO: checking for --${withstring:-with}-dmalloc" >&5
4175 echo $ECHO_N "checking for --${withstring:-with}-dmalloc... $ECHO_C" >&6; }
4176
4177 # Check whether --with-dmalloc was given.
4178 if test "${with_dmalloc+set}" = set; then
4179   withval=$with_dmalloc;
4180                         if test "$withval" = yes; then
4181                           wx_cv_use_dmalloc='wxUSE_DMALLOC=yes'
4182                         else
4183                           wx_cv_use_dmalloc='wxUSE_DMALLOC=no'
4184                         fi
4185
4186 else
4187
4188                         wx_cv_use_dmalloc='wxUSE_DMALLOC=${'DEFAULT_wxUSE_DMALLOC":-$defaultval}"
4189
4190 fi
4191
4192
4193           eval "$wx_cv_use_dmalloc"
4194
4195           if test x"$withstring" = xwithout; then
4196             if test $wxUSE_DMALLOC = yes; then
4197               result=no
4198             else
4199               result=yes
4200             fi
4201           else
4202             result=$wxUSE_DMALLOC
4203           fi
4204
4205           { echo "$as_me:$LINENO: result: $result" >&5
4206 echo "${ECHO_T}$result" >&6; }
4207
4208
4209           withstring=
4210           defaultval=$wxUSE_ALL_FEATURES
4211           if test -z "$defaultval"; then
4212               if test x"$withstring" = xwithout; then
4213                   defaultval=yes
4214               else
4215                   defaultval=no
4216               fi
4217           fi
4218           { echo "$as_me:$LINENO: checking for --${withstring:-with}-sdl" >&5
4219 echo $ECHO_N "checking for --${withstring:-with}-sdl... $ECHO_C" >&6; }
4220
4221 # Check whether --with-sdl was given.
4222 if test "${with_sdl+set}" = set; then
4223   withval=$with_sdl;
4224                         if test "$withval" = yes; then
4225                           wx_cv_use_sdl='wxUSE_LIBSDL=yes'
4226                         else
4227                           wx_cv_use_sdl='wxUSE_LIBSDL=no'
4228                         fi
4229
4230 else
4231
4232                         wx_cv_use_sdl='wxUSE_LIBSDL=${'DEFAULT_wxUSE_LIBSDL":-$defaultval}"
4233
4234 fi
4235
4236
4237           eval "$wx_cv_use_sdl"
4238
4239           if test x"$withstring" = xwithout; then
4240             if test $wxUSE_LIBSDL = yes; then
4241               result=no
4242             else
4243               result=yes
4244             fi
4245           else
4246             result=$wxUSE_LIBSDL
4247           fi
4248
4249           { echo "$as_me:$LINENO: result: $result" >&5
4250 echo "${ECHO_T}$result" >&6; }
4251
4252
4253           { echo "$as_me:$LINENO: checking for --with-regex" >&5
4254 echo $ECHO_N "checking for --with-regex... $ECHO_C" >&6; }
4255
4256 # Check whether --with-regex was given.
4257 if test "${with_regex+set}" = set; then
4258   withval=$with_regex;
4259                         if test "$withval" = yes; then
4260                           wx_cv_use_regex='wxUSE_REGEX=yes'
4261                         elif test "$withval" = no; then
4262                           wx_cv_use_regex='wxUSE_REGEX=no'
4263                         elif test "$withval" = sys; then
4264                           wx_cv_use_regex='wxUSE_REGEX=sys'
4265                         elif test "$withval" = builtin; then
4266                           wx_cv_use_regex='wxUSE_REGEX=builtin'
4267                         else
4268                           { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
4269 echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
4270    { (exit 1); exit 1; }; }
4271                         fi
4272
4273 else
4274
4275                         wx_cv_use_regex='wxUSE_REGEX=${'DEFAULT_wxUSE_REGEX":-$wxUSE_ALL_FEATURES}"
4276
4277 fi
4278
4279
4280           eval "$wx_cv_use_regex"
4281
4282           if test "$wxUSE_REGEX" = yes; then
4283             { echo "$as_me:$LINENO: result: yes" >&5
4284 echo "${ECHO_T}yes" >&6; }
4285           elif test "$wxUSE_REGEX" = no; then
4286             { echo "$as_me:$LINENO: result: no" >&5
4287 echo "${ECHO_T}no" >&6; }
4288           elif test "$wxUSE_REGEX" = sys; then
4289             { echo "$as_me:$LINENO: result: system version" >&5
4290 echo "${ECHO_T}system version" >&6; }
4291           elif test "$wxUSE_REGEX" = builtin; then
4292             { echo "$as_me:$LINENO: result: builtin version" >&5
4293 echo "${ECHO_T}builtin version" >&6; }
4294           else
4295             { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
4296 echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
4297    { (exit 1); exit 1; }; }
4298           fi
4299
4300
4301           { echo "$as_me:$LINENO: checking for --with-zlib" >&5
4302 echo $ECHO_N "checking for --with-zlib... $ECHO_C" >&6; }
4303
4304 # Check whether --with-zlib was given.
4305 if test "${with_zlib+set}" = set; then
4306   withval=$with_zlib;
4307                         if test "$withval" = yes; then
4308                           wx_cv_use_zlib='wxUSE_ZLIB=yes'
4309                         elif test "$withval" = no; then
4310                           wx_cv_use_zlib='wxUSE_ZLIB=no'
4311                         elif test "$withval" = sys; then
4312                           wx_cv_use_zlib='wxUSE_ZLIB=sys'
4313                         elif test "$withval" = builtin; then
4314                           wx_cv_use_zlib='wxUSE_ZLIB=builtin'
4315                         else
4316                           { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
4317 echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
4318    { (exit 1); exit 1; }; }
4319                         fi
4320
4321 else
4322
4323                         wx_cv_use_zlib='wxUSE_ZLIB=${'DEFAULT_wxUSE_ZLIB":-$wxUSE_ALL_FEATURES}"
4324
4325 fi
4326
4327
4328           eval "$wx_cv_use_zlib"
4329
4330           if test "$wxUSE_ZLIB" = yes; then
4331             { echo "$as_me:$LINENO: result: yes" >&5
4332 echo "${ECHO_T}yes" >&6; }
4333           elif test "$wxUSE_ZLIB" = no; then
4334             { echo "$as_me:$LINENO: result: no" >&5
4335 echo "${ECHO_T}no" >&6; }
4336           elif test "$wxUSE_ZLIB" = sys; then
4337             { echo "$as_me:$LINENO: result: system version" >&5
4338 echo "${ECHO_T}system version" >&6; }
4339           elif test "$wxUSE_ZLIB" = builtin; then
4340             { echo "$as_me:$LINENO: result: builtin version" >&5
4341 echo "${ECHO_T}builtin version" >&6; }
4342           else
4343             { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
4344 echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
4345    { (exit 1); exit 1; }; }
4346           fi
4347
4348
4349           { echo "$as_me:$LINENO: checking for --with-expat" >&5
4350 echo $ECHO_N "checking for --with-expat... $ECHO_C" >&6; }
4351
4352 # Check whether --with-expat was given.
4353 if test "${with_expat+set}" = set; then
4354   withval=$with_expat;
4355                         if test "$withval" = yes; then
4356                           wx_cv_use_expat='wxUSE_EXPAT=yes'
4357                         elif test "$withval" = no; then
4358                           wx_cv_use_expat='wxUSE_EXPAT=no'
4359                         elif test "$withval" = sys; then
4360                           wx_cv_use_expat='wxUSE_EXPAT=sys'
4361                         elif test "$withval" = builtin; then
4362                           wx_cv_use_expat='wxUSE_EXPAT=builtin'
4363                         else
4364                           { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
4365 echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
4366    { (exit 1); exit 1; }; }
4367                         fi
4368
4369 else
4370
4371                         wx_cv_use_expat='wxUSE_EXPAT=${'DEFAULT_wxUSE_EXPAT":-$wxUSE_ALL_FEATURES}"
4372
4373 fi
4374
4375
4376           eval "$wx_cv_use_expat"
4377
4378           if test "$wxUSE_EXPAT" = yes; then
4379             { echo "$as_me:$LINENO: result: yes" >&5
4380 echo "${ECHO_T}yes" >&6; }
4381           elif test "$wxUSE_EXPAT" = no; then
4382             { echo "$as_me:$LINENO: result: no" >&5
4383 echo "${ECHO_T}no" >&6; }
4384           elif test "$wxUSE_EXPAT" = sys; then
4385             { echo "$as_me:$LINENO: result: system version" >&5
4386 echo "${ECHO_T}system version" >&6; }
4387           elif test "$wxUSE_EXPAT" = builtin; then
4388             { echo "$as_me:$LINENO: result: builtin version" >&5
4389 echo "${ECHO_T}builtin version" >&6; }
4390           else
4391             { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
4392 echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
4393    { (exit 1); exit 1; }; }
4394           fi
4395
4396
4397 { echo "$as_me:$LINENO: checking for --with-macosx-sdk" >&5
4398 echo $ECHO_N "checking for --with-macosx-sdk... $ECHO_C" >&6; }
4399
4400 # Check whether --with-macosx-sdk was given.
4401 if test "${with_macosx_sdk+set}" = set; then
4402   withval=$with_macosx_sdk;
4403         wxUSE_MACOSX_SDK=$withval
4404         wx_cv_use_macosx_sdk="wxUSE_MACOSX_SDK=$withval"
4405
4406 fi
4407
4408 { echo "$as_me:$LINENO: result: $wxUSE_MACOSX_SDK" >&5
4409 echo "${ECHO_T}$wxUSE_MACOSX_SDK" >&6; }
4410
4411 { echo "$as_me:$LINENO: checking for --with-macosx-version-min" >&5
4412 echo $ECHO_N "checking for --with-macosx-version-min... $ECHO_C" >&6; }
4413
4414 # Check whether --with-macosx-version-min was given.
4415 if test "${with_macosx_version_min+set}" = set; then
4416   withval=$with_macosx_version_min;
4417         wxUSE_MACOSX_VERSION_MIN=$withval
4418         wx_cv_use_macosx_version_min="wxUSE_MACOSX_VERSION_MIN=$withval"
4419
4420 fi
4421
4422 { echo "$as_me:$LINENO: result: $wxUSE_MACOSX_VERSION_MIN" >&5
4423 echo "${ECHO_T}$wxUSE_MACOSX_VERSION_MIN" >&6; }
4424
4425
4426 { echo "$as_me:$LINENO: checking for --enable-debug" >&5
4427 echo $ECHO_N "checking for --enable-debug... $ECHO_C" >&6; }
4428 # Check whether --enable-debug was given.
4429 if test "${enable_debug+set}" = set; then
4430   enableval=$enable_debug;
4431         if test "$enableval" = yes; then
4432             wxUSE_DEBUG=yes
4433         elif test "$enableval" = no; then
4434             wxUSE_DEBUG=no
4435         elif test "$enableval" = max; then
4436             wxUSE_DEBUG=yes
4437             WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -DwxDEBUG_LEVEL=2"
4438         else
4439             { { echo "$as_me:$LINENO: error: Invalid --enable-debug value, must be yes, no or max" >&5
4440 echo "$as_me: error: Invalid --enable-debug value, must be yes, no or max" >&2;}
4441    { (exit 1); exit 1; }; }
4442         fi
4443
4444 else
4445   wxUSE_DEBUG=default
4446
4447 fi
4448
4449
4450 case "$wxUSE_DEBUG" in
4451     yes)
4452                         DEFAULT_wxUSE_DEBUG_FLAG=yes
4453         DEFAULT_wxUSE_DEBUG_INFO=yes
4454
4455                         DEFAULT_wxUSE_OPTIMISE=no
4456         ;;
4457
4458     no)
4459                         DEFAULT_wxUSE_DEBUG_FLAG=no
4460         DEFAULT_wxUSE_DEBUG_INFO=no
4461         ;;
4462
4463     default)
4464                         DEFAULT_wxUSE_DEBUG_FLAG=yes
4465         DEFAULT_wxUSE_DEBUG_INFO=no
4466         ;;
4467 esac
4468
4469
4470           enablestring=disable
4471           defaultval=
4472           if test -z "$defaultval"; then
4473               if test x"$enablestring" = xdisable; then
4474                   defaultval=yes
4475               else
4476                   defaultval=no
4477               fi
4478           fi
4479
4480           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_flag" >&5
4481 echo $ECHO_N "checking for --${enablestring:-enable}-debug_flag... $ECHO_C" >&6; }
4482           # Check whether --enable-debug_flag was given.
4483 if test "${enable_debug_flag+set}" = set; then
4484   enableval=$enable_debug_flag;
4485                           if test "$enableval" = yes; then
4486                             wx_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
4487                           else
4488                             wx_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
4489                           fi
4490
4491 else
4492
4493                           wx_cv_use_debug_flag='wxUSE_DEBUG_FLAG=${'DEFAULT_wxUSE_DEBUG_FLAG":-$defaultval}"
4494
4495 fi
4496
4497
4498           eval "$wx_cv_use_debug_flag"
4499
4500           if test x"$enablestring" = xdisable; then
4501             if test $wxUSE_DEBUG_FLAG = no; then
4502               result=yes
4503             else
4504               result=no
4505             fi
4506           else
4507             result=$wxUSE_DEBUG_FLAG
4508           fi
4509
4510           { echo "$as_me:$LINENO: result: $result" >&5
4511 echo "${ECHO_T}$result" >&6; }
4512
4513
4514           enablestring=
4515           defaultval=
4516           if test -z "$defaultval"; then
4517               if test x"$enablestring" = xdisable; then
4518                   defaultval=yes
4519               else
4520                   defaultval=no
4521               fi
4522           fi
4523
4524           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_info" >&5
4525 echo $ECHO_N "checking for --${enablestring:-enable}-debug_info... $ECHO_C" >&6; }
4526           # Check whether --enable-debug_info was given.
4527 if test "${enable_debug_info+set}" = set; then
4528   enableval=$enable_debug_info;
4529                           if test "$enableval" = yes; then
4530                             wx_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
4531                           else
4532                             wx_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
4533                           fi
4534
4535 else
4536
4537                           wx_cv_use_debug_info='wxUSE_DEBUG_INFO=${'DEFAULT_wxUSE_DEBUG_INFO":-$defaultval}"
4538
4539 fi
4540
4541
4542           eval "$wx_cv_use_debug_info"
4543
4544           if test x"$enablestring" = xdisable; then
4545             if test $wxUSE_DEBUG_INFO = no; then
4546               result=yes
4547             else
4548               result=no
4549             fi
4550           else
4551             result=$wxUSE_DEBUG_INFO
4552           fi
4553
4554           { echo "$as_me:$LINENO: result: $result" >&5
4555 echo "${ECHO_T}$result" >&6; }
4556
4557
4558
4559
4560           enablestring=
4561           defaultval=
4562           if test -z "$defaultval"; then
4563               if test x"$enablestring" = xdisable; then
4564                   defaultval=yes
4565               else
4566                   defaultval=no
4567               fi
4568           fi
4569
4570           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_gdb" >&5
4571 echo $ECHO_N "checking for --${enablestring:-enable}-debug_gdb... $ECHO_C" >&6; }
4572           # Check whether --enable-debug_gdb was given.
4573 if test "${enable_debug_gdb+set}" = set; then
4574   enableval=$enable_debug_gdb;
4575                           if test "$enableval" = yes; then
4576                             wx_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
4577                           else
4578                             wx_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
4579                           fi
4580
4581 else
4582
4583                           wx_cv_use_debug_gdb='wxUSE_DEBUG_GDB=${'DEFAULT_wxUSE_DEBUG_GDB":-$defaultval}"
4584
4585 fi
4586
4587
4588           eval "$wx_cv_use_debug_gdb"
4589
4590           if test x"$enablestring" = xdisable; then
4591             if test $wxUSE_DEBUG_GDB = no; then
4592               result=yes
4593             else
4594               result=no
4595             fi
4596           else
4597             result=$wxUSE_DEBUG_GDB
4598           fi
4599
4600           { echo "$as_me:$LINENO: result: $result" >&5
4601 echo "${ECHO_T}$result" >&6; }
4602
4603
4604           enablestring=
4605           defaultval=
4606           if test -z "$defaultval"; then
4607               if test x"$enablestring" = xdisable; then
4608                   defaultval=yes
4609               else
4610                   defaultval=no
4611               fi
4612           fi
4613
4614           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_cntxt" >&5
4615 echo $ECHO_N "checking for --${enablestring:-enable}-debug_cntxt... $ECHO_C" >&6; }
4616           # Check whether --enable-debug_cntxt was given.
4617 if test "${enable_debug_cntxt+set}" = set; then
4618   enableval=$enable_debug_cntxt;
4619                           if test "$enableval" = yes; then
4620                             wx_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
4621                           else
4622                             wx_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
4623                           fi
4624
4625 else
4626
4627                           wx_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=${'DEFAULT_wxUSE_DEBUG_CONTEXT":-$defaultval}"
4628
4629 fi
4630
4631
4632           eval "$wx_cv_use_debug_cntxt"
4633
4634           if test x"$enablestring" = xdisable; then
4635             if test $wxUSE_DEBUG_CONTEXT = no; then
4636               result=yes
4637             else
4638               result=no
4639             fi
4640           else
4641             result=$wxUSE_DEBUG_CONTEXT
4642           fi
4643
4644           { echo "$as_me:$LINENO: result: $result" >&5
4645 echo "${ECHO_T}$result" >&6; }
4646
4647
4648           enablestring=
4649           defaultval=
4650           if test -z "$defaultval"; then
4651               if test x"$enablestring" = xdisable; then
4652                   defaultval=yes
4653               else
4654                   defaultval=no
4655               fi
4656           fi
4657
4658           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mem_tracing" >&5
4659 echo $ECHO_N "checking for --${enablestring:-enable}-mem_tracing... $ECHO_C" >&6; }
4660           # Check whether --enable-mem_tracing was given.
4661 if test "${enable_mem_tracing+set}" = set; then
4662   enableval=$enable_mem_tracing;
4663                           if test "$enableval" = yes; then
4664                             wx_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
4665                           else
4666                             wx_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
4667                           fi
4668
4669 else
4670
4671                           wx_cv_use_mem_tracing='wxUSE_MEM_TRACING=${'DEFAULT_wxUSE_MEM_TRACING":-$defaultval}"
4672
4673 fi
4674
4675
4676           eval "$wx_cv_use_mem_tracing"
4677
4678           if test x"$enablestring" = xdisable; then
4679             if test $wxUSE_MEM_TRACING = no; then
4680               result=yes
4681             else
4682               result=no
4683             fi
4684           else
4685             result=$wxUSE_MEM_TRACING
4686           fi
4687
4688           { echo "$as_me:$LINENO: result: $result" >&5
4689 echo "${ECHO_T}$result" >&6; }
4690
4691
4692
4693
4694           enablestring=disable
4695           defaultval=
4696           if test -z "$defaultval"; then
4697               if test x"$enablestring" = xdisable; then
4698                   defaultval=yes
4699               else
4700                   defaultval=no
4701               fi
4702           fi
4703
4704           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-shared" >&5
4705 echo $ECHO_N "checking for --${enablestring:-enable}-shared... $ECHO_C" >&6; }
4706           # Check whether --enable-shared was given.
4707 if test "${enable_shared+set}" = set; then
4708   enableval=$enable_shared;
4709                           if test "$enableval" = yes; then
4710                             wx_cv_use_shared='wxUSE_SHARED=yes'
4711                           else
4712                             wx_cv_use_shared='wxUSE_SHARED=no'
4713                           fi
4714
4715 else
4716
4717                           wx_cv_use_shared='wxUSE_SHARED=${'DEFAULT_wxUSE_SHARED":-$defaultval}"
4718
4719 fi
4720
4721
4722           eval "$wx_cv_use_shared"
4723
4724           if test x"$enablestring" = xdisable; then
4725             if test $wxUSE_SHARED = no; then
4726               result=yes
4727             else
4728               result=no
4729             fi
4730           else
4731             result=$wxUSE_SHARED
4732           fi
4733
4734           { echo "$as_me:$LINENO: result: $result" >&5
4735 echo "${ECHO_T}$result" >&6; }
4736
4737
4738           enablestring=
4739           defaultval=
4740           if test -z "$defaultval"; then
4741               if test x"$enablestring" = xdisable; then
4742                   defaultval=yes
4743               else
4744                   defaultval=no
4745               fi
4746           fi
4747
4748           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stl" >&5
4749 echo $ECHO_N "checking for --${enablestring:-enable}-stl... $ECHO_C" >&6; }
4750           # Check whether --enable-stl was given.
4751 if test "${enable_stl+set}" = set; then
4752   enableval=$enable_stl;
4753                           if test "$enableval" = yes; then
4754                             wx_cv_use_stl='wxUSE_STL=yes'
4755                           else
4756                             wx_cv_use_stl='wxUSE_STL=no'
4757                           fi
4758
4759 else
4760
4761                           wx_cv_use_stl='wxUSE_STL=${'DEFAULT_wxUSE_STL":-$defaultval}"
4762
4763 fi
4764
4765
4766           eval "$wx_cv_use_stl"
4767
4768           if test x"$enablestring" = xdisable; then
4769             if test $wxUSE_STL = no; then
4770               result=yes
4771             else
4772               result=no
4773             fi
4774           else
4775             result=$wxUSE_STL
4776           fi
4777
4778           { echo "$as_me:$LINENO: result: $result" >&5
4779 echo "${ECHO_T}$result" >&6; }
4780
4781 if test "$wxUSE_STL" = "yes"; then
4782     DEFAULT_wxUSE_STD_CONTAINERS=yes
4783     DEFAULT_wxUSE_STD_IOSTREAM=yes
4784     DEFAULT_wxUSE_STD_STRING=yes
4785 fi
4786
4787           enablestring=
4788           defaultval=
4789           if test -z "$defaultval"; then
4790               if test x"$enablestring" = xdisable; then
4791                   defaultval=yes
4792               else
4793                   defaultval=no
4794               fi
4795           fi
4796
4797           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_containers" >&5
4798 echo $ECHO_N "checking for --${enablestring:-enable}-std_containers... $ECHO_C" >&6; }
4799           # Check whether --enable-std_containers was given.
4800 if test "${enable_std_containers+set}" = set; then
4801   enableval=$enable_std_containers;
4802                           if test "$enableval" = yes; then
4803                             wx_cv_use_std_containers='wxUSE_STD_CONTAINERS=yes'
4804                           else
4805                             wx_cv_use_std_containers='wxUSE_STD_CONTAINERS=no'
4806                           fi
4807
4808 else
4809
4810                           wx_cv_use_std_containers='wxUSE_STD_CONTAINERS=${'DEFAULT_wxUSE_STD_CONTAINERS":-$defaultval}"
4811
4812 fi
4813
4814
4815           eval "$wx_cv_use_std_containers"
4816
4817           if test x"$enablestring" = xdisable; then
4818             if test $wxUSE_STD_CONTAINERS = no; then
4819               result=yes
4820             else
4821               result=no
4822             fi
4823           else
4824             result=$wxUSE_STD_CONTAINERS
4825           fi
4826
4827           { echo "$as_me:$LINENO: result: $result" >&5
4828 echo "${ECHO_T}$result" >&6; }
4829
4830
4831           enablestring=
4832           defaultval=
4833           if test -z "$defaultval"; then
4834               if test x"$enablestring" = xdisable; then
4835                   defaultval=yes
4836               else
4837                   defaultval=no
4838               fi
4839           fi
4840
4841           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_iostreams" >&5
4842 echo $ECHO_N "checking for --${enablestring:-enable}-std_iostreams... $ECHO_C" >&6; }
4843           # Check whether --enable-std_iostreams was given.
4844 if test "${enable_std_iostreams+set}" = set; then
4845   enableval=$enable_std_iostreams;
4846                           if test "$enableval" = yes; then
4847                             wx_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
4848                           else
4849                             wx_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
4850                           fi
4851
4852 else
4853
4854                           wx_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=${'DEFAULT_wxUSE_STD_IOSTREAM":-$defaultval}"
4855
4856 fi
4857
4858
4859           eval "$wx_cv_use_std_iostreams"
4860
4861           if test x"$enablestring" = xdisable; then
4862             if test $wxUSE_STD_IOSTREAM = no; then
4863               result=yes
4864             else
4865               result=no
4866             fi
4867           else
4868             result=$wxUSE_STD_IOSTREAM
4869           fi
4870
4871           { echo "$as_me:$LINENO: result: $result" >&5
4872 echo "${ECHO_T}$result" >&6; }
4873
4874
4875           enablestring=
4876           defaultval=
4877           if test -z "$defaultval"; then
4878               if test x"$enablestring" = xdisable; then
4879                   defaultval=yes
4880               else
4881                   defaultval=no
4882               fi
4883           fi
4884
4885           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_string" >&5
4886 echo $ECHO_N "checking for --${enablestring:-enable}-std_string... $ECHO_C" >&6; }
4887           # Check whether --enable-std_string was given.
4888 if test "${enable_std_string+set}" = set; then
4889   enableval=$enable_std_string;
4890                           if test "$enableval" = yes; then
4891                             wx_cv_use_std_string='wxUSE_STD_STRING=yes'
4892                           else
4893                             wx_cv_use_std_string='wxUSE_STD_STRING=no'
4894                           fi
4895
4896 else
4897
4898                           wx_cv_use_std_string='wxUSE_STD_STRING=${'DEFAULT_wxUSE_STD_STRING":-$defaultval}"
4899
4900 fi
4901
4902
4903           eval "$wx_cv_use_std_string"
4904
4905           if test x"$enablestring" = xdisable; then
4906             if test $wxUSE_STD_STRING = no; then
4907               result=yes
4908             else
4909               result=no
4910             fi
4911           else
4912             result=$wxUSE_STD_STRING
4913           fi
4914
4915           { echo "$as_me:$LINENO: result: $result" >&5
4916 echo "${ECHO_T}$result" >&6; }
4917
4918
4919           enablestring=
4920           defaultval=
4921           if test -z "$defaultval"; then
4922               if test x"$enablestring" = xdisable; then
4923                   defaultval=yes
4924               else
4925                   defaultval=no
4926               fi
4927           fi
4928
4929           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_string_conv_in_wxstring" >&5
4930 echo $ECHO_N "checking for --${enablestring:-enable}-std_string_conv_in_wxstring... $ECHO_C" >&6; }
4931           # Check whether --enable-std_string_conv_in_wxstring was given.
4932 if test "${enable_std_string_conv_in_wxstring+set}" = set; then
4933   enableval=$enable_std_string_conv_in_wxstring;
4934                           if test "$enableval" = yes; then
4935                             wx_cv_use_std_string_conv_in_wxstring='wxUSE_STD_STRING_CONV_IN_WXSTRING=yes'
4936                           else
4937                             wx_cv_use_std_string_conv_in_wxstring='wxUSE_STD_STRING_CONV_IN_WXSTRING=no'
4938                           fi
4939
4940 else
4941
4942                           wx_cv_use_std_string_conv_in_wxstring='wxUSE_STD_STRING_CONV_IN_WXSTRING=${'DEFAULT_wxUSE_STD_STRING_CONV_IN_WXSTRING":-$defaultval}"
4943
4944 fi
4945
4946
4947           eval "$wx_cv_use_std_string_conv_in_wxstring"
4948
4949           if test x"$enablestring" = xdisable; then
4950             if test $wxUSE_STD_STRING_CONV_IN_WXSTRING = no; then
4951               result=yes
4952             else
4953               result=no
4954             fi
4955           else
4956             result=$wxUSE_STD_STRING_CONV_IN_WXSTRING
4957           fi
4958
4959           { echo "$as_me:$LINENO: result: $result" >&5
4960 echo "${ECHO_T}$result" >&6; }
4961
4962
4963           enablestring=disable
4964           defaultval=
4965           if test -z "$defaultval"; then
4966               if test x"$enablestring" = xdisable; then
4967                   defaultval=yes
4968               else
4969                   defaultval=no
4970               fi
4971           fi
4972
4973           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-unicode" >&5
4974 echo $ECHO_N "checking for --${enablestring:-enable}-unicode... $ECHO_C" >&6; }
4975           # Check whether --enable-unicode was given.
4976 if test "${enable_unicode+set}" = set; then
4977   enableval=$enable_unicode;
4978                           if test "$enableval" = yes; then
4979                             wx_cv_use_unicode='wxUSE_UNICODE=yes'
4980                           else
4981                             wx_cv_use_unicode='wxUSE_UNICODE=no'
4982                           fi
4983
4984 else
4985
4986                           wx_cv_use_unicode='wxUSE_UNICODE=${'DEFAULT_wxUSE_UNICODE":-$defaultval}"
4987
4988 fi
4989
4990
4991           eval "$wx_cv_use_unicode"
4992
4993           if test x"$enablestring" = xdisable; then
4994             if test $wxUSE_UNICODE = no; then
4995               result=yes
4996             else
4997               result=no
4998             fi
4999           else
5000             result=$wxUSE_UNICODE
5001           fi
5002
5003           { echo "$as_me:$LINENO: result: $result" >&5
5004 echo "${ECHO_T}$result" >&6; }
5005
5006
5007           enablestring=
5008           defaultval=
5009           if test -z "$defaultval"; then
5010               if test x"$enablestring" = xdisable; then
5011                   defaultval=yes
5012               else
5013                   defaultval=no
5014               fi
5015           fi
5016
5017           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mslu" >&5
5018 echo $ECHO_N "checking for --${enablestring:-enable}-mslu... $ECHO_C" >&6; }
5019           # Check whether --enable-mslu was given.
5020 if test "${enable_mslu+set}" = set; then
5021   enableval=$enable_mslu;
5022                           if test "$enableval" = yes; then
5023                             wx_cv_use_mslu='wxUSE_UNICODE_MSLU=yes'
5024                           else
5025                             wx_cv_use_mslu='wxUSE_UNICODE_MSLU=no'
5026                           fi
5027
5028 else
5029
5030                           wx_cv_use_mslu='wxUSE_UNICODE_MSLU=${'DEFAULT_wxUSE_UNICODE_MSLU":-$defaultval}"
5031
5032 fi
5033
5034
5035           eval "$wx_cv_use_mslu"
5036
5037           if test x"$enablestring" = xdisable; then
5038             if test $wxUSE_UNICODE_MSLU = no; then
5039               result=yes
5040             else
5041               result=no
5042             fi
5043           else
5044             result=$wxUSE_UNICODE_MSLU
5045           fi
5046
5047           { echo "$as_me:$LINENO: result: $result" >&5
5048 echo "${ECHO_T}$result" >&6; }
5049
5050
5051           enablestring=
5052           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-utf8" >&5
5053 echo $ECHO_N "checking for --${enablestring:-enable}-utf8... $ECHO_C" >&6; }
5054           # Check whether --enable-utf8 was given.
5055 if test "${enable_utf8+set}" = set; then
5056   enableval=$enable_utf8;
5057                           wx_cv_use_utf8="wxUSE_UNICODE_UTF8='$enableval'"
5058
5059 else
5060
5061                           wx_cv_use_utf8='wxUSE_UNICODE_UTF8='$DEFAULT_wxUSE_UNICODE_UTF8
5062
5063 fi
5064
5065
5066           eval "$wx_cv_use_utf8"
5067
5068           { echo "$as_me:$LINENO: result: $wxUSE_UNICODE_UTF8" >&5
5069 echo "${ECHO_T}$wxUSE_UNICODE_UTF8" >&6; }
5070
5071
5072           enablestring=
5073           defaultval=
5074           if test -z "$defaultval"; then
5075               if test x"$enablestring" = xdisable; then
5076                   defaultval=yes
5077               else
5078                   defaultval=no
5079               fi
5080           fi
5081
5082           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-utf8only" >&5
5083 echo $ECHO_N "checking for --${enablestring:-enable}-utf8only... $ECHO_C" >&6; }
5084           # Check whether --enable-utf8only was given.
5085 if test "${enable_utf8only+set}" = set; then
5086   enableval=$enable_utf8only;
5087                           if test "$enableval" = yes; then
5088                             wx_cv_use_utf8only='wxUSE_UNICODE_UTF8_LOCALE=yes'
5089                           else
5090                             wx_cv_use_utf8only='wxUSE_UNICODE_UTF8_LOCALE=no'
5091                           fi
5092
5093 else
5094
5095                           wx_cv_use_utf8only='wxUSE_UNICODE_UTF8_LOCALE=${'DEFAULT_wxUSE_UNICODE_UTF8_LOCALE":-$defaultval}"
5096
5097 fi
5098
5099
5100           eval "$wx_cv_use_utf8only"
5101
5102           if test x"$enablestring" = xdisable; then
5103             if test $wxUSE_UNICODE_UTF8_LOCALE = no; then
5104               result=yes
5105             else
5106               result=no
5107             fi
5108           else
5109             result=$wxUSE_UNICODE_UTF8_LOCALE
5110           fi
5111
5112           { echo "$as_me:$LINENO: result: $result" >&5
5113 echo "${ECHO_T}$result" >&6; }
5114
5115
5116           enablestring=
5117           defaultval=
5118           if test -z "$defaultval"; then
5119               if test x"$enablestring" = xdisable; then
5120                   defaultval=yes
5121               else
5122                   defaultval=no
5123               fi
5124           fi
5125
5126           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-extended_rtti" >&5
5127 echo $ECHO_N "checking for --${enablestring:-enable}-extended_rtti... $ECHO_C" >&6; }
5128           # Check whether --enable-extended_rtti was given.
5129 if test "${enable_extended_rtti+set}" = set; then
5130   enableval=$enable_extended_rtti;
5131                           if test "$enableval" = yes; then
5132                             wx_cv_use_extended_rtti='wxUSE_EXTENDED_RTTI=yes'
5133                           else
5134                             wx_cv_use_extended_rtti='wxUSE_EXTENDED_RTTI=no'
5135                           fi
5136
5137 else
5138
5139                           wx_cv_use_extended_rtti='wxUSE_EXTENDED_RTTI=${'DEFAULT_wxUSE_EXTENDED_RTTI":-$defaultval}"
5140
5141 fi
5142
5143
5144           eval "$wx_cv_use_extended_rtti"
5145
5146           if test x"$enablestring" = xdisable; then
5147             if test $wxUSE_EXTENDED_RTTI = no; then
5148               result=yes
5149             else
5150               result=no
5151             fi
5152           else
5153             result=$wxUSE_EXTENDED_RTTI
5154           fi
5155
5156           { echo "$as_me:$LINENO: result: $result" >&5
5157 echo "${ECHO_T}$result" >&6; }
5158
5159 if test "$USE_OS2" = 1; then
5160     DEFAULT_wxUSE_OMF=no
5161
5162           enablestring=
5163           defaultval=
5164           if test -z "$defaultval"; then
5165               if test x"$enablestring" = xdisable; then
5166                   defaultval=yes
5167               else
5168                   defaultval=no
5169               fi
5170           fi
5171
5172           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-omf" >&5
5173 echo $ECHO_N "checking for --${enablestring:-enable}-omf... $ECHO_C" >&6; }
5174           # Check whether --enable-omf was given.
5175 if test "${enable_omf+set}" = set; then
5176   enableval=$enable_omf;
5177                           if test "$enableval" = yes; then
5178                             wx_cv_use_omf='wxUSE_OMF=yes'
5179                           else
5180                             wx_cv_use_omf='wxUSE_OMF=no'
5181                           fi
5182
5183 else
5184
5185                           wx_cv_use_omf='wxUSE_OMF=${'DEFAULT_wxUSE_OMF":-$defaultval}"
5186
5187 fi
5188
5189
5190           eval "$wx_cv_use_omf"
5191
5192           if test x"$enablestring" = xdisable; then
5193             if test $wxUSE_OMF = no; then
5194               result=yes
5195             else
5196               result=no
5197             fi
5198           else
5199             result=$wxUSE_OMF
5200           fi
5201
5202           { echo "$as_me:$LINENO: result: $result" >&5
5203 echo "${ECHO_T}$result" >&6; }
5204
5205 fi
5206
5207
5208           enablestring=disable
5209           defaultval=
5210           if test -z "$defaultval"; then
5211               if test x"$enablestring" = xdisable; then
5212                   defaultval=yes
5213               else
5214                   defaultval=no
5215               fi
5216           fi
5217
5218           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-optimise" >&5
5219 echo $ECHO_N "checking for --${enablestring:-enable}-optimise... $ECHO_C" >&6; }
5220           # Check whether --enable-optimise was given.
5221 if test "${enable_optimise+set}" = set; then
5222   enableval=$enable_optimise;
5223                           if test "$enableval" = yes; then
5224                             wx_cv_use_optimise='wxUSE_OPTIMISE=yes'
5225                           else
5226                             wx_cv_use_optimise='wxUSE_OPTIMISE=no'
5227                           fi
5228
5229 else
5230
5231                           wx_cv_use_optimise='wxUSE_OPTIMISE=${'DEFAULT_wxUSE_OPTIMISE":-$defaultval}"
5232
5233 fi
5234
5235
5236           eval "$wx_cv_use_optimise"
5237
5238           if test x"$enablestring" = xdisable; then
5239             if test $wxUSE_OPTIMISE = no; then
5240               result=yes
5241             else
5242               result=no
5243             fi
5244           else
5245             result=$wxUSE_OPTIMISE
5246           fi
5247
5248           { echo "$as_me:$LINENO: result: $result" >&5
5249 echo "${ECHO_T}$result" >&6; }
5250
5251
5252
5253           enablestring=
5254           defaultval=
5255           if test -z "$defaultval"; then
5256               if test x"$enablestring" = xdisable; then
5257                   defaultval=yes
5258               else
5259                   defaultval=no
5260               fi
5261           fi
5262
5263           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-profile" >&5
5264 echo $ECHO_N "checking for --${enablestring:-enable}-profile... $ECHO_C" >&6; }
5265           # Check whether --enable-profile was given.
5266 if test "${enable_profile+set}" = set; then
5267   enableval=$enable_profile;
5268                           if test "$enableval" = yes; then
5269                             wx_cv_use_profile='wxUSE_PROFILE=yes'
5270                           else
5271                             wx_cv_use_profile='wxUSE_PROFILE=no'
5272                           fi
5273
5274 else
5275
5276                           wx_cv_use_profile='wxUSE_PROFILE=${'DEFAULT_wxUSE_PROFILE":-$defaultval}"
5277
5278 fi
5279
5280
5281           eval "$wx_cv_use_profile"
5282
5283           if test x"$enablestring" = xdisable; then
5284             if test $wxUSE_PROFILE = no; then
5285               result=yes
5286             else
5287               result=no
5288             fi
5289           else
5290             result=$wxUSE_PROFILE
5291           fi
5292
5293           { echo "$as_me:$LINENO: result: $result" >&5
5294 echo "${ECHO_T}$result" >&6; }
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}-no_rtti" >&5
5308 echo $ECHO_N "checking for --${enablestring:-enable}-no_rtti... $ECHO_C" >&6; }
5309           # Check whether --enable-no_rtti was given.
5310 if test "${enable_no_rtti+set}" = set; then
5311   enableval=$enable_no_rtti;
5312                           if test "$enableval" = yes; then
5313                             wx_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
5314                           else
5315                             wx_cv_use_no_rtti='wxUSE_NO_RTTI=no'
5316                           fi
5317
5318 else
5319
5320                           wx_cv_use_no_rtti='wxUSE_NO_RTTI=${'DEFAULT_wxUSE_NO_RTTI":-$defaultval}"
5321
5322 fi
5323
5324
5325           eval "$wx_cv_use_no_rtti"
5326
5327           if test x"$enablestring" = xdisable; then
5328             if test $wxUSE_NO_RTTI = no; then
5329               result=yes
5330             else
5331               result=no
5332             fi
5333           else
5334             result=$wxUSE_NO_RTTI
5335           fi
5336
5337           { echo "$as_me:$LINENO: result: $result" >&5
5338 echo "${ECHO_T}$result" >&6; }
5339
5340
5341           enablestring=
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}-no_exceptions" >&5
5352 echo $ECHO_N "checking for --${enablestring:-enable}-no_exceptions... $ECHO_C" >&6; }
5353           # Check whether --enable-no_exceptions was given.
5354 if test "${enable_no_exceptions+set}" = set; then
5355   enableval=$enable_no_exceptions;
5356                           if test "$enableval" = yes; then
5357                             wx_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
5358                           else
5359                             wx_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
5360                           fi
5361
5362 else
5363
5364                           wx_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=${'DEFAULT_wxUSE_NO_EXCEPTIONS":-$defaultval}"
5365
5366 fi
5367
5368
5369           eval "$wx_cv_use_no_exceptions"
5370
5371           if test x"$enablestring" = xdisable; then
5372             if test $wxUSE_NO_EXCEPTIONS = no; then
5373               result=yes
5374             else
5375               result=no
5376             fi
5377           else
5378             result=$wxUSE_NO_EXCEPTIONS
5379           fi
5380
5381           { echo "$as_me:$LINENO: result: $result" >&5
5382 echo "${ECHO_T}$result" >&6; }
5383
5384
5385           enablestring=
5386           defaultval=
5387           if test -z "$defaultval"; then
5388               if test x"$enablestring" = xdisable; then
5389                   defaultval=yes
5390               else
5391                   defaultval=no
5392               fi
5393           fi
5394
5395           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-permissive" >&5
5396 echo $ECHO_N "checking for --${enablestring:-enable}-permissive... $ECHO_C" >&6; }
5397           # Check whether --enable-permissive was given.
5398 if test "${enable_permissive+set}" = set; then
5399   enableval=$enable_permissive;
5400                           if test "$enableval" = yes; then
5401                             wx_cv_use_permissive='wxUSE_PERMISSIVE=yes'
5402                           else
5403                             wx_cv_use_permissive='wxUSE_PERMISSIVE=no'
5404                           fi
5405
5406 else
5407
5408                           wx_cv_use_permissive='wxUSE_PERMISSIVE=${'DEFAULT_wxUSE_PERMISSIVE":-$defaultval}"
5409
5410 fi
5411
5412
5413           eval "$wx_cv_use_permissive"
5414
5415           if test x"$enablestring" = xdisable; then
5416             if test $wxUSE_PERMISSIVE = no; then
5417               result=yes
5418             else
5419               result=no
5420             fi
5421           else
5422             result=$wxUSE_PERMISSIVE
5423           fi
5424
5425           { echo "$as_me:$LINENO: result: $result" >&5
5426 echo "${ECHO_T}$result" >&6; }
5427
5428
5429           enablestring=
5430           defaultval=
5431           if test -z "$defaultval"; then
5432               if test x"$enablestring" = xdisable; then
5433                   defaultval=yes
5434               else
5435                   defaultval=no
5436               fi
5437           fi
5438
5439           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_deps" >&5
5440 echo $ECHO_N "checking for --${enablestring:-enable}-no_deps... $ECHO_C" >&6; }
5441           # Check whether --enable-no_deps was given.
5442 if test "${enable_no_deps+set}" = set; then
5443   enableval=$enable_no_deps;
5444                           if test "$enableval" = yes; then
5445                             wx_cv_use_no_deps='wxUSE_NO_DEPS=yes'
5446                           else
5447                             wx_cv_use_no_deps='wxUSE_NO_DEPS=no'
5448                           fi
5449
5450 else
5451
5452                           wx_cv_use_no_deps='wxUSE_NO_DEPS=${'DEFAULT_wxUSE_NO_DEPS":-$defaultval}"
5453
5454 fi
5455
5456
5457           eval "$wx_cv_use_no_deps"
5458
5459           if test x"$enablestring" = xdisable; then
5460             if test $wxUSE_NO_DEPS = no; then
5461               result=yes
5462             else
5463               result=no
5464             fi
5465           else
5466             result=$wxUSE_NO_DEPS
5467           fi
5468
5469           { echo "$as_me:$LINENO: result: $result" >&5
5470 echo "${ECHO_T}$result" >&6; }
5471
5472
5473           enablestring=disable
5474           defaultval=
5475           if test -z "$defaultval"; then
5476               if test x"$enablestring" = xdisable; then
5477                   defaultval=yes
5478               else
5479                   defaultval=no
5480               fi
5481           fi
5482
5483           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-vararg_macros" >&5
5484 echo $ECHO_N "checking for --${enablestring:-enable}-vararg_macros... $ECHO_C" >&6; }
5485           # Check whether --enable-vararg_macros was given.
5486 if test "${enable_vararg_macros+set}" = set; then
5487   enableval=$enable_vararg_macros;
5488                           if test "$enableval" = yes; then
5489                             wx_cv_use_vararg_macros='wxUSE_VARARG_MACROS=yes'
5490                           else
5491                             wx_cv_use_vararg_macros='wxUSE_VARARG_MACROS=no'
5492                           fi
5493
5494 else
5495
5496                           wx_cv_use_vararg_macros='wxUSE_VARARG_MACROS=${'DEFAULT_wxUSE_VARARG_MACROS":-$defaultval}"
5497
5498 fi
5499
5500
5501           eval "$wx_cv_use_vararg_macros"
5502
5503           if test x"$enablestring" = xdisable; then
5504             if test $wxUSE_VARARG_MACROS = no; then
5505               result=yes
5506             else
5507               result=no
5508             fi
5509           else
5510             result=$wxUSE_VARARG_MACROS
5511           fi
5512
5513           { echo "$as_me:$LINENO: result: $result" >&5
5514 echo "${ECHO_T}$result" >&6; }
5515
5516
5517
5518           enablestring=
5519           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal_binary" >&5
5520 echo $ECHO_N "checking for --${enablestring:-enable}-universal_binary... $ECHO_C" >&6; }
5521           # Check whether --enable-universal_binary was given.
5522 if test "${enable_universal_binary+set}" = set; then
5523   enableval=$enable_universal_binary;
5524                           wx_cv_use_universal_binary="wxUSE_UNIVERSAL_BINARY='$enableval'"
5525
5526 else
5527
5528                           wx_cv_use_universal_binary='wxUSE_UNIVERSAL_BINARY='$DEFAULT_wxUSE_UNIVERSAL_BINARY
5529
5530 fi
5531
5532
5533           eval "$wx_cv_use_universal_binary"
5534
5535           { echo "$as_me:$LINENO: result: $wxUSE_UNIVERSAL_BINARY" >&5
5536 echo "${ECHO_T}$wxUSE_UNIVERSAL_BINARY" >&6; }
5537
5538
5539           enablestring=
5540           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-macosx_arch" >&5
5541 echo $ECHO_N "checking for --${enablestring:-enable}-macosx_arch... $ECHO_C" >&6; }
5542           # Check whether --enable-macosx_arch was given.
5543 if test "${enable_macosx_arch+set}" = set; then
5544   enableval=$enable_macosx_arch;
5545                           wx_cv_use_macosx_arch="wxUSE_MAC_ARCH='$enableval'"
5546
5547 else
5548
5549                           wx_cv_use_macosx_arch='wxUSE_MAC_ARCH='$DEFAULT_wxUSE_MAC_ARCH
5550
5551 fi
5552
5553
5554           eval "$wx_cv_use_macosx_arch"
5555
5556           { echo "$as_me:$LINENO: result: $wxUSE_MAC_ARCH" >&5
5557 echo "${ECHO_T}$wxUSE_MAC_ARCH" >&6; }
5558
5559
5560
5561           enablestring=
5562           defaultval=
5563           if test -z "$defaultval"; then
5564               if test x"$enablestring" = xdisable; then
5565                   defaultval=yes
5566               else
5567                   defaultval=no
5568               fi
5569           fi
5570
5571           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat26" >&5
5572 echo $ECHO_N "checking for --${enablestring:-enable}-compat26... $ECHO_C" >&6; }
5573           # Check whether --enable-compat26 was given.
5574 if test "${enable_compat26+set}" = set; then
5575   enableval=$enable_compat26;
5576                           if test "$enableval" = yes; then
5577                             wx_cv_use_compat26='WXWIN_COMPATIBILITY_2_6=yes'
5578                           else
5579                             wx_cv_use_compat26='WXWIN_COMPATIBILITY_2_6=no'
5580                           fi
5581
5582 else
5583
5584                           wx_cv_use_compat26='WXWIN_COMPATIBILITY_2_6=${'DEFAULT_WXWIN_COMPATIBILITY_2_6":-$defaultval}"
5585
5586 fi
5587
5588
5589           eval "$wx_cv_use_compat26"
5590
5591           if test x"$enablestring" = xdisable; then
5592             if test $WXWIN_COMPATIBILITY_2_6 = no; then
5593               result=yes
5594             else
5595               result=no
5596             fi
5597           else
5598             result=$WXWIN_COMPATIBILITY_2_6
5599           fi
5600
5601           { echo "$as_me:$LINENO: result: $result" >&5
5602 echo "${ECHO_T}$result" >&6; }
5603
5604
5605           enablestring=disable
5606           defaultval=
5607           if test -z "$defaultval"; then
5608               if test x"$enablestring" = xdisable; then
5609                   defaultval=yes
5610               else
5611                   defaultval=no
5612               fi
5613           fi
5614
5615           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat28" >&5
5616 echo $ECHO_N "checking for --${enablestring:-enable}-compat28... $ECHO_C" >&6; }
5617           # Check whether --enable-compat28 was given.
5618 if test "${enable_compat28+set}" = set; then
5619   enableval=$enable_compat28;
5620                           if test "$enableval" = yes; then
5621                             wx_cv_use_compat28='WXWIN_COMPATIBILITY_2_8=yes'
5622                           else
5623                             wx_cv_use_compat28='WXWIN_COMPATIBILITY_2_8=no'
5624                           fi
5625
5626 else
5627
5628                           wx_cv_use_compat28='WXWIN_COMPATIBILITY_2_8=${'DEFAULT_WXWIN_COMPATIBILITY_2_8":-$defaultval}"
5629
5630 fi
5631
5632
5633           eval "$wx_cv_use_compat28"
5634
5635           if test x"$enablestring" = xdisable; then
5636             if test $WXWIN_COMPATIBILITY_2_8 = no; then
5637               result=yes
5638             else
5639               result=no
5640             fi
5641           else
5642             result=$WXWIN_COMPATIBILITY_2_8
5643           fi
5644
5645           { echo "$as_me:$LINENO: result: $result" >&5
5646 echo "${ECHO_T}$result" >&6; }
5647
5648
5649
5650           enablestring=disable
5651           defaultval=
5652           if test -z "$defaultval"; then
5653               if test x"$enablestring" = xdisable; then
5654                   defaultval=yes
5655               else
5656                   defaultval=no
5657               fi
5658           fi
5659
5660           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-rpath" >&5
5661 echo $ECHO_N "checking for --${enablestring:-enable}-rpath... $ECHO_C" >&6; }
5662           # Check whether --enable-rpath was given.
5663 if test "${enable_rpath+set}" = set; then
5664   enableval=$enable_rpath;
5665                           if test "$enableval" = yes; then
5666                             wx_cv_use_rpath='wxUSE_RPATH=yes'
5667                           else
5668                             wx_cv_use_rpath='wxUSE_RPATH=no'
5669                           fi
5670
5671 else
5672
5673                           wx_cv_use_rpath='wxUSE_RPATH=${'DEFAULT_wxUSE_RPATH":-$defaultval}"
5674
5675 fi
5676
5677
5678           eval "$wx_cv_use_rpath"
5679
5680           if test x"$enablestring" = xdisable; then
5681             if test $wxUSE_RPATH = no; then
5682               result=yes
5683             else
5684               result=no
5685             fi
5686           else
5687             result=$wxUSE_RPATH
5688           fi
5689
5690           { echo "$as_me:$LINENO: result: $result" >&5
5691 echo "${ECHO_T}$result" >&6; }
5692
5693
5694
5695           enablestring=
5696           defaultval=
5697           if test -z "$defaultval"; then
5698               if test x"$enablestring" = xdisable; then
5699                   defaultval=yes
5700               else
5701                   defaultval=no
5702               fi
5703           fi
5704
5705           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-objc_uniquifying" >&5
5706 echo $ECHO_N "checking for --${enablestring:-enable}-objc_uniquifying... $ECHO_C" >&6; }
5707           # Check whether --enable-objc_uniquifying was given.
5708 if test "${enable_objc_uniquifying+set}" = set; then
5709   enableval=$enable_objc_uniquifying;
5710                           if test "$enableval" = yes; then
5711                             wx_cv_use_objc_uniquifying='wxUSE_OBJC_UNIQUIFYING=yes'
5712                           else
5713                             wx_cv_use_objc_uniquifying='wxUSE_OBJC_UNIQUIFYING=no'
5714                           fi
5715
5716 else
5717
5718                           wx_cv_use_objc_uniquifying='wxUSE_OBJC_UNIQUIFYING=${'DEFAULT_wxUSE_OBJC_UNIQUIFYING":-$defaultval}"
5719
5720 fi
5721
5722
5723           eval "$wx_cv_use_objc_uniquifying"
5724
5725           if test x"$enablestring" = xdisable; then
5726             if test $wxUSE_OBJC_UNIQUIFYING = no; then
5727               result=yes
5728             else
5729               result=no
5730             fi
5731           else
5732             result=$wxUSE_OBJC_UNIQUIFYING
5733           fi
5734
5735           { echo "$as_me:$LINENO: result: $result" >&5
5736 echo "${ECHO_T}$result" >&6; }
5737
5738
5739
5740           enablestring=disable
5741           defaultval=
5742           if test -z "$defaultval"; then
5743               if test x"$enablestring" = xdisable; then
5744                   defaultval=yes
5745               else
5746                   defaultval=no
5747               fi
5748           fi
5749
5750           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-visibility" >&5
5751 echo $ECHO_N "checking for --${enablestring:-enable}-visibility... $ECHO_C" >&6; }
5752           # Check whether --enable-visibility was given.
5753 if test "${enable_visibility+set}" = set; then
5754   enableval=$enable_visibility;
5755                           if test "$enableval" = yes; then
5756                             wx_cv_use_visibility='wxUSE_VISIBILITY=yes'
5757                           else
5758                             wx_cv_use_visibility='wxUSE_VISIBILITY=no'
5759                           fi
5760
5761 else
5762
5763                           wx_cv_use_visibility='wxUSE_VISIBILITY=${'DEFAULT_wxUSE_VISIBILITY":-$defaultval}"
5764
5765 fi
5766
5767
5768           eval "$wx_cv_use_visibility"
5769
5770           if test x"$enablestring" = xdisable; then
5771             if test $wxUSE_VISIBILITY = no; then
5772               result=yes
5773             else
5774               result=no
5775             fi
5776           else
5777             result=$wxUSE_VISIBILITY
5778           fi
5779
5780           { echo "$as_me:$LINENO: result: $result" >&5
5781 echo "${ECHO_T}$result" >&6; }
5782
5783
5784           enablestring=disable
5785           defaultval=
5786           if test -z "$defaultval"; then
5787               if test x"$enablestring" = xdisable; then
5788                   defaultval=yes
5789               else
5790                   defaultval=no
5791               fi
5792           fi
5793
5794           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tls" >&5
5795 echo $ECHO_N "checking for --${enablestring:-enable}-tls... $ECHO_C" >&6; }
5796           # Check whether --enable-tls was given.
5797 if test "${enable_tls+set}" = set; then
5798   enableval=$enable_tls;
5799                           if test "$enableval" = yes; then
5800                             wx_cv_use_tls='wxUSE_COMPILER_TLS=yes'
5801                           else
5802                             wx_cv_use_tls='wxUSE_COMPILER_TLS=no'
5803                           fi
5804
5805 else
5806
5807                           wx_cv_use_tls='wxUSE_COMPILER_TLS=${'DEFAULT_wxUSE_COMPILER_TLS":-$defaultval}"
5808
5809 fi
5810
5811
5812           eval "$wx_cv_use_tls"
5813
5814           if test x"$enablestring" = xdisable; then
5815             if test $wxUSE_COMPILER_TLS = no; then
5816               result=yes
5817             else
5818               result=no
5819             fi
5820           else
5821             result=$wxUSE_COMPILER_TLS
5822           fi
5823
5824           { echo "$as_me:$LINENO: result: $result" >&5
5825 echo "${ECHO_T}$result" >&6; }
5826
5827
5828
5829
5830           enablestring=
5831           defaultval=$wxUSE_ALL_FEATURES
5832           if test -z "$defaultval"; then
5833               if test x"$enablestring" = xdisable; then
5834                   defaultval=yes
5835               else
5836                   defaultval=no
5837               fi
5838           fi
5839
5840           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-intl" >&5
5841 echo $ECHO_N "checking for --${enablestring:-enable}-intl... $ECHO_C" >&6; }
5842           # Check whether --enable-intl was given.
5843 if test "${enable_intl+set}" = set; then
5844   enableval=$enable_intl;
5845                           if test "$enableval" = yes; then
5846                             wx_cv_use_intl='wxUSE_INTL=yes'
5847                           else
5848                             wx_cv_use_intl='wxUSE_INTL=no'
5849                           fi
5850
5851 else
5852
5853                           wx_cv_use_intl='wxUSE_INTL=${'DEFAULT_wxUSE_INTL":-$defaultval}"
5854
5855 fi
5856
5857
5858           eval "$wx_cv_use_intl"
5859
5860           if test x"$enablestring" = xdisable; then
5861             if test $wxUSE_INTL = no; then
5862               result=yes
5863             else
5864               result=no
5865             fi
5866           else
5867             result=$wxUSE_INTL
5868           fi
5869
5870           { echo "$as_me:$LINENO: result: $result" >&5
5871 echo "${ECHO_T}$result" >&6; }
5872
5873
5874           enablestring=
5875           defaultval=$wxUSE_ALL_FEATURES
5876           if test -z "$defaultval"; then
5877               if test x"$enablestring" = xdisable; then
5878                   defaultval=yes
5879               else
5880                   defaultval=no
5881               fi
5882           fi
5883
5884           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xlocale" >&5
5885 echo $ECHO_N "checking for --${enablestring:-enable}-xlocale... $ECHO_C" >&6; }
5886           # Check whether --enable-xlocale was given.
5887 if test "${enable_xlocale+set}" = set; then
5888   enableval=$enable_xlocale;
5889                           if test "$enableval" = yes; then
5890                             wx_cv_use_xlocale='wxUSE_XLOCALE=yes'
5891                           else
5892                             wx_cv_use_xlocale='wxUSE_XLOCALE=no'
5893                           fi
5894
5895 else
5896
5897                           wx_cv_use_xlocale='wxUSE_XLOCALE=${'DEFAULT_wxUSE_XLOCALE":-$defaultval}"
5898
5899 fi
5900
5901
5902           eval "$wx_cv_use_xlocale"
5903
5904           if test x"$enablestring" = xdisable; then
5905             if test $wxUSE_XLOCALE = no; then
5906               result=yes
5907             else
5908               result=no
5909             fi
5910           else
5911             result=$wxUSE_XLOCALE
5912           fi
5913
5914           { echo "$as_me:$LINENO: result: $result" >&5
5915 echo "${ECHO_T}$result" >&6; }
5916
5917
5918           enablestring=
5919           defaultval=$wxUSE_ALL_FEATURES
5920           if test -z "$defaultval"; then
5921               if test x"$enablestring" = xdisable; then
5922                   defaultval=yes
5923               else
5924                   defaultval=no
5925               fi
5926           fi
5927
5928           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-config" >&5
5929 echo $ECHO_N "checking for --${enablestring:-enable}-config... $ECHO_C" >&6; }
5930           # Check whether --enable-config was given.
5931 if test "${enable_config+set}" = set; then
5932   enableval=$enable_config;
5933                           if test "$enableval" = yes; then
5934                             wx_cv_use_config='wxUSE_CONFIG=yes'
5935                           else
5936                             wx_cv_use_config='wxUSE_CONFIG=no'
5937                           fi
5938
5939 else
5940
5941                           wx_cv_use_config='wxUSE_CONFIG=${'DEFAULT_wxUSE_CONFIG":-$defaultval}"
5942
5943 fi
5944
5945
5946           eval "$wx_cv_use_config"
5947
5948           if test x"$enablestring" = xdisable; then
5949             if test $wxUSE_CONFIG = no; then
5950               result=yes
5951             else
5952               result=no
5953             fi
5954           else
5955             result=$wxUSE_CONFIG
5956           fi
5957
5958           { echo "$as_me:$LINENO: result: $result" >&5
5959 echo "${ECHO_T}$result" >&6; }
5960
5961
5962
5963           enablestring=
5964           defaultval=$wxUSE_ALL_FEATURES
5965           if test -z "$defaultval"; then
5966               if test x"$enablestring" = xdisable; then
5967                   defaultval=yes
5968               else
5969                   defaultval=no
5970               fi
5971           fi
5972
5973           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocols" >&5
5974 echo $ECHO_N "checking for --${enablestring:-enable}-protocols... $ECHO_C" >&6; }
5975           # Check whether --enable-protocols was given.
5976 if test "${enable_protocols+set}" = set; then
5977   enableval=$enable_protocols;
5978                           if test "$enableval" = yes; then
5979                             wx_cv_use_protocols='wxUSE_PROTOCOL=yes'
5980                           else
5981                             wx_cv_use_protocols='wxUSE_PROTOCOL=no'
5982                           fi
5983
5984 else
5985
5986                           wx_cv_use_protocols='wxUSE_PROTOCOL=${'DEFAULT_wxUSE_PROTOCOL":-$defaultval}"
5987
5988 fi
5989
5990
5991           eval "$wx_cv_use_protocols"
5992
5993           if test x"$enablestring" = xdisable; then
5994             if test $wxUSE_PROTOCOL = no; then
5995               result=yes
5996             else
5997               result=no
5998             fi
5999           else
6000             result=$wxUSE_PROTOCOL
6001           fi
6002
6003           { echo "$as_me:$LINENO: result: $result" >&5
6004 echo "${ECHO_T}$result" >&6; }
6005
6006
6007           enablestring=
6008           defaultval=$wxUSE_ALL_FEATURES
6009           if test -z "$defaultval"; then
6010               if test x"$enablestring" = xdisable; then
6011                   defaultval=yes
6012               else
6013                   defaultval=no
6014               fi
6015           fi
6016
6017           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ftp" >&5
6018 echo $ECHO_N "checking for --${enablestring:-enable}-ftp... $ECHO_C" >&6; }
6019           # Check whether --enable-ftp was given.
6020 if test "${enable_ftp+set}" = set; then
6021   enableval=$enable_ftp;
6022                           if test "$enableval" = yes; then
6023                             wx_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes'
6024                           else
6025                             wx_cv_use_ftp='wxUSE_PROTOCOL_FTP=no'
6026                           fi
6027
6028 else
6029
6030                           wx_cv_use_ftp='wxUSE_PROTOCOL_FTP=${'DEFAULT_wxUSE_PROTOCOL_FTP":-$defaultval}"
6031
6032 fi
6033
6034
6035           eval "$wx_cv_use_ftp"
6036
6037           if test x"$enablestring" = xdisable; then
6038             if test $wxUSE_PROTOCOL_FTP = no; then
6039               result=yes
6040             else
6041               result=no
6042             fi
6043           else
6044             result=$wxUSE_PROTOCOL_FTP
6045           fi
6046
6047           { echo "$as_me:$LINENO: result: $result" >&5
6048 echo "${ECHO_T}$result" >&6; }
6049
6050
6051           enablestring=
6052           defaultval=$wxUSE_ALL_FEATURES
6053           if test -z "$defaultval"; then
6054               if test x"$enablestring" = xdisable; then
6055                   defaultval=yes
6056               else
6057                   defaultval=no
6058               fi
6059           fi
6060
6061           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-http" >&5
6062 echo $ECHO_N "checking for --${enablestring:-enable}-http... $ECHO_C" >&6; }
6063           # Check whether --enable-http was given.
6064 if test "${enable_http+set}" = set; then
6065   enableval=$enable_http;
6066                           if test "$enableval" = yes; then
6067                             wx_cv_use_http='wxUSE_PROTOCOL_HTTP=yes'
6068                           else
6069                             wx_cv_use_http='wxUSE_PROTOCOL_HTTP=no'
6070                           fi
6071
6072 else
6073
6074                           wx_cv_use_http='wxUSE_PROTOCOL_HTTP=${'DEFAULT_wxUSE_PROTOCOL_HTTP":-$defaultval}"
6075
6076 fi
6077
6078
6079           eval "$wx_cv_use_http"
6080
6081           if test x"$enablestring" = xdisable; then
6082             if test $wxUSE_PROTOCOL_HTTP = no; then
6083               result=yes
6084             else
6085               result=no
6086             fi
6087           else
6088             result=$wxUSE_PROTOCOL_HTTP
6089           fi
6090
6091           { echo "$as_me:$LINENO: result: $result" >&5
6092 echo "${ECHO_T}$result" >&6; }
6093
6094
6095           enablestring=
6096           defaultval=$wxUSE_ALL_FEATURES
6097           if test -z "$defaultval"; then
6098               if test x"$enablestring" = xdisable; then
6099                   defaultval=yes
6100               else
6101                   defaultval=no
6102               fi
6103           fi
6104
6105           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fileproto" >&5
6106 echo $ECHO_N "checking for --${enablestring:-enable}-fileproto... $ECHO_C" >&6; }
6107           # Check whether --enable-fileproto was given.
6108 if test "${enable_fileproto+set}" = set; then
6109   enableval=$enable_fileproto;
6110                           if test "$enableval" = yes; then
6111                             wx_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes'
6112                           else
6113                             wx_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no'
6114                           fi
6115
6116 else
6117
6118                           wx_cv_use_fileproto='wxUSE_PROTOCOL_FILE=${'DEFAULT_wxUSE_PROTOCOL_FILE":-$defaultval}"
6119
6120 fi
6121
6122
6123           eval "$wx_cv_use_fileproto"
6124
6125           if test x"$enablestring" = xdisable; then
6126             if test $wxUSE_PROTOCOL_FILE = no; then
6127               result=yes
6128             else
6129               result=no
6130             fi
6131           else
6132             result=$wxUSE_PROTOCOL_FILE
6133           fi
6134
6135           { echo "$as_me:$LINENO: result: $result" >&5
6136 echo "${ECHO_T}$result" >&6; }
6137
6138
6139           enablestring=
6140           defaultval=$wxUSE_ALL_FEATURES
6141           if test -z "$defaultval"; then
6142               if test x"$enablestring" = xdisable; then
6143                   defaultval=yes
6144               else
6145                   defaultval=no
6146               fi
6147           fi
6148
6149           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sockets" >&5
6150 echo $ECHO_N "checking for --${enablestring:-enable}-sockets... $ECHO_C" >&6; }
6151           # Check whether --enable-sockets was given.
6152 if test "${enable_sockets+set}" = set; then
6153   enableval=$enable_sockets;
6154                           if test "$enableval" = yes; then
6155                             wx_cv_use_sockets='wxUSE_SOCKETS=yes'
6156                           else
6157                             wx_cv_use_sockets='wxUSE_SOCKETS=no'
6158                           fi
6159
6160 else
6161
6162                           wx_cv_use_sockets='wxUSE_SOCKETS=${'DEFAULT_wxUSE_SOCKETS":-$defaultval}"
6163
6164 fi
6165
6166
6167           eval "$wx_cv_use_sockets"
6168
6169           if test x"$enablestring" = xdisable; then
6170             if test $wxUSE_SOCKETS = no; then
6171               result=yes
6172             else
6173               result=no
6174             fi
6175           else
6176             result=$wxUSE_SOCKETS
6177           fi
6178
6179           { echo "$as_me:$LINENO: result: $result" >&5
6180 echo "${ECHO_T}$result" >&6; }
6181
6182
6183           enablestring=
6184           defaultval=$wxUSE_ALL_FEATURES
6185           if test -z "$defaultval"; then
6186               if test x"$enablestring" = xdisable; then
6187                   defaultval=yes
6188               else
6189                   defaultval=no
6190               fi
6191           fi
6192
6193           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ipv6" >&5
6194 echo $ECHO_N "checking for --${enablestring:-enable}-ipv6... $ECHO_C" >&6; }
6195           # Check whether --enable-ipv6 was given.
6196 if test "${enable_ipv6+set}" = set; then
6197   enableval=$enable_ipv6;
6198                           if test "$enableval" = yes; then
6199                             wx_cv_use_ipv6='wxUSE_IPV6=yes'
6200                           else
6201                             wx_cv_use_ipv6='wxUSE_IPV6=no'
6202                           fi
6203
6204 else
6205
6206                           wx_cv_use_ipv6='wxUSE_IPV6=${'DEFAULT_wxUSE_IPV6":-$defaultval}"
6207
6208 fi
6209
6210
6211           eval "$wx_cv_use_ipv6"
6212
6213           if test x"$enablestring" = xdisable; then
6214             if test $wxUSE_IPV6 = no; then
6215               result=yes
6216             else
6217               result=no
6218             fi
6219           else
6220             result=$wxUSE_IPV6
6221           fi
6222
6223           { echo "$as_me:$LINENO: result: $result" >&5
6224 echo "${ECHO_T}$result" >&6; }
6225
6226
6227           enablestring=
6228           defaultval=$wxUSE_ALL_FEATURES
6229           if test -z "$defaultval"; then
6230               if test x"$enablestring" = xdisable; then
6231                   defaultval=yes
6232               else
6233                   defaultval=no
6234               fi
6235           fi
6236
6237           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ole" >&5
6238 echo $ECHO_N "checking for --${enablestring:-enable}-ole... $ECHO_C" >&6; }
6239           # Check whether --enable-ole was given.
6240 if test "${enable_ole+set}" = set; then
6241   enableval=$enable_ole;
6242                           if test "$enableval" = yes; then
6243                             wx_cv_use_ole='wxUSE_OLE=yes'
6244                           else
6245                             wx_cv_use_ole='wxUSE_OLE=no'
6246                           fi
6247
6248 else
6249
6250                           wx_cv_use_ole='wxUSE_OLE=${'DEFAULT_wxUSE_OLE":-$defaultval}"
6251
6252 fi
6253
6254
6255           eval "$wx_cv_use_ole"
6256
6257           if test x"$enablestring" = xdisable; then
6258             if test $wxUSE_OLE = no; then
6259               result=yes
6260             else
6261               result=no
6262             fi
6263           else
6264             result=$wxUSE_OLE
6265           fi
6266
6267           { echo "$as_me:$LINENO: result: $result" >&5
6268 echo "${ECHO_T}$result" >&6; }
6269
6270
6271           enablestring=
6272           defaultval=$wxUSE_ALL_FEATURES
6273           if test -z "$defaultval"; then
6274               if test x"$enablestring" = xdisable; then
6275                   defaultval=yes
6276               else
6277                   defaultval=no
6278               fi
6279           fi
6280
6281           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataobj" >&5
6282 echo $ECHO_N "checking for --${enablestring:-enable}-dataobj... $ECHO_C" >&6; }
6283           # Check whether --enable-dataobj was given.
6284 if test "${enable_dataobj+set}" = set; then
6285   enableval=$enable_dataobj;
6286                           if test "$enableval" = yes; then
6287                             wx_cv_use_dataobj='wxUSE_DATAOBJ=yes'
6288                           else
6289                             wx_cv_use_dataobj='wxUSE_DATAOBJ=no'
6290                           fi
6291
6292 else
6293
6294                           wx_cv_use_dataobj='wxUSE_DATAOBJ=${'DEFAULT_wxUSE_DATAOBJ":-$defaultval}"
6295
6296 fi
6297
6298
6299           eval "$wx_cv_use_dataobj"
6300
6301           if test x"$enablestring" = xdisable; then
6302             if test $wxUSE_DATAOBJ = no; then
6303               result=yes
6304             else
6305               result=no
6306             fi
6307           else
6308             result=$wxUSE_DATAOBJ
6309           fi
6310
6311           { echo "$as_me:$LINENO: result: $result" >&5
6312 echo "${ECHO_T}$result" >&6; }
6313
6314
6315
6316           enablestring=
6317           defaultval=$wxUSE_ALL_FEATURES
6318           if test -z "$defaultval"; then
6319               if test x"$enablestring" = xdisable; then
6320                   defaultval=yes
6321               else
6322                   defaultval=no
6323               fi
6324           fi
6325
6326           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ipc" >&5
6327 echo $ECHO_N "checking for --${enablestring:-enable}-ipc... $ECHO_C" >&6; }
6328           # Check whether --enable-ipc was given.
6329 if test "${enable_ipc+set}" = set; then
6330   enableval=$enable_ipc;
6331                           if test "$enableval" = yes; then
6332                             wx_cv_use_ipc='wxUSE_IPC=yes'
6333                           else
6334                             wx_cv_use_ipc='wxUSE_IPC=no'
6335                           fi
6336
6337 else
6338
6339                           wx_cv_use_ipc='wxUSE_IPC=${'DEFAULT_wxUSE_IPC":-$defaultval}"
6340
6341 fi
6342
6343
6344           eval "$wx_cv_use_ipc"
6345
6346           if test x"$enablestring" = xdisable; then
6347             if test $wxUSE_IPC = no; then
6348               result=yes
6349             else
6350               result=no
6351             fi
6352           else
6353             result=$wxUSE_IPC
6354           fi
6355
6356           { echo "$as_me:$LINENO: result: $result" >&5
6357 echo "${ECHO_T}$result" >&6; }
6358
6359
6360
6361           enablestring=
6362           defaultval=$wxUSE_ALL_FEATURES
6363           if test -z "$defaultval"; then
6364               if test x"$enablestring" = xdisable; then
6365                   defaultval=yes
6366               else
6367                   defaultval=no
6368               fi
6369           fi
6370
6371           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-baseevtloop" >&5
6372 echo $ECHO_N "checking for --${enablestring:-enable}-baseevtloop... $ECHO_C" >&6; }
6373           # Check whether --enable-baseevtloop was given.
6374 if test "${enable_baseevtloop+set}" = set; then
6375   enableval=$enable_baseevtloop;
6376                           if test "$enableval" = yes; then
6377                             wx_cv_use_baseevtloop='wxUSE_CONSOLE_EVENTLOOP=yes'
6378                           else
6379                             wx_cv_use_baseevtloop='wxUSE_CONSOLE_EVENTLOOP=no'
6380                           fi
6381
6382 else
6383
6384                           wx_cv_use_baseevtloop='wxUSE_CONSOLE_EVENTLOOP=${'DEFAULT_wxUSE_CONSOLE_EVENTLOOP":-$defaultval}"
6385
6386 fi
6387
6388
6389           eval "$wx_cv_use_baseevtloop"
6390
6391           if test x"$enablestring" = xdisable; then
6392             if test $wxUSE_CONSOLE_EVENTLOOP = no; then
6393               result=yes
6394             else
6395               result=no
6396             fi
6397           else
6398             result=$wxUSE_CONSOLE_EVENTLOOP
6399           fi
6400
6401           { echo "$as_me:$LINENO: result: $result" >&5
6402 echo "${ECHO_T}$result" >&6; }
6403
6404
6405           enablestring=
6406           defaultval=$wxUSE_ALL_FEATURES
6407           if test -z "$defaultval"; then
6408               if test x"$enablestring" = xdisable; then
6409                   defaultval=yes
6410               else
6411                   defaultval=no
6412               fi
6413           fi
6414
6415           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-epollloop" >&5
6416 echo $ECHO_N "checking for --${enablestring:-enable}-epollloop... $ECHO_C" >&6; }
6417           # Check whether --enable-epollloop was given.
6418 if test "${enable_epollloop+set}" = set; then
6419   enableval=$enable_epollloop;
6420                           if test "$enableval" = yes; then
6421                             wx_cv_use_epollloop='wxUSE_EPOLL_DISPATCHER=yes'
6422                           else
6423                             wx_cv_use_epollloop='wxUSE_EPOLL_DISPATCHER=no'
6424                           fi
6425
6426 else
6427
6428                           wx_cv_use_epollloop='wxUSE_EPOLL_DISPATCHER=${'DEFAULT_wxUSE_EPOLL_DISPATCHER":-$defaultval}"
6429
6430 fi
6431
6432
6433           eval "$wx_cv_use_epollloop"
6434
6435           if test x"$enablestring" = xdisable; then
6436             if test $wxUSE_EPOLL_DISPATCHER = no; then
6437               result=yes
6438             else
6439               result=no
6440             fi
6441           else
6442             result=$wxUSE_EPOLL_DISPATCHER
6443           fi
6444
6445           { echo "$as_me:$LINENO: result: $result" >&5
6446 echo "${ECHO_T}$result" >&6; }
6447
6448
6449           enablestring=
6450           defaultval=$wxUSE_ALL_FEATURES
6451           if test -z "$defaultval"; then
6452               if test x"$enablestring" = xdisable; then
6453                   defaultval=yes
6454               else
6455                   defaultval=no
6456               fi
6457           fi
6458
6459           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-selectloop" >&5
6460 echo $ECHO_N "checking for --${enablestring:-enable}-selectloop... $ECHO_C" >&6; }
6461           # Check whether --enable-selectloop was given.
6462 if test "${enable_selectloop+set}" = set; then
6463   enableval=$enable_selectloop;
6464                           if test "$enableval" = yes; then
6465                             wx_cv_use_selectloop='wxUSE_SELECT_DISPATCHER=yes'
6466                           else
6467                             wx_cv_use_selectloop='wxUSE_SELECT_DISPATCHER=no'
6468                           fi
6469
6470 else
6471
6472                           wx_cv_use_selectloop='wxUSE_SELECT_DISPATCHER=${'DEFAULT_wxUSE_SELECT_DISPATCHER":-$defaultval}"
6473
6474 fi
6475
6476
6477           eval "$wx_cv_use_selectloop"
6478
6479           if test x"$enablestring" = xdisable; then
6480             if test $wxUSE_SELECT_DISPATCHER = no; then
6481               result=yes
6482             else
6483               result=no
6484             fi
6485           else
6486             result=$wxUSE_SELECT_DISPATCHER
6487           fi
6488
6489           { echo "$as_me:$LINENO: result: $result" >&5
6490 echo "${ECHO_T}$result" >&6; }
6491
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}-any" >&5
6505 echo $ECHO_N "checking for --${enablestring:-enable}-any... $ECHO_C" >&6; }
6506           # Check whether --enable-any was given.
6507 if test "${enable_any+set}" = set; then
6508   enableval=$enable_any;
6509                           if test "$enableval" = yes; then
6510                             wx_cv_use_any='wxUSE_ANY=yes'
6511                           else
6512                             wx_cv_use_any='wxUSE_ANY=no'
6513                           fi
6514
6515 else
6516
6517                           wx_cv_use_any='wxUSE_ANY=${'DEFAULT_wxUSE_ANY":-$defaultval}"
6518
6519 fi
6520
6521
6522           eval "$wx_cv_use_any"
6523
6524           if test x"$enablestring" = xdisable; then
6525             if test $wxUSE_ANY = no; then
6526               result=yes
6527             else
6528               result=no
6529             fi
6530           else
6531             result=$wxUSE_ANY
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}-apple_ieee" >&5
6549 echo $ECHO_N "checking for --${enablestring:-enable}-apple_ieee... $ECHO_C" >&6; }
6550           # Check whether --enable-apple_ieee was given.
6551 if test "${enable_apple_ieee+set}" = set; then
6552   enableval=$enable_apple_ieee;
6553                           if test "$enableval" = yes; then
6554                             wx_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
6555                           else
6556                             wx_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
6557                           fi
6558
6559 else
6560
6561                           wx_cv_use_apple_ieee='wxUSE_APPLE_IEEE=${'DEFAULT_wxUSE_APPLE_IEEE":-$defaultval}"
6562
6563 fi
6564
6565
6566           eval "$wx_cv_use_apple_ieee"
6567
6568           if test x"$enablestring" = xdisable; then
6569             if test $wxUSE_APPLE_IEEE = no; then
6570               result=yes
6571             else
6572               result=no
6573             fi
6574           else
6575             result=$wxUSE_APPLE_IEEE
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}-arcstream" >&5
6593 echo $ECHO_N "checking for --${enablestring:-enable}-arcstream... $ECHO_C" >&6; }
6594           # Check whether --enable-arcstream was given.
6595 if test "${enable_arcstream+set}" = set; then
6596   enableval=$enable_arcstream;
6597                           if test "$enableval" = yes; then
6598                             wx_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=yes'
6599                           else
6600                             wx_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=no'
6601                           fi
6602
6603 else
6604
6605                           wx_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=${'DEFAULT_wxUSE_ARCHIVE_STREAMS":-$defaultval}"
6606
6607 fi
6608
6609
6610           eval "$wx_cv_use_arcstream"
6611
6612           if test x"$enablestring" = xdisable; then
6613             if test $wxUSE_ARCHIVE_STREAMS = no; then
6614               result=yes
6615             else
6616               result=no
6617             fi
6618           else
6619             result=$wxUSE_ARCHIVE_STREAMS
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}-base64" >&5
6637 echo $ECHO_N "checking for --${enablestring:-enable}-base64... $ECHO_C" >&6; }
6638           # Check whether --enable-base64 was given.
6639 if test "${enable_base64+set}" = set; then
6640   enableval=$enable_base64;
6641                           if test "$enableval" = yes; then
6642                             wx_cv_use_base64='wxUSE_BASE64=yes'
6643                           else
6644                             wx_cv_use_base64='wxUSE_BASE64=no'
6645                           fi
6646
6647 else
6648
6649                           wx_cv_use_base64='wxUSE_BASE64=${'DEFAULT_wxUSE_BASE64":-$defaultval}"
6650
6651 fi
6652
6653
6654           eval "$wx_cv_use_base64"
6655
6656           if test x"$enablestring" = xdisable; then
6657             if test $wxUSE_BASE64 = no; then
6658               result=yes
6659             else
6660               result=no
6661             fi
6662           else
6663             result=$wxUSE_BASE64
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}-backtrace" >&5
6681 echo $ECHO_N "checking for --${enablestring:-enable}-backtrace... $ECHO_C" >&6; }
6682           # Check whether --enable-backtrace was given.
6683 if test "${enable_backtrace+set}" = set; then
6684   enableval=$enable_backtrace;
6685                           if test "$enableval" = yes; then
6686                             wx_cv_use_backtrace='wxUSE_STACKWALKER=yes'
6687                           else
6688                             wx_cv_use_backtrace='wxUSE_STACKWALKER=no'
6689                           fi
6690
6691 else
6692
6693                           wx_cv_use_backtrace='wxUSE_STACKWALKER=${'DEFAULT_wxUSE_STACKWALKER":-$defaultval}"
6694
6695 fi
6696
6697
6698           eval "$wx_cv_use_backtrace"
6699
6700           if test x"$enablestring" = xdisable; then
6701             if test $wxUSE_STACKWALKER = no; then
6702               result=yes
6703             else
6704               result=no
6705             fi
6706           else
6707             result=$wxUSE_STACKWALKER
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}-catch_segvs" >&5
6725 echo $ECHO_N "checking for --${enablestring:-enable}-catch_segvs... $ECHO_C" >&6; }
6726           # Check whether --enable-catch_segvs was given.
6727 if test "${enable_catch_segvs+set}" = set; then
6728   enableval=$enable_catch_segvs;
6729                           if test "$enableval" = yes; then
6730                             wx_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
6731                           else
6732                             wx_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
6733                           fi
6734
6735 else
6736
6737                           wx_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=${'DEFAULT_wxUSE_ON_FATAL_EXCEPTION":-$defaultval}"
6738
6739 fi
6740
6741
6742           eval "$wx_cv_use_catch_segvs"
6743
6744           if test x"$enablestring" = xdisable; then
6745             if test $wxUSE_ON_FATAL_EXCEPTION = no; then
6746               result=yes
6747             else
6748               result=no
6749             fi
6750           else
6751             result=$wxUSE_ON_FATAL_EXCEPTION
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}-cmdline" >&5
6769 echo $ECHO_N "checking for --${enablestring:-enable}-cmdline... $ECHO_C" >&6; }
6770           # Check whether --enable-cmdline was given.
6771 if test "${enable_cmdline+set}" = set; then
6772   enableval=$enable_cmdline;
6773                           if test "$enableval" = yes; then
6774                             wx_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes'
6775                           else
6776                             wx_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no'
6777                           fi
6778
6779 else
6780
6781                           wx_cv_use_cmdline='wxUSE_CMDLINE_PARSER=${'DEFAULT_wxUSE_CMDLINE_PARSER":-$defaultval}"
6782
6783 fi
6784
6785
6786           eval "$wx_cv_use_cmdline"
6787
6788           if test x"$enablestring" = xdisable; then
6789             if test $wxUSE_CMDLINE_PARSER = no; then
6790               result=yes
6791             else
6792               result=no
6793             fi
6794           else
6795             result=$wxUSE_CMDLINE_PARSER
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}-datetime" >&5
6813 echo $ECHO_N "checking for --${enablestring:-enable}-datetime... $ECHO_C" >&6; }
6814           # Check whether --enable-datetime was given.
6815 if test "${enable_datetime+set}" = set; then
6816   enableval=$enable_datetime;
6817                           if test "$enableval" = yes; then
6818                             wx_cv_use_datetime='wxUSE_DATETIME=yes'
6819                           else
6820                             wx_cv_use_datetime='wxUSE_DATETIME=no'
6821                           fi
6822
6823 else
6824
6825                           wx_cv_use_datetime='wxUSE_DATETIME=${'DEFAULT_wxUSE_DATETIME":-$defaultval}"
6826
6827 fi
6828
6829
6830           eval "$wx_cv_use_datetime"
6831
6832           if test x"$enablestring" = xdisable; then
6833             if test $wxUSE_DATETIME = no; then
6834               result=yes
6835             else
6836               result=no
6837             fi
6838           else
6839             result=$wxUSE_DATETIME
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}-debugreport" >&5
6857 echo $ECHO_N "checking for --${enablestring:-enable}-debugreport... $ECHO_C" >&6; }
6858           # Check whether --enable-debugreport was given.
6859 if test "${enable_debugreport+set}" = set; then
6860   enableval=$enable_debugreport;
6861                           if test "$enableval" = yes; then
6862                             wx_cv_use_debugreport='wxUSE_DEBUGREPORT=yes'
6863                           else
6864                             wx_cv_use_debugreport='wxUSE_DEBUGREPORT=no'
6865                           fi
6866
6867 else
6868
6869                           wx_cv_use_debugreport='wxUSE_DEBUGREPORT=${'DEFAULT_wxUSE_DEBUGREPORT":-$defaultval}"
6870
6871 fi
6872
6873
6874           eval "$wx_cv_use_debugreport"
6875
6876           if test x"$enablestring" = xdisable; then
6877             if test $wxUSE_DEBUGREPORT = no; then
6878               result=yes
6879             else
6880               result=no
6881             fi
6882           else
6883             result=$wxUSE_DEBUGREPORT
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}-dialupman" >&5
6901 echo $ECHO_N "checking for --${enablestring:-enable}-dialupman... $ECHO_C" >&6; }
6902           # Check whether --enable-dialupman was given.
6903 if test "${enable_dialupman+set}" = set; then
6904   enableval=$enable_dialupman;
6905                           if test "$enableval" = yes; then
6906                             wx_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
6907                           else
6908                             wx_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
6909                           fi
6910
6911 else
6912
6913                           wx_cv_use_dialupman='wxUSE_DIALUP_MANAGER=${'DEFAULT_wxUSE_DIALUP_MANAGER":-$defaultval}"
6914
6915 fi
6916
6917
6918           eval "$wx_cv_use_dialupman"
6919
6920           if test x"$enablestring" = xdisable; then
6921             if test $wxUSE_DIALUP_MANAGER = no; then
6922               result=yes
6923             else
6924               result=no
6925             fi
6926           else
6927             result=$wxUSE_DIALUP_MANAGER
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}-dynlib" >&5
6945 echo $ECHO_N "checking for --${enablestring:-enable}-dynlib... $ECHO_C" >&6; }
6946           # Check whether --enable-dynlib was given.
6947 if test "${enable_dynlib+set}" = set; then
6948   enableval=$enable_dynlib;
6949                           if test "$enableval" = yes; then
6950                             wx_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
6951                           else
6952                             wx_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
6953                           fi
6954
6955 else
6956
6957                           wx_cv_use_dynlib='wxUSE_DYNLIB_CLASS=${'DEFAULT_wxUSE_DYNLIB_CLASS":-$defaultval}"
6958
6959 fi
6960
6961
6962           eval "$wx_cv_use_dynlib"
6963
6964           if test x"$enablestring" = xdisable; then
6965             if test $wxUSE_DYNLIB_CLASS = no; then
6966               result=yes
6967             else
6968               result=no
6969             fi
6970           else
6971             result=$wxUSE_DYNLIB_CLASS
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}-dynamicloader" >&5
6989 echo $ECHO_N "checking for --${enablestring:-enable}-dynamicloader... $ECHO_C" >&6; }
6990           # Check whether --enable-dynamicloader was given.
6991 if test "${enable_dynamicloader+set}" = set; then
6992   enableval=$enable_dynamicloader;
6993                           if test "$enableval" = yes; then
6994                             wx_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes'
6995                           else
6996                             wx_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no'
6997                           fi
6998
6999 else
7000
7001                           wx_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=${'DEFAULT_wxUSE_DYNAMIC_LOADER":-$defaultval}"
7002
7003 fi
7004
7005
7006           eval "$wx_cv_use_dynamicloader"
7007
7008           if test x"$enablestring" = xdisable; then
7009             if test $wxUSE_DYNAMIC_LOADER = no; then
7010               result=yes
7011             else
7012               result=no
7013             fi
7014           else
7015             result=$wxUSE_DYNAMIC_LOADER
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}-exceptions" >&5
7033 echo $ECHO_N "checking for --${enablestring:-enable}-exceptions... $ECHO_C" >&6; }
7034           # Check whether --enable-exceptions was given.
7035 if test "${enable_exceptions+set}" = set; then
7036   enableval=$enable_exceptions;
7037                           if test "$enableval" = yes; then
7038                             wx_cv_use_exceptions='wxUSE_EXCEPTIONS=yes'
7039                           else
7040                             wx_cv_use_exceptions='wxUSE_EXCEPTIONS=no'
7041                           fi
7042
7043 else
7044
7045                           wx_cv_use_exceptions='wxUSE_EXCEPTIONS=${'DEFAULT_wxUSE_EXCEPTIONS":-$defaultval}"
7046
7047 fi
7048
7049
7050           eval "$wx_cv_use_exceptions"
7051
7052           if test x"$enablestring" = xdisable; then
7053             if test $wxUSE_EXCEPTIONS = no; then
7054               result=yes
7055             else
7056               result=no
7057             fi
7058           else
7059             result=$wxUSE_EXCEPTIONS
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}-ffile" >&5
7077 echo $ECHO_N "checking for --${enablestring:-enable}-ffile... $ECHO_C" >&6; }
7078           # Check whether --enable-ffile was given.
7079 if test "${enable_ffile+set}" = set; then
7080   enableval=$enable_ffile;
7081                           if test "$enableval" = yes; then
7082                             wx_cv_use_ffile='wxUSE_FFILE=yes'
7083                           else
7084                             wx_cv_use_ffile='wxUSE_FFILE=no'
7085                           fi
7086
7087 else
7088
7089                           wx_cv_use_ffile='wxUSE_FFILE=${'DEFAULT_wxUSE_FFILE":-$defaultval}"
7090
7091 fi
7092
7093
7094           eval "$wx_cv_use_ffile"
7095
7096           if test x"$enablestring" = xdisable; then
7097             if test $wxUSE_FFILE = no; then
7098               result=yes
7099             else
7100               result=no
7101             fi
7102           else
7103             result=$wxUSE_FFILE
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}-file" >&5
7121 echo $ECHO_N "checking for --${enablestring:-enable}-file... $ECHO_C" >&6; }
7122           # Check whether --enable-file was given.
7123 if test "${enable_file+set}" = set; then
7124   enableval=$enable_file;
7125                           if test "$enableval" = yes; then
7126                             wx_cv_use_file='wxUSE_FILE=yes'
7127                           else
7128                             wx_cv_use_file='wxUSE_FILE=no'
7129                           fi
7130
7131 else
7132
7133                           wx_cv_use_file='wxUSE_FILE=${'DEFAULT_wxUSE_FILE":-$defaultval}"
7134
7135 fi
7136
7137
7138           eval "$wx_cv_use_file"
7139
7140           if test x"$enablestring" = xdisable; then
7141             if test $wxUSE_FILE = no; then
7142               result=yes
7143             else
7144               result=no
7145             fi
7146           else
7147             result=$wxUSE_FILE
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}-filehistory" >&5
7165 echo $ECHO_N "checking for --${enablestring:-enable}-filehistory... $ECHO_C" >&6; }
7166           # Check whether --enable-filehistory was given.
7167 if test "${enable_filehistory+set}" = set; then
7168   enableval=$enable_filehistory;
7169                           if test "$enableval" = yes; then
7170                             wx_cv_use_filehistory='wxUSE_FILE_HISTORY=yes'
7171                           else
7172                             wx_cv_use_filehistory='wxUSE_FILE_HISTORY=no'
7173                           fi
7174
7175 else
7176
7177                           wx_cv_use_filehistory='wxUSE_FILE_HISTORY=${'DEFAULT_wxUSE_FILE_HISTORY":-$defaultval}"
7178
7179 fi
7180
7181
7182           eval "$wx_cv_use_filehistory"
7183
7184           if test x"$enablestring" = xdisable; then
7185             if test $wxUSE_FILE_HISTORY = no; then
7186               result=yes
7187             else
7188               result=no
7189             fi
7190           else
7191             result=$wxUSE_FILE_HISTORY
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}-filesystem" >&5
7209 echo $ECHO_N "checking for --${enablestring:-enable}-filesystem... $ECHO_C" >&6; }
7210           # Check whether --enable-filesystem was given.
7211 if test "${enable_filesystem+set}" = set; then
7212   enableval=$enable_filesystem;
7213                           if test "$enableval" = yes; then
7214                             wx_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
7215                           else
7216                             wx_cv_use_filesystem='wxUSE_FILESYSTEM=no'
7217                           fi
7218
7219 else
7220
7221                           wx_cv_use_filesystem='wxUSE_FILESYSTEM=${'DEFAULT_wxUSE_FILESYSTEM":-$defaultval}"
7222
7223 fi
7224
7225
7226           eval "$wx_cv_use_filesystem"
7227
7228           if test x"$enablestring" = xdisable; then
7229             if test $wxUSE_FILESYSTEM = no; then
7230               result=yes
7231             else
7232               result=no
7233             fi
7234           else
7235             result=$wxUSE_FILESYSTEM
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}-fontenum" >&5
7253 echo $ECHO_N "checking for --${enablestring:-enable}-fontenum... $ECHO_C" >&6; }
7254           # Check whether --enable-fontenum was given.
7255 if test "${enable_fontenum+set}" = set; then
7256   enableval=$enable_fontenum;
7257                           if test "$enableval" = yes; then
7258                             wx_cv_use_fontenum='wxUSE_FONTENUM=yes'
7259                           else
7260                             wx_cv_use_fontenum='wxUSE_FONTENUM=no'
7261                           fi
7262
7263 else
7264
7265                           wx_cv_use_fontenum='wxUSE_FONTENUM=${'DEFAULT_wxUSE_FONTENUM":-$defaultval}"
7266
7267 fi
7268
7269
7270           eval "$wx_cv_use_fontenum"
7271
7272           if test x"$enablestring" = xdisable; then
7273             if test $wxUSE_FONTENUM = no; then
7274               result=yes
7275             else
7276               result=no
7277             fi
7278           else
7279             result=$wxUSE_FONTENUM
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}-fontmap" >&5
7297 echo $ECHO_N "checking for --${enablestring:-enable}-fontmap... $ECHO_C" >&6; }
7298           # Check whether --enable-fontmap was given.
7299 if test "${enable_fontmap+set}" = set; then
7300   enableval=$enable_fontmap;
7301                           if test "$enableval" = yes; then
7302                             wx_cv_use_fontmap='wxUSE_FONTMAP=yes'
7303                           else
7304                             wx_cv_use_fontmap='wxUSE_FONTMAP=no'
7305                           fi
7306
7307 else
7308
7309                           wx_cv_use_fontmap='wxUSE_FONTMAP=${'DEFAULT_wxUSE_FONTMAP":-$defaultval}"
7310
7311 fi
7312
7313
7314           eval "$wx_cv_use_fontmap"
7315
7316           if test x"$enablestring" = xdisable; then
7317             if test $wxUSE_FONTMAP = no; then
7318               result=yes
7319             else
7320               result=no
7321             fi
7322           else
7323             result=$wxUSE_FONTMAP
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}-fs_archive" >&5
7341 echo $ECHO_N "checking for --${enablestring:-enable}-fs_archive... $ECHO_C" >&6; }
7342           # Check whether --enable-fs_archive was given.
7343 if test "${enable_fs_archive+set}" = set; then
7344   enableval=$enable_fs_archive;
7345                           if test "$enableval" = yes; then
7346                             wx_cv_use_fs_archive='wxUSE_FS_ARCHIVE=yes'
7347                           else
7348                             wx_cv_use_fs_archive='wxUSE_FS_ARCHIVE=no'
7349                           fi
7350
7351 else
7352
7353                           wx_cv_use_fs_archive='wxUSE_FS_ARCHIVE=${'DEFAULT_wxUSE_FS_ARCHIVE":-$defaultval}"
7354
7355 fi
7356
7357
7358           eval "$wx_cv_use_fs_archive"
7359
7360           if test x"$enablestring" = xdisable; then
7361             if test $wxUSE_FS_ARCHIVE = no; then
7362               result=yes
7363             else
7364               result=no
7365             fi
7366           else
7367             result=$wxUSE_FS_ARCHIVE
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}-fs_inet" >&5
7385 echo $ECHO_N "checking for --${enablestring:-enable}-fs_inet... $ECHO_C" >&6; }
7386           # Check whether --enable-fs_inet was given.
7387 if test "${enable_fs_inet+set}" = set; then
7388   enableval=$enable_fs_inet;
7389                           if test "$enableval" = yes; then
7390                             wx_cv_use_fs_inet='wxUSE_FS_INET=yes'
7391                           else
7392                             wx_cv_use_fs_inet='wxUSE_FS_INET=no'
7393                           fi
7394
7395 else
7396
7397                           wx_cv_use_fs_inet='wxUSE_FS_INET=${'DEFAULT_wxUSE_FS_INET":-$defaultval}"
7398
7399 fi
7400
7401
7402           eval "$wx_cv_use_fs_inet"
7403
7404           if test x"$enablestring" = xdisable; then
7405             if test $wxUSE_FS_INET = no; then
7406               result=yes
7407             else
7408               result=no
7409             fi
7410           else
7411             result=$wxUSE_FS_INET
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}-fs_zip" >&5
7429 echo $ECHO_N "checking for --${enablestring:-enable}-fs_zip... $ECHO_C" >&6; }
7430           # Check whether --enable-fs_zip was given.
7431 if test "${enable_fs_zip+set}" = set; then
7432   enableval=$enable_fs_zip;
7433                           if test "$enableval" = yes; then
7434                             wx_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
7435                           else
7436                             wx_cv_use_fs_zip='wxUSE_FS_ZIP=no'
7437                           fi
7438
7439 else
7440
7441                           wx_cv_use_fs_zip='wxUSE_FS_ZIP=${'DEFAULT_wxUSE_FS_ZIP":-$defaultval}"
7442
7443 fi
7444
7445
7446           eval "$wx_cv_use_fs_zip"
7447
7448           if test x"$enablestring" = xdisable; then
7449             if test $wxUSE_FS_ZIP = no; then
7450               result=yes
7451             else
7452               result=no
7453             fi
7454           else
7455             result=$wxUSE_FS_ZIP
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}-fswatcher" >&5
7473 echo $ECHO_N "checking for --${enablestring:-enable}-fswatcher... $ECHO_C" >&6; }
7474           # Check whether --enable-fswatcher was given.
7475 if test "${enable_fswatcher+set}" = set; then
7476   enableval=$enable_fswatcher;
7477                           if test "$enableval" = yes; then
7478                             wx_cv_use_fswatcher='wxUSE_FSWATCHER=yes'
7479                           else
7480                             wx_cv_use_fswatcher='wxUSE_FSWATCHER=no'
7481                           fi
7482
7483 else
7484
7485                           wx_cv_use_fswatcher='wxUSE_FSWATCHER=${'DEFAULT_wxUSE_FSWATCHER":-$defaultval}"
7486
7487 fi
7488
7489
7490           eval "$wx_cv_use_fswatcher"
7491
7492           if test x"$enablestring" = xdisable; then
7493             if test $wxUSE_FSWATCHER = no; then
7494               result=yes
7495             else
7496               result=no
7497             fi
7498           else
7499             result=$wxUSE_FSWATCHER
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}-geometry" >&5
7517 echo $ECHO_N "checking for --${enablestring:-enable}-geometry... $ECHO_C" >&6; }
7518           # Check whether --enable-geometry was given.
7519 if test "${enable_geometry+set}" = set; then
7520   enableval=$enable_geometry;
7521                           if test "$enableval" = yes; then
7522                             wx_cv_use_geometry='wxUSE_GEOMETRY=yes'
7523                           else
7524                             wx_cv_use_geometry='wxUSE_GEOMETRY=no'
7525                           fi
7526
7527 else
7528
7529                           wx_cv_use_geometry='wxUSE_GEOMETRY=${'DEFAULT_wxUSE_GEOMETRY":-$defaultval}"
7530
7531 fi
7532
7533
7534           eval "$wx_cv_use_geometry"
7535
7536           if test x"$enablestring" = xdisable; then
7537             if test $wxUSE_GEOMETRY = no; then
7538               result=yes
7539             else
7540               result=no
7541             fi
7542           else
7543             result=$wxUSE_GEOMETRY
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}-log" >&5
7561 echo $ECHO_N "checking for --${enablestring:-enable}-log... $ECHO_C" >&6; }
7562           # Check whether --enable-log was given.
7563 if test "${enable_log+set}" = set; then
7564   enableval=$enable_log;
7565                           if test "$enableval" = yes; then
7566                             wx_cv_use_log='wxUSE_LOG=yes'
7567                           else
7568                             wx_cv_use_log='wxUSE_LOG=no'
7569                           fi
7570
7571 else
7572
7573                           wx_cv_use_log='wxUSE_LOG=${'DEFAULT_wxUSE_LOG":-$defaultval}"
7574
7575 fi
7576
7577
7578           eval "$wx_cv_use_log"
7579
7580           if test x"$enablestring" = xdisable; then
7581             if test $wxUSE_LOG = no; then
7582               result=yes
7583             else
7584               result=no
7585             fi
7586           else
7587             result=$wxUSE_LOG
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}-longlong" >&5
7605 echo $ECHO_N "checking for --${enablestring:-enable}-longlong... $ECHO_C" >&6; }
7606           # Check whether --enable-longlong was given.
7607 if test "${enable_longlong+set}" = set; then
7608   enableval=$enable_longlong;
7609                           if test "$enableval" = yes; then
7610                             wx_cv_use_longlong='wxUSE_LONGLONG=yes'
7611                           else
7612                             wx_cv_use_longlong='wxUSE_LONGLONG=no'
7613                           fi
7614
7615 else
7616
7617                           wx_cv_use_longlong='wxUSE_LONGLONG=${'DEFAULT_wxUSE_LONGLONG":-$defaultval}"
7618
7619 fi
7620
7621
7622           eval "$wx_cv_use_longlong"
7623
7624           if test x"$enablestring" = xdisable; then
7625             if test $wxUSE_LONGLONG = no; then
7626               result=yes
7627             else
7628               result=no
7629             fi
7630           else
7631             result=$wxUSE_LONGLONG
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}-mimetype" >&5
7649 echo $ECHO_N "checking for --${enablestring:-enable}-mimetype... $ECHO_C" >&6; }
7650           # Check whether --enable-mimetype was given.
7651 if test "${enable_mimetype+set}" = set; then
7652   enableval=$enable_mimetype;
7653                           if test "$enableval" = yes; then
7654                             wx_cv_use_mimetype='wxUSE_MIMETYPE=yes'
7655                           else
7656                             wx_cv_use_mimetype='wxUSE_MIMETYPE=no'
7657                           fi
7658
7659 else
7660
7661                           wx_cv_use_mimetype='wxUSE_MIMETYPE=${'DEFAULT_wxUSE_MIMETYPE":-$defaultval}"
7662
7663 fi
7664
7665
7666           eval "$wx_cv_use_mimetype"
7667
7668           if test x"$enablestring" = xdisable; then
7669             if test $wxUSE_MIMETYPE = no; then
7670               result=yes
7671             else
7672               result=no
7673             fi
7674           else
7675             result=$wxUSE_MIMETYPE
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}-printfposparam" >&5
7693 echo $ECHO_N "checking for --${enablestring:-enable}-printfposparam... $ECHO_C" >&6; }
7694           # Check whether --enable-printfposparam was given.
7695 if test "${enable_printfposparam+set}" = set; then
7696   enableval=$enable_printfposparam;
7697                           if test "$enableval" = yes; then
7698                             wx_cv_use_printfposparam='wxUSE_PRINTF_POS_PARAMS=yes'
7699                           else
7700                             wx_cv_use_printfposparam='wxUSE_PRINTF_POS_PARAMS=no'
7701                           fi
7702
7703 else
7704
7705                           wx_cv_use_printfposparam='wxUSE_PRINTF_POS_PARAMS=${'DEFAULT_wxUSE_PRINTF_POS_PARAMS":-$defaultval}"
7706
7707 fi
7708
7709
7710           eval "$wx_cv_use_printfposparam"
7711
7712           if test x"$enablestring" = xdisable; then
7713             if test $wxUSE_PRINTF_POS_PARAMS = no; then
7714               result=yes
7715             else
7716               result=no
7717             fi
7718           else
7719             result=$wxUSE_PRINTF_POS_PARAMS
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}-snglinst" >&5
7737 echo $ECHO_N "checking for --${enablestring:-enable}-snglinst... $ECHO_C" >&6; }
7738           # Check whether --enable-snglinst was given.
7739 if test "${enable_snglinst+set}" = set; then
7740   enableval=$enable_snglinst;
7741                           if test "$enableval" = yes; then
7742                             wx_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
7743                           else
7744                             wx_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
7745                           fi
7746
7747 else
7748
7749                           wx_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=${'DEFAULT_wxUSE_SNGLINST_CHECKER":-$defaultval}"
7750
7751 fi
7752
7753
7754           eval "$wx_cv_use_snglinst"
7755
7756           if test x"$enablestring" = xdisable; then
7757             if test $wxUSE_SNGLINST_CHECKER = no; then
7758               result=yes
7759             else
7760               result=no
7761             fi
7762           else
7763             result=$wxUSE_SNGLINST_CHECKER
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}-sound" >&5
7781 echo $ECHO_N "checking for --${enablestring:-enable}-sound... $ECHO_C" >&6; }
7782           # Check whether --enable-sound was given.
7783 if test "${enable_sound+set}" = set; then
7784   enableval=$enable_sound;
7785                           if test "$enableval" = yes; then
7786                             wx_cv_use_sound='wxUSE_SOUND=yes'
7787                           else
7788                             wx_cv_use_sound='wxUSE_SOUND=no'
7789                           fi
7790
7791 else
7792
7793                           wx_cv_use_sound='wxUSE_SOUND=${'DEFAULT_wxUSE_SOUND":-$defaultval}"
7794
7795 fi
7796
7797
7798           eval "$wx_cv_use_sound"
7799
7800           if test x"$enablestring" = xdisable; then
7801             if test $wxUSE_SOUND = no; then
7802               result=yes
7803             else
7804               result=no
7805             fi
7806           else
7807             result=$wxUSE_SOUND
7808           fi
7809
7810           { echo "$as_me:$LINENO: result: $result" >&5
7811 echo "${ECHO_T}$result" >&6; }
7812
7813
7814           enablestring=
7815           defaultval=$wxUSE_ALL_FEATURES
7816           if test -z "$defaultval"; then
7817               if test x"$enablestring" = xdisable; then
7818                   defaultval=yes
7819               else
7820                   defaultval=no
7821               fi
7822           fi
7823
7824           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stdpaths" >&5
7825 echo $ECHO_N "checking for --${enablestring:-enable}-stdpaths... $ECHO_C" >&6; }
7826           # Check whether --enable-stdpaths was given.
7827 if test "${enable_stdpaths+set}" = set; then
7828   enableval=$enable_stdpaths;
7829                           if test "$enableval" = yes; then
7830                             wx_cv_use_stdpaths='wxUSE_STDPATHS=yes'
7831                           else
7832                             wx_cv_use_stdpaths='wxUSE_STDPATHS=no'
7833                           fi
7834
7835 else
7836
7837                           wx_cv_use_stdpaths='wxUSE_STDPATHS=${'DEFAULT_wxUSE_STDPATHS":-$defaultval}"
7838
7839 fi
7840
7841
7842           eval "$wx_cv_use_stdpaths"
7843
7844           if test x"$enablestring" = xdisable; then
7845             if test $wxUSE_STDPATHS = no; then
7846               result=yes
7847             else
7848               result=no
7849             fi
7850           else
7851             result=$wxUSE_STDPATHS
7852           fi
7853
7854           { echo "$as_me:$LINENO: result: $result" >&5
7855 echo "${ECHO_T}$result" >&6; }
7856
7857
7858           enablestring=
7859           defaultval=$wxUSE_ALL_FEATURES
7860           if test -z "$defaultval"; then
7861               if test x"$enablestring" = xdisable; then
7862                   defaultval=yes
7863               else
7864                   defaultval=no
7865               fi
7866           fi
7867
7868           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stopwatch" >&5
7869 echo $ECHO_N "checking for --${enablestring:-enable}-stopwatch... $ECHO_C" >&6; }
7870           # Check whether --enable-stopwatch was given.
7871 if test "${enable_stopwatch+set}" = set; then
7872   enableval=$enable_stopwatch;
7873                           if test "$enableval" = yes; then
7874                             wx_cv_use_stopwatch='wxUSE_STOPWATCH=yes'
7875                           else
7876                             wx_cv_use_stopwatch='wxUSE_STOPWATCH=no'
7877                           fi
7878
7879 else
7880
7881                           wx_cv_use_stopwatch='wxUSE_STOPWATCH=${'DEFAULT_wxUSE_STOPWATCH":-$defaultval}"
7882
7883 fi
7884
7885
7886           eval "$wx_cv_use_stopwatch"
7887
7888           if test x"$enablestring" = xdisable; then
7889             if test $wxUSE_STOPWATCH = no; then
7890               result=yes
7891             else
7892               result=no
7893             fi
7894           else
7895             result=$wxUSE_STOPWATCH
7896           fi
7897
7898           { echo "$as_me:$LINENO: result: $result" >&5
7899 echo "${ECHO_T}$result" >&6; }
7900
7901
7902           enablestring=
7903           defaultval=$wxUSE_ALL_FEATURES
7904           if test -z "$defaultval"; then
7905               if test x"$enablestring" = xdisable; then
7906                   defaultval=yes
7907               else
7908                   defaultval=no
7909               fi
7910           fi
7911
7912           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-streams" >&5
7913 echo $ECHO_N "checking for --${enablestring:-enable}-streams... $ECHO_C" >&6; }
7914           # Check whether --enable-streams was given.
7915 if test "${enable_streams+set}" = set; then
7916   enableval=$enable_streams;
7917                           if test "$enableval" = yes; then
7918                             wx_cv_use_streams='wxUSE_STREAMS=yes'
7919                           else
7920                             wx_cv_use_streams='wxUSE_STREAMS=no'
7921                           fi
7922
7923 else
7924
7925                           wx_cv_use_streams='wxUSE_STREAMS=${'DEFAULT_wxUSE_STREAMS":-$defaultval}"
7926
7927 fi
7928
7929
7930           eval "$wx_cv_use_streams"
7931
7932           if test x"$enablestring" = xdisable; then
7933             if test $wxUSE_STREAMS = no; then
7934               result=yes
7935             else
7936               result=no
7937             fi
7938           else
7939             result=$wxUSE_STREAMS
7940           fi
7941
7942           { echo "$as_me:$LINENO: result: $result" >&5
7943 echo "${ECHO_T}$result" >&6; }
7944
7945
7946           enablestring=
7947           defaultval=$wxUSE_ALL_FEATURES
7948           if test -z "$defaultval"; then
7949               if test x"$enablestring" = xdisable; then
7950                   defaultval=yes
7951               else
7952                   defaultval=no
7953               fi
7954           fi
7955
7956           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sysoptions" >&5
7957 echo $ECHO_N "checking for --${enablestring:-enable}-sysoptions... $ECHO_C" >&6; }
7958           # Check whether --enable-sysoptions was given.
7959 if test "${enable_sysoptions+set}" = set; then
7960   enableval=$enable_sysoptions;
7961                           if test "$enableval" = yes; then
7962                             wx_cv_use_sysoptions='wxUSE_SYSTEM_OPTIONS=yes'
7963                           else
7964                             wx_cv_use_sysoptions='wxUSE_SYSTEM_OPTIONS=no'
7965                           fi
7966
7967 else
7968
7969                           wx_cv_use_sysoptions='wxUSE_SYSTEM_OPTIONS=${'DEFAULT_wxUSE_SYSTEM_OPTIONS":-$defaultval}"
7970
7971 fi
7972
7973
7974           eval "$wx_cv_use_sysoptions"
7975
7976           if test x"$enablestring" = xdisable; then
7977             if test $wxUSE_SYSTEM_OPTIONS = no; then
7978               result=yes
7979             else
7980               result=no
7981             fi
7982           else
7983             result=$wxUSE_SYSTEM_OPTIONS
7984           fi
7985
7986           { echo "$as_me:$LINENO: result: $result" >&5
7987 echo "${ECHO_T}$result" >&6; }
7988
7989
7990           enablestring=
7991           defaultval=$wxUSE_ALL_FEATURES
7992           if test -z "$defaultval"; then
7993               if test x"$enablestring" = xdisable; then
7994                   defaultval=yes
7995               else
7996                   defaultval=no
7997               fi
7998           fi
7999
8000           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tarstream" >&5
8001 echo $ECHO_N "checking for --${enablestring:-enable}-tarstream... $ECHO_C" >&6; }
8002           # Check whether --enable-tarstream was given.
8003 if test "${enable_tarstream+set}" = set; then
8004   enableval=$enable_tarstream;
8005                           if test "$enableval" = yes; then
8006                             wx_cv_use_tarstream='wxUSE_TARSTREAM=yes'
8007                           else
8008                             wx_cv_use_tarstream='wxUSE_TARSTREAM=no'
8009                           fi
8010
8011 else
8012
8013                           wx_cv_use_tarstream='wxUSE_TARSTREAM=${'DEFAULT_wxUSE_TARSTREAM":-$defaultval}"
8014
8015 fi
8016
8017
8018           eval "$wx_cv_use_tarstream"
8019
8020           if test x"$enablestring" = xdisable; then
8021             if test $wxUSE_TARSTREAM = no; then
8022               result=yes
8023             else
8024               result=no
8025             fi
8026           else
8027             result=$wxUSE_TARSTREAM
8028           fi
8029
8030           { echo "$as_me:$LINENO: result: $result" >&5
8031 echo "${ECHO_T}$result" >&6; }
8032
8033
8034           enablestring=
8035           defaultval=$wxUSE_ALL_FEATURES
8036           if test -z "$defaultval"; then
8037               if test x"$enablestring" = xdisable; then
8038                   defaultval=yes
8039               else
8040                   defaultval=no
8041               fi
8042           fi
8043
8044           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textbuf" >&5
8045 echo $ECHO_N "checking for --${enablestring:-enable}-textbuf... $ECHO_C" >&6; }
8046           # Check whether --enable-textbuf was given.
8047 if test "${enable_textbuf+set}" = set; then
8048   enableval=$enable_textbuf;
8049                           if test "$enableval" = yes; then
8050                             wx_cv_use_textbuf='wxUSE_TEXTBUFFER=yes'
8051                           else
8052                             wx_cv_use_textbuf='wxUSE_TEXTBUFFER=no'
8053                           fi
8054
8055 else
8056
8057                           wx_cv_use_textbuf='wxUSE_TEXTBUFFER=${'DEFAULT_wxUSE_TEXTBUFFER":-$defaultval}"
8058
8059 fi
8060
8061
8062           eval "$wx_cv_use_textbuf"
8063
8064           if test x"$enablestring" = xdisable; then
8065             if test $wxUSE_TEXTBUFFER = no; then
8066               result=yes
8067             else
8068               result=no
8069             fi
8070           else
8071             result=$wxUSE_TEXTBUFFER
8072           fi
8073
8074           { echo "$as_me:$LINENO: result: $result" >&5
8075 echo "${ECHO_T}$result" >&6; }
8076
8077
8078           enablestring=
8079           defaultval=$wxUSE_ALL_FEATURES
8080           if test -z "$defaultval"; then
8081               if test x"$enablestring" = xdisable; then
8082                   defaultval=yes
8083               else
8084                   defaultval=no
8085               fi
8086           fi
8087
8088           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textfile" >&5
8089 echo $ECHO_N "checking for --${enablestring:-enable}-textfile... $ECHO_C" >&6; }
8090           # Check whether --enable-textfile was given.
8091 if test "${enable_textfile+set}" = set; then
8092   enableval=$enable_textfile;
8093                           if test "$enableval" = yes; then
8094                             wx_cv_use_textfile='wxUSE_TEXTFILE=yes'
8095                           else
8096                             wx_cv_use_textfile='wxUSE_TEXTFILE=no'
8097                           fi
8098
8099 else
8100
8101                           wx_cv_use_textfile='wxUSE_TEXTFILE=${'DEFAULT_wxUSE_TEXTFILE":-$defaultval}"
8102
8103 fi
8104
8105
8106           eval "$wx_cv_use_textfile"
8107
8108           if test x"$enablestring" = xdisable; then
8109             if test $wxUSE_TEXTFILE = no; then
8110               result=yes
8111             else
8112               result=no
8113             fi
8114           else
8115             result=$wxUSE_TEXTFILE
8116           fi
8117
8118           { echo "$as_me:$LINENO: result: $result" >&5
8119 echo "${ECHO_T}$result" >&6; }
8120
8121
8122           enablestring=
8123           defaultval=$wxUSE_ALL_FEATURES
8124           if test -z "$defaultval"; then
8125               if test x"$enablestring" = xdisable; then
8126                   defaultval=yes
8127               else
8128                   defaultval=no
8129               fi
8130           fi
8131
8132           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-timer" >&5
8133 echo $ECHO_N "checking for --${enablestring:-enable}-timer... $ECHO_C" >&6; }
8134           # Check whether --enable-timer was given.
8135 if test "${enable_timer+set}" = set; then
8136   enableval=$enable_timer;
8137                           if test "$enableval" = yes; then
8138                             wx_cv_use_timer='wxUSE_TIMER=yes'
8139                           else
8140                             wx_cv_use_timer='wxUSE_TIMER=no'
8141                           fi
8142
8143 else
8144
8145                           wx_cv_use_timer='wxUSE_TIMER=${'DEFAULT_wxUSE_TIMER":-$defaultval}"
8146
8147 fi
8148
8149
8150           eval "$wx_cv_use_timer"
8151
8152           if test x"$enablestring" = xdisable; then
8153             if test $wxUSE_TIMER = no; then
8154               result=yes
8155             else
8156               result=no
8157             fi
8158           else
8159             result=$wxUSE_TIMER
8160           fi
8161
8162           { echo "$as_me:$LINENO: result: $result" >&5
8163 echo "${ECHO_T}$result" >&6; }
8164
8165
8166           enablestring=
8167           defaultval=$wxUSE_ALL_FEATURES
8168           if test -z "$defaultval"; then
8169               if test x"$enablestring" = xdisable; then
8170                   defaultval=yes
8171               else
8172                   defaultval=no
8173               fi
8174           fi
8175
8176           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-variant" >&5
8177 echo $ECHO_N "checking for --${enablestring:-enable}-variant... $ECHO_C" >&6; }
8178           # Check whether --enable-variant was given.
8179 if test "${enable_variant+set}" = set; then
8180   enableval=$enable_variant;
8181                           if test "$enableval" = yes; then
8182                             wx_cv_use_variant='wxUSE_VARIANT=yes'
8183                           else
8184                             wx_cv_use_variant='wxUSE_VARIANT=no'
8185                           fi
8186
8187 else
8188
8189                           wx_cv_use_variant='wxUSE_VARIANT=${'DEFAULT_wxUSE_VARIANT":-$defaultval}"
8190
8191 fi
8192
8193
8194           eval "$wx_cv_use_variant"
8195
8196           if test x"$enablestring" = xdisable; then
8197             if test $wxUSE_VARIANT = no; then
8198               result=yes
8199             else
8200               result=no
8201             fi
8202           else
8203             result=$wxUSE_VARIANT
8204           fi
8205
8206           { echo "$as_me:$LINENO: result: $result" >&5
8207 echo "${ECHO_T}$result" >&6; }
8208
8209
8210           enablestring=
8211           defaultval=$wxUSE_ALL_FEATURES
8212           if test -z "$defaultval"; then
8213               if test x"$enablestring" = xdisable; then
8214                   defaultval=yes
8215               else
8216                   defaultval=no
8217               fi
8218           fi
8219
8220           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-zipstream" >&5
8221 echo $ECHO_N "checking for --${enablestring:-enable}-zipstream... $ECHO_C" >&6; }
8222           # Check whether --enable-zipstream was given.
8223 if test "${enable_zipstream+set}" = set; then
8224   enableval=$enable_zipstream;
8225                           if test "$enableval" = yes; then
8226                             wx_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
8227                           else
8228                             wx_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
8229                           fi
8230
8231 else
8232
8233                           wx_cv_use_zipstream='wxUSE_ZIPSTREAM=${'DEFAULT_wxUSE_ZIPSTREAM":-$defaultval}"
8234
8235 fi
8236
8237
8238           eval "$wx_cv_use_zipstream"
8239
8240           if test x"$enablestring" = xdisable; then
8241             if test $wxUSE_ZIPSTREAM = no; then
8242               result=yes
8243             else
8244               result=no
8245             fi
8246           else
8247             result=$wxUSE_ZIPSTREAM
8248           fi
8249
8250           { echo "$as_me:$LINENO: result: $result" >&5
8251 echo "${ECHO_T}$result" >&6; }
8252
8253
8254
8255           enablestring=
8256           defaultval=$wxUSE_ALL_FEATURES
8257           if test -z "$defaultval"; then
8258               if test x"$enablestring" = xdisable; then
8259                   defaultval=yes
8260               else
8261                   defaultval=no
8262               fi
8263           fi
8264
8265           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-url" >&5
8266 echo $ECHO_N "checking for --${enablestring:-enable}-url... $ECHO_C" >&6; }
8267           # Check whether --enable-url was given.
8268 if test "${enable_url+set}" = set; then
8269   enableval=$enable_url;
8270                           if test "$enableval" = yes; then
8271                             wx_cv_use_url='wxUSE_URL=yes'
8272                           else
8273                             wx_cv_use_url='wxUSE_URL=no'
8274                           fi
8275
8276 else
8277
8278                           wx_cv_use_url='wxUSE_URL=${'DEFAULT_wxUSE_URL":-$defaultval}"
8279
8280 fi
8281
8282
8283           eval "$wx_cv_use_url"
8284
8285           if test x"$enablestring" = xdisable; then
8286             if test $wxUSE_URL = no; then
8287               result=yes
8288             else
8289               result=no
8290             fi
8291           else
8292             result=$wxUSE_URL
8293           fi
8294
8295           { echo "$as_me:$LINENO: result: $result" >&5
8296 echo "${ECHO_T}$result" >&6; }
8297
8298
8299           enablestring=
8300           defaultval=$wxUSE_ALL_FEATURES
8301           if test -z "$defaultval"; then
8302               if test x"$enablestring" = xdisable; then
8303                   defaultval=yes
8304               else
8305                   defaultval=no
8306               fi
8307           fi
8308
8309           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol" >&5
8310 echo $ECHO_N "checking for --${enablestring:-enable}-protocol... $ECHO_C" >&6; }
8311           # Check whether --enable-protocol was given.
8312 if test "${enable_protocol+set}" = set; then
8313   enableval=$enable_protocol;
8314                           if test "$enableval" = yes; then
8315                             wx_cv_use_protocol='wxUSE_PROTOCOL=yes'
8316                           else
8317                             wx_cv_use_protocol='wxUSE_PROTOCOL=no'
8318                           fi
8319
8320 else
8321
8322                           wx_cv_use_protocol='wxUSE_PROTOCOL=${'DEFAULT_wxUSE_PROTOCOL":-$defaultval}"
8323
8324 fi
8325
8326
8327           eval "$wx_cv_use_protocol"
8328
8329           if test x"$enablestring" = xdisable; then
8330             if test $wxUSE_PROTOCOL = no; then
8331               result=yes
8332             else
8333               result=no
8334             fi
8335           else
8336             result=$wxUSE_PROTOCOL
8337           fi
8338
8339           { echo "$as_me:$LINENO: result: $result" >&5
8340 echo "${ECHO_T}$result" >&6; }
8341
8342
8343           enablestring=
8344           defaultval=$wxUSE_ALL_FEATURES
8345           if test -z "$defaultval"; then
8346               if test x"$enablestring" = xdisable; then
8347                   defaultval=yes
8348               else
8349                   defaultval=no
8350               fi
8351           fi
8352
8353           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_http" >&5
8354 echo $ECHO_N "checking for --${enablestring:-enable}-protocol_http... $ECHO_C" >&6; }
8355           # Check whether --enable-protocol_http was given.
8356 if test "${enable_protocol_http+set}" = set; then
8357   enableval=$enable_protocol_http;
8358                           if test "$enableval" = yes; then
8359                             wx_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes'
8360                           else
8361                             wx_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no'
8362                           fi
8363
8364 else
8365
8366                           wx_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=${'DEFAULT_wxUSE_PROTOCOL_HTTP":-$defaultval}"
8367
8368 fi
8369
8370
8371           eval "$wx_cv_use_protocol_http"
8372
8373           if test x"$enablestring" = xdisable; then
8374             if test $wxUSE_PROTOCOL_HTTP = no; then
8375               result=yes
8376             else
8377               result=no
8378             fi
8379           else
8380             result=$wxUSE_PROTOCOL_HTTP
8381           fi
8382
8383           { echo "$as_me:$LINENO: result: $result" >&5
8384 echo "${ECHO_T}$result" >&6; }
8385
8386
8387           enablestring=
8388           defaultval=$wxUSE_ALL_FEATURES
8389           if test -z "$defaultval"; then
8390               if test x"$enablestring" = xdisable; then
8391                   defaultval=yes
8392               else
8393                   defaultval=no
8394               fi
8395           fi
8396
8397           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_ftp" >&5
8398 echo $ECHO_N "checking for --${enablestring:-enable}-protocol_ftp... $ECHO_C" >&6; }
8399           # Check whether --enable-protocol_ftp was given.
8400 if test "${enable_protocol_ftp+set}" = set; then
8401   enableval=$enable_protocol_ftp;
8402                           if test "$enableval" = yes; then
8403                             wx_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes'
8404                           else
8405                             wx_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no'
8406                           fi
8407
8408 else
8409
8410                           wx_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=${'DEFAULT_wxUSE_PROTOCOL_FTP":-$defaultval}"
8411
8412 fi
8413
8414
8415           eval "$wx_cv_use_protocol_ftp"
8416
8417           if test x"$enablestring" = xdisable; then
8418             if test $wxUSE_PROTOCOL_FTP = no; then
8419               result=yes
8420             else
8421               result=no
8422             fi
8423           else
8424             result=$wxUSE_PROTOCOL_FTP
8425           fi
8426
8427           { echo "$as_me:$LINENO: result: $result" >&5
8428 echo "${ECHO_T}$result" >&6; }
8429
8430
8431           enablestring=
8432           defaultval=$wxUSE_ALL_FEATURES
8433           if test -z "$defaultval"; then
8434               if test x"$enablestring" = xdisable; then
8435                   defaultval=yes
8436               else
8437                   defaultval=no
8438               fi
8439           fi
8440
8441           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_file" >&5
8442 echo $ECHO_N "checking for --${enablestring:-enable}-protocol_file... $ECHO_C" >&6; }
8443           # Check whether --enable-protocol_file was given.
8444 if test "${enable_protocol_file+set}" = set; then
8445   enableval=$enable_protocol_file;
8446                           if test "$enableval" = yes; then
8447                             wx_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes'
8448                           else
8449                             wx_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no'
8450                           fi
8451
8452 else
8453
8454                           wx_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=${'DEFAULT_wxUSE_PROTOCOL_FILE":-$defaultval}"
8455
8456 fi
8457
8458
8459           eval "$wx_cv_use_protocol_file"
8460
8461           if test x"$enablestring" = xdisable; then
8462             if test $wxUSE_PROTOCOL_FILE = no; then
8463               result=yes
8464             else
8465               result=no
8466             fi
8467           else
8468             result=$wxUSE_PROTOCOL_FILE
8469           fi
8470
8471           { echo "$as_me:$LINENO: result: $result" >&5
8472 echo "${ECHO_T}$result" >&6; }
8473
8474
8475
8476           enablestring=
8477           defaultval=$wxUSE_ALL_FEATURES
8478           if test -z "$defaultval"; then
8479               if test x"$enablestring" = xdisable; then
8480                   defaultval=yes
8481               else
8482                   defaultval=no
8483               fi
8484           fi
8485
8486           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-threads" >&5
8487 echo $ECHO_N "checking for --${enablestring:-enable}-threads... $ECHO_C" >&6; }
8488           # Check whether --enable-threads was given.
8489 if test "${enable_threads+set}" = set; then
8490   enableval=$enable_threads;
8491                           if test "$enableval" = yes; then
8492                             wx_cv_use_threads='wxUSE_THREADS=yes'
8493                           else
8494                             wx_cv_use_threads='wxUSE_THREADS=no'
8495                           fi
8496
8497 else
8498
8499                           wx_cv_use_threads='wxUSE_THREADS=${'DEFAULT_wxUSE_THREADS":-$defaultval}"
8500
8501 fi
8502
8503
8504           eval "$wx_cv_use_threads"
8505
8506           if test x"$enablestring" = xdisable; then
8507             if test $wxUSE_THREADS = no; then
8508               result=yes
8509             else
8510               result=no
8511             fi
8512           else
8513             result=$wxUSE_THREADS
8514           fi
8515
8516           { echo "$as_me:$LINENO: result: $result" >&5
8517 echo "${ECHO_T}$result" >&6; }
8518
8519
8520
8521           enablestring=
8522           defaultval=
8523           if test -z "$defaultval"; then
8524               if test x"$enablestring" = xdisable; then
8525                   defaultval=yes
8526               else
8527                   defaultval=no
8528               fi
8529           fi
8530
8531           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-iniconf" >&5
8532 echo $ECHO_N "checking for --${enablestring:-enable}-iniconf... $ECHO_C" >&6; }
8533           # Check whether --enable-iniconf was given.
8534 if test "${enable_iniconf+set}" = set; then
8535   enableval=$enable_iniconf;
8536                           if test "$enableval" = yes; then
8537                             wx_cv_use_iniconf='wxUSE_INICONF=yes'
8538                           else
8539                             wx_cv_use_iniconf='wxUSE_INICONF=no'
8540                           fi
8541
8542 else
8543
8544                           wx_cv_use_iniconf='wxUSE_INICONF=${'DEFAULT_wxUSE_INICONF":-$defaultval}"
8545
8546 fi
8547
8548
8549           eval "$wx_cv_use_iniconf"
8550
8551           if test x"$enablestring" = xdisable; then
8552             if test $wxUSE_INICONF = no; then
8553               result=yes
8554             else
8555               result=no
8556             fi
8557           else
8558             result=$wxUSE_INICONF
8559           fi
8560
8561           { echo "$as_me:$LINENO: result: $result" >&5
8562 echo "${ECHO_T}$result" >&6; }
8563
8564
8565           enablestring=
8566           defaultval=$wxUSE_ALL_FEATURES
8567           if test -z "$defaultval"; then
8568               if test x"$enablestring" = xdisable; then
8569                   defaultval=yes
8570               else
8571                   defaultval=no
8572               fi
8573           fi
8574
8575           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-regkey" >&5
8576 echo $ECHO_N "checking for --${enablestring:-enable}-regkey... $ECHO_C" >&6; }
8577           # Check whether --enable-regkey was given.
8578 if test "${enable_regkey+set}" = set; then
8579   enableval=$enable_regkey;
8580                           if test "$enableval" = yes; then
8581                             wx_cv_use_regkey='wxUSE_REGKEY=yes'
8582                           else
8583                             wx_cv_use_regkey='wxUSE_REGKEY=no'
8584                           fi
8585
8586 else
8587
8588                           wx_cv_use_regkey='wxUSE_REGKEY=${'DEFAULT_wxUSE_REGKEY":-$defaultval}"
8589
8590 fi
8591
8592
8593           eval "$wx_cv_use_regkey"
8594
8595           if test x"$enablestring" = xdisable; then
8596             if test $wxUSE_REGKEY = no; then
8597               result=yes
8598             else
8599               result=no
8600             fi
8601           else
8602             result=$wxUSE_REGKEY
8603           fi
8604
8605           { echo "$as_me:$LINENO: result: $result" >&5
8606 echo "${ECHO_T}$result" >&6; }
8607
8608
8609 if test "$wxUSE_GUI" = "yes"; then
8610
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}-docview" >&5
8624 echo $ECHO_N "checking for --${enablestring:-enable}-docview... $ECHO_C" >&6; }
8625           # Check whether --enable-docview was given.
8626 if test "${enable_docview+set}" = set; then
8627   enableval=$enable_docview;
8628                           if test "$enableval" = yes; then
8629                             wx_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
8630                           else
8631                             wx_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
8632                           fi
8633
8634 else
8635
8636                           wx_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=${'DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE":-$defaultval}"
8637
8638 fi
8639
8640
8641           eval "$wx_cv_use_docview"
8642
8643           if test x"$enablestring" = xdisable; then
8644             if test $wxUSE_DOC_VIEW_ARCHITECTURE = no; then
8645               result=yes
8646             else
8647               result=no
8648             fi
8649           else
8650             result=$wxUSE_DOC_VIEW_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}-help" >&5
8668 echo $ECHO_N "checking for --${enablestring:-enable}-help... $ECHO_C" >&6; }
8669           # Check whether --enable-help was given.
8670 if test "${enable_help+set}" = set; then
8671   enableval=$enable_help;
8672                           if test "$enableval" = yes; then
8673                             wx_cv_use_help='wxUSE_HELP=yes'
8674                           else
8675                             wx_cv_use_help='wxUSE_HELP=no'
8676                           fi
8677
8678 else
8679
8680                           wx_cv_use_help='wxUSE_HELP=${'DEFAULT_wxUSE_HELP":-$defaultval}"
8681
8682 fi
8683
8684
8685           eval "$wx_cv_use_help"
8686
8687           if test x"$enablestring" = xdisable; then
8688             if test $wxUSE_HELP = no; then
8689               result=yes
8690             else
8691               result=no
8692             fi
8693           else
8694             result=$wxUSE_HELP
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}-mshtmlhelp" >&5
8712 echo $ECHO_N "checking for --${enablestring:-enable}-mshtmlhelp... $ECHO_C" >&6; }
8713           # Check whether --enable-mshtmlhelp was given.
8714 if test "${enable_mshtmlhelp+set}" = set; then
8715   enableval=$enable_mshtmlhelp;
8716                           if test "$enableval" = yes; then
8717                             wx_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes'
8718                           else
8719                             wx_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no'
8720                           fi
8721
8722 else
8723
8724                           wx_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=${'DEFAULT_wxUSE_MS_HTML_HELP":-$defaultval}"
8725
8726 fi
8727
8728
8729           eval "$wx_cv_use_mshtmlhelp"
8730
8731           if test x"$enablestring" = xdisable; then
8732             if test $wxUSE_MS_HTML_HELP = no; then
8733               result=yes
8734             else
8735               result=no
8736             fi
8737           else
8738             result=$wxUSE_MS_HTML_HELP
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}-html" >&5
8756 echo $ECHO_N "checking for --${enablestring:-enable}-html... $ECHO_C" >&6; }
8757           # Check whether --enable-html was given.
8758 if test "${enable_html+set}" = set; then
8759   enableval=$enable_html;
8760                           if test "$enableval" = yes; then
8761                             wx_cv_use_html='wxUSE_HTML=yes'
8762                           else
8763                             wx_cv_use_html='wxUSE_HTML=no'
8764                           fi
8765
8766 else
8767
8768                           wx_cv_use_html='wxUSE_HTML=${'DEFAULT_wxUSE_HTML":-$defaultval}"
8769
8770 fi
8771
8772
8773           eval "$wx_cv_use_html"
8774
8775           if test x"$enablestring" = xdisable; then
8776             if test $wxUSE_HTML = no; then
8777               result=yes
8778             else
8779               result=no
8780             fi
8781           else
8782             result=$wxUSE_HTML
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}-htmlhelp" >&5
8800 echo $ECHO_N "checking for --${enablestring:-enable}-htmlhelp... $ECHO_C" >&6; }
8801           # Check whether --enable-htmlhelp was given.
8802 if test "${enable_htmlhelp+set}" = set; then
8803   enableval=$enable_htmlhelp;
8804                           if test "$enableval" = yes; then
8805                             wx_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes'
8806                           else
8807                             wx_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no'
8808                           fi
8809
8810 else
8811
8812                           wx_cv_use_htmlhelp='wxUSE_WXHTML_HELP=${'DEFAULT_wxUSE_WXHTML_HELP":-$defaultval}"
8813
8814 fi
8815
8816
8817           eval "$wx_cv_use_htmlhelp"
8818
8819           if test x"$enablestring" = xdisable; then
8820             if test $wxUSE_WXHTML_HELP = no; then
8821               result=yes
8822             else
8823               result=no
8824             fi
8825           else
8826             result=$wxUSE_WXHTML_HELP
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}-xrc" >&5
8844 echo $ECHO_N "checking for --${enablestring:-enable}-xrc... $ECHO_C" >&6; }
8845           # Check whether --enable-xrc was given.
8846 if test "${enable_xrc+set}" = set; then
8847   enableval=$enable_xrc;
8848                           if test "$enableval" = yes; then
8849                             wx_cv_use_xrc='wxUSE_XRC=yes'
8850                           else
8851                             wx_cv_use_xrc='wxUSE_XRC=no'
8852                           fi
8853
8854 else
8855
8856                           wx_cv_use_xrc='wxUSE_XRC=${'DEFAULT_wxUSE_XRC":-$defaultval}"
8857
8858 fi
8859
8860
8861           eval "$wx_cv_use_xrc"
8862
8863           if test x"$enablestring" = xdisable; then
8864             if test $wxUSE_XRC = no; then
8865               result=yes
8866             else
8867               result=no
8868             fi
8869           else
8870             result=$wxUSE_XRC
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}-aui" >&5
8888 echo $ECHO_N "checking for --${enablestring:-enable}-aui... $ECHO_C" >&6; }
8889           # Check whether --enable-aui was given.
8890 if test "${enable_aui+set}" = set; then
8891   enableval=$enable_aui;
8892                           if test "$enableval" = yes; then
8893                             wx_cv_use_aui='wxUSE_AUI=yes'
8894                           else
8895                             wx_cv_use_aui='wxUSE_AUI=no'
8896                           fi
8897
8898 else
8899
8900                           wx_cv_use_aui='wxUSE_AUI=${'DEFAULT_wxUSE_AUI":-$defaultval}"
8901
8902 fi
8903
8904
8905           eval "$wx_cv_use_aui"
8906
8907           if test x"$enablestring" = xdisable; then
8908             if test $wxUSE_AUI = no; then
8909               result=yes
8910             else
8911               result=no
8912             fi
8913           else
8914             result=$wxUSE_AUI
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}-propgrid" >&5
8932 echo $ECHO_N "checking for --${enablestring:-enable}-propgrid... $ECHO_C" >&6; }
8933           # Check whether --enable-propgrid was given.
8934 if test "${enable_propgrid+set}" = set; then
8935   enableval=$enable_propgrid;
8936                           if test "$enableval" = yes; then
8937                             wx_cv_use_propgrid='wxUSE_PROPGRID=yes'
8938                           else
8939                             wx_cv_use_propgrid='wxUSE_PROPGRID=no'
8940                           fi
8941
8942 else
8943
8944                           wx_cv_use_propgrid='wxUSE_PROPGRID=${'DEFAULT_wxUSE_PROPGRID":-$defaultval}"
8945
8946 fi
8947
8948
8949           eval "$wx_cv_use_propgrid"
8950
8951           if test x"$enablestring" = xdisable; then
8952             if test $wxUSE_PROPGRID = no; then
8953               result=yes
8954             else
8955               result=no
8956             fi
8957           else
8958             result=$wxUSE_PROPGRID
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}-ribbon" >&5
8976 echo $ECHO_N "checking for --${enablestring:-enable}-ribbon... $ECHO_C" >&6; }
8977           # Check whether --enable-ribbon was given.
8978 if test "${enable_ribbon+set}" = set; then
8979   enableval=$enable_ribbon;
8980                           if test "$enableval" = yes; then
8981                             wx_cv_use_ribbon='wxUSE_RIBBON=yes'
8982                           else
8983                             wx_cv_use_ribbon='wxUSE_RIBBON=no'
8984                           fi
8985
8986 else
8987
8988                           wx_cv_use_ribbon='wxUSE_RIBBON=${'DEFAULT_wxUSE_RIBBON":-$defaultval}"
8989
8990 fi
8991
8992
8993           eval "$wx_cv_use_ribbon"
8994
8995           if test x"$enablestring" = xdisable; then
8996             if test $wxUSE_RIBBON = no; then
8997               result=yes
8998             else
8999               result=no
9000             fi
9001           else
9002             result=$wxUSE_RIBBON
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}-stc" >&5
9020 echo $ECHO_N "checking for --${enablestring:-enable}-stc... $ECHO_C" >&6; }
9021           # Check whether --enable-stc was given.
9022 if test "${enable_stc+set}" = set; then
9023   enableval=$enable_stc;
9024                           if test "$enableval" = yes; then
9025                             wx_cv_use_stc='wxUSE_STC=yes'
9026                           else
9027                             wx_cv_use_stc='wxUSE_STC=no'
9028                           fi
9029
9030 else
9031
9032                           wx_cv_use_stc='wxUSE_STC=${'DEFAULT_wxUSE_STC":-$defaultval}"
9033
9034 fi
9035
9036
9037           eval "$wx_cv_use_stc"
9038
9039           if test x"$enablestring" = xdisable; then
9040             if test $wxUSE_STC = no; then
9041               result=yes
9042             else
9043               result=no
9044             fi
9045           else
9046             result=$wxUSE_STC
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}-constraints" >&5
9064 echo $ECHO_N "checking for --${enablestring:-enable}-constraints... $ECHO_C" >&6; }
9065           # Check whether --enable-constraints was given.
9066 if test "${enable_constraints+set}" = set; then
9067   enableval=$enable_constraints;
9068                           if test "$enableval" = yes; then
9069                             wx_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
9070                           else
9071                             wx_cv_use_constraints='wxUSE_CONSTRAINTS=no'
9072                           fi
9073
9074 else
9075
9076                           wx_cv_use_constraints='wxUSE_CONSTRAINTS=${'DEFAULT_wxUSE_CONSTRAINTS":-$defaultval}"
9077
9078 fi
9079
9080
9081           eval "$wx_cv_use_constraints"
9082
9083           if test x"$enablestring" = xdisable; then
9084             if test $wxUSE_CONSTRAINTS = no; then
9085               result=yes
9086             else
9087               result=no
9088             fi
9089           else
9090             result=$wxUSE_CONSTRAINTS
9091           fi
9092
9093           { echo "$as_me:$LINENO: result: $result" >&5
9094 echo "${ECHO_T}$result" >&6; }
9095
9096
9097           enablestring=
9098           defaultval=$wxUSE_ALL_FEATURES
9099           if test -z "$defaultval"; then
9100               if test x"$enablestring" = xdisable; then
9101                   defaultval=yes
9102               else
9103                   defaultval=no
9104               fi
9105           fi
9106
9107           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-loggui" >&5
9108 echo $ECHO_N "checking for --${enablestring:-enable}-loggui... $ECHO_C" >&6; }
9109           # Check whether --enable-loggui was given.
9110 if test "${enable_loggui+set}" = set; then
9111   enableval=$enable_loggui;
9112                           if test "$enableval" = yes; then
9113                             wx_cv_use_loggui='wxUSE_LOGGUI=yes'
9114                           else
9115                             wx_cv_use_loggui='wxUSE_LOGGUI=no'
9116                           fi
9117
9118 else
9119
9120                           wx_cv_use_loggui='wxUSE_LOGGUI=${'DEFAULT_wxUSE_LOGGUI":-$defaultval}"
9121
9122 fi
9123
9124
9125           eval "$wx_cv_use_loggui"
9126
9127           if test x"$enablestring" = xdisable; then
9128             if test $wxUSE_LOGGUI = no; then
9129               result=yes
9130             else
9131               result=no
9132             fi
9133           else
9134             result=$wxUSE_LOGGUI
9135           fi
9136
9137           { echo "$as_me:$LINENO: result: $result" >&5
9138 echo "${ECHO_T}$result" >&6; }
9139
9140
9141           enablestring=
9142           defaultval=$wxUSE_ALL_FEATURES
9143           if test -z "$defaultval"; then
9144               if test x"$enablestring" = xdisable; then
9145                   defaultval=yes
9146               else
9147                   defaultval=no
9148               fi
9149           fi
9150
9151           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logwin" >&5
9152 echo $ECHO_N "checking for --${enablestring:-enable}-logwin... $ECHO_C" >&6; }
9153           # Check whether --enable-logwin was given.
9154 if test "${enable_logwin+set}" = set; then
9155   enableval=$enable_logwin;
9156                           if test "$enableval" = yes; then
9157                             wx_cv_use_logwin='wxUSE_LOGWINDOW=yes'
9158                           else
9159                             wx_cv_use_logwin='wxUSE_LOGWINDOW=no'
9160                           fi
9161
9162 else
9163
9164                           wx_cv_use_logwin='wxUSE_LOGWINDOW=${'DEFAULT_wxUSE_LOGWINDOW":-$defaultval}"
9165
9166 fi
9167
9168
9169           eval "$wx_cv_use_logwin"
9170
9171           if test x"$enablestring" = xdisable; then
9172             if test $wxUSE_LOGWINDOW = no; then
9173               result=yes
9174             else
9175               result=no
9176             fi
9177           else
9178             result=$wxUSE_LOGWINDOW
9179           fi
9180
9181           { echo "$as_me:$LINENO: result: $result" >&5
9182 echo "${ECHO_T}$result" >&6; }
9183
9184
9185           enablestring=
9186           defaultval=$wxUSE_ALL_FEATURES
9187           if test -z "$defaultval"; then
9188               if test x"$enablestring" = xdisable; then
9189                   defaultval=yes
9190               else
9191                   defaultval=no
9192               fi
9193           fi
9194
9195           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logdialog" >&5
9196 echo $ECHO_N "checking for --${enablestring:-enable}-logdialog... $ECHO_C" >&6; }
9197           # Check whether --enable-logdialog was given.
9198 if test "${enable_logdialog+set}" = set; then
9199   enableval=$enable_logdialog;
9200                           if test "$enableval" = yes; then
9201                             wx_cv_use_logdialog='wxUSE_LOGDIALOG=yes'
9202                           else
9203                             wx_cv_use_logdialog='wxUSE_LOGDIALOG=no'
9204                           fi
9205
9206 else
9207
9208                           wx_cv_use_logdialog='wxUSE_LOGDIALOG=${'DEFAULT_wxUSE_LOGDIALOG":-$defaultval}"
9209
9210 fi
9211
9212
9213           eval "$wx_cv_use_logdialog"
9214
9215           if test x"$enablestring" = xdisable; then
9216             if test $wxUSE_LOGDIALOG = no; then
9217               result=yes
9218             else
9219               result=no
9220             fi
9221           else
9222             result=$wxUSE_LOGDIALOG
9223           fi
9224
9225           { echo "$as_me:$LINENO: result: $result" >&5
9226 echo "${ECHO_T}$result" >&6; }
9227
9228
9229           enablestring=
9230           defaultval=$wxUSE_ALL_FEATURES
9231           if test -z "$defaultval"; then
9232               if test x"$enablestring" = xdisable; then
9233                   defaultval=yes
9234               else
9235                   defaultval=no
9236               fi
9237           fi
9238
9239           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdi" >&5
9240 echo $ECHO_N "checking for --${enablestring:-enable}-mdi... $ECHO_C" >&6; }
9241           # Check whether --enable-mdi was given.
9242 if test "${enable_mdi+set}" = set; then
9243   enableval=$enable_mdi;
9244                           if test "$enableval" = yes; then
9245                             wx_cv_use_mdi='wxUSE_MDI=yes'
9246                           else
9247                             wx_cv_use_mdi='wxUSE_MDI=no'
9248                           fi
9249
9250 else
9251
9252                           wx_cv_use_mdi='wxUSE_MDI=${'DEFAULT_wxUSE_MDI":-$defaultval}"
9253
9254 fi
9255
9256
9257           eval "$wx_cv_use_mdi"
9258
9259           if test x"$enablestring" = xdisable; then
9260             if test $wxUSE_MDI = no; then
9261               result=yes
9262             else
9263               result=no
9264             fi
9265           else
9266             result=$wxUSE_MDI
9267           fi
9268
9269           { echo "$as_me:$LINENO: result: $result" >&5
9270 echo "${ECHO_T}$result" >&6; }
9271
9272
9273           enablestring=
9274           defaultval=$wxUSE_ALL_FEATURES
9275           if test -z "$defaultval"; then
9276               if test x"$enablestring" = xdisable; then
9277                   defaultval=yes
9278               else
9279                   defaultval=no
9280               fi
9281           fi
9282
9283           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdidoc" >&5
9284 echo $ECHO_N "checking for --${enablestring:-enable}-mdidoc... $ECHO_C" >&6; }
9285           # Check whether --enable-mdidoc was given.
9286 if test "${enable_mdidoc+set}" = set; then
9287   enableval=$enable_mdidoc;
9288                           if test "$enableval" = yes; then
9289                             wx_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=yes'
9290                           else
9291                             wx_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=no'
9292                           fi
9293
9294 else
9295
9296                           wx_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=${'DEFAULT_wxUSE_MDI_ARCHITECTURE":-$defaultval}"
9297
9298 fi
9299
9300
9301           eval "$wx_cv_use_mdidoc"
9302
9303           if test x"$enablestring" = xdisable; then
9304             if test $wxUSE_MDI_ARCHITECTURE = no; then
9305               result=yes
9306             else
9307               result=no
9308             fi
9309           else
9310             result=$wxUSE_MDI_ARCHITECTURE
9311           fi
9312
9313           { echo "$as_me:$LINENO: result: $result" >&5
9314 echo "${ECHO_T}$result" >&6; }
9315
9316
9317           enablestring=
9318           defaultval=$wxUSE_ALL_FEATURES
9319           if test -z "$defaultval"; then
9320               if test x"$enablestring" = xdisable; then
9321                   defaultval=yes
9322               else
9323                   defaultval=no
9324               fi
9325           fi
9326
9327           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mediactrl" >&5
9328 echo $ECHO_N "checking for --${enablestring:-enable}-mediactrl... $ECHO_C" >&6; }
9329           # Check whether --enable-mediactrl was given.
9330 if test "${enable_mediactrl+set}" = set; then
9331   enableval=$enable_mediactrl;
9332                           if test "$enableval" = yes; then
9333                             wx_cv_use_mediactrl='wxUSE_MEDIACTRL=yes'
9334                           else
9335                             wx_cv_use_mediactrl='wxUSE_MEDIACTRL=no'
9336                           fi
9337
9338 else
9339
9340                           wx_cv_use_mediactrl='wxUSE_MEDIACTRL=${'DEFAULT_wxUSE_MEDIACTRL":-$defaultval}"
9341
9342 fi
9343
9344
9345           eval "$wx_cv_use_mediactrl"
9346
9347           if test x"$enablestring" = xdisable; then
9348             if test $wxUSE_MEDIACTRL = no; then
9349               result=yes
9350             else
9351               result=no
9352             fi
9353           else
9354             result=$wxUSE_MEDIACTRL
9355           fi
9356
9357           { echo "$as_me:$LINENO: result: $result" >&5
9358 echo "${ECHO_T}$result" >&6; }
9359
9360
9361           enablestring=
9362           defaultval=$wxUSE_ALL_FEATURES
9363           if test -z "$defaultval"; then
9364               if test x"$enablestring" = xdisable; then
9365                   defaultval=yes
9366               else
9367                   defaultval=no
9368               fi
9369           fi
9370
9371           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gstreamer8" >&5
9372 echo $ECHO_N "checking for --${enablestring:-enable}-gstreamer8... $ECHO_C" >&6; }
9373           # Check whether --enable-gstreamer8 was given.
9374 if test "${enable_gstreamer8+set}" = set; then
9375   enableval=$enable_gstreamer8;
9376                           if test "$enableval" = yes; then
9377                             wx_cv_use_gstreamer8='wxUSE_GSTREAMER8=yes'
9378                           else
9379                             wx_cv_use_gstreamer8='wxUSE_GSTREAMER8=no'
9380                           fi
9381
9382 else
9383
9384                           wx_cv_use_gstreamer8='wxUSE_GSTREAMER8=${'DEFAULT_wxUSE_GSTREAMER8":-$defaultval}"
9385
9386 fi
9387
9388
9389           eval "$wx_cv_use_gstreamer8"
9390
9391           if test x"$enablestring" = xdisable; then
9392             if test $wxUSE_GSTREAMER8 = no; then
9393               result=yes
9394             else
9395               result=no
9396             fi
9397           else
9398             result=$wxUSE_GSTREAMER8
9399           fi
9400
9401           { echo "$as_me:$LINENO: result: $result" >&5
9402 echo "${ECHO_T}$result" >&6; }
9403
9404
9405           enablestring=
9406           defaultval=$wxUSE_ALL_FEATURES
9407           if test -z "$defaultval"; then
9408               if test x"$enablestring" = xdisable; then
9409                   defaultval=yes
9410               else
9411                   defaultval=no
9412               fi
9413           fi
9414
9415           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-webkit" >&5
9416 echo $ECHO_N "checking for --${enablestring:-enable}-webkit... $ECHO_C" >&6; }
9417           # Check whether --enable-webkit was given.
9418 if test "${enable_webkit+set}" = set; then
9419   enableval=$enable_webkit;
9420                           if test "$enableval" = yes; then
9421                             wx_cv_use_webkit='wxUSE_WEBKIT=yes'
9422                           else
9423                             wx_cv_use_webkit='wxUSE_WEBKIT=no'
9424                           fi
9425
9426 else
9427
9428                           wx_cv_use_webkit='wxUSE_WEBKIT=${'DEFAULT_wxUSE_WEBKIT":-$defaultval}"
9429
9430 fi
9431
9432
9433           eval "$wx_cv_use_webkit"
9434
9435           if test x"$enablestring" = xdisable; then
9436             if test $wxUSE_WEBKIT = no; then
9437               result=yes
9438             else
9439               result=no
9440             fi
9441           else
9442             result=$wxUSE_WEBKIT
9443           fi
9444
9445           { echo "$as_me:$LINENO: result: $result" >&5
9446 echo "${ECHO_T}$result" >&6; }
9447
9448
9449           enablestring=
9450           defaultval=$wxUSE_ALL_FEATURES
9451           if test -z "$defaultval"; then
9452               if test x"$enablestring" = xdisable; then
9453                   defaultval=yes
9454               else
9455                   defaultval=no
9456               fi
9457           fi
9458
9459           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-richtext" >&5
9460 echo $ECHO_N "checking for --${enablestring:-enable}-richtext... $ECHO_C" >&6; }
9461           # Check whether --enable-richtext was given.
9462 if test "${enable_richtext+set}" = set; then
9463   enableval=$enable_richtext;
9464                           if test "$enableval" = yes; then
9465                             wx_cv_use_richtext='wxUSE_RICHTEXT=yes'
9466                           else
9467                             wx_cv_use_richtext='wxUSE_RICHTEXT=no'
9468                           fi
9469
9470 else
9471
9472                           wx_cv_use_richtext='wxUSE_RICHTEXT=${'DEFAULT_wxUSE_RICHTEXT":-$defaultval}"
9473
9474 fi
9475
9476
9477           eval "$wx_cv_use_richtext"
9478
9479           if test x"$enablestring" = xdisable; then
9480             if test $wxUSE_RICHTEXT = no; then
9481               result=yes
9482             else
9483               result=no
9484             fi
9485           else
9486             result=$wxUSE_RICHTEXT
9487           fi
9488
9489           { echo "$as_me:$LINENO: result: $result" >&5
9490 echo "${ECHO_T}$result" >&6; }
9491
9492
9493           enablestring=
9494           defaultval=$wxUSE_ALL_FEATURES
9495           if test -z "$defaultval"; then
9496               if test x"$enablestring" = xdisable; then
9497                   defaultval=yes
9498               else
9499                   defaultval=no
9500               fi
9501           fi
9502
9503           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-postscript" >&5
9504 echo $ECHO_N "checking for --${enablestring:-enable}-postscript... $ECHO_C" >&6; }
9505           # Check whether --enable-postscript was given.
9506 if test "${enable_postscript+set}" = set; then
9507   enableval=$enable_postscript;
9508                           if test "$enableval" = yes; then
9509                             wx_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
9510                           else
9511                             wx_cv_use_postscript='wxUSE_POSTSCRIPT=no'
9512                           fi
9513
9514 else
9515
9516                           wx_cv_use_postscript='wxUSE_POSTSCRIPT=${'DEFAULT_wxUSE_POSTSCRIPT":-$defaultval}"
9517
9518 fi
9519
9520
9521           eval "$wx_cv_use_postscript"
9522
9523           if test x"$enablestring" = xdisable; then
9524             if test $wxUSE_POSTSCRIPT = no; then
9525               result=yes
9526             else
9527               result=no
9528             fi
9529           else
9530             result=$wxUSE_POSTSCRIPT
9531           fi
9532
9533           { echo "$as_me:$LINENO: result: $result" >&5
9534 echo "${ECHO_T}$result" >&6; }
9535
9536
9537           enablestring=
9538           defaultval=$wxUSE_ALL_FEATURES
9539           if test -z "$defaultval"; then
9540               if test x"$enablestring" = xdisable; then
9541                   defaultval=yes
9542               else
9543                   defaultval=no
9544               fi
9545           fi
9546
9547           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printarch" >&5
9548 echo $ECHO_N "checking for --${enablestring:-enable}-printarch... $ECHO_C" >&6; }
9549           # Check whether --enable-printarch was given.
9550 if test "${enable_printarch+set}" = set; then
9551   enableval=$enable_printarch;
9552                           if test "$enableval" = yes; then
9553                             wx_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
9554                           else
9555                             wx_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
9556                           fi
9557
9558 else
9559
9560                           wx_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=${'DEFAULT_wxUSE_PRINTING_ARCHITECTURE":-$defaultval}"
9561
9562 fi
9563
9564
9565           eval "$wx_cv_use_printarch"
9566
9567           if test x"$enablestring" = xdisable; then
9568             if test $wxUSE_PRINTING_ARCHITECTURE = no; then
9569               result=yes
9570             else
9571               result=no
9572             fi
9573           else
9574             result=$wxUSE_PRINTING_ARCHITECTURE
9575           fi
9576
9577           { echo "$as_me:$LINENO: result: $result" >&5
9578 echo "${ECHO_T}$result" >&6; }
9579
9580
9581           enablestring=
9582           defaultval=$wxUSE_ALL_FEATURES
9583           if test -z "$defaultval"; then
9584               if test x"$enablestring" = xdisable; then
9585                   defaultval=yes
9586               else
9587                   defaultval=no
9588               fi
9589           fi
9590
9591           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-svg" >&5
9592 echo $ECHO_N "checking for --${enablestring:-enable}-svg... $ECHO_C" >&6; }
9593           # Check whether --enable-svg was given.
9594 if test "${enable_svg+set}" = set; then
9595   enableval=$enable_svg;
9596                           if test "$enableval" = yes; then
9597                             wx_cv_use_svg='wxUSE_SVG=yes'
9598                           else
9599                             wx_cv_use_svg='wxUSE_SVG=no'
9600                           fi
9601
9602 else
9603
9604                           wx_cv_use_svg='wxUSE_SVG=${'DEFAULT_wxUSE_SVG":-$defaultval}"
9605
9606 fi
9607
9608
9609           eval "$wx_cv_use_svg"
9610
9611           if test x"$enablestring" = xdisable; then
9612             if test $wxUSE_SVG = no; then
9613               result=yes
9614             else
9615               result=no
9616             fi
9617           else
9618             result=$wxUSE_SVG
9619           fi
9620
9621           { echo "$as_me:$LINENO: result: $result" >&5
9622 echo "${ECHO_T}$result" >&6; }
9623
9624
9625 if test "$wxUSE_MAC" != 1; then
9626
9627           enablestring=
9628           defaultval=$wxUSE_ALL_FEATURES
9629           if test -z "$defaultval"; then
9630               if test x"$enablestring" = xdisable; then
9631                   defaultval=yes
9632               else
9633                   defaultval=no
9634               fi
9635           fi
9636
9637           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-graphics_ctx" >&5
9638 echo $ECHO_N "checking for --${enablestring:-enable}-graphics_ctx... $ECHO_C" >&6; }
9639           # Check whether --enable-graphics_ctx was given.
9640 if test "${enable_graphics_ctx+set}" = set; then
9641   enableval=$enable_graphics_ctx;
9642                           if test "$enableval" = yes; then
9643                             wx_cv_use_graphics_ctx='wxUSE_GRAPHICS_CONTEXT=yes'
9644                           else
9645                             wx_cv_use_graphics_ctx='wxUSE_GRAPHICS_CONTEXT=no'
9646                           fi
9647
9648 else
9649
9650                           wx_cv_use_graphics_ctx='wxUSE_GRAPHICS_CONTEXT=${'DEFAULT_wxUSE_GRAPHICS_CONTEXT":-$defaultval}"
9651
9652 fi
9653
9654
9655           eval "$wx_cv_use_graphics_ctx"
9656
9657           if test x"$enablestring" = xdisable; then
9658             if test $wxUSE_GRAPHICS_CONTEXT = no; then
9659               result=yes
9660             else
9661               result=no
9662             fi
9663           else
9664             result=$wxUSE_GRAPHICS_CONTEXT
9665           fi
9666
9667           { echo "$as_me:$LINENO: result: $result" >&5
9668 echo "${ECHO_T}$result" >&6; }
9669
9670 fi
9671
9672
9673
9674           enablestring=
9675           defaultval=$wxUSE_ALL_FEATURES
9676           if test -z "$defaultval"; then
9677               if test x"$enablestring" = xdisable; then
9678                   defaultval=yes
9679               else
9680                   defaultval=no
9681               fi
9682           fi
9683
9684           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-clipboard" >&5
9685 echo $ECHO_N "checking for --${enablestring:-enable}-clipboard... $ECHO_C" >&6; }
9686           # Check whether --enable-clipboard was given.
9687 if test "${enable_clipboard+set}" = set; then
9688   enableval=$enable_clipboard;
9689                           if test "$enableval" = yes; then
9690                             wx_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
9691                           else
9692                             wx_cv_use_clipboard='wxUSE_CLIPBOARD=no'
9693                           fi
9694
9695 else
9696
9697                           wx_cv_use_clipboard='wxUSE_CLIPBOARD=${'DEFAULT_wxUSE_CLIPBOARD":-$defaultval}"
9698
9699 fi
9700
9701
9702           eval "$wx_cv_use_clipboard"
9703
9704           if test x"$enablestring" = xdisable; then
9705             if test $wxUSE_CLIPBOARD = no; then
9706               result=yes
9707             else
9708               result=no
9709             fi
9710           else
9711             result=$wxUSE_CLIPBOARD
9712           fi
9713
9714           { echo "$as_me:$LINENO: result: $result" >&5
9715 echo "${ECHO_T}$result" >&6; }
9716
9717
9718           enablestring=
9719           defaultval=$wxUSE_ALL_FEATURES
9720           if test -z "$defaultval"; then
9721               if test x"$enablestring" = xdisable; then
9722                   defaultval=yes
9723               else
9724                   defaultval=no
9725               fi
9726           fi
9727
9728           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dnd" >&5
9729 echo $ECHO_N "checking for --${enablestring:-enable}-dnd... $ECHO_C" >&6; }
9730           # Check whether --enable-dnd was given.
9731 if test "${enable_dnd+set}" = set; then
9732   enableval=$enable_dnd;
9733                           if test "$enableval" = yes; then
9734                             wx_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
9735                           else
9736                             wx_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
9737                           fi
9738
9739 else
9740
9741                           wx_cv_use_dnd='wxUSE_DRAG_AND_DROP=${'DEFAULT_wxUSE_DRAG_AND_DROP":-$defaultval}"
9742
9743 fi
9744
9745
9746           eval "$wx_cv_use_dnd"
9747
9748           if test x"$enablestring" = xdisable; then
9749             if test $wxUSE_DRAG_AND_DROP = no; then
9750               result=yes
9751             else
9752               result=no
9753             fi
9754           else
9755             result=$wxUSE_DRAG_AND_DROP
9756           fi
9757
9758           { echo "$as_me:$LINENO: result: $result" >&5
9759 echo "${ECHO_T}$result" >&6; }
9760
9761
9762           enablestring=
9763           defaultval=$wxUSE_ALL_FEATURES
9764           if test -z "$defaultval"; then
9765               if test x"$enablestring" = xdisable; then
9766                   defaultval=yes
9767               else
9768                   defaultval=no
9769               fi
9770           fi
9771
9772           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
9773 echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6; }
9774           # Check whether --enable-metafile was given.
9775 if test "${enable_metafile+set}" = set; then
9776   enableval=$enable_metafile;
9777                           if test "$enableval" = yes; then
9778                             wx_cv_use_metafile='wxUSE_METAFILE=yes'
9779                           else
9780                             wx_cv_use_metafile='wxUSE_METAFILE=no'
9781                           fi
9782
9783 else
9784
9785                           wx_cv_use_metafile='wxUSE_METAFILE=${'DEFAULT_wxUSE_METAFILE":-$defaultval}"
9786
9787 fi
9788
9789
9790           eval "$wx_cv_use_metafile"
9791
9792           if test x"$enablestring" = xdisable; then
9793             if test $wxUSE_METAFILE = no; then
9794               result=yes
9795             else
9796               result=no
9797             fi
9798           else
9799             result=$wxUSE_METAFILE
9800           fi
9801
9802           { echo "$as_me:$LINENO: result: $result" >&5
9803 echo "${ECHO_T}$result" >&6; }
9804
9805
9806
9807 DEFAULT_wxUSE_CONTROLS=none
9808
9809           enablestring=disable
9810           defaultval=
9811           if test -z "$defaultval"; then
9812               if test x"$enablestring" = xdisable; then
9813                   defaultval=yes
9814               else
9815                   defaultval=no
9816               fi
9817           fi
9818
9819           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-controls" >&5
9820 echo $ECHO_N "checking for --${enablestring:-enable}-controls... $ECHO_C" >&6; }
9821           # Check whether --enable-controls was given.
9822 if test "${enable_controls+set}" = set; then
9823   enableval=$enable_controls;
9824                           if test "$enableval" = yes; then
9825                             wx_cv_use_controls='wxUSE_CONTROLS=yes'
9826                           else
9827                             wx_cv_use_controls='wxUSE_CONTROLS=no'
9828                           fi
9829
9830 else
9831
9832                           wx_cv_use_controls='wxUSE_CONTROLS=${'DEFAULT_wxUSE_CONTROLS":-$defaultval}"
9833
9834 fi
9835
9836
9837           eval "$wx_cv_use_controls"
9838
9839           if test x"$enablestring" = xdisable; then
9840             if test $wxUSE_CONTROLS = no; then
9841               result=yes
9842             else
9843               result=no
9844             fi
9845           else
9846             result=$wxUSE_CONTROLS
9847           fi
9848
9849           { echo "$as_me:$LINENO: result: $result" >&5
9850 echo "${ECHO_T}$result" >&6; }
9851
9852
9853 if test "$wxUSE_CONTROLS" = "no"; then
9854     DEFAULT_wxUSE_ACCEL=no
9855     DEFAULT_wxUSE_ANIMATIONCTRL=no
9856     DEFAULT_wxUSE_BMPBUTTON=no
9857     DEFAULT_wxUSE_BUTTON=no
9858     DEFAULT_wxUSE_CALCTRL=no
9859     DEFAULT_wxUSE_CARET=no
9860     DEFAULT_wxUSE_CHECKBOX=no
9861     DEFAULT_wxUSE_CHECKLISTBOX=no
9862     DEFAULT_wxUSE_CHOICE=no
9863     DEFAULT_wxUSE_CHOICEBOOK=no
9864     DEFAULT_wxUSE_COLLPANE=no
9865     DEFAULT_wxUSE_COLOURPICKERCTRL=no
9866     DEFAULT_wxUSE_COMBOBOX=no
9867     DEFAULT_wxUSE_COMBOBOX=no
9868     DEFAULT_wxUSE_COMMANDLINKBUTTON=no
9869     DEFAULT_wxUSE_DATAVIEWCTRL=no
9870     DEFAULT_wxUSE_DATEPICKCTRL=no
9871     DEFAULT_wxUSE_DETECT_SM=no
9872     DEFAULT_wxUSE_DIRPICKERCTRL=no
9873     DEFAULT_wxUSE_DISPLAY=no
9874     DEFAULT_wxUSE_FILECTRL=no
9875     DEFAULT_wxUSE_FILEPICKERCTRL=no
9876     DEFAULT_wxUSE_FONTPICKERCTRL=no
9877     DEFAULT_wxUSE_GAUGE=no
9878     DEFAULT_wxUSE_GRID=no
9879     DEFAULT_wxUSE_HEADERCTRL=no
9880     DEFAULT_wxUSE_HYPERLINKCTRL=no
9881     DEFAULT_wxUSE_IMAGLIST=no
9882     DEFAULT_wxUSE_LISTBOOK=no
9883     DEFAULT_wxUSE_LISTBOX=no
9884     DEFAULT_wxUSE_LISTCTRL=no
9885     DEFAULT_wxUSE_MARKUP=no
9886     DEFAULT_wxUSE_NOTEBOOK=no
9887     DEFAULT_wxUSE_POPUPWIN=no
9888     DEFAULT_wxUSE_RADIOBOX=no
9889     DEFAULT_wxUSE_RADIOBTN=no
9890     DEFAULT_wxUSE_RICHMSGDLG=no
9891     DEFAULT_wxUSE_REARRANGECTRL=no
9892     DEFAULT_wxUSE_SASH=no
9893     DEFAULT_wxUSE_SCROLLBAR=no
9894     DEFAULT_wxUSE_SEARCHCTRL=no
9895     DEFAULT_wxUSE_SLIDER=no
9896     DEFAULT_wxUSE_SPINBTN=no
9897     DEFAULT_wxUSE_SPINCTRL=no
9898     DEFAULT_wxUSE_SPLITTER=no
9899     DEFAULT_wxUSE_STATBMP=no
9900     DEFAULT_wxUSE_STATBOX=no
9901     DEFAULT_wxUSE_STATLINE=no
9902     DEFAULT_wxUSE_STATUSBAR=no
9903     DEFAULT_wxUSE_TIPWINDOW=no
9904     DEFAULT_wxUSE_TOGGLEBTN=no
9905     DEFAULT_wxUSE_TOOLBAR=no
9906     DEFAULT_wxUSE_TOOLBAR_NATIVE=no
9907     DEFAULT_wxUSE_TOOLBOOK=no
9908     DEFAULT_wxUSE_TOOLTIPS=no
9909     DEFAULT_wxUSE_TREEBOOK=no
9910     DEFAULT_wxUSE_TREECTRL=no
9911 fi
9912
9913
9914           enablestring=
9915           defaultval=$wxUSE_ALL_FEATURES
9916           if test -z "$defaultval"; then
9917               if test x"$enablestring" = xdisable; then
9918                   defaultval=yes
9919               else
9920                   defaultval=no
9921               fi
9922           fi
9923
9924           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-markup" >&5
9925 echo $ECHO_N "checking for --${enablestring:-enable}-markup... $ECHO_C" >&6; }
9926           # Check whether --enable-markup was given.
9927 if test "${enable_markup+set}" = set; then
9928   enableval=$enable_markup;
9929                           if test "$enableval" = yes; then
9930                             wx_cv_use_markup='wxUSE_MARKUP=yes'
9931                           else
9932                             wx_cv_use_markup='wxUSE_MARKUP=no'
9933                           fi
9934
9935 else
9936
9937                           wx_cv_use_markup='wxUSE_MARKUP=${'DEFAULT_wxUSE_MARKUP":-$defaultval}"
9938
9939 fi
9940
9941
9942           eval "$wx_cv_use_markup"
9943
9944           if test x"$enablestring" = xdisable; then
9945             if test $wxUSE_MARKUP = no; then
9946               result=yes
9947             else
9948               result=no
9949             fi
9950           else
9951             result=$wxUSE_MARKUP
9952           fi
9953
9954           { echo "$as_me:$LINENO: result: $result" >&5
9955 echo "${ECHO_T}$result" >&6; }
9956
9957
9958
9959           enablestring=
9960           defaultval=$wxUSE_ALL_FEATURES
9961           if test -z "$defaultval"; then
9962               if test x"$enablestring" = xdisable; then
9963                   defaultval=yes
9964               else
9965                   defaultval=no
9966               fi
9967           fi
9968
9969           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accel" >&5
9970 echo $ECHO_N "checking for --${enablestring:-enable}-accel... $ECHO_C" >&6; }
9971           # Check whether --enable-accel was given.
9972 if test "${enable_accel+set}" = set; then
9973   enableval=$enable_accel;
9974                           if test "$enableval" = yes; then
9975                             wx_cv_use_accel='wxUSE_ACCEL=yes'
9976                           else
9977                             wx_cv_use_accel='wxUSE_ACCEL=no'
9978                           fi
9979
9980 else
9981
9982                           wx_cv_use_accel='wxUSE_ACCEL=${'DEFAULT_wxUSE_ACCEL":-$defaultval}"
9983
9984 fi
9985
9986
9987           eval "$wx_cv_use_accel"
9988
9989           if test x"$enablestring" = xdisable; then
9990             if test $wxUSE_ACCEL = no; then
9991               result=yes
9992             else
9993               result=no
9994             fi
9995           else
9996             result=$wxUSE_ACCEL
9997           fi
9998
9999           { echo "$as_me:$LINENO: result: $result" >&5
10000 echo "${ECHO_T}$result" >&6; }
10001
10002
10003           enablestring=
10004           defaultval=$wxUSE_ALL_FEATURES
10005           if test -z "$defaultval"; then
10006               if test x"$enablestring" = xdisable; then
10007                   defaultval=yes
10008               else
10009                   defaultval=no
10010               fi
10011           fi
10012
10013           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-animatectrl" >&5
10014 echo $ECHO_N "checking for --${enablestring:-enable}-animatectrl... $ECHO_C" >&6; }
10015           # Check whether --enable-animatectrl was given.
10016 if test "${enable_animatectrl+set}" = set; then
10017   enableval=$enable_animatectrl;
10018                           if test "$enableval" = yes; then
10019                             wx_cv_use_animatectrl='wxUSE_ANIMATIONCTRL=yes'
10020                           else
10021                             wx_cv_use_animatectrl='wxUSE_ANIMATIONCTRL=no'
10022                           fi
10023
10024 else
10025
10026                           wx_cv_use_animatectrl='wxUSE_ANIMATIONCTRL=${'DEFAULT_wxUSE_ANIMATIONCTRL":-$defaultval}"
10027
10028 fi
10029
10030
10031           eval "$wx_cv_use_animatectrl"
10032
10033           if test x"$enablestring" = xdisable; then
10034             if test $wxUSE_ANIMATIONCTRL = no; then
10035               result=yes
10036             else
10037               result=no
10038             fi
10039           else
10040             result=$wxUSE_ANIMATIONCTRL
10041           fi
10042
10043           { echo "$as_me:$LINENO: result: $result" >&5
10044 echo "${ECHO_T}$result" >&6; }
10045
10046
10047           enablestring=
10048           defaultval=$wxUSE_ALL_FEATURES
10049           if test -z "$defaultval"; then
10050               if test x"$enablestring" = xdisable; then
10051                   defaultval=yes
10052               else
10053                   defaultval=no
10054               fi
10055           fi
10056
10057           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-artstd" >&5
10058 echo $ECHO_N "checking for --${enablestring:-enable}-artstd... $ECHO_C" >&6; }
10059           # Check whether --enable-artstd was given.
10060 if test "${enable_artstd+set}" = set; then
10061   enableval=$enable_artstd;
10062                           if test "$enableval" = yes; then
10063                             wx_cv_use_artstd='wxUSE_ARTPROVIDER_STD=yes'
10064                           else
10065                             wx_cv_use_artstd='wxUSE_ARTPROVIDER_STD=no'
10066                           fi
10067
10068 else
10069
10070                           wx_cv_use_artstd='wxUSE_ARTPROVIDER_STD=${'DEFAULT_wxUSE_ARTPROVIDER_STD":-$defaultval}"
10071
10072 fi
10073
10074
10075           eval "$wx_cv_use_artstd"
10076
10077           if test x"$enablestring" = xdisable; then
10078             if test $wxUSE_ARTPROVIDER_STD = no; then
10079               result=yes
10080             else
10081               result=no
10082             fi
10083           else
10084             result=$wxUSE_ARTPROVIDER_STD
10085           fi
10086
10087           { echo "$as_me:$LINENO: result: $result" >&5
10088 echo "${ECHO_T}$result" >&6; }
10089
10090
10091           enablestring=
10092           defaultval=$wxUSE_ALL_FEATURES
10093           if test -z "$defaultval"; then
10094               if test x"$enablestring" = xdisable; then
10095                   defaultval=yes
10096               else
10097                   defaultval=no
10098               fi
10099           fi
10100
10101           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-arttango" >&5
10102 echo $ECHO_N "checking for --${enablestring:-enable}-arttango... $ECHO_C" >&6; }
10103           # Check whether --enable-arttango was given.
10104 if test "${enable_arttango+set}" = set; then
10105   enableval=$enable_arttango;
10106                           if test "$enableval" = yes; then
10107                             wx_cv_use_arttango='wxUSE_ARTPROVIDER_TANGO=yes'
10108                           else
10109                             wx_cv_use_arttango='wxUSE_ARTPROVIDER_TANGO=no'
10110                           fi
10111
10112 else
10113
10114                           wx_cv_use_arttango='wxUSE_ARTPROVIDER_TANGO=${'DEFAULT_wxUSE_ARTPROVIDER_TANGO":-$defaultval}"
10115
10116 fi
10117
10118
10119           eval "$wx_cv_use_arttango"
10120
10121           if test x"$enablestring" = xdisable; then
10122             if test $wxUSE_ARTPROVIDER_TANGO = no; then
10123               result=yes
10124             else
10125               result=no
10126             fi
10127           else
10128             result=$wxUSE_ARTPROVIDER_TANGO
10129           fi
10130
10131           { echo "$as_me:$LINENO: result: $result" >&5
10132 echo "${ECHO_T}$result" >&6; }
10133
10134
10135           enablestring=
10136           defaultval=$wxUSE_ALL_FEATURES
10137           if test -z "$defaultval"; then
10138               if test x"$enablestring" = xdisable; then
10139                   defaultval=yes
10140               else
10141                   defaultval=no
10142               fi
10143           fi
10144
10145           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bmpbutton" >&5
10146 echo $ECHO_N "checking for --${enablestring:-enable}-bmpbutton... $ECHO_C" >&6; }
10147           # Check whether --enable-bmpbutton was given.
10148 if test "${enable_bmpbutton+set}" = set; then
10149   enableval=$enable_bmpbutton;
10150                           if test "$enableval" = yes; then
10151                             wx_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
10152                           else
10153                             wx_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
10154                           fi
10155
10156 else
10157
10158                           wx_cv_use_bmpbutton='wxUSE_BMPBUTTON=${'DEFAULT_wxUSE_BMPBUTTON":-$defaultval}"
10159
10160 fi
10161
10162
10163           eval "$wx_cv_use_bmpbutton"
10164
10165           if test x"$enablestring" = xdisable; then
10166             if test $wxUSE_BMPBUTTON = no; then
10167               result=yes
10168             else
10169               result=no
10170             fi
10171           else
10172             result=$wxUSE_BMPBUTTON
10173           fi
10174
10175           { echo "$as_me:$LINENO: result: $result" >&5
10176 echo "${ECHO_T}$result" >&6; }
10177
10178
10179           enablestring=
10180           defaultval=$wxUSE_ALL_FEATURES
10181           if test -z "$defaultval"; then
10182               if test x"$enablestring" = xdisable; then
10183                   defaultval=yes
10184               else
10185                   defaultval=no
10186               fi
10187           fi
10188
10189           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bmpcombobox" >&5
10190 echo $ECHO_N "checking for --${enablestring:-enable}-bmpcombobox... $ECHO_C" >&6; }
10191           # Check whether --enable-bmpcombobox was given.
10192 if test "${enable_bmpcombobox+set}" = set; then
10193   enableval=$enable_bmpcombobox;
10194                           if test "$enableval" = yes; then
10195                             wx_cv_use_bmpcombobox='wxUSE_BITMAPCOMBOBOX=yes'
10196                           else
10197                             wx_cv_use_bmpcombobox='wxUSE_BITMAPCOMBOBOX=no'
10198                           fi
10199
10200 else
10201
10202                           wx_cv_use_bmpcombobox='wxUSE_BITMAPCOMBOBOX=${'DEFAULT_wxUSE_BITMAPCOMBOBOX":-$defaultval}"
10203
10204 fi
10205
10206
10207           eval "$wx_cv_use_bmpcombobox"
10208
10209           if test x"$enablestring" = xdisable; then
10210             if test $wxUSE_BITMAPCOMBOBOX = no; then
10211               result=yes
10212             else
10213               result=no
10214             fi
10215           else
10216             result=$wxUSE_BITMAPCOMBOBOX
10217           fi
10218
10219           { echo "$as_me:$LINENO: result: $result" >&5
10220 echo "${ECHO_T}$result" >&6; }
10221
10222
10223           enablestring=
10224           defaultval=$wxUSE_ALL_FEATURES
10225           if test -z "$defaultval"; then
10226               if test x"$enablestring" = xdisable; then
10227                   defaultval=yes
10228               else
10229                   defaultval=no
10230               fi
10231           fi
10232
10233           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-button" >&5
10234 echo $ECHO_N "checking for --${enablestring:-enable}-button... $ECHO_C" >&6; }
10235           # Check whether --enable-button was given.
10236 if test "${enable_button+set}" = set; then
10237   enableval=$enable_button;
10238                           if test "$enableval" = yes; then
10239                             wx_cv_use_button='wxUSE_BUTTON=yes'
10240                           else
10241                             wx_cv_use_button='wxUSE_BUTTON=no'
10242                           fi
10243
10244 else
10245
10246                           wx_cv_use_button='wxUSE_BUTTON=${'DEFAULT_wxUSE_BUTTON":-$defaultval}"
10247
10248 fi
10249
10250
10251           eval "$wx_cv_use_button"
10252
10253           if test x"$enablestring" = xdisable; then
10254             if test $wxUSE_BUTTON = no; then
10255               result=yes
10256             else
10257               result=no
10258             fi
10259           else
10260             result=$wxUSE_BUTTON
10261           fi
10262
10263           { echo "$as_me:$LINENO: result: $result" >&5
10264 echo "${ECHO_T}$result" >&6; }
10265
10266
10267           enablestring=
10268           defaultval=$wxUSE_ALL_FEATURES
10269           if test -z "$defaultval"; then
10270               if test x"$enablestring" = xdisable; then
10271                   defaultval=yes
10272               else
10273                   defaultval=no
10274               fi
10275           fi
10276
10277           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-calendar" >&5
10278 echo $ECHO_N "checking for --${enablestring:-enable}-calendar... $ECHO_C" >&6; }
10279           # Check whether --enable-calendar was given.
10280 if test "${enable_calendar+set}" = set; then
10281   enableval=$enable_calendar;
10282                           if test "$enableval" = yes; then
10283                             wx_cv_use_calendar='wxUSE_CALCTRL=yes'
10284                           else
10285                             wx_cv_use_calendar='wxUSE_CALCTRL=no'
10286                           fi
10287
10288 else
10289
10290                           wx_cv_use_calendar='wxUSE_CALCTRL=${'DEFAULT_wxUSE_CALCTRL":-$defaultval}"
10291
10292 fi
10293
10294
10295           eval "$wx_cv_use_calendar"
10296
10297           if test x"$enablestring" = xdisable; then
10298             if test $wxUSE_CALCTRL = no; then
10299               result=yes
10300             else
10301               result=no
10302             fi
10303           else
10304             result=$wxUSE_CALCTRL
10305           fi
10306
10307           { echo "$as_me:$LINENO: result: $result" >&5
10308 echo "${ECHO_T}$result" >&6; }
10309
10310
10311           enablestring=
10312           defaultval=$wxUSE_ALL_FEATURES
10313           if test -z "$defaultval"; then
10314               if test x"$enablestring" = xdisable; then
10315                   defaultval=yes
10316               else
10317                   defaultval=no
10318               fi
10319           fi
10320
10321           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-caret" >&5
10322 echo $ECHO_N "checking for --${enablestring:-enable}-caret... $ECHO_C" >&6; }
10323           # Check whether --enable-caret was given.
10324 if test "${enable_caret+set}" = set; then
10325   enableval=$enable_caret;
10326                           if test "$enableval" = yes; then
10327                             wx_cv_use_caret='wxUSE_CARET=yes'
10328                           else
10329                             wx_cv_use_caret='wxUSE_CARET=no'
10330                           fi
10331
10332 else
10333
10334                           wx_cv_use_caret='wxUSE_CARET=${'DEFAULT_wxUSE_CARET":-$defaultval}"
10335
10336 fi
10337
10338
10339           eval "$wx_cv_use_caret"
10340
10341           if test x"$enablestring" = xdisable; then
10342             if test $wxUSE_CARET = no; then
10343               result=yes
10344             else
10345               result=no
10346             fi
10347           else
10348             result=$wxUSE_CARET
10349           fi
10350
10351           { echo "$as_me:$LINENO: result: $result" >&5
10352 echo "${ECHO_T}$result" >&6; }
10353
10354
10355           enablestring=
10356           defaultval=$wxUSE_ALL_FEATURES
10357           if test -z "$defaultval"; then
10358               if test x"$enablestring" = xdisable; then
10359                   defaultval=yes
10360               else
10361                   defaultval=no
10362               fi
10363           fi
10364
10365           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checkbox" >&5
10366 echo $ECHO_N "checking for --${enablestring:-enable}-checkbox... $ECHO_C" >&6; }
10367           # Check whether --enable-checkbox was given.
10368 if test "${enable_checkbox+set}" = set; then
10369   enableval=$enable_checkbox;
10370                           if test "$enableval" = yes; then
10371                             wx_cv_use_checkbox='wxUSE_CHECKBOX=yes'
10372                           else
10373                             wx_cv_use_checkbox='wxUSE_CHECKBOX=no'
10374                           fi
10375
10376 else
10377
10378                           wx_cv_use_checkbox='wxUSE_CHECKBOX=${'DEFAULT_wxUSE_CHECKBOX":-$defaultval}"
10379
10380 fi
10381
10382
10383           eval "$wx_cv_use_checkbox"
10384
10385           if test x"$enablestring" = xdisable; then
10386             if test $wxUSE_CHECKBOX = no; then
10387               result=yes
10388             else
10389               result=no
10390             fi
10391           else
10392             result=$wxUSE_CHECKBOX
10393           fi
10394
10395           { echo "$as_me:$LINENO: result: $result" >&5
10396 echo "${ECHO_T}$result" >&6; }
10397
10398
10399           enablestring=
10400           defaultval=$wxUSE_ALL_FEATURES
10401           if test -z "$defaultval"; then
10402               if test x"$enablestring" = xdisable; then
10403                   defaultval=yes
10404               else
10405                   defaultval=no
10406               fi
10407           fi
10408
10409           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checklst" >&5
10410 echo $ECHO_N "checking for --${enablestring:-enable}-checklst... $ECHO_C" >&6; }
10411           # Check whether --enable-checklst was given.
10412 if test "${enable_checklst+set}" = set; then
10413   enableval=$enable_checklst;
10414                           if test "$enableval" = yes; then
10415                             wx_cv_use_checklst='wxUSE_CHECKLST=yes'
10416                           else
10417                             wx_cv_use_checklst='wxUSE_CHECKLST=no'
10418                           fi
10419
10420 else
10421
10422                           wx_cv_use_checklst='wxUSE_CHECKLST=${'DEFAULT_wxUSE_CHECKLST":-$defaultval}"
10423
10424 fi
10425
10426
10427           eval "$wx_cv_use_checklst"
10428
10429           if test x"$enablestring" = xdisable; then
10430             if test $wxUSE_CHECKLST = no; then
10431               result=yes
10432             else
10433               result=no
10434             fi
10435           else
10436             result=$wxUSE_CHECKLST
10437           fi
10438
10439           { echo "$as_me:$LINENO: result: $result" >&5
10440 echo "${ECHO_T}$result" >&6; }
10441
10442
10443           enablestring=
10444           defaultval=$wxUSE_ALL_FEATURES
10445           if test -z "$defaultval"; then
10446               if test x"$enablestring" = xdisable; then
10447                   defaultval=yes
10448               else
10449                   defaultval=no
10450               fi
10451           fi
10452
10453           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choice" >&5
10454 echo $ECHO_N "checking for --${enablestring:-enable}-choice... $ECHO_C" >&6; }
10455           # Check whether --enable-choice was given.
10456 if test "${enable_choice+set}" = set; then
10457   enableval=$enable_choice;
10458                           if test "$enableval" = yes; then
10459                             wx_cv_use_choice='wxUSE_CHOICE=yes'
10460                           else
10461                             wx_cv_use_choice='wxUSE_CHOICE=no'
10462                           fi
10463
10464 else
10465
10466                           wx_cv_use_choice='wxUSE_CHOICE=${'DEFAULT_wxUSE_CHOICE":-$defaultval}"
10467
10468 fi
10469
10470
10471           eval "$wx_cv_use_choice"
10472
10473           if test x"$enablestring" = xdisable; then
10474             if test $wxUSE_CHOICE = no; then
10475               result=yes
10476             else
10477               result=no
10478             fi
10479           else
10480             result=$wxUSE_CHOICE
10481           fi
10482
10483           { echo "$as_me:$LINENO: result: $result" >&5
10484 echo "${ECHO_T}$result" >&6; }
10485
10486
10487           enablestring=
10488           defaultval=$wxUSE_ALL_FEATURES
10489           if test -z "$defaultval"; then
10490               if test x"$enablestring" = xdisable; then
10491                   defaultval=yes
10492               else
10493                   defaultval=no
10494               fi
10495           fi
10496
10497           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicebook" >&5
10498 echo $ECHO_N "checking for --${enablestring:-enable}-choicebook... $ECHO_C" >&6; }
10499           # Check whether --enable-choicebook was given.
10500 if test "${enable_choicebook+set}" = set; then
10501   enableval=$enable_choicebook;
10502                           if test "$enableval" = yes; then
10503                             wx_cv_use_choicebook='wxUSE_CHOICEBOOK=yes'
10504                           else
10505                             wx_cv_use_choicebook='wxUSE_CHOICEBOOK=no'
10506                           fi
10507
10508 else
10509
10510                           wx_cv_use_choicebook='wxUSE_CHOICEBOOK=${'DEFAULT_wxUSE_CHOICEBOOK":-$defaultval}"
10511
10512 fi
10513
10514
10515           eval "$wx_cv_use_choicebook"
10516
10517           if test x"$enablestring" = xdisable; then
10518             if test $wxUSE_CHOICEBOOK = no; then
10519               result=yes
10520             else
10521               result=no
10522             fi
10523           else
10524             result=$wxUSE_CHOICEBOOK
10525           fi
10526
10527           { echo "$as_me:$LINENO: result: $result" >&5
10528 echo "${ECHO_T}$result" >&6; }
10529
10530
10531           enablestring=
10532           defaultval=$wxUSE_ALL_FEATURES
10533           if test -z "$defaultval"; then
10534               if test x"$enablestring" = xdisable; then
10535                   defaultval=yes
10536               else
10537                   defaultval=no
10538               fi
10539           fi
10540
10541           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-collpane" >&5
10542 echo $ECHO_N "checking for --${enablestring:-enable}-collpane... $ECHO_C" >&6; }
10543           # Check whether --enable-collpane was given.
10544 if test "${enable_collpane+set}" = set; then
10545   enableval=$enable_collpane;
10546                           if test "$enableval" = yes; then
10547                             wx_cv_use_collpane='wxUSE_COLLPANE=yes'
10548                           else
10549                             wx_cv_use_collpane='wxUSE_COLLPANE=no'
10550                           fi
10551
10552 else
10553
10554                           wx_cv_use_collpane='wxUSE_COLLPANE=${'DEFAULT_wxUSE_COLLPANE":-$defaultval}"
10555
10556 fi
10557
10558
10559           eval "$wx_cv_use_collpane"
10560
10561           if test x"$enablestring" = xdisable; then
10562             if test $wxUSE_COLLPANE = no; then
10563               result=yes
10564             else
10565               result=no
10566             fi
10567           else
10568             result=$wxUSE_COLLPANE
10569           fi
10570
10571           { echo "$as_me:$LINENO: result: $result" >&5
10572 echo "${ECHO_T}$result" >&6; }
10573
10574
10575           enablestring=
10576           defaultval=$wxUSE_ALL_FEATURES
10577           if test -z "$defaultval"; then
10578               if test x"$enablestring" = xdisable; then
10579                   defaultval=yes
10580               else
10581                   defaultval=no
10582               fi
10583           fi
10584
10585           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-colourpicker" >&5
10586 echo $ECHO_N "checking for --${enablestring:-enable}-colourpicker... $ECHO_C" >&6; }
10587           # Check whether --enable-colourpicker was given.
10588 if test "${enable_colourpicker+set}" = set; then
10589   enableval=$enable_colourpicker;
10590                           if test "$enableval" = yes; then
10591                             wx_cv_use_colourpicker='wxUSE_COLOURPICKERCTRL=yes'
10592                           else
10593                             wx_cv_use_colourpicker='wxUSE_COLOURPICKERCTRL=no'
10594                           fi
10595
10596 else
10597
10598                           wx_cv_use_colourpicker='wxUSE_COLOURPICKERCTRL=${'DEFAULT_wxUSE_COLOURPICKERCTRL":-$defaultval}"
10599
10600 fi
10601
10602
10603           eval "$wx_cv_use_colourpicker"
10604
10605           if test x"$enablestring" = xdisable; then
10606             if test $wxUSE_COLOURPICKERCTRL = no; then
10607               result=yes
10608             else
10609               result=no
10610             fi
10611           else
10612             result=$wxUSE_COLOURPICKERCTRL
10613           fi
10614
10615           { echo "$as_me:$LINENO: result: $result" >&5
10616 echo "${ECHO_T}$result" >&6; }
10617
10618
10619           enablestring=
10620           defaultval=$wxUSE_ALL_FEATURES
10621           if test -z "$defaultval"; then
10622               if test x"$enablestring" = xdisable; then
10623                   defaultval=yes
10624               else
10625                   defaultval=no
10626               fi
10627           fi
10628
10629           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-combobox" >&5
10630 echo $ECHO_N "checking for --${enablestring:-enable}-combobox... $ECHO_C" >&6; }
10631           # Check whether --enable-combobox was given.
10632 if test "${enable_combobox+set}" = set; then
10633   enableval=$enable_combobox;
10634                           if test "$enableval" = yes; then
10635                             wx_cv_use_combobox='wxUSE_COMBOBOX=yes'
10636                           else
10637                             wx_cv_use_combobox='wxUSE_COMBOBOX=no'
10638                           fi
10639
10640 else
10641
10642                           wx_cv_use_combobox='wxUSE_COMBOBOX=${'DEFAULT_wxUSE_COMBOBOX":-$defaultval}"
10643
10644 fi
10645
10646
10647           eval "$wx_cv_use_combobox"
10648
10649           if test x"$enablestring" = xdisable; then
10650             if test $wxUSE_COMBOBOX = no; then
10651               result=yes
10652             else
10653               result=no
10654             fi
10655           else
10656             result=$wxUSE_COMBOBOX
10657           fi
10658
10659           { echo "$as_me:$LINENO: result: $result" >&5
10660 echo "${ECHO_T}$result" >&6; }
10661
10662
10663           enablestring=
10664           defaultval=$wxUSE_ALL_FEATURES
10665           if test -z "$defaultval"; then
10666               if test x"$enablestring" = xdisable; then
10667                   defaultval=yes
10668               else
10669                   defaultval=no
10670               fi
10671           fi
10672
10673           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-comboctrl" >&5
10674 echo $ECHO_N "checking for --${enablestring:-enable}-comboctrl... $ECHO_C" >&6; }
10675           # Check whether --enable-comboctrl was given.
10676 if test "${enable_comboctrl+set}" = set; then
10677   enableval=$enable_comboctrl;
10678                           if test "$enableval" = yes; then
10679                             wx_cv_use_comboctrl='wxUSE_COMBOCTRL=yes'
10680                           else
10681                             wx_cv_use_comboctrl='wxUSE_COMBOCTRL=no'
10682                           fi
10683
10684 else
10685
10686                           wx_cv_use_comboctrl='wxUSE_COMBOCTRL=${'DEFAULT_wxUSE_COMBOCTRL":-$defaultval}"
10687
10688 fi
10689
10690
10691           eval "$wx_cv_use_comboctrl"
10692
10693           if test x"$enablestring" = xdisable; then
10694             if test $wxUSE_COMBOCTRL = no; then
10695               result=yes
10696             else
10697               result=no
10698             fi
10699           else
10700             result=$wxUSE_COMBOCTRL
10701           fi
10702
10703           { echo "$as_me:$LINENO: result: $result" >&5
10704 echo "${ECHO_T}$result" >&6; }
10705
10706
10707           enablestring=
10708           defaultval=$wxUSE_ALL_FEATURES
10709           if test -z "$defaultval"; then
10710               if test x"$enablestring" = xdisable; then
10711                   defaultval=yes
10712               else
10713                   defaultval=no
10714               fi
10715           fi
10716
10717           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-commandlinkbutton" >&5
10718 echo $ECHO_N "checking for --${enablestring:-enable}-commandlinkbutton... $ECHO_C" >&6; }
10719           # Check whether --enable-commandlinkbutton was given.
10720 if test "${enable_commandlinkbutton+set}" = set; then
10721   enableval=$enable_commandlinkbutton;
10722                           if test "$enableval" = yes; then
10723                             wx_cv_use_commandlinkbutton='wxUSE_COMMANDLINKBUTTON=yes'
10724                           else
10725                             wx_cv_use_commandlinkbutton='wxUSE_COMMANDLINKBUTTON=no'
10726                           fi
10727
10728 else
10729
10730                           wx_cv_use_commandlinkbutton='wxUSE_COMMANDLINKBUTTON=${'DEFAULT_wxUSE_COMMANDLINKBUTTON":-$defaultval}"
10731
10732 fi
10733
10734
10735           eval "$wx_cv_use_commandlinkbutton"
10736
10737           if test x"$enablestring" = xdisable; then
10738             if test $wxUSE_COMMANDLINKBUTTON = no; then
10739               result=yes
10740             else
10741               result=no
10742             fi
10743           else
10744             result=$wxUSE_COMMANDLINKBUTTON
10745           fi
10746
10747           { echo "$as_me:$LINENO: result: $result" >&5
10748 echo "${ECHO_T}$result" >&6; }
10749
10750
10751           enablestring=
10752           defaultval=$wxUSE_ALL_FEATURES
10753           if test -z "$defaultval"; then
10754               if test x"$enablestring" = xdisable; then
10755                   defaultval=yes
10756               else
10757                   defaultval=no
10758               fi
10759           fi
10760
10761           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataviewctrl" >&5
10762 echo $ECHO_N "checking for --${enablestring:-enable}-dataviewctrl... $ECHO_C" >&6; }
10763           # Check whether --enable-dataviewctrl was given.
10764 if test "${enable_dataviewctrl+set}" = set; then
10765   enableval=$enable_dataviewctrl;
10766                           if test "$enableval" = yes; then
10767                             wx_cv_use_dataviewctrl='wxUSE_DATAVIEWCTRL=yes'
10768                           else
10769                             wx_cv_use_dataviewctrl='wxUSE_DATAVIEWCTRL=no'
10770                           fi
10771
10772 else
10773
10774                           wx_cv_use_dataviewctrl='wxUSE_DATAVIEWCTRL=${'DEFAULT_wxUSE_DATAVIEWCTRL":-$defaultval}"
10775
10776 fi
10777
10778
10779           eval "$wx_cv_use_dataviewctrl"
10780
10781           if test x"$enablestring" = xdisable; then
10782             if test $wxUSE_DATAVIEWCTRL = no; then
10783               result=yes
10784             else
10785               result=no
10786             fi
10787           else
10788             result=$wxUSE_DATAVIEWCTRL
10789           fi
10790
10791           { echo "$as_me:$LINENO: result: $result" >&5
10792 echo "${ECHO_T}$result" >&6; }
10793
10794
10795           enablestring=
10796           defaultval=$wxUSE_ALL_FEATURES
10797           if test -z "$defaultval"; then
10798               if test x"$enablestring" = xdisable; then
10799                   defaultval=yes
10800               else
10801                   defaultval=no
10802               fi
10803           fi
10804
10805           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datepick" >&5
10806 echo $ECHO_N "checking for --${enablestring:-enable}-datepick... $ECHO_C" >&6; }
10807           # Check whether --enable-datepick was given.
10808 if test "${enable_datepick+set}" = set; then
10809   enableval=$enable_datepick;
10810                           if test "$enableval" = yes; then
10811                             wx_cv_use_datepick='wxUSE_DATEPICKCTRL=yes'
10812                           else
10813                             wx_cv_use_datepick='wxUSE_DATEPICKCTRL=no'
10814                           fi
10815
10816 else
10817
10818                           wx_cv_use_datepick='wxUSE_DATEPICKCTRL=${'DEFAULT_wxUSE_DATEPICKCTRL":-$defaultval}"
10819
10820 fi
10821
10822
10823           eval "$wx_cv_use_datepick"
10824
10825           if test x"$enablestring" = xdisable; then
10826             if test $wxUSE_DATEPICKCTRL = no; then
10827               result=yes
10828             else
10829               result=no
10830             fi
10831           else
10832             result=$wxUSE_DATEPICKCTRL
10833           fi
10834
10835           { echo "$as_me:$LINENO: result: $result" >&5
10836 echo "${ECHO_T}$result" >&6; }
10837
10838
10839           enablestring=
10840           defaultval=$wxUSE_ALL_FEATURES
10841           if test -z "$defaultval"; then
10842               if test x"$enablestring" = xdisable; then
10843                   defaultval=yes
10844               else
10845                   defaultval=no
10846               fi
10847           fi
10848
10849           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-detect_sm" >&5
10850 echo $ECHO_N "checking for --${enablestring:-enable}-detect_sm... $ECHO_C" >&6; }
10851           # Check whether --enable-detect_sm was given.
10852 if test "${enable_detect_sm+set}" = set; then
10853   enableval=$enable_detect_sm;
10854                           if test "$enableval" = yes; then
10855                             wx_cv_use_detect_sm='wxUSE_DETECT_SM=yes'
10856                           else
10857                             wx_cv_use_detect_sm='wxUSE_DETECT_SM=no'
10858                           fi
10859
10860 else
10861
10862                           wx_cv_use_detect_sm='wxUSE_DETECT_SM=${'DEFAULT_wxUSE_DETECT_SM":-$defaultval}"
10863
10864 fi
10865
10866
10867           eval "$wx_cv_use_detect_sm"
10868
10869           if test x"$enablestring" = xdisable; then
10870             if test $wxUSE_DETECT_SM = no; then
10871               result=yes
10872             else
10873               result=no
10874             fi
10875           else
10876             result=$wxUSE_DETECT_SM
10877           fi
10878
10879           { echo "$as_me:$LINENO: result: $result" >&5
10880 echo "${ECHO_T}$result" >&6; }
10881
10882
10883           enablestring=
10884           defaultval=$wxUSE_ALL_FEATURES
10885           if test -z "$defaultval"; then
10886               if test x"$enablestring" = xdisable; then
10887                   defaultval=yes
10888               else
10889                   defaultval=no
10890               fi
10891           fi
10892
10893           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirpicker" >&5
10894 echo $ECHO_N "checking for --${enablestring:-enable}-dirpicker... $ECHO_C" >&6; }
10895           # Check whether --enable-dirpicker was given.
10896 if test "${enable_dirpicker+set}" = set; then
10897   enableval=$enable_dirpicker;
10898                           if test "$enableval" = yes; then
10899                             wx_cv_use_dirpicker='wxUSE_DIRPICKERCTRL=yes'
10900                           else
10901                             wx_cv_use_dirpicker='wxUSE_DIRPICKERCTRL=no'
10902                           fi
10903
10904 else
10905
10906                           wx_cv_use_dirpicker='wxUSE_DIRPICKERCTRL=${'DEFAULT_wxUSE_DIRPICKERCTRL":-$defaultval}"
10907
10908 fi
10909
10910
10911           eval "$wx_cv_use_dirpicker"
10912
10913           if test x"$enablestring" = xdisable; then
10914             if test $wxUSE_DIRPICKERCTRL = no; then
10915               result=yes
10916             else
10917               result=no
10918             fi
10919           else
10920             result=$wxUSE_DIRPICKERCTRL
10921           fi
10922
10923           { echo "$as_me:$LINENO: result: $result" >&5
10924 echo "${ECHO_T}$result" >&6; }
10925
10926
10927           enablestring=
10928           defaultval=$wxUSE_ALL_FEATURES
10929           if test -z "$defaultval"; then
10930               if test x"$enablestring" = xdisable; then
10931                   defaultval=yes
10932               else
10933                   defaultval=no
10934               fi
10935           fi
10936
10937           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-display" >&5
10938 echo $ECHO_N "checking for --${enablestring:-enable}-display... $ECHO_C" >&6; }
10939           # Check whether --enable-display was given.
10940 if test "${enable_display+set}" = set; then
10941   enableval=$enable_display;
10942                           if test "$enableval" = yes; then
10943                             wx_cv_use_display='wxUSE_DISPLAY=yes'
10944                           else
10945                             wx_cv_use_display='wxUSE_DISPLAY=no'
10946                           fi
10947
10948 else
10949
10950                           wx_cv_use_display='wxUSE_DISPLAY=${'DEFAULT_wxUSE_DISPLAY":-$defaultval}"
10951
10952 fi
10953
10954
10955           eval "$wx_cv_use_display"
10956
10957           if test x"$enablestring" = xdisable; then
10958             if test $wxUSE_DISPLAY = no; then
10959               result=yes
10960             else
10961               result=no
10962             fi
10963           else
10964             result=$wxUSE_DISPLAY
10965           fi
10966
10967           { echo "$as_me:$LINENO: result: $result" >&5
10968 echo "${ECHO_T}$result" >&6; }
10969
10970
10971           enablestring=
10972           defaultval=$wxUSE_ALL_FEATURES
10973           if test -z "$defaultval"; then
10974               if test x"$enablestring" = xdisable; then
10975                   defaultval=yes
10976               else
10977                   defaultval=no
10978               fi
10979           fi
10980
10981           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-editablebox" >&5
10982 echo $ECHO_N "checking for --${enablestring:-enable}-editablebox... $ECHO_C" >&6; }
10983           # Check whether --enable-editablebox was given.
10984 if test "${enable_editablebox+set}" = set; then
10985   enableval=$enable_editablebox;
10986                           if test "$enableval" = yes; then
10987                             wx_cv_use_editablebox='wxUSE_EDITABLELISTBOX=yes'
10988                           else
10989                             wx_cv_use_editablebox='wxUSE_EDITABLELISTBOX=no'
10990                           fi
10991
10992 else
10993
10994                           wx_cv_use_editablebox='wxUSE_EDITABLELISTBOX=${'DEFAULT_wxUSE_EDITABLELISTBOX":-$defaultval}"
10995
10996 fi
10997
10998
10999           eval "$wx_cv_use_editablebox"
11000
11001           if test x"$enablestring" = xdisable; then
11002             if test $wxUSE_EDITABLELISTBOX = no; then
11003               result=yes
11004             else
11005               result=no
11006             fi
11007           else
11008             result=$wxUSE_EDITABLELISTBOX
11009           fi
11010
11011           { echo "$as_me:$LINENO: result: $result" >&5
11012 echo "${ECHO_T}$result" >&6; }
11013
11014
11015           enablestring=
11016           defaultval=$wxUSE_ALL_FEATURES
11017           if test -z "$defaultval"; then
11018               if test x"$enablestring" = xdisable; then
11019                   defaultval=yes
11020               else
11021                   defaultval=no
11022               fi
11023           fi
11024
11025           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filectrl" >&5
11026 echo $ECHO_N "checking for --${enablestring:-enable}-filectrl... $ECHO_C" >&6; }
11027           # Check whether --enable-filectrl was given.
11028 if test "${enable_filectrl+set}" = set; then
11029   enableval=$enable_filectrl;
11030                           if test "$enableval" = yes; then
11031                             wx_cv_use_filectrl='wxUSE_FILECTRL=yes'
11032                           else
11033                             wx_cv_use_filectrl='wxUSE_FILECTRL=no'
11034                           fi
11035
11036 else
11037
11038                           wx_cv_use_filectrl='wxUSE_FILECTRL=${'DEFAULT_wxUSE_FILECTRL":-$defaultval}"
11039
11040 fi
11041
11042
11043           eval "$wx_cv_use_filectrl"
11044
11045           if test x"$enablestring" = xdisable; then
11046             if test $wxUSE_FILECTRL = no; then
11047               result=yes
11048             else
11049               result=no
11050             fi
11051           else
11052             result=$wxUSE_FILECTRL
11053           fi
11054
11055           { echo "$as_me:$LINENO: result: $result" >&5
11056 echo "${ECHO_T}$result" >&6; }
11057
11058
11059           enablestring=
11060           defaultval=$wxUSE_ALL_FEATURES
11061           if test -z "$defaultval"; then
11062               if test x"$enablestring" = xdisable; then
11063                   defaultval=yes
11064               else
11065                   defaultval=no
11066               fi
11067           fi
11068
11069           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filepicker" >&5
11070 echo $ECHO_N "checking for --${enablestring:-enable}-filepicker... $ECHO_C" >&6; }
11071           # Check whether --enable-filepicker was given.
11072 if test "${enable_filepicker+set}" = set; then
11073   enableval=$enable_filepicker;
11074                           if test "$enableval" = yes; then
11075                             wx_cv_use_filepicker='wxUSE_FILEPICKERCTRL=yes'
11076                           else
11077                             wx_cv_use_filepicker='wxUSE_FILEPICKERCTRL=no'
11078                           fi
11079
11080 else
11081
11082                           wx_cv_use_filepicker='wxUSE_FILEPICKERCTRL=${'DEFAULT_wxUSE_FILEPICKERCTRL":-$defaultval}"
11083
11084 fi
11085
11086
11087           eval "$wx_cv_use_filepicker"
11088
11089           if test x"$enablestring" = xdisable; then
11090             if test $wxUSE_FILEPICKERCTRL = no; then
11091               result=yes
11092             else
11093               result=no
11094             fi
11095           else
11096             result=$wxUSE_FILEPICKERCTRL
11097           fi
11098
11099           { echo "$as_me:$LINENO: result: $result" >&5
11100 echo "${ECHO_T}$result" >&6; }
11101
11102
11103           enablestring=
11104           defaultval=$wxUSE_ALL_FEATURES
11105           if test -z "$defaultval"; then
11106               if test x"$enablestring" = xdisable; then
11107                   defaultval=yes
11108               else
11109                   defaultval=no
11110               fi
11111           fi
11112
11113           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontpicker" >&5
11114 echo $ECHO_N "checking for --${enablestring:-enable}-fontpicker... $ECHO_C" >&6; }
11115           # Check whether --enable-fontpicker was given.
11116 if test "${enable_fontpicker+set}" = set; then
11117   enableval=$enable_fontpicker;
11118                           if test "$enableval" = yes; then
11119                             wx_cv_use_fontpicker='wxUSE_FONTPICKERCTRL=yes'
11120                           else
11121                             wx_cv_use_fontpicker='wxUSE_FONTPICKERCTRL=no'
11122                           fi
11123
11124 else
11125
11126                           wx_cv_use_fontpicker='wxUSE_FONTPICKERCTRL=${'DEFAULT_wxUSE_FONTPICKERCTRL":-$defaultval}"
11127
11128 fi
11129
11130
11131           eval "$wx_cv_use_fontpicker"
11132
11133           if test x"$enablestring" = xdisable; then
11134             if test $wxUSE_FONTPICKERCTRL = no; then
11135               result=yes
11136             else
11137               result=no
11138             fi
11139           else
11140             result=$wxUSE_FONTPICKERCTRL
11141           fi
11142
11143           { echo "$as_me:$LINENO: result: $result" >&5
11144 echo "${ECHO_T}$result" >&6; }
11145
11146
11147           enablestring=
11148           defaultval=$wxUSE_ALL_FEATURES
11149           if test -z "$defaultval"; then
11150               if test x"$enablestring" = xdisable; then
11151                   defaultval=yes
11152               else
11153                   defaultval=no
11154               fi
11155           fi
11156
11157           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gauge" >&5
11158 echo $ECHO_N "checking for --${enablestring:-enable}-gauge... $ECHO_C" >&6; }
11159           # Check whether --enable-gauge was given.
11160 if test "${enable_gauge+set}" = set; then
11161   enableval=$enable_gauge;
11162                           if test "$enableval" = yes; then
11163                             wx_cv_use_gauge='wxUSE_GAUGE=yes'
11164                           else
11165                             wx_cv_use_gauge='wxUSE_GAUGE=no'
11166                           fi
11167
11168 else
11169
11170                           wx_cv_use_gauge='wxUSE_GAUGE=${'DEFAULT_wxUSE_GAUGE":-$defaultval}"
11171
11172 fi
11173
11174
11175           eval "$wx_cv_use_gauge"
11176
11177           if test x"$enablestring" = xdisable; then
11178             if test $wxUSE_GAUGE = no; then
11179               result=yes
11180             else
11181               result=no
11182             fi
11183           else
11184             result=$wxUSE_GAUGE
11185           fi
11186
11187           { echo "$as_me:$LINENO: result: $result" >&5
11188 echo "${ECHO_T}$result" >&6; }
11189
11190
11191           enablestring=
11192           defaultval=$wxUSE_ALL_FEATURES
11193           if test -z "$defaultval"; then
11194               if test x"$enablestring" = xdisable; then
11195                   defaultval=yes
11196               else
11197                   defaultval=no
11198               fi
11199           fi
11200
11201           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-grid" >&5
11202 echo $ECHO_N "checking for --${enablestring:-enable}-grid... $ECHO_C" >&6; }
11203           # Check whether --enable-grid was given.
11204 if test "${enable_grid+set}" = set; then
11205   enableval=$enable_grid;
11206                           if test "$enableval" = yes; then
11207                             wx_cv_use_grid='wxUSE_GRID=yes'
11208                           else
11209                             wx_cv_use_grid='wxUSE_GRID=no'
11210                           fi
11211
11212 else
11213
11214                           wx_cv_use_grid='wxUSE_GRID=${'DEFAULT_wxUSE_GRID":-$defaultval}"
11215
11216 fi
11217
11218
11219           eval "$wx_cv_use_grid"
11220
11221           if test x"$enablestring" = xdisable; then
11222             if test $wxUSE_GRID = no; then
11223               result=yes
11224             else
11225               result=no
11226             fi
11227           else
11228             result=$wxUSE_GRID
11229           fi
11230
11231           { echo "$as_me:$LINENO: result: $result" >&5
11232 echo "${ECHO_T}$result" >&6; }
11233
11234
11235           enablestring=
11236           defaultval=$wxUSE_ALL_FEATURES
11237           if test -z "$defaultval"; then
11238               if test x"$enablestring" = xdisable; then
11239                   defaultval=yes
11240               else
11241                   defaultval=no
11242               fi
11243           fi
11244
11245           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-headerctrl" >&5
11246 echo $ECHO_N "checking for --${enablestring:-enable}-headerctrl... $ECHO_C" >&6; }
11247           # Check whether --enable-headerctrl was given.
11248 if test "${enable_headerctrl+set}" = set; then
11249   enableval=$enable_headerctrl;
11250                           if test "$enableval" = yes; then
11251                             wx_cv_use_headerctrl='wxUSE_HEADERCTRL=yes'
11252                           else
11253                             wx_cv_use_headerctrl='wxUSE_HEADERCTRL=no'
11254                           fi
11255
11256 else
11257
11258                           wx_cv_use_headerctrl='wxUSE_HEADERCTRL=${'DEFAULT_wxUSE_HEADERCTRL":-$defaultval}"
11259
11260 fi
11261
11262
11263           eval "$wx_cv_use_headerctrl"
11264
11265           if test x"$enablestring" = xdisable; then
11266             if test $wxUSE_HEADERCTRL = no; then
11267               result=yes
11268             else
11269               result=no
11270             fi
11271           else
11272             result=$wxUSE_HEADERCTRL
11273           fi
11274
11275           { echo "$as_me:$LINENO: result: $result" >&5
11276 echo "${ECHO_T}$result" >&6; }
11277
11278
11279           enablestring=
11280           defaultval=$wxUSE_ALL_FEATURES
11281           if test -z "$defaultval"; then
11282               if test x"$enablestring" = xdisable; then
11283                   defaultval=yes
11284               else
11285                   defaultval=no
11286               fi
11287           fi
11288
11289           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-hyperlink" >&5
11290 echo $ECHO_N "checking for --${enablestring:-enable}-hyperlink... $ECHO_C" >&6; }
11291           # Check whether --enable-hyperlink was given.
11292 if test "${enable_hyperlink+set}" = set; then
11293   enableval=$enable_hyperlink;
11294                           if test "$enableval" = yes; then
11295                             wx_cv_use_hyperlink='wxUSE_HYPERLINKCTRL=yes'
11296                           else
11297                             wx_cv_use_hyperlink='wxUSE_HYPERLINKCTRL=no'
11298                           fi
11299
11300 else
11301
11302                           wx_cv_use_hyperlink='wxUSE_HYPERLINKCTRL=${'DEFAULT_wxUSE_HYPERLINKCTRL":-$defaultval}"
11303
11304 fi
11305
11306
11307           eval "$wx_cv_use_hyperlink"
11308
11309           if test x"$enablestring" = xdisable; then
11310             if test $wxUSE_HYPERLINKCTRL = no; then
11311               result=yes
11312             else
11313               result=no
11314             fi
11315           else
11316             result=$wxUSE_HYPERLINKCTRL
11317           fi
11318
11319           { echo "$as_me:$LINENO: result: $result" >&5
11320 echo "${ECHO_T}$result" >&6; }
11321
11322
11323           enablestring=
11324           defaultval=$wxUSE_ALL_FEATURES
11325           if test -z "$defaultval"; then
11326               if test x"$enablestring" = xdisable; then
11327                   defaultval=yes
11328               else
11329                   defaultval=no
11330               fi
11331           fi
11332
11333           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-imaglist" >&5
11334 echo $ECHO_N "checking for --${enablestring:-enable}-imaglist... $ECHO_C" >&6; }
11335           # Check whether --enable-imaglist was given.
11336 if test "${enable_imaglist+set}" = set; then
11337   enableval=$enable_imaglist;
11338                           if test "$enableval" = yes; then
11339                             wx_cv_use_imaglist='wxUSE_IMAGLIST=yes'
11340                           else
11341                             wx_cv_use_imaglist='wxUSE_IMAGLIST=no'
11342                           fi
11343
11344 else
11345
11346                           wx_cv_use_imaglist='wxUSE_IMAGLIST=${'DEFAULT_wxUSE_IMAGLIST":-$defaultval}"
11347
11348 fi
11349
11350
11351           eval "$wx_cv_use_imaglist"
11352
11353           if test x"$enablestring" = xdisable; then
11354             if test $wxUSE_IMAGLIST = no; then
11355               result=yes
11356             else
11357               result=no
11358             fi
11359           else
11360             result=$wxUSE_IMAGLIST
11361           fi
11362
11363           { echo "$as_me:$LINENO: result: $result" >&5
11364 echo "${ECHO_T}$result" >&6; }
11365
11366
11367           enablestring=
11368           defaultval=$wxUSE_ALL_FEATURES
11369           if test -z "$defaultval"; then
11370               if test x"$enablestring" = xdisable; then
11371                   defaultval=yes
11372               else
11373                   defaultval=no
11374               fi
11375           fi
11376
11377           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-infobar" >&5
11378 echo $ECHO_N "checking for --${enablestring:-enable}-infobar... $ECHO_C" >&6; }
11379           # Check whether --enable-infobar was given.
11380 if test "${enable_infobar+set}" = set; then
11381   enableval=$enable_infobar;
11382                           if test "$enableval" = yes; then
11383                             wx_cv_use_infobar='wxUSE_INFOBAR=yes'
11384                           else
11385                             wx_cv_use_infobar='wxUSE_INFOBAR=no'
11386                           fi
11387
11388 else
11389
11390                           wx_cv_use_infobar='wxUSE_INFOBAR=${'DEFAULT_wxUSE_INFOBAR":-$defaultval}"
11391
11392 fi
11393
11394
11395           eval "$wx_cv_use_infobar"
11396
11397           if test x"$enablestring" = xdisable; then
11398             if test $wxUSE_INFOBAR = no; then
11399               result=yes
11400             else
11401               result=no
11402             fi
11403           else
11404             result=$wxUSE_INFOBAR
11405           fi
11406
11407           { echo "$as_me:$LINENO: result: $result" >&5
11408 echo "${ECHO_T}$result" >&6; }
11409
11410
11411           enablestring=
11412           defaultval=$wxUSE_ALL_FEATURES
11413           if test -z "$defaultval"; then
11414               if test x"$enablestring" = xdisable; then
11415                   defaultval=yes
11416               else
11417                   defaultval=no
11418               fi
11419           fi
11420
11421           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbook" >&5
11422 echo $ECHO_N "checking for --${enablestring:-enable}-listbook... $ECHO_C" >&6; }
11423           # Check whether --enable-listbook was given.
11424 if test "${enable_listbook+set}" = set; then
11425   enableval=$enable_listbook;
11426                           if test "$enableval" = yes; then
11427                             wx_cv_use_listbook='wxUSE_LISTBOOK=yes'
11428                           else
11429                             wx_cv_use_listbook='wxUSE_LISTBOOK=no'
11430                           fi
11431
11432 else
11433
11434                           wx_cv_use_listbook='wxUSE_LISTBOOK=${'DEFAULT_wxUSE_LISTBOOK":-$defaultval}"
11435
11436 fi
11437
11438
11439           eval "$wx_cv_use_listbook"
11440
11441           if test x"$enablestring" = xdisable; then
11442             if test $wxUSE_LISTBOOK = no; then
11443               result=yes
11444             else
11445               result=no
11446             fi
11447           else
11448             result=$wxUSE_LISTBOOK
11449           fi
11450
11451           { echo "$as_me:$LINENO: result: $result" >&5
11452 echo "${ECHO_T}$result" >&6; }
11453
11454
11455           enablestring=
11456           defaultval=$wxUSE_ALL_FEATURES
11457           if test -z "$defaultval"; then
11458               if test x"$enablestring" = xdisable; then
11459                   defaultval=yes
11460               else
11461                   defaultval=no
11462               fi
11463           fi
11464
11465           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbox" >&5
11466 echo $ECHO_N "checking for --${enablestring:-enable}-listbox... $ECHO_C" >&6; }
11467           # Check whether --enable-listbox was given.
11468 if test "${enable_listbox+set}" = set; then
11469   enableval=$enable_listbox;
11470                           if test "$enableval" = yes; then
11471                             wx_cv_use_listbox='wxUSE_LISTBOX=yes'
11472                           else
11473                             wx_cv_use_listbox='wxUSE_LISTBOX=no'
11474                           fi
11475
11476 else
11477
11478                           wx_cv_use_listbox='wxUSE_LISTBOX=${'DEFAULT_wxUSE_LISTBOX":-$defaultval}"
11479
11480 fi
11481
11482
11483           eval "$wx_cv_use_listbox"
11484
11485           if test x"$enablestring" = xdisable; then
11486             if test $wxUSE_LISTBOX = no; then
11487               result=yes
11488             else
11489               result=no
11490             fi
11491           else
11492             result=$wxUSE_LISTBOX
11493           fi
11494
11495           { echo "$as_me:$LINENO: result: $result" >&5
11496 echo "${ECHO_T}$result" >&6; }
11497
11498
11499           enablestring=
11500           defaultval=$wxUSE_ALL_FEATURES
11501           if test -z "$defaultval"; then
11502               if test x"$enablestring" = xdisable; then
11503                   defaultval=yes
11504               else
11505                   defaultval=no
11506               fi
11507           fi
11508
11509           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listctrl" >&5
11510 echo $ECHO_N "checking for --${enablestring:-enable}-listctrl... $ECHO_C" >&6; }
11511           # Check whether --enable-listctrl was given.
11512 if test "${enable_listctrl+set}" = set; then
11513   enableval=$enable_listctrl;
11514                           if test "$enableval" = yes; then
11515                             wx_cv_use_listctrl='wxUSE_LISTCTRL=yes'
11516                           else
11517                             wx_cv_use_listctrl='wxUSE_LISTCTRL=no'
11518                           fi
11519
11520 else
11521
11522                           wx_cv_use_listctrl='wxUSE_LISTCTRL=${'DEFAULT_wxUSE_LISTCTRL":-$defaultval}"
11523
11524 fi
11525
11526
11527           eval "$wx_cv_use_listctrl"
11528
11529           if test x"$enablestring" = xdisable; then
11530             if test $wxUSE_LISTCTRL = no; then
11531               result=yes
11532             else
11533               result=no
11534             fi
11535           else
11536             result=$wxUSE_LISTCTRL
11537           fi
11538
11539           { echo "$as_me:$LINENO: result: $result" >&5
11540 echo "${ECHO_T}$result" >&6; }
11541
11542
11543           enablestring=
11544           defaultval=$wxUSE_ALL_FEATURES
11545           if test -z "$defaultval"; then
11546               if test x"$enablestring" = xdisable; then
11547                   defaultval=yes
11548               else
11549                   defaultval=no
11550               fi
11551           fi
11552
11553           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-notebook" >&5
11554 echo $ECHO_N "checking for --${enablestring:-enable}-notebook... $ECHO_C" >&6; }
11555           # Check whether --enable-notebook was given.
11556 if test "${enable_notebook+set}" = set; then
11557   enableval=$enable_notebook;
11558                           if test "$enableval" = yes; then
11559                             wx_cv_use_notebook='wxUSE_NOTEBOOK=yes'
11560                           else
11561                             wx_cv_use_notebook='wxUSE_NOTEBOOK=no'
11562                           fi
11563
11564 else
11565
11566                           wx_cv_use_notebook='wxUSE_NOTEBOOK=${'DEFAULT_wxUSE_NOTEBOOK":-$defaultval}"
11567
11568 fi
11569
11570
11571           eval "$wx_cv_use_notebook"
11572
11573           if test x"$enablestring" = xdisable; then
11574             if test $wxUSE_NOTEBOOK = no; then
11575               result=yes
11576             else
11577               result=no
11578             fi
11579           else
11580             result=$wxUSE_NOTEBOOK
11581           fi
11582
11583           { echo "$as_me:$LINENO: result: $result" >&5
11584 echo "${ECHO_T}$result" >&6; }
11585
11586
11587           enablestring=
11588           defaultval=$wxUSE_ALL_FEATURES
11589           if test -z "$defaultval"; then
11590               if test x"$enablestring" = xdisable; then
11591                   defaultval=yes
11592               else
11593                   defaultval=no
11594               fi
11595           fi
11596
11597           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-notifmsg" >&5
11598 echo $ECHO_N "checking for --${enablestring:-enable}-notifmsg... $ECHO_C" >&6; }
11599           # Check whether --enable-notifmsg was given.
11600 if test "${enable_notifmsg+set}" = set; then
11601   enableval=$enable_notifmsg;
11602                           if test "$enableval" = yes; then
11603                             wx_cv_use_notifmsg='wxUSE_NOTIFICATION_MESSAGE=yes'
11604                           else
11605                             wx_cv_use_notifmsg='wxUSE_NOTIFICATION_MESSAGE=no'
11606                           fi
11607
11608 else
11609
11610                           wx_cv_use_notifmsg='wxUSE_NOTIFICATION_MESSAGE=${'DEFAULT_wxUSE_NOTIFICATION_MESSAGE":-$defaultval}"
11611
11612 fi
11613
11614
11615           eval "$wx_cv_use_notifmsg"
11616
11617           if test x"$enablestring" = xdisable; then
11618             if test $wxUSE_NOTIFICATION_MESSAGE = no; then
11619               result=yes
11620             else
11621               result=no
11622             fi
11623           else
11624             result=$wxUSE_NOTIFICATION_MESSAGE
11625           fi
11626
11627           { echo "$as_me:$LINENO: result: $result" >&5
11628 echo "${ECHO_T}$result" >&6; }
11629
11630
11631           enablestring=
11632           defaultval=$wxUSE_ALL_FEATURES
11633           if test -z "$defaultval"; then
11634               if test x"$enablestring" = xdisable; then
11635                   defaultval=yes
11636               else
11637                   defaultval=no
11638               fi
11639           fi
11640
11641           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-odcombobox" >&5
11642 echo $ECHO_N "checking for --${enablestring:-enable}-odcombobox... $ECHO_C" >&6; }
11643           # Check whether --enable-odcombobox was given.
11644 if test "${enable_odcombobox+set}" = set; then
11645   enableval=$enable_odcombobox;
11646                           if test "$enableval" = yes; then
11647                             wx_cv_use_odcombobox='wxUSE_ODCOMBOBOX=yes'
11648                           else
11649                             wx_cv_use_odcombobox='wxUSE_ODCOMBOBOX=no'
11650                           fi
11651
11652 else
11653
11654                           wx_cv_use_odcombobox='wxUSE_ODCOMBOBOX=${'DEFAULT_wxUSE_ODCOMBOBOX":-$defaultval}"
11655
11656 fi
11657
11658
11659           eval "$wx_cv_use_odcombobox"
11660
11661           if test x"$enablestring" = xdisable; then
11662             if test $wxUSE_ODCOMBOBOX = no; then
11663               result=yes
11664             else
11665               result=no
11666             fi
11667           else
11668             result=$wxUSE_ODCOMBOBOX
11669           fi
11670
11671           { echo "$as_me:$LINENO: result: $result" >&5
11672 echo "${ECHO_T}$result" >&6; }
11673
11674
11675           enablestring=
11676           defaultval=$wxUSE_ALL_FEATURES
11677           if test -z "$defaultval"; then
11678               if test x"$enablestring" = xdisable; then
11679                   defaultval=yes
11680               else
11681                   defaultval=no
11682               fi
11683           fi
11684
11685           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-popupwin" >&5
11686 echo $ECHO_N "checking for --${enablestring:-enable}-popupwin... $ECHO_C" >&6; }
11687           # Check whether --enable-popupwin was given.
11688 if test "${enable_popupwin+set}" = set; then
11689   enableval=$enable_popupwin;
11690                           if test "$enableval" = yes; then
11691                             wx_cv_use_popupwin='wxUSE_POPUPWIN=yes'
11692                           else
11693                             wx_cv_use_popupwin='wxUSE_POPUPWIN=no'
11694                           fi
11695
11696 else
11697
11698                           wx_cv_use_popupwin='wxUSE_POPUPWIN=${'DEFAULT_wxUSE_POPUPWIN":-$defaultval}"
11699
11700 fi
11701
11702
11703           eval "$wx_cv_use_popupwin"
11704
11705           if test x"$enablestring" = xdisable; then
11706             if test $wxUSE_POPUPWIN = no; then
11707               result=yes
11708             else
11709               result=no
11710             fi
11711           else
11712             result=$wxUSE_POPUPWIN
11713           fi
11714
11715           { echo "$as_me:$LINENO: result: $result" >&5
11716 echo "${ECHO_T}$result" >&6; }
11717
11718
11719           enablestring=
11720           defaultval=$wxUSE_ALL_FEATURES
11721           if test -z "$defaultval"; then
11722               if test x"$enablestring" = xdisable; then
11723                   defaultval=yes
11724               else
11725                   defaultval=no
11726               fi
11727           fi
11728
11729           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobox" >&5
11730 echo $ECHO_N "checking for --${enablestring:-enable}-radiobox... $ECHO_C" >&6; }
11731           # Check whether --enable-radiobox was given.
11732 if test "${enable_radiobox+set}" = set; then
11733   enableval=$enable_radiobox;
11734                           if test "$enableval" = yes; then
11735                             wx_cv_use_radiobox='wxUSE_RADIOBOX=yes'
11736                           else
11737                             wx_cv_use_radiobox='wxUSE_RADIOBOX=no'
11738                           fi
11739
11740 else
11741
11742                           wx_cv_use_radiobox='wxUSE_RADIOBOX=${'DEFAULT_wxUSE_RADIOBOX":-$defaultval}"
11743
11744 fi
11745
11746
11747           eval "$wx_cv_use_radiobox"
11748
11749           if test x"$enablestring" = xdisable; then
11750             if test $wxUSE_RADIOBOX = no; then
11751               result=yes
11752             else
11753               result=no
11754             fi
11755           else
11756             result=$wxUSE_RADIOBOX
11757           fi
11758
11759           { echo "$as_me:$LINENO: result: $result" >&5
11760 echo "${ECHO_T}$result" >&6; }
11761
11762
11763           enablestring=
11764           defaultval=$wxUSE_ALL_FEATURES
11765           if test -z "$defaultval"; then
11766               if test x"$enablestring" = xdisable; then
11767                   defaultval=yes
11768               else
11769                   defaultval=no
11770               fi
11771           fi
11772
11773           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobtn" >&5
11774 echo $ECHO_N "checking for --${enablestring:-enable}-radiobtn... $ECHO_C" >&6; }
11775           # Check whether --enable-radiobtn was given.
11776 if test "${enable_radiobtn+set}" = set; then
11777   enableval=$enable_radiobtn;
11778                           if test "$enableval" = yes; then
11779                             wx_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
11780                           else
11781                             wx_cv_use_radiobtn='wxUSE_RADIOBTN=no'
11782                           fi
11783
11784 else
11785
11786                           wx_cv_use_radiobtn='wxUSE_RADIOBTN=${'DEFAULT_wxUSE_RADIOBTN":-$defaultval}"
11787
11788 fi
11789
11790
11791           eval "$wx_cv_use_radiobtn"
11792
11793           if test x"$enablestring" = xdisable; then
11794             if test $wxUSE_RADIOBTN = no; then
11795               result=yes
11796             else
11797               result=no
11798             fi
11799           else
11800             result=$wxUSE_RADIOBTN
11801           fi
11802
11803           { echo "$as_me:$LINENO: result: $result" >&5
11804 echo "${ECHO_T}$result" >&6; }
11805
11806
11807           enablestring=
11808           defaultval=$wxUSE_ALL_FEATURES
11809           if test -z "$defaultval"; then
11810               if test x"$enablestring" = xdisable; then
11811                   defaultval=yes
11812               else
11813                   defaultval=no
11814               fi
11815           fi
11816
11817           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-richmsgdlg" >&5
11818 echo $ECHO_N "checking for --${enablestring:-enable}-richmsgdlg... $ECHO_C" >&6; }
11819           # Check whether --enable-richmsgdlg was given.
11820 if test "${enable_richmsgdlg+set}" = set; then
11821   enableval=$enable_richmsgdlg;
11822                           if test "$enableval" = yes; then
11823                             wx_cv_use_richmsgdlg='wxUSE_RICHMSGDLG=yes'
11824                           else
11825                             wx_cv_use_richmsgdlg='wxUSE_RICHMSGDLG=no'
11826                           fi
11827
11828 else
11829
11830                           wx_cv_use_richmsgdlg='wxUSE_RICHMSGDLG=${'DEFAULT_wxUSE_RICHMSGDLG":-$defaultval}"
11831
11832 fi
11833
11834
11835           eval "$wx_cv_use_richmsgdlg"
11836
11837           if test x"$enablestring" = xdisable; then
11838             if test $wxUSE_RICHMSGDLG = no; then
11839               result=yes
11840             else
11841               result=no
11842             fi
11843           else
11844             result=$wxUSE_RICHMSGDLG
11845           fi
11846
11847           { echo "$as_me:$LINENO: result: $result" >&5
11848 echo "${ECHO_T}$result" >&6; }
11849
11850
11851           enablestring=
11852           defaultval=$wxUSE_ALL_FEATURES
11853           if test -z "$defaultval"; then
11854               if test x"$enablestring" = xdisable; then
11855                   defaultval=yes
11856               else
11857                   defaultval=no
11858               fi
11859           fi
11860
11861           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-rearrangectrl" >&5
11862 echo $ECHO_N "checking for --${enablestring:-enable}-rearrangectrl... $ECHO_C" >&6; }
11863           # Check whether --enable-rearrangectrl was given.
11864 if test "${enable_rearrangectrl+set}" = set; then
11865   enableval=$enable_rearrangectrl;
11866                           if test "$enableval" = yes; then
11867                             wx_cv_use_rearrangectrl='wxUSE_REARRANGECTRL=yes'
11868                           else
11869                             wx_cv_use_rearrangectrl='wxUSE_REARRANGECTRL=no'
11870                           fi
11871
11872 else
11873
11874                           wx_cv_use_rearrangectrl='wxUSE_REARRANGECTRL=${'DEFAULT_wxUSE_REARRANGECTRL":-$defaultval}"
11875
11876 fi
11877
11878
11879           eval "$wx_cv_use_rearrangectrl"
11880
11881           if test x"$enablestring" = xdisable; then
11882             if test $wxUSE_REARRANGECTRL = no; then
11883               result=yes
11884             else
11885               result=no
11886             fi
11887           else
11888             result=$wxUSE_REARRANGECTRL
11889           fi
11890
11891           { echo "$as_me:$LINENO: result: $result" >&5
11892 echo "${ECHO_T}$result" >&6; }
11893
11894
11895           enablestring=
11896           defaultval=$wxUSE_ALL_FEATURES
11897           if test -z "$defaultval"; then
11898               if test x"$enablestring" = xdisable; then
11899                   defaultval=yes
11900               else
11901                   defaultval=no
11902               fi
11903           fi
11904
11905           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sash" >&5
11906 echo $ECHO_N "checking for --${enablestring:-enable}-sash... $ECHO_C" >&6; }
11907           # Check whether --enable-sash was given.
11908 if test "${enable_sash+set}" = set; then
11909   enableval=$enable_sash;
11910                           if test "$enableval" = yes; then
11911                             wx_cv_use_sash='wxUSE_SASH=yes'
11912                           else
11913                             wx_cv_use_sash='wxUSE_SASH=no'
11914                           fi
11915
11916 else
11917
11918                           wx_cv_use_sash='wxUSE_SASH=${'DEFAULT_wxUSE_SASH":-$defaultval}"
11919
11920 fi
11921
11922
11923           eval "$wx_cv_use_sash"
11924
11925           if test x"$enablestring" = xdisable; then
11926             if test $wxUSE_SASH = no; then
11927               result=yes
11928             else
11929               result=no
11930             fi
11931           else
11932             result=$wxUSE_SASH
11933           fi
11934
11935           { echo "$as_me:$LINENO: result: $result" >&5
11936 echo "${ECHO_T}$result" >&6; }
11937
11938
11939           enablestring=
11940           defaultval=$wxUSE_ALL_FEATURES
11941           if test -z "$defaultval"; then
11942               if test x"$enablestring" = xdisable; then
11943                   defaultval=yes
11944               else
11945                   defaultval=no
11946               fi
11947           fi
11948
11949           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-scrollbar" >&5
11950 echo $ECHO_N "checking for --${enablestring:-enable}-scrollbar... $ECHO_C" >&6; }
11951           # Check whether --enable-scrollbar was given.
11952 if test "${enable_scrollbar+set}" = set; then
11953   enableval=$enable_scrollbar;
11954                           if test "$enableval" = yes; then
11955                             wx_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
11956                           else
11957                             wx_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
11958                           fi
11959
11960 else
11961
11962                           wx_cv_use_scrollbar='wxUSE_SCROLLBAR=${'DEFAULT_wxUSE_SCROLLBAR":-$defaultval}"
11963
11964 fi
11965
11966
11967           eval "$wx_cv_use_scrollbar"
11968
11969           if test x"$enablestring" = xdisable; then
11970             if test $wxUSE_SCROLLBAR = no; then
11971               result=yes
11972             else
11973               result=no
11974             fi
11975           else
11976             result=$wxUSE_SCROLLBAR
11977           fi
11978
11979           { echo "$as_me:$LINENO: result: $result" >&5
11980 echo "${ECHO_T}$result" >&6; }
11981
11982
11983           enablestring=
11984           defaultval=$wxUSE_ALL_FEATURES
11985           if test -z "$defaultval"; then
11986               if test x"$enablestring" = xdisable; then
11987                   defaultval=yes
11988               else
11989                   defaultval=no
11990               fi
11991           fi
11992
11993           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-searchctrl" >&5
11994 echo $ECHO_N "checking for --${enablestring:-enable}-searchctrl... $ECHO_C" >&6; }
11995           # Check whether --enable-searchctrl was given.
11996 if test "${enable_searchctrl+set}" = set; then
11997   enableval=$enable_searchctrl;
11998                           if test "$enableval" = yes; then
11999                             wx_cv_use_searchctrl='wxUSE_SEARCHCTRL=yes'
12000                           else
12001                             wx_cv_use_searchctrl='wxUSE_SEARCHCTRL=no'
12002                           fi
12003
12004 else
12005
12006                           wx_cv_use_searchctrl='wxUSE_SEARCHCTRL=${'DEFAULT_wxUSE_SEARCHCTRL":-$defaultval}"
12007
12008 fi
12009
12010
12011           eval "$wx_cv_use_searchctrl"
12012
12013           if test x"$enablestring" = xdisable; then
12014             if test $wxUSE_SEARCHCTRL = no; then
12015               result=yes
12016             else
12017               result=no
12018             fi
12019           else
12020             result=$wxUSE_SEARCHCTRL
12021           fi
12022
12023           { echo "$as_me:$LINENO: result: $result" >&5
12024 echo "${ECHO_T}$result" >&6; }
12025
12026
12027           enablestring=
12028           defaultval=$wxUSE_ALL_FEATURES
12029           if test -z "$defaultval"; then
12030               if test x"$enablestring" = xdisable; then
12031                   defaultval=yes
12032               else
12033                   defaultval=no
12034               fi
12035           fi
12036
12037           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-slider" >&5
12038 echo $ECHO_N "checking for --${enablestring:-enable}-slider... $ECHO_C" >&6; }
12039           # Check whether --enable-slider was given.
12040 if test "${enable_slider+set}" = set; then
12041   enableval=$enable_slider;
12042                           if test "$enableval" = yes; then
12043                             wx_cv_use_slider='wxUSE_SLIDER=yes'
12044                           else
12045                             wx_cv_use_slider='wxUSE_SLIDER=no'
12046                           fi
12047
12048 else
12049
12050                           wx_cv_use_slider='wxUSE_SLIDER=${'DEFAULT_wxUSE_SLIDER":-$defaultval}"
12051
12052 fi
12053
12054
12055           eval "$wx_cv_use_slider"
12056
12057           if test x"$enablestring" = xdisable; then
12058             if test $wxUSE_SLIDER = no; then
12059               result=yes
12060             else
12061               result=no
12062             fi
12063           else
12064             result=$wxUSE_SLIDER
12065           fi
12066
12067           { echo "$as_me:$LINENO: result: $result" >&5
12068 echo "${ECHO_T}$result" >&6; }
12069
12070
12071           enablestring=
12072           defaultval=$wxUSE_ALL_FEATURES
12073           if test -z "$defaultval"; then
12074               if test x"$enablestring" = xdisable; then
12075                   defaultval=yes
12076               else
12077                   defaultval=no
12078               fi
12079           fi
12080
12081           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinbtn" >&5
12082 echo $ECHO_N "checking for --${enablestring:-enable}-spinbtn... $ECHO_C" >&6; }
12083           # Check whether --enable-spinbtn was given.
12084 if test "${enable_spinbtn+set}" = set; then
12085   enableval=$enable_spinbtn;
12086                           if test "$enableval" = yes; then
12087                             wx_cv_use_spinbtn='wxUSE_SPINBTN=yes'
12088                           else
12089                             wx_cv_use_spinbtn='wxUSE_SPINBTN=no'
12090                           fi
12091
12092 else
12093
12094                           wx_cv_use_spinbtn='wxUSE_SPINBTN=${'DEFAULT_wxUSE_SPINBTN":-$defaultval}"
12095
12096 fi
12097
12098
12099           eval "$wx_cv_use_spinbtn"
12100
12101           if test x"$enablestring" = xdisable; then
12102             if test $wxUSE_SPINBTN = no; then
12103               result=yes
12104             else
12105               result=no
12106             fi
12107           else
12108             result=$wxUSE_SPINBTN
12109           fi
12110
12111           { echo "$as_me:$LINENO: result: $result" >&5
12112 echo "${ECHO_T}$result" >&6; }
12113
12114
12115           enablestring=
12116           defaultval=$wxUSE_ALL_FEATURES
12117           if test -z "$defaultval"; then
12118               if test x"$enablestring" = xdisable; then
12119                   defaultval=yes
12120               else
12121                   defaultval=no
12122               fi
12123           fi
12124
12125           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinctrl" >&5
12126 echo $ECHO_N "checking for --${enablestring:-enable}-spinctrl... $ECHO_C" >&6; }
12127           # Check whether --enable-spinctrl was given.
12128 if test "${enable_spinctrl+set}" = set; then
12129   enableval=$enable_spinctrl;
12130                           if test "$enableval" = yes; then
12131                             wx_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
12132                           else
12133                             wx_cv_use_spinctrl='wxUSE_SPINCTRL=no'
12134                           fi
12135
12136 else
12137
12138                           wx_cv_use_spinctrl='wxUSE_SPINCTRL=${'DEFAULT_wxUSE_SPINCTRL":-$defaultval}"
12139
12140 fi
12141
12142
12143           eval "$wx_cv_use_spinctrl"
12144
12145           if test x"$enablestring" = xdisable; then
12146             if test $wxUSE_SPINCTRL = no; then
12147               result=yes
12148             else
12149               result=no
12150             fi
12151           else
12152             result=$wxUSE_SPINCTRL
12153           fi
12154
12155           { echo "$as_me:$LINENO: result: $result" >&5
12156 echo "${ECHO_T}$result" >&6; }
12157
12158
12159           enablestring=
12160           defaultval=$wxUSE_ALL_FEATURES
12161           if test -z "$defaultval"; then
12162               if test x"$enablestring" = xdisable; then
12163                   defaultval=yes
12164               else
12165                   defaultval=no
12166               fi
12167           fi
12168
12169           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splitter" >&5
12170 echo $ECHO_N "checking for --${enablestring:-enable}-splitter... $ECHO_C" >&6; }
12171           # Check whether --enable-splitter was given.
12172 if test "${enable_splitter+set}" = set; then
12173   enableval=$enable_splitter;
12174                           if test "$enableval" = yes; then
12175                             wx_cv_use_splitter='wxUSE_SPLITTER=yes'
12176                           else
12177                             wx_cv_use_splitter='wxUSE_SPLITTER=no'
12178                           fi
12179
12180 else
12181
12182                           wx_cv_use_splitter='wxUSE_SPLITTER=${'DEFAULT_wxUSE_SPLITTER":-$defaultval}"
12183
12184 fi
12185
12186
12187           eval "$wx_cv_use_splitter"
12188
12189           if test x"$enablestring" = xdisable; then
12190             if test $wxUSE_SPLITTER = no; then
12191               result=yes
12192             else
12193               result=no
12194             fi
12195           else
12196             result=$wxUSE_SPLITTER
12197           fi
12198
12199           { echo "$as_me:$LINENO: result: $result" >&5
12200 echo "${ECHO_T}$result" >&6; }
12201
12202
12203           enablestring=
12204           defaultval=$wxUSE_ALL_FEATURES
12205           if test -z "$defaultval"; then
12206               if test x"$enablestring" = xdisable; then
12207                   defaultval=yes
12208               else
12209                   defaultval=no
12210               fi
12211           fi
12212
12213           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbmp" >&5
12214 echo $ECHO_N "checking for --${enablestring:-enable}-statbmp... $ECHO_C" >&6; }
12215           # Check whether --enable-statbmp was given.
12216 if test "${enable_statbmp+set}" = set; then
12217   enableval=$enable_statbmp;
12218                           if test "$enableval" = yes; then
12219                             wx_cv_use_statbmp='wxUSE_STATBMP=yes'
12220                           else
12221                             wx_cv_use_statbmp='wxUSE_STATBMP=no'
12222                           fi
12223
12224 else
12225
12226                           wx_cv_use_statbmp='wxUSE_STATBMP=${'DEFAULT_wxUSE_STATBMP":-$defaultval}"
12227
12228 fi
12229
12230
12231           eval "$wx_cv_use_statbmp"
12232
12233           if test x"$enablestring" = xdisable; then
12234             if test $wxUSE_STATBMP = no; then
12235               result=yes
12236             else
12237               result=no
12238             fi
12239           else
12240             result=$wxUSE_STATBMP
12241           fi
12242
12243           { echo "$as_me:$LINENO: result: $result" >&5
12244 echo "${ECHO_T}$result" >&6; }
12245
12246
12247           enablestring=
12248           defaultval=$wxUSE_ALL_FEATURES
12249           if test -z "$defaultval"; then
12250               if test x"$enablestring" = xdisable; then
12251                   defaultval=yes
12252               else
12253                   defaultval=no
12254               fi
12255           fi
12256
12257           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbox" >&5
12258 echo $ECHO_N "checking for --${enablestring:-enable}-statbox... $ECHO_C" >&6; }
12259           # Check whether --enable-statbox was given.
12260 if test "${enable_statbox+set}" = set; then
12261   enableval=$enable_statbox;
12262                           if test "$enableval" = yes; then
12263                             wx_cv_use_statbox='wxUSE_STATBOX=yes'
12264                           else
12265                             wx_cv_use_statbox='wxUSE_STATBOX=no'
12266                           fi
12267
12268 else
12269
12270                           wx_cv_use_statbox='wxUSE_STATBOX=${'DEFAULT_wxUSE_STATBOX":-$defaultval}"
12271
12272 fi
12273
12274
12275           eval "$wx_cv_use_statbox"
12276
12277           if test x"$enablestring" = xdisable; then
12278             if test $wxUSE_STATBOX = no; then
12279               result=yes
12280             else
12281               result=no
12282             fi
12283           else
12284             result=$wxUSE_STATBOX
12285           fi
12286
12287           { echo "$as_me:$LINENO: result: $result" >&5
12288 echo "${ECHO_T}$result" >&6; }
12289
12290
12291           enablestring=
12292           defaultval=$wxUSE_ALL_FEATURES
12293           if test -z "$defaultval"; then
12294               if test x"$enablestring" = xdisable; then
12295                   defaultval=yes
12296               else
12297                   defaultval=no
12298               fi
12299           fi
12300
12301           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statline" >&5
12302 echo $ECHO_N "checking for --${enablestring:-enable}-statline... $ECHO_C" >&6; }
12303           # Check whether --enable-statline was given.
12304 if test "${enable_statline+set}" = set; then
12305   enableval=$enable_statline;
12306                           if test "$enableval" = yes; then
12307                             wx_cv_use_statline='wxUSE_STATLINE=yes'
12308                           else
12309                             wx_cv_use_statline='wxUSE_STATLINE=no'
12310                           fi
12311
12312 else
12313
12314                           wx_cv_use_statline='wxUSE_STATLINE=${'DEFAULT_wxUSE_STATLINE":-$defaultval}"
12315
12316 fi
12317
12318
12319           eval "$wx_cv_use_statline"
12320
12321           if test x"$enablestring" = xdisable; then
12322             if test $wxUSE_STATLINE = no; then
12323               result=yes
12324             else
12325               result=no
12326             fi
12327           else
12328             result=$wxUSE_STATLINE
12329           fi
12330
12331           { echo "$as_me:$LINENO: result: $result" >&5
12332 echo "${ECHO_T}$result" >&6; }
12333
12334
12335           enablestring=
12336           defaultval=$wxUSE_ALL_FEATURES
12337           if test -z "$defaultval"; then
12338               if test x"$enablestring" = xdisable; then
12339                   defaultval=yes
12340               else
12341                   defaultval=no
12342               fi
12343           fi
12344
12345           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stattext" >&5
12346 echo $ECHO_N "checking for --${enablestring:-enable}-stattext... $ECHO_C" >&6; }
12347           # Check whether --enable-stattext was given.
12348 if test "${enable_stattext+set}" = set; then
12349   enableval=$enable_stattext;
12350                           if test "$enableval" = yes; then
12351                             wx_cv_use_stattext='wxUSE_STATTEXT=yes'
12352                           else
12353                             wx_cv_use_stattext='wxUSE_STATTEXT=no'
12354                           fi
12355
12356 else
12357
12358                           wx_cv_use_stattext='wxUSE_STATTEXT=${'DEFAULT_wxUSE_STATTEXT":-$defaultval}"
12359
12360 fi
12361
12362
12363           eval "$wx_cv_use_stattext"
12364
12365           if test x"$enablestring" = xdisable; then
12366             if test $wxUSE_STATTEXT = no; then
12367               result=yes
12368             else
12369               result=no
12370             fi
12371           else
12372             result=$wxUSE_STATTEXT
12373           fi
12374
12375           { echo "$as_me:$LINENO: result: $result" >&5
12376 echo "${ECHO_T}$result" >&6; }
12377
12378
12379           enablestring=
12380           defaultval=$wxUSE_ALL_FEATURES
12381           if test -z "$defaultval"; then
12382               if test x"$enablestring" = xdisable; then
12383                   defaultval=yes
12384               else
12385                   defaultval=no
12386               fi
12387           fi
12388
12389           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statusbar" >&5
12390 echo $ECHO_N "checking for --${enablestring:-enable}-statusbar... $ECHO_C" >&6; }
12391           # Check whether --enable-statusbar was given.
12392 if test "${enable_statusbar+set}" = set; then
12393   enableval=$enable_statusbar;
12394                           if test "$enableval" = yes; then
12395                             wx_cv_use_statusbar='wxUSE_STATUSBAR=yes'
12396                           else
12397                             wx_cv_use_statusbar='wxUSE_STATUSBAR=no'
12398                           fi
12399
12400 else
12401
12402                           wx_cv_use_statusbar='wxUSE_STATUSBAR=${'DEFAULT_wxUSE_STATUSBAR":-$defaultval}"
12403
12404 fi
12405
12406
12407           eval "$wx_cv_use_statusbar"
12408
12409           if test x"$enablestring" = xdisable; then
12410             if test $wxUSE_STATUSBAR = no; then
12411               result=yes
12412             else
12413               result=no
12414             fi
12415           else
12416             result=$wxUSE_STATUSBAR
12417           fi
12418
12419           { echo "$as_me:$LINENO: result: $result" >&5
12420 echo "${ECHO_T}$result" >&6; }
12421
12422
12423           enablestring=
12424           defaultval=$wxUSE_ALL_FEATURES
12425           if test -z "$defaultval"; then
12426               if test x"$enablestring" = xdisable; then
12427                   defaultval=yes
12428               else
12429                   defaultval=no
12430               fi
12431           fi
12432
12433           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-taskbaricon" >&5
12434 echo $ECHO_N "checking for --${enablestring:-enable}-taskbaricon... $ECHO_C" >&6; }
12435           # Check whether --enable-taskbaricon was given.
12436 if test "${enable_taskbaricon+set}" = set; then
12437   enableval=$enable_taskbaricon;
12438                           if test "$enableval" = yes; then
12439                             wx_cv_use_taskbaricon='wxUSE_TASKBARICON=yes'
12440                           else
12441                             wx_cv_use_taskbaricon='wxUSE_TASKBARICON=no'
12442                           fi
12443
12444 else
12445
12446                           wx_cv_use_taskbaricon='wxUSE_TASKBARICON=${'DEFAULT_wxUSE_TASKBARICON":-$defaultval}"
12447
12448 fi
12449
12450
12451           eval "$wx_cv_use_taskbaricon"
12452
12453           if test x"$enablestring" = xdisable; then
12454             if test $wxUSE_TASKBARICON = no; then
12455               result=yes
12456             else
12457               result=no
12458             fi
12459           else
12460             result=$wxUSE_TASKBARICON
12461           fi
12462
12463           { echo "$as_me:$LINENO: result: $result" >&5
12464 echo "${ECHO_T}$result" >&6; }
12465
12466
12467           enablestring=
12468           defaultval=$wxUSE_ALL_FEATURES
12469           if test -z "$defaultval"; then
12470               if test x"$enablestring" = xdisable; then
12471                   defaultval=yes
12472               else
12473                   defaultval=no
12474               fi
12475           fi
12476
12477           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarnative" >&5
12478 echo $ECHO_N "checking for --${enablestring:-enable}-tbarnative... $ECHO_C" >&6; }
12479           # Check whether --enable-tbarnative was given.
12480 if test "${enable_tbarnative+set}" = set; then
12481   enableval=$enable_tbarnative;
12482                           if test "$enableval" = yes; then
12483                             wx_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
12484                           else
12485                             wx_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
12486                           fi
12487
12488 else
12489
12490                           wx_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=${'DEFAULT_wxUSE_TOOLBAR_NATIVE":-$defaultval}"
12491
12492 fi
12493
12494
12495           eval "$wx_cv_use_tbarnative"
12496
12497           if test x"$enablestring" = xdisable; then
12498             if test $wxUSE_TOOLBAR_NATIVE = no; then
12499               result=yes
12500             else
12501               result=no
12502             fi
12503           else
12504             result=$wxUSE_TOOLBAR_NATIVE
12505           fi
12506
12507           { echo "$as_me:$LINENO: result: $result" >&5
12508 echo "${ECHO_T}$result" >&6; }
12509
12510
12511           enablestring=
12512           defaultval=$wxUSE_ALL_FEATURES
12513           if test -z "$defaultval"; then
12514               if test x"$enablestring" = xdisable; then
12515                   defaultval=yes
12516               else
12517                   defaultval=no
12518               fi
12519           fi
12520
12521           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textctrl" >&5
12522 echo $ECHO_N "checking for --${enablestring:-enable}-textctrl... $ECHO_C" >&6; }
12523           # Check whether --enable-textctrl was given.
12524 if test "${enable_textctrl+set}" = set; then
12525   enableval=$enable_textctrl;
12526                           if test "$enableval" = yes; then
12527                             wx_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
12528                           else
12529                             wx_cv_use_textctrl='wxUSE_TEXTCTRL=no'
12530                           fi
12531
12532 else
12533
12534                           wx_cv_use_textctrl='wxUSE_TEXTCTRL=${'DEFAULT_wxUSE_TEXTCTRL":-$defaultval}"
12535
12536 fi
12537
12538
12539           eval "$wx_cv_use_textctrl"
12540
12541           if test x"$enablestring" = xdisable; then
12542             if test $wxUSE_TEXTCTRL = no; then
12543               result=yes
12544             else
12545               result=no
12546             fi
12547           else
12548             result=$wxUSE_TEXTCTRL
12549           fi
12550
12551           { echo "$as_me:$LINENO: result: $result" >&5
12552 echo "${ECHO_T}$result" >&6; }
12553
12554
12555           enablestring=
12556           defaultval=$wxUSE_ALL_FEATURES
12557           if test -z "$defaultval"; then
12558               if test x"$enablestring" = xdisable; then
12559                   defaultval=yes
12560               else
12561                   defaultval=no
12562               fi
12563           fi
12564
12565           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipwindow" >&5
12566 echo $ECHO_N "checking for --${enablestring:-enable}-tipwindow... $ECHO_C" >&6; }
12567           # Check whether --enable-tipwindow was given.
12568 if test "${enable_tipwindow+set}" = set; then
12569   enableval=$enable_tipwindow;
12570                           if test "$enableval" = yes; then
12571                             wx_cv_use_tipwindow='wxUSE_TIPWINDOW=yes'
12572                           else
12573                             wx_cv_use_tipwindow='wxUSE_TIPWINDOW=no'
12574                           fi
12575
12576 else
12577
12578                           wx_cv_use_tipwindow='wxUSE_TIPWINDOW=${'DEFAULT_wxUSE_TIPWINDOW":-$defaultval}"
12579
12580 fi
12581
12582
12583           eval "$wx_cv_use_tipwindow"
12584
12585           if test x"$enablestring" = xdisable; then
12586             if test $wxUSE_TIPWINDOW = no; then
12587               result=yes
12588             else
12589               result=no
12590             fi
12591           else
12592             result=$wxUSE_TIPWINDOW
12593           fi
12594
12595           { echo "$as_me:$LINENO: result: $result" >&5
12596 echo "${ECHO_T}$result" >&6; }
12597
12598
12599           enablestring=
12600           defaultval=$wxUSE_ALL_FEATURES
12601           if test -z "$defaultval"; then
12602               if test x"$enablestring" = xdisable; then
12603                   defaultval=yes
12604               else
12605                   defaultval=no
12606               fi
12607           fi
12608
12609           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-togglebtn" >&5
12610 echo $ECHO_N "checking for --${enablestring:-enable}-togglebtn... $ECHO_C" >&6; }
12611           # Check whether --enable-togglebtn was given.
12612 if test "${enable_togglebtn+set}" = set; then
12613   enableval=$enable_togglebtn;
12614                           if test "$enableval" = yes; then
12615                             wx_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
12616                           else
12617                             wx_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
12618                           fi
12619
12620 else
12621
12622                           wx_cv_use_togglebtn='wxUSE_TOGGLEBTN=${'DEFAULT_wxUSE_TOGGLEBTN":-$defaultval}"
12623
12624 fi
12625
12626
12627           eval "$wx_cv_use_togglebtn"
12628
12629           if test x"$enablestring" = xdisable; then
12630             if test $wxUSE_TOGGLEBTN = no; then
12631               result=yes
12632             else
12633               result=no
12634             fi
12635           else
12636             result=$wxUSE_TOGGLEBTN
12637           fi
12638
12639           { echo "$as_me:$LINENO: result: $result" >&5
12640 echo "${ECHO_T}$result" >&6; }
12641
12642
12643           enablestring=
12644           defaultval=$wxUSE_ALL_FEATURES
12645           if test -z "$defaultval"; then
12646               if test x"$enablestring" = xdisable; then
12647                   defaultval=yes
12648               else
12649                   defaultval=no
12650               fi
12651           fi
12652
12653           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbar" >&5
12654 echo $ECHO_N "checking for --${enablestring:-enable}-toolbar... $ECHO_C" >&6; }
12655           # Check whether --enable-toolbar was given.
12656 if test "${enable_toolbar+set}" = set; then
12657   enableval=$enable_toolbar;
12658                           if test "$enableval" = yes; then
12659                             wx_cv_use_toolbar='wxUSE_TOOLBAR=yes'
12660                           else
12661                             wx_cv_use_toolbar='wxUSE_TOOLBAR=no'
12662                           fi
12663
12664 else
12665
12666                           wx_cv_use_toolbar='wxUSE_TOOLBAR=${'DEFAULT_wxUSE_TOOLBAR":-$defaultval}"
12667
12668 fi
12669
12670
12671           eval "$wx_cv_use_toolbar"
12672
12673           if test x"$enablestring" = xdisable; then
12674             if test $wxUSE_TOOLBAR = no; then
12675               result=yes
12676             else
12677               result=no
12678             fi
12679           else
12680             result=$wxUSE_TOOLBAR
12681           fi
12682
12683           { echo "$as_me:$LINENO: result: $result" >&5
12684 echo "${ECHO_T}$result" >&6; }
12685
12686
12687           enablestring=
12688           defaultval=$wxUSE_ALL_FEATURES
12689           if test -z "$defaultval"; then
12690               if test x"$enablestring" = xdisable; then
12691                   defaultval=yes
12692               else
12693                   defaultval=no
12694               fi
12695           fi
12696
12697           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbook" >&5
12698 echo $ECHO_N "checking for --${enablestring:-enable}-toolbook... $ECHO_C" >&6; }
12699           # Check whether --enable-toolbook was given.
12700 if test "${enable_toolbook+set}" = set; then
12701   enableval=$enable_toolbook;
12702                           if test "$enableval" = yes; then
12703                             wx_cv_use_toolbook='wxUSE_TOOLBOOK=yes'
12704                           else
12705                             wx_cv_use_toolbook='wxUSE_TOOLBOOK=no'
12706                           fi
12707
12708 else
12709
12710                           wx_cv_use_toolbook='wxUSE_TOOLBOOK=${'DEFAULT_wxUSE_TOOLBOOK":-$defaultval}"
12711
12712 fi
12713
12714
12715           eval "$wx_cv_use_toolbook"
12716
12717           if test x"$enablestring" = xdisable; then
12718             if test $wxUSE_TOOLBOOK = no; then
12719               result=yes
12720             else
12721               result=no
12722             fi
12723           else
12724             result=$wxUSE_TOOLBOOK
12725           fi
12726
12727           { echo "$as_me:$LINENO: result: $result" >&5
12728 echo "${ECHO_T}$result" >&6; }
12729
12730
12731           enablestring=
12732           defaultval=$wxUSE_ALL_FEATURES
12733           if test -z "$defaultval"; then
12734               if test x"$enablestring" = xdisable; then
12735                   defaultval=yes
12736               else
12737                   defaultval=no
12738               fi
12739           fi
12740
12741           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treebook" >&5
12742 echo $ECHO_N "checking for --${enablestring:-enable}-treebook... $ECHO_C" >&6; }
12743           # Check whether --enable-treebook was given.
12744 if test "${enable_treebook+set}" = set; then
12745   enableval=$enable_treebook;
12746                           if test "$enableval" = yes; then
12747                             wx_cv_use_treebook='wxUSE_TREEBOOK=yes'
12748                           else
12749                             wx_cv_use_treebook='wxUSE_TREEBOOK=no'
12750                           fi
12751
12752 else
12753
12754                           wx_cv_use_treebook='wxUSE_TREEBOOK=${'DEFAULT_wxUSE_TREEBOOK":-$defaultval}"
12755
12756 fi
12757
12758
12759           eval "$wx_cv_use_treebook"
12760
12761           if test x"$enablestring" = xdisable; then
12762             if test $wxUSE_TREEBOOK = no; then
12763               result=yes
12764             else
12765               result=no
12766             fi
12767           else
12768             result=$wxUSE_TREEBOOK
12769           fi
12770
12771           { echo "$as_me:$LINENO: result: $result" >&5
12772 echo "${ECHO_T}$result" >&6; }
12773
12774
12775           enablestring=
12776           defaultval=$wxUSE_ALL_FEATURES
12777           if test -z "$defaultval"; then
12778               if test x"$enablestring" = xdisable; then
12779                   defaultval=yes
12780               else
12781                   defaultval=no
12782               fi
12783           fi
12784
12785           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treectrl" >&5
12786 echo $ECHO_N "checking for --${enablestring:-enable}-treectrl... $ECHO_C" >&6; }
12787           # Check whether --enable-treectrl was given.
12788 if test "${enable_treectrl+set}" = set; then
12789   enableval=$enable_treectrl;
12790                           if test "$enableval" = yes; then
12791                             wx_cv_use_treectrl='wxUSE_TREECTRL=yes'
12792                           else
12793                             wx_cv_use_treectrl='wxUSE_TREECTRL=no'
12794                           fi
12795
12796 else
12797
12798                           wx_cv_use_treectrl='wxUSE_TREECTRL=${'DEFAULT_wxUSE_TREECTRL":-$defaultval}"
12799
12800 fi
12801
12802
12803           eval "$wx_cv_use_treectrl"
12804
12805           if test x"$enablestring" = xdisable; then
12806             if test $wxUSE_TREECTRL = no; then
12807               result=yes
12808             else
12809               result=no
12810             fi
12811           else
12812             result=$wxUSE_TREECTRL
12813           fi
12814
12815           { echo "$as_me:$LINENO: result: $result" >&5
12816 echo "${ECHO_T}$result" >&6; }
12817
12818
12819
12820
12821           enablestring=
12822           defaultval=$wxUSE_ALL_FEATURES
12823           if test -z "$defaultval"; then
12824               if test x"$enablestring" = xdisable; then
12825                   defaultval=yes
12826               else
12827                   defaultval=no
12828               fi
12829           fi
12830
12831           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-commondlg" >&5
12832 echo $ECHO_N "checking for --${enablestring:-enable}-commondlg... $ECHO_C" >&6; }
12833           # Check whether --enable-commondlg was given.
12834 if test "${enable_commondlg+set}" = set; then
12835   enableval=$enable_commondlg;
12836                           if test "$enableval" = yes; then
12837                             wx_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
12838                           else
12839                             wx_cv_use_commondlg='wxUSE_COMMONDLGS=no'
12840                           fi
12841
12842 else
12843
12844                           wx_cv_use_commondlg='wxUSE_COMMONDLGS=${'DEFAULT_wxUSE_COMMONDLGS":-$defaultval}"
12845
12846 fi
12847
12848
12849           eval "$wx_cv_use_commondlg"
12850
12851           if test x"$enablestring" = xdisable; then
12852             if test $wxUSE_COMMONDLGS = no; then
12853               result=yes
12854             else
12855               result=no
12856             fi
12857           else
12858             result=$wxUSE_COMMONDLGS
12859           fi
12860
12861           { echo "$as_me:$LINENO: result: $result" >&5
12862 echo "${ECHO_T}$result" >&6; }
12863
12864
12865           enablestring=
12866           defaultval=$wxUSE_ALL_FEATURES
12867           if test -z "$defaultval"; then
12868               if test x"$enablestring" = xdisable; then
12869                   defaultval=yes
12870               else
12871                   defaultval=no
12872               fi
12873           fi
12874
12875           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-aboutdlg" >&5
12876 echo $ECHO_N "checking for --${enablestring:-enable}-aboutdlg... $ECHO_C" >&6; }
12877           # Check whether --enable-aboutdlg was given.
12878 if test "${enable_aboutdlg+set}" = set; then
12879   enableval=$enable_aboutdlg;
12880                           if test "$enableval" = yes; then
12881                             wx_cv_use_aboutdlg='wxUSE_ABOUTDLG=yes'
12882                           else
12883                             wx_cv_use_aboutdlg='wxUSE_ABOUTDLG=no'
12884                           fi
12885
12886 else
12887
12888                           wx_cv_use_aboutdlg='wxUSE_ABOUTDLG=${'DEFAULT_wxUSE_ABOUTDLG":-$defaultval}"
12889
12890 fi
12891
12892
12893           eval "$wx_cv_use_aboutdlg"
12894
12895           if test x"$enablestring" = xdisable; then
12896             if test $wxUSE_ABOUTDLG = no; then
12897               result=yes
12898             else
12899               result=no
12900             fi
12901           else
12902             result=$wxUSE_ABOUTDLG
12903           fi
12904
12905           { echo "$as_me:$LINENO: result: $result" >&5
12906 echo "${ECHO_T}$result" >&6; }
12907
12908
12909           enablestring=
12910           defaultval=$wxUSE_ALL_FEATURES
12911           if test -z "$defaultval"; then
12912               if test x"$enablestring" = xdisable; then
12913                   defaultval=yes
12914               else
12915                   defaultval=no
12916               fi
12917           fi
12918
12919           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicedlg" >&5
12920 echo $ECHO_N "checking for --${enablestring:-enable}-choicedlg... $ECHO_C" >&6; }
12921           # Check whether --enable-choicedlg was given.
12922 if test "${enable_choicedlg+set}" = set; then
12923   enableval=$enable_choicedlg;
12924                           if test "$enableval" = yes; then
12925                             wx_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
12926                           else
12927                             wx_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
12928                           fi
12929
12930 else
12931
12932                           wx_cv_use_choicedlg='wxUSE_CHOICEDLG=${'DEFAULT_wxUSE_CHOICEDLG":-$defaultval}"
12933
12934 fi
12935
12936
12937           eval "$wx_cv_use_choicedlg"
12938
12939           if test x"$enablestring" = xdisable; then
12940             if test $wxUSE_CHOICEDLG = no; then
12941               result=yes
12942             else
12943               result=no
12944             fi
12945           else
12946             result=$wxUSE_CHOICEDLG
12947           fi
12948
12949           { echo "$as_me:$LINENO: result: $result" >&5
12950 echo "${ECHO_T}$result" >&6; }
12951
12952
12953           enablestring=
12954           defaultval=$wxUSE_ALL_FEATURES
12955           if test -z "$defaultval"; then
12956               if test x"$enablestring" = xdisable; then
12957                   defaultval=yes
12958               else
12959                   defaultval=no
12960               fi
12961           fi
12962
12963           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-coldlg" >&5
12964 echo $ECHO_N "checking for --${enablestring:-enable}-coldlg... $ECHO_C" >&6; }
12965           # Check whether --enable-coldlg was given.
12966 if test "${enable_coldlg+set}" = set; then
12967   enableval=$enable_coldlg;
12968                           if test "$enableval" = yes; then
12969                             wx_cv_use_coldlg='wxUSE_COLOURDLG=yes'
12970                           else
12971                             wx_cv_use_coldlg='wxUSE_COLOURDLG=no'
12972                           fi
12973
12974 else
12975
12976                           wx_cv_use_coldlg='wxUSE_COLOURDLG=${'DEFAULT_wxUSE_COLOURDLG":-$defaultval}"
12977
12978 fi
12979
12980
12981           eval "$wx_cv_use_coldlg"
12982
12983           if test x"$enablestring" = xdisable; then
12984             if test $wxUSE_COLOURDLG = no; then
12985               result=yes
12986             else
12987               result=no
12988             fi
12989           else
12990             result=$wxUSE_COLOURDLG
12991           fi
12992
12993           { echo "$as_me:$LINENO: result: $result" >&5
12994 echo "${ECHO_T}$result" >&6; }
12995
12996
12997           enablestring=
12998           defaultval=$wxUSE_ALL_FEATURES
12999           if test -z "$defaultval"; then
13000               if test x"$enablestring" = xdisable; then
13001                   defaultval=yes
13002               else
13003                   defaultval=no
13004               fi
13005           fi
13006
13007           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filedlg" >&5
13008 echo $ECHO_N "checking for --${enablestring:-enable}-filedlg... $ECHO_C" >&6; }
13009           # Check whether --enable-filedlg was given.
13010 if test "${enable_filedlg+set}" = set; then
13011   enableval=$enable_filedlg;
13012                           if test "$enableval" = yes; then
13013                             wx_cv_use_filedlg='wxUSE_FILEDLG=yes'
13014                           else
13015                             wx_cv_use_filedlg='wxUSE_FILEDLG=no'
13016                           fi
13017
13018 else
13019
13020                           wx_cv_use_filedlg='wxUSE_FILEDLG=${'DEFAULT_wxUSE_FILEDLG":-$defaultval}"
13021
13022 fi
13023
13024
13025           eval "$wx_cv_use_filedlg"
13026
13027           if test x"$enablestring" = xdisable; then
13028             if test $wxUSE_FILEDLG = no; then
13029               result=yes
13030             else
13031               result=no
13032             fi
13033           else
13034             result=$wxUSE_FILEDLG
13035           fi
13036
13037           { echo "$as_me:$LINENO: result: $result" >&5
13038 echo "${ECHO_T}$result" >&6; }
13039
13040
13041           enablestring=
13042           defaultval=$wxUSE_ALL_FEATURES
13043           if test -z "$defaultval"; then
13044               if test x"$enablestring" = xdisable; then
13045                   defaultval=yes
13046               else
13047                   defaultval=no
13048               fi
13049           fi
13050
13051           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-finddlg" >&5
13052 echo $ECHO_N "checking for --${enablestring:-enable}-finddlg... $ECHO_C" >&6; }
13053           # Check whether --enable-finddlg was given.
13054 if test "${enable_finddlg+set}" = set; then
13055   enableval=$enable_finddlg;
13056                           if test "$enableval" = yes; then
13057                             wx_cv_use_finddlg='wxUSE_FINDREPLDLG=yes'
13058                           else
13059                             wx_cv_use_finddlg='wxUSE_FINDREPLDLG=no'
13060                           fi
13061
13062 else
13063
13064                           wx_cv_use_finddlg='wxUSE_FINDREPLDLG=${'DEFAULT_wxUSE_FINDREPLDLG":-$defaultval}"
13065
13066 fi
13067
13068
13069           eval "$wx_cv_use_finddlg"
13070
13071           if test x"$enablestring" = xdisable; then
13072             if test $wxUSE_FINDREPLDLG = no; then
13073               result=yes
13074             else
13075               result=no
13076             fi
13077           else
13078             result=$wxUSE_FINDREPLDLG
13079           fi
13080
13081           { echo "$as_me:$LINENO: result: $result" >&5
13082 echo "${ECHO_T}$result" >&6; }
13083
13084
13085           enablestring=
13086           defaultval=$wxUSE_ALL_FEATURES
13087           if test -z "$defaultval"; then
13088               if test x"$enablestring" = xdisable; then
13089                   defaultval=yes
13090               else
13091                   defaultval=no
13092               fi
13093           fi
13094
13095           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontdlg" >&5
13096 echo $ECHO_N "checking for --${enablestring:-enable}-fontdlg... $ECHO_C" >&6; }
13097           # Check whether --enable-fontdlg was given.
13098 if test "${enable_fontdlg+set}" = set; then
13099   enableval=$enable_fontdlg;
13100                           if test "$enableval" = yes; then
13101                             wx_cv_use_fontdlg='wxUSE_FONTDLG=yes'
13102                           else
13103                             wx_cv_use_fontdlg='wxUSE_FONTDLG=no'
13104                           fi
13105
13106 else
13107
13108                           wx_cv_use_fontdlg='wxUSE_FONTDLG=${'DEFAULT_wxUSE_FONTDLG":-$defaultval}"
13109
13110 fi
13111
13112
13113           eval "$wx_cv_use_fontdlg"
13114
13115           if test x"$enablestring" = xdisable; then
13116             if test $wxUSE_FONTDLG = no; then
13117               result=yes
13118             else
13119               result=no
13120             fi
13121           else
13122             result=$wxUSE_FONTDLG
13123           fi
13124
13125           { echo "$as_me:$LINENO: result: $result" >&5
13126 echo "${ECHO_T}$result" >&6; }
13127
13128
13129           enablestring=
13130           defaultval=$wxUSE_ALL_FEATURES
13131           if test -z "$defaultval"; then
13132               if test x"$enablestring" = xdisable; then
13133                   defaultval=yes
13134               else
13135                   defaultval=no
13136               fi
13137           fi
13138
13139           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirdlg" >&5
13140 echo $ECHO_N "checking for --${enablestring:-enable}-dirdlg... $ECHO_C" >&6; }
13141           # Check whether --enable-dirdlg was given.
13142 if test "${enable_dirdlg+set}" = set; then
13143   enableval=$enable_dirdlg;
13144                           if test "$enableval" = yes; then
13145                             wx_cv_use_dirdlg='wxUSE_DIRDLG=yes'
13146                           else
13147                             wx_cv_use_dirdlg='wxUSE_DIRDLG=no'
13148                           fi
13149
13150 else
13151
13152                           wx_cv_use_dirdlg='wxUSE_DIRDLG=${'DEFAULT_wxUSE_DIRDLG":-$defaultval}"
13153
13154 fi
13155
13156
13157           eval "$wx_cv_use_dirdlg"
13158
13159           if test x"$enablestring" = xdisable; then
13160             if test $wxUSE_DIRDLG = no; then
13161               result=yes
13162             else
13163               result=no
13164             fi
13165           else
13166             result=$wxUSE_DIRDLG
13167           fi
13168
13169           { echo "$as_me:$LINENO: result: $result" >&5
13170 echo "${ECHO_T}$result" >&6; }
13171
13172
13173           enablestring=
13174           defaultval=$wxUSE_ALL_FEATURES
13175           if test -z "$defaultval"; then
13176               if test x"$enablestring" = xdisable; then
13177                   defaultval=yes
13178               else
13179                   defaultval=no
13180               fi
13181           fi
13182
13183           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-msgdlg" >&5
13184 echo $ECHO_N "checking for --${enablestring:-enable}-msgdlg... $ECHO_C" >&6; }
13185           # Check whether --enable-msgdlg was given.
13186 if test "${enable_msgdlg+set}" = set; then
13187   enableval=$enable_msgdlg;
13188                           if test "$enableval" = yes; then
13189                             wx_cv_use_msgdlg='wxUSE_MSGDLG=yes'
13190                           else
13191                             wx_cv_use_msgdlg='wxUSE_MSGDLG=no'
13192                           fi
13193
13194 else
13195
13196                           wx_cv_use_msgdlg='wxUSE_MSGDLG=${'DEFAULT_wxUSE_MSGDLG":-$defaultval}"
13197
13198 fi
13199
13200
13201           eval "$wx_cv_use_msgdlg"
13202
13203           if test x"$enablestring" = xdisable; then
13204             if test $wxUSE_MSGDLG = no; then
13205               result=yes
13206             else
13207               result=no
13208             fi
13209           else
13210             result=$wxUSE_MSGDLG
13211           fi
13212
13213           { echo "$as_me:$LINENO: result: $result" >&5
13214 echo "${ECHO_T}$result" >&6; }
13215
13216
13217           enablestring=
13218           defaultval=$wxUSE_ALL_FEATURES
13219           if test -z "$defaultval"; then
13220               if test x"$enablestring" = xdisable; then
13221                   defaultval=yes
13222               else
13223                   defaultval=no
13224               fi
13225           fi
13226
13227           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-numberdlg" >&5
13228 echo $ECHO_N "checking for --${enablestring:-enable}-numberdlg... $ECHO_C" >&6; }
13229           # Check whether --enable-numberdlg was given.
13230 if test "${enable_numberdlg+set}" = set; then
13231   enableval=$enable_numberdlg;
13232                           if test "$enableval" = yes; then
13233                             wx_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
13234                           else
13235                             wx_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
13236                           fi
13237
13238 else
13239
13240                           wx_cv_use_numberdlg='wxUSE_NUMBERDLG=${'DEFAULT_wxUSE_NUMBERDLG":-$defaultval}"
13241
13242 fi
13243
13244
13245           eval "$wx_cv_use_numberdlg"
13246
13247           if test x"$enablestring" = xdisable; then
13248             if test $wxUSE_NUMBERDLG = no; then
13249               result=yes
13250             else
13251               result=no
13252             fi
13253           else
13254             result=$wxUSE_NUMBERDLG
13255           fi
13256
13257           { echo "$as_me:$LINENO: result: $result" >&5
13258 echo "${ECHO_T}$result" >&6; }
13259
13260
13261           enablestring=
13262           defaultval=$wxUSE_ALL_FEATURES
13263           if test -z "$defaultval"; then
13264               if test x"$enablestring" = xdisable; then
13265                   defaultval=yes
13266               else
13267                   defaultval=no
13268               fi
13269           fi
13270
13271           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splash" >&5
13272 echo $ECHO_N "checking for --${enablestring:-enable}-splash... $ECHO_C" >&6; }
13273           # Check whether --enable-splash was given.
13274 if test "${enable_splash+set}" = set; then
13275   enableval=$enable_splash;
13276                           if test "$enableval" = yes; then
13277                             wx_cv_use_splash='wxUSE_SPLASH=yes'
13278                           else
13279                             wx_cv_use_splash='wxUSE_SPLASH=no'
13280                           fi
13281
13282 else
13283
13284                           wx_cv_use_splash='wxUSE_SPLASH=${'DEFAULT_wxUSE_SPLASH":-$defaultval}"
13285
13286 fi
13287
13288
13289           eval "$wx_cv_use_splash"
13290
13291           if test x"$enablestring" = xdisable; then
13292             if test $wxUSE_SPLASH = no; then
13293               result=yes
13294             else
13295               result=no
13296             fi
13297           else
13298             result=$wxUSE_SPLASH
13299           fi
13300
13301           { echo "$as_me:$LINENO: result: $result" >&5
13302 echo "${ECHO_T}$result" >&6; }
13303
13304
13305           enablestring=
13306           defaultval=$wxUSE_ALL_FEATURES
13307           if test -z "$defaultval"; then
13308               if test x"$enablestring" = xdisable; then
13309                   defaultval=yes
13310               else
13311                   defaultval=no
13312               fi
13313           fi
13314
13315           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textdlg" >&5
13316 echo $ECHO_N "checking for --${enablestring:-enable}-textdlg... $ECHO_C" >&6; }
13317           # Check whether --enable-textdlg was given.
13318 if test "${enable_textdlg+set}" = set; then
13319   enableval=$enable_textdlg;
13320                           if test "$enableval" = yes; then
13321                             wx_cv_use_textdlg='wxUSE_TEXTDLG=yes'
13322                           else
13323                             wx_cv_use_textdlg='wxUSE_TEXTDLG=no'
13324                           fi
13325
13326 else
13327
13328                           wx_cv_use_textdlg='wxUSE_TEXTDLG=${'DEFAULT_wxUSE_TEXTDLG":-$defaultval}"
13329
13330 fi
13331
13332
13333           eval "$wx_cv_use_textdlg"
13334
13335           if test x"$enablestring" = xdisable; then
13336             if test $wxUSE_TEXTDLG = no; then
13337               result=yes
13338             else
13339               result=no
13340             fi
13341           else
13342             result=$wxUSE_TEXTDLG
13343           fi
13344
13345           { echo "$as_me:$LINENO: result: $result" >&5
13346 echo "${ECHO_T}$result" >&6; }
13347
13348
13349           enablestring=
13350           defaultval=$wxUSE_ALL_FEATURES
13351           if test -z "$defaultval"; then
13352               if test x"$enablestring" = xdisable; then
13353                   defaultval=yes
13354               else
13355                   defaultval=no
13356               fi
13357           fi
13358
13359           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipdlg" >&5
13360 echo $ECHO_N "checking for --${enablestring:-enable}-tipdlg... $ECHO_C" >&6; }
13361           # Check whether --enable-tipdlg was given.
13362 if test "${enable_tipdlg+set}" = set; then
13363   enableval=$enable_tipdlg;
13364                           if test "$enableval" = yes; then
13365                             wx_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
13366                           else
13367                             wx_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
13368                           fi
13369
13370 else
13371
13372                           wx_cv_use_tipdlg='wxUSE_STARTUP_TIPS=${'DEFAULT_wxUSE_STARTUP_TIPS":-$defaultval}"
13373
13374 fi
13375
13376
13377           eval "$wx_cv_use_tipdlg"
13378
13379           if test x"$enablestring" = xdisable; then
13380             if test $wxUSE_STARTUP_TIPS = no; then
13381               result=yes
13382             else
13383               result=no
13384             fi
13385           else
13386             result=$wxUSE_STARTUP_TIPS
13387           fi
13388
13389           { echo "$as_me:$LINENO: result: $result" >&5
13390 echo "${ECHO_T}$result" >&6; }
13391
13392
13393           enablestring=
13394           defaultval=$wxUSE_ALL_FEATURES
13395           if test -z "$defaultval"; then
13396               if test x"$enablestring" = xdisable; then
13397                   defaultval=yes
13398               else
13399                   defaultval=no
13400               fi
13401           fi
13402
13403           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-progressdlg" >&5
13404 echo $ECHO_N "checking for --${enablestring:-enable}-progressdlg... $ECHO_C" >&6; }
13405           # Check whether --enable-progressdlg was given.
13406 if test "${enable_progressdlg+set}" = set; then
13407   enableval=$enable_progressdlg;
13408                           if test "$enableval" = yes; then
13409                             wx_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
13410                           else
13411                             wx_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
13412                           fi
13413
13414 else
13415
13416                           wx_cv_use_progressdlg='wxUSE_PROGRESSDLG=${'DEFAULT_wxUSE_PROGRESSDLG":-$defaultval}"
13417
13418 fi
13419
13420
13421           eval "$wx_cv_use_progressdlg"
13422
13423           if test x"$enablestring" = xdisable; then
13424             if test $wxUSE_PROGRESSDLG = no; then
13425               result=yes
13426             else
13427               result=no
13428             fi
13429           else
13430             result=$wxUSE_PROGRESSDLG
13431           fi
13432
13433           { echo "$as_me:$LINENO: result: $result" >&5
13434 echo "${ECHO_T}$result" >&6; }
13435
13436
13437           enablestring=
13438           defaultval=$wxUSE_ALL_FEATURES
13439           if test -z "$defaultval"; then
13440               if test x"$enablestring" = xdisable; then
13441                   defaultval=yes
13442               else
13443                   defaultval=no
13444               fi
13445           fi
13446
13447           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wizarddlg" >&5
13448 echo $ECHO_N "checking for --${enablestring:-enable}-wizarddlg... $ECHO_C" >&6; }
13449           # Check whether --enable-wizarddlg was given.
13450 if test "${enable_wizarddlg+set}" = set; then
13451   enableval=$enable_wizarddlg;
13452                           if test "$enableval" = yes; then
13453                             wx_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes'
13454                           else
13455                             wx_cv_use_wizarddlg='wxUSE_WIZARDDLG=no'
13456                           fi
13457
13458 else
13459
13460                           wx_cv_use_wizarddlg='wxUSE_WIZARDDLG=${'DEFAULT_wxUSE_WIZARDDLG":-$defaultval}"
13461
13462 fi
13463
13464
13465           eval "$wx_cv_use_wizarddlg"
13466
13467           if test x"$enablestring" = xdisable; then
13468             if test $wxUSE_WIZARDDLG = no; then
13469               result=yes
13470             else
13471               result=no
13472             fi
13473           else
13474             result=$wxUSE_WIZARDDLG
13475           fi
13476
13477           { echo "$as_me:$LINENO: result: $result" >&5
13478 echo "${ECHO_T}$result" >&6; }
13479
13480
13481
13482
13483           enablestring=
13484           defaultval=$wxUSE_ALL_FEATURES
13485           if test -z "$defaultval"; then
13486               if test x"$enablestring" = xdisable; then
13487                   defaultval=yes
13488               else
13489                   defaultval=no
13490               fi
13491           fi
13492
13493           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-menus" >&5
13494 echo $ECHO_N "checking for --${enablestring:-enable}-menus... $ECHO_C" >&6; }
13495           # Check whether --enable-menus was given.
13496 if test "${enable_menus+set}" = set; then
13497   enableval=$enable_menus;
13498                           if test "$enableval" = yes; then
13499                             wx_cv_use_menus='wxUSE_MENUS=yes'
13500                           else
13501                             wx_cv_use_menus='wxUSE_MENUS=no'
13502                           fi
13503
13504 else
13505
13506                           wx_cv_use_menus='wxUSE_MENUS=${'DEFAULT_wxUSE_MENUS":-$defaultval}"
13507
13508 fi
13509
13510
13511           eval "$wx_cv_use_menus"
13512
13513           if test x"$enablestring" = xdisable; then
13514             if test $wxUSE_MENUS = no; then
13515               result=yes
13516             else
13517               result=no
13518             fi
13519           else
13520             result=$wxUSE_MENUS
13521           fi
13522
13523           { echo "$as_me:$LINENO: result: $result" >&5
13524 echo "${ECHO_T}$result" >&6; }
13525
13526
13527           enablestring=
13528           defaultval=$wxUSE_ALL_FEATURES
13529           if test -z "$defaultval"; then
13530               if test x"$enablestring" = xdisable; then
13531                   defaultval=yes
13532               else
13533                   defaultval=no
13534               fi
13535           fi
13536
13537           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-miniframe" >&5
13538 echo $ECHO_N "checking for --${enablestring:-enable}-miniframe... $ECHO_C" >&6; }
13539           # Check whether --enable-miniframe was given.
13540 if test "${enable_miniframe+set}" = set; then
13541   enableval=$enable_miniframe;
13542                           if test "$enableval" = yes; then
13543                             wx_cv_use_miniframe='wxUSE_MINIFRAME=yes'
13544                           else
13545                             wx_cv_use_miniframe='wxUSE_MINIFRAME=no'
13546                           fi
13547
13548 else
13549
13550                           wx_cv_use_miniframe='wxUSE_MINIFRAME=${'DEFAULT_wxUSE_MINIFRAME":-$defaultval}"
13551
13552 fi
13553
13554
13555           eval "$wx_cv_use_miniframe"
13556
13557           if test x"$enablestring" = xdisable; then
13558             if test $wxUSE_MINIFRAME = no; then
13559               result=yes
13560             else
13561               result=no
13562             fi
13563           else
13564             result=$wxUSE_MINIFRAME
13565           fi
13566
13567           { echo "$as_me:$LINENO: result: $result" >&5
13568 echo "${ECHO_T}$result" >&6; }
13569
13570
13571           enablestring=
13572           defaultval=$wxUSE_ALL_FEATURES
13573           if test -z "$defaultval"; then
13574               if test x"$enablestring" = xdisable; then
13575                   defaultval=yes
13576               else
13577                   defaultval=no
13578               fi
13579           fi
13580
13581           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tooltips" >&5
13582 echo $ECHO_N "checking for --${enablestring:-enable}-tooltips... $ECHO_C" >&6; }
13583           # Check whether --enable-tooltips was given.
13584 if test "${enable_tooltips+set}" = set; then
13585   enableval=$enable_tooltips;
13586                           if test "$enableval" = yes; then
13587                             wx_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
13588                           else
13589                             wx_cv_use_tooltips='wxUSE_TOOLTIPS=no'
13590                           fi
13591
13592 else
13593
13594                           wx_cv_use_tooltips='wxUSE_TOOLTIPS=${'DEFAULT_wxUSE_TOOLTIPS":-$defaultval}"
13595
13596 fi
13597
13598
13599           eval "$wx_cv_use_tooltips"
13600
13601           if test x"$enablestring" = xdisable; then
13602             if test $wxUSE_TOOLTIPS = no; then
13603               result=yes
13604             else
13605               result=no
13606             fi
13607           else
13608             result=$wxUSE_TOOLTIPS
13609           fi
13610
13611           { echo "$as_me:$LINENO: result: $result" >&5
13612 echo "${ECHO_T}$result" >&6; }
13613
13614
13615           enablestring=
13616           defaultval=$wxUSE_ALL_FEATURES
13617           if test -z "$defaultval"; then
13618               if test x"$enablestring" = xdisable; then
13619                   defaultval=yes
13620               else
13621                   defaultval=no
13622               fi
13623           fi
13624
13625           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splines" >&5
13626 echo $ECHO_N "checking for --${enablestring:-enable}-splines... $ECHO_C" >&6; }
13627           # Check whether --enable-splines was given.
13628 if test "${enable_splines+set}" = set; then
13629   enableval=$enable_splines;
13630                           if test "$enableval" = yes; then
13631                             wx_cv_use_splines='wxUSE_SPLINES=yes'
13632                           else
13633                             wx_cv_use_splines='wxUSE_SPLINES=no'
13634                           fi
13635
13636 else
13637
13638                           wx_cv_use_splines='wxUSE_SPLINES=${'DEFAULT_wxUSE_SPLINES":-$defaultval}"
13639
13640 fi
13641
13642
13643           eval "$wx_cv_use_splines"
13644
13645           if test x"$enablestring" = xdisable; then
13646             if test $wxUSE_SPLINES = no; then
13647               result=yes
13648             else
13649               result=no
13650             fi
13651           else
13652             result=$wxUSE_SPLINES
13653           fi
13654
13655           { echo "$as_me:$LINENO: result: $result" >&5
13656 echo "${ECHO_T}$result" >&6; }
13657
13658
13659           enablestring=
13660           defaultval=$wxUSE_ALL_FEATURES
13661           if test -z "$defaultval"; then
13662               if test x"$enablestring" = xdisable; then
13663                   defaultval=yes
13664               else
13665                   defaultval=no
13666               fi
13667           fi
13668
13669           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mousewheel" >&5
13670 echo $ECHO_N "checking for --${enablestring:-enable}-mousewheel... $ECHO_C" >&6; }
13671           # Check whether --enable-mousewheel was given.
13672 if test "${enable_mousewheel+set}" = set; then
13673   enableval=$enable_mousewheel;
13674                           if test "$enableval" = yes; then
13675                             wx_cv_use_mousewheel='wxUSE_MOUSEWHEEL=yes'
13676                           else
13677                             wx_cv_use_mousewheel='wxUSE_MOUSEWHEEL=no'
13678                           fi
13679
13680 else
13681
13682                           wx_cv_use_mousewheel='wxUSE_MOUSEWHEEL=${'DEFAULT_wxUSE_MOUSEWHEEL":-$defaultval}"
13683
13684 fi
13685
13686
13687           eval "$wx_cv_use_mousewheel"
13688
13689           if test x"$enablestring" = xdisable; then
13690             if test $wxUSE_MOUSEWHEEL = no; then
13691               result=yes
13692             else
13693               result=no
13694             fi
13695           else
13696             result=$wxUSE_MOUSEWHEEL
13697           fi
13698
13699           { echo "$as_me:$LINENO: result: $result" >&5
13700 echo "${ECHO_T}$result" >&6; }
13701
13702
13703           enablestring=
13704           defaultval=$wxUSE_ALL_FEATURES
13705           if test -z "$defaultval"; then
13706               if test x"$enablestring" = xdisable; then
13707                   defaultval=yes
13708               else
13709                   defaultval=no
13710               fi
13711           fi
13712
13713           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-validators" >&5
13714 echo $ECHO_N "checking for --${enablestring:-enable}-validators... $ECHO_C" >&6; }
13715           # Check whether --enable-validators was given.
13716 if test "${enable_validators+set}" = set; then
13717   enableval=$enable_validators;
13718                           if test "$enableval" = yes; then
13719                             wx_cv_use_validators='wxUSE_VALIDATORS=yes'
13720                           else
13721                             wx_cv_use_validators='wxUSE_VALIDATORS=no'
13722                           fi
13723
13724 else
13725
13726                           wx_cv_use_validators='wxUSE_VALIDATORS=${'DEFAULT_wxUSE_VALIDATORS":-$defaultval}"
13727
13728 fi
13729
13730
13731           eval "$wx_cv_use_validators"
13732
13733           if test x"$enablestring" = xdisable; then
13734             if test $wxUSE_VALIDATORS = no; then
13735               result=yes
13736             else
13737               result=no
13738             fi
13739           else
13740             result=$wxUSE_VALIDATORS
13741           fi
13742
13743           { echo "$as_me:$LINENO: result: $result" >&5
13744 echo "${ECHO_T}$result" >&6; }
13745
13746
13747           enablestring=
13748           defaultval=$wxUSE_ALL_FEATURES
13749           if test -z "$defaultval"; then
13750               if test x"$enablestring" = xdisable; then
13751                   defaultval=yes
13752               else
13753                   defaultval=no
13754               fi
13755           fi
13756
13757           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-busyinfo" >&5
13758 echo $ECHO_N "checking for --${enablestring:-enable}-busyinfo... $ECHO_C" >&6; }
13759           # Check whether --enable-busyinfo was given.
13760 if test "${enable_busyinfo+set}" = set; then
13761   enableval=$enable_busyinfo;
13762                           if test "$enableval" = yes; then
13763                             wx_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
13764                           else
13765                             wx_cv_use_busyinfo='wxUSE_BUSYINFO=no'
13766                           fi
13767
13768 else
13769
13770                           wx_cv_use_busyinfo='wxUSE_BUSYINFO=${'DEFAULT_wxUSE_BUSYINFO":-$defaultval}"
13771
13772 fi
13773
13774
13775           eval "$wx_cv_use_busyinfo"
13776
13777           if test x"$enablestring" = xdisable; then
13778             if test $wxUSE_BUSYINFO = no; then
13779               result=yes
13780             else
13781               result=no
13782             fi
13783           else
13784             result=$wxUSE_BUSYINFO
13785           fi
13786
13787           { echo "$as_me:$LINENO: result: $result" >&5
13788 echo "${ECHO_T}$result" >&6; }
13789
13790
13791           enablestring=
13792           defaultval=$wxUSE_ALL_FEATURES
13793           if test -z "$defaultval"; then
13794               if test x"$enablestring" = xdisable; then
13795                   defaultval=yes
13796               else
13797                   defaultval=no
13798               fi
13799           fi
13800
13801           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-joystick" >&5
13802 echo $ECHO_N "checking for --${enablestring:-enable}-joystick... $ECHO_C" >&6; }
13803           # Check whether --enable-joystick was given.
13804 if test "${enable_joystick+set}" = set; then
13805   enableval=$enable_joystick;
13806                           if test "$enableval" = yes; then
13807                             wx_cv_use_joystick='wxUSE_JOYSTICK=yes'
13808                           else
13809                             wx_cv_use_joystick='wxUSE_JOYSTICK=no'
13810                           fi
13811
13812 else
13813
13814                           wx_cv_use_joystick='wxUSE_JOYSTICK=${'DEFAULT_wxUSE_JOYSTICK":-$defaultval}"
13815
13816 fi
13817
13818
13819           eval "$wx_cv_use_joystick"
13820
13821           if test x"$enablestring" = xdisable; then
13822             if test $wxUSE_JOYSTICK = no; then
13823               result=yes
13824             else
13825               result=no
13826             fi
13827           else
13828             result=$wxUSE_JOYSTICK
13829           fi
13830
13831           { echo "$as_me:$LINENO: result: $result" >&5
13832 echo "${ECHO_T}$result" >&6; }
13833
13834
13835           enablestring=
13836           defaultval=$wxUSE_ALL_FEATURES
13837           if test -z "$defaultval"; then
13838               if test x"$enablestring" = xdisable; then
13839                   defaultval=yes
13840               else
13841                   defaultval=no
13842               fi
13843           fi
13844
13845           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
13846 echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6; }
13847           # Check whether --enable-metafile was given.
13848 if test "${enable_metafile+set}" = set; then
13849   enableval=$enable_metafile;
13850                           if test "$enableval" = yes; then
13851                             wx_cv_use_metafile='wxUSE_METAFILE=yes'
13852                           else
13853                             wx_cv_use_metafile='wxUSE_METAFILE=no'
13854                           fi
13855
13856 else
13857
13858                           wx_cv_use_metafile='wxUSE_METAFILE=${'DEFAULT_wxUSE_METAFILE":-$defaultval}"
13859
13860 fi
13861
13862
13863           eval "$wx_cv_use_metafile"
13864
13865           if test x"$enablestring" = xdisable; then
13866             if test $wxUSE_METAFILE = no; then
13867               result=yes
13868             else
13869               result=no
13870             fi
13871           else
13872             result=$wxUSE_METAFILE
13873           fi
13874
13875           { echo "$as_me:$LINENO: result: $result" >&5
13876 echo "${ECHO_T}$result" >&6; }
13877
13878
13879           enablestring=
13880           defaultval=$wxUSE_ALL_FEATURES
13881           if test -z "$defaultval"; then
13882               if test x"$enablestring" = xdisable; then
13883                   defaultval=yes
13884               else
13885                   defaultval=no
13886               fi
13887           fi
13888
13889           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dragimage" >&5
13890 echo $ECHO_N "checking for --${enablestring:-enable}-dragimage... $ECHO_C" >&6; }
13891           # Check whether --enable-dragimage was given.
13892 if test "${enable_dragimage+set}" = set; then
13893   enableval=$enable_dragimage;
13894                           if test "$enableval" = yes; then
13895                             wx_cv_use_dragimage='wxUSE_DRAGIMAGE=yes'
13896                           else
13897                             wx_cv_use_dragimage='wxUSE_DRAGIMAGE=no'
13898                           fi
13899
13900 else
13901
13902                           wx_cv_use_dragimage='wxUSE_DRAGIMAGE=${'DEFAULT_wxUSE_DRAGIMAGE":-$defaultval}"
13903
13904 fi
13905
13906
13907           eval "$wx_cv_use_dragimage"
13908
13909           if test x"$enablestring" = xdisable; then
13910             if test $wxUSE_DRAGIMAGE = no; then
13911               result=yes
13912             else
13913               result=no
13914             fi
13915           else
13916             result=$wxUSE_DRAGIMAGE
13917           fi
13918
13919           { echo "$as_me:$LINENO: result: $result" >&5
13920 echo "${ECHO_T}$result" >&6; }
13921
13922
13923           enablestring=
13924           defaultval=$wxUSE_ALL_FEATURES
13925           if test -z "$defaultval"; then
13926               if test x"$enablestring" = xdisable; then
13927                   defaultval=yes
13928               else
13929                   defaultval=no
13930               fi
13931           fi
13932
13933           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accessibility" >&5
13934 echo $ECHO_N "checking for --${enablestring:-enable}-accessibility... $ECHO_C" >&6; }
13935           # Check whether --enable-accessibility was given.
13936 if test "${enable_accessibility+set}" = set; then
13937   enableval=$enable_accessibility;
13938                           if test "$enableval" = yes; then
13939                             wx_cv_use_accessibility='wxUSE_ACCESSIBILITY=yes'
13940                           else
13941                             wx_cv_use_accessibility='wxUSE_ACCESSIBILITY=no'
13942                           fi
13943
13944 else
13945
13946                           wx_cv_use_accessibility='wxUSE_ACCESSIBILITY=${'DEFAULT_wxUSE_ACCESSIBILITY":-$defaultval}"
13947
13948 fi
13949
13950
13951           eval "$wx_cv_use_accessibility"
13952
13953           if test x"$enablestring" = xdisable; then
13954             if test $wxUSE_ACCESSIBILITY = no; then
13955               result=yes
13956             else
13957               result=no
13958             fi
13959           else
13960             result=$wxUSE_ACCESSIBILITY
13961           fi
13962
13963           { echo "$as_me:$LINENO: result: $result" >&5
13964 echo "${ECHO_T}$result" >&6; }
13965
13966
13967           enablestring=
13968           defaultval=$wxUSE_ALL_FEATURES
13969           if test -z "$defaultval"; then
13970               if test x"$enablestring" = xdisable; then
13971                   defaultval=yes
13972               else
13973                   defaultval=no
13974               fi
13975           fi
13976
13977           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-uiactionsim" >&5
13978 echo $ECHO_N "checking for --${enablestring:-enable}-uiactionsim... $ECHO_C" >&6; }
13979           # Check whether --enable-uiactionsim was given.
13980 if test "${enable_uiactionsim+set}" = set; then
13981   enableval=$enable_uiactionsim;
13982                           if test "$enableval" = yes; then
13983                             wx_cv_use_uiactionsim='wxUSE_UIACTIONSIMULATOR=yes'
13984                           else
13985                             wx_cv_use_uiactionsim='wxUSE_UIACTIONSIMULATOR=no'
13986                           fi
13987
13988 else
13989
13990                           wx_cv_use_uiactionsim='wxUSE_UIACTIONSIMULATOR=${'DEFAULT_wxUSE_UIACTIONSIMULATOR":-$defaultval}"
13991
13992 fi
13993
13994
13995           eval "$wx_cv_use_uiactionsim"
13996
13997           if test x"$enablestring" = xdisable; then
13998             if test $wxUSE_UIACTIONSIMULATOR = no; then
13999               result=yes
14000             else
14001               result=no
14002             fi
14003           else
14004             result=$wxUSE_UIACTIONSIMULATOR
14005           fi
14006
14007           { echo "$as_me:$LINENO: result: $result" >&5
14008 echo "${ECHO_T}$result" >&6; }
14009
14010
14011           enablestring=
14012           defaultval=$wxUSE_ALL_FEATURES
14013           if test -z "$defaultval"; then
14014               if test x"$enablestring" = xdisable; then
14015                   defaultval=yes
14016               else
14017                   defaultval=no
14018               fi
14019           fi
14020
14021           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dctransform" >&5
14022 echo $ECHO_N "checking for --${enablestring:-enable}-dctransform... $ECHO_C" >&6; }
14023           # Check whether --enable-dctransform was given.
14024 if test "${enable_dctransform+set}" = set; then
14025   enableval=$enable_dctransform;
14026                           if test "$enableval" = yes; then
14027                             wx_cv_use_dctransform='wxUSE_DC_TRANSFORM_MATRIX=yes'
14028                           else
14029                             wx_cv_use_dctransform='wxUSE_DC_TRANSFORM_MATRIX=no'
14030                           fi
14031
14032 else
14033
14034                           wx_cv_use_dctransform='wxUSE_DC_TRANSFORM_MATRIX=${'DEFAULT_wxUSE_DC_TRANSFORM_MATRIX":-$defaultval}"
14035
14036 fi
14037
14038
14039           eval "$wx_cv_use_dctransform"
14040
14041           if test x"$enablestring" = xdisable; then
14042             if test $wxUSE_DC_TRANSFORM_MATRIX = no; then
14043               result=yes
14044             else
14045               result=no
14046             fi
14047           else
14048             result=$wxUSE_DC_TRANSFORM_MATRIX
14049           fi
14050
14051           { echo "$as_me:$LINENO: result: $result" >&5
14052 echo "${ECHO_T}$result" >&6; }
14053
14054
14055
14056
14057           enablestring=
14058           defaultval=$wxUSE_ALL_FEATURES
14059           if test -z "$defaultval"; then
14060               if test x"$enablestring" = xdisable; then
14061                   defaultval=yes
14062               else
14063                   defaultval=no
14064               fi
14065           fi
14066
14067           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-palette" >&5
14068 echo $ECHO_N "checking for --${enablestring:-enable}-palette... $ECHO_C" >&6; }
14069           # Check whether --enable-palette was given.
14070 if test "${enable_palette+set}" = set; then
14071   enableval=$enable_palette;
14072                           if test "$enableval" = yes; then
14073                             wx_cv_use_palette='wxUSE_PALETTE=yes'
14074                           else
14075                             wx_cv_use_palette='wxUSE_PALETTE=no'
14076                           fi
14077
14078 else
14079
14080                           wx_cv_use_palette='wxUSE_PALETTE=${'DEFAULT_wxUSE_PALETTE":-$defaultval}"
14081
14082 fi
14083
14084
14085           eval "$wx_cv_use_palette"
14086
14087           if test x"$enablestring" = xdisable; then
14088             if test $wxUSE_PALETTE = no; then
14089               result=yes
14090             else
14091               result=no
14092             fi
14093           else
14094             result=$wxUSE_PALETTE
14095           fi
14096
14097           { echo "$as_me:$LINENO: result: $result" >&5
14098 echo "${ECHO_T}$result" >&6; }
14099
14100
14101           enablestring=
14102           defaultval=$wxUSE_ALL_FEATURES
14103           if test -z "$defaultval"; then
14104               if test x"$enablestring" = xdisable; then
14105                   defaultval=yes
14106               else
14107                   defaultval=no
14108               fi
14109           fi
14110
14111           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-image" >&5
14112 echo $ECHO_N "checking for --${enablestring:-enable}-image... $ECHO_C" >&6; }
14113           # Check whether --enable-image was given.
14114 if test "${enable_image+set}" = set; then
14115   enableval=$enable_image;
14116                           if test "$enableval" = yes; then
14117                             wx_cv_use_image='wxUSE_IMAGE=yes'
14118                           else
14119                             wx_cv_use_image='wxUSE_IMAGE=no'
14120                           fi
14121
14122 else
14123
14124                           wx_cv_use_image='wxUSE_IMAGE=${'DEFAULT_wxUSE_IMAGE":-$defaultval}"
14125
14126 fi
14127
14128
14129           eval "$wx_cv_use_image"
14130
14131           if test x"$enablestring" = xdisable; then
14132             if test $wxUSE_IMAGE = no; then
14133               result=yes
14134             else
14135               result=no
14136             fi
14137           else
14138             result=$wxUSE_IMAGE
14139           fi
14140
14141           { echo "$as_me:$LINENO: result: $result" >&5
14142 echo "${ECHO_T}$result" >&6; }
14143
14144
14145           enablestring=
14146           defaultval=$wxUSE_ALL_FEATURES
14147           if test -z "$defaultval"; then
14148               if test x"$enablestring" = xdisable; then
14149                   defaultval=yes
14150               else
14151                   defaultval=no
14152               fi
14153           fi
14154
14155           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gif" >&5
14156 echo $ECHO_N "checking for --${enablestring:-enable}-gif... $ECHO_C" >&6; }
14157           # Check whether --enable-gif was given.
14158 if test "${enable_gif+set}" = set; then
14159   enableval=$enable_gif;
14160                           if test "$enableval" = yes; then
14161                             wx_cv_use_gif='wxUSE_GIF=yes'
14162                           else
14163                             wx_cv_use_gif='wxUSE_GIF=no'
14164                           fi
14165
14166 else
14167
14168                           wx_cv_use_gif='wxUSE_GIF=${'DEFAULT_wxUSE_GIF":-$defaultval}"
14169
14170 fi
14171
14172
14173           eval "$wx_cv_use_gif"
14174
14175           if test x"$enablestring" = xdisable; then
14176             if test $wxUSE_GIF = no; then
14177               result=yes
14178             else
14179               result=no
14180             fi
14181           else
14182             result=$wxUSE_GIF
14183           fi
14184
14185           { echo "$as_me:$LINENO: result: $result" >&5
14186 echo "${ECHO_T}$result" >&6; }
14187
14188
14189           enablestring=
14190           defaultval=$wxUSE_ALL_FEATURES
14191           if test -z "$defaultval"; then
14192               if test x"$enablestring" = xdisable; then
14193                   defaultval=yes
14194               else
14195                   defaultval=no
14196               fi
14197           fi
14198
14199           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pcx" >&5
14200 echo $ECHO_N "checking for --${enablestring:-enable}-pcx... $ECHO_C" >&6; }
14201           # Check whether --enable-pcx was given.
14202 if test "${enable_pcx+set}" = set; then
14203   enableval=$enable_pcx;
14204                           if test "$enableval" = yes; then
14205                             wx_cv_use_pcx='wxUSE_PCX=yes'
14206                           else
14207                             wx_cv_use_pcx='wxUSE_PCX=no'
14208                           fi
14209
14210 else
14211
14212                           wx_cv_use_pcx='wxUSE_PCX=${'DEFAULT_wxUSE_PCX":-$defaultval}"
14213
14214 fi
14215
14216
14217           eval "$wx_cv_use_pcx"
14218
14219           if test x"$enablestring" = xdisable; then
14220             if test $wxUSE_PCX = no; then
14221               result=yes
14222             else
14223               result=no
14224             fi
14225           else
14226             result=$wxUSE_PCX
14227           fi
14228
14229           { echo "$as_me:$LINENO: result: $result" >&5
14230 echo "${ECHO_T}$result" >&6; }
14231
14232
14233           enablestring=
14234           defaultval=$wxUSE_ALL_FEATURES
14235           if test -z "$defaultval"; then
14236               if test x"$enablestring" = xdisable; then
14237                   defaultval=yes
14238               else
14239                   defaultval=no
14240               fi
14241           fi
14242
14243           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tga" >&5
14244 echo $ECHO_N "checking for --${enablestring:-enable}-tga... $ECHO_C" >&6; }
14245           # Check whether --enable-tga was given.
14246 if test "${enable_tga+set}" = set; then
14247   enableval=$enable_tga;
14248                           if test "$enableval" = yes; then
14249                             wx_cv_use_tga='wxUSE_TGA=yes'
14250                           else
14251                             wx_cv_use_tga='wxUSE_TGA=no'
14252                           fi
14253
14254 else
14255
14256                           wx_cv_use_tga='wxUSE_TGA=${'DEFAULT_wxUSE_TGA":-$defaultval}"
14257
14258 fi
14259
14260
14261           eval "$wx_cv_use_tga"
14262
14263           if test x"$enablestring" = xdisable; then
14264             if test $wxUSE_TGA = no; then
14265               result=yes
14266             else
14267               result=no
14268             fi
14269           else
14270             result=$wxUSE_TGA
14271           fi
14272
14273           { echo "$as_me:$LINENO: result: $result" >&5
14274 echo "${ECHO_T}$result" >&6; }
14275
14276
14277           enablestring=
14278           defaultval=$wxUSE_ALL_FEATURES
14279           if test -z "$defaultval"; then
14280               if test x"$enablestring" = xdisable; then
14281                   defaultval=yes
14282               else
14283                   defaultval=no
14284               fi
14285           fi
14286
14287           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-iff" >&5
14288 echo $ECHO_N "checking for --${enablestring:-enable}-iff... $ECHO_C" >&6; }
14289           # Check whether --enable-iff was given.
14290 if test "${enable_iff+set}" = set; then
14291   enableval=$enable_iff;
14292                           if test "$enableval" = yes; then
14293                             wx_cv_use_iff='wxUSE_IFF=yes'
14294                           else
14295                             wx_cv_use_iff='wxUSE_IFF=no'
14296                           fi
14297
14298 else
14299
14300                           wx_cv_use_iff='wxUSE_IFF=${'DEFAULT_wxUSE_IFF":-$defaultval}"
14301
14302 fi
14303
14304
14305           eval "$wx_cv_use_iff"
14306
14307           if test x"$enablestring" = xdisable; then
14308             if test $wxUSE_IFF = no; then
14309               result=yes
14310             else
14311               result=no
14312             fi
14313           else
14314             result=$wxUSE_IFF
14315           fi
14316
14317           { echo "$as_me:$LINENO: result: $result" >&5
14318 echo "${ECHO_T}$result" >&6; }
14319
14320
14321           enablestring=
14322           defaultval=$wxUSE_ALL_FEATURES
14323           if test -z "$defaultval"; then
14324               if test x"$enablestring" = xdisable; then
14325                   defaultval=yes
14326               else
14327                   defaultval=no
14328               fi
14329           fi
14330
14331           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pnm" >&5
14332 echo $ECHO_N "checking for --${enablestring:-enable}-pnm... $ECHO_C" >&6; }
14333           # Check whether --enable-pnm was given.
14334 if test "${enable_pnm+set}" = set; then
14335   enableval=$enable_pnm;
14336                           if test "$enableval" = yes; then
14337                             wx_cv_use_pnm='wxUSE_PNM=yes'
14338                           else
14339                             wx_cv_use_pnm='wxUSE_PNM=no'
14340                           fi
14341
14342 else
14343
14344                           wx_cv_use_pnm='wxUSE_PNM=${'DEFAULT_wxUSE_PNM":-$defaultval}"
14345
14346 fi
14347
14348
14349           eval "$wx_cv_use_pnm"
14350
14351           if test x"$enablestring" = xdisable; then
14352             if test $wxUSE_PNM = no; then
14353               result=yes
14354             else
14355               result=no
14356             fi
14357           else
14358             result=$wxUSE_PNM
14359           fi
14360
14361           { echo "$as_me:$LINENO: result: $result" >&5
14362 echo "${ECHO_T}$result" >&6; }
14363
14364
14365           enablestring=
14366           defaultval=$wxUSE_ALL_FEATURES
14367           if test -z "$defaultval"; then
14368               if test x"$enablestring" = xdisable; then
14369                   defaultval=yes
14370               else
14371                   defaultval=no
14372               fi
14373           fi
14374
14375           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xpm" >&5
14376 echo $ECHO_N "checking for --${enablestring:-enable}-xpm... $ECHO_C" >&6; }
14377           # Check whether --enable-xpm was given.
14378 if test "${enable_xpm+set}" = set; then
14379   enableval=$enable_xpm;
14380                           if test "$enableval" = yes; then
14381                             wx_cv_use_xpm='wxUSE_XPM=yes'
14382                           else
14383                             wx_cv_use_xpm='wxUSE_XPM=no'
14384                           fi
14385
14386 else
14387
14388                           wx_cv_use_xpm='wxUSE_XPM=${'DEFAULT_wxUSE_XPM":-$defaultval}"
14389
14390 fi
14391
14392
14393           eval "$wx_cv_use_xpm"
14394
14395           if test x"$enablestring" = xdisable; then
14396             if test $wxUSE_XPM = no; then
14397               result=yes
14398             else
14399               result=no
14400             fi
14401           else
14402             result=$wxUSE_XPM
14403           fi
14404
14405           { echo "$as_me:$LINENO: result: $result" >&5
14406 echo "${ECHO_T}$result" >&6; }
14407
14408
14409           enablestring=
14410           defaultval=$wxUSE_ALL_FEATURES
14411           if test -z "$defaultval"; then
14412               if test x"$enablestring" = xdisable; then
14413                   defaultval=yes
14414               else
14415                   defaultval=no
14416               fi
14417           fi
14418
14419           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ico_cur" >&5
14420 echo $ECHO_N "checking for --${enablestring:-enable}-ico_cur... $ECHO_C" >&6; }
14421           # Check whether --enable-ico_cur was given.
14422 if test "${enable_ico_cur+set}" = set; then
14423   enableval=$enable_ico_cur;
14424                           if test "$enableval" = yes; then
14425                             wx_cv_use_ico_cur='wxUSE_ICO_CUR=yes'
14426                           else
14427                             wx_cv_use_ico_cur='wxUSE_ICO_CUR=no'
14428                           fi
14429
14430 else
14431
14432                           wx_cv_use_ico_cur='wxUSE_ICO_CUR=${'DEFAULT_wxUSE_ICO_CUR":-$defaultval}"
14433
14434 fi
14435
14436
14437           eval "$wx_cv_use_ico_cur"
14438
14439           if test x"$enablestring" = xdisable; then
14440             if test $wxUSE_ICO_CUR = no; then
14441               result=yes
14442             else
14443               result=no
14444             fi
14445           else
14446             result=$wxUSE_ICO_CUR
14447           fi
14448
14449           { echo "$as_me:$LINENO: result: $result" >&5
14450 echo "${ECHO_T}$result" >&6; }
14451
14452
14453
14454
14455           enablestring=
14456           defaultval=$wxUSE_ALL_FEATURES
14457           if test -z "$defaultval"; then
14458               if test x"$enablestring" = xdisable; then
14459                   defaultval=yes
14460               else
14461                   defaultval=no
14462               fi
14463           fi
14464
14465           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dccache" >&5
14466 echo $ECHO_N "checking for --${enablestring:-enable}-dccache... $ECHO_C" >&6; }
14467           # Check whether --enable-dccache was given.
14468 if test "${enable_dccache+set}" = set; then
14469   enableval=$enable_dccache;
14470                           if test "$enableval" = yes; then
14471                             wx_cv_use_dccache='wxUSE_DC_CACHEING=yes'
14472                           else
14473                             wx_cv_use_dccache='wxUSE_DC_CACHEING=no'
14474                           fi
14475
14476 else
14477
14478                           wx_cv_use_dccache='wxUSE_DC_CACHEING=${'DEFAULT_wxUSE_DC_CACHEING":-$defaultval}"
14479
14480 fi
14481
14482
14483           eval "$wx_cv_use_dccache"
14484
14485           if test x"$enablestring" = xdisable; then
14486             if test $wxUSE_DC_CACHEING = no; then
14487               result=yes
14488             else
14489               result=no
14490             fi
14491           else
14492             result=$wxUSE_DC_CACHEING
14493           fi
14494
14495           { echo "$as_me:$LINENO: result: $result" >&5
14496 echo "${ECHO_T}$result" >&6; }
14497
14498
14499           enablestring=
14500           defaultval=$wxUSE_ALL_FEATURES
14501           if test -z "$defaultval"; then
14502               if test x"$enablestring" = xdisable; then
14503                   defaultval=yes
14504               else
14505                   defaultval=no
14506               fi
14507           fi
14508
14509           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ps-in-msw" >&5
14510 echo $ECHO_N "checking for --${enablestring:-enable}-ps-in-msw... $ECHO_C" >&6; }
14511           # Check whether --enable-ps-in-msw was given.
14512 if test "${enable_ps_in_msw+set}" = set; then
14513   enableval=$enable_ps_in_msw;
14514                           if test "$enableval" = yes; then
14515                             wx_cv_use_ps_in_msw='wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW=yes'
14516                           else
14517                             wx_cv_use_ps_in_msw='wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW=no'
14518                           fi
14519
14520 else
14521
14522                           wx_cv_use_ps_in_msw='wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW=${'DEFAULT_wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW":-$defaultval}"
14523
14524 fi
14525
14526
14527           eval "$wx_cv_use_ps_in_msw"
14528
14529           if test x"$enablestring" = xdisable; then
14530             if test $wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW = no; then
14531               result=yes
14532             else
14533               result=no
14534             fi
14535           else
14536             result=$wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW
14537           fi
14538
14539           { echo "$as_me:$LINENO: result: $result" >&5
14540 echo "${ECHO_T}$result" >&6; }
14541
14542
14543           enablestring=
14544           defaultval=$wxUSE_ALL_FEATURES
14545           if test -z "$defaultval"; then
14546               if test x"$enablestring" = xdisable; then
14547                   defaultval=yes
14548               else
14549                   defaultval=no
14550               fi
14551           fi
14552
14553           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ownerdrawn" >&5
14554 echo $ECHO_N "checking for --${enablestring:-enable}-ownerdrawn... $ECHO_C" >&6; }
14555           # Check whether --enable-ownerdrawn was given.
14556 if test "${enable_ownerdrawn+set}" = set; then
14557   enableval=$enable_ownerdrawn;
14558                           if test "$enableval" = yes; then
14559                             wx_cv_use_ownerdrawn='wxUSE_OWNER_DRAWN=yes'
14560                           else
14561                             wx_cv_use_ownerdrawn='wxUSE_OWNER_DRAWN=no'
14562                           fi
14563
14564 else
14565
14566                           wx_cv_use_ownerdrawn='wxUSE_OWNER_DRAWN=${'DEFAULT_wxUSE_OWNER_DRAWN":-$defaultval}"
14567
14568 fi
14569
14570
14571           eval "$wx_cv_use_ownerdrawn"
14572
14573           if test x"$enablestring" = xdisable; then
14574             if test $wxUSE_OWNER_DRAWN = no; then
14575               result=yes
14576             else
14577               result=no
14578             fi
14579           else
14580             result=$wxUSE_OWNER_DRAWN
14581           fi
14582
14583           { echo "$as_me:$LINENO: result: $result" >&5
14584 echo "${ECHO_T}$result" >&6; }
14585
14586
14587           enablestring=
14588           defaultval=$wxUSE_ALL_FEATURES
14589           if test -z "$defaultval"; then
14590               if test x"$enablestring" = xdisable; then
14591                   defaultval=yes
14592               else
14593                   defaultval=no
14594               fi
14595           fi
14596
14597           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-uxtheme" >&5
14598 echo $ECHO_N "checking for --${enablestring:-enable}-uxtheme... $ECHO_C" >&6; }
14599           # Check whether --enable-uxtheme was given.
14600 if test "${enable_uxtheme+set}" = set; then
14601   enableval=$enable_uxtheme;
14602                           if test "$enableval" = yes; then
14603                             wx_cv_use_uxtheme='wxUSE_UXTHEME=yes'
14604                           else
14605                             wx_cv_use_uxtheme='wxUSE_UXTHEME=no'
14606                           fi
14607
14608 else
14609
14610                           wx_cv_use_uxtheme='wxUSE_UXTHEME=${'DEFAULT_wxUSE_UXTHEME":-$defaultval}"
14611
14612 fi
14613
14614
14615           eval "$wx_cv_use_uxtheme"
14616
14617           if test x"$enablestring" = xdisable; then
14618             if test $wxUSE_UXTHEME = no; then
14619               result=yes
14620             else
14621               result=no
14622             fi
14623           else
14624             result=$wxUSE_UXTHEME
14625           fi
14626
14627           { echo "$as_me:$LINENO: result: $result" >&5
14628 echo "${ECHO_T}$result" >&6; }
14629
14630
14631           enablestring=
14632           defaultval=$wxUSE_ALL_FEATURES
14633           if test -z "$defaultval"; then
14634               if test x"$enablestring" = xdisable; then
14635                   defaultval=yes
14636               else
14637                   defaultval=no
14638               fi
14639           fi
14640
14641           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wxdib" >&5
14642 echo $ECHO_N "checking for --${enablestring:-enable}-wxdib... $ECHO_C" >&6; }
14643           # Check whether --enable-wxdib was given.
14644 if test "${enable_wxdib+set}" = set; then
14645   enableval=$enable_wxdib;
14646                           if test "$enableval" = yes; then
14647                             wx_cv_use_wxdib='wxUSE_DIB=yes'
14648                           else
14649                             wx_cv_use_wxdib='wxUSE_DIB=no'
14650                           fi
14651
14652 else
14653
14654                           wx_cv_use_wxdib='wxUSE_DIB=${'DEFAULT_wxUSE_DIB":-$defaultval}"
14655
14656 fi
14657
14658
14659           eval "$wx_cv_use_wxdib"
14660
14661           if test x"$enablestring" = xdisable; then
14662             if test $wxUSE_DIB = no; then
14663               result=yes
14664             else
14665               result=no
14666             fi
14667           else
14668             result=$wxUSE_DIB
14669           fi
14670
14671           { echo "$as_me:$LINENO: result: $result" >&5
14672 echo "${ECHO_T}$result" >&6; }
14673
14674
14675 if test "$wxUSE_MSW" != 1; then
14676     DEFAULT_wxUSE_AUTOID_MANAGEMENT=no
14677 fi
14678
14679
14680           enablestring=
14681           defaultval=$wxUSE_ALL_FEATURES
14682           if test -z "$defaultval"; then
14683               if test x"$enablestring" = xdisable; then
14684                   defaultval=yes
14685               else
14686                   defaultval=no
14687               fi
14688           fi
14689
14690           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-autoidman" >&5
14691 echo $ECHO_N "checking for --${enablestring:-enable}-autoidman... $ECHO_C" >&6; }
14692           # Check whether --enable-autoidman was given.
14693 if test "${enable_autoidman+set}" = set; then
14694   enableval=$enable_autoidman;
14695                           if test "$enableval" = yes; then
14696                             wx_cv_use_autoidman='wxUSE_AUTOID_MANAGEMENT=yes'
14697                           else
14698                             wx_cv_use_autoidman='wxUSE_AUTOID_MANAGEMENT=no'
14699                           fi
14700
14701 else
14702
14703                           wx_cv_use_autoidman='wxUSE_AUTOID_MANAGEMENT=${'DEFAULT_wxUSE_AUTOID_MANAGEMENT":-$defaultval}"
14704
14705 fi
14706
14707
14708           eval "$wx_cv_use_autoidman"
14709
14710           if test x"$enablestring" = xdisable; then
14711             if test $wxUSE_AUTOID_MANAGEMENT = no; then
14712               result=yes
14713             else
14714               result=no
14715             fi
14716           else
14717             result=$wxUSE_AUTOID_MANAGEMENT
14718           fi
14719
14720           { echo "$as_me:$LINENO: result: $result" >&5
14721 echo "${ECHO_T}$result" >&6; }
14722
14723
14724 fi
14725
14726
14727 cat >confcache <<\_ACEOF
14728 # This file is a shell script that caches the results of configure
14729 # tests run on this system so they can be shared between configure
14730 # scripts and configure runs, see configure's option --config-cache.
14731 # It is not useful on other systems.  If it contains results you don't
14732 # want to keep, you may remove or edit it.
14733 #
14734 # config.status only pays attention to the cache file if you give it
14735 # the --recheck option to rerun configure.
14736 #
14737 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14738 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14739 # following values.
14740
14741 _ACEOF
14742
14743 # The following way of writing the cache mishandles newlines in values,
14744 # but we know of no workaround that is simple, portable, and efficient.
14745 # So, we kill variables containing newlines.
14746 # Ultrix sh set writes to stderr and can't be redirected directly,
14747 # and sets the high bit in the cache file unless we assign to the vars.
14748 (
14749   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14750     eval ac_val=\$$ac_var
14751     case $ac_val in #(
14752     *${as_nl}*)
14753       case $ac_var in #(
14754       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
14755 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
14756       esac
14757       case $ac_var in #(
14758       _ | IFS | as_nl) ;; #(
14759       *) $as_unset $ac_var ;;
14760       esac ;;
14761     esac
14762   done
14763
14764   (set) 2>&1 |
14765     case $as_nl`(ac_space=' '; set) 2>&1` in #(
14766     *${as_nl}ac_space=\ *)
14767       # `set' does not quote correctly, so add quotes (double-quote
14768       # substitution turns \\\\ into \\, and sed turns \\ into \).
14769       sed -n \
14770         "s/'/'\\\\''/g;
14771           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14772       ;; #(
14773     *)
14774       # `set' quotes correctly as required by POSIX, so do not add quotes.
14775       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14776       ;;
14777     esac |
14778     sort
14779 ) |
14780   sed '
14781      /^ac_cv_env_/b end
14782      t clear
14783      :clear
14784      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14785      t end
14786      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14787      :end' >>confcache
14788 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14789   if test -w "$cache_file"; then
14790     test "x$cache_file" != "x/dev/null" &&
14791       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
14792 echo "$as_me: updating cache $cache_file" >&6;}
14793     cat confcache >$cache_file
14794   else
14795     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
14796 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14797   fi
14798 fi
14799 rm -f confcache
14800
14801 CFLAGS=${CFLAGS:=}
14802 ac_ext=c
14803 ac_cpp='$CPP $CPPFLAGS'
14804 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14805 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14806 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14807 if test -n "$ac_tool_prefix"; then
14808   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
14809 set dummy ${ac_tool_prefix}gcc; ac_word=$2
14810 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14811 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14812 if test "${ac_cv_prog_CC+set}" = set; then
14813   echo $ECHO_N "(cached) $ECHO_C" >&6
14814 else
14815   if test -n "$CC"; then
14816   ac_cv_prog_CC="$CC" # Let the user override the test.
14817 else
14818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14819 for as_dir in $PATH
14820 do
14821   IFS=$as_save_IFS
14822   test -z "$as_dir" && as_dir=.
14823   for ac_exec_ext in '' $ac_executable_extensions; do
14824   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14825     ac_cv_prog_CC="${ac_tool_prefix}gcc"
14826     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14827     break 2
14828   fi
14829 done
14830 done
14831 IFS=$as_save_IFS
14832
14833 fi
14834 fi
14835 CC=$ac_cv_prog_CC
14836 if test -n "$CC"; then
14837   { echo "$as_me:$LINENO: result: $CC" >&5
14838 echo "${ECHO_T}$CC" >&6; }
14839 else
14840   { echo "$as_me:$LINENO: result: no" >&5
14841 echo "${ECHO_T}no" >&6; }
14842 fi
14843
14844
14845 fi
14846 if test -z "$ac_cv_prog_CC"; then
14847   ac_ct_CC=$CC
14848   # Extract the first word of "gcc", so it can be a program name with args.
14849 set dummy gcc; ac_word=$2
14850 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14851 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14852 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
14853   echo $ECHO_N "(cached) $ECHO_C" >&6
14854 else
14855   if test -n "$ac_ct_CC"; then
14856   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
14857 else
14858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14859 for as_dir in $PATH
14860 do
14861   IFS=$as_save_IFS
14862   test -z "$as_dir" && as_dir=.
14863   for ac_exec_ext in '' $ac_executable_extensions; do
14864   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14865     ac_cv_prog_ac_ct_CC="gcc"
14866     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14867     break 2
14868   fi
14869 done
14870 done
14871 IFS=$as_save_IFS
14872
14873 fi
14874 fi
14875 ac_ct_CC=$ac_cv_prog_ac_ct_CC
14876 if test -n "$ac_ct_CC"; then
14877   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
14878 echo "${ECHO_T}$ac_ct_CC" >&6; }
14879 else
14880   { echo "$as_me:$LINENO: result: no" >&5
14881 echo "${ECHO_T}no" >&6; }
14882 fi
14883
14884   if test "x$ac_ct_CC" = x; then
14885     CC=""
14886   else
14887     case $cross_compiling:$ac_tool_warned in
14888 yes:)
14889 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14890 whose name does not start with the host triplet.  If you think this
14891 configuration is useful to you, please write to autoconf@gnu.org." >&5
14892 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14893 whose name does not start with the host triplet.  If you think this
14894 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14895 ac_tool_warned=yes ;;
14896 esac
14897     CC=$ac_ct_CC
14898   fi
14899 else
14900   CC="$ac_cv_prog_CC"
14901 fi
14902
14903 if test -z "$CC"; then
14904           if test -n "$ac_tool_prefix"; then
14905     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
14906 set dummy ${ac_tool_prefix}cc; ac_word=$2
14907 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14908 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14909 if test "${ac_cv_prog_CC+set}" = set; then
14910   echo $ECHO_N "(cached) $ECHO_C" >&6
14911 else
14912   if test -n "$CC"; then
14913   ac_cv_prog_CC="$CC" # Let the user override the test.
14914 else
14915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14916 for as_dir in $PATH
14917 do
14918   IFS=$as_save_IFS
14919   test -z "$as_dir" && as_dir=.
14920   for ac_exec_ext in '' $ac_executable_extensions; do
14921   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14922     ac_cv_prog_CC="${ac_tool_prefix}cc"
14923     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14924     break 2
14925   fi
14926 done
14927 done
14928 IFS=$as_save_IFS
14929
14930 fi
14931 fi
14932 CC=$ac_cv_prog_CC
14933 if test -n "$CC"; then
14934   { echo "$as_me:$LINENO: result: $CC" >&5
14935 echo "${ECHO_T}$CC" >&6; }
14936 else
14937   { echo "$as_me:$LINENO: result: no" >&5
14938 echo "${ECHO_T}no" >&6; }
14939 fi
14940
14941
14942   fi
14943 fi
14944 if test -z "$CC"; then
14945   # Extract the first word of "cc", so it can be a program name with args.
14946 set dummy cc; ac_word=$2
14947 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14948 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14949 if test "${ac_cv_prog_CC+set}" = set; then
14950   echo $ECHO_N "(cached) $ECHO_C" >&6
14951 else
14952   if test -n "$CC"; then
14953   ac_cv_prog_CC="$CC" # Let the user override the test.
14954 else
14955   ac_prog_rejected=no
14956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14957 for as_dir in $PATH
14958 do
14959   IFS=$as_save_IFS
14960   test -z "$as_dir" && as_dir=.
14961   for ac_exec_ext in '' $ac_executable_extensions; do
14962   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14963     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
14964        ac_prog_rejected=yes
14965        continue
14966      fi
14967     ac_cv_prog_CC="cc"
14968     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14969     break 2
14970   fi
14971 done
14972 done
14973 IFS=$as_save_IFS
14974
14975 if test $ac_prog_rejected = yes; then
14976   # We found a bogon in the path, so make sure we never use it.
14977   set dummy $ac_cv_prog_CC
14978   shift
14979   if test $# != 0; then
14980     # We chose a different compiler from the bogus one.
14981     # However, it has the same basename, so the bogon will be chosen
14982     # first if we set CC to just the basename; use the full file name.
14983     shift
14984     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
14985   fi
14986 fi
14987 fi
14988 fi
14989 CC=$ac_cv_prog_CC
14990 if test -n "$CC"; then
14991   { echo "$as_me:$LINENO: result: $CC" >&5
14992 echo "${ECHO_T}$CC" >&6; }
14993 else
14994   { echo "$as_me:$LINENO: result: no" >&5
14995 echo "${ECHO_T}no" >&6; }
14996 fi
14997
14998
14999 fi
15000 if test -z "$CC"; then
15001   if test -n "$ac_tool_prefix"; then
15002   for ac_prog in cl.exe
15003   do
15004     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
15005 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
15006 { echo "$as_me:$LINENO: checking for $ac_word" >&5
15007 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
15008 if test "${ac_cv_prog_CC+set}" = set; then
15009   echo $ECHO_N "(cached) $ECHO_C" >&6
15010 else
15011   if test -n "$CC"; then
15012   ac_cv_prog_CC="$CC" # Let the user override the test.
15013 else
15014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15015 for as_dir in $PATH
15016 do
15017   IFS=$as_save_IFS
15018   test -z "$as_dir" && as_dir=.
15019   for ac_exec_ext in '' $ac_executable_extensions; do
15020   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15021     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
15022     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15023     break 2
15024   fi
15025 done
15026 done
15027 IFS=$as_save_IFS
15028
15029 fi
15030 fi
15031 CC=$ac_cv_prog_CC
15032 if test -n "$CC"; then
15033   { echo "$as_me:$LINENO: result: $CC" >&5
15034 echo "${ECHO_T}$CC" >&6; }
15035 else
15036   { echo "$as_me:$LINENO: result: no" >&5
15037 echo "${ECHO_T}no" >&6; }
15038 fi
15039
15040
15041     test -n "$CC" && break
15042   done
15043 fi
15044 if test -z "$CC"; then
15045   ac_ct_CC=$CC
15046   for ac_prog in cl.exe
15047 do
15048   # Extract the first word of "$ac_prog", so it can be a program name with args.
15049 set dummy $ac_prog; ac_word=$2
15050 { echo "$as_me:$LINENO: checking for $ac_word" >&5
15051 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
15052 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
15053   echo $ECHO_N "(cached) $ECHO_C" >&6
15054 else
15055   if test -n "$ac_ct_CC"; then
15056   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
15057 else
15058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15059 for as_dir in $PATH
15060 do
15061   IFS=$as_save_IFS
15062   test -z "$as_dir" && as_dir=.
15063   for ac_exec_ext in '' $ac_executable_extensions; do
15064   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15065     ac_cv_prog_ac_ct_CC="$ac_prog"
15066     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15067     break 2
15068   fi
15069 done
15070 done
15071 IFS=$as_save_IFS
15072
15073 fi
15074 fi
15075 ac_ct_CC=$ac_cv_prog_ac_ct_CC
15076 if test -n "$ac_ct_CC"; then
15077   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
15078 echo "${ECHO_T}$ac_ct_CC" >&6; }
15079 else
15080   { echo "$as_me:$LINENO: result: no" >&5
15081 echo "${ECHO_T}no" >&6; }
15082 fi
15083
15084
15085   test -n "$ac_ct_CC" && break
15086 done
15087
15088   if test "x$ac_ct_CC" = x; then
15089     CC=""
15090   else
15091     case $cross_compiling:$ac_tool_warned in
15092 yes:)
15093 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
15094 whose name does not start with the host triplet.  If you think this
15095 configuration is useful to you, please write to autoconf@gnu.org." >&5
15096 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
15097 whose name does not start with the host triplet.  If you think this
15098 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
15099 ac_tool_warned=yes ;;
15100 esac
15101     CC=$ac_ct_CC
15102   fi
15103 fi
15104
15105 fi
15106
15107
15108 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
15109 See \`config.log' for more details." >&5
15110 echo "$as_me: error: no acceptable C compiler found in \$PATH
15111 See \`config.log' for more details." >&2;}
15112    { (exit 1); exit 1; }; }
15113
15114 # Provide some information about the compiler.
15115 echo "$as_me:$LINENO: checking for C compiler version" >&5
15116 ac_compiler=`set X $ac_compile; echo $2`
15117 { (ac_try="$ac_compiler --version >&5"
15118 case "(($ac_try" in
15119   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15120   *) ac_try_echo=$ac_try;;
15121 esac
15122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15123   (eval "$ac_compiler --version >&5") 2>&5
15124   ac_status=$?
15125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15126   (exit $ac_status); }
15127 { (ac_try="$ac_compiler -v >&5"
15128 case "(($ac_try" in
15129   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15130   *) ac_try_echo=$ac_try;;
15131 esac
15132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15133   (eval "$ac_compiler -v >&5") 2>&5
15134   ac_status=$?
15135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15136   (exit $ac_status); }
15137 { (ac_try="$ac_compiler -V >&5"
15138 case "(($ac_try" in
15139   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15140   *) ac_try_echo=$ac_try;;
15141 esac
15142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15143   (eval "$ac_compiler -V >&5") 2>&5
15144   ac_status=$?
15145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15146   (exit $ac_status); }
15147
15148 cat >conftest.$ac_ext <<_ACEOF
15149 /* confdefs.h.  */
15150 _ACEOF
15151 cat confdefs.h >>conftest.$ac_ext
15152 cat >>conftest.$ac_ext <<_ACEOF
15153 /* end confdefs.h.  */
15154
15155 int
15156 main ()
15157 {
15158
15159   ;
15160   return 0;
15161 }
15162 _ACEOF
15163 ac_clean_files_save=$ac_clean_files
15164 ac_clean_files="$ac_clean_files a.out a.exe b.out"
15165 # Try to create an executable without -o first, disregard a.out.
15166 # It will help us diagnose broken compilers, and finding out an intuition
15167 # of exeext.
15168 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
15169 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
15170 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
15171 #
15172 # List of possible output files, starting from the most likely.
15173 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
15174 # only as a last resort.  b.out is created by i960 compilers.
15175 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
15176 #
15177 # The IRIX 6 linker writes into existing files which may not be
15178 # executable, retaining their permissions.  Remove them first so a
15179 # subsequent execution test works.
15180 ac_rmfiles=
15181 for ac_file in $ac_files
15182 do
15183   case $ac_file in
15184     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
15185     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
15186   esac
15187 done
15188 rm -f $ac_rmfiles
15189
15190 if { (ac_try="$ac_link_default"
15191 case "(($ac_try" in
15192   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15193   *) ac_try_echo=$ac_try;;
15194 esac
15195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15196   (eval "$ac_link_default") 2>&5
15197   ac_status=$?
15198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15199   (exit $ac_status); }; then
15200   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
15201 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
15202 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
15203 # so that the user can short-circuit this test for compilers unknown to
15204 # Autoconf.
15205 for ac_file in $ac_files ''
15206 do
15207   test -f "$ac_file" || continue
15208   case $ac_file in
15209     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
15210         ;;
15211     [ab].out )
15212         # We found the default executable, but exeext='' is most
15213         # certainly right.
15214         break;;
15215     *.* )
15216         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
15217         then :; else
15218            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
15219         fi
15220         # We set ac_cv_exeext here because the later test for it is not
15221         # safe: cross compilers may not add the suffix if given an `-o'
15222         # argument, so we may need to know it at that point already.
15223         # Even if this section looks crufty: it has the advantage of
15224         # actually working.
15225         break;;
15226     * )
15227         break;;
15228   esac
15229 done
15230 test "$ac_cv_exeext" = no && ac_cv_exeext=
15231
15232 else
15233   ac_file=''
15234 fi
15235
15236 { echo "$as_me:$LINENO: result: $ac_file" >&5
15237 echo "${ECHO_T}$ac_file" >&6; }
15238 if test -z "$ac_file"; then
15239   echo "$as_me: failed program was:" >&5
15240 sed 's/^/| /' conftest.$ac_ext >&5
15241
15242 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
15243 See \`config.log' for more details." >&5
15244 echo "$as_me: error: C compiler cannot create executables
15245 See \`config.log' for more details." >&2;}
15246    { (exit 77); exit 77; }; }
15247 fi
15248
15249 ac_exeext=$ac_cv_exeext
15250
15251 # Check that the compiler produces executables we can run.  If not, either
15252 # the compiler is broken, or we cross compile.
15253 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
15254 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
15255 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
15256 # If not cross compiling, check that we can run a simple program.
15257 if test "$cross_compiling" != yes; then
15258   if { ac_try='./$ac_file'
15259   { (case "(($ac_try" in
15260   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15261   *) ac_try_echo=$ac_try;;
15262 esac
15263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15264   (eval "$ac_try") 2>&5
15265   ac_status=$?
15266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15267   (exit $ac_status); }; }; then
15268     cross_compiling=no
15269   else
15270     if test "$cross_compiling" = maybe; then
15271         cross_compiling=yes
15272     else
15273         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
15274 If you meant to cross compile, use \`--host'.
15275 See \`config.log' for more details." >&5
15276 echo "$as_me: error: cannot run C compiled programs.
15277 If you meant to cross compile, use \`--host'.
15278 See \`config.log' for more details." >&2;}
15279    { (exit 1); exit 1; }; }
15280     fi
15281   fi
15282 fi
15283 { echo "$as_me:$LINENO: result: yes" >&5
15284 echo "${ECHO_T}yes" >&6; }
15285
15286 rm -f a.out a.exe conftest$ac_cv_exeext b.out
15287 ac_clean_files=$ac_clean_files_save
15288 # Check that the compiler produces executables we can run.  If not, either
15289 # the compiler is broken, or we cross compile.
15290 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
15291 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
15292 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
15293 echo "${ECHO_T}$cross_compiling" >&6; }
15294
15295 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
15296 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
15297 if { (ac_try="$ac_link"
15298 case "(($ac_try" in
15299   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15300   *) ac_try_echo=$ac_try;;
15301 esac
15302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15303   (eval "$ac_link") 2>&5
15304   ac_status=$?
15305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15306   (exit $ac_status); }; then
15307   # If both `conftest.exe' and `conftest' are `present' (well, observable)
15308 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
15309 # work properly (i.e., refer to `conftest.exe'), while it won't with
15310 # `rm'.
15311 for ac_file in conftest.exe conftest conftest.*; do
15312   test -f "$ac_file" || continue
15313   case $ac_file in
15314     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
15315     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
15316           break;;
15317     * ) break;;
15318   esac
15319 done
15320 else
15321   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
15322 See \`config.log' for more details." >&5
15323 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
15324 See \`config.log' for more details." >&2;}
15325    { (exit 1); exit 1; }; }
15326 fi
15327
15328 rm -f conftest$ac_cv_exeext
15329 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
15330 echo "${ECHO_T}$ac_cv_exeext" >&6; }
15331
15332 rm -f conftest.$ac_ext
15333 EXEEXT=$ac_cv_exeext
15334 ac_exeext=$EXEEXT
15335 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
15336 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
15337 if test "${ac_cv_objext+set}" = set; then
15338   echo $ECHO_N "(cached) $ECHO_C" >&6
15339 else
15340   cat >conftest.$ac_ext <<_ACEOF
15341 /* confdefs.h.  */
15342 _ACEOF
15343 cat confdefs.h >>conftest.$ac_ext
15344 cat >>conftest.$ac_ext <<_ACEOF
15345 /* end confdefs.h.  */
15346
15347 int
15348 main ()
15349 {
15350
15351   ;
15352   return 0;
15353 }
15354 _ACEOF
15355 rm -f conftest.o conftest.obj
15356 if { (ac_try="$ac_compile"
15357 case "(($ac_try" in
15358   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15359   *) ac_try_echo=$ac_try;;
15360 esac
15361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15362   (eval "$ac_compile") 2>&5
15363   ac_status=$?
15364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15365   (exit $ac_status); }; then
15366   for ac_file in conftest.o conftest.obj conftest.*; do
15367   test -f "$ac_file" || continue;
15368   case $ac_file in
15369     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
15370     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
15371        break;;
15372   esac
15373 done
15374 else
15375   echo "$as_me: failed program was:" >&5
15376 sed 's/^/| /' conftest.$ac_ext >&5
15377
15378 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
15379 See \`config.log' for more details." >&5
15380 echo "$as_me: error: cannot compute suffix of object files: cannot compile
15381 See \`config.log' for more details." >&2;}
15382    { (exit 1); exit 1; }; }
15383 fi
15384
15385 rm -f conftest.$ac_cv_objext conftest.$ac_ext
15386 fi
15387 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
15388 echo "${ECHO_T}$ac_cv_objext" >&6; }
15389 OBJEXT=$ac_cv_objext
15390 ac_objext=$OBJEXT
15391 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
15392 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
15393 if test "${ac_cv_c_compiler_gnu+set}" = set; then
15394   echo $ECHO_N "(cached) $ECHO_C" >&6
15395 else
15396   cat >conftest.$ac_ext <<_ACEOF
15397 /* confdefs.h.  */
15398 _ACEOF
15399 cat confdefs.h >>conftest.$ac_ext
15400 cat >>conftest.$ac_ext <<_ACEOF
15401 /* end confdefs.h.  */
15402
15403 int
15404 main ()
15405 {
15406 #ifndef __GNUC__
15407        choke me
15408 #endif
15409
15410   ;
15411   return 0;
15412 }
15413 _ACEOF
15414 rm -f conftest.$ac_objext
15415 if { (ac_try="$ac_compile"
15416 case "(($ac_try" in
15417   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15418   *) ac_try_echo=$ac_try;;
15419 esac
15420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15421   (eval "$ac_compile") 2>conftest.er1
15422   ac_status=$?
15423   grep -v '^ *+' conftest.er1 >conftest.err
15424   rm -f conftest.er1
15425   cat conftest.err >&5
15426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15427   (exit $ac_status); } && {
15428          test -z "$ac_c_werror_flag" ||
15429          test ! -s conftest.err
15430        } && test -s conftest.$ac_objext; then
15431   ac_compiler_gnu=yes
15432 else
15433   echo "$as_me: failed program was:" >&5
15434 sed 's/^/| /' conftest.$ac_ext >&5
15435
15436         ac_compiler_gnu=no
15437 fi
15438
15439 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15440 ac_cv_c_compiler_gnu=$ac_compiler_gnu
15441
15442 fi
15443 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
15444 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
15445 GCC=`test $ac_compiler_gnu = yes && echo yes`
15446 ac_test_CFLAGS=${CFLAGS+set}
15447 ac_save_CFLAGS=$CFLAGS
15448 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
15449 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
15450 if test "${ac_cv_prog_cc_g+set}" = set; then
15451   echo $ECHO_N "(cached) $ECHO_C" >&6
15452 else
15453   ac_save_c_werror_flag=$ac_c_werror_flag
15454    ac_c_werror_flag=yes
15455    ac_cv_prog_cc_g=no
15456    CFLAGS="-g"
15457    cat >conftest.$ac_ext <<_ACEOF
15458 /* confdefs.h.  */
15459 _ACEOF
15460 cat confdefs.h >>conftest.$ac_ext
15461 cat >>conftest.$ac_ext <<_ACEOF
15462 /* end confdefs.h.  */
15463
15464 int
15465 main ()
15466 {
15467
15468   ;
15469   return 0;
15470 }
15471 _ACEOF
15472 rm -f conftest.$ac_objext
15473 if { (ac_try="$ac_compile"
15474 case "(($ac_try" in
15475   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15476   *) ac_try_echo=$ac_try;;
15477 esac
15478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15479   (eval "$ac_compile") 2>conftest.er1
15480   ac_status=$?
15481   grep -v '^ *+' conftest.er1 >conftest.err
15482   rm -f conftest.er1
15483   cat conftest.err >&5
15484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15485   (exit $ac_status); } && {
15486          test -z "$ac_c_werror_flag" ||
15487          test ! -s conftest.err
15488        } && test -s conftest.$ac_objext; then
15489   ac_cv_prog_cc_g=yes
15490 else
15491   echo "$as_me: failed program was:" >&5
15492 sed 's/^/| /' conftest.$ac_ext >&5
15493
15494         CFLAGS=""
15495       cat >conftest.$ac_ext <<_ACEOF
15496 /* confdefs.h.  */
15497 _ACEOF
15498 cat confdefs.h >>conftest.$ac_ext
15499 cat >>conftest.$ac_ext <<_ACEOF
15500 /* end confdefs.h.  */
15501
15502 int
15503 main ()
15504 {
15505
15506   ;
15507   return 0;
15508 }
15509 _ACEOF
15510 rm -f conftest.$ac_objext
15511 if { (ac_try="$ac_compile"
15512 case "(($ac_try" in
15513   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15514   *) ac_try_echo=$ac_try;;
15515 esac
15516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15517   (eval "$ac_compile") 2>conftest.er1
15518   ac_status=$?
15519   grep -v '^ *+' conftest.er1 >conftest.err
15520   rm -f conftest.er1
15521   cat conftest.err >&5
15522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15523   (exit $ac_status); } && {
15524          test -z "$ac_c_werror_flag" ||
15525          test ! -s conftest.err
15526        } && test -s conftest.$ac_objext; then
15527   :
15528 else
15529   echo "$as_me: failed program was:" >&5
15530 sed 's/^/| /' conftest.$ac_ext >&5
15531
15532         ac_c_werror_flag=$ac_save_c_werror_flag
15533          CFLAGS="-g"
15534          cat >conftest.$ac_ext <<_ACEOF
15535 /* confdefs.h.  */
15536 _ACEOF
15537 cat confdefs.h >>conftest.$ac_ext
15538 cat >>conftest.$ac_ext <<_ACEOF
15539 /* end confdefs.h.  */
15540
15541 int
15542 main ()
15543 {
15544
15545   ;
15546   return 0;
15547 }
15548 _ACEOF
15549 rm -f conftest.$ac_objext
15550 if { (ac_try="$ac_compile"
15551 case "(($ac_try" in
15552   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15553   *) ac_try_echo=$ac_try;;
15554 esac
15555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15556   (eval "$ac_compile") 2>conftest.er1
15557   ac_status=$?
15558   grep -v '^ *+' conftest.er1 >conftest.err
15559   rm -f conftest.er1
15560   cat conftest.err >&5
15561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15562   (exit $ac_status); } && {
15563          test -z "$ac_c_werror_flag" ||
15564          test ! -s conftest.err
15565        } && test -s conftest.$ac_objext; then
15566   ac_cv_prog_cc_g=yes
15567 else
15568   echo "$as_me: failed program was:" >&5
15569 sed 's/^/| /' conftest.$ac_ext >&5
15570
15571
15572 fi
15573
15574 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15575 fi
15576
15577 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15578 fi
15579
15580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15581    ac_c_werror_flag=$ac_save_c_werror_flag
15582 fi
15583 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
15584 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
15585 if test "$ac_test_CFLAGS" = set; then
15586   CFLAGS=$ac_save_CFLAGS
15587 elif test $ac_cv_prog_cc_g = yes; then
15588   if test "$GCC" = yes; then
15589     CFLAGS="-g -O2"
15590   else
15591     CFLAGS="-g"
15592   fi
15593 else
15594   if test "$GCC" = yes; then
15595     CFLAGS="-O2"
15596   else
15597     CFLAGS=
15598   fi
15599 fi
15600 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
15601 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
15602 if test "${ac_cv_prog_cc_c89+set}" = set; then
15603   echo $ECHO_N "(cached) $ECHO_C" >&6
15604 else
15605   ac_cv_prog_cc_c89=no
15606 ac_save_CC=$CC
15607 cat >conftest.$ac_ext <<_ACEOF
15608 /* confdefs.h.  */
15609 _ACEOF
15610 cat confdefs.h >>conftest.$ac_ext
15611 cat >>conftest.$ac_ext <<_ACEOF
15612 /* end confdefs.h.  */
15613 #include <stdarg.h>
15614 #include <stdio.h>
15615 #include <sys/types.h>
15616 #include <sys/stat.h>
15617 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
15618 struct buf { int x; };
15619 FILE * (*rcsopen) (struct buf *, struct stat *, int);
15620 static char *e (p, i)
15621      char **p;
15622      int i;
15623 {
15624   return p[i];
15625 }
15626 static char *f (char * (*g) (char **, int), char **p, ...)
15627 {
15628   char *s;
15629   va_list v;
15630   va_start (v,p);
15631   s = g (p, va_arg (v,int));
15632   va_end (v);
15633   return s;
15634 }
15635
15636 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
15637    function prototypes and stuff, but not '\xHH' hex character constants.
15638    These don't provoke an error unfortunately, instead are silently treated
15639    as 'x'.  The following induces an error, until -std is added to get
15640    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
15641    array size at least.  It's necessary to write '\x00'==0 to get something
15642    that's true only with -std.  */
15643 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
15644
15645 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
15646    inside strings and character constants.  */
15647 #define FOO(x) 'x'
15648 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
15649
15650 int test (int i, double x);
15651 struct s1 {int (*f) (int a);};
15652 struct s2 {int (*f) (double a);};
15653 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
15654 int argc;
15655 char **argv;
15656 int
15657 main ()
15658 {
15659 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
15660   ;
15661   return 0;
15662 }
15663 _ACEOF
15664 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
15665         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
15666 do
15667   CC="$ac_save_CC $ac_arg"
15668   rm -f conftest.$ac_objext
15669 if { (ac_try="$ac_compile"
15670 case "(($ac_try" in
15671   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15672   *) ac_try_echo=$ac_try;;
15673 esac
15674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15675   (eval "$ac_compile") 2>conftest.er1
15676   ac_status=$?
15677   grep -v '^ *+' conftest.er1 >conftest.err
15678   rm -f conftest.er1
15679   cat conftest.err >&5
15680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15681   (exit $ac_status); } && {
15682          test -z "$ac_c_werror_flag" ||
15683          test ! -s conftest.err
15684        } && test -s conftest.$ac_objext; then
15685   ac_cv_prog_cc_c89=$ac_arg
15686 else
15687   echo "$as_me: failed program was:" >&5
15688 sed 's/^/| /' conftest.$ac_ext >&5
15689
15690
15691 fi
15692
15693 rm -f core conftest.err conftest.$ac_objext
15694   test "x$ac_cv_prog_cc_c89" != "xno" && break
15695 done
15696 rm -f conftest.$ac_ext
15697 CC=$ac_save_CC
15698
15699 fi
15700 # AC_CACHE_VAL
15701 case "x$ac_cv_prog_cc_c89" in
15702   x)
15703     { echo "$as_me:$LINENO: result: none needed" >&5
15704 echo "${ECHO_T}none needed" >&6; } ;;
15705   xno)
15706     { echo "$as_me:$LINENO: result: unsupported" >&5
15707 echo "${ECHO_T}unsupported" >&6; } ;;
15708   *)
15709     CC="$CC $ac_cv_prog_cc_c89"
15710     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
15711 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
15712 esac
15713
15714
15715 ac_ext=c
15716 ac_cpp='$CPP $CPPFLAGS'
15717 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15718 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15719 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15720
15721
15722
15723
15724
15725
15726
15727
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     { echo "$as_me:$LINENO: checking whether we are using the Intel C compiler" >&5
15735 echo $ECHO_N "checking whether we are using the Intel C compiler... $ECHO_C" >&6; }
15736 if test "${bakefile_cv_c_compiler___INTEL_COMPILER+set}" = set; then
15737   echo $ECHO_N "(cached) $ECHO_C" >&6
15738 else
15739   cat >conftest.$ac_ext <<_ACEOF
15740 /* confdefs.h.  */
15741 _ACEOF
15742 cat confdefs.h >>conftest.$ac_ext
15743 cat >>conftest.$ac_ext <<_ACEOF
15744 /* end confdefs.h.  */
15745
15746 int
15747 main ()
15748 {
15749
15750              #ifndef __INTEL_COMPILER
15751                 choke me
15752              #endif
15753
15754   ;
15755   return 0;
15756 }
15757 _ACEOF
15758 rm -f conftest.$ac_objext
15759 if { (ac_try="$ac_compile"
15760 case "(($ac_try" in
15761   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15762   *) ac_try_echo=$ac_try;;
15763 esac
15764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15765   (eval "$ac_compile") 2>conftest.er1
15766   ac_status=$?
15767   grep -v '^ *+' conftest.er1 >conftest.err
15768   rm -f conftest.er1
15769   cat conftest.err >&5
15770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15771   (exit $ac_status); } && {
15772          test -z "$ac_c_werror_flag" ||
15773          test ! -s conftest.err
15774        } && test -s conftest.$ac_objext; then
15775   bakefile_cv_c_compiler___INTEL_COMPILER=yes
15776 else
15777   echo "$as_me: failed program was:" >&5
15778 sed 's/^/| /' conftest.$ac_ext >&5
15779
15780         bakefile_cv_c_compiler___INTEL_COMPILER=no
15781
15782 fi
15783
15784 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15785
15786
15787 fi
15788 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___INTEL_COMPILER" >&5
15789 echo "${ECHO_T}$bakefile_cv_c_compiler___INTEL_COMPILER" >&6; }
15790     if test "x$bakefile_cv_c_compiler___INTEL_COMPILER" = "xyes"; then
15791         :; INTELCC=yes
15792     else
15793         :;
15794     fi
15795     ac_ext=c
15796 ac_cpp='$CPP $CPPFLAGS'
15797 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15798 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15799 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15800
15801
15802
15803
15804         if test "$INTELCC" = "yes"; then
15805
15806
15807     ac_ext=c
15808 ac_cpp='$CPP $CPPFLAGS'
15809 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15810 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15811 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15812
15813     { echo "$as_me:$LINENO: checking whether we are using Intel C compiler v8 or later" >&5
15814 echo $ECHO_N "checking whether we are using Intel C compiler v8 or later... $ECHO_C" >&6; }
15815 if test "${bakefile_cv_c_compiler___INTEL_COMPILER_lt_800+set}" = set; then
15816   echo $ECHO_N "(cached) $ECHO_C" >&6
15817 else
15818   cat >conftest.$ac_ext <<_ACEOF
15819 /* confdefs.h.  */
15820 _ACEOF
15821 cat confdefs.h >>conftest.$ac_ext
15822 cat >>conftest.$ac_ext <<_ACEOF
15823 /* end confdefs.h.  */
15824
15825 int
15826 main ()
15827 {
15828
15829              #ifndef __INTEL_COMPILER || __INTEL_COMPILER < 800
15830                 choke me
15831              #endif
15832
15833   ;
15834   return 0;
15835 }
15836 _ACEOF
15837 rm -f conftest.$ac_objext
15838 if { (ac_try="$ac_compile"
15839 case "(($ac_try" in
15840   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15841   *) ac_try_echo=$ac_try;;
15842 esac
15843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15844   (eval "$ac_compile") 2>conftest.er1
15845   ac_status=$?
15846   grep -v '^ *+' conftest.er1 >conftest.err
15847   rm -f conftest.er1
15848   cat conftest.err >&5
15849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15850   (exit $ac_status); } && {
15851          test -z "$ac_c_werror_flag" ||
15852          test ! -s conftest.err
15853        } && test -s conftest.$ac_objext; then
15854   bakefile_cv_c_compiler___INTEL_COMPILER_lt_800=yes
15855 else
15856   echo "$as_me: failed program was:" >&5
15857 sed 's/^/| /' conftest.$ac_ext >&5
15858
15859         bakefile_cv_c_compiler___INTEL_COMPILER_lt_800=no
15860
15861 fi
15862
15863 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15864
15865
15866 fi
15867 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___INTEL_COMPILER_lt_800" >&5
15868 echo "${ECHO_T}$bakefile_cv_c_compiler___INTEL_COMPILER_lt_800" >&6; }
15869     if test "x$bakefile_cv_c_compiler___INTEL_COMPILER_lt_800" = "xyes"; then
15870         :; INTELCC8=yes
15871     else
15872         :;
15873     fi
15874     ac_ext=c
15875 ac_cpp='$CPP $CPPFLAGS'
15876 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15877 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15878 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15879
15880
15881
15882
15883
15884     ac_ext=c
15885 ac_cpp='$CPP $CPPFLAGS'
15886 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15887 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15888 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15889
15890     { echo "$as_me:$LINENO: checking whether we are using Intel C compiler v10 or later" >&5
15891 echo $ECHO_N "checking whether we are using Intel C compiler v10 or later... $ECHO_C" >&6; }
15892 if test "${bakefile_cv_c_compiler___INTEL_COMPILER_lt_1000+set}" = set; then
15893   echo $ECHO_N "(cached) $ECHO_C" >&6
15894 else
15895   cat >conftest.$ac_ext <<_ACEOF
15896 /* confdefs.h.  */
15897 _ACEOF
15898 cat confdefs.h >>conftest.$ac_ext
15899 cat >>conftest.$ac_ext <<_ACEOF
15900 /* end confdefs.h.  */
15901
15902 int
15903 main ()
15904 {
15905
15906              #ifndef __INTEL_COMPILER || __INTEL_COMPILER < 1000
15907                 choke me
15908              #endif
15909
15910   ;
15911   return 0;
15912 }
15913 _ACEOF
15914 rm -f conftest.$ac_objext
15915 if { (ac_try="$ac_compile"
15916 case "(($ac_try" in
15917   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15918   *) ac_try_echo=$ac_try;;
15919 esac
15920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15921   (eval "$ac_compile") 2>conftest.er1
15922   ac_status=$?
15923   grep -v '^ *+' conftest.er1 >conftest.err
15924   rm -f conftest.er1
15925   cat conftest.err >&5
15926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15927   (exit $ac_status); } && {
15928          test -z "$ac_c_werror_flag" ||
15929          test ! -s conftest.err
15930        } && test -s conftest.$ac_objext; then
15931   bakefile_cv_c_compiler___INTEL_COMPILER_lt_1000=yes
15932 else
15933   echo "$as_me: failed program was:" >&5
15934 sed 's/^/| /' conftest.$ac_ext >&5
15935
15936         bakefile_cv_c_compiler___INTEL_COMPILER_lt_1000=no
15937
15938 fi
15939
15940 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15941
15942
15943 fi
15944 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___INTEL_COMPILER_lt_1000" >&5
15945 echo "${ECHO_T}$bakefile_cv_c_compiler___INTEL_COMPILER_lt_1000" >&6; }
15946     if test "x$bakefile_cv_c_compiler___INTEL_COMPILER_lt_1000" = "xyes"; then
15947         :; INTELCC10=yes
15948     else
15949         :;
15950     fi
15951     ac_ext=c
15952 ac_cpp='$CPP $CPPFLAGS'
15953 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15954 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15955 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15956
15957
15958
15959     fi
15960
15961         if test "x$GCC" != "xyes"; then
15962         if test "xCC" = "xC"; then
15963             { echo "$as_me:$LINENO: checking if the C compiler requires -ext o" >&5
15964 echo $ECHO_N "checking if the C compiler requires -ext o... $ECHO_C" >&6; }
15965 if test "${bakefile_cv_c_exto+set}" = set; then
15966   echo $ECHO_N "(cached) $ECHO_C" >&6
15967 else
15968   cat >conftest.$ac_ext <<_ACEOF
15969 /* confdefs.h.  */
15970 _ACEOF
15971 cat confdefs.h >>conftest.$ac_ext
15972 cat >>conftest.$ac_ext <<_ACEOF
15973 /* end confdefs.h.  */
15974
15975 int
15976 main ()
15977 {
15978
15979   ;
15980   return 0;
15981 }
15982 _ACEOF
15983 rm -f conftest.$ac_objext conftest.$ac_ext.o
15984 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15985   (eval $ac_compile) 2>&5
15986   ac_status=$?
15987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15988   (exit $ac_status); }; then
15989   for ac_file in `(ls conftest.* 2>/dev/null)`; do
15990     case $ac_file in
15991         conftest.$ac_ext.o)
15992             bakefile_cv_c_exto="-ext o"
15993             ;;
15994         *)
15995             ;;
15996     esac
15997 done
15998 else
15999   { { echo "$as_me:$LINENO: error: cannot figure out if compiler needs -ext o: cannot compile
16000 See \`config.log' for more details." >&5
16001 echo "$as_me: error: cannot figure out if compiler needs -ext o: cannot compile
16002 See \`config.log' for more details." >&2;}
16003    { (exit 1); exit 1; }; }
16004
16005 fi
16006
16007 rm -f conftest.$ac_ext.o conftest.$ac_objext conftest.$ac_ext
16008
16009 fi
16010 { echo "$as_me:$LINENO: result: $bakefile_cv_c_exto" >&5
16011 echo "${ECHO_T}$bakefile_cv_c_exto" >&6; }
16012 if test "x$bakefile_cv_c_exto" '!=' "x"; then
16013     if test "c" = "c"; then
16014         CFLAGS="$bakefile_cv_c_exto $CFLAGS"
16015     fi
16016     if test "c" = "cxx"; then
16017         CXXFLAGS="$bakefile_cv_c_exto $CXXFLAGS"
16018     fi
16019 fi
16020
16021             if test "x$bakefile_cv_c_exto" '!=' "x"; then
16022                 unset ac_cv_prog_cc_g
16023                 ac_test_CFLAGS=${CFLAGS+set}
16024 ac_save_CFLAGS=$CFLAGS
16025 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
16026 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
16027 if test "${ac_cv_prog_cc_g+set}" = set; then
16028   echo $ECHO_N "(cached) $ECHO_C" >&6
16029 else
16030   ac_save_c_werror_flag=$ac_c_werror_flag
16031    ac_c_werror_flag=yes
16032    ac_cv_prog_cc_g=no
16033    CFLAGS="-g"
16034    cat >conftest.$ac_ext <<_ACEOF
16035 /* confdefs.h.  */
16036 _ACEOF
16037 cat confdefs.h >>conftest.$ac_ext
16038 cat >>conftest.$ac_ext <<_ACEOF
16039 /* end confdefs.h.  */
16040
16041 int
16042 main ()
16043 {
16044
16045   ;
16046   return 0;
16047 }
16048 _ACEOF
16049 rm -f conftest.$ac_objext
16050 if { (ac_try="$ac_compile"
16051 case "(($ac_try" in
16052   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16053   *) ac_try_echo=$ac_try;;
16054 esac
16055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16056   (eval "$ac_compile") 2>conftest.er1
16057   ac_status=$?
16058   grep -v '^ *+' conftest.er1 >conftest.err
16059   rm -f conftest.er1
16060   cat conftest.err >&5
16061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16062   (exit $ac_status); } && {
16063          test -z "$ac_c_werror_flag" ||
16064          test ! -s conftest.err
16065        } && test -s conftest.$ac_objext; then
16066   ac_cv_prog_cc_g=yes
16067 else
16068   echo "$as_me: failed program was:" >&5
16069 sed 's/^/| /' conftest.$ac_ext >&5
16070
16071         CFLAGS=""
16072       cat >conftest.$ac_ext <<_ACEOF
16073 /* confdefs.h.  */
16074 _ACEOF
16075 cat confdefs.h >>conftest.$ac_ext
16076 cat >>conftest.$ac_ext <<_ACEOF
16077 /* end confdefs.h.  */
16078
16079 int
16080 main ()
16081 {
16082
16083   ;
16084   return 0;
16085 }
16086 _ACEOF
16087 rm -f conftest.$ac_objext
16088 if { (ac_try="$ac_compile"
16089 case "(($ac_try" in
16090   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16091   *) ac_try_echo=$ac_try;;
16092 esac
16093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16094   (eval "$ac_compile") 2>conftest.er1
16095   ac_status=$?
16096   grep -v '^ *+' conftest.er1 >conftest.err
16097   rm -f conftest.er1
16098   cat conftest.err >&5
16099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16100   (exit $ac_status); } && {
16101          test -z "$ac_c_werror_flag" ||
16102          test ! -s conftest.err
16103        } && test -s conftest.$ac_objext; then
16104   :
16105 else
16106   echo "$as_me: failed program was:" >&5
16107 sed 's/^/| /' conftest.$ac_ext >&5
16108
16109         ac_c_werror_flag=$ac_save_c_werror_flag
16110          CFLAGS="-g"
16111          cat >conftest.$ac_ext <<_ACEOF
16112 /* confdefs.h.  */
16113 _ACEOF
16114 cat confdefs.h >>conftest.$ac_ext
16115 cat >>conftest.$ac_ext <<_ACEOF
16116 /* end confdefs.h.  */
16117
16118 int
16119 main ()
16120 {
16121
16122   ;
16123   return 0;
16124 }
16125 _ACEOF
16126 rm -f conftest.$ac_objext
16127 if { (ac_try="$ac_compile"
16128 case "(($ac_try" in
16129   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16130   *) ac_try_echo=$ac_try;;
16131 esac
16132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16133   (eval "$ac_compile") 2>conftest.er1
16134   ac_status=$?
16135   grep -v '^ *+' conftest.er1 >conftest.err
16136   rm -f conftest.er1
16137   cat conftest.err >&5
16138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16139   (exit $ac_status); } && {
16140          test -z "$ac_c_werror_flag" ||
16141          test ! -s conftest.err
16142        } && test -s conftest.$ac_objext; then
16143   ac_cv_prog_cc_g=yes
16144 else
16145   echo "$as_me: failed program was:" >&5
16146 sed 's/^/| /' conftest.$ac_ext >&5
16147
16148
16149 fi
16150
16151 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16152 fi
16153
16154 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16155 fi
16156
16157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16158    ac_c_werror_flag=$ac_save_c_werror_flag
16159 fi
16160 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
16161 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
16162 if test "$ac_test_CFLAGS" = set; then
16163   CFLAGS=$ac_save_CFLAGS
16164 elif test $ac_cv_prog_cc_g = yes; then
16165   if test "$GCC" = yes; then
16166     CFLAGS="-g -O2"
16167   else
16168     CFLAGS="-g"
16169   fi
16170 else
16171   if test "$GCC" = yes; then
16172     CFLAGS="-O2"
16173   else
16174     CFLAGS=
16175   fi
16176 fi
16177             fi
16178         fi
16179
16180                         case `uname -s` in
16181             AIX*)
16182
16183
16184     ac_ext=c
16185 ac_cpp='$CPP $CPPFLAGS'
16186 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16187 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16188 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16189
16190     { echo "$as_me:$LINENO: checking whether we are using the IBM xlC C compiler" >&5
16191 echo $ECHO_N "checking whether we are using the IBM xlC C compiler... $ECHO_C" >&6; }
16192 if test "${bakefile_cv_c_compiler___xlC__+set}" = set; then
16193   echo $ECHO_N "(cached) $ECHO_C" >&6
16194 else
16195   cat >conftest.$ac_ext <<_ACEOF
16196 /* confdefs.h.  */
16197 _ACEOF
16198 cat confdefs.h >>conftest.$ac_ext
16199 cat >>conftest.$ac_ext <<_ACEOF
16200 /* end confdefs.h.  */
16201
16202 int
16203 main ()
16204 {
16205
16206              #ifndef __xlC__
16207                 choke me
16208              #endif
16209
16210   ;
16211   return 0;
16212 }
16213 _ACEOF
16214 rm -f conftest.$ac_objext
16215 if { (ac_try="$ac_compile"
16216 case "(($ac_try" in
16217   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16218   *) ac_try_echo=$ac_try;;
16219 esac
16220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16221   (eval "$ac_compile") 2>conftest.er1
16222   ac_status=$?
16223   grep -v '^ *+' conftest.er1 >conftest.err
16224   rm -f conftest.er1
16225   cat conftest.err >&5
16226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16227   (exit $ac_status); } && {
16228          test -z "$ac_c_werror_flag" ||
16229          test ! -s conftest.err
16230        } && test -s conftest.$ac_objext; then
16231   bakefile_cv_c_compiler___xlC__=yes
16232 else
16233   echo "$as_me: failed program was:" >&5
16234 sed 's/^/| /' conftest.$ac_ext >&5
16235
16236         bakefile_cv_c_compiler___xlC__=no
16237
16238 fi
16239
16240 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16241
16242
16243 fi
16244 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___xlC__" >&5
16245 echo "${ECHO_T}$bakefile_cv_c_compiler___xlC__" >&6; }
16246     if test "x$bakefile_cv_c_compiler___xlC__" = "xyes"; then
16247         :; XLCC=yes
16248     else
16249         :;
16250     fi
16251     ac_ext=c
16252 ac_cpp='$CPP $CPPFLAGS'
16253 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16254 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16255 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16256
16257
16258
16259                 ;;
16260
16261             Darwin)
16262
16263
16264     ac_ext=c
16265 ac_cpp='$CPP $CPPFLAGS'
16266 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16267 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16268 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16269
16270     { echo "$as_me:$LINENO: checking whether we are using the Metrowerks C compiler" >&5
16271 echo $ECHO_N "checking whether we are using the Metrowerks C compiler... $ECHO_C" >&6; }
16272 if test "${bakefile_cv_c_compiler___MWERKS__+set}" = set; then
16273   echo $ECHO_N "(cached) $ECHO_C" >&6
16274 else
16275   cat >conftest.$ac_ext <<_ACEOF
16276 /* confdefs.h.  */
16277 _ACEOF
16278 cat confdefs.h >>conftest.$ac_ext
16279 cat >>conftest.$ac_ext <<_ACEOF
16280 /* end confdefs.h.  */
16281
16282 int
16283 main ()
16284 {
16285
16286              #ifndef __MWERKS__
16287                 choke me
16288              #endif
16289
16290   ;
16291   return 0;
16292 }
16293 _ACEOF
16294 rm -f conftest.$ac_objext
16295 if { (ac_try="$ac_compile"
16296 case "(($ac_try" in
16297   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16298   *) ac_try_echo=$ac_try;;
16299 esac
16300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16301   (eval "$ac_compile") 2>conftest.er1
16302   ac_status=$?
16303   grep -v '^ *+' conftest.er1 >conftest.err
16304   rm -f conftest.er1
16305   cat conftest.err >&5
16306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16307   (exit $ac_status); } && {
16308          test -z "$ac_c_werror_flag" ||
16309          test ! -s conftest.err
16310        } && test -s conftest.$ac_objext; then
16311   bakefile_cv_c_compiler___MWERKS__=yes
16312 else
16313   echo "$as_me: failed program was:" >&5
16314 sed 's/^/| /' conftest.$ac_ext >&5
16315
16316         bakefile_cv_c_compiler___MWERKS__=no
16317
16318 fi
16319
16320 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16321
16322
16323 fi
16324 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___MWERKS__" >&5
16325 echo "${ECHO_T}$bakefile_cv_c_compiler___MWERKS__" >&6; }
16326     if test "x$bakefile_cv_c_compiler___MWERKS__" = "xyes"; then
16327         :; MWCC=yes
16328     else
16329         :;
16330     fi
16331     ac_ext=c
16332 ac_cpp='$CPP $CPPFLAGS'
16333 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16334 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16335 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16336
16337
16338
16339                 if test "$MWCC" != "yes"; then
16340
16341
16342     ac_ext=c
16343 ac_cpp='$CPP $CPPFLAGS'
16344 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16345 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16346 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16347
16348     { echo "$as_me:$LINENO: checking whether we are using the IBM xlC C compiler" >&5
16349 echo $ECHO_N "checking whether we are using the IBM xlC C compiler... $ECHO_C" >&6; }
16350 if test "${bakefile_cv_c_compiler___xlC__+set}" = set; then
16351   echo $ECHO_N "(cached) $ECHO_C" >&6
16352 else
16353   cat >conftest.$ac_ext <<_ACEOF
16354 /* confdefs.h.  */
16355 _ACEOF
16356 cat confdefs.h >>conftest.$ac_ext
16357 cat >>conftest.$ac_ext <<_ACEOF
16358 /* end confdefs.h.  */
16359
16360 int
16361 main ()
16362 {
16363
16364              #ifndef __xlC__
16365                 choke me
16366              #endif
16367
16368   ;
16369   return 0;
16370 }
16371 _ACEOF
16372 rm -f conftest.$ac_objext
16373 if { (ac_try="$ac_compile"
16374 case "(($ac_try" in
16375   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16376   *) ac_try_echo=$ac_try;;
16377 esac
16378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16379   (eval "$ac_compile") 2>conftest.er1
16380   ac_status=$?
16381   grep -v '^ *+' conftest.er1 >conftest.err
16382   rm -f conftest.er1
16383   cat conftest.err >&5
16384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16385   (exit $ac_status); } && {
16386          test -z "$ac_c_werror_flag" ||
16387          test ! -s conftest.err
16388        } && test -s conftest.$ac_objext; then
16389   bakefile_cv_c_compiler___xlC__=yes
16390 else
16391   echo "$as_me: failed program was:" >&5
16392 sed 's/^/| /' conftest.$ac_ext >&5
16393
16394         bakefile_cv_c_compiler___xlC__=no
16395
16396 fi
16397
16398 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16399
16400
16401 fi
16402 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___xlC__" >&5
16403 echo "${ECHO_T}$bakefile_cv_c_compiler___xlC__" >&6; }
16404     if test "x$bakefile_cv_c_compiler___xlC__" = "xyes"; then
16405         :; XLCC=yes
16406     else
16407         :;
16408     fi
16409     ac_ext=c
16410 ac_cpp='$CPP $CPPFLAGS'
16411 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16412 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16413 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16414
16415
16416
16417                 fi
16418                 ;;
16419
16420             IRIX*)
16421
16422
16423     ac_ext=c
16424 ac_cpp='$CPP $CPPFLAGS'
16425 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16426 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16427 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16428
16429     { echo "$as_me:$LINENO: checking whether we are using the SGI C compiler" >&5
16430 echo $ECHO_N "checking whether we are using the SGI C compiler... $ECHO_C" >&6; }
16431 if test "${bakefile_cv_c_compiler__SGI_COMPILER_VERSION+set}" = set; then
16432   echo $ECHO_N "(cached) $ECHO_C" >&6
16433 else
16434   cat >conftest.$ac_ext <<_ACEOF
16435 /* confdefs.h.  */
16436 _ACEOF
16437 cat confdefs.h >>conftest.$ac_ext
16438 cat >>conftest.$ac_ext <<_ACEOF
16439 /* end confdefs.h.  */
16440
16441 int
16442 main ()
16443 {
16444
16445              #ifndef _SGI_COMPILER_VERSION
16446                 choke me
16447              #endif
16448
16449   ;
16450   return 0;
16451 }
16452 _ACEOF
16453 rm -f conftest.$ac_objext
16454 if { (ac_try="$ac_compile"
16455 case "(($ac_try" in
16456   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16457   *) ac_try_echo=$ac_try;;
16458 esac
16459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16460   (eval "$ac_compile") 2>conftest.er1
16461   ac_status=$?
16462   grep -v '^ *+' conftest.er1 >conftest.err
16463   rm -f conftest.er1
16464   cat conftest.err >&5
16465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16466   (exit $ac_status); } && {
16467          test -z "$ac_c_werror_flag" ||
16468          test ! -s conftest.err
16469        } && test -s conftest.$ac_objext; then
16470   bakefile_cv_c_compiler__SGI_COMPILER_VERSION=yes
16471 else
16472   echo "$as_me: failed program was:" >&5
16473 sed 's/^/| /' conftest.$ac_ext >&5
16474
16475         bakefile_cv_c_compiler__SGI_COMPILER_VERSION=no
16476
16477 fi
16478
16479 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16480
16481
16482 fi
16483 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler__SGI_COMPILER_VERSION" >&5
16484 echo "${ECHO_T}$bakefile_cv_c_compiler__SGI_COMPILER_VERSION" >&6; }
16485     if test "x$bakefile_cv_c_compiler__SGI_COMPILER_VERSION" = "xyes"; then
16486         :; SGICC=yes
16487     else
16488         :;
16489     fi
16490     ac_ext=c
16491 ac_cpp='$CPP $CPPFLAGS'
16492 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16493 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16494 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16495
16496
16497
16498                 ;;
16499
16500             Linux*)
16501                                                 if test "$INTELCC" != "yes"; then
16502
16503
16504     ac_ext=c
16505 ac_cpp='$CPP $CPPFLAGS'
16506 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16507 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16508 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16509
16510     { echo "$as_me:$LINENO: checking whether we are using the Sun C compiler" >&5
16511 echo $ECHO_N "checking whether we are using the Sun C compiler... $ECHO_C" >&6; }
16512 if test "${bakefile_cv_c_compiler___SUNPRO_C+set}" = set; then
16513   echo $ECHO_N "(cached) $ECHO_C" >&6
16514 else
16515   cat >conftest.$ac_ext <<_ACEOF
16516 /* confdefs.h.  */
16517 _ACEOF
16518 cat confdefs.h >>conftest.$ac_ext
16519 cat >>conftest.$ac_ext <<_ACEOF
16520 /* end confdefs.h.  */
16521
16522 int
16523 main ()
16524 {
16525
16526              #ifndef __SUNPRO_C
16527                 choke me
16528              #endif
16529
16530   ;
16531   return 0;
16532 }
16533 _ACEOF
16534 rm -f conftest.$ac_objext
16535 if { (ac_try="$ac_compile"
16536 case "(($ac_try" in
16537   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16538   *) ac_try_echo=$ac_try;;
16539 esac
16540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16541   (eval "$ac_compile") 2>conftest.er1
16542   ac_status=$?
16543   grep -v '^ *+' conftest.er1 >conftest.err
16544   rm -f conftest.er1
16545   cat conftest.err >&5
16546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16547   (exit $ac_status); } && {
16548          test -z "$ac_c_werror_flag" ||
16549          test ! -s conftest.err
16550        } && test -s conftest.$ac_objext; then
16551   bakefile_cv_c_compiler___SUNPRO_C=yes
16552 else
16553   echo "$as_me: failed program was:" >&5
16554 sed 's/^/| /' conftest.$ac_ext >&5
16555
16556         bakefile_cv_c_compiler___SUNPRO_C=no
16557
16558 fi
16559
16560 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16561
16562
16563 fi
16564 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___SUNPRO_C" >&5
16565 echo "${ECHO_T}$bakefile_cv_c_compiler___SUNPRO_C" >&6; }
16566     if test "x$bakefile_cv_c_compiler___SUNPRO_C" = "xyes"; then
16567         :; SUNCC=yes
16568     else
16569         :;
16570     fi
16571     ac_ext=c
16572 ac_cpp='$CPP $CPPFLAGS'
16573 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16574 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16575 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16576
16577
16578
16579                 fi
16580                 ;;
16581
16582             HP-UX*)
16583
16584
16585     ac_ext=c
16586 ac_cpp='$CPP $CPPFLAGS'
16587 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16588 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16589 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16590
16591     { echo "$as_me:$LINENO: checking whether we are using the HP C compiler" >&5
16592 echo $ECHO_N "checking whether we are using the HP C compiler... $ECHO_C" >&6; }
16593 if test "${bakefile_cv_c_compiler___HP_cc+set}" = set; then
16594   echo $ECHO_N "(cached) $ECHO_C" >&6
16595 else
16596   cat >conftest.$ac_ext <<_ACEOF
16597 /* confdefs.h.  */
16598 _ACEOF
16599 cat confdefs.h >>conftest.$ac_ext
16600 cat >>conftest.$ac_ext <<_ACEOF
16601 /* end confdefs.h.  */
16602
16603 int
16604 main ()
16605 {
16606
16607              #ifndef __HP_cc
16608                 choke me
16609              #endif
16610
16611   ;
16612   return 0;
16613 }
16614 _ACEOF
16615 rm -f conftest.$ac_objext
16616 if { (ac_try="$ac_compile"
16617 case "(($ac_try" in
16618   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16619   *) ac_try_echo=$ac_try;;
16620 esac
16621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16622   (eval "$ac_compile") 2>conftest.er1
16623   ac_status=$?
16624   grep -v '^ *+' conftest.er1 >conftest.err
16625   rm -f conftest.er1
16626   cat conftest.err >&5
16627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16628   (exit $ac_status); } && {
16629          test -z "$ac_c_werror_flag" ||
16630          test ! -s conftest.err
16631        } && test -s conftest.$ac_objext; then
16632   bakefile_cv_c_compiler___HP_cc=yes
16633 else
16634   echo "$as_me: failed program was:" >&5
16635 sed 's/^/| /' conftest.$ac_ext >&5
16636
16637         bakefile_cv_c_compiler___HP_cc=no
16638
16639 fi
16640
16641 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16642
16643
16644 fi
16645 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___HP_cc" >&5
16646 echo "${ECHO_T}$bakefile_cv_c_compiler___HP_cc" >&6; }
16647     if test "x$bakefile_cv_c_compiler___HP_cc" = "xyes"; then
16648         :; HPCC=yes
16649     else
16650         :;
16651     fi
16652     ac_ext=c
16653 ac_cpp='$CPP $CPPFLAGS'
16654 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16655 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16656 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16657
16658
16659
16660                 ;;
16661
16662             OSF1)
16663
16664
16665     ac_ext=c
16666 ac_cpp='$CPP $CPPFLAGS'
16667 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16668 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16669 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16670
16671     { echo "$as_me:$LINENO: checking whether we are using the Compaq C compiler" >&5
16672 echo $ECHO_N "checking whether we are using the Compaq C compiler... $ECHO_C" >&6; }
16673 if test "${bakefile_cv_c_compiler___DECC+set}" = set; then
16674   echo $ECHO_N "(cached) $ECHO_C" >&6
16675 else
16676   cat >conftest.$ac_ext <<_ACEOF
16677 /* confdefs.h.  */
16678 _ACEOF
16679 cat confdefs.h >>conftest.$ac_ext
16680 cat >>conftest.$ac_ext <<_ACEOF
16681 /* end confdefs.h.  */
16682
16683 int
16684 main ()
16685 {
16686
16687              #ifndef __DECC
16688                 choke me
16689              #endif
16690
16691   ;
16692   return 0;
16693 }
16694 _ACEOF
16695 rm -f conftest.$ac_objext
16696 if { (ac_try="$ac_compile"
16697 case "(($ac_try" in
16698   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16699   *) ac_try_echo=$ac_try;;
16700 esac
16701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16702   (eval "$ac_compile") 2>conftest.er1
16703   ac_status=$?
16704   grep -v '^ *+' conftest.er1 >conftest.err
16705   rm -f conftest.er1
16706   cat conftest.err >&5
16707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16708   (exit $ac_status); } && {
16709          test -z "$ac_c_werror_flag" ||
16710          test ! -s conftest.err
16711        } && test -s conftest.$ac_objext; then
16712   bakefile_cv_c_compiler___DECC=yes
16713 else
16714   echo "$as_me: failed program was:" >&5
16715 sed 's/^/| /' conftest.$ac_ext >&5
16716
16717         bakefile_cv_c_compiler___DECC=no
16718
16719 fi
16720
16721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16722
16723
16724 fi
16725 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___DECC" >&5
16726 echo "${ECHO_T}$bakefile_cv_c_compiler___DECC" >&6; }
16727     if test "x$bakefile_cv_c_compiler___DECC" = "xyes"; then
16728         :; COMPAQCC=yes
16729     else
16730         :;
16731     fi
16732     ac_ext=c
16733 ac_cpp='$CPP $CPPFLAGS'
16734 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16735 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16736 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16737
16738
16739
16740                 ;;
16741
16742             SunOS)
16743
16744
16745     ac_ext=c
16746 ac_cpp='$CPP $CPPFLAGS'
16747 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16748 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16749 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16750
16751     { echo "$as_me:$LINENO: checking whether we are using the Sun C compiler" >&5
16752 echo $ECHO_N "checking whether we are using the Sun C compiler... $ECHO_C" >&6; }
16753 if test "${bakefile_cv_c_compiler___SUNPRO_C+set}" = set; then
16754   echo $ECHO_N "(cached) $ECHO_C" >&6
16755 else
16756   cat >conftest.$ac_ext <<_ACEOF
16757 /* confdefs.h.  */
16758 _ACEOF
16759 cat confdefs.h >>conftest.$ac_ext
16760 cat >>conftest.$ac_ext <<_ACEOF
16761 /* end confdefs.h.  */
16762
16763 int
16764 main ()
16765 {
16766
16767              #ifndef __SUNPRO_C
16768                 choke me
16769              #endif
16770
16771   ;
16772   return 0;
16773 }
16774 _ACEOF
16775 rm -f conftest.$ac_objext
16776 if { (ac_try="$ac_compile"
16777 case "(($ac_try" in
16778   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16779   *) ac_try_echo=$ac_try;;
16780 esac
16781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16782   (eval "$ac_compile") 2>conftest.er1
16783   ac_status=$?
16784   grep -v '^ *+' conftest.er1 >conftest.err
16785   rm -f conftest.er1
16786   cat conftest.err >&5
16787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16788   (exit $ac_status); } && {
16789          test -z "$ac_c_werror_flag" ||
16790          test ! -s conftest.err
16791        } && test -s conftest.$ac_objext; then
16792   bakefile_cv_c_compiler___SUNPRO_C=yes
16793 else
16794   echo "$as_me: failed program was:" >&5
16795 sed 's/^/| /' conftest.$ac_ext >&5
16796
16797         bakefile_cv_c_compiler___SUNPRO_C=no
16798
16799 fi
16800
16801 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16802
16803
16804 fi
16805 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___SUNPRO_C" >&5
16806 echo "${ECHO_T}$bakefile_cv_c_compiler___SUNPRO_C" >&6; }
16807     if test "x$bakefile_cv_c_compiler___SUNPRO_C" = "xyes"; then
16808         :; SUNCC=yes
16809     else
16810         :;
16811     fi
16812     ac_ext=c
16813 ac_cpp='$CPP $CPPFLAGS'
16814 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16815 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16816 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16817
16818
16819
16820                 ;;
16821         esac
16822     fi
16823
16824
16825
16826 ac_ext=c
16827 ac_cpp='$CPP $CPPFLAGS'
16828 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16829 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16830 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16831 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
16832 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
16833 # On Suns, sometimes $CPP names a directory.
16834 if test -n "$CPP" && test -d "$CPP"; then
16835   CPP=
16836 fi
16837 if test -z "$CPP"; then
16838   if test "${ac_cv_prog_CPP+set}" = set; then
16839   echo $ECHO_N "(cached) $ECHO_C" >&6
16840 else
16841       # Double quotes because CPP needs to be expanded
16842     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
16843     do
16844       ac_preproc_ok=false
16845 for ac_c_preproc_warn_flag in '' yes
16846 do
16847   # Use a header file that comes with gcc, so configuring glibc
16848   # with a fresh cross-compiler works.
16849   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16850   # <limits.h> exists even on freestanding compilers.
16851   # On the NeXT, cc -E runs the code through the compiler's parser,
16852   # not just through cpp. "Syntax error" is here to catch this case.
16853   cat >conftest.$ac_ext <<_ACEOF
16854 /* confdefs.h.  */
16855 _ACEOF
16856 cat confdefs.h >>conftest.$ac_ext
16857 cat >>conftest.$ac_ext <<_ACEOF
16858 /* end confdefs.h.  */
16859 #ifdef __STDC__
16860 # include <limits.h>
16861 #else
16862 # include <assert.h>
16863 #endif
16864                      Syntax error
16865 _ACEOF
16866 if { (ac_try="$ac_cpp conftest.$ac_ext"
16867 case "(($ac_try" in
16868   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16869   *) ac_try_echo=$ac_try;;
16870 esac
16871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16872   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16873   ac_status=$?
16874   grep -v '^ *+' conftest.er1 >conftest.err
16875   rm -f conftest.er1
16876   cat conftest.err >&5
16877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16878   (exit $ac_status); } >/dev/null && {
16879          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16880          test ! -s conftest.err
16881        }; then
16882   :
16883 else
16884   echo "$as_me: failed program was:" >&5
16885 sed 's/^/| /' conftest.$ac_ext >&5
16886
16887   # Broken: fails on valid input.
16888 continue
16889 fi
16890
16891 rm -f conftest.err conftest.$ac_ext
16892
16893   # OK, works on sane cases.  Now check whether nonexistent headers
16894   # can be detected and how.
16895   cat >conftest.$ac_ext <<_ACEOF
16896 /* confdefs.h.  */
16897 _ACEOF
16898 cat confdefs.h >>conftest.$ac_ext
16899 cat >>conftest.$ac_ext <<_ACEOF
16900 /* end confdefs.h.  */
16901 #include <ac_nonexistent.h>
16902 _ACEOF
16903 if { (ac_try="$ac_cpp conftest.$ac_ext"
16904 case "(($ac_try" in
16905   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16906   *) ac_try_echo=$ac_try;;
16907 esac
16908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16909   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16910   ac_status=$?
16911   grep -v '^ *+' conftest.er1 >conftest.err
16912   rm -f conftest.er1
16913   cat conftest.err >&5
16914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16915   (exit $ac_status); } >/dev/null && {
16916          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16917          test ! -s conftest.err
16918        }; then
16919   # Broken: success on invalid input.
16920 continue
16921 else
16922   echo "$as_me: failed program was:" >&5
16923 sed 's/^/| /' conftest.$ac_ext >&5
16924
16925   # Passes both tests.
16926 ac_preproc_ok=:
16927 break
16928 fi
16929
16930 rm -f conftest.err conftest.$ac_ext
16931
16932 done
16933 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
16934 rm -f conftest.err conftest.$ac_ext
16935 if $ac_preproc_ok; then
16936   break
16937 fi
16938
16939     done
16940     ac_cv_prog_CPP=$CPP
16941
16942 fi
16943   CPP=$ac_cv_prog_CPP
16944 else
16945   ac_cv_prog_CPP=$CPP
16946 fi
16947 { echo "$as_me:$LINENO: result: $CPP" >&5
16948 echo "${ECHO_T}$CPP" >&6; }
16949 ac_preproc_ok=false
16950 for ac_c_preproc_warn_flag in '' yes
16951 do
16952   # Use a header file that comes with gcc, so configuring glibc
16953   # with a fresh cross-compiler works.
16954   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16955   # <limits.h> exists even on freestanding compilers.
16956   # On the NeXT, cc -E runs the code through the compiler's parser,
16957   # not just through cpp. "Syntax error" is here to catch this case.
16958   cat >conftest.$ac_ext <<_ACEOF
16959 /* confdefs.h.  */
16960 _ACEOF
16961 cat confdefs.h >>conftest.$ac_ext
16962 cat >>conftest.$ac_ext <<_ACEOF
16963 /* end confdefs.h.  */
16964 #ifdef __STDC__
16965 # include <limits.h>
16966 #else
16967 # include <assert.h>
16968 #endif
16969                      Syntax error
16970 _ACEOF
16971 if { (ac_try="$ac_cpp conftest.$ac_ext"
16972 case "(($ac_try" in
16973   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16974   *) ac_try_echo=$ac_try;;
16975 esac
16976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16977   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16978   ac_status=$?
16979   grep -v '^ *+' conftest.er1 >conftest.err
16980   rm -f conftest.er1
16981   cat conftest.err >&5
16982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16983   (exit $ac_status); } >/dev/null && {
16984          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16985          test ! -s conftest.err
16986        }; then
16987   :
16988 else
16989   echo "$as_me: failed program was:" >&5
16990 sed 's/^/| /' conftest.$ac_ext >&5
16991
16992   # Broken: fails on valid input.
16993 continue
16994 fi
16995
16996 rm -f conftest.err conftest.$ac_ext
16997
16998   # OK, works on sane cases.  Now check whether nonexistent headers
16999   # can be detected and how.
17000   cat >conftest.$ac_ext <<_ACEOF
17001 /* confdefs.h.  */
17002 _ACEOF
17003 cat confdefs.h >>conftest.$ac_ext
17004 cat >>conftest.$ac_ext <<_ACEOF
17005 /* end confdefs.h.  */
17006 #include <ac_nonexistent.h>
17007 _ACEOF
17008 if { (ac_try="$ac_cpp conftest.$ac_ext"
17009 case "(($ac_try" in
17010   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17011   *) ac_try_echo=$ac_try;;
17012 esac
17013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17014   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17015   ac_status=$?
17016   grep -v '^ *+' conftest.er1 >conftest.err
17017   rm -f conftest.er1
17018   cat conftest.err >&5
17019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17020   (exit $ac_status); } >/dev/null && {
17021          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17022          test ! -s conftest.err
17023        }; then
17024   # Broken: success on invalid input.
17025 continue
17026 else
17027   echo "$as_me: failed program was:" >&5
17028 sed 's/^/| /' conftest.$ac_ext >&5
17029
17030   # Passes both tests.
17031 ac_preproc_ok=:
17032 break
17033 fi
17034
17035 rm -f conftest.err conftest.$ac_ext
17036
17037 done
17038 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
17039 rm -f conftest.err conftest.$ac_ext
17040 if $ac_preproc_ok; then
17041   :
17042 else
17043   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
17044 See \`config.log' for more details." >&5
17045 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
17046 See \`config.log' for more details." >&2;}
17047    { (exit 1); exit 1; }; }
17048 fi
17049
17050 ac_ext=c
17051 ac_cpp='$CPP $CPPFLAGS'
17052 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17053 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17054 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17055
17056
17057 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
17058 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
17059 if test "${ac_cv_path_GREP+set}" = set; then
17060   echo $ECHO_N "(cached) $ECHO_C" >&6
17061 else
17062   # Extract the first word of "grep ggrep" to use in msg output
17063 if test -z "$GREP"; then
17064 set dummy grep ggrep; ac_prog_name=$2
17065 if test "${ac_cv_path_GREP+set}" = set; then
17066   echo $ECHO_N "(cached) $ECHO_C" >&6
17067 else
17068   ac_path_GREP_found=false
17069 # Loop through the user's path and test for each of PROGNAME-LIST
17070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17071 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
17072 do
17073   IFS=$as_save_IFS
17074   test -z "$as_dir" && as_dir=.
17075   for ac_prog in grep ggrep; do
17076   for ac_exec_ext in '' $ac_executable_extensions; do
17077     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
17078     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
17079     # Check for GNU ac_path_GREP and select it if it is found.
17080   # Check for GNU $ac_path_GREP
17081 case `"$ac_path_GREP" --version 2>&1` in
17082 *GNU*)
17083   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
17084 *)
17085   ac_count=0
17086   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
17087   while :
17088   do
17089     cat "conftest.in" "conftest.in" >"conftest.tmp"
17090     mv "conftest.tmp" "conftest.in"
17091     cp "conftest.in" "conftest.nl"
17092     echo 'GREP' >> "conftest.nl"
17093     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
17094     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
17095     ac_count=`expr $ac_count + 1`
17096     if test $ac_count -gt ${ac_path_GREP_max-0}; then
17097       # Best one so far, save it but keep looking for a better one
17098       ac_cv_path_GREP="$ac_path_GREP"
17099       ac_path_GREP_max=$ac_count
17100     fi
17101     # 10*(2^10) chars as input seems more than enough
17102     test $ac_count -gt 10 && break
17103   done
17104   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
17105 esac
17106
17107
17108     $ac_path_GREP_found && break 3
17109   done
17110 done
17111
17112 done
17113 IFS=$as_save_IFS
17114
17115
17116 fi
17117
17118 GREP="$ac_cv_path_GREP"
17119 if test -z "$GREP"; then
17120   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
17121 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
17122    { (exit 1); exit 1; }; }
17123 fi
17124
17125 else
17126   ac_cv_path_GREP=$GREP
17127 fi
17128
17129
17130 fi
17131 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
17132 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
17133  GREP="$ac_cv_path_GREP"
17134
17135
17136 { echo "$as_me:$LINENO: checking for egrep" >&5
17137 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
17138 if test "${ac_cv_path_EGREP+set}" = set; then
17139   echo $ECHO_N "(cached) $ECHO_C" >&6
17140 else
17141   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
17142    then ac_cv_path_EGREP="$GREP -E"
17143    else
17144      # Extract the first word of "egrep" to use in msg output
17145 if test -z "$EGREP"; then
17146 set dummy egrep; ac_prog_name=$2
17147 if test "${ac_cv_path_EGREP+set}" = set; then
17148   echo $ECHO_N "(cached) $ECHO_C" >&6
17149 else
17150   ac_path_EGREP_found=false
17151 # Loop through the user's path and test for each of PROGNAME-LIST
17152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17153 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
17154 do
17155   IFS=$as_save_IFS
17156   test -z "$as_dir" && as_dir=.
17157   for ac_prog in egrep; do
17158   for ac_exec_ext in '' $ac_executable_extensions; do
17159     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
17160     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
17161     # Check for GNU ac_path_EGREP and select it if it is found.
17162   # Check for GNU $ac_path_EGREP
17163 case `"$ac_path_EGREP" --version 2>&1` in
17164 *GNU*)
17165   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
17166 *)
17167   ac_count=0
17168   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
17169   while :
17170   do
17171     cat "conftest.in" "conftest.in" >"conftest.tmp"
17172     mv "conftest.tmp" "conftest.in"
17173     cp "conftest.in" "conftest.nl"
17174     echo 'EGREP' >> "conftest.nl"
17175     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
17176     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
17177     ac_count=`expr $ac_count + 1`
17178     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
17179       # Best one so far, save it but keep looking for a better one
17180       ac_cv_path_EGREP="$ac_path_EGREP"
17181       ac_path_EGREP_max=$ac_count
17182     fi
17183     # 10*(2^10) chars as input seems more than enough
17184     test $ac_count -gt 10 && break
17185   done
17186   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
17187 esac
17188
17189
17190     $ac_path_EGREP_found && break 3
17191   done
17192 done
17193
17194 done
17195 IFS=$as_save_IFS
17196
17197
17198 fi
17199
17200 EGREP="$ac_cv_path_EGREP"
17201 if test -z "$EGREP"; then
17202   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
17203 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
17204    { (exit 1); exit 1; }; }
17205 fi
17206
17207 else
17208   ac_cv_path_EGREP=$EGREP
17209 fi
17210
17211
17212    fi
17213 fi
17214 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
17215 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
17216  EGREP="$ac_cv_path_EGREP"
17217
17218
17219 if test $ac_cv_c_compiler_gnu = yes; then
17220     { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
17221 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
17222 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
17223   echo $ECHO_N "(cached) $ECHO_C" >&6
17224 else
17225     ac_pattern="Autoconf.*'x'"
17226   cat >conftest.$ac_ext <<_ACEOF
17227 /* confdefs.h.  */
17228 _ACEOF
17229 cat confdefs.h >>conftest.$ac_ext
17230 cat >>conftest.$ac_ext <<_ACEOF
17231 /* end confdefs.h.  */
17232 #include <sgtty.h>
17233 Autoconf TIOCGETP
17234 _ACEOF
17235 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17236   $EGREP "$ac_pattern" >/dev/null 2>&1; then
17237   ac_cv_prog_gcc_traditional=yes
17238 else
17239   ac_cv_prog_gcc_traditional=no
17240 fi
17241 rm -f conftest*
17242
17243
17244   if test $ac_cv_prog_gcc_traditional = no; then
17245     cat >conftest.$ac_ext <<_ACEOF
17246 /* confdefs.h.  */
17247 _ACEOF
17248 cat confdefs.h >>conftest.$ac_ext
17249 cat >>conftest.$ac_ext <<_ACEOF
17250 /* end confdefs.h.  */
17251 #include <termio.h>
17252 Autoconf TCGETA
17253 _ACEOF
17254 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17255   $EGREP "$ac_pattern" >/dev/null 2>&1; then
17256   ac_cv_prog_gcc_traditional=yes
17257 fi
17258 rm -f conftest*
17259
17260   fi
17261 fi
17262 { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
17263 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
17264   if test $ac_cv_prog_gcc_traditional = yes; then
17265     CC="$CC -traditional"
17266   fi
17267 fi
17268
17269
17270 CXXFLAGS=${CXXFLAGS:=}
17271 ac_ext=cpp
17272 ac_cpp='$CXXCPP $CPPFLAGS'
17273 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17274 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17275 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17276 if test -z "$CXX"; then
17277   if test -n "$CCC"; then
17278     CXX=$CCC
17279   else
17280     if test -n "$ac_tool_prefix"; then
17281   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
17282   do
17283     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
17284 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
17285 { echo "$as_me:$LINENO: checking for $ac_word" >&5
17286 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
17287 if test "${ac_cv_prog_CXX+set}" = set; then
17288   echo $ECHO_N "(cached) $ECHO_C" >&6
17289 else
17290   if test -n "$CXX"; then
17291   ac_cv_prog_CXX="$CXX" # Let the user override the test.
17292 else
17293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17294 for as_dir in $PATH
17295 do
17296   IFS=$as_save_IFS
17297   test -z "$as_dir" && as_dir=.
17298   for ac_exec_ext in '' $ac_executable_extensions; do
17299   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17300     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
17301     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17302     break 2
17303   fi
17304 done
17305 done
17306 IFS=$as_save_IFS
17307
17308 fi
17309 fi
17310 CXX=$ac_cv_prog_CXX
17311 if test -n "$CXX"; then
17312   { echo "$as_me:$LINENO: result: $CXX" >&5
17313 echo "${ECHO_T}$CXX" >&6; }
17314 else
17315   { echo "$as_me:$LINENO: result: no" >&5
17316 echo "${ECHO_T}no" >&6; }
17317 fi
17318
17319
17320     test -n "$CXX" && break
17321   done
17322 fi
17323 if test -z "$CXX"; then
17324   ac_ct_CXX=$CXX
17325   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
17326 do
17327   # Extract the first word of "$ac_prog", so it can be a program name with args.
17328 set dummy $ac_prog; ac_word=$2
17329 { echo "$as_me:$LINENO: checking for $ac_word" >&5
17330 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
17331 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
17332   echo $ECHO_N "(cached) $ECHO_C" >&6
17333 else
17334   if test -n "$ac_ct_CXX"; then
17335   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
17336 else
17337 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17338 for as_dir in $PATH
17339 do
17340   IFS=$as_save_IFS
17341   test -z "$as_dir" && as_dir=.
17342   for ac_exec_ext in '' $ac_executable_extensions; do
17343   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17344     ac_cv_prog_ac_ct_CXX="$ac_prog"
17345     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17346     break 2
17347   fi
17348 done
17349 done
17350 IFS=$as_save_IFS
17351
17352 fi
17353 fi
17354 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
17355 if test -n "$ac_ct_CXX"; then
17356   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
17357 echo "${ECHO_T}$ac_ct_CXX" >&6; }
17358 else
17359   { echo "$as_me:$LINENO: result: no" >&5
17360 echo "${ECHO_T}no" >&6; }
17361 fi
17362
17363
17364   test -n "$ac_ct_CXX" && break
17365 done
17366
17367   if test "x$ac_ct_CXX" = x; then
17368     CXX="g++"
17369   else
17370     case $cross_compiling:$ac_tool_warned in
17371 yes:)
17372 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
17373 whose name does not start with the host triplet.  If you think this
17374 configuration is useful to you, please write to autoconf@gnu.org." >&5
17375 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
17376 whose name does not start with the host triplet.  If you think this
17377 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
17378 ac_tool_warned=yes ;;
17379 esac
17380     CXX=$ac_ct_CXX
17381   fi
17382 fi
17383
17384   fi
17385 fi
17386 # Provide some information about the compiler.
17387 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
17388 ac_compiler=`set X $ac_compile; echo $2`
17389 { (ac_try="$ac_compiler --version >&5"
17390 case "(($ac_try" in
17391   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17392   *) ac_try_echo=$ac_try;;
17393 esac
17394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17395   (eval "$ac_compiler --version >&5") 2>&5
17396   ac_status=$?
17397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17398   (exit $ac_status); }
17399 { (ac_try="$ac_compiler -v >&5"
17400 case "(($ac_try" in
17401   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17402   *) ac_try_echo=$ac_try;;
17403 esac
17404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17405   (eval "$ac_compiler -v >&5") 2>&5
17406   ac_status=$?
17407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17408   (exit $ac_status); }
17409 { (ac_try="$ac_compiler -V >&5"
17410 case "(($ac_try" in
17411   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17412   *) ac_try_echo=$ac_try;;
17413 esac
17414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17415   (eval "$ac_compiler -V >&5") 2>&5
17416   ac_status=$?
17417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17418   (exit $ac_status); }
17419
17420 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
17421 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
17422 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
17423   echo $ECHO_N "(cached) $ECHO_C" >&6
17424 else
17425   cat >conftest.$ac_ext <<_ACEOF
17426 /* confdefs.h.  */
17427 _ACEOF
17428 cat confdefs.h >>conftest.$ac_ext
17429 cat >>conftest.$ac_ext <<_ACEOF
17430 /* end confdefs.h.  */
17431
17432 int
17433 main ()
17434 {
17435 #ifndef __GNUC__
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   ac_compiler_gnu=yes
17461 else
17462   echo "$as_me: failed program was:" >&5
17463 sed 's/^/| /' conftest.$ac_ext >&5
17464
17465         ac_compiler_gnu=no
17466 fi
17467
17468 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17469 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
17470
17471 fi
17472 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
17473 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
17474 GXX=`test $ac_compiler_gnu = yes && echo yes`
17475 ac_test_CXXFLAGS=${CXXFLAGS+set}
17476 ac_save_CXXFLAGS=$CXXFLAGS
17477 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
17478 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
17479 if test "${ac_cv_prog_cxx_g+set}" = set; then
17480   echo $ECHO_N "(cached) $ECHO_C" >&6
17481 else
17482   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
17483    ac_cxx_werror_flag=yes
17484    ac_cv_prog_cxx_g=no
17485    CXXFLAGS="-g"
17486    cat >conftest.$ac_ext <<_ACEOF
17487 /* confdefs.h.  */
17488 _ACEOF
17489 cat confdefs.h >>conftest.$ac_ext
17490 cat >>conftest.$ac_ext <<_ACEOF
17491 /* end confdefs.h.  */
17492
17493 int
17494 main ()
17495 {
17496
17497   ;
17498   return 0;
17499 }
17500 _ACEOF
17501 rm -f conftest.$ac_objext
17502 if { (ac_try="$ac_compile"
17503 case "(($ac_try" in
17504   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17505   *) ac_try_echo=$ac_try;;
17506 esac
17507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17508   (eval "$ac_compile") 2>conftest.er1
17509   ac_status=$?
17510   grep -v '^ *+' conftest.er1 >conftest.err
17511   rm -f conftest.er1
17512   cat conftest.err >&5
17513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17514   (exit $ac_status); } && {
17515          test -z "$ac_cxx_werror_flag" ||
17516          test ! -s conftest.err
17517        } && test -s conftest.$ac_objext; then
17518   ac_cv_prog_cxx_g=yes
17519 else
17520   echo "$as_me: failed program was:" >&5
17521 sed 's/^/| /' conftest.$ac_ext >&5
17522
17523         CXXFLAGS=""
17524       cat >conftest.$ac_ext <<_ACEOF
17525 /* confdefs.h.  */
17526 _ACEOF
17527 cat confdefs.h >>conftest.$ac_ext
17528 cat >>conftest.$ac_ext <<_ACEOF
17529 /* end confdefs.h.  */
17530
17531 int
17532 main ()
17533 {
17534
17535   ;
17536   return 0;
17537 }
17538 _ACEOF
17539 rm -f conftest.$ac_objext
17540 if { (ac_try="$ac_compile"
17541 case "(($ac_try" in
17542   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17543   *) ac_try_echo=$ac_try;;
17544 esac
17545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17546   (eval "$ac_compile") 2>conftest.er1
17547   ac_status=$?
17548   grep -v '^ *+' conftest.er1 >conftest.err
17549   rm -f conftest.er1
17550   cat conftest.err >&5
17551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17552   (exit $ac_status); } && {
17553          test -z "$ac_cxx_werror_flag" ||
17554          test ! -s conftest.err
17555        } && test -s conftest.$ac_objext; then
17556   :
17557 else
17558   echo "$as_me: failed program was:" >&5
17559 sed 's/^/| /' conftest.$ac_ext >&5
17560
17561         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
17562          CXXFLAGS="-g"
17563          cat >conftest.$ac_ext <<_ACEOF
17564 /* confdefs.h.  */
17565 _ACEOF
17566 cat confdefs.h >>conftest.$ac_ext
17567 cat >>conftest.$ac_ext <<_ACEOF
17568 /* end confdefs.h.  */
17569
17570 int
17571 main ()
17572 {
17573
17574   ;
17575   return 0;
17576 }
17577 _ACEOF
17578 rm -f conftest.$ac_objext
17579 if { (ac_try="$ac_compile"
17580 case "(($ac_try" in
17581   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17582   *) ac_try_echo=$ac_try;;
17583 esac
17584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17585   (eval "$ac_compile") 2>conftest.er1
17586   ac_status=$?
17587   grep -v '^ *+' conftest.er1 >conftest.err
17588   rm -f conftest.er1
17589   cat conftest.err >&5
17590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17591   (exit $ac_status); } && {
17592          test -z "$ac_cxx_werror_flag" ||
17593          test ! -s conftest.err
17594        } && test -s conftest.$ac_objext; then
17595   ac_cv_prog_cxx_g=yes
17596 else
17597   echo "$as_me: failed program was:" >&5
17598 sed 's/^/| /' conftest.$ac_ext >&5
17599
17600
17601 fi
17602
17603 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17604 fi
17605
17606 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17607 fi
17608
17609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17610    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
17611 fi
17612 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
17613 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
17614 if test "$ac_test_CXXFLAGS" = set; then
17615   CXXFLAGS=$ac_save_CXXFLAGS
17616 elif test $ac_cv_prog_cxx_g = yes; then
17617   if test "$GXX" = yes; then
17618     CXXFLAGS="-g -O2"
17619   else
17620     CXXFLAGS="-g"
17621   fi
17622 else
17623   if test "$GXX" = yes; then
17624     CXXFLAGS="-O2"
17625   else
17626     CXXFLAGS=
17627   fi
17628 fi
17629 ac_ext=c
17630 ac_cpp='$CPP $CPPFLAGS'
17631 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17632 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17633 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17634
17635
17636
17637
17638
17639
17640
17641
17642     ac_ext=cpp
17643 ac_cpp='$CXXCPP $CPPFLAGS'
17644 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17645 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17646 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17647
17648     { echo "$as_me:$LINENO: checking whether we are using the Intel C++ compiler" >&5
17649 echo $ECHO_N "checking whether we are using the Intel C++ compiler... $ECHO_C" >&6; }
17650 if test "${bakefile_cv_cxx_compiler___INTEL_COMPILER+set}" = set; then
17651   echo $ECHO_N "(cached) $ECHO_C" >&6
17652 else
17653   cat >conftest.$ac_ext <<_ACEOF
17654 /* confdefs.h.  */
17655 _ACEOF
17656 cat confdefs.h >>conftest.$ac_ext
17657 cat >>conftest.$ac_ext <<_ACEOF
17658 /* end confdefs.h.  */
17659
17660 int
17661 main ()
17662 {
17663
17664              #ifndef __INTEL_COMPILER
17665                 choke me
17666              #endif
17667
17668   ;
17669   return 0;
17670 }
17671 _ACEOF
17672 rm -f conftest.$ac_objext
17673 if { (ac_try="$ac_compile"
17674 case "(($ac_try" in
17675   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17676   *) ac_try_echo=$ac_try;;
17677 esac
17678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17679   (eval "$ac_compile") 2>conftest.er1
17680   ac_status=$?
17681   grep -v '^ *+' conftest.er1 >conftest.err
17682   rm -f conftest.er1
17683   cat conftest.err >&5
17684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17685   (exit $ac_status); } && {
17686          test -z "$ac_cxx_werror_flag" ||
17687          test ! -s conftest.err
17688        } && test -s conftest.$ac_objext; then
17689   bakefile_cv_cxx_compiler___INTEL_COMPILER=yes
17690 else
17691   echo "$as_me: failed program was:" >&5
17692 sed 's/^/| /' conftest.$ac_ext >&5
17693
17694         bakefile_cv_cxx_compiler___INTEL_COMPILER=no
17695
17696 fi
17697
17698 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17699
17700
17701 fi
17702 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___INTEL_COMPILER" >&5
17703 echo "${ECHO_T}$bakefile_cv_cxx_compiler___INTEL_COMPILER" >&6; }
17704     if test "x$bakefile_cv_cxx_compiler___INTEL_COMPILER" = "xyes"; then
17705         :; INTELCXX=yes
17706     else
17707         :;
17708     fi
17709     ac_ext=c
17710 ac_cpp='$CPP $CPPFLAGS'
17711 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17712 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17713 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17714
17715
17716
17717
17718         if test "$INTELCXX" = "yes"; then
17719
17720
17721     ac_ext=cpp
17722 ac_cpp='$CXXCPP $CPPFLAGS'
17723 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17724 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17725 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17726
17727     { echo "$as_me:$LINENO: checking whether we are using Intel C++ compiler v8 or later" >&5
17728 echo $ECHO_N "checking whether we are using Intel C++ compiler v8 or later... $ECHO_C" >&6; }
17729 if test "${bakefile_cv_cxx_compiler___INTEL_COMPILER_lt_800+set}" = set; then
17730   echo $ECHO_N "(cached) $ECHO_C" >&6
17731 else
17732   cat >conftest.$ac_ext <<_ACEOF
17733 /* confdefs.h.  */
17734 _ACEOF
17735 cat confdefs.h >>conftest.$ac_ext
17736 cat >>conftest.$ac_ext <<_ACEOF
17737 /* end confdefs.h.  */
17738
17739 int
17740 main ()
17741 {
17742
17743              #ifndef __INTEL_COMPILER || __INTEL_COMPILER < 800
17744                 choke me
17745              #endif
17746
17747   ;
17748   return 0;
17749 }
17750 _ACEOF
17751 rm -f conftest.$ac_objext
17752 if { (ac_try="$ac_compile"
17753 case "(($ac_try" in
17754   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17755   *) ac_try_echo=$ac_try;;
17756 esac
17757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17758   (eval "$ac_compile") 2>conftest.er1
17759   ac_status=$?
17760   grep -v '^ *+' conftest.er1 >conftest.err
17761   rm -f conftest.er1
17762   cat conftest.err >&5
17763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17764   (exit $ac_status); } && {
17765          test -z "$ac_cxx_werror_flag" ||
17766          test ! -s conftest.err
17767        } && test -s conftest.$ac_objext; then
17768   bakefile_cv_cxx_compiler___INTEL_COMPILER_lt_800=yes
17769 else
17770   echo "$as_me: failed program was:" >&5
17771 sed 's/^/| /' conftest.$ac_ext >&5
17772
17773         bakefile_cv_cxx_compiler___INTEL_COMPILER_lt_800=no
17774
17775 fi
17776
17777 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17778
17779
17780 fi
17781 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___INTEL_COMPILER_lt_800" >&5
17782 echo "${ECHO_T}$bakefile_cv_cxx_compiler___INTEL_COMPILER_lt_800" >&6; }
17783     if test "x$bakefile_cv_cxx_compiler___INTEL_COMPILER_lt_800" = "xyes"; then
17784         :; INTELCXX8=yes
17785     else
17786         :;
17787     fi
17788     ac_ext=c
17789 ac_cpp='$CPP $CPPFLAGS'
17790 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17791 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17792 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17793
17794
17795
17796
17797
17798     ac_ext=cpp
17799 ac_cpp='$CXXCPP $CPPFLAGS'
17800 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17801 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17802 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17803
17804     { echo "$as_me:$LINENO: checking whether we are using Intel C++ compiler v10 or later" >&5
17805 echo $ECHO_N "checking whether we are using Intel C++ compiler v10 or later... $ECHO_C" >&6; }
17806 if test "${bakefile_cv_cxx_compiler___INTEL_COMPILER_lt_1000+set}" = set; then
17807   echo $ECHO_N "(cached) $ECHO_C" >&6
17808 else
17809   cat >conftest.$ac_ext <<_ACEOF
17810 /* confdefs.h.  */
17811 _ACEOF
17812 cat confdefs.h >>conftest.$ac_ext
17813 cat >>conftest.$ac_ext <<_ACEOF
17814 /* end confdefs.h.  */
17815
17816 int
17817 main ()
17818 {
17819
17820              #ifndef __INTEL_COMPILER || __INTEL_COMPILER < 1000
17821                 choke me
17822              #endif
17823
17824   ;
17825   return 0;
17826 }
17827 _ACEOF
17828 rm -f conftest.$ac_objext
17829 if { (ac_try="$ac_compile"
17830 case "(($ac_try" in
17831   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17832   *) ac_try_echo=$ac_try;;
17833 esac
17834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17835   (eval "$ac_compile") 2>conftest.er1
17836   ac_status=$?
17837   grep -v '^ *+' conftest.er1 >conftest.err
17838   rm -f conftest.er1
17839   cat conftest.err >&5
17840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17841   (exit $ac_status); } && {
17842          test -z "$ac_cxx_werror_flag" ||
17843          test ! -s conftest.err
17844        } && test -s conftest.$ac_objext; then
17845   bakefile_cv_cxx_compiler___INTEL_COMPILER_lt_1000=yes
17846 else
17847   echo "$as_me: failed program was:" >&5
17848 sed 's/^/| /' conftest.$ac_ext >&5
17849
17850         bakefile_cv_cxx_compiler___INTEL_COMPILER_lt_1000=no
17851
17852 fi
17853
17854 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17855
17856
17857 fi
17858 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___INTEL_COMPILER_lt_1000" >&5
17859 echo "${ECHO_T}$bakefile_cv_cxx_compiler___INTEL_COMPILER_lt_1000" >&6; }
17860     if test "x$bakefile_cv_cxx_compiler___INTEL_COMPILER_lt_1000" = "xyes"; then
17861         :; INTELCXX10=yes
17862     else
17863         :;
17864     fi
17865     ac_ext=c
17866 ac_cpp='$CPP $CPPFLAGS'
17867 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17868 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17869 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17870
17871
17872
17873     fi
17874
17875         if test "x$GCXX" != "xyes"; then
17876         if test "xCXX" = "xC"; then
17877             { echo "$as_me:$LINENO: checking if the C compiler requires -ext o" >&5
17878 echo $ECHO_N "checking if the C compiler requires -ext o... $ECHO_C" >&6; }
17879 if test "${bakefile_cv_c_exto+set}" = set; then
17880   echo $ECHO_N "(cached) $ECHO_C" >&6
17881 else
17882   cat >conftest.$ac_ext <<_ACEOF
17883 /* confdefs.h.  */
17884 _ACEOF
17885 cat confdefs.h >>conftest.$ac_ext
17886 cat >>conftest.$ac_ext <<_ACEOF
17887 /* end confdefs.h.  */
17888
17889 int
17890 main ()
17891 {
17892
17893   ;
17894   return 0;
17895 }
17896 _ACEOF
17897 rm -f conftest.$ac_objext conftest.$ac_ext.o
17898 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17899   (eval $ac_compile) 2>&5
17900   ac_status=$?
17901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17902   (exit $ac_status); }; then
17903   for ac_file in `(ls conftest.* 2>/dev/null)`; do
17904     case $ac_file in
17905         conftest.$ac_ext.o)
17906             bakefile_cv_c_exto="-ext o"
17907             ;;
17908         *)
17909             ;;
17910     esac
17911 done
17912 else
17913   { { echo "$as_me:$LINENO: error: cannot figure out if compiler needs -ext o: cannot compile
17914 See \`config.log' for more details." >&5
17915 echo "$as_me: error: cannot figure out if compiler needs -ext o: cannot compile
17916 See \`config.log' for more details." >&2;}
17917    { (exit 1); exit 1; }; }
17918
17919 fi
17920
17921 rm -f conftest.$ac_ext.o conftest.$ac_objext conftest.$ac_ext
17922
17923 fi
17924 { echo "$as_me:$LINENO: result: $bakefile_cv_c_exto" >&5
17925 echo "${ECHO_T}$bakefile_cv_c_exto" >&6; }
17926 if test "x$bakefile_cv_c_exto" '!=' "x"; then
17927     if test "c" = "c"; then
17928         CFLAGS="$bakefile_cv_c_exto $CFLAGS"
17929     fi
17930     if test "c" = "cxx"; then
17931         CXXFLAGS="$bakefile_cv_c_exto $CXXFLAGS"
17932     fi
17933 fi
17934
17935             if test "x$bakefile_cv_c_exto" '!=' "x"; then
17936                 unset ac_cv_prog_cc_g
17937                 ac_test_CFLAGS=${CFLAGS+set}
17938 ac_save_CFLAGS=$CFLAGS
17939 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
17940 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
17941 if test "${ac_cv_prog_cc_g+set}" = set; then
17942   echo $ECHO_N "(cached) $ECHO_C" >&6
17943 else
17944   ac_save_c_werror_flag=$ac_c_werror_flag
17945    ac_c_werror_flag=yes
17946    ac_cv_prog_cc_g=no
17947    CFLAGS="-g"
17948    cat >conftest.$ac_ext <<_ACEOF
17949 /* confdefs.h.  */
17950 _ACEOF
17951 cat confdefs.h >>conftest.$ac_ext
17952 cat >>conftest.$ac_ext <<_ACEOF
17953 /* end confdefs.h.  */
17954
17955 int
17956 main ()
17957 {
17958
17959   ;
17960   return 0;
17961 }
17962 _ACEOF
17963 rm -f conftest.$ac_objext
17964 if { (ac_try="$ac_compile"
17965 case "(($ac_try" in
17966   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17967   *) ac_try_echo=$ac_try;;
17968 esac
17969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17970   (eval "$ac_compile") 2>conftest.er1
17971   ac_status=$?
17972   grep -v '^ *+' conftest.er1 >conftest.err
17973   rm -f conftest.er1
17974   cat conftest.err >&5
17975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17976   (exit $ac_status); } && {
17977          test -z "$ac_c_werror_flag" ||
17978          test ! -s conftest.err
17979        } && test -s conftest.$ac_objext; then
17980   ac_cv_prog_cc_g=yes
17981 else
17982   echo "$as_me: failed program was:" >&5
17983 sed 's/^/| /' conftest.$ac_ext >&5
17984
17985         CFLAGS=""
17986       cat >conftest.$ac_ext <<_ACEOF
17987 /* confdefs.h.  */
17988 _ACEOF
17989 cat confdefs.h >>conftest.$ac_ext
17990 cat >>conftest.$ac_ext <<_ACEOF
17991 /* end confdefs.h.  */
17992
17993 int
17994 main ()
17995 {
17996
17997   ;
17998   return 0;
17999 }
18000 _ACEOF
18001 rm -f conftest.$ac_objext
18002 if { (ac_try="$ac_compile"
18003 case "(($ac_try" in
18004   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18005   *) ac_try_echo=$ac_try;;
18006 esac
18007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18008   (eval "$ac_compile") 2>conftest.er1
18009   ac_status=$?
18010   grep -v '^ *+' conftest.er1 >conftest.err
18011   rm -f conftest.er1
18012   cat conftest.err >&5
18013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18014   (exit $ac_status); } && {
18015          test -z "$ac_c_werror_flag" ||
18016          test ! -s conftest.err
18017        } && test -s conftest.$ac_objext; then
18018   :
18019 else
18020   echo "$as_me: failed program was:" >&5
18021 sed 's/^/| /' conftest.$ac_ext >&5
18022
18023         ac_c_werror_flag=$ac_save_c_werror_flag
18024          CFLAGS="-g"
18025          cat >conftest.$ac_ext <<_ACEOF
18026 /* confdefs.h.  */
18027 _ACEOF
18028 cat confdefs.h >>conftest.$ac_ext
18029 cat >>conftest.$ac_ext <<_ACEOF
18030 /* end confdefs.h.  */
18031
18032 int
18033 main ()
18034 {
18035
18036   ;
18037   return 0;
18038 }
18039 _ACEOF
18040 rm -f conftest.$ac_objext
18041 if { (ac_try="$ac_compile"
18042 case "(($ac_try" in
18043   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18044   *) ac_try_echo=$ac_try;;
18045 esac
18046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18047   (eval "$ac_compile") 2>conftest.er1
18048   ac_status=$?
18049   grep -v '^ *+' conftest.er1 >conftest.err
18050   rm -f conftest.er1
18051   cat conftest.err >&5
18052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18053   (exit $ac_status); } && {
18054          test -z "$ac_c_werror_flag" ||
18055          test ! -s conftest.err
18056        } && test -s conftest.$ac_objext; then
18057   ac_cv_prog_cc_g=yes
18058 else
18059   echo "$as_me: failed program was:" >&5
18060 sed 's/^/| /' conftest.$ac_ext >&5
18061
18062
18063 fi
18064
18065 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18066 fi
18067
18068 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18069 fi
18070
18071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18072    ac_c_werror_flag=$ac_save_c_werror_flag
18073 fi
18074 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
18075 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
18076 if test "$ac_test_CFLAGS" = set; then
18077   CFLAGS=$ac_save_CFLAGS
18078 elif test $ac_cv_prog_cc_g = yes; then
18079   if test "$GCC" = yes; then
18080     CFLAGS="-g -O2"
18081   else
18082     CFLAGS="-g"
18083   fi
18084 else
18085   if test "$GCC" = yes; then
18086     CFLAGS="-O2"
18087   else
18088     CFLAGS=
18089   fi
18090 fi
18091             fi
18092         fi
18093
18094                         case `uname -s` in
18095             AIX*)
18096
18097
18098     ac_ext=cpp
18099 ac_cpp='$CXXCPP $CPPFLAGS'
18100 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18101 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18102 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18103
18104     { echo "$as_me:$LINENO: checking whether we are using the IBM xlC C++ compiler" >&5
18105 echo $ECHO_N "checking whether we are using the IBM xlC C++ compiler... $ECHO_C" >&6; }
18106 if test "${bakefile_cv_cxx_compiler___xlC__+set}" = set; then
18107   echo $ECHO_N "(cached) $ECHO_C" >&6
18108 else
18109   cat >conftest.$ac_ext <<_ACEOF
18110 /* confdefs.h.  */
18111 _ACEOF
18112 cat confdefs.h >>conftest.$ac_ext
18113 cat >>conftest.$ac_ext <<_ACEOF
18114 /* end confdefs.h.  */
18115
18116 int
18117 main ()
18118 {
18119
18120              #ifndef __xlC__
18121                 choke me
18122              #endif
18123
18124   ;
18125   return 0;
18126 }
18127 _ACEOF
18128 rm -f conftest.$ac_objext
18129 if { (ac_try="$ac_compile"
18130 case "(($ac_try" in
18131   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18132   *) ac_try_echo=$ac_try;;
18133 esac
18134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18135   (eval "$ac_compile") 2>conftest.er1
18136   ac_status=$?
18137   grep -v '^ *+' conftest.er1 >conftest.err
18138   rm -f conftest.er1
18139   cat conftest.err >&5
18140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18141   (exit $ac_status); } && {
18142          test -z "$ac_cxx_werror_flag" ||
18143          test ! -s conftest.err
18144        } && test -s conftest.$ac_objext; then
18145   bakefile_cv_cxx_compiler___xlC__=yes
18146 else
18147   echo "$as_me: failed program was:" >&5
18148 sed 's/^/| /' conftest.$ac_ext >&5
18149
18150         bakefile_cv_cxx_compiler___xlC__=no
18151
18152 fi
18153
18154 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18155
18156
18157 fi
18158 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___xlC__" >&5
18159 echo "${ECHO_T}$bakefile_cv_cxx_compiler___xlC__" >&6; }
18160     if test "x$bakefile_cv_cxx_compiler___xlC__" = "xyes"; then
18161         :; XLCXX=yes
18162     else
18163         :;
18164     fi
18165     ac_ext=c
18166 ac_cpp='$CPP $CPPFLAGS'
18167 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18168 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18169 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18170
18171
18172
18173                 ;;
18174
18175             Darwin)
18176
18177
18178     ac_ext=cpp
18179 ac_cpp='$CXXCPP $CPPFLAGS'
18180 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18181 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18182 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18183
18184     { echo "$as_me:$LINENO: checking whether we are using the Metrowerks C++ compiler" >&5
18185 echo $ECHO_N "checking whether we are using the Metrowerks C++ compiler... $ECHO_C" >&6; }
18186 if test "${bakefile_cv_cxx_compiler___MWERKS__+set}" = set; then
18187   echo $ECHO_N "(cached) $ECHO_C" >&6
18188 else
18189   cat >conftest.$ac_ext <<_ACEOF
18190 /* confdefs.h.  */
18191 _ACEOF
18192 cat confdefs.h >>conftest.$ac_ext
18193 cat >>conftest.$ac_ext <<_ACEOF
18194 /* end confdefs.h.  */
18195
18196 int
18197 main ()
18198 {
18199
18200              #ifndef __MWERKS__
18201                 choke me
18202              #endif
18203
18204   ;
18205   return 0;
18206 }
18207 _ACEOF
18208 rm -f conftest.$ac_objext
18209 if { (ac_try="$ac_compile"
18210 case "(($ac_try" in
18211   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18212   *) ac_try_echo=$ac_try;;
18213 esac
18214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18215   (eval "$ac_compile") 2>conftest.er1
18216   ac_status=$?
18217   grep -v '^ *+' conftest.er1 >conftest.err
18218   rm -f conftest.er1
18219   cat conftest.err >&5
18220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18221   (exit $ac_status); } && {
18222          test -z "$ac_cxx_werror_flag" ||
18223          test ! -s conftest.err
18224        } && test -s conftest.$ac_objext; then
18225   bakefile_cv_cxx_compiler___MWERKS__=yes
18226 else
18227   echo "$as_me: failed program was:" >&5
18228 sed 's/^/| /' conftest.$ac_ext >&5
18229
18230         bakefile_cv_cxx_compiler___MWERKS__=no
18231
18232 fi
18233
18234 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18235
18236
18237 fi
18238 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___MWERKS__" >&5
18239 echo "${ECHO_T}$bakefile_cv_cxx_compiler___MWERKS__" >&6; }
18240     if test "x$bakefile_cv_cxx_compiler___MWERKS__" = "xyes"; then
18241         :; MWCXX=yes
18242     else
18243         :;
18244     fi
18245     ac_ext=c
18246 ac_cpp='$CPP $CPPFLAGS'
18247 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18248 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18249 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18250
18251
18252
18253                 if test "$MWCXX" != "yes"; then
18254
18255
18256     ac_ext=cpp
18257 ac_cpp='$CXXCPP $CPPFLAGS'
18258 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18259 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18260 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18261
18262     { echo "$as_me:$LINENO: checking whether we are using the IBM xlC C++ compiler" >&5
18263 echo $ECHO_N "checking whether we are using the IBM xlC C++ compiler... $ECHO_C" >&6; }
18264 if test "${bakefile_cv_cxx_compiler___xlC__+set}" = set; then
18265   echo $ECHO_N "(cached) $ECHO_C" >&6
18266 else
18267   cat >conftest.$ac_ext <<_ACEOF
18268 /* confdefs.h.  */
18269 _ACEOF
18270 cat confdefs.h >>conftest.$ac_ext
18271 cat >>conftest.$ac_ext <<_ACEOF
18272 /* end confdefs.h.  */
18273
18274 int
18275 main ()
18276 {
18277
18278              #ifndef __xlC__
18279                 choke me
18280              #endif
18281
18282   ;
18283   return 0;
18284 }
18285 _ACEOF
18286 rm -f conftest.$ac_objext
18287 if { (ac_try="$ac_compile"
18288 case "(($ac_try" in
18289   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18290   *) ac_try_echo=$ac_try;;
18291 esac
18292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18293   (eval "$ac_compile") 2>conftest.er1
18294   ac_status=$?
18295   grep -v '^ *+' conftest.er1 >conftest.err
18296   rm -f conftest.er1
18297   cat conftest.err >&5
18298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18299   (exit $ac_status); } && {
18300          test -z "$ac_cxx_werror_flag" ||
18301          test ! -s conftest.err
18302        } && test -s conftest.$ac_objext; then
18303   bakefile_cv_cxx_compiler___xlC__=yes
18304 else
18305   echo "$as_me: failed program was:" >&5
18306 sed 's/^/| /' conftest.$ac_ext >&5
18307
18308         bakefile_cv_cxx_compiler___xlC__=no
18309
18310 fi
18311
18312 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18313
18314
18315 fi
18316 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___xlC__" >&5
18317 echo "${ECHO_T}$bakefile_cv_cxx_compiler___xlC__" >&6; }
18318     if test "x$bakefile_cv_cxx_compiler___xlC__" = "xyes"; then
18319         :; XLCXX=yes
18320     else
18321         :;
18322     fi
18323     ac_ext=c
18324 ac_cpp='$CPP $CPPFLAGS'
18325 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18326 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18327 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18328
18329
18330
18331                 fi
18332                 ;;
18333
18334             IRIX*)
18335
18336
18337     ac_ext=cpp
18338 ac_cpp='$CXXCPP $CPPFLAGS'
18339 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18340 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18341 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18342
18343     { echo "$as_me:$LINENO: checking whether we are using the SGI C++ compiler" >&5
18344 echo $ECHO_N "checking whether we are using the SGI C++ compiler... $ECHO_C" >&6; }
18345 if test "${bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION+set}" = set; then
18346   echo $ECHO_N "(cached) $ECHO_C" >&6
18347 else
18348   cat >conftest.$ac_ext <<_ACEOF
18349 /* confdefs.h.  */
18350 _ACEOF
18351 cat confdefs.h >>conftest.$ac_ext
18352 cat >>conftest.$ac_ext <<_ACEOF
18353 /* end confdefs.h.  */
18354
18355 int
18356 main ()
18357 {
18358
18359              #ifndef _SGI_COMPILER_VERSION
18360                 choke me
18361              #endif
18362
18363   ;
18364   return 0;
18365 }
18366 _ACEOF
18367 rm -f conftest.$ac_objext
18368 if { (ac_try="$ac_compile"
18369 case "(($ac_try" in
18370   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18371   *) ac_try_echo=$ac_try;;
18372 esac
18373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18374   (eval "$ac_compile") 2>conftest.er1
18375   ac_status=$?
18376   grep -v '^ *+' conftest.er1 >conftest.err
18377   rm -f conftest.er1
18378   cat conftest.err >&5
18379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18380   (exit $ac_status); } && {
18381          test -z "$ac_cxx_werror_flag" ||
18382          test ! -s conftest.err
18383        } && test -s conftest.$ac_objext; then
18384   bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION=yes
18385 else
18386   echo "$as_me: failed program was:" >&5
18387 sed 's/^/| /' conftest.$ac_ext >&5
18388
18389         bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION=no
18390
18391 fi
18392
18393 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18394
18395
18396 fi
18397 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" >&5
18398 echo "${ECHO_T}$bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" >&6; }
18399     if test "x$bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" = "xyes"; then
18400         :; SGICXX=yes
18401     else
18402         :;
18403     fi
18404     ac_ext=c
18405 ac_cpp='$CPP $CPPFLAGS'
18406 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18407 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18408 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18409
18410
18411
18412                 ;;
18413
18414             Linux*)
18415                                                 if test "$INTELCXX" != "yes"; then
18416
18417
18418     ac_ext=cpp
18419 ac_cpp='$CXXCPP $CPPFLAGS'
18420 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18421 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18422 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18423
18424     { echo "$as_me:$LINENO: checking whether we are using the Sun C++ compiler" >&5
18425 echo $ECHO_N "checking whether we are using the Sun C++ compiler... $ECHO_C" >&6; }
18426 if test "${bakefile_cv_cxx_compiler___SUNPRO_CC+set}" = set; then
18427   echo $ECHO_N "(cached) $ECHO_C" >&6
18428 else
18429   cat >conftest.$ac_ext <<_ACEOF
18430 /* confdefs.h.  */
18431 _ACEOF
18432 cat confdefs.h >>conftest.$ac_ext
18433 cat >>conftest.$ac_ext <<_ACEOF
18434 /* end confdefs.h.  */
18435
18436 int
18437 main ()
18438 {
18439
18440              #ifndef __SUNPRO_CC
18441                 choke me
18442              #endif
18443
18444   ;
18445   return 0;
18446 }
18447 _ACEOF
18448 rm -f conftest.$ac_objext
18449 if { (ac_try="$ac_compile"
18450 case "(($ac_try" in
18451   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18452   *) ac_try_echo=$ac_try;;
18453 esac
18454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18455   (eval "$ac_compile") 2>conftest.er1
18456   ac_status=$?
18457   grep -v '^ *+' conftest.er1 >conftest.err
18458   rm -f conftest.er1
18459   cat conftest.err >&5
18460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18461   (exit $ac_status); } && {
18462          test -z "$ac_cxx_werror_flag" ||
18463          test ! -s conftest.err
18464        } && test -s conftest.$ac_objext; then
18465   bakefile_cv_cxx_compiler___SUNPRO_CC=yes
18466 else
18467   echo "$as_me: failed program was:" >&5
18468 sed 's/^/| /' conftest.$ac_ext >&5
18469
18470         bakefile_cv_cxx_compiler___SUNPRO_CC=no
18471
18472 fi
18473
18474 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18475
18476
18477 fi
18478 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___SUNPRO_CC" >&5
18479 echo "${ECHO_T}$bakefile_cv_cxx_compiler___SUNPRO_CC" >&6; }
18480     if test "x$bakefile_cv_cxx_compiler___SUNPRO_CC" = "xyes"; then
18481         :; SUNCXX=yes
18482     else
18483         :;
18484     fi
18485     ac_ext=c
18486 ac_cpp='$CPP $CPPFLAGS'
18487 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18488 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18489 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18490
18491
18492
18493                 fi
18494                 ;;
18495
18496             HP-UX*)
18497
18498
18499     ac_ext=cpp
18500 ac_cpp='$CXXCPP $CPPFLAGS'
18501 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18502 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18503 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18504
18505     { echo "$as_me:$LINENO: checking whether we are using the HP C++ compiler" >&5
18506 echo $ECHO_N "checking whether we are using the HP C++ compiler... $ECHO_C" >&6; }
18507 if test "${bakefile_cv_cxx_compiler___HP_aCC+set}" = set; then
18508   echo $ECHO_N "(cached) $ECHO_C" >&6
18509 else
18510   cat >conftest.$ac_ext <<_ACEOF
18511 /* confdefs.h.  */
18512 _ACEOF
18513 cat confdefs.h >>conftest.$ac_ext
18514 cat >>conftest.$ac_ext <<_ACEOF
18515 /* end confdefs.h.  */
18516
18517 int
18518 main ()
18519 {
18520
18521              #ifndef __HP_aCC
18522                 choke me
18523              #endif
18524
18525   ;
18526   return 0;
18527 }
18528 _ACEOF
18529 rm -f conftest.$ac_objext
18530 if { (ac_try="$ac_compile"
18531 case "(($ac_try" in
18532   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18533   *) ac_try_echo=$ac_try;;
18534 esac
18535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18536   (eval "$ac_compile") 2>conftest.er1
18537   ac_status=$?
18538   grep -v '^ *+' conftest.er1 >conftest.err
18539   rm -f conftest.er1
18540   cat conftest.err >&5
18541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18542   (exit $ac_status); } && {
18543          test -z "$ac_cxx_werror_flag" ||
18544          test ! -s conftest.err
18545        } && test -s conftest.$ac_objext; then
18546   bakefile_cv_cxx_compiler___HP_aCC=yes
18547 else
18548   echo "$as_me: failed program was:" >&5
18549 sed 's/^/| /' conftest.$ac_ext >&5
18550
18551         bakefile_cv_cxx_compiler___HP_aCC=no
18552
18553 fi
18554
18555 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18556
18557
18558 fi
18559 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___HP_aCC" >&5
18560 echo "${ECHO_T}$bakefile_cv_cxx_compiler___HP_aCC" >&6; }
18561     if test "x$bakefile_cv_cxx_compiler___HP_aCC" = "xyes"; then
18562         :; HPCXX=yes
18563     else
18564         :;
18565     fi
18566     ac_ext=c
18567 ac_cpp='$CPP $CPPFLAGS'
18568 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18569 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18570 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18571
18572
18573
18574                 ;;
18575
18576             OSF1)
18577
18578
18579     ac_ext=cpp
18580 ac_cpp='$CXXCPP $CPPFLAGS'
18581 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18582 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18583 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18584
18585     { echo "$as_me:$LINENO: checking whether we are using the Compaq C++ compiler" >&5
18586 echo $ECHO_N "checking whether we are using the Compaq C++ compiler... $ECHO_C" >&6; }
18587 if test "${bakefile_cv_cxx_compiler___DECCXX+set}" = set; then
18588   echo $ECHO_N "(cached) $ECHO_C" >&6
18589 else
18590   cat >conftest.$ac_ext <<_ACEOF
18591 /* confdefs.h.  */
18592 _ACEOF
18593 cat confdefs.h >>conftest.$ac_ext
18594 cat >>conftest.$ac_ext <<_ACEOF
18595 /* end confdefs.h.  */
18596
18597 int
18598 main ()
18599 {
18600
18601              #ifndef __DECCXX
18602                 choke me
18603              #endif
18604
18605   ;
18606   return 0;
18607 }
18608 _ACEOF
18609 rm -f conftest.$ac_objext
18610 if { (ac_try="$ac_compile"
18611 case "(($ac_try" in
18612   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18613   *) ac_try_echo=$ac_try;;
18614 esac
18615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18616   (eval "$ac_compile") 2>conftest.er1
18617   ac_status=$?
18618   grep -v '^ *+' conftest.er1 >conftest.err
18619   rm -f conftest.er1
18620   cat conftest.err >&5
18621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18622   (exit $ac_status); } && {
18623          test -z "$ac_cxx_werror_flag" ||
18624          test ! -s conftest.err
18625        } && test -s conftest.$ac_objext; then
18626   bakefile_cv_cxx_compiler___DECCXX=yes
18627 else
18628   echo "$as_me: failed program was:" >&5
18629 sed 's/^/| /' conftest.$ac_ext >&5
18630
18631         bakefile_cv_cxx_compiler___DECCXX=no
18632
18633 fi
18634
18635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18636
18637
18638 fi
18639 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___DECCXX" >&5
18640 echo "${ECHO_T}$bakefile_cv_cxx_compiler___DECCXX" >&6; }
18641     if test "x$bakefile_cv_cxx_compiler___DECCXX" = "xyes"; then
18642         :; COMPAQCXX=yes
18643     else
18644         :;
18645     fi
18646     ac_ext=c
18647 ac_cpp='$CPP $CPPFLAGS'
18648 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18649 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18650 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18651
18652
18653
18654                 ;;
18655
18656             SunOS)
18657
18658
18659     ac_ext=cpp
18660 ac_cpp='$CXXCPP $CPPFLAGS'
18661 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18662 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18663 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18664
18665     { echo "$as_me:$LINENO: checking whether we are using the Sun C++ compiler" >&5
18666 echo $ECHO_N "checking whether we are using the Sun C++ compiler... $ECHO_C" >&6; }
18667 if test "${bakefile_cv_cxx_compiler___SUNPRO_CC+set}" = set; then
18668   echo $ECHO_N "(cached) $ECHO_C" >&6
18669 else
18670   cat >conftest.$ac_ext <<_ACEOF
18671 /* confdefs.h.  */
18672 _ACEOF
18673 cat confdefs.h >>conftest.$ac_ext
18674 cat >>conftest.$ac_ext <<_ACEOF
18675 /* end confdefs.h.  */
18676
18677 int
18678 main ()
18679 {
18680
18681              #ifndef __SUNPRO_CC
18682                 choke me
18683              #endif
18684
18685   ;
18686   return 0;
18687 }
18688 _ACEOF
18689 rm -f conftest.$ac_objext
18690 if { (ac_try="$ac_compile"
18691 case "(($ac_try" in
18692   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18693   *) ac_try_echo=$ac_try;;
18694 esac
18695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18696   (eval "$ac_compile") 2>conftest.er1
18697   ac_status=$?
18698   grep -v '^ *+' conftest.er1 >conftest.err
18699   rm -f conftest.er1
18700   cat conftest.err >&5
18701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18702   (exit $ac_status); } && {
18703          test -z "$ac_cxx_werror_flag" ||
18704          test ! -s conftest.err
18705        } && test -s conftest.$ac_objext; then
18706   bakefile_cv_cxx_compiler___SUNPRO_CC=yes
18707 else
18708   echo "$as_me: failed program was:" >&5
18709 sed 's/^/| /' conftest.$ac_ext >&5
18710
18711         bakefile_cv_cxx_compiler___SUNPRO_CC=no
18712
18713 fi
18714
18715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18716
18717
18718 fi
18719 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___SUNPRO_CC" >&5
18720 echo "${ECHO_T}$bakefile_cv_cxx_compiler___SUNPRO_CC" >&6; }
18721     if test "x$bakefile_cv_cxx_compiler___SUNPRO_CC" = "xyes"; then
18722         :; SUNCXX=yes
18723     else
18724         :;
18725     fi
18726     ac_ext=c
18727 ac_cpp='$CPP $CPPFLAGS'
18728 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18729 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18730 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18731
18732
18733
18734                 ;;
18735         esac
18736     fi
18737
18738
18739
18740 if test "$CXX" = "g++" -a "$GXX" != "yes"; then
18741     { { echo "$as_me:$LINENO: error: C++ compiler is needed to build wxWidgets" >&5
18742 echo "$as_me: error: C++ compiler is needed to build wxWidgets" >&2;}
18743    { (exit 1); exit 1; }; }
18744 fi
18745
18746 if test "x$SUNCXX" != xyes; then
18747     if test -n "$ac_tool_prefix"; then
18748   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
18749 set dummy ${ac_tool_prefix}ar; ac_word=$2
18750 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18751 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18752 if test "${ac_cv_prog_AR+set}" = set; then
18753   echo $ECHO_N "(cached) $ECHO_C" >&6
18754 else
18755   if test -n "$AR"; then
18756   ac_cv_prog_AR="$AR" # Let the user override the test.
18757 else
18758 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18759 for as_dir in $PATH
18760 do
18761   IFS=$as_save_IFS
18762   test -z "$as_dir" && as_dir=.
18763   for ac_exec_ext in '' $ac_executable_extensions; do
18764   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18765     ac_cv_prog_AR="${ac_tool_prefix}ar"
18766     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18767     break 2
18768   fi
18769 done
18770 done
18771 IFS=$as_save_IFS
18772
18773 fi
18774 fi
18775 AR=$ac_cv_prog_AR
18776 if test -n "$AR"; then
18777   { echo "$as_me:$LINENO: result: $AR" >&5
18778 echo "${ECHO_T}$AR" >&6; }
18779 else
18780   { echo "$as_me:$LINENO: result: no" >&5
18781 echo "${ECHO_T}no" >&6; }
18782 fi
18783
18784
18785 fi
18786 if test -z "$ac_cv_prog_AR"; then
18787   ac_ct_AR=$AR
18788   # Extract the first word of "ar", so it can be a program name with args.
18789 set dummy ar; ac_word=$2
18790 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18791 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18792 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
18793   echo $ECHO_N "(cached) $ECHO_C" >&6
18794 else
18795   if test -n "$ac_ct_AR"; then
18796   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
18797 else
18798 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18799 for as_dir in $PATH
18800 do
18801   IFS=$as_save_IFS
18802   test -z "$as_dir" && as_dir=.
18803   for ac_exec_ext in '' $ac_executable_extensions; do
18804   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18805     ac_cv_prog_ac_ct_AR="ar"
18806     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18807     break 2
18808   fi
18809 done
18810 done
18811 IFS=$as_save_IFS
18812
18813 fi
18814 fi
18815 ac_ct_AR=$ac_cv_prog_ac_ct_AR
18816 if test -n "$ac_ct_AR"; then
18817   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
18818 echo "${ECHO_T}$ac_ct_AR" >&6; }
18819 else
18820   { echo "$as_me:$LINENO: result: no" >&5
18821 echo "${ECHO_T}no" >&6; }
18822 fi
18823
18824   if test "x$ac_ct_AR" = x; then
18825     AR=""
18826   else
18827     case $cross_compiling:$ac_tool_warned in
18828 yes:)
18829 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
18830 whose name does not start with the host triplet.  If you think this
18831 configuration is useful to you, please write to autoconf@gnu.org." >&5
18832 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
18833 whose name does not start with the host triplet.  If you think this
18834 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
18835 ac_tool_warned=yes ;;
18836 esac
18837     AR=$ac_ct_AR
18838   fi
18839 else
18840   AR="$ac_cv_prog_AR"
18841 fi
18842
18843     if test "x$AR" = "x" ; then
18844         { { echo "$as_me:$LINENO: error: ar is needed to build wxWidgets" >&5
18845 echo "$as_me: error: ar is needed to build wxWidgets" >&2;}
18846    { (exit 1); exit 1; }; }
18847     fi
18848 fi
18849
18850
18851 if test "$wxUSE_MAC" = 1; then
18852
18853 retest_macosx_linking=no
18854
18855 OSX_ARCH_OPTS=""
18856 if test "x$wxUSE_MAC_ARCH" != xno; then
18857     OSX_ARCH_OPTS="-arch $wxUSE_MAC_ARCH"
18858 fi
18859
18860     if test "x$wxUSE_UNIVERSAL_BINARY" != xno ; then
18861                         if test "x$wxUSE_UNIVERSAL_BINARY" == xyes; then
18862             # Implicitly turn on the new --with-macosx-sdk using the default
18863             # SDK which provides the behaviour this option has always had.
18864             if test "x$wxUSE_MACOSX_SDK" = "x"; then
18865                 { echo "$as_me:$LINENO: WARNING: Enabling default SDK due to --enable-universal_binary." >&5
18866 echo "$as_me: WARNING: Enabling default SDK due to --enable-universal_binary." >&2;}
18867                 { echo "$as_me:$LINENO: WARNING: If you don't want this, specify --without-macosx-sdk" >&5
18868 echo "$as_me: WARNING: If you don't want this, specify --without-macosx-sdk" >&2;}
18869                 wxUSE_MACOSX_SDK=yes
18870             fi
18871         else
18872             # Complain to user if he specified an argument to --enable-universal_binary
18873             # and also 1) specified --with-macosx-sdk using the default (yes) or
18874             # 2) specified --with-macosx-sdk using a path or 3) specified
18875             # --without-macosx-sdk (no).
18876             if test "x$wxUSE_MACOSX_SDK" != "x" ; then
18877                 { { echo "$as_me:$LINENO: error: Please specify the new --with-macosx-sdk=PATH and do not specify an arg to --enable-universal_binary
18878 See \`config.log' for more details." >&5
18879 echo "$as_me: error: Please specify the new --with-macosx-sdk=PATH and do not specify an arg to --enable-universal_binary
18880 See \`config.log' for more details." >&2;}
18881    { (exit 1); exit 1; }; }
18882             else
18883                 # Put the SDK path into the wxUSE_MACOSX_SDK.  We don't have to
18884                 # special-case the empty string because the below test simply
18885                 # converts "no" to the empty string anyway.
18886                 wxUSE_MACOSX_SDK="$wxUSE_UNIVERSAL_BINARY"
18887                                 { echo "$as_me:$LINENO: WARNING: Please use --with-macosx-sdk=PATH and --enable-universal_binary without an argument" >&5
18888 echo "$as_me: WARNING: Please use --with-macosx-sdk=PATH and --enable-universal_binary without an argument" >&2;}
18889             fi
18890         fi
18891                 OSX_ARCH_OPTS="-arch ppc -arch i386"
18892         if test "$wxUSE_OSX_COCOA" = 1; then
18893             OSX_ARCH_OPTS="$OSX_ARCH_OPTS -arch x86_64"
18894         fi
18895         { echo "$as_me:$LINENO: checking for universal binary architectures" >&5
18896 echo $ECHO_N "checking for universal binary architectures... $ECHO_C" >&6; }
18897         { echo "$as_me:$LINENO: result: $OSX_ARCH_OPTS" >&5
18898 echo "${ECHO_T}$OSX_ARCH_OPTS" >&6; }
18899
18900                                                                                                                 retest_macosx_linking=yes
18901
18902                                         { echo "$as_me:$LINENO: WARNING: Disabling precompiled headers due to universal binary build." >&5
18903 echo "$as_me: WARNING: Disabling precompiled headers due to universal binary build." >&2;}
18904         bk_use_pch=no
18905     fi
18906
18907 CXXFLAGS="$OSX_ARCH_OPTS $CXXFLAGS"
18908 CFLAGS="$OSX_ARCH_OPTS $CFLAGS"
18909 OBJCXXFLAGS="$OSX_ARCH_OPTS $OBJCXXFLAGS"
18910 OBJCFLAGS="$OSX_ARCH_OPTS $OBJCFLAGS"
18911 LDFLAGS="$OSX_ARCH_OPTS $LDFLAGS"
18912
18913 if test "x$wxUSE_MACOSX_SDK" = "xno"; then
18914     wxUSE_MACOSX_SDK=
18915 elif test "x$wxUSE_MACOSX_SDK" = "xyes"; then
18916     # TODO: Search for most recent SDK and use it.
18917     wxUSE_MACOSX_SDK="/Developer/SDKs/MacOSX10.4u.sdk"
18918 fi
18919
18920
18921 if test "x$wxUSE_MACOSX_SDK" != "x"; then
18922     { echo "$as_me:$LINENO: checking for SDK directory $wxUSE_MACOSX_SDK" >&5
18923 echo $ECHO_N "checking for SDK directory $wxUSE_MACOSX_SDK... $ECHO_C" >&6; }
18924     if ! test -d "$wxUSE_MACOSX_SDK"; then
18925         { { echo "$as_me:$LINENO: error: not found
18926 See \`config.log' for more details." >&5
18927 echo "$as_me: error: not found
18928 See \`config.log' for more details." >&2;}
18929    { (exit 1); exit 1; }; }
18930     else
18931         { echo "$as_me:$LINENO: result: exists" >&5
18932 echo "${ECHO_T}exists" >&6; }
18933     fi
18934         MACOSX_SDK_OPTS="-isysroot $wxUSE_MACOSX_SDK"
18935     retest_macosx_linking=yes
18936             fi
18937
18938 if test "x$wxUSE_MACOSX_VERSION_MIN" = "xno"; then
18939     wxUSE_MACOSX_VERSION_MIN=
18940 elif test "x$wxUSE_MACOSX_VERSION_MIN" = "xyes"; then
18941     if test "x$wxUSE_MACOSX_SDK" != "x"; then
18942         { echo "$as_me:$LINENO: checking SDK deployment version" >&5
18943 echo $ECHO_N "checking SDK deployment version... $ECHO_C" >&6; }
18944
18945         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/'`
18946
18947         # If that failed, try again with the new key
18948         if test "x$MACOSX_SDK_PLIST_VERSION_MIN" == "x"; then
18949
18950             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/'`
18951
18952         fi
18953
18954         if test "x$MACOSX_SDK_PLIST_VERSION_MIN" != "x"; then
18955             wxUSE_MACOSX_VERSION_MIN=$MACOSX_SDK_PLIST_VERSION_MIN
18956             { echo "$as_me:$LINENO: result: $wxUSE_MACOSX_VERSION_MIN" >&5
18957 echo "${ECHO_T}$wxUSE_MACOSX_VERSION_MIN" >&6; }
18958         else
18959             { echo "$as_me:$LINENO: WARNING: Could not determine deployment target from SDKSettings.plist" >&5
18960 echo "$as_me: WARNING: Could not determine deployment target from SDKSettings.plist" >&2;}
18961             wxUSE_MACOSX_VERSION_MIN=
18962         fi
18963     else
18964         wxUSE_MACOSX_VERSION_MIN=
18965     fi
18966 elif test "x$wxUSE_MACOSX_VERSION_MIN" = "x"; then
18967     for ac_prog in sw_vers
18968 do
18969   # Extract the first word of "$ac_prog", so it can be a program name with args.
18970 set dummy $ac_prog; ac_word=$2
18971 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18972 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18973 if test "${ac_cv_prog_OSX_SW_VERS+set}" = set; then
18974   echo $ECHO_N "(cached) $ECHO_C" >&6
18975 else
18976   if test -n "$OSX_SW_VERS"; then
18977   ac_cv_prog_OSX_SW_VERS="$OSX_SW_VERS" # Let the user override the test.
18978 else
18979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18980 for as_dir in $PATH
18981 do
18982   IFS=$as_save_IFS
18983   test -z "$as_dir" && as_dir=.
18984   for ac_exec_ext in '' $ac_executable_extensions; do
18985   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18986     ac_cv_prog_OSX_SW_VERS="$ac_prog"
18987     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18988     break 2
18989   fi
18990 done
18991 done
18992 IFS=$as_save_IFS
18993
18994 fi
18995 fi
18996 OSX_SW_VERS=$ac_cv_prog_OSX_SW_VERS
18997 if test -n "$OSX_SW_VERS"; then
18998   { echo "$as_me:$LINENO: result: $OSX_SW_VERS" >&5
18999 echo "${ECHO_T}$OSX_SW_VERS" >&6; }
19000 else
19001   { echo "$as_me:$LINENO: result: no" >&5
19002 echo "${ECHO_T}no" >&6; }
19003 fi
19004
19005
19006   test -n "$OSX_SW_VERS" && break
19007 done
19008
19009     if test "$OSX_SW_VERS" != ""; then
19010         OSX_VERSION=`sw_vers -productVersion | grep 10.[0-9]`
19011     else
19012                         { echo "$as_me:$LINENO: WARNING: Assuming OS X 10.4, use --with-macosx-version-min to override." >&5
19013 echo "$as_me: WARNING: Assuming OS X 10.4, use --with-macosx-version-min to override." >&2;}
19014         OSX_VERSION="10.4"
19015     fi
19016
19017     case "$OSX_VERSION" in
19018         10.4* )
19019             wxUSE_MACOSX_VERSION_MIN=10.4
19020             ;;
19021
19022         * )
19023             if test "$wxUSE_OSX_CARBON" = 1; then
19024                 # otherwise configure stops on leopard for universal_binary
19025                 wxUSE_MACOSX_VERSION_MIN=10.4
19026             else
19027                 # for Cocoa, use 10.5 to be able to compile it in 64 bits too
19028                 wxUSE_MACOSX_VERSION_MIN=10.5
19029             fi
19030             ;;
19031     esac
19032 fi
19033
19034 NEEDS_GCC40="no"
19035 if test "x$wxUSE_MACOSX_VERSION_MIN" == "x10.4"; then
19036     NEEDS_GCC40="yes"
19037 fi
19038
19039 if test "$wxUSE_OSX_CARBON" = 1; then
19040     NEEDS_GCC40="yes"
19041 fi
19042
19043 if test "x$NEEDS_GCC40" == "xyes"; then
19044     # gcc 4.2 cannot compile 10.4 compatible code, so if the user is using it
19045     # and wants 10.4 compatible code, then 'downgrade' to 4.0
19046     # This is also the simplest way to get 32-bit binaries on Snow Leopard.
19047     if test "x$CC" = "xgcc"; then
19048         CCVERSION=`$CC --version | grep 4.[2-9].`
19049         if test "x$CCVERSION" != "x"; then
19050             echo "$as_me:$LINENO: WARNING: gcc >= 4.2 cannot compile 10.4 compatible code. Using gcc 4.0 instead."
19051             CC="gcc-4.0"
19052         fi
19053     fi
19054
19055     if test "x$CXX" = "xg++"; then
19056         CCVERSION=`$CXX --version | grep 4.[2-9].`
19057         if test "x$CCVERSION" != "x"; then
19058             CXX="g++-4.0"
19059         fi
19060     fi
19061 fi
19062
19063 if test "x$MACOSX_SDK_OPTS" != "x"; then
19064     eval "CC=\"$CC $MACOSX_SDK_OPTS\""
19065     eval "CXX=\"$CXX $MACOSX_SDK_OPTS\""
19066     eval "LD=\"$LD $MACOSX_SDK_OPTS\""
19067 fi
19068
19069 if test "x$wxUSE_MACOSX_VERSION_MIN" != "x"; then
19070     if test "$wxUSE_OSX_IPHONE" = 1; then
19071         MACOSX_VERSION_MIN_OPTS="-miphoneos-version-min=$wxUSE_MACOSX_VERSION_MIN"
19072     else
19073         MACOSX_VERSION_MIN_OPTS="-mmacosx-version-min=$wxUSE_MACOSX_VERSION_MIN"
19074     fi
19075     eval "CC=\"$CC $MACOSX_VERSION_MIN_OPTS\""
19076     eval "CXX=\"$CXX $MACOSX_VERSION_MIN_OPTS\""
19077     eval "LD=\"$LD $MACOSX_VERSION_MIN_OPTS\""
19078     retest_macosx_linking=yes
19079 fi
19080
19081 if test "x$retest_macosx_linking" = "xyes"; then
19082     ac_ext=c
19083 ac_cpp='$CPP $CPPFLAGS'
19084 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19085 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19086 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19087
19088     { echo "$as_me:$LINENO: checking if C compiler works with SDK/version options" >&5
19089 echo $ECHO_N "checking if C compiler works with SDK/version options... $ECHO_C" >&6; }
19090     cat >conftest.$ac_ext <<_ACEOF
19091 /* confdefs.h.  */
19092 _ACEOF
19093 cat confdefs.h >>conftest.$ac_ext
19094 cat >>conftest.$ac_ext <<_ACEOF
19095 /* end confdefs.h.  */
19096
19097 int
19098 main ()
19099 {
19100
19101   ;
19102   return 0;
19103 }
19104 _ACEOF
19105 rm -f conftest.$ac_objext conftest$ac_exeext
19106 if { (ac_try="$ac_link"
19107 case "(($ac_try" in
19108   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19109   *) ac_try_echo=$ac_try;;
19110 esac
19111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19112   (eval "$ac_link") 2>conftest.er1
19113   ac_status=$?
19114   grep -v '^ *+' conftest.er1 >conftest.err
19115   rm -f conftest.er1
19116   cat conftest.err >&5
19117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19118   (exit $ac_status); } && {
19119          test -z "$ac_c_werror_flag" ||
19120          test ! -s conftest.err
19121        } && test -s conftest$ac_exeext &&
19122        $as_test_x conftest$ac_exeext; then
19123   { echo "$as_me:$LINENO: result: yes" >&5
19124 echo "${ECHO_T}yes" >&6; }
19125 else
19126   echo "$as_me: failed program was:" >&5
19127 sed 's/^/| /' conftest.$ac_ext >&5
19128
19129         { { echo "$as_me:$LINENO: error: no.  Try a different SDK
19130 See \`config.log' for more details." >&5
19131 echo "$as_me: error: no.  Try a different SDK
19132 See \`config.log' for more details." >&2;}
19133    { (exit 1); exit 1; }; }; exit 1
19134 fi
19135
19136 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19137       conftest$ac_exeext conftest.$ac_ext
19138     ac_ext=c
19139 ac_cpp='$CPP $CPPFLAGS'
19140 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19141 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19142 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19143
19144
19145     ac_ext=cpp
19146 ac_cpp='$CXXCPP $CPPFLAGS'
19147 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19148 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19149 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19150
19151     { echo "$as_me:$LINENO: checking if C++ compiler works with SDK/version options" >&5
19152 echo $ECHO_N "checking if C++ compiler works with SDK/version options... $ECHO_C" >&6; }
19153     cat >conftest.$ac_ext <<_ACEOF
19154 /* confdefs.h.  */
19155 _ACEOF
19156 cat confdefs.h >>conftest.$ac_ext
19157 cat >>conftest.$ac_ext <<_ACEOF
19158 /* end confdefs.h.  */
19159
19160 int
19161 main ()
19162 {
19163
19164   ;
19165   return 0;
19166 }
19167 _ACEOF
19168 rm -f conftest.$ac_objext conftest$ac_exeext
19169 if { (ac_try="$ac_link"
19170 case "(($ac_try" in
19171   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19172   *) ac_try_echo=$ac_try;;
19173 esac
19174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19175   (eval "$ac_link") 2>conftest.er1
19176   ac_status=$?
19177   grep -v '^ *+' conftest.er1 >conftest.err
19178   rm -f conftest.er1
19179   cat conftest.err >&5
19180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19181   (exit $ac_status); } && {
19182          test -z "$ac_cxx_werror_flag" ||
19183          test ! -s conftest.err
19184        } && test -s conftest$ac_exeext &&
19185        $as_test_x conftest$ac_exeext; then
19186   { echo "$as_me:$LINENO: result: yes" >&5
19187 echo "${ECHO_T}yes" >&6; }
19188 else
19189   echo "$as_me: failed program was:" >&5
19190 sed 's/^/| /' conftest.$ac_ext >&5
19191
19192         { { echo "$as_me:$LINENO: error: no.  Try a different SDK
19193 See \`config.log' for more details." >&5
19194 echo "$as_me: error: no.  Try a different SDK
19195 See \`config.log' for more details." >&2;}
19196    { (exit 1); exit 1; }; }; exit 1
19197 fi
19198
19199 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19200       conftest$ac_exeext conftest.$ac_ext
19201     ac_ext=c
19202 ac_cpp='$CPP $CPPFLAGS'
19203 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19204 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19205 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19206
19207 fi
19208
19209 fi
19210 case "${host}" in
19211
19212                 *-*-darwin* )
19213         INSTALL_PROGRAM="cp -fp"
19214         INSTALL_DATA="cp -fp"
19215         ;;
19216     *)
19217         ;;
19218 esac
19219
19220
19221 if test "x$XLCXX" = "xyes" -a "x$USE_AIX" = "x1"; then
19222     CXXFLAGS="-qunique $CXXFLAGS"
19223 fi
19224
19225 case "${host}" in
19226   powerpc-*-darwin* )
19227     { echo "$as_me:$LINENO: checking if __POWERPC__ is already defined" >&5
19228 echo $ECHO_N "checking if __POWERPC__ is already defined... $ECHO_C" >&6; }
19229     cat >conftest.$ac_ext <<_ACEOF
19230 /* confdefs.h.  */
19231 _ACEOF
19232 cat confdefs.h >>conftest.$ac_ext
19233 cat >>conftest.$ac_ext <<_ACEOF
19234 /* end confdefs.h.  */
19235
19236 int
19237 main ()
19238 {
19239 #ifndef __POWERPC__
19240         choke me for lack of PowerPC
19241 #endif
19242
19243   ;
19244   return 0;
19245 }
19246 _ACEOF
19247 rm -f conftest.$ac_objext
19248 if { (ac_try="$ac_compile"
19249 case "(($ac_try" in
19250   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19251   *) ac_try_echo=$ac_try;;
19252 esac
19253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19254   (eval "$ac_compile") 2>conftest.er1
19255   ac_status=$?
19256   grep -v '^ *+' conftest.er1 >conftest.err
19257   rm -f conftest.er1
19258   cat conftest.err >&5
19259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19260   (exit $ac_status); } && {
19261          test -z "$ac_c_werror_flag" ||
19262          test ! -s conftest.err
19263        } && test -s conftest.$ac_objext; then
19264   { echo "$as_me:$LINENO: result: yes" >&5
19265 echo "${ECHO_T}yes" >&6; }
19266 else
19267   echo "$as_me: failed program was:" >&5
19268 sed 's/^/| /' conftest.$ac_ext >&5
19269
19270         { echo "$as_me:$LINENO: result: no" >&5
19271 echo "${ECHO_T}no" >&6; }
19272         cat >>confdefs.h <<\_ACEOF
19273 #define __POWERPC__ 1
19274 _ACEOF
19275
19276
19277 fi
19278
19279 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19280   ;;
19281 esac
19282
19283 case "${host}" in
19284   *-*-darwin* )
19285     { echo "$as_me:$LINENO: checking if CoreFoundation/CFBase.h is usable" >&5
19286 echo $ECHO_N "checking if CoreFoundation/CFBase.h is usable... $ECHO_C" >&6; }
19287     cat >conftest.$ac_ext <<_ACEOF
19288 /* confdefs.h.  */
19289 _ACEOF
19290 cat confdefs.h >>conftest.$ac_ext
19291 cat >>conftest.$ac_ext <<_ACEOF
19292 /* end confdefs.h.  */
19293 #include <CoreFoundation/CFBase.h>
19294
19295 int
19296 main ()
19297 {
19298
19299   ;
19300   return 0;
19301 }
19302 _ACEOF
19303 rm -f conftest.$ac_objext
19304 if { (ac_try="$ac_compile"
19305 case "(($ac_try" in
19306   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19307   *) ac_try_echo=$ac_try;;
19308 esac
19309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19310   (eval "$ac_compile") 2>conftest.er1
19311   ac_status=$?
19312   grep -v '^ *+' conftest.er1 >conftest.err
19313   rm -f conftest.er1
19314   cat conftest.err >&5
19315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19316   (exit $ac_status); } && {
19317          test -z "$ac_c_werror_flag" ||
19318          test ! -s conftest.err
19319        } && test -s conftest.$ac_objext; then
19320   { echo "$as_me:$LINENO: result: yes" >&5
19321 echo "${ECHO_T}yes" >&6; }
19322 else
19323   echo "$as_me: failed program was:" >&5
19324 sed 's/^/| /' conftest.$ac_ext >&5
19325
19326         { echo "$as_me:$LINENO: result: no" >&5
19327 echo "${ECHO_T}no" >&6; }
19328         { echo "$as_me:$LINENO: checking if __CF_USE_FRAMEWORK_INCLUDES__ is required" >&5
19329 echo $ECHO_N "checking if __CF_USE_FRAMEWORK_INCLUDES__ is required... $ECHO_C" >&6; }
19330         cat >conftest.$ac_ext <<_ACEOF
19331 /* confdefs.h.  */
19332 _ACEOF
19333 cat confdefs.h >>conftest.$ac_ext
19334 cat >>conftest.$ac_ext <<_ACEOF
19335 /* end confdefs.h.  */
19336 #define __CF_USE_FRAMEWORK_INCLUDES__
19337 #include <CoreFoundation/CFBase.h>
19338
19339 int
19340 main ()
19341 {
19342
19343   ;
19344   return 0;
19345 }
19346 _ACEOF
19347 rm -f conftest.$ac_objext
19348 if { (ac_try="$ac_compile"
19349 case "(($ac_try" in
19350   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19351   *) ac_try_echo=$ac_try;;
19352 esac
19353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19354   (eval "$ac_compile") 2>conftest.er1
19355   ac_status=$?
19356   grep -v '^ *+' conftest.er1 >conftest.err
19357   rm -f conftest.er1
19358   cat conftest.err >&5
19359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19360   (exit $ac_status); } && {
19361          test -z "$ac_c_werror_flag" ||
19362          test ! -s conftest.err
19363        } && test -s conftest.$ac_objext; then
19364   { echo "$as_me:$LINENO: result: yes" >&5
19365 echo "${ECHO_T}yes" >&6; }
19366                         CPPFLAGS="-D__CF_USE_FRAMEWORK_INCLUDES__ $CPPFLAGS"
19367 else
19368   echo "$as_me: failed program was:" >&5
19369 sed 's/^/| /' conftest.$ac_ext >&5
19370
19371         { { echo "$as_me:$LINENO: error: no.  CoreFoundation not available.
19372 See \`config.log' for more details." >&5
19373 echo "$as_me: error: no.  CoreFoundation not available.
19374 See \`config.log' for more details." >&2;}
19375    { (exit 1); exit 1; }; }
19376
19377 fi
19378
19379 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19380
19381
19382 fi
19383
19384 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19385   ;;
19386 esac
19387
19388 wants_win32=0
19389 doesnt_want_win32=0
19390 case "${host}" in
19391   *-*-cygwin*)
19392       if test "$wxUSE_MSW" = 1 ; then
19393         wants_win32=1
19394       else
19395                         { echo "$as_me:$LINENO: checking if -mno-cygwin is in effect" >&5
19396 echo $ECHO_N "checking if -mno-cygwin is in effect... $ECHO_C" >&6; }
19397 if test "${wx_cv_nocygwin+set}" = set; then
19398   echo $ECHO_N "(cached) $ECHO_C" >&6
19399 else
19400
19401                 cat >conftest.$ac_ext <<_ACEOF
19402 /* confdefs.h.  */
19403 _ACEOF
19404 cat confdefs.h >>conftest.$ac_ext
19405 cat >>conftest.$ac_ext <<_ACEOF
19406 /* end confdefs.h.  */
19407
19408 int
19409 main ()
19410 {
19411
19412                         #ifdef __MINGW32__
19413                             choke me
19414                         #endif
19415
19416   ;
19417   return 0;
19418 }
19419 _ACEOF
19420 rm -f conftest.$ac_objext
19421 if { (ac_try="$ac_compile"
19422 case "(($ac_try" in
19423   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19424   *) ac_try_echo=$ac_try;;
19425 esac
19426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19427   (eval "$ac_compile") 2>conftest.er1
19428   ac_status=$?
19429   grep -v '^ *+' conftest.er1 >conftest.err
19430   rm -f conftest.er1
19431   cat conftest.err >&5
19432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19433   (exit $ac_status); } && {
19434          test -z "$ac_c_werror_flag" ||
19435          test ! -s conftest.err
19436        } && test -s conftest.$ac_objext; then
19437   wx_cv_nocygwin=no
19438 else
19439   echo "$as_me: failed program was:" >&5
19440 sed 's/^/| /' conftest.$ac_ext >&5
19441
19442         wx_cv_nocygwin=yes
19443
19444 fi
19445
19446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19447
19448
19449 fi
19450 { echo "$as_me:$LINENO: result: $wx_cv_nocygwin" >&5
19451 echo "${ECHO_T}$wx_cv_nocygwin" >&6; }
19452
19453         if test "$wx_cv_nocygwin" = "yes"; then
19454             wants_win32=1
19455         else
19456             doesnt_want_win32=1
19457         fi
19458       fi
19459       if test "$wants_win32" = 1 ; then
19460         BAKEFILE_FORCE_PLATFORM=win32
19461       fi
19462   ;;
19463   *-*-mingw*)
19464       wants_win32=1
19465   ;;
19466 esac
19467
19468 if test "$wxUSE_WINE" = "yes"; then
19469     wants_win32=1
19470     LDFLAGS_GUI="-mwindows"
19471 fi
19472
19473 if test "$wants_win32" = 1 ; then
19474     USE_UNIX=0
19475     USE_WIN32=1
19476     cat >>confdefs.h <<\_ACEOF
19477 #define __WIN32__ 1
19478 _ACEOF
19479
19480     cat >>confdefs.h <<\_ACEOF
19481 #define __WIN95__ 1
19482 _ACEOF
19483
19484     cat >>confdefs.h <<\_ACEOF
19485 #define __WINDOWS__ 1
19486 _ACEOF
19487
19488     cat >>confdefs.h <<\_ACEOF
19489 #define __GNUWIN32__ 1
19490 _ACEOF
19491
19492     cat >>confdefs.h <<\_ACEOF
19493 #define STRICT 1
19494 _ACEOF
19495
19496 fi
19497 if test "$doesnt_want_win32" = 1 ; then
19498     USE_UNIX=1
19499     USE_WIN32=0
19500 fi
19501
19502 if test "$USE_UNIX" = 1 ; then
19503     wxUSE_UNIX=yes
19504     cat >>confdefs.h <<\_ACEOF
19505 #define __UNIX__ 1
19506 _ACEOF
19507
19508 fi
19509
19510 case "${host}" in
19511   *-pc-os2_emx | *-pc-os2-emx )
19512                                                       if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then
19513                               { echo "$as_me:$LINENO: checking for drand48 in -lcExt" >&5
19514 echo $ECHO_N "checking for drand48 in -lcExt... $ECHO_C" >&6; }
19515 if test "${ac_cv_lib_cExt_drand48+set}" = set; then
19516   echo $ECHO_N "(cached) $ECHO_C" >&6
19517 else
19518   ac_check_lib_save_LIBS=$LIBS
19519 LIBS="-lcExt  $LIBS"
19520 cat >conftest.$ac_ext <<_ACEOF
19521 /* confdefs.h.  */
19522 _ACEOF
19523 cat confdefs.h >>conftest.$ac_ext
19524 cat >>conftest.$ac_ext <<_ACEOF
19525 /* end confdefs.h.  */
19526
19527 /* Override any GCC internal prototype to avoid an error.
19528    Use char because int might match the return type of a GCC
19529    builtin and then its argument prototype would still apply.  */
19530 #ifdef __cplusplus
19531 extern "C"
19532 #endif
19533 char drand48 ();
19534 int
19535 main ()
19536 {
19537 return drand48 ();
19538   ;
19539   return 0;
19540 }
19541 _ACEOF
19542 rm -f conftest.$ac_objext conftest$ac_exeext
19543 if { (ac_try="$ac_link"
19544 case "(($ac_try" in
19545   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19546   *) ac_try_echo=$ac_try;;
19547 esac
19548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19549   (eval "$ac_link") 2>conftest.er1
19550   ac_status=$?
19551   grep -v '^ *+' conftest.er1 >conftest.err
19552   rm -f conftest.er1
19553   cat conftest.err >&5
19554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19555   (exit $ac_status); } && {
19556          test -z "$ac_c_werror_flag" ||
19557          test ! -s conftest.err
19558        } && test -s conftest$ac_exeext &&
19559        $as_test_x conftest$ac_exeext; then
19560   ac_cv_lib_cExt_drand48=yes
19561 else
19562   echo "$as_me: failed program was:" >&5
19563 sed 's/^/| /' conftest.$ac_ext >&5
19564
19565         ac_cv_lib_cExt_drand48=no
19566 fi
19567
19568 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19569       conftest$ac_exeext conftest.$ac_ext
19570 LIBS=$ac_check_lib_save_LIBS
19571 fi
19572 { echo "$as_me:$LINENO: result: $ac_cv_lib_cExt_drand48" >&5
19573 echo "${ECHO_T}$ac_cv_lib_cExt_drand48" >&6; }
19574 if test $ac_cv_lib_cExt_drand48 = yes; then
19575   LIBS="$LIBS -lcExt"
19576 fi
19577
19578       else
19579                     RESPROGRAMOBJ="\${top_srcdir}/include/wx/os2/wx.res"
19580       fi
19581                                     { echo "$as_me:$LINENO: checking for gcc/libc version" >&5
19582 echo $ECHO_N "checking for gcc/libc version... $ECHO_C" >&6; }
19583 if test "${wx_cv_gccversion+set}" = set; then
19584   echo $ECHO_N "(cached) $ECHO_C" >&6
19585 else
19586
19587           if test "$cross_compiling" = yes; then
19588                 wx_cv_gccversion="EMX2"
19589
19590 else
19591   cat >conftest.$ac_ext <<_ACEOF
19592 /* confdefs.h.  */
19593 _ACEOF
19594 cat confdefs.h >>conftest.$ac_ext
19595 cat >>conftest.$ac_ext <<_ACEOF
19596 /* end confdefs.h.  */
19597
19598                   #include <stdio.h>
19599
19600                   int main()
19601                   {
19602                       FILE *f=fopen("conftestval", "w");
19603                       if (!f) exit(1);
19604                       fprintf(f,
19605                   #if (__GNUC__ < 3)
19606                               "EMX2"
19607                   #elif (__GNUC__==3) && ((__GNUC_MINOR__ < 2) || ((__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__<2)))
19608                               "EMX3"
19609                   #elif (__GNUC__==3) && (__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__==2)
19610                               "Innotek5"
19611                   #else
19612                               "Innotek6"
19613                   #endif
19614                       );
19615                       exit(0);
19616                   }
19617
19618 _ACEOF
19619 rm -f conftest$ac_exeext
19620 if { (ac_try="$ac_link"
19621 case "(($ac_try" in
19622   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19623   *) ac_try_echo=$ac_try;;
19624 esac
19625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19626   (eval "$ac_link") 2>&5
19627   ac_status=$?
19628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19629   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19630   { (case "(($ac_try" in
19631   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19632   *) ac_try_echo=$ac_try;;
19633 esac
19634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19635   (eval "$ac_try") 2>&5
19636   ac_status=$?
19637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19638   (exit $ac_status); }; }; then
19639   wx_cv_gccversion=`cat conftestval`
19640 else
19641   echo "$as_me: program exited with status $ac_status" >&5
19642 echo "$as_me: failed program was:" >&5
19643 sed 's/^/| /' conftest.$ac_ext >&5
19644
19645 ( exit $ac_status )
19646 wx_cv_gccversion="EMX2"
19647 fi
19648 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19649 fi
19650
19651
19652
19653 fi
19654 { echo "$as_me:$LINENO: result: $wx_cv_gccversion" >&5
19655 echo "${ECHO_T}$wx_cv_gccversion" >&6; }
19656       if test "$wx_cv_gccversion" = "EMX2"; then
19657           LIBS="$LIBS -lstdcpp"
19658           LDFLAGS="$LDFLAGS -Zsysv-signals"
19659       else
19660           if test "$wx_cv_gccversion" = "EMX3"; then
19661               LIBS="$LIBS -lstdcxx -lgcc"
19662               LDFLAGS="$LDFLAGS -Zsysv-signals"
19663           else
19664               LIBS="$LIBS -lstdc++"
19665           fi
19666       fi
19667       if test "$wxUSE_SHARED" = "yes" -a "$wxUSE_OMF" = "no"; then
19668         { echo "$as_me:$LINENO: WARNING: Building DLLs requires OMF mode, enabled" >&5
19669 echo "$as_me: WARNING: Building DLLs requires OMF mode, enabled" >&2;}
19670         wxUSE_OMF=yes
19671         enable_omf=yes
19672       fi
19673         ;;
19674   *)
19675
19676       { echo "$as_me:$LINENO: checking for strcasecmp() in string.h" >&5
19677 echo $ECHO_N "checking for strcasecmp() in string.h... $ECHO_C" >&6; }
19678 if test "${ac_cv_string_strcasecmp+set}" = set; then
19679   echo $ECHO_N "(cached) $ECHO_C" >&6
19680 else
19681
19682           cat >conftest.$ac_ext <<_ACEOF
19683 /* confdefs.h.  */
19684 _ACEOF
19685 cat confdefs.h >>conftest.$ac_ext
19686 cat >>conftest.$ac_ext <<_ACEOF
19687 /* end confdefs.h.  */
19688
19689               #include <string.h>
19690
19691 int
19692 main ()
19693 {
19694
19695                   strcasecmp("foo", "bar");
19696
19697   ;
19698   return 0;
19699 }
19700 _ACEOF
19701 rm -f conftest.$ac_objext conftest$ac_exeext
19702 if { (ac_try="$ac_link"
19703 case "(($ac_try" in
19704   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19705   *) ac_try_echo=$ac_try;;
19706 esac
19707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19708   (eval "$ac_link") 2>conftest.er1
19709   ac_status=$?
19710   grep -v '^ *+' conftest.er1 >conftest.err
19711   rm -f conftest.er1
19712   cat conftest.err >&5
19713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19714   (exit $ac_status); } && {
19715          test -z "$ac_c_werror_flag" ||
19716          test ! -s conftest.err
19717        } && test -s conftest$ac_exeext &&
19718        $as_test_x conftest$ac_exeext; then
19719   ac_cv_string_strcasecmp=yes
19720 else
19721   echo "$as_me: failed program was:" >&5
19722 sed 's/^/| /' conftest.$ac_ext >&5
19723
19724         ac_cv_string_strcasecmp=no
19725
19726 fi
19727
19728 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19729       conftest$ac_exeext conftest.$ac_ext
19730
19731 fi
19732 { echo "$as_me:$LINENO: result: $ac_cv_string_strcasecmp" >&5
19733 echo "${ECHO_T}$ac_cv_string_strcasecmp" >&6; }
19734
19735       if test x"$ac_cv_string_strcasecmp" = "xyes"; then
19736           cat >>confdefs.h <<\_ACEOF
19737 #define HAVE_STRCASECMP_IN_STRING_H 1
19738 _ACEOF
19739
19740       else
19741           { echo "$as_me:$LINENO: checking for strcasecmp() in strings.h" >&5
19742 echo $ECHO_N "checking for strcasecmp() in strings.h... $ECHO_C" >&6; }
19743 if test "${ac_cv_strings_strcasecmp+set}" = set; then
19744   echo $ECHO_N "(cached) $ECHO_C" >&6
19745 else
19746
19747               cat >conftest.$ac_ext <<_ACEOF
19748 /* confdefs.h.  */
19749 _ACEOF
19750 cat confdefs.h >>conftest.$ac_ext
19751 cat >>conftest.$ac_ext <<_ACEOF
19752 /* end confdefs.h.  */
19753
19754                   #include <strings.h>
19755
19756 int
19757 main ()
19758 {
19759
19760                       strcasecmp("foo", "bar");
19761
19762   ;
19763   return 0;
19764 }
19765 _ACEOF
19766 rm -f conftest.$ac_objext conftest$ac_exeext
19767 if { (ac_try="$ac_link"
19768 case "(($ac_try" in
19769   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19770   *) ac_try_echo=$ac_try;;
19771 esac
19772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19773   (eval "$ac_link") 2>conftest.er1
19774   ac_status=$?
19775   grep -v '^ *+' conftest.er1 >conftest.err
19776   rm -f conftest.er1
19777   cat conftest.err >&5
19778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19779   (exit $ac_status); } && {
19780          test -z "$ac_c_werror_flag" ||
19781          test ! -s conftest.err
19782        } && test -s conftest$ac_exeext &&
19783        $as_test_x conftest$ac_exeext; then
19784   ac_cv_strings_strcasecmp=yes
19785 else
19786   echo "$as_me: failed program was:" >&5
19787 sed 's/^/| /' conftest.$ac_ext >&5
19788
19789         ac_cv_strings_strcasecmp=no
19790
19791 fi
19792
19793 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19794       conftest$ac_exeext conftest.$ac_ext
19795
19796 fi
19797 { echo "$as_me:$LINENO: result: $ac_cv_strings_strcasecmp" >&5
19798 echo "${ECHO_T}$ac_cv_strings_strcasecmp" >&6; }
19799
19800           if test x"$ac_cv_strings_strcasecmp" = "xyes"; then
19801               cat >>confdefs.h <<\_ACEOF
19802 #define HAVE_STRCASECMP_IN_STRINGS_H 1
19803 _ACEOF
19804
19805           else
19806               { { echo "$as_me:$LINENO: error: No case-insensitive string comparison function found." >&5
19807 echo "$as_me: error: No case-insensitive string comparison function found." >&2;}
19808    { (exit 1); exit 1; }; }
19809           fi
19810       fi
19811
19812         ;;
19813 esac
19814
19815
19816 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
19817 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
19818 if test "${ac_cv_header_stdc+set}" = set; then
19819   echo $ECHO_N "(cached) $ECHO_C" >&6
19820 else
19821   cat >conftest.$ac_ext <<_ACEOF
19822 /* confdefs.h.  */
19823 _ACEOF
19824 cat confdefs.h >>conftest.$ac_ext
19825 cat >>conftest.$ac_ext <<_ACEOF
19826 /* end confdefs.h.  */
19827 #include <stdlib.h>
19828 #include <stdarg.h>
19829 #include <string.h>
19830 #include <float.h>
19831
19832 int
19833 main ()
19834 {
19835
19836   ;
19837   return 0;
19838 }
19839 _ACEOF
19840 rm -f conftest.$ac_objext
19841 if { (ac_try="$ac_compile"
19842 case "(($ac_try" in
19843   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19844   *) ac_try_echo=$ac_try;;
19845 esac
19846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19847   (eval "$ac_compile") 2>conftest.er1
19848   ac_status=$?
19849   grep -v '^ *+' conftest.er1 >conftest.err
19850   rm -f conftest.er1
19851   cat conftest.err >&5
19852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19853   (exit $ac_status); } && {
19854          test -z "$ac_c_werror_flag" ||
19855          test ! -s conftest.err
19856        } && test -s conftest.$ac_objext; then
19857   ac_cv_header_stdc=yes
19858 else
19859   echo "$as_me: failed program was:" >&5
19860 sed 's/^/| /' conftest.$ac_ext >&5
19861
19862         ac_cv_header_stdc=no
19863 fi
19864
19865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19866
19867 if test $ac_cv_header_stdc = yes; then
19868   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
19869   cat >conftest.$ac_ext <<_ACEOF
19870 /* confdefs.h.  */
19871 _ACEOF
19872 cat confdefs.h >>conftest.$ac_ext
19873 cat >>conftest.$ac_ext <<_ACEOF
19874 /* end confdefs.h.  */
19875 #include <string.h>
19876
19877 _ACEOF
19878 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19879   $EGREP "memchr" >/dev/null 2>&1; then
19880   :
19881 else
19882   ac_cv_header_stdc=no
19883 fi
19884 rm -f conftest*
19885
19886 fi
19887
19888 if test $ac_cv_header_stdc = yes; then
19889   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
19890   cat >conftest.$ac_ext <<_ACEOF
19891 /* confdefs.h.  */
19892 _ACEOF
19893 cat confdefs.h >>conftest.$ac_ext
19894 cat >>conftest.$ac_ext <<_ACEOF
19895 /* end confdefs.h.  */
19896 #include <stdlib.h>
19897
19898 _ACEOF
19899 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19900   $EGREP "free" >/dev/null 2>&1; then
19901   :
19902 else
19903   ac_cv_header_stdc=no
19904 fi
19905 rm -f conftest*
19906
19907 fi
19908
19909 if test $ac_cv_header_stdc = yes; then
19910   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
19911   if test "$cross_compiling" = yes; then
19912   :
19913 else
19914   cat >conftest.$ac_ext <<_ACEOF
19915 /* confdefs.h.  */
19916 _ACEOF
19917 cat confdefs.h >>conftest.$ac_ext
19918 cat >>conftest.$ac_ext <<_ACEOF
19919 /* end confdefs.h.  */
19920 #include <ctype.h>
19921 #include <stdlib.h>
19922 #if ((' ' & 0x0FF) == 0x020)
19923 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19924 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19925 #else
19926 # define ISLOWER(c) \
19927                    (('a' <= (c) && (c) <= 'i') \
19928                      || ('j' <= (c) && (c) <= 'r') \
19929                      || ('s' <= (c) && (c) <= 'z'))
19930 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
19931 #endif
19932
19933 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
19934 int
19935 main ()
19936 {
19937   int i;
19938   for (i = 0; i < 256; i++)
19939     if (XOR (islower (i), ISLOWER (i))
19940         || toupper (i) != TOUPPER (i))
19941       return 2;
19942   return 0;
19943 }
19944 _ACEOF
19945 rm -f conftest$ac_exeext
19946 if { (ac_try="$ac_link"
19947 case "(($ac_try" in
19948   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19949   *) ac_try_echo=$ac_try;;
19950 esac
19951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19952   (eval "$ac_link") 2>&5
19953   ac_status=$?
19954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19955   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19956   { (case "(($ac_try" in
19957   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19958   *) ac_try_echo=$ac_try;;
19959 esac
19960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19961   (eval "$ac_try") 2>&5
19962   ac_status=$?
19963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19964   (exit $ac_status); }; }; then
19965   :
19966 else
19967   echo "$as_me: program exited with status $ac_status" >&5
19968 echo "$as_me: failed program was:" >&5
19969 sed 's/^/| /' conftest.$ac_ext >&5
19970
19971 ( exit $ac_status )
19972 ac_cv_header_stdc=no
19973 fi
19974 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19975 fi
19976
19977
19978 fi
19979 fi
19980 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
19981 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
19982 if test $ac_cv_header_stdc = yes; then
19983
19984 cat >>confdefs.h <<\_ACEOF
19985 #define STDC_HEADERS 1
19986 _ACEOF
19987
19988 fi
19989
19990 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
19991
19992
19993
19994
19995
19996
19997
19998
19999
20000 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
20001                   inttypes.h stdint.h unistd.h
20002 do
20003 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20004 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20005 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20006 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20007   echo $ECHO_N "(cached) $ECHO_C" >&6
20008 else
20009   cat >conftest.$ac_ext <<_ACEOF
20010 /* confdefs.h.  */
20011 _ACEOF
20012 cat confdefs.h >>conftest.$ac_ext
20013 cat >>conftest.$ac_ext <<_ACEOF
20014 /* end confdefs.h.  */
20015 $ac_includes_default
20016
20017 #include <$ac_header>
20018 _ACEOF
20019 rm -f conftest.$ac_objext
20020 if { (ac_try="$ac_compile"
20021 case "(($ac_try" in
20022   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20023   *) ac_try_echo=$ac_try;;
20024 esac
20025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20026   (eval "$ac_compile") 2>conftest.er1
20027   ac_status=$?
20028   grep -v '^ *+' conftest.er1 >conftest.err
20029   rm -f conftest.er1
20030   cat conftest.err >&5
20031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20032   (exit $ac_status); } && {
20033          test -z "$ac_c_werror_flag" ||
20034          test ! -s conftest.err
20035        } && test -s conftest.$ac_objext; then
20036   eval "$as_ac_Header=yes"
20037 else
20038   echo "$as_me: failed program was:" >&5
20039 sed 's/^/| /' conftest.$ac_ext >&5
20040
20041         eval "$as_ac_Header=no"
20042 fi
20043
20044 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20045 fi
20046 ac_res=`eval echo '${'$as_ac_Header'}'`
20047                { echo "$as_me:$LINENO: result: $ac_res" >&5
20048 echo "${ECHO_T}$ac_res" >&6; }
20049 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20050   cat >>confdefs.h <<_ACEOF
20051 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20052 _ACEOF
20053
20054 fi
20055
20056 done
20057
20058
20059
20060
20061 for ac_header in langinfo.h wchar.h
20062 do
20063 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20064 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20065 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20066 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20067   echo $ECHO_N "(cached) $ECHO_C" >&6
20068 else
20069   cat >conftest.$ac_ext <<_ACEOF
20070 /* confdefs.h.  */
20071 _ACEOF
20072 cat confdefs.h >>conftest.$ac_ext
20073 cat >>conftest.$ac_ext <<_ACEOF
20074 /* end confdefs.h.  */
20075 $ac_includes_default
20076
20077 #include <$ac_header>
20078 _ACEOF
20079 rm -f conftest.$ac_objext
20080 if { (ac_try="$ac_compile"
20081 case "(($ac_try" in
20082   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20083   *) ac_try_echo=$ac_try;;
20084 esac
20085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20086   (eval "$ac_compile") 2>conftest.er1
20087   ac_status=$?
20088   grep -v '^ *+' conftest.er1 >conftest.err
20089   rm -f conftest.er1
20090   cat conftest.err >&5
20091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20092   (exit $ac_status); } && {
20093          test -z "$ac_c_werror_flag" ||
20094          test ! -s conftest.err
20095        } && test -s conftest.$ac_objext; then
20096   eval "$as_ac_Header=yes"
20097 else
20098   echo "$as_me: failed program was:" >&5
20099 sed 's/^/| /' conftest.$ac_ext >&5
20100
20101         eval "$as_ac_Header=no"
20102 fi
20103
20104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20105 fi
20106 ac_res=`eval echo '${'$as_ac_Header'}'`
20107                { echo "$as_me:$LINENO: result: $ac_res" >&5
20108 echo "${ECHO_T}$ac_res" >&6; }
20109 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20110   cat >>confdefs.h <<_ACEOF
20111 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20112 _ACEOF
20113
20114 fi
20115
20116 done
20117
20118
20119 if test "$ac_cv_header_wchar_h" != "yes"; then
20120
20121 for ac_header in wcstr.h
20122 do
20123 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20124 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20125 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20126 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20127   echo $ECHO_N "(cached) $ECHO_C" >&6
20128 else
20129   cat >conftest.$ac_ext <<_ACEOF
20130 /* confdefs.h.  */
20131 _ACEOF
20132 cat confdefs.h >>conftest.$ac_ext
20133 cat >>conftest.$ac_ext <<_ACEOF
20134 /* end confdefs.h.  */
20135 $ac_includes_default
20136
20137 #include <$ac_header>
20138 _ACEOF
20139 rm -f conftest.$ac_objext
20140 if { (ac_try="$ac_compile"
20141 case "(($ac_try" in
20142   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20143   *) ac_try_echo=$ac_try;;
20144 esac
20145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20146   (eval "$ac_compile") 2>conftest.er1
20147   ac_status=$?
20148   grep -v '^ *+' conftest.er1 >conftest.err
20149   rm -f conftest.er1
20150   cat conftest.err >&5
20151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20152   (exit $ac_status); } && {
20153          test -z "$ac_c_werror_flag" ||
20154          test ! -s conftest.err
20155        } && test -s conftest.$ac_objext; then
20156   eval "$as_ac_Header=yes"
20157 else
20158   echo "$as_me: failed program was:" >&5
20159 sed 's/^/| /' conftest.$ac_ext >&5
20160
20161         eval "$as_ac_Header=no"
20162 fi
20163
20164 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20165 fi
20166 ac_res=`eval echo '${'$as_ac_Header'}'`
20167                { echo "$as_me:$LINENO: result: $ac_res" >&5
20168 echo "${ECHO_T}$ac_res" >&6; }
20169 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20170   cat >>confdefs.h <<_ACEOF
20171 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20172 _ACEOF
20173
20174 fi
20175
20176 done
20177
20178 fi
20179
20180 case "${host}" in
20181   *-pc-os2_emx | *-pc-os2-emx )
20182                   if test $ac_cv_header_langinfo_h = "yes" \
20183                 -a \(   "$wx_cv_gccversion" = "EMX2" \
20184                      -o "$wx_cv_gccversion" = "EMX3" \
20185                      -o "$wx_cv_gccversion" = "Innotek5" \); then
20186           LIBS="$LIBS -lintl"
20187       fi
20188   ;;
20189 esac
20190
20191 if test "$USE_UNIX" = 1 ; then
20192
20193 for ac_header in sys/select.h
20194 do
20195 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20196 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20197 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20198 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20199   echo $ECHO_N "(cached) $ECHO_C" >&6
20200 else
20201   cat >conftest.$ac_ext <<_ACEOF
20202 /* confdefs.h.  */
20203 _ACEOF
20204 cat confdefs.h >>conftest.$ac_ext
20205 cat >>conftest.$ac_ext <<_ACEOF
20206 /* end confdefs.h.  */
20207 $ac_includes_default
20208
20209 #include <$ac_header>
20210 _ACEOF
20211 rm -f conftest.$ac_objext
20212 if { (ac_try="$ac_compile"
20213 case "(($ac_try" in
20214   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20215   *) ac_try_echo=$ac_try;;
20216 esac
20217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20218   (eval "$ac_compile") 2>conftest.er1
20219   ac_status=$?
20220   grep -v '^ *+' conftest.er1 >conftest.err
20221   rm -f conftest.er1
20222   cat conftest.err >&5
20223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20224   (exit $ac_status); } && {
20225          test -z "$ac_c_werror_flag" ||
20226          test ! -s conftest.err
20227        } && test -s conftest.$ac_objext; then
20228   eval "$as_ac_Header=yes"
20229 else
20230   echo "$as_me: failed program was:" >&5
20231 sed 's/^/| /' conftest.$ac_ext >&5
20232
20233         eval "$as_ac_Header=no"
20234 fi
20235
20236 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20237 fi
20238 ac_res=`eval echo '${'$as_ac_Header'}'`
20239                { echo "$as_me:$LINENO: result: $ac_res" >&5
20240 echo "${ECHO_T}$ac_res" >&6; }
20241 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20242   cat >>confdefs.h <<_ACEOF
20243 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20244 _ACEOF
20245
20246 fi
20247
20248 done
20249
20250 fi
20251
20252
20253 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
20254 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
20255 if test "${ac_cv_c_const+set}" = set; then
20256   echo $ECHO_N "(cached) $ECHO_C" >&6
20257 else
20258   cat >conftest.$ac_ext <<_ACEOF
20259 /* confdefs.h.  */
20260 _ACEOF
20261 cat confdefs.h >>conftest.$ac_ext
20262 cat >>conftest.$ac_ext <<_ACEOF
20263 /* end confdefs.h.  */
20264
20265 int
20266 main ()
20267 {
20268 /* FIXME: Include the comments suggested by Paul. */
20269 #ifndef __cplusplus
20270   /* Ultrix mips cc rejects this.  */
20271   typedef int charset[2];
20272   const charset cs;
20273   /* SunOS 4.1.1 cc rejects this.  */
20274   char const *const *pcpcc;
20275   char **ppc;
20276   /* NEC SVR4.0.2 mips cc rejects this.  */
20277   struct point {int x, y;};
20278   static struct point const zero = {0,0};
20279   /* AIX XL C 1.02.0.0 rejects this.
20280      It does not let you subtract one const X* pointer from another in
20281      an arm of an if-expression whose if-part is not a constant
20282      expression */
20283   const char *g = "string";
20284   pcpcc = &g + (g ? g-g : 0);
20285   /* HPUX 7.0 cc rejects these. */
20286   ++pcpcc;
20287   ppc = (char**) pcpcc;
20288   pcpcc = (char const *const *) ppc;
20289   { /* SCO 3.2v4 cc rejects this.  */
20290     char *t;
20291     char const *s = 0 ? (char *) 0 : (char const *) 0;
20292
20293     *t++ = 0;
20294     if (s) return 0;
20295   }
20296   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
20297     int x[] = {25, 17};
20298     const int *foo = &x[0];
20299     ++foo;
20300   }
20301   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
20302     typedef const int *iptr;
20303     iptr p = 0;
20304     ++p;
20305   }
20306   { /* AIX XL C 1.02.0.0 rejects this saying
20307        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
20308     struct s { int j; const int *ap[3]; };
20309     struct s *b; b->j = 5;
20310   }
20311   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
20312     const int foo = 10;
20313     if (!foo) return 0;
20314   }
20315   return !cs[0] && !zero.x;
20316 #endif
20317
20318   ;
20319   return 0;
20320 }
20321 _ACEOF
20322 rm -f conftest.$ac_objext
20323 if { (ac_try="$ac_compile"
20324 case "(($ac_try" in
20325   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20326   *) ac_try_echo=$ac_try;;
20327 esac
20328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20329   (eval "$ac_compile") 2>conftest.er1
20330   ac_status=$?
20331   grep -v '^ *+' conftest.er1 >conftest.err
20332   rm -f conftest.er1
20333   cat conftest.err >&5
20334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20335   (exit $ac_status); } && {
20336          test -z "$ac_c_werror_flag" ||
20337          test ! -s conftest.err
20338        } && test -s conftest.$ac_objext; then
20339   ac_cv_c_const=yes
20340 else
20341   echo "$as_me: failed program was:" >&5
20342 sed 's/^/| /' conftest.$ac_ext >&5
20343
20344         ac_cv_c_const=no
20345 fi
20346
20347 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20348 fi
20349 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
20350 echo "${ECHO_T}$ac_cv_c_const" >&6; }
20351 if test $ac_cv_c_const = no; then
20352
20353 cat >>confdefs.h <<\_ACEOF
20354 #define const
20355 _ACEOF
20356
20357 fi
20358
20359 { echo "$as_me:$LINENO: checking for inline" >&5
20360 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
20361 if test "${ac_cv_c_inline+set}" = set; then
20362   echo $ECHO_N "(cached) $ECHO_C" >&6
20363 else
20364   ac_cv_c_inline=no
20365 for ac_kw in inline __inline__ __inline; do
20366   cat >conftest.$ac_ext <<_ACEOF
20367 /* confdefs.h.  */
20368 _ACEOF
20369 cat confdefs.h >>conftest.$ac_ext
20370 cat >>conftest.$ac_ext <<_ACEOF
20371 /* end confdefs.h.  */
20372 #ifndef __cplusplus
20373 typedef int foo_t;
20374 static $ac_kw foo_t static_foo () {return 0; }
20375 $ac_kw foo_t foo () {return 0; }
20376 #endif
20377
20378 _ACEOF
20379 rm -f conftest.$ac_objext
20380 if { (ac_try="$ac_compile"
20381 case "(($ac_try" in
20382   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20383   *) ac_try_echo=$ac_try;;
20384 esac
20385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20386   (eval "$ac_compile") 2>conftest.er1
20387   ac_status=$?
20388   grep -v '^ *+' conftest.er1 >conftest.err
20389   rm -f conftest.er1
20390   cat conftest.err >&5
20391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20392   (exit $ac_status); } && {
20393          test -z "$ac_c_werror_flag" ||
20394          test ! -s conftest.err
20395        } && test -s conftest.$ac_objext; then
20396   ac_cv_c_inline=$ac_kw
20397 else
20398   echo "$as_me: failed program was:" >&5
20399 sed 's/^/| /' conftest.$ac_ext >&5
20400
20401
20402 fi
20403
20404 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20405   test "$ac_cv_c_inline" != no && break
20406 done
20407
20408 fi
20409 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
20410 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
20411
20412
20413 case $ac_cv_c_inline in
20414   inline | yes) ;;
20415   *)
20416     case $ac_cv_c_inline in
20417       no) ac_val=;;
20418       *) ac_val=$ac_cv_c_inline;;
20419     esac
20420     cat >>confdefs.h <<_ACEOF
20421 #ifndef __cplusplus
20422 #define inline $ac_val
20423 #endif
20424 _ACEOF
20425     ;;
20426 esac
20427
20428
20429 { echo "$as_me:$LINENO: checking for short" >&5
20430 echo $ECHO_N "checking for short... $ECHO_C" >&6; }
20431 if test "${ac_cv_type_short+set}" = set; then
20432   echo $ECHO_N "(cached) $ECHO_C" >&6
20433 else
20434   cat >conftest.$ac_ext <<_ACEOF
20435 /* confdefs.h.  */
20436 _ACEOF
20437 cat confdefs.h >>conftest.$ac_ext
20438 cat >>conftest.$ac_ext <<_ACEOF
20439 /* end confdefs.h.  */
20440 $ac_includes_default
20441 typedef short ac__type_new_;
20442 int
20443 main ()
20444 {
20445 if ((ac__type_new_ *) 0)
20446   return 0;
20447 if (sizeof (ac__type_new_))
20448   return 0;
20449   ;
20450   return 0;
20451 }
20452 _ACEOF
20453 rm -f conftest.$ac_objext
20454 if { (ac_try="$ac_compile"
20455 case "(($ac_try" in
20456   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20457   *) ac_try_echo=$ac_try;;
20458 esac
20459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20460   (eval "$ac_compile") 2>conftest.er1
20461   ac_status=$?
20462   grep -v '^ *+' conftest.er1 >conftest.err
20463   rm -f conftest.er1
20464   cat conftest.err >&5
20465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20466   (exit $ac_status); } && {
20467          test -z "$ac_c_werror_flag" ||
20468          test ! -s conftest.err
20469        } && test -s conftest.$ac_objext; then
20470   ac_cv_type_short=yes
20471 else
20472   echo "$as_me: failed program was:" >&5
20473 sed 's/^/| /' conftest.$ac_ext >&5
20474
20475         ac_cv_type_short=no
20476 fi
20477
20478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20479 fi
20480 { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
20481 echo "${ECHO_T}$ac_cv_type_short" >&6; }
20482
20483 # The cast to long int works around a bug in the HP C Compiler
20484 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20485 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20486 # This bug is HP SR number 8606223364.
20487 { echo "$as_me:$LINENO: checking size of short" >&5
20488 echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
20489 if test "${ac_cv_sizeof_short+set}" = set; then
20490   echo $ECHO_N "(cached) $ECHO_C" >&6
20491 else
20492   if test "$cross_compiling" = yes; then
20493   # Depending upon the size, compute the lo and hi bounds.
20494 cat >conftest.$ac_ext <<_ACEOF
20495 /* confdefs.h.  */
20496 _ACEOF
20497 cat confdefs.h >>conftest.$ac_ext
20498 cat >>conftest.$ac_ext <<_ACEOF
20499 /* end confdefs.h.  */
20500 $ac_includes_default
20501    typedef short ac__type_sizeof_;
20502 int
20503 main ()
20504 {
20505 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
20506 test_array [0] = 0
20507
20508   ;
20509   return 0;
20510 }
20511 _ACEOF
20512 rm -f conftest.$ac_objext
20513 if { (ac_try="$ac_compile"
20514 case "(($ac_try" in
20515   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20516   *) ac_try_echo=$ac_try;;
20517 esac
20518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20519   (eval "$ac_compile") 2>conftest.er1
20520   ac_status=$?
20521   grep -v '^ *+' conftest.er1 >conftest.err
20522   rm -f conftest.er1
20523   cat conftest.err >&5
20524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20525   (exit $ac_status); } && {
20526          test -z "$ac_c_werror_flag" ||
20527          test ! -s conftest.err
20528        } && test -s conftest.$ac_objext; then
20529   ac_lo=0 ac_mid=0
20530   while :; do
20531     cat >conftest.$ac_ext <<_ACEOF
20532 /* confdefs.h.  */
20533 _ACEOF
20534 cat confdefs.h >>conftest.$ac_ext
20535 cat >>conftest.$ac_ext <<_ACEOF
20536 /* end confdefs.h.  */
20537 $ac_includes_default
20538    typedef short ac__type_sizeof_;
20539 int
20540 main ()
20541 {
20542 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
20543 test_array [0] = 0
20544
20545   ;
20546   return 0;
20547 }
20548 _ACEOF
20549 rm -f conftest.$ac_objext
20550 if { (ac_try="$ac_compile"
20551 case "(($ac_try" in
20552   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20553   *) ac_try_echo=$ac_try;;
20554 esac
20555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20556   (eval "$ac_compile") 2>conftest.er1
20557   ac_status=$?
20558   grep -v '^ *+' conftest.er1 >conftest.err
20559   rm -f conftest.er1
20560   cat conftest.err >&5
20561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20562   (exit $ac_status); } && {
20563          test -z "$ac_c_werror_flag" ||
20564          test ! -s conftest.err
20565        } && test -s conftest.$ac_objext; then
20566   ac_hi=$ac_mid; break
20567 else
20568   echo "$as_me: failed program was:" >&5
20569 sed 's/^/| /' conftest.$ac_ext >&5
20570
20571         ac_lo=`expr $ac_mid + 1`
20572                         if test $ac_lo -le $ac_mid; then
20573                           ac_lo= ac_hi=
20574                           break
20575                         fi
20576                         ac_mid=`expr 2 '*' $ac_mid + 1`
20577 fi
20578
20579 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20580   done
20581 else
20582   echo "$as_me: failed program was:" >&5
20583 sed 's/^/| /' conftest.$ac_ext >&5
20584
20585         cat >conftest.$ac_ext <<_ACEOF
20586 /* confdefs.h.  */
20587 _ACEOF
20588 cat confdefs.h >>conftest.$ac_ext
20589 cat >>conftest.$ac_ext <<_ACEOF
20590 /* end confdefs.h.  */
20591 $ac_includes_default
20592    typedef short ac__type_sizeof_;
20593 int
20594 main ()
20595 {
20596 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
20597 test_array [0] = 0
20598
20599   ;
20600   return 0;
20601 }
20602 _ACEOF
20603 rm -f conftest.$ac_objext
20604 if { (ac_try="$ac_compile"
20605 case "(($ac_try" in
20606   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20607   *) ac_try_echo=$ac_try;;
20608 esac
20609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20610   (eval "$ac_compile") 2>conftest.er1
20611   ac_status=$?
20612   grep -v '^ *+' conftest.er1 >conftest.err
20613   rm -f conftest.er1
20614   cat conftest.err >&5
20615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20616   (exit $ac_status); } && {
20617          test -z "$ac_c_werror_flag" ||
20618          test ! -s conftest.err
20619        } && test -s conftest.$ac_objext; then
20620   ac_hi=-1 ac_mid=-1
20621   while :; do
20622     cat >conftest.$ac_ext <<_ACEOF
20623 /* confdefs.h.  */
20624 _ACEOF
20625 cat confdefs.h >>conftest.$ac_ext
20626 cat >>conftest.$ac_ext <<_ACEOF
20627 /* end confdefs.h.  */
20628 $ac_includes_default
20629    typedef short ac__type_sizeof_;
20630 int
20631 main ()
20632 {
20633 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
20634 test_array [0] = 0
20635
20636   ;
20637   return 0;
20638 }
20639 _ACEOF
20640 rm -f conftest.$ac_objext
20641 if { (ac_try="$ac_compile"
20642 case "(($ac_try" in
20643   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20644   *) ac_try_echo=$ac_try;;
20645 esac
20646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20647   (eval "$ac_compile") 2>conftest.er1
20648   ac_status=$?
20649   grep -v '^ *+' conftest.er1 >conftest.err
20650   rm -f conftest.er1
20651   cat conftest.err >&5
20652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20653   (exit $ac_status); } && {
20654          test -z "$ac_c_werror_flag" ||
20655          test ! -s conftest.err
20656        } && test -s conftest.$ac_objext; then
20657   ac_lo=$ac_mid; break
20658 else
20659   echo "$as_me: failed program was:" >&5
20660 sed 's/^/| /' conftest.$ac_ext >&5
20661
20662         ac_hi=`expr '(' $ac_mid ')' - 1`
20663                         if test $ac_mid -le $ac_hi; then
20664                           ac_lo= ac_hi=
20665                           break
20666                         fi
20667                         ac_mid=`expr 2 '*' $ac_mid`
20668 fi
20669
20670 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20671   done
20672 else
20673   echo "$as_me: failed program was:" >&5
20674 sed 's/^/| /' conftest.$ac_ext >&5
20675
20676         ac_lo= ac_hi=
20677 fi
20678
20679 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20680 fi
20681
20682 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20683 # Binary search between lo and hi bounds.
20684 while test "x$ac_lo" != "x$ac_hi"; do
20685   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20686   cat >conftest.$ac_ext <<_ACEOF
20687 /* confdefs.h.  */
20688 _ACEOF
20689 cat confdefs.h >>conftest.$ac_ext
20690 cat >>conftest.$ac_ext <<_ACEOF
20691 /* end confdefs.h.  */
20692 $ac_includes_default
20693    typedef short ac__type_sizeof_;
20694 int
20695 main ()
20696 {
20697 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
20698 test_array [0] = 0
20699
20700   ;
20701   return 0;
20702 }
20703 _ACEOF
20704 rm -f conftest.$ac_objext
20705 if { (ac_try="$ac_compile"
20706 case "(($ac_try" in
20707   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20708   *) ac_try_echo=$ac_try;;
20709 esac
20710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20711   (eval "$ac_compile") 2>conftest.er1
20712   ac_status=$?
20713   grep -v '^ *+' conftest.er1 >conftest.err
20714   rm -f conftest.er1
20715   cat conftest.err >&5
20716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20717   (exit $ac_status); } && {
20718          test -z "$ac_c_werror_flag" ||
20719          test ! -s conftest.err
20720        } && test -s conftest.$ac_objext; then
20721   ac_hi=$ac_mid
20722 else
20723   echo "$as_me: failed program was:" >&5
20724 sed 's/^/| /' conftest.$ac_ext >&5
20725
20726         ac_lo=`expr '(' $ac_mid ')' + 1`
20727 fi
20728
20729 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20730 done
20731 case $ac_lo in
20732 ?*) ac_cv_sizeof_short=$ac_lo;;
20733 '') if test "$ac_cv_type_short" = yes; then
20734      { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
20735 See \`config.log' for more details." >&5
20736 echo "$as_me: error: cannot compute sizeof (short)
20737 See \`config.log' for more details." >&2;}
20738    { (exit 77); exit 77; }; }
20739    else
20740      ac_cv_sizeof_short=0
20741    fi ;;
20742 esac
20743 else
20744   cat >conftest.$ac_ext <<_ACEOF
20745 /* confdefs.h.  */
20746 _ACEOF
20747 cat confdefs.h >>conftest.$ac_ext
20748 cat >>conftest.$ac_ext <<_ACEOF
20749 /* end confdefs.h.  */
20750 $ac_includes_default
20751    typedef short ac__type_sizeof_;
20752 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
20753 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
20754 #include <stdio.h>
20755 #include <stdlib.h>
20756 int
20757 main ()
20758 {
20759
20760   FILE *f = fopen ("conftest.val", "w");
20761   if (! f)
20762     return 1;
20763   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
20764     {
20765       long int i = longval ();
20766       if (i != ((long int) (sizeof (ac__type_sizeof_))))
20767         return 1;
20768       fprintf (f, "%ld\n", i);
20769     }
20770   else
20771     {
20772       unsigned long int i = ulongval ();
20773       if (i != ((long int) (sizeof (ac__type_sizeof_))))
20774         return 1;
20775       fprintf (f, "%lu\n", i);
20776     }
20777   return ferror (f) || fclose (f) != 0;
20778
20779   ;
20780   return 0;
20781 }
20782 _ACEOF
20783 rm -f conftest$ac_exeext
20784 if { (ac_try="$ac_link"
20785 case "(($ac_try" in
20786   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20787   *) ac_try_echo=$ac_try;;
20788 esac
20789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20790   (eval "$ac_link") 2>&5
20791   ac_status=$?
20792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20793   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20794   { (case "(($ac_try" in
20795   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20796   *) ac_try_echo=$ac_try;;
20797 esac
20798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20799   (eval "$ac_try") 2>&5
20800   ac_status=$?
20801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20802   (exit $ac_status); }; }; then
20803   ac_cv_sizeof_short=`cat conftest.val`
20804 else
20805   echo "$as_me: program exited with status $ac_status" >&5
20806 echo "$as_me: failed program was:" >&5
20807 sed 's/^/| /' conftest.$ac_ext >&5
20808
20809 ( exit $ac_status )
20810 if test "$ac_cv_type_short" = yes; then
20811      { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
20812 See \`config.log' for more details." >&5
20813 echo "$as_me: error: cannot compute sizeof (short)
20814 See \`config.log' for more details." >&2;}
20815    { (exit 77); exit 77; }; }
20816    else
20817      ac_cv_sizeof_short=0
20818    fi
20819 fi
20820 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20821 fi
20822 rm -f conftest.val
20823 fi
20824 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
20825 echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
20826
20827
20828
20829 cat >>confdefs.h <<_ACEOF
20830 #define SIZEOF_SHORT $ac_cv_sizeof_short
20831 _ACEOF
20832
20833
20834 { echo "$as_me:$LINENO: checking for void *" >&5
20835 echo $ECHO_N "checking for void *... $ECHO_C" >&6; }
20836 if test "${ac_cv_type_void_p+set}" = set; then
20837   echo $ECHO_N "(cached) $ECHO_C" >&6
20838 else
20839   cat >conftest.$ac_ext <<_ACEOF
20840 /* confdefs.h.  */
20841 _ACEOF
20842 cat confdefs.h >>conftest.$ac_ext
20843 cat >>conftest.$ac_ext <<_ACEOF
20844 /* end confdefs.h.  */
20845 $ac_includes_default
20846 typedef void * ac__type_new_;
20847 int
20848 main ()
20849 {
20850 if ((ac__type_new_ *) 0)
20851   return 0;
20852 if (sizeof (ac__type_new_))
20853   return 0;
20854   ;
20855   return 0;
20856 }
20857 _ACEOF
20858 rm -f conftest.$ac_objext
20859 if { (ac_try="$ac_compile"
20860 case "(($ac_try" in
20861   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20862   *) ac_try_echo=$ac_try;;
20863 esac
20864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20865   (eval "$ac_compile") 2>conftest.er1
20866   ac_status=$?
20867   grep -v '^ *+' conftest.er1 >conftest.err
20868   rm -f conftest.er1
20869   cat conftest.err >&5
20870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20871   (exit $ac_status); } && {
20872          test -z "$ac_c_werror_flag" ||
20873          test ! -s conftest.err
20874        } && test -s conftest.$ac_objext; then
20875   ac_cv_type_void_p=yes
20876 else
20877   echo "$as_me: failed program was:" >&5
20878 sed 's/^/| /' conftest.$ac_ext >&5
20879
20880         ac_cv_type_void_p=no
20881 fi
20882
20883 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20884 fi
20885 { echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
20886 echo "${ECHO_T}$ac_cv_type_void_p" >&6; }
20887
20888 # The cast to long int works around a bug in the HP C Compiler
20889 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20890 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20891 # This bug is HP SR number 8606223364.
20892 { echo "$as_me:$LINENO: checking size of void *" >&5
20893 echo $ECHO_N "checking size of void *... $ECHO_C" >&6; }
20894 if test "${ac_cv_sizeof_void_p+set}" = set; then
20895   echo $ECHO_N "(cached) $ECHO_C" >&6
20896 else
20897   if test "$cross_compiling" = yes; then
20898   # Depending upon the size, compute the lo and hi bounds.
20899 cat >conftest.$ac_ext <<_ACEOF
20900 /* confdefs.h.  */
20901 _ACEOF
20902 cat confdefs.h >>conftest.$ac_ext
20903 cat >>conftest.$ac_ext <<_ACEOF
20904 /* end confdefs.h.  */
20905 $ac_includes_default
20906    typedef void * ac__type_sizeof_;
20907 int
20908 main ()
20909 {
20910 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
20911 test_array [0] = 0
20912
20913   ;
20914   return 0;
20915 }
20916 _ACEOF
20917 rm -f conftest.$ac_objext
20918 if { (ac_try="$ac_compile"
20919 case "(($ac_try" in
20920   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20921   *) ac_try_echo=$ac_try;;
20922 esac
20923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20924   (eval "$ac_compile") 2>conftest.er1
20925   ac_status=$?
20926   grep -v '^ *+' conftest.er1 >conftest.err
20927   rm -f conftest.er1
20928   cat conftest.err >&5
20929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20930   (exit $ac_status); } && {
20931          test -z "$ac_c_werror_flag" ||
20932          test ! -s conftest.err
20933        } && test -s conftest.$ac_objext; then
20934   ac_lo=0 ac_mid=0
20935   while :; do
20936     cat >conftest.$ac_ext <<_ACEOF
20937 /* confdefs.h.  */
20938 _ACEOF
20939 cat confdefs.h >>conftest.$ac_ext
20940 cat >>conftest.$ac_ext <<_ACEOF
20941 /* end confdefs.h.  */
20942 $ac_includes_default
20943    typedef void * ac__type_sizeof_;
20944 int
20945 main ()
20946 {
20947 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
20948 test_array [0] = 0
20949
20950   ;
20951   return 0;
20952 }
20953 _ACEOF
20954 rm -f conftest.$ac_objext
20955 if { (ac_try="$ac_compile"
20956 case "(($ac_try" in
20957   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20958   *) ac_try_echo=$ac_try;;
20959 esac
20960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20961   (eval "$ac_compile") 2>conftest.er1
20962   ac_status=$?
20963   grep -v '^ *+' conftest.er1 >conftest.err
20964   rm -f conftest.er1
20965   cat conftest.err >&5
20966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20967   (exit $ac_status); } && {
20968          test -z "$ac_c_werror_flag" ||
20969          test ! -s conftest.err
20970        } && test -s conftest.$ac_objext; then
20971   ac_hi=$ac_mid; break
20972 else
20973   echo "$as_me: failed program was:" >&5
20974 sed 's/^/| /' conftest.$ac_ext >&5
20975
20976         ac_lo=`expr $ac_mid + 1`
20977                         if test $ac_lo -le $ac_mid; then
20978                           ac_lo= ac_hi=
20979                           break
20980                         fi
20981                         ac_mid=`expr 2 '*' $ac_mid + 1`
20982 fi
20983
20984 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20985   done
20986 else
20987   echo "$as_me: failed program was:" >&5
20988 sed 's/^/| /' conftest.$ac_ext >&5
20989
20990         cat >conftest.$ac_ext <<_ACEOF
20991 /* confdefs.h.  */
20992 _ACEOF
20993 cat confdefs.h >>conftest.$ac_ext
20994 cat >>conftest.$ac_ext <<_ACEOF
20995 /* end confdefs.h.  */
20996 $ac_includes_default
20997    typedef void * ac__type_sizeof_;
20998 int
20999 main ()
21000 {
21001 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
21002 test_array [0] = 0
21003
21004   ;
21005   return 0;
21006 }
21007 _ACEOF
21008 rm -f conftest.$ac_objext
21009 if { (ac_try="$ac_compile"
21010 case "(($ac_try" in
21011   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21012   *) ac_try_echo=$ac_try;;
21013 esac
21014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21015   (eval "$ac_compile") 2>conftest.er1
21016   ac_status=$?
21017   grep -v '^ *+' conftest.er1 >conftest.err
21018   rm -f conftest.er1
21019   cat conftest.err >&5
21020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21021   (exit $ac_status); } && {
21022          test -z "$ac_c_werror_flag" ||
21023          test ! -s conftest.err
21024        } && test -s conftest.$ac_objext; then
21025   ac_hi=-1 ac_mid=-1
21026   while :; do
21027     cat >conftest.$ac_ext <<_ACEOF
21028 /* confdefs.h.  */
21029 _ACEOF
21030 cat confdefs.h >>conftest.$ac_ext
21031 cat >>conftest.$ac_ext <<_ACEOF
21032 /* end confdefs.h.  */
21033 $ac_includes_default
21034    typedef void * ac__type_sizeof_;
21035 int
21036 main ()
21037 {
21038 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
21039 test_array [0] = 0
21040
21041   ;
21042   return 0;
21043 }
21044 _ACEOF
21045 rm -f conftest.$ac_objext
21046 if { (ac_try="$ac_compile"
21047 case "(($ac_try" in
21048   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21049   *) ac_try_echo=$ac_try;;
21050 esac
21051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21052   (eval "$ac_compile") 2>conftest.er1
21053   ac_status=$?
21054   grep -v '^ *+' conftest.er1 >conftest.err
21055   rm -f conftest.er1
21056   cat conftest.err >&5
21057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21058   (exit $ac_status); } && {
21059          test -z "$ac_c_werror_flag" ||
21060          test ! -s conftest.err
21061        } && test -s conftest.$ac_objext; then
21062   ac_lo=$ac_mid; break
21063 else
21064   echo "$as_me: failed program was:" >&5
21065 sed 's/^/| /' conftest.$ac_ext >&5
21066
21067         ac_hi=`expr '(' $ac_mid ')' - 1`
21068                         if test $ac_mid -le $ac_hi; then
21069                           ac_lo= ac_hi=
21070                           break
21071                         fi
21072                         ac_mid=`expr 2 '*' $ac_mid`
21073 fi
21074
21075 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21076   done
21077 else
21078   echo "$as_me: failed program was:" >&5
21079 sed 's/^/| /' conftest.$ac_ext >&5
21080
21081         ac_lo= ac_hi=
21082 fi
21083
21084 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21085 fi
21086
21087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21088 # Binary search between lo and hi bounds.
21089 while test "x$ac_lo" != "x$ac_hi"; do
21090   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21091   cat >conftest.$ac_ext <<_ACEOF
21092 /* confdefs.h.  */
21093 _ACEOF
21094 cat confdefs.h >>conftest.$ac_ext
21095 cat >>conftest.$ac_ext <<_ACEOF
21096 /* end confdefs.h.  */
21097 $ac_includes_default
21098    typedef void * ac__type_sizeof_;
21099 int
21100 main ()
21101 {
21102 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21103 test_array [0] = 0
21104
21105   ;
21106   return 0;
21107 }
21108 _ACEOF
21109 rm -f conftest.$ac_objext
21110 if { (ac_try="$ac_compile"
21111 case "(($ac_try" in
21112   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21113   *) ac_try_echo=$ac_try;;
21114 esac
21115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21116   (eval "$ac_compile") 2>conftest.er1
21117   ac_status=$?
21118   grep -v '^ *+' conftest.er1 >conftest.err
21119   rm -f conftest.er1
21120   cat conftest.err >&5
21121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21122   (exit $ac_status); } && {
21123          test -z "$ac_c_werror_flag" ||
21124          test ! -s conftest.err
21125        } && test -s conftest.$ac_objext; then
21126   ac_hi=$ac_mid
21127 else
21128   echo "$as_me: failed program was:" >&5
21129 sed 's/^/| /' conftest.$ac_ext >&5
21130
21131         ac_lo=`expr '(' $ac_mid ')' + 1`
21132 fi
21133
21134 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21135 done
21136 case $ac_lo in
21137 ?*) ac_cv_sizeof_void_p=$ac_lo;;
21138 '') if test "$ac_cv_type_void_p" = yes; then
21139      { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
21140 See \`config.log' for more details." >&5
21141 echo "$as_me: error: cannot compute sizeof (void *)
21142 See \`config.log' for more details." >&2;}
21143    { (exit 77); exit 77; }; }
21144    else
21145      ac_cv_sizeof_void_p=0
21146    fi ;;
21147 esac
21148 else
21149   cat >conftest.$ac_ext <<_ACEOF
21150 /* confdefs.h.  */
21151 _ACEOF
21152 cat confdefs.h >>conftest.$ac_ext
21153 cat >>conftest.$ac_ext <<_ACEOF
21154 /* end confdefs.h.  */
21155 $ac_includes_default
21156    typedef void * ac__type_sizeof_;
21157 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
21158 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
21159 #include <stdio.h>
21160 #include <stdlib.h>
21161 int
21162 main ()
21163 {
21164
21165   FILE *f = fopen ("conftest.val", "w");
21166   if (! f)
21167     return 1;
21168   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
21169     {
21170       long int i = longval ();
21171       if (i != ((long int) (sizeof (ac__type_sizeof_))))
21172         return 1;
21173       fprintf (f, "%ld\n", i);
21174     }
21175   else
21176     {
21177       unsigned long int i = ulongval ();
21178       if (i != ((long int) (sizeof (ac__type_sizeof_))))
21179         return 1;
21180       fprintf (f, "%lu\n", i);
21181     }
21182   return ferror (f) || fclose (f) != 0;
21183
21184   ;
21185   return 0;
21186 }
21187 _ACEOF
21188 rm -f conftest$ac_exeext
21189 if { (ac_try="$ac_link"
21190 case "(($ac_try" in
21191   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21192   *) ac_try_echo=$ac_try;;
21193 esac
21194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21195   (eval "$ac_link") 2>&5
21196   ac_status=$?
21197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21198   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21199   { (case "(($ac_try" in
21200   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21201   *) ac_try_echo=$ac_try;;
21202 esac
21203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21204   (eval "$ac_try") 2>&5
21205   ac_status=$?
21206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21207   (exit $ac_status); }; }; then
21208   ac_cv_sizeof_void_p=`cat conftest.val`
21209 else
21210   echo "$as_me: program exited with status $ac_status" >&5
21211 echo "$as_me: failed program was:" >&5
21212 sed 's/^/| /' conftest.$ac_ext >&5
21213
21214 ( exit $ac_status )
21215 if test "$ac_cv_type_void_p" = yes; then
21216      { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
21217 See \`config.log' for more details." >&5
21218 echo "$as_me: error: cannot compute sizeof (void *)
21219 See \`config.log' for more details." >&2;}
21220    { (exit 77); exit 77; }; }
21221    else
21222      ac_cv_sizeof_void_p=0
21223    fi
21224 fi
21225 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21226 fi
21227 rm -f conftest.val
21228 fi
21229 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
21230 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6; }
21231
21232
21233
21234 cat >>confdefs.h <<_ACEOF
21235 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
21236 _ACEOF
21237
21238
21239 { echo "$as_me:$LINENO: checking for int" >&5
21240 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
21241 if test "${ac_cv_type_int+set}" = set; then
21242   echo $ECHO_N "(cached) $ECHO_C" >&6
21243 else
21244   cat >conftest.$ac_ext <<_ACEOF
21245 /* confdefs.h.  */
21246 _ACEOF
21247 cat confdefs.h >>conftest.$ac_ext
21248 cat >>conftest.$ac_ext <<_ACEOF
21249 /* end confdefs.h.  */
21250 $ac_includes_default
21251 typedef int ac__type_new_;
21252 int
21253 main ()
21254 {
21255 if ((ac__type_new_ *) 0)
21256   return 0;
21257 if (sizeof (ac__type_new_))
21258   return 0;
21259   ;
21260   return 0;
21261 }
21262 _ACEOF
21263 rm -f conftest.$ac_objext
21264 if { (ac_try="$ac_compile"
21265 case "(($ac_try" in
21266   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21267   *) ac_try_echo=$ac_try;;
21268 esac
21269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21270   (eval "$ac_compile") 2>conftest.er1
21271   ac_status=$?
21272   grep -v '^ *+' conftest.er1 >conftest.err
21273   rm -f conftest.er1
21274   cat conftest.err >&5
21275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21276   (exit $ac_status); } && {
21277          test -z "$ac_c_werror_flag" ||
21278          test ! -s conftest.err
21279        } && test -s conftest.$ac_objext; then
21280   ac_cv_type_int=yes
21281 else
21282   echo "$as_me: failed program was:" >&5
21283 sed 's/^/| /' conftest.$ac_ext >&5
21284
21285         ac_cv_type_int=no
21286 fi
21287
21288 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21289 fi
21290 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
21291 echo "${ECHO_T}$ac_cv_type_int" >&6; }
21292
21293 # The cast to long int works around a bug in the HP C Compiler
21294 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21295 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21296 # This bug is HP SR number 8606223364.
21297 { echo "$as_me:$LINENO: checking size of int" >&5
21298 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
21299 if test "${ac_cv_sizeof_int+set}" = set; then
21300   echo $ECHO_N "(cached) $ECHO_C" >&6
21301 else
21302   if test "$cross_compiling" = yes; then
21303   # Depending upon the size, compute the lo and hi bounds.
21304 cat >conftest.$ac_ext <<_ACEOF
21305 /* confdefs.h.  */
21306 _ACEOF
21307 cat confdefs.h >>conftest.$ac_ext
21308 cat >>conftest.$ac_ext <<_ACEOF
21309 /* end confdefs.h.  */
21310 $ac_includes_default
21311    typedef int ac__type_sizeof_;
21312 int
21313 main ()
21314 {
21315 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
21316 test_array [0] = 0
21317
21318   ;
21319   return 0;
21320 }
21321 _ACEOF
21322 rm -f conftest.$ac_objext
21323 if { (ac_try="$ac_compile"
21324 case "(($ac_try" in
21325   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21326   *) ac_try_echo=$ac_try;;
21327 esac
21328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21329   (eval "$ac_compile") 2>conftest.er1
21330   ac_status=$?
21331   grep -v '^ *+' conftest.er1 >conftest.err
21332   rm -f conftest.er1
21333   cat conftest.err >&5
21334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21335   (exit $ac_status); } && {
21336          test -z "$ac_c_werror_flag" ||
21337          test ! -s conftest.err
21338        } && test -s conftest.$ac_objext; then
21339   ac_lo=0 ac_mid=0
21340   while :; do
21341     cat >conftest.$ac_ext <<_ACEOF
21342 /* confdefs.h.  */
21343 _ACEOF
21344 cat confdefs.h >>conftest.$ac_ext
21345 cat >>conftest.$ac_ext <<_ACEOF
21346 /* end confdefs.h.  */
21347 $ac_includes_default
21348    typedef int ac__type_sizeof_;
21349 int
21350 main ()
21351 {
21352 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21353 test_array [0] = 0
21354
21355   ;
21356   return 0;
21357 }
21358 _ACEOF
21359 rm -f conftest.$ac_objext
21360 if { (ac_try="$ac_compile"
21361 case "(($ac_try" in
21362   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21363   *) ac_try_echo=$ac_try;;
21364 esac
21365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21366   (eval "$ac_compile") 2>conftest.er1
21367   ac_status=$?
21368   grep -v '^ *+' conftest.er1 >conftest.err
21369   rm -f conftest.er1
21370   cat conftest.err >&5
21371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21372   (exit $ac_status); } && {
21373          test -z "$ac_c_werror_flag" ||
21374          test ! -s conftest.err
21375        } && test -s conftest.$ac_objext; then
21376   ac_hi=$ac_mid; break
21377 else
21378   echo "$as_me: failed program was:" >&5
21379 sed 's/^/| /' conftest.$ac_ext >&5
21380
21381         ac_lo=`expr $ac_mid + 1`
21382                         if test $ac_lo -le $ac_mid; then
21383                           ac_lo= ac_hi=
21384                           break
21385                         fi
21386                         ac_mid=`expr 2 '*' $ac_mid + 1`
21387 fi
21388
21389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21390   done
21391 else
21392   echo "$as_me: failed program was:" >&5
21393 sed 's/^/| /' conftest.$ac_ext >&5
21394
21395         cat >conftest.$ac_ext <<_ACEOF
21396 /* confdefs.h.  */
21397 _ACEOF
21398 cat confdefs.h >>conftest.$ac_ext
21399 cat >>conftest.$ac_ext <<_ACEOF
21400 /* end confdefs.h.  */
21401 $ac_includes_default
21402    typedef int ac__type_sizeof_;
21403 int
21404 main ()
21405 {
21406 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
21407 test_array [0] = 0
21408
21409   ;
21410   return 0;
21411 }
21412 _ACEOF
21413 rm -f conftest.$ac_objext
21414 if { (ac_try="$ac_compile"
21415 case "(($ac_try" in
21416   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21417   *) ac_try_echo=$ac_try;;
21418 esac
21419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21420   (eval "$ac_compile") 2>conftest.er1
21421   ac_status=$?
21422   grep -v '^ *+' conftest.er1 >conftest.err
21423   rm -f conftest.er1
21424   cat conftest.err >&5
21425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21426   (exit $ac_status); } && {
21427          test -z "$ac_c_werror_flag" ||
21428          test ! -s conftest.err
21429        } && test -s conftest.$ac_objext; then
21430   ac_hi=-1 ac_mid=-1
21431   while :; do
21432     cat >conftest.$ac_ext <<_ACEOF
21433 /* confdefs.h.  */
21434 _ACEOF
21435 cat confdefs.h >>conftest.$ac_ext
21436 cat >>conftest.$ac_ext <<_ACEOF
21437 /* end confdefs.h.  */
21438 $ac_includes_default
21439    typedef int ac__type_sizeof_;
21440 int
21441 main ()
21442 {
21443 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
21444 test_array [0] = 0
21445
21446   ;
21447   return 0;
21448 }
21449 _ACEOF
21450 rm -f conftest.$ac_objext
21451 if { (ac_try="$ac_compile"
21452 case "(($ac_try" in
21453   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21454   *) ac_try_echo=$ac_try;;
21455 esac
21456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21457   (eval "$ac_compile") 2>conftest.er1
21458   ac_status=$?
21459   grep -v '^ *+' conftest.er1 >conftest.err
21460   rm -f conftest.er1
21461   cat conftest.err >&5
21462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21463   (exit $ac_status); } && {
21464          test -z "$ac_c_werror_flag" ||
21465          test ! -s conftest.err
21466        } && test -s conftest.$ac_objext; then
21467   ac_lo=$ac_mid; break
21468 else
21469   echo "$as_me: failed program was:" >&5
21470 sed 's/^/| /' conftest.$ac_ext >&5
21471
21472         ac_hi=`expr '(' $ac_mid ')' - 1`
21473                         if test $ac_mid -le $ac_hi; then
21474                           ac_lo= ac_hi=
21475                           break
21476                         fi
21477                         ac_mid=`expr 2 '*' $ac_mid`
21478 fi
21479
21480 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21481   done
21482 else
21483   echo "$as_me: failed program was:" >&5
21484 sed 's/^/| /' conftest.$ac_ext >&5
21485
21486         ac_lo= ac_hi=
21487 fi
21488
21489 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21490 fi
21491
21492 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21493 # Binary search between lo and hi bounds.
21494 while test "x$ac_lo" != "x$ac_hi"; do
21495   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21496   cat >conftest.$ac_ext <<_ACEOF
21497 /* confdefs.h.  */
21498 _ACEOF
21499 cat confdefs.h >>conftest.$ac_ext
21500 cat >>conftest.$ac_ext <<_ACEOF
21501 /* end confdefs.h.  */
21502 $ac_includes_default
21503    typedef int ac__type_sizeof_;
21504 int
21505 main ()
21506 {
21507 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21508 test_array [0] = 0
21509
21510   ;
21511   return 0;
21512 }
21513 _ACEOF
21514 rm -f conftest.$ac_objext
21515 if { (ac_try="$ac_compile"
21516 case "(($ac_try" in
21517   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21518   *) ac_try_echo=$ac_try;;
21519 esac
21520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21521   (eval "$ac_compile") 2>conftest.er1
21522   ac_status=$?
21523   grep -v '^ *+' conftest.er1 >conftest.err
21524   rm -f conftest.er1
21525   cat conftest.err >&5
21526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21527   (exit $ac_status); } && {
21528          test -z "$ac_c_werror_flag" ||
21529          test ! -s conftest.err
21530        } && test -s conftest.$ac_objext; then
21531   ac_hi=$ac_mid
21532 else
21533   echo "$as_me: failed program was:" >&5
21534 sed 's/^/| /' conftest.$ac_ext >&5
21535
21536         ac_lo=`expr '(' $ac_mid ')' + 1`
21537 fi
21538
21539 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21540 done
21541 case $ac_lo in
21542 ?*) ac_cv_sizeof_int=$ac_lo;;
21543 '') if test "$ac_cv_type_int" = yes; then
21544      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
21545 See \`config.log' for more details." >&5
21546 echo "$as_me: error: cannot compute sizeof (int)
21547 See \`config.log' for more details." >&2;}
21548    { (exit 77); exit 77; }; }
21549    else
21550      ac_cv_sizeof_int=0
21551    fi ;;
21552 esac
21553 else
21554   cat >conftest.$ac_ext <<_ACEOF
21555 /* confdefs.h.  */
21556 _ACEOF
21557 cat confdefs.h >>conftest.$ac_ext
21558 cat >>conftest.$ac_ext <<_ACEOF
21559 /* end confdefs.h.  */
21560 $ac_includes_default
21561    typedef int ac__type_sizeof_;
21562 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
21563 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
21564 #include <stdio.h>
21565 #include <stdlib.h>
21566 int
21567 main ()
21568 {
21569
21570   FILE *f = fopen ("conftest.val", "w");
21571   if (! f)
21572     return 1;
21573   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
21574     {
21575       long int i = longval ();
21576       if (i != ((long int) (sizeof (ac__type_sizeof_))))
21577         return 1;
21578       fprintf (f, "%ld\n", i);
21579     }
21580   else
21581     {
21582       unsigned long int i = ulongval ();
21583       if (i != ((long int) (sizeof (ac__type_sizeof_))))
21584         return 1;
21585       fprintf (f, "%lu\n", i);
21586     }
21587   return ferror (f) || fclose (f) != 0;
21588
21589   ;
21590   return 0;
21591 }
21592 _ACEOF
21593 rm -f conftest$ac_exeext
21594 if { (ac_try="$ac_link"
21595 case "(($ac_try" in
21596   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21597   *) ac_try_echo=$ac_try;;
21598 esac
21599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21600   (eval "$ac_link") 2>&5
21601   ac_status=$?
21602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21603   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21604   { (case "(($ac_try" in
21605   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21606   *) ac_try_echo=$ac_try;;
21607 esac
21608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21609   (eval "$ac_try") 2>&5
21610   ac_status=$?
21611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21612   (exit $ac_status); }; }; then
21613   ac_cv_sizeof_int=`cat conftest.val`
21614 else
21615   echo "$as_me: program exited with status $ac_status" >&5
21616 echo "$as_me: failed program was:" >&5
21617 sed 's/^/| /' conftest.$ac_ext >&5
21618
21619 ( exit $ac_status )
21620 if test "$ac_cv_type_int" = yes; then
21621      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
21622 See \`config.log' for more details." >&5
21623 echo "$as_me: error: cannot compute sizeof (int)
21624 See \`config.log' for more details." >&2;}
21625    { (exit 77); exit 77; }; }
21626    else
21627      ac_cv_sizeof_int=0
21628    fi
21629 fi
21630 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21631 fi
21632 rm -f conftest.val
21633 fi
21634 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
21635 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
21636
21637
21638
21639 cat >>confdefs.h <<_ACEOF
21640 #define SIZEOF_INT $ac_cv_sizeof_int
21641 _ACEOF
21642
21643
21644 { echo "$as_me:$LINENO: checking for long" >&5
21645 echo $ECHO_N "checking for long... $ECHO_C" >&6; }
21646 if test "${ac_cv_type_long+set}" = set; then
21647   echo $ECHO_N "(cached) $ECHO_C" >&6
21648 else
21649   cat >conftest.$ac_ext <<_ACEOF
21650 /* confdefs.h.  */
21651 _ACEOF
21652 cat confdefs.h >>conftest.$ac_ext
21653 cat >>conftest.$ac_ext <<_ACEOF
21654 /* end confdefs.h.  */
21655 $ac_includes_default
21656 typedef long ac__type_new_;
21657 int
21658 main ()
21659 {
21660 if ((ac__type_new_ *) 0)
21661   return 0;
21662 if (sizeof (ac__type_new_))
21663   return 0;
21664   ;
21665   return 0;
21666 }
21667 _ACEOF
21668 rm -f conftest.$ac_objext
21669 if { (ac_try="$ac_compile"
21670 case "(($ac_try" in
21671   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21672   *) ac_try_echo=$ac_try;;
21673 esac
21674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21675   (eval "$ac_compile") 2>conftest.er1
21676   ac_status=$?
21677   grep -v '^ *+' conftest.er1 >conftest.err
21678   rm -f conftest.er1
21679   cat conftest.err >&5
21680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21681   (exit $ac_status); } && {
21682          test -z "$ac_c_werror_flag" ||
21683          test ! -s conftest.err
21684        } && test -s conftest.$ac_objext; then
21685   ac_cv_type_long=yes
21686 else
21687   echo "$as_me: failed program was:" >&5
21688 sed 's/^/| /' conftest.$ac_ext >&5
21689
21690         ac_cv_type_long=no
21691 fi
21692
21693 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21694 fi
21695 { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
21696 echo "${ECHO_T}$ac_cv_type_long" >&6; }
21697
21698 # The cast to long int works around a bug in the HP C Compiler
21699 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21700 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21701 # This bug is HP SR number 8606223364.
21702 { echo "$as_me:$LINENO: checking size of long" >&5
21703 echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
21704 if test "${ac_cv_sizeof_long+set}" = set; then
21705   echo $ECHO_N "(cached) $ECHO_C" >&6
21706 else
21707   if test "$cross_compiling" = yes; then
21708   # Depending upon the size, compute the lo and hi bounds.
21709 cat >conftest.$ac_ext <<_ACEOF
21710 /* confdefs.h.  */
21711 _ACEOF
21712 cat confdefs.h >>conftest.$ac_ext
21713 cat >>conftest.$ac_ext <<_ACEOF
21714 /* end confdefs.h.  */
21715 $ac_includes_default
21716    typedef long ac__type_sizeof_;
21717 int
21718 main ()
21719 {
21720 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
21721 test_array [0] = 0
21722
21723   ;
21724   return 0;
21725 }
21726 _ACEOF
21727 rm -f conftest.$ac_objext
21728 if { (ac_try="$ac_compile"
21729 case "(($ac_try" in
21730   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21731   *) ac_try_echo=$ac_try;;
21732 esac
21733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21734   (eval "$ac_compile") 2>conftest.er1
21735   ac_status=$?
21736   grep -v '^ *+' conftest.er1 >conftest.err
21737   rm -f conftest.er1
21738   cat conftest.err >&5
21739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21740   (exit $ac_status); } && {
21741          test -z "$ac_c_werror_flag" ||
21742          test ! -s conftest.err
21743        } && test -s conftest.$ac_objext; then
21744   ac_lo=0 ac_mid=0
21745   while :; do
21746     cat >conftest.$ac_ext <<_ACEOF
21747 /* confdefs.h.  */
21748 _ACEOF
21749 cat confdefs.h >>conftest.$ac_ext
21750 cat >>conftest.$ac_ext <<_ACEOF
21751 /* end confdefs.h.  */
21752 $ac_includes_default
21753    typedef long ac__type_sizeof_;
21754 int
21755 main ()
21756 {
21757 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21758 test_array [0] = 0
21759
21760   ;
21761   return 0;
21762 }
21763 _ACEOF
21764 rm -f conftest.$ac_objext
21765 if { (ac_try="$ac_compile"
21766 case "(($ac_try" in
21767   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21768   *) ac_try_echo=$ac_try;;
21769 esac
21770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21771   (eval "$ac_compile") 2>conftest.er1
21772   ac_status=$?
21773   grep -v '^ *+' conftest.er1 >conftest.err
21774   rm -f conftest.er1
21775   cat conftest.err >&5
21776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21777   (exit $ac_status); } && {
21778          test -z "$ac_c_werror_flag" ||
21779          test ! -s conftest.err
21780        } && test -s conftest.$ac_objext; then
21781   ac_hi=$ac_mid; break
21782 else
21783   echo "$as_me: failed program was:" >&5
21784 sed 's/^/| /' conftest.$ac_ext >&5
21785
21786         ac_lo=`expr $ac_mid + 1`
21787                         if test $ac_lo -le $ac_mid; then
21788                           ac_lo= ac_hi=
21789                           break
21790                         fi
21791                         ac_mid=`expr 2 '*' $ac_mid + 1`
21792 fi
21793
21794 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21795   done
21796 else
21797   echo "$as_me: failed program was:" >&5
21798 sed 's/^/| /' conftest.$ac_ext >&5
21799
21800         cat >conftest.$ac_ext <<_ACEOF
21801 /* confdefs.h.  */
21802 _ACEOF
21803 cat confdefs.h >>conftest.$ac_ext
21804 cat >>conftest.$ac_ext <<_ACEOF
21805 /* end confdefs.h.  */
21806 $ac_includes_default
21807    typedef long ac__type_sizeof_;
21808 int
21809 main ()
21810 {
21811 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
21812 test_array [0] = 0
21813
21814   ;
21815   return 0;
21816 }
21817 _ACEOF
21818 rm -f conftest.$ac_objext
21819 if { (ac_try="$ac_compile"
21820 case "(($ac_try" in
21821   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21822   *) ac_try_echo=$ac_try;;
21823 esac
21824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21825   (eval "$ac_compile") 2>conftest.er1
21826   ac_status=$?
21827   grep -v '^ *+' conftest.er1 >conftest.err
21828   rm -f conftest.er1
21829   cat conftest.err >&5
21830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21831   (exit $ac_status); } && {
21832          test -z "$ac_c_werror_flag" ||
21833          test ! -s conftest.err
21834        } && test -s conftest.$ac_objext; then
21835   ac_hi=-1 ac_mid=-1
21836   while :; do
21837     cat >conftest.$ac_ext <<_ACEOF
21838 /* confdefs.h.  */
21839 _ACEOF
21840 cat confdefs.h >>conftest.$ac_ext
21841 cat >>conftest.$ac_ext <<_ACEOF
21842 /* end confdefs.h.  */
21843 $ac_includes_default
21844    typedef long ac__type_sizeof_;
21845 int
21846 main ()
21847 {
21848 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
21849 test_array [0] = 0
21850
21851   ;
21852   return 0;
21853 }
21854 _ACEOF
21855 rm -f conftest.$ac_objext
21856 if { (ac_try="$ac_compile"
21857 case "(($ac_try" in
21858   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21859   *) ac_try_echo=$ac_try;;
21860 esac
21861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21862   (eval "$ac_compile") 2>conftest.er1
21863   ac_status=$?
21864   grep -v '^ *+' conftest.er1 >conftest.err
21865   rm -f conftest.er1
21866   cat conftest.err >&5
21867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21868   (exit $ac_status); } && {
21869          test -z "$ac_c_werror_flag" ||
21870          test ! -s conftest.err
21871        } && test -s conftest.$ac_objext; then
21872   ac_lo=$ac_mid; break
21873 else
21874   echo "$as_me: failed program was:" >&5
21875 sed 's/^/| /' conftest.$ac_ext >&5
21876
21877         ac_hi=`expr '(' $ac_mid ')' - 1`
21878                         if test $ac_mid -le $ac_hi; then
21879                           ac_lo= ac_hi=
21880                           break
21881                         fi
21882                         ac_mid=`expr 2 '*' $ac_mid`
21883 fi
21884
21885 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21886   done
21887 else
21888   echo "$as_me: failed program was:" >&5
21889 sed 's/^/| /' conftest.$ac_ext >&5
21890
21891         ac_lo= ac_hi=
21892 fi
21893
21894 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21895 fi
21896
21897 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21898 # Binary search between lo and hi bounds.
21899 while test "x$ac_lo" != "x$ac_hi"; do
21900   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21901   cat >conftest.$ac_ext <<_ACEOF
21902 /* confdefs.h.  */
21903 _ACEOF
21904 cat confdefs.h >>conftest.$ac_ext
21905 cat >>conftest.$ac_ext <<_ACEOF
21906 /* end confdefs.h.  */
21907 $ac_includes_default
21908    typedef long ac__type_sizeof_;
21909 int
21910 main ()
21911 {
21912 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21913 test_array [0] = 0
21914
21915   ;
21916   return 0;
21917 }
21918 _ACEOF
21919 rm -f conftest.$ac_objext
21920 if { (ac_try="$ac_compile"
21921 case "(($ac_try" in
21922   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21923   *) ac_try_echo=$ac_try;;
21924 esac
21925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21926   (eval "$ac_compile") 2>conftest.er1
21927   ac_status=$?
21928   grep -v '^ *+' conftest.er1 >conftest.err
21929   rm -f conftest.er1
21930   cat conftest.err >&5
21931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21932   (exit $ac_status); } && {
21933          test -z "$ac_c_werror_flag" ||
21934          test ! -s conftest.err
21935        } && test -s conftest.$ac_objext; then
21936   ac_hi=$ac_mid
21937 else
21938   echo "$as_me: failed program was:" >&5
21939 sed 's/^/| /' conftest.$ac_ext >&5
21940
21941         ac_lo=`expr '(' $ac_mid ')' + 1`
21942 fi
21943
21944 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21945 done
21946 case $ac_lo in
21947 ?*) ac_cv_sizeof_long=$ac_lo;;
21948 '') if test "$ac_cv_type_long" = yes; then
21949      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
21950 See \`config.log' for more details." >&5
21951 echo "$as_me: error: cannot compute sizeof (long)
21952 See \`config.log' for more details." >&2;}
21953    { (exit 77); exit 77; }; }
21954    else
21955      ac_cv_sizeof_long=0
21956    fi ;;
21957 esac
21958 else
21959   cat >conftest.$ac_ext <<_ACEOF
21960 /* confdefs.h.  */
21961 _ACEOF
21962 cat confdefs.h >>conftest.$ac_ext
21963 cat >>conftest.$ac_ext <<_ACEOF
21964 /* end confdefs.h.  */
21965 $ac_includes_default
21966    typedef long ac__type_sizeof_;
21967 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
21968 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
21969 #include <stdio.h>
21970 #include <stdlib.h>
21971 int
21972 main ()
21973 {
21974
21975   FILE *f = fopen ("conftest.val", "w");
21976   if (! f)
21977     return 1;
21978   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
21979     {
21980       long int i = longval ();
21981       if (i != ((long int) (sizeof (ac__type_sizeof_))))
21982         return 1;
21983       fprintf (f, "%ld\n", i);
21984     }
21985   else
21986     {
21987       unsigned long int i = ulongval ();
21988       if (i != ((long int) (sizeof (ac__type_sizeof_))))
21989         return 1;
21990       fprintf (f, "%lu\n", i);
21991     }
21992   return ferror (f) || fclose (f) != 0;
21993
21994   ;
21995   return 0;
21996 }
21997 _ACEOF
21998 rm -f conftest$ac_exeext
21999 if { (ac_try="$ac_link"
22000 case "(($ac_try" in
22001   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22002   *) ac_try_echo=$ac_try;;
22003 esac
22004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22005   (eval "$ac_link") 2>&5
22006   ac_status=$?
22007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22008   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22009   { (case "(($ac_try" in
22010   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22011   *) ac_try_echo=$ac_try;;
22012 esac
22013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22014   (eval "$ac_try") 2>&5
22015   ac_status=$?
22016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22017   (exit $ac_status); }; }; then
22018   ac_cv_sizeof_long=`cat conftest.val`
22019 else
22020   echo "$as_me: program exited with status $ac_status" >&5
22021 echo "$as_me: failed program was:" >&5
22022 sed 's/^/| /' conftest.$ac_ext >&5
22023
22024 ( exit $ac_status )
22025 if test "$ac_cv_type_long" = yes; then
22026      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
22027 See \`config.log' for more details." >&5
22028 echo "$as_me: error: cannot compute sizeof (long)
22029 See \`config.log' for more details." >&2;}
22030    { (exit 77); exit 77; }; }
22031    else
22032      ac_cv_sizeof_long=0
22033    fi
22034 fi
22035 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22036 fi
22037 rm -f conftest.val
22038 fi
22039 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
22040 echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
22041
22042
22043
22044 cat >>confdefs.h <<_ACEOF
22045 #define SIZEOF_LONG $ac_cv_sizeof_long
22046 _ACEOF
22047
22048
22049 { echo "$as_me:$LINENO: checking for size_t" >&5
22050 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
22051 if test "${ac_cv_type_size_t+set}" = set; then
22052   echo $ECHO_N "(cached) $ECHO_C" >&6
22053 else
22054   cat >conftest.$ac_ext <<_ACEOF
22055 /* confdefs.h.  */
22056 _ACEOF
22057 cat confdefs.h >>conftest.$ac_ext
22058 cat >>conftest.$ac_ext <<_ACEOF
22059 /* end confdefs.h.  */
22060 $ac_includes_default
22061 typedef size_t ac__type_new_;
22062 int
22063 main ()
22064 {
22065 if ((ac__type_new_ *) 0)
22066   return 0;
22067 if (sizeof (ac__type_new_))
22068   return 0;
22069   ;
22070   return 0;
22071 }
22072 _ACEOF
22073 rm -f conftest.$ac_objext
22074 if { (ac_try="$ac_compile"
22075 case "(($ac_try" in
22076   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22077   *) ac_try_echo=$ac_try;;
22078 esac
22079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22080   (eval "$ac_compile") 2>conftest.er1
22081   ac_status=$?
22082   grep -v '^ *+' conftest.er1 >conftest.err
22083   rm -f conftest.er1
22084   cat conftest.err >&5
22085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22086   (exit $ac_status); } && {
22087          test -z "$ac_c_werror_flag" ||
22088          test ! -s conftest.err
22089        } && test -s conftest.$ac_objext; then
22090   ac_cv_type_size_t=yes
22091 else
22092   echo "$as_me: failed program was:" >&5
22093 sed 's/^/| /' conftest.$ac_ext >&5
22094
22095         ac_cv_type_size_t=no
22096 fi
22097
22098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22099 fi
22100 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
22101 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
22102
22103 # The cast to long int works around a bug in the HP C Compiler
22104 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22105 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22106 # This bug is HP SR number 8606223364.
22107 { echo "$as_me:$LINENO: checking size of size_t" >&5
22108 echo $ECHO_N "checking size of size_t... $ECHO_C" >&6; }
22109 if test "${ac_cv_sizeof_size_t+set}" = set; then
22110   echo $ECHO_N "(cached) $ECHO_C" >&6
22111 else
22112   if test "$cross_compiling" = yes; then
22113   # Depending upon the size, compute the lo and hi bounds.
22114 cat >conftest.$ac_ext <<_ACEOF
22115 /* confdefs.h.  */
22116 _ACEOF
22117 cat confdefs.h >>conftest.$ac_ext
22118 cat >>conftest.$ac_ext <<_ACEOF
22119 /* end confdefs.h.  */
22120 $ac_includes_default
22121    typedef size_t ac__type_sizeof_;
22122 int
22123 main ()
22124 {
22125 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
22126 test_array [0] = 0
22127
22128   ;
22129   return 0;
22130 }
22131 _ACEOF
22132 rm -f conftest.$ac_objext
22133 if { (ac_try="$ac_compile"
22134 case "(($ac_try" in
22135   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22136   *) ac_try_echo=$ac_try;;
22137 esac
22138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22139   (eval "$ac_compile") 2>conftest.er1
22140   ac_status=$?
22141   grep -v '^ *+' conftest.er1 >conftest.err
22142   rm -f conftest.er1
22143   cat conftest.err >&5
22144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22145   (exit $ac_status); } && {
22146          test -z "$ac_c_werror_flag" ||
22147          test ! -s conftest.err
22148        } && test -s conftest.$ac_objext; then
22149   ac_lo=0 ac_mid=0
22150   while :; do
22151     cat >conftest.$ac_ext <<_ACEOF
22152 /* confdefs.h.  */
22153 _ACEOF
22154 cat confdefs.h >>conftest.$ac_ext
22155 cat >>conftest.$ac_ext <<_ACEOF
22156 /* end confdefs.h.  */
22157 $ac_includes_default
22158    typedef size_t ac__type_sizeof_;
22159 int
22160 main ()
22161 {
22162 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22163 test_array [0] = 0
22164
22165   ;
22166   return 0;
22167 }
22168 _ACEOF
22169 rm -f conftest.$ac_objext
22170 if { (ac_try="$ac_compile"
22171 case "(($ac_try" in
22172   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22173   *) ac_try_echo=$ac_try;;
22174 esac
22175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22176   (eval "$ac_compile") 2>conftest.er1
22177   ac_status=$?
22178   grep -v '^ *+' conftest.er1 >conftest.err
22179   rm -f conftest.er1
22180   cat conftest.err >&5
22181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22182   (exit $ac_status); } && {
22183          test -z "$ac_c_werror_flag" ||
22184          test ! -s conftest.err
22185        } && test -s conftest.$ac_objext; then
22186   ac_hi=$ac_mid; break
22187 else
22188   echo "$as_me: failed program was:" >&5
22189 sed 's/^/| /' conftest.$ac_ext >&5
22190
22191         ac_lo=`expr $ac_mid + 1`
22192                         if test $ac_lo -le $ac_mid; then
22193                           ac_lo= ac_hi=
22194                           break
22195                         fi
22196                         ac_mid=`expr 2 '*' $ac_mid + 1`
22197 fi
22198
22199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22200   done
22201 else
22202   echo "$as_me: failed program was:" >&5
22203 sed 's/^/| /' conftest.$ac_ext >&5
22204
22205         cat >conftest.$ac_ext <<_ACEOF
22206 /* confdefs.h.  */
22207 _ACEOF
22208 cat confdefs.h >>conftest.$ac_ext
22209 cat >>conftest.$ac_ext <<_ACEOF
22210 /* end confdefs.h.  */
22211 $ac_includes_default
22212    typedef size_t ac__type_sizeof_;
22213 int
22214 main ()
22215 {
22216 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
22217 test_array [0] = 0
22218
22219   ;
22220   return 0;
22221 }
22222 _ACEOF
22223 rm -f conftest.$ac_objext
22224 if { (ac_try="$ac_compile"
22225 case "(($ac_try" in
22226   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22227   *) ac_try_echo=$ac_try;;
22228 esac
22229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22230   (eval "$ac_compile") 2>conftest.er1
22231   ac_status=$?
22232   grep -v '^ *+' conftest.er1 >conftest.err
22233   rm -f conftest.er1
22234   cat conftest.err >&5
22235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22236   (exit $ac_status); } && {
22237          test -z "$ac_c_werror_flag" ||
22238          test ! -s conftest.err
22239        } && test -s conftest.$ac_objext; then
22240   ac_hi=-1 ac_mid=-1
22241   while :; do
22242     cat >conftest.$ac_ext <<_ACEOF
22243 /* confdefs.h.  */
22244 _ACEOF
22245 cat confdefs.h >>conftest.$ac_ext
22246 cat >>conftest.$ac_ext <<_ACEOF
22247 /* end confdefs.h.  */
22248 $ac_includes_default
22249    typedef size_t ac__type_sizeof_;
22250 int
22251 main ()
22252 {
22253 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
22254 test_array [0] = 0
22255
22256   ;
22257   return 0;
22258 }
22259 _ACEOF
22260 rm -f conftest.$ac_objext
22261 if { (ac_try="$ac_compile"
22262 case "(($ac_try" in
22263   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22264   *) ac_try_echo=$ac_try;;
22265 esac
22266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22267   (eval "$ac_compile") 2>conftest.er1
22268   ac_status=$?
22269   grep -v '^ *+' conftest.er1 >conftest.err
22270   rm -f conftest.er1
22271   cat conftest.err >&5
22272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22273   (exit $ac_status); } && {
22274          test -z "$ac_c_werror_flag" ||
22275          test ! -s conftest.err
22276        } && test -s conftest.$ac_objext; then
22277   ac_lo=$ac_mid; break
22278 else
22279   echo "$as_me: failed program was:" >&5
22280 sed 's/^/| /' conftest.$ac_ext >&5
22281
22282         ac_hi=`expr '(' $ac_mid ')' - 1`
22283                         if test $ac_mid -le $ac_hi; then
22284                           ac_lo= ac_hi=
22285                           break
22286                         fi
22287                         ac_mid=`expr 2 '*' $ac_mid`
22288 fi
22289
22290 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22291   done
22292 else
22293   echo "$as_me: failed program was:" >&5
22294 sed 's/^/| /' conftest.$ac_ext >&5
22295
22296         ac_lo= ac_hi=
22297 fi
22298
22299 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22300 fi
22301
22302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22303 # Binary search between lo and hi bounds.
22304 while test "x$ac_lo" != "x$ac_hi"; do
22305   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22306   cat >conftest.$ac_ext <<_ACEOF
22307 /* confdefs.h.  */
22308 _ACEOF
22309 cat confdefs.h >>conftest.$ac_ext
22310 cat >>conftest.$ac_ext <<_ACEOF
22311 /* end confdefs.h.  */
22312 $ac_includes_default
22313    typedef size_t ac__type_sizeof_;
22314 int
22315 main ()
22316 {
22317 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22318 test_array [0] = 0
22319
22320   ;
22321   return 0;
22322 }
22323 _ACEOF
22324 rm -f conftest.$ac_objext
22325 if { (ac_try="$ac_compile"
22326 case "(($ac_try" in
22327   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22328   *) ac_try_echo=$ac_try;;
22329 esac
22330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22331   (eval "$ac_compile") 2>conftest.er1
22332   ac_status=$?
22333   grep -v '^ *+' conftest.er1 >conftest.err
22334   rm -f conftest.er1
22335   cat conftest.err >&5
22336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22337   (exit $ac_status); } && {
22338          test -z "$ac_c_werror_flag" ||
22339          test ! -s conftest.err
22340        } && test -s conftest.$ac_objext; then
22341   ac_hi=$ac_mid
22342 else
22343   echo "$as_me: failed program was:" >&5
22344 sed 's/^/| /' conftest.$ac_ext >&5
22345
22346         ac_lo=`expr '(' $ac_mid ')' + 1`
22347 fi
22348
22349 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22350 done
22351 case $ac_lo in
22352 ?*) ac_cv_sizeof_size_t=$ac_lo;;
22353 '') if test "$ac_cv_type_size_t" = yes; then
22354      { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
22355 See \`config.log' for more details." >&5
22356 echo "$as_me: error: cannot compute sizeof (size_t)
22357 See \`config.log' for more details." >&2;}
22358    { (exit 77); exit 77; }; }
22359    else
22360      ac_cv_sizeof_size_t=0
22361    fi ;;
22362 esac
22363 else
22364   cat >conftest.$ac_ext <<_ACEOF
22365 /* confdefs.h.  */
22366 _ACEOF
22367 cat confdefs.h >>conftest.$ac_ext
22368 cat >>conftest.$ac_ext <<_ACEOF
22369 /* end confdefs.h.  */
22370 $ac_includes_default
22371    typedef size_t ac__type_sizeof_;
22372 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
22373 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
22374 #include <stdio.h>
22375 #include <stdlib.h>
22376 int
22377 main ()
22378 {
22379
22380   FILE *f = fopen ("conftest.val", "w");
22381   if (! f)
22382     return 1;
22383   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
22384     {
22385       long int i = longval ();
22386       if (i != ((long int) (sizeof (ac__type_sizeof_))))
22387         return 1;
22388       fprintf (f, "%ld\n", i);
22389     }
22390   else
22391     {
22392       unsigned long int i = ulongval ();
22393       if (i != ((long int) (sizeof (ac__type_sizeof_))))
22394         return 1;
22395       fprintf (f, "%lu\n", i);
22396     }
22397   return ferror (f) || fclose (f) != 0;
22398
22399   ;
22400   return 0;
22401 }
22402 _ACEOF
22403 rm -f conftest$ac_exeext
22404 if { (ac_try="$ac_link"
22405 case "(($ac_try" in
22406   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22407   *) ac_try_echo=$ac_try;;
22408 esac
22409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22410   (eval "$ac_link") 2>&5
22411   ac_status=$?
22412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22413   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22414   { (case "(($ac_try" in
22415   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22416   *) ac_try_echo=$ac_try;;
22417 esac
22418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22419   (eval "$ac_try") 2>&5
22420   ac_status=$?
22421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22422   (exit $ac_status); }; }; then
22423   ac_cv_sizeof_size_t=`cat conftest.val`
22424 else
22425   echo "$as_me: program exited with status $ac_status" >&5
22426 echo "$as_me: failed program was:" >&5
22427 sed 's/^/| /' conftest.$ac_ext >&5
22428
22429 ( exit $ac_status )
22430 if test "$ac_cv_type_size_t" = yes; then
22431      { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
22432 See \`config.log' for more details." >&5
22433 echo "$as_me: error: cannot compute sizeof (size_t)
22434 See \`config.log' for more details." >&2;}
22435    { (exit 77); exit 77; }; }
22436    else
22437      ac_cv_sizeof_size_t=0
22438    fi
22439 fi
22440 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22441 fi
22442 rm -f conftest.val
22443 fi
22444 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
22445 echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6; }
22446
22447
22448
22449 cat >>confdefs.h <<_ACEOF
22450 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
22451 _ACEOF
22452
22453
22454
22455 case "${host}" in
22456     arm-*-linux* )
22457         { echo "$as_me:$LINENO: checking for long long" >&5
22458 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
22459 if test "${ac_cv_type_long_long+set}" = set; then
22460   echo $ECHO_N "(cached) $ECHO_C" >&6
22461 else
22462   cat >conftest.$ac_ext <<_ACEOF
22463 /* confdefs.h.  */
22464 _ACEOF
22465 cat confdefs.h >>conftest.$ac_ext
22466 cat >>conftest.$ac_ext <<_ACEOF
22467 /* end confdefs.h.  */
22468 $ac_includes_default
22469 typedef long long ac__type_new_;
22470 int
22471 main ()
22472 {
22473 if ((ac__type_new_ *) 0)
22474   return 0;
22475 if (sizeof (ac__type_new_))
22476   return 0;
22477   ;
22478   return 0;
22479 }
22480 _ACEOF
22481 rm -f conftest.$ac_objext
22482 if { (ac_try="$ac_compile"
22483 case "(($ac_try" in
22484   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22485   *) ac_try_echo=$ac_try;;
22486 esac
22487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22488   (eval "$ac_compile") 2>conftest.er1
22489   ac_status=$?
22490   grep -v '^ *+' conftest.er1 >conftest.err
22491   rm -f conftest.er1
22492   cat conftest.err >&5
22493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22494   (exit $ac_status); } && {
22495          test -z "$ac_c_werror_flag" ||
22496          test ! -s conftest.err
22497        } && test -s conftest.$ac_objext; then
22498   ac_cv_type_long_long=yes
22499 else
22500   echo "$as_me: failed program was:" >&5
22501 sed 's/^/| /' conftest.$ac_ext >&5
22502
22503         ac_cv_type_long_long=no
22504 fi
22505
22506 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22507 fi
22508 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
22509 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
22510
22511 # The cast to long int works around a bug in the HP C Compiler
22512 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22513 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22514 # This bug is HP SR number 8606223364.
22515 { echo "$as_me:$LINENO: checking size of long long" >&5
22516 echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
22517 if test "${ac_cv_sizeof_long_long+set}" = set; then
22518   echo $ECHO_N "(cached) $ECHO_C" >&6
22519 else
22520   if test "$cross_compiling" = yes; then
22521   # Depending upon the size, compute the lo and hi bounds.
22522 cat >conftest.$ac_ext <<_ACEOF
22523 /* confdefs.h.  */
22524 _ACEOF
22525 cat confdefs.h >>conftest.$ac_ext
22526 cat >>conftest.$ac_ext <<_ACEOF
22527 /* end confdefs.h.  */
22528 $ac_includes_default
22529    typedef long long ac__type_sizeof_;
22530 int
22531 main ()
22532 {
22533 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
22534 test_array [0] = 0
22535
22536   ;
22537   return 0;
22538 }
22539 _ACEOF
22540 rm -f conftest.$ac_objext
22541 if { (ac_try="$ac_compile"
22542 case "(($ac_try" in
22543   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22544   *) ac_try_echo=$ac_try;;
22545 esac
22546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22547   (eval "$ac_compile") 2>conftest.er1
22548   ac_status=$?
22549   grep -v '^ *+' conftest.er1 >conftest.err
22550   rm -f conftest.er1
22551   cat conftest.err >&5
22552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22553   (exit $ac_status); } && {
22554          test -z "$ac_c_werror_flag" ||
22555          test ! -s conftest.err
22556        } && test -s conftest.$ac_objext; then
22557   ac_lo=0 ac_mid=0
22558   while :; do
22559     cat >conftest.$ac_ext <<_ACEOF
22560 /* confdefs.h.  */
22561 _ACEOF
22562 cat confdefs.h >>conftest.$ac_ext
22563 cat >>conftest.$ac_ext <<_ACEOF
22564 /* end confdefs.h.  */
22565 $ac_includes_default
22566    typedef long long ac__type_sizeof_;
22567 int
22568 main ()
22569 {
22570 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22571 test_array [0] = 0
22572
22573   ;
22574   return 0;
22575 }
22576 _ACEOF
22577 rm -f conftest.$ac_objext
22578 if { (ac_try="$ac_compile"
22579 case "(($ac_try" in
22580   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22581   *) ac_try_echo=$ac_try;;
22582 esac
22583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22584   (eval "$ac_compile") 2>conftest.er1
22585   ac_status=$?
22586   grep -v '^ *+' conftest.er1 >conftest.err
22587   rm -f conftest.er1
22588   cat conftest.err >&5
22589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22590   (exit $ac_status); } && {
22591          test -z "$ac_c_werror_flag" ||
22592          test ! -s conftest.err
22593        } && test -s conftest.$ac_objext; then
22594   ac_hi=$ac_mid; break
22595 else
22596   echo "$as_me: failed program was:" >&5
22597 sed 's/^/| /' conftest.$ac_ext >&5
22598
22599         ac_lo=`expr $ac_mid + 1`
22600                         if test $ac_lo -le $ac_mid; then
22601                           ac_lo= ac_hi=
22602                           break
22603                         fi
22604                         ac_mid=`expr 2 '*' $ac_mid + 1`
22605 fi
22606
22607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22608   done
22609 else
22610   echo "$as_me: failed program was:" >&5
22611 sed 's/^/| /' conftest.$ac_ext >&5
22612
22613         cat >conftest.$ac_ext <<_ACEOF
22614 /* confdefs.h.  */
22615 _ACEOF
22616 cat confdefs.h >>conftest.$ac_ext
22617 cat >>conftest.$ac_ext <<_ACEOF
22618 /* end confdefs.h.  */
22619 $ac_includes_default
22620    typedef long long ac__type_sizeof_;
22621 int
22622 main ()
22623 {
22624 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
22625 test_array [0] = 0
22626
22627   ;
22628   return 0;
22629 }
22630 _ACEOF
22631 rm -f conftest.$ac_objext
22632 if { (ac_try="$ac_compile"
22633 case "(($ac_try" in
22634   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22635   *) ac_try_echo=$ac_try;;
22636 esac
22637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22638   (eval "$ac_compile") 2>conftest.er1
22639   ac_status=$?
22640   grep -v '^ *+' conftest.er1 >conftest.err
22641   rm -f conftest.er1
22642   cat conftest.err >&5
22643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22644   (exit $ac_status); } && {
22645          test -z "$ac_c_werror_flag" ||
22646          test ! -s conftest.err
22647        } && test -s conftest.$ac_objext; then
22648   ac_hi=-1 ac_mid=-1
22649   while :; do
22650     cat >conftest.$ac_ext <<_ACEOF
22651 /* confdefs.h.  */
22652 _ACEOF
22653 cat confdefs.h >>conftest.$ac_ext
22654 cat >>conftest.$ac_ext <<_ACEOF
22655 /* end confdefs.h.  */
22656 $ac_includes_default
22657    typedef long long ac__type_sizeof_;
22658 int
22659 main ()
22660 {
22661 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
22662 test_array [0] = 0
22663
22664   ;
22665   return 0;
22666 }
22667 _ACEOF
22668 rm -f conftest.$ac_objext
22669 if { (ac_try="$ac_compile"
22670 case "(($ac_try" in
22671   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22672   *) ac_try_echo=$ac_try;;
22673 esac
22674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22675   (eval "$ac_compile") 2>conftest.er1
22676   ac_status=$?
22677   grep -v '^ *+' conftest.er1 >conftest.err
22678   rm -f conftest.er1
22679   cat conftest.err >&5
22680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22681   (exit $ac_status); } && {
22682          test -z "$ac_c_werror_flag" ||
22683          test ! -s conftest.err
22684        } && test -s conftest.$ac_objext; then
22685   ac_lo=$ac_mid; break
22686 else
22687   echo "$as_me: failed program was:" >&5
22688 sed 's/^/| /' conftest.$ac_ext >&5
22689
22690         ac_hi=`expr '(' $ac_mid ')' - 1`
22691                         if test $ac_mid -le $ac_hi; then
22692                           ac_lo= ac_hi=
22693                           break
22694                         fi
22695                         ac_mid=`expr 2 '*' $ac_mid`
22696 fi
22697
22698 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22699   done
22700 else
22701   echo "$as_me: failed program was:" >&5
22702 sed 's/^/| /' conftest.$ac_ext >&5
22703
22704         ac_lo= ac_hi=
22705 fi
22706
22707 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22708 fi
22709
22710 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22711 # Binary search between lo and hi bounds.
22712 while test "x$ac_lo" != "x$ac_hi"; do
22713   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22714   cat >conftest.$ac_ext <<_ACEOF
22715 /* confdefs.h.  */
22716 _ACEOF
22717 cat confdefs.h >>conftest.$ac_ext
22718 cat >>conftest.$ac_ext <<_ACEOF
22719 /* end confdefs.h.  */
22720 $ac_includes_default
22721    typedef long long ac__type_sizeof_;
22722 int
22723 main ()
22724 {
22725 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22726 test_array [0] = 0
22727
22728   ;
22729   return 0;
22730 }
22731 _ACEOF
22732 rm -f conftest.$ac_objext
22733 if { (ac_try="$ac_compile"
22734 case "(($ac_try" in
22735   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22736   *) ac_try_echo=$ac_try;;
22737 esac
22738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22739   (eval "$ac_compile") 2>conftest.er1
22740   ac_status=$?
22741   grep -v '^ *+' conftest.er1 >conftest.err
22742   rm -f conftest.er1
22743   cat conftest.err >&5
22744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22745   (exit $ac_status); } && {
22746          test -z "$ac_c_werror_flag" ||
22747          test ! -s conftest.err
22748        } && test -s conftest.$ac_objext; then
22749   ac_hi=$ac_mid
22750 else
22751   echo "$as_me: failed program was:" >&5
22752 sed 's/^/| /' conftest.$ac_ext >&5
22753
22754         ac_lo=`expr '(' $ac_mid ')' + 1`
22755 fi
22756
22757 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22758 done
22759 case $ac_lo in
22760 ?*) ac_cv_sizeof_long_long=$ac_lo;;
22761 '') if test "$ac_cv_type_long_long" = yes; then
22762      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
22763 See \`config.log' for more details." >&5
22764 echo "$as_me: error: cannot compute sizeof (long long)
22765 See \`config.log' for more details." >&2;}
22766    { (exit 77); exit 77; }; }
22767    else
22768      ac_cv_sizeof_long_long=0
22769    fi ;;
22770 esac
22771 else
22772   cat >conftest.$ac_ext <<_ACEOF
22773 /* confdefs.h.  */
22774 _ACEOF
22775 cat confdefs.h >>conftest.$ac_ext
22776 cat >>conftest.$ac_ext <<_ACEOF
22777 /* end confdefs.h.  */
22778 $ac_includes_default
22779    typedef long long ac__type_sizeof_;
22780 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
22781 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
22782 #include <stdio.h>
22783 #include <stdlib.h>
22784 int
22785 main ()
22786 {
22787
22788   FILE *f = fopen ("conftest.val", "w");
22789   if (! f)
22790     return 1;
22791   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
22792     {
22793       long int i = longval ();
22794       if (i != ((long int) (sizeof (ac__type_sizeof_))))
22795         return 1;
22796       fprintf (f, "%ld\n", i);
22797     }
22798   else
22799     {
22800       unsigned long int i = ulongval ();
22801       if (i != ((long int) (sizeof (ac__type_sizeof_))))
22802         return 1;
22803       fprintf (f, "%lu\n", i);
22804     }
22805   return ferror (f) || fclose (f) != 0;
22806
22807   ;
22808   return 0;
22809 }
22810 _ACEOF
22811 rm -f conftest$ac_exeext
22812 if { (ac_try="$ac_link"
22813 case "(($ac_try" in
22814   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22815   *) ac_try_echo=$ac_try;;
22816 esac
22817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22818   (eval "$ac_link") 2>&5
22819   ac_status=$?
22820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22821   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22822   { (case "(($ac_try" in
22823   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22824   *) ac_try_echo=$ac_try;;
22825 esac
22826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22827   (eval "$ac_try") 2>&5
22828   ac_status=$?
22829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22830   (exit $ac_status); }; }; then
22831   ac_cv_sizeof_long_long=`cat conftest.val`
22832 else
22833   echo "$as_me: program exited with status $ac_status" >&5
22834 echo "$as_me: failed program was:" >&5
22835 sed 's/^/| /' conftest.$ac_ext >&5
22836
22837 ( exit $ac_status )
22838 if test "$ac_cv_type_long_long" = yes; then
22839      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
22840 See \`config.log' for more details." >&5
22841 echo "$as_me: error: cannot compute sizeof (long long)
22842 See \`config.log' for more details." >&2;}
22843    { (exit 77); exit 77; }; }
22844    else
22845      ac_cv_sizeof_long_long=0
22846    fi
22847 fi
22848 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22849 fi
22850 rm -f conftest.val
22851 fi
22852 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
22853 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
22854
22855
22856
22857 cat >>confdefs.h <<_ACEOF
22858 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
22859 _ACEOF
22860
22861
22862     ;;
22863     *-hp-hpux* )
22864         { echo "$as_me:$LINENO: checking for long long" >&5
22865 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
22866 if test "${ac_cv_type_long_long+set}" = set; then
22867   echo $ECHO_N "(cached) $ECHO_C" >&6
22868 else
22869   cat >conftest.$ac_ext <<_ACEOF
22870 /* confdefs.h.  */
22871 _ACEOF
22872 cat confdefs.h >>conftest.$ac_ext
22873 cat >>conftest.$ac_ext <<_ACEOF
22874 /* end confdefs.h.  */
22875 $ac_includes_default
22876 typedef long long ac__type_new_;
22877 int
22878 main ()
22879 {
22880 if ((ac__type_new_ *) 0)
22881   return 0;
22882 if (sizeof (ac__type_new_))
22883   return 0;
22884   ;
22885   return 0;
22886 }
22887 _ACEOF
22888 rm -f conftest.$ac_objext
22889 if { (ac_try="$ac_compile"
22890 case "(($ac_try" in
22891   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22892   *) ac_try_echo=$ac_try;;
22893 esac
22894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22895   (eval "$ac_compile") 2>conftest.er1
22896   ac_status=$?
22897   grep -v '^ *+' conftest.er1 >conftest.err
22898   rm -f conftest.er1
22899   cat conftest.err >&5
22900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22901   (exit $ac_status); } && {
22902          test -z "$ac_c_werror_flag" ||
22903          test ! -s conftest.err
22904        } && test -s conftest.$ac_objext; then
22905   ac_cv_type_long_long=yes
22906 else
22907   echo "$as_me: failed program was:" >&5
22908 sed 's/^/| /' conftest.$ac_ext >&5
22909
22910         ac_cv_type_long_long=no
22911 fi
22912
22913 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22914 fi
22915 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
22916 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
22917
22918 # The cast to long int works around a bug in the HP C Compiler
22919 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22920 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22921 # This bug is HP SR number 8606223364.
22922 { echo "$as_me:$LINENO: checking size of long long" >&5
22923 echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
22924 if test "${ac_cv_sizeof_long_long+set}" = set; then
22925   echo $ECHO_N "(cached) $ECHO_C" >&6
22926 else
22927   if test "$cross_compiling" = yes; then
22928   # Depending upon the size, compute the lo and hi bounds.
22929 cat >conftest.$ac_ext <<_ACEOF
22930 /* confdefs.h.  */
22931 _ACEOF
22932 cat confdefs.h >>conftest.$ac_ext
22933 cat >>conftest.$ac_ext <<_ACEOF
22934 /* end confdefs.h.  */
22935 $ac_includes_default
22936    typedef long long ac__type_sizeof_;
22937 int
22938 main ()
22939 {
22940 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
22941 test_array [0] = 0
22942
22943   ;
22944   return 0;
22945 }
22946 _ACEOF
22947 rm -f conftest.$ac_objext
22948 if { (ac_try="$ac_compile"
22949 case "(($ac_try" in
22950   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22951   *) ac_try_echo=$ac_try;;
22952 esac
22953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22954   (eval "$ac_compile") 2>conftest.er1
22955   ac_status=$?
22956   grep -v '^ *+' conftest.er1 >conftest.err
22957   rm -f conftest.er1
22958   cat conftest.err >&5
22959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22960   (exit $ac_status); } && {
22961          test -z "$ac_c_werror_flag" ||
22962          test ! -s conftest.err
22963        } && test -s conftest.$ac_objext; then
22964   ac_lo=0 ac_mid=0
22965   while :; do
22966     cat >conftest.$ac_ext <<_ACEOF
22967 /* confdefs.h.  */
22968 _ACEOF
22969 cat confdefs.h >>conftest.$ac_ext
22970 cat >>conftest.$ac_ext <<_ACEOF
22971 /* end confdefs.h.  */
22972 $ac_includes_default
22973    typedef long long ac__type_sizeof_;
22974 int
22975 main ()
22976 {
22977 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22978 test_array [0] = 0
22979
22980   ;
22981   return 0;
22982 }
22983 _ACEOF
22984 rm -f conftest.$ac_objext
22985 if { (ac_try="$ac_compile"
22986 case "(($ac_try" in
22987   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22988   *) ac_try_echo=$ac_try;;
22989 esac
22990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22991   (eval "$ac_compile") 2>conftest.er1
22992   ac_status=$?
22993   grep -v '^ *+' conftest.er1 >conftest.err
22994   rm -f conftest.er1
22995   cat conftest.err >&5
22996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22997   (exit $ac_status); } && {
22998          test -z "$ac_c_werror_flag" ||
22999          test ! -s conftest.err
23000        } && test -s conftest.$ac_objext; then
23001   ac_hi=$ac_mid; break
23002 else
23003   echo "$as_me: failed program was:" >&5
23004 sed 's/^/| /' conftest.$ac_ext >&5
23005
23006         ac_lo=`expr $ac_mid + 1`
23007                         if test $ac_lo -le $ac_mid; then
23008                           ac_lo= ac_hi=
23009                           break
23010                         fi
23011                         ac_mid=`expr 2 '*' $ac_mid + 1`
23012 fi
23013
23014 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23015   done
23016 else
23017   echo "$as_me: failed program was:" >&5
23018 sed 's/^/| /' conftest.$ac_ext >&5
23019
23020         cat >conftest.$ac_ext <<_ACEOF
23021 /* confdefs.h.  */
23022 _ACEOF
23023 cat confdefs.h >>conftest.$ac_ext
23024 cat >>conftest.$ac_ext <<_ACEOF
23025 /* end confdefs.h.  */
23026 $ac_includes_default
23027    typedef long long ac__type_sizeof_;
23028 int
23029 main ()
23030 {
23031 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
23032 test_array [0] = 0
23033
23034   ;
23035   return 0;
23036 }
23037 _ACEOF
23038 rm -f conftest.$ac_objext
23039 if { (ac_try="$ac_compile"
23040 case "(($ac_try" in
23041   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23042   *) ac_try_echo=$ac_try;;
23043 esac
23044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23045   (eval "$ac_compile") 2>conftest.er1
23046   ac_status=$?
23047   grep -v '^ *+' conftest.er1 >conftest.err
23048   rm -f conftest.er1
23049   cat conftest.err >&5
23050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23051   (exit $ac_status); } && {
23052          test -z "$ac_c_werror_flag" ||
23053          test ! -s conftest.err
23054        } && test -s conftest.$ac_objext; then
23055   ac_hi=-1 ac_mid=-1
23056   while :; do
23057     cat >conftest.$ac_ext <<_ACEOF
23058 /* confdefs.h.  */
23059 _ACEOF
23060 cat confdefs.h >>conftest.$ac_ext
23061 cat >>conftest.$ac_ext <<_ACEOF
23062 /* end confdefs.h.  */
23063 $ac_includes_default
23064    typedef long long ac__type_sizeof_;
23065 int
23066 main ()
23067 {
23068 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
23069 test_array [0] = 0
23070
23071   ;
23072   return 0;
23073 }
23074 _ACEOF
23075 rm -f conftest.$ac_objext
23076 if { (ac_try="$ac_compile"
23077 case "(($ac_try" in
23078   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23079   *) ac_try_echo=$ac_try;;
23080 esac
23081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23082   (eval "$ac_compile") 2>conftest.er1
23083   ac_status=$?
23084   grep -v '^ *+' conftest.er1 >conftest.err
23085   rm -f conftest.er1
23086   cat conftest.err >&5
23087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23088   (exit $ac_status); } && {
23089          test -z "$ac_c_werror_flag" ||
23090          test ! -s conftest.err
23091        } && test -s conftest.$ac_objext; then
23092   ac_lo=$ac_mid; break
23093 else
23094   echo "$as_me: failed program was:" >&5
23095 sed 's/^/| /' conftest.$ac_ext >&5
23096
23097         ac_hi=`expr '(' $ac_mid ')' - 1`
23098                         if test $ac_mid -le $ac_hi; then
23099                           ac_lo= ac_hi=
23100                           break
23101                         fi
23102                         ac_mid=`expr 2 '*' $ac_mid`
23103 fi
23104
23105 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23106   done
23107 else
23108   echo "$as_me: failed program was:" >&5
23109 sed 's/^/| /' conftest.$ac_ext >&5
23110
23111         ac_lo= ac_hi=
23112 fi
23113
23114 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23115 fi
23116
23117 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23118 # Binary search between lo and hi bounds.
23119 while test "x$ac_lo" != "x$ac_hi"; do
23120   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23121   cat >conftest.$ac_ext <<_ACEOF
23122 /* confdefs.h.  */
23123 _ACEOF
23124 cat confdefs.h >>conftest.$ac_ext
23125 cat >>conftest.$ac_ext <<_ACEOF
23126 /* end confdefs.h.  */
23127 $ac_includes_default
23128    typedef long long ac__type_sizeof_;
23129 int
23130 main ()
23131 {
23132 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
23133 test_array [0] = 0
23134
23135   ;
23136   return 0;
23137 }
23138 _ACEOF
23139 rm -f conftest.$ac_objext
23140 if { (ac_try="$ac_compile"
23141 case "(($ac_try" in
23142   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23143   *) ac_try_echo=$ac_try;;
23144 esac
23145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23146   (eval "$ac_compile") 2>conftest.er1
23147   ac_status=$?
23148   grep -v '^ *+' conftest.er1 >conftest.err
23149   rm -f conftest.er1
23150   cat conftest.err >&5
23151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23152   (exit $ac_status); } && {
23153          test -z "$ac_c_werror_flag" ||
23154          test ! -s conftest.err
23155        } && test -s conftest.$ac_objext; then
23156   ac_hi=$ac_mid
23157 else
23158   echo "$as_me: failed program was:" >&5
23159 sed 's/^/| /' conftest.$ac_ext >&5
23160
23161         ac_lo=`expr '(' $ac_mid ')' + 1`
23162 fi
23163
23164 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23165 done
23166 case $ac_lo in
23167 ?*) ac_cv_sizeof_long_long=$ac_lo;;
23168 '') if test "$ac_cv_type_long_long" = yes; then
23169      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
23170 See \`config.log' for more details." >&5
23171 echo "$as_me: error: cannot compute sizeof (long long)
23172 See \`config.log' for more details." >&2;}
23173    { (exit 77); exit 77; }; }
23174    else
23175      ac_cv_sizeof_long_long=0
23176    fi ;;
23177 esac
23178 else
23179   cat >conftest.$ac_ext <<_ACEOF
23180 /* confdefs.h.  */
23181 _ACEOF
23182 cat confdefs.h >>conftest.$ac_ext
23183 cat >>conftest.$ac_ext <<_ACEOF
23184 /* end confdefs.h.  */
23185 $ac_includes_default
23186    typedef long long ac__type_sizeof_;
23187 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
23188 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
23189 #include <stdio.h>
23190 #include <stdlib.h>
23191 int
23192 main ()
23193 {
23194
23195   FILE *f = fopen ("conftest.val", "w");
23196   if (! f)
23197     return 1;
23198   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
23199     {
23200       long int i = longval ();
23201       if (i != ((long int) (sizeof (ac__type_sizeof_))))
23202         return 1;
23203       fprintf (f, "%ld\n", i);
23204     }
23205   else
23206     {
23207       unsigned long int i = ulongval ();
23208       if (i != ((long int) (sizeof (ac__type_sizeof_))))
23209         return 1;
23210       fprintf (f, "%lu\n", i);
23211     }
23212   return ferror (f) || fclose (f) != 0;
23213
23214   ;
23215   return 0;
23216 }
23217 _ACEOF
23218 rm -f conftest$ac_exeext
23219 if { (ac_try="$ac_link"
23220 case "(($ac_try" in
23221   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23222   *) ac_try_echo=$ac_try;;
23223 esac
23224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23225   (eval "$ac_link") 2>&5
23226   ac_status=$?
23227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23228   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23229   { (case "(($ac_try" in
23230   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23231   *) ac_try_echo=$ac_try;;
23232 esac
23233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23234   (eval "$ac_try") 2>&5
23235   ac_status=$?
23236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23237   (exit $ac_status); }; }; then
23238   ac_cv_sizeof_long_long=`cat conftest.val`
23239 else
23240   echo "$as_me: program exited with status $ac_status" >&5
23241 echo "$as_me: failed program was:" >&5
23242 sed 's/^/| /' conftest.$ac_ext >&5
23243
23244 ( exit $ac_status )
23245 if test "$ac_cv_type_long_long" = yes; then
23246      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
23247 See \`config.log' for more details." >&5
23248 echo "$as_me: error: cannot compute sizeof (long long)
23249 See \`config.log' for more details." >&2;}
23250    { (exit 77); exit 77; }; }
23251    else
23252      ac_cv_sizeof_long_long=0
23253    fi
23254 fi
23255 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23256 fi
23257 rm -f conftest.val
23258 fi
23259 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
23260 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
23261
23262
23263
23264 cat >>confdefs.h <<_ACEOF
23265 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
23266 _ACEOF
23267
23268
23269         if test "$ac_cv_sizeof_long_long" != 0; then
23270                         CPPFLAGS="-D_INCLUDE_LONGLONG $CPPFLAGS"
23271         fi
23272     ;;
23273     * )
23274         { echo "$as_me:$LINENO: checking for long long" >&5
23275 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
23276 if test "${ac_cv_type_long_long+set}" = set; then
23277   echo $ECHO_N "(cached) $ECHO_C" >&6
23278 else
23279   cat >conftest.$ac_ext <<_ACEOF
23280 /* confdefs.h.  */
23281 _ACEOF
23282 cat confdefs.h >>conftest.$ac_ext
23283 cat >>conftest.$ac_ext <<_ACEOF
23284 /* end confdefs.h.  */
23285 $ac_includes_default
23286 typedef long long ac__type_new_;
23287 int
23288 main ()
23289 {
23290 if ((ac__type_new_ *) 0)
23291   return 0;
23292 if (sizeof (ac__type_new_))
23293   return 0;
23294   ;
23295   return 0;
23296 }
23297 _ACEOF
23298 rm -f conftest.$ac_objext
23299 if { (ac_try="$ac_compile"
23300 case "(($ac_try" in
23301   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23302   *) ac_try_echo=$ac_try;;
23303 esac
23304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23305   (eval "$ac_compile") 2>conftest.er1
23306   ac_status=$?
23307   grep -v '^ *+' conftest.er1 >conftest.err
23308   rm -f conftest.er1
23309   cat conftest.err >&5
23310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23311   (exit $ac_status); } && {
23312          test -z "$ac_c_werror_flag" ||
23313          test ! -s conftest.err
23314        } && test -s conftest.$ac_objext; then
23315   ac_cv_type_long_long=yes
23316 else
23317   echo "$as_me: failed program was:" >&5
23318 sed 's/^/| /' conftest.$ac_ext >&5
23319
23320         ac_cv_type_long_long=no
23321 fi
23322
23323 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23324 fi
23325 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
23326 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
23327
23328 # The cast to long int works around a bug in the HP C Compiler
23329 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23330 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23331 # This bug is HP SR number 8606223364.
23332 { echo "$as_me:$LINENO: checking size of long long" >&5
23333 echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
23334 if test "${ac_cv_sizeof_long_long+set}" = set; then
23335   echo $ECHO_N "(cached) $ECHO_C" >&6
23336 else
23337   if test "$cross_compiling" = yes; then
23338   # Depending upon the size, compute the lo and hi bounds.
23339 cat >conftest.$ac_ext <<_ACEOF
23340 /* confdefs.h.  */
23341 _ACEOF
23342 cat confdefs.h >>conftest.$ac_ext
23343 cat >>conftest.$ac_ext <<_ACEOF
23344 /* end confdefs.h.  */
23345 $ac_includes_default
23346    typedef long long ac__type_sizeof_;
23347 int
23348 main ()
23349 {
23350 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
23351 test_array [0] = 0
23352
23353   ;
23354   return 0;
23355 }
23356 _ACEOF
23357 rm -f conftest.$ac_objext
23358 if { (ac_try="$ac_compile"
23359 case "(($ac_try" in
23360   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23361   *) ac_try_echo=$ac_try;;
23362 esac
23363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23364   (eval "$ac_compile") 2>conftest.er1
23365   ac_status=$?
23366   grep -v '^ *+' conftest.er1 >conftest.err
23367   rm -f conftest.er1
23368   cat conftest.err >&5
23369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23370   (exit $ac_status); } && {
23371          test -z "$ac_c_werror_flag" ||
23372          test ! -s conftest.err
23373        } && test -s conftest.$ac_objext; then
23374   ac_lo=0 ac_mid=0
23375   while :; do
23376     cat >conftest.$ac_ext <<_ACEOF
23377 /* confdefs.h.  */
23378 _ACEOF
23379 cat confdefs.h >>conftest.$ac_ext
23380 cat >>conftest.$ac_ext <<_ACEOF
23381 /* end confdefs.h.  */
23382 $ac_includes_default
23383    typedef long long ac__type_sizeof_;
23384 int
23385 main ()
23386 {
23387 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
23388 test_array [0] = 0
23389
23390   ;
23391   return 0;
23392 }
23393 _ACEOF
23394 rm -f conftest.$ac_objext
23395 if { (ac_try="$ac_compile"
23396 case "(($ac_try" in
23397   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23398   *) ac_try_echo=$ac_try;;
23399 esac
23400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23401   (eval "$ac_compile") 2>conftest.er1
23402   ac_status=$?
23403   grep -v '^ *+' conftest.er1 >conftest.err
23404   rm -f conftest.er1
23405   cat conftest.err >&5
23406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23407   (exit $ac_status); } && {
23408          test -z "$ac_c_werror_flag" ||
23409          test ! -s conftest.err
23410        } && test -s conftest.$ac_objext; then
23411   ac_hi=$ac_mid; break
23412 else
23413   echo "$as_me: failed program was:" >&5
23414 sed 's/^/| /' conftest.$ac_ext >&5
23415
23416         ac_lo=`expr $ac_mid + 1`
23417                         if test $ac_lo -le $ac_mid; then
23418                           ac_lo= ac_hi=
23419                           break
23420                         fi
23421                         ac_mid=`expr 2 '*' $ac_mid + 1`
23422 fi
23423
23424 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23425   done
23426 else
23427   echo "$as_me: failed program was:" >&5
23428 sed 's/^/| /' conftest.$ac_ext >&5
23429
23430         cat >conftest.$ac_ext <<_ACEOF
23431 /* confdefs.h.  */
23432 _ACEOF
23433 cat confdefs.h >>conftest.$ac_ext
23434 cat >>conftest.$ac_ext <<_ACEOF
23435 /* end confdefs.h.  */
23436 $ac_includes_default
23437    typedef long long ac__type_sizeof_;
23438 int
23439 main ()
23440 {
23441 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
23442 test_array [0] = 0
23443
23444   ;
23445   return 0;
23446 }
23447 _ACEOF
23448 rm -f conftest.$ac_objext
23449 if { (ac_try="$ac_compile"
23450 case "(($ac_try" in
23451   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23452   *) ac_try_echo=$ac_try;;
23453 esac
23454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23455   (eval "$ac_compile") 2>conftest.er1
23456   ac_status=$?
23457   grep -v '^ *+' conftest.er1 >conftest.err
23458   rm -f conftest.er1
23459   cat conftest.err >&5
23460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23461   (exit $ac_status); } && {
23462          test -z "$ac_c_werror_flag" ||
23463          test ! -s conftest.err
23464        } && test -s conftest.$ac_objext; then
23465   ac_hi=-1 ac_mid=-1
23466   while :; do
23467     cat >conftest.$ac_ext <<_ACEOF
23468 /* confdefs.h.  */
23469 _ACEOF
23470 cat confdefs.h >>conftest.$ac_ext
23471 cat >>conftest.$ac_ext <<_ACEOF
23472 /* end confdefs.h.  */
23473 $ac_includes_default
23474    typedef long long ac__type_sizeof_;
23475 int
23476 main ()
23477 {
23478 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
23479 test_array [0] = 0
23480
23481   ;
23482   return 0;
23483 }
23484 _ACEOF
23485 rm -f conftest.$ac_objext
23486 if { (ac_try="$ac_compile"
23487 case "(($ac_try" in
23488   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23489   *) ac_try_echo=$ac_try;;
23490 esac
23491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23492   (eval "$ac_compile") 2>conftest.er1
23493   ac_status=$?
23494   grep -v '^ *+' conftest.er1 >conftest.err
23495   rm -f conftest.er1
23496   cat conftest.err >&5
23497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23498   (exit $ac_status); } && {
23499          test -z "$ac_c_werror_flag" ||
23500          test ! -s conftest.err
23501        } && test -s conftest.$ac_objext; then
23502   ac_lo=$ac_mid; break
23503 else
23504   echo "$as_me: failed program was:" >&5
23505 sed 's/^/| /' conftest.$ac_ext >&5
23506
23507         ac_hi=`expr '(' $ac_mid ')' - 1`
23508                         if test $ac_mid -le $ac_hi; then
23509                           ac_lo= ac_hi=
23510                           break
23511                         fi
23512                         ac_mid=`expr 2 '*' $ac_mid`
23513 fi
23514
23515 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23516   done
23517 else
23518   echo "$as_me: failed program was:" >&5
23519 sed 's/^/| /' conftest.$ac_ext >&5
23520
23521         ac_lo= ac_hi=
23522 fi
23523
23524 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23525 fi
23526
23527 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23528 # Binary search between lo and hi bounds.
23529 while test "x$ac_lo" != "x$ac_hi"; do
23530   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23531   cat >conftest.$ac_ext <<_ACEOF
23532 /* confdefs.h.  */
23533 _ACEOF
23534 cat confdefs.h >>conftest.$ac_ext
23535 cat >>conftest.$ac_ext <<_ACEOF
23536 /* end confdefs.h.  */
23537 $ac_includes_default
23538    typedef long long ac__type_sizeof_;
23539 int
23540 main ()
23541 {
23542 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
23543 test_array [0] = 0
23544
23545   ;
23546   return 0;
23547 }
23548 _ACEOF
23549 rm -f conftest.$ac_objext
23550 if { (ac_try="$ac_compile"
23551 case "(($ac_try" in
23552   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23553   *) ac_try_echo=$ac_try;;
23554 esac
23555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23556   (eval "$ac_compile") 2>conftest.er1
23557   ac_status=$?
23558   grep -v '^ *+' conftest.er1 >conftest.err
23559   rm -f conftest.er1
23560   cat conftest.err >&5
23561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23562   (exit $ac_status); } && {
23563          test -z "$ac_c_werror_flag" ||
23564          test ! -s conftest.err
23565        } && test -s conftest.$ac_objext; then
23566   ac_hi=$ac_mid
23567 else
23568   echo "$as_me: failed program was:" >&5
23569 sed 's/^/| /' conftest.$ac_ext >&5
23570
23571         ac_lo=`expr '(' $ac_mid ')' + 1`
23572 fi
23573
23574 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23575 done
23576 case $ac_lo in
23577 ?*) ac_cv_sizeof_long_long=$ac_lo;;
23578 '') if test "$ac_cv_type_long_long" = yes; then
23579      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
23580 See \`config.log' for more details." >&5
23581 echo "$as_me: error: cannot compute sizeof (long long)
23582 See \`config.log' for more details." >&2;}
23583    { (exit 77); exit 77; }; }
23584    else
23585      ac_cv_sizeof_long_long=0
23586    fi ;;
23587 esac
23588 else
23589   cat >conftest.$ac_ext <<_ACEOF
23590 /* confdefs.h.  */
23591 _ACEOF
23592 cat confdefs.h >>conftest.$ac_ext
23593 cat >>conftest.$ac_ext <<_ACEOF
23594 /* end confdefs.h.  */
23595 $ac_includes_default
23596    typedef long long ac__type_sizeof_;
23597 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
23598 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
23599 #include <stdio.h>
23600 #include <stdlib.h>
23601 int
23602 main ()
23603 {
23604
23605   FILE *f = fopen ("conftest.val", "w");
23606   if (! f)
23607     return 1;
23608   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
23609     {
23610       long int i = longval ();
23611       if (i != ((long int) (sizeof (ac__type_sizeof_))))
23612         return 1;
23613       fprintf (f, "%ld\n", i);
23614     }
23615   else
23616     {
23617       unsigned long int i = ulongval ();
23618       if (i != ((long int) (sizeof (ac__type_sizeof_))))
23619         return 1;
23620       fprintf (f, "%lu\n", i);
23621     }
23622   return ferror (f) || fclose (f) != 0;
23623
23624   ;
23625   return 0;
23626 }
23627 _ACEOF
23628 rm -f conftest$ac_exeext
23629 if { (ac_try="$ac_link"
23630 case "(($ac_try" in
23631   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23632   *) ac_try_echo=$ac_try;;
23633 esac
23634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23635   (eval "$ac_link") 2>&5
23636   ac_status=$?
23637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23638   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23639   { (case "(($ac_try" in
23640   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23641   *) ac_try_echo=$ac_try;;
23642 esac
23643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23644   (eval "$ac_try") 2>&5
23645   ac_status=$?
23646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23647   (exit $ac_status); }; }; then
23648   ac_cv_sizeof_long_long=`cat conftest.val`
23649 else
23650   echo "$as_me: program exited with status $ac_status" >&5
23651 echo "$as_me: failed program was:" >&5
23652 sed 's/^/| /' conftest.$ac_ext >&5
23653
23654 ( exit $ac_status )
23655 if test "$ac_cv_type_long_long" = yes; then
23656      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
23657 See \`config.log' for more details." >&5
23658 echo "$as_me: error: cannot compute sizeof (long long)
23659 See \`config.log' for more details." >&2;}
23660    { (exit 77); exit 77; }; }
23661    else
23662      ac_cv_sizeof_long_long=0
23663    fi
23664 fi
23665 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23666 fi
23667 rm -f conftest.val
23668 fi
23669 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
23670 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
23671
23672
23673
23674 cat >>confdefs.h <<_ACEOF
23675 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
23676 _ACEOF
23677
23678
23679 esac
23680
23681 { echo "$as_me:$LINENO: checking for wchar_t" >&5
23682 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
23683 if test "${ac_cv_type_wchar_t+set}" = set; then
23684   echo $ECHO_N "(cached) $ECHO_C" >&6
23685 else
23686   cat >conftest.$ac_ext <<_ACEOF
23687 /* confdefs.h.  */
23688 _ACEOF
23689 cat confdefs.h >>conftest.$ac_ext
23690 cat >>conftest.$ac_ext <<_ACEOF
23691 /* end confdefs.h.  */
23692
23693         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
23694         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
23695         #  error "fake wchar_t"
23696         #endif
23697         #ifdef HAVE_WCHAR_H
23698         #  ifdef __CYGWIN__
23699         #    include <stddef.h>
23700         #  endif
23701         #  include <wchar.h>
23702         #endif
23703         #ifdef HAVE_STDLIB_H
23704         #  include <stdlib.h>
23705         #endif
23706         #include <stdio.h>
23707
23708
23709
23710 typedef wchar_t ac__type_new_;
23711 int
23712 main ()
23713 {
23714 if ((ac__type_new_ *) 0)
23715   return 0;
23716 if (sizeof (ac__type_new_))
23717   return 0;
23718   ;
23719   return 0;
23720 }
23721 _ACEOF
23722 rm -f conftest.$ac_objext
23723 if { (ac_try="$ac_compile"
23724 case "(($ac_try" in
23725   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23726   *) ac_try_echo=$ac_try;;
23727 esac
23728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23729   (eval "$ac_compile") 2>conftest.er1
23730   ac_status=$?
23731   grep -v '^ *+' conftest.er1 >conftest.err
23732   rm -f conftest.er1
23733   cat conftest.err >&5
23734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23735   (exit $ac_status); } && {
23736          test -z "$ac_c_werror_flag" ||
23737          test ! -s conftest.err
23738        } && test -s conftest.$ac_objext; then
23739   ac_cv_type_wchar_t=yes
23740 else
23741   echo "$as_me: failed program was:" >&5
23742 sed 's/^/| /' conftest.$ac_ext >&5
23743
23744         ac_cv_type_wchar_t=no
23745 fi
23746
23747 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23748 fi
23749 { echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
23750 echo "${ECHO_T}$ac_cv_type_wchar_t" >&6; }
23751
23752 # The cast to long int works around a bug in the HP C Compiler
23753 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23754 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23755 # This bug is HP SR number 8606223364.
23756 { echo "$as_me:$LINENO: checking size of wchar_t" >&5
23757 echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6; }
23758 if test "${ac_cv_sizeof_wchar_t+set}" = set; then
23759   echo $ECHO_N "(cached) $ECHO_C" >&6
23760 else
23761   if test "$cross_compiling" = yes; then
23762   # Depending upon the size, compute the lo and hi bounds.
23763 cat >conftest.$ac_ext <<_ACEOF
23764 /* confdefs.h.  */
23765 _ACEOF
23766 cat confdefs.h >>conftest.$ac_ext
23767 cat >>conftest.$ac_ext <<_ACEOF
23768 /* end confdefs.h.  */
23769
23770         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
23771         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
23772         #  error "fake wchar_t"
23773         #endif
23774         #ifdef HAVE_WCHAR_H
23775         #  ifdef __CYGWIN__
23776         #    include <stddef.h>
23777         #  endif
23778         #  include <wchar.h>
23779         #endif
23780         #ifdef HAVE_STDLIB_H
23781         #  include <stdlib.h>
23782         #endif
23783         #include <stdio.h>
23784
23785
23786
23787    typedef wchar_t ac__type_sizeof_;
23788 int
23789 main ()
23790 {
23791 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
23792 test_array [0] = 0
23793
23794   ;
23795   return 0;
23796 }
23797 _ACEOF
23798 rm -f conftest.$ac_objext
23799 if { (ac_try="$ac_compile"
23800 case "(($ac_try" in
23801   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23802   *) ac_try_echo=$ac_try;;
23803 esac
23804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23805   (eval "$ac_compile") 2>conftest.er1
23806   ac_status=$?
23807   grep -v '^ *+' conftest.er1 >conftest.err
23808   rm -f conftest.er1
23809   cat conftest.err >&5
23810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23811   (exit $ac_status); } && {
23812          test -z "$ac_c_werror_flag" ||
23813          test ! -s conftest.err
23814        } && test -s conftest.$ac_objext; then
23815   ac_lo=0 ac_mid=0
23816   while :; do
23817     cat >conftest.$ac_ext <<_ACEOF
23818 /* confdefs.h.  */
23819 _ACEOF
23820 cat confdefs.h >>conftest.$ac_ext
23821 cat >>conftest.$ac_ext <<_ACEOF
23822 /* end confdefs.h.  */
23823
23824         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
23825         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
23826         #  error "fake wchar_t"
23827         #endif
23828         #ifdef HAVE_WCHAR_H
23829         #  ifdef __CYGWIN__
23830         #    include <stddef.h>
23831         #  endif
23832         #  include <wchar.h>
23833         #endif
23834         #ifdef HAVE_STDLIB_H
23835         #  include <stdlib.h>
23836         #endif
23837         #include <stdio.h>
23838
23839
23840
23841    typedef wchar_t ac__type_sizeof_;
23842 int
23843 main ()
23844 {
23845 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
23846 test_array [0] = 0
23847
23848   ;
23849   return 0;
23850 }
23851 _ACEOF
23852 rm -f conftest.$ac_objext
23853 if { (ac_try="$ac_compile"
23854 case "(($ac_try" in
23855   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23856   *) ac_try_echo=$ac_try;;
23857 esac
23858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23859   (eval "$ac_compile") 2>conftest.er1
23860   ac_status=$?
23861   grep -v '^ *+' conftest.er1 >conftest.err
23862   rm -f conftest.er1
23863   cat conftest.err >&5
23864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23865   (exit $ac_status); } && {
23866          test -z "$ac_c_werror_flag" ||
23867          test ! -s conftest.err
23868        } && test -s conftest.$ac_objext; then
23869   ac_hi=$ac_mid; break
23870 else
23871   echo "$as_me: failed program was:" >&5
23872 sed 's/^/| /' conftest.$ac_ext >&5
23873
23874         ac_lo=`expr $ac_mid + 1`
23875                         if test $ac_lo -le $ac_mid; then
23876                           ac_lo= ac_hi=
23877                           break
23878                         fi
23879                         ac_mid=`expr 2 '*' $ac_mid + 1`
23880 fi
23881
23882 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23883   done
23884 else
23885   echo "$as_me: failed program was:" >&5
23886 sed 's/^/| /' conftest.$ac_ext >&5
23887
23888         cat >conftest.$ac_ext <<_ACEOF
23889 /* confdefs.h.  */
23890 _ACEOF
23891 cat confdefs.h >>conftest.$ac_ext
23892 cat >>conftest.$ac_ext <<_ACEOF
23893 /* end confdefs.h.  */
23894
23895         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
23896         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
23897         #  error "fake wchar_t"
23898         #endif
23899         #ifdef HAVE_WCHAR_H
23900         #  ifdef __CYGWIN__
23901         #    include <stddef.h>
23902         #  endif
23903         #  include <wchar.h>
23904         #endif
23905         #ifdef HAVE_STDLIB_H
23906         #  include <stdlib.h>
23907         #endif
23908         #include <stdio.h>
23909
23910
23911
23912    typedef wchar_t ac__type_sizeof_;
23913 int
23914 main ()
23915 {
23916 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
23917 test_array [0] = 0
23918
23919   ;
23920   return 0;
23921 }
23922 _ACEOF
23923 rm -f conftest.$ac_objext
23924 if { (ac_try="$ac_compile"
23925 case "(($ac_try" in
23926   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23927   *) ac_try_echo=$ac_try;;
23928 esac
23929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23930   (eval "$ac_compile") 2>conftest.er1
23931   ac_status=$?
23932   grep -v '^ *+' conftest.er1 >conftest.err
23933   rm -f conftest.er1
23934   cat conftest.err >&5
23935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23936   (exit $ac_status); } && {
23937          test -z "$ac_c_werror_flag" ||
23938          test ! -s conftest.err
23939        } && test -s conftest.$ac_objext; then
23940   ac_hi=-1 ac_mid=-1
23941   while :; do
23942     cat >conftest.$ac_ext <<_ACEOF
23943 /* confdefs.h.  */
23944 _ACEOF
23945 cat confdefs.h >>conftest.$ac_ext
23946 cat >>conftest.$ac_ext <<_ACEOF
23947 /* end confdefs.h.  */
23948
23949         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
23950         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
23951         #  error "fake wchar_t"
23952         #endif
23953         #ifdef HAVE_WCHAR_H
23954         #  ifdef __CYGWIN__
23955         #    include <stddef.h>
23956         #  endif
23957         #  include <wchar.h>
23958         #endif
23959         #ifdef HAVE_STDLIB_H
23960         #  include <stdlib.h>
23961         #endif
23962         #include <stdio.h>
23963
23964
23965
23966    typedef wchar_t ac__type_sizeof_;
23967 int
23968 main ()
23969 {
23970 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
23971 test_array [0] = 0
23972
23973   ;
23974   return 0;
23975 }
23976 _ACEOF
23977 rm -f conftest.$ac_objext
23978 if { (ac_try="$ac_compile"
23979 case "(($ac_try" in
23980   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23981   *) ac_try_echo=$ac_try;;
23982 esac
23983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23984   (eval "$ac_compile") 2>conftest.er1
23985   ac_status=$?
23986   grep -v '^ *+' conftest.er1 >conftest.err
23987   rm -f conftest.er1
23988   cat conftest.err >&5
23989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23990   (exit $ac_status); } && {
23991          test -z "$ac_c_werror_flag" ||
23992          test ! -s conftest.err
23993        } && test -s conftest.$ac_objext; then
23994   ac_lo=$ac_mid; break
23995 else
23996   echo "$as_me: failed program was:" >&5
23997 sed 's/^/| /' conftest.$ac_ext >&5
23998
23999         ac_hi=`expr '(' $ac_mid ')' - 1`
24000                         if test $ac_mid -le $ac_hi; then
24001                           ac_lo= ac_hi=
24002                           break
24003                         fi
24004                         ac_mid=`expr 2 '*' $ac_mid`
24005 fi
24006
24007 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24008   done
24009 else
24010   echo "$as_me: failed program was:" >&5
24011 sed 's/^/| /' conftest.$ac_ext >&5
24012
24013         ac_lo= ac_hi=
24014 fi
24015
24016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24017 fi
24018
24019 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24020 # Binary search between lo and hi bounds.
24021 while test "x$ac_lo" != "x$ac_hi"; do
24022   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24023   cat >conftest.$ac_ext <<_ACEOF
24024 /* confdefs.h.  */
24025 _ACEOF
24026 cat confdefs.h >>conftest.$ac_ext
24027 cat >>conftest.$ac_ext <<_ACEOF
24028 /* end confdefs.h.  */
24029
24030         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
24031         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
24032         #  error "fake wchar_t"
24033         #endif
24034         #ifdef HAVE_WCHAR_H
24035         #  ifdef __CYGWIN__
24036         #    include <stddef.h>
24037         #  endif
24038         #  include <wchar.h>
24039         #endif
24040         #ifdef HAVE_STDLIB_H
24041         #  include <stdlib.h>
24042         #endif
24043         #include <stdio.h>
24044
24045
24046
24047    typedef wchar_t ac__type_sizeof_;
24048 int
24049 main ()
24050 {
24051 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24052 test_array [0] = 0
24053
24054   ;
24055   return 0;
24056 }
24057 _ACEOF
24058 rm -f conftest.$ac_objext
24059 if { (ac_try="$ac_compile"
24060 case "(($ac_try" in
24061   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24062   *) ac_try_echo=$ac_try;;
24063 esac
24064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24065   (eval "$ac_compile") 2>conftest.er1
24066   ac_status=$?
24067   grep -v '^ *+' conftest.er1 >conftest.err
24068   rm -f conftest.er1
24069   cat conftest.err >&5
24070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24071   (exit $ac_status); } && {
24072          test -z "$ac_c_werror_flag" ||
24073          test ! -s conftest.err
24074        } && test -s conftest.$ac_objext; then
24075   ac_hi=$ac_mid
24076 else
24077   echo "$as_me: failed program was:" >&5
24078 sed 's/^/| /' conftest.$ac_ext >&5
24079
24080         ac_lo=`expr '(' $ac_mid ')' + 1`
24081 fi
24082
24083 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24084 done
24085 case $ac_lo in
24086 ?*) ac_cv_sizeof_wchar_t=$ac_lo;;
24087 '') if test "$ac_cv_type_wchar_t" = yes; then
24088      { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t)
24089 See \`config.log' for more details." >&5
24090 echo "$as_me: error: cannot compute sizeof (wchar_t)
24091 See \`config.log' for more details." >&2;}
24092    { (exit 77); exit 77; }; }
24093    else
24094      ac_cv_sizeof_wchar_t=0
24095    fi ;;
24096 esac
24097 else
24098   cat >conftest.$ac_ext <<_ACEOF
24099 /* confdefs.h.  */
24100 _ACEOF
24101 cat confdefs.h >>conftest.$ac_ext
24102 cat >>conftest.$ac_ext <<_ACEOF
24103 /* end confdefs.h.  */
24104
24105         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
24106         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
24107         #  error "fake wchar_t"
24108         #endif
24109         #ifdef HAVE_WCHAR_H
24110         #  ifdef __CYGWIN__
24111         #    include <stddef.h>
24112         #  endif
24113         #  include <wchar.h>
24114         #endif
24115         #ifdef HAVE_STDLIB_H
24116         #  include <stdlib.h>
24117         #endif
24118         #include <stdio.h>
24119
24120
24121
24122    typedef wchar_t ac__type_sizeof_;
24123 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
24124 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
24125 #include <stdio.h>
24126 #include <stdlib.h>
24127 int
24128 main ()
24129 {
24130
24131   FILE *f = fopen ("conftest.val", "w");
24132   if (! f)
24133     return 1;
24134   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
24135     {
24136       long int i = longval ();
24137       if (i != ((long int) (sizeof (ac__type_sizeof_))))
24138         return 1;
24139       fprintf (f, "%ld\n", i);
24140     }
24141   else
24142     {
24143       unsigned long int i = ulongval ();
24144       if (i != ((long int) (sizeof (ac__type_sizeof_))))
24145         return 1;
24146       fprintf (f, "%lu\n", i);
24147     }
24148   return ferror (f) || fclose (f) != 0;
24149
24150   ;
24151   return 0;
24152 }
24153 _ACEOF
24154 rm -f conftest$ac_exeext
24155 if { (ac_try="$ac_link"
24156 case "(($ac_try" in
24157   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24158   *) ac_try_echo=$ac_try;;
24159 esac
24160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24161   (eval "$ac_link") 2>&5
24162   ac_status=$?
24163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24164   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24165   { (case "(($ac_try" in
24166   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24167   *) ac_try_echo=$ac_try;;
24168 esac
24169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24170   (eval "$ac_try") 2>&5
24171   ac_status=$?
24172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24173   (exit $ac_status); }; }; then
24174   ac_cv_sizeof_wchar_t=`cat conftest.val`
24175 else
24176   echo "$as_me: program exited with status $ac_status" >&5
24177 echo "$as_me: failed program was:" >&5
24178 sed 's/^/| /' conftest.$ac_ext >&5
24179
24180 ( exit $ac_status )
24181 if test "$ac_cv_type_wchar_t" = yes; then
24182      { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t)
24183 See \`config.log' for more details." >&5
24184 echo "$as_me: error: cannot compute sizeof (wchar_t)
24185 See \`config.log' for more details." >&2;}
24186    { (exit 77); exit 77; }; }
24187    else
24188      ac_cv_sizeof_wchar_t=0
24189    fi
24190 fi
24191 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24192 fi
24193 rm -f conftest.val
24194 fi
24195 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
24196 echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6; }
24197
24198
24199
24200 cat >>confdefs.h <<_ACEOF
24201 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
24202 _ACEOF
24203
24204
24205 if test "$ac_cv_sizeof_wchar_t" = 0; then
24206     { { echo "$as_me:$LINENO: error: wxWidgets requires wchar_t support." >&5
24207 echo "$as_me: error: wxWidgets requires wchar_t support." >&2;}
24208    { (exit 1); exit 1; }; }
24209 fi
24210 cat >>confdefs.h <<\_ACEOF
24211 #define wxUSE_WCHAR_T 1
24212 _ACEOF
24213
24214
24215 { echo "$as_me:$LINENO: checking for va_copy" >&5
24216 echo $ECHO_N "checking for va_copy... $ECHO_C" >&6; }
24217 if test "${wx_cv_func_va_copy+set}" = set; then
24218   echo $ECHO_N "(cached) $ECHO_C" >&6
24219 else
24220
24221         ac_ext=cpp
24222 ac_cpp='$CXXCPP $CPPFLAGS'
24223 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24224 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24225 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24226
24227         cat >conftest.$ac_ext <<_ACEOF
24228
24229             #include <stdarg.h>
24230             void foo(char *f, ...)
24231             {
24232                 va_list ap1, ap2;
24233                 va_start(ap1, f);
24234                 va_copy(ap2, ap1);
24235                 va_end(ap2);
24236                 va_end(ap1);
24237             }
24238             int main()
24239             {
24240                 foo("hi", 17);
24241                 return 0;
24242             }
24243 _ACEOF
24244 rm -f conftest.$ac_objext conftest$ac_exeext
24245 if { (ac_try="$ac_link"
24246 case "(($ac_try" in
24247   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24248   *) ac_try_echo=$ac_try;;
24249 esac
24250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24251   (eval "$ac_link") 2>conftest.er1
24252   ac_status=$?
24253   grep -v '^ *+' conftest.er1 >conftest.err
24254   rm -f conftest.er1
24255   cat conftest.err >&5
24256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24257   (exit $ac_status); } && {
24258          test -z "$ac_cxx_werror_flag" ||
24259          test ! -s conftest.err
24260        } && test -s conftest$ac_exeext &&
24261        $as_test_x conftest$ac_exeext; then
24262   wx_cv_func_va_copy=yes
24263 else
24264   echo "$as_me: failed program was:" >&5
24265 sed 's/^/| /' conftest.$ac_ext >&5
24266
24267         wx_cv_func_va_copy=no
24268
24269 fi
24270
24271 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24272       conftest$ac_exeext conftest.$ac_ext
24273         ac_ext=c
24274 ac_cpp='$CPP $CPPFLAGS'
24275 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24276 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24277 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24278
24279
24280
24281 fi
24282 { echo "$as_me:$LINENO: result: $wx_cv_func_va_copy" >&5
24283 echo "${ECHO_T}$wx_cv_func_va_copy" >&6; }
24284
24285 if test $wx_cv_func_va_copy = "yes"; then
24286     cat >>confdefs.h <<\_ACEOF
24287 #define HAVE_VA_COPY 1
24288 _ACEOF
24289
24290 else
24291         { echo "$as_me:$LINENO: checking if va_list can be copied by value" >&5
24292 echo $ECHO_N "checking if va_list can be copied by value... $ECHO_C" >&6; }
24293 if test "${wx_cv_type_va_list_lvalue+set}" = set; then
24294   echo $ECHO_N "(cached) $ECHO_C" >&6
24295 else
24296
24297             if test "$cross_compiling" = yes; then
24298                   wx_cv_type_va_list_lvalue=yes
24299
24300 else
24301   cat >conftest.$ac_ext <<_ACEOF
24302
24303                 #include <stdarg.h>
24304                 int foo(char *f, ...)
24305                 {
24306                     va_list ap1, ap2;
24307                     va_start(ap1, f);
24308                     ap2 = ap1;
24309                     if ( va_arg(ap1, int) != 17 || va_arg(ap2, int) != 17 )
24310                         return 1;
24311                     va_end(ap2);
24312                     va_end(ap1);
24313                     return 0;
24314                 }
24315                 int main()
24316                 {
24317                     return foo("hi", 17);
24318                 }
24319 _ACEOF
24320 rm -f conftest$ac_exeext
24321 if { (ac_try="$ac_link"
24322 case "(($ac_try" in
24323   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24324   *) ac_try_echo=$ac_try;;
24325 esac
24326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24327   (eval "$ac_link") 2>&5
24328   ac_status=$?
24329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24330   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24331   { (case "(($ac_try" in
24332   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24333   *) ac_try_echo=$ac_try;;
24334 esac
24335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24336   (eval "$ac_try") 2>&5
24337   ac_status=$?
24338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24339   (exit $ac_status); }; }; then
24340   wx_cv_type_va_list_lvalue=yes
24341 else
24342   echo "$as_me: program exited with status $ac_status" >&5
24343 echo "$as_me: failed program was:" >&5
24344 sed 's/^/| /' conftest.$ac_ext >&5
24345
24346 ( exit $ac_status )
24347 wx_cv_type_va_list_lvalue=no
24348 fi
24349 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24350 fi
24351
24352
24353
24354
24355 fi
24356 { echo "$as_me:$LINENO: result: $wx_cv_type_va_list_lvalue" >&5
24357 echo "${ECHO_T}$wx_cv_type_va_list_lvalue" >&6; }
24358
24359     if test $wx_cv_type_va_list_lvalue != "yes"; then
24360                         cat >>confdefs.h <<\_ACEOF
24361 #define VA_LIST_IS_ARRAY 1
24362 _ACEOF
24363
24364     fi
24365 fi
24366
24367 if test "$wxUSE_VARARG_MACROS" = "yes"; then
24368
24369 { echo "$as_me:$LINENO: checking whether the compiler supports variadic macros" >&5
24370 echo $ECHO_N "checking whether the compiler supports variadic macros... $ECHO_C" >&6; }
24371 if test "${wx_cv_have_variadic_macros+set}" = set; then
24372   echo $ECHO_N "(cached) $ECHO_C" >&6
24373 else
24374
24375                         ac_ext=cpp
24376 ac_cpp='$CXXCPP $CPPFLAGS'
24377 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24378 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24379 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24380
24381         cat >conftest.$ac_ext <<_ACEOF
24382 /* confdefs.h.  */
24383 _ACEOF
24384 cat confdefs.h >>conftest.$ac_ext
24385 cat >>conftest.$ac_ext <<_ACEOF
24386 /* end confdefs.h.  */
24387
24388                     #include <stdio.h>
24389                     #define test(fmt, ...) printf(fmt, __VA_ARGS__)
24390
24391 int
24392 main ()
24393 {
24394
24395                     test("%s %d %p", "test", 1, 0);
24396
24397
24398   ;
24399   return 0;
24400 }
24401 _ACEOF
24402 rm -f conftest.$ac_objext
24403 if { (ac_try="$ac_compile"
24404 case "(($ac_try" in
24405   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24406   *) ac_try_echo=$ac_try;;
24407 esac
24408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24409   (eval "$ac_compile") 2>conftest.er1
24410   ac_status=$?
24411   grep -v '^ *+' conftest.er1 >conftest.err
24412   rm -f conftest.er1
24413   cat conftest.err >&5
24414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24415   (exit $ac_status); } && {
24416          test -z "$ac_cxx_werror_flag" ||
24417          test ! -s conftest.err
24418        } && test -s conftest.$ac_objext; then
24419   wx_cv_have_variadic_macros=yes
24420 else
24421   echo "$as_me: failed program was:" >&5
24422 sed 's/^/| /' conftest.$ac_ext >&5
24423
24424         wx_cv_have_variadic_macros=no
24425
24426 fi
24427
24428 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24429         ac_ext=c
24430 ac_cpp='$CPP $CPPFLAGS'
24431 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24432 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24433 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24434
24435
24436
24437 fi
24438 { echo "$as_me:$LINENO: result: $wx_cv_have_variadic_macros" >&5
24439 echo "${ECHO_T}$wx_cv_have_variadic_macros" >&6; }
24440
24441 if test $wx_cv_have_variadic_macros = "yes"; then
24442     cat >>confdefs.h <<\_ACEOF
24443 #define HAVE_VARIADIC_MACROS 1
24444 _ACEOF
24445
24446 fi
24447
24448 fi
24449
24450 LARGEFILE_CPPFLAGS=
24451 # Check whether --enable-largefile was given.
24452 if test "${enable_largefile+set}" = set; then
24453   enableval=$enable_largefile;
24454 fi
24455
24456 if test "$enable_largefile" != no; then
24457             wx_largefile=no
24458
24459     { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
24460 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
24461 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
24462   echo $ECHO_N "(cached) $ECHO_C" >&6
24463 else
24464
24465           cat >conftest.$ac_ext <<_ACEOF
24466 /* confdefs.h.  */
24467 _ACEOF
24468 cat confdefs.h >>conftest.$ac_ext
24469 cat >>conftest.$ac_ext <<_ACEOF
24470 /* end confdefs.h.  */
24471 #define _FILE_OFFSET_BITS 64
24472                           #include <sys/types.h>
24473 int
24474 main ()
24475 {
24476 typedef struct {
24477     unsigned int field: sizeof(off_t) == 8;
24478 } wxlf;
24479
24480   ;
24481   return 0;
24482 }
24483 _ACEOF
24484 rm -f conftest.$ac_objext
24485 if { (ac_try="$ac_compile"
24486 case "(($ac_try" in
24487   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24488   *) ac_try_echo=$ac_try;;
24489 esac
24490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24491   (eval "$ac_compile") 2>conftest.er1
24492   ac_status=$?
24493   grep -v '^ *+' conftest.er1 >conftest.err
24494   rm -f conftest.er1
24495   cat conftest.err >&5
24496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24497   (exit $ac_status); } && {
24498          test -z "$ac_c_werror_flag" ||
24499          test ! -s conftest.err
24500        } && test -s conftest.$ac_objext; then
24501   ac_cv_sys_file_offset_bits=64
24502 else
24503   echo "$as_me: failed program was:" >&5
24504 sed 's/^/| /' conftest.$ac_ext >&5
24505
24506         ac_cv_sys_file_offset_bits=no
24507 fi
24508
24509 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24510
24511
24512 fi
24513 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
24514 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
24515
24516     if test "$ac_cv_sys_file_offset_bits" != no; then
24517         wx_largefile=yes
24518         cat >>confdefs.h <<_ACEOF
24519 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
24520 _ACEOF
24521
24522     fi
24523
24524     if test "x$wx_largefile" != "xyes"; then
24525
24526     { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
24527 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
24528 if test "${ac_cv_sys_large_files+set}" = set; then
24529   echo $ECHO_N "(cached) $ECHO_C" >&6
24530 else
24531
24532           cat >conftest.$ac_ext <<_ACEOF
24533 /* confdefs.h.  */
24534 _ACEOF
24535 cat confdefs.h >>conftest.$ac_ext
24536 cat >>conftest.$ac_ext <<_ACEOF
24537 /* end confdefs.h.  */
24538 #define _LARGE_FILES 1
24539                           #include <sys/types.h>
24540 int
24541 main ()
24542 {
24543 typedef struct {
24544     unsigned int field: sizeof(off_t) == 8;
24545 } wxlf;
24546
24547   ;
24548   return 0;
24549 }
24550 _ACEOF
24551 rm -f conftest.$ac_objext
24552 if { (ac_try="$ac_compile"
24553 case "(($ac_try" in
24554   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24555   *) ac_try_echo=$ac_try;;
24556 esac
24557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24558   (eval "$ac_compile") 2>conftest.er1
24559   ac_status=$?
24560   grep -v '^ *+' conftest.er1 >conftest.err
24561   rm -f conftest.er1
24562   cat conftest.err >&5
24563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24564   (exit $ac_status); } && {
24565          test -z "$ac_c_werror_flag" ||
24566          test ! -s conftest.err
24567        } && test -s conftest.$ac_objext; then
24568   ac_cv_sys_large_files=1
24569 else
24570   echo "$as_me: failed program was:" >&5
24571 sed 's/^/| /' conftest.$ac_ext >&5
24572
24573         ac_cv_sys_large_files=no
24574 fi
24575
24576 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24577
24578
24579 fi
24580 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
24581 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
24582
24583     if test "$ac_cv_sys_large_files" != no; then
24584         wx_largefile=yes
24585         cat >>confdefs.h <<_ACEOF
24586 #define _LARGE_FILES $ac_cv_sys_large_files
24587 _ACEOF
24588
24589     fi
24590
24591     fi
24592
24593     { echo "$as_me:$LINENO: checking if large file support is available" >&5
24594 echo $ECHO_N "checking if large file support is available... $ECHO_C" >&6; }
24595     if test "x$wx_largefile" = "xyes"; then
24596         cat >>confdefs.h <<\_ACEOF
24597 #define HAVE_LARGEFILE_SUPPORT 1
24598 _ACEOF
24599
24600     fi
24601     { echo "$as_me:$LINENO: result: $wx_largefile" >&5
24602 echo "${ECHO_T}$wx_largefile" >&6; }
24603 fi
24604
24605 if test "$ac_cv_sys_file_offset_bits" = "64"; then
24606     LARGEFILE_CPPFLAGS="-D_FILE_OFFSET_BITS=64"
24607 elif test "$ac_cv_sys_large_files" = 1; then
24608     LARGEFILE_CPPFLAGS="-D_LARGE_FILES"
24609 fi
24610
24611 if test -n "$LARGEFILE_CPPFLAGS"; then
24612     WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS $LARGEFILE_CPPFLAGS"
24613
24614                             if test "$USE_HPUX" = 1 -a "$GXX" = "yes"; then
24615         { echo "$as_me:$LINENO: checking if -D__STDC_EXT__ is required" >&5
24616 echo $ECHO_N "checking if -D__STDC_EXT__ is required... $ECHO_C" >&6; }
24617 if test "${wx_cv_STDC_EXT_required+set}" = set; then
24618   echo $ECHO_N "(cached) $ECHO_C" >&6
24619 else
24620
24621                 ac_ext=cpp
24622 ac_cpp='$CXXCPP $CPPFLAGS'
24623 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24624 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24625 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24626
24627                 cat >conftest.$ac_ext <<_ACEOF
24628 /* confdefs.h.  */
24629 _ACEOF
24630 cat confdefs.h >>conftest.$ac_ext
24631 cat >>conftest.$ac_ext <<_ACEOF
24632 /* end confdefs.h.  */
24633
24634 int
24635 main ()
24636 {
24637
24638                         #ifndef __STDC_EXT__
24639                             choke me
24640                         #endif
24641
24642   ;
24643   return 0;
24644 }
24645 _ACEOF
24646 rm -f conftest.$ac_objext
24647 if { (ac_try="$ac_compile"
24648 case "(($ac_try" in
24649   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24650   *) ac_try_echo=$ac_try;;
24651 esac
24652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24653   (eval "$ac_compile") 2>conftest.er1
24654   ac_status=$?
24655   grep -v '^ *+' conftest.er1 >conftest.err
24656   rm -f conftest.er1
24657   cat conftest.err >&5
24658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24659   (exit $ac_status); } && {
24660          test -z "$ac_cxx_werror_flag" ||
24661          test ! -s conftest.err
24662        } && test -s conftest.$ac_objext; then
24663   wx_cv_STDC_EXT_required=no
24664 else
24665   echo "$as_me: failed program was:" >&5
24666 sed 's/^/| /' conftest.$ac_ext >&5
24667
24668         wx_cv_STDC_EXT_required=yes
24669
24670 fi
24671
24672 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24673                 ac_ext=c
24674 ac_cpp='$CPP $CPPFLAGS'
24675 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24676 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24677 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24678
24679
24680
24681 fi
24682 { echo "$as_me:$LINENO: result: $wx_cv_STDC_EXT_required" >&5
24683 echo "${ECHO_T}$wx_cv_STDC_EXT_required" >&6; }
24684         if test "x$wx_cv_STDC_EXT_required" = "xyes"; then
24685             WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -D__STDC_EXT__"
24686         fi
24687     fi
24688 fi
24689
24690 ac_ext=cpp
24691 ac_cpp='$CXXCPP $CPPFLAGS'
24692 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24693 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24694 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24695
24696 old_CPPFLAGS="$CPPFLAGS"
24697 CPPFLAGS="$CPPFLAGS $LARGEFILE_CPPFLAGS"
24698 { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
24699 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6; }
24700 if test "${ac_cv_sys_largefile_source+set}" = set; then
24701   echo $ECHO_N "(cached) $ECHO_C" >&6
24702 else
24703   while :; do
24704   cat >conftest.$ac_ext <<_ACEOF
24705 /* confdefs.h.  */
24706 _ACEOF
24707 cat confdefs.h >>conftest.$ac_ext
24708 cat >>conftest.$ac_ext <<_ACEOF
24709 /* end confdefs.h.  */
24710 #include <sys/types.h> /* for off_t */
24711      #include <stdio.h>
24712 int
24713 main ()
24714 {
24715 int (*fp) (FILE *, off_t, int) = fseeko;
24716      return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
24717   ;
24718   return 0;
24719 }
24720 _ACEOF
24721 rm -f conftest.$ac_objext conftest$ac_exeext
24722 if { (ac_try="$ac_link"
24723 case "(($ac_try" in
24724   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24725   *) ac_try_echo=$ac_try;;
24726 esac
24727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24728   (eval "$ac_link") 2>conftest.er1
24729   ac_status=$?
24730   grep -v '^ *+' conftest.er1 >conftest.err
24731   rm -f conftest.er1
24732   cat conftest.err >&5
24733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24734   (exit $ac_status); } && {
24735          test -z "$ac_cxx_werror_flag" ||
24736          test ! -s conftest.err
24737        } && test -s conftest$ac_exeext &&
24738        $as_test_x conftest$ac_exeext; then
24739   ac_cv_sys_largefile_source=no; break
24740 else
24741   echo "$as_me: failed program was:" >&5
24742 sed 's/^/| /' conftest.$ac_ext >&5
24743
24744
24745 fi
24746
24747 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24748       conftest$ac_exeext conftest.$ac_ext
24749   cat >conftest.$ac_ext <<_ACEOF
24750 /* confdefs.h.  */
24751 _ACEOF
24752 cat confdefs.h >>conftest.$ac_ext
24753 cat >>conftest.$ac_ext <<_ACEOF
24754 /* end confdefs.h.  */
24755 #define _LARGEFILE_SOURCE 1
24756 #include <sys/types.h> /* for off_t */
24757      #include <stdio.h>
24758 int
24759 main ()
24760 {
24761 int (*fp) (FILE *, off_t, int) = fseeko;
24762      return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
24763   ;
24764   return 0;
24765 }
24766 _ACEOF
24767 rm -f conftest.$ac_objext conftest$ac_exeext
24768 if { (ac_try="$ac_link"
24769 case "(($ac_try" in
24770   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24771   *) ac_try_echo=$ac_try;;
24772 esac
24773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24774   (eval "$ac_link") 2>conftest.er1
24775   ac_status=$?
24776   grep -v '^ *+' conftest.er1 >conftest.err
24777   rm -f conftest.er1
24778   cat conftest.err >&5
24779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24780   (exit $ac_status); } && {
24781          test -z "$ac_cxx_werror_flag" ||
24782          test ! -s conftest.err
24783        } && test -s conftest$ac_exeext &&
24784        $as_test_x conftest$ac_exeext; then
24785   ac_cv_sys_largefile_source=1; break
24786 else
24787   echo "$as_me: failed program was:" >&5
24788 sed 's/^/| /' conftest.$ac_ext >&5
24789
24790
24791 fi
24792
24793 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24794       conftest$ac_exeext conftest.$ac_ext
24795   ac_cv_sys_largefile_source=unknown
24796   break
24797 done
24798 fi
24799 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
24800 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
24801 case $ac_cv_sys_largefile_source in #(
24802   no | unknown) ;;
24803   *)
24804 cat >>confdefs.h <<_ACEOF
24805 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
24806 _ACEOF
24807 ;;
24808 esac
24809 rm -f conftest*
24810
24811 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
24812 # in glibc 2.1.3, but that breaks too many other things.
24813 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
24814 if test $ac_cv_sys_largefile_source != unknown; then
24815
24816 cat >>confdefs.h <<\_ACEOF
24817 #define HAVE_FSEEKO 1
24818 _ACEOF
24819
24820 fi
24821
24822 CPPFLAGS="$old_CPPFLAGS"
24823 ac_ext=c
24824 ac_cpp='$CPP $CPPFLAGS'
24825 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24826 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24827 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24828
24829 if test "$ac_cv_sys_largefile_source" != no; then
24830     WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_LARGEFILE_SOURCE=$ac_cv_sys_largefile_source"
24831 fi
24832
24833 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
24834 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
24835 if test "${ac_cv_c_bigendian+set}" = set; then
24836   echo $ECHO_N "(cached) $ECHO_C" >&6
24837 else
24838   ac_cv_c_bigendian=unknown
24839 # See if sys/param.h defines the BYTE_ORDER macro.
24840 cat >conftest.$ac_ext <<_ACEOF
24841 /* confdefs.h.  */
24842 _ACEOF
24843 cat confdefs.h >>conftest.$ac_ext
24844 cat >>conftest.$ac_ext <<_ACEOF
24845 /* end confdefs.h.  */
24846 #include <sys/types.h>
24847 #include <sys/param.h>
24848 int
24849 main ()
24850 {
24851
24852 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
24853  bogus endian macros
24854 #endif
24855   ;
24856   return 0;
24857 }
24858 _ACEOF
24859 rm -f conftest.$ac_objext
24860 if { (ac_try="$ac_compile"
24861 case "(($ac_try" in
24862   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24863   *) ac_try_echo=$ac_try;;
24864 esac
24865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24866   (eval "$ac_compile") 2>conftest.er1
24867   ac_status=$?
24868   grep -v '^ *+' conftest.er1 >conftest.err
24869   rm -f conftest.er1
24870   cat conftest.err >&5
24871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24872   (exit $ac_status); } && {
24873          test -z "$ac_c_werror_flag" ||
24874          test ! -s conftest.err
24875        } && test -s conftest.$ac_objext; then
24876   # It does; now see whether it defined to BIG_ENDIAN or not.
24877 cat >conftest.$ac_ext <<_ACEOF
24878 /* confdefs.h.  */
24879 _ACEOF
24880 cat confdefs.h >>conftest.$ac_ext
24881 cat >>conftest.$ac_ext <<_ACEOF
24882 /* end confdefs.h.  */
24883 #include <sys/types.h>
24884 #include <sys/param.h>
24885 int
24886 main ()
24887 {
24888
24889 #if BYTE_ORDER != BIG_ENDIAN
24890  not big endian
24891 #endif
24892   ;
24893   return 0;
24894 }
24895 _ACEOF
24896 rm -f conftest.$ac_objext
24897 if { (ac_try="$ac_compile"
24898 case "(($ac_try" in
24899   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24900   *) ac_try_echo=$ac_try;;
24901 esac
24902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24903   (eval "$ac_compile") 2>conftest.er1
24904   ac_status=$?
24905   grep -v '^ *+' conftest.er1 >conftest.err
24906   rm -f conftest.er1
24907   cat conftest.err >&5
24908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24909   (exit $ac_status); } && {
24910          test -z "$ac_c_werror_flag" ||
24911          test ! -s conftest.err
24912        } && test -s conftest.$ac_objext; then
24913   ac_cv_c_bigendian=yes
24914 else
24915   echo "$as_me: failed program was:" >&5
24916 sed 's/^/| /' conftest.$ac_ext >&5
24917
24918         ac_cv_c_bigendian=no
24919 fi
24920
24921 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24922 else
24923   echo "$as_me: failed program was:" >&5
24924 sed 's/^/| /' conftest.$ac_ext >&5
24925
24926
24927 fi
24928
24929 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24930 if test $ac_cv_c_bigendian = unknown; then
24931 if test "$cross_compiling" = yes; then
24932   ac_cv_c_bigendian=unknown
24933 else
24934   cat >conftest.$ac_ext <<_ACEOF
24935 /* confdefs.h.  */
24936 _ACEOF
24937 cat confdefs.h >>conftest.$ac_ext
24938 cat >>conftest.$ac_ext <<_ACEOF
24939 /* end confdefs.h.  */
24940 main () {
24941   /* Are we little or big endian?  From Harbison&Steele.  */
24942   union
24943   {
24944     long l;
24945     char c[sizeof (long)];
24946   } u;
24947   u.l = 1;
24948   exit (u.c[sizeof (long) - 1] == 1);
24949 }
24950 _ACEOF
24951 rm -f conftest$ac_exeext
24952 if { (ac_try="$ac_link"
24953 case "(($ac_try" in
24954   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24955   *) ac_try_echo=$ac_try;;
24956 esac
24957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24958   (eval "$ac_link") 2>&5
24959   ac_status=$?
24960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24961   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24962   { (case "(($ac_try" in
24963   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24964   *) ac_try_echo=$ac_try;;
24965 esac
24966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24967   (eval "$ac_try") 2>&5
24968   ac_status=$?
24969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24970   (exit $ac_status); }; }; then
24971   ac_cv_c_bigendian=no
24972 else
24973   echo "$as_me: program exited with status $ac_status" >&5
24974 echo "$as_me: failed program was:" >&5
24975 sed 's/^/| /' conftest.$ac_ext >&5
24976
24977 ( exit $ac_status )
24978 ac_cv_c_bigendian=yes
24979 fi
24980 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24981 fi
24982
24983
24984 fi
24985 fi
24986 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
24987 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
24988 if test $ac_cv_c_bigendian = unknown; then
24989   { echo "$as_me:$LINENO: WARNING: Assuming little-endian target machine - this may be overridden by adding the line \"ac_cv_c_bigendian=${ac_cv_c_bigendian='yes'}\" to config.cache file" >&5
24990 echo "$as_me: WARNING: Assuming little-endian target machine - this may be overridden by adding the line \"ac_cv_c_bigendian=${ac_cv_c_bigendian='yes'}\" to config.cache file" >&2;}
24991 fi
24992 if test $ac_cv_c_bigendian = yes; then
24993   cat >>confdefs.h <<\_ACEOF
24994 #define WORDS_BIGENDIAN 1
24995 _ACEOF
24996
24997 fi
24998
24999
25000
25001
25002     ac_ext=cpp
25003 ac_cpp='$CXXCPP $CPPFLAGS'
25004 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25005 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25006 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25007
25008
25009
25010 for ac_header in iostream
25011 do
25012 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25013 { echo "$as_me:$LINENO: checking for $ac_header" >&5
25014 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
25015 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25016   echo $ECHO_N "(cached) $ECHO_C" >&6
25017 else
25018   cat >conftest.$ac_ext <<_ACEOF
25019 /* confdefs.h.  */
25020 _ACEOF
25021 cat confdefs.h >>conftest.$ac_ext
25022 cat >>conftest.$ac_ext <<_ACEOF
25023 /* end confdefs.h.  */
25024
25025
25026 #include <$ac_header>
25027 _ACEOF
25028 rm -f conftest.$ac_objext
25029 if { (ac_try="$ac_compile"
25030 case "(($ac_try" in
25031   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25032   *) ac_try_echo=$ac_try;;
25033 esac
25034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25035   (eval "$ac_compile") 2>conftest.er1
25036   ac_status=$?
25037   grep -v '^ *+' conftest.er1 >conftest.err
25038   rm -f conftest.er1
25039   cat conftest.err >&5
25040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25041   (exit $ac_status); } && {
25042          test -z "$ac_cxx_werror_flag" ||
25043          test ! -s conftest.err
25044        } && test -s conftest.$ac_objext; then
25045   eval "$as_ac_Header=yes"
25046 else
25047   echo "$as_me: failed program was:" >&5
25048 sed 's/^/| /' conftest.$ac_ext >&5
25049
25050         eval "$as_ac_Header=no"
25051 fi
25052
25053 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25054 fi
25055 ac_res=`eval echo '${'$as_ac_Header'}'`
25056                { echo "$as_me:$LINENO: result: $ac_res" >&5
25057 echo "${ECHO_T}$ac_res" >&6; }
25058 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25059   cat >>confdefs.h <<_ACEOF
25060 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25061 _ACEOF
25062
25063 fi
25064
25065 done
25066
25067
25068     if test "$ac_cv_header_iostream" = "yes" ; then
25069       :
25070     else
25071       cat >>confdefs.h <<\_ACEOF
25072 #define wxUSE_IOSTREAMH 1
25073 _ACEOF
25074
25075     fi
25076
25077     ac_ext=c
25078 ac_cpp='$CPP $CPPFLAGS'
25079 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25080 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25081 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25082
25083
25084
25085
25086   { echo "$as_me:$LINENO: checking if C++ compiler supports the explicit keyword" >&5
25087 echo $ECHO_N "checking if C++ compiler supports the explicit keyword... $ECHO_C" >&6; }
25088 if test "${wx_cv_explicit+set}" = set; then
25089   echo $ECHO_N "(cached) $ECHO_C" >&6
25090 else
25091
25092
25093     ac_ext=cpp
25094 ac_cpp='$CXXCPP $CPPFLAGS'
25095 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25096 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25097 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25098
25099
25100             cat >conftest.$ac_ext <<_ACEOF
25101 /* confdefs.h.  */
25102 _ACEOF
25103 cat confdefs.h >>conftest.$ac_ext
25104 cat >>conftest.$ac_ext <<_ACEOF
25105 /* end confdefs.h.  */
25106
25107         class Foo { public: explicit Foo(int) {} };
25108
25109 int
25110 main ()
25111 {
25112
25113         return 0;
25114
25115   ;
25116   return 0;
25117 }
25118 _ACEOF
25119 rm -f conftest.$ac_objext
25120 if { (ac_try="$ac_compile"
25121 case "(($ac_try" in
25122   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25123   *) ac_try_echo=$ac_try;;
25124 esac
25125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25126   (eval "$ac_compile") 2>conftest.er1
25127   ac_status=$?
25128   grep -v '^ *+' conftest.er1 >conftest.err
25129   rm -f conftest.er1
25130   cat conftest.err >&5
25131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25132   (exit $ac_status); } && {
25133          test -z "$ac_cxx_werror_flag" ||
25134          test ! -s conftest.err
25135        } && test -s conftest.$ac_objext; then
25136
25137         cat >conftest.$ac_ext <<_ACEOF
25138 /* confdefs.h.  */
25139 _ACEOF
25140 cat confdefs.h >>conftest.$ac_ext
25141 cat >>conftest.$ac_ext <<_ACEOF
25142 /* end confdefs.h.  */
25143
25144                 class Foo { public: explicit Foo(int) {} };
25145                 static void TakeFoo(const Foo& foo) { }
25146
25147 int
25148 main ()
25149 {
25150
25151                 TakeFoo(17);
25152                 return 0;
25153
25154   ;
25155   return 0;
25156 }
25157 _ACEOF
25158 rm -f conftest.$ac_objext
25159 if { (ac_try="$ac_compile"
25160 case "(($ac_try" in
25161   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25162   *) ac_try_echo=$ac_try;;
25163 esac
25164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25165   (eval "$ac_compile") 2>conftest.er1
25166   ac_status=$?
25167   grep -v '^ *+' conftest.er1 >conftest.err
25168   rm -f conftest.er1
25169   cat conftest.err >&5
25170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25171   (exit $ac_status); } && {
25172          test -z "$ac_cxx_werror_flag" ||
25173          test ! -s conftest.err
25174        } && test -s conftest.$ac_objext; then
25175   wx_cv_explicit=no
25176 else
25177   echo "$as_me: failed program was:" >&5
25178 sed 's/^/| /' conftest.$ac_ext >&5
25179
25180         wx_cv_explicit=yes
25181
25182 fi
25183
25184 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25185
25186 else
25187   echo "$as_me: failed program was:" >&5
25188 sed 's/^/| /' conftest.$ac_ext >&5
25189
25190         wx_cv_explicit=no
25191
25192 fi
25193
25194 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25195
25196     ac_ext=c
25197 ac_cpp='$CPP $CPPFLAGS'
25198 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25199 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25200 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25201
25202
25203 fi
25204 { echo "$as_me:$LINENO: result: $wx_cv_explicit" >&5
25205 echo "${ECHO_T}$wx_cv_explicit" >&6; }
25206
25207   if test "$wx_cv_explicit" = "yes"; then
25208     cat >>confdefs.h <<\_ACEOF
25209 #define HAVE_EXPLICIT 1
25210 _ACEOF
25211
25212   fi
25213
25214
25215 if test "x$SUNCXX" = xyes; then
25216     CXXFLAGS="-features=tmplife $CXXFLAGS"
25217 fi
25218
25219 if test "x$SUNCC" = xyes; then
25220     CFLAGS="-erroff=E_NO_EXPLICIT_TYPE_GIVEN $CFLAGS"
25221 fi
25222
25223 if test "x$SGICC" = "xyes"; then
25224     { echo "$as_me:$LINENO: checking if cc version is 7.4.4 or greater" >&5
25225 echo $ECHO_N "checking if cc version is 7.4.4 or greater... $ECHO_C" >&6; }
25226 if test "${wx_cv_prog_sgicc744+set}" = set; then
25227   echo $ECHO_N "(cached) $ECHO_C" >&6
25228 else
25229
25230             cat >conftest.$ac_ext <<_ACEOF
25231 /* confdefs.h.  */
25232 _ACEOF
25233 cat confdefs.h >>conftest.$ac_ext
25234 cat >>conftest.$ac_ext <<_ACEOF
25235 /* end confdefs.h.  */
25236
25237 int
25238 main ()
25239 {
25240
25241                     #if _SGI_COMPILER_VERSION >= 744
25242                     chock me: mipsPro is 7.4.4 or later
25243                     #endif
25244
25245   ;
25246   return 0;
25247 }
25248 _ACEOF
25249 rm -f conftest.$ac_objext
25250 if { (ac_try="$ac_compile"
25251 case "(($ac_try" in
25252   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25253   *) ac_try_echo=$ac_try;;
25254 esac
25255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25256   (eval "$ac_compile") 2>conftest.er1
25257   ac_status=$?
25258   grep -v '^ *+' conftest.er1 >conftest.err
25259   rm -f conftest.er1
25260   cat conftest.err >&5
25261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25262   (exit $ac_status); } && {
25263          test -z "$ac_c_werror_flag" ||
25264          test ! -s conftest.err
25265        } && test -s conftest.$ac_objext; then
25266   wx_cv_prog_sgicc744=no
25267 else
25268   echo "$as_me: failed program was:" >&5
25269 sed 's/^/| /' conftest.$ac_ext >&5
25270
25271         wx_cv_prog_sgicc744=yes
25272
25273 fi
25274
25275 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25276
25277
25278 fi
25279 { echo "$as_me:$LINENO: result: $wx_cv_prog_sgicc744" >&5
25280 echo "${ECHO_T}$wx_cv_prog_sgicc744" >&6; }
25281
25282     if test "x$wx_cv_prog_sgicc744" = "xyes"; then
25283         CFLAGS="-woff 3970 $CFLAGS"
25284     fi
25285 fi
25286 if test "x$SGICXX" = "xyes"; then
25287     { echo "$as_me:$LINENO: checking if CC version is 7.4.4 or greater" >&5
25288 echo $ECHO_N "checking if CC version is 7.4.4 or greater... $ECHO_C" >&6; }
25289 if test "${wx_cv_prog_sgicxx744+set}" = set; then
25290   echo $ECHO_N "(cached) $ECHO_C" >&6
25291 else
25292
25293             ac_ext=cpp
25294 ac_cpp='$CXXCPP $CPPFLAGS'
25295 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25296 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25297 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25298
25299             cat >conftest.$ac_ext <<_ACEOF
25300 /* confdefs.h.  */
25301 _ACEOF
25302 cat confdefs.h >>conftest.$ac_ext
25303 cat >>conftest.$ac_ext <<_ACEOF
25304 /* end confdefs.h.  */
25305
25306 int
25307 main ()
25308 {
25309
25310                     #if _SGI_COMPILER_VERSION >= 744
25311                     chock me: mipsPro is 7.4.4 or later
25312                     #endif
25313
25314   ;
25315   return 0;
25316 }
25317 _ACEOF
25318 rm -f conftest.$ac_objext
25319 if { (ac_try="$ac_compile"
25320 case "(($ac_try" in
25321   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25322   *) ac_try_echo=$ac_try;;
25323 esac
25324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25325   (eval "$ac_compile") 2>conftest.er1
25326   ac_status=$?
25327   grep -v '^ *+' conftest.er1 >conftest.err
25328   rm -f conftest.er1
25329   cat conftest.err >&5
25330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25331   (exit $ac_status); } && {
25332          test -z "$ac_cxx_werror_flag" ||
25333          test ! -s conftest.err
25334        } && test -s conftest.$ac_objext; then
25335   wx_cv_prog_sgicxx744=no
25336 else
25337   echo "$as_me: failed program was:" >&5
25338 sed 's/^/| /' conftest.$ac_ext >&5
25339
25340         wx_cv_prog_sgicxx744=yes
25341
25342 fi
25343
25344 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25345             ac_ext=c
25346 ac_cpp='$CPP $CPPFLAGS'
25347 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25348 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25349 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25350
25351
25352
25353 fi
25354 { echo "$as_me:$LINENO: result: $wx_cv_prog_sgicxx744" >&5
25355 echo "${ECHO_T}$wx_cv_prog_sgicxx744" >&6; }
25356
25357     if test "x$wx_cv_prog_sgicxx744" = "xyes"; then
25358         CXXFLAGS="-woff 3970 $CXXFLAGS"
25359     fi
25360 fi
25361
25362 if test "x$HPCC" = "xyes"; then
25363                     CFLAGS="+W 2011,2450 $CFLAGS"
25364 fi
25365 if test "x$HPCXX" = "xyes"; then
25366                             CXXFLAGS="+W 2340,4232 $CXXFLAGS"
25367 fi
25368
25369 if test "x$COMPAQCXX" = "xyes"; then
25370                                 CXXFLAGS="-w0 -msg_disable basclsnondto,unrimpret,intconlosbit"
25371 fi
25372
25373 ac_ext=cpp
25374 ac_cpp='$CXXCPP $CPPFLAGS'
25375 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25376 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25377 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25378
25379
25380 if test "$wxUSE_STD_STRING" = "yes" -o "$wxUSE_STL" = "yes"; then
25381     if test "$wxUSE_UNICODE" = "yes"; then
25382         std_string="std::wstring"
25383         char_type="wchar_t"
25384     else
25385         std_string="std::string"
25386         char_type="char"
25387     fi
25388
25389         { echo "$as_me:$LINENO: checking for $std_string in <string>" >&5
25390 echo $ECHO_N "checking for $std_string in <string>... $ECHO_C" >&6; }
25391 if test "${wx_cv_class_stdstring+set}" = set; then
25392   echo $ECHO_N "(cached) $ECHO_C" >&6
25393 else
25394
25395             cat >conftest.$ac_ext <<_ACEOF
25396 /* confdefs.h.  */
25397 _ACEOF
25398 cat confdefs.h >>conftest.$ac_ext
25399 cat >>conftest.$ac_ext <<_ACEOF
25400 /* end confdefs.h.  */
25401 #include <string>
25402 int
25403 main ()
25404 {
25405 $std_string foo;
25406   ;
25407   return 0;
25408 }
25409 _ACEOF
25410 rm -f conftest.$ac_objext
25411 if { (ac_try="$ac_compile"
25412 case "(($ac_try" in
25413   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25414   *) ac_try_echo=$ac_try;;
25415 esac
25416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25417   (eval "$ac_compile") 2>conftest.er1
25418   ac_status=$?
25419   grep -v '^ *+' conftest.er1 >conftest.err
25420   rm -f conftest.er1
25421   cat conftest.err >&5
25422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25423   (exit $ac_status); } && {
25424          test -z "$ac_cxx_werror_flag" ||
25425          test ! -s conftest.err
25426        } && test -s conftest.$ac_objext; then
25427   wx_cv_class_stdstring=yes
25428 else
25429   echo "$as_me: failed program was:" >&5
25430 sed 's/^/| /' conftest.$ac_ext >&5
25431
25432         wx_cv_class_stdstring=no
25433
25434 fi
25435
25436 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25437
25438
25439 fi
25440 { echo "$as_me:$LINENO: result: $wx_cv_class_stdstring" >&5
25441 echo "${ECHO_T}$wx_cv_class_stdstring" >&6; }
25442
25443     if test "$wx_cv_class_stdstring" = yes; then
25444         if test "$wxUSE_UNICODE" = "yes"; then
25445             cat >>confdefs.h <<\_ACEOF
25446 #define HAVE_STD_WSTRING 1
25447 _ACEOF
25448
25449         fi
25450                     else
25451         { echo "$as_me:$LINENO: checking if std::basic_string<$char_type> works" >&5
25452 echo $ECHO_N "checking if std::basic_string<$char_type> works... $ECHO_C" >&6; }
25453 if test "${wx_cv_class_stdbasicstring+set}" = set; then
25454   echo $ECHO_N "(cached) $ECHO_C" >&6
25455 else
25456
25457                 cat >conftest.$ac_ext <<_ACEOF
25458 /* confdefs.h.  */
25459 _ACEOF
25460 cat confdefs.h >>conftest.$ac_ext
25461 cat >>conftest.$ac_ext <<_ACEOF
25462 /* end confdefs.h.  */
25463
25464                     #ifdef HAVE_WCHAR_H
25465                     #  ifdef __CYGWIN__
25466                     #    include <stddef.h>
25467                     #  endif
25468                     #  include <wchar.h>
25469                     #endif
25470                     #ifdef HAVE_STDLIB_H
25471                     #  include <stdlib.h>
25472                     #endif
25473                     #include <stdio.h>
25474                     #include <string>
25475
25476 int
25477 main ()
25478 {
25479 std::basic_string<$char_type> foo;
25480                      const $char_type* dummy = foo.c_str();
25481   ;
25482   return 0;
25483 }
25484 _ACEOF
25485 rm -f conftest.$ac_objext
25486 if { (ac_try="$ac_compile"
25487 case "(($ac_try" in
25488   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25489   *) ac_try_echo=$ac_try;;
25490 esac
25491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25492   (eval "$ac_compile") 2>conftest.er1
25493   ac_status=$?
25494   grep -v '^ *+' conftest.er1 >conftest.err
25495   rm -f conftest.er1
25496   cat conftest.err >&5
25497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25498   (exit $ac_status); } && {
25499          test -z "$ac_cxx_werror_flag" ||
25500          test ! -s conftest.err
25501        } && test -s conftest.$ac_objext; then
25502   wx_cv_class_stdbasicstring=yes
25503 else
25504   echo "$as_me: failed program was:" >&5
25505 sed 's/^/| /' conftest.$ac_ext >&5
25506
25507         wx_cv_class_stdbasicstring=no
25508
25509 fi
25510
25511 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25512
25513
25514 fi
25515 { echo "$as_me:$LINENO: result: $wx_cv_class_stdbasicstring" >&5
25516 echo "${ECHO_T}$wx_cv_class_stdbasicstring" >&6; }
25517
25518         if test "$wx_cv_class_stdbasicstring" != yes; then
25519             if test "$wxUSE_STL" = "yes"; then
25520                 { { echo "$as_me:$LINENO: error: Can't use --enable-stl without $std_string or std::basic_string<$char_type>" >&5
25521 echo "$as_me: error: Can't use --enable-stl without $std_string or std::basic_string<$char_type>" >&2;}
25522    { (exit 1); exit 1; }; }
25523             elif test "$wxUSE_STD_STRING" = "yes"; then
25524                 { { echo "$as_me:$LINENO: error: Can't use --enable-std_string without $std_string or std::basic_string<$char_type>" >&5
25525 echo "$as_me: error: Can't use --enable-std_string without $std_string or std::basic_string<$char_type>" >&2;}
25526    { (exit 1); exit 1; }; }
25527             else
25528                 { echo "$as_me:$LINENO: WARNING: No $std_string or std::basic_string<$char_type>, switching to --disable-std_string" >&5
25529 echo "$as_me: WARNING: No $std_string or std::basic_string<$char_type>, switching to --disable-std_string" >&2;}
25530                 wxUSE_STD_STRING=no
25531             fi
25532         fi
25533     fi
25534 fi
25535
25536 if test "$wxUSE_STD_IOSTREAM" = "yes"; then
25537     { echo "$as_me:$LINENO: checking for std::istream" >&5
25538 echo $ECHO_N "checking for std::istream... $ECHO_C" >&6; }
25539 if test "${ac_cv_type_std__istream+set}" = set; then
25540   echo $ECHO_N "(cached) $ECHO_C" >&6
25541 else
25542   cat >conftest.$ac_ext <<_ACEOF
25543 /* confdefs.h.  */
25544 _ACEOF
25545 cat confdefs.h >>conftest.$ac_ext
25546 cat >>conftest.$ac_ext <<_ACEOF
25547 /* end confdefs.h.  */
25548 #include <iostream>
25549
25550 typedef std::istream ac__type_new_;
25551 int
25552 main ()
25553 {
25554 if ((ac__type_new_ *) 0)
25555   return 0;
25556 if (sizeof (ac__type_new_))
25557   return 0;
25558   ;
25559   return 0;
25560 }
25561 _ACEOF
25562 rm -f conftest.$ac_objext
25563 if { (ac_try="$ac_compile"
25564 case "(($ac_try" in
25565   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25566   *) ac_try_echo=$ac_try;;
25567 esac
25568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25569   (eval "$ac_compile") 2>conftest.er1
25570   ac_status=$?
25571   grep -v '^ *+' conftest.er1 >conftest.err
25572   rm -f conftest.er1
25573   cat conftest.err >&5
25574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25575   (exit $ac_status); } && {
25576          test -z "$ac_cxx_werror_flag" ||
25577          test ! -s conftest.err
25578        } && test -s conftest.$ac_objext; then
25579   ac_cv_type_std__istream=yes
25580 else
25581   echo "$as_me: failed program was:" >&5
25582 sed 's/^/| /' conftest.$ac_ext >&5
25583
25584         ac_cv_type_std__istream=no
25585 fi
25586
25587 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25588 fi
25589 { echo "$as_me:$LINENO: result: $ac_cv_type_std__istream" >&5
25590 echo "${ECHO_T}$ac_cv_type_std__istream" >&6; }
25591 if test $ac_cv_type_std__istream = yes; then
25592
25593 cat >>confdefs.h <<_ACEOF
25594 #define HAVE_STD__ISTREAM 1
25595 _ACEOF
25596
25597
25598 else
25599   wxUSE_STD_IOSTREAM=no
25600 fi
25601 { echo "$as_me:$LINENO: checking for std::ostream" >&5
25602 echo $ECHO_N "checking for std::ostream... $ECHO_C" >&6; }
25603 if test "${ac_cv_type_std__ostream+set}" = set; then
25604   echo $ECHO_N "(cached) $ECHO_C" >&6
25605 else
25606   cat >conftest.$ac_ext <<_ACEOF
25607 /* confdefs.h.  */
25608 _ACEOF
25609 cat confdefs.h >>conftest.$ac_ext
25610 cat >>conftest.$ac_ext <<_ACEOF
25611 /* end confdefs.h.  */
25612 #include <iostream>
25613
25614 typedef std::ostream ac__type_new_;
25615 int
25616 main ()
25617 {
25618 if ((ac__type_new_ *) 0)
25619   return 0;
25620 if (sizeof (ac__type_new_))
25621   return 0;
25622   ;
25623   return 0;
25624 }
25625 _ACEOF
25626 rm -f conftest.$ac_objext
25627 if { (ac_try="$ac_compile"
25628 case "(($ac_try" in
25629   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25630   *) ac_try_echo=$ac_try;;
25631 esac
25632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25633   (eval "$ac_compile") 2>conftest.er1
25634   ac_status=$?
25635   grep -v '^ *+' conftest.er1 >conftest.err
25636   rm -f conftest.er1
25637   cat conftest.err >&5
25638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25639   (exit $ac_status); } && {
25640          test -z "$ac_cxx_werror_flag" ||
25641          test ! -s conftest.err
25642        } && test -s conftest.$ac_objext; then
25643   ac_cv_type_std__ostream=yes
25644 else
25645   echo "$as_me: failed program was:" >&5
25646 sed 's/^/| /' conftest.$ac_ext >&5
25647
25648         ac_cv_type_std__ostream=no
25649 fi
25650
25651 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25652 fi
25653 { echo "$as_me:$LINENO: result: $ac_cv_type_std__ostream" >&5
25654 echo "${ECHO_T}$ac_cv_type_std__ostream" >&6; }
25655 if test $ac_cv_type_std__ostream = yes; then
25656
25657 cat >>confdefs.h <<_ACEOF
25658 #define HAVE_STD__OSTREAM 1
25659 _ACEOF
25660
25661
25662 else
25663   wxUSE_STD_IOSTREAM=no
25664 fi
25665
25666
25667     if test "$wxUSE_STD_IOSTREAM" != "yes"; then
25668         if test "$wxUSE_STD_IOSTREAM" = "yes"; then
25669             { { echo "$as_me:$LINENO: error: Can't use --enable-std_iostreams without std::istream and std::ostream" >&5
25670 echo "$as_me: error: Can't use --enable-std_iostreams without std::istream and std::ostream" >&2;}
25671    { (exit 1); exit 1; }; }
25672         else
25673             { echo "$as_me:$LINENO: WARNING: No std::iostreams, switching to --disable-std_iostreams" >&5
25674 echo "$as_me: WARNING: No std::iostreams, switching to --disable-std_iostreams" >&2;}
25675         fi
25676     fi
25677 fi
25678
25679 if test "$wxUSE_STL" = "yes"; then
25680         { echo "$as_me:$LINENO: checking for basic STL functionality" >&5
25681 echo $ECHO_N "checking for basic STL functionality... $ECHO_C" >&6; }
25682 if test "${wx_cv_lib_stl+set}" = set; then
25683   echo $ECHO_N "(cached) $ECHO_C" >&6
25684 else
25685   cat >conftest.$ac_ext <<_ACEOF
25686 /* confdefs.h.  */
25687 _ACEOF
25688 cat confdefs.h >>conftest.$ac_ext
25689 cat >>conftest.$ac_ext <<_ACEOF
25690 /* end confdefs.h.  */
25691 #include <string>
25692             #include <functional>
25693             #include <algorithm>
25694             #include <vector>
25695             #include <list>
25696 int
25697 main ()
25698 {
25699 std::vector<int> moo;
25700              std::list<int> foo;
25701              std::vector<int>::iterator it =
25702                  std::find_if(moo.begin(), moo.end(),
25703                               std::bind2nd(std::less<int>(), 3));
25704   ;
25705   return 0;
25706 }
25707 _ACEOF
25708 rm -f conftest.$ac_objext
25709 if { (ac_try="$ac_compile"
25710 case "(($ac_try" in
25711   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25712   *) ac_try_echo=$ac_try;;
25713 esac
25714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25715   (eval "$ac_compile") 2>conftest.er1
25716   ac_status=$?
25717   grep -v '^ *+' conftest.er1 >conftest.err
25718   rm -f conftest.er1
25719   cat conftest.err >&5
25720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25721   (exit $ac_status); } && {
25722          test -z "$ac_cxx_werror_flag" ||
25723          test ! -s conftest.err
25724        } && test -s conftest.$ac_objext; then
25725   wx_cv_lib_stl=yes
25726 else
25727   echo "$as_me: failed program was:" >&5
25728 sed 's/^/| /' conftest.$ac_ext >&5
25729
25730         wx_cv_lib_stl=no
25731
25732 fi
25733
25734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25735
25736 fi
25737 { echo "$as_me:$LINENO: result: $wx_cv_lib_stl" >&5
25738 echo "${ECHO_T}$wx_cv_lib_stl" >&6; }
25739
25740     if test "$wx_cv_lib_stl" != yes; then
25741          { { echo "$as_me:$LINENO: error: Can't use --enable-stl as basic STL functionality is missing" >&5
25742 echo "$as_me: error: Can't use --enable-stl as basic STL functionality is missing" >&2;}
25743    { (exit 1); exit 1; }; }
25744     fi
25745
25746         { echo "$as_me:$LINENO: checking for compliant std::string::compare" >&5
25747 echo $ECHO_N "checking for compliant std::string::compare... $ECHO_C" >&6; }
25748 if test "${wx_cv_func_stdstring_compare+set}" = set; then
25749   echo $ECHO_N "(cached) $ECHO_C" >&6
25750 else
25751   cat >conftest.$ac_ext <<_ACEOF
25752 /* confdefs.h.  */
25753 _ACEOF
25754 cat confdefs.h >>conftest.$ac_ext
25755 cat >>conftest.$ac_ext <<_ACEOF
25756 /* end confdefs.h.  */
25757 #include <string>
25758 int
25759 main ()
25760 {
25761 std::string foo, bar;
25762             foo.compare(bar);
25763             foo.compare(1, 1, bar);
25764             foo.compare(1, 1, bar, 1, 1);
25765             foo.compare("");
25766             foo.compare(1, 1, "");
25767             foo.compare(1, 1, "", 2);
25768   ;
25769   return 0;
25770 }
25771 _ACEOF
25772 rm -f conftest.$ac_objext
25773 if { (ac_try="$ac_compile"
25774 case "(($ac_try" in
25775   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25776   *) ac_try_echo=$ac_try;;
25777 esac
25778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25779   (eval "$ac_compile") 2>conftest.er1
25780   ac_status=$?
25781   grep -v '^ *+' conftest.er1 >conftest.err
25782   rm -f conftest.er1
25783   cat conftest.err >&5
25784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25785   (exit $ac_status); } && {
25786          test -z "$ac_cxx_werror_flag" ||
25787          test ! -s conftest.err
25788        } && test -s conftest.$ac_objext; then
25789   wx_cv_func_stdstring_compare=yes
25790 else
25791   echo "$as_me: failed program was:" >&5
25792 sed 's/^/| /' conftest.$ac_ext >&5
25793
25794         wx_cv_func_stdstring_compare=no
25795
25796 fi
25797
25798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25799
25800 fi
25801 { echo "$as_me:$LINENO: result: $wx_cv_func_stdstring_compare" >&5
25802 echo "${ECHO_T}$wx_cv_func_stdstring_compare" >&6; }
25803
25804     if test "$wx_cv_func_stdstring_compare" = yes; then
25805         cat >>confdefs.h <<\_ACEOF
25806 #define HAVE_STD_STRING_COMPARE 1
25807 _ACEOF
25808
25809     fi
25810
25811     if test "$wx_cv_class_gnuhashmapset" = yes; then
25812          cat >>confdefs.h <<\_ACEOF
25813 #define HAVE_EXT_HASH_MAP 1
25814 _ACEOF
25815
25816          cat >>confdefs.h <<\_ACEOF
25817 #define HAVE_GNU_CXX_HASH_MAP 1
25818 _ACEOF
25819
25820     fi
25821
25822     { echo "$as_me:$LINENO: checking for unordered_map" >&5
25823 echo $ECHO_N "checking for unordered_map... $ECHO_C" >&6; }
25824 if test "${ac_cv_header_unordered_map+set}" = set; then
25825   echo $ECHO_N "(cached) $ECHO_C" >&6
25826 else
25827   cat >conftest.$ac_ext <<_ACEOF
25828 /* confdefs.h.  */
25829 _ACEOF
25830 cat confdefs.h >>conftest.$ac_ext
25831 cat >>conftest.$ac_ext <<_ACEOF
25832 /* end confdefs.h.  */
25833
25834
25835
25836 #include <unordered_map>
25837 _ACEOF
25838 rm -f conftest.$ac_objext
25839 if { (ac_try="$ac_compile"
25840 case "(($ac_try" in
25841   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25842   *) ac_try_echo=$ac_try;;
25843 esac
25844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25845   (eval "$ac_compile") 2>conftest.er1
25846   ac_status=$?
25847   grep -v '^ *+' conftest.er1 >conftest.err
25848   rm -f conftest.er1
25849   cat conftest.err >&5
25850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25851   (exit $ac_status); } && {
25852          test -z "$ac_cxx_werror_flag" ||
25853          test ! -s conftest.err
25854        } && test -s conftest.$ac_objext; then
25855   ac_cv_header_unordered_map=yes
25856 else
25857   echo "$as_me: failed program was:" >&5
25858 sed 's/^/| /' conftest.$ac_ext >&5
25859
25860         ac_cv_header_unordered_map=no
25861 fi
25862
25863 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25864 fi
25865 { echo "$as_me:$LINENO: result: $ac_cv_header_unordered_map" >&5
25866 echo "${ECHO_T}$ac_cv_header_unordered_map" >&6; }
25867 if test $ac_cv_header_unordered_map = yes; then
25868   { echo "$as_me:$LINENO: checking for unordered_map and unordered_set in std" >&5
25869 echo $ECHO_N "checking for unordered_map and unordered_set in std... $ECHO_C" >&6; }
25870 if test "${wx_cv_class_stdunorderedmapset+set}" = set; then
25871   echo $ECHO_N "(cached) $ECHO_C" >&6
25872 else
25873   cat >conftest.$ac_ext <<_ACEOF
25874 /* confdefs.h.  */
25875 _ACEOF
25876 cat confdefs.h >>conftest.$ac_ext
25877 cat >>conftest.$ac_ext <<_ACEOF
25878 /* end confdefs.h.  */
25879 #include <unordered_map>
25880                 #include <unordered_set>
25881 int
25882 main ()
25883 {
25884 std::unordered_map<double*, char*> test1;
25885                  std::unordered_set<char*> test2;
25886   ;
25887   return 0;
25888 }
25889 _ACEOF
25890 rm -f conftest.$ac_objext
25891 if { (ac_try="$ac_compile"
25892 case "(($ac_try" in
25893   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25894   *) ac_try_echo=$ac_try;;
25895 esac
25896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25897   (eval "$ac_compile") 2>conftest.er1
25898   ac_status=$?
25899   grep -v '^ *+' conftest.er1 >conftest.err
25900   rm -f conftest.er1
25901   cat conftest.err >&5
25902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25903   (exit $ac_status); } && {
25904          test -z "$ac_cxx_werror_flag" ||
25905          test ! -s conftest.err
25906        } && test -s conftest.$ac_objext; then
25907   wx_cv_class_stdunorderedmapset=yes
25908 else
25909   echo "$as_me: failed program was:" >&5
25910 sed 's/^/| /' conftest.$ac_ext >&5
25911
25912         wx_cv_class_stdunorderedmapset=no
25913 fi
25914
25915 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25916
25917
25918 fi
25919 { echo "$as_me:$LINENO: result: $wx_cv_class_stdunorderedmapset" >&5
25920 echo "${ECHO_T}$wx_cv_class_stdunorderedmapset" >&6; }
25921 fi
25922
25923
25924
25925     if test "$wx_cv_class_stdunorderedmapset" = yes; then
25926          cat >>confdefs.h <<\_ACEOF
25927 #define HAVE_STD_UNORDERED_MAP 1
25928 _ACEOF
25929
25930          cat >>confdefs.h <<\_ACEOF
25931 #define HAVE_STD_UNORDERED_SET 1
25932 _ACEOF
25933
25934     else
25935         { echo "$as_me:$LINENO: checking for tr1/unordered_map" >&5
25936 echo $ECHO_N "checking for tr1/unordered_map... $ECHO_C" >&6; }
25937 if test "${ac_cv_header_tr1_unordered_map+set}" = set; then
25938   echo $ECHO_N "(cached) $ECHO_C" >&6
25939 else
25940   cat >conftest.$ac_ext <<_ACEOF
25941 /* confdefs.h.  */
25942 _ACEOF
25943 cat confdefs.h >>conftest.$ac_ext
25944 cat >>conftest.$ac_ext <<_ACEOF
25945 /* end confdefs.h.  */
25946
25947
25948
25949 #include <tr1/unordered_map>
25950 _ACEOF
25951 rm -f conftest.$ac_objext
25952 if { (ac_try="$ac_compile"
25953 case "(($ac_try" in
25954   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25955   *) ac_try_echo=$ac_try;;
25956 esac
25957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25958   (eval "$ac_compile") 2>conftest.er1
25959   ac_status=$?
25960   grep -v '^ *+' conftest.er1 >conftest.err
25961   rm -f conftest.er1
25962   cat conftest.err >&5
25963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25964   (exit $ac_status); } && {
25965          test -z "$ac_cxx_werror_flag" ||
25966          test ! -s conftest.err
25967        } && test -s conftest.$ac_objext; then
25968   ac_cv_header_tr1_unordered_map=yes
25969 else
25970   echo "$as_me: failed program was:" >&5
25971 sed 's/^/| /' conftest.$ac_ext >&5
25972
25973         ac_cv_header_tr1_unordered_map=no
25974 fi
25975
25976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25977 fi
25978 { echo "$as_me:$LINENO: result: $ac_cv_header_tr1_unordered_map" >&5
25979 echo "${ECHO_T}$ac_cv_header_tr1_unordered_map" >&6; }
25980 if test $ac_cv_header_tr1_unordered_map = yes; then
25981   { echo "$as_me:$LINENO: checking for unordered_map and unordered_set in std::tr1" >&5
25982 echo $ECHO_N "checking for unordered_map and unordered_set in std::tr1... $ECHO_C" >&6; }
25983 if test "${wx_cv_class_tr1unorderedmapset+set}" = set; then
25984   echo $ECHO_N "(cached) $ECHO_C" >&6
25985 else
25986   cat >conftest.$ac_ext <<_ACEOF
25987 /* confdefs.h.  */
25988 _ACEOF
25989 cat confdefs.h >>conftest.$ac_ext
25990 cat >>conftest.$ac_ext <<_ACEOF
25991 /* end confdefs.h.  */
25992 #include <tr1/unordered_map>
25993                     #include <tr1/unordered_set>
25994 int
25995 main ()
25996 {
25997 std::tr1::unordered_map<double*, char*> test1;
25998                      std::tr1::unordered_set<char*> test2;
25999             #if defined(__GNUC__) && (__GNUC__==4) && (__GNUC_MINOR__<2)
26000             #error can't use unordered_{map,set} with gcc-4.[01]: http://gcc.gnu.org/PR24389
26001             #endif
26002   ;
26003   return 0;
26004 }
26005 _ACEOF
26006 rm -f conftest.$ac_objext
26007 if { (ac_try="$ac_compile"
26008 case "(($ac_try" in
26009   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26010   *) ac_try_echo=$ac_try;;
26011 esac
26012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26013   (eval "$ac_compile") 2>conftest.er1
26014   ac_status=$?
26015   grep -v '^ *+' conftest.er1 >conftest.err
26016   rm -f conftest.er1
26017   cat conftest.err >&5
26018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26019   (exit $ac_status); } && {
26020          test -z "$ac_cxx_werror_flag" ||
26021          test ! -s conftest.err
26022        } && test -s conftest.$ac_objext; then
26023   wx_cv_class_tr1unorderedmapset=yes
26024 else
26025   echo "$as_me: failed program was:" >&5
26026 sed 's/^/| /' conftest.$ac_ext >&5
26027
26028         wx_cv_class_tr1unorderedmapset=no
26029 fi
26030
26031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26032
26033
26034 fi
26035 { echo "$as_me:$LINENO: result: $wx_cv_class_tr1unorderedmapset" >&5
26036 echo "${ECHO_T}$wx_cv_class_tr1unorderedmapset" >&6; }
26037 fi
26038
26039
26040
26041         if test "$wx_cv_class_tr1unorderedmapset" = yes; then
26042             cat >>confdefs.h <<\_ACEOF
26043 #define HAVE_TR1_UNORDERED_MAP 1
26044 _ACEOF
26045
26046             cat >>confdefs.h <<\_ACEOF
26047 #define HAVE_TR1_UNORDERED_SET 1
26048 _ACEOF
26049
26050         else
26051                         { echo "$as_me:$LINENO: checking for hash_map" >&5
26052 echo $ECHO_N "checking for hash_map... $ECHO_C" >&6; }
26053 if test "${ac_cv_header_hash_map+set}" = set; then
26054   echo $ECHO_N "(cached) $ECHO_C" >&6
26055 else
26056   cat >conftest.$ac_ext <<_ACEOF
26057 /* confdefs.h.  */
26058 _ACEOF
26059 cat confdefs.h >>conftest.$ac_ext
26060 cat >>conftest.$ac_ext <<_ACEOF
26061 /* end confdefs.h.  */
26062
26063
26064
26065 #include <hash_map>
26066 _ACEOF
26067 rm -f conftest.$ac_objext
26068 if { (ac_try="$ac_compile"
26069 case "(($ac_try" in
26070   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26071   *) ac_try_echo=$ac_try;;
26072 esac
26073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26074   (eval "$ac_compile") 2>conftest.er1
26075   ac_status=$?
26076   grep -v '^ *+' conftest.er1 >conftest.err
26077   rm -f conftest.er1
26078   cat conftest.err >&5
26079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26080   (exit $ac_status); } && {
26081          test -z "$ac_cxx_werror_flag" ||
26082          test ! -s conftest.err
26083        } && test -s conftest.$ac_objext; then
26084   ac_cv_header_hash_map=yes
26085 else
26086   echo "$as_me: failed program was:" >&5
26087 sed 's/^/| /' conftest.$ac_ext >&5
26088
26089         ac_cv_header_hash_map=no
26090 fi
26091
26092 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26093 fi
26094 { echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5
26095 echo "${ECHO_T}$ac_cv_header_hash_map" >&6; }
26096 if test $ac_cv_header_hash_map = yes; then
26097   { echo "$as_me:$LINENO: checking for std::hash_map and hash_set" >&5
26098 echo $ECHO_N "checking for std::hash_map and hash_set... $ECHO_C" >&6; }
26099 if test "${wx_cv_class_stdhashmapset+set}" = set; then
26100   echo $ECHO_N "(cached) $ECHO_C" >&6
26101 else
26102   cat >conftest.$ac_ext <<_ACEOF
26103 /* confdefs.h.  */
26104 _ACEOF
26105 cat confdefs.h >>conftest.$ac_ext
26106 cat >>conftest.$ac_ext <<_ACEOF
26107 /* end confdefs.h.  */
26108 #include <hash_map>
26109                         #include <hash_set>
26110 int
26111 main ()
26112 {
26113 std::hash_map<double*, char*, std::hash<double*>, std::equal_to<double*> > test1;
26114                          std::hash_set<char*, std::hash<char*>, std::equal_to<char*> > test2;
26115   ;
26116   return 0;
26117 }
26118 _ACEOF
26119 rm -f conftest.$ac_objext
26120 if { (ac_try="$ac_compile"
26121 case "(($ac_try" in
26122   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26123   *) ac_try_echo=$ac_try;;
26124 esac
26125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26126   (eval "$ac_compile") 2>conftest.er1
26127   ac_status=$?
26128   grep -v '^ *+' conftest.er1 >conftest.err
26129   rm -f conftest.er1
26130   cat conftest.err >&5
26131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26132   (exit $ac_status); } && {
26133          test -z "$ac_cxx_werror_flag" ||
26134          test ! -s conftest.err
26135        } && test -s conftest.$ac_objext; then
26136   wx_cv_class_stdhashmapset=yes
26137 else
26138   echo "$as_me: failed program was:" >&5
26139 sed 's/^/| /' conftest.$ac_ext >&5
26140
26141         wx_cv_class_stdhashmapset=no
26142 fi
26143
26144 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26145
26146
26147 fi
26148 { echo "$as_me:$LINENO: result: $wx_cv_class_stdhashmapset" >&5
26149 echo "${ECHO_T}$wx_cv_class_stdhashmapset" >&6; }
26150 fi
26151
26152
26153
26154             if test "$wx_cv_class_stdhashmapset" = yes; then
26155                 cat >>confdefs.h <<\_ACEOF
26156 #define HAVE_HASH_MAP 1
26157 _ACEOF
26158
26159                 cat >>confdefs.h <<\_ACEOF
26160 #define HAVE_STD_HASH_MAP 1
26161 _ACEOF
26162
26163             fi
26164
26165             { echo "$as_me:$LINENO: checking for ext/hash_map" >&5
26166 echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6; }
26167 if test "${ac_cv_header_ext_hash_map+set}" = set; then
26168   echo $ECHO_N "(cached) $ECHO_C" >&6
26169 else
26170   cat >conftest.$ac_ext <<_ACEOF
26171 /* confdefs.h.  */
26172 _ACEOF
26173 cat confdefs.h >>conftest.$ac_ext
26174 cat >>conftest.$ac_ext <<_ACEOF
26175 /* end confdefs.h.  */
26176
26177
26178
26179 #include <ext/hash_map>
26180 _ACEOF
26181 rm -f conftest.$ac_objext
26182 if { (ac_try="$ac_compile"
26183 case "(($ac_try" in
26184   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26185   *) ac_try_echo=$ac_try;;
26186 esac
26187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26188   (eval "$ac_compile") 2>conftest.er1
26189   ac_status=$?
26190   grep -v '^ *+' conftest.er1 >conftest.err
26191   rm -f conftest.er1
26192   cat conftest.err >&5
26193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26194   (exit $ac_status); } && {
26195          test -z "$ac_cxx_werror_flag" ||
26196          test ! -s conftest.err
26197        } && test -s conftest.$ac_objext; then
26198   ac_cv_header_ext_hash_map=yes
26199 else
26200   echo "$as_me: failed program was:" >&5
26201 sed 's/^/| /' conftest.$ac_ext >&5
26202
26203         ac_cv_header_ext_hash_map=no
26204 fi
26205
26206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26207 fi
26208 { echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5
26209 echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6; }
26210 if test $ac_cv_header_ext_hash_map = yes; then
26211   { echo "$as_me:$LINENO: checking for GNU hash_map and hash_set" >&5
26212 echo $ECHO_N "checking for GNU hash_map and hash_set... $ECHO_C" >&6; }
26213 if test "${wx_cv_class_gnuhashmapset+set}" = set; then
26214   echo $ECHO_N "(cached) $ECHO_C" >&6
26215 else
26216   cat >conftest.$ac_ext <<_ACEOF
26217 /* confdefs.h.  */
26218 _ACEOF
26219 cat confdefs.h >>conftest.$ac_ext
26220 cat >>conftest.$ac_ext <<_ACEOF
26221 /* end confdefs.h.  */
26222 #include <ext/hash_map>
26223                         #include <ext/hash_set>
26224 int
26225 main ()
26226 {
26227 __gnu_cxx::hash_map<double*, char*, __gnu_cxx::hash<double*>, std::equal_to<double*> > test1;
26228                          __gnu_cxx::hash_set<char*, __gnu_cxx::hash<char*>, std::equal_to<char*> > test2;
26229   ;
26230   return 0;
26231 }
26232 _ACEOF
26233 rm -f conftest.$ac_objext
26234 if { (ac_try="$ac_compile"
26235 case "(($ac_try" in
26236   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26237   *) ac_try_echo=$ac_try;;
26238 esac
26239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26240   (eval "$ac_compile") 2>conftest.er1
26241   ac_status=$?
26242   grep -v '^ *+' conftest.er1 >conftest.err
26243   rm -f conftest.er1
26244   cat conftest.err >&5
26245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26246   (exit $ac_status); } && {
26247          test -z "$ac_cxx_werror_flag" ||
26248          test ! -s conftest.err
26249        } && test -s conftest.$ac_objext; then
26250   wx_cv_class_gnuhashmapset=yes
26251 else
26252   echo "$as_me: failed program was:" >&5
26253 sed 's/^/| /' conftest.$ac_ext >&5
26254
26255         wx_cv_class_gnuhashmapset=no
26256 fi
26257
26258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26259
26260
26261 fi
26262 { echo "$as_me:$LINENO: result: $wx_cv_class_gnuhashmapset" >&5
26263 echo "${ECHO_T}$wx_cv_class_gnuhashmapset" >&6; }
26264 fi
26265
26266
26267
26268         fi
26269     fi
26270 fi
26271
26272 ac_ext=cpp
26273 ac_cpp='$CXXCPP $CPPFLAGS'
26274 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26275 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26276 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26277 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
26278 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
26279 if test -z "$CXXCPP"; then
26280   if test "${ac_cv_prog_CXXCPP+set}" = set; then
26281   echo $ECHO_N "(cached) $ECHO_C" >&6
26282 else
26283       # Double quotes because CXXCPP needs to be expanded
26284     for CXXCPP in "$CXX -E" "/lib/cpp"
26285     do
26286       ac_preproc_ok=false
26287 for ac_cxx_preproc_warn_flag in '' yes
26288 do
26289   # Use a header file that comes with gcc, so configuring glibc
26290   # with a fresh cross-compiler works.
26291   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26292   # <limits.h> exists even on freestanding compilers.
26293   # On the NeXT, cc -E runs the code through the compiler's parser,
26294   # not just through cpp. "Syntax error" is here to catch this case.
26295   cat >conftest.$ac_ext <<_ACEOF
26296 /* confdefs.h.  */
26297 _ACEOF
26298 cat confdefs.h >>conftest.$ac_ext
26299 cat >>conftest.$ac_ext <<_ACEOF
26300 /* end confdefs.h.  */
26301 #ifdef __STDC__
26302 # include <limits.h>
26303 #else
26304 # include <assert.h>
26305 #endif
26306                      Syntax error
26307 _ACEOF
26308 if { (ac_try="$ac_cpp conftest.$ac_ext"
26309 case "(($ac_try" in
26310   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26311   *) ac_try_echo=$ac_try;;
26312 esac
26313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26314   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26315   ac_status=$?
26316   grep -v '^ *+' conftest.er1 >conftest.err
26317   rm -f conftest.er1
26318   cat conftest.err >&5
26319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26320   (exit $ac_status); } >/dev/null && {
26321          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
26322          test ! -s conftest.err
26323        }; then
26324   :
26325 else
26326   echo "$as_me: failed program was:" >&5
26327 sed 's/^/| /' conftest.$ac_ext >&5
26328
26329   # Broken: fails on valid input.
26330 continue
26331 fi
26332
26333 rm -f conftest.err conftest.$ac_ext
26334
26335   # OK, works on sane cases.  Now check whether nonexistent headers
26336   # can be detected and how.
26337   cat >conftest.$ac_ext <<_ACEOF
26338 /* confdefs.h.  */
26339 _ACEOF
26340 cat confdefs.h >>conftest.$ac_ext
26341 cat >>conftest.$ac_ext <<_ACEOF
26342 /* end confdefs.h.  */
26343 #include <ac_nonexistent.h>
26344 _ACEOF
26345 if { (ac_try="$ac_cpp conftest.$ac_ext"
26346 case "(($ac_try" in
26347   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26348   *) ac_try_echo=$ac_try;;
26349 esac
26350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26351   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26352   ac_status=$?
26353   grep -v '^ *+' conftest.er1 >conftest.err
26354   rm -f conftest.er1
26355   cat conftest.err >&5
26356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26357   (exit $ac_status); } >/dev/null && {
26358          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
26359          test ! -s conftest.err
26360        }; then
26361   # Broken: success on invalid input.
26362 continue
26363 else
26364   echo "$as_me: failed program was:" >&5
26365 sed 's/^/| /' conftest.$ac_ext >&5
26366
26367   # Passes both tests.
26368 ac_preproc_ok=:
26369 break
26370 fi
26371
26372 rm -f conftest.err conftest.$ac_ext
26373
26374 done
26375 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
26376 rm -f conftest.err conftest.$ac_ext
26377 if $ac_preproc_ok; then
26378   break
26379 fi
26380
26381     done
26382     ac_cv_prog_CXXCPP=$CXXCPP
26383
26384 fi
26385   CXXCPP=$ac_cv_prog_CXXCPP
26386 else
26387   ac_cv_prog_CXXCPP=$CXXCPP
26388 fi
26389 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
26390 echo "${ECHO_T}$CXXCPP" >&6; }
26391 ac_preproc_ok=false
26392 for ac_cxx_preproc_warn_flag in '' yes
26393 do
26394   # Use a header file that comes with gcc, so configuring glibc
26395   # with a fresh cross-compiler works.
26396   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26397   # <limits.h> exists even on freestanding compilers.
26398   # On the NeXT, cc -E runs the code through the compiler's parser,
26399   # not just through cpp. "Syntax error" is here to catch this case.
26400   cat >conftest.$ac_ext <<_ACEOF
26401 /* confdefs.h.  */
26402 _ACEOF
26403 cat confdefs.h >>conftest.$ac_ext
26404 cat >>conftest.$ac_ext <<_ACEOF
26405 /* end confdefs.h.  */
26406 #ifdef __STDC__
26407 # include <limits.h>
26408 #else
26409 # include <assert.h>
26410 #endif
26411                      Syntax error
26412 _ACEOF
26413 if { (ac_try="$ac_cpp conftest.$ac_ext"
26414 case "(($ac_try" in
26415   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26416   *) ac_try_echo=$ac_try;;
26417 esac
26418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26419   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26420   ac_status=$?
26421   grep -v '^ *+' conftest.er1 >conftest.err
26422   rm -f conftest.er1
26423   cat conftest.err >&5
26424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26425   (exit $ac_status); } >/dev/null && {
26426          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
26427          test ! -s conftest.err
26428        }; then
26429   :
26430 else
26431   echo "$as_me: failed program was:" >&5
26432 sed 's/^/| /' conftest.$ac_ext >&5
26433
26434   # Broken: fails on valid input.
26435 continue
26436 fi
26437
26438 rm -f conftest.err conftest.$ac_ext
26439
26440   # OK, works on sane cases.  Now check whether nonexistent headers
26441   # can be detected and how.
26442   cat >conftest.$ac_ext <<_ACEOF
26443 /* confdefs.h.  */
26444 _ACEOF
26445 cat confdefs.h >>conftest.$ac_ext
26446 cat >>conftest.$ac_ext <<_ACEOF
26447 /* end confdefs.h.  */
26448 #include <ac_nonexistent.h>
26449 _ACEOF
26450 if { (ac_try="$ac_cpp conftest.$ac_ext"
26451 case "(($ac_try" in
26452   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26453   *) ac_try_echo=$ac_try;;
26454 esac
26455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26456   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26457   ac_status=$?
26458   grep -v '^ *+' conftest.er1 >conftest.err
26459   rm -f conftest.er1
26460   cat conftest.err >&5
26461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26462   (exit $ac_status); } >/dev/null && {
26463          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
26464          test ! -s conftest.err
26465        }; then
26466   # Broken: success on invalid input.
26467 continue
26468 else
26469   echo "$as_me: failed program was:" >&5
26470 sed 's/^/| /' conftest.$ac_ext >&5
26471
26472   # Passes both tests.
26473 ac_preproc_ok=:
26474 break
26475 fi
26476
26477 rm -f conftest.err conftest.$ac_ext
26478
26479 done
26480 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
26481 rm -f conftest.err conftest.$ac_ext
26482 if $ac_preproc_ok; then
26483   :
26484 else
26485   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
26486 See \`config.log' for more details." >&5
26487 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
26488 See \`config.log' for more details." >&2;}
26489    { (exit 1); exit 1; }; }
26490 fi
26491
26492 ac_ext=cpp
26493 ac_cpp='$CXXCPP $CPPFLAGS'
26494 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26495 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26496 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26497
26498
26499
26500
26501 for ac_header in type_traits tr1/type_traits
26502 do
26503 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26504 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26505   { echo "$as_me:$LINENO: checking for $ac_header" >&5
26506 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26507 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26508   echo $ECHO_N "(cached) $ECHO_C" >&6
26509 fi
26510 ac_res=`eval echo '${'$as_ac_Header'}'`
26511                { echo "$as_me:$LINENO: result: $ac_res" >&5
26512 echo "${ECHO_T}$ac_res" >&6; }
26513 else
26514   # Is the header compilable?
26515 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
26516 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
26517 cat >conftest.$ac_ext <<_ACEOF
26518 /* confdefs.h.  */
26519 _ACEOF
26520 cat confdefs.h >>conftest.$ac_ext
26521 cat >>conftest.$ac_ext <<_ACEOF
26522 /* end confdefs.h.  */
26523 $ac_includes_default
26524 #include <$ac_header>
26525 _ACEOF
26526 rm -f conftest.$ac_objext
26527 if { (ac_try="$ac_compile"
26528 case "(($ac_try" in
26529   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26530   *) ac_try_echo=$ac_try;;
26531 esac
26532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26533   (eval "$ac_compile") 2>conftest.er1
26534   ac_status=$?
26535   grep -v '^ *+' conftest.er1 >conftest.err
26536   rm -f conftest.er1
26537   cat conftest.err >&5
26538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26539   (exit $ac_status); } && {
26540          test -z "$ac_cxx_werror_flag" ||
26541          test ! -s conftest.err
26542        } && test -s conftest.$ac_objext; then
26543   ac_header_compiler=yes
26544 else
26545   echo "$as_me: failed program was:" >&5
26546 sed 's/^/| /' conftest.$ac_ext >&5
26547
26548         ac_header_compiler=no
26549 fi
26550
26551 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26552 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26553 echo "${ECHO_T}$ac_header_compiler" >&6; }
26554
26555 # Is the header present?
26556 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
26557 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
26558 cat >conftest.$ac_ext <<_ACEOF
26559 /* confdefs.h.  */
26560 _ACEOF
26561 cat confdefs.h >>conftest.$ac_ext
26562 cat >>conftest.$ac_ext <<_ACEOF
26563 /* end confdefs.h.  */
26564 #include <$ac_header>
26565 _ACEOF
26566 if { (ac_try="$ac_cpp conftest.$ac_ext"
26567 case "(($ac_try" in
26568   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26569   *) ac_try_echo=$ac_try;;
26570 esac
26571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26572   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26573   ac_status=$?
26574   grep -v '^ *+' conftest.er1 >conftest.err
26575   rm -f conftest.er1
26576   cat conftest.err >&5
26577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26578   (exit $ac_status); } >/dev/null && {
26579          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
26580          test ! -s conftest.err
26581        }; then
26582   ac_header_preproc=yes
26583 else
26584   echo "$as_me: failed program was:" >&5
26585 sed 's/^/| /' conftest.$ac_ext >&5
26586
26587   ac_header_preproc=no
26588 fi
26589
26590 rm -f conftest.err conftest.$ac_ext
26591 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26592 echo "${ECHO_T}$ac_header_preproc" >&6; }
26593
26594 # So?  What about this header?
26595 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
26596   yes:no: )
26597     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26598 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26599     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26600 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26601     ac_header_preproc=yes
26602     ;;
26603   no:yes:* )
26604     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26605 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26606     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26607 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26608     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26609 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26610     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26611 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26612     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26613 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26614     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26615 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26616     ( cat <<\_ASBOX
26617 ## ----------------------------------------- ##
26618 ## Report this to wx-dev@lists.wxwidgets.org ##
26619 ## ----------------------------------------- ##
26620 _ASBOX
26621      ) | sed "s/^/$as_me: WARNING:     /" >&2
26622     ;;
26623 esac
26624 { echo "$as_me:$LINENO: checking for $ac_header" >&5
26625 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26626 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26627   echo $ECHO_N "(cached) $ECHO_C" >&6
26628 else
26629   eval "$as_ac_Header=\$ac_header_preproc"
26630 fi
26631 ac_res=`eval echo '${'$as_ac_Header'}'`
26632                { echo "$as_me:$LINENO: result: $ac_res" >&5
26633 echo "${ECHO_T}$ac_res" >&6; }
26634
26635 fi
26636 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26637   cat >>confdefs.h <<_ACEOF
26638 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26639 _ACEOF
26640
26641 fi
26642
26643 done
26644
26645
26646
26647
26648   if test -n "$GCC"; then
26649     { echo "$as_me:$LINENO: checking for __sync_fetch_and_add and __sync_sub_and_fetch builtins" >&5
26650 echo $ECHO_N "checking for __sync_fetch_and_add and __sync_sub_and_fetch builtins... $ECHO_C" >&6; }
26651     if test "${wx_cv_cc_gcc_atomic_builtins+set}" = set; then
26652   echo $ECHO_N "(cached) $ECHO_C" >&6
26653 else
26654
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 int
26663 main ()
26664 {
26665
26666           unsigned int value=0;
26667           /* wxAtomicInc doesn't use return value here */
26668           __sync_fetch_and_add(&value, 2);
26669           __sync_sub_and_fetch(&value, 1);
26670           /* but wxAtomicDec does, so mimic that: */
26671           unsigned int r2 = __sync_sub_and_fetch(&value, 1);
26672
26673   ;
26674   return 0;
26675 }
26676 _ACEOF
26677 rm -f conftest.$ac_objext conftest$ac_exeext
26678 if { (ac_try="$ac_link"
26679 case "(($ac_try" in
26680   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26681   *) ac_try_echo=$ac_try;;
26682 esac
26683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26684   (eval "$ac_link") 2>conftest.er1
26685   ac_status=$?
26686   grep -v '^ *+' conftest.er1 >conftest.err
26687   rm -f conftest.er1
26688   cat conftest.err >&5
26689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26690   (exit $ac_status); } && {
26691          test -z "$ac_cxx_werror_flag" ||
26692          test ! -s conftest.err
26693        } && test -s conftest$ac_exeext &&
26694        $as_test_x conftest$ac_exeext; then
26695   wx_cv_cc_gcc_atomic_builtins=yes
26696 else
26697   echo "$as_me: failed program was:" >&5
26698 sed 's/^/| /' conftest.$ac_ext >&5
26699
26700         wx_cv_cc_gcc_atomic_builtins=no
26701 fi
26702
26703 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26704       conftest$ac_exeext conftest.$ac_ext
26705
26706 fi
26707
26708     { echo "$as_me:$LINENO: result: $wx_cv_cc_gcc_atomic_builtins" >&5
26709 echo "${ECHO_T}$wx_cv_cc_gcc_atomic_builtins" >&6; }
26710     if test $wx_cv_cc_gcc_atomic_builtins = yes; then
26711       cat >>confdefs.h <<\_ACEOF
26712 #define HAVE_GCC_ATOMIC_BUILTINS 1
26713 _ACEOF
26714
26715     fi
26716   fi
26717
26718
26719 ac_ext=c
26720 ac_cpp='$CPP $CPPFLAGS'
26721 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26722 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26723 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26724
26725
26726
26727 SEARCH_INCLUDE="\
26728     /usr/local/include        \
26729     /usr/local/X11/include    \
26730     /usr/local/include/X11    \
26731     /usr/local/X11R7/include  \
26732     /usr/local/X11R6/include  \
26733     /usr/local/include/X11R7  \
26734     /usr/local/include/X11R6  \
26735                               \
26736     /usr/Motif-2.1/include    \
26737     /usr/Motif-1.2/include    \
26738     /usr/include/Motif1.2     \
26739                               \
26740     /usr/dt/include           \
26741     /usr/openwin/include      \
26742                               \
26743     /usr/include/Xm           \
26744                               \
26745     /usr/X11R7/include        \
26746     /usr/X11R6/include        \
26747     /usr/X11R6.4/include      \
26748                               \
26749     /usr/include/X11R7        \
26750     /usr/include/X11R6        \
26751                               \
26752     /usr/X11/include          \
26753     /usr/include/X11          \
26754                               \
26755     /usr/XFree86/include/X11  \
26756     /usr/pkg/include          \
26757                               \
26758     /usr/local/X1R5/include  \
26759     /usr/local/include/X11R5  \
26760     /usr/X11R5/include        \
26761     /usr/include/X11R5        \
26762                               \
26763     /usr/local/X11R4/include  \
26764     /usr/local/include/X11R4  \
26765     /usr/X11R4/include        \
26766     /usr/include/X11R4        \
26767                               \
26768     /usr/openwin/share/include"
26769
26770 { echo "$as_me:$LINENO: checking for libraries directory" >&5
26771 echo $ECHO_N "checking for libraries directory... $ECHO_C" >&6; }
26772
26773 case "${host}" in
26774     *-*-irix6* )
26775         if test "${wx_cv_std_libpath+set}" = set; then
26776   echo $ECHO_N "(cached) $ECHO_C" >&6
26777 else
26778
26779                 for d in /usr/lib /usr/lib32 /usr/lib/64 /usr/lib64; do
26780                     for e in a so sl dylib dll.a; do
26781                         libc="$d/libc.$e"
26782                         if test -f $libc; then
26783                             save_LIBS="$LIBS"
26784                             LIBS="$libc"
26785                             cat >conftest.$ac_ext <<_ACEOF
26786 int main() { return 0; }
26787 _ACEOF
26788 rm -f conftest.$ac_objext conftest$ac_exeext
26789 if { (ac_try="$ac_link"
26790 case "(($ac_try" in
26791   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26792   *) ac_try_echo=$ac_try;;
26793 esac
26794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26795   (eval "$ac_link") 2>conftest.er1
26796   ac_status=$?
26797   grep -v '^ *+' conftest.er1 >conftest.err
26798   rm -f conftest.er1
26799   cat conftest.err >&5
26800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26801   (exit $ac_status); } && {
26802          test -z "$ac_c_werror_flag" ||
26803          test ! -s conftest.err
26804        } && test -s conftest$ac_exeext &&
26805        $as_test_x conftest$ac_exeext; then
26806   wx_cv_std_libpath=`echo $d | sed s@/usr/@@`
26807 else
26808   echo "$as_me: failed program was:" >&5
26809 sed 's/^/| /' conftest.$ac_ext >&5
26810
26811
26812 fi
26813
26814 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26815       conftest$ac_exeext conftest.$ac_ext
26816                             LIBS="$save_LIBS"
26817                             if test "x$wx_cv_std_libpath" != "x"; then
26818                                 break 2
26819                             fi
26820                         fi
26821                     done
26822                 done
26823                 if test "x$wx_cv_std_libpath" = "x"; then
26824                     wx_cv_std_libpath="lib"
26825                 fi
26826
26827
26828 fi
26829
26830         ;;
26831
26832     *-*-solaris2* )
26833                 if test "$ac_cv_sizeof_void_p" = 8 -a -d "/usr/lib/64"; then
26834             wx_cv_std_libpath="lib/64"
26835         else
26836             wx_cv_std_libpath="lib"
26837         fi
26838         ;;
26839
26840     *-*-linux* )
26841                 if test "$ac_cv_sizeof_void_p" = 8 -a \
26842                 -d "/usr/lib64" -a ! -h "/usr/lib64"; then
26843             wx_cv_std_libpath="lib64"
26844         else
26845             wx_cv_std_libpath="lib"
26846         fi
26847         ;;
26848
26849     *)
26850         wx_cv_std_libpath="lib";
26851         ;;
26852 esac
26853
26854 { echo "$as_me:$LINENO: result: $wx_cv_std_libpath" >&5
26855 echo "${ECHO_T}$wx_cv_std_libpath" >&6; }
26856
26857 SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s@include@$wx_cv_std_libpath@g` /usr/$wx_cv_std_libpath"
26858
26859 if test "$build" != "$host" -a "$GCC" = yes; then
26860                     if cross_root=`$CC -print-prog-name=ld 2>/dev/null`; then
26861         cross_root=`dirname $cross_root`
26862         cross_root=`dirname $cross_root`
26863
26864                         SEARCH_LIB=`for x in $SEARCH_LIB; do echo $x; done | sed -ne "s|^/usr|$cross_root|p"`
26865         SEARCH_INCLUDE=`for x in $SEARCH_INCLUDE; do echo $x; done | sed -ne "s|^/usr|$cross_root|p"`
26866         SEARCH_INCLUDE="$SEARCH_INCLUDE $cross_root/include"
26867
26868                 if test -z "$PKG_CONFIG_PATH"; then
26869             PKG_CONFIG_PATH="$cross_root/local/lib/pkgconfig:$cross_root/lib/pkgconfig"
26870             export PKG_CONFIG_PATH
26871         fi
26872
26873                                 if test -z "$x_includes" -o "$x_includes" = NONE; then
26874
26875 ac_find_includes=
26876 for ac_dir in $SEARCH_INCLUDE /usr/include
26877   do
26878     if test -f "$ac_dir/X11/Intrinsic.h"; then
26879       ac_find_includes=$ac_dir
26880       break
26881     fi
26882   done
26883
26884             x_includes=$ac_find_includes
26885         fi
26886         if test -z "$x_libraries" -o "$x_libraries" = NONE; then
26887
26888   ac_find_libraries=
26889   for ac_dir in $SEARCH_LIB
26890   do
26891     for ac_extension in a so sl dylib dll.a; do
26892       if test -f "$ac_dir/libXt.$ac_extension"; then
26893         ac_find_libraries=$ac_dir
26894         break 2
26895       fi
26896     done
26897   done
26898
26899             x_libraries=$ac_find_libraries
26900         fi
26901     fi
26902 fi
26903
26904
26905 cat >confcache <<\_ACEOF
26906 # This file is a shell script that caches the results of configure
26907 # tests run on this system so they can be shared between configure
26908 # scripts and configure runs, see configure's option --config-cache.
26909 # It is not useful on other systems.  If it contains results you don't
26910 # want to keep, you may remove or edit it.
26911 #
26912 # config.status only pays attention to the cache file if you give it
26913 # the --recheck option to rerun configure.
26914 #
26915 # `ac_cv_env_foo' variables (set or unset) will be overridden when
26916 # loading this file, other *unset* `ac_cv_foo' will be assigned the
26917 # following values.
26918
26919 _ACEOF
26920
26921 # The following way of writing the cache mishandles newlines in values,
26922 # but we know of no workaround that is simple, portable, and efficient.
26923 # So, we kill variables containing newlines.
26924 # Ultrix sh set writes to stderr and can't be redirected directly,
26925 # and sets the high bit in the cache file unless we assign to the vars.
26926 (
26927   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
26928     eval ac_val=\$$ac_var
26929     case $ac_val in #(
26930     *${as_nl}*)
26931       case $ac_var in #(
26932       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
26933 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
26934       esac
26935       case $ac_var in #(
26936       _ | IFS | as_nl) ;; #(
26937       *) $as_unset $ac_var ;;
26938       esac ;;
26939     esac
26940   done
26941
26942   (set) 2>&1 |
26943     case $as_nl`(ac_space=' '; set) 2>&1` in #(
26944     *${as_nl}ac_space=\ *)
26945       # `set' does not quote correctly, so add quotes (double-quote
26946       # substitution turns \\\\ into \\, and sed turns \\ into \).
26947       sed -n \
26948         "s/'/'\\\\''/g;
26949           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
26950       ;; #(
26951     *)
26952       # `set' quotes correctly as required by POSIX, so do not add quotes.
26953       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
26954       ;;
26955     esac |
26956     sort
26957 ) |
26958   sed '
26959      /^ac_cv_env_/b end
26960      t clear
26961      :clear
26962      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
26963      t end
26964      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
26965      :end' >>confcache
26966 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
26967   if test -w "$cache_file"; then
26968     test "x$cache_file" != "x/dev/null" &&
26969       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
26970 echo "$as_me: updating cache $cache_file" >&6;}
26971     cat confcache >$cache_file
26972   else
26973     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
26974 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
26975   fi
26976 fi
26977 rm -f confcache
26978
26979 if test "$USE_LINUX" = 1 -o "$USE_GNU" = 1; then
26980     { echo "$as_me:$LINENO: checking for glibc 2.1 or later" >&5
26981 echo $ECHO_N "checking for glibc 2.1 or later... $ECHO_C" >&6; }
26982 if test "${wx_cv_lib_glibc21+set}" = set; then
26983   echo $ECHO_N "(cached) $ECHO_C" >&6
26984 else
26985
26986         cat >conftest.$ac_ext <<_ACEOF
26987 /* confdefs.h.  */
26988 _ACEOF
26989 cat confdefs.h >>conftest.$ac_ext
26990 cat >>conftest.$ac_ext <<_ACEOF
26991 /* end confdefs.h.  */
26992 #include <features.h>
26993 int
26994 main ()
26995 {
26996
26997                 #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1)
26998                 not glibc 2.1
26999                 #endif
27000
27001   ;
27002   return 0;
27003 }
27004 _ACEOF
27005 rm -f conftest.$ac_objext
27006 if { (ac_try="$ac_compile"
27007 case "(($ac_try" in
27008   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27009   *) ac_try_echo=$ac_try;;
27010 esac
27011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27012   (eval "$ac_compile") 2>conftest.er1
27013   ac_status=$?
27014   grep -v '^ *+' conftest.er1 >conftest.err
27015   rm -f conftest.er1
27016   cat conftest.err >&5
27017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27018   (exit $ac_status); } && {
27019          test -z "$ac_c_werror_flag" ||
27020          test ! -s conftest.err
27021        } && test -s conftest.$ac_objext; then
27022
27023                 wx_cv_lib_glibc21=yes
27024
27025 else
27026   echo "$as_me: failed program was:" >&5
27027 sed 's/^/| /' conftest.$ac_ext >&5
27028
27029
27030                 wx_cv_lib_glibc21=no
27031
27032
27033 fi
27034
27035 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27036
27037 fi
27038 { echo "$as_me:$LINENO: result: $wx_cv_lib_glibc21" >&5
27039 echo "${ECHO_T}$wx_cv_lib_glibc21" >&6; }
27040     if test "$wx_cv_lib_glibc21" = "yes"; then
27041         cat >>confdefs.h <<\_ACEOF
27042 #define wxHAVE_GLIBC2 1
27043 _ACEOF
27044
27045     fi
27046 fi
27047
27048 if test "x$wx_cv_lib_glibc21" = "xyes"; then
27049     if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then
27050         cat >>confdefs.h <<\_ACEOF
27051 #define _GNU_SOURCE 1
27052 _ACEOF
27053
27054     fi
27055 fi
27056
27057 have_cos=0
27058 have_floor=0
27059
27060 for ac_func in cos
27061 do
27062 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27063 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27064 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27065 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27066   echo $ECHO_N "(cached) $ECHO_C" >&6
27067 else
27068   cat >conftest.$ac_ext <<_ACEOF
27069 /* confdefs.h.  */
27070 _ACEOF
27071 cat confdefs.h >>conftest.$ac_ext
27072 cat >>conftest.$ac_ext <<_ACEOF
27073 /* end confdefs.h.  */
27074 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27075    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27076 #define $ac_func innocuous_$ac_func
27077
27078 /* System header to define __stub macros and hopefully few prototypes,
27079     which can conflict with char $ac_func (); below.
27080     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27081     <limits.h> exists even on freestanding compilers.  */
27082
27083 #ifdef __STDC__
27084 # include <limits.h>
27085 #else
27086 # include <assert.h>
27087 #endif
27088
27089 #undef $ac_func
27090
27091 /* Override any GCC internal prototype to avoid an error.
27092    Use char because int might match the return type of a GCC
27093    builtin and then its argument prototype would still apply.  */
27094 #ifdef __cplusplus
27095 extern "C"
27096 #endif
27097 char $ac_func ();
27098 /* The GNU C library defines this for functions which it implements
27099     to always fail with ENOSYS.  Some functions are actually named
27100     something starting with __ and the normal name is an alias.  */
27101 #if defined __stub_$ac_func || defined __stub___$ac_func
27102 choke me
27103 #endif
27104
27105 int
27106 main ()
27107 {
27108 return $ac_func ();
27109   ;
27110   return 0;
27111 }
27112 _ACEOF
27113 rm -f conftest.$ac_objext conftest$ac_exeext
27114 if { (ac_try="$ac_link"
27115 case "(($ac_try" in
27116   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27117   *) ac_try_echo=$ac_try;;
27118 esac
27119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27120   (eval "$ac_link") 2>conftest.er1
27121   ac_status=$?
27122   grep -v '^ *+' conftest.er1 >conftest.err
27123   rm -f conftest.er1
27124   cat conftest.err >&5
27125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27126   (exit $ac_status); } && {
27127          test -z "$ac_c_werror_flag" ||
27128          test ! -s conftest.err
27129        } && test -s conftest$ac_exeext &&
27130        $as_test_x conftest$ac_exeext; then
27131   eval "$as_ac_var=yes"
27132 else
27133   echo "$as_me: failed program was:" >&5
27134 sed 's/^/| /' conftest.$ac_ext >&5
27135
27136         eval "$as_ac_var=no"
27137 fi
27138
27139 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27140       conftest$ac_exeext conftest.$ac_ext
27141 fi
27142 ac_res=`eval echo '${'$as_ac_var'}'`
27143                { echo "$as_me:$LINENO: result: $ac_res" >&5
27144 echo "${ECHO_T}$ac_res" >&6; }
27145 if test `eval echo '${'$as_ac_var'}'` = yes; then
27146   cat >>confdefs.h <<_ACEOF
27147 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27148 _ACEOF
27149  have_cos=1
27150 fi
27151 done
27152
27153
27154 for ac_func in floor
27155 do
27156 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27157 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27158 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27159 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27160   echo $ECHO_N "(cached) $ECHO_C" >&6
27161 else
27162   cat >conftest.$ac_ext <<_ACEOF
27163 /* confdefs.h.  */
27164 _ACEOF
27165 cat confdefs.h >>conftest.$ac_ext
27166 cat >>conftest.$ac_ext <<_ACEOF
27167 /* end confdefs.h.  */
27168 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27169    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27170 #define $ac_func innocuous_$ac_func
27171
27172 /* System header to define __stub macros and hopefully few prototypes,
27173     which can conflict with char $ac_func (); below.
27174     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27175     <limits.h> exists even on freestanding compilers.  */
27176
27177 #ifdef __STDC__
27178 # include <limits.h>
27179 #else
27180 # include <assert.h>
27181 #endif
27182
27183 #undef $ac_func
27184
27185 /* Override any GCC internal prototype to avoid an error.
27186    Use char because int might match the return type of a GCC
27187    builtin and then its argument prototype would still apply.  */
27188 #ifdef __cplusplus
27189 extern "C"
27190 #endif
27191 char $ac_func ();
27192 /* The GNU C library defines this for functions which it implements
27193     to always fail with ENOSYS.  Some functions are actually named
27194     something starting with __ and the normal name is an alias.  */
27195 #if defined __stub_$ac_func || defined __stub___$ac_func
27196 choke me
27197 #endif
27198
27199 int
27200 main ()
27201 {
27202 return $ac_func ();
27203   ;
27204   return 0;
27205 }
27206 _ACEOF
27207 rm -f conftest.$ac_objext conftest$ac_exeext
27208 if { (ac_try="$ac_link"
27209 case "(($ac_try" in
27210   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27211   *) ac_try_echo=$ac_try;;
27212 esac
27213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27214   (eval "$ac_link") 2>conftest.er1
27215   ac_status=$?
27216   grep -v '^ *+' conftest.er1 >conftest.err
27217   rm -f conftest.er1
27218   cat conftest.err >&5
27219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27220   (exit $ac_status); } && {
27221          test -z "$ac_c_werror_flag" ||
27222          test ! -s conftest.err
27223        } && test -s conftest$ac_exeext &&
27224        $as_test_x conftest$ac_exeext; then
27225   eval "$as_ac_var=yes"
27226 else
27227   echo "$as_me: failed program was:" >&5
27228 sed 's/^/| /' conftest.$ac_ext >&5
27229
27230         eval "$as_ac_var=no"
27231 fi
27232
27233 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27234       conftest$ac_exeext conftest.$ac_ext
27235 fi
27236 ac_res=`eval echo '${'$as_ac_var'}'`
27237                { echo "$as_me:$LINENO: result: $ac_res" >&5
27238 echo "${ECHO_T}$ac_res" >&6; }
27239 if test `eval echo '${'$as_ac_var'}'` = yes; then
27240   cat >>confdefs.h <<_ACEOF
27241 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27242 _ACEOF
27243  have_floor=1
27244 fi
27245 done
27246
27247 { echo "$as_me:$LINENO: checking if floating point functions link without -lm" >&5
27248 echo $ECHO_N "checking if floating point functions link without -lm... $ECHO_C" >&6; }
27249 if test "$have_cos" = 1 -a "$have_floor" = 1; then
27250     { echo "$as_me:$LINENO: result: yes" >&5
27251 echo "${ECHO_T}yes" >&6; }
27252 else
27253     { echo "$as_me:$LINENO: result: no" >&5
27254 echo "${ECHO_T}no" >&6; }
27255     LIBS="$LIBS -lm"
27256     # use different functions to avoid configure caching
27257     have_sin=0
27258     have_ceil=0
27259
27260 for ac_func in sin
27261 do
27262 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27263 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27264 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27265 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27266   echo $ECHO_N "(cached) $ECHO_C" >&6
27267 else
27268   cat >conftest.$ac_ext <<_ACEOF
27269 /* confdefs.h.  */
27270 _ACEOF
27271 cat confdefs.h >>conftest.$ac_ext
27272 cat >>conftest.$ac_ext <<_ACEOF
27273 /* end confdefs.h.  */
27274 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27275    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27276 #define $ac_func innocuous_$ac_func
27277
27278 /* System header to define __stub macros and hopefully few prototypes,
27279     which can conflict with char $ac_func (); below.
27280     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27281     <limits.h> exists even on freestanding compilers.  */
27282
27283 #ifdef __STDC__
27284 # include <limits.h>
27285 #else
27286 # include <assert.h>
27287 #endif
27288
27289 #undef $ac_func
27290
27291 /* Override any GCC internal prototype to avoid an error.
27292    Use char because int might match the return type of a GCC
27293    builtin and then its argument prototype would still apply.  */
27294 #ifdef __cplusplus
27295 extern "C"
27296 #endif
27297 char $ac_func ();
27298 /* The GNU C library defines this for functions which it implements
27299     to always fail with ENOSYS.  Some functions are actually named
27300     something starting with __ and the normal name is an alias.  */
27301 #if defined __stub_$ac_func || defined __stub___$ac_func
27302 choke me
27303 #endif
27304
27305 int
27306 main ()
27307 {
27308 return $ac_func ();
27309   ;
27310   return 0;
27311 }
27312 _ACEOF
27313 rm -f conftest.$ac_objext conftest$ac_exeext
27314 if { (ac_try="$ac_link"
27315 case "(($ac_try" in
27316   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27317   *) ac_try_echo=$ac_try;;
27318 esac
27319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27320   (eval "$ac_link") 2>conftest.er1
27321   ac_status=$?
27322   grep -v '^ *+' conftest.er1 >conftest.err
27323   rm -f conftest.er1
27324   cat conftest.err >&5
27325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27326   (exit $ac_status); } && {
27327          test -z "$ac_c_werror_flag" ||
27328          test ! -s conftest.err
27329        } && test -s conftest$ac_exeext &&
27330        $as_test_x conftest$ac_exeext; then
27331   eval "$as_ac_var=yes"
27332 else
27333   echo "$as_me: failed program was:" >&5
27334 sed 's/^/| /' conftest.$ac_ext >&5
27335
27336         eval "$as_ac_var=no"
27337 fi
27338
27339 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27340       conftest$ac_exeext conftest.$ac_ext
27341 fi
27342 ac_res=`eval echo '${'$as_ac_var'}'`
27343                { echo "$as_me:$LINENO: result: $ac_res" >&5
27344 echo "${ECHO_T}$ac_res" >&6; }
27345 if test `eval echo '${'$as_ac_var'}'` = yes; then
27346   cat >>confdefs.h <<_ACEOF
27347 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27348 _ACEOF
27349  have_sin=1
27350 fi
27351 done
27352
27353
27354 for ac_func in ceil
27355 do
27356 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27357 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27358 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27359 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27360   echo $ECHO_N "(cached) $ECHO_C" >&6
27361 else
27362   cat >conftest.$ac_ext <<_ACEOF
27363 /* confdefs.h.  */
27364 _ACEOF
27365 cat confdefs.h >>conftest.$ac_ext
27366 cat >>conftest.$ac_ext <<_ACEOF
27367 /* end confdefs.h.  */
27368 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27369    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27370 #define $ac_func innocuous_$ac_func
27371
27372 /* System header to define __stub macros and hopefully few prototypes,
27373     which can conflict with char $ac_func (); below.
27374     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27375     <limits.h> exists even on freestanding compilers.  */
27376
27377 #ifdef __STDC__
27378 # include <limits.h>
27379 #else
27380 # include <assert.h>
27381 #endif
27382
27383 #undef $ac_func
27384
27385 /* Override any GCC internal prototype to avoid an error.
27386    Use char because int might match the return type of a GCC
27387    builtin and then its argument prototype would still apply.  */
27388 #ifdef __cplusplus
27389 extern "C"
27390 #endif
27391 char $ac_func ();
27392 /* The GNU C library defines this for functions which it implements
27393     to always fail with ENOSYS.  Some functions are actually named
27394     something starting with __ and the normal name is an alias.  */
27395 #if defined __stub_$ac_func || defined __stub___$ac_func
27396 choke me
27397 #endif
27398
27399 int
27400 main ()
27401 {
27402 return $ac_func ();
27403   ;
27404   return 0;
27405 }
27406 _ACEOF
27407 rm -f conftest.$ac_objext conftest$ac_exeext
27408 if { (ac_try="$ac_link"
27409 case "(($ac_try" in
27410   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27411   *) ac_try_echo=$ac_try;;
27412 esac
27413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27414   (eval "$ac_link") 2>conftest.er1
27415   ac_status=$?
27416   grep -v '^ *+' conftest.er1 >conftest.err
27417   rm -f conftest.er1
27418   cat conftest.err >&5
27419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27420   (exit $ac_status); } && {
27421          test -z "$ac_c_werror_flag" ||
27422          test ! -s conftest.err
27423        } && test -s conftest$ac_exeext &&
27424        $as_test_x conftest$ac_exeext; then
27425   eval "$as_ac_var=yes"
27426 else
27427   echo "$as_me: failed program was:" >&5
27428 sed 's/^/| /' conftest.$ac_ext >&5
27429
27430         eval "$as_ac_var=no"
27431 fi
27432
27433 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27434       conftest$ac_exeext conftest.$ac_ext
27435 fi
27436 ac_res=`eval echo '${'$as_ac_var'}'`
27437                { echo "$as_me:$LINENO: result: $ac_res" >&5
27438 echo "${ECHO_T}$ac_res" >&6; }
27439 if test `eval echo '${'$as_ac_var'}'` = yes; then
27440   cat >>confdefs.h <<_ACEOF
27441 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27442 _ACEOF
27443  have_ceil=1
27444 fi
27445 done
27446
27447     { echo "$as_me:$LINENO: checking if floating point functions link with -lm" >&5
27448 echo $ECHO_N "checking if floating point functions link with -lm... $ECHO_C" >&6; }
27449     if test "$have_sin" = 1 -a "$have_ceil" = 1; then
27450         { echo "$as_me:$LINENO: result: yes" >&5
27451 echo "${ECHO_T}yes" >&6; }
27452     else
27453         { echo "$as_me:$LINENO: result: no" >&5
27454 echo "${ECHO_T}no" >&6; }
27455         # not sure we should warn the user, crash, etc.
27456     fi
27457 fi
27458
27459 ac_ext=cpp
27460 ac_cpp='$CXXCPP $CPPFLAGS'
27461 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27462 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27463 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27464
27465 if test "wxUSE_UNICODE" = "yes"; then
27466
27467   for wx_func in wcstoull
27468   do
27469     { echo "$as_me:$LINENO: checking for $wx_func" >&5
27470 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
27471 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
27472   echo $ECHO_N "(cached) $ECHO_C" >&6
27473 else
27474
27475         cat >conftest.$ac_ext <<_ACEOF
27476
27477             /* confdefs.h.  */
27478 _ACEOF
27479 cat confdefs.h >>conftest.$ac_ext
27480 cat >>conftest.$ac_ext <<_ACEOF
27481 /* end confdefs.h.  */
27482
27483
27484                 $ac_includes_default
27485
27486 int
27487 main ()
27488 {
27489
27490                 #ifndef $wx_func
27491                   &$wx_func;
27492                 #endif
27493
27494
27495   ;
27496   return 0;
27497 }
27498
27499 _ACEOF
27500 rm -f conftest.$ac_objext conftest$ac_exeext
27501 if { (ac_try="$ac_link"
27502 case "(($ac_try" in
27503   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27504   *) ac_try_echo=$ac_try;;
27505 esac
27506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27507   (eval "$ac_link") 2>conftest.er1
27508   ac_status=$?
27509   grep -v '^ *+' conftest.er1 >conftest.err
27510   rm -f conftest.er1
27511   cat conftest.err >&5
27512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27513   (exit $ac_status); } && {
27514          test -z "$ac_cxx_werror_flag" ||
27515          test ! -s conftest.err
27516        } && test -s conftest$ac_exeext &&
27517        $as_test_x conftest$ac_exeext; then
27518   eval wx_cv_func_$wx_func=yes
27519 else
27520   echo "$as_me: failed program was:" >&5
27521 sed 's/^/| /' conftest.$ac_ext >&5
27522
27523         eval wx_cv_func_$wx_func=no
27524 fi
27525
27526 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27527       conftest$ac_exeext conftest.$ac_ext
27528
27529 fi
27530 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
27531                { echo "$as_me:$LINENO: result: $ac_res" >&5
27532 echo "${ECHO_T}$ac_res" >&6; }
27533
27534     if eval test \$wx_cv_func_$wx_func = yes
27535     then
27536       cat >>confdefs.h <<_ACEOF
27537 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
27538 _ACEOF
27539
27540
27541     else
27542       :
27543
27544     fi
27545   done
27546
27547 else
27548
27549   for wx_func in strtoull
27550   do
27551     { echo "$as_me:$LINENO: checking for $wx_func" >&5
27552 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
27553 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
27554   echo $ECHO_N "(cached) $ECHO_C" >&6
27555 else
27556
27557         cat >conftest.$ac_ext <<_ACEOF
27558
27559             /* confdefs.h.  */
27560 _ACEOF
27561 cat confdefs.h >>conftest.$ac_ext
27562 cat >>conftest.$ac_ext <<_ACEOF
27563 /* end confdefs.h.  */
27564
27565
27566                 $ac_includes_default
27567
27568 int
27569 main ()
27570 {
27571
27572                 #ifndef $wx_func
27573                   &$wx_func;
27574                 #endif
27575
27576
27577   ;
27578   return 0;
27579 }
27580
27581 _ACEOF
27582 rm -f conftest.$ac_objext conftest$ac_exeext
27583 if { (ac_try="$ac_link"
27584 case "(($ac_try" in
27585   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27586   *) ac_try_echo=$ac_try;;
27587 esac
27588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27589   (eval "$ac_link") 2>conftest.er1
27590   ac_status=$?
27591   grep -v '^ *+' conftest.er1 >conftest.err
27592   rm -f conftest.er1
27593   cat conftest.err >&5
27594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27595   (exit $ac_status); } && {
27596          test -z "$ac_cxx_werror_flag" ||
27597          test ! -s conftest.err
27598        } && test -s conftest$ac_exeext &&
27599        $as_test_x conftest$ac_exeext; then
27600   eval wx_cv_func_$wx_func=yes
27601 else
27602   echo "$as_me: failed program was:" >&5
27603 sed 's/^/| /' conftest.$ac_ext >&5
27604
27605         eval wx_cv_func_$wx_func=no
27606 fi
27607
27608 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27609       conftest$ac_exeext conftest.$ac_ext
27610
27611 fi
27612 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
27613                { echo "$as_me:$LINENO: result: $ac_res" >&5
27614 echo "${ECHO_T}$ac_res" >&6; }
27615
27616     if eval test \$wx_cv_func_$wx_func = yes
27617     then
27618       cat >>confdefs.h <<_ACEOF
27619 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
27620 _ACEOF
27621
27622
27623     else
27624       :
27625
27626     fi
27627   done
27628
27629 fi
27630 ac_ext=c
27631 ac_cpp='$CPP $CPPFLAGS'
27632 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27633 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27634 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27635
27636
27637
27638
27639 if test "$wxUSE_REGEX" != "no"; then
27640     cat >>confdefs.h <<\_ACEOF
27641 #define wxUSE_REGEX 1
27642 _ACEOF
27643
27644
27645     if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_REGEX" = "yes"; then
27646         { echo "$as_me:$LINENO: WARNING: Defaulting to the builtin regex library for Unicode build." >&5
27647 echo "$as_me: WARNING: Defaulting to the builtin regex library for Unicode build." >&2;}
27648         wxUSE_REGEX=builtin
27649     fi
27650
27651     if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then
27652                         { echo "$as_me:$LINENO: checking for regex.h" >&5
27653 echo $ECHO_N "checking for regex.h... $ECHO_C" >&6; }
27654 if test "${ac_cv_header_regex_h+set}" = set; then
27655   echo $ECHO_N "(cached) $ECHO_C" >&6
27656 else
27657   cat >conftest.$ac_ext <<_ACEOF
27658 /* confdefs.h.  */
27659 _ACEOF
27660 cat confdefs.h >>conftest.$ac_ext
27661 cat >>conftest.$ac_ext <<_ACEOF
27662 /* end confdefs.h.  */
27663
27664
27665 #include <regex.h>
27666 _ACEOF
27667 rm -f conftest.$ac_objext
27668 if { (ac_try="$ac_compile"
27669 case "(($ac_try" in
27670   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27671   *) ac_try_echo=$ac_try;;
27672 esac
27673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27674   (eval "$ac_compile") 2>conftest.er1
27675   ac_status=$?
27676   grep -v '^ *+' conftest.er1 >conftest.err
27677   rm -f conftest.er1
27678   cat conftest.err >&5
27679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27680   (exit $ac_status); } && {
27681          test -z "$ac_c_werror_flag" ||
27682          test ! -s conftest.err
27683        } && test -s conftest.$ac_objext; then
27684   ac_cv_header_regex_h=yes
27685 else
27686   echo "$as_me: failed program was:" >&5
27687 sed 's/^/| /' conftest.$ac_ext >&5
27688
27689         ac_cv_header_regex_h=no
27690 fi
27691
27692 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27693 fi
27694 { echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
27695 echo "${ECHO_T}$ac_cv_header_regex_h" >&6; }
27696 if test $ac_cv_header_regex_h = yes; then
27697
27698
27699 for ac_func in regcomp re_search
27700 do
27701 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27702 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27703 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27704 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27705   echo $ECHO_N "(cached) $ECHO_C" >&6
27706 else
27707   cat >conftest.$ac_ext <<_ACEOF
27708 /* confdefs.h.  */
27709 _ACEOF
27710 cat confdefs.h >>conftest.$ac_ext
27711 cat >>conftest.$ac_ext <<_ACEOF
27712 /* end confdefs.h.  */
27713 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27714    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27715 #define $ac_func innocuous_$ac_func
27716
27717 /* System header to define __stub macros and hopefully few prototypes,
27718     which can conflict with char $ac_func (); below.
27719     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27720     <limits.h> exists even on freestanding compilers.  */
27721
27722 #ifdef __STDC__
27723 # include <limits.h>
27724 #else
27725 # include <assert.h>
27726 #endif
27727
27728 #undef $ac_func
27729
27730 /* Override any GCC internal prototype to avoid an error.
27731    Use char because int might match the return type of a GCC
27732    builtin and then its argument prototype would still apply.  */
27733 #ifdef __cplusplus
27734 extern "C"
27735 #endif
27736 char $ac_func ();
27737 /* The GNU C library defines this for functions which it implements
27738     to always fail with ENOSYS.  Some functions are actually named
27739     something starting with __ and the normal name is an alias.  */
27740 #if defined __stub_$ac_func || defined __stub___$ac_func
27741 choke me
27742 #endif
27743
27744 int
27745 main ()
27746 {
27747 return $ac_func ();
27748   ;
27749   return 0;
27750 }
27751 _ACEOF
27752 rm -f conftest.$ac_objext conftest$ac_exeext
27753 if { (ac_try="$ac_link"
27754 case "(($ac_try" in
27755   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27756   *) ac_try_echo=$ac_try;;
27757 esac
27758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27759   (eval "$ac_link") 2>conftest.er1
27760   ac_status=$?
27761   grep -v '^ *+' conftest.er1 >conftest.err
27762   rm -f conftest.er1
27763   cat conftest.err >&5
27764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27765   (exit $ac_status); } && {
27766          test -z "$ac_c_werror_flag" ||
27767          test ! -s conftest.err
27768        } && test -s conftest$ac_exeext &&
27769        $as_test_x conftest$ac_exeext; then
27770   eval "$as_ac_var=yes"
27771 else
27772   echo "$as_me: failed program was:" >&5
27773 sed 's/^/| /' conftest.$ac_ext >&5
27774
27775         eval "$as_ac_var=no"
27776 fi
27777
27778 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27779       conftest$ac_exeext conftest.$ac_ext
27780 fi
27781 ac_res=`eval echo '${'$as_ac_var'}'`
27782                { echo "$as_me:$LINENO: result: $ac_res" >&5
27783 echo "${ECHO_T}$ac_res" >&6; }
27784 if test `eval echo '${'$as_ac_var'}'` = yes; then
27785   cat >>confdefs.h <<_ACEOF
27786 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27787 _ACEOF
27788
27789 fi
27790 done
27791
27792 fi
27793
27794
27795
27796         if test "x$ac_cv_func_regcomp" != "xyes"; then
27797             if test "$wxUSE_REGEX" = "sys" ; then
27798                 { { echo "$as_me:$LINENO: error: system regex library not found! Use --with-regex to use built-in version" >&5
27799 echo "$as_me: error: system regex library not found! Use --with-regex to use built-in version" >&2;}
27800    { (exit 1); exit 1; }; }
27801             else
27802                 { echo "$as_me:$LINENO: WARNING: system regex library not found, will use built-in instead" >&5
27803 echo "$as_me: WARNING: system regex library not found, will use built-in instead" >&2;}
27804                 wxUSE_REGEX=builtin
27805             fi
27806         else
27807                         wxUSE_REGEX=sys
27808                         cat >>confdefs.h <<\_ACEOF
27809 #define WX_NO_REGEX_ADVANCED 1
27810 _ACEOF
27811
27812         fi
27813     fi
27814 fi
27815
27816
27817 ZLIB_LINK=
27818 if test "$wxUSE_ZLIB" != "no" ; then
27819     cat >>confdefs.h <<\_ACEOF
27820 #define wxUSE_ZLIB 1
27821 _ACEOF
27822
27823
27824     if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then
27825                                                 if test "$USE_DARWIN" = 1; then
27826             system_zlib_h_ok="yes"
27827         else
27828                                                                                     { echo "$as_me:$LINENO: checking for zlib.h >= 1.1.4" >&5
27829 echo $ECHO_N "checking for zlib.h >= 1.1.4... $ECHO_C" >&6; }
27830 if test "${ac_cv_header_zlib_h+set}" = set; then
27831   echo $ECHO_N "(cached) $ECHO_C" >&6
27832 else
27833   if test "$cross_compiling" = yes; then
27834                       unset ac_cv_header_zlib_h
27835
27836 else
27837   cat >conftest.$ac_ext <<_ACEOF
27838 /* confdefs.h.  */
27839 _ACEOF
27840 cat confdefs.h >>conftest.$ac_ext
27841 cat >>conftest.$ac_ext <<_ACEOF
27842 /* end confdefs.h.  */
27843
27844                         #include <zlib.h>
27845                         #include <stdio.h>
27846
27847                         int main()
27848                         {
27849                             FILE *f=fopen("conftestval", "w");
27850                             if (!f) exit(1);
27851                             fprintf(f, "%s",
27852                                     ZLIB_VERSION[0] == '1' &&
27853                                     (ZLIB_VERSION[2] > '1' ||
27854                                     (ZLIB_VERSION[2] == '1' &&
27855                                      ZLIB_VERSION[4] >= '4')) ? "yes" : "no");
27856                             exit(0);
27857                         }
27858
27859 _ACEOF
27860 rm -f conftest$ac_exeext
27861 if { (ac_try="$ac_link"
27862 case "(($ac_try" in
27863   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27864   *) ac_try_echo=$ac_try;;
27865 esac
27866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27867   (eval "$ac_link") 2>&5
27868   ac_status=$?
27869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27870   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27871   { (case "(($ac_try" in
27872   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27873   *) ac_try_echo=$ac_try;;
27874 esac
27875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27876   (eval "$ac_try") 2>&5
27877   ac_status=$?
27878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27879   (exit $ac_status); }; }; then
27880   ac_cv_header_zlib_h=`cat conftestval`
27881 else
27882   echo "$as_me: program exited with status $ac_status" >&5
27883 echo "$as_me: failed program was:" >&5
27884 sed 's/^/| /' conftest.$ac_ext >&5
27885
27886 ( exit $ac_status )
27887 ac_cv_header_zlib_h=no
27888 fi
27889 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27890 fi
27891
27892
27893
27894 fi
27895 { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
27896 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
27897                                     { echo "$as_me:$LINENO: checking for zlib.h" >&5
27898 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
27899 if test "${ac_cv_header_zlib_h+set}" = set; then
27900   echo $ECHO_N "(cached) $ECHO_C" >&6
27901 else
27902   cat >conftest.$ac_ext <<_ACEOF
27903 /* confdefs.h.  */
27904 _ACEOF
27905 cat confdefs.h >>conftest.$ac_ext
27906 cat >>conftest.$ac_ext <<_ACEOF
27907 /* end confdefs.h.  */
27908
27909
27910 #include <zlib.h>
27911 _ACEOF
27912 rm -f conftest.$ac_objext
27913 if { (ac_try="$ac_compile"
27914 case "(($ac_try" in
27915   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27916   *) ac_try_echo=$ac_try;;
27917 esac
27918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27919   (eval "$ac_compile") 2>conftest.er1
27920   ac_status=$?
27921   grep -v '^ *+' conftest.er1 >conftest.err
27922   rm -f conftest.er1
27923   cat conftest.err >&5
27924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27925   (exit $ac_status); } && {
27926          test -z "$ac_c_werror_flag" ||
27927          test ! -s conftest.err
27928        } && test -s conftest.$ac_objext; then
27929   ac_cv_header_zlib_h=yes
27930 else
27931   echo "$as_me: failed program was:" >&5
27932 sed 's/^/| /' conftest.$ac_ext >&5
27933
27934         ac_cv_header_zlib_h=no
27935 fi
27936
27937 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27938 fi
27939 { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
27940 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
27941
27942
27943
27944             system_zlib_h_ok=$ac_cv_header_zlib_h
27945         fi
27946
27947         if test "$system_zlib_h_ok" = "yes"; then
27948             { echo "$as_me:$LINENO: checking for deflate in -lz" >&5
27949 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6; }
27950 if test "${ac_cv_lib_z_deflate+set}" = set; then
27951   echo $ECHO_N "(cached) $ECHO_C" >&6
27952 else
27953   ac_check_lib_save_LIBS=$LIBS
27954 LIBS="-lz  $LIBS"
27955 cat >conftest.$ac_ext <<_ACEOF
27956 /* confdefs.h.  */
27957 _ACEOF
27958 cat confdefs.h >>conftest.$ac_ext
27959 cat >>conftest.$ac_ext <<_ACEOF
27960 /* end confdefs.h.  */
27961
27962 /* Override any GCC internal prototype to avoid an error.
27963    Use char because int might match the return type of a GCC
27964    builtin and then its argument prototype would still apply.  */
27965 #ifdef __cplusplus
27966 extern "C"
27967 #endif
27968 char deflate ();
27969 int
27970 main ()
27971 {
27972 return deflate ();
27973   ;
27974   return 0;
27975 }
27976 _ACEOF
27977 rm -f conftest.$ac_objext conftest$ac_exeext
27978 if { (ac_try="$ac_link"
27979 case "(($ac_try" in
27980   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27981   *) ac_try_echo=$ac_try;;
27982 esac
27983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27984   (eval "$ac_link") 2>conftest.er1
27985   ac_status=$?
27986   grep -v '^ *+' conftest.er1 >conftest.err
27987   rm -f conftest.er1
27988   cat conftest.err >&5
27989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27990   (exit $ac_status); } && {
27991          test -z "$ac_c_werror_flag" ||
27992          test ! -s conftest.err
27993        } && test -s conftest$ac_exeext &&
27994        $as_test_x conftest$ac_exeext; then
27995   ac_cv_lib_z_deflate=yes
27996 else
27997   echo "$as_me: failed program was:" >&5
27998 sed 's/^/| /' conftest.$ac_ext >&5
27999
28000         ac_cv_lib_z_deflate=no
28001 fi
28002
28003 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28004       conftest$ac_exeext conftest.$ac_ext
28005 LIBS=$ac_check_lib_save_LIBS
28006 fi
28007 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
28008 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6; }
28009 if test $ac_cv_lib_z_deflate = yes; then
28010   ZLIB_LINK=" -lz"
28011 fi
28012
28013         fi
28014
28015         if test "x$ZLIB_LINK" = "x" ; then
28016             if test "$wxUSE_ZLIB" = "sys" ; then
28017                 { { echo "$as_me:$LINENO: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&5
28018 echo "$as_me: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&2;}
28019    { (exit 1); exit 1; }; }
28020             else
28021                 { echo "$as_me:$LINENO: WARNING: zlib library not found or too old, will use built-in instead" >&5
28022 echo "$as_me: WARNING: zlib library not found or too old, will use built-in instead" >&2;}
28023                 wxUSE_ZLIB=builtin
28024             fi
28025         else
28026                         wxUSE_ZLIB=sys
28027         fi
28028     fi
28029 fi
28030
28031
28032 PNG_LINK=
28033 if test "$wxUSE_LIBPNG" != "no" ; then
28034     cat >>confdefs.h <<\_ACEOF
28035 #define wxUSE_LIBPNG 1
28036 _ACEOF
28037
28038
28039     if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then
28040         { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&5
28041 echo "$as_me: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&2;}
28042         wxUSE_LIBPNG=sys
28043     fi
28044
28045                 if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
28046         { echo "$as_me:$LINENO: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&5
28047 echo "$as_me: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&2;}
28048         wxUSE_LIBPNG=builtin
28049     fi
28050
28051     if test "$wxUSE_MGL" != 1 ; then
28052                 if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then
28053                                     { echo "$as_me:$LINENO: checking for png.h > 0.90" >&5
28054 echo $ECHO_N "checking for png.h > 0.90... $ECHO_C" >&6; }
28055 if test "${ac_cv_header_png_h+set}" = set; then
28056   echo $ECHO_N "(cached) $ECHO_C" >&6
28057 else
28058   if test "$cross_compiling" = yes; then
28059                       unset ac_cv_header_png_h
28060
28061 else
28062   cat >conftest.$ac_ext <<_ACEOF
28063 /* confdefs.h.  */
28064 _ACEOF
28065 cat confdefs.h >>conftest.$ac_ext
28066 cat >>conftest.$ac_ext <<_ACEOF
28067 /* end confdefs.h.  */
28068
28069                         #include <png.h>
28070                         #include <stdio.h>
28071
28072                         int main()
28073                         {
28074                             FILE *f=fopen("conftestval", "w");
28075                             if (!f) exit(1);
28076                             fprintf(f, "%s",
28077                                      PNG_LIBPNG_VER > 90 ? "yes" : "no");
28078                             exit(0);
28079                         }
28080
28081 _ACEOF
28082 rm -f conftest$ac_exeext
28083 if { (ac_try="$ac_link"
28084 case "(($ac_try" in
28085   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28086   *) ac_try_echo=$ac_try;;
28087 esac
28088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28089   (eval "$ac_link") 2>&5
28090   ac_status=$?
28091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28092   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28093   { (case "(($ac_try" in
28094   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28095   *) ac_try_echo=$ac_try;;
28096 esac
28097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28098   (eval "$ac_try") 2>&5
28099   ac_status=$?
28100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28101   (exit $ac_status); }; }; then
28102   ac_cv_header_png_h=`cat conftestval`
28103 else
28104   echo "$as_me: program exited with status $ac_status" >&5
28105 echo "$as_me: failed program was:" >&5
28106 sed 's/^/| /' conftest.$ac_ext >&5
28107
28108 ( exit $ac_status )
28109 ac_cv_header_png_h=no
28110 fi
28111 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28112 fi
28113
28114
28115
28116 fi
28117 { echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
28118 echo "${ECHO_T}$ac_cv_header_png_h" >&6; }
28119             { echo "$as_me:$LINENO: checking for png.h" >&5
28120 echo $ECHO_N "checking for png.h... $ECHO_C" >&6; }
28121 if test "${ac_cv_header_png_h+set}" = set; then
28122   echo $ECHO_N "(cached) $ECHO_C" >&6
28123 else
28124   cat >conftest.$ac_ext <<_ACEOF
28125 /* confdefs.h.  */
28126 _ACEOF
28127 cat confdefs.h >>conftest.$ac_ext
28128 cat >>conftest.$ac_ext <<_ACEOF
28129 /* end confdefs.h.  */
28130
28131
28132 #include <png.h>
28133 _ACEOF
28134 rm -f conftest.$ac_objext
28135 if { (ac_try="$ac_compile"
28136 case "(($ac_try" in
28137   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28138   *) ac_try_echo=$ac_try;;
28139 esac
28140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28141   (eval "$ac_compile") 2>conftest.er1
28142   ac_status=$?
28143   grep -v '^ *+' conftest.er1 >conftest.err
28144   rm -f conftest.er1
28145   cat conftest.err >&5
28146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28147   (exit $ac_status); } && {
28148          test -z "$ac_c_werror_flag" ||
28149          test ! -s conftest.err
28150        } && test -s conftest.$ac_objext; then
28151   ac_cv_header_png_h=yes
28152 else
28153   echo "$as_me: failed program was:" >&5
28154 sed 's/^/| /' conftest.$ac_ext >&5
28155
28156         ac_cv_header_png_h=no
28157 fi
28158
28159 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28160 fi
28161 { echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
28162 echo "${ECHO_T}$ac_cv_header_png_h" >&6; }
28163
28164
28165
28166             if test "$ac_cv_header_png_h" = "yes"; then
28167                 { echo "$as_me:$LINENO: checking for png_sig_cmp in -lpng" >&5
28168 echo $ECHO_N "checking for png_sig_cmp in -lpng... $ECHO_C" >&6; }
28169 if test "${ac_cv_lib_png_png_sig_cmp+set}" = set; then
28170   echo $ECHO_N "(cached) $ECHO_C" >&6
28171 else
28172   ac_check_lib_save_LIBS=$LIBS
28173 LIBS="-lpng -lz -lm $LIBS"
28174 cat >conftest.$ac_ext <<_ACEOF
28175 /* confdefs.h.  */
28176 _ACEOF
28177 cat confdefs.h >>conftest.$ac_ext
28178 cat >>conftest.$ac_ext <<_ACEOF
28179 /* end confdefs.h.  */
28180
28181 /* Override any GCC internal prototype to avoid an error.
28182    Use char because int might match the return type of a GCC
28183    builtin and then its argument prototype would still apply.  */
28184 #ifdef __cplusplus
28185 extern "C"
28186 #endif
28187 char png_sig_cmp ();
28188 int
28189 main ()
28190 {
28191 return png_sig_cmp ();
28192   ;
28193   return 0;
28194 }
28195 _ACEOF
28196 rm -f conftest.$ac_objext conftest$ac_exeext
28197 if { (ac_try="$ac_link"
28198 case "(($ac_try" in
28199   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28200   *) ac_try_echo=$ac_try;;
28201 esac
28202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28203   (eval "$ac_link") 2>conftest.er1
28204   ac_status=$?
28205   grep -v '^ *+' conftest.er1 >conftest.err
28206   rm -f conftest.er1
28207   cat conftest.err >&5
28208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28209   (exit $ac_status); } && {
28210          test -z "$ac_c_werror_flag" ||
28211          test ! -s conftest.err
28212        } && test -s conftest$ac_exeext &&
28213        $as_test_x conftest$ac_exeext; then
28214   ac_cv_lib_png_png_sig_cmp=yes
28215 else
28216   echo "$as_me: failed program was:" >&5
28217 sed 's/^/| /' conftest.$ac_ext >&5
28218
28219         ac_cv_lib_png_png_sig_cmp=no
28220 fi
28221
28222 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28223       conftest$ac_exeext conftest.$ac_ext
28224 LIBS=$ac_check_lib_save_LIBS
28225 fi
28226 { echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_sig_cmp" >&5
28227 echo "${ECHO_T}$ac_cv_lib_png_png_sig_cmp" >&6; }
28228 if test $ac_cv_lib_png_png_sig_cmp = yes; then
28229   PNG_LINK=" -lpng -lz"
28230 fi
28231
28232             fi
28233
28234             if test "x$PNG_LINK" = "x" ; then
28235                 if test "$wxUSE_LIBPNG" = "sys" ; then
28236                     { { echo "$as_me:$LINENO: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&5
28237 echo "$as_me: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&2;}
28238    { (exit 1); exit 1; }; }
28239                 else
28240                     { echo "$as_me:$LINENO: WARNING: system png library not found or too old, will use built-in instead" >&5
28241 echo "$as_me: WARNING: system png library not found or too old, will use built-in instead" >&2;}
28242                     wxUSE_LIBPNG=builtin
28243                 fi
28244             else
28245                                 wxUSE_LIBPNG=sys
28246             fi
28247         fi
28248     fi
28249 fi
28250
28251
28252 JPEG_LINK=
28253 if test "$wxUSE_LIBJPEG" != "no" ; then
28254     cat >>confdefs.h <<\_ACEOF
28255 #define wxUSE_LIBJPEG 1
28256 _ACEOF
28257
28258
28259     if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then
28260         { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&5
28261 echo "$as_me: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&2;}
28262         wxUSE_LIBJPEG=sys
28263     fi
28264
28265     if test "$wxUSE_MGL" != 1 ; then
28266                 if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then
28267                                                 { echo "$as_me:$LINENO: checking for jpeglib.h" >&5
28268 echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6; }
28269             if test "${ac_cv_header_jpeglib_h+set}" = set; then
28270   echo $ECHO_N "(cached) $ECHO_C" >&6
28271 else
28272   cat >conftest.$ac_ext <<_ACEOF
28273 /* confdefs.h.  */
28274 _ACEOF
28275 cat confdefs.h >>conftest.$ac_ext
28276 cat >>conftest.$ac_ext <<_ACEOF
28277 /* end confdefs.h.  */
28278
28279                         #undef HAVE_STDLIB_H
28280                         #include <stdio.h>
28281                         #include <jpeglib.h>
28282
28283 int
28284 main ()
28285 {
28286
28287
28288   ;
28289   return 0;
28290 }
28291 _ACEOF
28292 rm -f conftest.$ac_objext
28293 if { (ac_try="$ac_compile"
28294 case "(($ac_try" in
28295   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28296   *) ac_try_echo=$ac_try;;
28297 esac
28298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28299   (eval "$ac_compile") 2>conftest.er1
28300   ac_status=$?
28301   grep -v '^ *+' conftest.er1 >conftest.err
28302   rm -f conftest.er1
28303   cat conftest.err >&5
28304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28305   (exit $ac_status); } && {
28306          test -z "$ac_c_werror_flag" ||
28307          test ! -s conftest.err
28308        } && test -s conftest.$ac_objext; then
28309   ac_cv_header_jpeglib_h=yes
28310 else
28311   echo "$as_me: failed program was:" >&5
28312 sed 's/^/| /' conftest.$ac_ext >&5
28313
28314         ac_cv_header_jpeglib_h=no
28315
28316 fi
28317
28318 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28319
28320 fi
28321
28322             { echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5
28323 echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6; }
28324
28325             if test "$ac_cv_header_jpeglib_h" = "yes"; then
28326                 { echo "$as_me:$LINENO: checking for jpeg_read_header in -ljpeg" >&5
28327 echo $ECHO_N "checking for jpeg_read_header in -ljpeg... $ECHO_C" >&6; }
28328 if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then
28329   echo $ECHO_N "(cached) $ECHO_C" >&6
28330 else
28331   ac_check_lib_save_LIBS=$LIBS
28332 LIBS="-ljpeg  $LIBS"
28333 cat >conftest.$ac_ext <<_ACEOF
28334 /* confdefs.h.  */
28335 _ACEOF
28336 cat confdefs.h >>conftest.$ac_ext
28337 cat >>conftest.$ac_ext <<_ACEOF
28338 /* end confdefs.h.  */
28339
28340 /* Override any GCC internal prototype to avoid an error.
28341    Use char because int might match the return type of a GCC
28342    builtin and then its argument prototype would still apply.  */
28343 #ifdef __cplusplus
28344 extern "C"
28345 #endif
28346 char jpeg_read_header ();
28347 int
28348 main ()
28349 {
28350 return jpeg_read_header ();
28351   ;
28352   return 0;
28353 }
28354 _ACEOF
28355 rm -f conftest.$ac_objext conftest$ac_exeext
28356 if { (ac_try="$ac_link"
28357 case "(($ac_try" in
28358   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28359   *) ac_try_echo=$ac_try;;
28360 esac
28361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28362   (eval "$ac_link") 2>conftest.er1
28363   ac_status=$?
28364   grep -v '^ *+' conftest.er1 >conftest.err
28365   rm -f conftest.er1
28366   cat conftest.err >&5
28367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28368   (exit $ac_status); } && {
28369          test -z "$ac_c_werror_flag" ||
28370          test ! -s conftest.err
28371        } && test -s conftest$ac_exeext &&
28372        $as_test_x conftest$ac_exeext; then
28373   ac_cv_lib_jpeg_jpeg_read_header=yes
28374 else
28375   echo "$as_me: failed program was:" >&5
28376 sed 's/^/| /' conftest.$ac_ext >&5
28377
28378         ac_cv_lib_jpeg_jpeg_read_header=no
28379 fi
28380
28381 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28382       conftest$ac_exeext conftest.$ac_ext
28383 LIBS=$ac_check_lib_save_LIBS
28384 fi
28385 { echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
28386 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_read_header" >&6; }
28387 if test $ac_cv_lib_jpeg_jpeg_read_header = yes; then
28388   JPEG_LINK=" -ljpeg"
28389 fi
28390
28391             fi
28392
28393             if test "x$JPEG_LINK" = "x" ; then
28394                 if test "$wxUSE_LIBJPEG" = "sys" ; then
28395                     { { echo "$as_me:$LINENO: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&5
28396 echo "$as_me: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&2;}
28397    { (exit 1); exit 1; }; }
28398                 else
28399                     { echo "$as_me:$LINENO: WARNING: system jpeg library not found, will use built-in instead" >&5
28400 echo "$as_me: WARNING: system jpeg library not found, will use built-in instead" >&2;}
28401                     wxUSE_LIBJPEG=builtin
28402                 fi
28403             else
28404                                 wxUSE_LIBJPEG=sys
28405
28406                 if test "$wxUSE_MSW" = 1; then
28407                                                                                                     { echo "$as_me:$LINENO: checking for boolean" >&5
28408 echo $ECHO_N "checking for boolean... $ECHO_C" >&6; }
28409 if test "${ac_cv_type_boolean+set}" = set; then
28410   echo $ECHO_N "(cached) $ECHO_C" >&6
28411 else
28412   cat >conftest.$ac_ext <<_ACEOF
28413 /* confdefs.h.  */
28414 _ACEOF
28415 cat confdefs.h >>conftest.$ac_ext
28416 cat >>conftest.$ac_ext <<_ACEOF
28417 /* end confdefs.h.  */
28418 #include <windows.h>
28419
28420 typedef boolean ac__type_new_;
28421 int
28422 main ()
28423 {
28424 if ((ac__type_new_ *) 0)
28425   return 0;
28426 if (sizeof (ac__type_new_))
28427   return 0;
28428   ;
28429   return 0;
28430 }
28431 _ACEOF
28432 rm -f conftest.$ac_objext
28433 if { (ac_try="$ac_compile"
28434 case "(($ac_try" in
28435   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28436   *) ac_try_echo=$ac_try;;
28437 esac
28438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28439   (eval "$ac_compile") 2>conftest.er1
28440   ac_status=$?
28441   grep -v '^ *+' conftest.er1 >conftest.err
28442   rm -f conftest.er1
28443   cat conftest.err >&5
28444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28445   (exit $ac_status); } && {
28446          test -z "$ac_c_werror_flag" ||
28447          test ! -s conftest.err
28448        } && test -s conftest.$ac_objext; then
28449   ac_cv_type_boolean=yes
28450 else
28451   echo "$as_me: failed program was:" >&5
28452 sed 's/^/| /' conftest.$ac_ext >&5
28453
28454         ac_cv_type_boolean=no
28455 fi
28456
28457 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28458 fi
28459 { echo "$as_me:$LINENO: result: $ac_cv_type_boolean" >&5
28460 echo "${ECHO_T}$ac_cv_type_boolean" >&6; }
28461 if test $ac_cv_type_boolean = yes; then
28462
28463 cat >>confdefs.h <<_ACEOF
28464 #define HAVE_BOOLEAN 1
28465 _ACEOF
28466
28467
28468                             { echo "$as_me:$LINENO: checking for boolean" >&5
28469 echo $ECHO_N "checking for boolean... $ECHO_C" >&6; }
28470 if test "${ac_cv_type_boolean+set}" = set; then
28471   echo $ECHO_N "(cached) $ECHO_C" >&6
28472 else
28473   cat >conftest.$ac_ext <<_ACEOF
28474 /* confdefs.h.  */
28475 _ACEOF
28476 cat confdefs.h >>conftest.$ac_ext
28477 cat >>conftest.$ac_ext <<_ACEOF
28478 /* end confdefs.h.  */
28479
28480                                     #undef HAVE_BOOLEAN
28481                                     #include <stdio.h>
28482                                     #include <jpeglib.h>
28483
28484
28485 typedef boolean ac__type_new_;
28486 int
28487 main ()
28488 {
28489 if ((ac__type_new_ *) 0)
28490   return 0;
28491 if (sizeof (ac__type_new_))
28492   return 0;
28493   ;
28494   return 0;
28495 }
28496 _ACEOF
28497 rm -f conftest.$ac_objext
28498 if { (ac_try="$ac_compile"
28499 case "(($ac_try" in
28500   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28501   *) ac_try_echo=$ac_try;;
28502 esac
28503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28504   (eval "$ac_compile") 2>conftest.er1
28505   ac_status=$?
28506   grep -v '^ *+' conftest.er1 >conftest.err
28507   rm -f conftest.er1
28508   cat conftest.err >&5
28509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28510   (exit $ac_status); } && {
28511          test -z "$ac_c_werror_flag" ||
28512          test ! -s conftest.err
28513        } && test -s conftest.$ac_objext; then
28514   ac_cv_type_boolean=yes
28515 else
28516   echo "$as_me: failed program was:" >&5
28517 sed 's/^/| /' conftest.$ac_ext >&5
28518
28519         ac_cv_type_boolean=no
28520 fi
28521
28522 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28523 fi
28524 { echo "$as_me:$LINENO: result: $ac_cv_type_boolean" >&5
28525 echo "${ECHO_T}$ac_cv_type_boolean" >&6; }
28526
28527 # The cast to long int works around a bug in the HP C Compiler
28528 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
28529 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
28530 # This bug is HP SR number 8606223364.
28531 { echo "$as_me:$LINENO: checking size of boolean" >&5
28532 echo $ECHO_N "checking size of boolean... $ECHO_C" >&6; }
28533 if test "${ac_cv_sizeof_boolean+set}" = set; then
28534   echo $ECHO_N "(cached) $ECHO_C" >&6
28535 else
28536   if test "$cross_compiling" = yes; then
28537   # Depending upon the size, compute the lo and hi bounds.
28538 cat >conftest.$ac_ext <<_ACEOF
28539 /* confdefs.h.  */
28540 _ACEOF
28541 cat confdefs.h >>conftest.$ac_ext
28542 cat >>conftest.$ac_ext <<_ACEOF
28543 /* end confdefs.h.  */
28544
28545                                     #undef HAVE_BOOLEAN
28546                                     #include <stdio.h>
28547                                     #include <jpeglib.h>
28548
28549
28550    typedef boolean ac__type_sizeof_;
28551 int
28552 main ()
28553 {
28554 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
28555 test_array [0] = 0
28556
28557   ;
28558   return 0;
28559 }
28560 _ACEOF
28561 rm -f conftest.$ac_objext
28562 if { (ac_try="$ac_compile"
28563 case "(($ac_try" in
28564   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28565   *) ac_try_echo=$ac_try;;
28566 esac
28567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28568   (eval "$ac_compile") 2>conftest.er1
28569   ac_status=$?
28570   grep -v '^ *+' conftest.er1 >conftest.err
28571   rm -f conftest.er1
28572   cat conftest.err >&5
28573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28574   (exit $ac_status); } && {
28575          test -z "$ac_c_werror_flag" ||
28576          test ! -s conftest.err
28577        } && test -s conftest.$ac_objext; then
28578   ac_lo=0 ac_mid=0
28579   while :; do
28580     cat >conftest.$ac_ext <<_ACEOF
28581 /* confdefs.h.  */
28582 _ACEOF
28583 cat confdefs.h >>conftest.$ac_ext
28584 cat >>conftest.$ac_ext <<_ACEOF
28585 /* end confdefs.h.  */
28586
28587                                     #undef HAVE_BOOLEAN
28588                                     #include <stdio.h>
28589                                     #include <jpeglib.h>
28590
28591
28592    typedef boolean ac__type_sizeof_;
28593 int
28594 main ()
28595 {
28596 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
28597 test_array [0] = 0
28598
28599   ;
28600   return 0;
28601 }
28602 _ACEOF
28603 rm -f conftest.$ac_objext
28604 if { (ac_try="$ac_compile"
28605 case "(($ac_try" in
28606   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28607   *) ac_try_echo=$ac_try;;
28608 esac
28609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28610   (eval "$ac_compile") 2>conftest.er1
28611   ac_status=$?
28612   grep -v '^ *+' conftest.er1 >conftest.err
28613   rm -f conftest.er1
28614   cat conftest.err >&5
28615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28616   (exit $ac_status); } && {
28617          test -z "$ac_c_werror_flag" ||
28618          test ! -s conftest.err
28619        } && test -s conftest.$ac_objext; then
28620   ac_hi=$ac_mid; break
28621 else
28622   echo "$as_me: failed program was:" >&5
28623 sed 's/^/| /' conftest.$ac_ext >&5
28624
28625         ac_lo=`expr $ac_mid + 1`
28626                         if test $ac_lo -le $ac_mid; then
28627                           ac_lo= ac_hi=
28628                           break
28629                         fi
28630                         ac_mid=`expr 2 '*' $ac_mid + 1`
28631 fi
28632
28633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28634   done
28635 else
28636   echo "$as_me: failed program was:" >&5
28637 sed 's/^/| /' conftest.$ac_ext >&5
28638
28639         cat >conftest.$ac_ext <<_ACEOF
28640 /* confdefs.h.  */
28641 _ACEOF
28642 cat confdefs.h >>conftest.$ac_ext
28643 cat >>conftest.$ac_ext <<_ACEOF
28644 /* end confdefs.h.  */
28645
28646                                     #undef HAVE_BOOLEAN
28647                                     #include <stdio.h>
28648                                     #include <jpeglib.h>
28649
28650
28651    typedef boolean ac__type_sizeof_;
28652 int
28653 main ()
28654 {
28655 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
28656 test_array [0] = 0
28657
28658   ;
28659   return 0;
28660 }
28661 _ACEOF
28662 rm -f conftest.$ac_objext
28663 if { (ac_try="$ac_compile"
28664 case "(($ac_try" in
28665   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28666   *) ac_try_echo=$ac_try;;
28667 esac
28668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28669   (eval "$ac_compile") 2>conftest.er1
28670   ac_status=$?
28671   grep -v '^ *+' conftest.er1 >conftest.err
28672   rm -f conftest.er1
28673   cat conftest.err >&5
28674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28675   (exit $ac_status); } && {
28676          test -z "$ac_c_werror_flag" ||
28677          test ! -s conftest.err
28678        } && test -s conftest.$ac_objext; then
28679   ac_hi=-1 ac_mid=-1
28680   while :; do
28681     cat >conftest.$ac_ext <<_ACEOF
28682 /* confdefs.h.  */
28683 _ACEOF
28684 cat confdefs.h >>conftest.$ac_ext
28685 cat >>conftest.$ac_ext <<_ACEOF
28686 /* end confdefs.h.  */
28687
28688                                     #undef HAVE_BOOLEAN
28689                                     #include <stdio.h>
28690                                     #include <jpeglib.h>
28691
28692
28693    typedef boolean ac__type_sizeof_;
28694 int
28695 main ()
28696 {
28697 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
28698 test_array [0] = 0
28699
28700   ;
28701   return 0;
28702 }
28703 _ACEOF
28704 rm -f conftest.$ac_objext
28705 if { (ac_try="$ac_compile"
28706 case "(($ac_try" in
28707   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28708   *) ac_try_echo=$ac_try;;
28709 esac
28710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28711   (eval "$ac_compile") 2>conftest.er1
28712   ac_status=$?
28713   grep -v '^ *+' conftest.er1 >conftest.err
28714   rm -f conftest.er1
28715   cat conftest.err >&5
28716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28717   (exit $ac_status); } && {
28718          test -z "$ac_c_werror_flag" ||
28719          test ! -s conftest.err
28720        } && test -s conftest.$ac_objext; then
28721   ac_lo=$ac_mid; break
28722 else
28723   echo "$as_me: failed program was:" >&5
28724 sed 's/^/| /' conftest.$ac_ext >&5
28725
28726         ac_hi=`expr '(' $ac_mid ')' - 1`
28727                         if test $ac_mid -le $ac_hi; then
28728                           ac_lo= ac_hi=
28729                           break
28730                         fi
28731                         ac_mid=`expr 2 '*' $ac_mid`
28732 fi
28733
28734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28735   done
28736 else
28737   echo "$as_me: failed program was:" >&5
28738 sed 's/^/| /' conftest.$ac_ext >&5
28739
28740         ac_lo= ac_hi=
28741 fi
28742
28743 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28744 fi
28745
28746 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28747 # Binary search between lo and hi bounds.
28748 while test "x$ac_lo" != "x$ac_hi"; do
28749   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
28750   cat >conftest.$ac_ext <<_ACEOF
28751 /* confdefs.h.  */
28752 _ACEOF
28753 cat confdefs.h >>conftest.$ac_ext
28754 cat >>conftest.$ac_ext <<_ACEOF
28755 /* end confdefs.h.  */
28756
28757                                     #undef HAVE_BOOLEAN
28758                                     #include <stdio.h>
28759                                     #include <jpeglib.h>
28760
28761
28762    typedef boolean ac__type_sizeof_;
28763 int
28764 main ()
28765 {
28766 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
28767 test_array [0] = 0
28768
28769   ;
28770   return 0;
28771 }
28772 _ACEOF
28773 rm -f conftest.$ac_objext
28774 if { (ac_try="$ac_compile"
28775 case "(($ac_try" in
28776   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28777   *) ac_try_echo=$ac_try;;
28778 esac
28779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28780   (eval "$ac_compile") 2>conftest.er1
28781   ac_status=$?
28782   grep -v '^ *+' conftest.er1 >conftest.err
28783   rm -f conftest.er1
28784   cat conftest.err >&5
28785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28786   (exit $ac_status); } && {
28787          test -z "$ac_c_werror_flag" ||
28788          test ! -s conftest.err
28789        } && test -s conftest.$ac_objext; then
28790   ac_hi=$ac_mid
28791 else
28792   echo "$as_me: failed program was:" >&5
28793 sed 's/^/| /' conftest.$ac_ext >&5
28794
28795         ac_lo=`expr '(' $ac_mid ')' + 1`
28796 fi
28797
28798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28799 done
28800 case $ac_lo in
28801 ?*) ac_cv_sizeof_boolean=$ac_lo;;
28802 '') if test "$ac_cv_type_boolean" = yes; then
28803      { { echo "$as_me:$LINENO: error: cannot compute sizeof (boolean)
28804 See \`config.log' for more details." >&5
28805 echo "$as_me: error: cannot compute sizeof (boolean)
28806 See \`config.log' for more details." >&2;}
28807    { (exit 77); exit 77; }; }
28808    else
28809      ac_cv_sizeof_boolean=0
28810    fi ;;
28811 esac
28812 else
28813   cat >conftest.$ac_ext <<_ACEOF
28814 /* confdefs.h.  */
28815 _ACEOF
28816 cat confdefs.h >>conftest.$ac_ext
28817 cat >>conftest.$ac_ext <<_ACEOF
28818 /* end confdefs.h.  */
28819
28820                                     #undef HAVE_BOOLEAN
28821                                     #include <stdio.h>
28822                                     #include <jpeglib.h>
28823
28824
28825    typedef boolean ac__type_sizeof_;
28826 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
28827 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
28828 #include <stdio.h>
28829 #include <stdlib.h>
28830 int
28831 main ()
28832 {
28833
28834   FILE *f = fopen ("conftest.val", "w");
28835   if (! f)
28836     return 1;
28837   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
28838     {
28839       long int i = longval ();
28840       if (i != ((long int) (sizeof (ac__type_sizeof_))))
28841         return 1;
28842       fprintf (f, "%ld\n", i);
28843     }
28844   else
28845     {
28846       unsigned long int i = ulongval ();
28847       if (i != ((long int) (sizeof (ac__type_sizeof_))))
28848         return 1;
28849       fprintf (f, "%lu\n", i);
28850     }
28851   return ferror (f) || fclose (f) != 0;
28852
28853   ;
28854   return 0;
28855 }
28856 _ACEOF
28857 rm -f conftest$ac_exeext
28858 if { (ac_try="$ac_link"
28859 case "(($ac_try" in
28860   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28861   *) ac_try_echo=$ac_try;;
28862 esac
28863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28864   (eval "$ac_link") 2>&5
28865   ac_status=$?
28866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28867   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28868   { (case "(($ac_try" in
28869   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28870   *) ac_try_echo=$ac_try;;
28871 esac
28872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28873   (eval "$ac_try") 2>&5
28874   ac_status=$?
28875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28876   (exit $ac_status); }; }; then
28877   ac_cv_sizeof_boolean=`cat conftest.val`
28878 else
28879   echo "$as_me: program exited with status $ac_status" >&5
28880 echo "$as_me: failed program was:" >&5
28881 sed 's/^/| /' conftest.$ac_ext >&5
28882
28883 ( exit $ac_status )
28884 if test "$ac_cv_type_boolean" = yes; then
28885      { { echo "$as_me:$LINENO: error: cannot compute sizeof (boolean)
28886 See \`config.log' for more details." >&5
28887 echo "$as_me: error: cannot compute sizeof (boolean)
28888 See \`config.log' for more details." >&2;}
28889    { (exit 77); exit 77; }; }
28890    else
28891      ac_cv_sizeof_boolean=0
28892    fi
28893 fi
28894 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28895 fi
28896 rm -f conftest.val
28897 fi
28898 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_boolean" >&5
28899 echo "${ECHO_T}$ac_cv_sizeof_boolean" >&6; }
28900
28901
28902
28903 cat >>confdefs.h <<_ACEOF
28904 #define SIZEOF_BOOLEAN $ac_cv_sizeof_boolean
28905 _ACEOF
28906
28907
28908                             cat >>confdefs.h <<_ACEOF
28909 #define wxHACK_BOOLEAN wxInt`expr 8 \* $ac_cv_sizeof_boolean`
28910 _ACEOF
28911
28912
28913 fi
28914
28915                 fi
28916             fi
28917         fi
28918     fi
28919 fi
28920
28921
28922 TIFF_LINK=
28923 TIFF_PREREQ_LINKS=-lm
28924 if test "$wxUSE_LIBTIFF" != "no" ; then
28925     cat >>confdefs.h <<\_ACEOF
28926 #define wxUSE_LIBTIFF 1
28927 _ACEOF
28928
28929
28930     if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then
28931                         if test "$wxUSE_LIBJPEG" = "sys"; then
28932             TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $JPEG_LINK"
28933         fi
28934         if test "$wxUSE_ZLIB" = "sys"; then
28935             TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $ZLIB_LINK"
28936         fi
28937         { echo "$as_me:$LINENO: checking for tiffio.h" >&5
28938 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
28939 if test "${ac_cv_header_tiffio_h+set}" = set; then
28940   echo $ECHO_N "(cached) $ECHO_C" >&6
28941 else
28942   cat >conftest.$ac_ext <<_ACEOF
28943 /* confdefs.h.  */
28944 _ACEOF
28945 cat confdefs.h >>conftest.$ac_ext
28946 cat >>conftest.$ac_ext <<_ACEOF
28947 /* end confdefs.h.  */
28948
28949
28950
28951 #include <tiffio.h>
28952 _ACEOF
28953 rm -f conftest.$ac_objext
28954 if { (ac_try="$ac_compile"
28955 case "(($ac_try" in
28956   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28957   *) ac_try_echo=$ac_try;;
28958 esac
28959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28960   (eval "$ac_compile") 2>conftest.er1
28961   ac_status=$?
28962   grep -v '^ *+' conftest.er1 >conftest.err
28963   rm -f conftest.er1
28964   cat conftest.err >&5
28965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28966   (exit $ac_status); } && {
28967          test -z "$ac_c_werror_flag" ||
28968          test ! -s conftest.err
28969        } && test -s conftest.$ac_objext; then
28970   ac_cv_header_tiffio_h=yes
28971 else
28972   echo "$as_me: failed program was:" >&5
28973 sed 's/^/| /' conftest.$ac_ext >&5
28974
28975         ac_cv_header_tiffio_h=no
28976 fi
28977
28978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28979 fi
28980 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
28981 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
28982 if test $ac_cv_header_tiffio_h = yes; then
28983
28984                             { echo "$as_me:$LINENO: checking for TIFFError in -ltiff" >&5
28985 echo $ECHO_N "checking for TIFFError in -ltiff... $ECHO_C" >&6; }
28986 if test "${ac_cv_lib_tiff_TIFFError+set}" = set; then
28987   echo $ECHO_N "(cached) $ECHO_C" >&6
28988 else
28989   ac_check_lib_save_LIBS=$LIBS
28990 LIBS="-ltiff $TIFF_PREREQ_LINKS $LIBS"
28991 cat >conftest.$ac_ext <<_ACEOF
28992 /* confdefs.h.  */
28993 _ACEOF
28994 cat confdefs.h >>conftest.$ac_ext
28995 cat >>conftest.$ac_ext <<_ACEOF
28996 /* end confdefs.h.  */
28997
28998 /* Override any GCC internal prototype to avoid an error.
28999    Use char because int might match the return type of a GCC
29000    builtin and then its argument prototype would still apply.  */
29001 #ifdef __cplusplus
29002 extern "C"
29003 #endif
29004 char TIFFError ();
29005 int
29006 main ()
29007 {
29008 return TIFFError ();
29009   ;
29010   return 0;
29011 }
29012 _ACEOF
29013 rm -f conftest.$ac_objext conftest$ac_exeext
29014 if { (ac_try="$ac_link"
29015 case "(($ac_try" in
29016   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29017   *) ac_try_echo=$ac_try;;
29018 esac
29019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29020   (eval "$ac_link") 2>conftest.er1
29021   ac_status=$?
29022   grep -v '^ *+' conftest.er1 >conftest.err
29023   rm -f conftest.er1
29024   cat conftest.err >&5
29025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29026   (exit $ac_status); } && {
29027          test -z "$ac_c_werror_flag" ||
29028          test ! -s conftest.err
29029        } && test -s conftest$ac_exeext &&
29030        $as_test_x conftest$ac_exeext; then
29031   ac_cv_lib_tiff_TIFFError=yes
29032 else
29033   echo "$as_me: failed program was:" >&5
29034 sed 's/^/| /' conftest.$ac_ext >&5
29035
29036         ac_cv_lib_tiff_TIFFError=no
29037 fi
29038
29039 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29040       conftest$ac_exeext conftest.$ac_ext
29041 LIBS=$ac_check_lib_save_LIBS
29042 fi
29043 { echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFError" >&5
29044 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFError" >&6; }
29045 if test $ac_cv_lib_tiff_TIFFError = yes; then
29046   TIFF_LINK=" -ltiff"
29047 fi
29048
29049
29050 fi
29051
29052
29053
29054         if test "x$TIFF_LINK" = "x" ; then
29055             if test "$wxUSE_LIBTIFF" = "sys" ; then
29056                 { { echo "$as_me:$LINENO: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&5
29057 echo "$as_me: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&2;}
29058    { (exit 1); exit 1; }; }
29059             else
29060                 { echo "$as_me:$LINENO: WARNING: system tiff library not found, will use built-in instead" >&5
29061 echo "$as_me: WARNING: system tiff library not found, will use built-in instead" >&2;}
29062                 wxUSE_LIBTIFF=builtin
29063             fi
29064         else
29065                         wxUSE_LIBTIFF=sys
29066         fi
29067     fi
29068     if test "$wxUSE_LIBTIFF" = "builtin" ; then
29069         if test "$wxUSE_LIBJPEG" = "no"; then
29070                                                                                     ac_configure_args="$ac_configure_args --disable-jpeg"
29071         fi
29072         subdirs="$subdirs src/tiff"
29073
29074     fi
29075 fi
29076
29077
29078 if test "$wxUSE_EXPAT" != "no"; then
29079     wxUSE_XML=yes
29080     cat >>confdefs.h <<\_ACEOF
29081 #define wxUSE_EXPAT 1
29082 _ACEOF
29083
29084     cat >>confdefs.h <<\_ACEOF
29085 #define wxUSE_XML 1
29086 _ACEOF
29087
29088
29089     if test "$wxUSE_EXPAT" = "sys" -o "$wxUSE_EXPAT" = "yes" ; then
29090         { echo "$as_me:$LINENO: checking for expat.h" >&5
29091 echo $ECHO_N "checking for expat.h... $ECHO_C" >&6; }
29092 if test "${ac_cv_header_expat_h+set}" = set; then
29093   echo $ECHO_N "(cached) $ECHO_C" >&6
29094 else
29095   cat >conftest.$ac_ext <<_ACEOF
29096 /* confdefs.h.  */
29097 _ACEOF
29098 cat confdefs.h >>conftest.$ac_ext
29099 cat >>conftest.$ac_ext <<_ACEOF
29100 /* end confdefs.h.  */
29101
29102
29103 #include <expat.h>
29104 _ACEOF
29105 rm -f conftest.$ac_objext
29106 if { (ac_try="$ac_compile"
29107 case "(($ac_try" in
29108   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29109   *) ac_try_echo=$ac_try;;
29110 esac
29111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29112   (eval "$ac_compile") 2>conftest.er1
29113   ac_status=$?
29114   grep -v '^ *+' conftest.er1 >conftest.err
29115   rm -f conftest.er1
29116   cat conftest.err >&5
29117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29118   (exit $ac_status); } && {
29119          test -z "$ac_c_werror_flag" ||
29120          test ! -s conftest.err
29121        } && test -s conftest.$ac_objext; then
29122   ac_cv_header_expat_h=yes
29123 else
29124   echo "$as_me: failed program was:" >&5
29125 sed 's/^/| /' conftest.$ac_ext >&5
29126
29127         ac_cv_header_expat_h=no
29128 fi
29129
29130 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29131 fi
29132 { echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
29133 echo "${ECHO_T}$ac_cv_header_expat_h" >&6; }
29134 if test $ac_cv_header_expat_h = yes; then
29135   found_expat_h=1
29136 fi
29137
29138
29139         if test "x$found_expat_h" = "x1"; then
29140                         { echo "$as_me:$LINENO: checking if expat.h is valid C++ header" >&5
29141 echo $ECHO_N "checking if expat.h is valid C++ header... $ECHO_C" >&6; }
29142 if test "${wx_cv_expat_is_not_broken+set}" = set; then
29143   echo $ECHO_N "(cached) $ECHO_C" >&6
29144 else
29145
29146                 ac_ext=cpp
29147 ac_cpp='$CXXCPP $CPPFLAGS'
29148 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29149 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29150 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29151
29152                 cat >conftest.$ac_ext <<_ACEOF
29153 /* confdefs.h.  */
29154 _ACEOF
29155 cat confdefs.h >>conftest.$ac_ext
29156 cat >>conftest.$ac_ext <<_ACEOF
29157 /* end confdefs.h.  */
29158 #include <expat.h>
29159 int
29160 main ()
29161 {
29162
29163   ;
29164   return 0;
29165 }
29166 _ACEOF
29167 rm -f conftest.$ac_objext
29168 if { (ac_try="$ac_compile"
29169 case "(($ac_try" in
29170   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29171   *) ac_try_echo=$ac_try;;
29172 esac
29173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29174   (eval "$ac_compile") 2>conftest.er1
29175   ac_status=$?
29176   grep -v '^ *+' conftest.er1 >conftest.err
29177   rm -f conftest.er1
29178   cat conftest.err >&5
29179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29180   (exit $ac_status); } && {
29181          test -z "$ac_cxx_werror_flag" ||
29182          test ! -s conftest.err
29183        } && test -s conftest.$ac_objext; then
29184   wx_cv_expat_is_not_broken=yes
29185 else
29186   echo "$as_me: failed program was:" >&5
29187 sed 's/^/| /' conftest.$ac_ext >&5
29188
29189         wx_cv_expat_is_not_broken=no
29190
29191 fi
29192
29193 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29194                 ac_ext=c
29195 ac_cpp='$CPP $CPPFLAGS'
29196 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29197 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29198 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29199
29200
29201
29202 fi
29203 { echo "$as_me:$LINENO: result: $wx_cv_expat_is_not_broken" >&5
29204 echo "${ECHO_T}$wx_cv_expat_is_not_broken" >&6; }
29205             if test "$wx_cv_expat_is_not_broken" = "yes" ; then
29206                 { echo "$as_me:$LINENO: checking for XML_ParserCreate in -lexpat" >&5
29207 echo $ECHO_N "checking for XML_ParserCreate in -lexpat... $ECHO_C" >&6; }
29208 if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then
29209   echo $ECHO_N "(cached) $ECHO_C" >&6
29210 else
29211   ac_check_lib_save_LIBS=$LIBS
29212 LIBS="-lexpat  $LIBS"
29213 cat >conftest.$ac_ext <<_ACEOF
29214 /* confdefs.h.  */
29215 _ACEOF
29216 cat confdefs.h >>conftest.$ac_ext
29217 cat >>conftest.$ac_ext <<_ACEOF
29218 /* end confdefs.h.  */
29219
29220 /* Override any GCC internal prototype to avoid an error.
29221    Use char because int might match the return type of a GCC
29222    builtin and then its argument prototype would still apply.  */
29223 #ifdef __cplusplus
29224 extern "C"
29225 #endif
29226 char XML_ParserCreate ();
29227 int
29228 main ()
29229 {
29230 return XML_ParserCreate ();
29231   ;
29232   return 0;
29233 }
29234 _ACEOF
29235 rm -f conftest.$ac_objext conftest$ac_exeext
29236 if { (ac_try="$ac_link"
29237 case "(($ac_try" in
29238   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29239   *) ac_try_echo=$ac_try;;
29240 esac
29241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29242   (eval "$ac_link") 2>conftest.er1
29243   ac_status=$?
29244   grep -v '^ *+' conftest.er1 >conftest.err
29245   rm -f conftest.er1
29246   cat conftest.err >&5
29247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29248   (exit $ac_status); } && {
29249          test -z "$ac_c_werror_flag" ||
29250          test ! -s conftest.err
29251        } && test -s conftest$ac_exeext &&
29252        $as_test_x conftest$ac_exeext; then
29253   ac_cv_lib_expat_XML_ParserCreate=yes
29254 else
29255   echo "$as_me: failed program was:" >&5
29256 sed 's/^/| /' conftest.$ac_ext >&5
29257
29258         ac_cv_lib_expat_XML_ParserCreate=no
29259 fi
29260
29261 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29262       conftest$ac_exeext conftest.$ac_ext
29263 LIBS=$ac_check_lib_save_LIBS
29264 fi
29265 { echo "$as_me:$LINENO: result: $ac_cv_lib_expat_XML_ParserCreate" >&5
29266 echo "${ECHO_T}$ac_cv_lib_expat_XML_ParserCreate" >&6; }
29267 if test $ac_cv_lib_expat_XML_ParserCreate = yes; then
29268   EXPAT_LINK=" -lexpat"
29269 fi
29270
29271             fi
29272         fi
29273         if test "x$EXPAT_LINK" = "x" ; then
29274             if test "$wxUSE_EXPAT" = "sys" ; then
29275                 { { echo "$as_me:$LINENO: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&5
29276 echo "$as_me: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&2;}
29277    { (exit 1); exit 1; }; }
29278             else
29279                 { echo "$as_me:$LINENO: WARNING: system expat library not found, will use built-in instead" >&5
29280 echo "$as_me: WARNING: system expat library not found, will use built-in instead" >&2;}
29281                 wxUSE_EXPAT=builtin
29282             fi
29283         else
29284                         wxUSE_EXPAT=sys
29285         fi
29286     fi
29287     if test "$wxUSE_EXPAT" = "builtin" ; then
29288                 subdirs="$subdirs src/expat"
29289
29290     fi
29291 fi
29292
29293
29294
29295 if test "$wxUSE_LIBMSPACK" != "no"; then
29296     { echo "$as_me:$LINENO: checking for mspack.h" >&5
29297 echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6; }
29298 if test "${ac_cv_header_mspack_h+set}" = set; then
29299   echo $ECHO_N "(cached) $ECHO_C" >&6
29300 else
29301   cat >conftest.$ac_ext <<_ACEOF
29302 /* confdefs.h.  */
29303 _ACEOF
29304 cat confdefs.h >>conftest.$ac_ext
29305 cat >>conftest.$ac_ext <<_ACEOF
29306 /* end confdefs.h.  */
29307
29308
29309 #include <mspack.h>
29310 _ACEOF
29311 rm -f conftest.$ac_objext
29312 if { (ac_try="$ac_compile"
29313 case "(($ac_try" in
29314   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29315   *) ac_try_echo=$ac_try;;
29316 esac
29317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29318   (eval "$ac_compile") 2>conftest.er1
29319   ac_status=$?
29320   grep -v '^ *+' conftest.er1 >conftest.err
29321   rm -f conftest.er1
29322   cat conftest.err >&5
29323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29324   (exit $ac_status); } && {
29325          test -z "$ac_c_werror_flag" ||
29326          test ! -s conftest.err
29327        } && test -s conftest.$ac_objext; then
29328   ac_cv_header_mspack_h=yes
29329 else
29330   echo "$as_me: failed program was:" >&5
29331 sed 's/^/| /' conftest.$ac_ext >&5
29332
29333         ac_cv_header_mspack_h=no
29334 fi
29335
29336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29337 fi
29338 { echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
29339 echo "${ECHO_T}$ac_cv_header_mspack_h" >&6; }
29340 if test $ac_cv_header_mspack_h = yes; then
29341   found_mspack_h=1
29342 fi
29343
29344
29345     if test "x$found_mspack_h" = "x1"; then
29346         { echo "$as_me:$LINENO: checking for mspack_create_chm_decompressor in -lmspack" >&5
29347 echo $ECHO_N "checking for mspack_create_chm_decompressor in -lmspack... $ECHO_C" >&6; }
29348 if test "${ac_cv_lib_mspack_mspack_create_chm_decompressor+set}" = set; then
29349   echo $ECHO_N "(cached) $ECHO_C" >&6
29350 else
29351   ac_check_lib_save_LIBS=$LIBS
29352 LIBS="-lmspack  $LIBS"
29353 cat >conftest.$ac_ext <<_ACEOF
29354 /* confdefs.h.  */
29355 _ACEOF
29356 cat confdefs.h >>conftest.$ac_ext
29357 cat >>conftest.$ac_ext <<_ACEOF
29358 /* end confdefs.h.  */
29359
29360 /* Override any GCC internal prototype to avoid an error.
29361    Use char because int might match the return type of a GCC
29362    builtin and then its argument prototype would still apply.  */
29363 #ifdef __cplusplus
29364 extern "C"
29365 #endif
29366 char mspack_create_chm_decompressor ();
29367 int
29368 main ()
29369 {
29370 return mspack_create_chm_decompressor ();
29371   ;
29372   return 0;
29373 }
29374 _ACEOF
29375 rm -f conftest.$ac_objext conftest$ac_exeext
29376 if { (ac_try="$ac_link"
29377 case "(($ac_try" in
29378   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29379   *) ac_try_echo=$ac_try;;
29380 esac
29381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29382   (eval "$ac_link") 2>conftest.er1
29383   ac_status=$?
29384   grep -v '^ *+' conftest.er1 >conftest.err
29385   rm -f conftest.er1
29386   cat conftest.err >&5
29387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29388   (exit $ac_status); } && {
29389          test -z "$ac_c_werror_flag" ||
29390          test ! -s conftest.err
29391        } && test -s conftest$ac_exeext &&
29392        $as_test_x conftest$ac_exeext; then
29393   ac_cv_lib_mspack_mspack_create_chm_decompressor=yes
29394 else
29395   echo "$as_me: failed program was:" >&5
29396 sed 's/^/| /' conftest.$ac_ext >&5
29397
29398         ac_cv_lib_mspack_mspack_create_chm_decompressor=no
29399 fi
29400
29401 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29402       conftest$ac_exeext conftest.$ac_ext
29403 LIBS=$ac_check_lib_save_LIBS
29404 fi
29405 { echo "$as_me:$LINENO: result: $ac_cv_lib_mspack_mspack_create_chm_decompressor" >&5
29406 echo "${ECHO_T}$ac_cv_lib_mspack_mspack_create_chm_decompressor" >&6; }
29407 if test $ac_cv_lib_mspack_mspack_create_chm_decompressor = yes; then
29408   MSPACK_LINK=" -lmspack"
29409 fi
29410
29411     fi
29412     if test "x$MSPACK_LINK" = "x" ; then
29413         wxUSE_LIBMSPACK=no
29414     fi
29415 fi
29416
29417 if test "$wxUSE_LIBMSPACK" != "no"; then
29418     cat >>confdefs.h <<\_ACEOF
29419 #define wxUSE_LIBMSPACK 1
29420 _ACEOF
29421
29422 fi
29423
29424
29425
29426 AFMINSTALL=
29427 WIN32INSTALL=
29428
29429 TOOLKIT=
29430 TOOLKIT_INCLUDE=
29431 WIDGET_SET=
29432
29433 if test "$USE_WIN32" = 1 ; then
29434
29435 for ac_header in w32api.h
29436 do
29437 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29438 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29439 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29440 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29441   echo $ECHO_N "(cached) $ECHO_C" >&6
29442 else
29443   cat >conftest.$ac_ext <<_ACEOF
29444 /* confdefs.h.  */
29445 _ACEOF
29446 cat confdefs.h >>conftest.$ac_ext
29447 cat >>conftest.$ac_ext <<_ACEOF
29448 /* end confdefs.h.  */
29449
29450
29451 #include <$ac_header>
29452 _ACEOF
29453 rm -f conftest.$ac_objext
29454 if { (ac_try="$ac_compile"
29455 case "(($ac_try" in
29456   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29457   *) ac_try_echo=$ac_try;;
29458 esac
29459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29460   (eval "$ac_compile") 2>conftest.er1
29461   ac_status=$?
29462   grep -v '^ *+' conftest.er1 >conftest.err
29463   rm -f conftest.er1
29464   cat conftest.err >&5
29465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29466   (exit $ac_status); } && {
29467          test -z "$ac_c_werror_flag" ||
29468          test ! -s conftest.err
29469        } && test -s conftest.$ac_objext; then
29470   eval "$as_ac_Header=yes"
29471 else
29472   echo "$as_me: failed program was:" >&5
29473 sed 's/^/| /' conftest.$ac_ext >&5
29474
29475         eval "$as_ac_Header=no"
29476 fi
29477
29478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29479 fi
29480 ac_res=`eval echo '${'$as_ac_Header'}'`
29481                { echo "$as_me:$LINENO: result: $ac_res" >&5
29482 echo "${ECHO_T}$ac_res" >&6; }
29483 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29484   cat >>confdefs.h <<_ACEOF
29485 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29486 _ACEOF
29487
29488 fi
29489
29490 done
29491
29492     { echo "$as_me:$LINENO: checking for windows.h" >&5
29493 echo $ECHO_N "checking for windows.h... $ECHO_C" >&6; }
29494 if test "${ac_cv_header_windows_h+set}" = set; then
29495   echo $ECHO_N "(cached) $ECHO_C" >&6
29496 else
29497   cat >conftest.$ac_ext <<_ACEOF
29498 /* confdefs.h.  */
29499 _ACEOF
29500 cat confdefs.h >>conftest.$ac_ext
29501 cat >>conftest.$ac_ext <<_ACEOF
29502 /* end confdefs.h.  */
29503
29504
29505 #include <windows.h>
29506 _ACEOF
29507 rm -f conftest.$ac_objext
29508 if { (ac_try="$ac_compile"
29509 case "(($ac_try" in
29510   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29511   *) ac_try_echo=$ac_try;;
29512 esac
29513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29514   (eval "$ac_compile") 2>conftest.er1
29515   ac_status=$?
29516   grep -v '^ *+' conftest.er1 >conftest.err
29517   rm -f conftest.er1
29518   cat conftest.err >&5
29519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29520   (exit $ac_status); } && {
29521          test -z "$ac_c_werror_flag" ||
29522          test ! -s conftest.err
29523        } && test -s conftest.$ac_objext; then
29524   ac_cv_header_windows_h=yes
29525 else
29526   echo "$as_me: failed program was:" >&5
29527 sed 's/^/| /' conftest.$ac_ext >&5
29528
29529         ac_cv_header_windows_h=no
29530 fi
29531
29532 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29533 fi
29534 { echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
29535 echo "${ECHO_T}$ac_cv_header_windows_h" >&6; }
29536 if test $ac_cv_header_windows_h = yes; then
29537   :
29538 else
29539
29540         { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of windows.h" >&5
29541 echo "$as_me: error: please set CFLAGS to contain the location of windows.h" >&2;}
29542    { (exit 1); exit 1; }; }
29543
29544 fi
29545
29546
29547
29548     LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lcomdlg32 -ladvapi32 -lwsock32 -lgdi32"
29549     case "${host}" in
29550         x86_64-*-mingw32* )
29551                                                 WINDRES_CPU_DEFINE="--define WX_CPU_AMD64"
29552         ;;
29553     esac
29554     if test "$wxUSE_ACCESSIBILITY" = "yes" ; then
29555         LIBS="$LIBS -loleacc"
29556     fi
29557
29558     case "${host}" in
29559         *-*-cygwin* )
29560                         LIBS="$LIBS -lkernel32 -luser32"
29561     esac
29562
29563         RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__ $WINDRES_CPU_DEFINE"
29564     RESPROGRAMOBJ="\$(PROGRAM)_resources.o"
29565
29566                 WXCONFIG_RESFLAGS="--define __WIN32__ --define __WIN95__ --define __GNUWIN32__ $WINDRES_CPU_DEFINE"
29567
29568         WIN32INSTALL=win32install
29569
29570         { echo "$as_me:$LINENO: checking for pbt.h" >&5
29571 echo $ECHO_N "checking for pbt.h... $ECHO_C" >&6; }
29572 if test "${ac_cv_header_pbt_h+set}" = set; then
29573   echo $ECHO_N "(cached) $ECHO_C" >&6
29574 else
29575   cat >conftest.$ac_ext <<_ACEOF
29576 /* confdefs.h.  */
29577 _ACEOF
29578 cat confdefs.h >>conftest.$ac_ext
29579 cat >>conftest.$ac_ext <<_ACEOF
29580 /* end confdefs.h.  */
29581
29582
29583 #include <pbt.h>
29584 _ACEOF
29585 rm -f conftest.$ac_objext
29586 if { (ac_try="$ac_compile"
29587 case "(($ac_try" in
29588   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29589   *) ac_try_echo=$ac_try;;
29590 esac
29591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29592   (eval "$ac_compile") 2>conftest.er1
29593   ac_status=$?
29594   grep -v '^ *+' conftest.er1 >conftest.err
29595   rm -f conftest.er1
29596   cat conftest.err >&5
29597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29598   (exit $ac_status); } && {
29599          test -z "$ac_c_werror_flag" ||
29600          test ! -s conftest.err
29601        } && test -s conftest.$ac_objext; then
29602   ac_cv_header_pbt_h=yes
29603 else
29604   echo "$as_me: failed program was:" >&5
29605 sed 's/^/| /' conftest.$ac_ext >&5
29606
29607         ac_cv_header_pbt_h=no
29608 fi
29609
29610 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29611 fi
29612 { echo "$as_me:$LINENO: result: $ac_cv_header_pbt_h" >&5
29613 echo "${ECHO_T}$ac_cv_header_pbt_h" >&6; }
29614 if test $ac_cv_header_pbt_h = yes; then
29615   :
29616 else
29617   cat >>confdefs.h <<\_ACEOF
29618 #define NEED_PBT_H 1
29619 _ACEOF
29620
29621 fi
29622
29623
29624 fi
29625
29626 if test "$wxUSE_GUI" = "yes"; then
29627     USE_GUI=1
29628
29629     GUI_TK_LIBRARY=
29630
29631     WXGTK12=
29632     WXGTK127=
29633     WXGTK2=
29634     WXGPE=
29635
29636     if test "$wxUSE_OLD_COCOA" = 1 ; then
29637         if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes"; then
29638             { echo "$as_me:$LINENO: WARNING: Printing not supported under wxCocoa yet, disabled" >&5
29639 echo "$as_me: WARNING: Printing not supported under wxCocoa yet, disabled" >&2;}
29640             wxUSE_PRINTING_ARCHITECTURE=no
29641         fi
29642         if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
29643             { echo "$as_me:$LINENO: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&5
29644 echo "$as_me: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&2;}
29645             wxUSE_DRAG_AND_DROP=no
29646         fi
29647         if test "$wxUSE_DRAGIMAGE" = "yes"; then
29648             { echo "$as_me:$LINENO: WARNING: wxDragImage not supported under wxCocoa yet, disabled" >&5
29649 echo "$as_me: WARNING: wxDragImage not supported under wxCocoa yet, disabled" >&2;}
29650             wxUSE_DRAGIMAGE=no
29651         fi
29652     fi
29653
29654     if test "$wxUSE_MSW" = 1 ; then
29655         TOOLKIT=MSW
29656         GUIDIST=MSW_DIST
29657
29658                 case "${host}" in
29659             *-*-mingw32* )
29660                 WXCONFIG_LDFLAGS_GUI="$LDFLAGS -Wl,--subsystem,windows -mwindows"
29661         esac
29662     fi
29663
29664     if test "$wxUSE_GTK" = 1; then
29665                 { echo "$as_me:$LINENO: checking for GTK+ version" >&5
29666 echo $ECHO_N "checking for GTK+ version... $ECHO_C" >&6; }
29667
29668         gtk_version_cached=1
29669         if test "${wx_cv_lib_gtk+set}" = set; then
29670   echo $ECHO_N "(cached) $ECHO_C" >&6
29671 else
29672
29673                                                 gtk_version_cached=0
29674                 { echo "$as_me:$LINENO: result: " >&5
29675 echo "${ECHO_T}" >&6; }
29676
29677                                                 GTK_MODULES=
29678                 if test "$wxUSE_THREADS" = "yes"; then
29679                     GTK_MODULES=gthread
29680                 fi
29681
29682                                 wx_cv_lib_gtk=
29683                 if test "x$wxGTK_VERSION" != "x1"
29684                 then
29685                                                                                 case "${host}" in
29686                         *-*-solaris2* )
29687                             if test "$wxUSE_THREADS" = "yes" -a "$GCC" = yes; then
29688                                 enable_gtktest=no
29689                             fi
29690                     esac
29691
29692                     # Check whether --enable-gtktest was given.
29693 if test "${enable_gtktest+set}" = set; then
29694   enableval=$enable_gtktest;
29695 else
29696   enable_gtktest=yes
29697 fi
29698
29699
29700   pkg_config_args=gtk+-2.0
29701   for module in . $GTK_MODULES
29702   do
29703       case "$module" in
29704          gthread)
29705              pkg_config_args="$pkg_config_args gthread-2.0"
29706          ;;
29707       esac
29708   done
29709
29710   no_gtk=""
29711
29712   # Extract the first word of "pkg-config", so it can be a program name with args.
29713 set dummy pkg-config; ac_word=$2
29714 { echo "$as_me:$LINENO: checking for $ac_word" >&5
29715 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
29716 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
29717   echo $ECHO_N "(cached) $ECHO_C" >&6
29718 else
29719   case $PKG_CONFIG in
29720   [\\/]* | ?:[\\/]*)
29721   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
29722   ;;
29723   *)
29724   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29725 for as_dir in $PATH
29726 do
29727   IFS=$as_save_IFS
29728   test -z "$as_dir" && as_dir=.
29729   for ac_exec_ext in '' $ac_executable_extensions; do
29730   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29731     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
29732     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29733     break 2
29734   fi
29735 done
29736 done
29737 IFS=$as_save_IFS
29738
29739   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
29740   ;;
29741 esac
29742 fi
29743 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
29744 if test -n "$PKG_CONFIG"; then
29745   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
29746 echo "${ECHO_T}$PKG_CONFIG" >&6; }
29747 else
29748   { echo "$as_me:$LINENO: result: no" >&5
29749 echo "${ECHO_T}no" >&6; }
29750 fi
29751
29752
29753
29754   if test x$PKG_CONFIG != xno ; then
29755     if pkg-config --atleast-pkgconfig-version 0.7 ; then
29756       :
29757     else
29758       echo "*** pkg-config too old; version 0.7 or better required."
29759       no_gtk=yes
29760       PKG_CONFIG=no
29761     fi
29762   else
29763     no_gtk=yes
29764   fi
29765
29766   min_gtk_version=2.4.0
29767   { echo "$as_me:$LINENO: checking for GTK+ - version >= $min_gtk_version" >&5
29768 echo $ECHO_N "checking for GTK+ - version >= $min_gtk_version... $ECHO_C" >&6; }
29769
29770   if test x$PKG_CONFIG != xno ; then
29771     ## don't try to run the test against uninstalled libtool libs
29772     if $PKG_CONFIG --uninstalled $pkg_config_args; then
29773           echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
29774           enable_gtktest=no
29775     fi
29776
29777     if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
29778           :
29779     else
29780           no_gtk=yes
29781     fi
29782   fi
29783
29784   if test x"$no_gtk" = x ; then
29785     GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
29786     GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
29787     gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
29788            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
29789     gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
29790            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
29791     gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
29792            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
29793     if test "x$enable_gtktest" = "xyes" ; then
29794       ac_save_CFLAGS="$CFLAGS"
29795       ac_save_LIBS="$LIBS"
29796       CFLAGS="$CFLAGS $GTK_CFLAGS"
29797       LIBS="$GTK_LIBS $LIBS"
29798       rm -f conf.gtktest
29799       if test "$cross_compiling" = yes; then
29800   echo $ac_n "cross compiling; assumed OK... $ac_c"
29801 else
29802   cat >conftest.$ac_ext <<_ACEOF
29803 /* confdefs.h.  */
29804 _ACEOF
29805 cat confdefs.h >>conftest.$ac_ext
29806 cat >>conftest.$ac_ext <<_ACEOF
29807 /* end confdefs.h.  */
29808
29809 #include <gtk/gtk.h>
29810 #include <stdio.h>
29811 #include <stdlib.h>
29812
29813 int
29814 main ()
29815 {
29816   int major, minor, micro;
29817   char *tmp_version;
29818
29819   system ("touch conf.gtktest");
29820
29821   /* HP/UX 9 (%@#!) writes to sscanf strings */
29822   tmp_version = g_strdup("$min_gtk_version");
29823   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
29824      printf("%s, bad version string\n", "$min_gtk_version");
29825      exit(1);
29826    }
29827
29828   if ((gtk_major_version != $gtk_config_major_version) ||
29829       (gtk_minor_version != $gtk_config_minor_version) ||
29830       (gtk_micro_version != $gtk_config_micro_version))
29831     {
29832       printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
29833              $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
29834              gtk_major_version, gtk_minor_version, gtk_micro_version);
29835       printf ("*** was found! If pkg-config was correct, then it is best\n");
29836       printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
29837       printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
29838       printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
29839       printf("*** required on your system.\n");
29840       printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
29841       printf("*** to point to the correct configuration files\n");
29842     }
29843   else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
29844            (gtk_minor_version != GTK_MINOR_VERSION) ||
29845            (gtk_micro_version != GTK_MICRO_VERSION))
29846     {
29847       printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
29848              GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
29849       printf("*** library (version %d.%d.%d)\n",
29850              gtk_major_version, gtk_minor_version, gtk_micro_version);
29851     }
29852   else
29853     {
29854       if ((gtk_major_version > major) ||
29855         ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
29856         ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
29857       {
29858         return 0;
29859        }
29860      else
29861       {
29862         printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
29863                gtk_major_version, gtk_minor_version, gtk_micro_version);
29864         printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
29865                major, minor, micro);
29866         printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
29867         printf("***\n");
29868         printf("*** If you have already installed a sufficiently new version, this error\n");
29869         printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
29870         printf("*** being found. The easiest way to fix this is to remove the old version\n");
29871         printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
29872         printf("*** correct copy of pkg-config. (In this case, you will have to\n");
29873         printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
29874         printf("*** so that the correct libraries are found at run-time))\n");
29875       }
29876     }
29877   return 1;
29878 }
29879
29880 _ACEOF
29881 rm -f conftest$ac_exeext
29882 if { (ac_try="$ac_link"
29883 case "(($ac_try" in
29884   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29885   *) ac_try_echo=$ac_try;;
29886 esac
29887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29888   (eval "$ac_link") 2>&5
29889   ac_status=$?
29890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29891   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29892   { (case "(($ac_try" in
29893   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29894   *) ac_try_echo=$ac_try;;
29895 esac
29896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29897   (eval "$ac_try") 2>&5
29898   ac_status=$?
29899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29900   (exit $ac_status); }; }; then
29901   :
29902 else
29903   echo "$as_me: program exited with status $ac_status" >&5
29904 echo "$as_me: failed program was:" >&5
29905 sed 's/^/| /' conftest.$ac_ext >&5
29906
29907 ( exit $ac_status )
29908 no_gtk=yes
29909 fi
29910 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29911 fi
29912
29913
29914        CFLAGS="$ac_save_CFLAGS"
29915        LIBS="$ac_save_LIBS"
29916      fi
29917   fi
29918   if test "x$no_gtk" = x ; then
29919      { echo "$as_me:$LINENO: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5
29920 echo "${ECHO_T}yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6; }
29921      wx_cv_lib_gtk=2.0
29922   else
29923      { echo "$as_me:$LINENO: result: no" >&5
29924 echo "${ECHO_T}no" >&6; }
29925      if test "$PKG_CONFIG" = "no" ; then
29926        echo "*** A new enough version of pkg-config was not found."
29927        echo "*** See http://pkgconfig.sourceforge.net"
29928      else
29929        if test -f conf.gtktest ; then
29930         :
29931        else
29932           echo "*** Could not run GTK+ test program, checking why..."
29933           ac_save_CFLAGS="$CFLAGS"
29934           ac_save_LIBS="$LIBS"
29935           CFLAGS="$CFLAGS $GTK_CFLAGS"
29936           LIBS="$LIBS $GTK_LIBS"
29937           cat >conftest.$ac_ext <<_ACEOF
29938 /* confdefs.h.  */
29939 _ACEOF
29940 cat confdefs.h >>conftest.$ac_ext
29941 cat >>conftest.$ac_ext <<_ACEOF
29942 /* end confdefs.h.  */
29943
29944 #include <gtk/gtk.h>
29945 #include <stdio.h>
29946
29947 int
29948 main ()
29949 {
29950  return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
29951   ;
29952   return 0;
29953 }
29954 _ACEOF
29955 rm -f conftest.$ac_objext conftest$ac_exeext
29956 if { (ac_try="$ac_link"
29957 case "(($ac_try" in
29958   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29959   *) ac_try_echo=$ac_try;;
29960 esac
29961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29962   (eval "$ac_link") 2>conftest.er1
29963   ac_status=$?
29964   grep -v '^ *+' conftest.er1 >conftest.err
29965   rm -f conftest.er1
29966   cat conftest.err >&5
29967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29968   (exit $ac_status); } && {
29969          test -z "$ac_c_werror_flag" ||
29970          test ! -s conftest.err
29971        } && test -s conftest$ac_exeext &&
29972        $as_test_x conftest$ac_exeext; then
29973    echo "*** The test program compiled, but did not run. This usually means"
29974           echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
29975           echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
29976           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
29977           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
29978           echo "*** is required on your system"
29979           echo "***"
29980           echo "*** If you have an old version installed, it is best to remove it, although"
29981           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
29982 else
29983   echo "$as_me: failed program was:" >&5
29984 sed 's/^/| /' conftest.$ac_ext >&5
29985
29986          echo "*** The test program failed to compile or link. See the file config.log for the"
29987           echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."
29988 fi
29989
29990 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29991       conftest$ac_exeext conftest.$ac_ext
29992           CFLAGS="$ac_save_CFLAGS"
29993           LIBS="$ac_save_LIBS"
29994        fi
29995      fi
29996      GTK_CFLAGS=""
29997      GTK_LIBS=""
29998      :
29999   fi
30000
30001
30002   rm -f conf.gtktest
30003
30004
30005                                         GTK_LIBS="$GTK_LIBS -lX11"
30006                 fi
30007
30008                                 if test -z "$wx_cv_lib_gtk"; then
30009                     if test "x$wxGTK_VERSION" = "x1" -o "x$wxGTK_VERSION" = "xany" ; then
30010
30011 # Check whether --with-gtk-prefix was given.
30012 if test "${with_gtk_prefix+set}" = set; then
30013   withval=$with_gtk_prefix; gtk_config_prefix="$withval"
30014 else
30015   gtk_config_prefix=""
30016 fi
30017
30018
30019 # Check whether --with-gtk-exec-prefix was given.
30020 if test "${with_gtk_exec_prefix+set}" = set; then
30021   withval=$with_gtk_exec_prefix; gtk_config_exec_prefix="$withval"
30022 else
30023   gtk_config_exec_prefix=""
30024 fi
30025
30026 # Check whether --enable-gtktest was given.
30027 if test "${enable_gtktest+set}" = set; then
30028   enableval=$enable_gtktest;
30029 else
30030   enable_gtktest=yes
30031 fi
30032
30033
30034   for module in . $GTK_MODULES
30035   do
30036       case "$module" in
30037          gthread)
30038              gtk_config_args="$gtk_config_args gthread"
30039          ;;
30040       esac
30041   done
30042
30043   if test x$gtk_config_exec_prefix != x ; then
30044      gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
30045      if test x${GTK_CONFIG+set} != xset ; then
30046         GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
30047      fi
30048   fi
30049   if test x$gtk_config_prefix != x ; then
30050      gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
30051      if test x${GTK_CONFIG+set} != xset ; then
30052         GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
30053      fi
30054   fi
30055
30056   # Extract the first word of "gtk-config", so it can be a program name with args.
30057 set dummy gtk-config; ac_word=$2
30058 { echo "$as_me:$LINENO: checking for $ac_word" >&5
30059 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
30060 if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
30061   echo $ECHO_N "(cached) $ECHO_C" >&6
30062 else
30063   case $GTK_CONFIG in
30064   [\\/]* | ?:[\\/]*)
30065   ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
30066   ;;
30067   *)
30068   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30069 for as_dir in $PATH
30070 do
30071   IFS=$as_save_IFS
30072   test -z "$as_dir" && as_dir=.
30073   for ac_exec_ext in '' $ac_executable_extensions; do
30074   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30075     ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
30076     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30077     break 2
30078   fi
30079 done
30080 done
30081 IFS=$as_save_IFS
30082
30083   test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
30084   ;;
30085 esac
30086 fi
30087 GTK_CONFIG=$ac_cv_path_GTK_CONFIG
30088 if test -n "$GTK_CONFIG"; then
30089   { echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
30090 echo "${ECHO_T}$GTK_CONFIG" >&6; }
30091 else
30092   { echo "$as_me:$LINENO: result: no" >&5
30093 echo "${ECHO_T}no" >&6; }
30094 fi
30095
30096
30097   min_gtk_version=1.2.7
30098   { echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
30099 echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6; }
30100   no_gtk=""
30101   if test "$GTK_CONFIG" = "no" ; then
30102     no_gtk=yes
30103   else
30104     GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
30105     GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
30106     gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
30107            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
30108     gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
30109            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
30110     gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
30111            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
30112     if test "x$enable_gtktest" = "xyes" ; then
30113       ac_save_CFLAGS="$CFLAGS"
30114       ac_save_LIBS="$LIBS"
30115       CFLAGS="$CFLAGS $GTK_CFLAGS"
30116       LIBS="$GTK_LIBS $LIBS"
30117       rm -f conf.gtktest
30118       if test "$cross_compiling" = yes; then
30119   echo $ac_n "cross compiling; assumed OK... $ac_c"
30120 else
30121   cat >conftest.$ac_ext <<_ACEOF
30122 /* confdefs.h.  */
30123 _ACEOF
30124 cat confdefs.h >>conftest.$ac_ext
30125 cat >>conftest.$ac_ext <<_ACEOF
30126 /* end confdefs.h.  */
30127
30128 #include <gtk/gtk.h>
30129 #include <stdio.h>
30130 #include <stdlib.h>
30131
30132 int
30133 main ()
30134 {
30135   int major, minor, micro;
30136   char *tmp_version;
30137
30138   system ("touch conf.gtktest");
30139
30140   /* HP/UX 9 (%@#!) writes to sscanf strings */
30141   tmp_version = g_strdup("$min_gtk_version");
30142   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
30143      printf("%s, bad version string\n", "$min_gtk_version");
30144      exit(1);
30145    }
30146
30147   if ((gtk_major_version != $gtk_config_major_version) ||
30148       (gtk_minor_version != $gtk_config_minor_version) ||
30149       (gtk_micro_version != $gtk_config_micro_version))
30150     {
30151       printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
30152              $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
30153              gtk_major_version, gtk_minor_version, gtk_micro_version);
30154       printf ("*** was found! If gtk-config was correct, then it is best\n");
30155       printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
30156       printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
30157       printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
30158       printf("*** required on your system.\n");
30159       printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
30160       printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
30161       printf("*** before re-running configure\n");
30162     }
30163 #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
30164   else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
30165            (gtk_minor_version != GTK_MINOR_VERSION) ||
30166            (gtk_micro_version != GTK_MICRO_VERSION))
30167     {
30168       printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
30169              GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
30170       printf("*** library (version %d.%d.%d)\n",
30171              gtk_major_version, gtk_minor_version, gtk_micro_version);
30172     }
30173 #endif /* defined (GTK_MAJOR_VERSION) ... */
30174   else
30175     {
30176       if ((gtk_major_version > major) ||
30177         ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
30178         ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
30179       {
30180         return 0;
30181        }
30182      else
30183       {
30184         printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
30185                gtk_major_version, gtk_minor_version, gtk_micro_version);
30186         printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
30187                major, minor, micro);
30188         printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
30189         printf("***\n");
30190         printf("*** If you have already installed a sufficiently new version, this error\n");
30191         printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
30192         printf("*** being found. The easiest way to fix this is to remove the old version\n");
30193         printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
30194         printf("*** correct copy of gtk-config. (In this case, you will have to\n");
30195         printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
30196         printf("*** so that the correct libraries are found at run-time))\n");
30197       }
30198     }
30199   return 1;
30200 }
30201
30202 _ACEOF
30203 rm -f conftest$ac_exeext
30204 if { (ac_try="$ac_link"
30205 case "(($ac_try" in
30206   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30207   *) ac_try_echo=$ac_try;;
30208 esac
30209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30210   (eval "$ac_link") 2>&5
30211   ac_status=$?
30212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30213   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30214   { (case "(($ac_try" in
30215   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30216   *) ac_try_echo=$ac_try;;
30217 esac
30218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30219   (eval "$ac_try") 2>&5
30220   ac_status=$?
30221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30222   (exit $ac_status); }; }; then
30223   :
30224 else
30225   echo "$as_me: program exited with status $ac_status" >&5
30226 echo "$as_me: failed program was:" >&5
30227 sed 's/^/| /' conftest.$ac_ext >&5
30228
30229 ( exit $ac_status )
30230 no_gtk=yes
30231 fi
30232 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30233 fi
30234
30235
30236        CFLAGS="$ac_save_CFLAGS"
30237        LIBS="$ac_save_LIBS"
30238      fi
30239   fi
30240   if test "x$no_gtk" = x ; then
30241      { echo "$as_me:$LINENO: result: yes" >&5
30242 echo "${ECHO_T}yes" >&6; }
30243      wx_cv_lib_gtk=1.2.7
30244   else
30245      { echo "$as_me:$LINENO: result: no" >&5
30246 echo "${ECHO_T}no" >&6; }
30247      if test "$GTK_CONFIG" = "no" ; then
30248        echo "*** The gtk-config script installed by GTK could not be found"
30249        echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
30250        echo "*** your path, or set the GTK_CONFIG environment variable to the"
30251        echo "*** full path to gtk-config."
30252      else
30253        if test -f conf.gtktest ; then
30254         :
30255        else
30256           echo "*** Could not run GTK test program, checking why..."
30257           CFLAGS="$CFLAGS $GTK_CFLAGS"
30258           LIBS="$LIBS $GTK_LIBS"
30259           cat >conftest.$ac_ext <<_ACEOF
30260 /* confdefs.h.  */
30261 _ACEOF
30262 cat confdefs.h >>conftest.$ac_ext
30263 cat >>conftest.$ac_ext <<_ACEOF
30264 /* end confdefs.h.  */
30265
30266 #include <gtk/gtk.h>
30267 #include <stdio.h>
30268
30269 int
30270 main ()
30271 {
30272  return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
30273   ;
30274   return 0;
30275 }
30276 _ACEOF
30277 rm -f conftest.$ac_objext conftest$ac_exeext
30278 if { (ac_try="$ac_link"
30279 case "(($ac_try" in
30280   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30281   *) ac_try_echo=$ac_try;;
30282 esac
30283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30284   (eval "$ac_link") 2>conftest.er1
30285   ac_status=$?
30286   grep -v '^ *+' conftest.er1 >conftest.err
30287   rm -f conftest.er1
30288   cat conftest.err >&5
30289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30290   (exit $ac_status); } && {
30291          test -z "$ac_c_werror_flag" ||
30292          test ! -s conftest.err
30293        } && test -s conftest$ac_exeext &&
30294        $as_test_x conftest$ac_exeext; then
30295    echo "*** The test program compiled, but did not run. This usually means"
30296           echo "*** that the run-time linker is not finding GTK or finding the wrong"
30297           echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
30298           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
30299           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
30300           echo "*** is required on your system"
30301           echo "***"
30302           echo "*** If you have an old version installed, it is best to remove it, although"
30303           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
30304           echo "***"
30305           echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
30306           echo "*** came with the system with the command"
30307           echo "***"
30308           echo "***    rpm --erase --nodeps gtk gtk-devel"
30309 else
30310   echo "$as_me: failed program was:" >&5
30311 sed 's/^/| /' conftest.$ac_ext >&5
30312
30313          echo "*** The test program failed to compile or link. See the file config.log for the"
30314           echo "*** exact error that occured. This usually means GTK was incorrectly installed"
30315           echo "*** or that you have moved GTK since it was installed. In the latter case, you"
30316           echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
30317 fi
30318
30319 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30320       conftest$ac_exeext conftest.$ac_ext
30321           CFLAGS="$ac_save_CFLAGS"
30322           LIBS="$ac_save_LIBS"
30323        fi
30324      fi
30325      GTK_CFLAGS=""
30326      GTK_LIBS=""
30327      :
30328   fi
30329
30330
30331   rm -f conf.gtktest
30332
30333
30334                         if test -z "$wx_cv_lib_gtk"; then
30335
30336 # Check whether --with-gtk-prefix was given.
30337 if test "${with_gtk_prefix+set}" = set; then
30338   withval=$with_gtk_prefix; gtk_config_prefix="$withval"
30339 else
30340   gtk_config_prefix=""
30341 fi
30342
30343
30344 # Check whether --with-gtk-exec-prefix was given.
30345 if test "${with_gtk_exec_prefix+set}" = set; then
30346   withval=$with_gtk_exec_prefix; gtk_config_exec_prefix="$withval"
30347 else
30348   gtk_config_exec_prefix=""
30349 fi
30350
30351 # Check whether --enable-gtktest was given.
30352 if test "${enable_gtktest+set}" = set; then
30353   enableval=$enable_gtktest;
30354 else
30355   enable_gtktest=yes
30356 fi
30357
30358
30359   for module in . $GTK_MODULES
30360   do
30361       case "$module" in
30362          gthread)
30363              gtk_config_args="$gtk_config_args gthread"
30364          ;;
30365       esac
30366   done
30367
30368   if test x$gtk_config_exec_prefix != x ; then
30369      gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
30370      if test x${GTK_CONFIG+set} != xset ; then
30371         GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
30372      fi
30373   fi
30374   if test x$gtk_config_prefix != x ; then
30375      gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
30376      if test x${GTK_CONFIG+set} != xset ; then
30377         GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
30378      fi
30379   fi
30380
30381   # Extract the first word of "gtk-config", so it can be a program name with args.
30382 set dummy gtk-config; ac_word=$2
30383 { echo "$as_me:$LINENO: checking for $ac_word" >&5
30384 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
30385 if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
30386   echo $ECHO_N "(cached) $ECHO_C" >&6
30387 else
30388   case $GTK_CONFIG in
30389   [\\/]* | ?:[\\/]*)
30390   ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
30391   ;;
30392   *)
30393   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30394 for as_dir in $PATH
30395 do
30396   IFS=$as_save_IFS
30397   test -z "$as_dir" && as_dir=.
30398   for ac_exec_ext in '' $ac_executable_extensions; do
30399   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30400     ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
30401     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30402     break 2
30403   fi
30404 done
30405 done
30406 IFS=$as_save_IFS
30407
30408   test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
30409   ;;
30410 esac
30411 fi
30412 GTK_CONFIG=$ac_cv_path_GTK_CONFIG
30413 if test -n "$GTK_CONFIG"; then
30414   { echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
30415 echo "${ECHO_T}$GTK_CONFIG" >&6; }
30416 else
30417   { echo "$as_me:$LINENO: result: no" >&5
30418 echo "${ECHO_T}no" >&6; }
30419 fi
30420
30421
30422   min_gtk_version=1.2.3
30423   { echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
30424 echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6; }
30425   no_gtk=""
30426   if test "$GTK_CONFIG" = "no" ; then
30427     no_gtk=yes
30428   else
30429     GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
30430     GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
30431     gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
30432            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
30433     gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
30434            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
30435     gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
30436            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
30437     if test "x$enable_gtktest" = "xyes" ; then
30438       ac_save_CFLAGS="$CFLAGS"
30439       ac_save_LIBS="$LIBS"
30440       CFLAGS="$CFLAGS $GTK_CFLAGS"
30441       LIBS="$GTK_LIBS $LIBS"
30442       rm -f conf.gtktest
30443       if test "$cross_compiling" = yes; then
30444   echo $ac_n "cross compiling; assumed OK... $ac_c"
30445 else
30446   cat >conftest.$ac_ext <<_ACEOF
30447 /* confdefs.h.  */
30448 _ACEOF
30449 cat confdefs.h >>conftest.$ac_ext
30450 cat >>conftest.$ac_ext <<_ACEOF
30451 /* end confdefs.h.  */
30452
30453 #include <gtk/gtk.h>
30454 #include <stdio.h>
30455 #include <stdlib.h>
30456
30457 int
30458 main ()
30459 {
30460   int major, minor, micro;
30461   char *tmp_version;
30462
30463   system ("touch conf.gtktest");
30464
30465   /* HP/UX 9 (%@#!) writes to sscanf strings */
30466   tmp_version = g_strdup("$min_gtk_version");
30467   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
30468      printf("%s, bad version string\n", "$min_gtk_version");
30469      exit(1);
30470    }
30471
30472   if ((gtk_major_version != $gtk_config_major_version) ||
30473       (gtk_minor_version != $gtk_config_minor_version) ||
30474       (gtk_micro_version != $gtk_config_micro_version))
30475     {
30476       printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
30477              $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
30478              gtk_major_version, gtk_minor_version, gtk_micro_version);
30479       printf ("*** was found! If gtk-config was correct, then it is best\n");
30480       printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
30481       printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
30482       printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
30483       printf("*** required on your system.\n");
30484       printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
30485       printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
30486       printf("*** before re-running configure\n");
30487     }
30488 #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
30489   else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
30490            (gtk_minor_version != GTK_MINOR_VERSION) ||
30491            (gtk_micro_version != GTK_MICRO_VERSION))
30492     {
30493       printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
30494              GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
30495       printf("*** library (version %d.%d.%d)\n",
30496              gtk_major_version, gtk_minor_version, gtk_micro_version);
30497     }
30498 #endif /* defined (GTK_MAJOR_VERSION) ... */
30499   else
30500     {
30501       if ((gtk_major_version > major) ||
30502         ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
30503         ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
30504       {
30505         return 0;
30506        }
30507      else
30508       {
30509         printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
30510                gtk_major_version, gtk_minor_version, gtk_micro_version);
30511         printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
30512                major, minor, micro);
30513         printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
30514         printf("***\n");
30515         printf("*** If you have already installed a sufficiently new version, this error\n");
30516         printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
30517         printf("*** being found. The easiest way to fix this is to remove the old version\n");
30518         printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
30519         printf("*** correct copy of gtk-config. (In this case, you will have to\n");
30520         printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
30521         printf("*** so that the correct libraries are found at run-time))\n");
30522       }
30523     }
30524   return 1;
30525 }
30526
30527 _ACEOF
30528 rm -f conftest$ac_exeext
30529 if { (ac_try="$ac_link"
30530 case "(($ac_try" in
30531   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30532   *) ac_try_echo=$ac_try;;
30533 esac
30534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30535   (eval "$ac_link") 2>&5
30536   ac_status=$?
30537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30538   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30539   { (case "(($ac_try" in
30540   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30541   *) ac_try_echo=$ac_try;;
30542 esac
30543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30544   (eval "$ac_try") 2>&5
30545   ac_status=$?
30546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30547   (exit $ac_status); }; }; then
30548   :
30549 else
30550   echo "$as_me: program exited with status $ac_status" >&5
30551 echo "$as_me: failed program was:" >&5
30552 sed 's/^/| /' conftest.$ac_ext >&5
30553
30554 ( exit $ac_status )
30555 no_gtk=yes
30556 fi
30557 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30558 fi
30559
30560
30561        CFLAGS="$ac_save_CFLAGS"
30562        LIBS="$ac_save_LIBS"
30563      fi
30564   fi
30565   if test "x$no_gtk" = x ; then
30566      { echo "$as_me:$LINENO: result: yes" >&5
30567 echo "${ECHO_T}yes" >&6; }
30568      wx_cv_lib_gtk=1.2.3
30569   else
30570      { echo "$as_me:$LINENO: result: no" >&5
30571 echo "${ECHO_T}no" >&6; }
30572      if test "$GTK_CONFIG" = "no" ; then
30573        echo "*** The gtk-config script installed by GTK could not be found"
30574        echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
30575        echo "*** your path, or set the GTK_CONFIG environment variable to the"
30576        echo "*** full path to gtk-config."
30577      else
30578        if test -f conf.gtktest ; then
30579         :
30580        else
30581           echo "*** Could not run GTK test program, checking why..."
30582           CFLAGS="$CFLAGS $GTK_CFLAGS"
30583           LIBS="$LIBS $GTK_LIBS"
30584           cat >conftest.$ac_ext <<_ACEOF
30585 /* confdefs.h.  */
30586 _ACEOF
30587 cat confdefs.h >>conftest.$ac_ext
30588 cat >>conftest.$ac_ext <<_ACEOF
30589 /* end confdefs.h.  */
30590
30591 #include <gtk/gtk.h>
30592 #include <stdio.h>
30593
30594 int
30595 main ()
30596 {
30597  return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
30598   ;
30599   return 0;
30600 }
30601 _ACEOF
30602 rm -f conftest.$ac_objext conftest$ac_exeext
30603 if { (ac_try="$ac_link"
30604 case "(($ac_try" in
30605   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30606   *) ac_try_echo=$ac_try;;
30607 esac
30608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30609   (eval "$ac_link") 2>conftest.er1
30610   ac_status=$?
30611   grep -v '^ *+' conftest.er1 >conftest.err
30612   rm -f conftest.er1
30613   cat conftest.err >&5
30614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30615   (exit $ac_status); } && {
30616          test -z "$ac_c_werror_flag" ||
30617          test ! -s conftest.err
30618        } && test -s conftest$ac_exeext &&
30619        $as_test_x conftest$ac_exeext; then
30620    echo "*** The test program compiled, but did not run. This usually means"
30621           echo "*** that the run-time linker is not finding GTK or finding the wrong"
30622           echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
30623           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
30624           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
30625           echo "*** is required on your system"
30626           echo "***"
30627           echo "*** If you have an old version installed, it is best to remove it, although"
30628           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
30629           echo "***"
30630           echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
30631           echo "*** came with the system with the command"
30632           echo "***"
30633           echo "***    rpm --erase --nodeps gtk gtk-devel"
30634 else
30635   echo "$as_me: failed program was:" >&5
30636 sed 's/^/| /' conftest.$ac_ext >&5
30637
30638          echo "*** The test program failed to compile or link. See the file config.log for the"
30639           echo "*** exact error that occured. This usually means GTK was incorrectly installed"
30640           echo "*** or that you have moved GTK since it was installed. In the latter case, you"
30641           echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
30642 fi
30643
30644 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30645       conftest$ac_exeext conftest.$ac_ext
30646           CFLAGS="$ac_save_CFLAGS"
30647           LIBS="$ac_save_LIBS"
30648        fi
30649      fi
30650      GTK_CFLAGS=""
30651      GTK_LIBS=""
30652      :
30653   fi
30654
30655
30656   rm -f conf.gtktest
30657
30658                         fi
30659                     fi
30660                 fi
30661
30662                 if test -z "$wx_cv_lib_gtk"; then
30663                                         wx_cv_lib_gtk=none
30664                 else
30665                                                             wx_cv_cflags_gtk=$GTK_CFLAGS
30666                     wx_cv_libs_gtk=$GTK_LIBS
30667                 fi
30668
30669
30670 fi
30671
30672
30673                         if test "$gtk_version_cached" = 1; then
30674             { echo "$as_me:$LINENO: result: $wx_cv_lib_gtk" >&5
30675 echo "${ECHO_T}$wx_cv_lib_gtk" >&6; }
30676         fi
30677
30678         case "$wx_cv_lib_gtk" in
30679             2.0)    WXGTK2=1
30680                     TOOLKIT_VERSION=2
30681                     ;;
30682             1.2.7)  WXGTK127=1
30683                     WXGTK12=1
30684                     ;;
30685             1.2.3)  WXGTK12=1
30686                     ;;
30687             *)      { { echo "$as_me:$LINENO: error:
30688 The development files for GTK+ were not found. For GTK+ 2, please
30689 ensure that pkg-config is in the path and that gtk+-2.0.pc is
30690 installed. For GTK+ 1.2 please check that gtk-config is in the path,
30691 and that the version is 1.2.3 or above. Also check that the
30692 libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config
30693 --libs' are in the LD_LIBRARY_PATH or equivalent.
30694                             " >&5
30695 echo "$as_me: error:
30696 The development files for GTK+ were not found. For GTK+ 2, please
30697 ensure that pkg-config is in the path and that gtk+-2.0.pc is
30698 installed. For GTK+ 1.2 please check that gtk-config is in the path,
30699 and that the version is 1.2.3 or above. Also check that the
30700 libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config
30701 --libs' are in the LD_LIBRARY_PATH or equivalent.
30702                             " >&2;}
30703    { (exit 1); exit 1; }; }
30704                     ;;
30705         esac
30706
30707         if test "$WXGTK2" = 1; then
30708             save_CFLAGS="$CFLAGS"
30709             save_LIBS="$LIBS"
30710             CFLAGS="$wx_cv_cflags_gtk $CFLAGS"
30711             LIBS="$LIBS $wx_cv_libs_gtk"
30712
30713                         { echo "$as_me:$LINENO: checking if GTK+ is version >= 2.18" >&5
30714 echo $ECHO_N "checking if GTK+ is version >= 2.18... $ECHO_C" >&6; }
30715             cat >conftest.$ac_ext <<_ACEOF
30716 /* confdefs.h.  */
30717 _ACEOF
30718 cat confdefs.h >>conftest.$ac_ext
30719 cat >>conftest.$ac_ext <<_ACEOF
30720 /* end confdefs.h.  */
30721
30722                             #include <gtk/gtk.h>
30723
30724 int
30725 main ()
30726 {
30727
30728                             #if !GTK_CHECK_VERSION(2,18,0)
30729                             Not GTK+ 2.18
30730                             #endif
30731
30732   ;
30733   return 0;
30734 }
30735 _ACEOF
30736 rm -f conftest.$ac_objext
30737 if { (ac_try="$ac_compile"
30738 case "(($ac_try" in
30739   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30740   *) ac_try_echo=$ac_try;;
30741 esac
30742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30743   (eval "$ac_compile") 2>conftest.er1
30744   ac_status=$?
30745   grep -v '^ *+' conftest.er1 >conftest.err
30746   rm -f conftest.er1
30747   cat conftest.err >&5
30748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30749   (exit $ac_status); } && {
30750          test -z "$ac_c_werror_flag" ||
30751          test ! -s conftest.err
30752        } && test -s conftest.$ac_objext; then
30753
30754                             cat >>confdefs.h <<\_ACEOF
30755 #define __WXGTK218__ 1
30756 _ACEOF
30757
30758                             cat >>confdefs.h <<\_ACEOF
30759 #define __WXGTK210__ 1
30760 _ACEOF
30761
30762                             cat >>confdefs.h <<\_ACEOF
30763 #define __WXGTK26__ 1
30764 _ACEOF
30765
30766                             { echo "$as_me:$LINENO: result: yes" >&5
30767 echo "${ECHO_T}yes" >&6; }
30768                             ac_wxgtk218=1
30769
30770 else
30771   echo "$as_me: failed program was:" >&5
30772 sed 's/^/| /' conftest.$ac_ext >&5
30773
30774
30775                             { echo "$as_me:$LINENO: result: no" >&5
30776 echo "${ECHO_T}no" >&6; }
30777                             ac_wxgtk218=0
30778
30779 fi
30780
30781 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30782
30783             if test "$ac_wxgtk218" = 0; then
30784                                 { echo "$as_me:$LINENO: checking if GTK+ is version >= 2.10" >&5
30785 echo $ECHO_N "checking if GTK+ is version >= 2.10... $ECHO_C" >&6; }
30786                 cat >conftest.$ac_ext <<_ACEOF
30787 /* confdefs.h.  */
30788 _ACEOF
30789 cat confdefs.h >>conftest.$ac_ext
30790 cat >>conftest.$ac_ext <<_ACEOF
30791 /* end confdefs.h.  */
30792
30793                                 #include <gtk/gtk.h>
30794
30795 int
30796 main ()
30797 {
30798
30799                                 #if !GTK_CHECK_VERSION(2,10,0)
30800                                 Not GTK+ 2.10
30801                                 #endif
30802
30803   ;
30804   return 0;
30805 }
30806 _ACEOF
30807 rm -f conftest.$ac_objext
30808 if { (ac_try="$ac_compile"
30809 case "(($ac_try" in
30810   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30811   *) ac_try_echo=$ac_try;;
30812 esac
30813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30814   (eval "$ac_compile") 2>conftest.er1
30815   ac_status=$?
30816   grep -v '^ *+' conftest.er1 >conftest.err
30817   rm -f conftest.er1
30818   cat conftest.err >&5
30819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30820   (exit $ac_status); } && {
30821          test -z "$ac_c_werror_flag" ||
30822          test ! -s conftest.err
30823        } && test -s conftest.$ac_objext; then
30824
30825                                 cat >>confdefs.h <<\_ACEOF
30826 #define __WXGTK210__ 1
30827 _ACEOF
30828
30829                                 cat >>confdefs.h <<\_ACEOF
30830 #define __WXGTK26__ 1
30831 _ACEOF
30832
30833                                 { echo "$as_me:$LINENO: result: yes" >&5
30834 echo "${ECHO_T}yes" >&6; }
30835                                 ac_wxgtk210=1
30836
30837 else
30838   echo "$as_me: failed program was:" >&5
30839 sed 's/^/| /' conftest.$ac_ext >&5
30840
30841
30842                                 { echo "$as_me:$LINENO: result: no" >&5
30843 echo "${ECHO_T}no" >&6; }
30844                                 ac_wxgtk210=0
30845
30846 fi
30847
30848 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30849
30850                 if test "$ac_wxgtk210" = 0; then
30851                                         { echo "$as_me:$LINENO: checking if GTK+ is version >= 2.6" >&5
30852 echo $ECHO_N "checking if GTK+ is version >= 2.6... $ECHO_C" >&6; }
30853                     cat >conftest.$ac_ext <<_ACEOF
30854 /* confdefs.h.  */
30855 _ACEOF
30856 cat confdefs.h >>conftest.$ac_ext
30857 cat >>conftest.$ac_ext <<_ACEOF
30858 /* end confdefs.h.  */
30859
30860                                     #include <gtk/gtk.h>
30861
30862 int
30863 main ()
30864 {
30865
30866                                     #if !GTK_CHECK_VERSION(2,6,0)
30867                                     Not GTK+ 2.6
30868                                     #endif
30869
30870   ;
30871   return 0;
30872 }
30873 _ACEOF
30874 rm -f conftest.$ac_objext
30875 if { (ac_try="$ac_compile"
30876 case "(($ac_try" in
30877   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30878   *) ac_try_echo=$ac_try;;
30879 esac
30880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30881   (eval "$ac_compile") 2>conftest.er1
30882   ac_status=$?
30883   grep -v '^ *+' conftest.er1 >conftest.err
30884   rm -f conftest.er1
30885   cat conftest.err >&5
30886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30887   (exit $ac_status); } && {
30888          test -z "$ac_c_werror_flag" ||
30889          test ! -s conftest.err
30890        } && test -s conftest.$ac_objext; then
30891
30892                                     cat >>confdefs.h <<\_ACEOF
30893 #define __WXGTK26__ 1
30894 _ACEOF
30895
30896                                     { echo "$as_me:$LINENO: result: yes" >&5
30897 echo "${ECHO_T}yes" >&6; }
30898                                     ac_wxgtk26=1
30899
30900 else
30901   echo "$as_me: failed program was:" >&5
30902 sed 's/^/| /' conftest.$ac_ext >&5
30903
30904
30905                                     { echo "$as_me:$LINENO: result: no" >&5
30906 echo "${ECHO_T}no" >&6; }
30907                                     ac_wxgtk26=0
30908
30909 fi
30910
30911 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30912                 fi
30913             fi
30914
30915             CFLAGS="$save_CFLAGS"
30916             LIBS="$save_LIBS"
30917         else
30918             if test "$wxUSE_UNICODE" = "yes"; then
30919                 { echo "$as_me:$LINENO: WARNING: Unicode configuration not supported with GTK+ 1.x" >&5
30920 echo "$as_me: WARNING: Unicode configuration not supported with GTK+ 1.x" >&2;}
30921                 wxUSE_UNICODE=no
30922             fi
30923
30924                         { echo "$as_me:$LINENO: checking for gdk_im_open in -lgdk" >&5
30925 echo $ECHO_N "checking for gdk_im_open in -lgdk... $ECHO_C" >&6; }
30926 if test "${ac_cv_lib_gdk_gdk_im_open+set}" = set; then
30927   echo $ECHO_N "(cached) $ECHO_C" >&6
30928 else
30929   ac_check_lib_save_LIBS=$LIBS
30930 LIBS="-lgdk  $LIBS"
30931 cat >conftest.$ac_ext <<_ACEOF
30932 /* confdefs.h.  */
30933 _ACEOF
30934 cat confdefs.h >>conftest.$ac_ext
30935 cat >>conftest.$ac_ext <<_ACEOF
30936 /* end confdefs.h.  */
30937
30938 /* Override any GCC internal prototype to avoid an error.
30939    Use char because int might match the return type of a GCC
30940    builtin and then its argument prototype would still apply.  */
30941 #ifdef __cplusplus
30942 extern "C"
30943 #endif
30944 char gdk_im_open ();
30945 int
30946 main ()
30947 {
30948 return gdk_im_open ();
30949   ;
30950   return 0;
30951 }
30952 _ACEOF
30953 rm -f conftest.$ac_objext conftest$ac_exeext
30954 if { (ac_try="$ac_link"
30955 case "(($ac_try" in
30956   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30957   *) ac_try_echo=$ac_try;;
30958 esac
30959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30960   (eval "$ac_link") 2>conftest.er1
30961   ac_status=$?
30962   grep -v '^ *+' conftest.er1 >conftest.err
30963   rm -f conftest.er1
30964   cat conftest.err >&5
30965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30966   (exit $ac_status); } && {
30967          test -z "$ac_c_werror_flag" ||
30968          test ! -s conftest.err
30969        } && test -s conftest$ac_exeext &&
30970        $as_test_x conftest$ac_exeext; then
30971   ac_cv_lib_gdk_gdk_im_open=yes
30972 else
30973   echo "$as_me: failed program was:" >&5
30974 sed 's/^/| /' conftest.$ac_ext >&5
30975
30976         ac_cv_lib_gdk_gdk_im_open=no
30977 fi
30978
30979 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30980       conftest$ac_exeext conftest.$ac_ext
30981 LIBS=$ac_check_lib_save_LIBS
30982 fi
30983 { echo "$as_me:$LINENO: result: $ac_cv_lib_gdk_gdk_im_open" >&5
30984 echo "${ECHO_T}$ac_cv_lib_gdk_gdk_im_open" >&6; }
30985 if test $ac_cv_lib_gdk_gdk_im_open = yes; then
30986   cat >>confdefs.h <<\_ACEOF
30987 #define HAVE_XIM 1
30988 _ACEOF
30989
30990 fi
30991
30992
30993                                     if test "$USE_DARWIN" != 1; then
30994
30995 for ac_func in poll
30996 do
30997 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30998 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30999 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31000 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31001   echo $ECHO_N "(cached) $ECHO_C" >&6
31002 else
31003   cat >conftest.$ac_ext <<_ACEOF
31004 /* confdefs.h.  */
31005 _ACEOF
31006 cat confdefs.h >>conftest.$ac_ext
31007 cat >>conftest.$ac_ext <<_ACEOF
31008 /* end confdefs.h.  */
31009 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31010    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31011 #define $ac_func innocuous_$ac_func
31012
31013 /* System header to define __stub macros and hopefully few prototypes,
31014     which can conflict with char $ac_func (); below.
31015     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31016     <limits.h> exists even on freestanding compilers.  */
31017
31018 #ifdef __STDC__
31019 # include <limits.h>
31020 #else
31021 # include <assert.h>
31022 #endif
31023
31024 #undef $ac_func
31025
31026 /* Override any GCC internal prototype to avoid an error.
31027    Use char because int might match the return type of a GCC
31028    builtin and then its argument prototype would still apply.  */
31029 #ifdef __cplusplus
31030 extern "C"
31031 #endif
31032 char $ac_func ();
31033 /* The GNU C library defines this for functions which it implements
31034     to always fail with ENOSYS.  Some functions are actually named
31035     something starting with __ and the normal name is an alias.  */
31036 #if defined __stub_$ac_func || defined __stub___$ac_func
31037 choke me
31038 #endif
31039
31040 int
31041 main ()
31042 {
31043 return $ac_func ();
31044   ;
31045   return 0;
31046 }
31047 _ACEOF
31048 rm -f conftest.$ac_objext conftest$ac_exeext
31049 if { (ac_try="$ac_link"
31050 case "(($ac_try" in
31051   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31052   *) ac_try_echo=$ac_try;;
31053 esac
31054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31055   (eval "$ac_link") 2>conftest.er1
31056   ac_status=$?
31057   grep -v '^ *+' conftest.er1 >conftest.err
31058   rm -f conftest.er1
31059   cat conftest.err >&5
31060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31061   (exit $ac_status); } && {
31062          test -z "$ac_c_werror_flag" ||
31063          test ! -s conftest.err
31064        } && test -s conftest$ac_exeext &&
31065        $as_test_x conftest$ac_exeext; then
31066   eval "$as_ac_var=yes"
31067 else
31068   echo "$as_me: failed program was:" >&5
31069 sed 's/^/| /' conftest.$ac_ext >&5
31070
31071         eval "$as_ac_var=no"
31072 fi
31073
31074 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31075       conftest$ac_exeext conftest.$ac_ext
31076 fi
31077 ac_res=`eval echo '${'$as_ac_var'}'`
31078                { echo "$as_me:$LINENO: result: $ac_res" >&5
31079 echo "${ECHO_T}$ac_res" >&6; }
31080 if test `eval echo '${'$as_ac_var'}'` = yes; then
31081   cat >>confdefs.h <<_ACEOF
31082 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31083 _ACEOF
31084
31085 fi
31086 done
31087
31088             fi
31089         fi
31090
31091         TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
31092         GUI_TK_LIBRARY="$wx_cv_libs_gtk $GUI_TK_LIBRARY"
31093
31094                 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE -DG_DISABLE_CAST_CHECKS"
31095
31096         AFMINSTALL=afminstall
31097         TOOLKIT=GTK
31098         GUIDIST=GTK_DIST
31099
31100                 if test "$wxUSE_GPE" = "yes"; then
31101             { echo "$as_me:$LINENO: checking for gpewidget library" >&5
31102 echo $ECHO_N "checking for gpewidget library... $ECHO_C" >&6; }
31103
31104   ac_find_libraries=
31105   for ac_dir in $SEARCH_LIB
31106   do
31107     for ac_extension in a so sl dylib dll.a; do
31108       if test -f "$ac_dir/libgpewidget.$ac_extension"; then
31109         ac_find_libraries=$ac_dir
31110         break 2
31111       fi
31112     done
31113   done
31114
31115             if test "$ac_find_libraries" != "" ; then
31116
31117     if test "$ac_find_libraries" = "default location"; then
31118     ac_path_to_link=""
31119   else
31120     echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
31121     result=$?
31122     if test $result = 0; then
31123       ac_path_to_link=""
31124     else
31125       ac_path_to_link=" -L$ac_find_libraries"
31126     fi
31127   fi
31128
31129                                                 GUI_TK_LIBRARY="-L${prefix}/lib -lgpewidget $GUI_TK_LIBRARY"
31130                 WXGPE=1
31131                 { echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
31132 echo "${ECHO_T}found in $ac_find_libraries" >&6; }
31133             else
31134                 { echo "$as_me:$LINENO: result: not found" >&5
31135 echo "${ECHO_T}not found" >&6; }
31136             fi
31137
31138                                                                                                                     fi
31139     fi
31140
31141     if test "$wxUSE_MGL" = 1; then
31142        { echo "$as_me:$LINENO: checking for SciTech MGL library" >&5
31143 echo $ECHO_N "checking for SciTech MGL library... $ECHO_C" >&6; }
31144         if test "x$MGL_ROOT" = x ; then
31145             { echo "$as_me:$LINENO: result: not found" >&5
31146 echo "${ECHO_T}not found" >&6; }
31147             { { echo "$as_me:$LINENO: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&5
31148 echo "$as_me: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&2;}
31149    { (exit 1); exit 1; }; }
31150         else
31151             { echo "$as_me:$LINENO: result: $MGL_ROOT" >&5
31152 echo "${ECHO_T}$MGL_ROOT" >&6; }
31153         fi
31154
31155         { echo "$as_me:$LINENO: checking for libmgl location" >&5
31156 echo $ECHO_N "checking for libmgl location... $ECHO_C" >&6; }
31157                                 case "${host}" in
31158             *-*-linux* )
31159                                           if test "x$wxUSE_SHARED" = xyes ; then
31160                   mgl_os_candidates="linux/gcc/x86/so linux/gcc/x86/a linux/gcc/glibc.so linux/gcc/glibc"
31161               else
31162                   mgl_os_candidates="linux/gcc/x86/a linux/gcc/x86/so linux/gcc/glibc linux/gcc/glibc.so"
31163               fi
31164               ;;
31165             *-pc-msdosdjgpp )
31166               mgl_os_candidates="dos32/dj2"
31167               ;;
31168             *)
31169               { { echo "$as_me:$LINENO: error: This system type ${host} is not yet supported by wxMGL." >&5
31170 echo "$as_me: error: This system type ${host} is not yet supported by wxMGL." >&2;}
31171    { (exit 1); exit 1; }; }
31172         esac
31173
31174         mgl_lib_type=""
31175         mgl_os=""
31176
31177         for mgl_os_i in $mgl_os_candidates ; do
31178             if test "x$mgl_os" = x ; then
31179                 if test "$wxUSE_DEBUG_FLAG" = yes ; then
31180                     if test -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.a -o \
31181                             -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.so; then
31182                         mgl_lib_type=debug
31183                         mgl_os=$mgl_os_i
31184                     fi
31185                 fi
31186                 if test "x$mgl_lib_type" = x ; then
31187                     if test -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.a -o \
31188                             -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.so; then
31189                         mgl_lib_type=release
31190                         mgl_os=$mgl_os_i
31191                     fi
31192                 fi
31193             fi
31194         done
31195
31196         if test "x$mgl_os" = x ; then
31197             { echo "$as_me:$LINENO: result: not found" >&5
31198 echo "${ECHO_T}not found" >&6; }
31199             { { echo "$as_me:$LINENO: error: Cannot find MGL libraries, make sure they are compiled." >&5
31200 echo "$as_me: error: Cannot find MGL libraries, make sure they are compiled." >&2;}
31201    { (exit 1); exit 1; }; }
31202         fi
31203         { echo "$as_me:$LINENO: result: \"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&5
31204 echo "${ECHO_T}\"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&6; }
31205
31206         wxUSE_UNIVERSAL="yes"
31207
31208         TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
31209         GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm"
31210
31211         AFMINSTALL=afminstall
31212         TOOLKIT=MGL
31213         GUIDIST=MGL_DIST
31214     fi
31215
31216     if test "$wxUSE_DFB" = 1; then
31217
31218
31219 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
31220         if test -n "$ac_tool_prefix"; then
31221   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
31222 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
31223 { echo "$as_me:$LINENO: checking for $ac_word" >&5
31224 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
31225 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
31226   echo $ECHO_N "(cached) $ECHO_C" >&6
31227 else
31228   case $PKG_CONFIG in
31229   [\\/]* | ?:[\\/]*)
31230   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
31231   ;;
31232   *)
31233   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31234 for as_dir in $PATH
31235 do
31236   IFS=$as_save_IFS
31237   test -z "$as_dir" && as_dir=.
31238   for ac_exec_ext in '' $ac_executable_extensions; do
31239   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31240     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
31241     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31242     break 2
31243   fi
31244 done
31245 done
31246 IFS=$as_save_IFS
31247
31248   ;;
31249 esac
31250 fi
31251 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
31252 if test -n "$PKG_CONFIG"; then
31253   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
31254 echo "${ECHO_T}$PKG_CONFIG" >&6; }
31255 else
31256   { echo "$as_me:$LINENO: result: no" >&5
31257 echo "${ECHO_T}no" >&6; }
31258 fi
31259
31260
31261 fi
31262 if test -z "$ac_cv_path_PKG_CONFIG"; then
31263   ac_pt_PKG_CONFIG=$PKG_CONFIG
31264   # Extract the first word of "pkg-config", so it can be a program name with args.
31265 set dummy pkg-config; ac_word=$2
31266 { echo "$as_me:$LINENO: checking for $ac_word" >&5
31267 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
31268 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
31269   echo $ECHO_N "(cached) $ECHO_C" >&6
31270 else
31271   case $ac_pt_PKG_CONFIG in
31272   [\\/]* | ?:[\\/]*)
31273   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
31274   ;;
31275   *)
31276   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31277 for as_dir in $PATH
31278 do
31279   IFS=$as_save_IFS
31280   test -z "$as_dir" && as_dir=.
31281   for ac_exec_ext in '' $ac_executable_extensions; do
31282   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31283     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
31284     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31285     break 2
31286   fi
31287 done
31288 done
31289 IFS=$as_save_IFS
31290
31291   ;;
31292 esac
31293 fi
31294 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
31295 if test -n "$ac_pt_PKG_CONFIG"; then
31296   { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
31297 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
31298 else
31299   { echo "$as_me:$LINENO: result: no" >&5
31300 echo "${ECHO_T}no" >&6; }
31301 fi
31302
31303   if test "x$ac_pt_PKG_CONFIG" = x; then
31304     PKG_CONFIG=""
31305   else
31306     case $cross_compiling:$ac_tool_warned in
31307 yes:)
31308 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
31309 whose name does not start with the host triplet.  If you think this
31310 configuration is useful to you, please write to autoconf@gnu.org." >&5
31311 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
31312 whose name does not start with the host triplet.  If you think this
31313 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
31314 ac_tool_warned=yes ;;
31315 esac
31316     PKG_CONFIG=$ac_pt_PKG_CONFIG
31317   fi
31318 else
31319   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
31320 fi
31321
31322 fi
31323 if test -n "$PKG_CONFIG"; then
31324         _pkg_min_version=0.9.0
31325         { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
31326 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
31327         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
31328                 { echo "$as_me:$LINENO: result: yes" >&5
31329 echo "${ECHO_T}yes" >&6; }
31330         else
31331                 { echo "$as_me:$LINENO: result: no" >&5
31332 echo "${ECHO_T}no" >&6; }
31333                 PKG_CONFIG=""
31334         fi
31335
31336 fi
31337
31338
31339 pkg_failed=no
31340 { echo "$as_me:$LINENO: checking for DIRECTFB" >&5
31341 echo $ECHO_N "checking for DIRECTFB... $ECHO_C" >&6; }
31342
31343 if test -n "$PKG_CONFIG"; then
31344     if test -n "$DIRECTFB_CFLAGS"; then
31345         pkg_cv_DIRECTFB_CFLAGS="$DIRECTFB_CFLAGS"
31346     else
31347         if test -n "$PKG_CONFIG" && \
31348     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"directfb >= 0.9.23\"") >&5
31349   ($PKG_CONFIG --exists --print-errors "directfb >= 0.9.23") 2>&5
31350   ac_status=$?
31351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31352   (exit $ac_status); }; then
31353   pkg_cv_DIRECTFB_CFLAGS=`$PKG_CONFIG --cflags "directfb >= 0.9.23" 2>/dev/null`
31354 else
31355   pkg_failed=yes
31356 fi
31357     fi
31358 else
31359         pkg_failed=untried
31360 fi
31361 if test -n "$PKG_CONFIG"; then
31362     if test -n "$DIRECTFB_LIBS"; then
31363         pkg_cv_DIRECTFB_LIBS="$DIRECTFB_LIBS"
31364     else
31365         if test -n "$PKG_CONFIG" && \
31366     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"directfb >= 0.9.23\"") >&5
31367   ($PKG_CONFIG --exists --print-errors "directfb >= 0.9.23") 2>&5
31368   ac_status=$?
31369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31370   (exit $ac_status); }; then
31371   pkg_cv_DIRECTFB_LIBS=`$PKG_CONFIG --libs "directfb >= 0.9.23" 2>/dev/null`
31372 else
31373   pkg_failed=yes
31374 fi
31375     fi
31376 else
31377         pkg_failed=untried
31378 fi
31379
31380
31381
31382 if test $pkg_failed = yes; then
31383
31384 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31385         _pkg_short_errors_supported=yes
31386 else
31387         _pkg_short_errors_supported=no
31388 fi
31389         if test $_pkg_short_errors_supported = yes; then
31390                 DIRECTFB_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "directfb >= 0.9.23"`
31391         else
31392                 DIRECTFB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "directfb >= 0.9.23"`
31393         fi
31394         # Put the nasty error message in config.log where it belongs
31395         echo "$DIRECTFB_PKG_ERRORS" >&5
31396
31397
31398                            { { echo "$as_me:$LINENO: error: DirectFB not found." >&5
31399 echo "$as_me: error: DirectFB not found." >&2;}
31400    { (exit 1); exit 1; }; }
31401
31402
31403 elif test $pkg_failed = untried; then
31404
31405                            { { echo "$as_me:$LINENO: error: DirectFB not found." >&5
31406 echo "$as_me: error: DirectFB not found." >&2;}
31407    { (exit 1); exit 1; }; }
31408
31409
31410 else
31411         DIRECTFB_CFLAGS=$pkg_cv_DIRECTFB_CFLAGS
31412         DIRECTFB_LIBS=$pkg_cv_DIRECTFB_LIBS
31413         { echo "$as_me:$LINENO: result: yes" >&5
31414 echo "${ECHO_T}yes" >&6; }
31415
31416                            wxUSE_UNIVERSAL="yes"
31417                            TOOLKIT_INCLUDE="$DIRECTFB_CFLAGS"
31418                            GUI_TK_LIBRARY="$DIRECTFB_LIBS"
31419                            TOOLKIT=DFB
31420                            GUIDIST=DFB_DIST
31421
31422 fi
31423     fi
31424
31425     if test "$wxUSE_MICROWIN" = 1; then
31426         { echo "$as_me:$LINENO: checking for MicroWindows" >&5
31427 echo $ECHO_N "checking for MicroWindows... $ECHO_C" >&6; }
31428         if test "x$MICROWINDOWS" = x ; then
31429             { echo "$as_me:$LINENO: result: not found" >&5
31430 echo "${ECHO_T}not found" >&6; }
31431             { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&5
31432 echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&2;}
31433    { (exit 1); exit 1; }; }
31434         else
31435             { echo "$as_me:$LINENO: result: $MICROWINDOWS" >&5
31436 echo "${ECHO_T}$MICROWINDOWS" >&6; }
31437         fi
31438
31439         if test -f $MICROWINDOWS/lib/libmwin.a; then
31440             { echo "$as_me:$LINENO: result: MicroWindows' libraries found." >&5
31441 echo "${ECHO_T}MicroWindows' libraries found." >&6; }
31442         else
31443             { { echo "$as_me:$LINENO: error: Cannot find MicroWindows libraries, make sure they are compiled." >&5
31444 echo "$as_me: error: Cannot find MicroWindows libraries, make sure they are compiled." >&2;}
31445    { (exit 1); exit 1; }; }
31446         fi
31447
31448         TOOLKIT_INCLUDE="-I$MICROWINDOWS/include"
31449         GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib"
31450
31451         wxUSE_UNIVERSAL="yes"
31452
31453         AFMINSTALL=afminstall
31454         TOOLKIT=MICROWIN
31455         GUIDIST=MICROWIN_DIST
31456
31457         TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1"
31458     fi
31459
31460         if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
31461                                 { echo "$as_me:$LINENO: checking for X" >&5
31462 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
31463
31464
31465 # Check whether --with-x was given.
31466 if test "${with_x+set}" = set; then
31467   withval=$with_x;
31468 fi
31469
31470 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
31471 if test "x$with_x" = xno; then
31472   # The user explicitly disabled X.
31473   have_x=disabled
31474 else
31475   case $x_includes,$x_libraries in #(
31476     *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
31477 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
31478    { (exit 1); exit 1; }; };; #(
31479     *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
31480   echo $ECHO_N "(cached) $ECHO_C" >&6
31481 else
31482   # One or both of the vars are not set, and there is no cached value.
31483 ac_x_includes=no ac_x_libraries=no
31484 rm -f -r conftest.dir
31485 if mkdir conftest.dir; then
31486   cd conftest.dir
31487   cat >Imakefile <<'_ACEOF'
31488 incroot:
31489         @echo incroot='${INCROOT}'
31490 usrlibdir:
31491         @echo usrlibdir='${USRLIBDIR}'
31492 libdir:
31493         @echo libdir='${LIBDIR}'
31494 _ACEOF
31495   if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
31496     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
31497     for ac_var in incroot usrlibdir libdir; do
31498       eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
31499     done
31500     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
31501     for ac_extension in a so sl; do
31502       if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
31503          test -f "$ac_im_libdir/libX11.$ac_extension"; then
31504         ac_im_usrlibdir=$ac_im_libdir; break
31505       fi
31506     done
31507     # Screen out bogus values from the imake configuration.  They are
31508     # bogus both because they are the default anyway, and because
31509     # using them would break gcc on systems where it needs fixed includes.
31510     case $ac_im_incroot in
31511         /usr/include) ac_x_includes= ;;
31512         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
31513     esac
31514     case $ac_im_usrlibdir in
31515         /usr/lib | /lib) ;;
31516         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
31517     esac
31518   fi
31519   cd ..
31520   rm -f -r conftest.dir
31521 fi
31522
31523 # Standard set of common directories for X headers.
31524 # Check X11 before X11Rn because it is often a symlink to the current release.
31525 ac_x_header_dirs='
31526 /usr/X11/include
31527 /usr/X11R6/include
31528 /usr/X11R5/include
31529 /usr/X11R4/include
31530
31531 /usr/include/X11
31532 /usr/include/X11R6
31533 /usr/include/X11R5
31534 /usr/include/X11R4
31535
31536 /usr/local/X11/include
31537 /usr/local/X11R6/include
31538 /usr/local/X11R5/include
31539 /usr/local/X11R4/include
31540
31541 /usr/local/include/X11
31542 /usr/local/include/X11R6
31543 /usr/local/include/X11R5
31544 /usr/local/include/X11R4
31545
31546 /usr/X386/include
31547 /usr/x386/include
31548 /usr/XFree86/include/X11
31549
31550 /usr/include
31551 /usr/local/include
31552 /usr/unsupported/include
31553 /usr/athena/include
31554 /usr/local/x11r5/include
31555 /usr/lpp/Xamples/include
31556
31557 /usr/openwin/include
31558 /usr/openwin/share/include'
31559
31560 if test "$ac_x_includes" = no; then
31561   # Guess where to find include files, by looking for Xlib.h.
31562   # First, try using that file with no special directory specified.
31563   cat >conftest.$ac_ext <<_ACEOF
31564 /* confdefs.h.  */
31565 _ACEOF
31566 cat confdefs.h >>conftest.$ac_ext
31567 cat >>conftest.$ac_ext <<_ACEOF
31568 /* end confdefs.h.  */
31569 #include <X11/Xlib.h>
31570 _ACEOF
31571 if { (ac_try="$ac_cpp conftest.$ac_ext"
31572 case "(($ac_try" in
31573   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31574   *) ac_try_echo=$ac_try;;
31575 esac
31576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31577   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31578   ac_status=$?
31579   grep -v '^ *+' conftest.er1 >conftest.err
31580   rm -f conftest.er1
31581   cat conftest.err >&5
31582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31583   (exit $ac_status); } >/dev/null && {
31584          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31585          test ! -s conftest.err
31586        }; then
31587   # We can compile using X headers with no special include directory.
31588 ac_x_includes=
31589 else
31590   echo "$as_me: failed program was:" >&5
31591 sed 's/^/| /' conftest.$ac_ext >&5
31592
31593   for ac_dir in $ac_x_header_dirs; do
31594   if test -r "$ac_dir/X11/Xlib.h"; then
31595     ac_x_includes=$ac_dir
31596     break
31597   fi
31598 done
31599 fi
31600
31601 rm -f conftest.err conftest.$ac_ext
31602 fi # $ac_x_includes = no
31603
31604 if test "$ac_x_libraries" = no; then
31605   # Check for the libraries.
31606   # See if we find them without any special options.
31607   # Don't add to $LIBS permanently.
31608   ac_save_LIBS=$LIBS
31609   LIBS="-lX11 $LIBS"
31610   cat >conftest.$ac_ext <<_ACEOF
31611 /* confdefs.h.  */
31612 _ACEOF
31613 cat confdefs.h >>conftest.$ac_ext
31614 cat >>conftest.$ac_ext <<_ACEOF
31615 /* end confdefs.h.  */
31616 #include <X11/Xlib.h>
31617 int
31618 main ()
31619 {
31620 XrmInitialize ()
31621   ;
31622   return 0;
31623 }
31624 _ACEOF
31625 rm -f conftest.$ac_objext conftest$ac_exeext
31626 if { (ac_try="$ac_link"
31627 case "(($ac_try" in
31628   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31629   *) ac_try_echo=$ac_try;;
31630 esac
31631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31632   (eval "$ac_link") 2>conftest.er1
31633   ac_status=$?
31634   grep -v '^ *+' conftest.er1 >conftest.err
31635   rm -f conftest.er1
31636   cat conftest.err >&5
31637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31638   (exit $ac_status); } && {
31639          test -z "$ac_c_werror_flag" ||
31640          test ! -s conftest.err
31641        } && test -s conftest$ac_exeext &&
31642        $as_test_x conftest$ac_exeext; then
31643   LIBS=$ac_save_LIBS
31644 # We can link X programs with no special library path.
31645 ac_x_libraries=
31646 else
31647   echo "$as_me: failed program was:" >&5
31648 sed 's/^/| /' conftest.$ac_ext >&5
31649
31650         LIBS=$ac_save_LIBS
31651 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
31652 do
31653   # Don't even attempt the hair of trying to link an X program!
31654   for ac_extension in a so sl; do
31655     if test -r "$ac_dir/libX11.$ac_extension"; then
31656       ac_x_libraries=$ac_dir
31657       break 2
31658     fi
31659   done
31660 done
31661 fi
31662
31663 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31664       conftest$ac_exeext conftest.$ac_ext
31665 fi # $ac_x_libraries = no
31666
31667 case $ac_x_includes,$ac_x_libraries in #(
31668   no,* | *,no | *\'*)
31669     # Didn't find X, or a directory has "'" in its name.
31670     ac_cv_have_x="have_x=no";; #(
31671   *)
31672     # Record where we found X for the cache.
31673     ac_cv_have_x="have_x=yes\
31674         ac_x_includes='$ac_x_includes'\
31675         ac_x_libraries='$ac_x_libraries'"
31676 esac
31677 fi
31678 ;; #(
31679     *) have_x=yes;;
31680   esac
31681   eval "$ac_cv_have_x"
31682 fi # $with_x != no
31683
31684 if test "$have_x" != yes; then
31685   { echo "$as_me:$LINENO: result: $have_x" >&5
31686 echo "${ECHO_T}$have_x" >&6; }
31687   no_x=yes
31688 else
31689   # If each of the values was on the command line, it overrides each guess.
31690   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
31691   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
31692   # Update the cache value to reflect the command line values.
31693   ac_cv_have_x="have_x=yes\
31694         ac_x_includes='$x_includes'\
31695         ac_x_libraries='$x_libraries'"
31696   { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
31697 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
31698 fi
31699
31700 if test "$no_x" = yes; then
31701   # Not all programs may use this symbol, but it does not hurt to define it.
31702
31703 cat >>confdefs.h <<\_ACEOF
31704 #define X_DISPLAY_MISSING 1
31705 _ACEOF
31706
31707   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
31708 else
31709   if test -n "$x_includes"; then
31710     X_CFLAGS="$X_CFLAGS -I$x_includes"
31711   fi
31712
31713   # It would also be nice to do this for all -L options, not just this one.
31714   if test -n "$x_libraries"; then
31715     X_LIBS="$X_LIBS -L$x_libraries"
31716     # For Solaris; some versions of Sun CC require a space after -R and
31717     # others require no space.  Words are not sufficient . . . .
31718     { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
31719 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; }
31720     ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
31721     ac_xsave_c_werror_flag=$ac_c_werror_flag
31722     ac_c_werror_flag=yes
31723     cat >conftest.$ac_ext <<_ACEOF
31724 /* confdefs.h.  */
31725 _ACEOF
31726 cat confdefs.h >>conftest.$ac_ext
31727 cat >>conftest.$ac_ext <<_ACEOF
31728 /* end confdefs.h.  */
31729
31730 int
31731 main ()
31732 {
31733
31734   ;
31735   return 0;
31736 }
31737 _ACEOF
31738 rm -f conftest.$ac_objext conftest$ac_exeext
31739 if { (ac_try="$ac_link"
31740 case "(($ac_try" in
31741   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31742   *) ac_try_echo=$ac_try;;
31743 esac
31744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31745   (eval "$ac_link") 2>conftest.er1
31746   ac_status=$?
31747   grep -v '^ *+' conftest.er1 >conftest.err
31748   rm -f conftest.er1
31749   cat conftest.err >&5
31750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31751   (exit $ac_status); } && {
31752          test -z "$ac_c_werror_flag" ||
31753          test ! -s conftest.err
31754        } && test -s conftest$ac_exeext &&
31755        $as_test_x conftest$ac_exeext; then
31756   { echo "$as_me:$LINENO: result: no" >&5
31757 echo "${ECHO_T}no" >&6; }
31758        X_LIBS="$X_LIBS -R$x_libraries"
31759 else
31760   echo "$as_me: failed program was:" >&5
31761 sed 's/^/| /' conftest.$ac_ext >&5
31762
31763         LIBS="$ac_xsave_LIBS -R $x_libraries"
31764        cat >conftest.$ac_ext <<_ACEOF
31765 /* confdefs.h.  */
31766 _ACEOF
31767 cat confdefs.h >>conftest.$ac_ext
31768 cat >>conftest.$ac_ext <<_ACEOF
31769 /* end confdefs.h.  */
31770
31771 int
31772 main ()
31773 {
31774
31775   ;
31776   return 0;
31777 }
31778 _ACEOF
31779 rm -f conftest.$ac_objext conftest$ac_exeext
31780 if { (ac_try="$ac_link"
31781 case "(($ac_try" in
31782   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31783   *) ac_try_echo=$ac_try;;
31784 esac
31785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31786   (eval "$ac_link") 2>conftest.er1
31787   ac_status=$?
31788   grep -v '^ *+' conftest.er1 >conftest.err
31789   rm -f conftest.er1
31790   cat conftest.err >&5
31791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31792   (exit $ac_status); } && {
31793          test -z "$ac_c_werror_flag" ||
31794          test ! -s conftest.err
31795        } && test -s conftest$ac_exeext &&
31796        $as_test_x conftest$ac_exeext; then
31797   { echo "$as_me:$LINENO: result: yes" >&5
31798 echo "${ECHO_T}yes" >&6; }
31799           X_LIBS="$X_LIBS -R $x_libraries"
31800 else
31801   echo "$as_me: failed program was:" >&5
31802 sed 's/^/| /' conftest.$ac_ext >&5
31803
31804         { echo "$as_me:$LINENO: result: neither works" >&5
31805 echo "${ECHO_T}neither works" >&6; }
31806 fi
31807
31808 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31809       conftest$ac_exeext conftest.$ac_ext
31810 fi
31811
31812 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31813       conftest$ac_exeext conftest.$ac_ext
31814     ac_c_werror_flag=$ac_xsave_c_werror_flag
31815     LIBS=$ac_xsave_LIBS
31816   fi
31817
31818   # Check for system-dependent libraries X programs must link with.
31819   # Do this before checking for the system-independent R6 libraries
31820   # (-lICE), since we may need -lsocket or whatever for X linking.
31821
31822   if test "$ISC" = yes; then
31823     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
31824   else
31825     # Martyn Johnson says this is needed for Ultrix, if the X
31826     # libraries were built with DECnet support.  And Karl Berry says
31827     # the Alpha needs dnet_stub (dnet does not exist).
31828     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
31829     cat >conftest.$ac_ext <<_ACEOF
31830 /* confdefs.h.  */
31831 _ACEOF
31832 cat confdefs.h >>conftest.$ac_ext
31833 cat >>conftest.$ac_ext <<_ACEOF
31834 /* end confdefs.h.  */
31835
31836 /* Override any GCC internal prototype to avoid an error.
31837    Use char because int might match the return type of a GCC
31838    builtin and then its argument prototype would still apply.  */
31839 #ifdef __cplusplus
31840 extern "C"
31841 #endif
31842 char XOpenDisplay ();
31843 int
31844 main ()
31845 {
31846 return XOpenDisplay ();
31847   ;
31848   return 0;
31849 }
31850 _ACEOF
31851 rm -f conftest.$ac_objext conftest$ac_exeext
31852 if { (ac_try="$ac_link"
31853 case "(($ac_try" in
31854   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31855   *) ac_try_echo=$ac_try;;
31856 esac
31857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31858   (eval "$ac_link") 2>conftest.er1
31859   ac_status=$?
31860   grep -v '^ *+' conftest.er1 >conftest.err
31861   rm -f conftest.er1
31862   cat conftest.err >&5
31863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31864   (exit $ac_status); } && {
31865          test -z "$ac_c_werror_flag" ||
31866          test ! -s conftest.err
31867        } && test -s conftest$ac_exeext &&
31868        $as_test_x conftest$ac_exeext; then
31869   :
31870 else
31871   echo "$as_me: failed program was:" >&5
31872 sed 's/^/| /' conftest.$ac_ext >&5
31873
31874         { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
31875 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
31876 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
31877   echo $ECHO_N "(cached) $ECHO_C" >&6
31878 else
31879   ac_check_lib_save_LIBS=$LIBS
31880 LIBS="-ldnet  $LIBS"
31881 cat >conftest.$ac_ext <<_ACEOF
31882 /* confdefs.h.  */
31883 _ACEOF
31884 cat confdefs.h >>conftest.$ac_ext
31885 cat >>conftest.$ac_ext <<_ACEOF
31886 /* end confdefs.h.  */
31887
31888 /* Override any GCC internal prototype to avoid an error.
31889    Use char because int might match the return type of a GCC
31890    builtin and then its argument prototype would still apply.  */
31891 #ifdef __cplusplus
31892 extern "C"
31893 #endif
31894 char dnet_ntoa ();
31895 int
31896 main ()
31897 {
31898 return dnet_ntoa ();
31899   ;
31900   return 0;
31901 }
31902 _ACEOF
31903 rm -f conftest.$ac_objext conftest$ac_exeext
31904 if { (ac_try="$ac_link"
31905 case "(($ac_try" in
31906   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31907   *) ac_try_echo=$ac_try;;
31908 esac
31909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31910   (eval "$ac_link") 2>conftest.er1
31911   ac_status=$?
31912   grep -v '^ *+' conftest.er1 >conftest.err
31913   rm -f conftest.er1
31914   cat conftest.err >&5
31915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31916   (exit $ac_status); } && {
31917          test -z "$ac_c_werror_flag" ||
31918          test ! -s conftest.err
31919        } && test -s conftest$ac_exeext &&
31920        $as_test_x conftest$ac_exeext; then
31921   ac_cv_lib_dnet_dnet_ntoa=yes
31922 else
31923   echo "$as_me: failed program was:" >&5
31924 sed 's/^/| /' conftest.$ac_ext >&5
31925
31926         ac_cv_lib_dnet_dnet_ntoa=no
31927 fi
31928
31929 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31930       conftest$ac_exeext conftest.$ac_ext
31931 LIBS=$ac_check_lib_save_LIBS
31932 fi
31933 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
31934 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
31935 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
31936   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
31937 fi
31938
31939     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
31940       { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
31941 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; }
31942 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
31943   echo $ECHO_N "(cached) $ECHO_C" >&6
31944 else
31945   ac_check_lib_save_LIBS=$LIBS
31946 LIBS="-ldnet_stub  $LIBS"
31947 cat >conftest.$ac_ext <<_ACEOF
31948 /* confdefs.h.  */
31949 _ACEOF
31950 cat confdefs.h >>conftest.$ac_ext
31951 cat >>conftest.$ac_ext <<_ACEOF
31952 /* end confdefs.h.  */
31953
31954 /* Override any GCC internal prototype to avoid an error.
31955    Use char because int might match the return type of a GCC
31956    builtin and then its argument prototype would still apply.  */
31957 #ifdef __cplusplus
31958 extern "C"
31959 #endif
31960 char dnet_ntoa ();
31961 int
31962 main ()
31963 {
31964 return dnet_ntoa ();
31965   ;
31966   return 0;
31967 }
31968 _ACEOF
31969 rm -f conftest.$ac_objext conftest$ac_exeext
31970 if { (ac_try="$ac_link"
31971 case "(($ac_try" in
31972   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31973   *) ac_try_echo=$ac_try;;
31974 esac
31975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31976   (eval "$ac_link") 2>conftest.er1
31977   ac_status=$?
31978   grep -v '^ *+' conftest.er1 >conftest.err
31979   rm -f conftest.er1
31980   cat conftest.err >&5
31981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31982   (exit $ac_status); } && {
31983          test -z "$ac_c_werror_flag" ||
31984          test ! -s conftest.err
31985        } && test -s conftest$ac_exeext &&
31986        $as_test_x conftest$ac_exeext; then
31987   ac_cv_lib_dnet_stub_dnet_ntoa=yes
31988 else
31989   echo "$as_me: failed program was:" >&5
31990 sed 's/^/| /' conftest.$ac_ext >&5
31991
31992         ac_cv_lib_dnet_stub_dnet_ntoa=no
31993 fi
31994
31995 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31996       conftest$ac_exeext conftest.$ac_ext
31997 LIBS=$ac_check_lib_save_LIBS
31998 fi
31999 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
32000 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
32001 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
32002   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
32003 fi
32004
32005     fi
32006 fi
32007
32008 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32009       conftest$ac_exeext conftest.$ac_ext
32010     LIBS="$ac_xsave_LIBS"
32011
32012     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
32013     # to get the SysV transport functions.
32014     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
32015     # needs -lnsl.
32016     # The nsl library prevents programs from opening the X display
32017     # on Irix 5.2, according to T.E. Dickey.
32018     # The functions gethostbyname, getservbyname, and inet_addr are
32019     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
32020     { echo "$as_me:$LINENO: checking for gethostbyname" >&5
32021 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
32022 if test "${ac_cv_func_gethostbyname+set}" = set; then
32023   echo $ECHO_N "(cached) $ECHO_C" >&6
32024 else
32025   cat >conftest.$ac_ext <<_ACEOF
32026 /* confdefs.h.  */
32027 _ACEOF
32028 cat confdefs.h >>conftest.$ac_ext
32029 cat >>conftest.$ac_ext <<_ACEOF
32030 /* end confdefs.h.  */
32031 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
32032    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32033 #define gethostbyname innocuous_gethostbyname
32034
32035 /* System header to define __stub macros and hopefully few prototypes,
32036     which can conflict with char gethostbyname (); below.
32037     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32038     <limits.h> exists even on freestanding compilers.  */
32039
32040 #ifdef __STDC__
32041 # include <limits.h>
32042 #else
32043 # include <assert.h>
32044 #endif
32045
32046 #undef gethostbyname
32047
32048 /* Override any GCC internal prototype to avoid an error.
32049    Use char because int might match the return type of a GCC
32050    builtin and then its argument prototype would still apply.  */
32051 #ifdef __cplusplus
32052 extern "C"
32053 #endif
32054 char gethostbyname ();
32055 /* The GNU C library defines this for functions which it implements
32056     to always fail with ENOSYS.  Some functions are actually named
32057     something starting with __ and the normal name is an alias.  */
32058 #if defined __stub_gethostbyname || defined __stub___gethostbyname
32059 choke me
32060 #endif
32061
32062 int
32063 main ()
32064 {
32065 return gethostbyname ();
32066   ;
32067   return 0;
32068 }
32069 _ACEOF
32070 rm -f conftest.$ac_objext conftest$ac_exeext
32071 if { (ac_try="$ac_link"
32072 case "(($ac_try" in
32073   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32074   *) ac_try_echo=$ac_try;;
32075 esac
32076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32077   (eval "$ac_link") 2>conftest.er1
32078   ac_status=$?
32079   grep -v '^ *+' conftest.er1 >conftest.err
32080   rm -f conftest.er1
32081   cat conftest.err >&5
32082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32083   (exit $ac_status); } && {
32084          test -z "$ac_c_werror_flag" ||
32085          test ! -s conftest.err
32086        } && test -s conftest$ac_exeext &&
32087        $as_test_x conftest$ac_exeext; then
32088   ac_cv_func_gethostbyname=yes
32089 else
32090   echo "$as_me: failed program was:" >&5
32091 sed 's/^/| /' conftest.$ac_ext >&5
32092
32093         ac_cv_func_gethostbyname=no
32094 fi
32095
32096 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32097       conftest$ac_exeext conftest.$ac_ext
32098 fi
32099 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
32100 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
32101
32102     if test $ac_cv_func_gethostbyname = no; then
32103       { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
32104 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
32105 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
32106   echo $ECHO_N "(cached) $ECHO_C" >&6
32107 else
32108   ac_check_lib_save_LIBS=$LIBS
32109 LIBS="-lnsl  $LIBS"
32110 cat >conftest.$ac_ext <<_ACEOF
32111 /* confdefs.h.  */
32112 _ACEOF
32113 cat confdefs.h >>conftest.$ac_ext
32114 cat >>conftest.$ac_ext <<_ACEOF
32115 /* end confdefs.h.  */
32116
32117 /* Override any GCC internal prototype to avoid an error.
32118    Use char because int might match the return type of a GCC
32119    builtin and then its argument prototype would still apply.  */
32120 #ifdef __cplusplus
32121 extern "C"
32122 #endif
32123 char gethostbyname ();
32124 int
32125 main ()
32126 {
32127 return gethostbyname ();
32128   ;
32129   return 0;
32130 }
32131 _ACEOF
32132 rm -f conftest.$ac_objext conftest$ac_exeext
32133 if { (ac_try="$ac_link"
32134 case "(($ac_try" in
32135   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32136   *) ac_try_echo=$ac_try;;
32137 esac
32138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32139   (eval "$ac_link") 2>conftest.er1
32140   ac_status=$?
32141   grep -v '^ *+' conftest.er1 >conftest.err
32142   rm -f conftest.er1
32143   cat conftest.err >&5
32144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32145   (exit $ac_status); } && {
32146          test -z "$ac_c_werror_flag" ||
32147          test ! -s conftest.err
32148        } && test -s conftest$ac_exeext &&
32149        $as_test_x conftest$ac_exeext; then
32150   ac_cv_lib_nsl_gethostbyname=yes
32151 else
32152   echo "$as_me: failed program was:" >&5
32153 sed 's/^/| /' conftest.$ac_ext >&5
32154
32155         ac_cv_lib_nsl_gethostbyname=no
32156 fi
32157
32158 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32159       conftest$ac_exeext conftest.$ac_ext
32160 LIBS=$ac_check_lib_save_LIBS
32161 fi
32162 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
32163 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
32164 if test $ac_cv_lib_nsl_gethostbyname = yes; then
32165   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
32166 fi
32167
32168       if test $ac_cv_lib_nsl_gethostbyname = no; then
32169         { echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
32170 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; }
32171 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
32172   echo $ECHO_N "(cached) $ECHO_C" >&6
32173 else
32174   ac_check_lib_save_LIBS=$LIBS
32175 LIBS="-lbsd  $LIBS"
32176 cat >conftest.$ac_ext <<_ACEOF
32177 /* confdefs.h.  */
32178 _ACEOF
32179 cat confdefs.h >>conftest.$ac_ext
32180 cat >>conftest.$ac_ext <<_ACEOF
32181 /* end confdefs.h.  */
32182
32183 /* Override any GCC internal prototype to avoid an error.
32184    Use char because int might match the return type of a GCC
32185    builtin and then its argument prototype would still apply.  */
32186 #ifdef __cplusplus
32187 extern "C"
32188 #endif
32189 char gethostbyname ();
32190 int
32191 main ()
32192 {
32193 return gethostbyname ();
32194   ;
32195   return 0;
32196 }
32197 _ACEOF
32198 rm -f conftest.$ac_objext conftest$ac_exeext
32199 if { (ac_try="$ac_link"
32200 case "(($ac_try" in
32201   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32202   *) ac_try_echo=$ac_try;;
32203 esac
32204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32205   (eval "$ac_link") 2>conftest.er1
32206   ac_status=$?
32207   grep -v '^ *+' conftest.er1 >conftest.err
32208   rm -f conftest.er1
32209   cat conftest.err >&5
32210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32211   (exit $ac_status); } && {
32212          test -z "$ac_c_werror_flag" ||
32213          test ! -s conftest.err
32214        } && test -s conftest$ac_exeext &&
32215        $as_test_x conftest$ac_exeext; then
32216   ac_cv_lib_bsd_gethostbyname=yes
32217 else
32218   echo "$as_me: failed program was:" >&5
32219 sed 's/^/| /' conftest.$ac_ext >&5
32220
32221         ac_cv_lib_bsd_gethostbyname=no
32222 fi
32223
32224 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32225       conftest$ac_exeext conftest.$ac_ext
32226 LIBS=$ac_check_lib_save_LIBS
32227 fi
32228 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
32229 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; }
32230 if test $ac_cv_lib_bsd_gethostbyname = yes; then
32231   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
32232 fi
32233
32234       fi
32235     fi
32236
32237     # lieder@skyler.mavd.honeywell.com says without -lsocket,
32238     # socket/setsockopt and other routines are undefined under SCO ODT
32239     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
32240     # on later versions), says Simon Leinen: it contains gethostby*
32241     # variants that don't use the name server (or something).  -lsocket
32242     # must be given before -lnsl if both are needed.  We assume that
32243     # if connect needs -lnsl, so does gethostbyname.
32244     { echo "$as_me:$LINENO: checking for connect" >&5
32245 echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
32246 if test "${ac_cv_func_connect+set}" = set; then
32247   echo $ECHO_N "(cached) $ECHO_C" >&6
32248 else
32249   cat >conftest.$ac_ext <<_ACEOF
32250 /* confdefs.h.  */
32251 _ACEOF
32252 cat confdefs.h >>conftest.$ac_ext
32253 cat >>conftest.$ac_ext <<_ACEOF
32254 /* end confdefs.h.  */
32255 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
32256    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32257 #define connect innocuous_connect
32258
32259 /* System header to define __stub macros and hopefully few prototypes,
32260     which can conflict with char connect (); below.
32261     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32262     <limits.h> exists even on freestanding compilers.  */
32263
32264 #ifdef __STDC__
32265 # include <limits.h>
32266 #else
32267 # include <assert.h>
32268 #endif
32269
32270 #undef connect
32271
32272 /* Override any GCC internal prototype to avoid an error.
32273    Use char because int might match the return type of a GCC
32274    builtin and then its argument prototype would still apply.  */
32275 #ifdef __cplusplus
32276 extern "C"
32277 #endif
32278 char connect ();
32279 /* The GNU C library defines this for functions which it implements
32280     to always fail with ENOSYS.  Some functions are actually named
32281     something starting with __ and the normal name is an alias.  */
32282 #if defined __stub_connect || defined __stub___connect
32283 choke me
32284 #endif
32285
32286 int
32287 main ()
32288 {
32289 return connect ();
32290   ;
32291   return 0;
32292 }
32293 _ACEOF
32294 rm -f conftest.$ac_objext conftest$ac_exeext
32295 if { (ac_try="$ac_link"
32296 case "(($ac_try" in
32297   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32298   *) ac_try_echo=$ac_try;;
32299 esac
32300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32301   (eval "$ac_link") 2>conftest.er1
32302   ac_status=$?
32303   grep -v '^ *+' conftest.er1 >conftest.err
32304   rm -f conftest.er1
32305   cat conftest.err >&5
32306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32307   (exit $ac_status); } && {
32308          test -z "$ac_c_werror_flag" ||
32309          test ! -s conftest.err
32310        } && test -s conftest$ac_exeext &&
32311        $as_test_x conftest$ac_exeext; then
32312   ac_cv_func_connect=yes
32313 else
32314   echo "$as_me: failed program was:" >&5
32315 sed 's/^/| /' conftest.$ac_ext >&5
32316
32317         ac_cv_func_connect=no
32318 fi
32319
32320 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32321       conftest$ac_exeext conftest.$ac_ext
32322 fi
32323 { echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
32324 echo "${ECHO_T}$ac_cv_func_connect" >&6; }
32325
32326     if test $ac_cv_func_connect = no; then
32327       { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
32328 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
32329 if test "${ac_cv_lib_socket_connect+set}" = set; then
32330   echo $ECHO_N "(cached) $ECHO_C" >&6
32331 else
32332   ac_check_lib_save_LIBS=$LIBS
32333 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
32334 cat >conftest.$ac_ext <<_ACEOF
32335 /* confdefs.h.  */
32336 _ACEOF
32337 cat confdefs.h >>conftest.$ac_ext
32338 cat >>conftest.$ac_ext <<_ACEOF
32339 /* end confdefs.h.  */
32340
32341 /* Override any GCC internal prototype to avoid an error.
32342    Use char because int might match the return type of a GCC
32343    builtin and then its argument prototype would still apply.  */
32344 #ifdef __cplusplus
32345 extern "C"
32346 #endif
32347 char connect ();
32348 int
32349 main ()
32350 {
32351 return connect ();
32352   ;
32353   return 0;
32354 }
32355 _ACEOF
32356 rm -f conftest.$ac_objext conftest$ac_exeext
32357 if { (ac_try="$ac_link"
32358 case "(($ac_try" in
32359   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32360   *) ac_try_echo=$ac_try;;
32361 esac
32362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32363   (eval "$ac_link") 2>conftest.er1
32364   ac_status=$?
32365   grep -v '^ *+' conftest.er1 >conftest.err
32366   rm -f conftest.er1
32367   cat conftest.err >&5
32368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32369   (exit $ac_status); } && {
32370          test -z "$ac_c_werror_flag" ||
32371          test ! -s conftest.err
32372        } && test -s conftest$ac_exeext &&
32373        $as_test_x conftest$ac_exeext; then
32374   ac_cv_lib_socket_connect=yes
32375 else
32376   echo "$as_me: failed program was:" >&5
32377 sed 's/^/| /' conftest.$ac_ext >&5
32378
32379         ac_cv_lib_socket_connect=no
32380 fi
32381
32382 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32383       conftest$ac_exeext conftest.$ac_ext
32384 LIBS=$ac_check_lib_save_LIBS
32385 fi
32386 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
32387 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
32388 if test $ac_cv_lib_socket_connect = yes; then
32389   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
32390 fi
32391
32392     fi
32393
32394     # Guillermo Gomez says -lposix is necessary on A/UX.
32395     { echo "$as_me:$LINENO: checking for remove" >&5
32396 echo $ECHO_N "checking for remove... $ECHO_C" >&6; }
32397 if test "${ac_cv_func_remove+set}" = set; then
32398   echo $ECHO_N "(cached) $ECHO_C" >&6
32399 else
32400   cat >conftest.$ac_ext <<_ACEOF
32401 /* confdefs.h.  */
32402 _ACEOF
32403 cat confdefs.h >>conftest.$ac_ext
32404 cat >>conftest.$ac_ext <<_ACEOF
32405 /* end confdefs.h.  */
32406 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
32407    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32408 #define remove innocuous_remove
32409
32410 /* System header to define __stub macros and hopefully few prototypes,
32411     which can conflict with char remove (); below.
32412     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32413     <limits.h> exists even on freestanding compilers.  */
32414
32415 #ifdef __STDC__
32416 # include <limits.h>
32417 #else
32418 # include <assert.h>
32419 #endif
32420
32421 #undef remove
32422
32423 /* Override any GCC internal prototype to avoid an error.
32424    Use char because int might match the return type of a GCC
32425    builtin and then its argument prototype would still apply.  */
32426 #ifdef __cplusplus
32427 extern "C"
32428 #endif
32429 char remove ();
32430 /* The GNU C library defines this for functions which it implements
32431     to always fail with ENOSYS.  Some functions are actually named
32432     something starting with __ and the normal name is an alias.  */
32433 #if defined __stub_remove || defined __stub___remove
32434 choke me
32435 #endif
32436
32437 int
32438 main ()
32439 {
32440 return remove ();
32441   ;
32442   return 0;
32443 }
32444 _ACEOF
32445 rm -f conftest.$ac_objext conftest$ac_exeext
32446 if { (ac_try="$ac_link"
32447 case "(($ac_try" in
32448   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32449   *) ac_try_echo=$ac_try;;
32450 esac
32451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32452   (eval "$ac_link") 2>conftest.er1
32453   ac_status=$?
32454   grep -v '^ *+' conftest.er1 >conftest.err
32455   rm -f conftest.er1
32456   cat conftest.err >&5
32457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32458   (exit $ac_status); } && {
32459          test -z "$ac_c_werror_flag" ||
32460          test ! -s conftest.err
32461        } && test -s conftest$ac_exeext &&
32462        $as_test_x conftest$ac_exeext; then
32463   ac_cv_func_remove=yes
32464 else
32465   echo "$as_me: failed program was:" >&5
32466 sed 's/^/| /' conftest.$ac_ext >&5
32467
32468         ac_cv_func_remove=no
32469 fi
32470
32471 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32472       conftest$ac_exeext conftest.$ac_ext
32473 fi
32474 { echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
32475 echo "${ECHO_T}$ac_cv_func_remove" >&6; }
32476
32477     if test $ac_cv_func_remove = no; then
32478       { echo "$as_me:$LINENO: checking for remove in -lposix" >&5
32479 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; }
32480 if test "${ac_cv_lib_posix_remove+set}" = set; then
32481   echo $ECHO_N "(cached) $ECHO_C" >&6
32482 else
32483   ac_check_lib_save_LIBS=$LIBS
32484 LIBS="-lposix  $LIBS"
32485 cat >conftest.$ac_ext <<_ACEOF
32486 /* confdefs.h.  */
32487 _ACEOF
32488 cat confdefs.h >>conftest.$ac_ext
32489 cat >>conftest.$ac_ext <<_ACEOF
32490 /* end confdefs.h.  */
32491
32492 /* Override any GCC internal prototype to avoid an error.
32493    Use char because int might match the return type of a GCC
32494    builtin and then its argument prototype would still apply.  */
32495 #ifdef __cplusplus
32496 extern "C"
32497 #endif
32498 char remove ();
32499 int
32500 main ()
32501 {
32502 return remove ();
32503   ;
32504   return 0;
32505 }
32506 _ACEOF
32507 rm -f conftest.$ac_objext conftest$ac_exeext
32508 if { (ac_try="$ac_link"
32509 case "(($ac_try" in
32510   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32511   *) ac_try_echo=$ac_try;;
32512 esac
32513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32514   (eval "$ac_link") 2>conftest.er1
32515   ac_status=$?
32516   grep -v '^ *+' conftest.er1 >conftest.err
32517   rm -f conftest.er1
32518   cat conftest.err >&5
32519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32520   (exit $ac_status); } && {
32521          test -z "$ac_c_werror_flag" ||
32522          test ! -s conftest.err
32523        } && test -s conftest$ac_exeext &&
32524        $as_test_x conftest$ac_exeext; then
32525   ac_cv_lib_posix_remove=yes
32526 else
32527   echo "$as_me: failed program was:" >&5
32528 sed 's/^/| /' conftest.$ac_ext >&5
32529
32530         ac_cv_lib_posix_remove=no
32531 fi
32532
32533 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32534       conftest$ac_exeext conftest.$ac_ext
32535 LIBS=$ac_check_lib_save_LIBS
32536 fi
32537 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
32538 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; }
32539 if test $ac_cv_lib_posix_remove = yes; then
32540   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
32541 fi
32542
32543     fi
32544
32545     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
32546     { echo "$as_me:$LINENO: checking for shmat" >&5
32547 echo $ECHO_N "checking for shmat... $ECHO_C" >&6; }
32548 if test "${ac_cv_func_shmat+set}" = set; then
32549   echo $ECHO_N "(cached) $ECHO_C" >&6
32550 else
32551   cat >conftest.$ac_ext <<_ACEOF
32552 /* confdefs.h.  */
32553 _ACEOF
32554 cat confdefs.h >>conftest.$ac_ext
32555 cat >>conftest.$ac_ext <<_ACEOF
32556 /* end confdefs.h.  */
32557 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
32558    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32559 #define shmat innocuous_shmat
32560
32561 /* System header to define __stub macros and hopefully few prototypes,
32562     which can conflict with char shmat (); below.
32563     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32564     <limits.h> exists even on freestanding compilers.  */
32565
32566 #ifdef __STDC__
32567 # include <limits.h>
32568 #else
32569 # include <assert.h>
32570 #endif
32571
32572 #undef shmat
32573
32574 /* Override any GCC internal prototype to avoid an error.
32575    Use char because int might match the return type of a GCC
32576    builtin and then its argument prototype would still apply.  */
32577 #ifdef __cplusplus
32578 extern "C"
32579 #endif
32580 char shmat ();
32581 /* The GNU C library defines this for functions which it implements
32582     to always fail with ENOSYS.  Some functions are actually named
32583     something starting with __ and the normal name is an alias.  */
32584 #if defined __stub_shmat || defined __stub___shmat
32585 choke me
32586 #endif
32587
32588 int
32589 main ()
32590 {
32591 return shmat ();
32592   ;
32593   return 0;
32594 }
32595 _ACEOF
32596 rm -f conftest.$ac_objext conftest$ac_exeext
32597 if { (ac_try="$ac_link"
32598 case "(($ac_try" in
32599   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32600   *) ac_try_echo=$ac_try;;
32601 esac
32602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32603   (eval "$ac_link") 2>conftest.er1
32604   ac_status=$?
32605   grep -v '^ *+' conftest.er1 >conftest.err
32606   rm -f conftest.er1
32607   cat conftest.err >&5
32608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32609   (exit $ac_status); } && {
32610          test -z "$ac_c_werror_flag" ||
32611          test ! -s conftest.err
32612        } && test -s conftest$ac_exeext &&
32613        $as_test_x conftest$ac_exeext; then
32614   ac_cv_func_shmat=yes
32615 else
32616   echo "$as_me: failed program was:" >&5
32617 sed 's/^/| /' conftest.$ac_ext >&5
32618
32619         ac_cv_func_shmat=no
32620 fi
32621
32622 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32623       conftest$ac_exeext conftest.$ac_ext
32624 fi
32625 { echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
32626 echo "${ECHO_T}$ac_cv_func_shmat" >&6; }
32627
32628     if test $ac_cv_func_shmat = no; then
32629       { echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
32630 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; }
32631 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
32632   echo $ECHO_N "(cached) $ECHO_C" >&6
32633 else
32634   ac_check_lib_save_LIBS=$LIBS
32635 LIBS="-lipc  $LIBS"
32636 cat >conftest.$ac_ext <<_ACEOF
32637 /* confdefs.h.  */
32638 _ACEOF
32639 cat confdefs.h >>conftest.$ac_ext
32640 cat >>conftest.$ac_ext <<_ACEOF
32641 /* end confdefs.h.  */
32642
32643 /* Override any GCC internal prototype to avoid an error.
32644    Use char because int might match the return type of a GCC
32645    builtin and then its argument prototype would still apply.  */
32646 #ifdef __cplusplus
32647 extern "C"
32648 #endif
32649 char shmat ();
32650 int
32651 main ()
32652 {
32653 return shmat ();
32654   ;
32655   return 0;
32656 }
32657 _ACEOF
32658 rm -f conftest.$ac_objext conftest$ac_exeext
32659 if { (ac_try="$ac_link"
32660 case "(($ac_try" in
32661   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32662   *) ac_try_echo=$ac_try;;
32663 esac
32664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32665   (eval "$ac_link") 2>conftest.er1
32666   ac_status=$?
32667   grep -v '^ *+' conftest.er1 >conftest.err
32668   rm -f conftest.er1
32669   cat conftest.err >&5
32670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32671   (exit $ac_status); } && {
32672          test -z "$ac_c_werror_flag" ||
32673          test ! -s conftest.err
32674        } && test -s conftest$ac_exeext &&
32675        $as_test_x conftest$ac_exeext; then
32676   ac_cv_lib_ipc_shmat=yes
32677 else
32678   echo "$as_me: failed program was:" >&5
32679 sed 's/^/| /' conftest.$ac_ext >&5
32680
32681         ac_cv_lib_ipc_shmat=no
32682 fi
32683
32684 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32685       conftest$ac_exeext conftest.$ac_ext
32686 LIBS=$ac_check_lib_save_LIBS
32687 fi
32688 { echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
32689 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; }
32690 if test $ac_cv_lib_ipc_shmat = yes; then
32691   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
32692 fi
32693
32694     fi
32695   fi
32696
32697   # Check for libraries that X11R6 Xt/Xaw programs need.
32698   ac_save_LDFLAGS=$LDFLAGS
32699   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
32700   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
32701   # check for ICE first), but we must link in the order -lSM -lICE or
32702   # we get undefined symbols.  So assume we have SM if we have ICE.
32703   # These have to be linked with before -lX11, unlike the other
32704   # libraries we check for below, so use a different variable.
32705   # John Interrante, Karl Berry
32706   { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
32707 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; }
32708 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
32709   echo $ECHO_N "(cached) $ECHO_C" >&6
32710 else
32711   ac_check_lib_save_LIBS=$LIBS
32712 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
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 /* Override any GCC internal prototype to avoid an error.
32721    Use char because int might match the return type of a GCC
32722    builtin and then its argument prototype would still apply.  */
32723 #ifdef __cplusplus
32724 extern "C"
32725 #endif
32726 char IceConnectionNumber ();
32727 int
32728 main ()
32729 {
32730 return IceConnectionNumber ();
32731   ;
32732   return 0;
32733 }
32734 _ACEOF
32735 rm -f conftest.$ac_objext conftest$ac_exeext
32736 if { (ac_try="$ac_link"
32737 case "(($ac_try" in
32738   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32739   *) ac_try_echo=$ac_try;;
32740 esac
32741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32742   (eval "$ac_link") 2>conftest.er1
32743   ac_status=$?
32744   grep -v '^ *+' conftest.er1 >conftest.err
32745   rm -f conftest.er1
32746   cat conftest.err >&5
32747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32748   (exit $ac_status); } && {
32749          test -z "$ac_c_werror_flag" ||
32750          test ! -s conftest.err
32751        } && test -s conftest$ac_exeext &&
32752        $as_test_x conftest$ac_exeext; then
32753   ac_cv_lib_ICE_IceConnectionNumber=yes
32754 else
32755   echo "$as_me: failed program was:" >&5
32756 sed 's/^/| /' conftest.$ac_ext >&5
32757
32758         ac_cv_lib_ICE_IceConnectionNumber=no
32759 fi
32760
32761 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32762       conftest$ac_exeext conftest.$ac_ext
32763 LIBS=$ac_check_lib_save_LIBS
32764 fi
32765 { echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
32766 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
32767 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
32768   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
32769 fi
32770
32771   LDFLAGS=$ac_save_LDFLAGS
32772
32773 fi
32774
32775
32776         if test "$no_x" = "yes"; then
32777           { { echo "$as_me:$LINENO: error: X11 not found, please use --x-includes and/or --x-libraries options (see config.log for details)" >&5
32778 echo "$as_me: error: X11 not found, please use --x-includes and/or --x-libraries options (see config.log for details)" >&2;}
32779    { (exit 1); exit 1; }; }
32780         fi
32781
32782                                 GUI_TK_LIBRARY=`echo $X_LIBS | sed 's/ -LNONE//' | sed 's/ -RNONE//'`
32783         TOOLKIT_INCLUDE=`echo $X_CFLAGS | sed 's/ -INONE//'`
32784         AFMINSTALL=afminstall
32785         COMPILED_X_PROGRAM=0
32786
32787     fi
32788
32789     if test "$wxUSE_X11" = 1; then
32790         if test "$wxUSE_NANOX" = "yes"; then
32791             { echo "$as_me:$LINENO: checking for MicroWindows/NanoX distribution" >&5
32792 echo $ECHO_N "checking for MicroWindows/NanoX distribution... $ECHO_C" >&6; }
32793             if test "x$MICROWIN" = x ; then
32794                 { echo "$as_me:$LINENO: result: not found" >&5
32795 echo "${ECHO_T}not found" >&6; }
32796                 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&5
32797 echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&2;}
32798    { (exit 1); exit 1; }; }
32799             else
32800                 { echo "$as_me:$LINENO: result: $MICROWIN" >&5
32801 echo "${ECHO_T}$MICROWIN" >&6; }
32802                 cat >>confdefs.h <<\_ACEOF
32803 #define wxUSE_NANOX 1
32804 _ACEOF
32805
32806             fi
32807         fi
32808
32809         if test "$wxUSE_UNICODE" = "yes"; then
32810
32811
32812 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
32813         if test -n "$ac_tool_prefix"; then
32814   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
32815 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
32816 { echo "$as_me:$LINENO: checking for $ac_word" >&5
32817 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
32818 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
32819   echo $ECHO_N "(cached) $ECHO_C" >&6
32820 else
32821   case $PKG_CONFIG in
32822   [\\/]* | ?:[\\/]*)
32823   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
32824   ;;
32825   *)
32826   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32827 for as_dir in $PATH
32828 do
32829   IFS=$as_save_IFS
32830   test -z "$as_dir" && as_dir=.
32831   for ac_exec_ext in '' $ac_executable_extensions; do
32832   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32833     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
32834     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
32835     break 2
32836   fi
32837 done
32838 done
32839 IFS=$as_save_IFS
32840
32841   ;;
32842 esac
32843 fi
32844 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
32845 if test -n "$PKG_CONFIG"; then
32846   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
32847 echo "${ECHO_T}$PKG_CONFIG" >&6; }
32848 else
32849   { echo "$as_me:$LINENO: result: no" >&5
32850 echo "${ECHO_T}no" >&6; }
32851 fi
32852
32853
32854 fi
32855 if test -z "$ac_cv_path_PKG_CONFIG"; then
32856   ac_pt_PKG_CONFIG=$PKG_CONFIG
32857   # Extract the first word of "pkg-config", so it can be a program name with args.
32858 set dummy pkg-config; ac_word=$2
32859 { echo "$as_me:$LINENO: checking for $ac_word" >&5
32860 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
32861 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
32862   echo $ECHO_N "(cached) $ECHO_C" >&6
32863 else
32864   case $ac_pt_PKG_CONFIG in
32865   [\\/]* | ?:[\\/]*)
32866   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
32867   ;;
32868   *)
32869   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32870 for as_dir in $PATH
32871 do
32872   IFS=$as_save_IFS
32873   test -z "$as_dir" && as_dir=.
32874   for ac_exec_ext in '' $ac_executable_extensions; do
32875   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32876     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
32877     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
32878     break 2
32879   fi
32880 done
32881 done
32882 IFS=$as_save_IFS
32883
32884   ;;
32885 esac
32886 fi
32887 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
32888 if test -n "$ac_pt_PKG_CONFIG"; then
32889   { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
32890 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
32891 else
32892   { echo "$as_me:$LINENO: result: no" >&5
32893 echo "${ECHO_T}no" >&6; }
32894 fi
32895
32896   if test "x$ac_pt_PKG_CONFIG" = x; then
32897     PKG_CONFIG=""
32898   else
32899     case $cross_compiling:$ac_tool_warned in
32900 yes:)
32901 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
32902 whose name does not start with the host triplet.  If you think this
32903 configuration is useful to you, please write to autoconf@gnu.org." >&5
32904 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
32905 whose name does not start with the host triplet.  If you think this
32906 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
32907 ac_tool_warned=yes ;;
32908 esac
32909     PKG_CONFIG=$ac_pt_PKG_CONFIG
32910   fi
32911 else
32912   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
32913 fi
32914
32915 fi
32916 if test -n "$PKG_CONFIG"; then
32917         _pkg_min_version=0.9.0
32918         { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
32919 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
32920         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
32921                 { echo "$as_me:$LINENO: result: yes" >&5
32922 echo "${ECHO_T}yes" >&6; }
32923         else
32924                 { echo "$as_me:$LINENO: result: no" >&5
32925 echo "${ECHO_T}no" >&6; }
32926                 PKG_CONFIG=""
32927         fi
32928
32929 fi
32930
32931
32932 pkg_failed=no
32933 { echo "$as_me:$LINENO: checking for PANGOX" >&5
32934 echo $ECHO_N "checking for PANGOX... $ECHO_C" >&6; }
32935
32936 if test -n "$PKG_CONFIG"; then
32937     if test -n "$PANGOX_CFLAGS"; then
32938         pkg_cv_PANGOX_CFLAGS="$PANGOX_CFLAGS"
32939     else
32940         if test -n "$PKG_CONFIG" && \
32941     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangox\"") >&5
32942   ($PKG_CONFIG --exists --print-errors "pangox") 2>&5
32943   ac_status=$?
32944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32945   (exit $ac_status); }; then
32946   pkg_cv_PANGOX_CFLAGS=`$PKG_CONFIG --cflags "pangox" 2>/dev/null`
32947 else
32948   pkg_failed=yes
32949 fi
32950     fi
32951 else
32952         pkg_failed=untried
32953 fi
32954 if test -n "$PKG_CONFIG"; then
32955     if test -n "$PANGOX_LIBS"; then
32956         pkg_cv_PANGOX_LIBS="$PANGOX_LIBS"
32957     else
32958         if test -n "$PKG_CONFIG" && \
32959     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangox\"") >&5
32960   ($PKG_CONFIG --exists --print-errors "pangox") 2>&5
32961   ac_status=$?
32962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32963   (exit $ac_status); }; then
32964   pkg_cv_PANGOX_LIBS=`$PKG_CONFIG --libs "pangox" 2>/dev/null`
32965 else
32966   pkg_failed=yes
32967 fi
32968     fi
32969 else
32970         pkg_failed=untried
32971 fi
32972
32973
32974
32975 if test $pkg_failed = yes; then
32976
32977 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
32978         _pkg_short_errors_supported=yes
32979 else
32980         _pkg_short_errors_supported=no
32981 fi
32982         if test $_pkg_short_errors_supported = yes; then
32983                 PANGOX_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "pangox"`
32984         else
32985                 PANGOX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangox"`
32986         fi
32987         # Put the nasty error message in config.log where it belongs
32988         echo "$PANGOX_PKG_ERRORS" >&5
32989
32990
32991                     { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5
32992 echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;}
32993    { (exit 1); exit 1; }; }
32994
32995
32996 elif test $pkg_failed = untried; then
32997
32998                     { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5
32999 echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;}
33000    { (exit 1); exit 1; }; }
33001
33002
33003 else
33004         PANGOX_CFLAGS=$pkg_cv_PANGOX_CFLAGS
33005         PANGOX_LIBS=$pkg_cv_PANGOX_LIBS
33006         { echo "$as_me:$LINENO: result: yes" >&5
33007 echo "${ECHO_T}yes" >&6; }
33008
33009                     CFLAGS="$PANGOX_CFLAGS $CFLAGS"
33010                     CXXFLAGS="$PANGOX_CFLAGS $CXXFLAGS"
33011                     GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOX_LIBS"
33012
33013 fi
33014
33015 pkg_failed=no
33016 { echo "$as_me:$LINENO: checking for PANGOFT2" >&5
33017 echo $ECHO_N "checking for PANGOFT2... $ECHO_C" >&6; }
33018
33019 if test -n "$PKG_CONFIG"; then
33020     if test -n "$PANGOFT2_CFLAGS"; then
33021         pkg_cv_PANGOFT2_CFLAGS="$PANGOFT2_CFLAGS"
33022     else
33023         if test -n "$PKG_CONFIG" && \
33024     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangoft2\"") >&5
33025   ($PKG_CONFIG --exists --print-errors "pangoft2") 2>&5
33026   ac_status=$?
33027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33028   (exit $ac_status); }; then
33029   pkg_cv_PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2" 2>/dev/null`
33030 else
33031   pkg_failed=yes
33032 fi
33033     fi
33034 else
33035         pkg_failed=untried
33036 fi
33037 if test -n "$PKG_CONFIG"; then
33038     if test -n "$PANGOFT2_LIBS"; then
33039         pkg_cv_PANGOFT2_LIBS="$PANGOFT2_LIBS"
33040     else
33041         if test -n "$PKG_CONFIG" && \
33042     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangoft2\"") >&5
33043   ($PKG_CONFIG --exists --print-errors "pangoft2") 2>&5
33044   ac_status=$?
33045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33046   (exit $ac_status); }; then
33047   pkg_cv_PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2" 2>/dev/null`
33048 else
33049   pkg_failed=yes
33050 fi
33051     fi
33052 else
33053         pkg_failed=untried
33054 fi
33055
33056
33057
33058 if test $pkg_failed = yes; then
33059
33060 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
33061         _pkg_short_errors_supported=yes
33062 else
33063         _pkg_short_errors_supported=no
33064 fi
33065         if test $_pkg_short_errors_supported = yes; then
33066                 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "pangoft2"`
33067         else
33068                 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
33069         fi
33070         # Put the nasty error message in config.log where it belongs
33071         echo "$PANGOFT2_PKG_ERRORS" >&5
33072
33073
33074                     { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
33075 echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
33076                     wxUSE_PRINTING_ARCHITECTURE="no"
33077
33078
33079 elif test $pkg_failed = untried; then
33080
33081                     { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
33082 echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
33083                     wxUSE_PRINTING_ARCHITECTURE="no"
33084
33085
33086 else
33087         PANGOFT2_CFLAGS=$pkg_cv_PANGOFT2_CFLAGS
33088         PANGOFT2_LIBS=$pkg_cv_PANGOFT2_LIBS
33089         { echo "$as_me:$LINENO: result: yes" >&5
33090 echo "${ECHO_T}yes" >&6; }
33091
33092                     CFLAGS="$PANGOFT2_CFLAGS $CFLAGS"
33093                     CXXFLAGS="$PANGOFT2_CFLAGS $CXXFLAGS"
33094                     GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS"
33095
33096 fi
33097
33098 pkg_failed=no
33099 { echo "$as_me:$LINENO: checking for PANGOXFT" >&5
33100 echo $ECHO_N "checking for PANGOXFT... $ECHO_C" >&6; }
33101
33102 if test -n "$PKG_CONFIG"; then
33103     if test -n "$PANGOXFT_CFLAGS"; then
33104         pkg_cv_PANGOXFT_CFLAGS="$PANGOXFT_CFLAGS"
33105     else
33106         if test -n "$PKG_CONFIG" && \
33107     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangoxft\"") >&5
33108   ($PKG_CONFIG --exists --print-errors "pangoxft") 2>&5
33109   ac_status=$?
33110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33111   (exit $ac_status); }; then
33112   pkg_cv_PANGOXFT_CFLAGS=`$PKG_CONFIG --cflags "pangoxft" 2>/dev/null`
33113 else
33114   pkg_failed=yes
33115 fi
33116     fi
33117 else
33118         pkg_failed=untried
33119 fi
33120 if test -n "$PKG_CONFIG"; then
33121     if test -n "$PANGOXFT_LIBS"; then
33122         pkg_cv_PANGOXFT_LIBS="$PANGOXFT_LIBS"
33123     else
33124         if test -n "$PKG_CONFIG" && \
33125     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangoxft\"") >&5
33126   ($PKG_CONFIG --exists --print-errors "pangoxft") 2>&5
33127   ac_status=$?
33128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33129   (exit $ac_status); }; then
33130   pkg_cv_PANGOXFT_LIBS=`$PKG_CONFIG --libs "pangoxft" 2>/dev/null`
33131 else
33132   pkg_failed=yes
33133 fi
33134     fi
33135 else
33136         pkg_failed=untried
33137 fi
33138
33139
33140
33141 if test $pkg_failed = yes; then
33142
33143 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
33144         _pkg_short_errors_supported=yes
33145 else
33146         _pkg_short_errors_supported=no
33147 fi
33148         if test $_pkg_short_errors_supported = yes; then
33149                 PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "pangoxft"`
33150         else
33151                 PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoxft"`
33152         fi
33153         # Put the nasty error message in config.log where it belongs
33154         echo "$PANGOXFT_PKG_ERRORS" >&5
33155
33156
33157                     { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5
33158 echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;}
33159
33160
33161 elif test $pkg_failed = untried; then
33162
33163                     { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5
33164 echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;}
33165
33166
33167 else
33168         PANGOXFT_CFLAGS=$pkg_cv_PANGOXFT_CFLAGS
33169         PANGOXFT_LIBS=$pkg_cv_PANGOXFT_LIBS
33170         { echo "$as_me:$LINENO: result: yes" >&5
33171 echo "${ECHO_T}yes" >&6; }
33172
33173                     cat >>confdefs.h <<\_ACEOF
33174 #define HAVE_PANGO_XFT 1
33175 _ACEOF
33176
33177                     CFLAGS="$PANGOXFT_CFLAGS $CFLAGS"
33178                     CXXFLAGS="$PANGOXFT_CFLAGS $CXXFLAGS"
33179                     GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOXFT_LIBS"
33180
33181 fi
33182             save_LIBS="$LIBS"
33183             LIBS="$LIBS $PANGOX_LIBS"
33184
33185 for ac_func in pango_font_family_is_monospace
33186 do
33187 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33188 { echo "$as_me:$LINENO: checking for $ac_func" >&5
33189 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
33190 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
33191   echo $ECHO_N "(cached) $ECHO_C" >&6
33192 else
33193   cat >conftest.$ac_ext <<_ACEOF
33194 /* confdefs.h.  */
33195 _ACEOF
33196 cat confdefs.h >>conftest.$ac_ext
33197 cat >>conftest.$ac_ext <<_ACEOF
33198 /* end confdefs.h.  */
33199 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33200    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
33201 #define $ac_func innocuous_$ac_func
33202
33203 /* System header to define __stub macros and hopefully few prototypes,
33204     which can conflict with char $ac_func (); below.
33205     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33206     <limits.h> exists even on freestanding compilers.  */
33207
33208 #ifdef __STDC__
33209 # include <limits.h>
33210 #else
33211 # include <assert.h>
33212 #endif
33213
33214 #undef $ac_func
33215
33216 /* Override any GCC internal prototype to avoid an error.
33217    Use char because int might match the return type of a GCC
33218    builtin and then its argument prototype would still apply.  */
33219 #ifdef __cplusplus
33220 extern "C"
33221 #endif
33222 char $ac_func ();
33223 /* The GNU C library defines this for functions which it implements
33224     to always fail with ENOSYS.  Some functions are actually named
33225     something starting with __ and the normal name is an alias.  */
33226 #if defined __stub_$ac_func || defined __stub___$ac_func
33227 choke me
33228 #endif
33229
33230 int
33231 main ()
33232 {
33233 return $ac_func ();
33234   ;
33235   return 0;
33236 }
33237 _ACEOF
33238 rm -f conftest.$ac_objext conftest$ac_exeext
33239 if { (ac_try="$ac_link"
33240 case "(($ac_try" in
33241   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33242   *) ac_try_echo=$ac_try;;
33243 esac
33244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33245   (eval "$ac_link") 2>conftest.er1
33246   ac_status=$?
33247   grep -v '^ *+' conftest.er1 >conftest.err
33248   rm -f conftest.er1
33249   cat conftest.err >&5
33250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33251   (exit $ac_status); } && {
33252          test -z "$ac_c_werror_flag" ||
33253          test ! -s conftest.err
33254        } && test -s conftest$ac_exeext &&
33255        $as_test_x conftest$ac_exeext; then
33256   eval "$as_ac_var=yes"
33257 else
33258   echo "$as_me: failed program was:" >&5
33259 sed 's/^/| /' conftest.$ac_ext >&5
33260
33261         eval "$as_ac_var=no"
33262 fi
33263
33264 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33265       conftest$ac_exeext conftest.$ac_ext
33266 fi
33267 ac_res=`eval echo '${'$as_ac_var'}'`
33268                { echo "$as_me:$LINENO: result: $ac_res" >&5
33269 echo "${ECHO_T}$ac_res" >&6; }
33270 if test `eval echo '${'$as_ac_var'}'` = yes; then
33271   cat >>confdefs.h <<_ACEOF
33272 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33273 _ACEOF
33274
33275 fi
33276 done
33277
33278             LIBS="$save_LIBS"
33279         fi
33280
33281         wxUSE_UNIVERSAL="yes"
33282
33283         if test "$wxUSE_NANOX" = "yes"; then
33284             TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE"
33285             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"
33286             GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a"
33287         else
33288             GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11"
33289         fi
33290
33291         TOOLKIT=X11
33292         GUIDIST=X11_DIST
33293     fi
33294
33295     if test "$wxUSE_MOTIF" = 1; then
33296         { echo "$as_me:$LINENO: checking for Motif/Lesstif headers" >&5
33297 echo $ECHO_N "checking for Motif/Lesstif headers... $ECHO_C" >&6; }
33298
33299 ac_find_includes=
33300 for ac_dir in $SEARCH_INCLUDE /usr/include
33301   do
33302     if test -f "$ac_dir/Xm/Xm.h"; then
33303       ac_find_includes=$ac_dir
33304       break
33305     fi
33306   done
33307
33308         if test "$ac_find_includes" != "" ; then
33309             { echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
33310 echo "${ECHO_T}found in $ac_find_includes" >&6; }
33311
33312     if test "x$ac_find_includes" = "x/usr/include"; then
33313     ac_path_to_include=""
33314   else
33315     echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
33316     result=$?
33317     if test $result = 0; then
33318       ac_path_to_include=""
33319     else
33320       ac_path_to_include=" -I$ac_find_includes"
33321     fi
33322   fi
33323
33324             TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include"
33325         else
33326             save_CFLAGS=$CFLAGS
33327             CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
33328
33329             cat >conftest.$ac_ext <<_ACEOF
33330 /* confdefs.h.  */
33331 _ACEOF
33332 cat confdefs.h >>conftest.$ac_ext
33333 cat >>conftest.$ac_ext <<_ACEOF
33334 /* end confdefs.h.  */
33335
33336                     #include <Xm/Xm.h>
33337
33338 int
33339 main ()
33340 {
33341
33342                     int version;
33343                     version = xmUseVersion;
33344
33345   ;
33346   return 0;
33347 }
33348 _ACEOF
33349 rm -f conftest.$ac_objext
33350 if { (ac_try="$ac_compile"
33351 case "(($ac_try" in
33352   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33353   *) ac_try_echo=$ac_try;;
33354 esac
33355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33356   (eval "$ac_compile") 2>conftest.er1
33357   ac_status=$?
33358   grep -v '^ *+' conftest.er1 >conftest.err
33359   rm -f conftest.er1
33360   cat conftest.err >&5
33361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33362   (exit $ac_status); } && {
33363          test -z "$ac_c_werror_flag" ||
33364          test ! -s conftest.err
33365        } && test -s conftest.$ac_objext; then
33366
33367                     { echo "$as_me:$LINENO: result: found in default search path" >&5
33368 echo "${ECHO_T}found in default search path" >&6; }
33369                     COMPILED_X_PROGRAM=1
33370
33371 else
33372   echo "$as_me: failed program was:" >&5
33373 sed 's/^/| /' conftest.$ac_ext >&5
33374
33375
33376                     { echo "$as_me:$LINENO: result: no" >&5
33377 echo "${ECHO_T}no" >&6; }
33378                     { { echo "$as_me:$LINENO: error: please set CPPFLAGS to contain the location of Xm/Xm.h" >&5
33379 echo "$as_me: error: please set CPPFLAGS to contain the location of Xm/Xm.h" >&2;}
33380    { (exit 1); exit 1; }; }
33381
33382
33383 fi
33384
33385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33386
33387             CFLAGS=$save_CFLAGS
33388         fi
33389
33390
33391         { echo "$as_me:$LINENO: checking for Motif/Lesstif library" >&5
33392 echo $ECHO_N "checking for Motif/Lesstif library... $ECHO_C" >&6; }
33393
33394   ac_find_libraries=
33395   for ac_dir in $SEARCH_LIB
33396   do
33397     for ac_extension in a so sl dylib dll.a; do
33398       if test -f "$ac_dir/libXm.$ac_extension"; then
33399         ac_find_libraries=$ac_dir
33400         break 2
33401       fi
33402     done
33403   done
33404
33405
33406         if test "x$ac_find_libraries" != "x" ; then
33407             { echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
33408 echo "${ECHO_T}found in $ac_find_libraries" >&6; }
33409
33410
33411     if test "$ac_find_libraries" = "default location"; then
33412     ac_path_to_link=""
33413   else
33414     echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
33415     result=$?
33416     if test $result = 0; then
33417       ac_path_to_link=""
33418     else
33419       ac_path_to_link=" -L$ac_find_libraries"
33420     fi
33421   fi
33422
33423             GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
33424         else
33425                                                 save_CFLAGS=$CFLAGS
33426             CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
33427             save_LIBS="$LIBS"
33428             LIBS="$GUI_TK_LIBRARY -lXm -lXmu -lXext -lX11"
33429
33430             cat >conftest.$ac_ext <<_ACEOF
33431 /* confdefs.h.  */
33432 _ACEOF
33433 cat confdefs.h >>conftest.$ac_ext
33434 cat >>conftest.$ac_ext <<_ACEOF
33435 /* end confdefs.h.  */
33436
33437                     #include <Xm/Xm.h>
33438
33439 int
33440 main ()
33441 {
33442
33443                     int version;
33444                     version = xmUseVersion;
33445
33446   ;
33447   return 0;
33448 }
33449 _ACEOF
33450 rm -f conftest.$ac_objext conftest$ac_exeext
33451 if { (ac_try="$ac_link"
33452 case "(($ac_try" in
33453   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33454   *) ac_try_echo=$ac_try;;
33455 esac
33456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33457   (eval "$ac_link") 2>conftest.er1
33458   ac_status=$?
33459   grep -v '^ *+' conftest.er1 >conftest.err
33460   rm -f conftest.er1
33461   cat conftest.err >&5
33462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33463   (exit $ac_status); } && {
33464          test -z "$ac_c_werror_flag" ||
33465          test ! -s conftest.err
33466        } && test -s conftest$ac_exeext &&
33467        $as_test_x conftest$ac_exeext; then
33468
33469                     { echo "$as_me:$LINENO: result: found in default search path" >&5
33470 echo "${ECHO_T}found in default search path" >&6; }
33471                     COMPILED_X_PROGRAM=1
33472
33473 else
33474   echo "$as_me: failed program was:" >&5
33475 sed 's/^/| /' conftest.$ac_ext >&5
33476
33477
33478                     { echo "$as_me:$LINENO: result: no" >&5
33479 echo "${ECHO_T}no" >&6; }
33480                     { { echo "$as_me:$LINENO: error: please set LDFLAGS to contain the location of libXm" >&5
33481 echo "$as_me: error: please set LDFLAGS to contain the location of libXm" >&2;}
33482    { (exit 1); exit 1; }; }
33483
33484
33485 fi
33486
33487 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33488       conftest$ac_exeext conftest.$ac_ext
33489
33490             CFLAGS=$save_CFLAGS
33491             LIBS="$save_LIBS"
33492         fi
33493
33494         { echo "$as_me:$LINENO: checking if we need -lXp and/or -lSM -lICE" >&5
33495 echo $ECHO_N "checking if we need -lXp and/or -lSM -lICE... $ECHO_C" >&6; }
33496         libp_link=""
33497         libsm_ice_link=""
33498         libs_found=0
33499         for libp in "" " -lXp"; do
33500             if test "$libs_found" = 0; then
33501                 for libsm_ice in "" " -lSM -lICE"; do
33502                     if test "$libs_found" = 0; then
33503                         save_LIBS="$LIBS"
33504                         LIBS="$GUI_TK_LIBRARY -lXm ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11"
33505                         save_CFLAGS=$CFLAGS
33506                         CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
33507
33508                         cat >conftest.$ac_ext <<_ACEOF
33509 /* confdefs.h.  */
33510 _ACEOF
33511 cat confdefs.h >>conftest.$ac_ext
33512 cat >>conftest.$ac_ext <<_ACEOF
33513 /* end confdefs.h.  */
33514
33515                                 #include <Xm/Xm.h>
33516                                 #include <Xm/List.h>
33517
33518 int
33519 main ()
33520 {
33521
33522                                 XmString string = NULL;
33523                                 Widget w = NULL;
33524                                 int position = 0;
33525                                 XmListAddItem(w, string, position);
33526
33527   ;
33528   return 0;
33529 }
33530 _ACEOF
33531 rm -f conftest.$ac_objext conftest$ac_exeext
33532 if { (ac_try="$ac_link"
33533 case "(($ac_try" in
33534   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33535   *) ac_try_echo=$ac_try;;
33536 esac
33537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33538   (eval "$ac_link") 2>conftest.er1
33539   ac_status=$?
33540   grep -v '^ *+' conftest.er1 >conftest.err
33541   rm -f conftest.er1
33542   cat conftest.err >&5
33543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33544   (exit $ac_status); } && {
33545          test -z "$ac_c_werror_flag" ||
33546          test ! -s conftest.err
33547        } && test -s conftest$ac_exeext &&
33548        $as_test_x conftest$ac_exeext; then
33549
33550                                 libp_link="$libp"
33551                                 libsm_ice_link="$libsm_ice"
33552                                 { echo "$as_me:$LINENO: result: need${libp_link}${libsm_ice_link}" >&5
33553 echo "${ECHO_T}need${libp_link}${libsm_ice_link}" >&6; }
33554                                 libs_found=1
33555
33556 else
33557   echo "$as_me: failed program was:" >&5
33558 sed 's/^/| /' conftest.$ac_ext >&5
33559
33560
33561
33562 fi
33563
33564 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33565       conftest$ac_exeext conftest.$ac_ext
33566
33567                         LIBS="$save_LIBS"
33568                         CFLAGS=$save_CFLAGS
33569                     fi
33570                 done
33571             fi
33572         done
33573
33574         if test "$libs_found" = 0; then
33575             { echo "$as_me:$LINENO: result: can't find the right libraries" >&5
33576 echo "${ECHO_T}can't find the right libraries" >&6; }
33577             { { echo "$as_me:$LINENO: error: can't link a simple motif program" >&5
33578 echo "$as_me: error: can't link a simple motif program" >&2;}
33579    { (exit 1); exit 1; }; }
33580         fi
33581
33582                         { echo "$as_me:$LINENO: checking for SgCreateList in -lSgm" >&5
33583 echo $ECHO_N "checking for SgCreateList in -lSgm... $ECHO_C" >&6; }
33584 if test "${ac_cv_lib_Sgm_SgCreateList+set}" = set; then
33585   echo $ECHO_N "(cached) $ECHO_C" >&6
33586 else
33587   ac_check_lib_save_LIBS=$LIBS
33588 LIBS="-lSgm  $LIBS"
33589 cat >conftest.$ac_ext <<_ACEOF
33590 /* confdefs.h.  */
33591 _ACEOF
33592 cat confdefs.h >>conftest.$ac_ext
33593 cat >>conftest.$ac_ext <<_ACEOF
33594 /* end confdefs.h.  */
33595
33596 /* Override any GCC internal prototype to avoid an error.
33597    Use char because int might match the return type of a GCC
33598    builtin and then its argument prototype would still apply.  */
33599 #ifdef __cplusplus
33600 extern "C"
33601 #endif
33602 char SgCreateList ();
33603 int
33604 main ()
33605 {
33606 return SgCreateList ();
33607   ;
33608   return 0;
33609 }
33610 _ACEOF
33611 rm -f conftest.$ac_objext conftest$ac_exeext
33612 if { (ac_try="$ac_link"
33613 case "(($ac_try" in
33614   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33615   *) ac_try_echo=$ac_try;;
33616 esac
33617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33618   (eval "$ac_link") 2>conftest.er1
33619   ac_status=$?
33620   grep -v '^ *+' conftest.er1 >conftest.err
33621   rm -f conftest.er1
33622   cat conftest.err >&5
33623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33624   (exit $ac_status); } && {
33625          test -z "$ac_c_werror_flag" ||
33626          test ! -s conftest.err
33627        } && test -s conftest$ac_exeext &&
33628        $as_test_x conftest$ac_exeext; then
33629   ac_cv_lib_Sgm_SgCreateList=yes
33630 else
33631   echo "$as_me: failed program was:" >&5
33632 sed 's/^/| /' conftest.$ac_ext >&5
33633
33634         ac_cv_lib_Sgm_SgCreateList=no
33635 fi
33636
33637 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33638       conftest$ac_exeext conftest.$ac_ext
33639 LIBS=$ac_check_lib_save_LIBS
33640 fi
33641 { echo "$as_me:$LINENO: result: $ac_cv_lib_Sgm_SgCreateList" >&5
33642 echo "${ECHO_T}$ac_cv_lib_Sgm_SgCreateList" >&6; }
33643 if test $ac_cv_lib_Sgm_SgCreateList = yes; then
33644   libsgm_link=" -lSgm"
33645 fi
33646
33647
33648         save_CFLAGS=$CFLAGS
33649         CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
33650
33651         { echo "$as_me:$LINENO: checking for Motif 2" >&5
33652 echo $ECHO_N "checking for Motif 2... $ECHO_C" >&6; }
33653 if test "${wx_cv_lib_motif2+set}" = set; then
33654   echo $ECHO_N "(cached) $ECHO_C" >&6
33655 else
33656   cat >conftest.$ac_ext <<_ACEOF
33657 /* confdefs.h.  */
33658 _ACEOF
33659 cat confdefs.h >>conftest.$ac_ext
33660 cat >>conftest.$ac_ext <<_ACEOF
33661 /* end confdefs.h.  */
33662
33663                             #include <Xm/Xm.h>
33664
33665 int
33666 main ()
33667 {
33668
33669                             #if XmVersion < 2000
33670                             Not Motif 2
33671                             #endif
33672
33673   ;
33674   return 0;
33675 }
33676 _ACEOF
33677 rm -f conftest.$ac_objext
33678 if { (ac_try="$ac_compile"
33679 case "(($ac_try" in
33680   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33681   *) ac_try_echo=$ac_try;;
33682 esac
33683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33684   (eval "$ac_compile") 2>conftest.er1
33685   ac_status=$?
33686   grep -v '^ *+' conftest.er1 >conftest.err
33687   rm -f conftest.er1
33688   cat conftest.err >&5
33689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33690   (exit $ac_status); } && {
33691          test -z "$ac_c_werror_flag" ||
33692          test ! -s conftest.err
33693        } && test -s conftest.$ac_objext; then
33694   wx_cv_lib_motif2="yes"
33695 else
33696   echo "$as_me: failed program was:" >&5
33697 sed 's/^/| /' conftest.$ac_ext >&5
33698
33699         wx_cv_lib_motif2="no"
33700 fi
33701
33702 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33703 fi
33704 { echo "$as_me:$LINENO: result: $wx_cv_lib_motif2" >&5
33705 echo "${ECHO_T}$wx_cv_lib_motif2" >&6; }
33706         if test "$wx_cv_lib_motif2" = "yes"; then
33707             cat >>confdefs.h <<\_ACEOF
33708 #define __WXMOTIF20__ 1
33709 _ACEOF
33710
33711         else
33712             cat >>confdefs.h <<\_ACEOF
33713 #define __WXMOTIF20__ 0
33714 _ACEOF
33715
33716         fi
33717
33718         { echo "$as_me:$LINENO: checking whether Motif is Lesstif" >&5
33719 echo $ECHO_N "checking whether Motif is Lesstif... $ECHO_C" >&6; }
33720 if test "${wx_cv_lib_lesstif+set}" = set; then
33721   echo $ECHO_N "(cached) $ECHO_C" >&6
33722 else
33723   cat >conftest.$ac_ext <<_ACEOF
33724 /* confdefs.h.  */
33725 _ACEOF
33726 cat confdefs.h >>conftest.$ac_ext
33727 cat >>conftest.$ac_ext <<_ACEOF
33728 /* end confdefs.h.  */
33729
33730                             #include <Xm/Xm.h>
33731
33732 int
33733 main ()
33734 {
33735
33736                             #if !defined(LesstifVersion) || LesstifVersion <= 0
33737                             Not Lesstif
33738                             #endif
33739
33740   ;
33741   return 0;
33742 }
33743 _ACEOF
33744 rm -f conftest.$ac_objext
33745 if { (ac_try="$ac_compile"
33746 case "(($ac_try" in
33747   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33748   *) ac_try_echo=$ac_try;;
33749 esac
33750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33751   (eval "$ac_compile") 2>conftest.er1
33752   ac_status=$?
33753   grep -v '^ *+' conftest.er1 >conftest.err
33754   rm -f conftest.er1
33755   cat conftest.err >&5
33756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33757   (exit $ac_status); } && {
33758          test -z "$ac_c_werror_flag" ||
33759          test ! -s conftest.err
33760        } && test -s conftest.$ac_objext; then
33761   wx_cv_lib_lesstif="yes"
33762 else
33763   echo "$as_me: failed program was:" >&5
33764 sed 's/^/| /' conftest.$ac_ext >&5
33765
33766         wx_cv_lib_lesstif="no"
33767 fi
33768
33769 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33770
33771 fi
33772 { echo "$as_me:$LINENO: result: $wx_cv_lib_lesstif" >&5
33773 echo "${ECHO_T}$wx_cv_lib_lesstif" >&6; }
33774         if test "$wx_cv_lib_lesstif" = "yes"; then
33775             cat >>confdefs.h <<\_ACEOF
33776 #define __WXLESSTIF__ 1
33777 _ACEOF
33778
33779         else
33780             cat >>confdefs.h <<\_ACEOF
33781 #define __WXLESSTIF__ 0
33782 _ACEOF
33783
33784         fi
33785
33786         CFLAGS=$save_CFLAGS
33787
33788         GUI_TK_LIBRARY="$GUI_TK_LIBRARY${libsgm_link} -lXm${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11"
33789         TOOLKIT=MOTIF
33790         GUIDIST=MOTIF_DIST
33791     fi
33792
33793         if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
33794                 if test "$wxUSE_LIBXPM" = "sys"; then
33795             { echo "$as_me:$LINENO: checking for Xpm library" >&5
33796 echo $ECHO_N "checking for Xpm library... $ECHO_C" >&6; }
33797
33798   ac_find_libraries=
33799   for ac_dir in $SEARCH_LIB
33800   do
33801     for ac_extension in a so sl dylib dll.a; do
33802       if test -f "$ac_dir/libXpm.$ac_extension"; then
33803         ac_find_libraries=$ac_dir
33804         break 2
33805       fi
33806     done
33807   done
33808
33809             if test "$ac_find_libraries" != "" ; then
33810
33811     if test "$ac_find_libraries" = "default location"; then
33812     ac_path_to_link=""
33813   else
33814     echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
33815     result=$?
33816     if test $result = 0; then
33817       ac_path_to_link=""
33818     else
33819       ac_path_to_link=" -L$ac_find_libraries"
33820     fi
33821   fi
33822
33823                 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
33824                 { echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
33825 echo "${ECHO_T}found in $ac_find_libraries" >&6; }
33826
33827                 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
33828 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
33829 if test "${wx_cv_x11_xpm_h+set}" = set; then
33830   echo $ECHO_N "(cached) $ECHO_C" >&6
33831 else
33832
33833                         save_CFLAGS=$CFLAGS
33834                         CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
33835
33836                         cat >conftest.$ac_ext <<_ACEOF
33837 /* confdefs.h.  */
33838 _ACEOF
33839 cat confdefs.h >>conftest.$ac_ext
33840 cat >>conftest.$ac_ext <<_ACEOF
33841 /* end confdefs.h.  */
33842
33843                                 #include <X11/xpm.h>
33844
33845 int
33846 main ()
33847 {
33848
33849                                 int version;
33850                                 version = XpmLibraryVersion();
33851
33852   ;
33853   return 0;
33854 }
33855 _ACEOF
33856 rm -f conftest.$ac_objext
33857 if { (ac_try="$ac_compile"
33858 case "(($ac_try" in
33859   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33860   *) ac_try_echo=$ac_try;;
33861 esac
33862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33863   (eval "$ac_compile") 2>conftest.er1
33864   ac_status=$?
33865   grep -v '^ *+' conftest.er1 >conftest.err
33866   rm -f conftest.er1
33867   cat conftest.err >&5
33868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33869   (exit $ac_status); } && {
33870          test -z "$ac_c_werror_flag" ||
33871          test ! -s conftest.err
33872        } && test -s conftest.$ac_objext; then
33873   wx_cv_x11_xpm_h=yes
33874 else
33875   echo "$as_me: failed program was:" >&5
33876 sed 's/^/| /' conftest.$ac_ext >&5
33877
33878         wx_cv_x11_xpm_h=no
33879
33880 fi
33881
33882 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33883
33884                         CFLAGS=$save_CFLAGS
33885
33886
33887 fi
33888 { echo "$as_me:$LINENO: result: $wx_cv_x11_xpm_h" >&5
33889 echo "${ECHO_T}$wx_cv_x11_xpm_h" >&6; }
33890
33891                 if test $wx_cv_x11_xpm_h = "yes"; then
33892                     GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXpm"
33893                     cat >>confdefs.h <<\_ACEOF
33894 #define wxHAVE_LIB_XPM 1
33895 _ACEOF
33896
33897                 else
33898                     { echo "$as_me:$LINENO: WARNING: built-in less efficient XPM decoder will be used" >&5
33899 echo "$as_me: WARNING: built-in less efficient XPM decoder will be used" >&2;}
33900                 fi
33901             fi
33902
33903         fi
33904
33905                 { echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
33906 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6; }
33907 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
33908   echo $ECHO_N "(cached) $ECHO_C" >&6
33909 else
33910   ac_check_lib_save_LIBS=$LIBS
33911 LIBS="-lXext $GUI_TK_LIBRARY -lX11 $LIBS"
33912 cat >conftest.$ac_ext <<_ACEOF
33913 /* confdefs.h.  */
33914 _ACEOF
33915 cat confdefs.h >>conftest.$ac_ext
33916 cat >>conftest.$ac_ext <<_ACEOF
33917 /* end confdefs.h.  */
33918
33919 /* Override any GCC internal prototype to avoid an error.
33920    Use char because int might match the return type of a GCC
33921    builtin and then its argument prototype would still apply.  */
33922 #ifdef __cplusplus
33923 extern "C"
33924 #endif
33925 char XShapeQueryExtension ();
33926 int
33927 main ()
33928 {
33929 return XShapeQueryExtension ();
33930   ;
33931   return 0;
33932 }
33933 _ACEOF
33934 rm -f conftest.$ac_objext conftest$ac_exeext
33935 if { (ac_try="$ac_link"
33936 case "(($ac_try" in
33937   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33938   *) ac_try_echo=$ac_try;;
33939 esac
33940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33941   (eval "$ac_link") 2>conftest.er1
33942   ac_status=$?
33943   grep -v '^ *+' conftest.er1 >conftest.err
33944   rm -f conftest.er1
33945   cat conftest.err >&5
33946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33947   (exit $ac_status); } && {
33948          test -z "$ac_c_werror_flag" ||
33949          test ! -s conftest.err
33950        } && test -s conftest$ac_exeext &&
33951        $as_test_x conftest$ac_exeext; then
33952   ac_cv_lib_Xext_XShapeQueryExtension=yes
33953 else
33954   echo "$as_me: failed program was:" >&5
33955 sed 's/^/| /' conftest.$ac_ext >&5
33956
33957         ac_cv_lib_Xext_XShapeQueryExtension=no
33958 fi
33959
33960 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33961       conftest$ac_exeext conftest.$ac_ext
33962 LIBS=$ac_check_lib_save_LIBS
33963 fi
33964 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
33965 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
33966 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
33967
33968                       GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXext"
33969                       wxHAVE_XEXT_LIB=1
33970
33971 fi
33972
33973
33974         if test "$wxHAVE_XEXT_LIB" = 1; then
33975             save_CFLAGS="$CFLAGS"
33976             CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
33977
33978             { echo "$as_me:$LINENO: checking for X11/extensions/shape.h" >&5
33979 echo $ECHO_N "checking for X11/extensions/shape.h... $ECHO_C" >&6; }
33980             cat >conftest.$ac_ext <<_ACEOF
33981 /* confdefs.h.  */
33982 _ACEOF
33983 cat confdefs.h >>conftest.$ac_ext
33984 cat >>conftest.$ac_ext <<_ACEOF
33985 /* end confdefs.h.  */
33986
33987                             #include <X11/Xlib.h>
33988                             #include <X11/extensions/shape.h>
33989
33990 int
33991 main ()
33992 {
33993
33994                             int dummy1, dummy2;
33995                             XShapeQueryExtension((Display*)NULL,
33996                                                  (int*)NULL, (int*)NULL);
33997
33998   ;
33999   return 0;
34000 }
34001 _ACEOF
34002 rm -f conftest.$ac_objext
34003 if { (ac_try="$ac_compile"
34004 case "(($ac_try" in
34005   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34006   *) ac_try_echo=$ac_try;;
34007 esac
34008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34009   (eval "$ac_compile") 2>conftest.er1
34010   ac_status=$?
34011   grep -v '^ *+' conftest.er1 >conftest.err
34012   rm -f conftest.er1
34013   cat conftest.err >&5
34014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34015   (exit $ac_status); } && {
34016          test -z "$ac_c_werror_flag" ||
34017          test ! -s conftest.err
34018        } && test -s conftest.$ac_objext; then
34019
34020                             cat >>confdefs.h <<\_ACEOF
34021 #define HAVE_XSHAPE 1
34022 _ACEOF
34023
34024                             { echo "$as_me:$LINENO: result: found" >&5
34025 echo "${ECHO_T}found" >&6; }
34026
34027 else
34028   echo "$as_me: failed program was:" >&5
34029 sed 's/^/| /' conftest.$ac_ext >&5
34030
34031
34032                             { echo "$as_me:$LINENO: result: not found" >&5
34033 echo "${ECHO_T}not found" >&6; }
34034
34035 fi
34036
34037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34038             CFLAGS="$save_CFLAGS"
34039
34040         fi
34041     fi
34042
34043     if test "$wxUSE_OSX_CARBON" = 1; then
34044         { echo "$as_me:$LINENO: checking for compiler syntax to enable Pascal strings" >&5
34045 echo $ECHO_N "checking for compiler syntax to enable Pascal strings... $ECHO_C" >&6; }
34046         if test "$GCC" = yes; then
34047             { echo "$as_me:$LINENO: result: gcc" >&5
34048 echo "${ECHO_T}gcc" >&6; }
34049             CPPFLAGS_PASCAL="-fpascal-strings"
34050         elif test "`echo $CXX | sed -e 's@.*/@@'`" = "xlC"; then
34051             { echo "$as_me:$LINENO: result: xlc" >&5
34052 echo "${ECHO_T}xlc" >&6; }
34053             CPPFLAGS_PASCAL="-qmacpstr"
34054         else
34055             { echo "$as_me:$LINENO: result: none" >&5
34056 echo "${ECHO_T}none" >&6; }
34057         fi
34058
34059         if test "x$wxUSE_UNIX" = "xyes"; then
34060             CPPFLAGS="$CPPFLAGS_PASCAL -I/Developer/Headers/FlatCarbon $CPPFLAGS"
34061         else
34062                         CPPFLAGS="$CPPFLAGS_PASCAL -DTARGET_CARBON $CPPFLAGS"
34063         fi
34064
34065         TOOLKIT=OSX_CARBON
34066                 GUIDIST=OSX_CARBON_DIST
34067                         WXBASEPORT="_carbon"
34068
34069                                         TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMAC__ -D__WXOSX__"
34070     fi
34071
34072     if test "$wxUSE_OSX_COCOA" = 1; then
34073         TOOLKIT=OSX_COCOA
34074         GUIDIST=OSX_COCOA_DIST
34075
34076                 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMAC__ -D__WXOSX__"
34077     fi
34078
34079     if test "$wxUSE_OSX_IPHONE" = 1; then
34080         TOOLKIT=OSX_IPHONE
34081     fi
34082
34083     if test "$wxUSE_OLD_COCOA" = 1; then
34084         TOOLKIT=COCOA
34085         GUIDIST=COCOA_DIST
34086     fi
34087
34088     if test "$wxUSE_PM" = 1; then
34089         TOOLKIT=PM
34090         GUIDIST=PM_DIST
34091         { echo "$as_me:$LINENO: checking for type SPBCDATA" >&5
34092 echo $ECHO_N "checking for type SPBCDATA... $ECHO_C" >&6; }
34093 if test "${wx_cv_spbcdata+set}" = set; then
34094   echo $ECHO_N "(cached) $ECHO_C" >&6
34095 else
34096
34097                 cat >conftest.$ac_ext <<_ACEOF
34098 /* confdefs.h.  */
34099 _ACEOF
34100 cat confdefs.h >>conftest.$ac_ext
34101 cat >>conftest.$ac_ext <<_ACEOF
34102 /* end confdefs.h.  */
34103
34104                         #define INCL_PM
34105                         #include <os2.h>
34106
34107 int
34108 main ()
34109 {
34110
34111                         SPBCDATA test;
34112
34113   ;
34114   return 0;
34115 }
34116 _ACEOF
34117 rm -f conftest.$ac_objext
34118 if { (ac_try="$ac_compile"
34119 case "(($ac_try" in
34120   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34121   *) ac_try_echo=$ac_try;;
34122 esac
34123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34124   (eval "$ac_compile") 2>conftest.er1
34125   ac_status=$?
34126   grep -v '^ *+' conftest.er1 >conftest.err
34127   rm -f conftest.er1
34128   cat conftest.err >&5
34129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34130   (exit $ac_status); } && {
34131          test -z "$ac_c_werror_flag" ||
34132          test ! -s conftest.err
34133        } && test -s conftest.$ac_objext; then
34134   wx_cv_spbcdata=yes
34135 else
34136   echo "$as_me: failed program was:" >&5
34137 sed 's/^/| /' conftest.$ac_ext >&5
34138
34139         wx_cv_spbcdata=no
34140
34141 fi
34142
34143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34144
34145
34146 fi
34147 { echo "$as_me:$LINENO: result: $wx_cv_spbcdata" >&5
34148 echo "${ECHO_T}$wx_cv_spbcdata" >&6; }
34149
34150         if test $wx_cv_spbcdata = "yes"; then
34151             cat >>confdefs.h <<\_ACEOF
34152 #define HAVE_SPBCDATA 1
34153 _ACEOF
34154
34155         fi
34156     fi
34157
34158         if test "$TOOLKIT" = "PM" ; then
34159         TOOLKIT_DIR="os2"
34160     else
34161         TOOLKIT_DIR=`echo ${TOOLKIT} | tr '[A-Z]' '[a-z]'`
34162     fi
34163
34164     if test "$wxUSE_UNIVERSAL" = "yes"; then
34165         TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__"
34166         WIDGET_SET=univ
34167     fi
34168
34169         GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
34170     DISTDIR="wx\$(TOOLKIT)"
34171 else
34172     USE_GUI=0
34173
34174             TOOLKIT_DIR="base"
34175
34176         if test "$USE_WIN32" = 1 ; then
34177                         TOOLKIT="MSW"
34178     fi
34179
34180         GUIDIST="BASE_DIST"
34181     DISTDIR="wxBase"
34182 fi
34183
34184
34185
34186 if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_UTF8" = "auto" ; then
34187     if test "$USE_UNIX" = 1 -a "$wxUSE_DARWIN" != 1 ; then
34188         wxUSE_UNICODE_UTF8=yes
34189     elif test "$USE_OS2" = 1 ; then
34190                                 wxUSE_UNICODE_UTF8=yes
34191     else
34192         wxUSE_UNICODE_UTF8=no
34193     fi
34194 fi
34195
34196
34197 if test "$wxUSE_GUI" = "yes"; then
34198     if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_PM" != 1; then
34199
34200 for ac_header in X11/Xlib.h
34201 do
34202 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
34203 { echo "$as_me:$LINENO: checking for $ac_header" >&5
34204 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
34205 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
34206   echo $ECHO_N "(cached) $ECHO_C" >&6
34207 else
34208   cat >conftest.$ac_ext <<_ACEOF
34209 /* confdefs.h.  */
34210 _ACEOF
34211 cat confdefs.h >>conftest.$ac_ext
34212 cat >>conftest.$ac_ext <<_ACEOF
34213 /* end confdefs.h.  */
34214
34215
34216 #include <$ac_header>
34217 _ACEOF
34218 rm -f conftest.$ac_objext
34219 if { (ac_try="$ac_compile"
34220 case "(($ac_try" in
34221   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34222   *) ac_try_echo=$ac_try;;
34223 esac
34224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34225   (eval "$ac_compile") 2>conftest.er1
34226   ac_status=$?
34227   grep -v '^ *+' conftest.er1 >conftest.err
34228   rm -f conftest.er1
34229   cat conftest.err >&5
34230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34231   (exit $ac_status); } && {
34232          test -z "$ac_c_werror_flag" ||
34233          test ! -s conftest.err
34234        } && test -s conftest.$ac_objext; then
34235   eval "$as_ac_Header=yes"
34236 else
34237   echo "$as_me: failed program was:" >&5
34238 sed 's/^/| /' conftest.$ac_ext >&5
34239
34240         eval "$as_ac_Header=no"
34241 fi
34242
34243 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34244 fi
34245 ac_res=`eval echo '${'$as_ac_Header'}'`
34246                { echo "$as_me:$LINENO: result: $ac_res" >&5
34247 echo "${ECHO_T}$ac_res" >&6; }
34248 if test `eval echo '${'$as_ac_Header'}'` = yes; then
34249   cat >>confdefs.h <<_ACEOF
34250 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
34251 _ACEOF
34252
34253 fi
34254
34255 done
34256
34257
34258 for ac_header in X11/XKBlib.h
34259 do
34260 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
34261 { echo "$as_me:$LINENO: checking for $ac_header" >&5
34262 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
34263 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
34264   echo $ECHO_N "(cached) $ECHO_C" >&6
34265 else
34266   cat >conftest.$ac_ext <<_ACEOF
34267 /* confdefs.h.  */
34268 _ACEOF
34269 cat confdefs.h >>conftest.$ac_ext
34270 cat >>conftest.$ac_ext <<_ACEOF
34271 /* end confdefs.h.  */
34272
34273                           #if HAVE_X11_XLIB_H
34274                             #include <X11/Xlib.h>
34275                           #endif
34276
34277
34278 #include <$ac_header>
34279 _ACEOF
34280 rm -f conftest.$ac_objext
34281 if { (ac_try="$ac_compile"
34282 case "(($ac_try" in
34283   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34284   *) ac_try_echo=$ac_try;;
34285 esac
34286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34287   (eval "$ac_compile") 2>conftest.er1
34288   ac_status=$?
34289   grep -v '^ *+' conftest.er1 >conftest.err
34290   rm -f conftest.er1
34291   cat conftest.err >&5
34292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34293   (exit $ac_status); } && {
34294          test -z "$ac_c_werror_flag" ||
34295          test ! -s conftest.err
34296        } && test -s conftest.$ac_objext; then
34297   eval "$as_ac_Header=yes"
34298 else
34299   echo "$as_me: failed program was:" >&5
34300 sed 's/^/| /' conftest.$ac_ext >&5
34301
34302         eval "$as_ac_Header=no"
34303 fi
34304
34305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34306 fi
34307 ac_res=`eval echo '${'$as_ac_Header'}'`
34308                { echo "$as_me:$LINENO: result: $ac_res" >&5
34309 echo "${ECHO_T}$ac_res" >&6; }
34310 if test `eval echo '${'$as_ac_Header'}'` = yes; then
34311   cat >>confdefs.h <<_ACEOF
34312 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
34313 _ACEOF
34314
34315 fi
34316
34317 done
34318
34319     fi
34320 fi
34321
34322
34323
34324 USE_XINERAMA=0
34325 if test "$wxUSE_DISPLAY" = "yes"; then
34326         if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_X11" = 1 -o "$wxUSE_GTK1" = 1; then
34327         { echo "$as_me:$LINENO: checking for Xinerama" >&5
34328 echo $ECHO_N "checking for Xinerama... $ECHO_C" >&6; }
34329
34330   ac_find_libraries=
34331   for ac_dir in $SEARCH_LIB
34332   do
34333     for ac_extension in a so sl dylib dll.a; do
34334       if test -f "$ac_dir/libXinerama.$ac_extension"; then
34335         ac_find_libraries=$ac_dir
34336         break 2
34337       fi
34338     done
34339   done
34340
34341         if test "$ac_find_libraries" != "" ; then
34342
34343     if test "$ac_find_libraries" = "default location"; then
34344     ac_path_to_link=""
34345   else
34346     echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
34347     result=$?
34348     if test $result = 0; then
34349       ac_path_to_link=""
34350     else
34351       ac_path_to_link=" -L$ac_find_libraries"
34352     fi
34353   fi
34354
34355             if test "$ac_path_to_link" != " -L/usr/lib" ; then
34356                 LDFLAGS="$LDFLAGS $ac_path_to_link"
34357             fi
34358             USE_XINERAMA=1
34359             GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXinerama"
34360             { echo "$as_me:$LINENO: result: yes" >&5
34361 echo "${ECHO_T}yes" >&6; }
34362         else
34363             { echo "$as_me:$LINENO: result: no" >&5
34364 echo "${ECHO_T}no" >&6; }
34365             { echo "$as_me:$LINENO: WARNING: Xinerama not found; disabling wxDisplay" >&5
34366 echo "$as_me: WARNING: Xinerama not found; disabling wxDisplay" >&2;}
34367             wxUSE_DISPLAY="no"
34368         fi
34369     elif test "$wxUSE_MSW" = 1; then
34370                 { echo "$as_me:$LINENO: checking for ddraw.h" >&5
34371 echo $ECHO_N "checking for ddraw.h... $ECHO_C" >&6; }
34372 if test "${ac_cv_header_ddraw_h+set}" = set; then
34373   echo $ECHO_N "(cached) $ECHO_C" >&6
34374 else
34375   cat >conftest.$ac_ext <<_ACEOF
34376 /* confdefs.h.  */
34377 _ACEOF
34378 cat confdefs.h >>conftest.$ac_ext
34379 cat >>conftest.$ac_ext <<_ACEOF
34380 /* end confdefs.h.  */
34381 #include <windows.h>
34382
34383 #include <ddraw.h>
34384 _ACEOF
34385 rm -f conftest.$ac_objext
34386 if { (ac_try="$ac_compile"
34387 case "(($ac_try" in
34388   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34389   *) ac_try_echo=$ac_try;;
34390 esac
34391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34392   (eval "$ac_compile") 2>conftest.er1
34393   ac_status=$?
34394   grep -v '^ *+' conftest.er1 >conftest.err
34395   rm -f conftest.er1
34396   cat conftest.err >&5
34397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34398   (exit $ac_status); } && {
34399          test -z "$ac_c_werror_flag" ||
34400          test ! -s conftest.err
34401        } && test -s conftest.$ac_objext; then
34402   ac_cv_header_ddraw_h=yes
34403 else
34404   echo "$as_me: failed program was:" >&5
34405 sed 's/^/| /' conftest.$ac_ext >&5
34406
34407         ac_cv_header_ddraw_h=no
34408 fi
34409
34410 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34411 fi
34412 { echo "$as_me:$LINENO: result: $ac_cv_header_ddraw_h" >&5
34413 echo "${ECHO_T}$ac_cv_header_ddraw_h" >&6; }
34414
34415
34416     fi
34417 fi
34418
34419 if test "$wxUSE_DISPLAY" = "yes"; then
34420         if test "$USE_XINERAMA" = 1 -o "$wxUSE_GTK" = 1; then
34421         { echo "$as_me:$LINENO: checking for Xxf86vm extension" >&5
34422 echo $ECHO_N "checking for Xxf86vm extension... $ECHO_C" >&6; }
34423
34424   ac_find_libraries=
34425   for ac_dir in $SEARCH_LIB
34426   do
34427     for ac_extension in a so sl dylib dll.a; do
34428       if test -f "$ac_dir/libXxf86vm.$ac_extension"; then
34429         ac_find_libraries=$ac_dir
34430         break 2
34431       fi
34432     done
34433   done
34434
34435         if test "$ac_find_libraries" != "" ; then
34436             { echo "$as_me:$LINENO: result: yes" >&5
34437 echo "${ECHO_T}yes" >&6; }
34438
34439 for ac_header in X11/extensions/xf86vmode.h
34440 do
34441 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
34442 { echo "$as_me:$LINENO: checking for $ac_header" >&5
34443 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
34444 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
34445   echo $ECHO_N "(cached) $ECHO_C" >&6
34446 else
34447   cat >conftest.$ac_ext <<_ACEOF
34448 /* confdefs.h.  */
34449 _ACEOF
34450 cat confdefs.h >>conftest.$ac_ext
34451 cat >>conftest.$ac_ext <<_ACEOF
34452 /* end confdefs.h.  */
34453
34454                                   #if HAVE_X11_XLIB_H
34455                                     #include <X11/Xlib.h>
34456                                   #endif
34457
34458
34459 #include <$ac_header>
34460 _ACEOF
34461 rm -f conftest.$ac_objext
34462 if { (ac_try="$ac_compile"
34463 case "(($ac_try" in
34464   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34465   *) ac_try_echo=$ac_try;;
34466 esac
34467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34468   (eval "$ac_compile") 2>conftest.er1
34469   ac_status=$?
34470   grep -v '^ *+' conftest.er1 >conftest.err
34471   rm -f conftest.er1
34472   cat conftest.err >&5
34473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34474   (exit $ac_status); } && {
34475          test -z "$ac_c_werror_flag" ||
34476          test ! -s conftest.err
34477        } && test -s conftest.$ac_objext; then
34478   eval "$as_ac_Header=yes"
34479 else
34480   echo "$as_me: failed program was:" >&5
34481 sed 's/^/| /' conftest.$ac_ext >&5
34482
34483         eval "$as_ac_Header=no"
34484 fi
34485
34486 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34487 fi
34488 ac_res=`eval echo '${'$as_ac_Header'}'`
34489                { echo "$as_me:$LINENO: result: $ac_res" >&5
34490 echo "${ECHO_T}$ac_res" >&6; }
34491 if test `eval echo '${'$as_ac_Header'}'` = yes; then
34492   cat >>confdefs.h <<_ACEOF
34493 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
34494 _ACEOF
34495
34496                               GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXxf86vm"
34497
34498 fi
34499
34500 done
34501
34502         else
34503             { echo "$as_me:$LINENO: result: no" >&5
34504 echo "${ECHO_T}no" >&6; }
34505         fi
34506     fi
34507 fi
34508
34509 if test "$wxUSE_DETECT_SM" = "yes"; then
34510     if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_MAC" != 1 -a "$wxUSE_OLD_COCOA" != 1; then
34511         { echo "$as_me:$LINENO: checking for -lSM - X11 session management" >&5
34512 echo $ECHO_N "checking for -lSM - X11 session management... $ECHO_C" >&6; }
34513
34514   ac_find_libraries=
34515   for ac_dir in $SEARCH_LIB
34516   do
34517     for ac_extension in a so sl dylib dll.a; do
34518       if test -f "$ac_dir/libSM.$ac_extension"; then
34519         ac_find_libraries=$ac_dir
34520         break 2
34521       fi
34522     done
34523   done
34524
34525         if test "$ac_find_libraries" != "" ; then
34526
34527     if test "$ac_find_libraries" = "default location"; then
34528     ac_path_to_link=""
34529   else
34530     echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
34531     result=$?
34532     if test $result = 0; then
34533       ac_path_to_link=""
34534     else
34535       ac_path_to_link=" -L$ac_find_libraries"
34536     fi
34537   fi
34538
34539             if test "$ac_path_to_link" != " -L/usr/lib" ; then
34540                 LDFLAGS="$LDFLAGS $ac_path_to_link"
34541             fi
34542             GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lSM"
34543             { echo "$as_me:$LINENO: result: yes" >&5
34544 echo "${ECHO_T}yes" >&6; }
34545         else
34546             { echo "$as_me:$LINENO: result: no" >&5
34547 echo "${ECHO_T}no" >&6; }
34548             { echo "$as_me:$LINENO: WARNING: libSM not found; disabling session management detection" >&5
34549 echo "$as_me: WARNING: libSM not found; disabling session management detection" >&2;}
34550             wxUSE_DETECT_SM="no"
34551         fi
34552     else
34553         wxUSE_DETECT_SM="no"
34554     fi
34555 fi
34556
34557
34558
34559 USE_OPENGL=0
34560 if test "$wxUSE_OPENGL" = "yes" -o "$wxUSE_OPENGL" = "auto"; then
34561
34562
34563     if test "$wxUSE_OSX_CARBON" = 1 -o "$wxUSE_OSX_COCOA" = 1 -o "$wxUSE_OLD_COCOA" = 1; then
34564         OPENGL_LIBS="-framework OpenGL -framework AGL"
34565     elif test "$wxUSE_MSW" = 1; then
34566         OPENGL_LIBS="-lopengl32 -lglu32"
34567     elif test "$wxUSE_MOTIF" = 1 -o "$wxUSE_X11" = 1 -o "$wxUSE_GTK2" = 1 -o "$wxUSE_GTK" = 1; then
34568
34569                         { echo "$as_me:$LINENO: checking for OpenGL headers" >&5
34570 echo $ECHO_N "checking for OpenGL headers... $ECHO_C" >&6; }
34571
34572 ac_find_includes=
34573 for ac_dir in $SEARCH_INCLUDE /opt/graphics/OpenGL/include /usr/include
34574   do
34575     if test -f "$ac_dir/GL/gl.h"; then
34576       ac_find_includes=$ac_dir
34577       break
34578     fi
34579   done
34580
34581         if test "$ac_find_includes" != "" ; then
34582             { echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
34583 echo "${ECHO_T}found in $ac_find_includes" >&6; }
34584
34585     if test "x$ac_find_includes" = "x/usr/include"; then
34586     ac_path_to_include=""
34587   else
34588     echo "$CPPFLAGS" | grep "\-I$ac_find_includes" > /dev/null
34589     result=$?
34590     if test $result = 0; then
34591       ac_path_to_include=""
34592     else
34593       ac_path_to_include=" -I$ac_find_includes"
34594     fi
34595   fi
34596
34597             CPPFLAGS="$ac_path_to_include $CPPFLAGS"
34598         else
34599             { echo "$as_me:$LINENO: result: not found" >&5
34600 echo "${ECHO_T}not found" >&6; }
34601         fi
34602
34603         { echo "$as_me:$LINENO: checking for GL/gl.h" >&5
34604 echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6; }
34605 if test "${ac_cv_header_GL_gl_h+set}" = set; then
34606   echo $ECHO_N "(cached) $ECHO_C" >&6
34607 else
34608   cat >conftest.$ac_ext <<_ACEOF
34609 /* confdefs.h.  */
34610 _ACEOF
34611 cat confdefs.h >>conftest.$ac_ext
34612 cat >>conftest.$ac_ext <<_ACEOF
34613 /* end confdefs.h.  */
34614
34615
34616 #include <GL/gl.h>
34617 _ACEOF
34618 rm -f conftest.$ac_objext
34619 if { (ac_try="$ac_compile"
34620 case "(($ac_try" in
34621   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34622   *) ac_try_echo=$ac_try;;
34623 esac
34624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34625   (eval "$ac_compile") 2>conftest.er1
34626   ac_status=$?
34627   grep -v '^ *+' conftest.er1 >conftest.err
34628   rm -f conftest.er1
34629   cat conftest.err >&5
34630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34631   (exit $ac_status); } && {
34632          test -z "$ac_c_werror_flag" ||
34633          test ! -s conftest.err
34634        } && test -s conftest.$ac_objext; then
34635   ac_cv_header_GL_gl_h=yes
34636 else
34637   echo "$as_me: failed program was:" >&5
34638 sed 's/^/| /' conftest.$ac_ext >&5
34639
34640         ac_cv_header_GL_gl_h=no
34641 fi
34642
34643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34644 fi
34645 { echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
34646 echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6; }
34647 if test $ac_cv_header_GL_gl_h = yes; then
34648
34649             { echo "$as_me:$LINENO: checking for GL/glu.h" >&5
34650 echo $ECHO_N "checking for GL/glu.h... $ECHO_C" >&6; }
34651 if test "${ac_cv_header_GL_glu_h+set}" = set; then
34652   echo $ECHO_N "(cached) $ECHO_C" >&6
34653 else
34654   cat >conftest.$ac_ext <<_ACEOF
34655 /* confdefs.h.  */
34656 _ACEOF
34657 cat confdefs.h >>conftest.$ac_ext
34658 cat >>conftest.$ac_ext <<_ACEOF
34659 /* end confdefs.h.  */
34660
34661
34662 #include <GL/glu.h>
34663 _ACEOF
34664 rm -f conftest.$ac_objext
34665 if { (ac_try="$ac_compile"
34666 case "(($ac_try" in
34667   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34668   *) ac_try_echo=$ac_try;;
34669 esac
34670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34671   (eval "$ac_compile") 2>conftest.er1
34672   ac_status=$?
34673   grep -v '^ *+' conftest.er1 >conftest.err
34674   rm -f conftest.er1
34675   cat conftest.err >&5
34676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34677   (exit $ac_status); } && {
34678          test -z "$ac_c_werror_flag" ||
34679          test ! -s conftest.err
34680        } && test -s conftest.$ac_objext; then
34681   ac_cv_header_GL_glu_h=yes
34682 else
34683   echo "$as_me: failed program was:" >&5
34684 sed 's/^/| /' conftest.$ac_ext >&5
34685
34686         ac_cv_header_GL_glu_h=no
34687 fi
34688
34689 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34690 fi
34691 { echo "$as_me:$LINENO: result: $ac_cv_header_GL_glu_h" >&5
34692 echo "${ECHO_T}$ac_cv_header_GL_glu_h" >&6; }
34693 if test $ac_cv_header_GL_glu_h = yes; then
34694
34695                 found_gl=0
34696
34697                 { echo "$as_me:$LINENO: checking for -lGL" >&5
34698 echo $ECHO_N "checking for -lGL... $ECHO_C" >&6; }
34699
34700   ac_find_libraries=
34701   for ac_dir in $SEARCH_LIB /opt/graphics/OpenGL/lib
34702   do
34703     for ac_extension in a so sl dylib dll.a; do
34704       if test -f "$ac_dir/libGL.$ac_extension"; then
34705         ac_find_libraries=$ac_dir
34706         break 2
34707       fi
34708     done
34709   done
34710
34711                 if test "$ac_find_libraries" != "" ; then
34712                     { echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
34713 echo "${ECHO_T}found in $ac_find_libraries" >&6; }
34714
34715
34716     if test "$ac_find_libraries" = "default location"; then
34717     ac_path_to_link=""
34718   else
34719     echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
34720     result=$?
34721     if test $result = 0; then
34722       ac_path_to_link=""
34723     else
34724       ac_path_to_link=" -L$ac_find_libraries"
34725     fi
34726   fi
34727
34728                     if test "$ac_path_to_link" != " -L/usr/lib" ; then
34729                         LDFLAGS_GL="$ac_path_to_link"
34730                     fi
34731
34732                                                                                 { echo "$as_me:$LINENO: checking for -lGLU" >&5
34733 echo $ECHO_N "checking for -lGLU... $ECHO_C" >&6; }
34734
34735   ac_find_libraries=
34736   for ac_dir in $SEARCH_LIB
34737   do
34738     for ac_extension in a so sl dylib dll.a; do
34739       if test -f "$ac_dir/libGLU.$ac_extension"; then
34740         ac_find_libraries=$ac_dir
34741         break 2
34742       fi
34743     done
34744   done
34745
34746                     if test "$ac_find_libraries" != "" ; then
34747
34748     if test "$ac_find_libraries" = "default location"; then
34749     ac_path_to_link=""
34750   else
34751     echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
34752     result=$?
34753     if test $result = 0; then
34754       ac_path_to_link=""
34755     else
34756       ac_path_to_link=" -L$ac_find_libraries"
34757     fi
34758   fi
34759
34760                         if test "$ac_path_to_link" != " -L/usr/lib" -a \
34761                                     "$ac_path_to_link" != "$LDFLAGS_GL"; then
34762                             LDFLAGS_GL="$LDFLAGS_GL$ac_path_to_link"
34763                         fi
34764
34765                         found_gl=1
34766                         OPENGL_LIBS="-lGL -lGLU"
34767                         { echo "$as_me:$LINENO: result: yes" >&5
34768 echo "${ECHO_T}yes" >&6; }
34769                     else
34770                         { echo "$as_me:$LINENO: result: no" >&5
34771 echo "${ECHO_T}no" >&6; }
34772                     fi
34773                 else
34774                     { echo "$as_me:$LINENO: result: no" >&5
34775 echo "${ECHO_T}no" >&6; }
34776                 fi
34777
34778                 if test "$found_gl" != 1; then
34779                     { echo "$as_me:$LINENO: checking for -lMesaGL" >&5
34780 echo $ECHO_N "checking for -lMesaGL... $ECHO_C" >&6; }
34781
34782   ac_find_libraries=
34783   for ac_dir in $SEARCH_LIB
34784   do
34785     for ac_extension in a so sl dylib dll.a; do
34786       if test -f "$ac_dir/libMesaGL.$ac_extension"; then
34787         ac_find_libraries=$ac_dir
34788         break 2
34789       fi
34790     done
34791   done
34792
34793                     if test "$ac_find_libraries" != "" ; then
34794
34795     if test "$ac_find_libraries" = "default location"; then
34796     ac_path_to_link=""
34797   else
34798     echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
34799     result=$?
34800     if test $result = 0; then
34801       ac_path_to_link=""
34802     else
34803       ac_path_to_link=" -L$ac_find_libraries"
34804     fi
34805   fi
34806
34807                         LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
34808                         OPENGL_LIBS="-lMesaGL -lMesaGLU"
34809                         { echo "$as_me:$LINENO: result: yes" >&5
34810 echo "${ECHO_T}yes" >&6; }
34811                     else
34812                         { echo "$as_me:$LINENO: result: no" >&5
34813 echo "${ECHO_T}no" >&6; }
34814                     fi
34815                 fi
34816
34817 fi
34818
34819
34820
34821 fi
34822
34823
34824
34825         if test "x$OPENGL_LIBS" = "x"; then
34826             if test "$wxUSE_OPENGL" = "yes"; then
34827                 { { echo "$as_me:$LINENO: error: OpenGL libraries not available" >&5
34828 echo "$as_me: error: OpenGL libraries not available" >&2;}
34829    { (exit 1); exit 1; }; }
34830             else
34831                                 { echo "$as_me:$LINENO: WARNING: OpenGL libraries not available, disabling support for OpenGL" >&5
34832 echo "$as_me: WARNING: OpenGL libraries not available, disabling support for OpenGL" >&2;}
34833                 wxUSE_OPENGL=no
34834                 USE_OPENGL=0
34835             fi
34836         fi
34837     else
34838         { echo "$as_me:$LINENO: WARNING: wxGLCanvas not implemented for this port, library will be compiled without it." >&5
34839 echo "$as_me: WARNING: wxGLCanvas not implemented for this port, library will be compiled without it." >&2;}
34840         wxUSE_OPENGL="no"
34841     fi
34842
34843     if test "$wxUSE_OPENGL" = "auto"; then
34844                                 wxUSE_OPENGL=yes
34845     fi
34846
34847     if test "$wxUSE_OPENGL" = "yes"; then
34848         USE_OPENGL=1
34849         cat >>confdefs.h <<\_ACEOF
34850 #define wxUSE_OPENGL 1
34851 _ACEOF
34852
34853         cat >>confdefs.h <<\_ACEOF
34854 #define wxUSE_GLCANVAS 1
34855 _ACEOF
34856
34857         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl opengl/cube opengl/penguin opengl/isosurf"
34858     fi
34859 fi
34860
34861
34862 if test -n "$TOOLKIT" ; then
34863     TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__"
34864 fi
34865
34866
34867
34868 if test "$wxUSE_SHARED" = "yes"; then
34869     case "${host}" in
34870       *-pc-msdosdjgpp )
34871                 wxUSE_SHARED=no
34872         { echo "$as_me:$LINENO: WARNING: Host system doesn't support shared libraries, disabling" >&5
34873 echo "$as_me: WARNING: Host system doesn't support shared libraries, disabling" >&2;}
34874       ;;
34875     esac
34876 fi
34877
34878 if test "$wxUSE_SHARED" = "yes"; then
34879
34880
34881     case "${host}" in
34882         *-*-cygwin* | *-*-mingw* )
34883                                                                                                 wx_cv_version_script=no
34884             ;;
34885
34886         *)
34887             { echo "$as_me:$LINENO: checking if the linker accepts --version-script" >&5
34888 echo $ECHO_N "checking if the linker accepts --version-script... $ECHO_C" >&6; }
34889 if test "${wx_cv_version_script+set}" = set; then
34890   echo $ECHO_N "(cached) $ECHO_C" >&6
34891 else
34892
34893                 echo "VER_1 { *; };" >conftest.sym
34894                 echo "int main() { return 0; }" >conftest.cpp
34895
34896                 if { ac_try='
34897                         $CXX -o conftest.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
34898                         -Wl,--version-script,conftest.sym >/dev/null 2>conftest.stderr'
34899   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34900   (eval $ac_try) 2>&5
34901   ac_status=$?
34902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34903   (exit $ac_status); }; } ; then
34904                   if test -s conftest.stderr ; then
34905                       wx_cv_version_script=no
34906                   else
34907                       wx_cv_version_script=yes
34908                   fi
34909                 else
34910                   wx_cv_version_script=no
34911                 fi
34912
34913                                                                                                                                                                                                 if test $wx_cv_version_script = yes
34914                 then
34915                   echo "struct B { virtual ~B() { } }; \
34916                         struct D : public B { }; \
34917                         void F() { D d; }" > conftest.cpp
34918
34919                   if { ac_try='
34920                         $CXX -shared -fPIC -o conftest1.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
34921                         -Wl,--version-script,conftest.sym >/dev/null 2>/dev/null'
34922   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34923   (eval $ac_try) 2>&5
34924   ac_status=$?
34925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34926   (exit $ac_status); }; } &&
34927                      { ac_try='
34928                         $CXX -shared -fPIC -o conftest2.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
34929                         -Wl,--version-script,conftest.sym conftest1.output >/dev/null 2>/dev/null'
34930   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34931   (eval $ac_try) 2>&5
34932   ac_status=$?
34933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34934   (exit $ac_status); }; }
34935                   then
34936                     if { ac_try='
34937                           $CXX -shared -fPIC -o conftest3.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
34938                           -Wl,--version-script,conftest.sym conftest2.output conftest1.output >/dev/null 2>/dev/null'
34939   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34940   (eval $ac_try) 2>&5
34941   ac_status=$?
34942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34943   (exit $ac_status); }; }
34944                     then
34945                       wx_cv_version_script=yes
34946                     else
34947                       wx_cv_version_script=no
34948                     fi
34949                   fi
34950                 fi
34951
34952                 rm -f conftest.output conftest.stderr conftest.sym conftest.cpp
34953                 rm -f conftest1.output conftest2.output conftest3.output
34954
34955 fi
34956 { echo "$as_me:$LINENO: result: $wx_cv_version_script" >&5
34957 echo "${ECHO_T}$wx_cv_version_script" >&6; }
34958
34959             if test $wx_cv_version_script = yes ; then
34960                 LDFLAGS_VERSIONING="-Wl,--version-script,\$(wx_top_builddir)/version-script"
34961             fi
34962             ;;
34963     esac
34964
34965
34966             if test "$wxUSE_VISIBILITY" != "no"; then
34967
34968
34969   if test -n "$GCC"; then
34970     CFLAGS_VISIBILITY="-fvisibility=hidden"
34971     CXXFLAGS_VISIBILITY="-fvisibility=hidden -fvisibility-inlines-hidden"
34972     { echo "$as_me:$LINENO: checking for symbols visibility support" >&5
34973 echo $ECHO_N "checking for symbols visibility support... $ECHO_C" >&6; }
34974     if test "${wx_cv_cc_visibility+set}" = set; then
34975   echo $ECHO_N "(cached) $ECHO_C" >&6
34976 else
34977
34978       wx_save_CXXFLAGS="$CXXFLAGS"
34979       CXXFLAGS="$CXXFLAGS $CXXFLAGS_VISIBILITY"
34980       ac_ext=cpp
34981 ac_cpp='$CXXCPP $CPPFLAGS'
34982 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34983 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34984 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34985
34986       cat >conftest.$ac_ext <<_ACEOF
34987 /* confdefs.h.  */
34988 _ACEOF
34989 cat confdefs.h >>conftest.$ac_ext
34990 cat >>conftest.$ac_ext <<_ACEOF
34991 /* end confdefs.h.  */
34992
34993          /* we need gcc >= 4.0, older versions with visibility support
34994             didn't have class visibility: */
34995          #if defined(__GNUC__) && __GNUC__ < 4
34996          error this gcc is too old;
34997          #endif
34998
34999          /* visibility only makes sense for ELF shared libs: */
35000          #if !defined(__ELF__) && !defined(__APPLE__)
35001          error this platform has no visibility;
35002          #endif
35003
35004          /* at the time of Xcode 4.1 / Clang 3, Clang++ still didn't have the bugs sorted out: */
35005          #if defined(__clang__)
35006          clang compiler is still broken w.r.t. visibility;
35007          #endif
35008
35009          extern __attribute__((__visibility__("hidden"))) int hiddenvar;
35010          extern __attribute__((__visibility__("default"))) int exportedvar;
35011          extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void);
35012          extern __attribute__((__visibility__("default"))) int exportedfunc (void);
35013          class __attribute__((__visibility__("default"))) Foo {
35014            Foo() {}
35015          };
35016
35017 int
35018 main ()
35019 {
35020
35021   ;
35022   return 0;
35023 }
35024 _ACEOF
35025 rm -f conftest.$ac_objext
35026 if { (ac_try="$ac_compile"
35027 case "(($ac_try" in
35028   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35029   *) ac_try_echo=$ac_try;;
35030 esac
35031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35032   (eval "$ac_compile") 2>conftest.er1
35033   ac_status=$?
35034   grep -v '^ *+' conftest.er1 >conftest.err
35035   rm -f conftest.er1
35036   cat conftest.err >&5
35037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35038   (exit $ac_status); } && {
35039          test -z "$ac_cxx_werror_flag" ||
35040          test ! -s conftest.err
35041        } && test -s conftest.$ac_objext; then
35042   wx_cv_cc_visibility=yes
35043 else
35044   echo "$as_me: failed program was:" >&5
35045 sed 's/^/| /' conftest.$ac_ext >&5
35046
35047         wx_cv_cc_visibility=no
35048 fi
35049
35050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35051       ac_ext=c
35052 ac_cpp='$CPP $CPPFLAGS'
35053 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35054 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35055 ac_compiler_gnu=$ac_cv_c_compiler_gnu
35056
35057       CXXFLAGS="$wx_save_CXXFLAGS"
35058 fi
35059
35060     { echo "$as_me:$LINENO: result: $wx_cv_cc_visibility" >&5
35061 echo "${ECHO_T}$wx_cv_cc_visibility" >&6; }
35062     if test $wx_cv_cc_visibility = yes; then
35063                               { echo "$as_me:$LINENO: checking for broken libstdc++ visibility" >&5
35064 echo $ECHO_N "checking for broken libstdc++ visibility... $ECHO_C" >&6; }
35065       if test "${wx_cv_cc_broken_libstdcxx_visibility+set}" = set; then
35066   echo $ECHO_N "(cached) $ECHO_C" >&6
35067 else
35068
35069         wx_save_CXXFLAGS="$CXXFLAGS"
35070         wx_save_LDFLAGS="$LDFLAGS"
35071         CXXFLAGS="$CXXFLAGS $CXXFLAGS_VISIBILITY"
35072         LDFLAGS="$LDFLAGS -shared -fPIC"
35073         ac_ext=cpp
35074 ac_cpp='$CXXCPP $CPPFLAGS'
35075 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35076 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35077 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
35078
35079         cat >conftest.$ac_ext <<_ACEOF
35080 /* confdefs.h.  */
35081 _ACEOF
35082 cat confdefs.h >>conftest.$ac_ext
35083 cat >>conftest.$ac_ext <<_ACEOF
35084 /* end confdefs.h.  */
35085
35086             #include <string>
35087
35088 int
35089 main ()
35090 {
35091
35092             std::string s("hello");
35093             return s.length();
35094
35095   ;
35096   return 0;
35097 }
35098 _ACEOF
35099 rm -f conftest.$ac_objext conftest$ac_exeext
35100 if { (ac_try="$ac_link"
35101 case "(($ac_try" in
35102   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35103   *) ac_try_echo=$ac_try;;
35104 esac
35105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35106   (eval "$ac_link") 2>conftest.er1
35107   ac_status=$?
35108   grep -v '^ *+' conftest.er1 >conftest.err
35109   rm -f conftest.er1
35110   cat conftest.err >&5
35111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35112   (exit $ac_status); } && {
35113          test -z "$ac_cxx_werror_flag" ||
35114          test ! -s conftest.err
35115        } && test -s conftest$ac_exeext &&
35116        $as_test_x conftest$ac_exeext; then
35117   wx_cv_cc_broken_libstdcxx_visibility=no
35118 else
35119   echo "$as_me: failed program was:" >&5
35120 sed 's/^/| /' conftest.$ac_ext >&5
35121
35122         wx_cv_cc_broken_libstdcxx_visibility=yes
35123 fi
35124
35125 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35126       conftest$ac_exeext conftest.$ac_ext
35127         ac_ext=c
35128 ac_cpp='$CPP $CPPFLAGS'
35129 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35130 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35131 ac_compiler_gnu=$ac_cv_c_compiler_gnu
35132
35133         CXXFLAGS="$wx_save_CXXFLAGS"
35134         LDFLAGS="$wx_save_LDFLAGS"
35135 fi
35136
35137       { echo "$as_me:$LINENO: result: $wx_cv_cc_broken_libstdcxx_visibility" >&5
35138 echo "${ECHO_T}$wx_cv_cc_broken_libstdcxx_visibility" >&6; }
35139
35140       if test $wx_cv_cc_broken_libstdcxx_visibility = yes; then
35141         { echo "$as_me:$LINENO: checking whether we can work around it" >&5
35142 echo $ECHO_N "checking whether we can work around it... $ECHO_C" >&6; }
35143         if test "${wx_cv_cc_visibility_workaround+set}" = set; then
35144   echo $ECHO_N "(cached) $ECHO_C" >&6
35145 else
35146
35147           ac_ext=cpp
35148 ac_cpp='$CXXCPP $CPPFLAGS'
35149 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35150 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35151 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
35152
35153           cat >conftest.$ac_ext <<_ACEOF
35154 /* confdefs.h.  */
35155 _ACEOF
35156 cat confdefs.h >>conftest.$ac_ext
35157 cat >>conftest.$ac_ext <<_ACEOF
35158 /* end confdefs.h.  */
35159
35160               #pragma GCC visibility push(default)
35161               #include <string>
35162               #pragma GCC visibility pop
35163
35164 int
35165 main ()
35166 {
35167
35168               std::string s("hello");
35169               return s.length();
35170
35171   ;
35172   return 0;
35173 }
35174 _ACEOF
35175 rm -f conftest.$ac_objext conftest$ac_exeext
35176 if { (ac_try="$ac_link"
35177 case "(($ac_try" in
35178   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35179   *) ac_try_echo=$ac_try;;
35180 esac
35181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35182   (eval "$ac_link") 2>conftest.er1
35183   ac_status=$?
35184   grep -v '^ *+' conftest.er1 >conftest.err
35185   rm -f conftest.er1
35186   cat conftest.err >&5
35187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35188   (exit $ac_status); } && {
35189          test -z "$ac_cxx_werror_flag" ||
35190          test ! -s conftest.err
35191        } && test -s conftest$ac_exeext &&
35192        $as_test_x conftest$ac_exeext; then
35193   wx_cv_cc_visibility_workaround=no
35194 else
35195   echo "$as_me: failed program was:" >&5
35196 sed 's/^/| /' conftest.$ac_ext >&5
35197
35198         wx_cv_cc_visibility_workaround=yes
35199 fi
35200
35201 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35202       conftest$ac_exeext conftest.$ac_ext
35203           ac_ext=c
35204 ac_cpp='$CPP $CPPFLAGS'
35205 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35206 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35207 ac_compiler_gnu=$ac_cv_c_compiler_gnu
35208
35209
35210 fi
35211
35212         { echo "$as_me:$LINENO: result: $wx_cv_cc_visibility_workaround" >&5
35213 echo "${ECHO_T}$wx_cv_cc_visibility_workaround" >&6; }
35214
35215         if test $wx_cv_cc_visibility_workaround = no; then
35216                     wx_cv_cc_visibility=no
35217         fi
35218       fi
35219     fi
35220
35221     if test $wx_cv_cc_visibility = yes; then
35222       cat >>confdefs.h <<\_ACEOF
35223 #define HAVE_VISIBILITY 1
35224 _ACEOF
35225
35226       if test $wx_cv_cc_broken_libstdcxx_visibility = yes; then
35227         cat >>confdefs.h <<\_ACEOF
35228 #define HAVE_BROKEN_LIBSTDCXX_VISIBILITY 1
35229 _ACEOF
35230
35231       fi
35232     else
35233       CFLAGS_VISIBILITY=""
35234       CXXFLAGS_VISIBILITY=""
35235     fi
35236
35237
35238   fi
35239
35240     fi
35241
35242         if test "x$SUNCXX" = xyes; then
35243         SAMPLES_RPATH_FLAG="-R\$(wx_top_builddir)/lib"
35244         WXCONFIG_RPATH="-R\$libdir"
35245     else
35246     case "${host}" in
35247       *-*-linux* | *-*-gnu* )
35248         SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(wx_top_builddir)/lib"
35249         WXCONFIG_RPATH="-Wl,-rpath,\$libdir"
35250         ;;
35251
35252       *-*-solaris2* )
35253
35254                         CPPFLAGS="-isystem /usr/openwin/include $CPPFLAGS"
35255
35256                         saveLdflags="$LDFLAGS"
35257         LDFLAGS="$saveLdflags -Wl,-rpath,/"
35258         { echo "$as_me:$LINENO: checking if the linker accepts -rpath" >&5
35259 echo $ECHO_N "checking if the linker accepts -rpath... $ECHO_C" >&6; }
35260         cat >conftest.$ac_ext <<_ACEOF
35261 /* confdefs.h.  */
35262 _ACEOF
35263 cat confdefs.h >>conftest.$ac_ext
35264 cat >>conftest.$ac_ext <<_ACEOF
35265 /* end confdefs.h.  */
35266
35267 int
35268 main ()
35269 {
35270
35271   ;
35272   return 0;
35273 }
35274 _ACEOF
35275 rm -f conftest.$ac_objext conftest$ac_exeext
35276 if { (ac_try="$ac_link"
35277 case "(($ac_try" in
35278   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35279   *) ac_try_echo=$ac_try;;
35280 esac
35281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35282   (eval "$ac_link") 2>conftest.er1
35283   ac_status=$?
35284   grep -v '^ *+' conftest.er1 >conftest.err
35285   rm -f conftest.er1
35286   cat conftest.err >&5
35287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35288   (exit $ac_status); } && {
35289          test -z "$ac_c_werror_flag" ||
35290          test ! -s conftest.err
35291        } && test -s conftest$ac_exeext &&
35292        $as_test_x conftest$ac_exeext; then
35293
35294                 { echo "$as_me:$LINENO: result: yes" >&5
35295 echo "${ECHO_T}yes" >&6; }
35296                 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(wx_top_builddir)/lib"
35297                 WXCONFIG_RPATH="-Wl,-rpath,\$libdir"
35298
35299 else
35300   echo "$as_me: failed program was:" >&5
35301 sed 's/^/| /' conftest.$ac_ext >&5
35302
35303
35304                 { echo "$as_me:$LINENO: result: no" >&5
35305 echo "${ECHO_T}no" >&6; }
35306                 { echo "$as_me:$LINENO: checking if the linker accepts -R" >&5
35307 echo $ECHO_N "checking if the linker accepts -R... $ECHO_C" >&6; }
35308                 LDFLAGS="$saveLdflags -Wl,-R,/"
35309                 cat >conftest.$ac_ext <<_ACEOF
35310 /* confdefs.h.  */
35311 _ACEOF
35312 cat confdefs.h >>conftest.$ac_ext
35313 cat >>conftest.$ac_ext <<_ACEOF
35314 /* end confdefs.h.  */
35315
35316 int
35317 main ()
35318 {
35319
35320   ;
35321   return 0;
35322 }
35323 _ACEOF
35324 rm -f conftest.$ac_objext conftest$ac_exeext
35325 if { (ac_try="$ac_link"
35326 case "(($ac_try" in
35327   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35328   *) ac_try_echo=$ac_try;;
35329 esac
35330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35331   (eval "$ac_link") 2>conftest.er1
35332   ac_status=$?
35333   grep -v '^ *+' conftest.er1 >conftest.err
35334   rm -f conftest.er1
35335   cat conftest.err >&5
35336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35337   (exit $ac_status); } && {
35338          test -z "$ac_c_werror_flag" ||
35339          test ! -s conftest.err
35340        } && test -s conftest$ac_exeext &&
35341        $as_test_x conftest$ac_exeext; then
35342
35343                         { echo "$as_me:$LINENO: result: yes" >&5
35344 echo "${ECHO_T}yes" >&6; }
35345                         SAMPLES_RPATH_FLAG="-Wl,-R,\$(wx_top_builddir)/lib"
35346                         WXCONFIG_RPATH="-Wl,-R,\$libdir"
35347
35348 else
35349   echo "$as_me: failed program was:" >&5
35350 sed 's/^/| /' conftest.$ac_ext >&5
35351
35352
35353                         { echo "$as_me:$LINENO: result: no" >&5
35354 echo "${ECHO_T}no" >&6; }
35355
35356 fi
35357
35358 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35359       conftest$ac_exeext conftest.$ac_ext
35360
35361 fi
35362
35363 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35364       conftest$ac_exeext conftest.$ac_ext
35365         LDFLAGS="$saveLdflags"
35366       ;;
35367
35368       *-*-darwin* )
35369         install_name_tool=`which ${HOST_PREFIX}install_name_tool`
35370         if test "$install_name_tool" -a -x "$install_name_tool"; then
35371             DYLIB_RPATH_POSTLINK="${HOST_PREFIX}install_name_tool -id \$@ \$@"
35372             cat <<EOF >change-install-names
35373 #!/bin/sh
35374 libnames=\`cd \${2} ; ls -1 | grep '\.[0-9][0-9]*\.dylib\$'\`
35375 for i in \${libnames} ; do
35376     ${HOST_PREFIX}install_name_tool -id \${3}/\${i} \${1}/\${i}
35377     for dep in \${libnames} ; do
35378         ${HOST_PREFIX}install_name_tool -change \${2}/\${dep} \${3}/\${dep} \${1}/\${i}
35379     done
35380 done
35381 EOF
35382             chmod +x change-install-names
35383             DYLIB_RPATH_INSTALL="\$(wx_top_builddir)/change-install-names \${DESTDIR}\${libdir} \$(wx_top_builddir)/lib \${libdir}"
35384         fi
35385
35386                                         HEADER_PAD_OPTION="-headerpad_max_install_names"
35387       ;;
35388
35389       *-*-cygwin* | *-*-mingw32* )
35390         ;;
35391
35392       *-*-hpux* )
35393         SAMPLES_RPATH_FLAG="-Wl,+b,\$(wx_top_builddir)/lib"
35394         WXCONFIG_RPATH="-Wl,+b,\$libdir"
35395         ;;
35396
35397     esac
35398     fi
35399
35400             WXCONFIG_ONLY_CPPFLAGS="$WXCONFIG_ONLY_CPPFLAGS -DWXUSINGDLL"
35401
35402     if test $wxUSE_RPATH = "no"; then
35403         SAMPLES_RPATH_FLAG=''
35404         DYLIB_PATH_POSTLINK=''
35405         WXCONFIG_RPATH=''
35406     fi
35407
35408     SHARED=1
35409
35410 else
35411
35412     config_linkage_component="-static"
35413     SHARED=0
35414
35415 fi
35416
35417
35418 UNICODE=0
35419 lib_unicode_suffix=
35420 WX_CHARTYPE="ansi"
35421 if test "$wxUSE_UNICODE" = "yes"; then
35422     lib_unicode_suffix=u
35423     WX_CHARTYPE="unicode"
35424     UNICODE=1
35425 fi
35426
35427 WX_FLAVOUR=${WX_FLAVOUR:+-$WX_FLAVOUR}
35428 WX_LIB_FLAVOUR=`echo $WX_FLAVOUR | tr '-' '_'`
35429
35430 DEBUG_INFO=0
35431 if test "$wxUSE_DEBUG_INFO" = "yes"; then
35432     DEBUG_INFO=1
35433 fi
35434
35435 WX_VERSION_TAG=`echo WX${lib_unicode_suffix}${WX_LIB_FLAVOUR}_${WX_RELEASE} | tr '[a-z]' '[A-Z]'`
35436
35437 TOOLCHAIN_NAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}${HOST_SUFFIX}"
35438
35439 TOOLCHAIN_FULLNAME="${HOST_PREFIX}${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}-${WX_CHARTYPE}${config_linkage_component}-${WX_RELEASE}${WX_FLAVOUR}"
35440
35441
35442 if test "$wxUSE_OSX_CARBON" = 1 -o "$wxUSE_OSX_COCOA" = 1 -o "$wxUSE_OLD_COCOA" = 1; then
35443     WX_LIBRARY_BASENAME_NOGUI="wx_base${lib_unicode_suffix}${WX_LIB_FLAVOUR}"
35444 else
35445     WX_LIBRARY_BASENAME_NOGUI="wx_base${WXBASEPORT}${lib_unicode_suffix}${WX_LIB_FLAVOUR}"
35446 fi
35447 if test "${TOOLKIT_DIR}" = "os2"; then
35448     WX_LIBRARY_BASENAME_GUI="wx_pm${WIDGET_SET}${lib_unicode_suffix}${WX_LIB_FLAVOUR}"
35449 else
35450     WX_LIBRARY_BASENAME_GUI="wx_${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${WX_LIB_FLAVOUR}"
35451 fi
35452
35453
35454
35455 if test "$wxUSE_OLD_COCOA" = 1; then
35456
35457     ac_ext=c
35458 ac_cpp='$CPP $CPPFLAGS'
35459 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35460 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35461 ac_compiler_gnu=$ac_cv_c_compiler_gnu
35462
35463 ac_ext=m
35464
35465     { echo "$as_me:$LINENO: checking if AppKit/NSEvent.h conflicts with CoreFoundation" >&5
35466 echo $ECHO_N "checking if AppKit/NSEvent.h conflicts with CoreFoundation... $ECHO_C" >&6; }
35467     cat >conftest.$ac_ext <<_ACEOF
35468 /* confdefs.h.  */
35469 _ACEOF
35470 cat confdefs.h >>conftest.$ac_ext
35471 cat >>conftest.$ac_ext <<_ACEOF
35472 /* end confdefs.h.  */
35473 #include <AppKit/NSEvent.h>
35474 #include <CoreFoundation/CoreFoundation.h>
35475
35476 int
35477 main ()
35478 {
35479
35480   ;
35481   return 0;
35482 }
35483 _ACEOF
35484 rm -f conftest.$ac_objext
35485 if { (ac_try="$ac_compile"
35486 case "(($ac_try" in
35487   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35488   *) ac_try_echo=$ac_try;;
35489 esac
35490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35491   (eval "$ac_compile") 2>conftest.er1
35492   ac_status=$?
35493   grep -v '^ *+' conftest.er1 >conftest.err
35494   rm -f conftest.er1
35495   cat conftest.err >&5
35496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35497   (exit $ac_status); } && {
35498          test -z "$ac_c_werror_flag" ||
35499          test ! -s conftest.err
35500        } && test -s conftest.$ac_objext; then
35501   { echo "$as_me:$LINENO: result: no" >&5
35502 echo "${ECHO_T}no" >&6; }
35503 else
35504   echo "$as_me: failed program was:" >&5
35505 sed 's/^/| /' conftest.$ac_ext >&5
35506
35507         { echo "$as_me:$LINENO: result: yes" >&5
35508 echo "${ECHO_T}yes" >&6; }
35509         { echo "$as_me:$LINENO: checking if defining __Point__ will fix it" >&5
35510 echo $ECHO_N "checking if defining __Point__ will fix it... $ECHO_C" >&6; }
35511         cat >conftest.$ac_ext <<_ACEOF
35512 /* confdefs.h.  */
35513 _ACEOF
35514 cat confdefs.h >>conftest.$ac_ext
35515 cat >>conftest.$ac_ext <<_ACEOF
35516 /* end confdefs.h.  */
35517 #define __Point__ 1
35518 #include <AppKit/NSEvent.h>
35519 #include <CoreFoundation/CoreFoundation.h>
35520
35521 int
35522 main ()
35523 {
35524
35525   ;
35526   return 0;
35527 }
35528 _ACEOF
35529 rm -f conftest.$ac_objext
35530 if { (ac_try="$ac_compile"
35531 case "(($ac_try" in
35532   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35533   *) ac_try_echo=$ac_try;;
35534 esac
35535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35536   (eval "$ac_compile") 2>conftest.er1
35537   ac_status=$?
35538   grep -v '^ *+' conftest.er1 >conftest.err
35539   rm -f conftest.er1
35540   cat conftest.err >&5
35541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35542   (exit $ac_status); } && {
35543          test -z "$ac_c_werror_flag" ||
35544          test ! -s conftest.err
35545        } && test -s conftest.$ac_objext; then
35546   { echo "$as_me:$LINENO: result: yes" >&5
35547 echo "${ECHO_T}yes" >&6; }
35548             cat >>confdefs.h <<\_ACEOF
35549 #define __Point__ 1
35550 _ACEOF
35551
35552
35553 else
35554   echo "$as_me: failed program was:" >&5
35555 sed 's/^/| /' conftest.$ac_ext >&5
35556
35557         { { echo "$as_me:$LINENO: error: no
35558 See \`config.log' for more details." >&5
35559 echo "$as_me: error: no
35560 See \`config.log' for more details." >&2;}
35561    { (exit 1); exit 1; }; }
35562
35563 fi
35564
35565 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35566
35567 fi
35568
35569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35570     ac_ext=c
35571 ac_cpp='$CPP $CPPFLAGS'
35572 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35573 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35574 ac_compiler_gnu=$ac_cv_c_compiler_gnu
35575
35576 fi
35577
35578
35579 { echo "$as_me:$LINENO: checking for mode_t" >&5
35580 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
35581 if test "${ac_cv_type_mode_t+set}" = set; then
35582   echo $ECHO_N "(cached) $ECHO_C" >&6
35583 else
35584   cat >conftest.$ac_ext <<_ACEOF
35585 /* confdefs.h.  */
35586 _ACEOF
35587 cat confdefs.h >>conftest.$ac_ext
35588 cat >>conftest.$ac_ext <<_ACEOF
35589 /* end confdefs.h.  */
35590 $ac_includes_default
35591 typedef mode_t ac__type_new_;
35592 int
35593 main ()
35594 {
35595 if ((ac__type_new_ *) 0)
35596   return 0;
35597 if (sizeof (ac__type_new_))
35598   return 0;
35599   ;
35600   return 0;
35601 }
35602 _ACEOF
35603 rm -f conftest.$ac_objext
35604 if { (ac_try="$ac_compile"
35605 case "(($ac_try" in
35606   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35607   *) ac_try_echo=$ac_try;;
35608 esac
35609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35610   (eval "$ac_compile") 2>conftest.er1
35611   ac_status=$?
35612   grep -v '^ *+' conftest.er1 >conftest.err
35613   rm -f conftest.er1
35614   cat conftest.err >&5
35615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35616   (exit $ac_status); } && {
35617          test -z "$ac_c_werror_flag" ||
35618          test ! -s conftest.err
35619        } && test -s conftest.$ac_objext; then
35620   ac_cv_type_mode_t=yes
35621 else
35622   echo "$as_me: failed program was:" >&5
35623 sed 's/^/| /' conftest.$ac_ext >&5
35624
35625         ac_cv_type_mode_t=no
35626 fi
35627
35628 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35629 fi
35630 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
35631 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
35632 if test $ac_cv_type_mode_t = yes; then
35633   :
35634 else
35635
35636 cat >>confdefs.h <<_ACEOF
35637 #define mode_t int
35638 _ACEOF
35639
35640 fi
35641
35642 { echo "$as_me:$LINENO: checking for off_t" >&5
35643 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
35644 if test "${ac_cv_type_off_t+set}" = set; then
35645   echo $ECHO_N "(cached) $ECHO_C" >&6
35646 else
35647   cat >conftest.$ac_ext <<_ACEOF
35648 /* confdefs.h.  */
35649 _ACEOF
35650 cat confdefs.h >>conftest.$ac_ext
35651 cat >>conftest.$ac_ext <<_ACEOF
35652 /* end confdefs.h.  */
35653 $ac_includes_default
35654 typedef off_t ac__type_new_;
35655 int
35656 main ()
35657 {
35658 if ((ac__type_new_ *) 0)
35659   return 0;
35660 if (sizeof (ac__type_new_))
35661   return 0;
35662   ;
35663   return 0;
35664 }
35665 _ACEOF
35666 rm -f conftest.$ac_objext
35667 if { (ac_try="$ac_compile"
35668 case "(($ac_try" in
35669   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35670   *) ac_try_echo=$ac_try;;
35671 esac
35672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35673   (eval "$ac_compile") 2>conftest.er1
35674   ac_status=$?
35675   grep -v '^ *+' conftest.er1 >conftest.err
35676   rm -f conftest.er1
35677   cat conftest.err >&5
35678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35679   (exit $ac_status); } && {
35680          test -z "$ac_c_werror_flag" ||
35681          test ! -s conftest.err
35682        } && test -s conftest.$ac_objext; then
35683   ac_cv_type_off_t=yes
35684 else
35685   echo "$as_me: failed program was:" >&5
35686 sed 's/^/| /' conftest.$ac_ext >&5
35687
35688         ac_cv_type_off_t=no
35689 fi
35690
35691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35692 fi
35693 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
35694 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
35695 if test $ac_cv_type_off_t = yes; then
35696   :
35697 else
35698
35699 cat >>confdefs.h <<_ACEOF
35700 #define off_t long int
35701 _ACEOF
35702
35703 fi
35704
35705 { echo "$as_me:$LINENO: checking for pid_t" >&5
35706 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
35707 if test "${ac_cv_type_pid_t+set}" = set; then
35708   echo $ECHO_N "(cached) $ECHO_C" >&6
35709 else
35710   cat >conftest.$ac_ext <<_ACEOF
35711 /* confdefs.h.  */
35712 _ACEOF
35713 cat confdefs.h >>conftest.$ac_ext
35714 cat >>conftest.$ac_ext <<_ACEOF
35715 /* end confdefs.h.  */
35716 $ac_includes_default
35717 typedef pid_t ac__type_new_;
35718 int
35719 main ()
35720 {
35721 if ((ac__type_new_ *) 0)
35722   return 0;
35723 if (sizeof (ac__type_new_))
35724   return 0;
35725   ;
35726   return 0;
35727 }
35728 _ACEOF
35729 rm -f conftest.$ac_objext
35730 if { (ac_try="$ac_compile"
35731 case "(($ac_try" in
35732   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35733   *) ac_try_echo=$ac_try;;
35734 esac
35735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35736   (eval "$ac_compile") 2>conftest.er1
35737   ac_status=$?
35738   grep -v '^ *+' conftest.er1 >conftest.err
35739   rm -f conftest.er1
35740   cat conftest.err >&5
35741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35742   (exit $ac_status); } && {
35743          test -z "$ac_c_werror_flag" ||
35744          test ! -s conftest.err
35745        } && test -s conftest.$ac_objext; then
35746   ac_cv_type_pid_t=yes
35747 else
35748   echo "$as_me: failed program was:" >&5
35749 sed 's/^/| /' conftest.$ac_ext >&5
35750
35751         ac_cv_type_pid_t=no
35752 fi
35753
35754 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35755 fi
35756 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
35757 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
35758 if test $ac_cv_type_pid_t = yes; then
35759   :
35760 else
35761
35762 cat >>confdefs.h <<_ACEOF
35763 #define pid_t int
35764 _ACEOF
35765
35766 fi
35767
35768 { echo "$as_me:$LINENO: checking for size_t" >&5
35769 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
35770 if test "${ac_cv_type_size_t+set}" = set; then
35771   echo $ECHO_N "(cached) $ECHO_C" >&6
35772 else
35773   cat >conftest.$ac_ext <<_ACEOF
35774 /* confdefs.h.  */
35775 _ACEOF
35776 cat confdefs.h >>conftest.$ac_ext
35777 cat >>conftest.$ac_ext <<_ACEOF
35778 /* end confdefs.h.  */
35779 $ac_includes_default
35780 typedef size_t ac__type_new_;
35781 int
35782 main ()
35783 {
35784 if ((ac__type_new_ *) 0)
35785   return 0;
35786 if (sizeof (ac__type_new_))
35787   return 0;
35788   ;
35789   return 0;
35790 }
35791 _ACEOF
35792 rm -f conftest.$ac_objext
35793 if { (ac_try="$ac_compile"
35794 case "(($ac_try" in
35795   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35796   *) ac_try_echo=$ac_try;;
35797 esac
35798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35799   (eval "$ac_compile") 2>conftest.er1
35800   ac_status=$?
35801   grep -v '^ *+' conftest.er1 >conftest.err
35802   rm -f conftest.er1
35803   cat conftest.err >&5
35804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35805   (exit $ac_status); } && {
35806          test -z "$ac_c_werror_flag" ||
35807          test ! -s conftest.err
35808        } && test -s conftest.$ac_objext; then
35809   ac_cv_type_size_t=yes
35810 else
35811   echo "$as_me: failed program was:" >&5
35812 sed 's/^/| /' conftest.$ac_ext >&5
35813
35814         ac_cv_type_size_t=no
35815 fi
35816
35817 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35818 fi
35819 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
35820 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
35821 if test $ac_cv_type_size_t = yes; then
35822   :
35823 else
35824
35825 cat >>confdefs.h <<_ACEOF
35826 #define size_t unsigned int
35827 _ACEOF
35828
35829 fi
35830
35831
35832 { echo "$as_me:$LINENO: checking for ssize_t" >&5
35833 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
35834 if test "${ac_cv_type_ssize_t+set}" = set; then
35835   echo $ECHO_N "(cached) $ECHO_C" >&6
35836 else
35837   cat >conftest.$ac_ext <<_ACEOF
35838 /* confdefs.h.  */
35839 _ACEOF
35840 cat confdefs.h >>conftest.$ac_ext
35841 cat >>conftest.$ac_ext <<_ACEOF
35842 /* end confdefs.h.  */
35843 $ac_includes_default
35844 typedef ssize_t ac__type_new_;
35845 int
35846 main ()
35847 {
35848 if ((ac__type_new_ *) 0)
35849   return 0;
35850 if (sizeof (ac__type_new_))
35851   return 0;
35852   ;
35853   return 0;
35854 }
35855 _ACEOF
35856 rm -f conftest.$ac_objext
35857 if { (ac_try="$ac_compile"
35858 case "(($ac_try" in
35859   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35860   *) ac_try_echo=$ac_try;;
35861 esac
35862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35863   (eval "$ac_compile") 2>conftest.er1
35864   ac_status=$?
35865   grep -v '^ *+' conftest.er1 >conftest.err
35866   rm -f conftest.er1
35867   cat conftest.err >&5
35868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35869   (exit $ac_status); } && {
35870          test -z "$ac_c_werror_flag" ||
35871          test ! -s conftest.err
35872        } && test -s conftest.$ac_objext; then
35873   ac_cv_type_ssize_t=yes
35874 else
35875   echo "$as_me: failed program was:" >&5
35876 sed 's/^/| /' conftest.$ac_ext >&5
35877
35878         ac_cv_type_ssize_t=no
35879 fi
35880
35881 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35882 fi
35883 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
35884 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
35885 if test $ac_cv_type_ssize_t = yes; then
35886
35887 cat >>confdefs.h <<_ACEOF
35888 #define HAVE_SSIZE_T 1
35889 _ACEOF
35890
35891
35892 fi
35893
35894
35895 ac_ext=cpp
35896 ac_cpp='$CXXCPP $CPPFLAGS'
35897 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35898 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35899 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
35900  { echo "$as_me:$LINENO: checking if size_t is unsigned int" >&5
35901 echo $ECHO_N "checking if size_t is unsigned int... $ECHO_C" >&6; }
35902 if test "${wx_cv_size_t_is_uint+set}" = set; then
35903   echo $ECHO_N "(cached) $ECHO_C" >&6
35904 else
35905
35906                             cat >conftest.$ac_ext <<_ACEOF
35907 /* confdefs.h.  */
35908 _ACEOF
35909 cat confdefs.h >>conftest.$ac_ext
35910 cat >>conftest.$ac_ext <<_ACEOF
35911 /* end confdefs.h.  */
35912 #include <stddef.h>
35913 int
35914 main ()
35915 {
35916
35917             return 0; }
35918
35919             struct Foo { void foo(size_t); void foo(unsigned int); };
35920
35921             int bar() {
35922
35923   ;
35924   return 0;
35925 }
35926 _ACEOF
35927 rm -f conftest.$ac_objext
35928 if { (ac_try="$ac_compile"
35929 case "(($ac_try" in
35930   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35931   *) ac_try_echo=$ac_try;;
35932 esac
35933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35934   (eval "$ac_compile") 2>conftest.er1
35935   ac_status=$?
35936   grep -v '^ *+' conftest.er1 >conftest.err
35937   rm -f conftest.er1
35938   cat conftest.err >&5
35939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35940   (exit $ac_status); } && {
35941          test -z "$ac_cxx_werror_flag" ||
35942          test ! -s conftest.err
35943        } && test -s conftest.$ac_objext; then
35944   wx_cv_size_t_is_uint=no
35945 else
35946   echo "$as_me: failed program was:" >&5
35947 sed 's/^/| /' conftest.$ac_ext >&5
35948
35949         wx_cv_size_t_is_uint=yes
35950
35951 fi
35952
35953 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35954
35955
35956 fi
35957 { echo "$as_me:$LINENO: result: $wx_cv_size_t_is_uint" >&5
35958 echo "${ECHO_T}$wx_cv_size_t_is_uint" >&6; }
35959
35960 if test "$wx_cv_size_t_is_uint" = "yes"; then
35961     cat >>confdefs.h <<\_ACEOF
35962 #define wxSIZE_T_IS_UINT 1
35963 _ACEOF
35964
35965 else
35966     { echo "$as_me:$LINENO: checking if size_t is unsigned long" >&5
35967 echo $ECHO_N "checking if size_t is unsigned long... $ECHO_C" >&6; }
35968 if test "${wx_cv_size_t_is_ulong+set}" = set; then
35969   echo $ECHO_N "(cached) $ECHO_C" >&6
35970 else
35971   cat >conftest.$ac_ext <<_ACEOF
35972 /* confdefs.h.  */
35973 _ACEOF
35974 cat confdefs.h >>conftest.$ac_ext
35975 cat >>conftest.$ac_ext <<_ACEOF
35976 /* end confdefs.h.  */
35977 #include <stddef.h>
35978 int
35979 main ()
35980 {
35981
35982                 return 0; }
35983
35984                 struct Foo { void foo(size_t); void foo(unsigned long); };
35985
35986                 int bar() {
35987
35988   ;
35989   return 0;
35990 }
35991 _ACEOF
35992 rm -f conftest.$ac_objext
35993 if { (ac_try="$ac_compile"
35994 case "(($ac_try" in
35995   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35996   *) ac_try_echo=$ac_try;;
35997 esac
35998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35999   (eval "$ac_compile") 2>conftest.er1
36000   ac_status=$?
36001   grep -v '^ *+' conftest.er1 >conftest.err
36002   rm -f conftest.er1
36003   cat conftest.err >&5
36004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36005   (exit $ac_status); } && {
36006          test -z "$ac_cxx_werror_flag" ||
36007          test ! -s conftest.err
36008        } && test -s conftest.$ac_objext; then
36009   wx_cv_size_t_is_ulong=no
36010 else
36011   echo "$as_me: failed program was:" >&5
36012 sed 's/^/| /' conftest.$ac_ext >&5
36013
36014         wx_cv_size_t_is_ulong=yes
36015
36016 fi
36017
36018 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36019
36020 fi
36021 { echo "$as_me:$LINENO: result: $wx_cv_size_t_is_ulong" >&5
36022 echo "${ECHO_T}$wx_cv_size_t_is_ulong" >&6; }
36023
36024     if test "$wx_cv_size_t_is_ulong" = "yes"; then
36025         cat >>confdefs.h <<\_ACEOF
36026 #define wxSIZE_T_IS_ULONG 1
36027 _ACEOF
36028
36029     fi
36030 fi
36031
36032 { echo "$as_me:$LINENO: checking if wchar_t is separate type" >&5
36033 echo $ECHO_N "checking if wchar_t is separate type... $ECHO_C" >&6; }
36034 if test "${wx_cv_wchar_t_is_separate_type+set}" = set; then
36035   echo $ECHO_N "(cached) $ECHO_C" >&6
36036 else
36037   cat >conftest.$ac_ext <<_ACEOF
36038 /* confdefs.h.  */
36039 _ACEOF
36040 cat confdefs.h >>conftest.$ac_ext
36041 cat >>conftest.$ac_ext <<_ACEOF
36042 /* end confdefs.h.  */
36043 #include <wchar.h>
36044 int
36045 main ()
36046 {
36047
36048             return 0; }
36049
36050             struct Foo { void foo(wchar_t);
36051                          void foo(unsigned short);
36052                          void foo(unsigned int);
36053                          void foo(unsigned long); };
36054
36055             int bar() {
36056
36057   ;
36058   return 0;
36059 }
36060 _ACEOF
36061 rm -f conftest.$ac_objext
36062 if { (ac_try="$ac_compile"
36063 case "(($ac_try" in
36064   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36065   *) ac_try_echo=$ac_try;;
36066 esac
36067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36068   (eval "$ac_compile") 2>conftest.er1
36069   ac_status=$?
36070   grep -v '^ *+' conftest.er1 >conftest.err
36071   rm -f conftest.er1
36072   cat conftest.err >&5
36073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36074   (exit $ac_status); } && {
36075          test -z "$ac_cxx_werror_flag" ||
36076          test ! -s conftest.err
36077        } && test -s conftest.$ac_objext; then
36078   wx_cv_wchar_t_is_separate_type=yes
36079 else
36080   echo "$as_me: failed program was:" >&5
36081 sed 's/^/| /' conftest.$ac_ext >&5
36082
36083         wx_cv_wchar_t_is_separate_type=no
36084
36085 fi
36086
36087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36088
36089 fi
36090 { echo "$as_me:$LINENO: result: $wx_cv_wchar_t_is_separate_type" >&5
36091 echo "${ECHO_T}$wx_cv_wchar_t_is_separate_type" >&6; }
36092
36093 if test "$wx_cv_wchar_t_is_separate_type" = "yes"; then
36094     cat >>confdefs.h <<\_ACEOF
36095 #define wxWCHAR_T_IS_REAL_TYPE 1
36096 _ACEOF
36097
36098 else
36099     cat >>confdefs.h <<\_ACEOF
36100 #define wxWCHAR_T_IS_REAL_TYPE 0
36101 _ACEOF
36102
36103 fi
36104
36105 ac_ext=c
36106 ac_cpp='$CPP $CPPFLAGS'
36107 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36108 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36109 ac_compiler_gnu=$ac_cv_c_compiler_gnu
36110
36111
36112 { echo "$as_me:$LINENO: checking for pw_gecos in struct passwd" >&5
36113 echo $ECHO_N "checking for pw_gecos in struct passwd... $ECHO_C" >&6; }
36114 if test "${wx_cv_struct_pw_gecos+set}" = set; then
36115   echo $ECHO_N "(cached) $ECHO_C" >&6
36116 else
36117
36118         cat >conftest.$ac_ext <<_ACEOF
36119 /* confdefs.h.  */
36120 _ACEOF
36121 cat confdefs.h >>conftest.$ac_ext
36122 cat >>conftest.$ac_ext <<_ACEOF
36123 /* end confdefs.h.  */
36124 #include <pwd.h>
36125 int
36126 main ()
36127 {
36128
36129                 char *p;
36130                 struct passwd *pw;
36131                 p = pw->pw_gecos;
36132
36133   ;
36134   return 0;
36135 }
36136 _ACEOF
36137 rm -f conftest.$ac_objext
36138 if { (ac_try="$ac_compile"
36139 case "(($ac_try" in
36140   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36141   *) ac_try_echo=$ac_try;;
36142 esac
36143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36144   (eval "$ac_compile") 2>conftest.er1
36145   ac_status=$?
36146   grep -v '^ *+' conftest.er1 >conftest.err
36147   rm -f conftest.er1
36148   cat conftest.err >&5
36149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36150   (exit $ac_status); } && {
36151          test -z "$ac_c_werror_flag" ||
36152          test ! -s conftest.err
36153        } && test -s conftest.$ac_objext; then
36154
36155                 wx_cv_struct_pw_gecos=yes
36156
36157 else
36158   echo "$as_me: failed program was:" >&5
36159 sed 's/^/| /' conftest.$ac_ext >&5
36160
36161
36162                 wx_cv_struct_pw_gecos=no
36163
36164
36165 fi
36166
36167 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36168
36169
36170 fi
36171 { echo "$as_me:$LINENO: result: $wx_cv_struct_pw_gecos" >&5
36172 echo "${ECHO_T}$wx_cv_struct_pw_gecos" >&6; }
36173
36174 if test "$wx_cv_struct_pw_gecos" = "yes"; then
36175     cat >>confdefs.h <<\_ACEOF
36176 #define HAVE_PW_GECOS 1
36177 _ACEOF
36178
36179 fi
36180
36181
36182 WCSLEN_FOUND=0
36183 WCHAR_LINK=
36184
36185 for ac_func in wcslen
36186 do
36187 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36188 { echo "$as_me:$LINENO: checking for $ac_func" >&5
36189 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
36190 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
36191   echo $ECHO_N "(cached) $ECHO_C" >&6
36192 else
36193   cat >conftest.$ac_ext <<_ACEOF
36194 /* confdefs.h.  */
36195 _ACEOF
36196 cat confdefs.h >>conftest.$ac_ext
36197 cat >>conftest.$ac_ext <<_ACEOF
36198 /* end confdefs.h.  */
36199 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36200    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36201 #define $ac_func innocuous_$ac_func
36202
36203 /* System header to define __stub macros and hopefully few prototypes,
36204     which can conflict with char $ac_func (); below.
36205     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36206     <limits.h> exists even on freestanding compilers.  */
36207
36208 #ifdef __STDC__
36209 # include <limits.h>
36210 #else
36211 # include <assert.h>
36212 #endif
36213
36214 #undef $ac_func
36215
36216 /* Override any GCC internal prototype to avoid an error.
36217    Use char because int might match the return type of a GCC
36218    builtin and then its argument prototype would still apply.  */
36219 #ifdef __cplusplus
36220 extern "C"
36221 #endif
36222 char $ac_func ();
36223 /* The GNU C library defines this for functions which it implements
36224     to always fail with ENOSYS.  Some functions are actually named
36225     something starting with __ and the normal name is an alias.  */
36226 #if defined __stub_$ac_func || defined __stub___$ac_func
36227 choke me
36228 #endif
36229
36230 int
36231 main ()
36232 {
36233 return $ac_func ();
36234   ;
36235   return 0;
36236 }
36237 _ACEOF
36238 rm -f conftest.$ac_objext conftest$ac_exeext
36239 if { (ac_try="$ac_link"
36240 case "(($ac_try" in
36241   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36242   *) ac_try_echo=$ac_try;;
36243 esac
36244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36245   (eval "$ac_link") 2>conftest.er1
36246   ac_status=$?
36247   grep -v '^ *+' conftest.er1 >conftest.err
36248   rm -f conftest.er1
36249   cat conftest.err >&5
36250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36251   (exit $ac_status); } && {
36252          test -z "$ac_c_werror_flag" ||
36253          test ! -s conftest.err
36254        } && test -s conftest$ac_exeext &&
36255        $as_test_x conftest$ac_exeext; then
36256   eval "$as_ac_var=yes"
36257 else
36258   echo "$as_me: failed program was:" >&5
36259 sed 's/^/| /' conftest.$ac_ext >&5
36260
36261         eval "$as_ac_var=no"
36262 fi
36263
36264 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36265       conftest$ac_exeext conftest.$ac_ext
36266 fi
36267 ac_res=`eval echo '${'$as_ac_var'}'`
36268                { echo "$as_me:$LINENO: result: $ac_res" >&5
36269 echo "${ECHO_T}$ac_res" >&6; }
36270 if test `eval echo '${'$as_ac_var'}'` = yes; then
36271   cat >>confdefs.h <<_ACEOF
36272 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36273 _ACEOF
36274  WCSLEN_FOUND=1
36275 fi
36276 done
36277
36278
36279 if test "$WCSLEN_FOUND" = 0; then
36280     if test "$TOOLKIT" = "MSW"; then
36281         { echo "$as_me:$LINENO: checking for wcslen in -lmsvcrt" >&5
36282 echo $ECHO_N "checking for wcslen in -lmsvcrt... $ECHO_C" >&6; }
36283 if test "${ac_cv_lib_msvcrt_wcslen+set}" = set; then
36284   echo $ECHO_N "(cached) $ECHO_C" >&6
36285 else
36286   ac_check_lib_save_LIBS=$LIBS
36287 LIBS="-lmsvcrt  $LIBS"
36288 cat >conftest.$ac_ext <<_ACEOF
36289 /* confdefs.h.  */
36290 _ACEOF
36291 cat confdefs.h >>conftest.$ac_ext
36292 cat >>conftest.$ac_ext <<_ACEOF
36293 /* end confdefs.h.  */
36294
36295 /* Override any GCC internal prototype to avoid an error.
36296    Use char because int might match the return type of a GCC
36297    builtin and then its argument prototype would still apply.  */
36298 #ifdef __cplusplus
36299 extern "C"
36300 #endif
36301 char wcslen ();
36302 int
36303 main ()
36304 {
36305 return wcslen ();
36306   ;
36307   return 0;
36308 }
36309 _ACEOF
36310 rm -f conftest.$ac_objext conftest$ac_exeext
36311 if { (ac_try="$ac_link"
36312 case "(($ac_try" in
36313   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36314   *) ac_try_echo=$ac_try;;
36315 esac
36316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36317   (eval "$ac_link") 2>conftest.er1
36318   ac_status=$?
36319   grep -v '^ *+' conftest.er1 >conftest.err
36320   rm -f conftest.er1
36321   cat conftest.err >&5
36322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36323   (exit $ac_status); } && {
36324          test -z "$ac_c_werror_flag" ||
36325          test ! -s conftest.err
36326        } && test -s conftest$ac_exeext &&
36327        $as_test_x conftest$ac_exeext; then
36328   ac_cv_lib_msvcrt_wcslen=yes
36329 else
36330   echo "$as_me: failed program was:" >&5
36331 sed 's/^/| /' conftest.$ac_ext >&5
36332
36333         ac_cv_lib_msvcrt_wcslen=no
36334 fi
36335
36336 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36337       conftest$ac_exeext conftest.$ac_ext
36338 LIBS=$ac_check_lib_save_LIBS
36339 fi
36340 { echo "$as_me:$LINENO: result: $ac_cv_lib_msvcrt_wcslen" >&5
36341 echo "${ECHO_T}$ac_cv_lib_msvcrt_wcslen" >&6; }
36342 if test $ac_cv_lib_msvcrt_wcslen = yes; then
36343   WCHAR_OK=1
36344 fi
36345
36346     else
36347         { echo "$as_me:$LINENO: checking for wcslen in -lw" >&5
36348 echo $ECHO_N "checking for wcslen in -lw... $ECHO_C" >&6; }
36349 if test "${ac_cv_lib_w_wcslen+set}" = set; then
36350   echo $ECHO_N "(cached) $ECHO_C" >&6
36351 else
36352   ac_check_lib_save_LIBS=$LIBS
36353 LIBS="-lw  $LIBS"
36354 cat >conftest.$ac_ext <<_ACEOF
36355 /* confdefs.h.  */
36356 _ACEOF
36357 cat confdefs.h >>conftest.$ac_ext
36358 cat >>conftest.$ac_ext <<_ACEOF
36359 /* end confdefs.h.  */
36360
36361 /* Override any GCC internal prototype to avoid an error.
36362    Use char because int might match the return type of a GCC
36363    builtin and then its argument prototype would still apply.  */
36364 #ifdef __cplusplus
36365 extern "C"
36366 #endif
36367 char wcslen ();
36368 int
36369 main ()
36370 {
36371 return wcslen ();
36372   ;
36373   return 0;
36374 }
36375 _ACEOF
36376 rm -f conftest.$ac_objext conftest$ac_exeext
36377 if { (ac_try="$ac_link"
36378 case "(($ac_try" in
36379   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36380   *) ac_try_echo=$ac_try;;
36381 esac
36382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36383   (eval "$ac_link") 2>conftest.er1
36384   ac_status=$?
36385   grep -v '^ *+' conftest.er1 >conftest.err
36386   rm -f conftest.er1
36387   cat conftest.err >&5
36388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36389   (exit $ac_status); } && {
36390          test -z "$ac_c_werror_flag" ||
36391          test ! -s conftest.err
36392        } && test -s conftest$ac_exeext &&
36393        $as_test_x conftest$ac_exeext; then
36394   ac_cv_lib_w_wcslen=yes
36395 else
36396   echo "$as_me: failed program was:" >&5
36397 sed 's/^/| /' conftest.$ac_ext >&5
36398
36399         ac_cv_lib_w_wcslen=no
36400 fi
36401
36402 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36403       conftest$ac_exeext conftest.$ac_ext
36404 LIBS=$ac_check_lib_save_LIBS
36405 fi
36406 { echo "$as_me:$LINENO: result: $ac_cv_lib_w_wcslen" >&5
36407 echo "${ECHO_T}$ac_cv_lib_w_wcslen" >&6; }
36408 if test $ac_cv_lib_w_wcslen = yes; then
36409
36410                         WCHAR_LINK=" -lw"
36411                         WCSLEN_FOUND=1
36412
36413 fi
36414
36415     fi
36416 fi
36417
36418 if test "$WCSLEN_FOUND" = 1; then
36419     cat >>confdefs.h <<\_ACEOF
36420 #define HAVE_WCSLEN 1
36421 _ACEOF
36422
36423 fi
36424
36425
36426
36427
36428
36429
36430
36431 for ac_func in wcsdup wcsftime strnlen wcsnlen wcscasecmp wcsncasecmp
36432 do
36433 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36434 { echo "$as_me:$LINENO: checking for $ac_func" >&5
36435 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
36436 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
36437   echo $ECHO_N "(cached) $ECHO_C" >&6
36438 else
36439   cat >conftest.$ac_ext <<_ACEOF
36440 /* confdefs.h.  */
36441 _ACEOF
36442 cat confdefs.h >>conftest.$ac_ext
36443 cat >>conftest.$ac_ext <<_ACEOF
36444 /* end confdefs.h.  */
36445 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36446    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36447 #define $ac_func innocuous_$ac_func
36448
36449 /* System header to define __stub macros and hopefully few prototypes,
36450     which can conflict with char $ac_func (); below.
36451     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36452     <limits.h> exists even on freestanding compilers.  */
36453
36454 #ifdef __STDC__
36455 # include <limits.h>
36456 #else
36457 # include <assert.h>
36458 #endif
36459
36460 #undef $ac_func
36461
36462 /* Override any GCC internal prototype to avoid an error.
36463    Use char because int might match the return type of a GCC
36464    builtin and then its argument prototype would still apply.  */
36465 #ifdef __cplusplus
36466 extern "C"
36467 #endif
36468 char $ac_func ();
36469 /* The GNU C library defines this for functions which it implements
36470     to always fail with ENOSYS.  Some functions are actually named
36471     something starting with __ and the normal name is an alias.  */
36472 #if defined __stub_$ac_func || defined __stub___$ac_func
36473 choke me
36474 #endif
36475
36476 int
36477 main ()
36478 {
36479 return $ac_func ();
36480   ;
36481   return 0;
36482 }
36483 _ACEOF
36484 rm -f conftest.$ac_objext conftest$ac_exeext
36485 if { (ac_try="$ac_link"
36486 case "(($ac_try" in
36487   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36488   *) ac_try_echo=$ac_try;;
36489 esac
36490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36491   (eval "$ac_link") 2>conftest.er1
36492   ac_status=$?
36493   grep -v '^ *+' conftest.er1 >conftest.err
36494   rm -f conftest.er1
36495   cat conftest.err >&5
36496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36497   (exit $ac_status); } && {
36498          test -z "$ac_c_werror_flag" ||
36499          test ! -s conftest.err
36500        } && test -s conftest$ac_exeext &&
36501        $as_test_x conftest$ac_exeext; then
36502   eval "$as_ac_var=yes"
36503 else
36504   echo "$as_me: failed program was:" >&5
36505 sed 's/^/| /' conftest.$ac_ext >&5
36506
36507         eval "$as_ac_var=no"
36508 fi
36509
36510 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36511       conftest$ac_exeext conftest.$ac_ext
36512 fi
36513 ac_res=`eval echo '${'$as_ac_var'}'`
36514                { echo "$as_me:$LINENO: result: $ac_res" >&5
36515 echo "${ECHO_T}$ac_res" >&6; }
36516 if test `eval echo '${'$as_ac_var'}'` = yes; then
36517   cat >>confdefs.h <<_ACEOF
36518 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36519 _ACEOF
36520
36521 fi
36522 done
36523
36524
36525 if test "$USE_HPUX" = 1 -a "$GCC" != "yes"; then
36526     CPPFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CPPFLAGS"
36527 fi
36528
36529 { echo "$as_me:$LINENO: checking for mbstate_t" >&5
36530 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6; }
36531 if test "${ac_cv_type_mbstate_t+set}" = set; then
36532   echo $ECHO_N "(cached) $ECHO_C" >&6
36533 else
36534   cat >conftest.$ac_ext <<_ACEOF
36535 /* confdefs.h.  */
36536 _ACEOF
36537 cat confdefs.h >>conftest.$ac_ext
36538 cat >>conftest.$ac_ext <<_ACEOF
36539 /* end confdefs.h.  */
36540 #include <wchar.h>
36541
36542 typedef mbstate_t ac__type_new_;
36543 int
36544 main ()
36545 {
36546 if ((ac__type_new_ *) 0)
36547   return 0;
36548 if (sizeof (ac__type_new_))
36549   return 0;
36550   ;
36551   return 0;
36552 }
36553 _ACEOF
36554 rm -f conftest.$ac_objext
36555 if { (ac_try="$ac_compile"
36556 case "(($ac_try" in
36557   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36558   *) ac_try_echo=$ac_try;;
36559 esac
36560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36561   (eval "$ac_compile") 2>conftest.er1
36562   ac_status=$?
36563   grep -v '^ *+' conftest.er1 >conftest.err
36564   rm -f conftest.er1
36565   cat conftest.err >&5
36566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36567   (exit $ac_status); } && {
36568          test -z "$ac_c_werror_flag" ||
36569          test ! -s conftest.err
36570        } && test -s conftest.$ac_objext; then
36571   ac_cv_type_mbstate_t=yes
36572 else
36573   echo "$as_me: failed program was:" >&5
36574 sed 's/^/| /' conftest.$ac_ext >&5
36575
36576         ac_cv_type_mbstate_t=no
36577 fi
36578
36579 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36580 fi
36581 { echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
36582 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6; }
36583 if test $ac_cv_type_mbstate_t = yes; then
36584
36585 cat >>confdefs.h <<_ACEOF
36586 #define HAVE_MBSTATE_T 1
36587 _ACEOF
36588
36589
36590 for ac_func in wcsrtombs
36591 do
36592 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36593 { echo "$as_me:$LINENO: checking for $ac_func" >&5
36594 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
36595 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
36596   echo $ECHO_N "(cached) $ECHO_C" >&6
36597 else
36598   cat >conftest.$ac_ext <<_ACEOF
36599 /* confdefs.h.  */
36600 _ACEOF
36601 cat confdefs.h >>conftest.$ac_ext
36602 cat >>conftest.$ac_ext <<_ACEOF
36603 /* end confdefs.h.  */
36604 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36605    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36606 #define $ac_func innocuous_$ac_func
36607
36608 /* System header to define __stub macros and hopefully few prototypes,
36609     which can conflict with char $ac_func (); below.
36610     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36611     <limits.h> exists even on freestanding compilers.  */
36612
36613 #ifdef __STDC__
36614 # include <limits.h>
36615 #else
36616 # include <assert.h>
36617 #endif
36618
36619 #undef $ac_func
36620
36621 /* Override any GCC internal prototype to avoid an error.
36622    Use char because int might match the return type of a GCC
36623    builtin and then its argument prototype would still apply.  */
36624 #ifdef __cplusplus
36625 extern "C"
36626 #endif
36627 char $ac_func ();
36628 /* The GNU C library defines this for functions which it implements
36629     to always fail with ENOSYS.  Some functions are actually named
36630     something starting with __ and the normal name is an alias.  */
36631 #if defined __stub_$ac_func || defined __stub___$ac_func
36632 choke me
36633 #endif
36634
36635 int
36636 main ()
36637 {
36638 return $ac_func ();
36639   ;
36640   return 0;
36641 }
36642 _ACEOF
36643 rm -f conftest.$ac_objext conftest$ac_exeext
36644 if { (ac_try="$ac_link"
36645 case "(($ac_try" in
36646   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36647   *) ac_try_echo=$ac_try;;
36648 esac
36649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36650   (eval "$ac_link") 2>conftest.er1
36651   ac_status=$?
36652   grep -v '^ *+' conftest.er1 >conftest.err
36653   rm -f conftest.er1
36654   cat conftest.err >&5
36655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36656   (exit $ac_status); } && {
36657          test -z "$ac_c_werror_flag" ||
36658          test ! -s conftest.err
36659        } && test -s conftest$ac_exeext &&
36660        $as_test_x conftest$ac_exeext; then
36661   eval "$as_ac_var=yes"
36662 else
36663   echo "$as_me: failed program was:" >&5
36664 sed 's/^/| /' conftest.$ac_ext >&5
36665
36666         eval "$as_ac_var=no"
36667 fi
36668
36669 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36670       conftest$ac_exeext conftest.$ac_ext
36671 fi
36672 ac_res=`eval echo '${'$as_ac_var'}'`
36673                { echo "$as_me:$LINENO: result: $ac_res" >&5
36674 echo "${ECHO_T}$ac_res" >&6; }
36675 if test `eval echo '${'$as_ac_var'}'` = yes; then
36676   cat >>confdefs.h <<_ACEOF
36677 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36678 _ACEOF
36679
36680 fi
36681 done
36682
36683 fi
36684
36685
36686
36687
36688
36689 for ac_func in snprintf vsnprintf vsscanf
36690 do
36691 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36692 { echo "$as_me:$LINENO: checking for $ac_func" >&5
36693 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
36694 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
36695   echo $ECHO_N "(cached) $ECHO_C" >&6
36696 else
36697   cat >conftest.$ac_ext <<_ACEOF
36698 /* confdefs.h.  */
36699 _ACEOF
36700 cat confdefs.h >>conftest.$ac_ext
36701 cat >>conftest.$ac_ext <<_ACEOF
36702 /* end confdefs.h.  */
36703 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36704    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36705 #define $ac_func innocuous_$ac_func
36706
36707 /* System header to define __stub macros and hopefully few prototypes,
36708     which can conflict with char $ac_func (); below.
36709     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36710     <limits.h> exists even on freestanding compilers.  */
36711
36712 #ifdef __STDC__
36713 # include <limits.h>
36714 #else
36715 # include <assert.h>
36716 #endif
36717
36718 #undef $ac_func
36719
36720 /* Override any GCC internal prototype to avoid an error.
36721    Use char because int might match the return type of a GCC
36722    builtin and then its argument prototype would still apply.  */
36723 #ifdef __cplusplus
36724 extern "C"
36725 #endif
36726 char $ac_func ();
36727 /* The GNU C library defines this for functions which it implements
36728     to always fail with ENOSYS.  Some functions are actually named
36729     something starting with __ and the normal name is an alias.  */
36730 #if defined __stub_$ac_func || defined __stub___$ac_func
36731 choke me
36732 #endif
36733
36734 int
36735 main ()
36736 {
36737 return $ac_func ();
36738   ;
36739   return 0;
36740 }
36741 _ACEOF
36742 rm -f conftest.$ac_objext conftest$ac_exeext
36743 if { (ac_try="$ac_link"
36744 case "(($ac_try" in
36745   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36746   *) ac_try_echo=$ac_try;;
36747 esac
36748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36749   (eval "$ac_link") 2>conftest.er1
36750   ac_status=$?
36751   grep -v '^ *+' conftest.er1 >conftest.err
36752   rm -f conftest.er1
36753   cat conftest.err >&5
36754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36755   (exit $ac_status); } && {
36756          test -z "$ac_c_werror_flag" ||
36757          test ! -s conftest.err
36758        } && test -s conftest$ac_exeext &&
36759        $as_test_x conftest$ac_exeext; then
36760   eval "$as_ac_var=yes"
36761 else
36762   echo "$as_me: failed program was:" >&5
36763 sed 's/^/| /' conftest.$ac_ext >&5
36764
36765         eval "$as_ac_var=no"
36766 fi
36767
36768 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36769       conftest$ac_exeext conftest.$ac_ext
36770 fi
36771 ac_res=`eval echo '${'$as_ac_var'}'`
36772                { echo "$as_me:$LINENO: result: $ac_res" >&5
36773 echo "${ECHO_T}$ac_res" >&6; }
36774 if test `eval echo '${'$as_ac_var'}'` = yes; then
36775   cat >>confdefs.h <<_ACEOF
36776 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36777 _ACEOF
36778
36779 fi
36780 done
36781
36782
36783 ac_ext=cpp
36784 ac_cpp='$CXXCPP $CPPFLAGS'
36785 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36786 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36787 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
36788
36789 if test "$ac_cv_func_vsnprintf" = "yes"; then
36790         { echo "$as_me:$LINENO: checking for vsnprintf declaration" >&5
36791 echo $ECHO_N "checking for vsnprintf declaration... $ECHO_C" >&6; }
36792 if test "${wx_cv_func_vsnprintf_decl+set}" = set; then
36793   echo $ECHO_N "(cached) $ECHO_C" >&6
36794 else
36795
36796                                                             cat >conftest.$ac_ext <<_ACEOF
36797 /* confdefs.h.  */
36798 _ACEOF
36799 cat confdefs.h >>conftest.$ac_ext
36800 cat >>conftest.$ac_ext <<_ACEOF
36801 /* end confdefs.h.  */
36802
36803                     #include <stdio.h>
36804                     #include <stdarg.h>
36805                     #ifdef __MSL__
36806                     #if __MSL__ >= 0x6000
36807                     namespace std {}
36808                     using namespace std;
36809                     #endif
36810                     #endif
36811
36812 int
36813 main ()
36814 {
36815
36816                     char *buf;
36817                     va_list ap;
36818                     vsnprintf(buf, 10u, "%s", ap);
36819
36820   ;
36821   return 0;
36822 }
36823 _ACEOF
36824 rm -f conftest.$ac_objext
36825 if { (ac_try="$ac_compile"
36826 case "(($ac_try" in
36827   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36828   *) ac_try_echo=$ac_try;;
36829 esac
36830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36831   (eval "$ac_compile") 2>conftest.er1
36832   ac_status=$?
36833   grep -v '^ *+' conftest.er1 >conftest.err
36834   rm -f conftest.er1
36835   cat conftest.err >&5
36836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36837   (exit $ac_status); } && {
36838          test -z "$ac_cxx_werror_flag" ||
36839          test ! -s conftest.err
36840        } && test -s conftest.$ac_objext; then
36841   wx_cv_func_vsnprintf_decl=yes
36842 else
36843   echo "$as_me: failed program was:" >&5
36844 sed 's/^/| /' conftest.$ac_ext >&5
36845
36846         wx_cv_func_vsnprintf_decl=no
36847
36848 fi
36849
36850 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36851
36852
36853 fi
36854 { echo "$as_me:$LINENO: result: $wx_cv_func_vsnprintf_decl" >&5
36855 echo "${ECHO_T}$wx_cv_func_vsnprintf_decl" >&6; }
36856
36857     if test "$wx_cv_func_vsnprintf_decl" = "yes"; then
36858         cat >>confdefs.h <<\_ACEOF
36859 #define HAVE_VSNPRINTF_DECL 1
36860 _ACEOF
36861
36862
36863                         { echo "$as_me:$LINENO: checking if vsnprintf declaration is broken" >&5
36864 echo $ECHO_N "checking if vsnprintf declaration is broken... $ECHO_C" >&6; }
36865 if test "${wx_cv_func_broken_vsnprintf_decl+set}" = set; then
36866   echo $ECHO_N "(cached) $ECHO_C" >&6
36867 else
36868
36869                 cat >conftest.$ac_ext <<_ACEOF
36870 /* confdefs.h.  */
36871 _ACEOF
36872 cat confdefs.h >>conftest.$ac_ext
36873 cat >>conftest.$ac_ext <<_ACEOF
36874 /* end confdefs.h.  */
36875
36876                         #include <stdio.h>
36877                         #include <stdarg.h>
36878                         #ifdef __MSL__
36879                         #if __MSL__ >= 0x6000
36880                         namespace std {}
36881                         using namespace std;
36882                         #endif
36883                         #endif
36884
36885 int
36886 main ()
36887 {
36888
36889                         char *buf;
36890                         va_list ap;
36891                         const char *fmt = "%s";
36892                         vsnprintf(buf, 10u, fmt, ap);
36893
36894   ;
36895   return 0;
36896 }
36897 _ACEOF
36898 rm -f conftest.$ac_objext
36899 if { (ac_try="$ac_compile"
36900 case "(($ac_try" in
36901   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36902   *) ac_try_echo=$ac_try;;
36903 esac
36904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36905   (eval "$ac_compile") 2>conftest.er1
36906   ac_status=$?
36907   grep -v '^ *+' conftest.er1 >conftest.err
36908   rm -f conftest.er1
36909   cat conftest.err >&5
36910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36911   (exit $ac_status); } && {
36912          test -z "$ac_cxx_werror_flag" ||
36913          test ! -s conftest.err
36914        } && test -s conftest.$ac_objext; then
36915   wx_cv_func_broken_vsnprintf_decl=no
36916 else
36917   echo "$as_me: failed program was:" >&5
36918 sed 's/^/| /' conftest.$ac_ext >&5
36919
36920         wx_cv_func_broken_vsnprintf_decl=yes
36921
36922 fi
36923
36924 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36925
36926
36927 fi
36928 { echo "$as_me:$LINENO: result: $wx_cv_func_broken_vsnprintf_decl" >&5
36929 echo "${ECHO_T}$wx_cv_func_broken_vsnprintf_decl" >&6; }
36930
36931         if test "$wx_cv_func_broken_vsnprintf_decl" = "yes"; then
36932             cat >>confdefs.h <<\_ACEOF
36933 #define HAVE_BROKEN_VSNPRINTF_DECL 1
36934 _ACEOF
36935
36936         fi
36937     fi
36938 fi
36939
36940 if test "$ac_cv_func_snprintf" = "yes"; then
36941     { echo "$as_me:$LINENO: checking for snprintf declaration" >&5
36942 echo $ECHO_N "checking for snprintf declaration... $ECHO_C" >&6; }
36943 if test "${wx_cv_func_snprintf_decl+set}" = set; then
36944   echo $ECHO_N "(cached) $ECHO_C" >&6
36945 else
36946
36947             cat >conftest.$ac_ext <<_ACEOF
36948 /* confdefs.h.  */
36949 _ACEOF
36950 cat confdefs.h >>conftest.$ac_ext
36951 cat >>conftest.$ac_ext <<_ACEOF
36952 /* end confdefs.h.  */
36953
36954                     #include <stdio.h>
36955                     #include <stdarg.h>
36956                     #ifdef __MSL__
36957                     #if __MSL__ >= 0x6000
36958                     namespace std {}
36959                     using namespace std;
36960                     #endif
36961                     #endif
36962
36963 int
36964 main ()
36965 {
36966
36967                     char *buf;
36968                     snprintf(buf, 10u, "%s", "wx");
36969
36970   ;
36971   return 0;
36972 }
36973 _ACEOF
36974 rm -f conftest.$ac_objext
36975 if { (ac_try="$ac_compile"
36976 case "(($ac_try" in
36977   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36978   *) ac_try_echo=$ac_try;;
36979 esac
36980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36981   (eval "$ac_compile") 2>conftest.er1
36982   ac_status=$?
36983   grep -v '^ *+' conftest.er1 >conftest.err
36984   rm -f conftest.er1
36985   cat conftest.err >&5
36986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36987   (exit $ac_status); } && {
36988          test -z "$ac_cxx_werror_flag" ||
36989          test ! -s conftest.err
36990        } && test -s conftest.$ac_objext; then
36991   wx_cv_func_snprintf_decl=yes
36992 else
36993   echo "$as_me: failed program was:" >&5
36994 sed 's/^/| /' conftest.$ac_ext >&5
36995
36996         wx_cv_func_snprintf_decl=no
36997
36998 fi
36999
37000 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37001
37002
37003 fi
37004 { echo "$as_me:$LINENO: result: $wx_cv_func_snprintf_decl" >&5
37005 echo "${ECHO_T}$wx_cv_func_snprintf_decl" >&6; }
37006
37007     if test "$wx_cv_func_snprintf_decl" = "yes"; then
37008         cat >>confdefs.h <<\_ACEOF
37009 #define HAVE_SNPRINTF_DECL 1
37010 _ACEOF
37011
37012     fi
37013
37014     if test "$wxUSE_PRINTF_POS_PARAMS" = "yes"; then
37015
37016                                         { echo "$as_me:$LINENO: checking if snprintf supports positional arguments" >&5
37017 echo $ECHO_N "checking if snprintf supports positional arguments... $ECHO_C" >&6; }
37018 if test "${wx_cv_func_snprintf_pos_params+set}" = set; then
37019   echo $ECHO_N "(cached) $ECHO_C" >&6
37020 else
37021
37022                 if test "$cross_compiling" = yes; then
37023
37024                         { echo "$as_me:$LINENO: WARNING: Assuming Unix98 printf() is not available,
37025 define HAVE_UNIX98_PRINTF as 1 in setup.h if it is available." >&5
37026 echo "$as_me: WARNING: Assuming Unix98 printf() is not available,
37027 define HAVE_UNIX98_PRINTF as 1 in setup.h if it is available." >&2;}
37028                         wx_cv_func_snprintf_pos_params=no
37029
37030
37031 else
37032   cat >conftest.$ac_ext <<_ACEOF
37033 /* confdefs.h.  */
37034 _ACEOF
37035 cat confdefs.h >>conftest.$ac_ext
37036 cat >>conftest.$ac_ext <<_ACEOF
37037 /* end confdefs.h.  */
37038
37039                         #include <stdio.h>
37040
37041                         int main (void)
37042                         {
37043                             char buffer[128];
37044                             snprintf (buffer, 128, "%2$d %3$d %1$d", 1, 2, 3);
37045                             if (strcmp ("2 3 1", buffer) == 0)
37046                                 exit (0);
37047                             exit (1);
37048                         }
37049
37050 _ACEOF
37051 rm -f conftest$ac_exeext
37052 if { (ac_try="$ac_link"
37053 case "(($ac_try" in
37054   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37055   *) ac_try_echo=$ac_try;;
37056 esac
37057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37058   (eval "$ac_link") 2>&5
37059   ac_status=$?
37060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37061   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
37062   { (case "(($ac_try" in
37063   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37064   *) ac_try_echo=$ac_try;;
37065 esac
37066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37067   (eval "$ac_try") 2>&5
37068   ac_status=$?
37069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37070   (exit $ac_status); }; }; then
37071   wx_cv_func_snprintf_pos_params=no
37072 else
37073   echo "$as_me: program exited with status $ac_status" >&5
37074 echo "$as_me: failed program was:" >&5
37075 sed 's/^/| /' conftest.$ac_ext >&5
37076
37077 ( exit $ac_status )
37078 wx_cv_func_snprintf_pos_params=yes
37079 fi
37080 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
37081 fi
37082
37083
37084
37085
37086 fi
37087 { echo "$as_me:$LINENO: result: $wx_cv_func_snprintf_pos_params" >&5
37088 echo "${ECHO_T}$wx_cv_func_snprintf_pos_params" >&6; }
37089
37090         if test "$wx_cv_func_snprintf_pos_params" = "yes"; then
37091             cat >>confdefs.h <<\_ACEOF
37092 #define HAVE_UNIX98_PRINTF 1
37093 _ACEOF
37094
37095         fi
37096     fi
37097 fi
37098
37099 if test "$ac_cv_func_vsscanf" = "yes"; then
37100     { echo "$as_me:$LINENO: checking for vsscanf declaration" >&5
37101 echo $ECHO_N "checking for vsscanf declaration... $ECHO_C" >&6; }
37102 if test "${wx_cv_func_vsscanf_decl+set}" = set; then
37103   echo $ECHO_N "(cached) $ECHO_C" >&6
37104 else
37105
37106             cat >conftest.$ac_ext <<_ACEOF
37107 /* confdefs.h.  */
37108 _ACEOF
37109 cat confdefs.h >>conftest.$ac_ext
37110 cat >>conftest.$ac_ext <<_ACEOF
37111 /* end confdefs.h.  */
37112
37113                     #include <stdio.h>
37114                     #include <stdarg.h>
37115                     #ifdef __MSL__
37116                     #if __MSL__ >= 0x6000
37117                     namespace std {}
37118                     using namespace std;
37119                     #endif
37120                     #endif
37121
37122 int
37123 main ()
37124 {
37125
37126                     char *buf;
37127                     va_list args;
37128                     vsscanf(buf, "%s", args);
37129
37130   ;
37131   return 0;
37132 }
37133 _ACEOF
37134 rm -f conftest.$ac_objext
37135 if { (ac_try="$ac_compile"
37136 case "(($ac_try" in
37137   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37138   *) ac_try_echo=$ac_try;;
37139 esac
37140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37141   (eval "$ac_compile") 2>conftest.er1
37142   ac_status=$?
37143   grep -v '^ *+' conftest.er1 >conftest.err
37144   rm -f conftest.er1
37145   cat conftest.err >&5
37146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37147   (exit $ac_status); } && {
37148          test -z "$ac_cxx_werror_flag" ||
37149          test ! -s conftest.err
37150        } && test -s conftest.$ac_objext; then
37151   wx_cv_func_vsscanf_decl=yes
37152 else
37153   echo "$as_me: failed program was:" >&5
37154 sed 's/^/| /' conftest.$ac_ext >&5
37155
37156         wx_cv_func_vsscanf_decl=no
37157
37158 fi
37159
37160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37161
37162
37163 fi
37164 { echo "$as_me:$LINENO: result: $wx_cv_func_vsscanf_decl" >&5
37165 echo "${ECHO_T}$wx_cv_func_vsscanf_decl" >&6; }
37166
37167     if test "$wx_cv_func_vsscanf_decl" = "yes"; then
37168         cat >>confdefs.h <<\_ACEOF
37169 #define HAVE_VSSCANF_DECL 1
37170 _ACEOF
37171
37172     fi
37173 fi
37174 ac_ext=c
37175 ac_cpp='$CPP $CPPFLAGS'
37176 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37177 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37178 ac_compiler_gnu=$ac_cv_c_compiler_gnu
37179
37180
37181 if test "$wxUSE_UNICODE" = yes; then
37182
37183             wchar_headers="#include <stdio.h>
37184 #include <wchar.h>"
37185     case "${host}" in
37186         *-*-solaris2* )
37187
37188 for ac_header in widec.h
37189 do
37190 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
37191 { echo "$as_me:$LINENO: checking for $ac_header" >&5
37192 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
37193 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
37194   echo $ECHO_N "(cached) $ECHO_C" >&6
37195 else
37196   cat >conftest.$ac_ext <<_ACEOF
37197 /* confdefs.h.  */
37198 _ACEOF
37199 cat confdefs.h >>conftest.$ac_ext
37200 cat >>conftest.$ac_ext <<_ACEOF
37201 /* end confdefs.h.  */
37202 $ac_includes_default
37203
37204 #include <$ac_header>
37205 _ACEOF
37206 rm -f conftest.$ac_objext
37207 if { (ac_try="$ac_compile"
37208 case "(($ac_try" in
37209   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37210   *) ac_try_echo=$ac_try;;
37211 esac
37212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37213   (eval "$ac_compile") 2>conftest.er1
37214   ac_status=$?
37215   grep -v '^ *+' conftest.er1 >conftest.err
37216   rm -f conftest.er1
37217   cat conftest.err >&5
37218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37219   (exit $ac_status); } && {
37220          test -z "$ac_c_werror_flag" ||
37221          test ! -s conftest.err
37222        } && test -s conftest.$ac_objext; then
37223   eval "$as_ac_Header=yes"
37224 else
37225   echo "$as_me: failed program was:" >&5
37226 sed 's/^/| /' conftest.$ac_ext >&5
37227
37228         eval "$as_ac_Header=no"
37229 fi
37230
37231 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37232 fi
37233 ac_res=`eval echo '${'$as_ac_Header'}'`
37234                { echo "$as_me:$LINENO: result: $ac_res" >&5
37235 echo "${ECHO_T}$ac_res" >&6; }
37236 if test `eval echo '${'$as_ac_Header'}'` = yes; then
37237   cat >>confdefs.h <<_ACEOF
37238 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
37239 _ACEOF
37240
37241 fi
37242
37243 done
37244
37245             if test "$ac_cv_header_widec_h" = "yes"; then
37246                 wchar_headers="$wchar_headers
37247 #include <widec.h>"
37248             fi
37249     esac
37250
37251
37252   for wx_func in putws fputws wprintf vswprintf vswscanf
37253   do
37254     { echo "$as_me:$LINENO: checking for $wx_func" >&5
37255 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
37256 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
37257   echo $ECHO_N "(cached) $ECHO_C" >&6
37258 else
37259
37260         cat >conftest.$ac_ext <<_ACEOF
37261
37262             /* confdefs.h.  */
37263 _ACEOF
37264 cat confdefs.h >>conftest.$ac_ext
37265 cat >>conftest.$ac_ext <<_ACEOF
37266 /* end confdefs.h.  */
37267
37268                 $wchar_headers
37269                 $ac_includes_default
37270
37271 int
37272 main ()
37273 {
37274
37275                 #ifndef $wx_func
37276                   &$wx_func;
37277                 #endif
37278
37279
37280   ;
37281   return 0;
37282 }
37283
37284 _ACEOF
37285 rm -f conftest.$ac_objext conftest$ac_exeext
37286 if { (ac_try="$ac_link"
37287 case "(($ac_try" in
37288   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37289   *) ac_try_echo=$ac_try;;
37290 esac
37291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37292   (eval "$ac_link") 2>conftest.er1
37293   ac_status=$?
37294   grep -v '^ *+' conftest.er1 >conftest.err
37295   rm -f conftest.er1
37296   cat conftest.err >&5
37297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37298   (exit $ac_status); } && {
37299          test -z "$ac_c_werror_flag" ||
37300          test ! -s conftest.err
37301        } && test -s conftest$ac_exeext &&
37302        $as_test_x conftest$ac_exeext; then
37303   eval wx_cv_func_$wx_func=yes
37304 else
37305   echo "$as_me: failed program was:" >&5
37306 sed 's/^/| /' conftest.$ac_ext >&5
37307
37308         eval wx_cv_func_$wx_func=no
37309 fi
37310
37311 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37312       conftest$ac_exeext conftest.$ac_ext
37313
37314 fi
37315 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
37316                { echo "$as_me:$LINENO: result: $ac_res" >&5
37317 echo "${ECHO_T}$ac_res" >&6; }
37318
37319     if eval test \$wx_cv_func_$wx_func = yes
37320     then
37321       cat >>confdefs.h <<_ACEOF
37322 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
37323 _ACEOF
37324
37325
37326     else
37327       :
37328
37329     fi
37330   done
37331
37332
37333                 { echo "$as_me:$LINENO: checking for _vsnwprintf" >&5
37334 echo $ECHO_N "checking for _vsnwprintf... $ECHO_C" >&6; }
37335     cat >conftest.$ac_ext <<_ACEOF
37336 /* confdefs.h.  */
37337 _ACEOF
37338 cat confdefs.h >>conftest.$ac_ext
37339 cat >>conftest.$ac_ext <<_ACEOF
37340 /* end confdefs.h.  */
37341 #include <wchar.h>
37342 int
37343 main ()
37344 {
37345 &_vsnwprintf;
37346   ;
37347   return 0;
37348 }
37349 _ACEOF
37350 rm -f conftest.$ac_objext
37351 if { (ac_try="$ac_compile"
37352 case "(($ac_try" in
37353   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37354   *) ac_try_echo=$ac_try;;
37355 esac
37356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37357   (eval "$ac_compile") 2>conftest.er1
37358   ac_status=$?
37359   grep -v '^ *+' conftest.er1 >conftest.err
37360   rm -f conftest.er1
37361   cat conftest.err >&5
37362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37363   (exit $ac_status); } && {
37364          test -z "$ac_c_werror_flag" ||
37365          test ! -s conftest.err
37366        } && test -s conftest.$ac_objext; then
37367   { echo "$as_me:$LINENO: result: yes" >&5
37368 echo "${ECHO_T}yes" >&6; }
37369                     cat >>confdefs.h <<\_ACEOF
37370 #define HAVE__VSNWPRINTF 1
37371 _ACEOF
37372
37373 else
37374   echo "$as_me: failed program was:" >&5
37375 sed 's/^/| /' conftest.$ac_ext >&5
37376
37377         { echo "$as_me:$LINENO: result: no" >&5
37378 echo "${ECHO_T}no" >&6; }
37379 fi
37380
37381 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext;
37382 fi
37383
37384 if test "$wxUSE_FILE" = "yes"; then
37385
37386   for wx_func in fsync
37387   do
37388     { echo "$as_me:$LINENO: checking for $wx_func" >&5
37389 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
37390 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
37391   echo $ECHO_N "(cached) $ECHO_C" >&6
37392 else
37393
37394         cat >conftest.$ac_ext <<_ACEOF
37395
37396             /* confdefs.h.  */
37397 _ACEOF
37398 cat confdefs.h >>conftest.$ac_ext
37399 cat >>conftest.$ac_ext <<_ACEOF
37400 /* end confdefs.h.  */
37401
37402
37403                 $ac_includes_default
37404
37405 int
37406 main ()
37407 {
37408
37409                 #ifndef $wx_func
37410                   &$wx_func;
37411                 #endif
37412
37413
37414   ;
37415   return 0;
37416 }
37417
37418 _ACEOF
37419 rm -f conftest.$ac_objext conftest$ac_exeext
37420 if { (ac_try="$ac_link"
37421 case "(($ac_try" in
37422   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37423   *) ac_try_echo=$ac_try;;
37424 esac
37425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37426   (eval "$ac_link") 2>conftest.er1
37427   ac_status=$?
37428   grep -v '^ *+' conftest.er1 >conftest.err
37429   rm -f conftest.er1
37430   cat conftest.err >&5
37431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37432   (exit $ac_status); } && {
37433          test -z "$ac_c_werror_flag" ||
37434          test ! -s conftest.err
37435        } && test -s conftest$ac_exeext &&
37436        $as_test_x conftest$ac_exeext; then
37437   eval wx_cv_func_$wx_func=yes
37438 else
37439   echo "$as_me: failed program was:" >&5
37440 sed 's/^/| /' conftest.$ac_ext >&5
37441
37442         eval wx_cv_func_$wx_func=no
37443 fi
37444
37445 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37446       conftest$ac_exeext conftest.$ac_ext
37447
37448 fi
37449 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
37450                { echo "$as_me:$LINENO: result: $ac_res" >&5
37451 echo "${ECHO_T}$ac_res" >&6; }
37452
37453     if eval test \$wx_cv_func_$wx_func = yes
37454     then
37455       cat >>confdefs.h <<_ACEOF
37456 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
37457 _ACEOF
37458
37459
37460     else
37461       :
37462
37463     fi
37464   done
37465
37466 fi
37467
37468 ac_ext=cpp
37469 ac_cpp='$CXXCPP $CPPFLAGS'
37470 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37471 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37472 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
37473
37474
37475   for wx_func in round
37476   do
37477     { echo "$as_me:$LINENO: checking for $wx_func" >&5
37478 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
37479 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
37480   echo $ECHO_N "(cached) $ECHO_C" >&6
37481 else
37482
37483         cat >conftest.$ac_ext <<_ACEOF
37484
37485             /* confdefs.h.  */
37486 _ACEOF
37487 cat confdefs.h >>conftest.$ac_ext
37488 cat >>conftest.$ac_ext <<_ACEOF
37489 /* end confdefs.h.  */
37490
37491                 #include <math.h>
37492                 $ac_includes_default
37493
37494 int
37495 main ()
37496 {
37497
37498                 #ifndef $wx_func
37499                   &$wx_func;
37500                 #endif
37501
37502
37503   ;
37504   return 0;
37505 }
37506
37507 _ACEOF
37508 rm -f conftest.$ac_objext conftest$ac_exeext
37509 if { (ac_try="$ac_link"
37510 case "(($ac_try" in
37511   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37512   *) ac_try_echo=$ac_try;;
37513 esac
37514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37515   (eval "$ac_link") 2>conftest.er1
37516   ac_status=$?
37517   grep -v '^ *+' conftest.er1 >conftest.err
37518   rm -f conftest.er1
37519   cat conftest.err >&5
37520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37521   (exit $ac_status); } && {
37522          test -z "$ac_cxx_werror_flag" ||
37523          test ! -s conftest.err
37524        } && test -s conftest$ac_exeext &&
37525        $as_test_x conftest$ac_exeext; then
37526   eval wx_cv_func_$wx_func=yes
37527 else
37528   echo "$as_me: failed program was:" >&5
37529 sed 's/^/| /' conftest.$ac_ext >&5
37530
37531         eval wx_cv_func_$wx_func=no
37532 fi
37533
37534 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37535       conftest$ac_exeext conftest.$ac_ext
37536
37537 fi
37538 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
37539                { echo "$as_me:$LINENO: result: $ac_res" >&5
37540 echo "${ECHO_T}$ac_res" >&6; }
37541
37542     if eval test \$wx_cv_func_$wx_func = yes
37543     then
37544       cat >>confdefs.h <<_ACEOF
37545 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
37546 _ACEOF
37547
37548
37549     else
37550       :
37551
37552     fi
37553   done
37554
37555 ac_ext=c
37556 ac_cpp='$CPP $CPPFLAGS'
37557 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37558 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37559 ac_compiler_gnu=$ac_cv_c_compiler_gnu
37560
37561
37562 if test "$TOOLKIT" != "MSW"; then
37563
37564 if test "$wxUSE_LIBICONV" != "no" ; then
37565
37566
37567
37568 # Check whether --with-libiconv-prefix was given.
37569 if test "${with_libiconv_prefix+set}" = set; then
37570   withval=$with_libiconv_prefix;
37571     for dir in `echo "$withval" | tr : ' '`; do
37572       if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
37573       if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
37574     done
37575
37576 fi
37577
37578
37579   { echo "$as_me:$LINENO: checking for iconv" >&5
37580 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
37581 if test "${am_cv_func_iconv+set}" = set; then
37582   echo $ECHO_N "(cached) $ECHO_C" >&6
37583 else
37584
37585     am_cv_func_iconv="no, consider installing GNU libiconv"
37586     am_cv_lib_iconv=no
37587     cat >conftest.$ac_ext <<_ACEOF
37588 /* confdefs.h.  */
37589 _ACEOF
37590 cat confdefs.h >>conftest.$ac_ext
37591 cat >>conftest.$ac_ext <<_ACEOF
37592 /* end confdefs.h.  */
37593 #include <stdlib.h>
37594 #include <iconv.h>
37595 int
37596 main ()
37597 {
37598 iconv_t cd = iconv_open("","");
37599        iconv(cd,NULL,NULL,NULL,NULL);
37600        iconv_close(cd);
37601   ;
37602   return 0;
37603 }
37604 _ACEOF
37605 rm -f conftest.$ac_objext conftest$ac_exeext
37606 if { (ac_try="$ac_link"
37607 case "(($ac_try" in
37608   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37609   *) ac_try_echo=$ac_try;;
37610 esac
37611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37612   (eval "$ac_link") 2>conftest.er1
37613   ac_status=$?
37614   grep -v '^ *+' conftest.er1 >conftest.err
37615   rm -f conftest.er1
37616   cat conftest.err >&5
37617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37618   (exit $ac_status); } && {
37619          test -z "$ac_c_werror_flag" ||
37620          test ! -s conftest.err
37621        } && test -s conftest$ac_exeext &&
37622        $as_test_x conftest$ac_exeext; then
37623   am_cv_func_iconv=yes
37624 else
37625   echo "$as_me: failed program was:" >&5
37626 sed 's/^/| /' conftest.$ac_ext >&5
37627
37628
37629 fi
37630
37631 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37632       conftest$ac_exeext conftest.$ac_ext
37633     if test "$am_cv_func_iconv" != yes; then
37634       am_save_LIBS="$LIBS"
37635       LIBS="$LIBS -liconv"
37636       cat >conftest.$ac_ext <<_ACEOF
37637 /* confdefs.h.  */
37638 _ACEOF
37639 cat confdefs.h >>conftest.$ac_ext
37640 cat >>conftest.$ac_ext <<_ACEOF
37641 /* end confdefs.h.  */
37642 #include <stdlib.h>
37643 #include <iconv.h>
37644 int
37645 main ()
37646 {
37647 iconv_t cd = iconv_open("","");
37648          iconv(cd,NULL,NULL,NULL,NULL);
37649          iconv_close(cd);
37650   ;
37651   return 0;
37652 }
37653 _ACEOF
37654 rm -f conftest.$ac_objext conftest$ac_exeext
37655 if { (ac_try="$ac_link"
37656 case "(($ac_try" in
37657   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37658   *) ac_try_echo=$ac_try;;
37659 esac
37660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37661   (eval "$ac_link") 2>conftest.er1
37662   ac_status=$?
37663   grep -v '^ *+' conftest.er1 >conftest.err
37664   rm -f conftest.er1
37665   cat conftest.err >&5
37666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37667   (exit $ac_status); } && {
37668          test -z "$ac_c_werror_flag" ||
37669          test ! -s conftest.err
37670        } && test -s conftest$ac_exeext &&
37671        $as_test_x conftest$ac_exeext; then
37672   am_cv_lib_iconv=yes
37673         am_cv_func_iconv=yes
37674 else
37675   echo "$as_me: failed program was:" >&5
37676 sed 's/^/| /' conftest.$ac_ext >&5
37677
37678
37679 fi
37680
37681 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37682       conftest$ac_exeext conftest.$ac_ext
37683       LIBS="$am_save_LIBS"
37684     fi
37685
37686 fi
37687 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
37688 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
37689   if test "$am_cv_func_iconv" = yes; then
37690
37691 cat >>confdefs.h <<\_ACEOF
37692 #define HAVE_ICONV 1
37693 _ACEOF
37694
37695     { echo "$as_me:$LINENO: checking if iconv needs const" >&5
37696 echo $ECHO_N "checking if iconv needs const... $ECHO_C" >&6; }
37697 if test "${wx_cv_func_iconv_const+set}" = set; then
37698   echo $ECHO_N "(cached) $ECHO_C" >&6
37699 else
37700   cat >conftest.$ac_ext <<_ACEOF
37701 /* confdefs.h.  */
37702 _ACEOF
37703 cat confdefs.h >>conftest.$ac_ext
37704 cat >>conftest.$ac_ext <<_ACEOF
37705 /* end confdefs.h.  */
37706
37707 #include <stdlib.h>
37708 #include <iconv.h>
37709 extern
37710 #ifdef __cplusplus
37711 "C"
37712 #endif
37713 #if defined(__STDC__) || defined(__cplusplus)
37714 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
37715 #else
37716 size_t iconv();
37717 #endif
37718
37719 int
37720 main ()
37721 {
37722
37723   ;
37724   return 0;
37725 }
37726 _ACEOF
37727 rm -f conftest.$ac_objext
37728 if { (ac_try="$ac_compile"
37729 case "(($ac_try" in
37730   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37731   *) ac_try_echo=$ac_try;;
37732 esac
37733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37734   (eval "$ac_compile") 2>conftest.er1
37735   ac_status=$?
37736   grep -v '^ *+' conftest.er1 >conftest.err
37737   rm -f conftest.er1
37738   cat conftest.err >&5
37739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37740   (exit $ac_status); } && {
37741          test -z "$ac_c_werror_flag" ||
37742          test ! -s conftest.err
37743        } && test -s conftest.$ac_objext; then
37744   wx_cv_func_iconv_const="no"
37745 else
37746   echo "$as_me: failed program was:" >&5
37747 sed 's/^/| /' conftest.$ac_ext >&5
37748
37749         wx_cv_func_iconv_const="yes"
37750
37751 fi
37752
37753 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37754
37755 fi
37756 { echo "$as_me:$LINENO: result: $wx_cv_func_iconv_const" >&5
37757 echo "${ECHO_T}$wx_cv_func_iconv_const" >&6; }
37758
37759     iconv_const=
37760     if test "x$wx_cv_func_iconv_const" = "xyes"; then
37761         iconv_const="const"
37762     fi
37763
37764
37765 cat >>confdefs.h <<_ACEOF
37766 #define ICONV_CONST $iconv_const
37767 _ACEOF
37768
37769   fi
37770   LIBICONV=
37771   if test "$am_cv_lib_iconv" = yes; then
37772     LIBICONV="-liconv"
37773   fi
37774
37775
37776     LIBS="$LIBICONV $LIBS"
37777 fi
37778
37779 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
37780
37781 for ac_func in sigaction
37782 do
37783 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37784 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37785 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37786 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37787   echo $ECHO_N "(cached) $ECHO_C" >&6
37788 else
37789   cat >conftest.$ac_ext <<_ACEOF
37790 /* confdefs.h.  */
37791 _ACEOF
37792 cat confdefs.h >>conftest.$ac_ext
37793 cat >>conftest.$ac_ext <<_ACEOF
37794 /* end confdefs.h.  */
37795 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37796    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37797 #define $ac_func innocuous_$ac_func
37798
37799 /* System header to define __stub macros and hopefully few prototypes,
37800     which can conflict with char $ac_func (); below.
37801     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37802     <limits.h> exists even on freestanding compilers.  */
37803
37804 #ifdef __STDC__
37805 # include <limits.h>
37806 #else
37807 # include <assert.h>
37808 #endif
37809
37810 #undef $ac_func
37811
37812 /* Override any GCC internal prototype to avoid an error.
37813    Use char because int might match the return type of a GCC
37814    builtin and then its argument prototype would still apply.  */
37815 #ifdef __cplusplus
37816 extern "C"
37817 #endif
37818 char $ac_func ();
37819 /* The GNU C library defines this for functions which it implements
37820     to always fail with ENOSYS.  Some functions are actually named
37821     something starting with __ and the normal name is an alias.  */
37822 #if defined __stub_$ac_func || defined __stub___$ac_func
37823 choke me
37824 #endif
37825
37826 int
37827 main ()
37828 {
37829 return $ac_func ();
37830   ;
37831   return 0;
37832 }
37833 _ACEOF
37834 rm -f conftest.$ac_objext conftest$ac_exeext
37835 if { (ac_try="$ac_link"
37836 case "(($ac_try" in
37837   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37838   *) ac_try_echo=$ac_try;;
37839 esac
37840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37841   (eval "$ac_link") 2>conftest.er1
37842   ac_status=$?
37843   grep -v '^ *+' conftest.er1 >conftest.err
37844   rm -f conftest.er1
37845   cat conftest.err >&5
37846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37847   (exit $ac_status); } && {
37848          test -z "$ac_c_werror_flag" ||
37849          test ! -s conftest.err
37850        } && test -s conftest$ac_exeext &&
37851        $as_test_x conftest$ac_exeext; then
37852   eval "$as_ac_var=yes"
37853 else
37854   echo "$as_me: failed program was:" >&5
37855 sed 's/^/| /' conftest.$ac_ext >&5
37856
37857         eval "$as_ac_var=no"
37858 fi
37859
37860 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37861       conftest$ac_exeext conftest.$ac_ext
37862 fi
37863 ac_res=`eval echo '${'$as_ac_var'}'`
37864                { echo "$as_me:$LINENO: result: $ac_res" >&5
37865 echo "${ECHO_T}$ac_res" >&6; }
37866 if test `eval echo '${'$as_ac_var'}'` = yes; then
37867   cat >>confdefs.h <<_ACEOF
37868 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37869 _ACEOF
37870
37871 fi
37872 done
37873
37874
37875     if test "$ac_cv_func_sigaction" = "no"; then
37876         { echo "$as_me:$LINENO: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&5
37877 echo "$as_me: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&2;}
37878         wxUSE_ON_FATAL_EXCEPTION=no
37879     fi
37880
37881     if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
37882       { echo "$as_me:$LINENO: checking for sa_handler type" >&5
37883 echo $ECHO_N "checking for sa_handler type... $ECHO_C" >&6; }
37884 if test "${wx_cv_type_sa_handler+set}" = set; then
37885   echo $ECHO_N "(cached) $ECHO_C" >&6
37886 else
37887
37888                 ac_ext=cpp
37889 ac_cpp='$CXXCPP $CPPFLAGS'
37890 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37891 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37892 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
37893
37894         cat >conftest.$ac_ext <<_ACEOF
37895 /* confdefs.h.  */
37896 _ACEOF
37897 cat confdefs.h >>conftest.$ac_ext
37898 cat >>conftest.$ac_ext <<_ACEOF
37899 /* end confdefs.h.  */
37900 #include <signal.h>
37901 int
37902 main ()
37903 {
37904
37905                         extern void testSigHandler(int);
37906
37907                         struct sigaction sa;
37908                         sa.sa_handler = testSigHandler;
37909
37910   ;
37911   return 0;
37912 }
37913 _ACEOF
37914 rm -f conftest.$ac_objext
37915 if { (ac_try="$ac_compile"
37916 case "(($ac_try" in
37917   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37918   *) ac_try_echo=$ac_try;;
37919 esac
37920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37921   (eval "$ac_compile") 2>conftest.er1
37922   ac_status=$?
37923   grep -v '^ *+' conftest.er1 >conftest.err
37924   rm -f conftest.er1
37925   cat conftest.err >&5
37926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37927   (exit $ac_status); } && {
37928          test -z "$ac_cxx_werror_flag" ||
37929          test ! -s conftest.err
37930        } && test -s conftest.$ac_objext; then
37931
37932                         wx_cv_type_sa_handler=int
37933
37934 else
37935   echo "$as_me: failed program was:" >&5
37936 sed 's/^/| /' conftest.$ac_ext >&5
37937
37938
37939                         wx_cv_type_sa_handler=void
37940
37941 fi
37942
37943 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37944         ac_ext=c
37945 ac_cpp='$CPP $CPPFLAGS'
37946 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37947 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37948 ac_compiler_gnu=$ac_cv_c_compiler_gnu
37949
37950
37951 fi
37952 { echo "$as_me:$LINENO: result: $wx_cv_type_sa_handler" >&5
37953 echo "${ECHO_T}$wx_cv_type_sa_handler" >&6; }
37954
37955       cat >>confdefs.h <<_ACEOF
37956 #define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
37957 _ACEOF
37958
37959     fi
37960 fi
37961
37962 if test "$wxUSE_STACKWALKER" = "yes" -a "$wxUSE_UNIX" = "yes"; then
37963     { echo "$as_me:$LINENO: checking for backtrace() in <execinfo.h>" >&5
37964 echo $ECHO_N "checking for backtrace() in <execinfo.h>... $ECHO_C" >&6; }
37965 if test "${wx_cv_func_backtrace+set}" = set; then
37966   echo $ECHO_N "(cached) $ECHO_C" >&6
37967 else
37968
37969             ac_ext=cpp
37970 ac_cpp='$CXXCPP $CPPFLAGS'
37971 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37972 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37973 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
37974
37975             cat >conftest.$ac_ext <<_ACEOF
37976 /* confdefs.h.  */
37977 _ACEOF
37978 cat confdefs.h >>conftest.$ac_ext
37979 cat >>conftest.$ac_ext <<_ACEOF
37980 /* end confdefs.h.  */
37981 #include <execinfo.h>
37982 int
37983 main ()
37984 {
37985
37986                     void *trace[1];
37987                     char **messages;
37988
37989                     backtrace(trace, 1);
37990                     messages = backtrace_symbols(trace, 1);
37991
37992   ;
37993   return 0;
37994 }
37995 _ACEOF
37996 rm -f conftest.$ac_objext
37997 if { (ac_try="$ac_compile"
37998 case "(($ac_try" in
37999   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38000   *) ac_try_echo=$ac_try;;
38001 esac
38002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38003   (eval "$ac_compile") 2>conftest.er1
38004   ac_status=$?
38005   grep -v '^ *+' conftest.er1 >conftest.err
38006   rm -f conftest.er1
38007   cat conftest.err >&5
38008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38009   (exit $ac_status); } && {
38010          test -z "$ac_cxx_werror_flag" ||
38011          test ! -s conftest.err
38012        } && test -s conftest.$ac_objext; then
38013   wx_cv_func_backtrace=yes
38014 else
38015   echo "$as_me: failed program was:" >&5
38016 sed 's/^/| /' conftest.$ac_ext >&5
38017
38018         wx_cv_func_backtrace=no
38019
38020 fi
38021
38022 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38023             ac_ext=c
38024 ac_cpp='$CPP $CPPFLAGS'
38025 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38026 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38027 ac_compiler_gnu=$ac_cv_c_compiler_gnu
38028
38029
38030
38031 fi
38032 { echo "$as_me:$LINENO: result: $wx_cv_func_backtrace" >&5
38033 echo "${ECHO_T}$wx_cv_func_backtrace" >&6; }
38034
38035
38036     if test "$wx_cv_func_backtrace" = "no"; then
38037         { echo "$as_me:$LINENO: WARNING: backtrace() is not available, wxStackWalker will not be available" >&5
38038 echo "$as_me: WARNING: backtrace() is not available, wxStackWalker will not be available" >&2;}
38039         wxUSE_STACKWALKER=no
38040     else
38041         { echo "$as_me:$LINENO: checking for __cxa_demangle() in <cxxabi.h>" >&5
38042 echo $ECHO_N "checking for __cxa_demangle() in <cxxabi.h>... $ECHO_C" >&6; }
38043 if test "${wx_cv_func_cxa_demangle+set}" = set; then
38044   echo $ECHO_N "(cached) $ECHO_C" >&6
38045 else
38046
38047                 ac_ext=cpp
38048 ac_cpp='$CXXCPP $CPPFLAGS'
38049 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38050 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38051 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
38052
38053                 cat >conftest.$ac_ext <<_ACEOF
38054 /* confdefs.h.  */
38055 _ACEOF
38056 cat confdefs.h >>conftest.$ac_ext
38057 cat >>conftest.$ac_ext <<_ACEOF
38058 /* end confdefs.h.  */
38059 #include <cxxabi.h>
38060 int
38061 main ()
38062 {
38063
38064                         int rc;
38065                         __cxxabiv1::__cxa_demangle("foo", 0, 0, &rc);
38066
38067   ;
38068   return 0;
38069 }
38070 _ACEOF
38071 rm -f conftest.$ac_objext conftest$ac_exeext
38072 if { (ac_try="$ac_link"
38073 case "(($ac_try" in
38074   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38075   *) ac_try_echo=$ac_try;;
38076 esac
38077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38078   (eval "$ac_link") 2>conftest.er1
38079   ac_status=$?
38080   grep -v '^ *+' conftest.er1 >conftest.err
38081   rm -f conftest.er1
38082   cat conftest.err >&5
38083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38084   (exit $ac_status); } && {
38085          test -z "$ac_cxx_werror_flag" ||
38086          test ! -s conftest.err
38087        } && test -s conftest$ac_exeext &&
38088        $as_test_x conftest$ac_exeext; then
38089   wx_cv_func_cxa_demangle=yes
38090 else
38091   echo "$as_me: failed program was:" >&5
38092 sed 's/^/| /' conftest.$ac_ext >&5
38093
38094         wx_cv_func_cxa_demangle=no
38095
38096 fi
38097
38098 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38099       conftest$ac_exeext conftest.$ac_ext
38100                 ac_ext=c
38101 ac_cpp='$CPP $CPPFLAGS'
38102 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38103 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38104 ac_compiler_gnu=$ac_cv_c_compiler_gnu
38105
38106
38107
38108 fi
38109 { echo "$as_me:$LINENO: result: $wx_cv_func_cxa_demangle" >&5
38110 echo "${ECHO_T}$wx_cv_func_cxa_demangle" >&6; }
38111
38112         if test "$wx_cv_func_cxa_demangle" = "yes"; then
38113             cat >>confdefs.h <<\_ACEOF
38114 #define HAVE_CXA_DEMANGLE 1
38115 _ACEOF
38116
38117         fi
38118     fi
38119 fi
38120
38121 if test "$wxUSE_STACKWALKER" = "yes" -a "$USE_WIN32" != 1 -a "$USE_UNIX" != 1; then
38122     { echo "$as_me:$LINENO: WARNING: wxStackWalker is only available on Win32 and UNIX... disabled" >&5
38123 echo "$as_me: WARNING: wxStackWalker is only available on Win32 and UNIX... disabled" >&2;}
38124     wxUSE_STACKWALKER=no
38125 fi
38126
38127
38128
38129
38130 for ac_func in mkstemp mktemp
38131 do
38132 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38133 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38134 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38135 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38136   echo $ECHO_N "(cached) $ECHO_C" >&6
38137 else
38138   cat >conftest.$ac_ext <<_ACEOF
38139 /* confdefs.h.  */
38140 _ACEOF
38141 cat confdefs.h >>conftest.$ac_ext
38142 cat >>conftest.$ac_ext <<_ACEOF
38143 /* end confdefs.h.  */
38144 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38145    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38146 #define $ac_func innocuous_$ac_func
38147
38148 /* System header to define __stub macros and hopefully few prototypes,
38149     which can conflict with char $ac_func (); below.
38150     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38151     <limits.h> exists even on freestanding compilers.  */
38152
38153 #ifdef __STDC__
38154 # include <limits.h>
38155 #else
38156 # include <assert.h>
38157 #endif
38158
38159 #undef $ac_func
38160
38161 /* Override any GCC internal prototype to avoid an error.
38162    Use char because int might match the return type of a GCC
38163    builtin and then its argument prototype would still apply.  */
38164 #ifdef __cplusplus
38165 extern "C"
38166 #endif
38167 char $ac_func ();
38168 /* The GNU C library defines this for functions which it implements
38169     to always fail with ENOSYS.  Some functions are actually named
38170     something starting with __ and the normal name is an alias.  */
38171 #if defined __stub_$ac_func || defined __stub___$ac_func
38172 choke me
38173 #endif
38174
38175 int
38176 main ()
38177 {
38178 return $ac_func ();
38179   ;
38180   return 0;
38181 }
38182 _ACEOF
38183 rm -f conftest.$ac_objext conftest$ac_exeext
38184 if { (ac_try="$ac_link"
38185 case "(($ac_try" in
38186   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38187   *) ac_try_echo=$ac_try;;
38188 esac
38189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38190   (eval "$ac_link") 2>conftest.er1
38191   ac_status=$?
38192   grep -v '^ *+' conftest.er1 >conftest.err
38193   rm -f conftest.er1
38194   cat conftest.err >&5
38195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38196   (exit $ac_status); } && {
38197          test -z "$ac_c_werror_flag" ||
38198          test ! -s conftest.err
38199        } && test -s conftest$ac_exeext &&
38200        $as_test_x conftest$ac_exeext; then
38201   eval "$as_ac_var=yes"
38202 else
38203   echo "$as_me: failed program was:" >&5
38204 sed 's/^/| /' conftest.$ac_ext >&5
38205
38206         eval "$as_ac_var=no"
38207 fi
38208
38209 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38210       conftest$ac_exeext conftest.$ac_ext
38211 fi
38212 ac_res=`eval echo '${'$as_ac_var'}'`
38213                { echo "$as_me:$LINENO: result: $ac_res" >&5
38214 echo "${ECHO_T}$ac_res" >&6; }
38215 if test `eval echo '${'$as_ac_var'}'` = yes; then
38216   cat >>confdefs.h <<_ACEOF
38217 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38218 _ACEOF
38219  break
38220 fi
38221 done
38222
38223
38224 { echo "$as_me:$LINENO: checking for statfs" >&5
38225 echo $ECHO_N "checking for statfs... $ECHO_C" >&6; }
38226 if test "${wx_cv_func_statfs+set}" = set; then
38227   echo $ECHO_N "(cached) $ECHO_C" >&6
38228 else
38229   cat >conftest.$ac_ext <<_ACEOF
38230 /* confdefs.h.  */
38231 _ACEOF
38232 cat confdefs.h >>conftest.$ac_ext
38233 cat >>conftest.$ac_ext <<_ACEOF
38234 /* end confdefs.h.  */
38235
38236              #if defined(__BSD__)
38237              #include <sys/param.h>
38238              #include <sys/mount.h>
38239              #else
38240              #include <sys/vfs.h>
38241              #endif
38242
38243 int
38244 main ()
38245 {
38246
38247              long l;
38248              struct statfs fs;
38249              statfs("/", &fs);
38250              l = fs.f_bsize;
38251              l += fs.f_blocks;
38252              l += fs.f_bavail;
38253
38254   ;
38255   return 0;
38256 }
38257 _ACEOF
38258 rm -f conftest.$ac_objext
38259 if { (ac_try="$ac_compile"
38260 case "(($ac_try" in
38261   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38262   *) ac_try_echo=$ac_try;;
38263 esac
38264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38265   (eval "$ac_compile") 2>conftest.er1
38266   ac_status=$?
38267   grep -v '^ *+' conftest.er1 >conftest.err
38268   rm -f conftest.er1
38269   cat conftest.err >&5
38270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38271   (exit $ac_status); } && {
38272          test -z "$ac_c_werror_flag" ||
38273          test ! -s conftest.err
38274        } && test -s conftest.$ac_objext; then
38275   wx_cv_func_statfs=yes
38276 else
38277   echo "$as_me: failed program was:" >&5
38278 sed 's/^/| /' conftest.$ac_ext >&5
38279
38280         wx_cv_func_statfs=no
38281
38282 fi
38283
38284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38285
38286 fi
38287 { echo "$as_me:$LINENO: result: $wx_cv_func_statfs" >&5
38288 echo "${ECHO_T}$wx_cv_func_statfs" >&6; }
38289
38290 if test "$wx_cv_func_statfs" = "yes"; then
38291         { echo "$as_me:$LINENO: checking for statfs declaration" >&5
38292 echo $ECHO_N "checking for statfs declaration... $ECHO_C" >&6; }
38293 if test "${wx_cv_func_statfs_decl+set}" = set; then
38294   echo $ECHO_N "(cached) $ECHO_C" >&6
38295 else
38296   ac_ext=cpp
38297 ac_cpp='$CXXCPP $CPPFLAGS'
38298 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38299 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38300 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
38301
38302         cat >conftest.$ac_ext <<_ACEOF
38303 /* confdefs.h.  */
38304 _ACEOF
38305 cat confdefs.h >>conftest.$ac_ext
38306 cat >>conftest.$ac_ext <<_ACEOF
38307 /* end confdefs.h.  */
38308
38309                  #if defined(__BSD__)
38310                  #include <sys/param.h>
38311                  #include <sys/mount.h>
38312                  #else
38313                  #include <sys/vfs.h>
38314                  #endif
38315
38316 int
38317 main ()
38318 {
38319
38320                 struct statfs fs;
38321                 statfs("", &fs);
38322
38323   ;
38324   return 0;
38325 }
38326 _ACEOF
38327 rm -f conftest.$ac_objext
38328 if { (ac_try="$ac_compile"
38329 case "(($ac_try" in
38330   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38331   *) ac_try_echo=$ac_try;;
38332 esac
38333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38334   (eval "$ac_compile") 2>conftest.er1
38335   ac_status=$?
38336   grep -v '^ *+' conftest.er1 >conftest.err
38337   rm -f conftest.er1
38338   cat conftest.err >&5
38339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38340   (exit $ac_status); } && {
38341          test -z "$ac_cxx_werror_flag" ||
38342          test ! -s conftest.err
38343        } && test -s conftest.$ac_objext; then
38344   wx_cv_func_statfs_decl=yes
38345 else
38346   echo "$as_me: failed program was:" >&5
38347 sed 's/^/| /' conftest.$ac_ext >&5
38348
38349         wx_cv_func_statfs_decl=no
38350
38351 fi
38352
38353 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38354         ac_ext=c
38355 ac_cpp='$CPP $CPPFLAGS'
38356 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38357 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38358 ac_compiler_gnu=$ac_cv_c_compiler_gnu
38359
38360
38361 fi
38362 { echo "$as_me:$LINENO: result: $wx_cv_func_statfs_decl" >&5
38363 echo "${ECHO_T}$wx_cv_func_statfs_decl" >&6; }
38364
38365     if test "$wx_cv_func_statfs_decl" = "yes"; then
38366         cat >>confdefs.h <<\_ACEOF
38367 #define HAVE_STATFS_DECL 1
38368 _ACEOF
38369
38370     fi
38371
38372     wx_cv_type_statvfs_t="struct statfs"
38373     cat >>confdefs.h <<\_ACEOF
38374 #define HAVE_STATFS 1
38375 _ACEOF
38376
38377 else
38378     { echo "$as_me:$LINENO: checking for statvfs" >&5
38379 echo $ECHO_N "checking for statvfs... $ECHO_C" >&6; }
38380 if test "${wx_cv_func_statvfs+set}" = set; then
38381   echo $ECHO_N "(cached) $ECHO_C" >&6
38382 else
38383   cat >conftest.$ac_ext <<_ACEOF
38384 /* confdefs.h.  */
38385 _ACEOF
38386 cat confdefs.h >>conftest.$ac_ext
38387 cat >>conftest.$ac_ext <<_ACEOF
38388 /* end confdefs.h.  */
38389
38390                 #include <stddef.h>
38391                 #include <sys/statvfs.h>
38392
38393 int
38394 main ()
38395 {
38396
38397                 statvfs("/", NULL);
38398
38399   ;
38400   return 0;
38401 }
38402 _ACEOF
38403 rm -f conftest.$ac_objext
38404 if { (ac_try="$ac_compile"
38405 case "(($ac_try" in
38406   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38407   *) ac_try_echo=$ac_try;;
38408 esac
38409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38410   (eval "$ac_compile") 2>conftest.er1
38411   ac_status=$?
38412   grep -v '^ *+' conftest.er1 >conftest.err
38413   rm -f conftest.er1
38414   cat conftest.err >&5
38415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38416   (exit $ac_status); } && {
38417          test -z "$ac_c_werror_flag" ||
38418          test ! -s conftest.err
38419        } && test -s conftest.$ac_objext; then
38420   wx_cv_func_statvfs=yes
38421 else
38422   echo "$as_me: failed program was:" >&5
38423 sed 's/^/| /' conftest.$ac_ext >&5
38424
38425         wx_cv_func_statvfs=no
38426
38427 fi
38428
38429 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38430
38431 fi
38432 { echo "$as_me:$LINENO: result: $wx_cv_func_statvfs" >&5
38433 echo "${ECHO_T}$wx_cv_func_statvfs" >&6; }
38434
38435     if test "$wx_cv_func_statvfs" = "yes"; then
38436                                                                 { echo "$as_me:$LINENO: checking for statvfs argument type" >&5
38437 echo $ECHO_N "checking for statvfs argument type... $ECHO_C" >&6; }
38438 if test "${wx_cv_type_statvfs_t+set}" = set; then
38439   echo $ECHO_N "(cached) $ECHO_C" >&6
38440 else
38441   ac_ext=cpp
38442 ac_cpp='$CXXCPP $CPPFLAGS'
38443 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38444 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38445 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
38446
38447             cat >conftest.$ac_ext <<_ACEOF
38448 /* confdefs.h.  */
38449 _ACEOF
38450 cat confdefs.h >>conftest.$ac_ext
38451 cat >>conftest.$ac_ext <<_ACEOF
38452 /* end confdefs.h.  */
38453
38454                     #include <sys/statvfs.h>
38455
38456 int
38457 main ()
38458 {
38459
38460                     long l;
38461                     statvfs_t fs;
38462                     statvfs("/", &fs);
38463                     l = fs.f_bsize;
38464                     l += fs.f_blocks;
38465                     l += fs.f_bavail;
38466
38467   ;
38468   return 0;
38469 }
38470 _ACEOF
38471 rm -f conftest.$ac_objext
38472 if { (ac_try="$ac_compile"
38473 case "(($ac_try" in
38474   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38475   *) ac_try_echo=$ac_try;;
38476 esac
38477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38478   (eval "$ac_compile") 2>conftest.er1
38479   ac_status=$?
38480   grep -v '^ *+' conftest.er1 >conftest.err
38481   rm -f conftest.er1
38482   cat conftest.err >&5
38483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38484   (exit $ac_status); } && {
38485          test -z "$ac_cxx_werror_flag" ||
38486          test ! -s conftest.err
38487        } && test -s conftest.$ac_objext; then
38488   wx_cv_type_statvfs_t=statvfs_t
38489 else
38490   echo "$as_me: failed program was:" >&5
38491 sed 's/^/| /' conftest.$ac_ext >&5
38492
38493
38494                     cat >conftest.$ac_ext <<_ACEOF
38495 /* confdefs.h.  */
38496 _ACEOF
38497 cat confdefs.h >>conftest.$ac_ext
38498 cat >>conftest.$ac_ext <<_ACEOF
38499 /* end confdefs.h.  */
38500
38501                             #include <sys/statvfs.h>
38502
38503 int
38504 main ()
38505 {
38506
38507                             long l;
38508                             struct statvfs fs;
38509                             statvfs("/", &fs);
38510                             l = fs.f_bsize;
38511                             l += fs.f_blocks;
38512                             l += fs.f_bavail;
38513
38514   ;
38515   return 0;
38516 }
38517 _ACEOF
38518 rm -f conftest.$ac_objext
38519 if { (ac_try="$ac_compile"
38520 case "(($ac_try" in
38521   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38522   *) ac_try_echo=$ac_try;;
38523 esac
38524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38525   (eval "$ac_compile") 2>conftest.er1
38526   ac_status=$?
38527   grep -v '^ *+' conftest.er1 >conftest.err
38528   rm -f conftest.er1
38529   cat conftest.err >&5
38530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38531   (exit $ac_status); } && {
38532          test -z "$ac_cxx_werror_flag" ||
38533          test ! -s conftest.err
38534        } && test -s conftest.$ac_objext; then
38535   wx_cv_type_statvfs_t="struct statvfs"
38536 else
38537   echo "$as_me: failed program was:" >&5
38538 sed 's/^/| /' conftest.$ac_ext >&5
38539
38540         wx_cv_type_statvfs_t="unknown"
38541
38542 fi
38543
38544 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38545
38546
38547 fi
38548
38549 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38550             ac_ext=c
38551 ac_cpp='$CPP $CPPFLAGS'
38552 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38553 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38554 ac_compiler_gnu=$ac_cv_c_compiler_gnu
38555
38556
38557 fi
38558 { echo "$as_me:$LINENO: result: $wx_cv_type_statvfs_t" >&5
38559 echo "${ECHO_T}$wx_cv_type_statvfs_t" >&6; }
38560
38561         if test "$wx_cv_type_statvfs_t" != "unknown"; then
38562             cat >>confdefs.h <<\_ACEOF
38563 #define HAVE_STATVFS 1
38564 _ACEOF
38565
38566         fi
38567     else
38568                 wx_cv_type_statvfs_t="unknown"
38569     fi
38570 fi
38571
38572 if test "$wx_cv_type_statvfs_t" != "unknown"; then
38573     cat >>confdefs.h <<_ACEOF
38574 #define WX_STATFS_T $wx_cv_type_statvfs_t
38575 _ACEOF
38576
38577 else
38578     { echo "$as_me:$LINENO: WARNING: wxGetDiskSpace() function won't work without statfs()" >&5
38579 echo "$as_me: WARNING: wxGetDiskSpace() function won't work without statfs()" >&2;}
38580 fi
38581
38582 if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
38583
38584
38585 for ac_func in fcntl flock
38586 do
38587 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38588 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38589 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38590 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38591   echo $ECHO_N "(cached) $ECHO_C" >&6
38592 else
38593   cat >conftest.$ac_ext <<_ACEOF
38594 /* confdefs.h.  */
38595 _ACEOF
38596 cat confdefs.h >>conftest.$ac_ext
38597 cat >>conftest.$ac_ext <<_ACEOF
38598 /* end confdefs.h.  */
38599 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38600    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38601 #define $ac_func innocuous_$ac_func
38602
38603 /* System header to define __stub macros and hopefully few prototypes,
38604     which can conflict with char $ac_func (); below.
38605     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38606     <limits.h> exists even on freestanding compilers.  */
38607
38608 #ifdef __STDC__
38609 # include <limits.h>
38610 #else
38611 # include <assert.h>
38612 #endif
38613
38614 #undef $ac_func
38615
38616 /* Override any GCC internal prototype to avoid an error.
38617    Use char because int might match the return type of a GCC
38618    builtin and then its argument prototype would still apply.  */
38619 #ifdef __cplusplus
38620 extern "C"
38621 #endif
38622 char $ac_func ();
38623 /* The GNU C library defines this for functions which it implements
38624     to always fail with ENOSYS.  Some functions are actually named
38625     something starting with __ and the normal name is an alias.  */
38626 #if defined __stub_$ac_func || defined __stub___$ac_func
38627 choke me
38628 #endif
38629
38630 int
38631 main ()
38632 {
38633 return $ac_func ();
38634   ;
38635   return 0;
38636 }
38637 _ACEOF
38638 rm -f conftest.$ac_objext conftest$ac_exeext
38639 if { (ac_try="$ac_link"
38640 case "(($ac_try" in
38641   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38642   *) ac_try_echo=$ac_try;;
38643 esac
38644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38645   (eval "$ac_link") 2>conftest.er1
38646   ac_status=$?
38647   grep -v '^ *+' conftest.er1 >conftest.err
38648   rm -f conftest.er1
38649   cat conftest.err >&5
38650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38651   (exit $ac_status); } && {
38652          test -z "$ac_c_werror_flag" ||
38653          test ! -s conftest.err
38654        } && test -s conftest$ac_exeext &&
38655        $as_test_x conftest$ac_exeext; then
38656   eval "$as_ac_var=yes"
38657 else
38658   echo "$as_me: failed program was:" >&5
38659 sed 's/^/| /' conftest.$ac_ext >&5
38660
38661         eval "$as_ac_var=no"
38662 fi
38663
38664 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38665       conftest$ac_exeext conftest.$ac_ext
38666 fi
38667 ac_res=`eval echo '${'$as_ac_var'}'`
38668                { echo "$as_me:$LINENO: result: $ac_res" >&5
38669 echo "${ECHO_T}$ac_res" >&6; }
38670 if test `eval echo '${'$as_ac_var'}'` = yes; then
38671   cat >>confdefs.h <<_ACEOF
38672 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38673 _ACEOF
38674  break
38675 fi
38676 done
38677
38678
38679     if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
38680         { echo "$as_me:$LINENO: WARNING: wxSingleInstanceChecker not available" >&5
38681 echo "$as_me: WARNING: wxSingleInstanceChecker not available" >&2;}
38682         wxUSE_SNGLINST_CHECKER=no
38683     fi
38684 fi
38685
38686
38687
38688 for ac_func in setenv putenv
38689 do
38690 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38691 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38692 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38693 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38694   echo $ECHO_N "(cached) $ECHO_C" >&6
38695 else
38696   cat >conftest.$ac_ext <<_ACEOF
38697 /* confdefs.h.  */
38698 _ACEOF
38699 cat confdefs.h >>conftest.$ac_ext
38700 cat >>conftest.$ac_ext <<_ACEOF
38701 /* end confdefs.h.  */
38702 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38703    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38704 #define $ac_func innocuous_$ac_func
38705
38706 /* System header to define __stub macros and hopefully few prototypes,
38707     which can conflict with char $ac_func (); below.
38708     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38709     <limits.h> exists even on freestanding compilers.  */
38710
38711 #ifdef __STDC__
38712 # include <limits.h>
38713 #else
38714 # include <assert.h>
38715 #endif
38716
38717 #undef $ac_func
38718
38719 /* Override any GCC internal prototype to avoid an error.
38720    Use char because int might match the return type of a GCC
38721    builtin and then its argument prototype would still apply.  */
38722 #ifdef __cplusplus
38723 extern "C"
38724 #endif
38725 char $ac_func ();
38726 /* The GNU C library defines this for functions which it implements
38727     to always fail with ENOSYS.  Some functions are actually named
38728     something starting with __ and the normal name is an alias.  */
38729 #if defined __stub_$ac_func || defined __stub___$ac_func
38730 choke me
38731 #endif
38732
38733 int
38734 main ()
38735 {
38736 return $ac_func ();
38737   ;
38738   return 0;
38739 }
38740 _ACEOF
38741 rm -f conftest.$ac_objext conftest$ac_exeext
38742 if { (ac_try="$ac_link"
38743 case "(($ac_try" in
38744   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38745   *) ac_try_echo=$ac_try;;
38746 esac
38747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38748   (eval "$ac_link") 2>conftest.er1
38749   ac_status=$?
38750   grep -v '^ *+' conftest.er1 >conftest.err
38751   rm -f conftest.er1
38752   cat conftest.err >&5
38753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38754   (exit $ac_status); } && {
38755          test -z "$ac_c_werror_flag" ||
38756          test ! -s conftest.err
38757        } && test -s conftest$ac_exeext &&
38758        $as_test_x conftest$ac_exeext; then
38759   eval "$as_ac_var=yes"
38760 else
38761   echo "$as_me: failed program was:" >&5
38762 sed 's/^/| /' conftest.$ac_ext >&5
38763
38764         eval "$as_ac_var=no"
38765 fi
38766
38767 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38768       conftest$ac_exeext conftest.$ac_ext
38769 fi
38770 ac_res=`eval echo '${'$as_ac_var'}'`
38771                { echo "$as_me:$LINENO: result: $ac_res" >&5
38772 echo "${ECHO_T}$ac_res" >&6; }
38773 if test `eval echo '${'$as_ac_var'}'` = yes; then
38774   cat >>confdefs.h <<_ACEOF
38775 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38776 _ACEOF
38777  break
38778 fi
38779 done
38780
38781 if test "$ac_cv_func_setenv" = "yes"; then
38782
38783 for ac_func in unsetenv
38784 do
38785 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38786 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38787 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38788 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38789   echo $ECHO_N "(cached) $ECHO_C" >&6
38790 else
38791   cat >conftest.$ac_ext <<_ACEOF
38792 /* confdefs.h.  */
38793 _ACEOF
38794 cat confdefs.h >>conftest.$ac_ext
38795 cat >>conftest.$ac_ext <<_ACEOF
38796 /* end confdefs.h.  */
38797 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38798    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38799 #define $ac_func innocuous_$ac_func
38800
38801 /* System header to define __stub macros and hopefully few prototypes,
38802     which can conflict with char $ac_func (); below.
38803     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38804     <limits.h> exists even on freestanding compilers.  */
38805
38806 #ifdef __STDC__
38807 # include <limits.h>
38808 #else
38809 # include <assert.h>
38810 #endif
38811
38812 #undef $ac_func
38813
38814 /* Override any GCC internal prototype to avoid an error.
38815    Use char because int might match the return type of a GCC
38816    builtin and then its argument prototype would still apply.  */
38817 #ifdef __cplusplus
38818 extern "C"
38819 #endif
38820 char $ac_func ();
38821 /* The GNU C library defines this for functions which it implements
38822     to always fail with ENOSYS.  Some functions are actually named
38823     something starting with __ and the normal name is an alias.  */
38824 #if defined __stub_$ac_func || defined __stub___$ac_func
38825 choke me
38826 #endif
38827
38828 int
38829 main ()
38830 {
38831 return $ac_func ();
38832   ;
38833   return 0;
38834 }
38835 _ACEOF
38836 rm -f conftest.$ac_objext conftest$ac_exeext
38837 if { (ac_try="$ac_link"
38838 case "(($ac_try" in
38839   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38840   *) ac_try_echo=$ac_try;;
38841 esac
38842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38843   (eval "$ac_link") 2>conftest.er1
38844   ac_status=$?
38845   grep -v '^ *+' conftest.er1 >conftest.err
38846   rm -f conftest.er1
38847   cat conftest.err >&5
38848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38849   (exit $ac_status); } && {
38850          test -z "$ac_c_werror_flag" ||
38851          test ! -s conftest.err
38852        } && test -s conftest$ac_exeext &&
38853        $as_test_x conftest$ac_exeext; then
38854   eval "$as_ac_var=yes"
38855 else
38856   echo "$as_me: failed program was:" >&5
38857 sed 's/^/| /' conftest.$ac_ext >&5
38858
38859         eval "$as_ac_var=no"
38860 fi
38861
38862 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38863       conftest$ac_exeext conftest.$ac_ext
38864 fi
38865 ac_res=`eval echo '${'$as_ac_var'}'`
38866                { echo "$as_me:$LINENO: result: $ac_res" >&5
38867 echo "${ECHO_T}$ac_res" >&6; }
38868 if test `eval echo '${'$as_ac_var'}'` = yes; then
38869   cat >>confdefs.h <<_ACEOF
38870 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38871 _ACEOF
38872
38873 fi
38874 done
38875
38876 fi
38877
38878 HAVE_SOME_SLEEP_FUNC=0
38879 if test "$USE_BEOS" = 1; then
38880             cat >>confdefs.h <<\_ACEOF
38881 #define HAVE_SLEEP 1
38882 _ACEOF
38883
38884     HAVE_SOME_SLEEP_FUNC=1
38885 fi
38886
38887 if test "$USE_DARWIN" = 1; then
38888             cat >>confdefs.h <<\_ACEOF
38889 #define HAVE_USLEEP 1
38890 _ACEOF
38891
38892     HAVE_SOME_SLEEP_FUNC=1
38893 fi
38894
38895 if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
38896         POSIX4_LINK=
38897
38898 for ac_func in nanosleep
38899 do
38900 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38901 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38902 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38903 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38904   echo $ECHO_N "(cached) $ECHO_C" >&6
38905 else
38906   cat >conftest.$ac_ext <<_ACEOF
38907 /* confdefs.h.  */
38908 _ACEOF
38909 cat confdefs.h >>conftest.$ac_ext
38910 cat >>conftest.$ac_ext <<_ACEOF
38911 /* end confdefs.h.  */
38912 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38913    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38914 #define $ac_func innocuous_$ac_func
38915
38916 /* System header to define __stub macros and hopefully few prototypes,
38917     which can conflict with char $ac_func (); below.
38918     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38919     <limits.h> exists even on freestanding compilers.  */
38920
38921 #ifdef __STDC__
38922 # include <limits.h>
38923 #else
38924 # include <assert.h>
38925 #endif
38926
38927 #undef $ac_func
38928
38929 /* Override any GCC internal prototype to avoid an error.
38930    Use char because int might match the return type of a GCC
38931    builtin and then its argument prototype would still apply.  */
38932 #ifdef __cplusplus
38933 extern "C"
38934 #endif
38935 char $ac_func ();
38936 /* The GNU C library defines this for functions which it implements
38937     to always fail with ENOSYS.  Some functions are actually named
38938     something starting with __ and the normal name is an alias.  */
38939 #if defined __stub_$ac_func || defined __stub___$ac_func
38940 choke me
38941 #endif
38942
38943 int
38944 main ()
38945 {
38946 return $ac_func ();
38947   ;
38948   return 0;
38949 }
38950 _ACEOF
38951 rm -f conftest.$ac_objext conftest$ac_exeext
38952 if { (ac_try="$ac_link"
38953 case "(($ac_try" in
38954   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38955   *) ac_try_echo=$ac_try;;
38956 esac
38957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38958   (eval "$ac_link") 2>conftest.er1
38959   ac_status=$?
38960   grep -v '^ *+' conftest.er1 >conftest.err
38961   rm -f conftest.er1
38962   cat conftest.err >&5
38963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38964   (exit $ac_status); } && {
38965          test -z "$ac_c_werror_flag" ||
38966          test ! -s conftest.err
38967        } && test -s conftest$ac_exeext &&
38968        $as_test_x conftest$ac_exeext; then
38969   eval "$as_ac_var=yes"
38970 else
38971   echo "$as_me: failed program was:" >&5
38972 sed 's/^/| /' conftest.$ac_ext >&5
38973
38974         eval "$as_ac_var=no"
38975 fi
38976
38977 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38978       conftest$ac_exeext conftest.$ac_ext
38979 fi
38980 ac_res=`eval echo '${'$as_ac_var'}'`
38981                { echo "$as_me:$LINENO: result: $ac_res" >&5
38982 echo "${ECHO_T}$ac_res" >&6; }
38983 if test `eval echo '${'$as_ac_var'}'` = yes; then
38984   cat >>confdefs.h <<_ACEOF
38985 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38986 _ACEOF
38987  cat >>confdefs.h <<\_ACEOF
38988 #define HAVE_NANOSLEEP 1
38989 _ACEOF
38990
38991 else
38992
38993             { echo "$as_me:$LINENO: checking for nanosleep in -lposix4" >&5
38994 echo $ECHO_N "checking for nanosleep in -lposix4... $ECHO_C" >&6; }
38995 if test "${ac_cv_lib_posix4_nanosleep+set}" = set; then
38996   echo $ECHO_N "(cached) $ECHO_C" >&6
38997 else
38998   ac_check_lib_save_LIBS=$LIBS
38999 LIBS="-lposix4  $LIBS"
39000 cat >conftest.$ac_ext <<_ACEOF
39001 /* confdefs.h.  */
39002 _ACEOF
39003 cat confdefs.h >>conftest.$ac_ext
39004 cat >>conftest.$ac_ext <<_ACEOF
39005 /* end confdefs.h.  */
39006
39007 /* Override any GCC internal prototype to avoid an error.
39008    Use char because int might match the return type of a GCC
39009    builtin and then its argument prototype would still apply.  */
39010 #ifdef __cplusplus
39011 extern "C"
39012 #endif
39013 char nanosleep ();
39014 int
39015 main ()
39016 {
39017 return nanosleep ();
39018   ;
39019   return 0;
39020 }
39021 _ACEOF
39022 rm -f conftest.$ac_objext conftest$ac_exeext
39023 if { (ac_try="$ac_link"
39024 case "(($ac_try" in
39025   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39026   *) ac_try_echo=$ac_try;;
39027 esac
39028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39029   (eval "$ac_link") 2>conftest.er1
39030   ac_status=$?
39031   grep -v '^ *+' conftest.er1 >conftest.err
39032   rm -f conftest.er1
39033   cat conftest.err >&5
39034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39035   (exit $ac_status); } && {
39036          test -z "$ac_c_werror_flag" ||
39037          test ! -s conftest.err
39038        } && test -s conftest$ac_exeext &&
39039        $as_test_x conftest$ac_exeext; then
39040   ac_cv_lib_posix4_nanosleep=yes
39041 else
39042   echo "$as_me: failed program was:" >&5
39043 sed 's/^/| /' conftest.$ac_ext >&5
39044
39045         ac_cv_lib_posix4_nanosleep=no
39046 fi
39047
39048 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39049       conftest$ac_exeext conftest.$ac_ext
39050 LIBS=$ac_check_lib_save_LIBS
39051 fi
39052 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_nanosleep" >&5
39053 echo "${ECHO_T}$ac_cv_lib_posix4_nanosleep" >&6; }
39054 if test $ac_cv_lib_posix4_nanosleep = yes; then
39055
39056                     cat >>confdefs.h <<\_ACEOF
39057 #define HAVE_NANOSLEEP 1
39058 _ACEOF
39059
39060                     POSIX4_LINK=" -lposix4"
39061
39062 else
39063
39064
39065   for wx_func in usleep
39066   do
39067     { echo "$as_me:$LINENO: checking for $wx_func" >&5
39068 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
39069 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
39070   echo $ECHO_N "(cached) $ECHO_C" >&6
39071 else
39072
39073         cat >conftest.$ac_ext <<_ACEOF
39074
39075             /* confdefs.h.  */
39076 _ACEOF
39077 cat confdefs.h >>conftest.$ac_ext
39078 cat >>conftest.$ac_ext <<_ACEOF
39079 /* end confdefs.h.  */
39080
39081
39082                 $ac_includes_default
39083
39084 int
39085 main ()
39086 {
39087
39088                 #ifndef $wx_func
39089                   &$wx_func;
39090                 #endif
39091
39092
39093   ;
39094   return 0;
39095 }
39096
39097 _ACEOF
39098 rm -f conftest.$ac_objext conftest$ac_exeext
39099 if { (ac_try="$ac_link"
39100 case "(($ac_try" in
39101   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39102   *) ac_try_echo=$ac_try;;
39103 esac
39104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39105   (eval "$ac_link") 2>conftest.er1
39106   ac_status=$?
39107   grep -v '^ *+' conftest.er1 >conftest.err
39108   rm -f conftest.er1
39109   cat conftest.err >&5
39110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39111   (exit $ac_status); } && {
39112          test -z "$ac_c_werror_flag" ||
39113          test ! -s conftest.err
39114        } && test -s conftest$ac_exeext &&
39115        $as_test_x conftest$ac_exeext; then
39116   eval wx_cv_func_$wx_func=yes
39117 else
39118   echo "$as_me: failed program was:" >&5
39119 sed 's/^/| /' conftest.$ac_ext >&5
39120
39121         eval wx_cv_func_$wx_func=no
39122 fi
39123
39124 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39125       conftest$ac_exeext conftest.$ac_ext
39126
39127 fi
39128 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
39129                { echo "$as_me:$LINENO: result: $ac_res" >&5
39130 echo "${ECHO_T}$ac_res" >&6; }
39131
39132     if eval test \$wx_cv_func_$wx_func = yes
39133     then
39134       cat >>confdefs.h <<_ACEOF
39135 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
39136 _ACEOF
39137
39138
39139     else
39140       :
39141       { echo "$as_me:$LINENO: WARNING: wxSleep() function will not work" >&5
39142 echo "$as_me: WARNING: wxSleep() function will not work" >&2;}
39143
39144     fi
39145   done
39146
39147
39148
39149 fi
39150
39151
39152
39153 fi
39154 done
39155
39156 fi
39157
39158
39159   for wx_func in uname
39160   do
39161     { echo "$as_me:$LINENO: checking for $wx_func" >&5
39162 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
39163 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
39164   echo $ECHO_N "(cached) $ECHO_C" >&6
39165 else
39166
39167         cat >conftest.$ac_ext <<_ACEOF
39168
39169             /* confdefs.h.  */
39170 _ACEOF
39171 cat confdefs.h >>conftest.$ac_ext
39172 cat >>conftest.$ac_ext <<_ACEOF
39173 /* end confdefs.h.  */
39174
39175                 #include <sys/utsname.h>
39176                 $ac_includes_default
39177
39178 int
39179 main ()
39180 {
39181
39182                 #ifndef $wx_func
39183                   &$wx_func;
39184                 #endif
39185
39186
39187   ;
39188   return 0;
39189 }
39190
39191 _ACEOF
39192 rm -f conftest.$ac_objext conftest$ac_exeext
39193 if { (ac_try="$ac_link"
39194 case "(($ac_try" in
39195   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39196   *) ac_try_echo=$ac_try;;
39197 esac
39198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39199   (eval "$ac_link") 2>conftest.er1
39200   ac_status=$?
39201   grep -v '^ *+' conftest.er1 >conftest.err
39202   rm -f conftest.er1
39203   cat conftest.err >&5
39204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39205   (exit $ac_status); } && {
39206          test -z "$ac_c_werror_flag" ||
39207          test ! -s conftest.err
39208        } && test -s conftest$ac_exeext &&
39209        $as_test_x conftest$ac_exeext; then
39210   eval wx_cv_func_$wx_func=yes
39211 else
39212   echo "$as_me: failed program was:" >&5
39213 sed 's/^/| /' conftest.$ac_ext >&5
39214
39215         eval wx_cv_func_$wx_func=no
39216 fi
39217
39218 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39219       conftest$ac_exeext conftest.$ac_ext
39220
39221 fi
39222 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
39223                { echo "$as_me:$LINENO: result: $ac_res" >&5
39224 echo "${ECHO_T}$ac_res" >&6; }
39225
39226     if eval test \$wx_cv_func_$wx_func = yes
39227     then
39228       cat >>confdefs.h <<_ACEOF
39229 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
39230 _ACEOF
39231
39232
39233     else
39234       :
39235
39236     fi
39237   done
39238
39239 if test "$wx_cv_func_uname" != yes; then
39240
39241   for wx_func in gethostname
39242   do
39243     { echo "$as_me:$LINENO: checking for $wx_func" >&5
39244 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
39245 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
39246   echo $ECHO_N "(cached) $ECHO_C" >&6
39247 else
39248
39249         cat >conftest.$ac_ext <<_ACEOF
39250
39251             /* confdefs.h.  */
39252 _ACEOF
39253 cat confdefs.h >>conftest.$ac_ext
39254 cat >>conftest.$ac_ext <<_ACEOF
39255 /* end confdefs.h.  */
39256
39257
39258                 $ac_includes_default
39259
39260 int
39261 main ()
39262 {
39263
39264                 #ifndef $wx_func
39265                   &$wx_func;
39266                 #endif
39267
39268
39269   ;
39270   return 0;
39271 }
39272
39273 _ACEOF
39274 rm -f conftest.$ac_objext conftest$ac_exeext
39275 if { (ac_try="$ac_link"
39276 case "(($ac_try" in
39277   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39278   *) ac_try_echo=$ac_try;;
39279 esac
39280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39281   (eval "$ac_link") 2>conftest.er1
39282   ac_status=$?
39283   grep -v '^ *+' conftest.er1 >conftest.err
39284   rm -f conftest.er1
39285   cat conftest.err >&5
39286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39287   (exit $ac_status); } && {
39288          test -z "$ac_c_werror_flag" ||
39289          test ! -s conftest.err
39290        } && test -s conftest$ac_exeext &&
39291        $as_test_x conftest$ac_exeext; then
39292   eval wx_cv_func_$wx_func=yes
39293 else
39294   echo "$as_me: failed program was:" >&5
39295 sed 's/^/| /' conftest.$ac_ext >&5
39296
39297         eval wx_cv_func_$wx_func=no
39298 fi
39299
39300 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39301       conftest$ac_exeext conftest.$ac_ext
39302
39303 fi
39304 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
39305                { echo "$as_me:$LINENO: result: $ac_res" >&5
39306 echo "${ECHO_T}$ac_res" >&6; }
39307
39308     if eval test \$wx_cv_func_$wx_func = yes
39309     then
39310       cat >>confdefs.h <<_ACEOF
39311 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
39312 _ACEOF
39313
39314
39315     else
39316       :
39317
39318     fi
39319   done
39320
39321 fi
39322
39323
39324   for wx_func in strtok_r
39325   do
39326     { echo "$as_me:$LINENO: checking for $wx_func" >&5
39327 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
39328 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
39329   echo $ECHO_N "(cached) $ECHO_C" >&6
39330 else
39331
39332         cat >conftest.$ac_ext <<_ACEOF
39333
39334             /* confdefs.h.  */
39335 _ACEOF
39336 cat confdefs.h >>conftest.$ac_ext
39337 cat >>conftest.$ac_ext <<_ACEOF
39338 /* end confdefs.h.  */
39339
39340                 #define _REENTRANT
39341                 $ac_includes_default
39342
39343 int
39344 main ()
39345 {
39346
39347                 #ifndef $wx_func
39348                   &$wx_func;
39349                 #endif
39350
39351
39352   ;
39353   return 0;
39354 }
39355
39356 _ACEOF
39357 rm -f conftest.$ac_objext conftest$ac_exeext
39358 if { (ac_try="$ac_link"
39359 case "(($ac_try" in
39360   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39361   *) ac_try_echo=$ac_try;;
39362 esac
39363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39364   (eval "$ac_link") 2>conftest.er1
39365   ac_status=$?
39366   grep -v '^ *+' conftest.er1 >conftest.err
39367   rm -f conftest.er1
39368   cat conftest.err >&5
39369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39370   (exit $ac_status); } && {
39371          test -z "$ac_c_werror_flag" ||
39372          test ! -s conftest.err
39373        } && test -s conftest$ac_exeext &&
39374        $as_test_x conftest$ac_exeext; then
39375   eval wx_cv_func_$wx_func=yes
39376 else
39377   echo "$as_me: failed program was:" >&5
39378 sed 's/^/| /' conftest.$ac_ext >&5
39379
39380         eval wx_cv_func_$wx_func=no
39381 fi
39382
39383 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39384       conftest$ac_exeext conftest.$ac_ext
39385
39386 fi
39387 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
39388                { echo "$as_me:$LINENO: result: $ac_res" >&5
39389 echo "${ECHO_T}$ac_res" >&6; }
39390
39391     if eval test \$wx_cv_func_$wx_func = yes
39392     then
39393       cat >>confdefs.h <<_ACEOF
39394 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
39395 _ACEOF
39396
39397
39398     else
39399       :
39400
39401     fi
39402   done
39403
39404
39405 INET_LINK=
39406
39407 for ac_func in inet_addr
39408 do
39409 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39410 { echo "$as_me:$LINENO: checking for $ac_func" >&5
39411 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
39412 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39413   echo $ECHO_N "(cached) $ECHO_C" >&6
39414 else
39415   cat >conftest.$ac_ext <<_ACEOF
39416 /* confdefs.h.  */
39417 _ACEOF
39418 cat confdefs.h >>conftest.$ac_ext
39419 cat >>conftest.$ac_ext <<_ACEOF
39420 /* end confdefs.h.  */
39421 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39422    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39423 #define $ac_func innocuous_$ac_func
39424
39425 /* System header to define __stub macros and hopefully few prototypes,
39426     which can conflict with char $ac_func (); below.
39427     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39428     <limits.h> exists even on freestanding compilers.  */
39429
39430 #ifdef __STDC__
39431 # include <limits.h>
39432 #else
39433 # include <assert.h>
39434 #endif
39435
39436 #undef $ac_func
39437
39438 /* Override any GCC internal prototype to avoid an error.
39439    Use char because int might match the return type of a GCC
39440    builtin and then its argument prototype would still apply.  */
39441 #ifdef __cplusplus
39442 extern "C"
39443 #endif
39444 char $ac_func ();
39445 /* The GNU C library defines this for functions which it implements
39446     to always fail with ENOSYS.  Some functions are actually named
39447     something starting with __ and the normal name is an alias.  */
39448 #if defined __stub_$ac_func || defined __stub___$ac_func
39449 choke me
39450 #endif
39451
39452 int
39453 main ()
39454 {
39455 return $ac_func ();
39456   ;
39457   return 0;
39458 }
39459 _ACEOF
39460 rm -f conftest.$ac_objext conftest$ac_exeext
39461 if { (ac_try="$ac_link"
39462 case "(($ac_try" in
39463   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39464   *) ac_try_echo=$ac_try;;
39465 esac
39466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39467   (eval "$ac_link") 2>conftest.er1
39468   ac_status=$?
39469   grep -v '^ *+' conftest.er1 >conftest.err
39470   rm -f conftest.er1
39471   cat conftest.err >&5
39472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39473   (exit $ac_status); } && {
39474          test -z "$ac_c_werror_flag" ||
39475          test ! -s conftest.err
39476        } && test -s conftest$ac_exeext &&
39477        $as_test_x conftest$ac_exeext; then
39478   eval "$as_ac_var=yes"
39479 else
39480   echo "$as_me: failed program was:" >&5
39481 sed 's/^/| /' conftest.$ac_ext >&5
39482
39483         eval "$as_ac_var=no"
39484 fi
39485
39486 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39487       conftest$ac_exeext conftest.$ac_ext
39488 fi
39489 ac_res=`eval echo '${'$as_ac_var'}'`
39490                { echo "$as_me:$LINENO: result: $ac_res" >&5
39491 echo "${ECHO_T}$ac_res" >&6; }
39492 if test `eval echo '${'$as_ac_var'}'` = yes; then
39493   cat >>confdefs.h <<_ACEOF
39494 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39495 _ACEOF
39496  cat >>confdefs.h <<\_ACEOF
39497 #define HAVE_INET_ADDR 1
39498 _ACEOF
39499
39500 else
39501
39502         { echo "$as_me:$LINENO: checking for inet_addr in -lnsl" >&5
39503 echo $ECHO_N "checking for inet_addr in -lnsl... $ECHO_C" >&6; }
39504 if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then
39505   echo $ECHO_N "(cached) $ECHO_C" >&6
39506 else
39507   ac_check_lib_save_LIBS=$LIBS
39508 LIBS="-lnsl  $LIBS"
39509 cat >conftest.$ac_ext <<_ACEOF
39510 /* confdefs.h.  */
39511 _ACEOF
39512 cat confdefs.h >>conftest.$ac_ext
39513 cat >>conftest.$ac_ext <<_ACEOF
39514 /* end confdefs.h.  */
39515
39516 /* Override any GCC internal prototype to avoid an error.
39517    Use char because int might match the return type of a GCC
39518    builtin and then its argument prototype would still apply.  */
39519 #ifdef __cplusplus
39520 extern "C"
39521 #endif
39522 char inet_addr ();
39523 int
39524 main ()
39525 {
39526 return inet_addr ();
39527   ;
39528   return 0;
39529 }
39530 _ACEOF
39531 rm -f conftest.$ac_objext conftest$ac_exeext
39532 if { (ac_try="$ac_link"
39533 case "(($ac_try" in
39534   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39535   *) ac_try_echo=$ac_try;;
39536 esac
39537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39538   (eval "$ac_link") 2>conftest.er1
39539   ac_status=$?
39540   grep -v '^ *+' conftest.er1 >conftest.err
39541   rm -f conftest.er1
39542   cat conftest.err >&5
39543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39544   (exit $ac_status); } && {
39545          test -z "$ac_c_werror_flag" ||
39546          test ! -s conftest.err
39547        } && test -s conftest$ac_exeext &&
39548        $as_test_x conftest$ac_exeext; then
39549   ac_cv_lib_nsl_inet_addr=yes
39550 else
39551   echo "$as_me: failed program was:" >&5
39552 sed 's/^/| /' conftest.$ac_ext >&5
39553
39554         ac_cv_lib_nsl_inet_addr=no
39555 fi
39556
39557 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39558       conftest$ac_exeext conftest.$ac_ext
39559 LIBS=$ac_check_lib_save_LIBS
39560 fi
39561 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_addr" >&5
39562 echo "${ECHO_T}$ac_cv_lib_nsl_inet_addr" >&6; }
39563 if test $ac_cv_lib_nsl_inet_addr = yes; then
39564   INET_LINK="nsl"
39565 else
39566
39567                 { echo "$as_me:$LINENO: checking for inet_addr in -lresolv" >&5
39568 echo $ECHO_N "checking for inet_addr in -lresolv... $ECHO_C" >&6; }
39569 if test "${ac_cv_lib_resolv_inet_addr+set}" = set; then
39570   echo $ECHO_N "(cached) $ECHO_C" >&6
39571 else
39572   ac_check_lib_save_LIBS=$LIBS
39573 LIBS="-lresolv  $LIBS"
39574 cat >conftest.$ac_ext <<_ACEOF
39575 /* confdefs.h.  */
39576 _ACEOF
39577 cat confdefs.h >>conftest.$ac_ext
39578 cat >>conftest.$ac_ext <<_ACEOF
39579 /* end confdefs.h.  */
39580
39581 /* Override any GCC internal prototype to avoid an error.
39582    Use char because int might match the return type of a GCC
39583    builtin and then its argument prototype would still apply.  */
39584 #ifdef __cplusplus
39585 extern "C"
39586 #endif
39587 char inet_addr ();
39588 int
39589 main ()
39590 {
39591 return inet_addr ();
39592   ;
39593   return 0;
39594 }
39595 _ACEOF
39596 rm -f conftest.$ac_objext conftest$ac_exeext
39597 if { (ac_try="$ac_link"
39598 case "(($ac_try" in
39599   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39600   *) ac_try_echo=$ac_try;;
39601 esac
39602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39603   (eval "$ac_link") 2>conftest.er1
39604   ac_status=$?
39605   grep -v '^ *+' conftest.er1 >conftest.err
39606   rm -f conftest.er1
39607   cat conftest.err >&5
39608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39609   (exit $ac_status); } && {
39610          test -z "$ac_c_werror_flag" ||
39611          test ! -s conftest.err
39612        } && test -s conftest$ac_exeext &&
39613        $as_test_x conftest$ac_exeext; then
39614   ac_cv_lib_resolv_inet_addr=yes
39615 else
39616   echo "$as_me: failed program was:" >&5
39617 sed 's/^/| /' conftest.$ac_ext >&5
39618
39619         ac_cv_lib_resolv_inet_addr=no
39620 fi
39621
39622 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39623       conftest$ac_exeext conftest.$ac_ext
39624 LIBS=$ac_check_lib_save_LIBS
39625 fi
39626 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_addr" >&5
39627 echo "${ECHO_T}$ac_cv_lib_resolv_inet_addr" >&6; }
39628 if test $ac_cv_lib_resolv_inet_addr = yes; then
39629   INET_LINK="resolv"
39630 else
39631
39632                         { echo "$as_me:$LINENO: checking for inet_addr in -lsocket" >&5
39633 echo $ECHO_N "checking for inet_addr in -lsocket... $ECHO_C" >&6; }
39634 if test "${ac_cv_lib_socket_inet_addr+set}" = set; then
39635   echo $ECHO_N "(cached) $ECHO_C" >&6
39636 else
39637   ac_check_lib_save_LIBS=$LIBS
39638 LIBS="-lsocket  $LIBS"
39639 cat >conftest.$ac_ext <<_ACEOF
39640 /* confdefs.h.  */
39641 _ACEOF
39642 cat confdefs.h >>conftest.$ac_ext
39643 cat >>conftest.$ac_ext <<_ACEOF
39644 /* end confdefs.h.  */
39645
39646 /* Override any GCC internal prototype to avoid an error.
39647    Use char because int might match the return type of a GCC
39648    builtin and then its argument prototype would still apply.  */
39649 #ifdef __cplusplus
39650 extern "C"
39651 #endif
39652 char inet_addr ();
39653 int
39654 main ()
39655 {
39656 return inet_addr ();
39657   ;
39658   return 0;
39659 }
39660 _ACEOF
39661 rm -f conftest.$ac_objext conftest$ac_exeext
39662 if { (ac_try="$ac_link"
39663 case "(($ac_try" in
39664   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39665   *) ac_try_echo=$ac_try;;
39666 esac
39667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39668   (eval "$ac_link") 2>conftest.er1
39669   ac_status=$?
39670   grep -v '^ *+' conftest.er1 >conftest.err
39671   rm -f conftest.er1
39672   cat conftest.err >&5
39673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39674   (exit $ac_status); } && {
39675          test -z "$ac_c_werror_flag" ||
39676          test ! -s conftest.err
39677        } && test -s conftest$ac_exeext &&
39678        $as_test_x conftest$ac_exeext; then
39679   ac_cv_lib_socket_inet_addr=yes
39680 else
39681   echo "$as_me: failed program was:" >&5
39682 sed 's/^/| /' conftest.$ac_ext >&5
39683
39684         ac_cv_lib_socket_inet_addr=no
39685 fi
39686
39687 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39688       conftest$ac_exeext conftest.$ac_ext
39689 LIBS=$ac_check_lib_save_LIBS
39690 fi
39691 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_inet_addr" >&5
39692 echo "${ECHO_T}$ac_cv_lib_socket_inet_addr" >&6; }
39693 if test $ac_cv_lib_socket_inet_addr = yes; then
39694   INET_LINK="socket"
39695
39696 fi
39697
39698
39699
39700 fi
39701
39702
39703
39704 fi
39705
39706
39707
39708 fi
39709 done
39710
39711
39712
39713 for ac_func in inet_aton
39714 do
39715 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39716 { echo "$as_me:$LINENO: checking for $ac_func" >&5
39717 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
39718 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39719   echo $ECHO_N "(cached) $ECHO_C" >&6
39720 else
39721   cat >conftest.$ac_ext <<_ACEOF
39722 /* confdefs.h.  */
39723 _ACEOF
39724 cat confdefs.h >>conftest.$ac_ext
39725 cat >>conftest.$ac_ext <<_ACEOF
39726 /* end confdefs.h.  */
39727 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39728    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39729 #define $ac_func innocuous_$ac_func
39730
39731 /* System header to define __stub macros and hopefully few prototypes,
39732     which can conflict with char $ac_func (); below.
39733     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39734     <limits.h> exists even on freestanding compilers.  */
39735
39736 #ifdef __STDC__
39737 # include <limits.h>
39738 #else
39739 # include <assert.h>
39740 #endif
39741
39742 #undef $ac_func
39743
39744 /* Override any GCC internal prototype to avoid an error.
39745    Use char because int might match the return type of a GCC
39746    builtin and then its argument prototype would still apply.  */
39747 #ifdef __cplusplus
39748 extern "C"
39749 #endif
39750 char $ac_func ();
39751 /* The GNU C library defines this for functions which it implements
39752     to always fail with ENOSYS.  Some functions are actually named
39753     something starting with __ and the normal name is an alias.  */
39754 #if defined __stub_$ac_func || defined __stub___$ac_func
39755 choke me
39756 #endif
39757
39758 int
39759 main ()
39760 {
39761 return $ac_func ();
39762   ;
39763   return 0;
39764 }
39765 _ACEOF
39766 rm -f conftest.$ac_objext conftest$ac_exeext
39767 if { (ac_try="$ac_link"
39768 case "(($ac_try" in
39769   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39770   *) ac_try_echo=$ac_try;;
39771 esac
39772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39773   (eval "$ac_link") 2>conftest.er1
39774   ac_status=$?
39775   grep -v '^ *+' conftest.er1 >conftest.err
39776   rm -f conftest.er1
39777   cat conftest.err >&5
39778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39779   (exit $ac_status); } && {
39780          test -z "$ac_c_werror_flag" ||
39781          test ! -s conftest.err
39782        } && test -s conftest$ac_exeext &&
39783        $as_test_x conftest$ac_exeext; then
39784   eval "$as_ac_var=yes"
39785 else
39786   echo "$as_me: failed program was:" >&5
39787 sed 's/^/| /' conftest.$ac_ext >&5
39788
39789         eval "$as_ac_var=no"
39790 fi
39791
39792 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39793       conftest$ac_exeext conftest.$ac_ext
39794 fi
39795 ac_res=`eval echo '${'$as_ac_var'}'`
39796                { echo "$as_me:$LINENO: result: $ac_res" >&5
39797 echo "${ECHO_T}$ac_res" >&6; }
39798 if test `eval echo '${'$as_ac_var'}'` = yes; then
39799   cat >>confdefs.h <<_ACEOF
39800 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39801 _ACEOF
39802  cat >>confdefs.h <<\_ACEOF
39803 #define HAVE_INET_ATON 1
39804 _ACEOF
39805
39806 else
39807
39808                         as_ac_Lib=`echo "ac_cv_lib_$INET_LINK''_inet_aton" | $as_tr_sh`
39809 { echo "$as_me:$LINENO: checking for inet_aton in -l$INET_LINK" >&5
39810 echo $ECHO_N "checking for inet_aton in -l$INET_LINK... $ECHO_C" >&6; }
39811 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
39812   echo $ECHO_N "(cached) $ECHO_C" >&6
39813 else
39814   ac_check_lib_save_LIBS=$LIBS
39815 LIBS="-l$INET_LINK  $LIBS"
39816 cat >conftest.$ac_ext <<_ACEOF
39817 /* confdefs.h.  */
39818 _ACEOF
39819 cat confdefs.h >>conftest.$ac_ext
39820 cat >>conftest.$ac_ext <<_ACEOF
39821 /* end confdefs.h.  */
39822
39823 /* Override any GCC internal prototype to avoid an error.
39824    Use char because int might match the return type of a GCC
39825    builtin and then its argument prototype would still apply.  */
39826 #ifdef __cplusplus
39827 extern "C"
39828 #endif
39829 char inet_aton ();
39830 int
39831 main ()
39832 {
39833 return inet_aton ();
39834   ;
39835   return 0;
39836 }
39837 _ACEOF
39838 rm -f conftest.$ac_objext conftest$ac_exeext
39839 if { (ac_try="$ac_link"
39840 case "(($ac_try" in
39841   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39842   *) ac_try_echo=$ac_try;;
39843 esac
39844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39845   (eval "$ac_link") 2>conftest.er1
39846   ac_status=$?
39847   grep -v '^ *+' conftest.er1 >conftest.err
39848   rm -f conftest.er1
39849   cat conftest.err >&5
39850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39851   (exit $ac_status); } && {
39852          test -z "$ac_c_werror_flag" ||
39853          test ! -s conftest.err
39854        } && test -s conftest$ac_exeext &&
39855        $as_test_x conftest$ac_exeext; then
39856   eval "$as_ac_Lib=yes"
39857 else
39858   echo "$as_me: failed program was:" >&5
39859 sed 's/^/| /' conftest.$ac_ext >&5
39860
39861         eval "$as_ac_Lib=no"
39862 fi
39863
39864 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39865       conftest$ac_exeext conftest.$ac_ext
39866 LIBS=$ac_check_lib_save_LIBS
39867 fi
39868 ac_res=`eval echo '${'$as_ac_Lib'}'`
39869                { echo "$as_me:$LINENO: result: $ac_res" >&5
39870 echo "${ECHO_T}$ac_res" >&6; }
39871 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
39872   cat >>confdefs.h <<\_ACEOF
39873 #define HAVE_INET_ATON 1
39874 _ACEOF
39875
39876 fi
39877
39878
39879 fi
39880 done
39881
39882
39883 if test "x$INET_LINK" != "x"; then
39884     cat >>confdefs.h <<\_ACEOF
39885 #define HAVE_INET_ADDR 1
39886 _ACEOF
39887
39888     INET_LINK=" -l$INET_LINK"
39889 fi
39890
39891
39892   for wx_func in fdopen
39893   do
39894     { echo "$as_me:$LINENO: checking for $wx_func" >&5
39895 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
39896 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
39897   echo $ECHO_N "(cached) $ECHO_C" >&6
39898 else
39899
39900         cat >conftest.$ac_ext <<_ACEOF
39901
39902             /* confdefs.h.  */
39903 _ACEOF
39904 cat confdefs.h >>conftest.$ac_ext
39905 cat >>conftest.$ac_ext <<_ACEOF
39906 /* end confdefs.h.  */
39907
39908
39909                 $ac_includes_default
39910
39911 int
39912 main ()
39913 {
39914
39915                 #ifndef $wx_func
39916                   &$wx_func;
39917                 #endif
39918
39919
39920   ;
39921   return 0;
39922 }
39923
39924 _ACEOF
39925 rm -f conftest.$ac_objext conftest$ac_exeext
39926 if { (ac_try="$ac_link"
39927 case "(($ac_try" in
39928   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39929   *) ac_try_echo=$ac_try;;
39930 esac
39931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39932   (eval "$ac_link") 2>conftest.er1
39933   ac_status=$?
39934   grep -v '^ *+' conftest.er1 >conftest.err
39935   rm -f conftest.er1
39936   cat conftest.err >&5
39937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39938   (exit $ac_status); } && {
39939          test -z "$ac_c_werror_flag" ||
39940          test ! -s conftest.err
39941        } && test -s conftest$ac_exeext &&
39942        $as_test_x conftest$ac_exeext; then
39943   eval wx_cv_func_$wx_func=yes
39944 else
39945   echo "$as_me: failed program was:" >&5
39946 sed 's/^/| /' conftest.$ac_ext >&5
39947
39948         eval wx_cv_func_$wx_func=no
39949 fi
39950
39951 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39952       conftest$ac_exeext conftest.$ac_ext
39953
39954 fi
39955 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
39956                { echo "$as_me:$LINENO: result: $ac_res" >&5
39957 echo "${ECHO_T}$ac_res" >&6; }
39958
39959     if eval test \$wx_cv_func_$wx_func = yes
39960     then
39961       cat >>confdefs.h <<_ACEOF
39962 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
39963 _ACEOF
39964
39965
39966     else
39967       :
39968
39969     fi
39970   done
39971
39972
39973 if test "$wxUSE_TARSTREAM" = "yes"; then
39974
39975   for wx_func in sysconf
39976   do
39977     { echo "$as_me:$LINENO: checking for $wx_func" >&5
39978 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
39979 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
39980   echo $ECHO_N "(cached) $ECHO_C" >&6
39981 else
39982
39983         cat >conftest.$ac_ext <<_ACEOF
39984
39985             /* confdefs.h.  */
39986 _ACEOF
39987 cat confdefs.h >>conftest.$ac_ext
39988 cat >>conftest.$ac_ext <<_ACEOF
39989 /* end confdefs.h.  */
39990
39991
39992                 $ac_includes_default
39993
39994 int
39995 main ()
39996 {
39997
39998                 #ifndef $wx_func
39999                   &$wx_func;
40000                 #endif
40001
40002
40003   ;
40004   return 0;
40005 }
40006
40007 _ACEOF
40008 rm -f conftest.$ac_objext conftest$ac_exeext
40009 if { (ac_try="$ac_link"
40010 case "(($ac_try" in
40011   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40012   *) ac_try_echo=$ac_try;;
40013 esac
40014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40015   (eval "$ac_link") 2>conftest.er1
40016   ac_status=$?
40017   grep -v '^ *+' conftest.er1 >conftest.err
40018   rm -f conftest.er1
40019   cat conftest.err >&5
40020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40021   (exit $ac_status); } && {
40022          test -z "$ac_c_werror_flag" ||
40023          test ! -s conftest.err
40024        } && test -s conftest$ac_exeext &&
40025        $as_test_x conftest$ac_exeext; then
40026   eval wx_cv_func_$wx_func=yes
40027 else
40028   echo "$as_me: failed program was:" >&5
40029 sed 's/^/| /' conftest.$ac_ext >&5
40030
40031         eval wx_cv_func_$wx_func=no
40032 fi
40033
40034 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40035       conftest$ac_exeext conftest.$ac_ext
40036
40037 fi
40038 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
40039                { echo "$as_me:$LINENO: result: $ac_res" >&5
40040 echo "${ECHO_T}$ac_res" >&6; }
40041
40042     if eval test \$wx_cv_func_$wx_func = yes
40043     then
40044       cat >>confdefs.h <<_ACEOF
40045 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
40046 _ACEOF
40047
40048
40049     else
40050       :
40051
40052     fi
40053   done
40054
40055
40056
40057   for wx_func in getpwuid_r
40058   do
40059     { echo "$as_me:$LINENO: checking for $wx_func" >&5
40060 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
40061 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
40062   echo $ECHO_N "(cached) $ECHO_C" >&6
40063 else
40064
40065         cat >conftest.$ac_ext <<_ACEOF
40066
40067             /* confdefs.h.  */
40068 _ACEOF
40069 cat confdefs.h >>conftest.$ac_ext
40070 cat >>conftest.$ac_ext <<_ACEOF
40071 /* end confdefs.h.  */
40072
40073
40074                     #define _REENTRANT
40075                     #include <pwd.h>
40076
40077                 $ac_includes_default
40078
40079 int
40080 main ()
40081 {
40082
40083                 #ifndef $wx_func
40084                   &$wx_func;
40085                 #endif
40086
40087                     struct passwd pw, *ppw;
40088                     char buf[1024];
40089                     getpwuid_r(0, &pw, buf, sizeof(buf), &ppw)
40090
40091
40092   ;
40093   return 0;
40094 }
40095
40096 _ACEOF
40097 rm -f conftest.$ac_objext conftest$ac_exeext
40098 if { (ac_try="$ac_link"
40099 case "(($ac_try" in
40100   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40101   *) ac_try_echo=$ac_try;;
40102 esac
40103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40104   (eval "$ac_link") 2>conftest.er1
40105   ac_status=$?
40106   grep -v '^ *+' conftest.er1 >conftest.err
40107   rm -f conftest.er1
40108   cat conftest.err >&5
40109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40110   (exit $ac_status); } && {
40111          test -z "$ac_c_werror_flag" ||
40112          test ! -s conftest.err
40113        } && test -s conftest$ac_exeext &&
40114        $as_test_x conftest$ac_exeext; then
40115   eval wx_cv_func_$wx_func=yes
40116 else
40117   echo "$as_me: failed program was:" >&5
40118 sed 's/^/| /' conftest.$ac_ext >&5
40119
40120         eval wx_cv_func_$wx_func=no
40121 fi
40122
40123 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40124       conftest$ac_exeext conftest.$ac_ext
40125
40126 fi
40127 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
40128                { echo "$as_me:$LINENO: result: $ac_res" >&5
40129 echo "${ECHO_T}$ac_res" >&6; }
40130
40131     if eval test \$wx_cv_func_$wx_func = yes
40132     then
40133       cat >>confdefs.h <<_ACEOF
40134 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
40135 _ACEOF
40136
40137
40138     else
40139       :
40140
40141     fi
40142   done
40143
40144
40145
40146   for wx_func in getgrgid_r
40147   do
40148     { echo "$as_me:$LINENO: checking for $wx_func" >&5
40149 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
40150 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
40151   echo $ECHO_N "(cached) $ECHO_C" >&6
40152 else
40153
40154         cat >conftest.$ac_ext <<_ACEOF
40155
40156             /* confdefs.h.  */
40157 _ACEOF
40158 cat confdefs.h >>conftest.$ac_ext
40159 cat >>conftest.$ac_ext <<_ACEOF
40160 /* end confdefs.h.  */
40161
40162
40163                     #define _REENTRANT
40164                     #include <grp.h>
40165
40166                 $ac_includes_default
40167
40168 int
40169 main ()
40170 {
40171
40172                 #ifndef $wx_func
40173                   &$wx_func;
40174                 #endif
40175
40176                     struct group grp, *pgrp;
40177                     char buf[1024];
40178                     getgrgid_r(0, &grp, buf, sizeof(buf), &pgrp)
40179
40180
40181   ;
40182   return 0;
40183 }
40184
40185 _ACEOF
40186 rm -f conftest.$ac_objext conftest$ac_exeext
40187 if { (ac_try="$ac_link"
40188 case "(($ac_try" in
40189   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40190   *) ac_try_echo=$ac_try;;
40191 esac
40192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40193   (eval "$ac_link") 2>conftest.er1
40194   ac_status=$?
40195   grep -v '^ *+' conftest.er1 >conftest.err
40196   rm -f conftest.er1
40197   cat conftest.err >&5
40198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40199   (exit $ac_status); } && {
40200          test -z "$ac_c_werror_flag" ||
40201          test ! -s conftest.err
40202        } && test -s conftest$ac_exeext &&
40203        $as_test_x conftest$ac_exeext; then
40204   eval wx_cv_func_$wx_func=yes
40205 else
40206   echo "$as_me: failed program was:" >&5
40207 sed 's/^/| /' conftest.$ac_ext >&5
40208
40209         eval wx_cv_func_$wx_func=no
40210 fi
40211
40212 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40213       conftest$ac_exeext conftest.$ac_ext
40214
40215 fi
40216 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
40217                { echo "$as_me:$LINENO: result: $ac_res" >&5
40218 echo "${ECHO_T}$ac_res" >&6; }
40219
40220     if eval test \$wx_cv_func_$wx_func = yes
40221     then
40222       cat >>confdefs.h <<_ACEOF
40223 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
40224 _ACEOF
40225
40226
40227     else
40228       :
40229
40230     fi
40231   done
40232
40233 fi
40234
40235 fi
40236
40237
40238
40239 cat >confcache <<\_ACEOF
40240 # This file is a shell script that caches the results of configure
40241 # tests run on this system so they can be shared between configure
40242 # scripts and configure runs, see configure's option --config-cache.
40243 # It is not useful on other systems.  If it contains results you don't
40244 # want to keep, you may remove or edit it.
40245 #
40246 # config.status only pays attention to the cache file if you give it
40247 # the --recheck option to rerun configure.
40248 #
40249 # `ac_cv_env_foo' variables (set or unset) will be overridden when
40250 # loading this file, other *unset* `ac_cv_foo' will be assigned the
40251 # following values.
40252
40253 _ACEOF
40254
40255 # The following way of writing the cache mishandles newlines in values,
40256 # but we know of no workaround that is simple, portable, and efficient.
40257 # So, we kill variables containing newlines.
40258 # Ultrix sh set writes to stderr and can't be redirected directly,
40259 # and sets the high bit in the cache file unless we assign to the vars.
40260 (
40261   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
40262     eval ac_val=\$$ac_var
40263     case $ac_val in #(
40264     *${as_nl}*)
40265       case $ac_var in #(
40266       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
40267 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
40268       esac
40269       case $ac_var in #(
40270       _ | IFS | as_nl) ;; #(
40271       *) $as_unset $ac_var ;;
40272       esac ;;
40273     esac
40274   done
40275
40276   (set) 2>&1 |
40277     case $as_nl`(ac_space=' '; set) 2>&1` in #(
40278     *${as_nl}ac_space=\ *)
40279       # `set' does not quote correctly, so add quotes (double-quote
40280       # substitution turns \\\\ into \\, and sed turns \\ into \).
40281       sed -n \
40282         "s/'/'\\\\''/g;
40283           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
40284       ;; #(
40285     *)
40286       # `set' quotes correctly as required by POSIX, so do not add quotes.
40287       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
40288       ;;
40289     esac |
40290     sort
40291 ) |
40292   sed '
40293      /^ac_cv_env_/b end
40294      t clear
40295      :clear
40296      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
40297      t end
40298      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
40299      :end' >>confcache
40300 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
40301   if test -w "$cache_file"; then
40302     test "x$cache_file" != "x/dev/null" &&
40303       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
40304 echo "$as_me: updating cache $cache_file" >&6;}
40305     cat confcache >$cache_file
40306   else
40307     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
40308 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
40309   fi
40310 fi
40311 rm -f confcache
40312
40313
40314 if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
40315
40316
40317     THREADS_LINK=
40318     THREADS_CFLAGS=
40319
40320     if test "$wxUSE_THREADS" = "yes" ; then
40321         if test "$USE_BEOS" = 1; then
40322             { echo "$as_me:$LINENO: WARNING: BeOS threads are not yet supported... disabled" >&5
40323 echo "$as_me: WARNING: BeOS threads are not yet supported... disabled" >&2;}
40324             wxUSE_THREADS="no"
40325         fi
40326     fi
40327
40328     if test "$wxUSE_THREADS" = "yes" ; then
40329
40330
40331                                 THREAD_OPTS="-pthread"
40332         if test "x$SUNCXX" = xyes; then
40333             THREAD_OPTS="-mt lthread $THREAD_OPTS"
40334         fi
40335
40336         case "${host}" in
40337           *-*-solaris2* | *-*-sunos4* )
40338                 if test "x$GCC" = "xyes"; then
40339                                         THREAD_OPTS="-pthreads $THREAD_OPTS"
40340                 fi
40341                 ;;
40342           *-*-freebsd*)
40343                                                 THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r"
40344                 ;;
40345           *-*-darwin* | *-*-cygwin* )
40346                                                 THREAD_OPTS=""
40347                 ;;
40348           *-*-aix*)
40349                                 THREAD_OPTS="pthreads"
40350                 ;;
40351           *-hp-hpux* )
40352                 if test "x$GCC" = "xyes"; then
40353                                         $CXX -dumpspecs | grep 'pthread:' >/dev/null ||
40354                         THREAD_OPTS=""
40355                 else
40356                                                             THREAD_OPTS="-mt"
40357                 fi
40358                 ;;
40359
40360           *-*-irix* )
40361                                                                 if test "x$GCC" = "xyes"; then
40362                     THREAD_OPTS=""
40363                 fi
40364                 ;;
40365
40366           *-*-qnx*)
40367                                                 THREAD_OPTS=""
40368                 ;;
40369
40370           *-*-*UnixWare*)
40371                                 if test "x$GCC" != "xyes"; then
40372                     THREAD_OPTS="-Ethread"
40373                 fi
40374                 ;;
40375         esac
40376
40377         case "${host}" in
40378             *-*-qnx*)
40379                                                                 THREAD_OPTS="none pthread"
40380                 ;;
40381
40382             *)
40383                                                                                 THREAD_OPTS="$THREAD_OPTS pthread none"
40384                 ;;
40385         esac
40386
40387                 THREADS_OK=no
40388         for flag in $THREAD_OPTS; do
40389             case $flag in
40390                 none)
40391                     { echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
40392 echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6; }
40393                     ;;
40394
40395                 -*)
40396                     { echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
40397 echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6; }
40398                     THREADS_CFLAGS="$flag"
40399                     ;;
40400
40401                 *)
40402                     { echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
40403 echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6; }
40404                     THREADS_LINK="-l$flag"
40405                     ;;
40406               esac
40407
40408               save_LIBS="$LIBS"
40409               save_CFLAGS="$CFLAGS"
40410               LIBS="$THREADS_LINK $LIBS"
40411               CFLAGS="$THREADS_CFLAGS $CFLAGS"
40412
40413               cat >conftest.$ac_ext <<_ACEOF
40414 /* confdefs.h.  */
40415 _ACEOF
40416 cat confdefs.h >>conftest.$ac_ext
40417 cat >>conftest.$ac_ext <<_ACEOF
40418 /* end confdefs.h.  */
40419 #include <pthread.h>
40420 int
40421 main ()
40422 {
40423 pthread_create(0,0,0,0);
40424   ;
40425   return 0;
40426 }
40427 _ACEOF
40428 rm -f conftest.$ac_objext conftest$ac_exeext
40429 if { (ac_try="$ac_link"
40430 case "(($ac_try" in
40431   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40432   *) ac_try_echo=$ac_try;;
40433 esac
40434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40435   (eval "$ac_link") 2>conftest.er1
40436   ac_status=$?
40437   grep -v '^ *+' conftest.er1 >conftest.err
40438   rm -f conftest.er1
40439   cat conftest.err >&5
40440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40441   (exit $ac_status); } && {
40442          test -z "$ac_c_werror_flag" ||
40443          test ! -s conftest.err
40444        } && test -s conftest$ac_exeext &&
40445        $as_test_x conftest$ac_exeext; then
40446   THREADS_OK=yes
40447 else
40448   echo "$as_me: failed program was:" >&5
40449 sed 's/^/| /' conftest.$ac_ext >&5
40450
40451
40452 fi
40453
40454 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40455       conftest$ac_exeext conftest.$ac_ext
40456
40457               LIBS="$save_LIBS"
40458               CFLAGS="$save_CFLAGS"
40459
40460               { echo "$as_me:$LINENO: result: $THREADS_OK" >&5
40461 echo "${ECHO_T}$THREADS_OK" >&6; }
40462               if test "x$THREADS_OK" = "xyes"; then
40463                       break;
40464               fi
40465
40466               THREADS_LINK=""
40467               THREADS_CFLAGS=""
40468       done
40469
40470       if test "x$THREADS_OK" != "xyes"; then
40471           wxUSE_THREADS=no
40472           { echo "$as_me:$LINENO: WARNING: No thread support on this system... disabled" >&5
40473 echo "$as_me: WARNING: No thread support on this system... disabled" >&2;}
40474       else
40475                                                                                           LDFLAGS="$THREADS_CFLAGS $LDFLAGS"
40476           WXCONFIG_LDFLAGS="$THREADS_CFLAGS $WXCONFIG_LDFLAGS"
40477           LIBS="$THREADS_LINK $LIBS"
40478
40479           { echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
40480 echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6; }
40481           flag=no
40482           case "${host}" in
40483             *-aix*)
40484                                                                                                                 LDFLAGS="-L/usr/lib/threads $LDFLAGS"
40485                 WXCONFIG_LDFLAGS="-L/usr/lib/threads $WXCONFIG_LDFLAGS"
40486                 flag="-D_THREAD_SAFE"
40487                 ;;
40488             *-freebsd*)
40489                 flag="-D_THREAD_SAFE"
40490                 ;;
40491             *-hp-hpux* )
40492                 flag="-D_REENTRANT"
40493                 if test "x$GCC" != "xyes"; then
40494                                         flag="$flag -D_RWSTD_MULTI_THREAD"
40495                 fi
40496                 ;;
40497             *solaris* | alpha*-osf*)
40498                 flag="-D_REENTRANT"
40499                 ;;
40500           esac
40501           { echo "$as_me:$LINENO: result: ${flag}" >&5
40502 echo "${ECHO_T}${flag}" >&6; }
40503           if test "x$flag" != xno; then
40504               THREADS_CFLAGS="$THREADS_CFLAGS $flag"
40505           fi
40506
40507                     WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS $THREADS_CFLAGS"
40508       fi
40509     fi
40510
40511         if test "$wxUSE_THREADS" = "yes" ; then
40512
40513 for ac_func in thr_setconcurrency
40514 do
40515 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40516 { echo "$as_me:$LINENO: checking for $ac_func" >&5
40517 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
40518 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
40519   echo $ECHO_N "(cached) $ECHO_C" >&6
40520 else
40521   cat >conftest.$ac_ext <<_ACEOF
40522 /* confdefs.h.  */
40523 _ACEOF
40524 cat confdefs.h >>conftest.$ac_ext
40525 cat >>conftest.$ac_ext <<_ACEOF
40526 /* end confdefs.h.  */
40527 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40528    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40529 #define $ac_func innocuous_$ac_func
40530
40531 /* System header to define __stub macros and hopefully few prototypes,
40532     which can conflict with char $ac_func (); below.
40533     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40534     <limits.h> exists even on freestanding compilers.  */
40535
40536 #ifdef __STDC__
40537 # include <limits.h>
40538 #else
40539 # include <assert.h>
40540 #endif
40541
40542 #undef $ac_func
40543
40544 /* Override any GCC internal prototype to avoid an error.
40545    Use char because int might match the return type of a GCC
40546    builtin and then its argument prototype would still apply.  */
40547 #ifdef __cplusplus
40548 extern "C"
40549 #endif
40550 char $ac_func ();
40551 /* The GNU C library defines this for functions which it implements
40552     to always fail with ENOSYS.  Some functions are actually named
40553     something starting with __ and the normal name is an alias.  */
40554 #if defined __stub_$ac_func || defined __stub___$ac_func
40555 choke me
40556 #endif
40557
40558 int
40559 main ()
40560 {
40561 return $ac_func ();
40562   ;
40563   return 0;
40564 }
40565 _ACEOF
40566 rm -f conftest.$ac_objext conftest$ac_exeext
40567 if { (ac_try="$ac_link"
40568 case "(($ac_try" in
40569   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40570   *) ac_try_echo=$ac_try;;
40571 esac
40572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40573   (eval "$ac_link") 2>conftest.er1
40574   ac_status=$?
40575   grep -v '^ *+' conftest.er1 >conftest.err
40576   rm -f conftest.er1
40577   cat conftest.err >&5
40578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40579   (exit $ac_status); } && {
40580          test -z "$ac_c_werror_flag" ||
40581          test ! -s conftest.err
40582        } && test -s conftest$ac_exeext &&
40583        $as_test_x conftest$ac_exeext; then
40584   eval "$as_ac_var=yes"
40585 else
40586   echo "$as_me: failed program was:" >&5
40587 sed 's/^/| /' conftest.$ac_ext >&5
40588
40589         eval "$as_ac_var=no"
40590 fi
40591
40592 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40593       conftest$ac_exeext conftest.$ac_ext
40594 fi
40595 ac_res=`eval echo '${'$as_ac_var'}'`
40596                { echo "$as_me:$LINENO: result: $ac_res" >&5
40597 echo "${ECHO_T}$ac_res" >&6; }
40598 if test `eval echo '${'$as_ac_var'}'` = yes; then
40599   cat >>confdefs.h <<_ACEOF
40600 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40601 _ACEOF
40602
40603 fi
40604 done
40605
40606
40607                   { echo "$as_me:$LINENO: checking for pthread_cleanup_push/pop" >&5
40608 echo $ECHO_N "checking for pthread_cleanup_push/pop... $ECHO_C" >&6; }
40609 if test "${wx_cv_func_pthread_cleanup+set}" = set; then
40610   echo $ECHO_N "(cached) $ECHO_C" >&6
40611 else
40612
40613                                 ac_ext=cpp
40614 ac_cpp='$CXXCPP $CPPFLAGS'
40615 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40616 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40617 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
40618
40619         cat >conftest.$ac_ext <<_ACEOF
40620 /* confdefs.h.  */
40621 _ACEOF
40622 cat confdefs.h >>conftest.$ac_ext
40623 cat >>conftest.$ac_ext <<_ACEOF
40624 /* end confdefs.h.  */
40625 #include <pthread.h>
40626                void ThreadCleanupFunc(void *p);
40627
40628 int
40629 main ()
40630 {
40631
40632                 void *p;
40633                 pthread_cleanup_push(ThreadCleanupFunc, p);
40634                 pthread_cleanup_pop(0);
40635
40636   ;
40637   return 0;
40638 }
40639 _ACEOF
40640 rm -f conftest.$ac_objext
40641 if { (ac_try="$ac_compile"
40642 case "(($ac_try" in
40643   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40644   *) ac_try_echo=$ac_try;;
40645 esac
40646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40647   (eval "$ac_compile") 2>conftest.er1
40648   ac_status=$?
40649   grep -v '^ *+' conftest.er1 >conftest.err
40650   rm -f conftest.er1
40651   cat conftest.err >&5
40652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40653   (exit $ac_status); } && {
40654          test -z "$ac_cxx_werror_flag" ||
40655          test ! -s conftest.err
40656        } && test -s conftest.$ac_objext; then
40657
40658                wx_cv_func_pthread_cleanup=yes
40659
40660 else
40661   echo "$as_me: failed program was:" >&5
40662 sed 's/^/| /' conftest.$ac_ext >&5
40663
40664
40665                wx_cv_func_pthread_cleanup=no
40666
40667
40668 fi
40669
40670 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40671         ac_ext=c
40672 ac_cpp='$CPP $CPPFLAGS'
40673 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40674 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40675 ac_compiler_gnu=$ac_cv_c_compiler_gnu
40676
40677
40678 fi
40679 { echo "$as_me:$LINENO: result: $wx_cv_func_pthread_cleanup" >&5
40680 echo "${ECHO_T}$wx_cv_func_pthread_cleanup" >&6; }
40681       if test "x$wx_cv_func_pthread_cleanup" = "xyes"; then
40682         cat >>confdefs.h <<\_ACEOF
40683 #define wxHAVE_PTHREAD_CLEANUP 1
40684 _ACEOF
40685
40686       fi
40687
40688
40689 for ac_header in sched.h
40690 do
40691 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
40692 { echo "$as_me:$LINENO: checking for $ac_header" >&5
40693 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
40694 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
40695   echo $ECHO_N "(cached) $ECHO_C" >&6
40696 else
40697   cat >conftest.$ac_ext <<_ACEOF
40698 /* confdefs.h.  */
40699 _ACEOF
40700 cat confdefs.h >>conftest.$ac_ext
40701 cat >>conftest.$ac_ext <<_ACEOF
40702 /* end confdefs.h.  */
40703 $ac_includes_default
40704
40705 #include <$ac_header>
40706 _ACEOF
40707 rm -f conftest.$ac_objext
40708 if { (ac_try="$ac_compile"
40709 case "(($ac_try" in
40710   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40711   *) ac_try_echo=$ac_try;;
40712 esac
40713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40714   (eval "$ac_compile") 2>conftest.er1
40715   ac_status=$?
40716   grep -v '^ *+' conftest.er1 >conftest.err
40717   rm -f conftest.er1
40718   cat conftest.err >&5
40719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40720   (exit $ac_status); } && {
40721          test -z "$ac_c_werror_flag" ||
40722          test ! -s conftest.err
40723        } && test -s conftest.$ac_objext; then
40724   eval "$as_ac_Header=yes"
40725 else
40726   echo "$as_me: failed program was:" >&5
40727 sed 's/^/| /' conftest.$ac_ext >&5
40728
40729         eval "$as_ac_Header=no"
40730 fi
40731
40732 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40733 fi
40734 ac_res=`eval echo '${'$as_ac_Header'}'`
40735                { echo "$as_me:$LINENO: result: $ac_res" >&5
40736 echo "${ECHO_T}$ac_res" >&6; }
40737 if test `eval echo '${'$as_ac_Header'}'` = yes; then
40738   cat >>confdefs.h <<_ACEOF
40739 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
40740 _ACEOF
40741
40742 fi
40743
40744 done
40745
40746       if test "$ac_cv_header_sched_h" = "yes"; then
40747           { echo "$as_me:$LINENO: checking for sched_yield" >&5
40748 echo $ECHO_N "checking for sched_yield... $ECHO_C" >&6; }
40749 if test "${ac_cv_func_sched_yield+set}" = set; then
40750   echo $ECHO_N "(cached) $ECHO_C" >&6
40751 else
40752   cat >conftest.$ac_ext <<_ACEOF
40753 /* confdefs.h.  */
40754 _ACEOF
40755 cat confdefs.h >>conftest.$ac_ext
40756 cat >>conftest.$ac_ext <<_ACEOF
40757 /* end confdefs.h.  */
40758 /* Define sched_yield to an innocuous variant, in case <limits.h> declares sched_yield.
40759    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40760 #define sched_yield innocuous_sched_yield
40761
40762 /* System header to define __stub macros and hopefully few prototypes,
40763     which can conflict with char sched_yield (); below.
40764     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40765     <limits.h> exists even on freestanding compilers.  */
40766
40767 #ifdef __STDC__
40768 # include <limits.h>
40769 #else
40770 # include <assert.h>
40771 #endif
40772
40773 #undef sched_yield
40774
40775 /* Override any GCC internal prototype to avoid an error.
40776    Use char because int might match the return type of a GCC
40777    builtin and then its argument prototype would still apply.  */
40778 #ifdef __cplusplus
40779 extern "C"
40780 #endif
40781 char sched_yield ();
40782 /* The GNU C library defines this for functions which it implements
40783     to always fail with ENOSYS.  Some functions are actually named
40784     something starting with __ and the normal name is an alias.  */
40785 #if defined __stub_sched_yield || defined __stub___sched_yield
40786 choke me
40787 #endif
40788
40789 int
40790 main ()
40791 {
40792 return sched_yield ();
40793   ;
40794   return 0;
40795 }
40796 _ACEOF
40797 rm -f conftest.$ac_objext conftest$ac_exeext
40798 if { (ac_try="$ac_link"
40799 case "(($ac_try" in
40800   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40801   *) ac_try_echo=$ac_try;;
40802 esac
40803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40804   (eval "$ac_link") 2>conftest.er1
40805   ac_status=$?
40806   grep -v '^ *+' conftest.er1 >conftest.err
40807   rm -f conftest.er1
40808   cat conftest.err >&5
40809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40810   (exit $ac_status); } && {
40811          test -z "$ac_c_werror_flag" ||
40812          test ! -s conftest.err
40813        } && test -s conftest$ac_exeext &&
40814        $as_test_x conftest$ac_exeext; then
40815   ac_cv_func_sched_yield=yes
40816 else
40817   echo "$as_me: failed program was:" >&5
40818 sed 's/^/| /' conftest.$ac_ext >&5
40819
40820         ac_cv_func_sched_yield=no
40821 fi
40822
40823 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40824       conftest$ac_exeext conftest.$ac_ext
40825 fi
40826 { echo "$as_me:$LINENO: result: $ac_cv_func_sched_yield" >&5
40827 echo "${ECHO_T}$ac_cv_func_sched_yield" >&6; }
40828 if test $ac_cv_func_sched_yield = yes; then
40829   cat >>confdefs.h <<\_ACEOF
40830 #define HAVE_SCHED_YIELD 1
40831 _ACEOF
40832
40833 else
40834
40835                 { echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5
40836 echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6; }
40837 if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then
40838   echo $ECHO_N "(cached) $ECHO_C" >&6
40839 else
40840   ac_check_lib_save_LIBS=$LIBS
40841 LIBS="-lposix4  $LIBS"
40842 cat >conftest.$ac_ext <<_ACEOF
40843 /* confdefs.h.  */
40844 _ACEOF
40845 cat confdefs.h >>conftest.$ac_ext
40846 cat >>conftest.$ac_ext <<_ACEOF
40847 /* end confdefs.h.  */
40848
40849 /* Override any GCC internal prototype to avoid an error.
40850    Use char because int might match the return type of a GCC
40851    builtin and then its argument prototype would still apply.  */
40852 #ifdef __cplusplus
40853 extern "C"
40854 #endif
40855 char sched_yield ();
40856 int
40857 main ()
40858 {
40859 return sched_yield ();
40860   ;
40861   return 0;
40862 }
40863 _ACEOF
40864 rm -f conftest.$ac_objext conftest$ac_exeext
40865 if { (ac_try="$ac_link"
40866 case "(($ac_try" in
40867   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40868   *) ac_try_echo=$ac_try;;
40869 esac
40870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40871   (eval "$ac_link") 2>conftest.er1
40872   ac_status=$?
40873   grep -v '^ *+' conftest.er1 >conftest.err
40874   rm -f conftest.er1
40875   cat conftest.err >&5
40876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40877   (exit $ac_status); } && {
40878          test -z "$ac_c_werror_flag" ||
40879          test ! -s conftest.err
40880        } && test -s conftest$ac_exeext &&
40881        $as_test_x conftest$ac_exeext; then
40882   ac_cv_lib_posix4_sched_yield=yes
40883 else
40884   echo "$as_me: failed program was:" >&5
40885 sed 's/^/| /' conftest.$ac_ext >&5
40886
40887         ac_cv_lib_posix4_sched_yield=no
40888 fi
40889
40890 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40891       conftest$ac_exeext conftest.$ac_ext
40892 LIBS=$ac_check_lib_save_LIBS
40893 fi
40894 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5
40895 echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6; }
40896 if test $ac_cv_lib_posix4_sched_yield = yes; then
40897   cat >>confdefs.h <<\_ACEOF
40898 #define HAVE_SCHED_YIELD 1
40899 _ACEOF
40900  POSIX4_LINK=" -lposix4"
40901 else
40902   { echo "$as_me:$LINENO: WARNING: wxThread::Yield will not work properly" >&5
40903 echo "$as_me: WARNING: wxThread::Yield will not work properly" >&2;}
40904
40905 fi
40906
40907
40908
40909 fi
40910
40911       fi
40912
40913                                           HAVE_PRIOR_FUNCS=0
40914       { echo "$as_me:$LINENO: checking for pthread_attr_getschedpolicy" >&5
40915 echo $ECHO_N "checking for pthread_attr_getschedpolicy... $ECHO_C" >&6; }
40916 if test "${ac_cv_func_pthread_attr_getschedpolicy+set}" = set; then
40917   echo $ECHO_N "(cached) $ECHO_C" >&6
40918 else
40919   cat >conftest.$ac_ext <<_ACEOF
40920 /* confdefs.h.  */
40921 _ACEOF
40922 cat confdefs.h >>conftest.$ac_ext
40923 cat >>conftest.$ac_ext <<_ACEOF
40924 /* end confdefs.h.  */
40925 /* Define pthread_attr_getschedpolicy to an innocuous variant, in case <limits.h> declares pthread_attr_getschedpolicy.
40926    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40927 #define pthread_attr_getschedpolicy innocuous_pthread_attr_getschedpolicy
40928
40929 /* System header to define __stub macros and hopefully few prototypes,
40930     which can conflict with char pthread_attr_getschedpolicy (); below.
40931     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40932     <limits.h> exists even on freestanding compilers.  */
40933
40934 #ifdef __STDC__
40935 # include <limits.h>
40936 #else
40937 # include <assert.h>
40938 #endif
40939
40940 #undef pthread_attr_getschedpolicy
40941
40942 /* Override any GCC internal prototype to avoid an error.
40943    Use char because int might match the return type of a GCC
40944    builtin and then its argument prototype would still apply.  */
40945 #ifdef __cplusplus
40946 extern "C"
40947 #endif
40948 char pthread_attr_getschedpolicy ();
40949 /* The GNU C library defines this for functions which it implements
40950     to always fail with ENOSYS.  Some functions are actually named
40951     something starting with __ and the normal name is an alias.  */
40952 #if defined __stub_pthread_attr_getschedpolicy || defined __stub___pthread_attr_getschedpolicy
40953 choke me
40954 #endif
40955
40956 int
40957 main ()
40958 {
40959 return pthread_attr_getschedpolicy ();
40960   ;
40961   return 0;
40962 }
40963 _ACEOF
40964 rm -f conftest.$ac_objext conftest$ac_exeext
40965 if { (ac_try="$ac_link"
40966 case "(($ac_try" in
40967   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40968   *) ac_try_echo=$ac_try;;
40969 esac
40970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40971   (eval "$ac_link") 2>conftest.er1
40972   ac_status=$?
40973   grep -v '^ *+' conftest.er1 >conftest.err
40974   rm -f conftest.er1
40975   cat conftest.err >&5
40976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40977   (exit $ac_status); } && {
40978          test -z "$ac_c_werror_flag" ||
40979          test ! -s conftest.err
40980        } && test -s conftest$ac_exeext &&
40981        $as_test_x conftest$ac_exeext; then
40982   ac_cv_func_pthread_attr_getschedpolicy=yes
40983 else
40984   echo "$as_me: failed program was:" >&5
40985 sed 's/^/| /' conftest.$ac_ext >&5
40986
40987         ac_cv_func_pthread_attr_getschedpolicy=no
40988 fi
40989
40990 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40991       conftest$ac_exeext conftest.$ac_ext
40992 fi
40993 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_getschedpolicy" >&5
40994 echo "${ECHO_T}$ac_cv_func_pthread_attr_getschedpolicy" >&6; }
40995 if test $ac_cv_func_pthread_attr_getschedpolicy = yes; then
40996   { echo "$as_me:$LINENO: checking for pthread_attr_setschedparam" >&5
40997 echo $ECHO_N "checking for pthread_attr_setschedparam... $ECHO_C" >&6; }
40998 if test "${ac_cv_func_pthread_attr_setschedparam+set}" = set; then
40999   echo $ECHO_N "(cached) $ECHO_C" >&6
41000 else
41001   cat >conftest.$ac_ext <<_ACEOF
41002 /* confdefs.h.  */
41003 _ACEOF
41004 cat confdefs.h >>conftest.$ac_ext
41005 cat >>conftest.$ac_ext <<_ACEOF
41006 /* end confdefs.h.  */
41007 /* Define pthread_attr_setschedparam to an innocuous variant, in case <limits.h> declares pthread_attr_setschedparam.
41008    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41009 #define pthread_attr_setschedparam innocuous_pthread_attr_setschedparam
41010
41011 /* System header to define __stub macros and hopefully few prototypes,
41012     which can conflict with char pthread_attr_setschedparam (); below.
41013     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41014     <limits.h> exists even on freestanding compilers.  */
41015
41016 #ifdef __STDC__
41017 # include <limits.h>
41018 #else
41019 # include <assert.h>
41020 #endif
41021
41022 #undef pthread_attr_setschedparam
41023
41024 /* Override any GCC internal prototype to avoid an error.
41025    Use char because int might match the return type of a GCC
41026    builtin and then its argument prototype would still apply.  */
41027 #ifdef __cplusplus
41028 extern "C"
41029 #endif
41030 char pthread_attr_setschedparam ();
41031 /* The GNU C library defines this for functions which it implements
41032     to always fail with ENOSYS.  Some functions are actually named
41033     something starting with __ and the normal name is an alias.  */
41034 #if defined __stub_pthread_attr_setschedparam || defined __stub___pthread_attr_setschedparam
41035 choke me
41036 #endif
41037
41038 int
41039 main ()
41040 {
41041 return pthread_attr_setschedparam ();
41042   ;
41043   return 0;
41044 }
41045 _ACEOF
41046 rm -f conftest.$ac_objext conftest$ac_exeext
41047 if { (ac_try="$ac_link"
41048 case "(($ac_try" in
41049   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41050   *) ac_try_echo=$ac_try;;
41051 esac
41052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41053   (eval "$ac_link") 2>conftest.er1
41054   ac_status=$?
41055   grep -v '^ *+' conftest.er1 >conftest.err
41056   rm -f conftest.er1
41057   cat conftest.err >&5
41058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41059   (exit $ac_status); } && {
41060          test -z "$ac_c_werror_flag" ||
41061          test ! -s conftest.err
41062        } && test -s conftest$ac_exeext &&
41063        $as_test_x conftest$ac_exeext; then
41064   ac_cv_func_pthread_attr_setschedparam=yes
41065 else
41066   echo "$as_me: failed program was:" >&5
41067 sed 's/^/| /' conftest.$ac_ext >&5
41068
41069         ac_cv_func_pthread_attr_setschedparam=no
41070 fi
41071
41072 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41073       conftest$ac_exeext conftest.$ac_ext
41074 fi
41075 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setschedparam" >&5
41076 echo "${ECHO_T}$ac_cv_func_pthread_attr_setschedparam" >&6; }
41077 if test $ac_cv_func_pthread_attr_setschedparam = yes; then
41078   { echo "$as_me:$LINENO: checking for sched_get_priority_max" >&5
41079 echo $ECHO_N "checking for sched_get_priority_max... $ECHO_C" >&6; }
41080 if test "${ac_cv_func_sched_get_priority_max+set}" = set; then
41081   echo $ECHO_N "(cached) $ECHO_C" >&6
41082 else
41083   cat >conftest.$ac_ext <<_ACEOF
41084 /* confdefs.h.  */
41085 _ACEOF
41086 cat confdefs.h >>conftest.$ac_ext
41087 cat >>conftest.$ac_ext <<_ACEOF
41088 /* end confdefs.h.  */
41089 /* Define sched_get_priority_max to an innocuous variant, in case <limits.h> declares sched_get_priority_max.
41090    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41091 #define sched_get_priority_max innocuous_sched_get_priority_max
41092
41093 /* System header to define __stub macros and hopefully few prototypes,
41094     which can conflict with char sched_get_priority_max (); below.
41095     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41096     <limits.h> exists even on freestanding compilers.  */
41097
41098 #ifdef __STDC__
41099 # include <limits.h>
41100 #else
41101 # include <assert.h>
41102 #endif
41103
41104 #undef sched_get_priority_max
41105
41106 /* Override any GCC internal prototype to avoid an error.
41107    Use char because int might match the return type of a GCC
41108    builtin and then its argument prototype would still apply.  */
41109 #ifdef __cplusplus
41110 extern "C"
41111 #endif
41112 char sched_get_priority_max ();
41113 /* The GNU C library defines this for functions which it implements
41114     to always fail with ENOSYS.  Some functions are actually named
41115     something starting with __ and the normal name is an alias.  */
41116 #if defined __stub_sched_get_priority_max || defined __stub___sched_get_priority_max
41117 choke me
41118 #endif
41119
41120 int
41121 main ()
41122 {
41123 return sched_get_priority_max ();
41124   ;
41125   return 0;
41126 }
41127 _ACEOF
41128 rm -f conftest.$ac_objext conftest$ac_exeext
41129 if { (ac_try="$ac_link"
41130 case "(($ac_try" in
41131   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41132   *) ac_try_echo=$ac_try;;
41133 esac
41134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41135   (eval "$ac_link") 2>conftest.er1
41136   ac_status=$?
41137   grep -v '^ *+' conftest.er1 >conftest.err
41138   rm -f conftest.er1
41139   cat conftest.err >&5
41140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41141   (exit $ac_status); } && {
41142          test -z "$ac_c_werror_flag" ||
41143          test ! -s conftest.err
41144        } && test -s conftest$ac_exeext &&
41145        $as_test_x conftest$ac_exeext; then
41146   ac_cv_func_sched_get_priority_max=yes
41147 else
41148   echo "$as_me: failed program was:" >&5
41149 sed 's/^/| /' conftest.$ac_ext >&5
41150
41151         ac_cv_func_sched_get_priority_max=no
41152 fi
41153
41154 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41155       conftest$ac_exeext conftest.$ac_ext
41156 fi
41157 { echo "$as_me:$LINENO: result: $ac_cv_func_sched_get_priority_max" >&5
41158 echo "${ECHO_T}$ac_cv_func_sched_get_priority_max" >&6; }
41159 if test $ac_cv_func_sched_get_priority_max = yes; then
41160   HAVE_PRIOR_FUNCS=1
41161 else
41162   { echo "$as_me:$LINENO: checking for sched_get_priority_max in -lposix4" >&5
41163 echo $ECHO_N "checking for sched_get_priority_max in -lposix4... $ECHO_C" >&6; }
41164 if test "${ac_cv_lib_posix4_sched_get_priority_max+set}" = set; then
41165   echo $ECHO_N "(cached) $ECHO_C" >&6
41166 else
41167   ac_check_lib_save_LIBS=$LIBS
41168 LIBS="-lposix4  $LIBS"
41169 cat >conftest.$ac_ext <<_ACEOF
41170 /* confdefs.h.  */
41171 _ACEOF
41172 cat confdefs.h >>conftest.$ac_ext
41173 cat >>conftest.$ac_ext <<_ACEOF
41174 /* end confdefs.h.  */
41175
41176 /* Override any GCC internal prototype to avoid an error.
41177    Use char because int might match the return type of a GCC
41178    builtin and then its argument prototype would still apply.  */
41179 #ifdef __cplusplus
41180 extern "C"
41181 #endif
41182 char sched_get_priority_max ();
41183 int
41184 main ()
41185 {
41186 return sched_get_priority_max ();
41187   ;
41188   return 0;
41189 }
41190 _ACEOF
41191 rm -f conftest.$ac_objext conftest$ac_exeext
41192 if { (ac_try="$ac_link"
41193 case "(($ac_try" in
41194   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41195   *) ac_try_echo=$ac_try;;
41196 esac
41197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41198   (eval "$ac_link") 2>conftest.er1
41199   ac_status=$?
41200   grep -v '^ *+' conftest.er1 >conftest.err
41201   rm -f conftest.er1
41202   cat conftest.err >&5
41203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41204   (exit $ac_status); } && {
41205          test -z "$ac_c_werror_flag" ||
41206          test ! -s conftest.err
41207        } && test -s conftest$ac_exeext &&
41208        $as_test_x conftest$ac_exeext; then
41209   ac_cv_lib_posix4_sched_get_priority_max=yes
41210 else
41211   echo "$as_me: failed program was:" >&5
41212 sed 's/^/| /' conftest.$ac_ext >&5
41213
41214         ac_cv_lib_posix4_sched_get_priority_max=no
41215 fi
41216
41217 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41218       conftest$ac_exeext conftest.$ac_ext
41219 LIBS=$ac_check_lib_save_LIBS
41220 fi
41221 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_get_priority_max" >&5
41222 echo "${ECHO_T}$ac_cv_lib_posix4_sched_get_priority_max" >&6; }
41223 if test $ac_cv_lib_posix4_sched_get_priority_max = yes; then
41224
41225                                 HAVE_PRIOR_FUNCS=1
41226                                 POSIX4_LINK=" -lposix4"
41227
41228 fi
41229
41230
41231 fi
41232
41233
41234 fi
41235
41236
41237 fi
41238
41239
41240       if test "$HAVE_PRIOR_FUNCS" = 1; then
41241         cat >>confdefs.h <<\_ACEOF
41242 #define HAVE_THREAD_PRIORITY_FUNCTIONS 1
41243 _ACEOF
41244
41245       else
41246         { echo "$as_me:$LINENO: WARNING: Setting thread priority will not work" >&5
41247 echo "$as_me: WARNING: Setting thread priority will not work" >&2;}
41248       fi
41249
41250       { echo "$as_me:$LINENO: checking for pthread_cancel" >&5
41251 echo $ECHO_N "checking for pthread_cancel... $ECHO_C" >&6; }
41252 if test "${ac_cv_func_pthread_cancel+set}" = set; then
41253   echo $ECHO_N "(cached) $ECHO_C" >&6
41254 else
41255   cat >conftest.$ac_ext <<_ACEOF
41256 /* confdefs.h.  */
41257 _ACEOF
41258 cat confdefs.h >>conftest.$ac_ext
41259 cat >>conftest.$ac_ext <<_ACEOF
41260 /* end confdefs.h.  */
41261 /* Define pthread_cancel to an innocuous variant, in case <limits.h> declares pthread_cancel.
41262    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41263 #define pthread_cancel innocuous_pthread_cancel
41264
41265 /* System header to define __stub macros and hopefully few prototypes,
41266     which can conflict with char pthread_cancel (); below.
41267     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41268     <limits.h> exists even on freestanding compilers.  */
41269
41270 #ifdef __STDC__
41271 # include <limits.h>
41272 #else
41273 # include <assert.h>
41274 #endif
41275
41276 #undef pthread_cancel
41277
41278 /* Override any GCC internal prototype to avoid an error.
41279    Use char because int might match the return type of a GCC
41280    builtin and then its argument prototype would still apply.  */
41281 #ifdef __cplusplus
41282 extern "C"
41283 #endif
41284 char pthread_cancel ();
41285 /* The GNU C library defines this for functions which it implements
41286     to always fail with ENOSYS.  Some functions are actually named
41287     something starting with __ and the normal name is an alias.  */
41288 #if defined __stub_pthread_cancel || defined __stub___pthread_cancel
41289 choke me
41290 #endif
41291
41292 int
41293 main ()
41294 {
41295 return pthread_cancel ();
41296   ;
41297   return 0;
41298 }
41299 _ACEOF
41300 rm -f conftest.$ac_objext conftest$ac_exeext
41301 if { (ac_try="$ac_link"
41302 case "(($ac_try" in
41303   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41304   *) ac_try_echo=$ac_try;;
41305 esac
41306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41307   (eval "$ac_link") 2>conftest.er1
41308   ac_status=$?
41309   grep -v '^ *+' conftest.er1 >conftest.err
41310   rm -f conftest.er1
41311   cat conftest.err >&5
41312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41313   (exit $ac_status); } && {
41314          test -z "$ac_c_werror_flag" ||
41315          test ! -s conftest.err
41316        } && test -s conftest$ac_exeext &&
41317        $as_test_x conftest$ac_exeext; then
41318   ac_cv_func_pthread_cancel=yes
41319 else
41320   echo "$as_me: failed program was:" >&5
41321 sed 's/^/| /' conftest.$ac_ext >&5
41322
41323         ac_cv_func_pthread_cancel=no
41324 fi
41325
41326 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41327       conftest$ac_exeext conftest.$ac_ext
41328 fi
41329 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_cancel" >&5
41330 echo "${ECHO_T}$ac_cv_func_pthread_cancel" >&6; }
41331 if test $ac_cv_func_pthread_cancel = yes; then
41332   cat >>confdefs.h <<\_ACEOF
41333 #define HAVE_PTHREAD_CANCEL 1
41334 _ACEOF
41335
41336 else
41337   { echo "$as_me:$LINENO: WARNING: wxThread::Kill() will not work properly" >&5
41338 echo "$as_me: WARNING: wxThread::Kill() will not work properly" >&2;}
41339 fi
41340
41341
41342       { echo "$as_me:$LINENO: checking for pthread_mutex_timedlock" >&5
41343 echo $ECHO_N "checking for pthread_mutex_timedlock... $ECHO_C" >&6; }
41344 if test "${ac_cv_func_pthread_mutex_timedlock+set}" = set; then
41345   echo $ECHO_N "(cached) $ECHO_C" >&6
41346 else
41347   cat >conftest.$ac_ext <<_ACEOF
41348 /* confdefs.h.  */
41349 _ACEOF
41350 cat confdefs.h >>conftest.$ac_ext
41351 cat >>conftest.$ac_ext <<_ACEOF
41352 /* end confdefs.h.  */
41353 /* Define pthread_mutex_timedlock to an innocuous variant, in case <limits.h> declares pthread_mutex_timedlock.
41354    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41355 #define pthread_mutex_timedlock innocuous_pthread_mutex_timedlock
41356
41357 /* System header to define __stub macros and hopefully few prototypes,
41358     which can conflict with char pthread_mutex_timedlock (); below.
41359     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41360     <limits.h> exists even on freestanding compilers.  */
41361
41362 #ifdef __STDC__
41363 # include <limits.h>
41364 #else
41365 # include <assert.h>
41366 #endif
41367
41368 #undef pthread_mutex_timedlock
41369
41370 /* Override any GCC internal prototype to avoid an error.
41371    Use char because int might match the return type of a GCC
41372    builtin and then its argument prototype would still apply.  */
41373 #ifdef __cplusplus
41374 extern "C"
41375 #endif
41376 char pthread_mutex_timedlock ();
41377 /* The GNU C library defines this for functions which it implements
41378     to always fail with ENOSYS.  Some functions are actually named
41379     something starting with __ and the normal name is an alias.  */
41380 #if defined __stub_pthread_mutex_timedlock || defined __stub___pthread_mutex_timedlock
41381 choke me
41382 #endif
41383
41384 int
41385 main ()
41386 {
41387 return pthread_mutex_timedlock ();
41388   ;
41389   return 0;
41390 }
41391 _ACEOF
41392 rm -f conftest.$ac_objext conftest$ac_exeext
41393 if { (ac_try="$ac_link"
41394 case "(($ac_try" in
41395   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41396   *) ac_try_echo=$ac_try;;
41397 esac
41398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41399   (eval "$ac_link") 2>conftest.er1
41400   ac_status=$?
41401   grep -v '^ *+' conftest.er1 >conftest.err
41402   rm -f conftest.er1
41403   cat conftest.err >&5
41404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41405   (exit $ac_status); } && {
41406          test -z "$ac_c_werror_flag" ||
41407          test ! -s conftest.err
41408        } && test -s conftest$ac_exeext &&
41409        $as_test_x conftest$ac_exeext; then
41410   ac_cv_func_pthread_mutex_timedlock=yes
41411 else
41412   echo "$as_me: failed program was:" >&5
41413 sed 's/^/| /' conftest.$ac_ext >&5
41414
41415         ac_cv_func_pthread_mutex_timedlock=no
41416 fi
41417
41418 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41419       conftest$ac_exeext conftest.$ac_ext
41420 fi
41421 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_mutex_timedlock" >&5
41422 echo "${ECHO_T}$ac_cv_func_pthread_mutex_timedlock" >&6; }
41423 if test $ac_cv_func_pthread_mutex_timedlock = yes; then
41424   cat >>confdefs.h <<\_ACEOF
41425 #define HAVE_PTHREAD_MUTEX_TIMEDLOCK 1
41426 _ACEOF
41427
41428 else
41429   { echo "$as_me:$LINENO: WARNING: wxMutex::LockTimeout() will not work" >&5
41430 echo "$as_me: WARNING: wxMutex::LockTimeout() will not work" >&2;}
41431 fi
41432
41433
41434       { echo "$as_me:$LINENO: checking for pthread_attr_setstacksize" >&5
41435 echo $ECHO_N "checking for pthread_attr_setstacksize... $ECHO_C" >&6; }
41436 if test "${ac_cv_func_pthread_attr_setstacksize+set}" = set; then
41437   echo $ECHO_N "(cached) $ECHO_C" >&6
41438 else
41439   cat >conftest.$ac_ext <<_ACEOF
41440 /* confdefs.h.  */
41441 _ACEOF
41442 cat confdefs.h >>conftest.$ac_ext
41443 cat >>conftest.$ac_ext <<_ACEOF
41444 /* end confdefs.h.  */
41445 /* Define pthread_attr_setstacksize to an innocuous variant, in case <limits.h> declares pthread_attr_setstacksize.
41446    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41447 #define pthread_attr_setstacksize innocuous_pthread_attr_setstacksize
41448
41449 /* System header to define __stub macros and hopefully few prototypes,
41450     which can conflict with char pthread_attr_setstacksize (); below.
41451     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41452     <limits.h> exists even on freestanding compilers.  */
41453
41454 #ifdef __STDC__
41455 # include <limits.h>
41456 #else
41457 # include <assert.h>
41458 #endif
41459
41460 #undef pthread_attr_setstacksize
41461
41462 /* Override any GCC internal prototype to avoid an error.
41463    Use char because int might match the return type of a GCC
41464    builtin and then its argument prototype would still apply.  */
41465 #ifdef __cplusplus
41466 extern "C"
41467 #endif
41468 char pthread_attr_setstacksize ();
41469 /* The GNU C library defines this for functions which it implements
41470     to always fail with ENOSYS.  Some functions are actually named
41471     something starting with __ and the normal name is an alias.  */
41472 #if defined __stub_pthread_attr_setstacksize || defined __stub___pthread_attr_setstacksize
41473 choke me
41474 #endif
41475
41476 int
41477 main ()
41478 {
41479 return pthread_attr_setstacksize ();
41480   ;
41481   return 0;
41482 }
41483 _ACEOF
41484 rm -f conftest.$ac_objext conftest$ac_exeext
41485 if { (ac_try="$ac_link"
41486 case "(($ac_try" in
41487   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41488   *) ac_try_echo=$ac_try;;
41489 esac
41490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41491   (eval "$ac_link") 2>conftest.er1
41492   ac_status=$?
41493   grep -v '^ *+' conftest.er1 >conftest.err
41494   rm -f conftest.er1
41495   cat conftest.err >&5
41496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41497   (exit $ac_status); } && {
41498          test -z "$ac_c_werror_flag" ||
41499          test ! -s conftest.err
41500        } && test -s conftest$ac_exeext &&
41501        $as_test_x conftest$ac_exeext; then
41502   ac_cv_func_pthread_attr_setstacksize=yes
41503 else
41504   echo "$as_me: failed program was:" >&5
41505 sed 's/^/| /' conftest.$ac_ext >&5
41506
41507         ac_cv_func_pthread_attr_setstacksize=no
41508 fi
41509
41510 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41511       conftest$ac_exeext conftest.$ac_ext
41512 fi
41513 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setstacksize" >&5
41514 echo "${ECHO_T}$ac_cv_func_pthread_attr_setstacksize" >&6; }
41515 if test $ac_cv_func_pthread_attr_setstacksize = yes; then
41516   cat >>confdefs.h <<\_ACEOF
41517 #define HAVE_PTHREAD_ATTR_SETSTACKSIZE 1
41518 _ACEOF
41519
41520 fi
41521
41522
41523
41524       { echo "$as_me:$LINENO: checking for pthread_mutexattr_t" >&5
41525 echo $ECHO_N "checking for pthread_mutexattr_t... $ECHO_C" >&6; }
41526 if test "${wx_cv_type_pthread_mutexattr_t+set}" = set; then
41527   echo $ECHO_N "(cached) $ECHO_C" >&6
41528 else
41529
41530         cat >conftest.$ac_ext <<_ACEOF
41531 /* confdefs.h.  */
41532 _ACEOF
41533 cat confdefs.h >>conftest.$ac_ext
41534 cat >>conftest.$ac_ext <<_ACEOF
41535 /* end confdefs.h.  */
41536 #include <pthread.h>
41537 int
41538 main ()
41539 {
41540
41541                pthread_mutexattr_t attr;
41542                pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
41543
41544   ;
41545   return 0;
41546 }
41547 _ACEOF
41548 rm -f conftest.$ac_objext
41549 if { (ac_try="$ac_compile"
41550 case "(($ac_try" in
41551   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41552   *) ac_try_echo=$ac_try;;
41553 esac
41554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41555   (eval "$ac_compile") 2>conftest.er1
41556   ac_status=$?
41557   grep -v '^ *+' conftest.er1 >conftest.err
41558   rm -f conftest.er1
41559   cat conftest.err >&5
41560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41561   (exit $ac_status); } && {
41562          test -z "$ac_c_werror_flag" ||
41563          test ! -s conftest.err
41564        } && test -s conftest.$ac_objext; then
41565   wx_cv_type_pthread_mutexattr_t=yes
41566 else
41567   echo "$as_me: failed program was:" >&5
41568 sed 's/^/| /' conftest.$ac_ext >&5
41569
41570         wx_cv_type_pthread_mutexattr_t=no
41571
41572 fi
41573
41574 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41575
41576 fi
41577 { echo "$as_me:$LINENO: result: $wx_cv_type_pthread_mutexattr_t" >&5
41578 echo "${ECHO_T}$wx_cv_type_pthread_mutexattr_t" >&6; }
41579
41580       if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
41581         cat >>confdefs.h <<\_ACEOF
41582 #define HAVE_PTHREAD_MUTEXATTR_T 1
41583 _ACEOF
41584
41585
41586                         { echo "$as_me:$LINENO: checking for pthread_mutexattr_settype declaration" >&5
41587 echo $ECHO_N "checking for pthread_mutexattr_settype declaration... $ECHO_C" >&6; }
41588 if test "${wx_cv_func_pthread_mutexattr_settype_decl+set}" = set; then
41589   echo $ECHO_N "(cached) $ECHO_C" >&6
41590 else
41591
41592                        cat >conftest.$ac_ext <<_ACEOF
41593 /* confdefs.h.  */
41594 _ACEOF
41595 cat confdefs.h >>conftest.$ac_ext
41596 cat >>conftest.$ac_ext <<_ACEOF
41597 /* end confdefs.h.  */
41598 #include <pthread.h>
41599 int
41600 main ()
41601 {
41602
41603                                pthread_mutexattr_t attr;
41604                                pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
41605
41606   ;
41607   return 0;
41608 }
41609 _ACEOF
41610 rm -f conftest.$ac_objext
41611 if { (ac_try="$ac_compile"
41612 case "(($ac_try" in
41613   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41614   *) ac_try_echo=$ac_try;;
41615 esac
41616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41617   (eval "$ac_compile") 2>conftest.er1
41618   ac_status=$?
41619   grep -v '^ *+' conftest.er1 >conftest.err
41620   rm -f conftest.er1
41621   cat conftest.err >&5
41622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41623   (exit $ac_status); } && {
41624          test -z "$ac_c_werror_flag" ||
41625          test ! -s conftest.err
41626        } && test -s conftest.$ac_objext; then
41627   wx_cv_func_pthread_mutexattr_settype_decl=yes
41628 else
41629   echo "$as_me: failed program was:" >&5
41630 sed 's/^/| /' conftest.$ac_ext >&5
41631
41632         wx_cv_func_pthread_mutexattr_settype_decl=no
41633
41634 fi
41635
41636 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41637
41638 fi
41639 { echo "$as_me:$LINENO: result: $wx_cv_func_pthread_mutexattr_settype_decl" >&5
41640 echo "${ECHO_T}$wx_cv_func_pthread_mutexattr_settype_decl" >&6; }
41641         if test "$wx_cv_func_pthread_mutexattr_settype_decl" = "yes"; then
41642             cat >>confdefs.h <<\_ACEOF
41643 #define HAVE_PTHREAD_MUTEXATTR_SETTYPE_DECL 1
41644 _ACEOF
41645
41646         fi
41647       else
41648                 { echo "$as_me:$LINENO: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
41649 echo $ECHO_N "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER... $ECHO_C" >&6; }
41650 if test "${wx_cv_type_pthread_rec_mutex_init+set}" = set; then
41651   echo $ECHO_N "(cached) $ECHO_C" >&6
41652 else
41653
41654             cat >conftest.$ac_ext <<_ACEOF
41655 /* confdefs.h.  */
41656 _ACEOF
41657 cat confdefs.h >>conftest.$ac_ext
41658 cat >>conftest.$ac_ext <<_ACEOF
41659 /* end confdefs.h.  */
41660 #include <pthread.h>
41661 int
41662 main ()
41663 {
41664
41665                     pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
41666
41667   ;
41668   return 0;
41669 }
41670 _ACEOF
41671 rm -f conftest.$ac_objext
41672 if { (ac_try="$ac_compile"
41673 case "(($ac_try" in
41674   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41675   *) ac_try_echo=$ac_try;;
41676 esac
41677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41678   (eval "$ac_compile") 2>conftest.er1
41679   ac_status=$?
41680   grep -v '^ *+' conftest.er1 >conftest.err
41681   rm -f conftest.er1
41682   cat conftest.err >&5
41683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41684   (exit $ac_status); } && {
41685          test -z "$ac_c_werror_flag" ||
41686          test ! -s conftest.err
41687        } && test -s conftest.$ac_objext; then
41688
41689                     wx_cv_type_pthread_rec_mutex_init=yes
41690
41691 else
41692   echo "$as_me: failed program was:" >&5
41693 sed 's/^/| /' conftest.$ac_ext >&5
41694
41695
41696                     wx_cv_type_pthread_rec_mutex_init=no
41697
41698
41699 fi
41700
41701 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41702
41703 fi
41704 { echo "$as_me:$LINENO: result: $wx_cv_type_pthread_rec_mutex_init" >&5
41705 echo "${ECHO_T}$wx_cv_type_pthread_rec_mutex_init" >&6; }
41706         if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
41707           cat >>confdefs.h <<\_ACEOF
41708 #define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
41709 _ACEOF
41710
41711         else
41712                     { echo "$as_me:$LINENO: WARNING: wxMutex won't be recursive on this platform" >&5
41713 echo "$as_me: WARNING: wxMutex won't be recursive on this platform" >&2;}
41714         fi
41715       fi
41716
41717       if test "$wxUSE_COMPILER_TLS" = "auto"; then
41718           if test "$USE_NETBSD" = 1; then
41719               { echo "$as_me:$LINENO: WARNING: Disabling TLS under NetBSD, please contact wx-dev if it works now" >&5
41720 echo "$as_me: WARNING: Disabling TLS under NetBSD, please contact wx-dev if it works now" >&2;}
41721               wxUSE_COMPILER_TLS=no
41722           else
41723               wxUSE_COMPILER_TLS=yes
41724           fi
41725       fi
41726
41727       if test "$wxUSE_COMPILER_TLS" = "yes"; then
41728                     { echo "$as_me:$LINENO: checking for __thread keyword" >&5
41729 echo $ECHO_N "checking for __thread keyword... $ECHO_C" >&6; }
41730 if test "${wx_cv_cc___thread+set}" = set; then
41731   echo $ECHO_N "(cached) $ECHO_C" >&6
41732 else
41733
41734                   cat >conftest.$ac_ext <<_ACEOF
41735 /* confdefs.h.  */
41736 _ACEOF
41737 cat confdefs.h >>conftest.$ac_ext
41738 cat >>conftest.$ac_ext <<_ACEOF
41739 /* end confdefs.h.  */
41740 #include <pthread.h>
41741 int
41742 main ()
41743 {
41744
41745                           static __thread int n = 0;
41746                           static __thread int *p = 0;
41747
41748   ;
41749   return 0;
41750 }
41751 _ACEOF
41752 rm -f conftest.$ac_objext
41753 if { (ac_try="$ac_compile"
41754 case "(($ac_try" in
41755   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41756   *) ac_try_echo=$ac_try;;
41757 esac
41758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41759   (eval "$ac_compile") 2>conftest.er1
41760   ac_status=$?
41761   grep -v '^ *+' conftest.er1 >conftest.err
41762   rm -f conftest.er1
41763   cat conftest.err >&5
41764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41765   (exit $ac_status); } && {
41766          test -z "$ac_c_werror_flag" ||
41767          test ! -s conftest.err
41768        } && test -s conftest.$ac_objext; then
41769   wx_cv_cc___thread=yes
41770 else
41771   echo "$as_me: failed program was:" >&5
41772 sed 's/^/| /' conftest.$ac_ext >&5
41773
41774         wx_cv_cc___thread=no
41775
41776 fi
41777
41778 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41779
41780
41781 fi
41782 { echo "$as_me:$LINENO: result: $wx_cv_cc___thread" >&5
41783 echo "${ECHO_T}$wx_cv_cc___thread" >&6; }
41784
41785           if test "$wx_cv_cc___thread" = "yes"; then
41786
41787   GXX_VERSION=""
41788
41789
41790
41791   { echo "$as_me:$LINENO: checking if gcc accepts -dumpversion option" >&5
41792 echo $ECHO_N "checking if gcc accepts -dumpversion option... $ECHO_C" >&6; }
41793
41794   if  test "x$GCC" = "xyes" ; then
41795
41796     if  test -z "" ; then
41797
41798       ax_gcc_option_test="int main()
41799 {
41800         return 0;
41801 }"
41802
41803 else
41804
41805       ax_gcc_option_test=""
41806
41807 fi
41808
41809
41810     # Dump the test program to file
41811     cat <<EOF > conftest.c
41812 $ax_gcc_option_test
41813 EOF
41814
41815     # Dump back the file to the log, useful for debugging purposes
41816     { ac_try='cat conftest.c 1>&5'
41817   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41818   (eval $ac_try) 2>&5
41819   ac_status=$?
41820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41821   (exit $ac_status); }; }
41822
41823     if  { ac_try='$CC  -dumpversion -c conftest.c 1>&5'
41824   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41825   (eval $ac_try) 2>&5
41826   ac_status=$?
41827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41828   (exit $ac_status); }; } ; then
41829
41830                 { echo "$as_me:$LINENO: result: yes" >&5
41831 echo "${ECHO_T}yes" >&6; }
41832
41833     ax_gcc_version_option=yes
41834
41835
41836 else
41837
41838                 { echo "$as_me:$LINENO: result: no" >&5
41839 echo "${ECHO_T}no" >&6; }
41840
41841     ax_gcc_version_option=no
41842
41843
41844 fi
41845
41846
41847 else
41848
41849     { echo "$as_me:$LINENO: result: no gcc available" >&5
41850 echo "${ECHO_T}no gcc available" >&6; }
41851
41852 fi
41853
41854
41855   if test "x$GXX" = "xyes"; then
41856
41857     if test "x$ax_gxx_version_option" != "no"; then
41858
41859       { echo "$as_me:$LINENO: checking gxx version" >&5
41860 echo $ECHO_N "checking gxx version... $ECHO_C" >&6; }
41861 if test "${ax_cv_gxx_version+set}" = set; then
41862   echo $ECHO_N "(cached) $ECHO_C" >&6
41863 else
41864
41865         ax_cv_gxx_version="`$CXX -dumpversion`"
41866         if test "x$ax_cv_gxx_version" = "x"; then
41867
41868           ax_cv_gxx_version=""
41869
41870 fi
41871
41872
41873 fi
41874 { echo "$as_me:$LINENO: result: $ax_cv_gxx_version" >&5
41875 echo "${ECHO_T}$ax_cv_gxx_version" >&6; }
41876       GXX_VERSION=$ax_cv_gxx_version
41877
41878 fi
41879
41880
41881 fi
41882
41883
41884
41885               if test -n "$ax_cv_gxx_version"; then
41886                                                                                                                                                                   { echo "$as_me:$LINENO: checking whether __thread support in g++ is usable" >&5
41887 echo $ECHO_N "checking whether __thread support in g++ is usable... $ECHO_C" >&6; }
41888                   case "$ax_cv_gxx_version" in
41889                     1.* | 2.* | 3.* )
41890                         { echo "$as_me:$LINENO: result: no, it's broken" >&5
41891 echo "${ECHO_T}no, it's broken" >&6; }
41892                         wx_cv_cc___thread=no
41893                         ;;
41894                     *)
41895                         { echo "$as_me:$LINENO: result: yes, it works" >&5
41896 echo "${ECHO_T}yes, it works" >&6; }
41897                         ;;
41898                   esac
41899               fi
41900           fi
41901
41902           if test "$wx_cv_cc___thread" = "yes"; then
41903             cat >>confdefs.h <<\_ACEOF
41904 #define HAVE___THREAD_KEYWORD 1
41905 _ACEOF
41906
41907           fi
41908         fi
41909     fi
41910
41911 else
41912     if test "$wxUSE_THREADS" = "yes" ; then
41913       case "${host}" in
41914         x86_64-*-mingw32* )
41915         ;;
41916         *-*-mingw32* )
41917                         { echo "$as_me:$LINENO: checking if compiler supports -mthreads" >&5
41918 echo $ECHO_N "checking if compiler supports -mthreads... $ECHO_C" >&6; }
41919 if test "${wx_cv_cflags_mthread+set}" = set; then
41920   echo $ECHO_N "(cached) $ECHO_C" >&6
41921 else
41922
41923                     CFLAGS_OLD="$CFLAGS"
41924                     CFLAGS="-mthreads $CFLAGS"
41925                     cat >conftest.$ac_ext <<_ACEOF
41926 /* confdefs.h.  */
41927 _ACEOF
41928 cat confdefs.h >>conftest.$ac_ext
41929 cat >>conftest.$ac_ext <<_ACEOF
41930 /* end confdefs.h.  */
41931
41932 int
41933 main ()
41934 {
41935
41936   ;
41937   return 0;
41938 }
41939 _ACEOF
41940 rm -f conftest.$ac_objext
41941 if { (ac_try="$ac_compile"
41942 case "(($ac_try" in
41943   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41944   *) ac_try_echo=$ac_try;;
41945 esac
41946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41947   (eval "$ac_compile") 2>conftest.er1
41948   ac_status=$?
41949   grep -v '^ *+' conftest.er1 >conftest.err
41950   rm -f conftest.er1
41951   cat conftest.err >&5
41952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41953   (exit $ac_status); } && {
41954          test -z "$ac_c_werror_flag" ||
41955          test ! -s conftest.err
41956        } && test -s conftest.$ac_objext; then
41957   wx_cv_cflags_mthread=yes
41958 else
41959   echo "$as_me: failed program was:" >&5
41960 sed 's/^/| /' conftest.$ac_ext >&5
41961
41962         wx_cv_cflags_mthread=no
41963
41964 fi
41965
41966 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41967
41968
41969 fi
41970 { echo "$as_me:$LINENO: result: $wx_cv_cflags_mthread" >&5
41971 echo "${ECHO_T}$wx_cv_cflags_mthread" >&6; }
41972
41973             if test "$wx_cv_cflags_mthread" = "yes"; then
41974                                 WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -mthreads"
41975                 LDFLAGS="$LDFLAGS -mthreads"
41976             else
41977                                 CFLAGS="$CFLAGS_OLD"
41978             fi
41979         ;;
41980         *-pc-os2*emx )
41981             WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -Zmt -D__ST_MT_ERRNO__"
41982             LDFLAGS="$LDFLAGS -Zmt"
41983         ;;
41984       esac
41985     fi
41986 fi
41987
41988 { echo "$as_me:$LINENO: checking for localtime_r" >&5
41989 echo $ECHO_N "checking for localtime_r... $ECHO_C" >&6; }
41990 if test "${ac_cv_func_localtime_r+set}" = set; then
41991   echo $ECHO_N "(cached) $ECHO_C" >&6
41992 else
41993   cat >conftest.$ac_ext <<_ACEOF
41994 /* confdefs.h.  */
41995 _ACEOF
41996 cat confdefs.h >>conftest.$ac_ext
41997 cat >>conftest.$ac_ext <<_ACEOF
41998 /* end confdefs.h.  */
41999 /* Define localtime_r to an innocuous variant, in case <limits.h> declares localtime_r.
42000    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
42001 #define localtime_r innocuous_localtime_r
42002
42003 /* System header to define __stub macros and hopefully few prototypes,
42004     which can conflict with char localtime_r (); below.
42005     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42006     <limits.h> exists even on freestanding compilers.  */
42007
42008 #ifdef __STDC__
42009 # include <limits.h>
42010 #else
42011 # include <assert.h>
42012 #endif
42013
42014 #undef localtime_r
42015
42016 /* Override any GCC internal prototype to avoid an error.
42017    Use char because int might match the return type of a GCC
42018    builtin and then its argument prototype would still apply.  */
42019 #ifdef __cplusplus
42020 extern "C"
42021 #endif
42022 char localtime_r ();
42023 /* The GNU C library defines this for functions which it implements
42024     to always fail with ENOSYS.  Some functions are actually named
42025     something starting with __ and the normal name is an alias.  */
42026 #if defined __stub_localtime_r || defined __stub___localtime_r
42027 choke me
42028 #endif
42029
42030 int
42031 main ()
42032 {
42033 return localtime_r ();
42034   ;
42035   return 0;
42036 }
42037 _ACEOF
42038 rm -f conftest.$ac_objext conftest$ac_exeext
42039 if { (ac_try="$ac_link"
42040 case "(($ac_try" in
42041   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42042   *) ac_try_echo=$ac_try;;
42043 esac
42044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42045   (eval "$ac_link") 2>conftest.er1
42046   ac_status=$?
42047   grep -v '^ *+' conftest.er1 >conftest.err
42048   rm -f conftest.er1
42049   cat conftest.err >&5
42050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42051   (exit $ac_status); } && {
42052          test -z "$ac_c_werror_flag" ||
42053          test ! -s conftest.err
42054        } && test -s conftest$ac_exeext &&
42055        $as_test_x conftest$ac_exeext; then
42056   ac_cv_func_localtime_r=yes
42057 else
42058   echo "$as_me: failed program was:" >&5
42059 sed 's/^/| /' conftest.$ac_ext >&5
42060
42061         ac_cv_func_localtime_r=no
42062 fi
42063
42064 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42065       conftest$ac_exeext conftest.$ac_ext
42066 fi
42067 { echo "$as_me:$LINENO: result: $ac_cv_func_localtime_r" >&5
42068 echo "${ECHO_T}$ac_cv_func_localtime_r" >&6; }
42069 if test $ac_cv_func_localtime_r = yes; then
42070    cat >>confdefs.h <<\_ACEOF
42071 #define HAVE_LOCALTIME_R 1
42072 _ACEOF
42073
42074 fi
42075
42076 { echo "$as_me:$LINENO: checking for gmtime_r" >&5
42077 echo $ECHO_N "checking for gmtime_r... $ECHO_C" >&6; }
42078 if test "${ac_cv_func_gmtime_r+set}" = set; then
42079   echo $ECHO_N "(cached) $ECHO_C" >&6
42080 else
42081   cat >conftest.$ac_ext <<_ACEOF
42082 /* confdefs.h.  */
42083 _ACEOF
42084 cat confdefs.h >>conftest.$ac_ext
42085 cat >>conftest.$ac_ext <<_ACEOF
42086 /* end confdefs.h.  */
42087 /* Define gmtime_r to an innocuous variant, in case <limits.h> declares gmtime_r.
42088    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
42089 #define gmtime_r innocuous_gmtime_r
42090
42091 /* System header to define __stub macros and hopefully few prototypes,
42092     which can conflict with char gmtime_r (); below.
42093     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42094     <limits.h> exists even on freestanding compilers.  */
42095
42096 #ifdef __STDC__
42097 # include <limits.h>
42098 #else
42099 # include <assert.h>
42100 #endif
42101
42102 #undef gmtime_r
42103
42104 /* Override any GCC internal prototype to avoid an error.
42105    Use char because int might match the return type of a GCC
42106    builtin and then its argument prototype would still apply.  */
42107 #ifdef __cplusplus
42108 extern "C"
42109 #endif
42110 char gmtime_r ();
42111 /* The GNU C library defines this for functions which it implements
42112     to always fail with ENOSYS.  Some functions are actually named
42113     something starting with __ and the normal name is an alias.  */
42114 #if defined __stub_gmtime_r || defined __stub___gmtime_r
42115 choke me
42116 #endif
42117
42118 int
42119 main ()
42120 {
42121 return gmtime_r ();
42122   ;
42123   return 0;
42124 }
42125 _ACEOF
42126 rm -f conftest.$ac_objext conftest$ac_exeext
42127 if { (ac_try="$ac_link"
42128 case "(($ac_try" in
42129   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42130   *) ac_try_echo=$ac_try;;
42131 esac
42132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42133   (eval "$ac_link") 2>conftest.er1
42134   ac_status=$?
42135   grep -v '^ *+' conftest.er1 >conftest.err
42136   rm -f conftest.er1
42137   cat conftest.err >&5
42138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42139   (exit $ac_status); } && {
42140          test -z "$ac_c_werror_flag" ||
42141          test ! -s conftest.err
42142        } && test -s conftest$ac_exeext &&
42143        $as_test_x conftest$ac_exeext; then
42144   ac_cv_func_gmtime_r=yes
42145 else
42146   echo "$as_me: failed program was:" >&5
42147 sed 's/^/| /' conftest.$ac_ext >&5
42148
42149         ac_cv_func_gmtime_r=no
42150 fi
42151
42152 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42153       conftest$ac_exeext conftest.$ac_ext
42154 fi
42155 { echo "$as_me:$LINENO: result: $ac_cv_func_gmtime_r" >&5
42156 echo "${ECHO_T}$ac_cv_func_gmtime_r" >&6; }
42157 if test $ac_cv_func_gmtime_r = yes; then
42158    cat >>confdefs.h <<\_ACEOF
42159 #define HAVE_GMTIME_R 1
42160 _ACEOF
42161
42162 fi
42163
42164
42165
42166
42167     ac_ext=c
42168 ac_cpp='$CPP $CPPFLAGS'
42169 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42170 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42171 ac_compiler_gnu=$ac_cv_c_compiler_gnu
42172
42173     { echo "$as_me:$LINENO: checking how many arguments gethostbyname_r() takes" >&5
42174 echo $ECHO_N "checking how many arguments gethostbyname_r() takes... $ECHO_C" >&6; }
42175
42176     if test "${ac_cv_func_which_gethostbyname_r+set}" = set; then
42177   echo $ECHO_N "(cached) $ECHO_C" >&6
42178 else
42179
42180
42181 ################################################################
42182
42183 ac_cv_func_which_gethostbyname_r=unknown
42184
42185 #
42186 # ONE ARGUMENT (sanity check)
42187 #
42188
42189 # This should fail, as there is no variant of gethostbyname_r() that takes
42190 # a single argument. If it actually compiles, then we can assume that
42191 # netdb.h is not declaring the function, and the compiler is thereby
42192 # assuming an implicit prototype. In which case, we're out of luck.
42193 #
42194 cat >conftest.$ac_ext <<_ACEOF
42195 /* confdefs.h.  */
42196 _ACEOF
42197 cat confdefs.h >>conftest.$ac_ext
42198 cat >>conftest.$ac_ext <<_ACEOF
42199 /* end confdefs.h.  */
42200 #include <netdb.h>
42201 int
42202 main ()
42203 {
42204
42205             char *name = "www.gnu.org";
42206             (void)gethostbyname_r(name) /* ; */
42207
42208   ;
42209   return 0;
42210 }
42211 _ACEOF
42212 rm -f conftest.$ac_objext
42213 if { (ac_try="$ac_compile"
42214 case "(($ac_try" in
42215   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42216   *) ac_try_echo=$ac_try;;
42217 esac
42218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42219   (eval "$ac_compile") 2>conftest.er1
42220   ac_status=$?
42221   grep -v '^ *+' conftest.er1 >conftest.err
42222   rm -f conftest.er1
42223   cat conftest.err >&5
42224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42225   (exit $ac_status); } && {
42226          test -z "$ac_c_werror_flag" ||
42227          test ! -s conftest.err
42228        } && test -s conftest.$ac_objext; then
42229   ac_cv_func_which_gethostbyname_r=no
42230 else
42231   echo "$as_me: failed program was:" >&5
42232 sed 's/^/| /' conftest.$ac_ext >&5
42233
42234
42235 fi
42236
42237 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42238
42239 #
42240 # SIX ARGUMENTS
42241 # (e.g. Linux)
42242 #
42243
42244 if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then
42245
42246 cat >conftest.$ac_ext <<_ACEOF
42247 /* confdefs.h.  */
42248 _ACEOF
42249 cat confdefs.h >>conftest.$ac_ext
42250 cat >>conftest.$ac_ext <<_ACEOF
42251 /* end confdefs.h.  */
42252 #include <netdb.h>
42253 int
42254 main ()
42255 {
42256
42257             char *name = "www.gnu.org";
42258             struct hostent ret, *retp;
42259             char buf[1024];
42260             int buflen = 1024;
42261             int my_h_errno;
42262             (void)gethostbyname_r(name, &ret, buf, buflen, &retp, &my_h_errno) /* ; */
42263
42264   ;
42265   return 0;
42266 }
42267 _ACEOF
42268 rm -f conftest.$ac_objext
42269 if { (ac_try="$ac_compile"
42270 case "(($ac_try" in
42271   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42272   *) ac_try_echo=$ac_try;;
42273 esac
42274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42275   (eval "$ac_compile") 2>conftest.er1
42276   ac_status=$?
42277   grep -v '^ *+' conftest.er1 >conftest.err
42278   rm -f conftest.er1
42279   cat conftest.err >&5
42280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42281   (exit $ac_status); } && {
42282          test -z "$ac_c_werror_flag" ||
42283          test ! -s conftest.err
42284        } && test -s conftest.$ac_objext; then
42285   ac_cv_func_which_gethostbyname_r=six
42286 else
42287   echo "$as_me: failed program was:" >&5
42288 sed 's/^/| /' conftest.$ac_ext >&5
42289
42290
42291 fi
42292
42293 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42294
42295 fi
42296
42297 #
42298 # FIVE ARGUMENTS
42299 # (e.g. Solaris)
42300 #
42301
42302 if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then
42303
42304 cat >conftest.$ac_ext <<_ACEOF
42305 /* confdefs.h.  */
42306 _ACEOF
42307 cat confdefs.h >>conftest.$ac_ext
42308 cat >>conftest.$ac_ext <<_ACEOF
42309 /* end confdefs.h.  */
42310 #include <netdb.h>
42311 int
42312 main ()
42313 {
42314
42315             char *name = "www.gnu.org";
42316             struct hostent ret;
42317             char buf[1024];
42318             int buflen = 1024;
42319             int my_h_errno;
42320             (void)gethostbyname_r(name, &ret, buf, buflen, &my_h_errno) /* ; */
42321
42322   ;
42323   return 0;
42324 }
42325 _ACEOF
42326 rm -f conftest.$ac_objext
42327 if { (ac_try="$ac_compile"
42328 case "(($ac_try" in
42329   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42330   *) ac_try_echo=$ac_try;;
42331 esac
42332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42333   (eval "$ac_compile") 2>conftest.er1
42334   ac_status=$?
42335   grep -v '^ *+' conftest.er1 >conftest.err
42336   rm -f conftest.er1
42337   cat conftest.err >&5
42338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42339   (exit $ac_status); } && {
42340          test -z "$ac_c_werror_flag" ||
42341          test ! -s conftest.err
42342        } && test -s conftest.$ac_objext; then
42343   ac_cv_func_which_gethostbyname_r=five
42344 else
42345   echo "$as_me: failed program was:" >&5
42346 sed 's/^/| /' conftest.$ac_ext >&5
42347
42348
42349 fi
42350
42351 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42352
42353 fi
42354
42355 #
42356 # THREE ARGUMENTS
42357 # (e.g. AIX, HP-UX, Tru64)
42358 #
42359
42360 if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then
42361
42362 cat >conftest.$ac_ext <<_ACEOF
42363 /* confdefs.h.  */
42364 _ACEOF
42365 cat confdefs.h >>conftest.$ac_ext
42366 cat >>conftest.$ac_ext <<_ACEOF
42367 /* end confdefs.h.  */
42368 #include <netdb.h>
42369 int
42370 main ()
42371 {
42372
42373             char *name = "www.gnu.org";
42374             struct hostent ret;
42375             struct hostent_data data;
42376             (void)gethostbyname_r(name, &ret, &data) /* ; */
42377
42378   ;
42379   return 0;
42380 }
42381 _ACEOF
42382 rm -f conftest.$ac_objext
42383 if { (ac_try="$ac_compile"
42384 case "(($ac_try" in
42385   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42386   *) ac_try_echo=$ac_try;;
42387 esac
42388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42389   (eval "$ac_compile") 2>conftest.er1
42390   ac_status=$?
42391   grep -v '^ *+' conftest.er1 >conftest.err
42392   rm -f conftest.er1
42393   cat conftest.err >&5
42394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42395   (exit $ac_status); } && {
42396          test -z "$ac_c_werror_flag" ||
42397          test ! -s conftest.err
42398        } && test -s conftest.$ac_objext; then
42399   ac_cv_func_which_gethostbyname_r=three
42400 else
42401   echo "$as_me: failed program was:" >&5
42402 sed 's/^/| /' conftest.$ac_ext >&5
42403
42404
42405 fi
42406
42407 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42408
42409 fi
42410
42411 ################################################################
42412
42413
42414 fi
42415
42416 case "$ac_cv_func_which_gethostbyname_r" in
42417     three)
42418     { echo "$as_me:$LINENO: result: three" >&5
42419 echo "${ECHO_T}three" >&6; }
42420     cat >>confdefs.h <<\_ACEOF
42421 #define HAVE_FUNC_GETHOSTBYNAME_R_3 1
42422 _ACEOF
42423
42424     ;;
42425
42426     five)
42427     { echo "$as_me:$LINENO: result: five" >&5
42428 echo "${ECHO_T}five" >&6; }
42429     cat >>confdefs.h <<\_ACEOF
42430 #define HAVE_FUNC_GETHOSTBYNAME_R_5 1
42431 _ACEOF
42432
42433     ;;
42434
42435     six)
42436     { echo "$as_me:$LINENO: result: six" >&5
42437 echo "${ECHO_T}six" >&6; }
42438     cat >>confdefs.h <<\_ACEOF
42439 #define HAVE_FUNC_GETHOSTBYNAME_R_6 1
42440 _ACEOF
42441
42442     ;;
42443
42444     no)
42445     { echo "$as_me:$LINENO: result: cannot find function declaration in netdb.h" >&5
42446 echo "${ECHO_T}cannot find function declaration in netdb.h" >&6; }
42447     ;;
42448
42449     unknown)
42450     { echo "$as_me:$LINENO: result: can't tell" >&5
42451 echo "${ECHO_T}can't tell" >&6; }
42452     ;;
42453
42454     *)
42455     { { echo "$as_me:$LINENO: error: internal error" >&5
42456 echo "$as_me: error: internal error" >&2;}
42457    { (exit 1); exit 1; }; }
42458     ;;
42459 esac
42460
42461 ac_ext=c
42462 ac_cpp='$CPP $CPPFLAGS'
42463 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42464 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42465 ac_compiler_gnu=$ac_cv_c_compiler_gnu
42466
42467
42468
42469       if test "x$ac_cv_func_which_gethostbyname_r" = "xno" -o \
42470               "x$ac_cv_func_which_gethostbyname_r" = "xunknown" ; then
42471           { echo "$as_me:$LINENO: checking for gethostbyname" >&5
42472 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
42473 if test "${ac_cv_func_gethostbyname+set}" = set; then
42474   echo $ECHO_N "(cached) $ECHO_C" >&6
42475 else
42476   cat >conftest.$ac_ext <<_ACEOF
42477 /* confdefs.h.  */
42478 _ACEOF
42479 cat confdefs.h >>conftest.$ac_ext
42480 cat >>conftest.$ac_ext <<_ACEOF
42481 /* end confdefs.h.  */
42482 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
42483    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
42484 #define gethostbyname innocuous_gethostbyname
42485
42486 /* System header to define __stub macros and hopefully few prototypes,
42487     which can conflict with char gethostbyname (); below.
42488     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42489     <limits.h> exists even on freestanding compilers.  */
42490
42491 #ifdef __STDC__
42492 # include <limits.h>
42493 #else
42494 # include <assert.h>
42495 #endif
42496
42497 #undef gethostbyname
42498
42499 /* Override any GCC internal prototype to avoid an error.
42500    Use char because int might match the return type of a GCC
42501    builtin and then its argument prototype would still apply.  */
42502 #ifdef __cplusplus
42503 extern "C"
42504 #endif
42505 char gethostbyname ();
42506 /* The GNU C library defines this for functions which it implements
42507     to always fail with ENOSYS.  Some functions are actually named
42508     something starting with __ and the normal name is an alias.  */
42509 #if defined __stub_gethostbyname || defined __stub___gethostbyname
42510 choke me
42511 #endif
42512
42513 int
42514 main ()
42515 {
42516 return gethostbyname ();
42517   ;
42518   return 0;
42519 }
42520 _ACEOF
42521 rm -f conftest.$ac_objext conftest$ac_exeext
42522 if { (ac_try="$ac_link"
42523 case "(($ac_try" in
42524   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42525   *) ac_try_echo=$ac_try;;
42526 esac
42527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42528   (eval "$ac_link") 2>conftest.er1
42529   ac_status=$?
42530   grep -v '^ *+' conftest.er1 >conftest.err
42531   rm -f conftest.er1
42532   cat conftest.err >&5
42533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42534   (exit $ac_status); } && {
42535          test -z "$ac_c_werror_flag" ||
42536          test ! -s conftest.err
42537        } && test -s conftest$ac_exeext &&
42538        $as_test_x conftest$ac_exeext; then
42539   ac_cv_func_gethostbyname=yes
42540 else
42541   echo "$as_me: failed program was:" >&5
42542 sed 's/^/| /' conftest.$ac_ext >&5
42543
42544         ac_cv_func_gethostbyname=no
42545 fi
42546
42547 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42548       conftest$ac_exeext conftest.$ac_ext
42549 fi
42550 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
42551 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
42552 if test $ac_cv_func_gethostbyname = yes; then
42553    cat >>confdefs.h <<\_ACEOF
42554 #define HAVE_GETHOSTBYNAME 1
42555 _ACEOF
42556
42557 fi
42558
42559       fi
42560
42561 { echo "$as_me:$LINENO: checking how many arguments getservbyname_r() takes" >&5
42562 echo $ECHO_N "checking how many arguments getservbyname_r() takes... $ECHO_C" >&6; }
42563 if test "${ac_cv_func_which_getservbyname_r+set}" = set; then
42564   echo $ECHO_N "(cached) $ECHO_C" >&6
42565 else
42566
42567                 ac_ext=cpp
42568 ac_cpp='$CXXCPP $CPPFLAGS'
42569 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42570 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42571 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
42572
42573
42574         cat >conftest.$ac_ext <<_ACEOF
42575 /* confdefs.h.  */
42576 _ACEOF
42577 cat confdefs.h >>conftest.$ac_ext
42578 cat >>conftest.$ac_ext <<_ACEOF
42579 /* end confdefs.h.  */
42580 #include <netdb.h>
42581 int
42582 main ()
42583 {
42584
42585                 char *name;
42586                 char *proto;
42587                 struct servent *se, *res;
42588                 char buffer[2048];
42589                 int buflen = 2048;
42590                 (void) getservbyname_r(name, proto, se, buffer, buflen, &res)
42591
42592   ;
42593   return 0;
42594 }
42595 _ACEOF
42596 rm -f conftest.$ac_objext
42597 if { (ac_try="$ac_compile"
42598 case "(($ac_try" in
42599   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42600   *) ac_try_echo=$ac_try;;
42601 esac
42602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42603   (eval "$ac_compile") 2>conftest.er1
42604   ac_status=$?
42605   grep -v '^ *+' conftest.er1 >conftest.err
42606   rm -f conftest.er1
42607   cat conftest.err >&5
42608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42609   (exit $ac_status); } && {
42610          test -z "$ac_cxx_werror_flag" ||
42611          test ! -s conftest.err
42612        } && test -s conftest.$ac_objext; then
42613   ac_cv_func_which_getservbyname_r=six
42614 else
42615   echo "$as_me: failed program was:" >&5
42616 sed 's/^/| /' conftest.$ac_ext >&5
42617
42618
42619                 cat >conftest.$ac_ext <<_ACEOF
42620 /* confdefs.h.  */
42621 _ACEOF
42622 cat confdefs.h >>conftest.$ac_ext
42623 cat >>conftest.$ac_ext <<_ACEOF
42624 /* end confdefs.h.  */
42625 #include <netdb.h>
42626 int
42627 main ()
42628 {
42629
42630                         char *name;
42631                         char *proto;
42632                         struct servent *se;
42633                         char buffer[2048];
42634                         int buflen = 2048;
42635                         (void) getservbyname_r(name, proto, se, buffer, buflen)
42636
42637   ;
42638   return 0;
42639 }
42640 _ACEOF
42641 rm -f conftest.$ac_objext
42642 if { (ac_try="$ac_compile"
42643 case "(($ac_try" in
42644   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42645   *) ac_try_echo=$ac_try;;
42646 esac
42647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42648   (eval "$ac_compile") 2>conftest.er1
42649   ac_status=$?
42650   grep -v '^ *+' conftest.er1 >conftest.err
42651   rm -f conftest.er1
42652   cat conftest.err >&5
42653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42654   (exit $ac_status); } && {
42655          test -z "$ac_cxx_werror_flag" ||
42656          test ! -s conftest.err
42657        } && test -s conftest.$ac_objext; then
42658   ac_cv_func_which_getservbyname_r=five
42659 else
42660   echo "$as_me: failed program was:" >&5
42661 sed 's/^/| /' conftest.$ac_ext >&5
42662
42663
42664                         cat >conftest.$ac_ext <<_ACEOF
42665 /* confdefs.h.  */
42666 _ACEOF
42667 cat confdefs.h >>conftest.$ac_ext
42668 cat >>conftest.$ac_ext <<_ACEOF
42669 /* end confdefs.h.  */
42670 #include <netdb.h>
42671 int
42672 main ()
42673 {
42674
42675                                 char *name;
42676                                 char *proto;
42677                                 struct servent *se;
42678                                 struct servent_data data;
42679                                 (void) getservbyname_r(name, proto, se, &data);
42680
42681   ;
42682   return 0;
42683 }
42684 _ACEOF
42685 rm -f conftest.$ac_objext
42686 if { (ac_try="$ac_compile"
42687 case "(($ac_try" in
42688   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42689   *) ac_try_echo=$ac_try;;
42690 esac
42691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42692   (eval "$ac_compile") 2>conftest.er1
42693   ac_status=$?
42694   grep -v '^ *+' conftest.er1 >conftest.err
42695   rm -f conftest.er1
42696   cat conftest.err >&5
42697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42698   (exit $ac_status); } && {
42699          test -z "$ac_cxx_werror_flag" ||
42700          test ! -s conftest.err
42701        } && test -s conftest.$ac_objext; then
42702   ac_cv_func_which_getservbyname_r=four
42703 else
42704   echo "$as_me: failed program was:" >&5
42705 sed 's/^/| /' conftest.$ac_ext >&5
42706
42707         ac_cv_func_which_getservbyname_r=no
42708
42709 fi
42710
42711 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42712
42713
42714 fi
42715
42716 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42717
42718
42719 fi
42720
42721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42722         ac_ext=c
42723 ac_cpp='$CPP $CPPFLAGS'
42724 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42725 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42726 ac_compiler_gnu=$ac_cv_c_compiler_gnu
42727
42728
42729
42730 fi
42731 { echo "$as_me:$LINENO: result: $ac_cv_func_which_getservbyname_r" >&5
42732 echo "${ECHO_T}$ac_cv_func_which_getservbyname_r" >&6; }
42733
42734 if test $ac_cv_func_which_getservbyname_r = six; then
42735   cat >>confdefs.h <<\_ACEOF
42736 #define HAVE_FUNC_GETSERVBYNAME_R_6 1
42737 _ACEOF
42738
42739 elif test $ac_cv_func_which_getservbyname_r = five; then
42740   cat >>confdefs.h <<\_ACEOF
42741 #define HAVE_FUNC_GETSERVBYNAME_R_5 1
42742 _ACEOF
42743
42744 elif test $ac_cv_func_which_getservbyname_r = four; then
42745   cat >>confdefs.h <<\_ACEOF
42746 #define HAVE_FUNC_GETSERVBYNAME_R_4 1
42747 _ACEOF
42748
42749 fi
42750
42751
42752       if test "x$ac_cv_func_which_getservbyname_r" = "xno" -o \
42753               "x$ac_cv_func_which_getservbyname_r" = "xunknown" ; then
42754
42755 for ac_func in getservbyname
42756 do
42757 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42758 { echo "$as_me:$LINENO: checking for $ac_func" >&5
42759 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
42760 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
42761   echo $ECHO_N "(cached) $ECHO_C" >&6
42762 else
42763   cat >conftest.$ac_ext <<_ACEOF
42764 /* confdefs.h.  */
42765 _ACEOF
42766 cat confdefs.h >>conftest.$ac_ext
42767 cat >>conftest.$ac_ext <<_ACEOF
42768 /* end confdefs.h.  */
42769 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42770    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
42771 #define $ac_func innocuous_$ac_func
42772
42773 /* System header to define __stub macros and hopefully few prototypes,
42774     which can conflict with char $ac_func (); below.
42775     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42776     <limits.h> exists even on freestanding compilers.  */
42777
42778 #ifdef __STDC__
42779 # include <limits.h>
42780 #else
42781 # include <assert.h>
42782 #endif
42783
42784 #undef $ac_func
42785
42786 /* Override any GCC internal prototype to avoid an error.
42787    Use char because int might match the return type of a GCC
42788    builtin and then its argument prototype would still apply.  */
42789 #ifdef __cplusplus
42790 extern "C"
42791 #endif
42792 char $ac_func ();
42793 /* The GNU C library defines this for functions which it implements
42794     to always fail with ENOSYS.  Some functions are actually named
42795     something starting with __ and the normal name is an alias.  */
42796 #if defined __stub_$ac_func || defined __stub___$ac_func
42797 choke me
42798 #endif
42799
42800 int
42801 main ()
42802 {
42803 return $ac_func ();
42804   ;
42805   return 0;
42806 }
42807 _ACEOF
42808 rm -f conftest.$ac_objext conftest$ac_exeext
42809 if { (ac_try="$ac_link"
42810 case "(($ac_try" in
42811   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42812   *) ac_try_echo=$ac_try;;
42813 esac
42814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42815   (eval "$ac_link") 2>conftest.er1
42816   ac_status=$?
42817   grep -v '^ *+' conftest.er1 >conftest.err
42818   rm -f conftest.er1
42819   cat conftest.err >&5
42820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42821   (exit $ac_status); } && {
42822          test -z "$ac_c_werror_flag" ||
42823          test ! -s conftest.err
42824        } && test -s conftest$ac_exeext &&
42825        $as_test_x conftest$ac_exeext; then
42826   eval "$as_ac_var=yes"
42827 else
42828   echo "$as_me: failed program was:" >&5
42829 sed 's/^/| /' conftest.$ac_ext >&5
42830
42831         eval "$as_ac_var=no"
42832 fi
42833
42834 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42835       conftest$ac_exeext conftest.$ac_ext
42836 fi
42837 ac_res=`eval echo '${'$as_ac_var'}'`
42838                { echo "$as_me:$LINENO: result: $ac_res" >&5
42839 echo "${ECHO_T}$ac_res" >&6; }
42840 if test `eval echo '${'$as_ac_var'}'` = yes; then
42841   cat >>confdefs.h <<_ACEOF
42842 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42843 _ACEOF
42844   cat >>confdefs.h <<\_ACEOF
42845 #define HAVE_GETSERVBYNAME 1
42846 _ACEOF
42847
42848 fi
42849 done
42850
42851       fi
42852
42853 if test "$wxUSE_THREADS" = "yes"; then
42854   cat >>confdefs.h <<\_ACEOF
42855 #define wxUSE_THREADS 1
42856 _ACEOF
42857
42858
42859   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
42860 else
42861       if test "$wx_cv_func_strtok_r" = "yes"; then
42862     { echo "$as_me:$LINENO: checking if -D_REENTRANT is needed" >&5
42863 echo $ECHO_N "checking if -D_REENTRANT is needed... $ECHO_C" >&6; }
42864     if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
42865         WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_REENTRANT"
42866         { echo "$as_me:$LINENO: result: yes" >&5
42867 echo "${ECHO_T}yes" >&6; }
42868     else
42869         { echo "$as_me:$LINENO: result: no" >&5
42870 echo "${ECHO_T}no" >&6; }
42871     fi
42872   fi
42873 fi
42874
42875 if test "$WXGTK2" = 1 ; then
42876   cat >>confdefs.h <<_ACEOF
42877 #define __WXGTK20__ $WXGTK2
42878 _ACEOF
42879
42880   WXGTK12=1
42881 fi
42882
42883 if test "$WXGTK12" = 1 ; then
42884   cat >>confdefs.h <<_ACEOF
42885 #define __WXGTK12__ $WXGTK12
42886 _ACEOF
42887
42888 fi
42889
42890 if test "$WXGTK127" = 1 ; then
42891   cat >>confdefs.h <<_ACEOF
42892 #define __WXGTK127__ $WXGTK127
42893 _ACEOF
42894
42895 fi
42896
42897 if test "$WXGPE" = 1 ; then
42898   cat >>confdefs.h <<_ACEOF
42899 #define __WXGPE__ $WXGPE
42900 _ACEOF
42901
42902 fi
42903
42904 DEBUG_CFLAGS=
42905 if `echo $CXXFLAGS $CFLAGS | grep " -g" >/dev/null`; then
42906                     { echo "$as_me:$LINENO: WARNING: CXXFLAGS/CFLAGS already contains -g flag; ignoring the --enable-debug_info option" >&5
42907 echo "$as_me: WARNING: CXXFLAGS/CFLAGS already contains -g flag; ignoring the --enable-debug_info option" >&2;}
42908 elif test "$wxUSE_DEBUG_INFO" = "yes" ; then
42909     DEBUG_CFLAGS="-g"
42910 fi
42911
42912 if test "$wxUSE_DEBUG_GDB" = "yes" ; then
42913     wxUSE_DEBUG_INFO=yes
42914     if test "$GCC" = yes; then
42915         DEBUG_CFLAGS="-ggdb"
42916     fi
42917 fi
42918
42919 if test "$wxUSE_DEBUG_FLAG" = "no" ; then
42920     WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -DwxDEBUG_LEVEL=0"
42921
42922     if test "$wxUSE_GTK" = 1 ; then
42923         if test "x$wxGTK_VERSION" = "x1" ; then
42924             CPPFLAGS="-DGTK_NO_CHECK_CASTS $CPPFLAGS"
42925         fi
42926     fi
42927 fi
42928
42929 if test "$wxUSE_MEM_TRACING" = "yes" ; then
42930     cat >>confdefs.h <<\_ACEOF
42931 #define wxUSE_MEMORY_TRACING 1
42932 _ACEOF
42933
42934     cat >>confdefs.h <<\_ACEOF
42935 #define wxUSE_GLOBAL_MEMORY_OPERATORS 1
42936 _ACEOF
42937
42938     cat >>confdefs.h <<\_ACEOF
42939 #define wxUSE_DEBUG_NEW_ALWAYS 1
42940 _ACEOF
42941
42942     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
42943 fi
42944
42945 if test "$wxUSE_DMALLOC" = "yes" ; then
42946     DMALLOC_LIBS="-ldmallocthcxx"
42947 fi
42948
42949 PROFILE_FLAGS=
42950 if test "$wxUSE_PROFILE" = "yes" ; then
42951     PROFILE_FLAGS=" -pg"
42952 fi
42953
42954 if test "$GCC" = "yes" ; then
42955     if test "$wxUSE_NO_RTTI" = "yes" ; then
42956                                 WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -DwxNO_RTTI -fno-rtti"
42957     fi
42958     if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
42959         WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -fno-exceptions"
42960     fi
42961     if test "$wxUSE_PERMISSIVE" = "yes" ; then
42962         WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -fpermissive"
42963     fi
42964
42965                                                 case "${host}" in
42966       powerpc*-*-aix* )
42967         WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -mminimal-toc"
42968         ;;
42969       *-hppa* )
42970         WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -ffunction-sections"
42971         ;;
42972     esac
42973 fi
42974
42975 OPTIMISE_CFLAGS=
42976 if `echo $CXXFLAGS $CFLAGS | grep " -O" >/dev/null`; then
42977                     { echo "$as_me:$LINENO: WARNING: CXXFLAGS/CFLAGS already contains -O flag; ignoring the --disable-optimise option" >&5
42978 echo "$as_me: WARNING: CXXFLAGS/CFLAGS already contains -O flag; ignoring the --disable-optimise option" >&2;}
42979 else
42980     if test "$wxUSE_OPTIMISE" = "no" ; then
42981         if test "$GCC" = yes ; then
42982                                     OPTIMISE_CFLAGS="-O0"
42983         fi
42984     else
42985         if test "$GCC" = yes ; then
42986             case "${host}" in
42987                 *-pc-os2_emx | *-pc-os2-emx )
42988                                                             OPTIMISE_CFLAGS="-O2"
42989                 ;;
42990                 *)
42991                                                                                 OPTIMISE_CFLAGS="-O2 -fno-strict-aliasing"
42992                 ;;
42993             esac
42994         else
42995             OPTIMISE_CFLAGS="-O"
42996         fi
42997     fi
42998 fi
42999
43000
43001 if test "x$WXWIN_COMPATIBILITY_2_6" = "xyes"; then
43002     cat >>confdefs.h <<\_ACEOF
43003 #define WXWIN_COMPATIBILITY_2_6 1
43004 _ACEOF
43005
43006
43007     WXWIN_COMPATIBILITY_2_8="yes"
43008 fi
43009
43010 if test "x$WXWIN_COMPATIBILITY_2_8" != "xno"; then
43011     cat >>confdefs.h <<\_ACEOF
43012 #define WXWIN_COMPATIBILITY_2_8 1
43013 _ACEOF
43014
43015 fi
43016
43017
43018 if test "$wxUSE_GUI" = "yes"; then
43019     cat >>confdefs.h <<\_ACEOF
43020 #define wxUSE_GUI 1
43021 _ACEOF
43022
43023
43024                                             fi
43025
43026
43027 if test "$wxUSE_UNIX" = "yes"; then
43028   cat >>confdefs.h <<\_ACEOF
43029 #define wxUSE_UNIX 1
43030 _ACEOF
43031
43032 fi
43033
43034
43035 if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
43036
43037     HAVE_DL_FUNCS=0
43038     HAVE_SHL_FUNCS=0
43039     if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then
43040         if test "$USE_DOS" = 1; then
43041             HAVE_DL_FUNCS=0
43042         else
43043
43044 for ac_func in dlopen
43045 do
43046 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43047 { echo "$as_me:$LINENO: checking for $ac_func" >&5
43048 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
43049 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
43050   echo $ECHO_N "(cached) $ECHO_C" >&6
43051 else
43052   cat >conftest.$ac_ext <<_ACEOF
43053 /* confdefs.h.  */
43054 _ACEOF
43055 cat confdefs.h >>conftest.$ac_ext
43056 cat >>conftest.$ac_ext <<_ACEOF
43057 /* end confdefs.h.  */
43058 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43059    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
43060 #define $ac_func innocuous_$ac_func
43061
43062 /* System header to define __stub macros and hopefully few prototypes,
43063     which can conflict with char $ac_func (); below.
43064     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43065     <limits.h> exists even on freestanding compilers.  */
43066
43067 #ifdef __STDC__
43068 # include <limits.h>
43069 #else
43070 # include <assert.h>
43071 #endif
43072
43073 #undef $ac_func
43074
43075 /* Override any GCC internal prototype to avoid an error.
43076    Use char because int might match the return type of a GCC
43077    builtin and then its argument prototype would still apply.  */
43078 #ifdef __cplusplus
43079 extern "C"
43080 #endif
43081 char $ac_func ();
43082 /* The GNU C library defines this for functions which it implements
43083     to always fail with ENOSYS.  Some functions are actually named
43084     something starting with __ and the normal name is an alias.  */
43085 #if defined __stub_$ac_func || defined __stub___$ac_func
43086 choke me
43087 #endif
43088
43089 int
43090 main ()
43091 {
43092 return $ac_func ();
43093   ;
43094   return 0;
43095 }
43096 _ACEOF
43097 rm -f conftest.$ac_objext conftest$ac_exeext
43098 if { (ac_try="$ac_link"
43099 case "(($ac_try" in
43100   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43101   *) ac_try_echo=$ac_try;;
43102 esac
43103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43104   (eval "$ac_link") 2>conftest.er1
43105   ac_status=$?
43106   grep -v '^ *+' conftest.er1 >conftest.err
43107   rm -f conftest.er1
43108   cat conftest.err >&5
43109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43110   (exit $ac_status); } && {
43111          test -z "$ac_c_werror_flag" ||
43112          test ! -s conftest.err
43113        } && test -s conftest$ac_exeext &&
43114        $as_test_x conftest$ac_exeext; then
43115   eval "$as_ac_var=yes"
43116 else
43117   echo "$as_me: failed program was:" >&5
43118 sed 's/^/| /' conftest.$ac_ext >&5
43119
43120         eval "$as_ac_var=no"
43121 fi
43122
43123 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43124       conftest$ac_exeext conftest.$ac_ext
43125 fi
43126 ac_res=`eval echo '${'$as_ac_var'}'`
43127                { echo "$as_me:$LINENO: result: $ac_res" >&5
43128 echo "${ECHO_T}$ac_res" >&6; }
43129 if test `eval echo '${'$as_ac_var'}'` = yes; then
43130   cat >>confdefs.h <<_ACEOF
43131 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43132 _ACEOF
43133
43134                 cat >>confdefs.h <<\_ACEOF
43135 #define HAVE_DLOPEN 1
43136 _ACEOF
43137
43138                 HAVE_DL_FUNCS=1
43139
43140 else
43141
43142                 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
43143 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
43144 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
43145   echo $ECHO_N "(cached) $ECHO_C" >&6
43146 else
43147   ac_check_lib_save_LIBS=$LIBS
43148 LIBS="-ldl  $LIBS"
43149 cat >conftest.$ac_ext <<_ACEOF
43150 /* confdefs.h.  */
43151 _ACEOF
43152 cat confdefs.h >>conftest.$ac_ext
43153 cat >>conftest.$ac_ext <<_ACEOF
43154 /* end confdefs.h.  */
43155
43156 /* Override any GCC internal prototype to avoid an error.
43157    Use char because int might match the return type of a GCC
43158    builtin and then its argument prototype would still apply.  */
43159 #ifdef __cplusplus
43160 extern "C"
43161 #endif
43162 char dlopen ();
43163 int
43164 main ()
43165 {
43166 return dlopen ();
43167   ;
43168   return 0;
43169 }
43170 _ACEOF
43171 rm -f conftest.$ac_objext conftest$ac_exeext
43172 if { (ac_try="$ac_link"
43173 case "(($ac_try" in
43174   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43175   *) ac_try_echo=$ac_try;;
43176 esac
43177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43178   (eval "$ac_link") 2>conftest.er1
43179   ac_status=$?
43180   grep -v '^ *+' conftest.er1 >conftest.err
43181   rm -f conftest.er1
43182   cat conftest.err >&5
43183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43184   (exit $ac_status); } && {
43185          test -z "$ac_c_werror_flag" ||
43186          test ! -s conftest.err
43187        } && test -s conftest$ac_exeext &&
43188        $as_test_x conftest$ac_exeext; then
43189   ac_cv_lib_dl_dlopen=yes
43190 else
43191   echo "$as_me: failed program was:" >&5
43192 sed 's/^/| /' conftest.$ac_ext >&5
43193
43194         ac_cv_lib_dl_dlopen=no
43195 fi
43196
43197 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43198       conftest$ac_exeext conftest.$ac_ext
43199 LIBS=$ac_check_lib_save_LIBS
43200 fi
43201 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
43202 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
43203 if test $ac_cv_lib_dl_dlopen = yes; then
43204
43205                                 cat >>confdefs.h <<\_ACEOF
43206 #define HAVE_DLOPEN 1
43207 _ACEOF
43208
43209                                 HAVE_DL_FUNCS=1
43210                                 DL_LINK=" -ldl$DL_LINK"
43211
43212 else
43213
43214
43215 for ac_func in shl_load
43216 do
43217 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43218 { echo "$as_me:$LINENO: checking for $ac_func" >&5
43219 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
43220 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
43221   echo $ECHO_N "(cached) $ECHO_C" >&6
43222 else
43223   cat >conftest.$ac_ext <<_ACEOF
43224 /* confdefs.h.  */
43225 _ACEOF
43226 cat confdefs.h >>conftest.$ac_ext
43227 cat >>conftest.$ac_ext <<_ACEOF
43228 /* end confdefs.h.  */
43229 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43230    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
43231 #define $ac_func innocuous_$ac_func
43232
43233 /* System header to define __stub macros and hopefully few prototypes,
43234     which can conflict with char $ac_func (); below.
43235     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43236     <limits.h> exists even on freestanding compilers.  */
43237
43238 #ifdef __STDC__
43239 # include <limits.h>
43240 #else
43241 # include <assert.h>
43242 #endif
43243
43244 #undef $ac_func
43245
43246 /* Override any GCC internal prototype to avoid an error.
43247    Use char because int might match the return type of a GCC
43248    builtin and then its argument prototype would still apply.  */
43249 #ifdef __cplusplus
43250 extern "C"
43251 #endif
43252 char $ac_func ();
43253 /* The GNU C library defines this for functions which it implements
43254     to always fail with ENOSYS.  Some functions are actually named
43255     something starting with __ and the normal name is an alias.  */
43256 #if defined __stub_$ac_func || defined __stub___$ac_func
43257 choke me
43258 #endif
43259
43260 int
43261 main ()
43262 {
43263 return $ac_func ();
43264   ;
43265   return 0;
43266 }
43267 _ACEOF
43268 rm -f conftest.$ac_objext conftest$ac_exeext
43269 if { (ac_try="$ac_link"
43270 case "(($ac_try" in
43271   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43272   *) ac_try_echo=$ac_try;;
43273 esac
43274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43275   (eval "$ac_link") 2>conftest.er1
43276   ac_status=$?
43277   grep -v '^ *+' conftest.er1 >conftest.err
43278   rm -f conftest.er1
43279   cat conftest.err >&5
43280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43281   (exit $ac_status); } && {
43282          test -z "$ac_c_werror_flag" ||
43283          test ! -s conftest.err
43284        } && test -s conftest$ac_exeext &&
43285        $as_test_x conftest$ac_exeext; then
43286   eval "$as_ac_var=yes"
43287 else
43288   echo "$as_me: failed program was:" >&5
43289 sed 's/^/| /' conftest.$ac_ext >&5
43290
43291         eval "$as_ac_var=no"
43292 fi
43293
43294 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43295       conftest$ac_exeext conftest.$ac_ext
43296 fi
43297 ac_res=`eval echo '${'$as_ac_var'}'`
43298                { echo "$as_me:$LINENO: result: $ac_res" >&5
43299 echo "${ECHO_T}$ac_res" >&6; }
43300 if test `eval echo '${'$as_ac_var'}'` = yes; then
43301   cat >>confdefs.h <<_ACEOF
43302 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43303 _ACEOF
43304
43305                                                 cat >>confdefs.h <<\_ACEOF
43306 #define HAVE_SHL_LOAD 1
43307 _ACEOF
43308
43309                                                 HAVE_SHL_FUNCS=1
43310
43311 else
43312
43313                                                 { echo "$as_me:$LINENO: checking for dld in -lshl_load" >&5
43314 echo $ECHO_N "checking for dld in -lshl_load... $ECHO_C" >&6; }
43315 if test "${ac_cv_lib_shl_load_dld+set}" = set; then
43316   echo $ECHO_N "(cached) $ECHO_C" >&6
43317 else
43318   ac_check_lib_save_LIBS=$LIBS
43319 LIBS="-lshl_load  $LIBS"
43320 cat >conftest.$ac_ext <<_ACEOF
43321 /* confdefs.h.  */
43322 _ACEOF
43323 cat confdefs.h >>conftest.$ac_ext
43324 cat >>conftest.$ac_ext <<_ACEOF
43325 /* end confdefs.h.  */
43326
43327 /* Override any GCC internal prototype to avoid an error.
43328    Use char because int might match the return type of a GCC
43329    builtin and then its argument prototype would still apply.  */
43330 #ifdef __cplusplus
43331 extern "C"
43332 #endif
43333 char dld ();
43334 int
43335 main ()
43336 {
43337 return dld ();
43338   ;
43339   return 0;
43340 }
43341 _ACEOF
43342 rm -f conftest.$ac_objext conftest$ac_exeext
43343 if { (ac_try="$ac_link"
43344 case "(($ac_try" in
43345   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43346   *) ac_try_echo=$ac_try;;
43347 esac
43348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43349   (eval "$ac_link") 2>conftest.er1
43350   ac_status=$?
43351   grep -v '^ *+' conftest.er1 >conftest.err
43352   rm -f conftest.er1
43353   cat conftest.err >&5
43354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43355   (exit $ac_status); } && {
43356          test -z "$ac_c_werror_flag" ||
43357          test ! -s conftest.err
43358        } && test -s conftest$ac_exeext &&
43359        $as_test_x conftest$ac_exeext; then
43360   ac_cv_lib_shl_load_dld=yes
43361 else
43362   echo "$as_me: failed program was:" >&5
43363 sed 's/^/| /' conftest.$ac_ext >&5
43364
43365         ac_cv_lib_shl_load_dld=no
43366 fi
43367
43368 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43369       conftest$ac_exeext conftest.$ac_ext
43370 LIBS=$ac_check_lib_save_LIBS
43371 fi
43372 { echo "$as_me:$LINENO: result: $ac_cv_lib_shl_load_dld" >&5
43373 echo "${ECHO_T}$ac_cv_lib_shl_load_dld" >&6; }
43374 if test $ac_cv_lib_shl_load_dld = yes; then
43375
43376                                                                 HAVE_SHL_FUNCS=1
43377                                                                 DL_LINK=" -ldld$DL_LINK"
43378
43379 fi
43380
43381
43382 fi
43383 done
43384
43385
43386 fi
43387
43388
43389 fi
43390 done
43391
43392
43393                         if test "$HAVE_DL_FUNCS" = 1; then
43394
43395 for ac_func in dlerror
43396 do
43397 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43398 { echo "$as_me:$LINENO: checking for $ac_func" >&5
43399 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
43400 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
43401   echo $ECHO_N "(cached) $ECHO_C" >&6
43402 else
43403   cat >conftest.$ac_ext <<_ACEOF
43404 /* confdefs.h.  */
43405 _ACEOF
43406 cat confdefs.h >>conftest.$ac_ext
43407 cat >>conftest.$ac_ext <<_ACEOF
43408 /* end confdefs.h.  */
43409 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43410    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
43411 #define $ac_func innocuous_$ac_func
43412
43413 /* System header to define __stub macros and hopefully few prototypes,
43414     which can conflict with char $ac_func (); below.
43415     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43416     <limits.h> exists even on freestanding compilers.  */
43417
43418 #ifdef __STDC__
43419 # include <limits.h>
43420 #else
43421 # include <assert.h>
43422 #endif
43423
43424 #undef $ac_func
43425
43426 /* Override any GCC internal prototype to avoid an error.
43427    Use char because int might match the return type of a GCC
43428    builtin and then its argument prototype would still apply.  */
43429 #ifdef __cplusplus
43430 extern "C"
43431 #endif
43432 char $ac_func ();
43433 /* The GNU C library defines this for functions which it implements
43434     to always fail with ENOSYS.  Some functions are actually named
43435     something starting with __ and the normal name is an alias.  */
43436 #if defined __stub_$ac_func || defined __stub___$ac_func
43437 choke me
43438 #endif
43439
43440 int
43441 main ()
43442 {
43443 return $ac_func ();
43444   ;
43445   return 0;
43446 }
43447 _ACEOF
43448 rm -f conftest.$ac_objext conftest$ac_exeext
43449 if { (ac_try="$ac_link"
43450 case "(($ac_try" in
43451   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43452   *) ac_try_echo=$ac_try;;
43453 esac
43454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43455   (eval "$ac_link") 2>conftest.er1
43456   ac_status=$?
43457   grep -v '^ *+' conftest.er1 >conftest.err
43458   rm -f conftest.er1
43459   cat conftest.err >&5
43460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43461   (exit $ac_status); } && {
43462          test -z "$ac_c_werror_flag" ||
43463          test ! -s conftest.err
43464        } && test -s conftest$ac_exeext &&
43465        $as_test_x conftest$ac_exeext; then
43466   eval "$as_ac_var=yes"
43467 else
43468   echo "$as_me: failed program was:" >&5
43469 sed 's/^/| /' conftest.$ac_ext >&5
43470
43471         eval "$as_ac_var=no"
43472 fi
43473
43474 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43475       conftest$ac_exeext conftest.$ac_ext
43476 fi
43477 ac_res=`eval echo '${'$as_ac_var'}'`
43478                { echo "$as_me:$LINENO: result: $ac_res" >&5
43479 echo "${ECHO_T}$ac_res" >&6; }
43480 if test `eval echo '${'$as_ac_var'}'` = yes; then
43481   cat >>confdefs.h <<_ACEOF
43482 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43483 _ACEOF
43484  cat >>confdefs.h <<\_ACEOF
43485 #define HAVE_DLERROR 1
43486 _ACEOF
43487
43488 else
43489
43490                         { echo "$as_me:$LINENO: checking for dlerror in -ldl" >&5
43491 echo $ECHO_N "checking for dlerror in -ldl... $ECHO_C" >&6; }
43492 if test "${ac_cv_lib_dl_dlerror+set}" = set; then
43493   echo $ECHO_N "(cached) $ECHO_C" >&6
43494 else
43495   ac_check_lib_save_LIBS=$LIBS
43496 LIBS="-ldl  $LIBS"
43497 cat >conftest.$ac_ext <<_ACEOF
43498 /* confdefs.h.  */
43499 _ACEOF
43500 cat confdefs.h >>conftest.$ac_ext
43501 cat >>conftest.$ac_ext <<_ACEOF
43502 /* end confdefs.h.  */
43503
43504 /* Override any GCC internal prototype to avoid an error.
43505    Use char because int might match the return type of a GCC
43506    builtin and then its argument prototype would still apply.  */
43507 #ifdef __cplusplus
43508 extern "C"
43509 #endif
43510 char dlerror ();
43511 int
43512 main ()
43513 {
43514 return dlerror ();
43515   ;
43516   return 0;
43517 }
43518 _ACEOF
43519 rm -f conftest.$ac_objext conftest$ac_exeext
43520 if { (ac_try="$ac_link"
43521 case "(($ac_try" in
43522   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43523   *) ac_try_echo=$ac_try;;
43524 esac
43525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43526   (eval "$ac_link") 2>conftest.er1
43527   ac_status=$?
43528   grep -v '^ *+' conftest.er1 >conftest.err
43529   rm -f conftest.er1
43530   cat conftest.err >&5
43531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43532   (exit $ac_status); } && {
43533          test -z "$ac_c_werror_flag" ||
43534          test ! -s conftest.err
43535        } && test -s conftest$ac_exeext &&
43536        $as_test_x conftest$ac_exeext; then
43537   ac_cv_lib_dl_dlerror=yes
43538 else
43539   echo "$as_me: failed program was:" >&5
43540 sed 's/^/| /' conftest.$ac_ext >&5
43541
43542         ac_cv_lib_dl_dlerror=no
43543 fi
43544
43545 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43546       conftest$ac_exeext conftest.$ac_ext
43547 LIBS=$ac_check_lib_save_LIBS
43548 fi
43549 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlerror" >&5
43550 echo "${ECHO_T}$ac_cv_lib_dl_dlerror" >&6; }
43551 if test $ac_cv_lib_dl_dlerror = yes; then
43552   cat >>confdefs.h <<\_ACEOF
43553 #define HAVE_DLERROR 1
43554 _ACEOF
43555
43556 fi
43557
43558
43559
43560 fi
43561 done
43562
43563             fi
43564         fi
43565
43566                 if test "$USE_DARWIN" = 1; then
43567                         HAVE_DL_FUNCS=1
43568         fi
43569
43570         if test "$HAVE_DL_FUNCS" = 0; then
43571             if test "$HAVE_SHL_FUNCS" = 0; then
43572               if test "$USE_UNIX" = 1 -o "$USE_DOS" = 1; then
43573                   { echo "$as_me:$LINENO: WARNING: Missing dynamic loading support, several features will be disabled" >&5
43574 echo "$as_me: WARNING: Missing dynamic loading support, several features will be disabled" >&2;}
43575                   wxUSE_DYNAMIC_LOADER=no
43576                   wxUSE_DYNLIB_CLASS=no
43577               else
43578                   { echo "$as_me:$LINENO: WARNING: Assuming wxLibrary class works on this platform" >&5
43579 echo "$as_me: WARNING: Assuming wxLibrary class works on this platform" >&2;}
43580               fi
43581             fi
43582         fi
43583     fi
43584 fi
43585
43586 if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then
43587     cat >>confdefs.h <<\_ACEOF
43588 #define wxUSE_DYNAMIC_LOADER 1
43589 _ACEOF
43590
43591 fi
43592 if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
43593     cat >>confdefs.h <<\_ACEOF
43594 #define wxUSE_DYNLIB_CLASS 1
43595 _ACEOF
43596
43597 fi
43598
43599
43600
43601 if test "$wxUSE_PLUGINS" = "yes" ; then
43602     if test "$wxUSE_SHARED" = "no" ; then
43603         { echo "$as_me:$LINENO: WARNING: plugins supported only in shared build, disabling" >&5
43604 echo "$as_me: WARNING: plugins supported only in shared build, disabling" >&2;}
43605         wxUSE_PLUGINS=no
43606     fi
43607     if test "$wxUSE_MONOLITHIC" = "yes" ; then
43608         { echo "$as_me:$LINENO: WARNING: plugins not supported monolithic build, disabling" >&5
43609 echo "$as_me: WARNING: plugins not supported monolithic build, disabling" >&2;}
43610         wxUSE_PLUGINS=no
43611     fi
43612     if test "$wxUSE_DYNLIB_CLASS" = "no" ; then
43613         { echo "$as_me:$LINENO: WARNING: plugins require wxDynamicLibrary, disabling" >&5
43614 echo "$as_me: WARNING: plugins require wxDynamicLibrary, disabling" >&2;}
43615         wxUSE_PLUGINS=no
43616     fi
43617     if test "$wxUSE_PLUGINS" = "yes" ; then
43618         cat >>confdefs.h <<\_ACEOF
43619 #define wxUSE_PLUGINS 1
43620 _ACEOF
43621
43622     fi
43623 fi
43624
43625
43626 if test "$wxUSE_FSWATCHER" = "yes"; then
43627                 if test "$wxUSE_MSW" != "1"; then
43628         if test "$wxUSE_UNIX" = "yes"; then
43629
43630 for ac_header in sys/inotify.h
43631 do
43632 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
43633 { echo "$as_me:$LINENO: checking for $ac_header" >&5
43634 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
43635 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
43636   echo $ECHO_N "(cached) $ECHO_C" >&6
43637 else
43638   cat >conftest.$ac_ext <<_ACEOF
43639 /* confdefs.h.  */
43640 _ACEOF
43641 cat confdefs.h >>conftest.$ac_ext
43642 cat >>conftest.$ac_ext <<_ACEOF
43643 /* end confdefs.h.  */
43644 $ac_includes_default
43645
43646 #include <$ac_header>
43647 _ACEOF
43648 rm -f conftest.$ac_objext
43649 if { (ac_try="$ac_compile"
43650 case "(($ac_try" in
43651   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43652   *) ac_try_echo=$ac_try;;
43653 esac
43654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43655   (eval "$ac_compile") 2>conftest.er1
43656   ac_status=$?
43657   grep -v '^ *+' conftest.er1 >conftest.err
43658   rm -f conftest.er1
43659   cat conftest.err >&5
43660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43661   (exit $ac_status); } && {
43662          test -z "$ac_c_werror_flag" ||
43663          test ! -s conftest.err
43664        } && test -s conftest.$ac_objext; then
43665   eval "$as_ac_Header=yes"
43666 else
43667   echo "$as_me: failed program was:" >&5
43668 sed 's/^/| /' conftest.$ac_ext >&5
43669
43670         eval "$as_ac_Header=no"
43671 fi
43672
43673 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43674 fi
43675 ac_res=`eval echo '${'$as_ac_Header'}'`
43676                { echo "$as_me:$LINENO: result: $ac_res" >&5
43677 echo "${ECHO_T}$ac_res" >&6; }
43678 if test `eval echo '${'$as_ac_Header'}'` = yes; then
43679   cat >>confdefs.h <<_ACEOF
43680 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
43681 _ACEOF
43682
43683 fi
43684
43685 done
43686
43687             if test "$ac_cv_header_sys_inotify_h" = "yes"; then
43688                 cat >>confdefs.h <<\_ACEOF
43689 #define wxHAS_INOTIFY 1
43690 _ACEOF
43691
43692             else
43693
43694 for ac_header in sys/event.h
43695 do
43696 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
43697 { echo "$as_me:$LINENO: checking for $ac_header" >&5
43698 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
43699 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
43700   echo $ECHO_N "(cached) $ECHO_C" >&6
43701 else
43702   cat >conftest.$ac_ext <<_ACEOF
43703 /* confdefs.h.  */
43704 _ACEOF
43705 cat confdefs.h >>conftest.$ac_ext
43706 cat >>conftest.$ac_ext <<_ACEOF
43707 /* end confdefs.h.  */
43708 $ac_includes_default
43709
43710 #include <$ac_header>
43711 _ACEOF
43712 rm -f conftest.$ac_objext
43713 if { (ac_try="$ac_compile"
43714 case "(($ac_try" in
43715   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43716   *) ac_try_echo=$ac_try;;
43717 esac
43718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43719   (eval "$ac_compile") 2>conftest.er1
43720   ac_status=$?
43721   grep -v '^ *+' conftest.er1 >conftest.err
43722   rm -f conftest.er1
43723   cat conftest.err >&5
43724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43725   (exit $ac_status); } && {
43726          test -z "$ac_c_werror_flag" ||
43727          test ! -s conftest.err
43728        } && test -s conftest.$ac_objext; then
43729   eval "$as_ac_Header=yes"
43730 else
43731   echo "$as_me: failed program was:" >&5
43732 sed 's/^/| /' conftest.$ac_ext >&5
43733
43734         eval "$as_ac_Header=no"
43735 fi
43736
43737 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43738 fi
43739 ac_res=`eval echo '${'$as_ac_Header'}'`
43740                { echo "$as_me:$LINENO: result: $ac_res" >&5
43741 echo "${ECHO_T}$ac_res" >&6; }
43742 if test `eval echo '${'$as_ac_Header'}'` = yes; then
43743   cat >>confdefs.h <<_ACEOF
43744 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
43745 _ACEOF
43746
43747 fi
43748
43749 done
43750
43751                 if test "$ac_cv_header_sys_event_h" = "yes"; then
43752                     cat >>confdefs.h <<\_ACEOF
43753 #define wxHAS_KQUEUE 1
43754 _ACEOF
43755
43756                 else
43757                     wxUSE_FSWATCHER=no
43758                 fi
43759             fi
43760         else
43761             wxUSE_FSWATCHER=no
43762         fi
43763     else
43764         if test "$wxUSE_THREADS" != "yes"; then
43765             { echo "$as_me:$LINENO: WARNING: wxFileSystemWatcher disabled due to --disable-threads" >&5
43766 echo "$as_me: WARNING: wxFileSystemWatcher disabled due to --disable-threads" >&2;}
43767             wxUSE_FSWATCHER=no
43768         fi
43769     fi
43770
43771     if test "$wxUSE_FSWATCHER" = "yes"; then
43772         cat >>confdefs.h <<\_ACEOF
43773 #define wxUSE_FSWATCHER 1
43774 _ACEOF
43775
43776         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS fswatcher"
43777     else
43778         { echo "$as_me:$LINENO: WARNING: wxFileSystemWatcher won't be available on this platform" >&5
43779 echo "$as_me: WARNING: wxFileSystemWatcher won't be available on this platform" >&2;}
43780     fi
43781 fi
43782
43783
43784 if test "$wxUSE_STL" = "yes"; then
43785   cat >>confdefs.h <<\_ACEOF
43786 #define wxUSE_STL 1
43787 _ACEOF
43788
43789 fi
43790
43791 if test "$wxUSE_EXTENDED_RTTI" = "yes"; then
43792   cat >>confdefs.h <<\_ACEOF
43793 #define wxUSE_EXTENDED_RTTI 1
43794 _ACEOF
43795
43796 fi
43797
43798 if test "$wxUSE_ANY" = "yes"; then
43799     cat >>confdefs.h <<\_ACEOF
43800 #define wxUSE_ANY 1
43801 _ACEOF
43802
43803 fi
43804
43805 if test "$wxUSE_APPLE_IEEE" = "yes"; then
43806   cat >>confdefs.h <<\_ACEOF
43807 #define wxUSE_APPLE_IEEE 1
43808 _ACEOF
43809
43810 fi
43811
43812 if test "$wxUSE_TIMER" = "yes"; then
43813   cat >>confdefs.h <<\_ACEOF
43814 #define wxUSE_TIMER 1
43815 _ACEOF
43816
43817 fi
43818
43819 if test "$USE_UNIX" = 1 ; then
43820         if test "$wxUSE_MGL" != 1; then
43821                                 { echo "$as_me:$LINENO: checking for SNDCTL_DSP_SPEED in sys/soundcard.h" >&5
43822 echo $ECHO_N "checking for SNDCTL_DSP_SPEED in sys/soundcard.h... $ECHO_C" >&6; }
43823 if test "${ac_cv_header_sys_soundcard+set}" = set; then
43824   echo $ECHO_N "(cached) $ECHO_C" >&6
43825 else
43826
43827             cat >conftest.$ac_ext <<_ACEOF
43828 /* confdefs.h.  */
43829 _ACEOF
43830 cat confdefs.h >>conftest.$ac_ext
43831 cat >>conftest.$ac_ext <<_ACEOF
43832 /* end confdefs.h.  */
43833
43834                     #include <sys/ioctl.h>
43835                     #include <sys/soundcard.h>
43836
43837 int
43838 main ()
43839 {
43840
43841                     ioctl(0, SNDCTL_DSP_SPEED, 0);
43842
43843   ;
43844   return 0;
43845 }
43846 _ACEOF
43847 rm -f conftest.$ac_objext conftest$ac_exeext
43848 if { (ac_try="$ac_link"
43849 case "(($ac_try" in
43850   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43851   *) ac_try_echo=$ac_try;;
43852 esac
43853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43854   (eval "$ac_link") 2>conftest.er1
43855   ac_status=$?
43856   grep -v '^ *+' conftest.er1 >conftest.err
43857   rm -f conftest.er1
43858   cat conftest.err >&5
43859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43860   (exit $ac_status); } && {
43861          test -z "$ac_c_werror_flag" ||
43862          test ! -s conftest.err
43863        } && test -s conftest$ac_exeext &&
43864        $as_test_x conftest$ac_exeext; then
43865   ac_cv_header_sys_soundcard=yes
43866 else
43867   echo "$as_me: failed program was:" >&5
43868 sed 's/^/| /' conftest.$ac_ext >&5
43869
43870
43871                     saveLibs="$LIBS"
43872                     LIBS="$saveLibs -lossaudio"
43873                     cat >conftest.$ac_ext <<_ACEOF
43874 /* confdefs.h.  */
43875 _ACEOF
43876 cat confdefs.h >>conftest.$ac_ext
43877 cat >>conftest.$ac_ext <<_ACEOF
43878 /* end confdefs.h.  */
43879
43880                             #include <sys/ioctl.h>
43881                             #include <sys/soundcard.h>
43882
43883 int
43884 main ()
43885 {
43886
43887                             ioctl(0, SNDCTL_DSP_SPEED, 0);
43888
43889   ;
43890   return 0;
43891 }
43892 _ACEOF
43893 rm -f conftest.$ac_objext conftest$ac_exeext
43894 if { (ac_try="$ac_link"
43895 case "(($ac_try" in
43896   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43897   *) ac_try_echo=$ac_try;;
43898 esac
43899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43900   (eval "$ac_link") 2>conftest.er1
43901   ac_status=$?
43902   grep -v '^ *+' conftest.er1 >conftest.err
43903   rm -f conftest.er1
43904   cat conftest.err >&5
43905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43906   (exit $ac_status); } && {
43907          test -z "$ac_c_werror_flag" ||
43908          test ! -s conftest.err
43909        } && test -s conftest$ac_exeext &&
43910        $as_test_x conftest$ac_exeext; then
43911   ac_cv_header_sys_soundcard=yes
43912 else
43913   echo "$as_me: failed program was:" >&5
43914 sed 's/^/| /' conftest.$ac_ext >&5
43915
43916
43917                             LIBS="$saveLibs"
43918                             ac_cv_header_sys_soundcard=no
43919
43920
43921 fi
43922
43923 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43924       conftest$ac_exeext conftest.$ac_ext
43925
43926
43927 fi
43928
43929 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43930       conftest$ac_exeext conftest.$ac_ext
43931
43932 fi
43933 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard" >&5
43934 echo "${ECHO_T}$ac_cv_header_sys_soundcard" >&6; }
43935     fi
43936
43937     if test "$ac_cv_header_sys_soundcard" = "yes"; then
43938         cat >>confdefs.h <<\_ACEOF
43939 #define HAVE_SYS_SOUNDCARD_H 1
43940 _ACEOF
43941
43942     fi
43943 fi
43944
43945 WITH_PLUGIN_SDL=0
43946 if test "$wxUSE_SOUND" = "yes"; then
43947   if test "$USE_UNIX" = 1 ; then
43948     if test "$wxUSE_LIBSDL" != "no"; then
43949
43950 # Check whether --with-sdl-prefix was given.
43951 if test "${with_sdl_prefix+set}" = set; then
43952   withval=$with_sdl_prefix; sdl_prefix="$withval"
43953 else
43954   sdl_prefix=""
43955 fi
43956
43957
43958 # Check whether --with-sdl-exec-prefix was given.
43959 if test "${with_sdl_exec_prefix+set}" = set; then
43960   withval=$with_sdl_exec_prefix; sdl_exec_prefix="$withval"
43961 else
43962   sdl_exec_prefix=""
43963 fi
43964
43965 # Check whether --enable-sdltest was given.
43966 if test "${enable_sdltest+set}" = set; then
43967   enableval=$enable_sdltest;
43968 else
43969   enable_sdltest=yes
43970 fi
43971
43972
43973   if test x$sdl_exec_prefix != x ; then
43974     sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
43975     if test x${SDL_CONFIG+set} != xset ; then
43976       SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
43977     fi
43978   fi
43979   if test x$sdl_prefix != x ; then
43980     sdl_args="$sdl_args --prefix=$sdl_prefix"
43981     if test x${SDL_CONFIG+set} != xset ; then
43982       SDL_CONFIG=$sdl_prefix/bin/sdl-config
43983     fi
43984   fi
43985
43986   if test "x$prefix" != xNONE; then
43987     PATH="$prefix/bin:$prefix/usr/bin:$PATH"
43988   fi
43989   # Extract the first word of "sdl-config", so it can be a program name with args.
43990 set dummy sdl-config; ac_word=$2
43991 { echo "$as_me:$LINENO: checking for $ac_word" >&5
43992 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
43993 if test "${ac_cv_path_SDL_CONFIG+set}" = set; then
43994   echo $ECHO_N "(cached) $ECHO_C" >&6
43995 else
43996   case $SDL_CONFIG in
43997   [\\/]* | ?:[\\/]*)
43998   ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
43999   ;;
44000   *)
44001   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44002 for as_dir in $PATH
44003 do
44004   IFS=$as_save_IFS
44005   test -z "$as_dir" && as_dir=.
44006   for ac_exec_ext in '' $ac_executable_extensions; do
44007   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
44008     ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
44009     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44010     break 2
44011   fi
44012 done
44013 done
44014 IFS=$as_save_IFS
44015
44016   test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
44017   ;;
44018 esac
44019 fi
44020 SDL_CONFIG=$ac_cv_path_SDL_CONFIG
44021 if test -n "$SDL_CONFIG"; then
44022   { echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5
44023 echo "${ECHO_T}$SDL_CONFIG" >&6; }
44024 else
44025   { echo "$as_me:$LINENO: result: no" >&5
44026 echo "${ECHO_T}no" >&6; }
44027 fi
44028
44029
44030   min_sdl_version=1.2.0
44031   { echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5
44032 echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6; }
44033   no_sdl=""
44034   if test "$SDL_CONFIG" = "no" ; then
44035     no_sdl=yes
44036   else
44037     SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
44038     SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
44039
44040     sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
44041            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
44042     sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
44043            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
44044     sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
44045            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
44046     if test "x$enable_sdltest" = "xyes" ; then
44047       ac_save_CFLAGS="$CFLAGS"
44048       ac_save_CXXFLAGS="$CXXFLAGS"
44049       ac_save_LIBS="$LIBS"
44050       CFLAGS="$CFLAGS $SDL_CFLAGS"
44051       CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
44052       LIBS="$LIBS $SDL_LIBS"
44053       rm -f conf.sdltest
44054       if test "$cross_compiling" = yes; then
44055   echo $ac_n "cross compiling; assumed OK... $ac_c"
44056 else
44057   cat >conftest.$ac_ext <<_ACEOF
44058 /* confdefs.h.  */
44059 _ACEOF
44060 cat confdefs.h >>conftest.$ac_ext
44061 cat >>conftest.$ac_ext <<_ACEOF
44062 /* end confdefs.h.  */
44063
44064 #include <stdio.h>
44065 #include <stdlib.h>
44066 #include <string.h>
44067 #include "SDL.h"
44068
44069 char*
44070 my_strdup (char *str)
44071 {
44072   char *new_str;
44073
44074   if (str)
44075     {
44076       new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
44077       strcpy (new_str, str);
44078     }
44079   else
44080     new_str = NULL;
44081
44082   return new_str;
44083 }
44084
44085 int main (int argc, char *argv[])
44086 {
44087   int major, minor, micro;
44088   char *tmp_version;
44089
44090   /* This hangs on some systems (?)
44091   system ("touch conf.sdltest");
44092   */
44093   { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
44094
44095   /* HP/UX 9 (%@#!) writes to sscanf strings */
44096   tmp_version = my_strdup("$min_sdl_version");
44097   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
44098      printf("%s, bad version string\n", "$min_sdl_version");
44099      exit(1);
44100    }
44101
44102    if (($sdl_major_version > major) ||
44103       (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
44104       (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
44105     {
44106       return 0;
44107     }
44108   else
44109     {
44110       printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
44111       printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
44112       printf("*** best to upgrade to the required version.\n");
44113       printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
44114       printf("*** to point to the correct copy of sdl-config, and remove the file\n");
44115       printf("*** config.cache before re-running configure\n");
44116       return 1;
44117     }
44118 }
44119
44120
44121 _ACEOF
44122 rm -f conftest$ac_exeext
44123 if { (ac_try="$ac_link"
44124 case "(($ac_try" in
44125   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44126   *) ac_try_echo=$ac_try;;
44127 esac
44128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44129   (eval "$ac_link") 2>&5
44130   ac_status=$?
44131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44132   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
44133   { (case "(($ac_try" in
44134   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44135   *) ac_try_echo=$ac_try;;
44136 esac
44137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44138   (eval "$ac_try") 2>&5
44139   ac_status=$?
44140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44141   (exit $ac_status); }; }; then
44142   :
44143 else
44144   echo "$as_me: program exited with status $ac_status" >&5
44145 echo "$as_me: failed program was:" >&5
44146 sed 's/^/| /' conftest.$ac_ext >&5
44147
44148 ( exit $ac_status )
44149 no_sdl=yes
44150 fi
44151 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
44152 fi
44153
44154
44155        CFLAGS="$ac_save_CFLAGS"
44156        CXXFLAGS="$ac_save_CXXFLAGS"
44157        LIBS="$ac_save_LIBS"
44158      fi
44159   fi
44160   if test "x$no_sdl" = x ; then
44161      { echo "$as_me:$LINENO: result: yes" >&5
44162 echo "${ECHO_T}yes" >&6; }
44163
44164                     EXTRALIBS_SDL="$SDL_LIBS"
44165                     CFLAGS="$SDL_CFLAGS $CFLAGS"
44166                     CXXFLAGS="$SDL_CFLAGS $CXXFLAGS"
44167                     cat >>confdefs.h <<\_ACEOF
44168 #define wxUSE_LIBSDL 1
44169 _ACEOF
44170
44171
44172   else
44173      { echo "$as_me:$LINENO: result: no" >&5
44174 echo "${ECHO_T}no" >&6; }
44175      if test "$SDL_CONFIG" = "no" ; then
44176        echo "*** The sdl-config script installed by SDL could not be found"
44177        echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
44178        echo "*** your path, or set the SDL_CONFIG environment variable to the"
44179        echo "*** full path to sdl-config."
44180      else
44181        if test -f conf.sdltest ; then
44182         :
44183        else
44184           echo "*** Could not run SDL test program, checking why..."
44185           CFLAGS="$CFLAGS $SDL_CFLAGS"
44186           CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
44187           LIBS="$LIBS $SDL_LIBS"
44188           cat >conftest.$ac_ext <<_ACEOF
44189 /* confdefs.h.  */
44190 _ACEOF
44191 cat confdefs.h >>conftest.$ac_ext
44192 cat >>conftest.$ac_ext <<_ACEOF
44193 /* end confdefs.h.  */
44194
44195 #include <stdio.h>
44196 #include "SDL.h"
44197
44198 int main(int argc, char *argv[])
44199 { return 0; }
44200 #undef  main
44201 #define main K_and_R_C_main
44202
44203 int
44204 main ()
44205 {
44206  return 0;
44207   ;
44208   return 0;
44209 }
44210 _ACEOF
44211 rm -f conftest.$ac_objext conftest$ac_exeext
44212 if { (ac_try="$ac_link"
44213 case "(($ac_try" in
44214   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44215   *) ac_try_echo=$ac_try;;
44216 esac
44217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44218   (eval "$ac_link") 2>conftest.er1
44219   ac_status=$?
44220   grep -v '^ *+' conftest.er1 >conftest.err
44221   rm -f conftest.er1
44222   cat conftest.err >&5
44223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44224   (exit $ac_status); } && {
44225          test -z "$ac_c_werror_flag" ||
44226          test ! -s conftest.err
44227        } && test -s conftest$ac_exeext &&
44228        $as_test_x conftest$ac_exeext; then
44229    echo "*** The test program compiled, but did not run. This usually means"
44230           echo "*** that the run-time linker is not finding SDL or finding the wrong"
44231           echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
44232           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
44233           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
44234           echo "*** is required on your system"
44235           echo "***"
44236           echo "*** If you have an old version installed, it is best to remove it, although"
44237           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
44238 else
44239   echo "$as_me: failed program was:" >&5
44240 sed 's/^/| /' conftest.$ac_ext >&5
44241
44242          echo "*** The test program failed to compile or link. See the file config.log for the"
44243           echo "*** exact error that occured. This usually means SDL was incorrectly installed"
44244           echo "*** or that you have moved SDL since it was installed. In the latter case, you"
44245           echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
44246 fi
44247
44248 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
44249       conftest$ac_exeext conftest.$ac_ext
44250           CFLAGS="$ac_save_CFLAGS"
44251           CXXFLAGS="$ac_save_CXXFLAGS"
44252           LIBS="$ac_save_LIBS"
44253        fi
44254      fi
44255      SDL_CFLAGS=""
44256      SDL_LIBS=""
44257      wxUSE_LIBSDL="no"
44258   fi
44259
44260
44261   rm -f conf.sdltest
44262
44263       if test "$wxUSE_LIBSDL" = "yes" -a "$wxUSE_PLUGINS" = "yes" ; then
44264         WITH_PLUGIN_SDL=1
44265       fi
44266     fi
44267   else
44268         if test "$wxUSE_MGL" = 1; then
44269         { echo "$as_me:$LINENO: WARNING: wxSound not supported in MGL under DOS... disabled" >&5
44270 echo "$as_me: WARNING: wxSound not supported in MGL under DOS... disabled" >&2;}
44271         wxUSE_SOUND="no"
44272     fi
44273   fi
44274 fi
44275
44276 if test "$wxUSE_SOUND" = "yes"; then
44277   cat >>confdefs.h <<\_ACEOF
44278 #define wxUSE_SOUND 1
44279 _ACEOF
44280
44281   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sound"
44282 fi
44283
44284 if test "$WXGTK2" = 1; then
44285
44286
44287 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
44288         if test -n "$ac_tool_prefix"; then
44289   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
44290 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
44291 { echo "$as_me:$LINENO: checking for $ac_word" >&5
44292 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
44293 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
44294   echo $ECHO_N "(cached) $ECHO_C" >&6
44295 else
44296   case $PKG_CONFIG in
44297   [\\/]* | ?:[\\/]*)
44298   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
44299   ;;
44300   *)
44301   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44302 for as_dir in $PATH
44303 do
44304   IFS=$as_save_IFS
44305   test -z "$as_dir" && as_dir=.
44306   for ac_exec_ext in '' $ac_executable_extensions; do
44307   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
44308     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
44309     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44310     break 2
44311   fi
44312 done
44313 done
44314 IFS=$as_save_IFS
44315
44316   ;;
44317 esac
44318 fi
44319 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
44320 if test -n "$PKG_CONFIG"; then
44321   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
44322 echo "${ECHO_T}$PKG_CONFIG" >&6; }
44323 else
44324   { echo "$as_me:$LINENO: result: no" >&5
44325 echo "${ECHO_T}no" >&6; }
44326 fi
44327
44328
44329 fi
44330 if test -z "$ac_cv_path_PKG_CONFIG"; then
44331   ac_pt_PKG_CONFIG=$PKG_CONFIG
44332   # Extract the first word of "pkg-config", so it can be a program name with args.
44333 set dummy pkg-config; ac_word=$2
44334 { echo "$as_me:$LINENO: checking for $ac_word" >&5
44335 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
44336 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
44337   echo $ECHO_N "(cached) $ECHO_C" >&6
44338 else
44339   case $ac_pt_PKG_CONFIG in
44340   [\\/]* | ?:[\\/]*)
44341   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
44342   ;;
44343   *)
44344   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44345 for as_dir in $PATH
44346 do
44347   IFS=$as_save_IFS
44348   test -z "$as_dir" && as_dir=.
44349   for ac_exec_ext in '' $ac_executable_extensions; do
44350   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
44351     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
44352     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44353     break 2
44354   fi
44355 done
44356 done
44357 IFS=$as_save_IFS
44358
44359   ;;
44360 esac
44361 fi
44362 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
44363 if test -n "$ac_pt_PKG_CONFIG"; then
44364   { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
44365 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
44366 else
44367   { echo "$as_me:$LINENO: result: no" >&5
44368 echo "${ECHO_T}no" >&6; }
44369 fi
44370
44371   if test "x$ac_pt_PKG_CONFIG" = x; then
44372     PKG_CONFIG=""
44373   else
44374     case $cross_compiling:$ac_tool_warned in
44375 yes:)
44376 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
44377 whose name does not start with the host triplet.  If you think this
44378 configuration is useful to you, please write to autoconf@gnu.org." >&5
44379 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
44380 whose name does not start with the host triplet.  If you think this
44381 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
44382 ac_tool_warned=yes ;;
44383 esac
44384     PKG_CONFIG=$ac_pt_PKG_CONFIG
44385   fi
44386 else
44387   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
44388 fi
44389
44390 fi
44391 if test -n "$PKG_CONFIG"; then
44392         _pkg_min_version=0.9.0
44393         { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
44394 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
44395         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
44396                 { echo "$as_me:$LINENO: result: yes" >&5
44397 echo "${ECHO_T}yes" >&6; }
44398         else
44399                 { echo "$as_me:$LINENO: result: no" >&5
44400 echo "${ECHO_T}no" >&6; }
44401                 PKG_CONFIG=""
44402         fi
44403
44404 fi
44405
44406     if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
44407
44408         if test "$wxUSE_GTKPRINT" = "yes" ; then
44409
44410
44411 pkg_failed=no
44412 { echo "$as_me:$LINENO: checking for GTKPRINT" >&5
44413 echo $ECHO_N "checking for GTKPRINT... $ECHO_C" >&6; }
44414
44415 if test -n "$PKG_CONFIG"; then
44416     if test -n "$GTKPRINT_CFLAGS"; then
44417         pkg_cv_GTKPRINT_CFLAGS="$GTKPRINT_CFLAGS"
44418     else
44419         if test -n "$PKG_CONFIG" && \
44420     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk+-unix-print-2.0 >= 2.10\"") >&5
44421   ($PKG_CONFIG --exists --print-errors "gtk+-unix-print-2.0 >= 2.10") 2>&5
44422   ac_status=$?
44423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44424   (exit $ac_status); }; then
44425   pkg_cv_GTKPRINT_CFLAGS=`$PKG_CONFIG --cflags "gtk+-unix-print-2.0 >= 2.10" 2>/dev/null`
44426 else
44427   pkg_failed=yes
44428 fi
44429     fi
44430 else
44431         pkg_failed=untried
44432 fi
44433 if test -n "$PKG_CONFIG"; then
44434     if test -n "$GTKPRINT_LIBS"; then
44435         pkg_cv_GTKPRINT_LIBS="$GTKPRINT_LIBS"
44436     else
44437         if test -n "$PKG_CONFIG" && \
44438     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk+-unix-print-2.0 >= 2.10\"") >&5
44439   ($PKG_CONFIG --exists --print-errors "gtk+-unix-print-2.0 >= 2.10") 2>&5
44440   ac_status=$?
44441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44442   (exit $ac_status); }; then
44443   pkg_cv_GTKPRINT_LIBS=`$PKG_CONFIG --libs "gtk+-unix-print-2.0 >= 2.10" 2>/dev/null`
44444 else
44445   pkg_failed=yes
44446 fi
44447     fi
44448 else
44449         pkg_failed=untried
44450 fi
44451
44452
44453
44454 if test $pkg_failed = yes; then
44455
44456 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
44457         _pkg_short_errors_supported=yes
44458 else
44459         _pkg_short_errors_supported=no
44460 fi
44461         if test $_pkg_short_errors_supported = yes; then
44462                 GTKPRINT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gtk+-unix-print-2.0 >= 2.10"`
44463         else
44464                 GTKPRINT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+-unix-print-2.0 >= 2.10"`
44465         fi
44466         # Put the nasty error message in config.log where it belongs
44467         echo "$GTKPRINT_PKG_ERRORS" >&5
44468
44469
44470                         { echo "$as_me:$LINENO: WARNING: GTK printing support not found (GTK+ >= 2.10), library will use GNOME printing support or standard PostScript printing" >&5
44471 echo "$as_me: WARNING: GTK printing support not found (GTK+ >= 2.10), library will use GNOME printing support or standard PostScript printing" >&2;}
44472                         wxUSE_GTKPRINT="no"
44473
44474
44475 elif test $pkg_failed = untried; then
44476
44477                         { echo "$as_me:$LINENO: WARNING: GTK printing support not found (GTK+ >= 2.10), library will use GNOME printing support or standard PostScript printing" >&5
44478 echo "$as_me: WARNING: GTK printing support not found (GTK+ >= 2.10), library will use GNOME printing support or standard PostScript printing" >&2;}
44479                         wxUSE_GTKPRINT="no"
44480
44481
44482 else
44483         GTKPRINT_CFLAGS=$pkg_cv_GTKPRINT_CFLAGS
44484         GTKPRINT_LIBS=$pkg_cv_GTKPRINT_LIBS
44485         { echo "$as_me:$LINENO: result: yes" >&5
44486 echo "${ECHO_T}yes" >&6; }
44487
44488                         CFLAGS="$GTKPRINT_CFLAGS $CFLAGS"
44489                         CXXFLAGS="$GTKPRINT_CFLAGS $CXXFLAGS"
44490                         cat >>confdefs.h <<\_ACEOF
44491 #define wxUSE_GTKPRINT 1
44492 _ACEOF
44493
44494
44495 fi
44496         fi
44497
44498         if test "$wxUSE_LIBGNOMEPRINT" = "yes" ; then
44499
44500
44501 pkg_failed=no
44502 { echo "$as_me:$LINENO: checking for LIBGNOMEPRINTUI" >&5
44503 echo $ECHO_N "checking for LIBGNOMEPRINTUI... $ECHO_C" >&6; }
44504
44505 if test -n "$PKG_CONFIG"; then
44506     if test -n "$LIBGNOMEPRINTUI_CFLAGS"; then
44507         pkg_cv_LIBGNOMEPRINTUI_CFLAGS="$LIBGNOMEPRINTUI_CFLAGS"
44508     else
44509         if test -n "$PKG_CONFIG" && \
44510     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgnomeprintui-2.2 >= 2.8\"") >&5
44511   ($PKG_CONFIG --exists --print-errors "libgnomeprintui-2.2 >= 2.8") 2>&5
44512   ac_status=$?
44513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44514   (exit $ac_status); }; then
44515   pkg_cv_LIBGNOMEPRINTUI_CFLAGS=`$PKG_CONFIG --cflags "libgnomeprintui-2.2 >= 2.8" 2>/dev/null`
44516 else
44517   pkg_failed=yes
44518 fi
44519     fi
44520 else
44521         pkg_failed=untried
44522 fi
44523 if test -n "$PKG_CONFIG"; then
44524     if test -n "$LIBGNOMEPRINTUI_LIBS"; then
44525         pkg_cv_LIBGNOMEPRINTUI_LIBS="$LIBGNOMEPRINTUI_LIBS"
44526     else
44527         if test -n "$PKG_CONFIG" && \
44528     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgnomeprintui-2.2 >= 2.8\"") >&5
44529   ($PKG_CONFIG --exists --print-errors "libgnomeprintui-2.2 >= 2.8") 2>&5
44530   ac_status=$?
44531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44532   (exit $ac_status); }; then
44533   pkg_cv_LIBGNOMEPRINTUI_LIBS=`$PKG_CONFIG --libs "libgnomeprintui-2.2 >= 2.8" 2>/dev/null`
44534 else
44535   pkg_failed=yes
44536 fi
44537     fi
44538 else
44539         pkg_failed=untried
44540 fi
44541
44542
44543
44544 if test $pkg_failed = yes; then
44545
44546 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
44547         _pkg_short_errors_supported=yes
44548 else
44549         _pkg_short_errors_supported=no
44550 fi
44551         if test $_pkg_short_errors_supported = yes; then
44552                 LIBGNOMEPRINTUI_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libgnomeprintui-2.2 >= 2.8"`
44553         else
44554                 LIBGNOMEPRINTUI_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libgnomeprintui-2.2 >= 2.8"`
44555         fi
44556         # Put the nasty error message in config.log where it belongs
44557         echo "$LIBGNOMEPRINTUI_PKG_ERRORS" >&5
44558
44559
44560                         { echo "$as_me:$LINENO: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&5
44561 echo "$as_me: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&2;}
44562                         wxUSE_LIBGNOMEPRINT="no"
44563
44564
44565 elif test $pkg_failed = untried; then
44566
44567                         { echo "$as_me:$LINENO: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&5
44568 echo "$as_me: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&2;}
44569                         wxUSE_LIBGNOMEPRINT="no"
44570
44571
44572 else
44573         LIBGNOMEPRINTUI_CFLAGS=$pkg_cv_LIBGNOMEPRINTUI_CFLAGS
44574         LIBGNOMEPRINTUI_LIBS=$pkg_cv_LIBGNOMEPRINTUI_LIBS
44575         { echo "$as_me:$LINENO: result: yes" >&5
44576 echo "${ECHO_T}yes" >&6; }
44577
44578                         CFLAGS="$LIBGNOMEPRINTUI_CFLAGS $CFLAGS"
44579                         CXXFLAGS="$LIBGNOMEPRINTUI_CFLAGS $CXXFLAGS"
44580                         cat >>confdefs.h <<\_ACEOF
44581 #define wxUSE_LIBGNOMEPRINT 1
44582 _ACEOF
44583
44584
44585 fi
44586         fi
44587     fi
44588
44589     if test "$wxUSE_MIMETYPE" = "yes" ; then
44590         if test "$wxUSE_LIBGNOMEVFS" = "yes" ; then
44591
44592
44593 pkg_failed=no
44594 { echo "$as_me:$LINENO: checking for GNOMEVFS" >&5
44595 echo $ECHO_N "checking for GNOMEVFS... $ECHO_C" >&6; }
44596
44597 if test -n "$PKG_CONFIG"; then
44598     if test -n "$GNOMEVFS_CFLAGS"; then
44599         pkg_cv_GNOMEVFS_CFLAGS="$GNOMEVFS_CFLAGS"
44600     else
44601         if test -n "$PKG_CONFIG" && \
44602     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gnome-vfs-2.0 >= 2.0\"") >&5
44603   ($PKG_CONFIG --exists --print-errors "gnome-vfs-2.0 >= 2.0") 2>&5
44604   ac_status=$?
44605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44606   (exit $ac_status); }; then
44607   pkg_cv_GNOMEVFS_CFLAGS=`$PKG_CONFIG --cflags "gnome-vfs-2.0 >= 2.0" 2>/dev/null`
44608 else
44609   pkg_failed=yes
44610 fi
44611     fi
44612 else
44613         pkg_failed=untried
44614 fi
44615 if test -n "$PKG_CONFIG"; then
44616     if test -n "$GNOMEVFS_LIBS"; then
44617         pkg_cv_GNOMEVFS_LIBS="$GNOMEVFS_LIBS"
44618     else
44619         if test -n "$PKG_CONFIG" && \
44620     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gnome-vfs-2.0 >= 2.0\"") >&5
44621   ($PKG_CONFIG --exists --print-errors "gnome-vfs-2.0 >= 2.0") 2>&5
44622   ac_status=$?
44623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44624   (exit $ac_status); }; then
44625   pkg_cv_GNOMEVFS_LIBS=`$PKG_CONFIG --libs "gnome-vfs-2.0 >= 2.0" 2>/dev/null`
44626 else
44627   pkg_failed=yes
44628 fi
44629     fi
44630 else
44631         pkg_failed=untried
44632 fi
44633
44634
44635
44636 if test $pkg_failed = yes; then
44637
44638 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
44639         _pkg_short_errors_supported=yes
44640 else
44641         _pkg_short_errors_supported=no
44642 fi
44643         if test $_pkg_short_errors_supported = yes; then
44644                 GNOMEVFS_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gnome-vfs-2.0 >= 2.0"`
44645         else
44646                 GNOMEVFS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gnome-vfs-2.0 >= 2.0"`
44647         fi
44648         # Put the nasty error message in config.log where it belongs
44649         echo "$GNOMEVFS_PKG_ERRORS" >&5
44650
44651
44652                         { echo "$as_me:$LINENO: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&5
44653 echo "$as_me: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&2;}
44654                         wxUSE_LIBGNOMEVFS="no"
44655
44656
44657 elif test $pkg_failed = untried; then
44658
44659                         { echo "$as_me:$LINENO: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&5
44660 echo "$as_me: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&2;}
44661                         wxUSE_LIBGNOMEVFS="no"
44662
44663
44664 else
44665         GNOMEVFS_CFLAGS=$pkg_cv_GNOMEVFS_CFLAGS
44666         GNOMEVFS_LIBS=$pkg_cv_GNOMEVFS_LIBS
44667         { echo "$as_me:$LINENO: result: yes" >&5
44668 echo "${ECHO_T}yes" >&6; }
44669
44670                         CFLAGS="$GNOMEVFS_CFLAGS $CFLAGS"
44671                         CXXFLAGS="$GNOMEVFS_CFLAGS $CXXFLAGS"
44672                         cat >>confdefs.h <<\_ACEOF
44673 #define wxUSE_LIBGNOMEVFS 1
44674 _ACEOF
44675
44676
44677 fi
44678         fi
44679     fi
44680
44681     if test "$wxUSE_LIBHILDON" = "yes" ; then
44682
44683 pkg_failed=no
44684 { echo "$as_me:$LINENO: checking for HILDON" >&5
44685 echo $ECHO_N "checking for HILDON... $ECHO_C" >&6; }
44686
44687 if test -n "$PKG_CONFIG"; then
44688     if test -n "$HILDON_CFLAGS"; then
44689         pkg_cv_HILDON_CFLAGS="$HILDON_CFLAGS"
44690     else
44691         if test -n "$PKG_CONFIG" && \
44692     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"hildon-lgpl >= 0.9\"") >&5
44693   ($PKG_CONFIG --exists --print-errors "hildon-lgpl >= 0.9") 2>&5
44694   ac_status=$?
44695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44696   (exit $ac_status); }; then
44697   pkg_cv_HILDON_CFLAGS=`$PKG_CONFIG --cflags "hildon-lgpl >= 0.9" 2>/dev/null`
44698 else
44699   pkg_failed=yes
44700 fi
44701     fi
44702 else
44703         pkg_failed=untried
44704 fi
44705 if test -n "$PKG_CONFIG"; then
44706     if test -n "$HILDON_LIBS"; then
44707         pkg_cv_HILDON_LIBS="$HILDON_LIBS"
44708     else
44709         if test -n "$PKG_CONFIG" && \
44710     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"hildon-lgpl >= 0.9\"") >&5
44711   ($PKG_CONFIG --exists --print-errors "hildon-lgpl >= 0.9") 2>&5
44712   ac_status=$?
44713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44714   (exit $ac_status); }; then
44715   pkg_cv_HILDON_LIBS=`$PKG_CONFIG --libs "hildon-lgpl >= 0.9" 2>/dev/null`
44716 else
44717   pkg_failed=yes
44718 fi
44719     fi
44720 else
44721         pkg_failed=untried
44722 fi
44723
44724
44725
44726 if test $pkg_failed = yes; then
44727
44728 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
44729         _pkg_short_errors_supported=yes
44730 else
44731         _pkg_short_errors_supported=no
44732 fi
44733         if test $_pkg_short_errors_supported = yes; then
44734                 HILDON_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "hildon-lgpl >= 0.9"`
44735         else
44736                 HILDON_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "hildon-lgpl >= 0.9"`
44737         fi
44738         # Put the nasty error message in config.log where it belongs
44739         echo "$HILDON_PKG_ERRORS" >&5
44740
44741
44742                 { echo "$as_me:$LINENO: WARNING: libhildon_lgpl not found" >&5
44743 echo "$as_me: WARNING: libhildon_lgpl not found" >&2;}
44744                         wxUSE_LIBHILDON="no"
44745                         ac_hildon_lgpl=0
44746
44747
44748 elif test $pkg_failed = untried; then
44749
44750                 { echo "$as_me:$LINENO: WARNING: libhildon_lgpl not found" >&5
44751 echo "$as_me: WARNING: libhildon_lgpl not found" >&2;}
44752                         wxUSE_LIBHILDON="no"
44753                         ac_hildon_lgpl=0
44754
44755
44756 else
44757         HILDON_CFLAGS=$pkg_cv_HILDON_CFLAGS
44758         HILDON_LIBS=$pkg_cv_HILDON_LIBS
44759         { echo "$as_me:$LINENO: result: yes" >&5
44760 echo "${ECHO_T}yes" >&6; }
44761
44762                 EXTRALIBS_HILDON="$HILDON_LIBS"
44763                 CFLAGS="$CFLAGS $HILDON_CFLAGS"
44764                 CXXFLAGS="$CXXFLAGS $HILDON_CFLAGS"
44765                 cat >>confdefs.h <<\_ACEOF
44766 #define wxUSE_LIBHILDON 1
44767 _ACEOF
44768
44769                 ac_hildon_lgpl=1
44770
44771 fi
44772
44773         if test "$ac_hildon_lgpl" = 0 ; then
44774
44775 pkg_failed=no
44776 { echo "$as_me:$LINENO: checking for HILDON2" >&5
44777 echo $ECHO_N "checking for HILDON2... $ECHO_C" >&6; }
44778
44779 if test -n "$PKG_CONFIG"; then
44780     if test -n "$HILDON2_CFLAGS"; then
44781         pkg_cv_HILDON2_CFLAGS="$HILDON2_CFLAGS"
44782     else
44783         if test -n "$PKG_CONFIG" && \
44784     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"hildon-1 >= 1.99\"") >&5
44785   ($PKG_CONFIG --exists --print-errors "hildon-1 >= 1.99") 2>&5
44786   ac_status=$?
44787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44788   (exit $ac_status); }; then
44789   pkg_cv_HILDON2_CFLAGS=`$PKG_CONFIG --cflags "hildon-1 >= 1.99" 2>/dev/null`
44790 else
44791   pkg_failed=yes
44792 fi
44793     fi
44794 else
44795         pkg_failed=untried
44796 fi
44797 if test -n "$PKG_CONFIG"; then
44798     if test -n "$HILDON2_LIBS"; then
44799         pkg_cv_HILDON2_LIBS="$HILDON2_LIBS"
44800     else
44801         if test -n "$PKG_CONFIG" && \
44802     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"hildon-1 >= 1.99\"") >&5
44803   ($PKG_CONFIG --exists --print-errors "hildon-1 >= 1.99") 2>&5
44804   ac_status=$?
44805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44806   (exit $ac_status); }; then
44807   pkg_cv_HILDON2_LIBS=`$PKG_CONFIG --libs "hildon-1 >= 1.99" 2>/dev/null`
44808 else
44809   pkg_failed=yes
44810 fi
44811     fi
44812 else
44813         pkg_failed=untried
44814 fi
44815
44816
44817
44818 if test $pkg_failed = yes; then
44819
44820 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
44821         _pkg_short_errors_supported=yes
44822 else
44823         _pkg_short_errors_supported=no
44824 fi
44825         if test $_pkg_short_errors_supported = yes; then
44826                 HILDON2_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "hildon-1 >= 1.99"`
44827         else
44828                 HILDON2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "hildon-1 >= 1.99"`
44829         fi
44830         # Put the nasty error message in config.log where it belongs
44831         echo "$HILDON2_PKG_ERRORS" >&5
44832
44833
44834                     { echo "$as_me:$LINENO: WARNING: libhildon_1 not found" >&5
44835 echo "$as_me: WARNING: libhildon_1 not found" >&2;}
44836                             wxUSE_LIBHILDON2="no"
44837
44838
44839 elif test $pkg_failed = untried; then
44840
44841                     { echo "$as_me:$LINENO: WARNING: libhildon_1 not found" >&5
44842 echo "$as_me: WARNING: libhildon_1 not found" >&2;}
44843                             wxUSE_LIBHILDON2="no"
44844
44845
44846 else
44847         HILDON2_CFLAGS=$pkg_cv_HILDON2_CFLAGS
44848         HILDON2_LIBS=$pkg_cv_HILDON2_LIBS
44849         { echo "$as_me:$LINENO: result: yes" >&5
44850 echo "${ECHO_T}yes" >&6; }
44851
44852                     EXTRALIBS_HILDON="$HILDON2_LIBS"
44853                     CFLAGS="$CFLAGS $HILDON2_CFLAGS"
44854                     CXXFLAGS="$CXXFLAGS $HILDON2_CFLAGS"
44855                     cat >>confdefs.h <<\_ACEOF
44856 #define wxUSE_LIBHILDON2 1
44857 _ACEOF
44858
44859
44860 fi
44861         fi
44862     fi
44863 fi
44864
44865 if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
44866   cat >>confdefs.h <<\_ACEOF
44867 #define wxUSE_CMDLINE_PARSER 1
44868 _ACEOF
44869
44870 fi
44871
44872 if test "$wxUSE_STOPWATCH" = "yes"; then
44873   cat >>confdefs.h <<\_ACEOF
44874 #define wxUSE_STOPWATCH 1
44875 _ACEOF
44876
44877 fi
44878
44879 if test "$wxUSE_DATETIME" = "yes"; then
44880   cat >>confdefs.h <<\_ACEOF
44881 #define wxUSE_DATETIME 1
44882 _ACEOF
44883
44884 fi
44885
44886 if test "$wxUSE_FILE" = "yes"; then
44887   cat >>confdefs.h <<\_ACEOF
44888 #define wxUSE_FILE 1
44889 _ACEOF
44890
44891 fi
44892
44893 if test "$wxUSE_FFILE" = "yes"; then
44894   cat >>confdefs.h <<\_ACEOF
44895 #define wxUSE_FFILE 1
44896 _ACEOF
44897
44898 fi
44899
44900 if test "$wxUSE_ARCHIVE_STREAMS" = "yes"; then
44901   if test "$wxUSE_STREAMS" != yes; then
44902     { echo "$as_me:$LINENO: WARNING: wxArchive requires wxStreams... disabled" >&5
44903 echo "$as_me: WARNING: wxArchive requires wxStreams... disabled" >&2;}
44904     wxUSE_ARCHIVE_STREAMS=no
44905   else
44906     cat >>confdefs.h <<\_ACEOF
44907 #define wxUSE_ARCHIVE_STREAMS 1
44908 _ACEOF
44909
44910   fi
44911 fi
44912
44913 if test "$wxUSE_ZIPSTREAM" = "yes"; then
44914   if test "$wxUSE_ARCHIVE_STREAMS" != "yes"; then
44915     { echo "$as_me:$LINENO: WARNING: wxZip requires wxArchive... disabled" >&5
44916 echo "$as_me: WARNING: wxZip requires wxArchive... disabled" >&2;}
44917   elif test "$wxUSE_ZLIB" = "no"; then
44918     { echo "$as_me:$LINENO: WARNING: wxZip requires wxZlib... disabled" >&5
44919 echo "$as_me: WARNING: wxZip requires wxZlib... disabled" >&2;}
44920   else
44921     cat >>confdefs.h <<\_ACEOF
44922 #define wxUSE_ZIPSTREAM 1
44923 _ACEOF
44924
44925   fi
44926 fi
44927
44928 if test "$wxUSE_TARSTREAM" = "yes"; then
44929   if test "$wxUSE_ARCHIVE_STREAMS" != "yes"; then
44930     { echo "$as_me:$LINENO: WARNING: wxTar requires wxArchive... disabled" >&5
44931 echo "$as_me: WARNING: wxTar requires wxArchive... disabled" >&2;}
44932   else
44933     cat >>confdefs.h <<\_ACEOF
44934 #define wxUSE_TARSTREAM 1
44935 _ACEOF
44936
44937   fi
44938 fi
44939
44940 if test "$wxUSE_FILE_HISTORY" = "yes"; then
44941   cat >>confdefs.h <<\_ACEOF
44942 #define wxUSE_FILE_HISTORY 1
44943 _ACEOF
44944
44945 fi
44946
44947 if test "$wxUSE_FILESYSTEM" = "yes"; then
44948   if test "$wxUSE_STREAMS" != yes -o \( "$wxUSE_FILE" != yes -a "$wxUSE_FFILE" != yes \); then
44949     { echo "$as_me:$LINENO: WARNING: wxFileSystem requires wxStreams and wxFile or wxFFile... disabled" >&5
44950 echo "$as_me: WARNING: wxFileSystem requires wxStreams and wxFile or wxFFile... disabled" >&2;}
44951     wxUSE_FILESYSTEM=no
44952   else
44953     cat >>confdefs.h <<\_ACEOF
44954 #define wxUSE_FILESYSTEM 1
44955 _ACEOF
44956
44957   fi
44958 fi
44959
44960 if test "$wxUSE_FS_ARCHIVE" = "yes"; then
44961   if test "$wxUSE_FILESYSTEM" != yes -o "$wxUSE_ARCHIVE_STREAMS" != yes; then
44962     { echo "$as_me:$LINENO: WARNING: wxArchiveFSHandler requires wxArchive and wxFileSystem... disabled" >&5
44963 echo "$as_me: WARNING: wxArchiveFSHandler requires wxArchive and wxFileSystem... disabled" >&2;}
44964   else
44965     cat >>confdefs.h <<\_ACEOF
44966 #define wxUSE_FS_ARCHIVE 1
44967 _ACEOF
44968
44969   fi
44970 fi
44971
44972 if test "$wxUSE_FS_ZIP" = "yes"; then
44973   if test "$wxUSE_FS_ARCHIVE" != yes; then
44974     { echo "$as_me:$LINENO: WARNING: wxZipFSHandler requires wxArchiveFSHandler... disabled" >&5
44975 echo "$as_me: WARNING: wxZipFSHandler requires wxArchiveFSHandler... disabled" >&2;}
44976   else
44977     cat >>confdefs.h <<\_ACEOF
44978 #define wxUSE_FS_ZIP 1
44979 _ACEOF
44980
44981   fi
44982 fi
44983
44984 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
44985   if test "$USE_UNIX" != 1; then
44986     { echo "$as_me:$LINENO: WARNING: Catching fatal exceptions not currently supported on this system, wxApp::OnFatalException will not be called" >&5
44987 echo "$as_me: WARNING: Catching fatal exceptions not currently supported on this system, wxApp::OnFatalException will not be called" >&2;}
44988     wxUSE_ON_FATAL_EXCEPTION=no
44989   else
44990     cat >>confdefs.h <<\_ACEOF
44991 #define wxUSE_ON_FATAL_EXCEPTION 1
44992 _ACEOF
44993
44994   fi
44995 fi
44996
44997 if test "$wxUSE_STACKWALKER" = "yes"; then
44998     cat >>confdefs.h <<\_ACEOF
44999 #define wxUSE_STACKWALKER 1
45000 _ACEOF
45001
45002 fi
45003
45004 if test "$wxUSE_DEBUGREPORT" = "yes"; then
45005     if test "$USE_UNIX" != 1 -a "$USE_WIN32" != 1; then
45006         { echo "$as_me:$LINENO: WARNING: Creating debug reports not currently supported on this system, disabled" >&5
45007 echo "$as_me: WARNING: Creating debug reports not currently supported on this system, disabled" >&2;}
45008         wxUSE_DEBUGREPORT=no
45009     else
45010         cat >>confdefs.h <<\_ACEOF
45011 #define wxUSE_DEBUGREPORT 1
45012 _ACEOF
45013
45014         if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
45015             SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS debugrpt"
45016         fi
45017     fi
45018 fi
45019
45020 if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
45021   cat >>confdefs.h <<\_ACEOF
45022 #define wxUSE_SNGLINST_CHECKER 1
45023 _ACEOF
45024
45025 fi
45026
45027 if test "$wxUSE_BUSYINFO" = "yes"; then
45028   cat >>confdefs.h <<\_ACEOF
45029 #define wxUSE_BUSYINFO 1
45030 _ACEOF
45031
45032 fi
45033
45034 if test "$wxUSE_STD_CONTAINERS" = "yes"; then
45035   cat >>confdefs.h <<\_ACEOF
45036 #define wxUSE_STD_CONTAINERS 1
45037 _ACEOF
45038
45039 fi
45040
45041 if test "$wxUSE_STD_IOSTREAM" = "yes"; then
45042   cat >>confdefs.h <<\_ACEOF
45043 #define wxUSE_STD_IOSTREAM 1
45044 _ACEOF
45045
45046 fi
45047
45048 if test "$wxUSE_STD_STRING" = "yes"; then
45049   cat >>confdefs.h <<\_ACEOF
45050 #define wxUSE_STD_STRING 1
45051 _ACEOF
45052
45053 fi
45054
45055 if test "$wxUSE_STD_STRING_CONV_IN_WXSTRING" = "yes"; then
45056   cat >>confdefs.h <<\_ACEOF
45057 #define wxUSE_STD_STRING_CONV_IN_WXSTRING 1
45058 _ACEOF
45059
45060 fi
45061
45062 if test "$wxUSE_STDPATHS" = "yes"; then
45063   cat >>confdefs.h <<\_ACEOF
45064 #define wxUSE_STDPATHS 1
45065 _ACEOF
45066
45067 fi
45068
45069 if test "$wxUSE_TEXTBUFFER" = "yes"; then
45070     cat >>confdefs.h <<\_ACEOF
45071 #define wxUSE_TEXTBUFFER 1
45072 _ACEOF
45073
45074 fi
45075
45076 if test "$wxUSE_TEXTFILE" = "yes"; then
45077   if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then
45078     { echo "$as_me:$LINENO: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&5
45079 echo "$as_me: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&2;}
45080   else
45081     cat >>confdefs.h <<\_ACEOF
45082 #define wxUSE_TEXTFILE 1
45083 _ACEOF
45084
45085   fi
45086 fi
45087
45088 if test "$wxUSE_CONFIG" = "yes" ; then
45089   if test "$wxUSE_TEXTFILE" != "yes"; then
45090     { echo "$as_me:$LINENO: WARNING: wxConfig requires wxTextFile... disabled" >&5
45091 echo "$as_me: WARNING: wxConfig requires wxTextFile... disabled" >&2;}
45092   else
45093     cat >>confdefs.h <<\_ACEOF
45094 #define wxUSE_CONFIG 1
45095 _ACEOF
45096
45097     cat >>confdefs.h <<\_ACEOF
45098 #define wxUSE_CONFIG_NATIVE 1
45099 _ACEOF
45100
45101     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
45102   fi
45103 fi
45104
45105 if test "$wxUSE_INTL" = "yes" ; then
45106   if test "$wxUSE_FILE" != "yes"; then
45107     { echo "$as_me:$LINENO: WARNING: I18n code requires wxFile... disabled" >&5
45108 echo "$as_me: WARNING: I18n code requires wxFile... disabled" >&2;}
45109   else
45110     cat >>confdefs.h <<\_ACEOF
45111 #define wxUSE_INTL 1
45112 _ACEOF
45113
45114     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
45115     GUIDIST="$GUIDIST INTL_DIST"
45116   fi
45117 fi
45118
45119 if test "$wxUSE_XLOCALE" = "yes" ; then
45120     cat >>confdefs.h <<\_ACEOF
45121 #define wxUSE_XLOCALE 1
45122 _ACEOF
45123
45124     { echo "$as_me:$LINENO: checking for locale_t" >&5
45125 echo $ECHO_N "checking for locale_t... $ECHO_C" >&6; }
45126 if test "${ac_cv_type_locale_t+set}" = set; then
45127   echo $ECHO_N "(cached) $ECHO_C" >&6
45128 else
45129   cat >conftest.$ac_ext <<_ACEOF
45130 /* confdefs.h.  */
45131 _ACEOF
45132 cat confdefs.h >>conftest.$ac_ext
45133 cat >>conftest.$ac_ext <<_ACEOF
45134 /* end confdefs.h.  */
45135 #include <xlocale.h>
45136                     #include <locale.h>
45137
45138 typedef locale_t ac__type_new_;
45139 int
45140 main ()
45141 {
45142 if ((ac__type_new_ *) 0)
45143   return 0;
45144 if (sizeof (ac__type_new_))
45145   return 0;
45146   ;
45147   return 0;
45148 }
45149 _ACEOF
45150 rm -f conftest.$ac_objext
45151 if { (ac_try="$ac_compile"
45152 case "(($ac_try" in
45153   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45154   *) ac_try_echo=$ac_try;;
45155 esac
45156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45157   (eval "$ac_compile") 2>conftest.er1
45158   ac_status=$?
45159   grep -v '^ *+' conftest.er1 >conftest.err
45160   rm -f conftest.er1
45161   cat conftest.err >&5
45162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45163   (exit $ac_status); } && {
45164          test -z "$ac_c_werror_flag" ||
45165          test ! -s conftest.err
45166        } && test -s conftest.$ac_objext; then
45167   ac_cv_type_locale_t=yes
45168 else
45169   echo "$as_me: failed program was:" >&5
45170 sed 's/^/| /' conftest.$ac_ext >&5
45171
45172         ac_cv_type_locale_t=no
45173 fi
45174
45175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45176 fi
45177 { echo "$as_me:$LINENO: result: $ac_cv_type_locale_t" >&5
45178 echo "${ECHO_T}$ac_cv_type_locale_t" >&6; }
45179 if test $ac_cv_type_locale_t = yes; then
45180
45181 cat >>confdefs.h <<_ACEOF
45182 #define HAVE_LOCALE_T 1
45183 _ACEOF
45184
45185
45186 fi
45187
45188 fi
45189
45190 if test "$wxUSE_LOG" = "yes"; then
45191   cat >>confdefs.h <<\_ACEOF
45192 #define wxUSE_LOG 1
45193 _ACEOF
45194
45195
45196     if test "$wxUSE_LOGGUI" = "yes"; then
45197       cat >>confdefs.h <<\_ACEOF
45198 #define wxUSE_LOGGUI 1
45199 _ACEOF
45200
45201     fi
45202
45203     if test "$wxUSE_LOGWINDOW" = "yes"; then
45204       cat >>confdefs.h <<\_ACEOF
45205 #define wxUSE_LOGWINDOW 1
45206 _ACEOF
45207
45208     fi
45209
45210     if test "$wxUSE_LOGDIALOG" = "yes"; then
45211       cat >>confdefs.h <<\_ACEOF
45212 #define wxUSE_LOG_DIALOG 1
45213 _ACEOF
45214
45215     fi
45216
45217         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS keyboard"
45218 fi
45219
45220 if test "$wxUSE_LONGLONG" = "yes"; then
45221   cat >>confdefs.h <<\_ACEOF
45222 #define wxUSE_LONGLONG 1
45223 _ACEOF
45224
45225 fi
45226
45227 if test "$wxUSE_GEOMETRY" = "yes"; then
45228   cat >>confdefs.h <<\_ACEOF
45229 #define wxUSE_GEOMETRY 1
45230 _ACEOF
45231
45232 fi
45233
45234 if test "$wxUSE_BASE64" = "yes"; then
45235   cat >>confdefs.h <<\_ACEOF
45236 #define wxUSE_BASE64 1
45237 _ACEOF
45238
45239 fi
45240
45241 if test "$wxUSE_STREAMS" = "yes" ; then
45242   cat >>confdefs.h <<\_ACEOF
45243 #define wxUSE_STREAMS 1
45244 _ACEOF
45245
45246 fi
45247
45248 if test "$wxUSE_PRINTF_POS_PARAMS" = "yes"; then
45249   cat >>confdefs.h <<\_ACEOF
45250 #define wxUSE_PRINTF_POS_PARAMS 1
45251 _ACEOF
45252
45253 fi
45254
45255 if test "$wxUSE_OBJC_UNIQUIFYING" = "yes"; then
45256   cat >>confdefs.h <<\_ACEOF
45257 #define wxUSE_OBJC_UNIQUIFYING 1
45258 _ACEOF
45259
45260 fi
45261
45262
45263 if test "$wxUSE_CONSOLE_EVENTLOOP" = "yes"; then
45264     cat >>confdefs.h <<\_ACEOF
45265 #define wxUSE_CONSOLE_EVENTLOOP 1
45266 _ACEOF
45267
45268
45269     if test "$wxUSE_UNIX" = "yes"; then
45270         if test "$wxUSE_SELECT_DISPATCHER" = "yes"; then
45271             cat >>confdefs.h <<\_ACEOF
45272 #define wxUSE_SELECT_DISPATCHER 1
45273 _ACEOF
45274
45275         fi
45276
45277         if test "$wxUSE_EPOLL_DISPATCHER" = "yes"; then
45278
45279 for ac_header in sys/epoll.h
45280 do
45281 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
45282 { echo "$as_me:$LINENO: checking for $ac_header" >&5
45283 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
45284 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
45285   echo $ECHO_N "(cached) $ECHO_C" >&6
45286 else
45287   cat >conftest.$ac_ext <<_ACEOF
45288 /* confdefs.h.  */
45289 _ACEOF
45290 cat confdefs.h >>conftest.$ac_ext
45291 cat >>conftest.$ac_ext <<_ACEOF
45292 /* end confdefs.h.  */
45293 $ac_includes_default
45294
45295 #include <$ac_header>
45296 _ACEOF
45297 rm -f conftest.$ac_objext
45298 if { (ac_try="$ac_compile"
45299 case "(($ac_try" in
45300   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45301   *) ac_try_echo=$ac_try;;
45302 esac
45303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45304   (eval "$ac_compile") 2>conftest.er1
45305   ac_status=$?
45306   grep -v '^ *+' conftest.er1 >conftest.err
45307   rm -f conftest.er1
45308   cat conftest.err >&5
45309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45310   (exit $ac_status); } && {
45311          test -z "$ac_c_werror_flag" ||
45312          test ! -s conftest.err
45313        } && test -s conftest.$ac_objext; then
45314   eval "$as_ac_Header=yes"
45315 else
45316   echo "$as_me: failed program was:" >&5
45317 sed 's/^/| /' conftest.$ac_ext >&5
45318
45319         eval "$as_ac_Header=no"
45320 fi
45321
45322 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45323 fi
45324 ac_res=`eval echo '${'$as_ac_Header'}'`
45325                { echo "$as_me:$LINENO: result: $ac_res" >&5
45326 echo "${ECHO_T}$ac_res" >&6; }
45327 if test `eval echo '${'$as_ac_Header'}'` = yes; then
45328   cat >>confdefs.h <<_ACEOF
45329 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
45330 _ACEOF
45331
45332 fi
45333
45334 done
45335
45336             if test "$ac_cv_header_sys_epoll_h" = "yes"; then
45337                 cat >>confdefs.h <<\_ACEOF
45338 #define wxUSE_EPOLL_DISPATCHER 1
45339 _ACEOF
45340
45341             else
45342                 { echo "$as_me:$LINENO: WARNING: sys/epoll.h not available, wxEpollDispatcher disabled" >&5
45343 echo "$as_me: WARNING: sys/epoll.h not available, wxEpollDispatcher disabled" >&2;}
45344             fi
45345         fi
45346     fi
45347 fi
45348
45349
45350
45351
45352 for ac_func in gettimeofday ftime
45353 do
45354 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
45355 { echo "$as_me:$LINENO: checking for $ac_func" >&5
45356 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
45357 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
45358   echo $ECHO_N "(cached) $ECHO_C" >&6
45359 else
45360   cat >conftest.$ac_ext <<_ACEOF
45361 /* confdefs.h.  */
45362 _ACEOF
45363 cat confdefs.h >>conftest.$ac_ext
45364 cat >>conftest.$ac_ext <<_ACEOF
45365 /* end confdefs.h.  */
45366 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
45367    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
45368 #define $ac_func innocuous_$ac_func
45369
45370 /* System header to define __stub macros and hopefully few prototypes,
45371     which can conflict with char $ac_func (); below.
45372     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45373     <limits.h> exists even on freestanding compilers.  */
45374
45375 #ifdef __STDC__
45376 # include <limits.h>
45377 #else
45378 # include <assert.h>
45379 #endif
45380
45381 #undef $ac_func
45382
45383 /* Override any GCC internal prototype to avoid an error.
45384    Use char because int might match the return type of a GCC
45385    builtin and then its argument prototype would still apply.  */
45386 #ifdef __cplusplus
45387 extern "C"
45388 #endif
45389 char $ac_func ();
45390 /* The GNU C library defines this for functions which it implements
45391     to always fail with ENOSYS.  Some functions are actually named
45392     something starting with __ and the normal name is an alias.  */
45393 #if defined __stub_$ac_func || defined __stub___$ac_func
45394 choke me
45395 #endif
45396
45397 int
45398 main ()
45399 {
45400 return $ac_func ();
45401   ;
45402   return 0;
45403 }
45404 _ACEOF
45405 rm -f conftest.$ac_objext conftest$ac_exeext
45406 if { (ac_try="$ac_link"
45407 case "(($ac_try" in
45408   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45409   *) ac_try_echo=$ac_try;;
45410 esac
45411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45412   (eval "$ac_link") 2>conftest.er1
45413   ac_status=$?
45414   grep -v '^ *+' conftest.er1 >conftest.err
45415   rm -f conftest.er1
45416   cat conftest.err >&5
45417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45418   (exit $ac_status); } && {
45419          test -z "$ac_c_werror_flag" ||
45420          test ! -s conftest.err
45421        } && test -s conftest$ac_exeext &&
45422        $as_test_x conftest$ac_exeext; then
45423   eval "$as_ac_var=yes"
45424 else
45425   echo "$as_me: failed program was:" >&5
45426 sed 's/^/| /' conftest.$ac_ext >&5
45427
45428         eval "$as_ac_var=no"
45429 fi
45430
45431 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
45432       conftest$ac_exeext conftest.$ac_ext
45433 fi
45434 ac_res=`eval echo '${'$as_ac_var'}'`
45435                { echo "$as_me:$LINENO: result: $ac_res" >&5
45436 echo "${ECHO_T}$ac_res" >&6; }
45437 if test `eval echo '${'$as_ac_var'}'` = yes; then
45438   cat >>confdefs.h <<_ACEOF
45439 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
45440 _ACEOF
45441  break
45442 fi
45443 done
45444
45445
45446 if test "$ac_cv_func_gettimeofday" = "yes"; then
45447     { echo "$as_me:$LINENO: checking whether gettimeofday takes two arguments" >&5
45448 echo $ECHO_N "checking whether gettimeofday takes two arguments... $ECHO_C" >&6; }
45449 if test "${wx_cv_func_gettimeofday_has_2_args+set}" = set; then
45450   echo $ECHO_N "(cached) $ECHO_C" >&6
45451 else
45452
45453                 cat >conftest.$ac_ext <<_ACEOF
45454 /* confdefs.h.  */
45455 _ACEOF
45456 cat confdefs.h >>conftest.$ac_ext
45457 cat >>conftest.$ac_ext <<_ACEOF
45458 /* end confdefs.h.  */
45459
45460                 #include <sys/time.h>
45461                 #include <unistd.h>
45462
45463 int
45464 main ()
45465 {
45466
45467                 struct timeval tv;
45468                 gettimeofday(&tv, NULL);
45469
45470   ;
45471   return 0;
45472 }
45473 _ACEOF
45474 rm -f conftest.$ac_objext
45475 if { (ac_try="$ac_compile"
45476 case "(($ac_try" in
45477   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45478   *) ac_try_echo=$ac_try;;
45479 esac
45480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45481   (eval "$ac_compile") 2>conftest.er1
45482   ac_status=$?
45483   grep -v '^ *+' conftest.er1 >conftest.err
45484   rm -f conftest.er1
45485   cat conftest.err >&5
45486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45487   (exit $ac_status); } && {
45488          test -z "$ac_c_werror_flag" ||
45489          test ! -s conftest.err
45490        } && test -s conftest.$ac_objext; then
45491   wx_cv_func_gettimeofday_has_2_args=yes
45492 else
45493   echo "$as_me: failed program was:" >&5
45494 sed 's/^/| /' conftest.$ac_ext >&5
45495
45496         cat >conftest.$ac_ext <<_ACEOF
45497 /* confdefs.h.  */
45498 _ACEOF
45499 cat confdefs.h >>conftest.$ac_ext
45500 cat >>conftest.$ac_ext <<_ACEOF
45501 /* end confdefs.h.  */
45502
45503                     #include <sys/time.h>
45504                     #include <unistd.h>
45505
45506 int
45507 main ()
45508 {
45509
45510                     struct timeval tv;
45511                     gettimeofday(&tv);
45512
45513   ;
45514   return 0;
45515 }
45516 _ACEOF
45517 rm -f conftest.$ac_objext
45518 if { (ac_try="$ac_compile"
45519 case "(($ac_try" in
45520   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45521   *) ac_try_echo=$ac_try;;
45522 esac
45523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45524   (eval "$ac_compile") 2>conftest.er1
45525   ac_status=$?
45526   grep -v '^ *+' conftest.er1 >conftest.err
45527   rm -f conftest.er1
45528   cat conftest.err >&5
45529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45530   (exit $ac_status); } && {
45531          test -z "$ac_c_werror_flag" ||
45532          test ! -s conftest.err
45533        } && test -s conftest.$ac_objext; then
45534   wx_cv_func_gettimeofday_has_2_args=no
45535 else
45536   echo "$as_me: failed program was:" >&5
45537 sed 's/^/| /' conftest.$ac_ext >&5
45538
45539
45540                     { echo "$as_me:$LINENO: WARNING: failed to determine number of gettimeofday() arguments" >&5
45541 echo "$as_me: WARNING: failed to determine number of gettimeofday() arguments" >&2;}
45542                     wx_cv_func_gettimeofday_has_2_args=unknown
45543
45544
45545 fi
45546
45547 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45548
45549 fi
45550
45551 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45552
45553 fi
45554 { echo "$as_me:$LINENO: result: $wx_cv_func_gettimeofday_has_2_args" >&5
45555 echo "${ECHO_T}$wx_cv_func_gettimeofday_has_2_args" >&6; }
45556
45557     if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
45558         cat >>confdefs.h <<\_ACEOF
45559 #define WX_GETTIMEOFDAY_NO_TZ 1
45560 _ACEOF
45561
45562     fi
45563 fi
45564
45565 if test "$wxUSE_DATETIME" = "yes"; then
45566             { echo "$as_me:$LINENO: checking for timezone variable in <time.h>" >&5
45567 echo $ECHO_N "checking for timezone variable in <time.h>... $ECHO_C" >&6; }
45568 if test "${wx_cv_var_timezone+set}" = set; then
45569   echo $ECHO_N "(cached) $ECHO_C" >&6
45570 else
45571
45572                         ac_ext=cpp
45573 ac_cpp='$CXXCPP $CPPFLAGS'
45574 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
45575 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
45576 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
45577
45578                         cat >conftest.$ac_ext <<_ACEOF
45579 /* confdefs.h.  */
45580 _ACEOF
45581 cat confdefs.h >>conftest.$ac_ext
45582 cat >>conftest.$ac_ext <<_ACEOF
45583 /* end confdefs.h.  */
45584
45585                                 #include <time.h>
45586
45587 int
45588 main ()
45589 {
45590
45591                                 int tz;
45592                                 tz = timezone;
45593
45594   ;
45595   return 0;
45596 }
45597 _ACEOF
45598 rm -f conftest.$ac_objext
45599 if { (ac_try="$ac_compile"
45600 case "(($ac_try" in
45601   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45602   *) ac_try_echo=$ac_try;;
45603 esac
45604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45605   (eval "$ac_compile") 2>conftest.er1
45606   ac_status=$?
45607   grep -v '^ *+' conftest.er1 >conftest.err
45608   rm -f conftest.er1
45609   cat conftest.err >&5
45610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45611   (exit $ac_status); } && {
45612          test -z "$ac_cxx_werror_flag" ||
45613          test ! -s conftest.err
45614        } && test -s conftest.$ac_objext; then
45615
45616                                 wx_cv_var_timezone=timezone
45617
45618 else
45619   echo "$as_me: failed program was:" >&5
45620 sed 's/^/| /' conftest.$ac_ext >&5
45621
45622
45623                                 cat >conftest.$ac_ext <<_ACEOF
45624 /* confdefs.h.  */
45625 _ACEOF
45626 cat confdefs.h >>conftest.$ac_ext
45627 cat >>conftest.$ac_ext <<_ACEOF
45628 /* end confdefs.h.  */
45629
45630                                         #include <time.h>
45631
45632 int
45633 main ()
45634 {
45635
45636                                         int tz;
45637                                         tz = _timezone;
45638
45639   ;
45640   return 0;
45641 }
45642 _ACEOF
45643 rm -f conftest.$ac_objext
45644 if { (ac_try="$ac_compile"
45645 case "(($ac_try" in
45646   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45647   *) ac_try_echo=$ac_try;;
45648 esac
45649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45650   (eval "$ac_compile") 2>conftest.er1
45651   ac_status=$?
45652   grep -v '^ *+' conftest.er1 >conftest.err
45653   rm -f conftest.er1
45654   cat conftest.err >&5
45655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45656   (exit $ac_status); } && {
45657          test -z "$ac_cxx_werror_flag" ||
45658          test ! -s conftest.err
45659        } && test -s conftest.$ac_objext; then
45660
45661                                         wx_cv_var_timezone=_timezone
45662
45663 else
45664   echo "$as_me: failed program was:" >&5
45665 sed 's/^/| /' conftest.$ac_ext >&5
45666
45667
45668                                         cat >conftest.$ac_ext <<_ACEOF
45669 /* confdefs.h.  */
45670 _ACEOF
45671 cat confdefs.h >>conftest.$ac_ext
45672 cat >>conftest.$ac_ext <<_ACEOF
45673 /* end confdefs.h.  */
45674
45675                                                 #include <time.h>
45676
45677 int
45678 main ()
45679 {
45680
45681                                                 int tz;
45682                                                 tz = __timezone;
45683
45684   ;
45685   return 0;
45686 }
45687 _ACEOF
45688 rm -f conftest.$ac_objext
45689 if { (ac_try="$ac_compile"
45690 case "(($ac_try" in
45691   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45692   *) ac_try_echo=$ac_try;;
45693 esac
45694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45695   (eval "$ac_compile") 2>conftest.er1
45696   ac_status=$?
45697   grep -v '^ *+' conftest.er1 >conftest.err
45698   rm -f conftest.er1
45699   cat conftest.err >&5
45700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45701   (exit $ac_status); } && {
45702          test -z "$ac_cxx_werror_flag" ||
45703          test ! -s conftest.err
45704        } && test -s conftest.$ac_objext; then
45705
45706                                                 wx_cv_var_timezone=__timezone
45707
45708 else
45709   echo "$as_me: failed program was:" >&5
45710 sed 's/^/| /' conftest.$ac_ext >&5
45711
45712
45713                                                 if test "$USE_DOS" = 0 ; then
45714                                                     { echo "$as_me:$LINENO: WARNING: no timezone variable" >&5
45715 echo "$as_me: WARNING: no timezone variable" >&2;}
45716                                                 fi
45717
45718
45719 fi
45720
45721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45722
45723
45724 fi
45725
45726 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45727
45728
45729 fi
45730
45731 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45732                         ac_ext=c
45733 ac_cpp='$CPP $CPPFLAGS'
45734 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
45735 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
45736 ac_compiler_gnu=$ac_cv_c_compiler_gnu
45737
45738
45739
45740 fi
45741 { echo "$as_me:$LINENO: result: $wx_cv_var_timezone" >&5
45742 echo "${ECHO_T}$wx_cv_var_timezone" >&6; }
45743
45744         if test "x$wx_cv_var_timezone" != x ; then
45745         cat >>confdefs.h <<_ACEOF
45746 #define WX_TIMEZONE $wx_cv_var_timezone
45747 _ACEOF
45748
45749     fi
45750
45751
45752 for ac_func in localtime
45753 do
45754 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
45755 { echo "$as_me:$LINENO: checking for $ac_func" >&5
45756 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
45757 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
45758   echo $ECHO_N "(cached) $ECHO_C" >&6
45759 else
45760   cat >conftest.$ac_ext <<_ACEOF
45761 /* confdefs.h.  */
45762 _ACEOF
45763 cat confdefs.h >>conftest.$ac_ext
45764 cat >>conftest.$ac_ext <<_ACEOF
45765 /* end confdefs.h.  */
45766 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
45767    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
45768 #define $ac_func innocuous_$ac_func
45769
45770 /* System header to define __stub macros and hopefully few prototypes,
45771     which can conflict with char $ac_func (); below.
45772     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45773     <limits.h> exists even on freestanding compilers.  */
45774
45775 #ifdef __STDC__
45776 # include <limits.h>
45777 #else
45778 # include <assert.h>
45779 #endif
45780
45781 #undef $ac_func
45782
45783 /* Override any GCC internal prototype to avoid an error.
45784    Use char because int might match the return type of a GCC
45785    builtin and then its argument prototype would still apply.  */
45786 #ifdef __cplusplus
45787 extern "C"
45788 #endif
45789 char $ac_func ();
45790 /* The GNU C library defines this for functions which it implements
45791     to always fail with ENOSYS.  Some functions are actually named
45792     something starting with __ and the normal name is an alias.  */
45793 #if defined __stub_$ac_func || defined __stub___$ac_func
45794 choke me
45795 #endif
45796
45797 int
45798 main ()
45799 {
45800 return $ac_func ();
45801   ;
45802   return 0;
45803 }
45804 _ACEOF
45805 rm -f conftest.$ac_objext conftest$ac_exeext
45806 if { (ac_try="$ac_link"
45807 case "(($ac_try" in
45808   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45809   *) ac_try_echo=$ac_try;;
45810 esac
45811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45812   (eval "$ac_link") 2>conftest.er1
45813   ac_status=$?
45814   grep -v '^ *+' conftest.er1 >conftest.err
45815   rm -f conftest.er1
45816   cat conftest.err >&5
45817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45818   (exit $ac_status); } && {
45819          test -z "$ac_c_werror_flag" ||
45820          test ! -s conftest.err
45821        } && test -s conftest$ac_exeext &&
45822        $as_test_x conftest$ac_exeext; then
45823   eval "$as_ac_var=yes"
45824 else
45825   echo "$as_me: failed program was:" >&5
45826 sed 's/^/| /' conftest.$ac_ext >&5
45827
45828         eval "$as_ac_var=no"
45829 fi
45830
45831 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
45832       conftest$ac_exeext conftest.$ac_ext
45833 fi
45834 ac_res=`eval echo '${'$as_ac_var'}'`
45835                { echo "$as_me:$LINENO: result: $ac_res" >&5
45836 echo "${ECHO_T}$ac_res" >&6; }
45837 if test `eval echo '${'$as_ac_var'}'` = yes; then
45838   cat >>confdefs.h <<_ACEOF
45839 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
45840 _ACEOF
45841
45842 fi
45843 done
45844
45845
45846     if test "$ac_cv_func_localtime" = "yes"; then
45847         { echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
45848 echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6; }
45849 if test "${wx_cv_struct_tm_has_gmtoff+set}" = set; then
45850   echo $ECHO_N "(cached) $ECHO_C" >&6
45851 else
45852
45853             cat >conftest.$ac_ext <<_ACEOF
45854 /* confdefs.h.  */
45855 _ACEOF
45856 cat confdefs.h >>conftest.$ac_ext
45857 cat >>conftest.$ac_ext <<_ACEOF
45858 /* end confdefs.h.  */
45859
45860                     #include <time.h>
45861
45862 int
45863 main ()
45864 {
45865
45866                     struct tm tm;
45867                     tm.tm_gmtoff++;
45868
45869   ;
45870   return 0;
45871 }
45872 _ACEOF
45873 rm -f conftest.$ac_objext
45874 if { (ac_try="$ac_compile"
45875 case "(($ac_try" in
45876   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45877   *) ac_try_echo=$ac_try;;
45878 esac
45879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45880   (eval "$ac_compile") 2>conftest.er1
45881   ac_status=$?
45882   grep -v '^ *+' conftest.er1 >conftest.err
45883   rm -f conftest.er1
45884   cat conftest.err >&5
45885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45886   (exit $ac_status); } && {
45887          test -z "$ac_c_werror_flag" ||
45888          test ! -s conftest.err
45889        } && test -s conftest.$ac_objext; then
45890
45891                     wx_cv_struct_tm_has_gmtoff=yes
45892
45893 else
45894   echo "$as_me: failed program was:" >&5
45895 sed 's/^/| /' conftest.$ac_ext >&5
45896
45897         wx_cv_struct_tm_has_gmtoff=no
45898
45899 fi
45900
45901 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45902
45903 fi
45904 { echo "$as_me:$LINENO: result: $wx_cv_struct_tm_has_gmtoff" >&5
45905 echo "${ECHO_T}$wx_cv_struct_tm_has_gmtoff" >&6; }
45906     fi
45907
45908     if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
45909         cat >>confdefs.h <<\_ACEOF
45910 #define WX_GMTOFF_IN_TM 1
45911 _ACEOF
45912
45913     fi
45914
45915     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
45916 fi
45917
45918
45919 if test "$wxUSE_SOCKETS" = "yes"; then
45920     if test "$wxUSE_MGL" = 1; then
45921         { echo "$as_me:$LINENO: WARNING: wxSocket not yet supported under MGL... disabled" >&5
45922 echo "$as_me: WARNING: wxSocket not yet supported under MGL... disabled" >&2;}
45923         wxUSE_SOCKETS="no"
45924     fi
45925 fi
45926
45927 if test "$wxUSE_SOCKETS" = "yes"; then
45928         if test "$TOOLKIT" != "MSW"; then
45929                 { echo "$as_me:$LINENO: checking for socket" >&5
45930 echo $ECHO_N "checking for socket... $ECHO_C" >&6; }
45931 if test "${ac_cv_func_socket+set}" = set; then
45932   echo $ECHO_N "(cached) $ECHO_C" >&6
45933 else
45934   cat >conftest.$ac_ext <<_ACEOF
45935 /* confdefs.h.  */
45936 _ACEOF
45937 cat confdefs.h >>conftest.$ac_ext
45938 cat >>conftest.$ac_ext <<_ACEOF
45939 /* end confdefs.h.  */
45940 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
45941    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
45942 #define socket innocuous_socket
45943
45944 /* System header to define __stub macros and hopefully few prototypes,
45945     which can conflict with char socket (); below.
45946     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45947     <limits.h> exists even on freestanding compilers.  */
45948
45949 #ifdef __STDC__
45950 # include <limits.h>
45951 #else
45952 # include <assert.h>
45953 #endif
45954
45955 #undef socket
45956
45957 /* Override any GCC internal prototype to avoid an error.
45958    Use char because int might match the return type of a GCC
45959    builtin and then its argument prototype would still apply.  */
45960 #ifdef __cplusplus
45961 extern "C"
45962 #endif
45963 char socket ();
45964 /* The GNU C library defines this for functions which it implements
45965     to always fail with ENOSYS.  Some functions are actually named
45966     something starting with __ and the normal name is an alias.  */
45967 #if defined __stub_socket || defined __stub___socket
45968 choke me
45969 #endif
45970
45971 int
45972 main ()
45973 {
45974 return socket ();
45975   ;
45976   return 0;
45977 }
45978 _ACEOF
45979 rm -f conftest.$ac_objext conftest$ac_exeext
45980 if { (ac_try="$ac_link"
45981 case "(($ac_try" in
45982   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45983   *) ac_try_echo=$ac_try;;
45984 esac
45985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45986   (eval "$ac_link") 2>conftest.er1
45987   ac_status=$?
45988   grep -v '^ *+' conftest.er1 >conftest.err
45989   rm -f conftest.er1
45990   cat conftest.err >&5
45991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45992   (exit $ac_status); } && {
45993          test -z "$ac_c_werror_flag" ||
45994          test ! -s conftest.err
45995        } && test -s conftest$ac_exeext &&
45996        $as_test_x conftest$ac_exeext; then
45997   ac_cv_func_socket=yes
45998 else
45999   echo "$as_me: failed program was:" >&5
46000 sed 's/^/| /' conftest.$ac_ext >&5
46001
46002         ac_cv_func_socket=no
46003 fi
46004
46005 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
46006       conftest$ac_exeext conftest.$ac_ext
46007 fi
46008 { echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
46009 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
46010 if test $ac_cv_func_socket = yes; then
46011   :
46012 else
46013
46014                 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
46015 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
46016 if test "${ac_cv_lib_socket_socket+set}" = set; then
46017   echo $ECHO_N "(cached) $ECHO_C" >&6
46018 else
46019   ac_check_lib_save_LIBS=$LIBS
46020 LIBS="-lsocket  $LIBS"
46021 cat >conftest.$ac_ext <<_ACEOF
46022 /* confdefs.h.  */
46023 _ACEOF
46024 cat confdefs.h >>conftest.$ac_ext
46025 cat >>conftest.$ac_ext <<_ACEOF
46026 /* end confdefs.h.  */
46027
46028 /* Override any GCC internal prototype to avoid an error.
46029    Use char because int might match the return type of a GCC
46030    builtin and then its argument prototype would still apply.  */
46031 #ifdef __cplusplus
46032 extern "C"
46033 #endif
46034 char socket ();
46035 int
46036 main ()
46037 {
46038 return socket ();
46039   ;
46040   return 0;
46041 }
46042 _ACEOF
46043 rm -f conftest.$ac_objext conftest$ac_exeext
46044 if { (ac_try="$ac_link"
46045 case "(($ac_try" in
46046   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46047   *) ac_try_echo=$ac_try;;
46048 esac
46049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46050   (eval "$ac_link") 2>conftest.er1
46051   ac_status=$?
46052   grep -v '^ *+' conftest.er1 >conftest.err
46053   rm -f conftest.er1
46054   cat conftest.err >&5
46055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46056   (exit $ac_status); } && {
46057          test -z "$ac_c_werror_flag" ||
46058          test ! -s conftest.err
46059        } && test -s conftest$ac_exeext &&
46060        $as_test_x conftest$ac_exeext; then
46061   ac_cv_lib_socket_socket=yes
46062 else
46063   echo "$as_me: failed program was:" >&5
46064 sed 's/^/| /' conftest.$ac_ext >&5
46065
46066         ac_cv_lib_socket_socket=no
46067 fi
46068
46069 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
46070       conftest$ac_exeext conftest.$ac_ext
46071 LIBS=$ac_check_lib_save_LIBS
46072 fi
46073 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
46074 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
46075 if test $ac_cv_lib_socket_socket = yes; then
46076   if test "$INET_LINK" != " -lsocket"; then
46077                         INET_LINK="$INET_LINK -lsocket"
46078                     fi
46079 else
46080
46081                         { echo "$as_me:$LINENO: WARNING: socket library not found - sockets will be disabled" >&5
46082 echo "$as_me: WARNING: socket library not found - sockets will be disabled" >&2;}
46083                         wxUSE_SOCKETS=no
46084
46085
46086 fi
46087
46088
46089
46090 fi
46091
46092     fi
46093 fi
46094
46095 if test "$wxUSE_SOCKETS" = "yes" ; then
46096                 if test "$TOOLKIT" != "MSW"; then
46097                                         { echo "$as_me:$LINENO: checking what is the type of the third argument of getsockname" >&5
46098 echo $ECHO_N "checking what is the type of the third argument of getsockname... $ECHO_C" >&6; }
46099 if test "${wx_cv_type_getsockname3+set}" = set; then
46100   echo $ECHO_N "(cached) $ECHO_C" >&6
46101 else
46102
46103                 ac_ext=cpp
46104 ac_cpp='$CXXCPP $CPPFLAGS'
46105 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
46106 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46107 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
46108
46109                 cat >conftest.$ac_ext <<_ACEOF
46110 /* confdefs.h.  */
46111 _ACEOF
46112 cat confdefs.h >>conftest.$ac_ext
46113 cat >>conftest.$ac_ext <<_ACEOF
46114 /* end confdefs.h.  */
46115
46116                         #include <sys/types.h>
46117                         #include <sys/socket.h>
46118
46119 int
46120 main ()
46121 {
46122
46123                         socklen_t len;
46124                         getsockname(0, 0, &len);
46125
46126   ;
46127   return 0;
46128 }
46129 _ACEOF
46130 rm -f conftest.$ac_objext
46131 if { (ac_try="$ac_compile"
46132 case "(($ac_try" in
46133   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46134   *) ac_try_echo=$ac_try;;
46135 esac
46136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46137   (eval "$ac_compile") 2>conftest.er1
46138   ac_status=$?
46139   grep -v '^ *+' conftest.er1 >conftest.err
46140   rm -f conftest.er1
46141   cat conftest.err >&5
46142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46143   (exit $ac_status); } && {
46144          test -z "$ac_cxx_werror_flag" ||
46145          test ! -s conftest.err
46146        } && test -s conftest.$ac_objext; then
46147   wx_cv_type_getsockname3=socklen_t
46148 else
46149   echo "$as_me: failed program was:" >&5
46150 sed 's/^/| /' conftest.$ac_ext >&5
46151
46152
46153                                                                                                                                                                         CFLAGS_OLD="$CFLAGS"
46154                         if test "$GCC" = yes ; then
46155                             CFLAGS="-Werror $CFLAGS"
46156                         fi
46157
46158                         cat >conftest.$ac_ext <<_ACEOF
46159 /* confdefs.h.  */
46160 _ACEOF
46161 cat confdefs.h >>conftest.$ac_ext
46162 cat >>conftest.$ac_ext <<_ACEOF
46163 /* end confdefs.h.  */
46164
46165                                 #include <sys/types.h>
46166                                 #include <sys/socket.h>
46167
46168 int
46169 main ()
46170 {
46171
46172                                 size_t len;
46173                                 getsockname(0, 0, &len);
46174
46175   ;
46176   return 0;
46177 }
46178 _ACEOF
46179 rm -f conftest.$ac_objext
46180 if { (ac_try="$ac_compile"
46181 case "(($ac_try" in
46182   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46183   *) ac_try_echo=$ac_try;;
46184 esac
46185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46186   (eval "$ac_compile") 2>conftest.er1
46187   ac_status=$?
46188   grep -v '^ *+' conftest.er1 >conftest.err
46189   rm -f conftest.er1
46190   cat conftest.err >&5
46191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46192   (exit $ac_status); } && {
46193          test -z "$ac_cxx_werror_flag" ||
46194          test ! -s conftest.err
46195        } && test -s conftest.$ac_objext; then
46196   wx_cv_type_getsockname3=size_t
46197 else
46198   echo "$as_me: failed program was:" >&5
46199 sed 's/^/| /' conftest.$ac_ext >&5
46200
46201         cat >conftest.$ac_ext <<_ACEOF
46202 /* confdefs.h.  */
46203 _ACEOF
46204 cat confdefs.h >>conftest.$ac_ext
46205 cat >>conftest.$ac_ext <<_ACEOF
46206 /* end confdefs.h.  */
46207
46208                                     #include <sys/types.h>
46209                                     #include <sys/socket.h>
46210
46211 int
46212 main ()
46213 {
46214
46215                                     int len;
46216                                     getsockname(0, 0, &len);
46217
46218   ;
46219   return 0;
46220 }
46221 _ACEOF
46222 rm -f conftest.$ac_objext
46223 if { (ac_try="$ac_compile"
46224 case "(($ac_try" in
46225   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46226   *) ac_try_echo=$ac_try;;
46227 esac
46228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46229   (eval "$ac_compile") 2>conftest.er1
46230   ac_status=$?
46231   grep -v '^ *+' conftest.er1 >conftest.err
46232   rm -f conftest.er1
46233   cat conftest.err >&5
46234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46235   (exit $ac_status); } && {
46236          test -z "$ac_cxx_werror_flag" ||
46237          test ! -s conftest.err
46238        } && test -s conftest.$ac_objext; then
46239   wx_cv_type_getsockname3=int
46240 else
46241   echo "$as_me: failed program was:" >&5
46242 sed 's/^/| /' conftest.$ac_ext >&5
46243
46244         wx_cv_type_getsockname3=unknown
46245
46246 fi
46247
46248 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46249
46250 fi
46251
46252 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46253
46254                         CFLAGS="$CFLAGS_OLD"
46255
46256
46257 fi
46258
46259 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46260                 ac_ext=c
46261 ac_cpp='$CPP $CPPFLAGS'
46262 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
46263 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46264 ac_compiler_gnu=$ac_cv_c_compiler_gnu
46265
46266
46267 fi
46268 { echo "$as_me:$LINENO: result: $wx_cv_type_getsockname3" >&5
46269 echo "${ECHO_T}$wx_cv_type_getsockname3" >&6; }
46270
46271         if test "$wx_cv_type_getsockname3" = "unknown"; then
46272             wxUSE_SOCKETS=no
46273             { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
46274 echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
46275         else
46276             cat >>confdefs.h <<_ACEOF
46277 #define WX_SOCKLEN_T $wx_cv_type_getsockname3
46278 _ACEOF
46279
46280         fi
46281                 { echo "$as_me:$LINENO: checking what is the type of the fifth argument of getsockopt" >&5
46282 echo $ECHO_N "checking what is the type of the fifth argument of getsockopt... $ECHO_C" >&6; }
46283 if test "${wx_cv_type_getsockopt5+set}" = set; then
46284   echo $ECHO_N "(cached) $ECHO_C" >&6
46285 else
46286
46287                                                                                                 ac_ext=cpp
46288 ac_cpp='$CXXCPP $CPPFLAGS'
46289 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
46290 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46291 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
46292
46293                 cat >conftest.$ac_ext <<_ACEOF
46294 /* confdefs.h.  */
46295 _ACEOF
46296 cat confdefs.h >>conftest.$ac_ext
46297 cat >>conftest.$ac_ext <<_ACEOF
46298 /* end confdefs.h.  */
46299
46300                         #include <sys/types.h>
46301                         #include <sys/socket.h>
46302
46303 int
46304 main ()
46305 {
46306
46307                         socklen_t len;
46308                         getsockopt(0, 0, 0, 0, &len);
46309
46310   ;
46311   return 0;
46312 }
46313 _ACEOF
46314 rm -f conftest.$ac_objext
46315 if { (ac_try="$ac_compile"
46316 case "(($ac_try" in
46317   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46318   *) ac_try_echo=$ac_try;;
46319 esac
46320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46321   (eval "$ac_compile") 2>conftest.er1
46322   ac_status=$?
46323   grep -v '^ *+' conftest.er1 >conftest.err
46324   rm -f conftest.er1
46325   cat conftest.err >&5
46326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46327   (exit $ac_status); } && {
46328          test -z "$ac_cxx_werror_flag" ||
46329          test ! -s conftest.err
46330        } && test -s conftest.$ac_objext; then
46331   wx_cv_type_getsockopt5=socklen_t
46332 else
46333   echo "$as_me: failed program was:" >&5
46334 sed 's/^/| /' conftest.$ac_ext >&5
46335
46336
46337                         cat >conftest.$ac_ext <<_ACEOF
46338 /* confdefs.h.  */
46339 _ACEOF
46340 cat confdefs.h >>conftest.$ac_ext
46341 cat >>conftest.$ac_ext <<_ACEOF
46342 /* end confdefs.h.  */
46343
46344                                 #include <sys/types.h>
46345                                 #include <sys/socket.h>
46346
46347 int
46348 main ()
46349 {
46350
46351                                 size_t len;
46352                                 getsockopt(0, 0, 0, 0, &len);
46353
46354   ;
46355   return 0;
46356 }
46357 _ACEOF
46358 rm -f conftest.$ac_objext
46359 if { (ac_try="$ac_compile"
46360 case "(($ac_try" in
46361   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46362   *) ac_try_echo=$ac_try;;
46363 esac
46364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46365   (eval "$ac_compile") 2>conftest.er1
46366   ac_status=$?
46367   grep -v '^ *+' conftest.er1 >conftest.err
46368   rm -f conftest.er1
46369   cat conftest.err >&5
46370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46371   (exit $ac_status); } && {
46372          test -z "$ac_cxx_werror_flag" ||
46373          test ! -s conftest.err
46374        } && test -s conftest.$ac_objext; then
46375   wx_cv_type_getsockopt5=size_t
46376 else
46377   echo "$as_me: failed program was:" >&5
46378 sed 's/^/| /' conftest.$ac_ext >&5
46379
46380         cat >conftest.$ac_ext <<_ACEOF
46381 /* confdefs.h.  */
46382 _ACEOF
46383 cat confdefs.h >>conftest.$ac_ext
46384 cat >>conftest.$ac_ext <<_ACEOF
46385 /* end confdefs.h.  */
46386
46387                                     #include <sys/types.h>
46388                                     #include <sys/socket.h>
46389
46390 int
46391 main ()
46392 {
46393
46394                                     int len;
46395                                     getsockopt(0, 0, 0, 0, &len);
46396
46397   ;
46398   return 0;
46399 }
46400 _ACEOF
46401 rm -f conftest.$ac_objext
46402 if { (ac_try="$ac_compile"
46403 case "(($ac_try" in
46404   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46405   *) ac_try_echo=$ac_try;;
46406 esac
46407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46408   (eval "$ac_compile") 2>conftest.er1
46409   ac_status=$?
46410   grep -v '^ *+' conftest.er1 >conftest.err
46411   rm -f conftest.er1
46412   cat conftest.err >&5
46413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46414   (exit $ac_status); } && {
46415          test -z "$ac_cxx_werror_flag" ||
46416          test ! -s conftest.err
46417        } && test -s conftest.$ac_objext; then
46418   wx_cv_type_getsockopt5=int
46419 else
46420   echo "$as_me: failed program was:" >&5
46421 sed 's/^/| /' conftest.$ac_ext >&5
46422
46423         wx_cv_type_getsockopt5=unknown
46424
46425 fi
46426
46427 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46428
46429 fi
46430
46431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46432
46433
46434 fi
46435
46436 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46437                 ac_ext=c
46438 ac_cpp='$CPP $CPPFLAGS'
46439 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
46440 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46441 ac_compiler_gnu=$ac_cv_c_compiler_gnu
46442
46443
46444 fi
46445 { echo "$as_me:$LINENO: result: $wx_cv_type_getsockopt5" >&5
46446 echo "${ECHO_T}$wx_cv_type_getsockopt5" >&6; }
46447
46448         if test "$wx_cv_type_getsockopt5" = "unknown"; then
46449             wxUSE_SOCKETS=no
46450             { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
46451 echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
46452         else
46453             cat >>confdefs.h <<_ACEOF
46454 #define SOCKOPTLEN_T $wx_cv_type_getsockopt5
46455 _ACEOF
46456
46457         fi
46458     fi
46459 fi
46460
46461 if test "$wxUSE_SOCKETS" = "yes" ; then
46462     if test "$wxUSE_IPV6" = "yes"; then
46463         { echo "$as_me:$LINENO: checking whether we have sockaddr_in6" >&5
46464 echo $ECHO_N "checking whether we have sockaddr_in6... $ECHO_C" >&6; }
46465 if test "${wx_cv_type_sockaddr_in6+set}" = set; then
46466   echo $ECHO_N "(cached) $ECHO_C" >&6
46467 else
46468
46469                 cat >conftest.$ac_ext <<_ACEOF
46470 /* confdefs.h.  */
46471 _ACEOF
46472 cat confdefs.h >>conftest.$ac_ext
46473 cat >>conftest.$ac_ext <<_ACEOF
46474 /* end confdefs.h.  */
46475
46476                         #include <sys/types.h>
46477                         #include <sys/socket.h>
46478                         #include <netinet/in.h>
46479
46480 int
46481 main ()
46482 {
46483
46484                         struct sockaddr_in6 sa6;
46485
46486   ;
46487   return 0;
46488 }
46489 _ACEOF
46490 rm -f conftest.$ac_objext
46491 if { (ac_try="$ac_compile"
46492 case "(($ac_try" in
46493   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46494   *) ac_try_echo=$ac_try;;
46495 esac
46496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46497   (eval "$ac_compile") 2>conftest.er1
46498   ac_status=$?
46499   grep -v '^ *+' conftest.er1 >conftest.err
46500   rm -f conftest.er1
46501   cat conftest.err >&5
46502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46503   (exit $ac_status); } && {
46504          test -z "$ac_c_werror_flag" ||
46505          test ! -s conftest.err
46506        } && test -s conftest.$ac_objext; then
46507   wx_cv_type_sockaddr_in6=yes
46508 else
46509   echo "$as_me: failed program was:" >&5
46510 sed 's/^/| /' conftest.$ac_ext >&5
46511
46512         wx_cv_type_sockaddr_in6=no
46513
46514 fi
46515
46516 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46517
46518
46519 fi
46520 { echo "$as_me:$LINENO: result: $wx_cv_type_sockaddr_in6" >&5
46521 echo "${ECHO_T}$wx_cv_type_sockaddr_in6" >&6; }
46522
46523         if test "$wx_cv_type_sockaddr_in6"="yes"; then
46524             cat >>confdefs.h <<\_ACEOF
46525 #define wxUSE_IPV6 1
46526 _ACEOF
46527
46528         else
46529             { echo "$as_me:$LINENO: WARNING: IPv6 support not available... disabled" >&5
46530 echo "$as_me: WARNING: IPv6 support not available... disabled" >&2;}
46531         fi
46532     fi
46533
46534     cat >>confdefs.h <<\_ACEOF
46535 #define wxUSE_SOCKETS 1
46536 _ACEOF
46537
46538     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
46539 fi
46540
46541 if test "$wxUSE_PROTOCOL" = "yes"; then
46542     if test "$wxUSE_SOCKETS" != "yes"; then
46543         { echo "$as_me:$LINENO: WARNING: Protocol classes require sockets... disabled" >&5
46544 echo "$as_me: WARNING: Protocol classes require sockets... disabled" >&2;}
46545         wxUSE_PROTOCOL=no
46546     fi
46547 fi
46548
46549 if test "$wxUSE_PROTOCOL" = "yes"; then
46550     cat >>confdefs.h <<\_ACEOF
46551 #define wxUSE_PROTOCOL 1
46552 _ACEOF
46553
46554
46555     if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then
46556         cat >>confdefs.h <<\_ACEOF
46557 #define wxUSE_PROTOCOL_HTTP 1
46558 _ACEOF
46559
46560     fi
46561     if test "$wxUSE_PROTOCOL_FTP" = "yes"; then
46562         cat >>confdefs.h <<\_ACEOF
46563 #define wxUSE_PROTOCOL_FTP 1
46564 _ACEOF
46565
46566     fi
46567     if test "$wxUSE_PROTOCOL_FILE" = "yes"; then
46568         cat >>confdefs.h <<\_ACEOF
46569 #define wxUSE_PROTOCOL_FILE 1
46570 _ACEOF
46571
46572     fi
46573 else
46574     if test "$wxUSE_FS_INET" = "yes"; then
46575         { echo "$as_me:$LINENO: WARNING: HTTP filesystem require protocol classes... disabled" >&5
46576 echo "$as_me: WARNING: HTTP filesystem require protocol classes... disabled" >&2;}
46577         wxUSE_FS_INET="no"
46578     fi
46579 fi
46580
46581 if test "$wxUSE_URL" = "yes"; then
46582     if test "$wxUSE_PROTOCOL" != "yes"; then
46583         { echo "$as_me:$LINENO: WARNING: wxURL class requires wxProtocol... disabled" >&5
46584 echo "$as_me: WARNING: wxURL class requires wxProtocol... disabled" >&2;}
46585         wxUSE_URL=no
46586     fi
46587     if test "$wxUSE_URL" = "yes"; then
46588         cat >>confdefs.h <<\_ACEOF
46589 #define wxUSE_URL 1
46590 _ACEOF
46591
46592     fi
46593 fi
46594
46595 if test "$wxUSE_VARIANT" = "yes"; then
46596     cat >>confdefs.h <<\_ACEOF
46597 #define wxUSE_VARIANT 1
46598 _ACEOF
46599
46600 fi
46601
46602 if test "$wxUSE_FS_INET" = "yes"; then
46603   cat >>confdefs.h <<\_ACEOF
46604 #define wxUSE_FS_INET 1
46605 _ACEOF
46606
46607 fi
46608
46609
46610 if test "$wxUSE_GUI" = "yes" -a "$wxUSE_JOYSTICK" = "yes"; then
46611     wxUSE_JOYSTICK=no
46612
46613         if test "$TOOLKIT" = "MSW"; then
46614         wxUSE_JOYSTICK=yes
46615
46616         elif test "$TOOLKIT" = "OSX" -o "$TOOLKIT" = "COCOA"; then
46617         if test "$USE_DARWIN" = 1; then
46618                         { echo "$as_me:$LINENO: checking headers have declarations needed for joystick support" >&5
46619 echo $ECHO_N "checking headers have declarations needed for joystick support... $ECHO_C" >&6; }
46620             ac_ext=cpp
46621 ac_cpp='$CXXCPP $CPPFLAGS'
46622 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
46623 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46624 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
46625
46626             cat >conftest.$ac_ext <<_ACEOF
46627 /* confdefs.h.  */
46628 _ACEOF
46629 cat confdefs.h >>conftest.$ac_ext
46630 cat >>conftest.$ac_ext <<_ACEOF
46631 /* end confdefs.h.  */
46632  #include <IOKit/hid/IOHIDLib.h>
46633 int
46634 main ()
46635 {
46636  IOHIDQueueInterface *qi = NULL;
46637                               IOHIDCallbackFunction cb = NULL;
46638                               qi->setEventCallout(NULL, cb, NULL, NULL);
46639   ;
46640   return 0;
46641 }
46642 _ACEOF
46643 rm -f conftest.$ac_objext
46644 if { (ac_try="$ac_compile"
46645 case "(($ac_try" in
46646   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46647   *) ac_try_echo=$ac_try;;
46648 esac
46649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46650   (eval "$ac_compile") 2>conftest.er1
46651   ac_status=$?
46652   grep -v '^ *+' conftest.er1 >conftest.err
46653   rm -f conftest.er1
46654   cat conftest.err >&5
46655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46656   (exit $ac_status); } && {
46657          test -z "$ac_cxx_werror_flag" ||
46658          test ! -s conftest.err
46659        } && test -s conftest.$ac_objext; then
46660    wxUSE_JOYSTICK=yes
46661
46662 else
46663   echo "$as_me: failed program was:" >&5
46664 sed 's/^/| /' conftest.$ac_ext >&5
46665
46666
46667 fi
46668
46669 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46670             ac_ext=c
46671 ac_cpp='$CPP $CPPFLAGS'
46672 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
46673 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46674 ac_compiler_gnu=$ac_cv_c_compiler_gnu
46675
46676             { echo "$as_me:$LINENO: result: $wxUSE_JOYSTICK" >&5
46677 echo "${ECHO_T}$wxUSE_JOYSTICK" >&6; }
46678         fi
46679
46680         else
46681                 if test "$wxUSE_MGL" != 1; then
46682
46683 for ac_header in linux/joystick.h
46684 do
46685 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
46686 { echo "$as_me:$LINENO: checking for $ac_header" >&5
46687 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
46688 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
46689   echo $ECHO_N "(cached) $ECHO_C" >&6
46690 else
46691   cat >conftest.$ac_ext <<_ACEOF
46692 /* confdefs.h.  */
46693 _ACEOF
46694 cat confdefs.h >>conftest.$ac_ext
46695 cat >>conftest.$ac_ext <<_ACEOF
46696 /* end confdefs.h.  */
46697 $ac_includes_default
46698
46699 #include <$ac_header>
46700 _ACEOF
46701 rm -f conftest.$ac_objext
46702 if { (ac_try="$ac_compile"
46703 case "(($ac_try" in
46704   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46705   *) ac_try_echo=$ac_try;;
46706 esac
46707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46708   (eval "$ac_compile") 2>conftest.er1
46709   ac_status=$?
46710   grep -v '^ *+' conftest.er1 >conftest.err
46711   rm -f conftest.er1
46712   cat conftest.err >&5
46713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46714   (exit $ac_status); } && {
46715          test -z "$ac_c_werror_flag" ||
46716          test ! -s conftest.err
46717        } && test -s conftest.$ac_objext; then
46718   eval "$as_ac_Header=yes"
46719 else
46720   echo "$as_me: failed program was:" >&5
46721 sed 's/^/| /' conftest.$ac_ext >&5
46722
46723         eval "$as_ac_Header=no"
46724 fi
46725
46726 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46727 fi
46728 ac_res=`eval echo '${'$as_ac_Header'}'`
46729                { echo "$as_me:$LINENO: result: $ac_res" >&5
46730 echo "${ECHO_T}$ac_res" >&6; }
46731 if test `eval echo '${'$as_ac_Header'}'` = yes; then
46732   cat >>confdefs.h <<_ACEOF
46733 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
46734 _ACEOF
46735  wxUSE_JOYSTICK=yes
46736 fi
46737
46738 done
46739
46740         fi
46741     fi
46742
46743     if test "$wxUSE_JOYSTICK" = "yes"; then
46744         cat >>confdefs.h <<\_ACEOF
46745 #define wxUSE_JOYSTICK 1
46746 _ACEOF
46747
46748         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
46749     else
46750         { echo "$as_me:$LINENO: WARNING: Joystick not supported by this system... disabled" >&5
46751 echo "$as_me: WARNING: Joystick not supported by this system... disabled" >&2;}
46752     fi
46753 fi
46754
46755
46756
46757 if test "$wxUSE_FONTENUM" = "yes" ; then
46758   cat >>confdefs.h <<\_ACEOF
46759 #define wxUSE_FONTENUM 1
46760 _ACEOF
46761
46762 fi
46763
46764 if test "$wxUSE_FONTMAP" = "yes" ; then
46765   cat >>confdefs.h <<\_ACEOF
46766 #define wxUSE_FONTMAP 1
46767 _ACEOF
46768
46769 fi
46770
46771 if test "$wxUSE_UNICODE" = "yes" ; then
46772   cat >>confdefs.h <<\_ACEOF
46773 #define wxUSE_UNICODE 1
46774 _ACEOF
46775
46776
46777   if test "$USE_WIN32" != 1; then
46778       wxUSE_UNICODE_MSLU=no
46779   fi
46780
46781   if test "$USE_WIN32" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then
46782         { echo "$as_me:$LINENO: checking for main in -lunicows" >&5
46783 echo $ECHO_N "checking for main in -lunicows... $ECHO_C" >&6; }
46784 if test "${ac_cv_lib_unicows_main+set}" = set; then
46785   echo $ECHO_N "(cached) $ECHO_C" >&6
46786 else
46787   ac_check_lib_save_LIBS=$LIBS
46788 LIBS="-lunicows  $LIBS"
46789 cat >conftest.$ac_ext <<_ACEOF
46790 /* confdefs.h.  */
46791 _ACEOF
46792 cat confdefs.h >>conftest.$ac_ext
46793 cat >>conftest.$ac_ext <<_ACEOF
46794 /* end confdefs.h.  */
46795
46796
46797 int
46798 main ()
46799 {
46800 return main ();
46801   ;
46802   return 0;
46803 }
46804 _ACEOF
46805 rm -f conftest.$ac_objext conftest$ac_exeext
46806 if { (ac_try="$ac_link"
46807 case "(($ac_try" in
46808   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46809   *) ac_try_echo=$ac_try;;
46810 esac
46811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46812   (eval "$ac_link") 2>conftest.er1
46813   ac_status=$?
46814   grep -v '^ *+' conftest.er1 >conftest.err
46815   rm -f conftest.er1
46816   cat conftest.err >&5
46817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46818   (exit $ac_status); } && {
46819          test -z "$ac_c_werror_flag" ||
46820          test ! -s conftest.err
46821        } && test -s conftest$ac_exeext &&
46822        $as_test_x conftest$ac_exeext; then
46823   ac_cv_lib_unicows_main=yes
46824 else
46825   echo "$as_me: failed program was:" >&5
46826 sed 's/^/| /' conftest.$ac_ext >&5
46827
46828         ac_cv_lib_unicows_main=no
46829 fi
46830
46831 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
46832       conftest$ac_exeext conftest.$ac_ext
46833 LIBS=$ac_check_lib_save_LIBS
46834 fi
46835 { echo "$as_me:$LINENO: result: $ac_cv_lib_unicows_main" >&5
46836 echo "${ECHO_T}$ac_cv_lib_unicows_main" >&6; }
46837 if test $ac_cv_lib_unicows_main = yes; then
46838
46839                 cat >>confdefs.h <<\_ACEOF
46840 #define wxUSE_UNICODE_MSLU 1
46841 _ACEOF
46842
46843
46844 else
46845
46846                 { echo "$as_me:$LINENO: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
46847                              Applications will only run on Windows NT/2000/XP!" >&5
46848 echo "$as_me: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
46849                              Applications will only run on Windows NT/2000/XP!" >&2;}
46850                 wxUSE_UNICODE_MSLU=no
46851
46852 fi
46853
46854     fi
46855 fi
46856
46857 if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_UTF8" = "yes"; then
46858     cat >>confdefs.h <<\_ACEOF
46859 #define wxUSE_UNICODE_UTF8 1
46860 _ACEOF
46861
46862
46863     if test "$wxUSE_UNICODE_UTF8_LOCALE" = "yes"; then
46864         cat >>confdefs.h <<\_ACEOF
46865 #define wxUSE_UTF8_LOCALE_ONLY 1
46866 _ACEOF
46867
46868     fi
46869 fi
46870
46871
46872 if test "$wxUSE_CONSTRAINTS" = "yes"; then
46873     cat >>confdefs.h <<\_ACEOF
46874 #define wxUSE_CONSTRAINTS 1
46875 _ACEOF
46876
46877     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
46878 fi
46879
46880 if test "$wxUSE_MDI" = "yes"; then
46881     cat >>confdefs.h <<\_ACEOF
46882 #define wxUSE_MDI 1
46883 _ACEOF
46884
46885
46886     if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
46887         cat >>confdefs.h <<\_ACEOF
46888 #define wxUSE_MDI_ARCHITECTURE 1
46889 _ACEOF
46890
46891         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
46892     fi
46893 fi
46894
46895 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
46896     cat >>confdefs.h <<\_ACEOF
46897 #define wxUSE_DOC_VIEW_ARCHITECTURE 1
46898 _ACEOF
46899
46900     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
46901 fi
46902
46903 if test "$wxUSE_HELP" = "yes"; then
46904     cat >>confdefs.h <<\_ACEOF
46905 #define wxUSE_HELP 1
46906 _ACEOF
46907
46908     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
46909
46910     if test "$wxUSE_MSW" = 1; then
46911       if test "$wxUSE_MS_HTML_HELP" = "yes"; then
46912         cat >>confdefs.h <<\_ACEOF
46913 #define wxUSE_MS_HTML_HELP 1
46914 _ACEOF
46915
46916       fi
46917     fi
46918
46919     if test "$wxUSE_WXHTML_HELP" = "yes"; then
46920       if test "$wxUSE_HTML" = "yes"; then
46921         cat >>confdefs.h <<\_ACEOF
46922 #define wxUSE_WXHTML_HELP 1
46923 _ACEOF
46924
46925       else
46926         { echo "$as_me:$LINENO: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&5
46927 echo "$as_me: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&2;}
46928         wxUSE_WXHTML_HELP=no
46929       fi
46930     fi
46931 fi
46932
46933 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
46934     cat >>confdefs.h <<\_ACEOF
46935 #define wxUSE_PRINTING_ARCHITECTURE 1
46936 _ACEOF
46937
46938     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
46939 fi
46940
46941 if test "$wxUSE_POSTSCRIPT" = "yes" ; then
46942   cat >>confdefs.h <<\_ACEOF
46943 #define wxUSE_POSTSCRIPT 1
46944 _ACEOF
46945
46946 fi
46947
46948 cat >>confdefs.h <<\_ACEOF
46949 #define wxUSE_AFM_FOR_POSTSCRIPT 1
46950 _ACEOF
46951
46952
46953 if test "$wxUSE_SVG" = "yes"; then
46954     cat >>confdefs.h <<\_ACEOF
46955 #define wxUSE_SVG 1
46956 _ACEOF
46957
46958 fi
46959
46960
46961 if test "$wxUSE_METAFILE" = "yes"; then
46962     if test "$wxUSE_MSW" != 1 -a "$wxUSE_MAC" != 1 -a "$wxUSE_PM" != 1; then
46963         { echo "$as_me:$LINENO: WARNING: wxMetafile is not available on this system... disabled" >&5
46964 echo "$as_me: WARNING: wxMetafile is not available on this system... disabled" >&2;}
46965         wxUSE_METAFILE=no
46966     fi
46967 fi
46968
46969
46970 if test "$USE_WIN32" = 1 -a \( "$wxUSE_DATAOBJ"       = "yes" \
46971                           -o "$wxUSE_CLIPBOARD"     = "yes" \
46972                           -o "$wxUSE_OLE"     = "yes" \
46973                           -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then
46974     { echo "$as_me:$LINENO: checking for ole2.h" >&5
46975 echo $ECHO_N "checking for ole2.h... $ECHO_C" >&6; }
46976 if test "${ac_cv_header_ole2_h+set}" = set; then
46977   echo $ECHO_N "(cached) $ECHO_C" >&6
46978 else
46979   cat >conftest.$ac_ext <<_ACEOF
46980 /* confdefs.h.  */
46981 _ACEOF
46982 cat confdefs.h >>conftest.$ac_ext
46983 cat >>conftest.$ac_ext <<_ACEOF
46984 /* end confdefs.h.  */
46985
46986
46987 #include <ole2.h>
46988 _ACEOF
46989 rm -f conftest.$ac_objext
46990 if { (ac_try="$ac_compile"
46991 case "(($ac_try" in
46992   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46993   *) ac_try_echo=$ac_try;;
46994 esac
46995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46996   (eval "$ac_compile") 2>conftest.er1
46997   ac_status=$?
46998   grep -v '^ *+' conftest.er1 >conftest.err
46999   rm -f conftest.er1
47000   cat conftest.err >&5
47001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47002   (exit $ac_status); } && {
47003          test -z "$ac_c_werror_flag" ||
47004          test ! -s conftest.err
47005        } && test -s conftest.$ac_objext; then
47006   ac_cv_header_ole2_h=yes
47007 else
47008   echo "$as_me: failed program was:" >&5
47009 sed 's/^/| /' conftest.$ac_ext >&5
47010
47011         ac_cv_header_ole2_h=no
47012 fi
47013
47014 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47015 fi
47016 { echo "$as_me:$LINENO: result: $ac_cv_header_ole2_h" >&5
47017 echo "${ECHO_T}$ac_cv_header_ole2_h" >&6; }
47018
47019
47020
47021     if test "$ac_cv_header_ole2_h" = "yes" ; then
47022         if test "$GCC" = yes ; then
47023             { echo "$as_me:$LINENO: checking if g++ requires -fvtable-thunks" >&5
47024 echo $ECHO_N "checking if g++ requires -fvtable-thunks... $ECHO_C" >&6; }
47025             cat >conftest.$ac_ext <<_ACEOF
47026 /* confdefs.h.  */
47027 _ACEOF
47028 cat confdefs.h >>conftest.$ac_ext
47029 cat >>conftest.$ac_ext <<_ACEOF
47030 /* end confdefs.h.  */
47031 #include <windows.h>
47032                             #include <ole2.h>
47033 int
47034 main ()
47035 {
47036
47037   ;
47038   return 0;
47039 }
47040 _ACEOF
47041 rm -f conftest.$ac_objext
47042 if { (ac_try="$ac_compile"
47043 case "(($ac_try" in
47044   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47045   *) ac_try_echo=$ac_try;;
47046 esac
47047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47048   (eval "$ac_compile") 2>conftest.er1
47049   ac_status=$?
47050   grep -v '^ *+' conftest.er1 >conftest.err
47051   rm -f conftest.er1
47052   cat conftest.err >&5
47053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47054   (exit $ac_status); } && {
47055          test -z "$ac_c_werror_flag" ||
47056          test ! -s conftest.err
47057        } && test -s conftest.$ac_objext; then
47058   { echo "$as_me:$LINENO: result: no" >&5
47059 echo "${ECHO_T}no" >&6; }
47060 else
47061   echo "$as_me: failed program was:" >&5
47062 sed 's/^/| /' conftest.$ac_ext >&5
47063
47064         { echo "$as_me:$LINENO: result: yes" >&5
47065 echo "${ECHO_T}yes" >&6; }
47066                             WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -fvtable-thunks"
47067 fi
47068
47069 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47070             LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS"
47071             if test "$wxUSE_OLE" = "yes" ; then
47072                 cat >>confdefs.h <<\_ACEOF
47073 #define wxUSE_OLE 1
47074 _ACEOF
47075
47076                 cat >>confdefs.h <<\_ACEOF
47077 #define wxUSE_OLE_AUTOMATION 1
47078 _ACEOF
47079
47080                 cat >>confdefs.h <<\_ACEOF
47081 #define wxUSE_ACTIVEX 1
47082 _ACEOF
47083
47084                 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS oleauto"
47085             fi
47086         fi
47087
47088                 if test "$wxUSE_DATAOBJ" = "yes" ; then
47089             cat >>confdefs.h <<\_ACEOF
47090 #define wxUSE_DATAOBJ 1
47091 _ACEOF
47092
47093         fi
47094     else
47095         { echo "$as_me:$LINENO: WARNING: Some features disabled because OLE headers not found" >&5
47096 echo "$as_me: WARNING: Some features disabled because OLE headers not found" >&2;}
47097
47098         wxUSE_CLIPBOARD=no
47099         wxUSE_DRAG_AND_DROP=no
47100         wxUSE_DATAOBJ=no
47101         wxUSE_OLE=no
47102     fi
47103
47104     if test "$wxUSE_METAFILE" = "yes"; then
47105         cat >>confdefs.h <<\_ACEOF
47106 #define wxUSE_METAFILE 1
47107 _ACEOF
47108
47109
47110                 cat >>confdefs.h <<\_ACEOF
47111 #define wxUSE_ENH_METAFILE 1
47112 _ACEOF
47113
47114     fi
47115 fi
47116
47117 if test "$wxUSE_IPC" = "yes"; then
47118     if test "$wxUSE_SOCKETS" != "yes" -a "$USE_WIN32" != 1; then
47119         { echo "$as_me:$LINENO: WARNING: wxWidgets IPC classes require sockets... disabled" >&5
47120 echo "$as_me: WARNING: wxWidgets IPC classes require sockets... disabled" >&2;}
47121         wxUSE_IPC=no
47122     fi
47123
47124     if test "$wxUSE_IPC" = "yes"; then
47125         cat >>confdefs.h <<\_ACEOF
47126 #define wxUSE_IPC 1
47127 _ACEOF
47128
47129         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ipc"
47130     fi
47131 fi
47132
47133 if test "$wxUSE_DATAOBJ" = "yes"; then
47134     if test "$wxUSE_MGL" = 1 -o "$wxUSE_DFB" = 1; then
47135         { echo "$as_me:$LINENO: WARNING: wxDataObject not yet supported under $TOOLKIT... disabled" >&5
47136 echo "$as_me: WARNING: wxDataObject not yet supported under $TOOLKIT... disabled" >&2;}
47137         wxUSE_DATAOBJ=no
47138     else
47139         cat >>confdefs.h <<\_ACEOF
47140 #define wxUSE_DATAOBJ 1
47141 _ACEOF
47142
47143     fi
47144 else
47145     { echo "$as_me:$LINENO: WARNING: Clipboard and drag-and-drop require wxDataObject -- disabled" >&5
47146 echo "$as_me: WARNING: Clipboard and drag-and-drop require wxDataObject -- disabled" >&2;}
47147     wxUSE_CLIPBOARD=no
47148     wxUSE_DRAG_AND_DROP=no
47149 fi
47150
47151 if test "$wxUSE_CLIPBOARD" = "yes"; then
47152     if test "$wxUSE_MGL" = 1 -o "$wxUSE_DFB" = 1; then
47153         { echo "$as_me:$LINENO: WARNING: Clipboard not yet supported under $TOOLKIT... disabled" >&5
47154 echo "$as_me: WARNING: Clipboard not yet supported under $TOOLKIT... disabled" >&2;}
47155         wxUSE_CLIPBOARD=no
47156     fi
47157
47158     if test "$wxUSE_CLIPBOARD" = "yes"; then
47159         cat >>confdefs.h <<\_ACEOF
47160 #define wxUSE_CLIPBOARD 1
47161 _ACEOF
47162
47163     fi
47164 fi
47165
47166 if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
47167     if test "$wxUSE_GTK" = 1; then
47168         if test "$WXGTK12" != 1; then
47169             { echo "$as_me:$LINENO: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&5
47170 echo "$as_me: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&2;}
47171             wxUSE_DRAG_AND_DROP=no
47172         fi
47173     fi
47174
47175     if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_X11" = 1 -o "$wxUSE_MGL" = 1 -o \
47176             "$wxUSE_DFB" = 1; then
47177         { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under $TOOLKIT... disabled" >&5
47178 echo "$as_me: WARNING: Drag and drop not yet supported under $TOOLKIT... disabled" >&2;}
47179         wxUSE_DRAG_AND_DROP=no
47180     fi
47181
47182     if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
47183         cat >>confdefs.h <<\_ACEOF
47184 #define wxUSE_DRAG_AND_DROP 1
47185 _ACEOF
47186
47187     fi
47188
47189 fi
47190
47191 if test "$wxUSE_DRAG_AND_DROP" = "yes" -o "$wxUSE_CLIPBOARD" = "yes"; then
47192     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
47193 fi
47194
47195 if test "$wxUSE_CLIPBOARD" = "yes"; then
47196     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS clipboard"
47197 fi
47198
47199 if test "$wxUSE_SPLINES" = "yes" ; then
47200   cat >>confdefs.h <<\_ACEOF
47201 #define wxUSE_SPLINES 1
47202 _ACEOF
47203
47204 fi
47205
47206 if test "$wxUSE_MOUSEWHEEL" = "yes" ; then
47207   cat >>confdefs.h <<\_ACEOF
47208 #define wxUSE_MOUSEWHEEL 1
47209 _ACEOF
47210
47211 fi
47212
47213 if test "$wxUSE_UIACTIONSIMULATOR" = "yes" ; then
47214     cat >>confdefs.h <<\_ACEOF
47215 #define wxUSE_UIACTIONSIMULATOR 1
47216 _ACEOF
47217
47218     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS uiaction"
47219 fi
47220
47221 if test "$wxUSE_DC_TRANSFORM_MATRIX" = "yes" ; then
47222     cat >>confdefs.h <<\_ACEOF
47223 #define wxUSE_DC_TRANSFORM_MATRIX 1
47224 _ACEOF
47225
47226 fi
47227
47228
47229 USES_CONTROLS=0
47230 if test "$wxUSE_CONTROLS" = "yes"; then
47231   USES_CONTROLS=1
47232 fi
47233
47234 if test "$wxUSE_MARKUP" = "yes"; then
47235   cat >>confdefs.h <<\_ACEOF
47236 #define wxUSE_MARKUP 1
47237 _ACEOF
47238
47239 fi
47240
47241 if test "$wxUSE_ACCEL" = "yes"; then
47242   cat >>confdefs.h <<\_ACEOF
47243 #define wxUSE_ACCEL 1
47244 _ACEOF
47245
47246   USES_CONTROLS=1
47247 fi
47248
47249 if test "$wxUSE_ANIMATIONCTRL" = "yes"; then
47250   cat >>confdefs.h <<\_ACEOF
47251 #define wxUSE_ANIMATIONCTRL 1
47252 _ACEOF
47253
47254   USES_CONTROLS=1
47255   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS animate"
47256 fi
47257
47258 if test "$wxUSE_BUTTON" = "yes"; then
47259   cat >>confdefs.h <<\_ACEOF
47260 #define wxUSE_BUTTON 1
47261 _ACEOF
47262
47263   USES_CONTROLS=1
47264 fi
47265
47266 if test "$wxUSE_BMPBUTTON" = "yes"; then
47267   cat >>confdefs.h <<\_ACEOF
47268 #define wxUSE_BMPBUTTON 1
47269 _ACEOF
47270
47271   USES_CONTROLS=1
47272 fi
47273
47274 if test "$wxUSE_CALCTRL" = "yes"; then
47275   cat >>confdefs.h <<\_ACEOF
47276 #define wxUSE_CALENDARCTRL 1
47277 _ACEOF
47278
47279   USES_CONTROLS=1
47280   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
47281 fi
47282
47283 if test "$wxUSE_CARET" = "yes"; then
47284   cat >>confdefs.h <<\_ACEOF
47285 #define wxUSE_CARET 1
47286 _ACEOF
47287
47288   USES_CONTROLS=1
47289   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
47290 fi
47291
47292 if test "$wxUSE_COLLPANE" = "yes"; then
47293     cat >>confdefs.h <<\_ACEOF
47294 #define wxUSE_COLLPANE 1
47295 _ACEOF
47296
47297     USES_CONTROLS=1
47298     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS collpane"
47299 fi
47300
47301 if test "$wxUSE_COMBOBOX" = "yes"; then
47302   cat >>confdefs.h <<\_ACEOF
47303 #define wxUSE_COMBOBOX 1
47304 _ACEOF
47305
47306   USES_CONTROLS=1
47307 fi
47308
47309 if test "$wxUSE_COMBOCTRL" = "yes"; then
47310   cat >>confdefs.h <<\_ACEOF
47311 #define wxUSE_COMBOCTRL 1
47312 _ACEOF
47313
47314   USES_CONTROLS=1
47315 fi
47316
47317 if test "$wxUSE_COMMANDLINKBUTTON" = "yes"; then
47318   cat >>confdefs.h <<\_ACEOF
47319 #define wxUSE_COMMANDLINKBUTTON 1
47320 _ACEOF
47321
47322   USES_CONTROLS=1
47323 fi
47324
47325 if test "$wxUSE_CHOICE" = "yes"; then
47326   cat >>confdefs.h <<\_ACEOF
47327 #define wxUSE_CHOICE 1
47328 _ACEOF
47329
47330   USES_CONTROLS=1
47331 fi
47332
47333 if test "$wxUSE_CHOICEBOOK" = "yes"; then
47334     cat >>confdefs.h <<\_ACEOF
47335 #define wxUSE_CHOICEBOOK 1
47336 _ACEOF
47337
47338     USES_CONTROLS=1
47339 fi
47340
47341 if test "$wxUSE_CHECKBOX" = "yes"; then
47342   cat >>confdefs.h <<\_ACEOF
47343 #define wxUSE_CHECKBOX 1
47344 _ACEOF
47345
47346   USES_CONTROLS=1
47347 fi
47348
47349 if test "$wxUSE_CHECKLST" = "yes"; then
47350   cat >>confdefs.h <<\_ACEOF
47351 #define wxUSE_CHECKLISTBOX 1
47352 _ACEOF
47353
47354   USES_CONTROLS=1
47355 fi
47356
47357 if test "$wxUSE_COLOURPICKERCTRL" = "yes"; then
47358   cat >>confdefs.h <<\_ACEOF
47359 #define wxUSE_COLOURPICKERCTRL 1
47360 _ACEOF
47361
47362   USES_CONTROLS=1
47363 fi
47364
47365 if test "$wxUSE_DATEPICKCTRL" = "yes"; then
47366   cat >>confdefs.h <<\_ACEOF
47367 #define wxUSE_DATEPICKCTRL 1
47368 _ACEOF
47369
47370   USES_CONTROLS=1
47371 fi
47372
47373 if test "$wxUSE_DIRPICKERCTRL" = "yes"; then
47374   cat >>confdefs.h <<\_ACEOF
47375 #define wxUSE_DIRPICKERCTRL 1
47376 _ACEOF
47377
47378   USES_CONTROLS=1
47379 fi
47380
47381 if test "$wxUSE_FILECTRL" = "yes"; then
47382   cat >>confdefs.h <<\_ACEOF
47383 #define wxUSE_FILECTRL 1
47384 _ACEOF
47385
47386   USES_CONTROLS=1
47387 fi
47388
47389 if test "$wxUSE_FILEPICKERCTRL" = "yes"; then
47390   cat >>confdefs.h <<\_ACEOF
47391 #define wxUSE_FILEPICKERCTRL 1
47392 _ACEOF
47393
47394   USES_CONTROLS=1
47395 fi
47396
47397 if test "$wxUSE_FONTPICKERCTRL" = "yes"; then
47398   cat >>confdefs.h <<\_ACEOF
47399 #define wxUSE_FONTPICKERCTRL 1
47400 _ACEOF
47401
47402   USES_CONTROLS=1
47403 fi
47404
47405 if test "$wxUSE_DISPLAY" = "yes"; then
47406     if test "$wxUSE_DFB" = 1 -o "$wxUSE_MGL" = 1; then
47407         { echo "$as_me:$LINENO: WARNING: wxDisplay not yet supported under $TOOLKIT... disabled" >&5
47408 echo "$as_me: WARNING: wxDisplay not yet supported under $TOOLKIT... disabled" >&2;}
47409         wxUSE_DISPLAY=no
47410     else
47411         cat >>confdefs.h <<\_ACEOF
47412 #define wxUSE_DISPLAY 1
47413 _ACEOF
47414
47415         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS display"
47416     fi
47417 fi
47418
47419 if test "$wxUSE_DETECT_SM" = "yes"; then
47420     cat >>confdefs.h <<\_ACEOF
47421 #define wxUSE_DETECT_SM 1
47422 _ACEOF
47423
47424 fi
47425
47426 if test "$wxUSE_GAUGE" = "yes"; then
47427   cat >>confdefs.h <<\_ACEOF
47428 #define wxUSE_GAUGE 1
47429 _ACEOF
47430
47431   USES_CONTROLS=1
47432 fi
47433
47434 if test "$wxUSE_GRID" = "yes"; then
47435   cat >>confdefs.h <<\_ACEOF
47436 #define wxUSE_GRID 1
47437 _ACEOF
47438
47439   USES_CONTROLS=1
47440   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
47441 fi
47442
47443 if test "$wxUSE_HEADERCTRL" = "yes"; then
47444   cat >>confdefs.h <<\_ACEOF
47445 #define wxUSE_HEADERCTRL 1
47446 _ACEOF
47447
47448   USES_CONTROLS=1
47449 fi
47450
47451 if test "$wxUSE_HYPERLINKCTRL" = "yes"; then
47452   cat >>confdefs.h <<\_ACEOF
47453 #define wxUSE_HYPERLINKCTRL 1
47454 _ACEOF
47455
47456   USES_CONTROLS=1
47457 fi
47458
47459 if test "$wxUSE_BITMAPCOMBOBOX" = "yes"; then
47460   cat >>confdefs.h <<\_ACEOF
47461 #define wxUSE_BITMAPCOMBOBOX 1
47462 _ACEOF
47463
47464   USES_CONTROLS=1
47465 fi
47466
47467 if test "$wxUSE_DATAVIEWCTRL" = "yes"; then
47468   cat >>confdefs.h <<\_ACEOF
47469 #define wxUSE_DATAVIEWCTRL 1
47470 _ACEOF
47471
47472   USES_CONTROLS=1
47473   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dataview"
47474 fi
47475
47476 if test "$wxUSE_IMAGLIST" = "yes"; then
47477     cat >>confdefs.h <<\_ACEOF
47478 #define wxUSE_IMAGLIST 1
47479 _ACEOF
47480
47481 fi
47482
47483 if test "$wxUSE_INFOBAR" = "yes"; then
47484     cat >>confdefs.h <<\_ACEOF
47485 #define wxUSE_INFOBAR 1
47486 _ACEOF
47487
47488 fi
47489
47490 if test "$wxUSE_LISTBOOK" = "yes"; then
47491     cat >>confdefs.h <<\_ACEOF
47492 #define wxUSE_LISTBOOK 1
47493 _ACEOF
47494
47495     USES_CONTROLS=1
47496 fi
47497
47498 if test "$wxUSE_LISTBOX" = "yes"; then
47499     cat >>confdefs.h <<\_ACEOF
47500 #define wxUSE_LISTBOX 1
47501 _ACEOF
47502
47503     USES_CONTROLS=1
47504 fi
47505
47506 if test "$wxUSE_LISTCTRL" = "yes"; then
47507     if test "$wxUSE_IMAGLIST" = "yes"; then
47508         cat >>confdefs.h <<\_ACEOF
47509 #define wxUSE_LISTCTRL 1
47510 _ACEOF
47511
47512         USES_CONTROLS=1
47513         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
47514     else
47515         { echo "$as_me:$LINENO: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&5
47516 echo "$as_me: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&2;}
47517     fi
47518 fi
47519
47520 if test "$wxUSE_EDITABLELISTBOX" = "yes"; then
47521     cat >>confdefs.h <<\_ACEOF
47522 #define wxUSE_EDITABLELISTBOX 1
47523 _ACEOF
47524
47525     USES_CONTROLS=1
47526 fi
47527
47528 if test "$wxUSE_NOTEBOOK" = "yes"; then
47529     cat >>confdefs.h <<\_ACEOF
47530 #define wxUSE_NOTEBOOK 1
47531 _ACEOF
47532
47533     USES_CONTROLS=1
47534     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
47535 fi
47536
47537 if test "$wxUSE_NOTIFICATION_MESSAGE" = "yes"; then
47538     cat >>confdefs.h <<\_ACEOF
47539 #define wxUSE_NOTIFICATION_MESSAGE 1
47540 _ACEOF
47541
47542 fi
47543
47544 if test "$wxUSE_ODCOMBOBOX" = "yes"; then
47545   cat >>confdefs.h <<\_ACEOF
47546 #define wxUSE_ODCOMBOBOX 1
47547 _ACEOF
47548
47549   USES_CONTROLS=1
47550   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS combo"
47551 fi
47552
47553 if test "$wxUSE_RADIOBOX" = "yes"; then
47554     cat >>confdefs.h <<\_ACEOF
47555 #define wxUSE_RADIOBOX 1
47556 _ACEOF
47557
47558     USES_CONTROLS=1
47559 fi
47560
47561 if test "$wxUSE_RADIOBTN" = "yes"; then
47562     cat >>confdefs.h <<\_ACEOF
47563 #define wxUSE_RADIOBTN 1
47564 _ACEOF
47565
47566     USES_CONTROLS=1
47567 fi
47568
47569 if test "$wxUSE_REARRANGECTRL" = "yes"; then
47570     cat >>confdefs.h <<\_ACEOF
47571 #define wxUSE_REARRANGECTRL 1
47572 _ACEOF
47573
47574 fi
47575
47576 if test "$wxUSE_RICHMSGDLG" = "yes"; then
47577     cat >>confdefs.h <<\_ACEOF
47578 #define wxUSE_RICHMSGDLG 1
47579 _ACEOF
47580
47581 fi
47582
47583 if test "$wxUSE_SASH" = "yes"; then
47584     cat >>confdefs.h <<\_ACEOF
47585 #define wxUSE_SASH 1
47586 _ACEOF
47587
47588     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
47589 fi
47590
47591 if test "$wxUSE_SCROLLBAR" = "yes"; then
47592     cat >>confdefs.h <<\_ACEOF
47593 #define wxUSE_SCROLLBAR 1
47594 _ACEOF
47595
47596     USES_CONTROLS=1
47597     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll"
47598 fi
47599
47600 if test "$wxUSE_SEARCHCTRL" = "yes"; then
47601     cat >>confdefs.h <<\_ACEOF
47602 #define wxUSE_SEARCHCTRL 1
47603 _ACEOF
47604
47605     USES_CONTROLS=1
47606 fi
47607
47608 if test "$wxUSE_SLIDER" = "yes"; then
47609     cat >>confdefs.h <<\_ACEOF
47610 #define wxUSE_SLIDER 1
47611 _ACEOF
47612
47613     USES_CONTROLS=1
47614 fi
47615
47616 if test "$wxUSE_SPINBTN" = "yes"; then
47617     cat >>confdefs.h <<\_ACEOF
47618 #define wxUSE_SPINBTN 1
47619 _ACEOF
47620
47621     USES_CONTROLS=1
47622 fi
47623
47624 if test "$wxUSE_SPINCTRL" = "yes"; then
47625     cat >>confdefs.h <<\_ACEOF
47626 #define wxUSE_SPINCTRL 1
47627 _ACEOF
47628
47629     USES_CONTROLS=1
47630 fi
47631
47632 if test "$wxUSE_SPLITTER" = "yes"; then
47633     cat >>confdefs.h <<\_ACEOF
47634 #define wxUSE_SPLITTER 1
47635 _ACEOF
47636
47637     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
47638 fi
47639
47640 if test "$wxUSE_STATBMP" = "yes"; then
47641     cat >>confdefs.h <<\_ACEOF
47642 #define wxUSE_STATBMP 1
47643 _ACEOF
47644
47645     USES_CONTROLS=1
47646 fi
47647
47648 if test "$wxUSE_STATBOX" = "yes"; then
47649     cat >>confdefs.h <<\_ACEOF
47650 #define wxUSE_STATBOX 1
47651 _ACEOF
47652
47653     USES_CONTROLS=1
47654 fi
47655
47656 if test "$wxUSE_STATTEXT" = "yes"; then
47657     cat >>confdefs.h <<\_ACEOF
47658 #define wxUSE_STATTEXT 1
47659 _ACEOF
47660
47661     USES_CONTROLS=1
47662 fi
47663
47664 if test "$wxUSE_STATLINE" = "yes"; then
47665     cat >>confdefs.h <<\_ACEOF
47666 #define wxUSE_STATLINE 1
47667 _ACEOF
47668
47669     USES_CONTROLS=1
47670 fi
47671
47672 if test "$wxUSE_STATUSBAR" = "yes"; then
47673         cat >>confdefs.h <<\_ACEOF
47674 #define wxUSE_NATIVE_STATUSBAR 1
47675 _ACEOF
47676
47677     cat >>confdefs.h <<\_ACEOF
47678 #define wxUSE_STATUSBAR 1
47679 _ACEOF
47680
47681     USES_CONTROLS=1
47682
47683     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
47684 fi
47685
47686 if test "$wxUSE_TEXTCTRL" = "yes"; then
47687     cat >>confdefs.h <<\_ACEOF
47688 #define wxUSE_TEXTCTRL 1
47689 _ACEOF
47690
47691     USES_CONTROLS=1
47692     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
47693
47694             cat >>confdefs.h <<\_ACEOF
47695 #define wxUSE_RICHEDIT 1
47696 _ACEOF
47697
47698     cat >>confdefs.h <<\_ACEOF
47699 #define wxUSE_RICHEDIT2 1
47700 _ACEOF
47701
47702 fi
47703
47704 if test "$wxUSE_TOGGLEBTN" = "yes"; then
47705     if test "$wxUSE_OLD_COCOA" = 1 ; then
47706         { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&5
47707 echo "$as_me: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&2;}
47708         wxUSE_TOGGLEBTN=no
47709     fi
47710
47711     if test "$wxUSE_TOGGLEBTN" = "yes"; then
47712         cat >>confdefs.h <<\_ACEOF
47713 #define wxUSE_TOGGLEBTN 1
47714 _ACEOF
47715
47716         USES_CONTROLS=1
47717     fi
47718 fi
47719
47720 if test "$wxUSE_TOOLBAR" = "yes"; then
47721     cat >>confdefs.h <<\_ACEOF
47722 #define wxUSE_TOOLBAR 1
47723 _ACEOF
47724
47725     USES_CONTROLS=1
47726
47727     if test "$wxUSE_UNIVERSAL" = "yes"; then
47728         wxUSE_TOOLBAR_NATIVE="no"
47729     else
47730         wxUSE_TOOLBAR_NATIVE="yes"
47731         cat >>confdefs.h <<\_ACEOF
47732 #define wxUSE_TOOLBAR_NATIVE 1
47733 _ACEOF
47734
47735     fi
47736
47737     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
47738 fi
47739
47740 if test "$wxUSE_TOOLTIPS" = "yes"; then
47741     if test "$wxUSE_MOTIF" = 1; then
47742         { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet under Motif... disabled" >&5
47743 echo "$as_me: WARNING: wxTooltip not supported yet under Motif... disabled" >&2;}
47744     else
47745         if test "$wxUSE_UNIVERSAL" = "yes"; then
47746             { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&5
47747 echo "$as_me: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&2;}
47748         else
47749             cat >>confdefs.h <<\_ACEOF
47750 #define wxUSE_TOOLTIPS 1
47751 _ACEOF
47752
47753         fi
47754     fi
47755 fi
47756
47757 if test "$wxUSE_TREEBOOK" = "yes"; then
47758     cat >>confdefs.h <<\_ACEOF
47759 #define wxUSE_TREEBOOK 1
47760 _ACEOF
47761
47762     USES_CONTROLS=1
47763 fi
47764
47765 if test "$wxUSE_TOOLBOOK" = "yes"; then
47766     cat >>confdefs.h <<\_ACEOF
47767 #define wxUSE_TOOLBOOK 1
47768 _ACEOF
47769
47770     USES_CONTROLS=1
47771 fi
47772
47773 if test "$wxUSE_TREECTRL" = "yes"; then
47774     if test "$wxUSE_IMAGLIST" = "yes"; then
47775         cat >>confdefs.h <<\_ACEOF
47776 #define wxUSE_TREECTRL 1
47777 _ACEOF
47778
47779         USES_CONTROLS=1
47780         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
47781     else
47782         { echo "$as_me:$LINENO: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&5
47783 echo "$as_me: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&2;}
47784     fi
47785 fi
47786
47787 if test "$wxUSE_POPUPWIN" = "yes"; then
47788     if test "$wxUSE_OLD_COCOA" = 1 ; then
47789         { echo "$as_me:$LINENO: WARNING: Popup window not yet supported under Mac OS X... disabled" >&5
47790 echo "$as_me: WARNING: Popup window not yet supported under Mac OS X... disabled" >&2;}
47791     else
47792         if test "$wxUSE_PM" = 1; then
47793             { echo "$as_me:$LINENO: WARNING: wxPopupWindow not yet supported under PM... disabled" >&5
47794 echo "$as_me: WARNING: wxPopupWindow not yet supported under PM... disabled" >&2;}
47795         else
47796             cat >>confdefs.h <<\_ACEOF
47797 #define wxUSE_POPUPWIN 1
47798 _ACEOF
47799
47800             SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS popup"
47801
47802             USES_CONTROLS=1
47803         fi
47804     fi
47805 fi
47806
47807 if test "$wxUSE_DIALUP_MANAGER" = "yes"; then
47808     if test "$wxUSE_MAC" = 1 -o "$wxUSE_OLD_COCOA" = 1 -o "$wxUSE_MGL" = 1; then
47809         { echo "$as_me:$LINENO: WARNING: Dialup manager not supported on this platform... disabled" >&5
47810 echo "$as_me: WARNING: Dialup manager not supported on this platform... disabled" >&2;}
47811     else
47812         cat >>confdefs.h <<\_ACEOF
47813 #define wxUSE_DIALUP_MANAGER 1
47814 _ACEOF
47815
47816         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
47817     fi
47818 fi
47819
47820 if test "$wxUSE_TIPWINDOW" = "yes"; then
47821     if test "$wxUSE_PM" = 1; then
47822         { echo "$as_me:$LINENO: WARNING: wxTipWindow not yet supported under PM... disabled" >&5
47823 echo "$as_me: WARNING: wxTipWindow not yet supported under PM... disabled" >&2;}
47824     else
47825         cat >>confdefs.h <<\_ACEOF
47826 #define wxUSE_TIPWINDOW 1
47827 _ACEOF
47828
47829     fi
47830 fi
47831
47832 if test "$USES_CONTROLS" = 1; then
47833     cat >>confdefs.h <<\_ACEOF
47834 #define wxUSE_CONTROLS 1
47835 _ACEOF
47836
47837 fi
47838
47839
47840 if test "$wxUSE_ACCESSIBILITY" = "yes"; then
47841     cat >>confdefs.h <<\_ACEOF
47842 #define wxUSE_ACCESSIBILITY 1
47843 _ACEOF
47844
47845     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS access"
47846 fi
47847
47848 if test "$wxUSE_ARTPROVIDER_STD" = "yes"; then
47849     cat >>confdefs.h <<\_ACEOF
47850 #define wxUSE_ARTPROVIDER_STD 1
47851 _ACEOF
47852
47853 fi
47854
47855 if test "$wxUSE_ARTPROVIDER_TANGO" = "auto"; then
47856             if test "$wxUSE_GTK" != 1; then
47857                 if test "$wxUSE_LIBPNG" != no -a \
47858                 "$wxUSE_IMAGE" = yes -a \
47859                 "$wxUSE_STREAMS" = yes; then
47860             wxUSE_ARTPROVIDER_TANGO="yes"
47861         fi
47862     fi
47863 fi
47864
47865 if test "$wxUSE_ARTPROVIDER_TANGO" = "yes"; then
47866     cat >>confdefs.h <<\_ACEOF
47867 #define wxUSE_ARTPROVIDER_TANGO 1
47868 _ACEOF
47869
47870 fi
47871
47872 if test "$wxUSE_DRAGIMAGE" = "yes"; then
47873     cat >>confdefs.h <<\_ACEOF
47874 #define wxUSE_DRAGIMAGE 1
47875 _ACEOF
47876
47877     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
47878 fi
47879
47880 if test "$wxUSE_EXCEPTIONS" = "yes"; then
47881     if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
47882         { echo "$as_me:$LINENO: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&5
47883 echo "$as_me: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&2;}
47884     else
47885         cat >>confdefs.h <<\_ACEOF
47886 #define wxUSE_EXCEPTIONS 1
47887 _ACEOF
47888
47889         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS except"
47890     fi
47891 fi
47892
47893 USE_HTML=0
47894 if test "$wxUSE_HTML" = "yes"; then
47895     cat >>confdefs.h <<\_ACEOF
47896 #define wxUSE_HTML 1
47897 _ACEOF
47898
47899     USE_HTML=1
47900     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html html/about html/help html/helpview html/printing html/test html/virtual html/widget html/zip htlbox"
47901 fi
47902 if test "$wxUSE_WEBKIT" = "yes"; then
47903     if test "$wxUSE_MAC" = 1 -a "$USE_DARWIN" = 1; then
47904         old_CPPFLAGS="$CPPFLAGS"
47905         CPPFLAGS="-x objective-c++ $CPPFLAGS"
47906         { echo "$as_me:$LINENO: checking for WebKit/HIWebView.h" >&5
47907 echo $ECHO_N "checking for WebKit/HIWebView.h... $ECHO_C" >&6; }
47908 if test "${ac_cv_header_WebKit_HIWebView_h+set}" = set; then
47909   echo $ECHO_N "(cached) $ECHO_C" >&6
47910 else
47911   cat >conftest.$ac_ext <<_ACEOF
47912 /* confdefs.h.  */
47913 _ACEOF
47914 cat confdefs.h >>conftest.$ac_ext
47915 cat >>conftest.$ac_ext <<_ACEOF
47916 /* end confdefs.h.  */
47917
47918                            #include <Carbon/Carbon.h>
47919                            #include <WebKit/WebKit.h>
47920
47921
47922 #include <WebKit/HIWebView.h>
47923 _ACEOF
47924 rm -f conftest.$ac_objext
47925 if { (ac_try="$ac_compile"
47926 case "(($ac_try" in
47927   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47928   *) ac_try_echo=$ac_try;;
47929 esac
47930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47931   (eval "$ac_compile") 2>conftest.er1
47932   ac_status=$?
47933   grep -v '^ *+' conftest.er1 >conftest.err
47934   rm -f conftest.er1
47935   cat conftest.err >&5
47936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47937   (exit $ac_status); } && {
47938          test -z "$ac_c_werror_flag" ||
47939          test ! -s conftest.err
47940        } && test -s conftest.$ac_objext; then
47941   ac_cv_header_WebKit_HIWebView_h=yes
47942 else
47943   echo "$as_me: failed program was:" >&5
47944 sed 's/^/| /' conftest.$ac_ext >&5
47945
47946         ac_cv_header_WebKit_HIWebView_h=no
47947 fi
47948
47949 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47950 fi
47951 { echo "$as_me:$LINENO: result: $ac_cv_header_WebKit_HIWebView_h" >&5
47952 echo "${ECHO_T}$ac_cv_header_WebKit_HIWebView_h" >&6; }
47953 if test $ac_cv_header_WebKit_HIWebView_h = yes; then
47954
47955                            cat >>confdefs.h <<\_ACEOF
47956 #define wxUSE_WEBKIT 1
47957 _ACEOF
47958
47959                            WEBKIT_LINK="-framework WebKit"
47960
47961 else
47962
47963                            { echo "$as_me:$LINENO: WARNING: WebKit headers not found; disabling wxWebKit" >&5
47964 echo "$as_me: WARNING: WebKit headers not found; disabling wxWebKit" >&2;}
47965                            wxUSE_WEBKIT=no
47966
47967 fi
47968
47969
47970         CPPFLAGS="$old_CPPFLAGS"
47971     elif test "$wxUSE_OLD_COCOA" = 1; then
47972         cat >>confdefs.h <<\_ACEOF
47973 #define wxUSE_WEBKIT 1
47974 _ACEOF
47975
47976     else
47977         wxUSE_WEBKIT=no
47978     fi
47979     if test "$wxUSE_WEBKIT" = "yes"; then
47980         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html/htmlctrl"
47981     fi
47982 fi
47983
47984 USE_XRC=0
47985 if test "$wxUSE_XRC" = "yes"; then
47986     if test "$wxUSE_XML" != "yes"; then
47987         { echo "$as_me:$LINENO: WARNING: XML library not built, XRC resources disabled" >&5
47988 echo "$as_me: WARNING: XML library not built, XRC resources disabled" >&2;}
47989         wxUSE_XRC=no
47990     else
47991         cat >>confdefs.h <<\_ACEOF
47992 #define wxUSE_XRC 1
47993 _ACEOF
47994
47995         USE_XRC=1
47996         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS xrc"
47997     fi
47998 fi
47999
48000 USE_AUI=0
48001 if test "$wxUSE_AUI" = "yes"; then
48002    cat >>confdefs.h <<\_ACEOF
48003 #define wxUSE_AUI 1
48004 _ACEOF
48005
48006    USE_AUI=1
48007    SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS aui"
48008 fi
48009
48010 USE_PROPGRID=0
48011 if test "$wxUSE_PROPGRID" = "yes"; then
48012    cat >>confdefs.h <<\_ACEOF
48013 #define wxUSE_PROPGRID 1
48014 _ACEOF
48015
48016    USE_PROPGRID=1
48017    SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS propgrid"
48018 fi
48019
48020 USE_RIBBON=0
48021 if test "$wxUSE_RIBBON" = "yes"; then
48022    cat >>confdefs.h <<\_ACEOF
48023 #define wxUSE_RIBBON 1
48024 _ACEOF
48025
48026    USE_RIBBON=1
48027    SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ribbon"
48028 fi
48029
48030 USE_STC=0
48031 if test "$wxUSE_STC" = "yes"; then
48032    cat >>confdefs.h <<\_ACEOF
48033 #define wxUSE_STC 1
48034 _ACEOF
48035
48036    USE_STC=1
48037    SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS stc"
48038
48039       # Extract the first word of "python", so it can be a program name with args.
48040 set dummy python; ac_word=$2
48041 { echo "$as_me:$LINENO: checking for $ac_word" >&5
48042 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
48043 if test "${ac_cv_path_PYTHON+set}" = set; then
48044   echo $ECHO_N "(cached) $ECHO_C" >&6
48045 else
48046   case $PYTHON in
48047   [\\/]* | ?:[\\/]*)
48048   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
48049   ;;
48050   *)
48051   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
48052 for as_dir in $PATH
48053 do
48054   IFS=$as_save_IFS
48055   test -z "$as_dir" && as_dir=.
48056   for ac_exec_ext in '' $ac_executable_extensions; do
48057   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
48058     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
48059     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
48060     break 2
48061   fi
48062 done
48063 done
48064 IFS=$as_save_IFS
48065
48066   ;;
48067 esac
48068 fi
48069 PYTHON=$ac_cv_path_PYTHON
48070 if test -n "$PYTHON"; then
48071   { echo "$as_me:$LINENO: result: $PYTHON" >&5
48072 echo "${ECHO_T}$PYTHON" >&6; }
48073 else
48074   { echo "$as_me:$LINENO: result: no" >&5
48075 echo "${ECHO_T}no" >&6; }
48076 fi
48077
48078
48079    if test "x$PYTHON" = "x"; then
48080      COND_PYTHON="#"
48081    fi
48082
48083 fi
48084
48085 if test "$wxUSE_MENUS" = "yes"; then
48086     cat >>confdefs.h <<\_ACEOF
48087 #define wxUSE_MENUS 1
48088 _ACEOF
48089
48090     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
48091 fi
48092
48093 if test "$wxUSE_METAFILE" = "yes"; then
48094     cat >>confdefs.h <<\_ACEOF
48095 #define wxUSE_METAFILE 1
48096 _ACEOF
48097
48098 fi
48099
48100 if test "$wxUSE_MIMETYPE" = "yes"; then
48101     cat >>confdefs.h <<\_ACEOF
48102 #define wxUSE_MIMETYPE 1
48103 _ACEOF
48104
48105 fi
48106
48107 if test "$wxUSE_MINIFRAME" = "yes"; then
48108     cat >>confdefs.h <<\_ACEOF
48109 #define wxUSE_MINIFRAME 1
48110 _ACEOF
48111
48112 fi
48113
48114 if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
48115     cat >>confdefs.h <<\_ACEOF
48116 #define wxUSE_SYSTEM_OPTIONS 1
48117 _ACEOF
48118
48119 fi
48120
48121 if test "$wxUSE_TASKBARICON" = "yes"; then
48122     cat >>confdefs.h <<\_ACEOF
48123 #define wxUSE_TASKBARICON 1
48124 _ACEOF
48125
48126     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar"
48127 fi
48128
48129
48130 if test "$wxUSE_VALIDATORS" = "yes"; then
48131     cat >>confdefs.h <<\_ACEOF
48132 #define wxUSE_VALIDATORS 1
48133 _ACEOF
48134
48135     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
48136 fi
48137
48138 if test "$wxUSE_PALETTE" = "yes" ; then
48139     if test "$wxUSE_DFB" = 1; then
48140         { echo "$as_me:$LINENO: WARNING: wxPalette not yet supported under DFB... disabled" >&5
48141 echo "$as_me: WARNING: wxPalette not yet supported under DFB... disabled" >&2;}
48142         wxUSE_PALETTE=no
48143     else
48144         cat >>confdefs.h <<\_ACEOF
48145 #define wxUSE_PALETTE 1
48146 _ACEOF
48147
48148     fi
48149 fi
48150
48151 if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then
48152     LIBS=" -lunicows $LIBS"
48153 fi
48154
48155 USE_RICHTEXT=0
48156 if test "$wxUSE_RICHTEXT" = "yes"; then
48157     cat >>confdefs.h <<\_ACEOF
48158 #define wxUSE_RICHTEXT 1
48159 _ACEOF
48160
48161     USE_RICHTEXT=1
48162     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS richtext"
48163 fi
48164
48165
48166 if test "$wxUSE_IMAGE" = "yes" ; then
48167     cat >>confdefs.h <<\_ACEOF
48168 #define wxUSE_IMAGE 1
48169 _ACEOF
48170
48171
48172     if test "$wxUSE_GIF" = "yes" ; then
48173       cat >>confdefs.h <<\_ACEOF
48174 #define wxUSE_GIF 1
48175 _ACEOF
48176
48177     fi
48178
48179     if test "$wxUSE_PCX" = "yes" ; then
48180       cat >>confdefs.h <<\_ACEOF
48181 #define wxUSE_PCX 1
48182 _ACEOF
48183
48184     fi
48185
48186     if test "$wxUSE_TGA" = "yes" ; then
48187       cat >>confdefs.h <<\_ACEOF
48188 #define wxUSE_TGA 1
48189 _ACEOF
48190
48191     fi
48192
48193     if test "$wxUSE_IFF" = "yes" ; then
48194       cat >>confdefs.h <<\_ACEOF
48195 #define wxUSE_IFF 1
48196 _ACEOF
48197
48198     fi
48199
48200     if test "$wxUSE_PNM" = "yes" ; then
48201       cat >>confdefs.h <<\_ACEOF
48202 #define wxUSE_PNM 1
48203 _ACEOF
48204
48205     fi
48206
48207     if test "$wxUSE_XPM" = "yes" ; then
48208       cat >>confdefs.h <<\_ACEOF
48209 #define wxUSE_XPM 1
48210 _ACEOF
48211
48212     fi
48213
48214     if test "$wxUSE_ICO_CUR" = "yes" ; then
48215       cat >>confdefs.h <<\_ACEOF
48216 #define wxUSE_ICO_CUR 1
48217 _ACEOF
48218
48219     fi
48220 fi
48221
48222
48223 if test "$wxUSE_ABOUTDLG" = "yes"; then
48224     cat >>confdefs.h <<\_ACEOF
48225 #define wxUSE_ABOUTDLG 1
48226 _ACEOF
48227
48228 fi
48229
48230 if test "$wxUSE_CHOICEDLG" = "yes"; then
48231     cat >>confdefs.h <<\_ACEOF
48232 #define wxUSE_CHOICEDLG 1
48233 _ACEOF
48234
48235 fi
48236
48237 if test "$wxUSE_COLOURDLG" = "yes"; then
48238     cat >>confdefs.h <<\_ACEOF
48239 #define wxUSE_COLOURDLG 1
48240 _ACEOF
48241
48242 fi
48243
48244 if test "$wxUSE_FILEDLG" = "yes"; then
48245     cat >>confdefs.h <<\_ACEOF
48246 #define wxUSE_FILEDLG 1
48247 _ACEOF
48248
48249 fi
48250
48251 if test "$wxUSE_FINDREPLDLG" = "yes"; then
48252     cat >>confdefs.h <<\_ACEOF
48253 #define wxUSE_FINDREPLDLG 1
48254 _ACEOF
48255
48256 fi
48257
48258 if test "$wxUSE_FONTDLG" = "yes"; then
48259     cat >>confdefs.h <<\_ACEOF
48260 #define wxUSE_FONTDLG 1
48261 _ACEOF
48262
48263 fi
48264
48265 if test "$wxUSE_DIRDLG" = "yes"; then
48266     if test "$wxUSE_TREECTRL" != "yes"; then
48267         { echo "$as_me:$LINENO: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&5
48268 echo "$as_me: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&2;}
48269     else
48270         cat >>confdefs.h <<\_ACEOF
48271 #define wxUSE_DIRDLG 1
48272 _ACEOF
48273
48274     fi
48275 fi
48276
48277 if test "$wxUSE_MSGDLG" = "yes"; then
48278     cat >>confdefs.h <<\_ACEOF
48279 #define wxUSE_MSGDLG 1
48280 _ACEOF
48281
48282 fi
48283
48284 if test "$wxUSE_NUMBERDLG" = "yes"; then
48285     cat >>confdefs.h <<\_ACEOF
48286 #define wxUSE_NUMBERDLG 1
48287 _ACEOF
48288
48289 fi
48290
48291 if test "$wxUSE_PROGRESSDLG" = "yes"; then
48292     cat >>confdefs.h <<\_ACEOF
48293 #define wxUSE_PROGRESSDLG 1
48294 _ACEOF
48295
48296 fi
48297
48298 if test "$wxUSE_SPLASH" = "yes"; then
48299     cat >>confdefs.h <<\_ACEOF
48300 #define wxUSE_SPLASH 1
48301 _ACEOF
48302
48303     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splash"
48304 fi
48305
48306 if test "$wxUSE_STARTUP_TIPS" = "yes"; then
48307     cat >>confdefs.h <<\_ACEOF
48308 #define wxUSE_STARTUP_TIPS 1
48309 _ACEOF
48310
48311 fi
48312
48313 if test "$wxUSE_TEXTDLG" = "yes"; then
48314     cat >>confdefs.h <<\_ACEOF
48315 #define wxUSE_TEXTDLG 1
48316 _ACEOF
48317
48318 fi
48319
48320 if test "$wxUSE_WIZARDDLG" = "yes"; then
48321     cat >>confdefs.h <<\_ACEOF
48322 #define wxUSE_WIZARDDLG 1
48323 _ACEOF
48324
48325     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
48326 fi
48327
48328
48329 if test "$wxUSE_MSW" = 1 -o "$wxUSE_PM" = 1; then
48330     if test "$wxUSE_OWNER_DRAWN" = "yes"; then
48331         cat >>confdefs.h <<\_ACEOF
48332 #define wxUSE_OWNER_DRAWN 1
48333 _ACEOF
48334
48335     fi
48336 fi
48337
48338
48339 if test "$wxUSE_MSW" = 1 ; then
48340
48341     if test "$wxUSE_DC_CACHEING" = "yes"; then
48342         cat >>confdefs.h <<\_ACEOF
48343 #define wxUSE_DC_CACHEING 1
48344 _ACEOF
48345
48346     fi
48347
48348     if test "$wxUSE_DIB" = "yes"; then
48349         cat >>confdefs.h <<\_ACEOF
48350 #define wxUSE_WXDIB 1
48351 _ACEOF
48352
48353     fi
48354
48355     if test "$wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW" = "yes"; then
48356         cat >>confdefs.h <<\_ACEOF
48357 #define wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW 1
48358 _ACEOF
48359
48360     fi
48361
48362     if test "$wxUSE_UXTHEME" = "yes"; then
48363         cat >>confdefs.h <<\_ACEOF
48364 #define wxUSE_UXTHEME 1
48365 _ACEOF
48366
48367     fi
48368
48369 fi
48370
48371 if test "$wxUSE_AUTOID_MANAGEMENT" = "yes"; then
48372     cat >>confdefs.h <<\_ACEOF
48373 #define wxUSE_AUTOID_MANAGEMENT 1
48374 _ACEOF
48375
48376 fi
48377
48378 if test "$USE_WIN32" = 1 ; then
48379     if test "$wxUSE_INICONF" = "yes"; then
48380         cat >>confdefs.h <<\_ACEOF
48381 #define wxUSE_INICONF 1
48382 _ACEOF
48383
48384     fi
48385
48386     if test "$wxUSE_REGKEY" = "yes"; then
48387         cat >>confdefs.h <<\_ACEOF
48388 #define wxUSE_REGKEY 1
48389 _ACEOF
48390
48391     fi
48392 fi
48393
48394
48395 if test "$wxUSE_MAC" = 1; then
48396     wxUSE_GRAPHICS_CONTEXT="yes"
48397 fi
48398
48399 if test "$wxUSE_GRAPHICS_CONTEXT" = "yes"; then
48400     wx_has_graphics=0
48401     if test "$wxUSE_MSW" = 1; then
48402         { echo "$as_me:$LINENO: checking if GDI+ is available" >&5
48403 echo $ECHO_N "checking if GDI+ is available... $ECHO_C" >&6; }
48404 if test "${wx_cv_lib_gdiplus+set}" = set; then
48405   echo $ECHO_N "(cached) $ECHO_C" >&6
48406 else
48407
48408                                                 ac_ext=cpp
48409 ac_cpp='$CXXCPP $CPPFLAGS'
48410 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
48411 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
48412 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
48413
48414                 cat >conftest.$ac_ext <<_ACEOF
48415 /* confdefs.h.  */
48416 _ACEOF
48417 cat confdefs.h >>conftest.$ac_ext
48418 cat >>conftest.$ac_ext <<_ACEOF
48419 /* end confdefs.h.  */
48420 #include <windows.h>
48421                      #include <gdiplus.h>
48422 int
48423 main ()
48424 {
48425
48426                         using namespace Gdiplus;
48427
48428   ;
48429   return 0;
48430 }
48431 _ACEOF
48432 rm -f conftest.$ac_objext
48433 if { (ac_try="$ac_compile"
48434 case "(($ac_try" in
48435   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48436   *) ac_try_echo=$ac_try;;
48437 esac
48438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48439   (eval "$ac_compile") 2>conftest.er1
48440   ac_status=$?
48441   grep -v '^ *+' conftest.er1 >conftest.err
48442   rm -f conftest.er1
48443   cat conftest.err >&5
48444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48445   (exit $ac_status); } && {
48446          test -z "$ac_cxx_werror_flag" ||
48447          test ! -s conftest.err
48448        } && test -s conftest.$ac_objext; then
48449   wx_cv_lib_gdiplus=yes
48450 else
48451   echo "$as_me: failed program was:" >&5
48452 sed 's/^/| /' conftest.$ac_ext >&5
48453
48454         wx_cv_lib_gdiplus=no
48455
48456 fi
48457
48458 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
48459                 ac_ext=c
48460 ac_cpp='$CPP $CPPFLAGS'
48461 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
48462 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
48463 ac_compiler_gnu=$ac_cv_c_compiler_gnu
48464
48465
48466
48467 fi
48468 { echo "$as_me:$LINENO: result: $wx_cv_lib_gdiplus" >&5
48469 echo "${ECHO_T}$wx_cv_lib_gdiplus" >&6; }
48470         if test "$wx_cv_lib_gdiplus" = "yes"; then
48471             wx_has_graphics=1
48472         fi
48473     elif test "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then
48474
48475 pkg_failed=no
48476 { echo "$as_me:$LINENO: checking for CAIRO" >&5
48477 echo $ECHO_N "checking for CAIRO... $ECHO_C" >&6; }
48478
48479 if test -n "$PKG_CONFIG"; then
48480     if test -n "$CAIRO_CFLAGS"; then
48481         pkg_cv_CAIRO_CFLAGS="$CAIRO_CFLAGS"
48482     else
48483         if test -n "$PKG_CONFIG" && \
48484     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"cairo\"") >&5
48485   ($PKG_CONFIG --exists --print-errors "cairo") 2>&5
48486   ac_status=$?
48487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48488   (exit $ac_status); }; then
48489   pkg_cv_CAIRO_CFLAGS=`$PKG_CONFIG --cflags "cairo" 2>/dev/null`
48490 else
48491   pkg_failed=yes
48492 fi
48493     fi
48494 else
48495         pkg_failed=untried
48496 fi
48497 if test -n "$PKG_CONFIG"; then
48498     if test -n "$CAIRO_LIBS"; then
48499         pkg_cv_CAIRO_LIBS="$CAIRO_LIBS"
48500     else
48501         if test -n "$PKG_CONFIG" && \
48502     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"cairo\"") >&5
48503   ($PKG_CONFIG --exists --print-errors "cairo") 2>&5
48504   ac_status=$?
48505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48506   (exit $ac_status); }; then
48507   pkg_cv_CAIRO_LIBS=`$PKG_CONFIG --libs "cairo" 2>/dev/null`
48508 else
48509   pkg_failed=yes
48510 fi
48511     fi
48512 else
48513         pkg_failed=untried
48514 fi
48515
48516
48517
48518 if test $pkg_failed = yes; then
48519
48520 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
48521         _pkg_short_errors_supported=yes
48522 else
48523         _pkg_short_errors_supported=no
48524 fi
48525         if test $_pkg_short_errors_supported = yes; then
48526                 CAIRO_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cairo"`
48527         else
48528                 CAIRO_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cairo"`
48529         fi
48530         # Put the nasty error message in config.log where it belongs
48531         echo "$CAIRO_PKG_ERRORS" >&5
48532
48533         { echo "$as_me:$LINENO: WARNING: Cairo library not found" >&5
48534 echo "$as_me: WARNING: Cairo library not found" >&2;}
48535
48536 elif test $pkg_failed = untried; then
48537         { echo "$as_me:$LINENO: WARNING: Cairo library not found" >&5
48538 echo "$as_me: WARNING: Cairo library not found" >&2;}
48539
48540 else
48541         CAIRO_CFLAGS=$pkg_cv_CAIRO_CFLAGS
48542         CAIRO_LIBS=$pkg_cv_CAIRO_LIBS
48543         { echo "$as_me:$LINENO: result: yes" >&5
48544 echo "${ECHO_T}yes" >&6; }
48545         wx_has_graphics=1
48546 fi
48547         if test "$wx_has_graphics" = 1; then
48548                                                 save_LIBS="$LIBS"
48549             LIBS="$LIBS $CAIRO_LIBS"
48550
48551 for ac_func in cairo_push_group
48552 do
48553 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
48554 { echo "$as_me:$LINENO: checking for $ac_func" >&5
48555 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
48556 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
48557   echo $ECHO_N "(cached) $ECHO_C" >&6
48558 else
48559   cat >conftest.$ac_ext <<_ACEOF
48560 /* confdefs.h.  */
48561 _ACEOF
48562 cat confdefs.h >>conftest.$ac_ext
48563 cat >>conftest.$ac_ext <<_ACEOF
48564 /* end confdefs.h.  */
48565 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
48566    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
48567 #define $ac_func innocuous_$ac_func
48568
48569 /* System header to define __stub macros and hopefully few prototypes,
48570     which can conflict with char $ac_func (); below.
48571     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
48572     <limits.h> exists even on freestanding compilers.  */
48573
48574 #ifdef __STDC__
48575 # include <limits.h>
48576 #else
48577 # include <assert.h>
48578 #endif
48579
48580 #undef $ac_func
48581
48582 /* Override any GCC internal prototype to avoid an error.
48583    Use char because int might match the return type of a GCC
48584    builtin and then its argument prototype would still apply.  */
48585 #ifdef __cplusplus
48586 extern "C"
48587 #endif
48588 char $ac_func ();
48589 /* The GNU C library defines this for functions which it implements
48590     to always fail with ENOSYS.  Some functions are actually named
48591     something starting with __ and the normal name is an alias.  */
48592 #if defined __stub_$ac_func || defined __stub___$ac_func
48593 choke me
48594 #endif
48595
48596 int
48597 main ()
48598 {
48599 return $ac_func ();
48600   ;
48601   return 0;
48602 }
48603 _ACEOF
48604 rm -f conftest.$ac_objext conftest$ac_exeext
48605 if { (ac_try="$ac_link"
48606 case "(($ac_try" in
48607   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48608   *) ac_try_echo=$ac_try;;
48609 esac
48610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48611   (eval "$ac_link") 2>conftest.er1
48612   ac_status=$?
48613   grep -v '^ *+' conftest.er1 >conftest.err
48614   rm -f conftest.er1
48615   cat conftest.err >&5
48616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48617   (exit $ac_status); } && {
48618          test -z "$ac_c_werror_flag" ||
48619          test ! -s conftest.err
48620        } && test -s conftest$ac_exeext &&
48621        $as_test_x conftest$ac_exeext; then
48622   eval "$as_ac_var=yes"
48623 else
48624   echo "$as_me: failed program was:" >&5
48625 sed 's/^/| /' conftest.$ac_ext >&5
48626
48627         eval "$as_ac_var=no"
48628 fi
48629
48630 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
48631       conftest$ac_exeext conftest.$ac_ext
48632 fi
48633 ac_res=`eval echo '${'$as_ac_var'}'`
48634                { echo "$as_me:$LINENO: result: $ac_res" >&5
48635 echo "${ECHO_T}$ac_res" >&6; }
48636 if test `eval echo '${'$as_ac_var'}'` = yes; then
48637   cat >>confdefs.h <<_ACEOF
48638 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
48639 _ACEOF
48640
48641 fi
48642 done
48643
48644             LIBS="$save_LIBS"
48645             if test "$ac_cv_func_cairo_push_group" = "no"; then
48646                 wx_has_graphics=0
48647                 { echo "$as_me:$LINENO: WARNING: Cairo library is too old and misses cairo_push_group()" >&5
48648 echo "$as_me: WARNING: Cairo library is too old and misses cairo_push_group()" >&2;}
48649             else
48650                 cat >>confdefs.h <<\_ACEOF
48651 #define wxUSE_CAIRO 1
48652 _ACEOF
48653
48654
48655                                                 if test "$wxUSE_GTK" != 1; then
48656                     CPPFLAGS="$CAIRO_CFLAGS $CPPFLAGS"
48657                     GUI_TK_LIBRARY="$GUI_TK_LIBRARY $CAIRO_LIBS"
48658                 fi
48659             fi
48660         fi
48661     else
48662                 wx_has_graphics=1
48663     fi
48664
48665     if test "$wx_has_graphics" = 1; then
48666         cat >>confdefs.h <<\_ACEOF
48667 #define wxUSE_GRAPHICS_CONTEXT 1
48668 _ACEOF
48669
48670     else
48671         { echo "$as_me:$LINENO: WARNING: wxGraphicsContext won't be available" >&5
48672 echo "$as_me: WARNING: wxGraphicsContext won't be available" >&2;}
48673     fi
48674 fi
48675
48676
48677 USE_MEDIA=0
48678
48679 if test "$wxUSE_MEDIACTRL" = "yes" -o "$wxUSE_MEDIACTRL" = "auto"; then
48680     USE_MEDIA=1
48681
48682                 if test "$wxUSE_GTK" = 1; then
48683         wxUSE_GSTREAMER="no"
48684
48685                                                                 GST_VERSION_MAJOR=0
48686         GST_VERSION_MINOR=10
48687         GST_VERSION=$GST_VERSION_MAJOR.$GST_VERSION_MINOR
48688
48689         if test "$wxUSE_GSTREAMER8" = "no"; then
48690
48691 pkg_failed=no
48692 { echo "$as_me:$LINENO: checking for GST" >&5
48693 echo $ECHO_N "checking for GST... $ECHO_C" >&6; }
48694
48695 if test -n "$PKG_CONFIG"; then
48696     if test -n "$GST_CFLAGS"; then
48697         pkg_cv_GST_CFLAGS="$GST_CFLAGS"
48698     else
48699         if test -n "$PKG_CONFIG" && \
48700     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gstreamer-\$GST_VERSION gstreamer-plugins-base-\$GST_VERSION gconf-2.0\"") >&5
48701   ($PKG_CONFIG --exists --print-errors "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0") 2>&5
48702   ac_status=$?
48703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48704   (exit $ac_status); }; then
48705   pkg_cv_GST_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0" 2>/dev/null`
48706 else
48707   pkg_failed=yes
48708 fi
48709     fi
48710 else
48711         pkg_failed=untried
48712 fi
48713 if test -n "$PKG_CONFIG"; then
48714     if test -n "$GST_LIBS"; then
48715         pkg_cv_GST_LIBS="$GST_LIBS"
48716     else
48717         if test -n "$PKG_CONFIG" && \
48718     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gstreamer-\$GST_VERSION gstreamer-plugins-base-\$GST_VERSION gconf-2.0\"") >&5
48719   ($PKG_CONFIG --exists --print-errors "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0") 2>&5
48720   ac_status=$?
48721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48722   (exit $ac_status); }; then
48723   pkg_cv_GST_LIBS=`$PKG_CONFIG --libs "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0" 2>/dev/null`
48724 else
48725   pkg_failed=yes
48726 fi
48727     fi
48728 else
48729         pkg_failed=untried
48730 fi
48731
48732
48733
48734 if test $pkg_failed = yes; then
48735
48736 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
48737         _pkg_short_errors_supported=yes
48738 else
48739         _pkg_short_errors_supported=no
48740 fi
48741         if test $_pkg_short_errors_supported = yes; then
48742                 GST_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0"`
48743         else
48744                 GST_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0"`
48745         fi
48746         # Put the nasty error message in config.log where it belongs
48747         echo "$GST_PKG_ERRORS" >&5
48748
48749
48750                     { echo "$as_me:$LINENO: WARNING: GStreamer 0.10 not available, falling back to 0.8" >&5
48751 echo "$as_me: WARNING: GStreamer 0.10 not available, falling back to 0.8" >&2;}
48752                     GST_VERSION_MINOR=8
48753
48754
48755 elif test $pkg_failed = untried; then
48756
48757                     { echo "$as_me:$LINENO: WARNING: GStreamer 0.10 not available, falling back to 0.8" >&5
48758 echo "$as_me: WARNING: GStreamer 0.10 not available, falling back to 0.8" >&2;}
48759                     GST_VERSION_MINOR=8
48760
48761
48762 else
48763         GST_CFLAGS=$pkg_cv_GST_CFLAGS
48764         GST_LIBS=$pkg_cv_GST_LIBS
48765         { echo "$as_me:$LINENO: result: yes" >&5
48766 echo "${ECHO_T}yes" >&6; }
48767
48768                     wxUSE_GSTREAMER="yes"
48769                     GST_LIBS="$GST_LIBS -lgstinterfaces-$GST_VERSION"
48770
48771 fi
48772         else
48773                         GST_VERSION_MINOR=8
48774         fi
48775
48776         if test $GST_VERSION_MINOR = "8"; then
48777             GST_VERSION=$GST_VERSION_MAJOR.$GST_VERSION_MINOR
48778
48779 pkg_failed=no
48780 { echo "$as_me:$LINENO: checking for GST" >&5
48781 echo $ECHO_N "checking for GST... $ECHO_C" >&6; }
48782
48783 if test -n "$PKG_CONFIG"; then
48784     if test -n "$GST_CFLAGS"; then
48785         pkg_cv_GST_CFLAGS="$GST_CFLAGS"
48786     else
48787         if test -n "$PKG_CONFIG" && \
48788     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gstreamer-\$GST_VERSION gstreamer-interfaces-\$GST_VERSION gstreamer-gconf-\$GST_VERSION\"") >&5
48789   ($PKG_CONFIG --exists --print-errors "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION") 2>&5
48790   ac_status=$?
48791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48792   (exit $ac_status); }; then
48793   pkg_cv_GST_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION" 2>/dev/null`
48794 else
48795   pkg_failed=yes
48796 fi
48797     fi
48798 else
48799         pkg_failed=untried
48800 fi
48801 if test -n "$PKG_CONFIG"; then
48802     if test -n "$GST_LIBS"; then
48803         pkg_cv_GST_LIBS="$GST_LIBS"
48804     else
48805         if test -n "$PKG_CONFIG" && \
48806     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gstreamer-\$GST_VERSION gstreamer-interfaces-\$GST_VERSION gstreamer-gconf-\$GST_VERSION\"") >&5
48807   ($PKG_CONFIG --exists --print-errors "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION") 2>&5
48808   ac_status=$?
48809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48810   (exit $ac_status); }; then
48811   pkg_cv_GST_LIBS=`$PKG_CONFIG --libs "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION" 2>/dev/null`
48812 else
48813   pkg_failed=yes
48814 fi
48815     fi
48816 else
48817         pkg_failed=untried
48818 fi
48819
48820
48821
48822 if test $pkg_failed = yes; then
48823
48824 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
48825         _pkg_short_errors_supported=yes
48826 else
48827         _pkg_short_errors_supported=no
48828 fi
48829         if test $_pkg_short_errors_supported = yes; then
48830                 GST_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION"`
48831         else
48832                 GST_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION"`
48833         fi
48834         # Put the nasty error message in config.log where it belongs
48835         echo "$GST_PKG_ERRORS" >&5
48836
48837
48838                     { echo "$as_me:$LINENO: WARNING: GStreamer 0.8/0.10 not available." >&5
48839 echo "$as_me: WARNING: GStreamer 0.8/0.10 not available." >&2;}
48840
48841 elif test $pkg_failed = untried; then
48842
48843                     { echo "$as_me:$LINENO: WARNING: GStreamer 0.8/0.10 not available." >&5
48844 echo "$as_me: WARNING: GStreamer 0.8/0.10 not available." >&2;}
48845
48846 else
48847         GST_CFLAGS=$pkg_cv_GST_CFLAGS
48848         GST_LIBS=$pkg_cv_GST_LIBS
48849         { echo "$as_me:$LINENO: result: yes" >&5
48850 echo "${ECHO_T}yes" >&6; }
48851         wxUSE_GSTREAMER="yes"
48852 fi
48853         fi
48854
48855
48856         if test "$wxUSE_GSTREAMER" = "yes"; then
48857             CPPFLAGS="$GST_CFLAGS $CPPFLAGS"
48858             EXTRALIBS_MEDIA="$GST_LIBS"
48859
48860             cat >>confdefs.h <<\_ACEOF
48861 #define wxUSE_GSTREAMER 1
48862 _ACEOF
48863
48864         else
48865             USE_MEDIA=0
48866         fi
48867     fi
48868
48869     if test $USE_MEDIA = 1; then
48870         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mediaplayer"
48871         cat >>confdefs.h <<\_ACEOF
48872 #define wxUSE_MEDIACTRL 1
48873 _ACEOF
48874
48875     else
48876         if test "$wxUSE_MEDIACTRL" = "yes"; then
48877             { { echo "$as_me:$LINENO: error: GStreamer not available" >&5
48878 echo "$as_me: error: GStreamer not available" >&2;}
48879    { (exit 1); exit 1; }; }
48880         else
48881                         { echo "$as_me:$LINENO: WARNING: GStreamer not available... disabling wxMediaCtrl" >&5
48882 echo "$as_me: WARNING: GStreamer not available... disabling wxMediaCtrl" >&2;}
48883         fi
48884     fi
48885 fi
48886
48887
48888 if test "$cross_compiling" != "no"; then
48889         OSINFO="\"$host\""
48890 else
48891         OSINFO=`uname -s -r -m`
48892     OSINFO="\"$OSINFO\""
48893 fi
48894
48895 cat >>confdefs.h <<_ACEOF
48896 #define WXWIN_OS_DESCRIPTION $OSINFO
48897 _ACEOF
48898
48899
48900
48901 if test "x$prefix" != "xNONE"; then
48902     wxPREFIX=$prefix
48903 else
48904     wxPREFIX=$ac_default_prefix
48905 fi
48906
48907 cat >>confdefs.h <<_ACEOF
48908 #define wxINSTALL_PREFIX "$wxPREFIX"
48909 _ACEOF
48910
48911
48912
48913
48914 STD_BASE_LIBS="base"
48915 STD_GUI_LIBS=""
48916 BUILT_WX_LIBS="base"
48917 ALL_WX_LIBS="xrc stc gl media qa html adv core xml net base"
48918
48919 if test "$wxUSE_SOCKETS" = "yes" ; then
48920     STD_BASE_LIBS="net $STD_BASE_LIBS"
48921     BUILT_WX_LIBS="net $BUILT_WX_LIBS"
48922 fi
48923 if test "$wxUSE_XML" = "yes" ; then
48924     STD_BASE_LIBS="xml $STD_BASE_LIBS"
48925     BUILT_WX_LIBS="xml $BUILT_WX_LIBS"
48926 fi
48927
48928 if test "$wxUSE_GUI" = "yes"; then
48929     STD_GUI_LIBS="adv core"
48930     BUILT_WX_LIBS="$STD_GUI_LIBS $BUILT_WX_LIBS"
48931
48932     if test "$wxUSE_DEBUGREPORT" = "yes" ; then
48933         STD_GUI_LIBS="qa $STD_GUI_LIBS"
48934         BUILT_WX_LIBS="qa $BUILT_WX_LIBS"
48935     fi
48936     if test "$wxUSE_HTML" = "yes" ; then
48937         STD_GUI_LIBS="html $STD_GUI_LIBS"
48938         BUILT_WX_LIBS="html $BUILT_WX_LIBS"
48939     fi
48940     if test "$wxUSE_MEDIACTRL" = "yes" ; then
48941         BUILT_WX_LIBS="media $BUILT_WX_LIBS"
48942     fi
48943     if test "$wxUSE_OPENGL" = "yes" ; then
48944         BUILT_WX_LIBS="gl $BUILT_WX_LIBS"
48945     fi
48946     if test "$wxUSE_AUI" = "yes" ; then
48947         BUILT_WX_LIBS="aui $BUILT_WX_LIBS"
48948     fi
48949     if test "$wxUSE_PROPGRID" = "yes" ; then
48950         BUILT_WX_LIBS="propgrid $BUILT_WX_LIBS"
48951     fi
48952     if test "$wxUSE_RIBBON" = "yes" ; then
48953         BUILT_WX_LIBS="ribbon $BUILT_WX_LIBS"
48954     fi
48955     if test "$wxUSE_RICHTEXT" = "yes" ; then
48956         BUILT_WX_LIBS="richtext $BUILT_WX_LIBS"
48957     fi
48958     if test "$wxUSE_STC" = "yes" ; then
48959         BUILT_WX_LIBS="stc $BUILT_WX_LIBS"
48960     fi
48961     if test "$wxUSE_XRC" = "yes" ; then
48962         STD_GUI_LIBS="xrc $STD_GUI_LIBS"
48963         BUILT_WX_LIBS="xrc $BUILT_WX_LIBS"
48964     fi
48965 fi
48966
48967
48968
48969
48970
48971
48972
48973 EXTRA_FRAMEWORKS=
48974 if test "$wxUSE_MAC" = 1 ; then
48975     if test "$USE_DARWIN" = 1; then
48976         if test "$wxUSE_OSX_IPHONE" = 1; then
48977             EXTRA_FRAMEWORKS="-framework IOKit -framework UIKit -framework CFNetwork -framework AudioToolbox -framework CoreFoundation -framework CoreGraphics -framework OpenGLES -framework Foundation -framework QuartzCore"
48978         else
48979             EXTRA_FRAMEWORKS="-framework IOKit -framework Carbon -framework Cocoa -framework AudioToolbox -framework System -framework OpenGL -framework QuickTime"
48980         fi
48981     fi
48982 fi
48983 if test "$wxUSE_OLD_COCOA" = 1 ; then
48984     EXTRA_FRAMEWORKS="-framework IOKit -framework Cocoa"
48985     if test "$wxUSE_MEDIACTRL" = "yes"; then
48986         EXTRA_FRAMEWORKS="$EXTRA_FRAMEWORKS -framework QuickTime"
48987     fi
48988 fi
48989 if test "$USE_DARWIN" = 1 -a "$wxUSE_MAC" != 1 -a "$wxUSE_OLD_COCOA" != 1 ; then
48990     EXTRA_FRAMEWORKS="$EXTRA_FRAMEWORKS -framework IOKit -framework CoreServices -framework System -framework ApplicationServices"
48991 fi
48992
48993 LDFLAGS="$LDFLAGS $EXTRA_FRAMEWORKS"
48994 WXCONFIG_LDFLAGS="$WXCONFIG_LDFLAGS $EXTRA_FRAMEWORKS"
48995
48996 LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK $LIBS"
48997
48998 if test "$wxUSE_GUI" = "yes"; then
48999
49000
49001         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs drawing \
49002                      erase event exec font image minimal render \
49003                      shaped svg taborder vscroll widgets wrapsizer"
49004
49005     if test "$wxUSE_MONOLITHIC" != "yes"; then
49006         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS console"
49007     fi
49008     if test "$TOOLKIT" = "MSW"; then
49009         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS regtest"
49010         if test "$wxUSE_UNIVERSAL" != "yes"; then
49011             SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ownerdrw nativdlg dll"
49012         fi
49013     fi
49014     if test "$TOOLKIT" = "PM" -a "$wxUSE_UNIVERSAL" != "yes"; then
49015         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ownerdrw"
49016     fi
49017 else
49018     SAMPLES_SUBDIRS="console"
49019     if test "$wxUSE_SOCKETS" = "yes" ; then
49020         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
49021     fi
49022     if test "$wxUSE_IPC" = "yes" ; then
49023         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ipc"
49024     fi
49025 fi
49026
49027
49028 if test "x$INTELCC" = "xyes" ; then
49029                                         CWARNINGS="-Wall -wd810,869,981,1418,1572,1684,2259"
49030 elif test "$GCC" = yes ; then
49031     CWARNINGS="-Wall -Wundef"
49032 fi
49033
49034 if test "x$INTELCXX" = "xyes" ; then
49035                                                                 CXXWARNINGS="-Wall -wd279,383,444,810,869,981,1418,1419,1881,2259"
49036 elif test "$GXX" = yes ; then
49037     CXXWARNINGS="-Wall -Wundef -Wunused-parameter -Wno-ctor-dtor-privacy"
49038     { echo "$as_me:$LINENO: checking CXXWARNINGS for gcc -Woverloaded-virtual" >&5
49039 echo $ECHO_N "checking CXXWARNINGS for gcc -Woverloaded-virtual... $ECHO_C" >&6; }
49040 if test "${ac_cv_cxxflags_gcc_option__Woverloaded_virtual+set}" = set; then
49041   echo $ECHO_N "(cached) $ECHO_C" >&6
49042 else
49043   ac_cv_cxxflags_gcc_option__Woverloaded_virtual="no, unknown"
49044
49045  ac_ext=cpp
49046 ac_cpp='$CXXCPP $CPPFLAGS'
49047 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
49048 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
49049 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
49050
49051  ac_save_CXXFLAGS="$CXXFLAGS"
49052 for ac_arg in "-pedantic -Werror % -Woverloaded-virtual"     "-pedantic % -Woverloaded-virtual %% no, obsolete"     #
49053 do CXXFLAGS="$ac_save_CXXFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
49054    cat >conftest.$ac_ext <<_ACEOF
49055 /* confdefs.h.  */
49056 _ACEOF
49057 cat confdefs.h >>conftest.$ac_ext
49058 cat >>conftest.$ac_ext <<_ACEOF
49059 /* end confdefs.h.  */
49060
49061 int
49062 main ()
49063 {
49064 return 0;
49065   ;
49066   return 0;
49067 }
49068 _ACEOF
49069 rm -f conftest.$ac_objext
49070 if { (ac_try="$ac_compile"
49071 case "(($ac_try" in
49072   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49073   *) ac_try_echo=$ac_try;;
49074 esac
49075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
49076   (eval "$ac_compile") 2>conftest.er1
49077   ac_status=$?
49078   grep -v '^ *+' conftest.er1 >conftest.err
49079   rm -f conftest.er1
49080   cat conftest.err >&5
49081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49082   (exit $ac_status); } && {
49083          test -z "$ac_cxx_werror_flag" ||
49084          test ! -s conftest.err
49085        } && test -s conftest.$ac_objext; then
49086   ac_cv_cxxflags_gcc_option__Woverloaded_virtual=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
49087 else
49088   echo "$as_me: failed program was:" >&5
49089 sed 's/^/| /' conftest.$ac_ext >&5
49090
49091
49092 fi
49093
49094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
49095 done
49096  CXXFLAGS="$ac_save_CXXFLAGS"
49097  ac_ext=c
49098 ac_cpp='$CPP $CPPFLAGS'
49099 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
49100 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
49101 ac_compiler_gnu=$ac_cv_c_compiler_gnu
49102
49103
49104 fi
49105 { echo "$as_me:$LINENO: result: $ac_cv_cxxflags_gcc_option__Woverloaded_virtual" >&5
49106 echo "${ECHO_T}$ac_cv_cxxflags_gcc_option__Woverloaded_virtual" >&6; }
49107 case ".$ac_cv_cxxflags_gcc_option__Woverloaded_virtual" in
49108      .ok|.ok,*)  ;;
49109    .|.no|.no,*)  ;;
49110    *)
49111    if echo " $CXXWARNINGS " | grep " $ac_cv_cxxflags_gcc_option__Woverloaded_virtual " 2>&1 >/dev/null
49112    then { (echo "$as_me:$LINENO: : CXXWARNINGS does contain \$ac_cv_cxxflags_gcc_option__Woverloaded_virtual") >&5
49113   (: CXXWARNINGS does contain $ac_cv_cxxflags_gcc_option__Woverloaded_virtual) 2>&5
49114   ac_status=$?
49115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49116   (exit $ac_status); }
49117    else { (echo "$as_me:$LINENO: : CXXWARNINGS=\"\$CXXWARNINGS \$ac_cv_cxxflags_gcc_option__Woverloaded_virtual\"") >&5
49118   (: CXXWARNINGS="$CXXWARNINGS $ac_cv_cxxflags_gcc_option__Woverloaded_virtual") 2>&5
49119   ac_status=$?
49120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49121   (exit $ac_status); }
49122                       CXXWARNINGS="$CXXWARNINGS $ac_cv_cxxflags_gcc_option__Woverloaded_virtual"
49123    fi
49124  ;;
49125 esac
49126
49127
49128                     if test "$wxUSE_MAC" = 1 ; then
49129         CXXWARNINGS="$CXXWARNINGS -Wno-deprecated-declarations"
49130     fi
49131 fi
49132
49133
49134 WXCONFIG_CFLAGS=`echo $WXCONFIG_CFLAGS`
49135 WXCONFIG_CXXFLAGS=`echo $WXCONFIG_CFLAGS $WXCONFIG_CXXFLAGS`
49136
49137
49138 CPPFLAGS=`echo $WXCONFIG_CPPFLAGS \
49139  -I\\${wx_top_builddir}/lib/wx/include/${TOOLCHAIN_FULLNAME} \
49140  -I\\${top_srcdir}/include $TOOLKIT_INCLUDE \
49141  $CPPFLAGS `
49142
49143 C_AND_CXX_FLAGS="$DEBUG_CFLAGS $PROFILE_FLAGS $OPTIMISE_CFLAGS"
49144 CFLAGS=`echo $WXCONFIG_CFLAGS $CWARNINGS $C_AND_CXX_FLAGS $CFLAGS `
49145 CXXFLAGS=`echo $WXCONFIG_CXXFLAGS $C_AND_CXX_FLAGS $CXXFLAGS `
49146 OBJCFLAGS=`echo $WXCONFIG_CFLAGS $CWARNINGS $C_AND_CXX_FLAGS $OBJCFLAGS `
49147 OBJCXXFLAGS=`echo $WXCONFIG_CXXFLAGS $C_AND_CXX_FLAGS $OBJCXXFLAGS `
49148
49149 WXCONFIG_CPPFLAGS=`echo $WXCONFIG_CPPFLAGS $WXCONFIG_ONLY_CPPFLAGS`
49150
49151
49152 if test "x$MWCC" = "xyes"; then
49153
49154             CC="$CC -cwd source -I-"
49155     CXX="$CXX -cwd source -I-"
49156 fi
49157
49158
49159 LIBS=`echo $LIBS`
49160 EXTRALIBS="$LDFLAGS $LDFLAGS_VERSIONING $LIBS $DMALLOC_LIBS"
49161 EXTRALIBS_XML="$EXPAT_LINK"
49162 EXTRALIBS_HTML="$MSPACK_LINK"
49163 EXTRALIBS_MEDIA="$GST_LIBS"
49164 EXTRALIBS_STC="-lwxscintilla${WX_LIB_FLAVOUR}-${WX_RELEASE}${HOST_SUFFIX}"
49165 if test "$wxUSE_GUI" = "yes"; then
49166     EXTRALIBS_GUI=`echo $GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK $WEBKIT_LINK $EXTRALIBS_HILDON $EXTRALIBS_GNOMEVFS $EXTRALIBS_GNOMEPRINT`
49167 fi
49168 if test "$wxUSE_OPENGL" = "yes"; then
49169     EXTRALIBS_OPENGL="$LDFLAGS_GL $OPENGL_LIBS"
49170 fi
49171
49172 LDFLAGS="$LDFLAGS $PROFILE_FLAGS"
49173
49174 WXCONFIG_LIBS="$LIBS"
49175
49176 if test "$wxUSE_REGEX" = "builtin" ; then
49177     wxconfig_3rdparty="regex${lib_unicode_suffix} $wxconfig_3rdparty"
49178 fi
49179 if test "$wxUSE_EXPAT" = "builtin" ; then
49180     wxconfig_3rdparty="expat $wxconfig_3rdparty"
49181 fi
49182 if test "$wxUSE_LIBTIFF" = "builtin" ; then
49183     wxconfig_3rdparty="tiff $wxconfig_3rdparty"
49184 fi
49185 if test "$wxUSE_LIBJPEG" = "builtin" ; then
49186     wxconfig_3rdparty="jpeg $wxconfig_3rdparty"
49187 fi
49188 if test "$wxUSE_LIBPNG" = "builtin" ; then
49189     wxconfig_3rdparty="png $wxconfig_3rdparty"
49190 fi
49191 if test "$wxUSE_ZLIB" = "builtin" ; then
49192     wxconfig_3rdparty="zlib $wxconfig_3rdparty"
49193 fi
49194
49195 for i in $wxconfig_3rdparty ; do
49196     WXCONFIG_LIBS="-lwx${i}${WX_LIB_FLAVOUR}-${WX_RELEASE}${HOST_SUFFIX} $WXCONFIG_LIBS"
49197 done
49198
49199
49200 if test "x$wxUSE_UNIVERSAL" = "xyes" ; then
49201     WXUNIV=1
49202
49203     case "$wxUNIV_THEMES" in
49204         ''|all)
49205             cat >>confdefs.h <<\_ACEOF
49206 #define wxUSE_ALL_THEMES 1
49207 _ACEOF
49208
49209             ;;
49210
49211         *)
49212             for t in `echo $wxUNIV_THEMES | tr , ' ' | tr '[a-z]' '[A-Z]'`; do
49213                 cat >>confdefs.h <<_ACEOF
49214 #define wxUSE_THEME_$t 1
49215 _ACEOF
49216
49217             done
49218     esac
49219 else
49220     WXUNIV=0
49221 fi
49222
49223
49224
49225
49226
49227
49228
49229
49230 if test $wxUSE_MONOLITHIC = "yes" ; then
49231     MONOLITHIC=1
49232 else
49233     MONOLITHIC=0
49234 fi
49235
49236 if test $wxUSE_PLUGINS = "yes" ; then
49237     USE_PLUGINS=1
49238 else
49239     USE_PLUGINS=0
49240 fi
49241
49242 if test "$wxUSE_DEBUGREPORT" = "yes" ; then
49243     USE_QA=1
49244 else
49245     USE_QA=0
49246 fi
49247
49248 if test $wxUSE_OFFICIAL_BUILD = "yes" ; then
49249     OFFICIAL_BUILD=1
49250 else
49251     OFFICIAL_BUILD=0
49252 fi
49253
49254
49255
49256
49257
49258
49259
49260
49261
49262
49263
49264
49265
49266
49267
49268
49269
49270
49271
49272
49273
49274
49275
49276
49277
49278
49279
49280 TOOLKIT_LOWERCASE=`echo $TOOLKIT | tr '[A-Z]' '[a-z]'`
49281
49282
49283
49284
49285
49286
49287
49288
49289
49290
49291 case "$TOOLKIT" in
49292     GTK)
49293         TOOLKIT_DESC="GTK+"
49294         if test "$WXGTK2" = 1; then
49295             TOOLKIT_DESC="$TOOLKIT_DESC 2"
49296             if test "$wxUSE_GTKPRINT" = "yes" ; then
49297                 TOOLKIT_EXTRA="$TOOLKIT_EXTRA GTK+ printing";
49298             fi
49299             if test "$wxUSE_LIBGNOMEPRINT" = "yes" ; then
49300                 TOOLKIT_EXTRA="$TOOLKIT_EXTRA gnomeprint";
49301             fi
49302             if test "$wxUSE_LIBGNOMEVFS" = "yes" ; then
49303                 TOOLKIT_EXTRA="$TOOLKIT_EXTRA gnomevfs"
49304             fi
49305             if test "$wxUSE_LIBHILDON" = "yes"; then
49306                 TOOLKIT_EXTRA="$TOOLKIT_EXTRA hildon"
49307             fi
49308             if test "$wxUSE_LIBHILDON2" = "yes"; then
49309                 TOOLKIT_EXTRA="$TOOLKIT_EXTRA hildon"
49310             fi
49311
49312             if test "$TOOLKIT_EXTRA" != ""; then
49313                 TOOLKIT_DESC="$TOOLKIT_DESC with support for `echo $TOOLKIT_EXTRA | tr -s ' '`"
49314             fi
49315         fi
49316         ;;
49317
49318     ?*)
49319         TOOLKIT_DESC=$TOOLKIT_LOWERCASE
49320         ;;
49321
49322     *)
49323         TOOLKIT_DESC="base only"
49324         ;;
49325 esac
49326
49327 if test "$wxUSE_WINE" = "yes"; then
49328     BAKEFILE_FORCE_PLATFORM=win32
49329 fi
49330
49331 if test "$wxUSE_UNICODE" = yes -a "$GCC" = yes -a "$bk_use_pch" != no
49332 then
49333     { echo "$as_me:$LINENO: checking for gcc precompiled header bug" >&5
49334 echo $ECHO_N "checking for gcc precompiled header bug... $ECHO_C" >&6; }
49335 if test "${wx_cv_gcc_pch_bug+set}" = set; then
49336   echo $ECHO_N "(cached) $ECHO_C" >&6
49337 else
49338
49339             echo '#include <stdio.h>
49340                   const wchar_t test_var[] = L"awidetest";' > conftest.h
49341
49342             echo '#include "conftest.h"
49343                   int main()
49344                   {
49345                      printf("%ls", test_var);
49346                      return 0;
49347                   }' > conftest.cpp
49348
49349             wx_cv_gcc_pch_bug="pch not supported"
49350
49351             if $CXX conftest.h >/dev/null 2>&1
49352             then
49353                 wx_cv_gcc_pch_bug=
49354
49355                 if $CXX -o conftest$PROGRAM_EXT conftest.cpp >/dev/null 2>&1
49356                 then
49357                     if tr -dc '[a-z]' < conftest$PROGRAM_EXT |
49358                         grep awidetest >/dev/null
49359                     then
49360                         wx_cv_gcc_pch_bug=no
49361                     else
49362                         wx_cv_gcc_pch_bug=yes
49363                     fi
49364                 fi
49365             fi
49366
49367             rm -f conftest.h conftest.gch conftest.cpp conftest$PROGRAM_EXT
49368
49369 fi
49370 { echo "$as_me:$LINENO: result: $wx_cv_gcc_pch_bug" >&5
49371 echo "${ECHO_T}$wx_cv_gcc_pch_bug" >&6; }
49372
49373     if test "$wx_cv_gcc_pch_bug" = yes; then
49374                         bk_use_pch=no
49375     fi
49376 fi
49377
49378
49379
49380
49381
49382
49383
49384     if test "x$BAKEFILE_HOST" = "x"; then
49385                if test "x${host}" = "x" ; then
49386                        { { echo "$as_me:$LINENO: error: You must call the autoconf \"CANONICAL_HOST\" macro in your configure.ac (or .in) file." >&5
49387 echo "$as_me: error: You must call the autoconf \"CANONICAL_HOST\" macro in your configure.ac (or .in) file." >&2;}
49388    { (exit 1); exit 1; }; }
49389                fi
49390
49391         BAKEFILE_HOST="${host}"
49392     fi
49393
49394     if test "x$BAKEFILE_CHECK_BASICS" != "xno"; then
49395
49396     if test -n "$ac_tool_prefix"; then
49397   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
49398 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
49399 { echo "$as_me:$LINENO: checking for $ac_word" >&5
49400 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
49401 if test "${ac_cv_prog_RANLIB+set}" = set; then
49402   echo $ECHO_N "(cached) $ECHO_C" >&6
49403 else
49404   if test -n "$RANLIB"; then
49405   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
49406 else
49407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
49408 for as_dir in $PATH
49409 do
49410   IFS=$as_save_IFS
49411   test -z "$as_dir" && as_dir=.
49412   for ac_exec_ext in '' $ac_executable_extensions; do
49413   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
49414     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
49415     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
49416     break 2
49417   fi
49418 done
49419 done
49420 IFS=$as_save_IFS
49421
49422 fi
49423 fi
49424 RANLIB=$ac_cv_prog_RANLIB
49425 if test -n "$RANLIB"; then
49426   { echo "$as_me:$LINENO: result: $RANLIB" >&5
49427 echo "${ECHO_T}$RANLIB" >&6; }
49428 else
49429   { echo "$as_me:$LINENO: result: no" >&5
49430 echo "${ECHO_T}no" >&6; }
49431 fi
49432
49433
49434 fi
49435 if test -z "$ac_cv_prog_RANLIB"; then
49436   ac_ct_RANLIB=$RANLIB
49437   # Extract the first word of "ranlib", so it can be a program name with args.
49438 set dummy ranlib; ac_word=$2
49439 { echo "$as_me:$LINENO: checking for $ac_word" >&5
49440 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
49441 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
49442   echo $ECHO_N "(cached) $ECHO_C" >&6
49443 else
49444   if test -n "$ac_ct_RANLIB"; then
49445   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
49446 else
49447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
49448 for as_dir in $PATH
49449 do
49450   IFS=$as_save_IFS
49451   test -z "$as_dir" && as_dir=.
49452   for ac_exec_ext in '' $ac_executable_extensions; do
49453   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
49454     ac_cv_prog_ac_ct_RANLIB="ranlib"
49455     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
49456     break 2
49457   fi
49458 done
49459 done
49460 IFS=$as_save_IFS
49461
49462 fi
49463 fi
49464 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
49465 if test -n "$ac_ct_RANLIB"; then
49466   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
49467 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
49468 else
49469   { echo "$as_me:$LINENO: result: no" >&5
49470 echo "${ECHO_T}no" >&6; }
49471 fi
49472
49473   if test "x$ac_ct_RANLIB" = x; then
49474     RANLIB=":"
49475   else
49476     case $cross_compiling:$ac_tool_warned in
49477 yes:)
49478 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
49479 whose name does not start with the host triplet.  If you think this
49480 configuration is useful to you, please write to autoconf@gnu.org." >&5
49481 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
49482 whose name does not start with the host triplet.  If you think this
49483 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
49484 ac_tool_warned=yes ;;
49485 esac
49486     RANLIB=$ac_ct_RANLIB
49487   fi
49488 else
49489   RANLIB="$ac_cv_prog_RANLIB"
49490 fi
49491
49492     # Find a good install program.  We prefer a C program (faster),
49493 # so one script is as good as another.  But avoid the broken or
49494 # incompatible versions:
49495 # SysV /etc/install, /usr/sbin/install
49496 # SunOS /usr/etc/install
49497 # IRIX /sbin/install
49498 # AIX /bin/install
49499 # AmigaOS /C/install, which installs bootblocks on floppy discs
49500 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
49501 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
49502 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
49503 # OS/2's system install, which has a completely different semantic
49504 # ./install, which can be erroneously created by make from ./install.sh.
49505 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
49506 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
49507 if test -z "$INSTALL"; then
49508 if test "${ac_cv_path_install+set}" = set; then
49509   echo $ECHO_N "(cached) $ECHO_C" >&6
49510 else
49511   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
49512 for as_dir in $PATH
49513 do
49514   IFS=$as_save_IFS
49515   test -z "$as_dir" && as_dir=.
49516   # Account for people who put trailing slashes in PATH elements.
49517 case $as_dir/ in
49518   ./ | .// | /cC/* | \
49519   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
49520   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
49521   /usr/ucb/* ) ;;
49522   *)
49523     # OSF1 and SCO ODT 3.0 have their own names for install.
49524     # Don't use installbsd from OSF since it installs stuff as root
49525     # by default.
49526     for ac_prog in ginstall scoinst install; do
49527       for ac_exec_ext in '' $ac_executable_extensions; do
49528         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
49529           if test $ac_prog = install &&
49530             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
49531             # AIX install.  It has an incompatible calling convention.
49532             :
49533           elif test $ac_prog = install &&
49534             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
49535             # program-specific install script used by HP pwplus--don't use.
49536             :
49537           else
49538             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
49539             break 3
49540           fi
49541         fi
49542       done
49543     done
49544     ;;
49545 esac
49546 done
49547 IFS=$as_save_IFS
49548
49549
49550 fi
49551   if test "${ac_cv_path_install+set}" = set; then
49552     INSTALL=$ac_cv_path_install
49553   else
49554     # As a last resort, use the slow shell script.  Don't cache a
49555     # value for INSTALL within a source directory, because that will
49556     # break other packages using the cache if that directory is
49557     # removed, or if the value is a relative name.
49558     INSTALL=$ac_install_sh
49559   fi
49560 fi
49561 { echo "$as_me:$LINENO: result: $INSTALL" >&5
49562 echo "${ECHO_T}$INSTALL" >&6; }
49563
49564 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
49565 # It thinks the first close brace ends the variable substitution.
49566 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
49567
49568 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
49569
49570 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
49571
49572     { echo "$as_me:$LINENO: checking whether ln -s works" >&5
49573 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
49574 LN_S=$as_ln_s
49575 if test "$LN_S" = "ln -s"; then
49576   { echo "$as_me:$LINENO: result: yes" >&5
49577 echo "${ECHO_T}yes" >&6; }
49578 else
49579   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
49580 echo "${ECHO_T}no, using $LN_S" >&6; }
49581 fi
49582
49583
49584     { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
49585 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
49586 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
49587 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
49588   echo $ECHO_N "(cached) $ECHO_C" >&6
49589 else
49590   cat >conftest.make <<\_ACEOF
49591 SHELL = /bin/sh
49592 all:
49593         @echo '@@@%%%=$(MAKE)=@@@%%%'
49594 _ACEOF
49595 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
49596 case `${MAKE-make} -f conftest.make 2>/dev/null` in
49597   *@@@%%%=?*=@@@%%%*)
49598     eval ac_cv_prog_make_${ac_make}_set=yes;;
49599   *)
49600     eval ac_cv_prog_make_${ac_make}_set=no;;
49601 esac
49602 rm -f conftest.make
49603 fi
49604 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
49605   { echo "$as_me:$LINENO: result: yes" >&5
49606 echo "${ECHO_T}yes" >&6; }
49607   SET_MAKE=
49608 else
49609   { echo "$as_me:$LINENO: result: no" >&5
49610 echo "${ECHO_T}no" >&6; }
49611   SET_MAKE="MAKE=${MAKE-make}"
49612 fi
49613
49614
49615
49616     if test "x$SUNCXX" = "xyes"; then
49617                                 AR=$CXX
49618         AROPTIONS="-xar -o"
49619
49620     elif test "x$SGICC" = "xyes"; then
49621                 AR=$CXX
49622         AROPTIONS="-ar -o"
49623
49624     else
49625         if test -n "$ac_tool_prefix"; then
49626   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
49627 set dummy ${ac_tool_prefix}ar; ac_word=$2
49628 { echo "$as_me:$LINENO: checking for $ac_word" >&5
49629 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
49630 if test "${ac_cv_prog_AR+set}" = set; then
49631   echo $ECHO_N "(cached) $ECHO_C" >&6
49632 else
49633   if test -n "$AR"; then
49634   ac_cv_prog_AR="$AR" # Let the user override the test.
49635 else
49636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
49637 for as_dir in $PATH
49638 do
49639   IFS=$as_save_IFS
49640   test -z "$as_dir" && as_dir=.
49641   for ac_exec_ext in '' $ac_executable_extensions; do
49642   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
49643     ac_cv_prog_AR="${ac_tool_prefix}ar"
49644     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
49645     break 2
49646   fi
49647 done
49648 done
49649 IFS=$as_save_IFS
49650
49651 fi
49652 fi
49653 AR=$ac_cv_prog_AR
49654 if test -n "$AR"; then
49655   { echo "$as_me:$LINENO: result: $AR" >&5
49656 echo "${ECHO_T}$AR" >&6; }
49657 else
49658   { echo "$as_me:$LINENO: result: no" >&5
49659 echo "${ECHO_T}no" >&6; }
49660 fi
49661
49662
49663 fi
49664 if test -z "$ac_cv_prog_AR"; then
49665   ac_ct_AR=$AR
49666   # Extract the first word of "ar", so it can be a program name with args.
49667 set dummy ar; ac_word=$2
49668 { echo "$as_me:$LINENO: checking for $ac_word" >&5
49669 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
49670 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
49671   echo $ECHO_N "(cached) $ECHO_C" >&6
49672 else
49673   if test -n "$ac_ct_AR"; then
49674   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
49675 else
49676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
49677 for as_dir in $PATH
49678 do
49679   IFS=$as_save_IFS
49680   test -z "$as_dir" && as_dir=.
49681   for ac_exec_ext in '' $ac_executable_extensions; do
49682   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
49683     ac_cv_prog_ac_ct_AR="ar"
49684     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
49685     break 2
49686   fi
49687 done
49688 done
49689 IFS=$as_save_IFS
49690
49691 fi
49692 fi
49693 ac_ct_AR=$ac_cv_prog_ac_ct_AR
49694 if test -n "$ac_ct_AR"; then
49695   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
49696 echo "${ECHO_T}$ac_ct_AR" >&6; }
49697 else
49698   { echo "$as_me:$LINENO: result: no" >&5
49699 echo "${ECHO_T}no" >&6; }
49700 fi
49701
49702   if test "x$ac_ct_AR" = x; then
49703     AR="ar"
49704   else
49705     case $cross_compiling:$ac_tool_warned in
49706 yes:)
49707 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
49708 whose name does not start with the host triplet.  If you think this
49709 configuration is useful to you, please write to autoconf@gnu.org." >&5
49710 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
49711 whose name does not start with the host triplet.  If you think this
49712 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
49713 ac_tool_warned=yes ;;
49714 esac
49715     AR=$ac_ct_AR
49716   fi
49717 else
49718   AR="$ac_cv_prog_AR"
49719 fi
49720
49721         AROPTIONS=rcu
49722     fi
49723
49724
49725     if test -n "$ac_tool_prefix"; then
49726   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
49727 set dummy ${ac_tool_prefix}strip; ac_word=$2
49728 { echo "$as_me:$LINENO: checking for $ac_word" >&5
49729 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
49730 if test "${ac_cv_prog_STRIP+set}" = set; then
49731   echo $ECHO_N "(cached) $ECHO_C" >&6
49732 else
49733   if test -n "$STRIP"; then
49734   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
49735 else
49736 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
49737 for as_dir in $PATH
49738 do
49739   IFS=$as_save_IFS
49740   test -z "$as_dir" && as_dir=.
49741   for ac_exec_ext in '' $ac_executable_extensions; do
49742   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
49743     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
49744     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
49745     break 2
49746   fi
49747 done
49748 done
49749 IFS=$as_save_IFS
49750
49751 fi
49752 fi
49753 STRIP=$ac_cv_prog_STRIP
49754 if test -n "$STRIP"; then
49755   { echo "$as_me:$LINENO: result: $STRIP" >&5
49756 echo "${ECHO_T}$STRIP" >&6; }
49757 else
49758   { echo "$as_me:$LINENO: result: no" >&5
49759 echo "${ECHO_T}no" >&6; }
49760 fi
49761
49762
49763 fi
49764 if test -z "$ac_cv_prog_STRIP"; then
49765   ac_ct_STRIP=$STRIP
49766   # Extract the first word of "strip", so it can be a program name with args.
49767 set dummy strip; ac_word=$2
49768 { echo "$as_me:$LINENO: checking for $ac_word" >&5
49769 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
49770 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
49771   echo $ECHO_N "(cached) $ECHO_C" >&6
49772 else
49773   if test -n "$ac_ct_STRIP"; then
49774   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
49775 else
49776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
49777 for as_dir in $PATH
49778 do
49779   IFS=$as_save_IFS
49780   test -z "$as_dir" && as_dir=.
49781   for ac_exec_ext in '' $ac_executable_extensions; do
49782   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
49783     ac_cv_prog_ac_ct_STRIP="strip"
49784     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
49785     break 2
49786   fi
49787 done
49788 done
49789 IFS=$as_save_IFS
49790
49791 fi
49792 fi
49793 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
49794 if test -n "$ac_ct_STRIP"; then
49795   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
49796 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
49797 else
49798   { echo "$as_me:$LINENO: result: no" >&5
49799 echo "${ECHO_T}no" >&6; }
49800 fi
49801
49802   if test "x$ac_ct_STRIP" = x; then
49803     STRIP=":"
49804   else
49805     case $cross_compiling:$ac_tool_warned in
49806 yes:)
49807 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
49808 whose name does not start with the host triplet.  If you think this
49809 configuration is useful to you, please write to autoconf@gnu.org." >&5
49810 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
49811 whose name does not start with the host triplet.  If you think this
49812 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
49813 ac_tool_warned=yes ;;
49814 esac
49815     STRIP=$ac_ct_STRIP
49816   fi
49817 else
49818   STRIP="$ac_cv_prog_STRIP"
49819 fi
49820
49821     if test -n "$ac_tool_prefix"; then
49822   # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
49823 set dummy ${ac_tool_prefix}nm; ac_word=$2
49824 { echo "$as_me:$LINENO: checking for $ac_word" >&5
49825 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
49826 if test "${ac_cv_prog_NM+set}" = set; then
49827   echo $ECHO_N "(cached) $ECHO_C" >&6
49828 else
49829   if test -n "$NM"; then
49830   ac_cv_prog_NM="$NM" # Let the user override the test.
49831 else
49832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
49833 for as_dir in $PATH
49834 do
49835   IFS=$as_save_IFS
49836   test -z "$as_dir" && as_dir=.
49837   for ac_exec_ext in '' $ac_executable_extensions; do
49838   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
49839     ac_cv_prog_NM="${ac_tool_prefix}nm"
49840     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
49841     break 2
49842   fi
49843 done
49844 done
49845 IFS=$as_save_IFS
49846
49847 fi
49848 fi
49849 NM=$ac_cv_prog_NM
49850 if test -n "$NM"; then
49851   { echo "$as_me:$LINENO: result: $NM" >&5
49852 echo "${ECHO_T}$NM" >&6; }
49853 else
49854   { echo "$as_me:$LINENO: result: no" >&5
49855 echo "${ECHO_T}no" >&6; }
49856 fi
49857
49858
49859 fi
49860 if test -z "$ac_cv_prog_NM"; then
49861   ac_ct_NM=$NM
49862   # Extract the first word of "nm", so it can be a program name with args.
49863 set dummy nm; ac_word=$2
49864 { echo "$as_me:$LINENO: checking for $ac_word" >&5
49865 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
49866 if test "${ac_cv_prog_ac_ct_NM+set}" = set; then
49867   echo $ECHO_N "(cached) $ECHO_C" >&6
49868 else
49869   if test -n "$ac_ct_NM"; then
49870   ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
49871 else
49872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
49873 for as_dir in $PATH
49874 do
49875   IFS=$as_save_IFS
49876   test -z "$as_dir" && as_dir=.
49877   for ac_exec_ext in '' $ac_executable_extensions; do
49878   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
49879     ac_cv_prog_ac_ct_NM="nm"
49880     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
49881     break 2
49882   fi
49883 done
49884 done
49885 IFS=$as_save_IFS
49886
49887 fi
49888 fi
49889 ac_ct_NM=$ac_cv_prog_ac_ct_NM
49890 if test -n "$ac_ct_NM"; then
49891   { echo "$as_me:$LINENO: result: $ac_ct_NM" >&5
49892 echo "${ECHO_T}$ac_ct_NM" >&6; }
49893 else
49894   { echo "$as_me:$LINENO: result: no" >&5
49895 echo "${ECHO_T}no" >&6; }
49896 fi
49897
49898   if test "x$ac_ct_NM" = x; then
49899     NM=":"
49900   else
49901     case $cross_compiling:$ac_tool_warned in
49902 yes:)
49903 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
49904 whose name does not start with the host triplet.  If you think this
49905 configuration is useful to you, please write to autoconf@gnu.org." >&5
49906 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
49907 whose name does not start with the host triplet.  If you think this
49908 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
49909 ac_tool_warned=yes ;;
49910 esac
49911     NM=$ac_ct_NM
49912   fi
49913 else
49914   NM="$ac_cv_prog_NM"
49915 fi
49916
49917
49918             { echo "$as_me:$LINENO: checking for command to install directories" >&5
49919 echo $ECHO_N "checking for command to install directories... $ECHO_C" >&6; }
49920     INSTALL_TEST_DIR=acbftest$$
49921     $INSTALL -d $INSTALL_TEST_DIR > /dev/null 2>&1
49922     if test $? = 0 -a -d $INSTALL_TEST_DIR; then
49923         rmdir $INSTALL_TEST_DIR
49924                         INSTALL_DIR='$(INSTALL) -d'
49925         { echo "$as_me:$LINENO: result: $INSTALL -d" >&5
49926 echo "${ECHO_T}$INSTALL -d" >&6; }
49927     else
49928         INSTALL_DIR="mkdir -p"
49929         { echo "$as_me:$LINENO: result: mkdir -p" >&5
49930 echo "${ECHO_T}mkdir -p" >&6; }
49931     fi
49932
49933
49934     LDFLAGS_GUI=
49935     case ${BAKEFILE_HOST} in
49936         *-*-cygwin* | *-*-mingw32* )
49937         LDFLAGS_GUI="-mwindows"
49938     esac
49939
49940
49941     fi
49942
49943         { echo "$as_me:$LINENO: checking if make is GNU make" >&5
49944 echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6; }
49945 if test "${bakefile_cv_prog_makeisgnu+set}" = set; then
49946   echo $ECHO_N "(cached) $ECHO_C" >&6
49947 else
49948
49949         if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
49950                 egrep -s GNU > /dev/null); then
49951             bakefile_cv_prog_makeisgnu="yes"
49952         else
49953             bakefile_cv_prog_makeisgnu="no"
49954         fi
49955
49956 fi
49957 { echo "$as_me:$LINENO: result: $bakefile_cv_prog_makeisgnu" >&5
49958 echo "${ECHO_T}$bakefile_cv_prog_makeisgnu" >&6; }
49959
49960     if test "x$bakefile_cv_prog_makeisgnu" = "xyes"; then
49961         IF_GNU_MAKE=""
49962     else
49963         IF_GNU_MAKE="#"
49964     fi
49965
49966
49967
49968     PLATFORM_UNIX=0
49969     PLATFORM_WIN32=0
49970     PLATFORM_MSDOS=0
49971     PLATFORM_MAC=0
49972     PLATFORM_MACOS=0
49973     PLATFORM_MACOSX=0
49974     PLATFORM_OS2=0
49975     PLATFORM_BEOS=0
49976
49977     if test "x$BAKEFILE_FORCE_PLATFORM" = "x"; then
49978         case "${BAKEFILE_HOST}" in
49979             *-*-mingw32* )
49980                 PLATFORM_WIN32=1
49981             ;;
49982             *-pc-msdosdjgpp )
49983                 PLATFORM_MSDOS=1
49984             ;;
49985             *-pc-os2_emx | *-pc-os2-emx )
49986                 PLATFORM_OS2=1
49987             ;;
49988             *-*-darwin* )
49989                 PLATFORM_MAC=1
49990                 PLATFORM_MACOSX=1
49991             ;;
49992             *-*-beos* )
49993                 PLATFORM_BEOS=1
49994             ;;
49995             powerpc-apple-macos* )
49996                 PLATFORM_MAC=1
49997                 PLATFORM_MACOS=1
49998             ;;
49999             * )
50000                 PLATFORM_UNIX=1
50001             ;;
50002         esac
50003     else
50004         case "$BAKEFILE_FORCE_PLATFORM" in
50005             win32 )
50006                 PLATFORM_WIN32=1
50007             ;;
50008             msdos )
50009                 PLATFORM_MSDOS=1
50010             ;;
50011             os2 )
50012                 PLATFORM_OS2=1
50013             ;;
50014             darwin )
50015                 PLATFORM_MAC=1
50016                 PLATFORM_MACOSX=1
50017             ;;
50018             unix )
50019                 PLATFORM_UNIX=1
50020             ;;
50021             beos )
50022                 PLATFORM_BEOS=1
50023             ;;
50024             * )
50025                 { { echo "$as_me:$LINENO: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&5
50026 echo "$as_me: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&2;}
50027    { (exit 1); exit 1; }; }
50028             ;;
50029         esac
50030     fi
50031
50032
50033
50034
50035
50036
50037
50038
50039
50040
50041
50042     # Check whether --enable-omf was given.
50043 if test "${enable_omf+set}" = set; then
50044   enableval=$enable_omf; bk_os2_use_omf="$enableval"
50045 fi
50046
50047
50048     case "${BAKEFILE_HOST}" in
50049       *-*-darwin* )
50050                         if test "x$GCC" = "xyes"; then
50051             CFLAGS="$CFLAGS -fno-common"
50052             CXXFLAGS="$CXXFLAGS -fno-common"
50053         fi
50054         if test "x$XLCC" = "xyes"; then
50055             CFLAGS="$CFLAGS -qnocommon"
50056             CXXFLAGS="$CXXFLAGS -qnocommon"
50057         fi
50058         ;;
50059
50060       *-pc-os2_emx | *-pc-os2-emx )
50061         if test "x$bk_os2_use_omf" = "xyes" ; then
50062             AR=emxomfar
50063             RANLIB=:
50064             LDFLAGS="-Zomf $LDFLAGS"
50065             CFLAGS="-Zomf $CFLAGS"
50066             CXXFLAGS="-Zomf $CXXFLAGS"
50067             OS2_LIBEXT="lib"
50068         else
50069             OS2_LIBEXT="a"
50070         fi
50071         ;;
50072
50073       i*86-*-beos* )
50074         LDFLAGS="-L/boot/develop/lib/x86 $LDFLAGS"
50075         ;;
50076     esac
50077
50078
50079     SO_SUFFIX="so"
50080     SO_SUFFIX_MODULE="so"
50081     EXEEXT=""
50082     LIBPREFIX="lib"
50083     LIBEXT=".a"
50084     DLLPREFIX="lib"
50085     DLLPREFIX_MODULE=""
50086     DLLIMP_SUFFIX=""
50087     dlldir="$libdir"
50088
50089     case "${BAKEFILE_HOST}" in
50090                         ia64-hp-hpux* )
50091         ;;
50092         *-hp-hpux* )
50093             SO_SUFFIX="sl"
50094             SO_SUFFIX_MODULE="sl"
50095         ;;
50096         *-*-aix* )
50097                                                                         SO_SUFFIX="a"
50098             SO_SUFFIX_MODULE="a"
50099         ;;
50100         *-*-cygwin* )
50101             SO_SUFFIX="dll"
50102             SO_SUFFIX_MODULE="dll"
50103             DLLIMP_SUFFIX="dll.a"
50104             EXEEXT=".exe"
50105             DLLPREFIX="cyg"
50106             dlldir="$bindir"
50107         ;;
50108         *-*-mingw32* )
50109             SO_SUFFIX="dll"
50110             SO_SUFFIX_MODULE="dll"
50111             DLLIMP_SUFFIX="dll.a"
50112             EXEEXT=".exe"
50113             DLLPREFIX=""
50114             dlldir="$bindir"
50115         ;;
50116         *-pc-msdosdjgpp )
50117             EXEEXT=".exe"
50118             DLLPREFIX=""
50119             dlldir="$bindir"
50120         ;;
50121         *-pc-os2_emx | *-pc-os2-emx )
50122             SO_SUFFIX="dll"
50123             SO_SUFFIX_MODULE="dll"
50124             DLLIMP_SUFFIX=$OS2_LIBEXT
50125             EXEEXT=".exe"
50126             DLLPREFIX=""
50127             LIBPREFIX=""
50128             LIBEXT=".$OS2_LIBEXT"
50129             dlldir="$bindir"
50130         ;;
50131         *-*-darwin* )
50132             SO_SUFFIX="dylib"
50133             SO_SUFFIX_MODULE="bundle"
50134         ;;
50135     esac
50136
50137     if test "x$DLLIMP_SUFFIX" = "x" ; then
50138         DLLIMP_SUFFIX="$SO_SUFFIX"
50139     fi
50140
50141
50142
50143
50144
50145
50146
50147
50148
50149
50150
50151
50152         PIC_FLAG=""
50153     if test "x$GCC" = "xyes"; then
50154                 PIC_FLAG="-fPIC"
50155     fi
50156
50157         SHARED_LD_CC="\$(CC) -shared ${PIC_FLAG} -o"
50158     SHARED_LD_CXX="\$(CXX) -shared ${PIC_FLAG} -o"
50159     WINDOWS_IMPLIB=0
50160
50161     case "${BAKEFILE_HOST}" in
50162       *-hp-hpux* )
50163                 if test "x$GCC" != "xyes"; then
50164                         LDFLAGS="$LDFLAGS -L/usr/lib"
50165
50166             SHARED_LD_CC="${CC} -b -o"
50167             SHARED_LD_CXX="${CXX} -b -o"
50168             PIC_FLAG="+Z"
50169         fi
50170       ;;
50171
50172       *-*-linux* )
50173                         if test "$INTELCC" = "yes" -a "$INTELCC8" != "yes"; then
50174             PIC_FLAG="-KPIC"
50175         elif test "x$SUNCXX" = "xyes"; then
50176             SHARED_LD_CC="${CC} -G -o"
50177             SHARED_LD_CXX="${CXX} -G -o"
50178             PIC_FLAG="-KPIC"
50179         fi
50180       ;;
50181
50182       *-*-solaris2* )
50183         if test "x$SUNCXX" = xyes ; then
50184             SHARED_LD_CC="${CC} -G -o"
50185             SHARED_LD_CXX="${CXX} -G -o"
50186             PIC_FLAG="-KPIC"
50187         fi
50188       ;;
50189
50190       *-*-darwin* )
50191
50192 D='$'
50193 cat <<EOF >shared-ld-sh
50194 #!/bin/sh
50195 #-----------------------------------------------------------------------------
50196 #-- Name:        distrib/mac/shared-ld-sh
50197 #-- Purpose:     Link a mach-o dynamic shared library for Darwin / Mac OS X
50198 #-- Author:      Gilles Depeyrot
50199 #-- Copyright:   (c) 2002 Gilles Depeyrot
50200 #-- Licence:     any use permitted
50201 #-----------------------------------------------------------------------------
50202
50203 verbose=0
50204 args=""
50205 objects=""
50206 linking_flag="-dynamiclib"
50207 ldargs="-r -keep_private_externs -nostdlib"
50208
50209 if test "x${D}CXX" = "x"; then
50210     CXX="c++"
50211 fi
50212
50213 while test ${D}# -gt 0; do
50214     case ${D}1 in
50215
50216        -v)
50217         verbose=1
50218         ;;
50219
50220        -o|-compatibility_version|-current_version|-framework|-undefined|-install_name)
50221         # collect these options and values
50222         args="${D}{args} ${D}1 ${D}2"
50223         shift
50224         ;;
50225
50226        -arch|-isysroot)
50227         # collect these options and values
50228         ldargs="${D}{ldargs} ${D}1 ${D}2"
50229         shift
50230         ;;
50231
50232        -s|-Wl,*)
50233         # collect these load args
50234         ldargs="${D}{ldargs} ${D}1"
50235         ;;
50236
50237        -l*|-L*|-flat_namespace|-headerpad_max_install_names)
50238         # collect these options
50239         args="${D}{args} ${D}1"
50240         ;;
50241
50242        -dynamiclib|-bundle)
50243         linking_flag="${D}1"
50244         ;;
50245
50246        -*)
50247         echo "shared-ld: unhandled option '${D}1'"
50248         exit 1
50249         ;;
50250
50251         *.o | *.a | *.dylib)
50252         # collect object files
50253         objects="${D}{objects} ${D}1"
50254         ;;
50255
50256         *)
50257         echo "shared-ld: unhandled argument '${D}1'"
50258         exit 1
50259         ;;
50260
50261     esac
50262     shift
50263 done
50264
50265 status=0
50266
50267 #
50268 # Link one module containing all the others
50269 #
50270 if test ${D}{verbose} = 1; then
50271     echo "${D}CXX ${D}{ldargs} ${D}{objects} -o master.${D}${D}.o"
50272 fi
50273 ${D}CXX ${D}{ldargs} ${D}{objects} -o master.${D}${D}.o
50274 status=${D}?
50275
50276 #
50277 # Link the shared library from the single module created, but only if the
50278 # previous command didn't fail:
50279 #
50280 if test ${D}{status} = 0; then
50281     if test ${D}{verbose} = 1; then
50282         echo "${D}CXX ${D}{linking_flag} master.${D}${D}.o ${D}{args}"
50283     fi
50284     ${D}CXX ${D}{linking_flag} master.${D}${D}.o ${D}{args}
50285     status=${D}?
50286 fi
50287
50288 #
50289 # Remove intermediate module
50290 #
50291 rm -f master.${D}${D}.o
50292
50293 exit ${D}status
50294 EOF
50295
50296         chmod +x shared-ld-sh
50297
50298         SHARED_LD_MODULE_CC="`pwd`/shared-ld-sh -bundle -headerpad_max_install_names -o"
50299         SHARED_LD_MODULE_CXX="CXX=\"\$(CXX)\" $SHARED_LD_MODULE_CC"
50300
50301
50302                                 { echo "$as_me:$LINENO: checking for gcc 3.1 or later" >&5
50303 echo $ECHO_N "checking for gcc 3.1 or later... $ECHO_C" >&6; }
50304 if test "${bakefile_cv_gcc31+set}" = set; then
50305   echo $ECHO_N "(cached) $ECHO_C" >&6
50306 else
50307
50308            cat >conftest.$ac_ext <<_ACEOF
50309 /* confdefs.h.  */
50310 _ACEOF
50311 cat confdefs.h >>conftest.$ac_ext
50312 cat >>conftest.$ac_ext <<_ACEOF
50313 /* end confdefs.h.  */
50314
50315 int
50316 main ()
50317 {
50318
50319                    #if (__GNUC__ < 3) || \
50320                        ((__GNUC__ == 3) && (__GNUC_MINOR__ < 1))
50321                        This is old gcc
50322                    #endif
50323
50324   ;
50325   return 0;
50326 }
50327 _ACEOF
50328 rm -f conftest.$ac_objext
50329 if { (ac_try="$ac_compile"
50330 case "(($ac_try" in
50331   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50332   *) ac_try_echo=$ac_try;;
50333 esac
50334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
50335   (eval "$ac_compile") 2>conftest.er1
50336   ac_status=$?
50337   grep -v '^ *+' conftest.er1 >conftest.err
50338   rm -f conftest.er1
50339   cat conftest.err >&5
50340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50341   (exit $ac_status); } && {
50342          test -z "$ac_c_werror_flag" ||
50343          test ! -s conftest.err
50344        } && test -s conftest.$ac_objext; then
50345
50346                    bakefile_cv_gcc31=yes
50347
50348 else
50349   echo "$as_me: failed program was:" >&5
50350 sed 's/^/| /' conftest.$ac_ext >&5
50351
50352
50353                    bakefile_cv_gcc31=no
50354
50355
50356 fi
50357
50358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
50359
50360 fi
50361 { echo "$as_me:$LINENO: result: $bakefile_cv_gcc31" >&5
50362 echo "${ECHO_T}$bakefile_cv_gcc31" >&6; }
50363         if test "$bakefile_cv_gcc31" = "no"; then
50364                         SHARED_LD_CC="`pwd`/shared-ld-sh -dynamiclib -headerpad_max_install_names -o"
50365             SHARED_LD_CXX="$SHARED_LD_CC"
50366         else
50367                         SHARED_LD_CC="\${CC} -dynamiclib -single_module -headerpad_max_install_names -o"
50368             SHARED_LD_CXX="\${CXX} -dynamiclib -single_module -headerpad_max_install_names -o"
50369         fi
50370
50371         if test "x$GCC" == "xyes"; then
50372             PIC_FLAG="-dynamic -fPIC"
50373         fi
50374         if test "x$XLCC" = "xyes"; then
50375             PIC_FLAG="-dynamic -DPIC"
50376         fi
50377       ;;
50378
50379       *-*-aix* )
50380         if test "x$GCC" = "xyes"; then
50381                                                             PIC_FLAG=""
50382
50383                                                                                     case "${BAKEFILE_HOST}" in
50384                 *-*-aix5* )
50385                     LD_EXPFULL="-Wl,-bexpfull"
50386                     ;;
50387             esac
50388
50389             SHARED_LD_CC="\$(CC) -shared $LD_EXPFULL -o"
50390             SHARED_LD_CXX="\$(CXX) -shared $LD_EXPFULL -o"
50391         else
50392                                     # Extract the first word of "makeC++SharedLib", so it can be a program name with args.
50393 set dummy makeC++SharedLib; ac_word=$2
50394 { echo "$as_me:$LINENO: checking for $ac_word" >&5
50395 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
50396 if test "${ac_cv_prog_AIX_CXX_LD+set}" = set; then
50397   echo $ECHO_N "(cached) $ECHO_C" >&6
50398 else
50399   if test -n "$AIX_CXX_LD"; then
50400   ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test.
50401 else
50402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
50403 for as_dir in $PATH
50404 do
50405   IFS=$as_save_IFS
50406   test -z "$as_dir" && as_dir=.
50407   for ac_exec_ext in '' $ac_executable_extensions; do
50408   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
50409     ac_cv_prog_AIX_CXX_LD="makeC++SharedLib"
50410     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
50411     break 2
50412   fi
50413 done
50414 done
50415 IFS=$as_save_IFS
50416
50417   test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib"
50418 fi
50419 fi
50420 AIX_CXX_LD=$ac_cv_prog_AIX_CXX_LD
50421 if test -n "$AIX_CXX_LD"; then
50422   { echo "$as_me:$LINENO: result: $AIX_CXX_LD" >&5
50423 echo "${ECHO_T}$AIX_CXX_LD" >&6; }
50424 else
50425   { echo "$as_me:$LINENO: result: no" >&5
50426 echo "${ECHO_T}no" >&6; }
50427 fi
50428
50429
50430             SHARED_LD_CC="$AIX_CC_LD -p 0 -o"
50431             SHARED_LD_CXX="$AIX_CXX_LD -p 0 -o"
50432         fi
50433       ;;
50434
50435       *-*-beos* )
50436                         SHARED_LD_CC="${LD} -nostart -o"
50437         SHARED_LD_CXX="${LD} -nostart -o"
50438       ;;
50439
50440       *-*-irix* )
50441                 if test "x$GCC" != "xyes"; then
50442             PIC_FLAG="-KPIC"
50443         fi
50444       ;;
50445
50446       *-*-cygwin* | *-*-mingw32* )
50447         PIC_FLAG=""
50448         SHARED_LD_CC="\$(CC) -shared -o"
50449         SHARED_LD_CXX="\$(CXX) -shared -o"
50450         WINDOWS_IMPLIB=1
50451       ;;
50452
50453       *-pc-os2_emx | *-pc-os2-emx )
50454         SHARED_LD_CC="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
50455         SHARED_LD_CXX="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
50456         PIC_FLAG=""
50457
50458 D='$'
50459 cat <<EOF >dllar.sh
50460 #!/bin/sh
50461 #
50462 # dllar - a tool to build both a .dll and an .a file
50463 # from a set of object (.o) files for EMX/OS2.
50464 #
50465 #  Written by Andrew Zabolotny, bit@freya.etu.ru
50466 #  Ported to Unix like shell by Stefan Neis, Stefan.Neis@t-online.de
50467 #
50468 #  This script will accept a set of files on the command line.
50469 #  All the public symbols from the .o files will be exported into
50470 #  a .DEF file, then linker will be run (through gcc) against them to
50471 #  build a shared library consisting of all given .o files. All libraries
50472 #  (.a) will be first decompressed into component .o files then act as
50473 #  described above. You can optionally give a description (-d "description")
50474 #  which will be put into .DLL. To see the list of accepted options (as well
50475 #  as command-line format) simply run this program without options. The .DLL
50476 #  is built to be imported by name (there is no guarantee that new versions
50477 #  of the library you build will have same ordinals for same symbols).
50478 #
50479 #  dllar is free software; you can redistribute it and/or modify
50480 #  it under the terms of the GNU General Public License as published by
50481 #  the Free Software Foundation; either version 2, or (at your option)
50482 #  any later version.
50483 #
50484 #  dllar is distributed in the hope that it will be useful,
50485 #  but WITHOUT ANY WARRANTY; without even the implied warranty of
50486 #  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
50487 #  GNU General Public License for more details.
50488 #
50489 #  You should have received a copy of the GNU General Public License
50490 #  along with dllar; see the file COPYING.  If not, write to the Free
50491 #  Software Foundation, 59 Temple Place - Suite 330, Boston, MA
50492 #  02111-1307, USA.
50493
50494 # To successfuly run this program you will need:
50495 #  - Current drive should have LFN support (HPFS, ext2, network, etc)
50496 #    (Sometimes dllar generates filenames which won't fit 8.3 scheme)
50497 #  - gcc
50498 #    (used to build the .dll)
50499 #  - emxexp
50500 #    (used to create .def file from .o files)
50501 #  - emximp
50502 #    (used to create .a file from .def file)
50503 #  - GNU text utilites (cat, sort, uniq)
50504 #    used to process emxexp output
50505 #  - GNU file utilities (mv, rm)
50506 #  - GNU sed
50507 #  - lxlite (optional, see flag below)
50508 #    (used for general .dll cleanup)
50509 #
50510
50511 flag_USE_LXLITE=1;
50512
50513 #
50514 # helper functions
50515 # basnam, variant of basename, which does _not_ remove the path, _iff_
50516 #                              second argument (suffix to remove) is given
50517 basnam(){
50518     case ${D}# in
50519     1)
50520         echo ${D}1 | sed 's/.*\\///' | sed 's/.*\\\\//'
50521         ;;
50522     2)
50523         echo ${D}1 | sed 's/'${D}2'${D}//'
50524         ;;
50525     *)
50526         echo "error in basnam ${D}*"
50527         exit 8
50528         ;;
50529     esac
50530 }
50531
50532 # Cleanup temporary files and output
50533 CleanUp() {
50534     cd ${D}curDir
50535     for i in ${D}inputFiles ; do
50536         case ${D}i in
50537         *!)
50538             rm -rf \`basnam ${D}i !\`
50539             ;;
50540         *)
50541             ;;
50542         esac
50543     done
50544
50545     # Kill result in case of failure as there is just to many stupid make/nmake
50546     # things out there which doesn't do this.
50547     if [ ${D}# -eq 0 ]; then
50548         rm -f ${D}arcFile ${D}arcFile2 ${D}defFile ${D}dllFile
50549     fi
50550 }
50551
50552 # Print usage and exit script with rc=1.
50553 PrintHelp() {
50554  echo 'Usage: dllar.sh [-o[utput] output_file] [-i[mport] importlib_name]'
50555  echo '       [-name-mangler-script script.sh]'
50556  echo '       [-d[escription] "dll descrption"] [-cc "CC"] [-f[lags] "CFLAGS"]'
50557  echo '       [-ord[inals]] -ex[clude] "symbol(s)"'
50558  echo '       [-libf[lags] "{INIT|TERM}{GLOBAL|INSTANCE}"] [-nocrt[dll]] [-nolxl[ite]]'
50559  echo '       [*.o] [*.a]'
50560  echo '*> "output_file" should have no extension.'
50561  echo '   If it has the .o, .a or .dll extension, it is automatically removed.'
50562  echo '   The import library name is derived from this and is set to "name".a,'
50563  echo '   unless overridden by -import'
50564  echo '*> "importlib_name" should have no extension.'
50565  echo '   If it has the .o, or .a extension, it is automatically removed.'
50566  echo '   This name is used as the import library name and may be longer and'
50567  echo '   more descriptive than the DLL name which has to follow the old '
50568  echo '   8.3 convention of FAT.'
50569  echo '*> "script.sh may be given to override the output_file name by a'
50570  echo '   different name. It is mainly useful if the regular make process'
50571  echo '   of some package does not take into account OS/2 restriction of'
50572  echo '   DLL name lengths. It takes the importlib name as input and is'
50573  echo '   supposed to procude a shorter name as output. The script should'
50574  echo '   expect to get importlib_name without extension and should produce'
50575  echo '   a (max.) 8 letter name without extension.'
50576  echo '*> "cc" is used to use another GCC executable.   (default: gcc.exe)'
50577  echo '*> "flags" should be any set of valid GCC flags. (default: -s -Zcrtdll)'
50578  echo '   These flags will be put at the start of GCC command line.'
50579  echo '*> -ord[inals] tells dllar to export entries by ordinals. Be careful.'
50580  echo '*> -ex[clude] defines symbols which will not be exported. You can define'
50581  echo '   multiple symbols, for example -ex "myfunc yourfunc _GLOBAL*".'
50582  echo '   If the last character of a symbol is "*", all symbols beginning'
50583  echo '   with the prefix before "*" will be exclude, (see _GLOBAL* above).'
50584  echo '*> -libf[lags] can be used to add INITGLOBAL/INITINSTANCE and/or'
50585  echo '   TERMGLOBAL/TERMINSTANCE flags to the dynamically-linked library.'
50586  echo '*> -nocrt[dll] switch will disable linking the library against emx''s'
50587  echo '   C runtime DLLs.'
50588  echo '*> -nolxl[ite] switch will disable running lxlite on the resulting DLL.'
50589  echo '*> All other switches (for example -L./ or -lmylib) will be passed'
50590  echo '   unchanged to GCC at the end of command line.'
50591  echo '*> If you create a DLL from a library and you do not specify -o,'
50592  echo '   the basename for DLL and import library will be set to library name,'
50593  echo '   the initial library will be renamed to 'name'_s.a (_s for static)'
50594  echo '   i.e. "dllar gcc.a" will create gcc.dll and gcc.a, and the initial'
50595  echo '   library will be renamed into gcc_s.a.'
50596  echo '--------'
50597  echo 'Example:'
50598  echo '   dllar -o gcc290.dll libgcc.a -d "GNU C runtime library" -ord'
50599  echo '    -ex "__main __ctordtor*" -libf "INITINSTANCE TERMINSTANCE"'
50600  CleanUp
50601  exit 1
50602 }
50603
50604 # Execute a command.
50605 # If exit code of the commnad <> 0 CleanUp() is called and we'll exit the script.
50606 # @Uses    Whatever CleanUp() uses.
50607 doCommand() {
50608     echo "${D}*"
50609     eval ${D}*
50610     rcCmd=${D}?
50611
50612     if [ ${D}rcCmd -ne 0 ]; then
50613         echo "command failed, exit code="${D}rcCmd
50614         CleanUp
50615         exit ${D}rcCmd
50616     fi
50617 }
50618
50619 # main routine
50620 # setup globals
50621 cmdLine=${D}*
50622 outFile=""
50623 outimpFile=""
50624 inputFiles=""
50625 renameScript=""
50626 description=""
50627 CC=gcc.exe
50628 CFLAGS="-s -Zcrtdll"
50629 EXTRA_CFLAGS=""
50630 EXPORT_BY_ORDINALS=0
50631 exclude_symbols=""
50632 library_flags=""
50633 curDir=\`pwd\`
50634 curDirS=curDir
50635 case ${D}curDirS in
50636 */)
50637   ;;
50638 *)
50639   curDirS=${D}{curDirS}"/"
50640   ;;
50641 esac
50642 # Parse commandline
50643 libsToLink=0
50644 omfLinking=0
50645 while [ ${D}1 ]; do
50646     case ${D}1 in
50647     -ord*)
50648         EXPORT_BY_ORDINALS=1;
50649         ;;
50650     -o*)
50651         shift
50652         outFile=${D}1
50653         ;;
50654     -i*)
50655         shift
50656         outimpFile=${D}1
50657         ;;
50658     -name-mangler-script)
50659         shift
50660         renameScript=${D}1
50661         ;;
50662     -d*)
50663         shift
50664         description=${D}1
50665         ;;
50666     -f*)
50667         shift
50668         CFLAGS=${D}1
50669         ;;
50670     -c*)
50671         shift
50672         CC=${D}1
50673         ;;
50674     -h*)
50675         PrintHelp
50676         ;;
50677     -ex*)
50678         shift
50679         exclude_symbols=${D}{exclude_symbols}${D}1" "
50680         ;;
50681     -libf*)
50682         shift
50683         library_flags=${D}{library_flags}${D}1" "
50684         ;;
50685     -nocrt*)
50686         CFLAGS="-s"
50687         ;;
50688     -nolxl*)
50689         flag_USE_LXLITE=0
50690         ;;
50691     -* | /*)
50692         case ${D}1 in
50693         -L* | -l*)
50694             libsToLink=1
50695             ;;
50696         -Zomf)
50697             omfLinking=1
50698             ;;
50699         *)
50700             ;;
50701         esac
50702         EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
50703         ;;
50704     *.dll)
50705         EXTRA_CFLAGS="${D}{EXTRA_CFLAGS} \`basnam ${D}1 .dll\`"
50706         if [ ${D}omfLinking -eq 1 ]; then
50707             EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.lib"
50708         else
50709             EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.a"
50710         fi
50711         ;;
50712     *)
50713         found=0;
50714         if [ ${D}libsToLink -ne 0 ]; then
50715             EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
50716         else
50717             for file in ${D}1 ; do
50718                 if [ -f ${D}file ]; then
50719                     inputFiles="${D}{inputFiles} ${D}file"
50720                     found=1
50721                 fi
50722             done
50723             if [ ${D}found -eq 0 ]; then
50724                 echo "ERROR: No file(s) found: "${D}1
50725                 exit 8
50726             fi
50727         fi
50728       ;;
50729     esac
50730     shift
50731 done # iterate cmdline words
50732
50733 #
50734 if [ -z "${D}inputFiles" ]; then
50735     echo "dllar: no input files"
50736     PrintHelp
50737 fi
50738
50739 # Now extract all .o files from .a files
50740 newInputFiles=""
50741 for file in ${D}inputFiles ; do
50742     case ${D}file in
50743     *.a | *.lib)
50744         case ${D}file in
50745         *.a)
50746             suffix=".a"
50747             AR="ar"
50748             ;;
50749         *.lib)
50750             suffix=".lib"
50751             AR="emxomfar"
50752             EXTRA_CFLAGS="${D}EXTRA_CFLAGS -Zomf"
50753             ;;
50754         *)
50755             ;;
50756         esac
50757         dirname=\`basnam ${D}file ${D}suffix\`"_%"
50758         mkdir ${D}dirname
50759         if [ ${D}? -ne 0 ]; then
50760             echo "Failed to create subdirectory ./${D}dirname"
50761             CleanUp
50762             exit 8;
50763         fi
50764         # Append '!' to indicate archive
50765         newInputFiles="${D}newInputFiles ${D}{dirname}!"
50766         doCommand "cd ${D}dirname; ${D}AR x ../${D}file"
50767         cd ${D}curDir
50768         found=0;
50769         for subfile in ${D}dirname/*.o* ; do
50770             if [ -f ${D}subfile ]; then
50771                 found=1
50772                 if [ -s ${D}subfile ]; then
50773                     # FIXME: This should be: is file size > 32 byte, _not_ > 0!
50774                     newInputFiles="${D}newInputFiles ${D}subfile"
50775                 fi
50776             fi
50777         done
50778         if [ ${D}found -eq 0 ]; then
50779             echo "WARNING: there are no files in archive \\'${D}file\\'"
50780         fi
50781         ;;
50782     *)
50783         newInputFiles="${D}{newInputFiles} ${D}file"
50784         ;;
50785     esac
50786 done
50787 inputFiles="${D}newInputFiles"
50788
50789 # Output filename(s).
50790 do_backup=0;
50791 if [ -z ${D}outFile ]; then
50792     do_backup=1;
50793     set outFile ${D}inputFiles; outFile=${D}2
50794 fi
50795
50796 # If it is an archive, remove the '!' and the '_%' suffixes
50797 case ${D}outFile in
50798 *_%!)
50799     outFile=\`basnam ${D}outFile _%!\`
50800     ;;
50801 *)
50802     ;;
50803 esac
50804 case ${D}outFile in
50805 *.dll)
50806     outFile=\`basnam ${D}outFile .dll\`
50807     ;;
50808 *.DLL)
50809     outFile=\`basnam ${D}outFile .DLL\`
50810     ;;
50811 *.o)
50812     outFile=\`basnam ${D}outFile .o\`
50813     ;;
50814 *.obj)
50815     outFile=\`basnam ${D}outFile .obj\`
50816     ;;
50817 *.a)
50818     outFile=\`basnam ${D}outFile .a\`
50819     ;;
50820 *.lib)
50821     outFile=\`basnam ${D}outFile .lib\`
50822     ;;
50823 *)
50824     ;;
50825 esac
50826 case ${D}outimpFile in
50827 *.a)
50828     outimpFile=\`basnam ${D}outimpFile .a\`
50829     ;;
50830 *.lib)
50831     outimpFile=\`basnam ${D}outimpFile .lib\`
50832     ;;
50833 *)
50834     ;;
50835 esac
50836 if [ -z ${D}outimpFile ]; then
50837     outimpFile=${D}outFile
50838 fi
50839 defFile="${D}{outFile}.def"
50840 arcFile="${D}{outimpFile}.a"
50841 arcFile2="${D}{outimpFile}.lib"
50842
50843 #create ${D}dllFile as something matching 8.3 restrictions,
50844 if [ -z ${D}renameScript ] ; then
50845     dllFile="${D}outFile"
50846 else
50847     dllFile=\`${D}renameScript ${D}outimpFile\`
50848 fi
50849
50850 if [ ${D}do_backup -ne 0 ] ; then
50851     if [ -f ${D}arcFile ] ; then
50852         doCommand "mv ${D}arcFile ${D}{outFile}_s.a"
50853     fi
50854     if [ -f ${D}arcFile2 ] ; then
50855         doCommand "mv ${D}arcFile2 ${D}{outFile}_s.lib"
50856     fi
50857 fi
50858
50859 # Extract public symbols from all the object files.
50860 tmpdefFile=${D}{defFile}_%
50861 rm -f ${D}tmpdefFile
50862 for file in ${D}inputFiles ; do
50863     case ${D}file in
50864     *!)
50865         ;;
50866     *)
50867         doCommand "emxexp -u ${D}file >> ${D}tmpdefFile"
50868         ;;
50869     esac
50870 done
50871
50872 # Create the def file.
50873 rm -f ${D}defFile
50874 echo "LIBRARY \`basnam ${D}dllFile\` ${D}library_flags" >> ${D}defFile
50875 dllFile="${D}{dllFile}.dll"
50876 if [ ! -z ${D}description ]; then
50877     echo "DESCRIPTION  \\"${D}{description}\\"" >> ${D}defFile
50878 fi
50879 echo "EXPORTS" >> ${D}defFile
50880
50881 doCommand "cat ${D}tmpdefFile | sort.exe | uniq.exe > ${D}{tmpdefFile}%"
50882 grep -v "^ *;" < ${D}{tmpdefFile}% | grep -v "^ *${D}" >${D}tmpdefFile
50883
50884 # Checks if the export is ok or not.
50885 for word in ${D}exclude_symbols; do
50886     grep -v ${D}word < ${D}tmpdefFile >${D}{tmpdefFile}%
50887     mv ${D}{tmpdefFile}% ${D}tmpdefFile
50888 done
50889
50890
50891 if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then
50892     sed "=" < ${D}tmpdefFile | \\
50893     sed '
50894       N
50895       : loop
50896       s/^\\([0-9]\\+\\)\\([^;]*\\)\\(;.*\\)\\?/\\2 @\\1 NONAME/
50897       t loop
50898     ' > ${D}{tmpdefFile}%
50899     grep -v "^ *${D}" < ${D}{tmpdefFile}% > ${D}tmpdefFile
50900 else
50901     rm -f ${D}{tmpdefFile}%
50902 fi
50903 cat ${D}tmpdefFile >> ${D}defFile
50904 rm -f ${D}tmpdefFile
50905
50906 # Do linking, create implib, and apply lxlite.
50907 gccCmdl="";
50908 for file in ${D}inputFiles ; do
50909     case ${D}file in
50910     *!)
50911         ;;
50912     *)
50913         gccCmdl="${D}gccCmdl ${D}file"
50914         ;;
50915     esac
50916 done
50917 doCommand "${D}CC ${D}CFLAGS -Zdll -o ${D}dllFile ${D}defFile ${D}gccCmdl ${D}EXTRA_CFLAGS"
50918 touch "${D}{outFile}.dll"
50919
50920 doCommand "emximp -o ${D}arcFile ${D}defFile"
50921 if [ ${D}flag_USE_LXLITE -ne 0 ]; then
50922     add_flags="";
50923     if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then
50924         add_flags="-ynd"
50925     fi
50926     doCommand "lxlite -cs -t: -mrn -mln ${D}add_flags ${D}dllFile"
50927 fi
50928 doCommand "emxomf -s -l ${D}arcFile"
50929
50930 # Successful exit.
50931 CleanUp 1
50932 exit 0
50933 EOF
50934
50935         chmod +x dllar.sh
50936       ;;
50937
50938       powerpc-apple-macos* | \
50939       *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | *-*-k*bsd*-gnu | \
50940       *-*-mirbsd* | \
50941       *-*-sunos4* | \
50942       *-*-osf* | \
50943       *-*-dgux5* | \
50944       *-*-sysv5* | \
50945       *-pc-msdosdjgpp )
50946               ;;
50947
50948       *)
50949         { { echo "$as_me:$LINENO: error: unknown system type $BAKEFILE_HOST." >&5
50950 echo "$as_me: error: unknown system type $BAKEFILE_HOST." >&2;}
50951    { (exit 1); exit 1; }; }
50952     esac
50953
50954     if test "x$PIC_FLAG" != "x" ; then
50955         PIC_FLAG="$PIC_FLAG -DPIC"
50956     fi
50957
50958     if test "x$SHARED_LD_MODULE_CC" = "x" ; then
50959         SHARED_LD_MODULE_CC="$SHARED_LD_CC"
50960     fi
50961     if test "x$SHARED_LD_MODULE_CXX" = "x" ; then
50962         SHARED_LD_MODULE_CXX="$SHARED_LD_CXX"
50963     fi
50964
50965
50966
50967
50968
50969
50970
50971
50972
50973     USE_SOVERSION=0
50974     USE_SOVERLINUX=0
50975     USE_SOVERSOLARIS=0
50976     USE_SOVERCYGWIN=0
50977     USE_SOTWOSYMLINKS=0
50978     USE_MACVERSION=0
50979     SONAME_FLAG=
50980
50981     case "${BAKEFILE_HOST}" in
50982       *-*-linux* | *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \
50983       *-*-k*bsd*-gnu | *-*-mirbsd* )
50984         if test "x$SUNCXX" = "xyes"; then
50985             SONAME_FLAG="-h "
50986         else
50987             SONAME_FLAG="-Wl,-soname,"
50988         fi
50989         USE_SOVERSION=1
50990         USE_SOVERLINUX=1
50991         USE_SOTWOSYMLINKS=1
50992       ;;
50993
50994       *-*-solaris2* )
50995         SONAME_FLAG="-h "
50996         USE_SOVERSION=1
50997         USE_SOVERSOLARIS=1
50998       ;;
50999
51000       *-*-darwin* )
51001         USE_MACVERSION=1
51002         USE_SOVERSION=1
51003         USE_SOTWOSYMLINKS=1
51004       ;;
51005
51006       *-*-cygwin* )
51007         USE_SOVERSION=1
51008         USE_SOVERCYGWIN=1
51009       ;;
51010     esac
51011
51012
51013
51014
51015
51016
51017
51018
51019
51020
51021     # Check whether --enable-dependency-tracking was given.
51022 if test "${enable_dependency_tracking+set}" = set; then
51023   enableval=$enable_dependency_tracking; bk_use_trackdeps="$enableval"
51024 fi
51025
51026
51027     { echo "$as_me:$LINENO: checking for dependency tracking method" >&5
51028 echo $ECHO_N "checking for dependency tracking method... $ECHO_C" >&6; }
51029
51030     BK_DEPS=""
51031     if test "x$bk_use_trackdeps" = "xno" ; then
51032         DEPS_TRACKING=0
51033         { echo "$as_me:$LINENO: result: disabled" >&5
51034 echo "${ECHO_T}disabled" >&6; }
51035     else
51036         DEPS_TRACKING=1
51037
51038         if test "x$GCC" = "xyes"; then
51039             DEPSMODE=gcc
51040             case "${BAKEFILE_HOST}" in
51041                 *-*-darwin* )
51042                                                             DEPSFLAG="-no-cpp-precomp -MMD"
51043                 ;;
51044                 * )
51045                     DEPSFLAG="-MMD"
51046                 ;;
51047             esac
51048             { echo "$as_me:$LINENO: result: gcc" >&5
51049 echo "${ECHO_T}gcc" >&6; }
51050         elif test "x$MWCC" = "xyes"; then
51051             DEPSMODE=mwcc
51052             DEPSFLAG="-MM"
51053             { echo "$as_me:$LINENO: result: mwcc" >&5
51054 echo "${ECHO_T}mwcc" >&6; }
51055         elif test "x$SUNCC" = "xyes"; then
51056             DEPSMODE=unixcc
51057             DEPSFLAG="-xM1"
51058             { echo "$as_me:$LINENO: result: Sun cc" >&5
51059 echo "${ECHO_T}Sun cc" >&6; }
51060         elif test "x$SGICC" = "xyes"; then
51061             DEPSMODE=unixcc
51062             DEPSFLAG="-M"
51063             { echo "$as_me:$LINENO: result: SGI cc" >&5
51064 echo "${ECHO_T}SGI cc" >&6; }
51065         elif test "x$HPCC" = "xyes"; then
51066             DEPSMODE=unixcc
51067             DEPSFLAG="+make"
51068             { echo "$as_me:$LINENO: result: HP cc" >&5
51069 echo "${ECHO_T}HP cc" >&6; }
51070         elif test "x$COMPAQCC" = "xyes"; then
51071             DEPSMODE=gcc
51072             DEPSFLAG="-MD"
51073             { echo "$as_me:$LINENO: result: Compaq cc" >&5
51074 echo "${ECHO_T}Compaq cc" >&6; }
51075         else
51076             DEPS_TRACKING=0
51077             { echo "$as_me:$LINENO: result: none" >&5
51078 echo "${ECHO_T}none" >&6; }
51079         fi
51080
51081         if test $DEPS_TRACKING = 1 ; then
51082
51083 D='$'
51084 cat <<EOF >bk-deps
51085 #!/bin/sh
51086
51087 # This script is part of Bakefile (http://www.bakefile.org) autoconf
51088 # script. It is used to track C/C++ files dependencies in portable way.
51089 #
51090 # Permission is given to use this file in any way.
51091
51092 DEPSMODE=${DEPSMODE}
51093 DEPSFLAG="${DEPSFLAG}"
51094 DEPSDIRBASE=.deps
51095
51096 if test ${D}DEPSMODE = gcc ; then
51097     ${D}* ${D}{DEPSFLAG}
51098     status=${D}?
51099
51100     # determine location of created files:
51101     while test ${D}# -gt 0; do
51102         case "${D}1" in
51103             -o )
51104                 shift
51105                 objfile=${D}1
51106             ;;
51107             -* )
51108             ;;
51109             * )
51110                 srcfile=${D}1
51111             ;;
51112         esac
51113         shift
51114     done
51115     objfilebase=\`basename ${D}objfile\`
51116     builddir=\`dirname ${D}objfile\`
51117     depfile=\`basename ${D}srcfile | sed -e 's/\\..*${D}/.d/g'\`
51118     depobjname=\`echo ${D}depfile |sed -e 's/\\.d/.o/g'\`
51119     depsdir=${D}builddir/${D}DEPSDIRBASE
51120     mkdir -p ${D}depsdir
51121
51122     # if the compiler failed, we're done:
51123     if test ${D}{status} != 0 ; then
51124         rm -f ${D}depfile
51125         exit ${D}{status}
51126     fi
51127
51128     # move created file to the location we want it in:
51129     if test -f ${D}depfile ; then
51130         sed -e "s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{depsdir}/${D}{objfilebase}.d
51131         rm -f ${D}depfile
51132     else
51133         # "g++ -MMD -o fooobj.o foosrc.cpp" produces fooobj.d
51134         depfile=\`echo "${D}objfile" | sed -e 's/\\..*${D}/.d/g'\`
51135         if test ! -f ${D}depfile ; then
51136             # "cxx -MD -o fooobj.o foosrc.cpp" creates fooobj.o.d (Compaq C++)
51137             depfile="${D}objfile.d"
51138         fi
51139         if test -f ${D}depfile ; then
51140             sed -e "\\,^${D}objfile,!s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{depsdir}/${D}{objfilebase}.d
51141             rm -f ${D}depfile
51142         fi
51143     fi
51144     exit 0
51145
51146 elif test ${D}DEPSMODE = mwcc ; then
51147     ${D}* || exit ${D}?
51148     # Run mwcc again with -MM and redirect into the dep file we want
51149     # NOTE: We can't use shift here because we need ${D}* to be valid
51150     prevarg=
51151     for arg in ${D}* ; do
51152         if test "${D}prevarg" = "-o"; then
51153             objfile=${D}arg
51154         else
51155             case "${D}arg" in
51156                 -* )
51157                 ;;
51158                 * )
51159                     srcfile=${D}arg
51160                 ;;
51161             esac
51162         fi
51163         prevarg="${D}arg"
51164     done
51165
51166     objfilebase=\`basename ${D}objfile\`
51167     builddir=\`dirname ${D}objfile\`
51168     depsdir=${D}builddir/${D}DEPSDIRBASE
51169     mkdir -p ${D}depsdir
51170
51171     ${D}* ${D}DEPSFLAG >${D}{depsdir}/${D}{objfilebase}.d
51172     exit 0
51173
51174 elif test ${D}DEPSMODE = unixcc; then
51175     ${D}* || exit ${D}?
51176     # Run compiler again with deps flag and redirect into the dep file.
51177     # It doesn't work if the '-o FILE' option is used, but without it the
51178     # dependency file will contain the wrong name for the object. So it is
51179     # removed from the command line, and the dep file is fixed with sed.
51180     cmd=""
51181     while test ${D}# -gt 0; do
51182         case "${D}1" in
51183             -o )
51184                 shift
51185                 objfile=${D}1
51186             ;;
51187             * )
51188                 eval arg${D}#=\\${D}1
51189                 cmd="${D}cmd \\${D}arg${D}#"
51190             ;;
51191         esac
51192         shift
51193     done
51194
51195     objfilebase=\`basename ${D}objfile\`
51196     builddir=\`dirname ${D}objfile\`
51197     depsdir=${D}builddir/${D}DEPSDIRBASE
51198     mkdir -p ${D}depsdir
51199
51200     eval "${D}cmd ${D}DEPSFLAG" | sed "s|.*:|${D}objfile:|" >${D}{depsdir}/${D}{objfilebase}.d
51201     exit 0
51202
51203 else
51204     ${D}*
51205     exit ${D}?
51206 fi
51207 EOF
51208
51209             chmod +x bk-deps
51210                                     BK_DEPS="`pwd`/bk-deps"
51211         fi
51212     fi
51213
51214
51215
51216
51217
51218     case ${BAKEFILE_HOST} in
51219         *-*-cygwin* | *-*-mingw32* )
51220                         if test -n "$ac_tool_prefix"; then
51221   # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
51222 set dummy ${ac_tool_prefix}windres; ac_word=$2
51223 { echo "$as_me:$LINENO: checking for $ac_word" >&5
51224 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
51225 if test "${ac_cv_prog_WINDRES+set}" = set; then
51226   echo $ECHO_N "(cached) $ECHO_C" >&6
51227 else
51228   if test -n "$WINDRES"; then
51229   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
51230 else
51231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
51232 for as_dir in $PATH
51233 do
51234   IFS=$as_save_IFS
51235   test -z "$as_dir" && as_dir=.
51236   for ac_exec_ext in '' $ac_executable_extensions; do
51237   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
51238     ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
51239     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
51240     break 2
51241   fi
51242 done
51243 done
51244 IFS=$as_save_IFS
51245
51246 fi
51247 fi
51248 WINDRES=$ac_cv_prog_WINDRES
51249 if test -n "$WINDRES"; then
51250   { echo "$as_me:$LINENO: result: $WINDRES" >&5
51251 echo "${ECHO_T}$WINDRES" >&6; }
51252 else
51253   { echo "$as_me:$LINENO: result: no" >&5
51254 echo "${ECHO_T}no" >&6; }
51255 fi
51256
51257
51258 fi
51259 if test -z "$ac_cv_prog_WINDRES"; then
51260   ac_ct_WINDRES=$WINDRES
51261   # Extract the first word of "windres", so it can be a program name with args.
51262 set dummy windres; ac_word=$2
51263 { echo "$as_me:$LINENO: checking for $ac_word" >&5
51264 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
51265 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
51266   echo $ECHO_N "(cached) $ECHO_C" >&6
51267 else
51268   if test -n "$ac_ct_WINDRES"; then
51269   ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
51270 else
51271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
51272 for as_dir in $PATH
51273 do
51274   IFS=$as_save_IFS
51275   test -z "$as_dir" && as_dir=.
51276   for ac_exec_ext in '' $ac_executable_extensions; do
51277   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
51278     ac_cv_prog_ac_ct_WINDRES="windres"
51279     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
51280     break 2
51281   fi
51282 done
51283 done
51284 IFS=$as_save_IFS
51285
51286 fi
51287 fi
51288 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
51289 if test -n "$ac_ct_WINDRES"; then
51290   { echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
51291 echo "${ECHO_T}$ac_ct_WINDRES" >&6; }
51292 else
51293   { echo "$as_me:$LINENO: result: no" >&5
51294 echo "${ECHO_T}no" >&6; }
51295 fi
51296
51297   if test "x$ac_ct_WINDRES" = x; then
51298     WINDRES=""
51299   else
51300     case $cross_compiling:$ac_tool_warned in
51301 yes:)
51302 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
51303 whose name does not start with the host triplet.  If you think this
51304 configuration is useful to you, please write to autoconf@gnu.org." >&5
51305 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
51306 whose name does not start with the host triplet.  If you think this
51307 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
51308 ac_tool_warned=yes ;;
51309 esac
51310     WINDRES=$ac_ct_WINDRES
51311   fi
51312 else
51313   WINDRES="$ac_cv_prog_WINDRES"
51314 fi
51315
51316          ;;
51317
51318       *-*-darwin* | powerpc-apple-macos* )
51319             # Extract the first word of "Rez", so it can be a program name with args.
51320 set dummy Rez; ac_word=$2
51321 { echo "$as_me:$LINENO: checking for $ac_word" >&5
51322 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
51323 if test "${ac_cv_prog_REZ+set}" = set; then
51324   echo $ECHO_N "(cached) $ECHO_C" >&6
51325 else
51326   if test -n "$REZ"; then
51327   ac_cv_prog_REZ="$REZ" # Let the user override the test.
51328 else
51329 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
51330 for as_dir in $PATH
51331 do
51332   IFS=$as_save_IFS
51333   test -z "$as_dir" && as_dir=.
51334   for ac_exec_ext in '' $ac_executable_extensions; do
51335   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
51336     ac_cv_prog_REZ="Rez"
51337     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
51338     break 2
51339   fi
51340 done
51341 done
51342 IFS=$as_save_IFS
51343
51344   test -z "$ac_cv_prog_REZ" && ac_cv_prog_REZ="/Developer/Tools/Rez"
51345 fi
51346 fi
51347 REZ=$ac_cv_prog_REZ
51348 if test -n "$REZ"; then
51349   { echo "$as_me:$LINENO: result: $REZ" >&5
51350 echo "${ECHO_T}$REZ" >&6; }
51351 else
51352   { echo "$as_me:$LINENO: result: no" >&5
51353 echo "${ECHO_T}no" >&6; }
51354 fi
51355
51356
51357             # Extract the first word of "SetFile", so it can be a program name with args.
51358 set dummy SetFile; ac_word=$2
51359 { echo "$as_me:$LINENO: checking for $ac_word" >&5
51360 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
51361 if test "${ac_cv_prog_SETFILE+set}" = set; then
51362   echo $ECHO_N "(cached) $ECHO_C" >&6
51363 else
51364   if test -n "$SETFILE"; then
51365   ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
51366 else
51367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
51368 for as_dir in $PATH
51369 do
51370   IFS=$as_save_IFS
51371   test -z "$as_dir" && as_dir=.
51372   for ac_exec_ext in '' $ac_executable_extensions; do
51373   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
51374     ac_cv_prog_SETFILE="SetFile"
51375     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
51376     break 2
51377   fi
51378 done
51379 done
51380 IFS=$as_save_IFS
51381
51382   test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
51383 fi
51384 fi
51385 SETFILE=$ac_cv_prog_SETFILE
51386 if test -n "$SETFILE"; then
51387   { echo "$as_me:$LINENO: result: $SETFILE" >&5
51388 echo "${ECHO_T}$SETFILE" >&6; }
51389 else
51390   { echo "$as_me:$LINENO: result: no" >&5
51391 echo "${ECHO_T}no" >&6; }
51392 fi
51393
51394
51395         ;;
51396     esac
51397
51398
51399
51400
51401
51402
51403
51404
51405
51406     BAKEFILE_BAKEFILE_M4_VERSION="0.2.9"
51407
51408
51409 BAKEFILE_AUTOCONF_INC_M4_VERSION="0.2.9"
51410
51411
51412
51413     # Check whether --enable-precomp-headers was given.
51414 if test "${enable_precomp_headers+set}" = set; then
51415   enableval=$enable_precomp_headers; bk_use_pch="$enableval"
51416 fi
51417
51418
51419     GCC_PCH=0
51420     ICC_PCH=0
51421     USE_PCH=0
51422     BK_MAKE_PCH=""
51423
51424     case ${BAKEFILE_HOST} in
51425         *-*-cygwin* )
51426                                                 bk_use_pch="no"
51427             ;;
51428     esac
51429
51430     if test "x$bk_use_pch" = "x" -o "x$bk_use_pch" = "xyes" ; then
51431         if test "x$GCC" = "xyes"; then
51432                         { echo "$as_me:$LINENO: checking if the compiler supports precompiled headers" >&5
51433 echo $ECHO_N "checking if the compiler supports precompiled headers... $ECHO_C" >&6; }
51434             cat >conftest.$ac_ext <<_ACEOF
51435 /* confdefs.h.  */
51436 _ACEOF
51437 cat confdefs.h >>conftest.$ac_ext
51438 cat >>conftest.$ac_ext <<_ACEOF
51439 /* end confdefs.h.  */
51440
51441 int
51442 main ()
51443 {
51444
51445                     #if !defined(__GNUC__) || !defined(__GNUC_MINOR__)
51446                         There is no PCH support
51447                     #endif
51448                     #if (__GNUC__ < 3)
51449                         There is no PCH support
51450                     #endif
51451                     #if (__GNUC__ == 3) && \
51452                        ((!defined(__APPLE_CC__) && (__GNUC_MINOR__ < 4)) || \
51453                        ( defined(__APPLE_CC__) && (__GNUC_MINOR__ < 3))) || \
51454                        ( defined(__INTEL_COMPILER) )
51455                         There is no PCH support
51456                     #endif
51457
51458   ;
51459   return 0;
51460 }
51461 _ACEOF
51462 rm -f conftest.$ac_objext
51463 if { (ac_try="$ac_compile"
51464 case "(($ac_try" in
51465   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51466   *) ac_try_echo=$ac_try;;
51467 esac
51468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
51469   (eval "$ac_compile") 2>conftest.er1
51470   ac_status=$?
51471   grep -v '^ *+' conftest.er1 >conftest.err
51472   rm -f conftest.er1
51473   cat conftest.err >&5
51474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51475   (exit $ac_status); } && {
51476          test -z "$ac_c_werror_flag" ||
51477          test ! -s conftest.err
51478        } && test -s conftest.$ac_objext; then
51479
51480                     { echo "$as_me:$LINENO: result: yes" >&5
51481 echo "${ECHO_T}yes" >&6; }
51482                     GCC_PCH=1
51483
51484 else
51485   echo "$as_me: failed program was:" >&5
51486 sed 's/^/| /' conftest.$ac_ext >&5
51487
51488
51489                     if test "$INTELCXX8" = "yes"; then
51490                         { echo "$as_me:$LINENO: result: yes" >&5
51491 echo "${ECHO_T}yes" >&6; }
51492                         ICC_PCH=1
51493                         if test "$INTELCXX10" = "yes"; then
51494                             ICC_PCH_CREATE_SWITCH="-pch-create"
51495                             ICC_PCH_USE_SWITCH="-pch-use"
51496                         else
51497                             ICC_PCH_CREATE_SWITCH="-create-pch"
51498                             ICC_PCH_USE_SWITCH="-use-pch"
51499                         fi
51500                     else
51501                         { echo "$as_me:$LINENO: result: no" >&5
51502 echo "${ECHO_T}no" >&6; }
51503                     fi
51504
51505 fi
51506
51507 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
51508             if test $GCC_PCH = 1 -o $ICC_PCH = 1 ; then
51509                 USE_PCH=1
51510
51511 D='$'
51512 cat <<EOF >bk-make-pch
51513 #!/bin/sh
51514
51515 # This script is part of Bakefile (http://www.bakefile.org) autoconf
51516 # script. It is used to generated precompiled headers.
51517 #
51518 # Permission is given to use this file in any way.
51519
51520 outfile="${D}{1}"
51521 header="${D}{2}"
51522 shift
51523 shift
51524
51525 builddir=\`echo ${D}outfile | sed -e 's,/\\.pch/.*${D},,g'\`
51526
51527 compiler=""
51528 headerfile=""
51529
51530 while test ${D}{#} -gt 0; do
51531     add_to_cmdline=1
51532     case "${D}{1}" in
51533         -I* )
51534             incdir=\`echo ${D}{1} | sed -e 's/-I\\(.*\\)/\\1/g'\`
51535             if test "x${D}{headerfile}" = "x" -a -f "${D}{incdir}/${D}{header}" ; then
51536                 headerfile="${D}{incdir}/${D}{header}"
51537             fi
51538         ;;
51539         -use-pch|-use_pch|-pch-use )
51540             shift
51541             add_to_cmdline=0
51542         ;;
51543     esac
51544     if test ${D}add_to_cmdline = 1 ; then
51545         compiler="${D}{compiler} ${D}{1}"
51546     fi
51547     shift
51548 done
51549
51550 if test "x${D}{headerfile}" = "x" ; then
51551     echo "error: can't find header ${D}{header} in include paths" >&2
51552 else
51553     if test -f ${D}{outfile} ; then
51554         rm -f ${D}{outfile}
51555     else
51556         mkdir -p \`dirname ${D}{outfile}\`
51557     fi
51558     depsfile="${D}{builddir}/.deps/\`echo ${D}{outfile} | tr '/.' '__'\`.d"
51559     mkdir -p ${D}{builddir}/.deps
51560     if test "x${GCC_PCH}" = "x1" ; then
51561         # can do this because gcc is >= 3.4:
51562         ${D}{compiler} -o ${D}{outfile} -MMD -MF "${D}{depsfile}" "${D}{headerfile}"
51563     elif test "x${ICC_PCH}" = "x1" ; then
51564         filename=pch_gen-${D}${D}
51565         file=${D}{filename}.c
51566         dfile=${D}{filename}.d
51567         cat > ${D}file <<EOT
51568 #include "${D}header"
51569 EOT
51570         # using -MF icc complains about differing command lines in creation/use
51571         ${D}compiler -c ${ICC_PCH_CREATE_SWITCH} ${D}outfile -MMD ${D}file && \\
51572           sed -e "s,^.*:,${D}outfile:," -e "s, ${D}file,," < ${D}dfile > ${D}depsfile && \\
51573           rm -f ${D}file ${D}dfile ${D}{filename}.o
51574     fi
51575     exit ${D}{?}
51576 fi
51577 EOF
51578
51579                 chmod +x bk-make-pch
51580                                                                 BK_MAKE_PCH="`pwd`/bk-make-pch"
51581             fi
51582         fi
51583     fi
51584
51585
51586
51587
51588
51589
51590
51591     COND_BUILD_DEBUG="#"
51592     if test "x$BUILD" = "xdebug" ; then
51593         COND_BUILD_DEBUG=""
51594     fi
51595
51596     COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="#"
51597     if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then
51598         COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT=""
51599     fi
51600
51601     COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="#"
51602     if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then
51603         COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT=""
51604     fi
51605
51606     COND_BUILD_DEBUG_UNICODE_0="#"
51607     if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x0" ; then
51608         COND_BUILD_DEBUG_UNICODE_0=""
51609     fi
51610
51611     COND_BUILD_DEBUG_UNICODE_1="#"
51612     if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x1" ; then
51613         COND_BUILD_DEBUG_UNICODE_1=""
51614     fi
51615
51616     COND_BUILD_RELEASE="#"
51617     if test "x$BUILD" = "xrelease" ; then
51618         COND_BUILD_RELEASE=""
51619     fi
51620
51621     COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="#"
51622     if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then
51623         COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT=""
51624     fi
51625
51626     COND_BUILD_RELEASE_UNICODE_0="#"
51627     if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x0" ; then
51628         COND_BUILD_RELEASE_UNICODE_0=""
51629     fi
51630
51631     COND_BUILD_RELEASE_UNICODE_1="#"
51632     if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x1" ; then
51633         COND_BUILD_RELEASE_UNICODE_1=""
51634     fi
51635
51636     COND_BUILD_debug="#"
51637     if test "x$BUILD" = "xdebug" ; then
51638         COND_BUILD_debug=""
51639     fi
51640
51641     COND_BUILD_debug_DEBUG_FLAG_default="#"
51642     if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then
51643         COND_BUILD_debug_DEBUG_FLAG_default=""
51644     fi
51645
51646     COND_BUILD_debug_DEBUG_INFO_default="#"
51647     if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then
51648         COND_BUILD_debug_DEBUG_INFO_default=""
51649     fi
51650
51651     COND_BUILD_debug_UNICODE_0="#"
51652     if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x0" ; then
51653         COND_BUILD_debug_UNICODE_0=""
51654     fi
51655
51656     COND_BUILD_debug_UNICODE_1="#"
51657     if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x1" ; then
51658         COND_BUILD_debug_UNICODE_1=""
51659     fi
51660
51661     COND_BUILD_release="#"
51662     if test "x$BUILD" = "xrelease" ; then
51663         COND_BUILD_release=""
51664     fi
51665
51666     COND_BUILD_release_DEBUG_INFO_default="#"
51667     if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then
51668         COND_BUILD_release_DEBUG_INFO_default=""
51669     fi
51670
51671     COND_BUILD_release_UNICODE_0="#"
51672     if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x0" ; then
51673         COND_BUILD_release_UNICODE_0=""
51674     fi
51675
51676     COND_BUILD_release_UNICODE_1="#"
51677     if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x1" ; then
51678         COND_BUILD_release_UNICODE_1=""
51679     fi
51680
51681     COND_DEBUG_FLAG_0="#"
51682     if test "x$DEBUG_FLAG" = "x0" ; then
51683         COND_DEBUG_FLAG_0=""
51684     fi
51685
51686     COND_DEBUG_FLAG_1="#"
51687     if test "x$DEBUG_FLAG" = "x1" ; then
51688         COND_DEBUG_FLAG_1=""
51689     fi
51690
51691     COND_DEBUG_INFO_0="#"
51692     if test "x$DEBUG_INFO" = "x0" ; then
51693         COND_DEBUG_INFO_0=""
51694     fi
51695
51696     COND_DEBUG_INFO_1="#"
51697     if test "x$DEBUG_INFO" = "x1" ; then
51698         COND_DEBUG_INFO_1=""
51699     fi
51700
51701     COND_DEPS_TRACKING_0="#"
51702     if test "x$DEPS_TRACKING" = "x0" ; then
51703         COND_DEPS_TRACKING_0=""
51704     fi
51705
51706     COND_DEPS_TRACKING_1="#"
51707     if test "x$DEPS_TRACKING" = "x1" ; then
51708         COND_DEPS_TRACKING_1=""
51709     fi
51710
51711     COND_GCC_PCH_1="#"
51712     if test "x$GCC_PCH" = "x1" ; then
51713         COND_GCC_PCH_1=""
51714     fi
51715
51716     COND_ICC_PCH_1="#"
51717     if test "x$ICC_PCH" = "x1" ; then
51718         COND_ICC_PCH_1=""
51719     fi
51720
51721     COND_MONOLITHIC_0="#"
51722     if test "x$MONOLITHIC" = "x0" ; then
51723         COND_MONOLITHIC_0=""
51724     fi
51725
51726     COND_MONOLITHIC_0_SHARED_0="#"
51727     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" ; then
51728         COND_MONOLITHIC_0_SHARED_0=""
51729     fi
51730
51731     COND_MONOLITHIC_0_SHARED_0_USE_AUI_1="#"
51732     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_AUI" = "x1" ; then
51733         COND_MONOLITHIC_0_SHARED_0_USE_AUI_1=""
51734     fi
51735
51736     COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="#"
51737     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" ; then
51738         COND_MONOLITHIC_0_SHARED_0_USE_GUI_1=""
51739     fi
51740
51741     COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1="#"
51742     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then
51743         COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1=""
51744     fi
51745
51746     COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1="#"
51747     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_MEDIA" = "x1" ; then
51748         COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1=""
51749     fi
51750
51751     COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1="#"
51752     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_QA" = "x1" ; then
51753         COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1=""
51754     fi
51755
51756     COND_MONOLITHIC_0_SHARED_0_USE_PROPGRID_1="#"
51757     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_PROPGRID" = "x1" ; then
51758         COND_MONOLITHIC_0_SHARED_0_USE_PROPGRID_1=""
51759     fi
51760
51761     COND_MONOLITHIC_0_SHARED_0_USE_RIBBON_1="#"
51762     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_RIBBON" = "x1" ; then
51763         COND_MONOLITHIC_0_SHARED_0_USE_RIBBON_1=""
51764     fi
51765
51766     COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1="#"
51767     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_RICHTEXT" = "x1" ; then
51768         COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1=""
51769     fi
51770
51771     COND_MONOLITHIC_0_SHARED_0_USE_STC_1="#"
51772     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_STC" = "x1" ; then
51773         COND_MONOLITHIC_0_SHARED_0_USE_STC_1=""
51774     fi
51775
51776     COND_MONOLITHIC_0_SHARED_0_USE_XRC_1="#"
51777     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then
51778         COND_MONOLITHIC_0_SHARED_0_USE_XRC_1=""
51779     fi
51780
51781     COND_MONOLITHIC_0_SHARED_1="#"
51782     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" ; then
51783         COND_MONOLITHIC_0_SHARED_1=""
51784     fi
51785
51786     COND_MONOLITHIC_0_SHARED_1_USE_AUI_1="#"
51787     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_AUI" = "x1" ; then
51788         COND_MONOLITHIC_0_SHARED_1_USE_AUI_1=""
51789     fi
51790
51791     COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="#"
51792     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" ; then
51793         COND_MONOLITHIC_0_SHARED_1_USE_GUI_1=""
51794     fi
51795
51796     COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1="#"
51797     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then
51798         COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1=""
51799     fi
51800
51801     COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1="#"
51802     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_MEDIA" = "x1" ; then
51803         COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1=""
51804     fi
51805
51806     COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1="#"
51807     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_QA" = "x1" ; then
51808         COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1=""
51809     fi
51810
51811     COND_MONOLITHIC_0_SHARED_1_USE_PROPGRID_1="#"
51812     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_PROPGRID" = "x1" ; then
51813         COND_MONOLITHIC_0_SHARED_1_USE_PROPGRID_1=""
51814     fi
51815
51816     COND_MONOLITHIC_0_SHARED_1_USE_RIBBON_1="#"
51817     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_RIBBON" = "x1" ; then
51818         COND_MONOLITHIC_0_SHARED_1_USE_RIBBON_1=""
51819     fi
51820
51821     COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1="#"
51822     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_RICHTEXT" = "x1" ; then
51823         COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1=""
51824     fi
51825
51826     COND_MONOLITHIC_0_SHARED_1_USE_STC_1="#"
51827     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_STC" = "x1" ; then
51828         COND_MONOLITHIC_0_SHARED_1_USE_STC_1=""
51829     fi
51830
51831     COND_MONOLITHIC_0_SHARED_1_USE_XRC_1="#"
51832     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then
51833         COND_MONOLITHIC_0_SHARED_1_USE_XRC_1=""
51834     fi
51835
51836     COND_MONOLITHIC_0_USE_AUI_1="#"
51837     if test "x$MONOLITHIC" = "x0" -a "x$USE_AUI" = "x1" ; then
51838         COND_MONOLITHIC_0_USE_AUI_1=""
51839     fi
51840
51841     COND_MONOLITHIC_0_USE_GUI_1="#"
51842     if test "x$MONOLITHIC" = "x0" -a "x$USE_GUI" = "x1" ; then
51843         COND_MONOLITHIC_0_USE_GUI_1=""
51844     fi
51845
51846     COND_MONOLITHIC_0_USE_GUI_1_USE_MEDIA_1="#"
51847     if test "x$MONOLITHIC" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_MEDIA" = "x1" ; then
51848         COND_MONOLITHIC_0_USE_GUI_1_USE_MEDIA_1=""
51849     fi
51850
51851     COND_MONOLITHIC_0_USE_HTML_1="#"
51852     if test "x$MONOLITHIC" = "x0" -a "x$USE_HTML" = "x1" ; then
51853         COND_MONOLITHIC_0_USE_HTML_1=""
51854     fi
51855
51856     COND_MONOLITHIC_0_USE_MEDIA_1="#"
51857     if test "x$MONOLITHIC" = "x0" -a "x$USE_MEDIA" = "x1" ; then
51858         COND_MONOLITHIC_0_USE_MEDIA_1=""
51859     fi
51860
51861     COND_MONOLITHIC_0_USE_PROPGRID_1="#"
51862     if test "x$MONOLITHIC" = "x0" -a "x$USE_PROPGRID" = "x1" ; then
51863         COND_MONOLITHIC_0_USE_PROPGRID_1=""
51864     fi
51865
51866     COND_MONOLITHIC_0_USE_QA_1="#"
51867     if test "x$MONOLITHIC" = "x0" -a "x$USE_QA" = "x1" ; then
51868         COND_MONOLITHIC_0_USE_QA_1=""
51869     fi
51870
51871     COND_MONOLITHIC_0_USE_RIBBON_1="#"
51872     if test "x$MONOLITHIC" = "x0" -a "x$USE_RIBBON" = "x1" ; then
51873         COND_MONOLITHIC_0_USE_RIBBON_1=""
51874     fi
51875
51876     COND_MONOLITHIC_0_USE_RICHTEXT_1="#"
51877     if test "x$MONOLITHIC" = "x0" -a "x$USE_RICHTEXT" = "x1" ; then
51878         COND_MONOLITHIC_0_USE_RICHTEXT_1=""
51879     fi
51880
51881     COND_MONOLITHIC_0_USE_STC_1="#"
51882     if test "x$MONOLITHIC" = "x0" -a "x$USE_STC" = "x1" ; then
51883         COND_MONOLITHIC_0_USE_STC_1=""
51884     fi
51885
51886     COND_MONOLITHIC_0_USE_XRC_1="#"
51887     if test "x$MONOLITHIC" = "x0" -a "x$USE_XRC" = "x1" ; then
51888         COND_MONOLITHIC_0_USE_XRC_1=""
51889     fi
51890
51891     COND_MONOLITHIC_1="#"
51892     if test "x$MONOLITHIC" = "x1" ; then
51893         COND_MONOLITHIC_1=""
51894     fi
51895
51896     COND_MONOLITHIC_1_SHARED_0="#"
51897     if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x0" ; then
51898         COND_MONOLITHIC_1_SHARED_0=""
51899     fi
51900
51901     COND_MONOLITHIC_1_SHARED_1="#"
51902     if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x1" ; then
51903         COND_MONOLITHIC_1_SHARED_1=""
51904     fi
51905
51906     COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="#"
51907     if test "x$OFFICIAL_BUILD" = "x0" -a "x$PLATFORM_WIN32" = "x1" ; then
51908         COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1=""
51909     fi
51910
51911     COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="#"
51912     if test "x$OFFICIAL_BUILD" = "x1" -a "x$PLATFORM_WIN32" = "x1" ; then
51913         COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1=""
51914     fi
51915
51916     COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1="#"
51917     if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERCYGWIN" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
51918         COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1=""
51919     fi
51920
51921     COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="#"
51922     if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
51923         COND_PLATFORM_MACOSX_0_USE_SOVERSION_1=""
51924     fi
51925
51926     COND_PLATFORM_MACOSX_1="#"
51927     if test "x$PLATFORM_MACOSX" = "x1" ; then
51928         COND_PLATFORM_MACOSX_1=""
51929     fi
51930
51931     COND_PLATFORM_MACOSX_1_PLATFORM_MSDOS_0="#"
51932     if test "x$PLATFORM_MACOSX" = "x1" -a "x$PLATFORM_MSDOS" = "x0" ; then
51933         COND_PLATFORM_MACOSX_1_PLATFORM_MSDOS_0=""
51934     fi
51935
51936     COND_PLATFORM_MACOSX_1_PLATFORM_WIN32_1_SHARED_0="#"
51937     if test "x$PLATFORM_MACOSX" = "x1" -a "x$PLATFORM_WIN32" = "x1" -a "x$SHARED" = "x0" ; then
51938         COND_PLATFORM_MACOSX_1_PLATFORM_WIN32_1_SHARED_0=""
51939     fi
51940
51941     COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_CARBON_USE_GUI_1="#"
51942     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xOSX_CARBON" -a "x$USE_GUI" = "x1" ; then
51943         COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_CARBON_USE_GUI_1=""
51944     fi
51945
51946     COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_CARBON_USE_GUI_1_WXUNIV_0="#"
51947     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xOSX_CARBON" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
51948         COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_CARBON_USE_GUI_1_WXUNIV_0=""
51949     fi
51950
51951     COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_COCOA_USE_GUI_1="#"
51952     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xOSX_COCOA" -a "x$USE_GUI" = "x1" ; then
51953         COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_COCOA_USE_GUI_1=""
51954     fi
51955
51956     COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_COCOA_USE_GUI_1_WXUNIV_0="#"
51957     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xOSX_COCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
51958         COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_COCOA_USE_GUI_1_WXUNIV_0=""
51959     fi
51960
51961     COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_IPHONE_USE_GUI_1="#"
51962     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xOSX_IPHONE" -a "x$USE_GUI" = "x1" ; then
51963         COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_IPHONE_USE_GUI_1=""
51964     fi
51965
51966     COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_IPHONE_USE_GUI_1_WXUNIV_0="#"
51967     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xOSX_IPHONE" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
51968         COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_IPHONE_USE_GUI_1_WXUNIV_0=""
51969     fi
51970
51971     COND_PLATFORM_MACOSX_1_USE_GUI_1="#"
51972     if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_GUI" = "x1" ; then
51973         COND_PLATFORM_MACOSX_1_USE_GUI_1=""
51974     fi
51975
51976     COND_PLATFORM_MACOSX_1_USE_OPENGL_1="#"
51977     if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_OPENGL" = "x1" ; then
51978         COND_PLATFORM_MACOSX_1_USE_OPENGL_1=""
51979     fi
51980
51981     COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="#"
51982     if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
51983         COND_PLATFORM_MACOSX_1_USE_SOVERSION_1=""
51984     fi
51985
51986     COND_PLATFORM_MACOS_1="#"
51987     if test "x$PLATFORM_MACOS" = "x1" ; then
51988         COND_PLATFORM_MACOS_1=""
51989     fi
51990
51991     COND_PLATFORM_MAC_0="#"
51992     if test "x$PLATFORM_MAC" = "x0" ; then
51993         COND_PLATFORM_MAC_0=""
51994     fi
51995
51996     COND_PLATFORM_MAC_1="#"
51997     if test "x$PLATFORM_MAC" = "x1" ; then
51998         COND_PLATFORM_MAC_1=""
51999     fi
52000
52001     COND_PLATFORM_MSDOS_0="#"
52002     if test "x$PLATFORM_MSDOS" = "x0" ; then
52003         COND_PLATFORM_MSDOS_0=""
52004     fi
52005
52006     COND_PLATFORM_MSDOS_1="#"
52007     if test "x$PLATFORM_MSDOS" = "x1" ; then
52008         COND_PLATFORM_MSDOS_1=""
52009     fi
52010
52011     COND_PLATFORM_OS2_1="#"
52012     if test "x$PLATFORM_OS2" = "x1" ; then
52013         COND_PLATFORM_OS2_1=""
52014     fi
52015
52016     COND_PLATFORM_UNIX_0="#"
52017     if test "x$PLATFORM_UNIX" = "x0" ; then
52018         COND_PLATFORM_UNIX_0=""
52019     fi
52020
52021     COND_PLATFORM_UNIX_1="#"
52022     if test "x$PLATFORM_UNIX" = "x1" ; then
52023         COND_PLATFORM_UNIX_1=""
52024     fi
52025
52026     COND_PLATFORM_UNIX_1_TOOLKIT_MGL="#"
52027     if test "x$PLATFORM_UNIX" = "x1" -a "x$TOOLKIT" = "xMGL" ; then
52028         COND_PLATFORM_UNIX_1_TOOLKIT_MGL=""
52029     fi
52030
52031     COND_PLATFORM_UNIX_1_TOOLKIT_MGL_USE_GUI_1="#"
52032     if test "x$PLATFORM_UNIX" = "x1" -a "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then
52033         COND_PLATFORM_UNIX_1_TOOLKIT_MGL_USE_GUI_1=""
52034     fi
52035
52036     COND_PLATFORM_UNIX_1_USE_GUI_1="#"
52037     if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_GUI" = "x1" ; then
52038         COND_PLATFORM_UNIX_1_USE_GUI_1=""
52039     fi
52040
52041     COND_PLATFORM_UNIX_1_USE_PLUGINS_0="#"
52042     if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_PLUGINS" = "x0" ; then
52043         COND_PLATFORM_UNIX_1_USE_PLUGINS_0=""
52044     fi
52045
52046     COND_PLATFORM_WIN32_0="#"
52047     if test "x$PLATFORM_WIN32" = "x0" ; then
52048         COND_PLATFORM_WIN32_0=""
52049     fi
52050
52051     COND_PLATFORM_WIN32_1="#"
52052     if test "x$PLATFORM_WIN32" = "x1" ; then
52053         COND_PLATFORM_WIN32_1=""
52054     fi
52055
52056     COND_PLATFORM_WIN32_1_SHARED_0="#"
52057     if test "x$PLATFORM_WIN32" = "x1" -a "x$SHARED" = "x0" ; then
52058         COND_PLATFORM_WIN32_1_SHARED_0=""
52059     fi
52060
52061     COND_SHARED_0="#"
52062     if test "x$SHARED" = "x0" ; then
52063         COND_SHARED_0=""
52064     fi
52065
52066     COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0="#"
52067     if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMAC" -a "x$WXUNIV" = "x0" ; then
52068         COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0=""
52069     fi
52070
52071     COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0="#"
52072     if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then
52073         COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0=""
52074     fi
52075
52076     COND_SHARED_0_TOOLKIT_PM_WXUNIV_0="#"
52077     if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xPM" -a "x$WXUNIV" = "x0" ; then
52078         COND_SHARED_0_TOOLKIT_PM_WXUNIV_0=""
52079     fi
52080
52081     COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="#"
52082     if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
52083         COND_SHARED_0_USE_GUI_1_USE_OPENGL_1=""
52084     fi
52085
52086     COND_SHARED_0_USE_GUI_1_wxUSE_LIBJPEG_builtin="#"
52087     if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
52088         COND_SHARED_0_USE_GUI_1_wxUSE_LIBJPEG_builtin=""
52089     fi
52090
52091     COND_SHARED_0_USE_GUI_1_wxUSE_LIBPNG_builtin="#"
52092     if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
52093         COND_SHARED_0_USE_GUI_1_wxUSE_LIBPNG_builtin=""
52094     fi
52095
52096     COND_SHARED_0_USE_GUI_1_wxUSE_LIBTIFF_builtin="#"
52097     if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
52098         COND_SHARED_0_USE_GUI_1_wxUSE_LIBTIFF_builtin=""
52099     fi
52100
52101     COND_SHARED_0_USE_STC_1="#"
52102     if test "x$SHARED" = "x0" -a "x$USE_STC" = "x1" ; then
52103         COND_SHARED_0_USE_STC_1=""
52104     fi
52105
52106     COND_SHARED_0_wxUSE_EXPAT_builtin="#"
52107     if test "x$SHARED" = "x0" -a "x$wxUSE_EXPAT" = "xbuiltin" ; then
52108         COND_SHARED_0_wxUSE_EXPAT_builtin=""
52109     fi
52110
52111     COND_SHARED_0_wxUSE_REGEX_builtin="#"
52112     if test "x$SHARED" = "x0" -a "x$wxUSE_REGEX" = "xbuiltin" ; then
52113         COND_SHARED_0_wxUSE_REGEX_builtin=""
52114     fi
52115
52116     COND_SHARED_0_wxUSE_ZLIB_builtin="#"
52117     if test "x$SHARED" = "x0" -a "x$wxUSE_ZLIB" = "xbuiltin" ; then
52118         COND_SHARED_0_wxUSE_ZLIB_builtin=""
52119     fi
52120
52121     COND_SHARED_1="#"
52122     if test "x$SHARED" = "x1" ; then
52123         COND_SHARED_1=""
52124     fi
52125
52126     COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="#"
52127     if test "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
52128         COND_SHARED_1_USE_GUI_1_USE_OPENGL_1=""
52129     fi
52130
52131     COND_TOOLKIT_="#"
52132     if test "x$TOOLKIT" = "x" ; then
52133         COND_TOOLKIT_=""
52134     fi
52135
52136     COND_TOOLKIT_COCOA="#"
52137     if test "x$TOOLKIT" = "xCOCOA" ; then
52138         COND_TOOLKIT_COCOA=""
52139     fi
52140
52141     COND_TOOLKIT_COCOA_USE_GUI_1="#"
52142     if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" ; then
52143         COND_TOOLKIT_COCOA_USE_GUI_1=""
52144     fi
52145
52146     COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="#"
52147     if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
52148         COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0=""
52149     fi
52150
52151     COND_TOOLKIT_DFB="#"
52152     if test "x$TOOLKIT" = "xDFB" ; then
52153         COND_TOOLKIT_DFB=""
52154     fi
52155
52156     COND_TOOLKIT_DFB_USE_GUI_1="#"
52157     if test "x$TOOLKIT" = "xDFB" -a "x$USE_GUI" = "x1" ; then
52158         COND_TOOLKIT_DFB_USE_GUI_1=""
52159     fi
52160
52161     COND_TOOLKIT_GTK="#"
52162     if test "x$TOOLKIT" = "xGTK" ; then
52163         COND_TOOLKIT_GTK=""
52164     fi
52165
52166     COND_TOOLKIT_GTK_TOOLKIT_VERSION_="#"
52167     if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x" ; then
52168         COND_TOOLKIT_GTK_TOOLKIT_VERSION_=""
52169     fi
52170
52171     COND_TOOLKIT_GTK_TOOLKIT_VERSION_2="#"
52172     if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x2" ; then
52173         COND_TOOLKIT_GTK_TOOLKIT_VERSION_2=""
52174     fi
52175
52176     COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1="#"
52177     if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x2" -a "x$USE_GUI" = "x1" ; then
52178         COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1=""
52179     fi
52180
52181     COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0="#"
52182     if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x2" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
52183         COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0=""
52184     fi
52185
52186     COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1="#"
52187     if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x" -a "x$USE_GUI" = "x1" ; then
52188         COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1=""
52189     fi
52190
52191     COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0="#"
52192     if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
52193         COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0=""
52194     fi
52195
52196     COND_TOOLKIT_GTK_USE_GUI_1="#"
52197     if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" ; then
52198         COND_TOOLKIT_GTK_USE_GUI_1=""
52199     fi
52200
52201     COND_TOOLKIT_MAC="#"
52202     if test "x$TOOLKIT" = "xMAC" ; then
52203         COND_TOOLKIT_MAC=""
52204     fi
52205
52206     COND_TOOLKIT_MGL="#"
52207     if test "x$TOOLKIT" = "xMGL" ; then
52208         COND_TOOLKIT_MGL=""
52209     fi
52210
52211     COND_TOOLKIT_MGL_USE_GUI_1="#"
52212     if test "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then
52213         COND_TOOLKIT_MGL_USE_GUI_1=""
52214     fi
52215
52216     COND_TOOLKIT_MOTIF="#"
52217     if test "x$TOOLKIT" = "xMOTIF" ; then
52218         COND_TOOLKIT_MOTIF=""
52219     fi
52220
52221     COND_TOOLKIT_MOTIF_USE_GUI_1="#"
52222     if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" ; then
52223         COND_TOOLKIT_MOTIF_USE_GUI_1=""
52224     fi
52225
52226     COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="#"
52227     if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
52228         COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0=""
52229     fi
52230
52231     COND_TOOLKIT_MSW="#"
52232     if test "x$TOOLKIT" = "xMSW" ; then
52233         COND_TOOLKIT_MSW=""
52234     fi
52235
52236     COND_TOOLKIT_MSW_USE_GUI_1="#"
52237     if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" ; then
52238         COND_TOOLKIT_MSW_USE_GUI_1=""
52239     fi
52240
52241     COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="#"
52242     if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
52243         COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0=""
52244     fi
52245
52246     COND_TOOLKIT_MSW_WXUNIV_0="#"
52247     if test "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then
52248         COND_TOOLKIT_MSW_WXUNIV_0=""
52249     fi
52250
52251     COND_TOOLKIT_OSX_CARBON="#"
52252     if test "x$TOOLKIT" = "xOSX_CARBON" ; then
52253         COND_TOOLKIT_OSX_CARBON=""
52254     fi
52255
52256     COND_TOOLKIT_OSX_CARBON_USE_GUI_1="#"
52257     if test "x$TOOLKIT" = "xOSX_CARBON" -a "x$USE_GUI" = "x1" ; then
52258         COND_TOOLKIT_OSX_CARBON_USE_GUI_1=""
52259     fi
52260
52261     COND_TOOLKIT_OSX_COCOA="#"
52262     if test "x$TOOLKIT" = "xOSX_COCOA" ; then
52263         COND_TOOLKIT_OSX_COCOA=""
52264     fi
52265
52266     COND_TOOLKIT_OSX_COCOA_USE_GUI_1="#"
52267     if test "x$TOOLKIT" = "xOSX_COCOA" -a "x$USE_GUI" = "x1" ; then
52268         COND_TOOLKIT_OSX_COCOA_USE_GUI_1=""
52269     fi
52270
52271     COND_TOOLKIT_OSX_IPHONE="#"
52272     if test "x$TOOLKIT" = "xOSX_IPHONE" ; then
52273         COND_TOOLKIT_OSX_IPHONE=""
52274     fi
52275
52276     COND_TOOLKIT_OSX_IPHONE_USE_GUI_1="#"
52277     if test "x$TOOLKIT" = "xOSX_IPHONE" -a "x$USE_GUI" = "x1" ; then
52278         COND_TOOLKIT_OSX_IPHONE_USE_GUI_1=""
52279     fi
52280
52281     COND_TOOLKIT_OSX_IPHONE_USE_GUI_1_WXUNIV_0="#"
52282     if test "x$TOOLKIT" = "xOSX_IPHONE" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
52283         COND_TOOLKIT_OSX_IPHONE_USE_GUI_1_WXUNIV_0=""
52284     fi
52285
52286     COND_TOOLKIT_PM="#"
52287     if test "x$TOOLKIT" = "xPM" ; then
52288         COND_TOOLKIT_PM=""
52289     fi
52290
52291     COND_TOOLKIT_PM_USE_GUI_1="#"
52292     if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" ; then
52293         COND_TOOLKIT_PM_USE_GUI_1=""
52294     fi
52295
52296     COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="#"
52297     if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
52298         COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0=""
52299     fi
52300
52301     COND_TOOLKIT_WINCE="#"
52302     if test "x$TOOLKIT" = "xWINCE" ; then
52303         COND_TOOLKIT_WINCE=""
52304     fi
52305
52306     COND_TOOLKIT_WINCE_USE_GUI_1="#"
52307     if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" ; then
52308         COND_TOOLKIT_WINCE_USE_GUI_1=""
52309     fi
52310
52311     COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0="#"
52312     if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
52313         COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0=""
52314     fi
52315
52316     COND_TOOLKIT_WINCE_WXUNIV_0="#"
52317     if test "x$TOOLKIT" = "xWINCE" -a "x$WXUNIV" = "x0" ; then
52318         COND_TOOLKIT_WINCE_WXUNIV_0=""
52319     fi
52320
52321     COND_TOOLKIT_X11="#"
52322     if test "x$TOOLKIT" = "xX11" ; then
52323         COND_TOOLKIT_X11=""
52324     fi
52325
52326     COND_TOOLKIT_X11_USE_GUI_1="#"
52327     if test "x$TOOLKIT" = "xX11" -a "x$USE_GUI" = "x1" ; then
52328         COND_TOOLKIT_X11_USE_GUI_1=""
52329     fi
52330
52331     COND_UNICODE_1="#"
52332     if test "x$UNICODE" = "x1" ; then
52333         COND_UNICODE_1=""
52334     fi
52335
52336     COND_USE_CAIRO_1="#"
52337     if test "x$USE_CAIRO" = "x1" ; then
52338         COND_USE_CAIRO_1=""
52339     fi
52340
52341     COND_USE_EXCEPTIONS_0="#"
52342     if test "x$USE_EXCEPTIONS" = "x0" ; then
52343         COND_USE_EXCEPTIONS_0=""
52344     fi
52345
52346     COND_USE_EXCEPTIONS_1="#"
52347     if test "x$USE_EXCEPTIONS" = "x1" ; then
52348         COND_USE_EXCEPTIONS_1=""
52349     fi
52350
52351     COND_USE_GUI_0="#"
52352     if test "x$USE_GUI" = "x0" ; then
52353         COND_USE_GUI_0=""
52354     fi
52355
52356     COND_USE_GUI_1="#"
52357     if test "x$USE_GUI" = "x1" ; then
52358         COND_USE_GUI_1=""
52359     fi
52360
52361     COND_USE_GUI_1_USE_OPENGL_1="#"
52362     if test "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
52363         COND_USE_GUI_1_USE_OPENGL_1=""
52364     fi
52365
52366     COND_USE_GUI_1_WXUNIV_0="#"
52367     if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
52368         COND_USE_GUI_1_WXUNIV_0=""
52369     fi
52370
52371     COND_USE_GUI_1_WXUNIV_1="#"
52372     if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then
52373         COND_USE_GUI_1_WXUNIV_1=""
52374     fi
52375
52376     COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
52377     if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
52378         COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
52379     fi
52380
52381     COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
52382     if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
52383         COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
52384     fi
52385
52386     COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
52387     if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
52388         COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
52389     fi
52390
52391     COND_USE_GUI_1_wxUSE_LIBJPEG_builtin="#"
52392     if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
52393         COND_USE_GUI_1_wxUSE_LIBJPEG_builtin=""
52394     fi
52395
52396     COND_USE_GUI_1_wxUSE_LIBPNG_builtin="#"
52397     if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
52398         COND_USE_GUI_1_wxUSE_LIBPNG_builtin=""
52399     fi
52400
52401     COND_USE_GUI_1_wxUSE_LIBTIFF_builtin="#"
52402     if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
52403         COND_USE_GUI_1_wxUSE_LIBTIFF_builtin=""
52404     fi
52405
52406     COND_USE_OPENGL_1="#"
52407     if test "x$USE_OPENGL" = "x1" ; then
52408         COND_USE_OPENGL_1=""
52409     fi
52410
52411     COND_USE_PCH_1="#"
52412     if test "x$USE_PCH" = "x1" ; then
52413         COND_USE_PCH_1=""
52414     fi
52415
52416     COND_USE_PLUGINS_0="#"
52417     if test "x$USE_PLUGINS" = "x0" ; then
52418         COND_USE_PLUGINS_0=""
52419     fi
52420
52421     COND_USE_RTTI_0="#"
52422     if test "x$USE_RTTI" = "x0" ; then
52423         COND_USE_RTTI_0=""
52424     fi
52425
52426     COND_USE_RTTI_1="#"
52427     if test "x$USE_RTTI" = "x1" ; then
52428         COND_USE_RTTI_1=""
52429     fi
52430
52431     COND_USE_SOTWOSYMLINKS_1="#"
52432     if test "x$USE_SOTWOSYMLINKS" = "x1" ; then
52433         COND_USE_SOTWOSYMLINKS_1=""
52434     fi
52435
52436     COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1="#"
52437     if test "x$USE_SOVERCYGWIN" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
52438         COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1=""
52439     fi
52440
52441     COND_USE_SOVERLINUX_1="#"
52442     if test "x$USE_SOVERLINUX" = "x1" ; then
52443         COND_USE_SOVERLINUX_1=""
52444     fi
52445
52446     COND_USE_SOVERSION_0="#"
52447     if test "x$USE_SOVERSION" = "x0" ; then
52448         COND_USE_SOVERSION_0=""
52449     fi
52450
52451     COND_USE_SOVERSION_1_USE_SOVERSOLARIS_1="#"
52452     if test "x$USE_SOVERSION" = "x1" -a "x$USE_SOVERSOLARIS" = "x1" ; then
52453         COND_USE_SOVERSION_1_USE_SOVERSOLARIS_1=""
52454     fi
52455
52456     COND_USE_SOVERSOLARIS_1="#"
52457     if test "x$USE_SOVERSOLARIS" = "x1" ; then
52458         COND_USE_SOVERSOLARIS_1=""
52459     fi
52460
52461     COND_USE_STC_1="#"
52462     if test "x$USE_STC" = "x1" ; then
52463         COND_USE_STC_1=""
52464     fi
52465
52466     COND_USE_THREADS_0="#"
52467     if test "x$USE_THREADS" = "x0" ; then
52468         COND_USE_THREADS_0=""
52469     fi
52470
52471     COND_USE_THREADS_1="#"
52472     if test "x$USE_THREADS" = "x1" ; then
52473         COND_USE_THREADS_1=""
52474     fi
52475
52476     COND_USE_XRC_1="#"
52477     if test "x$USE_XRC" = "x1" ; then
52478         COND_USE_XRC_1=""
52479     fi
52480
52481     COND_WINDOWS_IMPLIB_1="#"
52482     if test "x$WINDOWS_IMPLIB" = "x1" ; then
52483         COND_WINDOWS_IMPLIB_1=""
52484     fi
52485
52486     COND_WITH_PLUGIN_SDL_1="#"
52487     if test "x$WITH_PLUGIN_SDL" = "x1" ; then
52488         COND_WITH_PLUGIN_SDL_1=""
52489     fi
52490
52491     COND_WXUNIV_0="#"
52492     if test "x$WXUNIV" = "x0" ; then
52493         COND_WXUNIV_0=""
52494     fi
52495
52496     COND_WXUNIV_1="#"
52497     if test "x$WXUNIV" = "x1" ; then
52498         COND_WXUNIV_1=""
52499     fi
52500
52501     COND_WXUSE_EXPAT_BUILTIN="#"
52502     if test "x$wxUSE_EXPAT" = "xbuiltin" ; then
52503         COND_WXUSE_EXPAT_BUILTIN=""
52504     fi
52505
52506     COND_WXUSE_LIBJPEG_BUILTIN="#"
52507     if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
52508         COND_WXUSE_LIBJPEG_BUILTIN=""
52509     fi
52510
52511     COND_WXUSE_LIBPNG_BUILTIN="#"
52512     if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then
52513         COND_WXUSE_LIBPNG_BUILTIN=""
52514     fi
52515
52516     COND_WXUSE_LIBTIFF_BUILTIN="#"
52517     if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
52518         COND_WXUSE_LIBTIFF_BUILTIN=""
52519     fi
52520
52521     COND_WXUSE_REGEX_BUILTIN="#"
52522     if test "x$wxUSE_REGEX" = "xbuiltin" ; then
52523         COND_WXUSE_REGEX_BUILTIN=""
52524     fi
52525
52526     COND_WXUSE_ZLIB_BUILTIN="#"
52527     if test "x$wxUSE_ZLIB" = "xbuiltin" ; then
52528         COND_WXUSE_ZLIB_BUILTIN=""
52529     fi
52530
52531     COND_wxUSE_EXPAT_builtin="#"
52532     if test "x$wxUSE_EXPAT" = "xbuiltin" ; then
52533         COND_wxUSE_EXPAT_builtin=""
52534     fi
52535
52536     COND_wxUSE_LIBJPEG_builtin="#"
52537     if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
52538         COND_wxUSE_LIBJPEG_builtin=""
52539     fi
52540
52541     COND_wxUSE_LIBPNG_builtin="#"
52542     if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then
52543         COND_wxUSE_LIBPNG_builtin=""
52544     fi
52545
52546     COND_wxUSE_LIBTIFF_builtin="#"
52547     if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
52548         COND_wxUSE_LIBTIFF_builtin=""
52549     fi
52550
52551     COND_wxUSE_REGEX_builtin="#"
52552     if test "x$wxUSE_REGEX" = "xbuiltin" ; then
52553         COND_wxUSE_REGEX_builtin=""
52554     fi
52555
52556     COND_wxUSE_ZLIB_builtin="#"
52557     if test "x$wxUSE_ZLIB" = "xbuiltin" ; then
52558         COND_wxUSE_ZLIB_builtin=""
52559     fi
52560
52561
52562
52563     if test "$BAKEFILE_AUTOCONF_INC_M4_VERSION" = "" ; then
52564         { { 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
52565 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;}
52566    { (exit 1); exit 1; }; }
52567     fi
52568
52569     if test "$BAKEFILE_BAKEFILE_M4_VERSION" != "$BAKEFILE_AUTOCONF_INC_M4_VERSION" ; then
52570         { { 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
52571 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;}
52572    { (exit 1); exit 1; }; }
52573     fi
52574
52575
52576 case ${INSTALL} in
52577   /* ) # Absolute
52578      ;;
52579   ?:* ) # Drive letter, considered as absolute.
52580      ;;
52581   *)
52582      INSTALL=`pwd`/${INSTALL} ;;
52583 esac
52584
52585 if test "$wxUSE_GUI" = "yes"; then
52586
52587 if test "$wxUSE_MSW" = 1 ; then
52588     if test "x$WINDRES" = "x"; then
52589         { { echo "$as_me:$LINENO: error: Required windres program not found" >&5
52590 echo "$as_me: error: Required windres program not found" >&2;}
52591    { (exit 1); exit 1; }; }
52592     fi
52593
52594     RESCOMP="$WINDRES"
52595 fi
52596
52597 if test "$wxUSE_MAC" = 1 -o "$wxUSE_OLD_COCOA" = 1; then
52598             WX_RESOURCES_MACOSX_ASCII="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.r"
52599     WX_RESOURCES_MACOSX_DATA="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.rsrc"
52600
52601         LIBWXMACRES="\$(wx_top_builddir)/lib/${WX_RESOURCES_MACOSX_ASCII}"
52602
52603     # Extract the first word of "DeRez", so it can be a program name with args.
52604 set dummy DeRez; ac_word=$2
52605 { echo "$as_me:$LINENO: checking for $ac_word" >&5
52606 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
52607 if test "${ac_cv_prog_DEREZ+set}" = set; then
52608   echo $ECHO_N "(cached) $ECHO_C" >&6
52609 else
52610   if test -n "$DEREZ"; then
52611   ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
52612 else
52613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
52614 for as_dir in $PATH
52615 do
52616   IFS=$as_save_IFS
52617   test -z "$as_dir" && as_dir=.
52618   for ac_exec_ext in '' $ac_executable_extensions; do
52619   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
52620     ac_cv_prog_DEREZ="DeRez"
52621     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
52622     break 2
52623   fi
52624 done
52625 done
52626 IFS=$as_save_IFS
52627
52628   test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
52629 fi
52630 fi
52631 DEREZ=$ac_cv_prog_DEREZ
52632 if test -n "$DEREZ"; then
52633   { echo "$as_me:$LINENO: result: $DEREZ" >&5
52634 echo "${ECHO_T}$DEREZ" >&6; }
52635 else
52636   { echo "$as_me:$LINENO: result: no" >&5
52637 echo "${ECHO_T}no" >&6; }
52638 fi
52639
52640
52641
52642     MACSETFILE="\$(SETFILE)"
52643
52644             if test "$wxUSE_OSX_CARBON" = 1; then
52645         POSTLINK_COMMAND="\$(REZ) -d __DARWIN__ -t APPL Carbon.r -o"
52646         RESCOMP="$REZ"
52647         WXCONFIG_RESFLAGS="-d __DARWIN__ -t APPL Carbon.r -o"
52648     else
52649         POSTLINK_COMMAND="cat /dev/null | \$(REZ) -d __DARWIN__ -t APPL ${LIBWXMACRES}"
52650         RESCOMP="cat /dev/null \| $REZ"
52651         WXCONFIG_RESFLAGS="-d __DARWIN__ -t APPL \$libdir/$WX_RESOURCES_MACOSX_ASCII"
52652     fi
52653
52654 else
52655         MACSETFILE="@true"
52656
52657     if test "$wxUSE_PM" = 1; then
52658         RESCOMP="emxbind"
52659         WXCONFIG_RESFLAGS="-ep"
52660
52661                 POSTLINK_COMMAND="$RESCOMP $WXCONFIG_RESFLAGS"
52662     else
52663         POSTLINK_COMMAND="@true"
52664     fi
52665 fi
52666
52667 fi
52668
52669
52670 if test $GCC_PCH = 1
52671 then
52672     if test "$wx_cv_gcc_pch_bug" = yes; then
52673         { echo "$as_me:$LINENO: WARNING: *** Precompiled header support is broken on this compiler" >&5
52674 echo "$as_me: WARNING: *** Precompiled header support is broken on this compiler" >&2;}
52675         { echo "$as_me:$LINENO: WARNING: *** --enable-precomp-headers is not recommended" >&5
52676 echo "$as_me: WARNING: *** --enable-precomp-headers is not recommended" >&2;}
52677         { echo "$as_me:$LINENO: WARNING: *** see http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13361" >&5
52678 echo "$as_me: WARNING: *** see http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13361" >&2;}
52679     fi
52680
52681     # Our WX_PRECOMP flag does not make sense for any language except C++ because
52682     # the headers that benefit from precompilation are mostly C++ headers.
52683     CXXFLAGS="-DWX_PRECOMP $CXXFLAGS"
52684     # When Bakefile can do multi-language PCH (e.g. C++ and Objective-C++) enable this:
52685     #OBJCXXFLAGS="-DWX_PRECOMP $CXXFLAGS"
52686 fi
52687
52688
52689 if test "$wxUSE_MAC" = 1 ; then
52690     if test "x$wxUSE_UNIVERSAL_BINARY" != "xno" ; then
52691         sed "s/DEPSMODE=gcc/DEPSMODE=none/" < bk-deps > temp
52692         mv temp bk-deps
52693         chmod +x bk-deps
52694     fi
52695 fi
52696
52697 if test "$wxUSE_SHARED" = "yes"; then
52698                 case "${host}" in
52699       *-pc-os2_emx | *-pc-os2-emx )
52700         SHARED_LD_CC="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
52701         SHARED_LD_CXX="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
52702         cp -p ${srcdir}/src/os2/dllnames.sh .
52703         cp -p ${srcdir}/src/os2/dllar.sh .
52704       ;;
52705     esac
52706 fi
52707 if test "$wxUSE_OMF" = "yes"; then
52708     case "${host}" in
52709       *-pc-os2_emx | *-pc-os2-emx )
52710         LDFLAGS="$LDFLAGS -Zlinker /EXEPACK"
52711         LDFLAGS_GUI="-Zlinker /PMTYPE:PM"
52712         WXCONFIG_LDFLAGS_GUI="-Zlinker /PMTYPE:PM"
52713       ;;
52714     esac
52715 fi
52716
52717 WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS $TOOLCHAIN_DEFS"
52718
52719
52720 case "${host}" in
52721     *-*-solaris2* )
52722                         if test "$GCC" = yes; then
52723             CPPFLAGS=`echo $CPPFLAGS | sed 's/-mt//'`
52724             LIBS=`echo $LIBS | sed 's/-mt//'`
52725             EXTRALIBS_GUI=`echo $EXTRALIBS_GUI | sed 's/-mt//'`
52726         fi
52727         ;;
52728
52729     *-*-linux* )
52730                         if test "x$SUNCXX" = xyes; then
52731             CPPFLAGS=`echo $CPPFLAGS | sed 's/-pthread//'`
52732             LIBS=`echo $LIBS | sed 's/-pthread//'`
52733             EXTRALIBS_GUI=`echo $EXTRALIBS_GUI | sed 's/-pthread//'`
52734         fi
52735         ;;
52736 esac
52737
52738 CFLAGS="$CFLAGS $CFLAGS_VISIBILITY"
52739 CXXFLAGS="$CXXFLAGS $CXXFLAGS_VISIBILITY"
52740 OBJCFLAGS="$OBJCFLAGS $CFLAGS_VISIBILITY"
52741 OBJCXXFLAGS="$OBJCXXFLAGS $CXXFLAGS_VISIBILITY"
52742
52743 SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
52744
52745
52746
52747
52748
52749
52750
52751
52752
52753
52754
52755
52756
52757
52758
52759
52760
52761
52762
52763
52764
52765
52766
52767
52768
52769
52770
52771
52772
52773
52774
52775
52776
52777
52778
52779
52780
52781
52782
52783
52784
52785
52786
52787
52788
52789
52790
52791
52792
52793
52794
52795
52796
52797
52798
52799
52800
52801
52802
52803
52804 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
52805 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
52806 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
52807 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
52808   echo $ECHO_N "(cached) $ECHO_C" >&6
52809 else
52810   cat >conftest.make <<\_ACEOF
52811 SHELL = /bin/sh
52812 all:
52813         @echo '@@@%%%=$(MAKE)=@@@%%%'
52814 _ACEOF
52815 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
52816 case `${MAKE-make} -f conftest.make 2>/dev/null` in
52817   *@@@%%%=?*=@@@%%%*)
52818     eval ac_cv_prog_make_${ac_make}_set=yes;;
52819   *)
52820     eval ac_cv_prog_make_${ac_make}_set=no;;
52821 esac
52822 rm -f conftest.make
52823 fi
52824 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
52825   { echo "$as_me:$LINENO: result: yes" >&5
52826 echo "${ECHO_T}yes" >&6; }
52827   SET_MAKE=
52828 else
52829   { echo "$as_me:$LINENO: result: no" >&5
52830 echo "${ECHO_T}no" >&6; }
52831   SET_MAKE="MAKE=${MAKE-make}"
52832 fi
52833
52834
52835
52836 ac_config_headers="$ac_config_headers lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h:setup.h.in"
52837
52838
52839 if test "$USE_WIN32" = 1; then
52840     ac_config_commands="$ac_config_commands rcdefs.h"
52841
52842 fi
52843
52844 ac_config_files="$ac_config_files lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in"
52845
52846
52847 ac_config_files="$ac_config_files lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in"
52848
52849
52850 ac_config_files="$ac_config_files utils/ifacecheck/rungccxml.sh"
52851
52852
52853 if test "$wx_cv_version_script" = "yes"; then
52854     ac_config_files="$ac_config_files version-script"
52855
52856 fi
52857 ac_config_files="$ac_config_files Makefile"
52858
52859
52860 ac_config_commands="$ac_config_commands wx-config"
52861
52862
52863
52864 if test "$wxWITH_SUBDIRS" != "no"; then
52865 if test "$wxUSE_GUI" = "yes"; then
52866     SUBDIRS="samples demos utils"
52867 else
52868             SUBDIRS="samples utils"
52869 fi
52870
52871
52872
52873 # Check whether --with-cppunit-prefix was given.
52874 if test "${with_cppunit_prefix+set}" = set; then
52875   withval=$with_cppunit_prefix; cppunit_config_prefix="$withval"
52876 else
52877   cppunit_config_prefix=""
52878 fi
52879
52880
52881 # Check whether --with-cppunit-exec-prefix was given.
52882 if test "${with_cppunit_exec_prefix+set}" = set; then
52883   withval=$with_cppunit_exec_prefix; cppunit_config_exec_prefix="$withval"
52884 else
52885   cppunit_config_exec_prefix=""
52886 fi
52887
52888
52889   if test x$cppunit_config_exec_prefix != x ; then
52890      cppunit_config_args="$cppunit_config_args --exec-prefix=$cppunit_config_exec_prefix"
52891      if test x${CPPUNIT_CONFIG+set} != xset ; then
52892         CPPUNIT_CONFIG=$cppunit_config_exec_prefix/bin/cppunit-config
52893      fi
52894   fi
52895   if test x$cppunit_config_prefix != x ; then
52896      cppunit_config_args="$cppunit_config_args --prefix=$cppunit_config_prefix"
52897      if test x${CPPUNIT_CONFIG+set} != xset ; then
52898         CPPUNIT_CONFIG=$cppunit_config_prefix/bin/cppunit-config
52899      fi
52900   fi
52901
52902   # Extract the first word of "cppunit-config", so it can be a program name with args.
52903 set dummy cppunit-config; ac_word=$2
52904 { echo "$as_me:$LINENO: checking for $ac_word" >&5
52905 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
52906 if test "${ac_cv_path_CPPUNIT_CONFIG+set}" = set; then
52907   echo $ECHO_N "(cached) $ECHO_C" >&6
52908 else
52909   case $CPPUNIT_CONFIG in
52910   [\\/]* | ?:[\\/]*)
52911   ac_cv_path_CPPUNIT_CONFIG="$CPPUNIT_CONFIG" # Let the user override the test with a path.
52912   ;;
52913   *)
52914   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
52915 for as_dir in $PATH
52916 do
52917   IFS=$as_save_IFS
52918   test -z "$as_dir" && as_dir=.
52919   for ac_exec_ext in '' $ac_executable_extensions; do
52920   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
52921     ac_cv_path_CPPUNIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
52922     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
52923     break 2
52924   fi
52925 done
52926 done
52927 IFS=$as_save_IFS
52928
52929   test -z "$ac_cv_path_CPPUNIT_CONFIG" && ac_cv_path_CPPUNIT_CONFIG="no"
52930   ;;
52931 esac
52932 fi
52933 CPPUNIT_CONFIG=$ac_cv_path_CPPUNIT_CONFIG
52934 if test -n "$CPPUNIT_CONFIG"; then
52935   { echo "$as_me:$LINENO: result: $CPPUNIT_CONFIG" >&5
52936 echo "${ECHO_T}$CPPUNIT_CONFIG" >&6; }
52937 else
52938   { echo "$as_me:$LINENO: result: no" >&5
52939 echo "${ECHO_T}no" >&6; }
52940 fi
52941
52942
52943   cppunit_version_min=1.8.0
52944
52945   { echo "$as_me:$LINENO: checking for Cppunit - version >= $cppunit_version_min" >&5
52946 echo $ECHO_N "checking for Cppunit - version >= $cppunit_version_min... $ECHO_C" >&6; }
52947   no_cppunit=""
52948   if test "$CPPUNIT_CONFIG" = "no" ; then
52949     { echo "$as_me:$LINENO: result: no" >&5
52950 echo "${ECHO_T}no" >&6; }
52951     no_cppunit=yes
52952   else
52953     CPPUNIT_CFLAGS=`$CPPUNIT_CONFIG --cflags`
52954     CPPUNIT_LIBS=`$CPPUNIT_CONFIG --libs`
52955     cppunit_version=`$CPPUNIT_CONFIG --version`
52956
52957     cppunit_major_version=`echo $cppunit_version | \
52958            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
52959     cppunit_minor_version=`echo $cppunit_version | \
52960            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
52961     cppunit_micro_version=`echo $cppunit_version | \
52962            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
52963
52964     cppunit_major_min=`echo $cppunit_version_min | \
52965            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
52966     cppunit_minor_min=`echo $cppunit_version_min | \
52967            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
52968     cppunit_micro_min=`echo $cppunit_version_min | \
52969            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
52970
52971     cppunit_version_proper=`expr \
52972         $cppunit_major_version \> $cppunit_major_min \| \
52973         $cppunit_major_version \= $cppunit_major_min \& \
52974         $cppunit_minor_version \> $cppunit_minor_min \| \
52975         $cppunit_major_version \= $cppunit_major_min \& \
52976         $cppunit_minor_version \= $cppunit_minor_min \& \
52977         $cppunit_micro_version \>= $cppunit_micro_min `
52978
52979     if test "$cppunit_version_proper" = "1" ; then
52980       { echo "$as_me:$LINENO: result: $cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&5
52981 echo "${ECHO_T}$cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&6; }
52982     else
52983       { echo "$as_me:$LINENO: result: no" >&5
52984 echo "${ECHO_T}no" >&6; }
52985       no_cppunit=yes
52986     fi
52987   fi
52988
52989   if test "x$no_cppunit" = x ; then
52990      SUBDIRS="$SUBDIRS tests"
52991   else
52992      CPPUNIT_CFLAGS=""
52993      CPPUNIT_LIBS=""
52994      :
52995   fi
52996
52997
52998
52999
53000
53001 for subdir in $SUBDIRS; do
53002     if test -d ${srcdir}/${subdir} ; then
53003         if test "$wxUSE_GUI" = "yes"; then
53004             if test ${subdir} = "samples"; then
53005                                                 makefiles="samples/Makefile.in $makefiles"
53006                 for sample in $SAMPLES_SUBDIRS; do
53007                     if test -d $srcdir/samples/$sample; then
53008                         makefiles="samples/$sample/Makefile.in $makefiles"
53009                     fi
53010                 done
53011             else
53012                                                                 disabled_var=DISABLED_`echo $subdir | tr '[a-z]' '[A-Z]'`
53013                 eval "disabled=\$$disabled_var"
53014                 disabled=/`echo X $disabled | sed 's@ @/|/@g'`/
53015                 makefiles=`(cd $srcdir ; find $subdir -name Makefile.in) | $EGREP -v "$disabled"`
53016             fi
53017         else
53018                                     if test ${subdir} = "samples"; then
53019                                                 makefiles="samples/Makefile.in $makefiles"
53020                 for sample in `echo $SAMPLES_SUBDIRS`; do
53021                     if test -d $srcdir/samples/$sample; then
53022                         makefiles="samples/$sample/Makefile.in $makefiles"
53023                     fi
53024                 done
53025             elif test ${subdir} = "utils"; then
53026                 makefiles=""
53027                 for util in ifacecheck ; do
53028                     if test -d $srcdir/utils/$util ; then
53029                         makefiles="utils/$util/src/Makefile.in \
53030                                    $makefiles"
53031                     fi
53032                 done
53033             else
53034                                 makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)`
53035             fi
53036         fi
53037
53038         for mkin in $makefiles ; do
53039             mk=`echo $mkin | sed 's/Makefile\.in/Makefile/g'`
53040             ac_config_files="$ac_config_files $mk"
53041
53042         done
53043     fi
53044 done
53045 fi
53046 cat >confcache <<\_ACEOF
53047 # This file is a shell script that caches the results of configure
53048 # tests run on this system so they can be shared between configure
53049 # scripts and configure runs, see configure's option --config-cache.
53050 # It is not useful on other systems.  If it contains results you don't
53051 # want to keep, you may remove or edit it.
53052 #
53053 # config.status only pays attention to the cache file if you give it
53054 # the --recheck option to rerun configure.
53055 #
53056 # `ac_cv_env_foo' variables (set or unset) will be overridden when
53057 # loading this file, other *unset* `ac_cv_foo' will be assigned the
53058 # following values.
53059
53060 _ACEOF
53061
53062 # The following way of writing the cache mishandles newlines in values,
53063 # but we know of no workaround that is simple, portable, and efficient.
53064 # So, we kill variables containing newlines.
53065 # Ultrix sh set writes to stderr and can't be redirected directly,
53066 # and sets the high bit in the cache file unless we assign to the vars.
53067 (
53068   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
53069     eval ac_val=\$$ac_var
53070     case $ac_val in #(
53071     *${as_nl}*)
53072       case $ac_var in #(
53073       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
53074 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
53075       esac
53076       case $ac_var in #(
53077       _ | IFS | as_nl) ;; #(
53078       *) $as_unset $ac_var ;;
53079       esac ;;
53080     esac
53081   done
53082
53083   (set) 2>&1 |
53084     case $as_nl`(ac_space=' '; set) 2>&1` in #(
53085     *${as_nl}ac_space=\ *)
53086       # `set' does not quote correctly, so add quotes (double-quote
53087       # substitution turns \\\\ into \\, and sed turns \\ into \).
53088       sed -n \
53089         "s/'/'\\\\''/g;
53090           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
53091       ;; #(
53092     *)
53093       # `set' quotes correctly as required by POSIX, so do not add quotes.
53094       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
53095       ;;
53096     esac |
53097     sort
53098 ) |
53099   sed '
53100      /^ac_cv_env_/b end
53101      t clear
53102      :clear
53103      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
53104      t end
53105      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
53106      :end' >>confcache
53107 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
53108   if test -w "$cache_file"; then
53109     test "x$cache_file" != "x/dev/null" &&
53110       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
53111 echo "$as_me: updating cache $cache_file" >&6;}
53112     cat confcache >$cache_file
53113   else
53114     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
53115 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
53116   fi
53117 fi
53118 rm -f confcache
53119
53120 test "x$prefix" = xNONE && prefix=$ac_default_prefix
53121 # Let make expand exec_prefix.
53122 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
53123
53124 DEFS=-DHAVE_CONFIG_H
53125
53126 ac_libobjs=
53127 ac_ltlibobjs=
53128 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
53129   # 1. Remove the extension, and $U if already installed.
53130   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
53131   ac_i=`echo "$ac_i" | sed "$ac_script"`
53132   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
53133   #    will be set to the directory where LIBOBJS objects are built.
53134   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
53135   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
53136 done
53137 LIBOBJS=$ac_libobjs
53138
53139 LTLIBOBJS=$ac_ltlibobjs
53140
53141
53142
53143 : ${CONFIG_STATUS=./config.status}
53144 ac_clean_files_save=$ac_clean_files
53145 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
53146 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
53147 echo "$as_me: creating $CONFIG_STATUS" >&6;}
53148 cat >$CONFIG_STATUS <<_ACEOF
53149 #! $SHELL
53150 # Generated by $as_me.
53151 # Run this file to recreate the current configuration.
53152 # Compiler output produced by configure, useful for debugging
53153 # configure, is in config.log if it exists.
53154
53155 debug=false
53156 ac_cs_recheck=false
53157 ac_cs_silent=false
53158 SHELL=\${CONFIG_SHELL-$SHELL}
53159 _ACEOF
53160
53161 cat >>$CONFIG_STATUS <<\_ACEOF
53162 ## --------------------- ##
53163 ## M4sh Initialization.  ##
53164 ## --------------------- ##
53165
53166 # Be more Bourne compatible
53167 DUALCASE=1; export DUALCASE # for MKS sh
53168 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
53169   emulate sh
53170   NULLCMD=:
53171   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
53172   # is contrary to our usage.  Disable this feature.
53173   alias -g '${1+"$@"}'='"$@"'
53174   setopt NO_GLOB_SUBST
53175 else
53176   case `(set -o) 2>/dev/null` in
53177   *posix*) set -o posix ;;
53178 esac
53179
53180 fi
53181
53182
53183
53184
53185 # PATH needs CR
53186 # Avoid depending upon Character Ranges.
53187 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
53188 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
53189 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
53190 as_cr_digits='0123456789'
53191 as_cr_alnum=$as_cr_Letters$as_cr_digits
53192
53193 # The user is always right.
53194 if test "${PATH_SEPARATOR+set}" != set; then
53195   echo "#! /bin/sh" >conf$$.sh
53196   echo  "exit 0"   >>conf$$.sh
53197   chmod +x conf$$.sh
53198   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
53199     PATH_SEPARATOR=';'
53200   else
53201     PATH_SEPARATOR=:
53202   fi
53203   rm -f conf$$.sh
53204 fi
53205
53206 # Support unset when possible.
53207 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
53208   as_unset=unset
53209 else
53210   as_unset=false
53211 fi
53212
53213
53214 # IFS
53215 # We need space, tab and new line, in precisely that order.  Quoting is
53216 # there to prevent editors from complaining about space-tab.
53217 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
53218 # splitting by setting IFS to empty value.)
53219 as_nl='
53220 '
53221 IFS=" ""        $as_nl"
53222
53223 # Find who we are.  Look in the path if we contain no directory separator.
53224 case $0 in
53225   *[\\/]* ) as_myself=$0 ;;
53226   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
53227 for as_dir in $PATH
53228 do
53229   IFS=$as_save_IFS
53230   test -z "$as_dir" && as_dir=.
53231   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
53232 done
53233 IFS=$as_save_IFS
53234
53235      ;;
53236 esac
53237 # We did not find ourselves, most probably we were run as `sh COMMAND'
53238 # in which case we are not to be found in the path.
53239 if test "x$as_myself" = x; then
53240   as_myself=$0
53241 fi
53242 if test ! -f "$as_myself"; then
53243   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
53244   { (exit 1); exit 1; }
53245 fi
53246
53247 # Work around bugs in pre-3.0 UWIN ksh.
53248 for as_var in ENV MAIL MAILPATH
53249 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
53250 done
53251 PS1='$ '
53252 PS2='> '
53253 PS4='+ '
53254
53255 # NLS nuisances.
53256 for as_var in \
53257   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
53258   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
53259   LC_TELEPHONE LC_TIME
53260 do
53261   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
53262     eval $as_var=C; export $as_var
53263   else
53264     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
53265   fi
53266 done
53267
53268 # Required to use basename.
53269 if expr a : '\(a\)' >/dev/null 2>&1 &&
53270    test "X`expr 00001 : '.*\(...\)'`" = X001; then
53271   as_expr=expr
53272 else
53273   as_expr=false
53274 fi
53275
53276 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
53277   as_basename=basename
53278 else
53279   as_basename=false
53280 fi
53281
53282
53283 # Name of the executable.
53284 as_me=`$as_basename -- "$0" ||
53285 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
53286          X"$0" : 'X\(//\)$' \| \
53287          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
53288 echo X/"$0" |
53289     sed '/^.*\/\([^/][^/]*\)\/*$/{
53290             s//\1/
53291             q
53292           }
53293           /^X\/\(\/\/\)$/{
53294             s//\1/
53295             q
53296           }
53297           /^X\/\(\/\).*/{
53298             s//\1/
53299             q
53300           }
53301           s/.*/./; q'`
53302
53303 # CDPATH.
53304 $as_unset CDPATH
53305
53306
53307
53308   as_lineno_1=$LINENO
53309   as_lineno_2=$LINENO
53310   test "x$as_lineno_1" != "x$as_lineno_2" &&
53311   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
53312
53313   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
53314   # uniformly replaced by the line number.  The first 'sed' inserts a
53315   # line-number line after each line using $LINENO; the second 'sed'
53316   # does the real work.  The second script uses 'N' to pair each
53317   # line-number line with the line containing $LINENO, and appends
53318   # trailing '-' during substitution so that $LINENO is not a special
53319   # case at line end.
53320   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
53321   # scripts with optimization help from Paolo Bonzini.  Blame Lee
53322   # E. McMahon (1931-1989) for sed's syntax.  :-)
53323   sed -n '
53324     p
53325     /[$]LINENO/=
53326   ' <$as_myself |
53327     sed '
53328       s/[$]LINENO.*/&-/
53329       t lineno
53330       b
53331       :lineno
53332       N
53333       :loop
53334       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
53335       t loop
53336       s/-\n.*//
53337     ' >$as_me.lineno &&
53338   chmod +x "$as_me.lineno" ||
53339     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
53340    { (exit 1); exit 1; }; }
53341
53342   # Don't try to exec as it changes $[0], causing all sort of problems
53343   # (the dirname of $[0] is not the place where we might find the
53344   # original and so on.  Autoconf is especially sensitive to this).
53345   . "./$as_me.lineno"
53346   # Exit status is that of the last command.
53347   exit
53348 }
53349
53350
53351 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
53352   as_dirname=dirname
53353 else
53354   as_dirname=false
53355 fi
53356
53357 ECHO_C= ECHO_N= ECHO_T=
53358 case `echo -n x` in
53359 -n*)
53360   case `echo 'x\c'` in
53361   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
53362   *)   ECHO_C='\c';;
53363   esac;;
53364 *)
53365   ECHO_N='-n';;
53366 esac
53367
53368 if expr a : '\(a\)' >/dev/null 2>&1 &&
53369    test "X`expr 00001 : '.*\(...\)'`" = X001; then
53370   as_expr=expr
53371 else
53372   as_expr=false
53373 fi
53374
53375 rm -f conf$$ conf$$.exe conf$$.file
53376 if test -d conf$$.dir; then
53377   rm -f conf$$.dir/conf$$.file
53378 else
53379   rm -f conf$$.dir
53380   mkdir conf$$.dir
53381 fi
53382 echo >conf$$.file
53383 if ln -s conf$$.file conf$$ 2>/dev/null; then
53384   as_ln_s='ln -s'
53385   # ... but there are two gotchas:
53386   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
53387   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
53388   # In both cases, we have to default to `cp -p'.
53389   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
53390     as_ln_s='cp -p'
53391 elif ln conf$$.file conf$$ 2>/dev/null; then
53392   as_ln_s=ln
53393 else
53394   as_ln_s='cp -p'
53395 fi
53396 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
53397 rmdir conf$$.dir 2>/dev/null
53398
53399 if mkdir -p . 2>/dev/null; then
53400   as_mkdir_p=:
53401 else
53402   test -d ./-p && rmdir ./-p
53403   as_mkdir_p=false
53404 fi
53405
53406 if test -x / >/dev/null 2>&1; then
53407   as_test_x='test -x'
53408 else
53409   if ls -dL / >/dev/null 2>&1; then
53410     as_ls_L_option=L
53411   else
53412     as_ls_L_option=
53413   fi
53414   as_test_x='
53415     eval sh -c '\''
53416       if test -d "$1"; then
53417         test -d "$1/.";
53418       else
53419         case $1 in
53420         -*)set "./$1";;
53421         esac;
53422         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
53423         ???[sx]*):;;*)false;;esac;fi
53424     '\'' sh
53425   '
53426 fi
53427 as_executable_p=$as_test_x
53428
53429 # Sed expression to map a string onto a valid CPP name.
53430 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
53431
53432 # Sed expression to map a string onto a valid variable name.
53433 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
53434
53435
53436 exec 6>&1
53437
53438 # Save the log message, to keep $[0] and so on meaningful, and to
53439 # report actual input values of CONFIG_FILES etc. instead of their
53440 # values after options handling.
53441 ac_log="
53442 This file was extended by wxWidgets $as_me 2.9.3, which was
53443 generated by GNU Autoconf 2.61.  Invocation command line was
53444
53445   CONFIG_FILES    = $CONFIG_FILES
53446   CONFIG_HEADERS  = $CONFIG_HEADERS
53447   CONFIG_LINKS    = $CONFIG_LINKS
53448   CONFIG_COMMANDS = $CONFIG_COMMANDS
53449   $ $0 $@
53450
53451 on `(hostname || uname -n) 2>/dev/null | sed 1q`
53452 "
53453
53454 _ACEOF
53455
53456 cat >>$CONFIG_STATUS <<_ACEOF
53457 # Files that config.status was made for.
53458 config_files="$ac_config_files"
53459 config_headers="$ac_config_headers"
53460 config_commands="$ac_config_commands"
53461
53462 _ACEOF
53463
53464 cat >>$CONFIG_STATUS <<\_ACEOF
53465 ac_cs_usage="\
53466 \`$as_me' instantiates files from templates according to the
53467 current configuration.
53468
53469 Usage: $0 [OPTIONS] [FILE]...
53470
53471   -h, --help       print this help, then exit
53472   -V, --version    print version number and configuration settings, then exit
53473   -q, --quiet      do not print progress messages
53474   -d, --debug      don't remove temporary files
53475       --recheck    update $as_me by reconfiguring in the same conditions
53476   --file=FILE[:TEMPLATE]
53477                    instantiate the configuration file FILE
53478   --header=FILE[:TEMPLATE]
53479                    instantiate the configuration header FILE
53480
53481 Configuration files:
53482 $config_files
53483
53484 Configuration headers:
53485 $config_headers
53486
53487 Configuration commands:
53488 $config_commands
53489
53490 Report bugs to <bug-autoconf@gnu.org>."
53491
53492 _ACEOF
53493 cat >>$CONFIG_STATUS <<_ACEOF
53494 ac_cs_version="\\
53495 wxWidgets config.status 2.9.3
53496 configured by $0, generated by GNU Autoconf 2.61,
53497   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
53498
53499 Copyright (C) 2006 Free Software Foundation, Inc.
53500 This config.status script is free software; the Free Software Foundation
53501 gives unlimited permission to copy, distribute and modify it."
53502
53503 ac_pwd='$ac_pwd'
53504 srcdir='$srcdir'
53505 INSTALL='$INSTALL'
53506 _ACEOF
53507
53508 cat >>$CONFIG_STATUS <<\_ACEOF
53509 # If no file are specified by the user, then we need to provide default
53510 # value.  By we need to know if files were specified by the user.
53511 ac_need_defaults=:
53512 while test $# != 0
53513 do
53514   case $1 in
53515   --*=*)
53516     ac_option=`expr "X$1" : 'X\([^=]*\)='`
53517     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
53518     ac_shift=:
53519     ;;
53520   *)
53521     ac_option=$1
53522     ac_optarg=$2
53523     ac_shift=shift
53524     ;;
53525   esac
53526
53527   case $ac_option in
53528   # Handling of the options.
53529   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
53530     ac_cs_recheck=: ;;
53531   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
53532     echo "$ac_cs_version"; exit ;;
53533   --debug | --debu | --deb | --de | --d | -d )
53534     debug=: ;;
53535   --file | --fil | --fi | --f )
53536     $ac_shift
53537     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
53538     ac_need_defaults=false;;
53539   --header | --heade | --head | --hea )
53540     $ac_shift
53541     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
53542     ac_need_defaults=false;;
53543   --he | --h)
53544     # Conflict between --help and --header
53545     { echo "$as_me: error: ambiguous option: $1
53546 Try \`$0 --help' for more information." >&2
53547    { (exit 1); exit 1; }; };;
53548   --help | --hel | -h )
53549     echo "$ac_cs_usage"; exit ;;
53550   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
53551   | -silent | --silent | --silen | --sile | --sil | --si | --s)
53552     ac_cs_silent=: ;;
53553
53554   # This is an error.
53555   -*) { echo "$as_me: error: unrecognized option: $1
53556 Try \`$0 --help' for more information." >&2
53557    { (exit 1); exit 1; }; } ;;
53558
53559   *) ac_config_targets="$ac_config_targets $1"
53560      ac_need_defaults=false ;;
53561
53562   esac
53563   shift
53564 done
53565
53566 ac_configure_extra_args=
53567
53568 if $ac_cs_silent; then
53569   exec 6>/dev/null
53570   ac_configure_extra_args="$ac_configure_extra_args --silent"
53571 fi
53572
53573 _ACEOF
53574 cat >>$CONFIG_STATUS <<_ACEOF
53575 if \$ac_cs_recheck; then
53576   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
53577   CONFIG_SHELL=$SHELL
53578   export CONFIG_SHELL
53579   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
53580 fi
53581
53582 _ACEOF
53583 cat >>$CONFIG_STATUS <<\_ACEOF
53584 exec 5>>config.log
53585 {
53586   echo
53587   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
53588 ## Running $as_me. ##
53589 _ASBOX
53590   echo "$ac_log"
53591 } >&5
53592
53593 _ACEOF
53594 cat >>$CONFIG_STATUS <<_ACEOF
53595 #
53596 # INIT-COMMANDS
53597 #
53598
53599             CPP="$CPP"
53600             infile="$srcdir/include/wx/msw/genrcdefs.h"
53601             outdir="lib/wx/include/$TOOLCHAIN_FULLNAME/wx/msw"
53602
53603
53604  TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
53605  TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
53606  TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
53607                      LN_S="${LN_S}"
53608
53609
53610 _ACEOF
53611
53612 cat >>$CONFIG_STATUS <<\_ACEOF
53613
53614 # Handling of arguments.
53615 for ac_config_target in $ac_config_targets
53616 do
53617   case $ac_config_target in
53618     "lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h:setup.h.in" ;;
53619     "rcdefs.h") CONFIG_COMMANDS="$CONFIG_COMMANDS rcdefs.h" ;;
53620     "lib/wx/config/${TOOLCHAIN_FULLNAME}") CONFIG_FILES="$CONFIG_FILES lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in" ;;
53621     "lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}") CONFIG_FILES="$CONFIG_FILES lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in" ;;
53622     "utils/ifacecheck/rungccxml.sh") CONFIG_FILES="$CONFIG_FILES utils/ifacecheck/rungccxml.sh" ;;
53623     "version-script") CONFIG_FILES="$CONFIG_FILES version-script" ;;
53624     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
53625     "wx-config") CONFIG_COMMANDS="$CONFIG_COMMANDS wx-config" ;;
53626     "$mk") CONFIG_FILES="$CONFIG_FILES $mk" ;;
53627
53628   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
53629 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
53630    { (exit 1); exit 1; }; };;
53631   esac
53632 done
53633
53634
53635 # If the user did not use the arguments to specify the items to instantiate,
53636 # then the envvar interface is used.  Set only those that are not.
53637 # We use the long form for the default assignment because of an extremely
53638 # bizarre bug on SunOS 4.1.3.
53639 if $ac_need_defaults; then
53640   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
53641   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
53642   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
53643 fi
53644
53645 # Have a temporary directory for convenience.  Make it in the build tree
53646 # simply because there is no reason against having it here, and in addition,
53647 # creating and moving files from /tmp can sometimes cause problems.
53648 # Hook for its removal unless debugging.
53649 # Note that there is a small window in which the directory will not be cleaned:
53650 # after its creation but before its name has been assigned to `$tmp'.
53651 $debug ||
53652 {
53653   tmp=
53654   trap 'exit_status=$?
53655   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
53656 ' 0
53657   trap '{ (exit 1); exit 1; }' 1 2 13 15
53658 }
53659 # Create a (secure) tmp directory for tmp files.
53660
53661 {
53662   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
53663   test -n "$tmp" && test -d "$tmp"
53664 }  ||
53665 {
53666   tmp=./conf$$-$RANDOM
53667   (umask 077 && mkdir "$tmp")
53668 } ||
53669 {
53670    echo "$me: cannot create a temporary directory in ." >&2
53671    { (exit 1); exit 1; }
53672 }
53673
53674 #
53675 # Set up the sed scripts for CONFIG_FILES section.
53676 #
53677
53678 # No need to generate the scripts if there are no CONFIG_FILES.
53679 # This happens for instance when ./config.status config.h
53680 if test -n "$CONFIG_FILES"; then
53681
53682 _ACEOF
53683
53684
53685
53686 ac_delim='%!_!# '
53687 for ac_last_try in false false false false false :; do
53688   cat >conf$$subs.sed <<_ACEOF
53689 SHELL!$SHELL$ac_delim
53690 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
53691 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
53692 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
53693 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
53694 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
53695 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
53696 exec_prefix!$exec_prefix$ac_delim
53697 prefix!$prefix$ac_delim
53698 program_transform_name!$program_transform_name$ac_delim
53699 bindir!$bindir$ac_delim
53700 sbindir!$sbindir$ac_delim
53701 libexecdir!$libexecdir$ac_delim
53702 datarootdir!$datarootdir$ac_delim
53703 datadir!$datadir$ac_delim
53704 sysconfdir!$sysconfdir$ac_delim
53705 sharedstatedir!$sharedstatedir$ac_delim
53706 localstatedir!$localstatedir$ac_delim
53707 includedir!$includedir$ac_delim
53708 oldincludedir!$oldincludedir$ac_delim
53709 docdir!$docdir$ac_delim
53710 infodir!$infodir$ac_delim
53711 htmldir!$htmldir$ac_delim
53712 dvidir!$dvidir$ac_delim
53713 pdfdir!$pdfdir$ac_delim
53714 psdir!$psdir$ac_delim
53715 libdir!$libdir$ac_delim
53716 localedir!$localedir$ac_delim
53717 mandir!$mandir$ac_delim
53718 DEFS!$DEFS$ac_delim
53719 ECHO_C!$ECHO_C$ac_delim
53720 ECHO_N!$ECHO_N$ac_delim
53721 ECHO_T!$ECHO_T$ac_delim
53722 LIBS!$LIBS$ac_delim
53723 build_alias!$build_alias$ac_delim
53724 host_alias!$host_alias$ac_delim
53725 target_alias!$target_alias$ac_delim
53726 build!$build$ac_delim
53727 build_cpu!$build_cpu$ac_delim
53728 build_vendor!$build_vendor$ac_delim
53729 build_os!$build_os$ac_delim
53730 host!$host$ac_delim
53731 host_cpu!$host_cpu$ac_delim
53732 host_vendor!$host_vendor$ac_delim
53733 host_os!$host_os$ac_delim
53734 wx_top_builddir!$wx_top_builddir$ac_delim
53735 CC!$CC$ac_delim
53736 CFLAGS!$CFLAGS$ac_delim
53737 LDFLAGS!$LDFLAGS$ac_delim
53738 CPPFLAGS!$CPPFLAGS$ac_delim
53739 ac_ct_CC!$ac_ct_CC$ac_delim
53740 EXEEXT!$EXEEXT$ac_delim
53741 OBJEXT!$OBJEXT$ac_delim
53742 CPP!$CPP$ac_delim
53743 GREP!$GREP$ac_delim
53744 EGREP!$EGREP$ac_delim
53745 CXX!$CXX$ac_delim
53746 CXXFLAGS!$CXXFLAGS$ac_delim
53747 ac_ct_CXX!$ac_ct_CXX$ac_delim
53748 AR!$AR$ac_delim
53749 OSX_SW_VERS!$OSX_SW_VERS$ac_delim
53750 CXXCPP!$CXXCPP$ac_delim
53751 subdirs!$subdirs$ac_delim
53752 PKG_CONFIG!$PKG_CONFIG$ac_delim
53753 GTK_CFLAGS!$GTK_CFLAGS$ac_delim
53754 GTK_LIBS!$GTK_LIBS$ac_delim
53755 GTK_CONFIG!$GTK_CONFIG$ac_delim
53756 DIRECTFB_CFLAGS!$DIRECTFB_CFLAGS$ac_delim
53757 DIRECTFB_LIBS!$DIRECTFB_LIBS$ac_delim
53758 XMKMF!$XMKMF$ac_delim
53759 X_CFLAGS!$X_CFLAGS$ac_delim
53760 X_PRE_LIBS!$X_PRE_LIBS$ac_delim
53761 X_LIBS!$X_LIBS$ac_delim
53762 X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
53763 PANGOX_CFLAGS!$PANGOX_CFLAGS$ac_delim
53764 PANGOX_LIBS!$PANGOX_LIBS$ac_delim
53765 PANGOFT2_CFLAGS!$PANGOFT2_CFLAGS$ac_delim
53766 PANGOFT2_LIBS!$PANGOFT2_LIBS$ac_delim
53767 PANGOXFT_CFLAGS!$PANGOXFT_CFLAGS$ac_delim
53768 PANGOXFT_LIBS!$PANGOXFT_LIBS$ac_delim
53769 CFLAGS_VISIBILITY!$CFLAGS_VISIBILITY$ac_delim
53770 CXXFLAGS_VISIBILITY!$CXXFLAGS_VISIBILITY$ac_delim
53771 LIBICONV!$LIBICONV$ac_delim
53772 GXX_VERSION!$GXX_VERSION$ac_delim
53773 SDL_CONFIG!$SDL_CONFIG$ac_delim
53774 SDL_CFLAGS!$SDL_CFLAGS$ac_delim
53775 SDL_LIBS!$SDL_LIBS$ac_delim
53776 GTKPRINT_CFLAGS!$GTKPRINT_CFLAGS$ac_delim
53777 GTKPRINT_LIBS!$GTKPRINT_LIBS$ac_delim
53778 LIBGNOMEPRINTUI_CFLAGS!$LIBGNOMEPRINTUI_CFLAGS$ac_delim
53779 LIBGNOMEPRINTUI_LIBS!$LIBGNOMEPRINTUI_LIBS$ac_delim
53780 GNOMEVFS_CFLAGS!$GNOMEVFS_CFLAGS$ac_delim
53781 GNOMEVFS_LIBS!$GNOMEVFS_LIBS$ac_delim
53782 HILDON_CFLAGS!$HILDON_CFLAGS$ac_delim
53783 HILDON_LIBS!$HILDON_LIBS$ac_delim
53784 HILDON2_CFLAGS!$HILDON2_CFLAGS$ac_delim
53785 HILDON2_LIBS!$HILDON2_LIBS$ac_delim
53786 _ACEOF
53787
53788   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
53789     break
53790   elif $ac_last_try; then
53791     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
53792 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
53793    { (exit 1); exit 1; }; }
53794   else
53795     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
53796   fi
53797 done
53798
53799 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
53800 if test -n "$ac_eof"; then
53801   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
53802   ac_eof=`expr $ac_eof + 1`
53803 fi
53804
53805 cat >>$CONFIG_STATUS <<_ACEOF
53806 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
53807 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
53808 _ACEOF
53809 sed '
53810 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
53811 s/^/s,@/; s/!/@,|#_!!_#|/
53812 :n
53813 t n
53814 s/'"$ac_delim"'$/,g/; t
53815 s/$/\\/; p
53816 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
53817 ' >>$CONFIG_STATUS <conf$$subs.sed
53818 rm -f conf$$subs.sed
53819 cat >>$CONFIG_STATUS <<_ACEOF
53820 CEOF$ac_eof
53821 _ACEOF
53822
53823
53824 ac_delim='%!_!# '
53825 for ac_last_try in false false false false false :; do
53826   cat >conf$$subs.sed <<_ACEOF
53827 PYTHON!$PYTHON$ac_delim
53828 COND_PYTHON!$COND_PYTHON$ac_delim
53829 CAIRO_CFLAGS!$CAIRO_CFLAGS$ac_delim
53830 CAIRO_LIBS!$CAIRO_LIBS$ac_delim
53831 GST_CFLAGS!$GST_CFLAGS$ac_delim
53832 GST_LIBS!$GST_LIBS$ac_delim
53833 ALL_WX_LIBS!$ALL_WX_LIBS$ac_delim
53834 BUILT_WX_LIBS!$BUILT_WX_LIBS$ac_delim
53835 STD_BASE_LIBS!$STD_BASE_LIBS$ac_delim
53836 STD_GUI_LIBS!$STD_GUI_LIBS$ac_delim
53837 wxUSE_ZLIB!$wxUSE_ZLIB$ac_delim
53838 wxUSE_REGEX!$wxUSE_REGEX$ac_delim
53839 wxUSE_EXPAT!$wxUSE_EXPAT$ac_delim
53840 wxUSE_LIBJPEG!$wxUSE_LIBJPEG$ac_delim
53841 wxUSE_LIBPNG!$wxUSE_LIBPNG$ac_delim
53842 wxUSE_LIBTIFF!$wxUSE_LIBTIFF$ac_delim
53843 VENDOR!$VENDOR$ac_delim
53844 OFFICIAL_BUILD!$OFFICIAL_BUILD$ac_delim
53845 WX_FLAVOUR!$WX_FLAVOUR$ac_delim
53846 WX_LIB_FLAVOUR!$WX_LIB_FLAVOUR$ac_delim
53847 WXUNIV!$WXUNIV$ac_delim
53848 MONOLITHIC!$MONOLITHIC$ac_delim
53849 USE_PLUGINS!$USE_PLUGINS$ac_delim
53850 CXXWARNINGS!$CXXWARNINGS$ac_delim
53851 EXTRALIBS!$EXTRALIBS$ac_delim
53852 EXTRALIBS_XML!$EXTRALIBS_XML$ac_delim
53853 EXTRALIBS_HTML!$EXTRALIBS_HTML$ac_delim
53854 EXTRALIBS_MEDIA!$EXTRALIBS_MEDIA$ac_delim
53855 EXTRALIBS_GUI!$EXTRALIBS_GUI$ac_delim
53856 EXTRALIBS_OPENGL!$EXTRALIBS_OPENGL$ac_delim
53857 EXTRALIBS_SDL!$EXTRALIBS_SDL$ac_delim
53858 EXTRALIBS_STC!$EXTRALIBS_STC$ac_delim
53859 WITH_PLUGIN_SDL!$WITH_PLUGIN_SDL$ac_delim
53860 EXTRALIBS_GTKPRINT!$EXTRALIBS_GTKPRINT$ac_delim
53861 EXTRALIBS_GNOMEPRINT!$EXTRALIBS_GNOMEPRINT$ac_delim
53862 EXTRALIBS_GNOMEVFS!$EXTRALIBS_GNOMEVFS$ac_delim
53863 EXTRALIBS_HILDON!$EXTRALIBS_HILDON$ac_delim
53864 UNICODE!$UNICODE$ac_delim
53865 DEBUG_INFO!$DEBUG_INFO$ac_delim
53866 DEBUG_FLAG!$DEBUG_FLAG$ac_delim
53867 TOOLKIT_LOWERCASE!$TOOLKIT_LOWERCASE$ac_delim
53868 TOOLKIT_VERSION!$TOOLKIT_VERSION$ac_delim
53869 DYLIB_RPATH_INSTALL!$DYLIB_RPATH_INSTALL$ac_delim
53870 DYLIB_RPATH_POSTLINK!$DYLIB_RPATH_POSTLINK$ac_delim
53871 SAMPLES_RPATH_FLAG!$SAMPLES_RPATH_FLAG$ac_delim
53872 HEADER_PAD_OPTION!$HEADER_PAD_OPTION$ac_delim
53873 HOST_SUFFIX!$HOST_SUFFIX$ac_delim
53874 CPPUNIT_CFLAGS!$CPPUNIT_CFLAGS$ac_delim
53875 CPPUNIT_LIBS!$CPPUNIT_LIBS$ac_delim
53876 RANLIB!$RANLIB$ac_delim
53877 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
53878 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
53879 INSTALL_DATA!$INSTALL_DATA$ac_delim
53880 LN_S!$LN_S$ac_delim
53881 SET_MAKE!$SET_MAKE$ac_delim
53882 MAKE_SET!$MAKE_SET$ac_delim
53883 AROPTIONS!$AROPTIONS$ac_delim
53884 STRIP!$STRIP$ac_delim
53885 NM!$NM$ac_delim
53886 INSTALL_DIR!$INSTALL_DIR$ac_delim
53887 LDFLAGS_GUI!$LDFLAGS_GUI$ac_delim
53888 IF_GNU_MAKE!$IF_GNU_MAKE$ac_delim
53889 PLATFORM_UNIX!$PLATFORM_UNIX$ac_delim
53890 PLATFORM_WIN32!$PLATFORM_WIN32$ac_delim
53891 PLATFORM_MSDOS!$PLATFORM_MSDOS$ac_delim
53892 PLATFORM_MAC!$PLATFORM_MAC$ac_delim
53893 PLATFORM_MACOS!$PLATFORM_MACOS$ac_delim
53894 PLATFORM_MACOSX!$PLATFORM_MACOSX$ac_delim
53895 PLATFORM_OS2!$PLATFORM_OS2$ac_delim
53896 PLATFORM_BEOS!$PLATFORM_BEOS$ac_delim
53897 SO_SUFFIX!$SO_SUFFIX$ac_delim
53898 SO_SUFFIX_MODULE!$SO_SUFFIX_MODULE$ac_delim
53899 DLLIMP_SUFFIX!$DLLIMP_SUFFIX$ac_delim
53900 LIBPREFIX!$LIBPREFIX$ac_delim
53901 LIBEXT!$LIBEXT$ac_delim
53902 DLLPREFIX!$DLLPREFIX$ac_delim
53903 DLLPREFIX_MODULE!$DLLPREFIX_MODULE$ac_delim
53904 dlldir!$dlldir$ac_delim
53905 AIX_CXX_LD!$AIX_CXX_LD$ac_delim
53906 SHARED_LD_CC!$SHARED_LD_CC$ac_delim
53907 SHARED_LD_CXX!$SHARED_LD_CXX$ac_delim
53908 SHARED_LD_MODULE_CC!$SHARED_LD_MODULE_CC$ac_delim
53909 SHARED_LD_MODULE_CXX!$SHARED_LD_MODULE_CXX$ac_delim
53910 PIC_FLAG!$PIC_FLAG$ac_delim
53911 WINDOWS_IMPLIB!$WINDOWS_IMPLIB$ac_delim
53912 USE_SOVERSION!$USE_SOVERSION$ac_delim
53913 USE_SOVERLINUX!$USE_SOVERLINUX$ac_delim
53914 USE_SOVERSOLARIS!$USE_SOVERSOLARIS$ac_delim
53915 USE_SOVERCYGWIN!$USE_SOVERCYGWIN$ac_delim
53916 USE_MACVERSION!$USE_MACVERSION$ac_delim
53917 USE_SOTWOSYMLINKS!$USE_SOTWOSYMLINKS$ac_delim
53918 SONAME_FLAG!$SONAME_FLAG$ac_delim
53919 DEPS_TRACKING!$DEPS_TRACKING$ac_delim
53920 BK_DEPS!$BK_DEPS$ac_delim
53921 WINDRES!$WINDRES$ac_delim
53922 REZ!$REZ$ac_delim
53923 SETFILE!$SETFILE$ac_delim
53924 _ACEOF
53925
53926   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
53927     break
53928   elif $ac_last_try; then
53929     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
53930 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
53931    { (exit 1); exit 1; }; }
53932   else
53933     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
53934   fi
53935 done
53936
53937 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
53938 if test -n "$ac_eof"; then
53939   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
53940   ac_eof=`expr $ac_eof + 1`
53941 fi
53942
53943 cat >>$CONFIG_STATUS <<_ACEOF
53944 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
53945 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
53946 _ACEOF
53947 sed '
53948 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
53949 s/^/s,@/; s/!/@,|#_!!_#|/
53950 :n
53951 t n
53952 s/'"$ac_delim"'$/,g/; t
53953 s/$/\\/; p
53954 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
53955 ' >>$CONFIG_STATUS <conf$$subs.sed
53956 rm -f conf$$subs.sed
53957 cat >>$CONFIG_STATUS <<_ACEOF
53958 CEOF$ac_eof
53959 _ACEOF
53960
53961
53962 ac_delim='%!_!# '
53963 for ac_last_try in false false false false false :; do
53964   cat >conf$$subs.sed <<_ACEOF
53965 OBJCXXFLAGS!$OBJCXXFLAGS$ac_delim
53966 GCC_PCH!$GCC_PCH$ac_delim
53967 ICC_PCH!$ICC_PCH$ac_delim
53968 ICC_PCH_CREATE_SWITCH!$ICC_PCH_CREATE_SWITCH$ac_delim
53969 ICC_PCH_USE_SWITCH!$ICC_PCH_USE_SWITCH$ac_delim
53970 BK_MAKE_PCH!$BK_MAKE_PCH$ac_delim
53971 COND_BUILD_DEBUG!$COND_BUILD_DEBUG$ac_delim
53972 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT!$COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT$ac_delim
53973 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT!$COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT$ac_delim
53974 COND_BUILD_DEBUG_UNICODE_0!$COND_BUILD_DEBUG_UNICODE_0$ac_delim
53975 COND_BUILD_DEBUG_UNICODE_1!$COND_BUILD_DEBUG_UNICODE_1$ac_delim
53976 COND_BUILD_RELEASE!$COND_BUILD_RELEASE$ac_delim
53977 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT!$COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT$ac_delim
53978 COND_BUILD_RELEASE_UNICODE_0!$COND_BUILD_RELEASE_UNICODE_0$ac_delim
53979 COND_BUILD_RELEASE_UNICODE_1!$COND_BUILD_RELEASE_UNICODE_1$ac_delim
53980 COND_BUILD_debug!$COND_BUILD_debug$ac_delim
53981 COND_BUILD_debug_DEBUG_FLAG_default!$COND_BUILD_debug_DEBUG_FLAG_default$ac_delim
53982 COND_BUILD_debug_DEBUG_INFO_default!$COND_BUILD_debug_DEBUG_INFO_default$ac_delim
53983 COND_BUILD_debug_UNICODE_0!$COND_BUILD_debug_UNICODE_0$ac_delim
53984 COND_BUILD_debug_UNICODE_1!$COND_BUILD_debug_UNICODE_1$ac_delim
53985 COND_BUILD_release!$COND_BUILD_release$ac_delim
53986 COND_BUILD_release_DEBUG_INFO_default!$COND_BUILD_release_DEBUG_INFO_default$ac_delim
53987 COND_BUILD_release_UNICODE_0!$COND_BUILD_release_UNICODE_0$ac_delim
53988 COND_BUILD_release_UNICODE_1!$COND_BUILD_release_UNICODE_1$ac_delim
53989 COND_DEBUG_FLAG_0!$COND_DEBUG_FLAG_0$ac_delim
53990 COND_DEBUG_FLAG_1!$COND_DEBUG_FLAG_1$ac_delim
53991 COND_DEBUG_INFO_0!$COND_DEBUG_INFO_0$ac_delim
53992 COND_DEBUG_INFO_1!$COND_DEBUG_INFO_1$ac_delim
53993 COND_DEPS_TRACKING_0!$COND_DEPS_TRACKING_0$ac_delim
53994 COND_DEPS_TRACKING_1!$COND_DEPS_TRACKING_1$ac_delim
53995 COND_GCC_PCH_1!$COND_GCC_PCH_1$ac_delim
53996 COND_ICC_PCH_1!$COND_ICC_PCH_1$ac_delim
53997 COND_MONOLITHIC_0!$COND_MONOLITHIC_0$ac_delim
53998 COND_MONOLITHIC_0_SHARED_0!$COND_MONOLITHIC_0_SHARED_0$ac_delim
53999 COND_MONOLITHIC_0_SHARED_0_USE_AUI_1!$COND_MONOLITHIC_0_SHARED_0_USE_AUI_1$ac_delim
54000 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1!$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1$ac_delim
54001 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1!$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1$ac_delim
54002 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1!$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1$ac_delim
54003 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1!$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1$ac_delim
54004 COND_MONOLITHIC_0_SHARED_0_USE_PROPGRID_1!$COND_MONOLITHIC_0_SHARED_0_USE_PROPGRID_1$ac_delim
54005 COND_MONOLITHIC_0_SHARED_0_USE_RIBBON_1!$COND_MONOLITHIC_0_SHARED_0_USE_RIBBON_1$ac_delim
54006 COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1!$COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1$ac_delim
54007 COND_MONOLITHIC_0_SHARED_0_USE_STC_1!$COND_MONOLITHIC_0_SHARED_0_USE_STC_1$ac_delim
54008 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1!$COND_MONOLITHIC_0_SHARED_0_USE_XRC_1$ac_delim
54009 COND_MONOLITHIC_0_SHARED_1!$COND_MONOLITHIC_0_SHARED_1$ac_delim
54010 COND_MONOLITHIC_0_SHARED_1_USE_AUI_1!$COND_MONOLITHIC_0_SHARED_1_USE_AUI_1$ac_delim
54011 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1!$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1$ac_delim
54012 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1!$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1$ac_delim
54013 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1!$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1$ac_delim
54014 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1!$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1$ac_delim
54015 COND_MONOLITHIC_0_SHARED_1_USE_PROPGRID_1!$COND_MONOLITHIC_0_SHARED_1_USE_PROPGRID_1$ac_delim
54016 COND_MONOLITHIC_0_SHARED_1_USE_RIBBON_1!$COND_MONOLITHIC_0_SHARED_1_USE_RIBBON_1$ac_delim
54017 COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1!$COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1$ac_delim
54018 COND_MONOLITHIC_0_SHARED_1_USE_STC_1!$COND_MONOLITHIC_0_SHARED_1_USE_STC_1$ac_delim
54019 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1!$COND_MONOLITHIC_0_SHARED_1_USE_XRC_1$ac_delim
54020 COND_MONOLITHIC_0_USE_AUI_1!$COND_MONOLITHIC_0_USE_AUI_1$ac_delim
54021 COND_MONOLITHIC_0_USE_GUI_1!$COND_MONOLITHIC_0_USE_GUI_1$ac_delim
54022 COND_MONOLITHIC_0_USE_GUI_1_USE_MEDIA_1!$COND_MONOLITHIC_0_USE_GUI_1_USE_MEDIA_1$ac_delim
54023 COND_MONOLITHIC_0_USE_HTML_1!$COND_MONOLITHIC_0_USE_HTML_1$ac_delim
54024 COND_MONOLITHIC_0_USE_MEDIA_1!$COND_MONOLITHIC_0_USE_MEDIA_1$ac_delim
54025 COND_MONOLITHIC_0_USE_PROPGRID_1!$COND_MONOLITHIC_0_USE_PROPGRID_1$ac_delim
54026 COND_MONOLITHIC_0_USE_QA_1!$COND_MONOLITHIC_0_USE_QA_1$ac_delim
54027 COND_MONOLITHIC_0_USE_RIBBON_1!$COND_MONOLITHIC_0_USE_RIBBON_1$ac_delim
54028 COND_MONOLITHIC_0_USE_RICHTEXT_1!$COND_MONOLITHIC_0_USE_RICHTEXT_1$ac_delim
54029 COND_MONOLITHIC_0_USE_STC_1!$COND_MONOLITHIC_0_USE_STC_1$ac_delim
54030 COND_MONOLITHIC_0_USE_XRC_1!$COND_MONOLITHIC_0_USE_XRC_1$ac_delim
54031 COND_MONOLITHIC_1!$COND_MONOLITHIC_1$ac_delim
54032 COND_MONOLITHIC_1_SHARED_0!$COND_MONOLITHIC_1_SHARED_0$ac_delim
54033 COND_MONOLITHIC_1_SHARED_1!$COND_MONOLITHIC_1_SHARED_1$ac_delim
54034 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1!$COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1$ac_delim
54035 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1!$COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1$ac_delim
54036 COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1!$COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1$ac_delim
54037 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1!$COND_PLATFORM_MACOSX_0_USE_SOVERSION_1$ac_delim
54038 COND_PLATFORM_MACOSX_1!$COND_PLATFORM_MACOSX_1$ac_delim
54039 COND_PLATFORM_MACOSX_1_PLATFORM_MSDOS_0!$COND_PLATFORM_MACOSX_1_PLATFORM_MSDOS_0$ac_delim
54040 COND_PLATFORM_MACOSX_1_PLATFORM_WIN32_1_SHARED_0!$COND_PLATFORM_MACOSX_1_PLATFORM_WIN32_1_SHARED_0$ac_delim
54041 COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_CARBON_USE_GUI_1!$COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_CARBON_USE_GUI_1$ac_delim
54042 COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_CARBON_USE_GUI_1_WXUNIV_0!$COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_CARBON_USE_GUI_1_WXUNIV_0$ac_delim
54043 COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_COCOA_USE_GUI_1!$COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_COCOA_USE_GUI_1$ac_delim
54044 COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_COCOA_USE_GUI_1_WXUNIV_0!$COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_COCOA_USE_GUI_1_WXUNIV_0$ac_delim
54045 COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_IPHONE_USE_GUI_1!$COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_IPHONE_USE_GUI_1$ac_delim
54046 COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_IPHONE_USE_GUI_1_WXUNIV_0!$COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_IPHONE_USE_GUI_1_WXUNIV_0$ac_delim
54047 COND_PLATFORM_MACOSX_1_USE_GUI_1!$COND_PLATFORM_MACOSX_1_USE_GUI_1$ac_delim
54048 COND_PLATFORM_MACOSX_1_USE_OPENGL_1!$COND_PLATFORM_MACOSX_1_USE_OPENGL_1$ac_delim
54049 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1!$COND_PLATFORM_MACOSX_1_USE_SOVERSION_1$ac_delim
54050 COND_PLATFORM_MACOS_1!$COND_PLATFORM_MACOS_1$ac_delim
54051 COND_PLATFORM_MAC_0!$COND_PLATFORM_MAC_0$ac_delim
54052 COND_PLATFORM_MAC_1!$COND_PLATFORM_MAC_1$ac_delim
54053 COND_PLATFORM_MSDOS_0!$COND_PLATFORM_MSDOS_0$ac_delim
54054 COND_PLATFORM_MSDOS_1!$COND_PLATFORM_MSDOS_1$ac_delim
54055 COND_PLATFORM_OS2_1!$COND_PLATFORM_OS2_1$ac_delim
54056 COND_PLATFORM_UNIX_0!$COND_PLATFORM_UNIX_0$ac_delim
54057 COND_PLATFORM_UNIX_1!$COND_PLATFORM_UNIX_1$ac_delim
54058 COND_PLATFORM_UNIX_1_TOOLKIT_MGL!$COND_PLATFORM_UNIX_1_TOOLKIT_MGL$ac_delim
54059 COND_PLATFORM_UNIX_1_TOOLKIT_MGL_USE_GUI_1!$COND_PLATFORM_UNIX_1_TOOLKIT_MGL_USE_GUI_1$ac_delim
54060 COND_PLATFORM_UNIX_1_USE_GUI_1!$COND_PLATFORM_UNIX_1_USE_GUI_1$ac_delim
54061 COND_PLATFORM_UNIX_1_USE_PLUGINS_0!$COND_PLATFORM_UNIX_1_USE_PLUGINS_0$ac_delim
54062 _ACEOF
54063
54064   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
54065     break
54066   elif $ac_last_try; then
54067     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
54068 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
54069    { (exit 1); exit 1; }; }
54070   else
54071     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
54072   fi
54073 done
54074
54075 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
54076 if test -n "$ac_eof"; then
54077   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
54078   ac_eof=`expr $ac_eof + 1`
54079 fi
54080
54081 cat >>$CONFIG_STATUS <<_ACEOF
54082 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
54083 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
54084 _ACEOF
54085 sed '
54086 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
54087 s/^/s,@/; s/!/@,|#_!!_#|/
54088 :n
54089 t n
54090 s/'"$ac_delim"'$/,g/; t
54091 s/$/\\/; p
54092 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
54093 ' >>$CONFIG_STATUS <conf$$subs.sed
54094 rm -f conf$$subs.sed
54095 cat >>$CONFIG_STATUS <<_ACEOF
54096 CEOF$ac_eof
54097 _ACEOF
54098
54099
54100 ac_delim='%!_!# '
54101 for ac_last_try in false false false false false :; do
54102   cat >conf$$subs.sed <<_ACEOF
54103 COND_PLATFORM_WIN32_0!$COND_PLATFORM_WIN32_0$ac_delim
54104 COND_PLATFORM_WIN32_1!$COND_PLATFORM_WIN32_1$ac_delim
54105 COND_PLATFORM_WIN32_1_SHARED_0!$COND_PLATFORM_WIN32_1_SHARED_0$ac_delim
54106 COND_SHARED_0!$COND_SHARED_0$ac_delim
54107 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0!$COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0$ac_delim
54108 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0!$COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0$ac_delim
54109 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0!$COND_SHARED_0_TOOLKIT_PM_WXUNIV_0$ac_delim
54110 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1!$COND_SHARED_0_USE_GUI_1_USE_OPENGL_1$ac_delim
54111 COND_SHARED_0_USE_GUI_1_wxUSE_LIBJPEG_builtin!$COND_SHARED_0_USE_GUI_1_wxUSE_LIBJPEG_builtin$ac_delim
54112 COND_SHARED_0_USE_GUI_1_wxUSE_LIBPNG_builtin!$COND_SHARED_0_USE_GUI_1_wxUSE_LIBPNG_builtin$ac_delim
54113 COND_SHARED_0_USE_GUI_1_wxUSE_LIBTIFF_builtin!$COND_SHARED_0_USE_GUI_1_wxUSE_LIBTIFF_builtin$ac_delim
54114 COND_SHARED_0_USE_STC_1!$COND_SHARED_0_USE_STC_1$ac_delim
54115 COND_SHARED_0_wxUSE_EXPAT_builtin!$COND_SHARED_0_wxUSE_EXPAT_builtin$ac_delim
54116 COND_SHARED_0_wxUSE_REGEX_builtin!$COND_SHARED_0_wxUSE_REGEX_builtin$ac_delim
54117 COND_SHARED_0_wxUSE_ZLIB_builtin!$COND_SHARED_0_wxUSE_ZLIB_builtin$ac_delim
54118 COND_SHARED_1!$COND_SHARED_1$ac_delim
54119 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1!$COND_SHARED_1_USE_GUI_1_USE_OPENGL_1$ac_delim
54120 COND_TOOLKIT_!$COND_TOOLKIT_$ac_delim
54121 COND_TOOLKIT_COCOA!$COND_TOOLKIT_COCOA$ac_delim
54122 COND_TOOLKIT_COCOA_USE_GUI_1!$COND_TOOLKIT_COCOA_USE_GUI_1$ac_delim
54123 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0$ac_delim
54124 COND_TOOLKIT_DFB!$COND_TOOLKIT_DFB$ac_delim
54125 COND_TOOLKIT_DFB_USE_GUI_1!$COND_TOOLKIT_DFB_USE_GUI_1$ac_delim
54126 COND_TOOLKIT_GTK!$COND_TOOLKIT_GTK$ac_delim
54127 COND_TOOLKIT_GTK_TOOLKIT_VERSION_!$COND_TOOLKIT_GTK_TOOLKIT_VERSION_$ac_delim
54128 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2!$COND_TOOLKIT_GTK_TOOLKIT_VERSION_2$ac_delim
54129 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1!$COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1$ac_delim
54130 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0$ac_delim
54131 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1!$COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1$ac_delim
54132 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0$ac_delim
54133 COND_TOOLKIT_GTK_USE_GUI_1!$COND_TOOLKIT_GTK_USE_GUI_1$ac_delim
54134 COND_TOOLKIT_MAC!$COND_TOOLKIT_MAC$ac_delim
54135 COND_TOOLKIT_MGL!$COND_TOOLKIT_MGL$ac_delim
54136 COND_TOOLKIT_MGL_USE_GUI_1!$COND_TOOLKIT_MGL_USE_GUI_1$ac_delim
54137 COND_TOOLKIT_MOTIF!$COND_TOOLKIT_MOTIF$ac_delim
54138 COND_TOOLKIT_MOTIF_USE_GUI_1!$COND_TOOLKIT_MOTIF_USE_GUI_1$ac_delim
54139 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0$ac_delim
54140 COND_TOOLKIT_MSW!$COND_TOOLKIT_MSW$ac_delim
54141 COND_TOOLKIT_MSW_USE_GUI_1!$COND_TOOLKIT_MSW_USE_GUI_1$ac_delim
54142 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0$ac_delim
54143 COND_TOOLKIT_MSW_WXUNIV_0!$COND_TOOLKIT_MSW_WXUNIV_0$ac_delim
54144 COND_TOOLKIT_OSX_CARBON!$COND_TOOLKIT_OSX_CARBON$ac_delim
54145 COND_TOOLKIT_OSX_CARBON_USE_GUI_1!$COND_TOOLKIT_OSX_CARBON_USE_GUI_1$ac_delim
54146 COND_TOOLKIT_OSX_COCOA!$COND_TOOLKIT_OSX_COCOA$ac_delim
54147 COND_TOOLKIT_OSX_COCOA_USE_GUI_1!$COND_TOOLKIT_OSX_COCOA_USE_GUI_1$ac_delim
54148 COND_TOOLKIT_OSX_IPHONE!$COND_TOOLKIT_OSX_IPHONE$ac_delim
54149 COND_TOOLKIT_OSX_IPHONE_USE_GUI_1!$COND_TOOLKIT_OSX_IPHONE_USE_GUI_1$ac_delim
54150 COND_TOOLKIT_OSX_IPHONE_USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_OSX_IPHONE_USE_GUI_1_WXUNIV_0$ac_delim
54151 COND_TOOLKIT_PM!$COND_TOOLKIT_PM$ac_delim
54152 COND_TOOLKIT_PM_USE_GUI_1!$COND_TOOLKIT_PM_USE_GUI_1$ac_delim
54153 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0$ac_delim
54154 COND_TOOLKIT_WINCE!$COND_TOOLKIT_WINCE$ac_delim
54155 COND_TOOLKIT_WINCE_USE_GUI_1!$COND_TOOLKIT_WINCE_USE_GUI_1$ac_delim
54156 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0$ac_delim
54157 COND_TOOLKIT_WINCE_WXUNIV_0!$COND_TOOLKIT_WINCE_WXUNIV_0$ac_delim
54158 COND_TOOLKIT_X11!$COND_TOOLKIT_X11$ac_delim
54159 COND_TOOLKIT_X11_USE_GUI_1!$COND_TOOLKIT_X11_USE_GUI_1$ac_delim
54160 COND_UNICODE_1!$COND_UNICODE_1$ac_delim
54161 COND_USE_CAIRO_1!$COND_USE_CAIRO_1$ac_delim
54162 COND_USE_EXCEPTIONS_0!$COND_USE_EXCEPTIONS_0$ac_delim
54163 COND_USE_EXCEPTIONS_1!$COND_USE_EXCEPTIONS_1$ac_delim
54164 COND_USE_GUI_0!$COND_USE_GUI_0$ac_delim
54165 COND_USE_GUI_1!$COND_USE_GUI_1$ac_delim
54166 COND_USE_GUI_1_USE_OPENGL_1!$COND_USE_GUI_1_USE_OPENGL_1$ac_delim
54167 COND_USE_GUI_1_WXUNIV_0!$COND_USE_GUI_1_WXUNIV_0$ac_delim
54168 COND_USE_GUI_1_WXUNIV_1!$COND_USE_GUI_1_WXUNIV_1$ac_delim
54169 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN!$COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN$ac_delim
54170 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN!$COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN$ac_delim
54171 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN!$COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN$ac_delim
54172 COND_USE_GUI_1_wxUSE_LIBJPEG_builtin!$COND_USE_GUI_1_wxUSE_LIBJPEG_builtin$ac_delim
54173 COND_USE_GUI_1_wxUSE_LIBPNG_builtin!$COND_USE_GUI_1_wxUSE_LIBPNG_builtin$ac_delim
54174 COND_USE_GUI_1_wxUSE_LIBTIFF_builtin!$COND_USE_GUI_1_wxUSE_LIBTIFF_builtin$ac_delim
54175 COND_USE_OPENGL_1!$COND_USE_OPENGL_1$ac_delim
54176 COND_USE_PCH_1!$COND_USE_PCH_1$ac_delim
54177 COND_USE_PLUGINS_0!$COND_USE_PLUGINS_0$ac_delim
54178 COND_USE_RTTI_0!$COND_USE_RTTI_0$ac_delim
54179 COND_USE_RTTI_1!$COND_USE_RTTI_1$ac_delim
54180 COND_USE_SOTWOSYMLINKS_1!$COND_USE_SOTWOSYMLINKS_1$ac_delim
54181 COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1!$COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1$ac_delim
54182 COND_USE_SOVERLINUX_1!$COND_USE_SOVERLINUX_1$ac_delim
54183 COND_USE_SOVERSION_0!$COND_USE_SOVERSION_0$ac_delim
54184 COND_USE_SOVERSION_1_USE_SOVERSOLARIS_1!$COND_USE_SOVERSION_1_USE_SOVERSOLARIS_1$ac_delim
54185 COND_USE_SOVERSOLARIS_1!$COND_USE_SOVERSOLARIS_1$ac_delim
54186 COND_USE_STC_1!$COND_USE_STC_1$ac_delim
54187 COND_USE_THREADS_0!$COND_USE_THREADS_0$ac_delim
54188 COND_USE_THREADS_1!$COND_USE_THREADS_1$ac_delim
54189 COND_USE_XRC_1!$COND_USE_XRC_1$ac_delim
54190 COND_WINDOWS_IMPLIB_1!$COND_WINDOWS_IMPLIB_1$ac_delim
54191 COND_WITH_PLUGIN_SDL_1!$COND_WITH_PLUGIN_SDL_1$ac_delim
54192 COND_WXUNIV_0!$COND_WXUNIV_0$ac_delim
54193 COND_WXUNIV_1!$COND_WXUNIV_1$ac_delim
54194 COND_WXUSE_EXPAT_BUILTIN!$COND_WXUSE_EXPAT_BUILTIN$ac_delim
54195 COND_WXUSE_LIBJPEG_BUILTIN!$COND_WXUSE_LIBJPEG_BUILTIN$ac_delim
54196 COND_WXUSE_LIBPNG_BUILTIN!$COND_WXUSE_LIBPNG_BUILTIN$ac_delim
54197 COND_WXUSE_LIBTIFF_BUILTIN!$COND_WXUSE_LIBTIFF_BUILTIN$ac_delim
54198 COND_WXUSE_REGEX_BUILTIN!$COND_WXUSE_REGEX_BUILTIN$ac_delim
54199 COND_WXUSE_ZLIB_BUILTIN!$COND_WXUSE_ZLIB_BUILTIN$ac_delim
54200 _ACEOF
54201
54202   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
54203     break
54204   elif $ac_last_try; then
54205     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
54206 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
54207    { (exit 1); exit 1; }; }
54208   else
54209     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
54210   fi
54211 done
54212
54213 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
54214 if test -n "$ac_eof"; then
54215   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
54216   ac_eof=`expr $ac_eof + 1`
54217 fi
54218
54219 cat >>$CONFIG_STATUS <<_ACEOF
54220 cat >"\$tmp/subs-4.sed" <<\CEOF$ac_eof
54221 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
54222 _ACEOF
54223 sed '
54224 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
54225 s/^/s,@/; s/!/@,|#_!!_#|/
54226 :n
54227 t n
54228 s/'"$ac_delim"'$/,g/; t
54229 s/$/\\/; p
54230 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
54231 ' >>$CONFIG_STATUS <conf$$subs.sed
54232 rm -f conf$$subs.sed
54233 cat >>$CONFIG_STATUS <<_ACEOF
54234 CEOF$ac_eof
54235 _ACEOF
54236
54237
54238 ac_delim='%!_!# '
54239 for ac_last_try in false false false false false :; do
54240   cat >conf$$subs.sed <<_ACEOF
54241 COND_wxUSE_EXPAT_builtin!$COND_wxUSE_EXPAT_builtin$ac_delim
54242 COND_wxUSE_LIBJPEG_builtin!$COND_wxUSE_LIBJPEG_builtin$ac_delim
54243 COND_wxUSE_LIBPNG_builtin!$COND_wxUSE_LIBPNG_builtin$ac_delim
54244 COND_wxUSE_LIBTIFF_builtin!$COND_wxUSE_LIBTIFF_builtin$ac_delim
54245 COND_wxUSE_REGEX_builtin!$COND_wxUSE_REGEX_builtin$ac_delim
54246 COND_wxUSE_ZLIB_builtin!$COND_wxUSE_ZLIB_builtin$ac_delim
54247 DEREZ!$DEREZ$ac_delim
54248 SHARED!$SHARED$ac_delim
54249 WX_LIBRARY_BASENAME_NOGUI!$WX_LIBRARY_BASENAME_NOGUI$ac_delim
54250 WX_LIBRARY_BASENAME_GUI!$WX_LIBRARY_BASENAME_GUI$ac_delim
54251 USE_GUI!$USE_GUI$ac_delim
54252 AFMINSTALL!$AFMINSTALL$ac_delim
54253 WIN32INSTALL!$WIN32INSTALL$ac_delim
54254 TOOLKIT!$TOOLKIT$ac_delim
54255 TOOLKIT_DIR!$TOOLKIT_DIR$ac_delim
54256 TOOLCHAIN_NAME!$TOOLCHAIN_NAME$ac_delim
54257 TOOLCHAIN_FULLNAME!$TOOLCHAIN_FULLNAME$ac_delim
54258 cross_compiling!$cross_compiling$ac_delim
54259 WIDGET_SET!$WIDGET_SET$ac_delim
54260 WX_RELEASE!$WX_RELEASE$ac_delim
54261 WX_VERSION!$WX_VERSION$ac_delim
54262 WX_SUBVERSION!$WX_SUBVERSION$ac_delim
54263 WX_CHARTYPE!$WX_CHARTYPE$ac_delim
54264 WXCONFIG_CPPFLAGS!$WXCONFIG_CPPFLAGS$ac_delim
54265 WXCONFIG_CFLAGS!$WXCONFIG_CFLAGS$ac_delim
54266 WXCONFIG_CXXFLAGS!$WXCONFIG_CXXFLAGS$ac_delim
54267 WXCONFIG_LIBS!$WXCONFIG_LIBS$ac_delim
54268 WXCONFIG_RPATH!$WXCONFIG_RPATH$ac_delim
54269 WXCONFIG_LDFLAGS!$WXCONFIG_LDFLAGS$ac_delim
54270 WXCONFIG_LDFLAGS_GUI!$WXCONFIG_LDFLAGS_GUI$ac_delim
54271 WXCONFIG_RESFLAGS!$WXCONFIG_RESFLAGS$ac_delim
54272 GUIDIST!$GUIDIST$ac_delim
54273 DISTDIR!$DISTDIR$ac_delim
54274 SAMPLES_SUBDIRS!$SAMPLES_SUBDIRS$ac_delim
54275 LDFLAGS_GL!$LDFLAGS_GL$ac_delim
54276 OPENGL_LIBS!$OPENGL_LIBS$ac_delim
54277 DMALLOC_LIBS!$DMALLOC_LIBS$ac_delim
54278 WX_VERSION_TAG!$WX_VERSION_TAG$ac_delim
54279 RESCOMP!$RESCOMP$ac_delim
54280 RESFLAGS!$RESFLAGS$ac_delim
54281 RESPROGRAMOBJ!$RESPROGRAMOBJ$ac_delim
54282 WX_RESOURCES_MACOSX_ASCII!$WX_RESOURCES_MACOSX_ASCII$ac_delim
54283 WX_RESOURCES_MACOSX_DATA!$WX_RESOURCES_MACOSX_DATA$ac_delim
54284 LIBWXMACRES!$LIBWXMACRES$ac_delim
54285 POSTLINK_COMMAND!$POSTLINK_COMMAND$ac_delim
54286 MACSETFILE!$MACSETFILE$ac_delim
54287 GCC!$GCC$ac_delim
54288 DLLTOOL!$DLLTOOL$ac_delim
54289 CPPUNIT_CONFIG!$CPPUNIT_CONFIG$ac_delim
54290 LIBOBJS!$LIBOBJS$ac_delim
54291 LTLIBOBJS!$LTLIBOBJS$ac_delim
54292 _ACEOF
54293
54294   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 51; then
54295     break
54296   elif $ac_last_try; then
54297     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
54298 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
54299    { (exit 1); exit 1; }; }
54300   else
54301     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
54302   fi
54303 done
54304
54305 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
54306 if test -n "$ac_eof"; then
54307   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
54308   ac_eof=`expr $ac_eof + 1`
54309 fi
54310
54311 cat >>$CONFIG_STATUS <<_ACEOF
54312 cat >"\$tmp/subs-5.sed" <<\CEOF$ac_eof
54313 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
54314 _ACEOF
54315 sed '
54316 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
54317 s/^/s,@/; s/!/@,|#_!!_#|/
54318 :n
54319 t n
54320 s/'"$ac_delim"'$/,g/; t
54321 s/$/\\/; p
54322 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
54323 ' >>$CONFIG_STATUS <conf$$subs.sed
54324 rm -f conf$$subs.sed
54325 cat >>$CONFIG_STATUS <<_ACEOF
54326 :end
54327 s/|#_!!_#|//g
54328 CEOF$ac_eof
54329 _ACEOF
54330
54331
54332 # VPATH may cause trouble with some makes, so we remove $(srcdir),
54333 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
54334 # trailing colons and then remove the whole line if VPATH becomes empty
54335 # (actually we leave an empty line to preserve line numbers).
54336 if test "x$srcdir" = x.; then
54337   ac_vpsub='/^[  ]*VPATH[        ]*=/{
54338 s/:*\$(srcdir):*/:/
54339 s/:*\${srcdir}:*/:/
54340 s/:*@srcdir@:*/:/
54341 s/^\([^=]*=[     ]*\):*/\1/
54342 s/:*$//
54343 s/^[^=]*=[       ]*$//
54344 }'
54345 fi
54346
54347 cat >>$CONFIG_STATUS <<\_ACEOF
54348 fi # test -n "$CONFIG_FILES"
54349
54350
54351 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
54352 do
54353   case $ac_tag in
54354   :[FHLC]) ac_mode=$ac_tag; continue;;
54355   esac
54356   case $ac_mode$ac_tag in
54357   :[FHL]*:*);;
54358   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
54359 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
54360    { (exit 1); exit 1; }; };;
54361   :[FH]-) ac_tag=-:-;;
54362   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
54363   esac
54364   ac_save_IFS=$IFS
54365   IFS=:
54366   set x $ac_tag
54367   IFS=$ac_save_IFS
54368   shift
54369   ac_file=$1
54370   shift
54371
54372   case $ac_mode in
54373   :L) ac_source=$1;;
54374   :[FH])
54375     ac_file_inputs=
54376     for ac_f
54377     do
54378       case $ac_f in
54379       -) ac_f="$tmp/stdin";;
54380       *) # Look for the file first in the build tree, then in the source tree
54381          # (if the path is not absolute).  The absolute path cannot be DOS-style,
54382          # because $ac_f cannot contain `:'.
54383          test -f "$ac_f" ||
54384            case $ac_f in
54385            [\\/$]*) false;;
54386            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
54387            esac ||
54388            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
54389 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
54390    { (exit 1); exit 1; }; };;
54391       esac
54392       ac_file_inputs="$ac_file_inputs $ac_f"
54393     done
54394
54395     # Let's still pretend it is `configure' which instantiates (i.e., don't
54396     # use $as_me), people would be surprised to read:
54397     #    /* config.h.  Generated by config.status.  */
54398     configure_input="Generated from "`IFS=:
54399           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
54400     if test x"$ac_file" != x-; then
54401       configure_input="$ac_file.  $configure_input"
54402       { echo "$as_me:$LINENO: creating $ac_file" >&5
54403 echo "$as_me: creating $ac_file" >&6;}
54404     fi
54405
54406     case $ac_tag in
54407     *:-:* | *:-) cat >"$tmp/stdin";;
54408     esac
54409     ;;
54410   esac
54411
54412   ac_dir=`$as_dirname -- "$ac_file" ||
54413 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
54414          X"$ac_file" : 'X\(//\)[^/]' \| \
54415          X"$ac_file" : 'X\(//\)$' \| \
54416          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
54417 echo X"$ac_file" |
54418     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
54419             s//\1/
54420             q
54421           }
54422           /^X\(\/\/\)[^/].*/{
54423             s//\1/
54424             q
54425           }
54426           /^X\(\/\/\)$/{
54427             s//\1/
54428             q
54429           }
54430           /^X\(\/\).*/{
54431             s//\1/
54432             q
54433           }
54434           s/.*/./; q'`
54435   { as_dir="$ac_dir"
54436   case $as_dir in #(
54437   -*) as_dir=./$as_dir;;
54438   esac
54439   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
54440     as_dirs=
54441     while :; do
54442       case $as_dir in #(
54443       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
54444       *) as_qdir=$as_dir;;
54445       esac
54446       as_dirs="'$as_qdir' $as_dirs"
54447       as_dir=`$as_dirname -- "$as_dir" ||
54448 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
54449          X"$as_dir" : 'X\(//\)[^/]' \| \
54450          X"$as_dir" : 'X\(//\)$' \| \
54451          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
54452 echo X"$as_dir" |
54453     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
54454             s//\1/
54455             q
54456           }
54457           /^X\(\/\/\)[^/].*/{
54458             s//\1/
54459             q
54460           }
54461           /^X\(\/\/\)$/{
54462             s//\1/
54463             q
54464           }
54465           /^X\(\/\).*/{
54466             s//\1/
54467             q
54468           }
54469           s/.*/./; q'`
54470       test -d "$as_dir" && break
54471     done
54472     test -z "$as_dirs" || eval "mkdir $as_dirs"
54473   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
54474 echo "$as_me: error: cannot create directory $as_dir" >&2;}
54475    { (exit 1); exit 1; }; }; }
54476   ac_builddir=.
54477
54478 case "$ac_dir" in
54479 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
54480 *)
54481   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
54482   # A ".." for each directory in $ac_dir_suffix.
54483   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
54484   case $ac_top_builddir_sub in
54485   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
54486   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
54487   esac ;;
54488 esac
54489 ac_abs_top_builddir=$ac_pwd
54490 ac_abs_builddir=$ac_pwd$ac_dir_suffix
54491 # for backward compatibility:
54492 ac_top_builddir=$ac_top_build_prefix
54493
54494 case $srcdir in
54495   .)  # We are building in place.
54496     ac_srcdir=.
54497     ac_top_srcdir=$ac_top_builddir_sub
54498     ac_abs_top_srcdir=$ac_pwd ;;
54499   [\\/]* | ?:[\\/]* )  # Absolute name.
54500     ac_srcdir=$srcdir$ac_dir_suffix;
54501     ac_top_srcdir=$srcdir
54502     ac_abs_top_srcdir=$srcdir ;;
54503   *) # Relative name.
54504     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
54505     ac_top_srcdir=$ac_top_build_prefix$srcdir
54506     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
54507 esac
54508 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
54509
54510
54511   case $ac_mode in
54512   :F)
54513   #
54514   # CONFIG_FILE
54515   #
54516
54517   case $INSTALL in
54518   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
54519   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
54520   esac
54521 _ACEOF
54522
54523 cat >>$CONFIG_STATUS <<\_ACEOF
54524 # If the template does not know about datarootdir, expand it.
54525 # FIXME: This hack should be removed a few years after 2.60.
54526 ac_datarootdir_hack=; ac_datarootdir_seen=
54527
54528 case `sed -n '/datarootdir/ {
54529   p
54530   q
54531 }
54532 /@datadir@/p
54533 /@docdir@/p
54534 /@infodir@/p
54535 /@localedir@/p
54536 /@mandir@/p
54537 ' $ac_file_inputs` in
54538 *datarootdir*) ac_datarootdir_seen=yes;;
54539 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
54540   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
54541 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
54542 _ACEOF
54543 cat >>$CONFIG_STATUS <<_ACEOF
54544   ac_datarootdir_hack='
54545   s&@datadir@&$datadir&g
54546   s&@docdir@&$docdir&g
54547   s&@infodir@&$infodir&g
54548   s&@localedir@&$localedir&g
54549   s&@mandir@&$mandir&g
54550     s&\\\${datarootdir}&$datarootdir&g' ;;
54551 esac
54552 _ACEOF
54553
54554 # Neutralize VPATH when `$srcdir' = `.'.
54555 # Shell code in configure.ac might set extrasub.
54556 # FIXME: do we really want to maintain this feature?
54557 cat >>$CONFIG_STATUS <<_ACEOF
54558   sed "$ac_vpsub
54559 $extrasub
54560 _ACEOF
54561 cat >>$CONFIG_STATUS <<\_ACEOF
54562 :t
54563 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
54564 s&@configure_input@&$configure_input&;t t
54565 s&@top_builddir@&$ac_top_builddir_sub&;t t
54566 s&@srcdir@&$ac_srcdir&;t t
54567 s&@abs_srcdir@&$ac_abs_srcdir&;t t
54568 s&@top_srcdir@&$ac_top_srcdir&;t t
54569 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
54570 s&@builddir@&$ac_builddir&;t t
54571 s&@abs_builddir@&$ac_abs_builddir&;t t
54572 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
54573 s&@INSTALL@&$ac_INSTALL&;t t
54574 $ac_datarootdir_hack
54575 " $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
54576
54577 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
54578   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
54579   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
54580   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
54581 which seems to be undefined.  Please make sure it is defined." >&5
54582 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
54583 which seems to be undefined.  Please make sure it is defined." >&2;}
54584
54585   rm -f "$tmp/stdin"
54586   case $ac_file in
54587   -) cat "$tmp/out"; rm -f "$tmp/out";;
54588   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
54589   esac
54590  ;;
54591   :H)
54592   #
54593   # CONFIG_HEADER
54594   #
54595 _ACEOF
54596
54597 # Transform confdefs.h into a sed script `conftest.defines', that
54598 # substitutes the proper values into config.h.in to produce config.h.
54599 rm -f conftest.defines conftest.tail
54600 # First, append a space to every undef/define line, to ease matching.
54601 echo 's/$/ /' >conftest.defines
54602 # Then, protect against being on the right side of a sed subst, or in
54603 # an unquoted here document, in config.status.  If some macros were
54604 # called several times there might be several #defines for the same
54605 # symbol, which is useless.  But do not sort them, since the last
54606 # AC_DEFINE must be honored.
54607 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
54608 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
54609 # NAME is the cpp macro being defined, VALUE is the value it is being given.
54610 # PARAMS is the parameter list in the macro definition--in most cases, it's
54611 # just an empty string.
54612 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
54613 ac_dB='\\)[      (].*,\\1define\\2'
54614 ac_dC=' '
54615 ac_dD=' ,'
54616
54617 uniq confdefs.h |
54618   sed -n '
54619         t rset
54620         :rset
54621         s/^[     ]*#[    ]*define[       ][      ]*//
54622         t ok
54623         d
54624         :ok
54625         s/[\\&,]/\\&/g
54626         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
54627         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
54628   ' >>conftest.defines
54629
54630 # Remove the space that was appended to ease matching.
54631 # Then replace #undef with comments.  This is necessary, for
54632 # example, in the case of _POSIX_SOURCE, which is predefined and required
54633 # on some systems where configure will not decide to define it.
54634 # (The regexp can be short, since the line contains either #define or #undef.)
54635 echo 's/ $//
54636 s,^[     #]*u.*,/* & */,' >>conftest.defines
54637
54638 # Break up conftest.defines:
54639 ac_max_sed_lines=50
54640
54641 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
54642 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
54643 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
54644 # et cetera.
54645 ac_in='$ac_file_inputs'
54646 ac_out='"$tmp/out1"'
54647 ac_nxt='"$tmp/out2"'
54648
54649 while :
54650 do
54651   # Write a here document:
54652     cat >>$CONFIG_STATUS <<_ACEOF
54653     # First, check the format of the line:
54654     cat >"\$tmp/defines.sed" <<\\CEOF
54655 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
54656 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
54657 b
54658 :def
54659 _ACEOF
54660   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
54661   echo 'CEOF
54662     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
54663   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
54664   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
54665   grep . conftest.tail >/dev/null || break
54666   rm -f conftest.defines
54667   mv conftest.tail conftest.defines
54668 done
54669 rm -f conftest.defines conftest.tail
54670
54671 echo "ac_result=$ac_in" >>$CONFIG_STATUS
54672 cat >>$CONFIG_STATUS <<\_ACEOF
54673   if test x"$ac_file" != x-; then
54674     echo "/* $configure_input  */" >"$tmp/config.h"
54675     cat "$ac_result" >>"$tmp/config.h"
54676     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
54677       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
54678 echo "$as_me: $ac_file is unchanged" >&6;}
54679     else
54680       rm -f $ac_file
54681       mv "$tmp/config.h" $ac_file
54682     fi
54683   else
54684     echo "/* $configure_input  */"
54685     cat "$ac_result"
54686   fi
54687   rm -f "$tmp/out12"
54688  ;;
54689
54690   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
54691 echo "$as_me: executing $ac_file commands" >&6;}
54692  ;;
54693   esac
54694
54695
54696   case $ac_file$ac_mode in
54697     "rcdefs.h":C)
54698             mkdir -p $outdir &&
54699             $CPP $infile | sed 's/^# *[1-9].*//;s/^ *//;/./,/^$/!d' > $outdir/rcdefs.h
54700          ;;
54701     "lib/wx/config/${TOOLCHAIN_FULLNAME}":F)  chmod +x lib/wx/config/${TOOLCHAIN_FULLNAME}  ;;
54702     "lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}":F)  chmod +x lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}  ;;
54703     "utils/ifacecheck/rungccxml.sh":F)  chmod +x utils/ifacecheck/rungccxml.sh  ;;
54704     "wx-config":C)  rm -f wx-config
54705                      ${LN_S} lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} wx-config
54706                     ;;
54707
54708   esac
54709 done # for ac_tag
54710
54711
54712 { (exit 0); exit 0; }
54713 _ACEOF
54714 chmod +x $CONFIG_STATUS
54715 ac_clean_files=$ac_clean_files_save
54716
54717
54718 # configure is writing to config.log, and then calls config.status.
54719 # config.status does its own redirection, appending to config.log.
54720 # Unfortunately, on DOS this fails, as config.log is still kept open
54721 # by configure, so config.status won't be able to write to it; its
54722 # output is simply discarded.  So we exec the FD to /dev/null,
54723 # effectively closing config.log, so it can be properly (re)opened and
54724 # appended to by config.status.  When coming back to configure, we
54725 # need to make the FD available again.
54726 if test "$no_create" != yes; then
54727   ac_cs_success=:
54728   ac_config_status_args=
54729   test "$silent" = yes &&
54730     ac_config_status_args="$ac_config_status_args --quiet"
54731   exec 5>/dev/null
54732   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
54733   exec 5>>config.log
54734   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
54735   # would make configure fail if this is the last instruction.
54736   $ac_cs_success || { (exit 1); exit 1; }
54737 fi
54738
54739 #
54740 # CONFIG_SUBDIRS section.
54741 #
54742 if test "$no_recursion" != yes; then
54743
54744   # Remove --cache-file and --srcdir arguments so they do not pile up.
54745   ac_sub_configure_args=
54746   ac_prev=
54747   eval "set x $ac_configure_args"
54748   shift
54749   for ac_arg
54750   do
54751     if test -n "$ac_prev"; then
54752       ac_prev=
54753       continue
54754     fi
54755     case $ac_arg in
54756     -cache-file | --cache-file | --cache-fil | --cache-fi \
54757     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
54758       ac_prev=cache_file ;;
54759     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
54760     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
54761     | --c=*)
54762       ;;
54763     --config-cache | -C)
54764       ;;
54765     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
54766       ac_prev=srcdir ;;
54767     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
54768       ;;
54769     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
54770       ac_prev=prefix ;;
54771     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
54772       ;;
54773     *)
54774       case $ac_arg in
54775       *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
54776       esac
54777       ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
54778     esac
54779   done
54780
54781   # Always prepend --prefix to ensure using the same prefix
54782   # in subdir configurations.
54783   ac_arg="--prefix=$prefix"
54784   case $ac_arg in
54785   *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
54786   esac
54787   ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
54788
54789   # Pass --silent
54790   if test "$silent" = yes; then
54791     ac_sub_configure_args="--silent $ac_sub_configure_args"
54792   fi
54793
54794   ac_popdir=`pwd`
54795   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
54796
54797     # Do not complain, so a configure script can configure whichever
54798     # parts of a large source tree are present.
54799     test -d "$srcdir/$ac_dir" || continue
54800
54801     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
54802     echo "$as_me:$LINENO: $ac_msg" >&5
54803     echo "$ac_msg" >&6
54804     { as_dir="$ac_dir"
54805   case $as_dir in #(
54806   -*) as_dir=./$as_dir;;
54807   esac
54808   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
54809     as_dirs=
54810     while :; do
54811       case $as_dir in #(
54812       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
54813       *) as_qdir=$as_dir;;
54814       esac
54815       as_dirs="'$as_qdir' $as_dirs"
54816       as_dir=`$as_dirname -- "$as_dir" ||
54817 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
54818          X"$as_dir" : 'X\(//\)[^/]' \| \
54819          X"$as_dir" : 'X\(//\)$' \| \
54820          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
54821 echo X"$as_dir" |
54822     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
54823             s//\1/
54824             q
54825           }
54826           /^X\(\/\/\)[^/].*/{
54827             s//\1/
54828             q
54829           }
54830           /^X\(\/\/\)$/{
54831             s//\1/
54832             q
54833           }
54834           /^X\(\/\).*/{
54835             s//\1/
54836             q
54837           }
54838           s/.*/./; q'`
54839       test -d "$as_dir" && break
54840     done
54841     test -z "$as_dirs" || eval "mkdir $as_dirs"
54842   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
54843 echo "$as_me: error: cannot create directory $as_dir" >&2;}
54844    { (exit 1); exit 1; }; }; }
54845     ac_builddir=.
54846
54847 case "$ac_dir" in
54848 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
54849 *)
54850   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
54851   # A ".." for each directory in $ac_dir_suffix.
54852   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
54853   case $ac_top_builddir_sub in
54854   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
54855   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
54856   esac ;;
54857 esac
54858 ac_abs_top_builddir=$ac_pwd
54859 ac_abs_builddir=$ac_pwd$ac_dir_suffix
54860 # for backward compatibility:
54861 ac_top_builddir=$ac_top_build_prefix
54862
54863 case $srcdir in
54864   .)  # We are building in place.
54865     ac_srcdir=.
54866     ac_top_srcdir=$ac_top_builddir_sub
54867     ac_abs_top_srcdir=$ac_pwd ;;
54868   [\\/]* | ?:[\\/]* )  # Absolute name.
54869     ac_srcdir=$srcdir$ac_dir_suffix;
54870     ac_top_srcdir=$srcdir
54871     ac_abs_top_srcdir=$srcdir ;;
54872   *) # Relative name.
54873     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
54874     ac_top_srcdir=$ac_top_build_prefix$srcdir
54875     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
54876 esac
54877 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
54878
54879
54880     cd "$ac_dir"
54881
54882     # Check for guested configure; otherwise get Cygnus style configure.
54883     if test -f "$ac_srcdir/configure.gnu"; then
54884       ac_sub_configure=$ac_srcdir/configure.gnu
54885     elif test -f "$ac_srcdir/configure"; then
54886       ac_sub_configure=$ac_srcdir/configure
54887     elif test -f "$ac_srcdir/configure.in"; then
54888       # This should be Cygnus configure.
54889       ac_sub_configure=$ac_aux_dir/configure
54890     else
54891       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
54892 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
54893       ac_sub_configure=
54894     fi
54895
54896     # The recursion is here.
54897     if test -n "$ac_sub_configure"; then
54898       # Make the cache file name correct relative to the subdirectory.
54899       case $cache_file in
54900       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
54901       *) # Relative name.
54902         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
54903       esac
54904
54905       { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
54906 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
54907       # The eval makes quoting arguments work.
54908       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
54909            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
54910         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
54911 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
54912    { (exit 1); exit 1; }; }
54913     fi
54914
54915     cd "$ac_popdir"
54916   done
54917 fi
54918
54919
54920 echo
54921 echo "Configured wxWidgets ${WX_VERSION} for \`${host}'"
54922 echo ""
54923 echo "  Which GUI toolkit should wxWidgets use?                 ${TOOLKIT_DESC}"
54924 echo "  Should wxWidgets be compiled into single library?       ${wxUSE_MONOLITHIC:-yes}"
54925 echo "  Should wxWidgets be linked as a shared library?         ${wxUSE_SHARED:-no}"
54926 echo $ECHO_N "  Should wxWidgets support Unicode?                       ${wxUSE_UNICODE:-no}$ECHO_C"
54927 if test "$wxUSE_UNICODE" = "yes"; then
54928     if test "$wxUSE_UNICODE_UTF8" = "yes"; then
54929         echo " (using UTF-8)"
54930     else
54931         echo " (using wchar_t)"
54932     fi
54933 else
54934     echo
54935 fi
54936
54937 echo "  What level of wxWidgets compatibility should be enabled?"
54938 echo "                                       wxWidgets 2.6      ${WXWIN_COMPATIBILITY_2_6:-no}"
54939 echo "                                       wxWidgets 2.8      ${WXWIN_COMPATIBILITY_2_8:-yes}"
54940
54941 echo "  Which libraries should wxWidgets use?"
54942 echo "                                       STL                ${wxUSE_STL}"
54943 echo "                                       jpeg               ${wxUSE_LIBJPEG-none}"
54944 echo "                                       png                ${wxUSE_LIBPNG-none}"
54945 echo "                                       regex              ${wxUSE_REGEX}"
54946 echo "                                       tiff               ${wxUSE_LIBTIFF-none}"
54947 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
54948 echo "                                       xpm                ${wxUSE_LIBXPM-none}"
54949 fi
54950 echo "                                       zlib               ${wxUSE_ZLIB}"
54951 echo "                                       expat              ${wxUSE_EXPAT}"
54952 echo "                                       libmspack          ${wxUSE_LIBMSPACK}"
54953 echo "                                       sdl                ${wxUSE_LIBSDL}"
54954
54955 echo ""
54956