Add new wxTreeListCtrl class.
[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-bannerwindow   use wxBannerWindow class
1813   --enable-artstd         use standard XPM icons in wxArtProvider
1814   --enable-arttango       use Tango icons in wxArtProvider
1815   --enable-bmpbutton      use wxBitmapButton class
1816   --enable-bmpcombobox    use wxBitmapComboBox class
1817   --enable-button         use wxButton class
1818   --enable-calendar       use wxCalendarCtrl class
1819   --enable-caret          use wxCaret class
1820   --enable-checkbox       use wxCheckBox class
1821   --enable-checklst       use wxCheckListBox (listbox with checkboxes) class
1822   --enable-choice         use wxChoice class
1823   --enable-choicebook     use wxChoicebook class
1824   --enable-collpane       use wxCollapsiblePane class
1825   --enable-colourpicker   use wxColourPickerCtrl class
1826   --enable-combobox       use wxComboBox class
1827   --enable-comboctrl      use wxComboCtrl class
1828   --enable-commandlinkbutton      use wxCommmandLinkButton class
1829   --enable-dataviewctrl   use wxDataViewCtrl class
1830   --enable-datepick       use wxDatePickerCtrl class
1831   --enable-detect_sm      use code to detect X11 session manager
1832   --enable-dirpicker      use wxDirPickerCtrl class
1833   --enable-display        use wxDisplay class
1834   --enable-editablebox    use wxEditableListBox class
1835   --enable-filectrl       use wxFileCtrl class
1836   --enable-filepicker     use wxFilePickerCtrl class
1837   --enable-fontpicker     use wxFontPickerCtrl class
1838   --enable-gauge          use wxGauge class
1839   --enable-grid           use wxGrid class
1840   --enable-headerctrl     use wxHeaderCtrl class
1841   --enable-hyperlink      use wxHyperlinkCtrl class
1842   --enable-imaglist       use wxImageList class
1843   --enable-infobar        use wxInfoBar class
1844   --enable-listbook       use wxListbook class
1845   --enable-listbox        use wxListBox class
1846   --enable-listctrl       use wxListCtrl class
1847   --enable-notebook       use wxNotebook class
1848   --enable-notifmsg       use wxNotificationMessage class
1849   --enable-odcombobox     use wxOwnerDrawnComboBox class
1850   --enable-popupwin       use wxPopUpWindow class
1851   --enable-radiobox       use wxRadioBox class
1852   --enable-radiobtn       use wxRadioButton class
1853   --enable-richmsgdlg     use wxRichMessageDialog class
1854   --enable-rearrangectrl  use wxRearrangeList/Ctrl/Dialog
1855   --enable-sash           use wxSashWindow class
1856   --enable-scrollbar      use wxScrollBar class and scrollable windows
1857   --enable-searchctrl     use wxSearchCtrl class
1858   --enable-slider         use wxSlider class
1859   --enable-spinbtn        use wxSpinButton class
1860   --enable-spinctrl       use wxSpinCtrl class
1861   --enable-splitter       use wxSplitterWindow class
1862   --enable-statbmp        use wxStaticBitmap class
1863   --enable-statbox        use wxStaticBox class
1864   --enable-statline       use wxStaticLine class
1865   --enable-stattext       use wxStaticText class
1866   --enable-statusbar      use wxStatusBar class
1867   --enable-taskbaricon    use wxTaskBarIcon class
1868   --enable-tbarnative     use native wxToolBar class
1869   --enable-textctrl       use wxTextCtrl class
1870   --enable-tipwindow      use wxTipWindow class
1871   --enable-togglebtn      use wxToggleButton class
1872   --enable-toolbar        use wxToolBar class
1873   --enable-toolbook       use wxToolbook class
1874   --enable-treebook       use wxTreebook class
1875   --enable-treectrl       use wxTreeCtrl class
1876   --enable-treelist       use wxTreeListCtrl class
1877   --enable-commondlg      use all common dialogs
1878   --enable-aboutdlg       use wxAboutBox
1879   --enable-choicedlg      use wxChoiceDialog
1880   --enable-coldlg         use wxColourDialog
1881   --enable-filedlg        use wxFileDialog
1882   --enable-finddlg        use wxFindReplaceDialog
1883   --enable-fontdlg        use wxFontDialog
1884   --enable-dirdlg         use wxDirDialog
1885   --enable-msgdlg         use wxMessageDialog
1886   --enable-numberdlg      use wxNumberEntryDialog
1887   --enable-splash         use wxSplashScreen
1888   --enable-textdlg        use wxTextDialog
1889   --enable-tipdlg         use startup tips
1890   --enable-progressdlg    use wxProgressDialog
1891   --enable-wizarddlg      use wxWizard
1892   --enable-menus          use wxMenu/wxMenuBar/wxMenuItem classes
1893   --enable-miniframe      use wxMiniFrame class
1894   --enable-tooltips       use wxToolTip class
1895   --enable-splines        use spline drawing code
1896   --enable-mousewheel     use mousewheel
1897   --enable-validators     use wxValidator and derived classes
1898   --enable-busyinfo       use wxBusyInfo
1899   --enable-joystick       use wxJoystick
1900   --enable-metafiles      use wxMetaFile (Win32 only)
1901   --enable-dragimage      use wxDragImage
1902   --enable-accessibility  enable accessibility support
1903   --enable-uiactionsim    use wxUIActionSimulator (experimental)
1904   --enable-dctransform    use wxDC::SetTransformMatrix and related
1905   --enable-palette        use wxPalette class
1906   --enable-image          use wxImage class
1907   --enable-gif            use gif images (GIF file format)
1908   --enable-pcx            use pcx images (PCX file format)
1909   --enable-tga            use tga images (TGA file format)
1910   --enable-iff            use iff images (IFF file format)
1911   --enable-pnm            use pnm images (PNM file format)
1912   --enable-xpm            use xpm images (XPM file format)
1913   --enable-ico_cur        use Windows ICO and CUR formats
1914   --enable-dccache        cache temporary wxDC objects (Win32 only)
1915   --enable-ps-in-msw      use PS printing in wxMSW (Win32 only)
1916   --enable-ownerdrawn     use owner drawn controls (Win32 and OS/2 only)
1917   --enable-uxtheme        enable support for Windows XP themed look (Win32 only)
1918   --enable-wxdib          use wxDIB class (Win32 only)
1919   --enable-autoidman      use automatic ids management
1920   --disable-largefile     omit support for large files
1921   --disable-gtktest       do not try to compile and run a test GTK+ program
1922   --disable-gtktest       Do not try to compile and run a test GTK program
1923   --disable-sdltest       Do not try to compile and run a test SDL program
1924   --enable-omf            use OMF object format (OS/2)
1925   --disable-dependency-tracking
1926                           don't use dependency tracking even if the compiler
1927                           can
1928   --disable-precomp-headers
1929                           don't use precompiled headers even if compiler can
1930
1931 Optional Packages:
1932   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1933   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1934   --without-subdirs       don't generate makefiles for samples/demos/...
1935   --with-flavour=NAME     specify a name to identify this build
1936   --with-themes=all|list  use only the specified comma-separated list of wxUniversal themes
1937   --with-gtk[=VERSION]    use GTK+, VERSION can be 2 (default), 1 or "any"
1938   --with-motif            use Motif/Lesstif
1939   --with-osx_carbon       use Mac OS X (Carbon)
1940   --with-osx_cocoa        use Mac OS X (Cocoa)
1941   --with-osx_iphone       use iPhone OS X port
1942   --with-osx              use Mac OS X (default port, currently Carbon)
1943   --with-carbon           same as --with-osx_carbon
1944   --with-cocoa            same as --with-osx_cocoa
1945   --with-iphone           same as --with-osx_iphone
1946   --with-mac              same as --with-osx
1947   --with-old_cocoa        use old, deprecated, Cocoa port
1948   --with-wine             use Wine
1949   --with-msw              use MS-Windows
1950   --with-pm               use OS/2 Presentation Manager
1951   --with-mgl              use SciTech MGL
1952   --with-directfb         use DirectFB
1953   --with-microwin         use MicroWindows
1954   --with-x11              use X11
1955   --with-libpng           use libpng (PNG image format)
1956   --with-libjpeg          use libjpeg (JPEG file format)
1957   --with-libtiff          use libtiff (TIFF file format)
1958   --with-libxpm           use libxpm (XPM file format)
1959   --with-libiconv         use libiconv (character conversion)
1960   --with-libmspack        use libmspack (CHM help files loading)
1961   --without-gtkprint      don't use GTK printing support
1962   --without-gnomeprint    don't use GNOME printing libraries
1963   --with-gnomevfs         use GNOME VFS for associating MIME types
1964   --with-hildon           use Hildon framework for Nokia 770/800/810
1965   --with-opengl           use OpenGL (or Mesa)
1966   --with-dmalloc          use dmalloc library (http://dmalloc.com/)
1967   --with-sdl              use SDL for audio on Unix
1968   --with-regex            enable support for wxRegEx class
1969   --with-zlib             use zlib for LZW compression
1970   --with-expat            enable XML support using expat parser
1971   --with-macosx-sdk=PATH  use an OS X SDK at PATH
1972   --with-macosx-version-min=VER   build binaries which require at least this OS X version
1973   --with-gtk-prefix=PFX   Prefix where GTK is installed (optional)
1974   --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)
1975   --with-x                use the X Window System
1976   --with-libiconv-prefix=DIR  search for libiconv in DIR/include and DIR/lib
1977   --with-sdl-prefix=PFX   Prefix where SDL is installed (optional)
1978   --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1979   --with-cppunit-prefix=PFX   Prefix where CppUnit is installed (optional)
1980   --with-cppunit-exec-prefix=PFX  Exec prefix where CppUnit is installed (optional)
1981
1982 Some influential environment variables:
1983   CC          C compiler command
1984   CFLAGS      C compiler flags
1985   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1986               nonstandard directory <lib dir>
1987   LIBS        libraries to pass to the linker, e.g. -l<library>
1988   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1989               you have headers in a nonstandard directory <include dir>
1990   CPP         C preprocessor
1991   CXX         C++ compiler command
1992   CXXFLAGS    C++ compiler flags
1993   CXXCPP      C++ preprocessor
1994   PKG_CONFIG  path to pkg-config utility
1995   DIRECTFB_CFLAGS
1996               C compiler flags for DIRECTFB, overriding pkg-config
1997   DIRECTFB_LIBS
1998               linker flags for DIRECTFB, overriding pkg-config
1999   XMKMF       Path to xmkmf, Makefile generator for X Window System
2000   PANGOX_CFLAGS
2001               C compiler flags for PANGOX, overriding pkg-config
2002   PANGOX_LIBS linker flags for PANGOX, overriding pkg-config
2003   PANGOFT2_CFLAGS
2004               C compiler flags for PANGOFT2, overriding pkg-config
2005   PANGOFT2_LIBS
2006               linker flags for PANGOFT2, overriding pkg-config
2007   PANGOXFT_CFLAGS
2008               C compiler flags for PANGOXFT, overriding pkg-config
2009   PANGOXFT_LIBS
2010               linker flags for PANGOXFT, overriding pkg-config
2011   GTKPRINT_CFLAGS
2012               C compiler flags for GTKPRINT, overriding pkg-config
2013   GTKPRINT_LIBS
2014               linker flags for GTKPRINT, overriding pkg-config
2015   LIBGNOMEPRINTUI_CFLAGS
2016               C compiler flags for LIBGNOMEPRINTUI, overriding pkg-config
2017   LIBGNOMEPRINTUI_LIBS
2018               linker flags for LIBGNOMEPRINTUI, overriding pkg-config
2019   GNOMEVFS_CFLAGS
2020               C compiler flags for GNOMEVFS, overriding pkg-config
2021   GNOMEVFS_LIBS
2022               linker flags for GNOMEVFS, overriding pkg-config
2023   HILDON_CFLAGS
2024               C compiler flags for HILDON, overriding pkg-config
2025   HILDON_LIBS linker flags for HILDON, overriding pkg-config
2026   HILDON2_CFLAGS
2027               C compiler flags for HILDON2, overriding pkg-config
2028   HILDON2_LIBS
2029               linker flags for HILDON2, overriding pkg-config
2030   CAIRO_CFLAGS
2031               C compiler flags for CAIRO, overriding pkg-config
2032   CAIRO_LIBS  linker flags for CAIRO, overriding pkg-config
2033   GST_CFLAGS  C compiler flags for GST, overriding pkg-config
2034   GST_LIBS    linker flags for GST, overriding pkg-config
2035
2036 Use these variables to override the choices made by `configure' or to help
2037 it to find libraries and programs with nonstandard names/locations.
2038
2039 Report bugs to <wx-dev@lists.wxwidgets.org>.
2040 _ACEOF
2041 ac_status=$?
2042 fi
2043
2044 if test "$ac_init_help" = "recursive"; then
2045   # If there are subdirs, report their specific --help.
2046   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2047     test -d "$ac_dir" || continue
2048     ac_builddir=.
2049
2050 case "$ac_dir" in
2051 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2052 *)
2053   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
2054   # A ".." for each directory in $ac_dir_suffix.
2055   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
2056   case $ac_top_builddir_sub in
2057   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2058   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2059   esac ;;
2060 esac
2061 ac_abs_top_builddir=$ac_pwd
2062 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2063 # for backward compatibility:
2064 ac_top_builddir=$ac_top_build_prefix
2065
2066 case $srcdir in
2067   .)  # We are building in place.
2068     ac_srcdir=.
2069     ac_top_srcdir=$ac_top_builddir_sub
2070     ac_abs_top_srcdir=$ac_pwd ;;
2071   [\\/]* | ?:[\\/]* )  # Absolute name.
2072     ac_srcdir=$srcdir$ac_dir_suffix;
2073     ac_top_srcdir=$srcdir
2074     ac_abs_top_srcdir=$srcdir ;;
2075   *) # Relative name.
2076     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2077     ac_top_srcdir=$ac_top_build_prefix$srcdir
2078     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2079 esac
2080 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2081
2082     cd "$ac_dir" || { ac_status=$?; continue; }
2083     # Check for guested configure.
2084     if test -f "$ac_srcdir/configure.gnu"; then
2085       echo &&
2086       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2087     elif test -f "$ac_srcdir/configure"; then
2088       echo &&
2089       $SHELL "$ac_srcdir/configure" --help=recursive
2090     else
2091       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2092     fi || ac_status=$?
2093     cd "$ac_pwd" || { ac_status=$?; break; }
2094   done
2095 fi
2096
2097 test -n "$ac_init_help" && exit $ac_status
2098 if $ac_init_version; then
2099   cat <<\_ACEOF
2100 wxWidgets configure 2.9.3
2101 generated by GNU Autoconf 2.61
2102
2103 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
2104 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
2105 This configure script is free software; the Free Software Foundation
2106 gives unlimited permission to copy, distribute and modify it.
2107 _ACEOF
2108   exit
2109 fi
2110 cat >config.log <<_ACEOF
2111 This file contains any messages produced by compilers while
2112 running configure, to aid debugging if configure makes a mistake.
2113
2114 It was created by wxWidgets $as_me 2.9.3, which was
2115 generated by GNU Autoconf 2.61.  Invocation command line was
2116
2117   $ $0 $@
2118
2119 _ACEOF
2120 exec 5>>config.log
2121 {
2122 cat <<_ASUNAME
2123 ## --------- ##
2124 ## Platform. ##
2125 ## --------- ##
2126
2127 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2128 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2129 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2130 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2131 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2132
2133 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2134 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2135
2136 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2137 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2138 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2139 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2140 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2141 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2142 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2143
2144 _ASUNAME
2145
2146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2147 for as_dir in $PATH
2148 do
2149   IFS=$as_save_IFS
2150   test -z "$as_dir" && as_dir=.
2151   echo "PATH: $as_dir"
2152 done
2153 IFS=$as_save_IFS
2154
2155 } >&5
2156
2157 cat >&5 <<_ACEOF
2158
2159
2160 ## ----------- ##
2161 ## Core tests. ##
2162 ## ----------- ##
2163
2164 _ACEOF
2165
2166
2167 # Keep a trace of the command line.
2168 # Strip out --no-create and --no-recursion so they do not pile up.
2169 # Strip out --silent because we don't want to record it for future runs.
2170 # Also quote any args containing shell meta-characters.
2171 # Make two passes to allow for proper duplicate-argument suppression.
2172 ac_configure_args=
2173 ac_configure_args0=
2174 ac_configure_args1=
2175 ac_must_keep_next=false
2176 for ac_pass in 1 2
2177 do
2178   for ac_arg
2179   do
2180     case $ac_arg in
2181     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2182     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2183     | -silent | --silent | --silen | --sile | --sil)
2184       continue ;;
2185     *\'*)
2186       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2187     esac
2188     case $ac_pass in
2189     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
2190     2)
2191       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
2192       if test $ac_must_keep_next = true; then
2193         ac_must_keep_next=false # Got value, back to normal.
2194       else
2195         case $ac_arg in
2196           *=* | --config-cache | -C | -disable-* | --disable-* \
2197           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2198           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2199           | -with-* | --with-* | -without-* | --without-* | --x)
2200             case "$ac_configure_args0 " in
2201               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2202             esac
2203             ;;
2204           -* ) ac_must_keep_next=true ;;
2205         esac
2206       fi
2207       ac_configure_args="$ac_configure_args '$ac_arg'"
2208       ;;
2209     esac
2210   done
2211 done
2212 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
2213 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
2214
2215 # When interrupted or exit'd, cleanup temporary files, and complete
2216 # config.log.  We remove comments because anyway the quotes in there
2217 # would cause problems or look ugly.
2218 # WARNING: Use '\'' to represent an apostrophe within the trap.
2219 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2220 trap 'exit_status=$?
2221   # Save into config.log some information that might help in debugging.
2222   {
2223     echo
2224
2225     cat <<\_ASBOX
2226 ## ---------------- ##
2227 ## Cache variables. ##
2228 ## ---------------- ##
2229 _ASBOX
2230     echo
2231     # The following way of writing the cache mishandles newlines in values,
2232 (
2233   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2234     eval ac_val=\$$ac_var
2235     case $ac_val in #(
2236     *${as_nl}*)
2237       case $ac_var in #(
2238       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
2239 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
2240       esac
2241       case $ac_var in #(
2242       _ | IFS | as_nl) ;; #(
2243       *) $as_unset $ac_var ;;
2244       esac ;;
2245     esac
2246   done
2247   (set) 2>&1 |
2248     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2249     *${as_nl}ac_space=\ *)
2250       sed -n \
2251         "s/'\''/'\''\\\\'\'''\''/g;
2252           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2253       ;; #(
2254     *)
2255       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2256       ;;
2257     esac |
2258     sort
2259 )
2260     echo
2261
2262     cat <<\_ASBOX
2263 ## ----------------- ##
2264 ## Output variables. ##
2265 ## ----------------- ##
2266 _ASBOX
2267     echo
2268     for ac_var in $ac_subst_vars
2269     do
2270       eval ac_val=\$$ac_var
2271       case $ac_val in
2272       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2273       esac
2274       echo "$ac_var='\''$ac_val'\''"
2275     done | sort
2276     echo
2277
2278     if test -n "$ac_subst_files"; then
2279       cat <<\_ASBOX
2280 ## ------------------- ##
2281 ## File substitutions. ##
2282 ## ------------------- ##
2283 _ASBOX
2284       echo
2285       for ac_var in $ac_subst_files
2286       do
2287         eval ac_val=\$$ac_var
2288         case $ac_val in
2289         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2290         esac
2291         echo "$ac_var='\''$ac_val'\''"
2292       done | sort
2293       echo
2294     fi
2295
2296     if test -s confdefs.h; then
2297       cat <<\_ASBOX
2298 ## ----------- ##
2299 ## confdefs.h. ##
2300 ## ----------- ##
2301 _ASBOX
2302       echo
2303       cat confdefs.h
2304       echo
2305     fi
2306     test "$ac_signal" != 0 &&
2307       echo "$as_me: caught signal $ac_signal"
2308     echo "$as_me: exit $exit_status"
2309   } >&5
2310   rm -f core *.core core.conftest.* &&
2311     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2312     exit $exit_status
2313 ' 0
2314 for ac_signal in 1 2 13 15; do
2315   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
2316 done
2317 ac_signal=0
2318
2319 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2320 rm -f -r conftest* confdefs.h
2321
2322 # Predefined preprocessor variables.
2323
2324 cat >>confdefs.h <<_ACEOF
2325 #define PACKAGE_NAME "$PACKAGE_NAME"
2326 _ACEOF
2327
2328
2329 cat >>confdefs.h <<_ACEOF
2330 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2331 _ACEOF
2332
2333
2334 cat >>confdefs.h <<_ACEOF
2335 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2336 _ACEOF
2337
2338
2339 cat >>confdefs.h <<_ACEOF
2340 #define PACKAGE_STRING "$PACKAGE_STRING"
2341 _ACEOF
2342
2343
2344 cat >>confdefs.h <<_ACEOF
2345 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2346 _ACEOF
2347
2348
2349 # Let the site file select an alternate cache file if it wants to.
2350 # Prefer explicitly selected file to automatically selected ones.
2351 if test -n "$CONFIG_SITE"; then
2352   set x "$CONFIG_SITE"
2353 elif test "x$prefix" != xNONE; then
2354   set x "$prefix/share/config.site" "$prefix/etc/config.site"
2355 else
2356   set x "$ac_default_prefix/share/config.site" \
2357         "$ac_default_prefix/etc/config.site"
2358 fi
2359 shift
2360 for ac_site_file
2361 do
2362   if test -r "$ac_site_file"; then
2363     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
2364 echo "$as_me: loading site script $ac_site_file" >&6;}
2365     sed 's/^/| /' "$ac_site_file" >&5
2366     . "$ac_site_file"
2367   fi
2368 done
2369
2370 if test -r "$cache_file"; then
2371   # Some versions of bash will fail to source /dev/null (special
2372   # files actually), so we avoid doing that.
2373   if test -f "$cache_file"; then
2374     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
2375 echo "$as_me: loading cache $cache_file" >&6;}
2376     case $cache_file in
2377       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2378       *)                      . "./$cache_file";;
2379     esac
2380   fi
2381 else
2382   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
2383 echo "$as_me: creating cache $cache_file" >&6;}
2384   >$cache_file
2385 fi
2386
2387 # Check that the precious variables saved in the cache have kept the same
2388 # value.
2389 ac_cache_corrupted=false
2390 for ac_var in $ac_precious_vars; do
2391   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2392   eval ac_new_set=\$ac_env_${ac_var}_set
2393   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2394   eval ac_new_val=\$ac_env_${ac_var}_value
2395   case $ac_old_set,$ac_new_set in
2396     set,)
2397       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2398 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2399       ac_cache_corrupted=: ;;
2400     ,set)
2401       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2402 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2403       ac_cache_corrupted=: ;;
2404     ,);;
2405     *)
2406       if test "x$ac_old_val" != "x$ac_new_val"; then
2407         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2408 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2409         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
2410 echo "$as_me:   former value:  $ac_old_val" >&2;}
2411         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
2412 echo "$as_me:   current value: $ac_new_val" >&2;}
2413         ac_cache_corrupted=:
2414       fi;;
2415   esac
2416   # Pass precious variables to config.status.
2417   if test "$ac_new_set" = set; then
2418     case $ac_new_val in
2419     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2420     *) ac_arg=$ac_var=$ac_new_val ;;
2421     esac
2422     case " $ac_configure_args " in
2423       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2424       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2425     esac
2426   fi
2427 done
2428 if $ac_cache_corrupted; then
2429   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2430 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2431   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2432 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2433    { (exit 1); exit 1; }; }
2434 fi
2435
2436
2437
2438
2439
2440
2441
2442
2443
2444
2445
2446
2447
2448
2449
2450
2451
2452
2453
2454
2455
2456
2457
2458
2459
2460 ac_ext=c
2461 ac_cpp='$CPP $CPPFLAGS'
2462 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2463 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2464 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2465
2466
2467
2468
2469
2470 ac_aux_dir=
2471 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2472   if test -f "$ac_dir/install-sh"; then
2473     ac_aux_dir=$ac_dir
2474     ac_install_sh="$ac_aux_dir/install-sh -c"
2475     break
2476   elif test -f "$ac_dir/install.sh"; then
2477     ac_aux_dir=$ac_dir
2478     ac_install_sh="$ac_aux_dir/install.sh -c"
2479     break
2480   elif test -f "$ac_dir/shtool"; then
2481     ac_aux_dir=$ac_dir
2482     ac_install_sh="$ac_aux_dir/shtool install -c"
2483     break
2484   fi
2485 done
2486 if test -z "$ac_aux_dir"; then
2487   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2488 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2489    { (exit 1); exit 1; }; }
2490 fi
2491
2492 # These three variables are undocumented and unsupported,
2493 # and are intended to be withdrawn in a future Autoconf release.
2494 # They can cause serious problems if a builder's source tree is in a directory
2495 # whose full name contains unusual characters.
2496 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2497 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2498 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2499
2500
2501 # Make sure we can run config.sub.
2502 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2503   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2504 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2505    { (exit 1); exit 1; }; }
2506
2507 { echo "$as_me:$LINENO: checking build system type" >&5
2508 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2509 if test "${ac_cv_build+set}" = set; then
2510   echo $ECHO_N "(cached) $ECHO_C" >&6
2511 else
2512   ac_build_alias=$build_alias
2513 test "x$ac_build_alias" = x &&
2514   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2515 test "x$ac_build_alias" = x &&
2516   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2517 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2518    { (exit 1); exit 1; }; }
2519 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2520   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2521 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2522    { (exit 1); exit 1; }; }
2523
2524 fi
2525 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2526 echo "${ECHO_T}$ac_cv_build" >&6; }
2527 case $ac_cv_build in
2528 *-*-*) ;;
2529 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2530 echo "$as_me: error: invalid value of canonical build" >&2;}
2531    { (exit 1); exit 1; }; };;
2532 esac
2533 build=$ac_cv_build
2534 ac_save_IFS=$IFS; IFS='-'
2535 set x $ac_cv_build
2536 shift
2537 build_cpu=$1
2538 build_vendor=$2
2539 shift; shift
2540 # Remember, the first character of IFS is used to create $*,
2541 # except with old shells:
2542 build_os=$*
2543 IFS=$ac_save_IFS
2544 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2545
2546
2547 { echo "$as_me:$LINENO: checking host system type" >&5
2548 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2549 if test "${ac_cv_host+set}" = set; then
2550   echo $ECHO_N "(cached) $ECHO_C" >&6
2551 else
2552   if test "x$host_alias" = x; then
2553   ac_cv_host=$ac_cv_build
2554 else
2555   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2556     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2557 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2558    { (exit 1); exit 1; }; }
2559 fi
2560
2561 fi
2562 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2563 echo "${ECHO_T}$ac_cv_host" >&6; }
2564 case $ac_cv_host in
2565 *-*-*) ;;
2566 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2567 echo "$as_me: error: invalid value of canonical host" >&2;}
2568    { (exit 1); exit 1; }; };;
2569 esac
2570 host=$ac_cv_host
2571 ac_save_IFS=$IFS; IFS='-'
2572 set x $ac_cv_host
2573 shift
2574 host_cpu=$1
2575 host_vendor=$2
2576 shift; shift
2577 # Remember, the first character of IFS is used to create $*,
2578 # except with old shells:
2579 host_os=$*
2580 IFS=$ac_save_IFS
2581 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2582
2583
2584
2585 if test "$cross_compiling" != "no"; then
2586     HOST_PREFIX="${host_alias}-"
2587     HOST_SUFFIX="-$host_alias"
2588 else
2589     HOST_PREFIX=
2590     HOST_SUFFIX=
2591 fi
2592
2593
2594 wx_major_version_number=2
2595 wx_minor_version_number=9
2596 wx_release_number=3
2597 wx_subrelease_number=0
2598
2599 WX_RELEASE=$wx_major_version_number.$wx_minor_version_number
2600 WX_VERSION=$WX_RELEASE.$wx_release_number
2601 WX_SUBVERSION=$WX_VERSION.$wx_subrelease_number
2602
2603 WX_MSW_VERSION=$wx_major_version_number$wx_minor_version_number$wx_release_number
2604
2605
2606 wx_top_builddir="`pwd`"
2607
2608
2609
2610
2611 USE_UNIX=1
2612 USE_OS2=0
2613 USE_WIN32=0
2614 USE_DOS=0
2615 USE_BEOS=0
2616 USE_MAC=0
2617
2618 USE_AIX=
2619 USE_BSD=                            USE_DARWIN=                         USE_FREEBSD=
2620 USE_GNU=                            USE_HPUX=
2621 USE_LINUX=
2622 USE_NETBSD=
2623 USE_OPENBSD=
2624 USE_OSF=                            USE_SGI=
2625 USE_SOLARIS=                        USE_SUN=                            USE_SUNOS=                          USE_SVR4=                           USE_SYSV=                           USE_VMS=
2626 USE_ULTRIX=
2627 USE_UNIXWARE=
2628
2629 USE_ALPHA=
2630
2631 NEEDS_D_REENTRANT_FOR_R_FUNCS=0
2632
2633 ALL_TOOLKITS="COCOA GTK OSX_CARBON OSX_COCOA OSX_IPHONE MGL MICROWIN MOTIF MSW PM X11 DFB"
2634
2635 DEFAULT_wxUSE_OLD_COCOA=0
2636 DEFAULT_wxUSE_GTK=0
2637 DEFAULT_wxUSE_OSX_CARBON=0
2638 DEFAULT_wxUSE_OSX_COCOA=0
2639 DEFAULT_wxUSE_OSX_IPHONE=0
2640 DEFAULT_wxUSE_MGL=0
2641 DEFAULT_wxUSE_MICROWIN=0
2642 DEFAULT_wxUSE_MOTIF=0
2643 DEFAULT_wxUSE_MSW=0
2644 DEFAULT_wxUSE_PM=0
2645 DEFAULT_wxUSE_X11=0
2646 DEFAULT_wxUSE_DFB=0
2647
2648 DEFAULT_DEFAULT_wxUSE_OLD_COCOA=0
2649 DEFAULT_DEFAULT_wxUSE_GTK=0
2650 DEFAULT_DEFAULT_wxUSE_OSX_CARBON=0
2651 DEFAULT_DEFAULT_wxUSE_OSX_COCOA=0
2652 DEFAULT_DEFAULT_wxUSE_OSX_IPHONE=0
2653 DEFAULT_DEFAULT_wxUSE_MGL=0
2654 DEFAULT_DEFAULT_wxUSE_MICROWIN=0
2655 DEFAULT_DEFAULT_wxUSE_MOTIF=0
2656 DEFAULT_DEFAULT_wxUSE_MSW=0
2657 DEFAULT_DEFAULT_wxUSE_PM=0
2658 DEFAULT_DEFAULT_wxUSE_X11=0
2659 DEFAULT_DEFAULT_wxUSE_DFB=0
2660
2661 PROGRAM_EXT=
2662 SAMPLES_RPATH_FLAG=
2663 DYLIB_RPATH_INSTALL=
2664 DYLIB_RPATH_POSTLINK=
2665
2666 DEFAULT_STD_FLAG=yes
2667
2668 case "${host}" in
2669   *-hp-hpux* )
2670     USE_HPUX=1
2671     DEFAULT_DEFAULT_wxUSE_MOTIF=1
2672     NEEDS_D_REENTRANT_FOR_R_FUNCS=1
2673     cat >>confdefs.h <<\_ACEOF
2674 #define __HPUX__ 1
2675 _ACEOF
2676
2677
2678             CPPFLAGS="-D_HPUX_SOURCE $CPPFLAGS"
2679   ;;
2680   *-*-linux* )
2681     USE_LINUX=1
2682     cat >>confdefs.h <<\_ACEOF
2683 #define __LINUX__ 1
2684 _ACEOF
2685
2686     TMP=`uname -m`
2687     if test "x$TMP" = "xalpha"; then
2688       USE_ALPHA=1
2689       cat >>confdefs.h <<\_ACEOF
2690 #define __ALPHA__ 1
2691 _ACEOF
2692
2693     fi
2694     DEFAULT_DEFAULT_wxUSE_GTK=1
2695   ;;
2696   *-*-gnu* | *-*-k*bsd*-gnu )
2697     USE_GNU=1
2698     TMP=`uname -m`
2699     if test "x$TMP" = "xalpha"; then
2700       USE_ALPHA=1
2701       cat >>confdefs.h <<\_ACEOF
2702 #define __ALPHA__ 1
2703 _ACEOF
2704
2705     fi
2706     DEFAULT_DEFAULT_wxUSE_GTK=1
2707   ;;
2708   *-*-irix5* | *-*-irix6* )
2709     USE_SGI=1
2710     USE_SVR4=1
2711     cat >>confdefs.h <<\_ACEOF
2712 #define __SGI__ 1
2713 _ACEOF
2714
2715     cat >>confdefs.h <<\_ACEOF
2716 #define __SVR4__ 1
2717 _ACEOF
2718
2719     DEFAULT_DEFAULT_wxUSE_MOTIF=1
2720   ;;
2721   *-*-qnx*)
2722     USE_QNX=1
2723     cat >>confdefs.h <<\_ACEOF
2724 #define __QNX__ 1
2725 _ACEOF
2726
2727     DEFAULT_DEFAULT_wxUSE_X11=1
2728   ;;
2729   *-*-solaris2* )
2730     USE_SUN=1
2731     USE_SOLARIS=1
2732     USE_SVR4=1
2733     cat >>confdefs.h <<\_ACEOF
2734 #define __SUN__ 1
2735 _ACEOF
2736
2737     cat >>confdefs.h <<\_ACEOF
2738 #define __SOLARIS__ 1
2739 _ACEOF
2740
2741     cat >>confdefs.h <<\_ACEOF
2742 #define __SVR4__ 1
2743 _ACEOF
2744
2745     DEFAULT_DEFAULT_wxUSE_MOTIF=1
2746     NEEDS_D_REENTRANT_FOR_R_FUNCS=1
2747   ;;
2748   *-*-sunos4* )
2749     USE_SUN=1
2750     USE_SUNOS=1
2751     USE_BSD=1
2752     cat >>confdefs.h <<\_ACEOF
2753 #define __SUN__ 1
2754 _ACEOF
2755
2756     cat >>confdefs.h <<\_ACEOF
2757 #define __SUNOS__ 1
2758 _ACEOF
2759
2760     cat >>confdefs.h <<\_ACEOF
2761 #define __BSD__ 1
2762 _ACEOF
2763
2764     DEFAULT_DEFAULT_wxUSE_MOTIF=1
2765   ;;
2766   *-*-freebsd*)
2767     USE_BSD=1
2768     USE_FREEBSD=1
2769     cat >>confdefs.h <<\_ACEOF
2770 #define __FREEBSD__ 1
2771 _ACEOF
2772
2773     cat >>confdefs.h <<\_ACEOF
2774 #define __BSD__ 1
2775 _ACEOF
2776
2777     DEFAULT_DEFAULT_wxUSE_GTK=1
2778   ;;
2779   *-*-openbsd*|*-*-mirbsd*)
2780     USE_BSD=1
2781     USE_OPENBSD=1
2782     cat >>confdefs.h <<\_ACEOF
2783 #define __OPENBSD__ 1
2784 _ACEOF
2785
2786     cat >>confdefs.h <<\_ACEOF
2787 #define __BSD__ 1
2788 _ACEOF
2789
2790     DEFAULT_DEFAULT_wxUSE_GTK=1
2791   ;;
2792   *-*-netbsd*)
2793     USE_BSD=1
2794     USE_NETBSD=1
2795     cat >>confdefs.h <<\_ACEOF
2796 #define __NETBSD__ 1
2797 _ACEOF
2798
2799     cat >>confdefs.h <<\_ACEOF
2800 #define __BSD__ 1
2801 _ACEOF
2802
2803     DEFAULT_DEFAULT_wxUSE_GTK=1
2804     NEEDS_D_REENTRANT_FOR_R_FUNCS=1
2805
2806             CPPFLAGS="-D_NETBSD_SOURCE -D_LIBC $CPPFLAGS"
2807   ;;
2808   *-*-osf* )
2809     USE_ALPHA=1
2810     USE_OSF=1
2811     cat >>confdefs.h <<\_ACEOF
2812 #define __ALPHA__ 1
2813 _ACEOF
2814
2815     cat >>confdefs.h <<\_ACEOF
2816 #define __OSF__ 1
2817 _ACEOF
2818
2819     DEFAULT_DEFAULT_wxUSE_MOTIF=1
2820     NEEDS_D_REENTRANT_FOR_R_FUNCS=1
2821   ;;
2822   *-*-dgux5* )
2823     USE_ALPHA=1
2824     USE_SVR4=1
2825     cat >>confdefs.h <<\_ACEOF
2826 #define __ALPHA__ 1
2827 _ACEOF
2828
2829     cat >>confdefs.h <<\_ACEOF
2830 #define __SVR4__ 1
2831 _ACEOF
2832
2833     DEFAULT_DEFAULT_wxUSE_MOTIF=1
2834   ;;
2835   *-*-sysv5* )
2836     USE_SYSV=1
2837     USE_SVR4=1
2838     cat >>confdefs.h <<\_ACEOF
2839 #define __SYSV__ 1
2840 _ACEOF
2841
2842     cat >>confdefs.h <<\_ACEOF
2843 #define __SVR4__ 1
2844 _ACEOF
2845
2846     DEFAULT_DEFAULT_wxUSE_MOTIF=1
2847   ;;
2848   *-*-aix* )
2849     USE_AIX=1
2850     USE_SYSV=1
2851     USE_SVR4=1
2852     cat >>confdefs.h <<\_ACEOF
2853 #define __AIX__ 1
2854 _ACEOF
2855
2856     cat >>confdefs.h <<\_ACEOF
2857 #define __SYSV__ 1
2858 _ACEOF
2859
2860     cat >>confdefs.h <<\_ACEOF
2861 #define __SVR4__ 1
2862 _ACEOF
2863
2864     DEFAULT_DEFAULT_wxUSE_MOTIF=1
2865   ;;
2866
2867   *-*-*UnixWare*)
2868     USE_SYSV=1
2869     USE_SVR4=1
2870     USE_UNIXWARE=1
2871     cat >>confdefs.h <<\_ACEOF
2872 #define __UNIXWARE__ 1
2873 _ACEOF
2874
2875   ;;
2876
2877   *-*-cygwin* | *-*-mingw32* )
2878                 PROGRAM_EXT=".exe"
2879     DEFAULT_DEFAULT_wxUSE_MSW=1
2880   ;;
2881
2882   *-pc-msdosdjgpp )
2883     USE_UNIX=0
2884     USE_DOS=1
2885     cat >>confdefs.h <<\_ACEOF
2886 #define __DOS__ 1
2887 _ACEOF
2888
2889     PROGRAM_EXT=".exe"
2890     DEFAULT_DEFAULT_wxUSE_MGL=1
2891   ;;
2892
2893   *-pc-os2_emx | *-pc-os2-emx )
2894     cat >>confdefs.h <<\_ACEOF
2895 #define __EMX__ 1
2896 _ACEOF
2897
2898     USE_OS2=1
2899     cat >>confdefs.h <<\_ACEOF
2900 #define __OS2__ 1
2901 _ACEOF
2902
2903     PROGRAM_EXT=".exe"
2904     DEFAULT_DEFAULT_wxUSE_PM=1
2905         CXX=gcc
2906     LDFLAGS="$LDFLAGS -Zcrtdll"
2907                         ac_executable_extensions=".exe"
2908     export ac_executable_extensions
2909             ac_save_IFS="$IFS"
2910     IFS='\\'
2911     ac_TEMP_PATH=
2912     for ac_dir in $PATH; do
2913       IFS=$ac_save_IFS
2914       if test -z "$ac_TEMP_PATH"; then
2915         ac_TEMP_PATH="$ac_dir"
2916       else
2917         ac_TEMP_PATH="$ac_TEMP_PATH/$ac_dir"
2918       fi
2919     done
2920     export PATH="$ac_TEMP_PATH"
2921     unset ac_TEMP_PATH
2922     DEFAULT_STD_FLAG=no
2923   ;;
2924
2925   arm-apple-darwin*)
2926         USE_BSD=1
2927     USE_DARWIN=1
2928     cat >>confdefs.h <<\_ACEOF
2929 #define __BSD__ 1
2930 _ACEOF
2931
2932     cat >>confdefs.h <<\_ACEOF
2933 #define __DARWIN__ 1
2934 _ACEOF
2935
2936     DEFAULT_DEFAULT_wxUSE_OSX_IPHONE=1
2937   ;;
2938
2939   *-*-darwin* )
2940         USE_BSD=1
2941     USE_DARWIN=1
2942     cat >>confdefs.h <<\_ACEOF
2943 #define __BSD__ 1
2944 _ACEOF
2945
2946     cat >>confdefs.h <<\_ACEOF
2947 #define __DARWIN__ 1
2948 _ACEOF
2949
2950     cat >>confdefs.h <<\_ACEOF
2951 #define TARGET_CARBON 1
2952 _ACEOF
2953
2954     DEFAULT_DEFAULT_wxUSE_OSX_CARBON=1
2955   ;;
2956
2957   *-*-beos* )
2958         USE_BEOS=1
2959     cat >>confdefs.h <<\_ACEOF
2960 #define __BEOS__ 1
2961 _ACEOF
2962
2963   ;;
2964
2965   *)
2966     { echo "$as_me:$LINENO: WARNING: *** System type ${host} is unknown, assuming generic Unix and continuing nevertheless." >&5
2967 echo "$as_me: WARNING: *** System type ${host} is unknown, assuming generic Unix and continuing nevertheless." >&2;}
2968     { echo "$as_me:$LINENO: WARNING: *** Please report the build results to wx-dev@lists.wxwidgets.org." >&5
2969 echo "$as_me: WARNING: *** Please report the build results to wx-dev@lists.wxwidgets.org." >&2;}
2970
2971     DEFAULT_DEFAULT_wxUSE_X11=1
2972     DEFAULT_wxUSE_SHARED=no
2973 esac
2974
2975
2976
2977 DEFAULT_wxUSE_ALL_FEATURES=yes
2978
2979 DEFAULT_wxUSE_STD_CONTAINERS=no
2980 DEFAULT_wxUSE_STD_IOSTREAM=$DEFAULT_STD_FLAG
2981 DEFAULT_wxUSE_STD_STRING=$DEFAULT_STD_FLAG
2982
2983 DEFAULT_wxUSE_DMALLOC=no
2984 DEFAULT_wxUSE_LIBGNOMEVFS=no
2985 DEFAULT_wxUSE_LIBHILDON=no
2986 DEFAULT_wxUSE_LIBHILDON2=no
2987 DEFAULT_wxUSE_LIBMSPACK=no
2988 DEFAULT_wxUSE_LIBSDL=no
2989
2990 DEFAULT_wxUSE_ACCESSIBILITY=no
2991 DEFAULT_wxUSE_IPV6=no
2992 DEFAULT_wxUSE_GSTREAMER8=no
2993
2994 DEFAULT_wxUSE_ARTPROVIDER_TANGO=auto
2995 DEFAULT_wxUSE_UNICODE_UTF8=auto
2996 DEFAULT_wxUSE_OPENGL=auto
2997 DEFAULT_wxUSE_MEDIACTRL=auto
2998 DEFAULT_wxUSE_COMPILER_TLS=auto
2999
3000 DEFAULT_wxUSE_UNICODE_UTF8_LOCALE=no
3001
3002 DEFAULT_wxUSE_UNIVERSAL_BINARY=no
3003 DEFAULT_wxUSE_MAC_ARCH=no
3004
3005 DEFAULT_wxUSE_OFFICIAL_BUILD=no
3006
3007 DEFAULT_wxUSE_GTK2=yes
3008
3009 DEFAULT_wxUSE_OBJC_UNIQUIFYING=no
3010
3011
3012
3013
3014
3015           enablestring=disable
3016           defaultval=
3017           if test -z "$defaultval"; then
3018               if test x"$enablestring" = xdisable; then
3019                   defaultval=yes
3020               else
3021                   defaultval=no
3022               fi
3023           fi
3024
3025           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gui" >&5
3026 echo $ECHO_N "checking for --${enablestring:-enable}-gui... $ECHO_C" >&6; }
3027           # Check whether --enable-gui was given.
3028 if test "${enable_gui+set}" = set; then
3029   enableval=$enable_gui;
3030                           if test "$enableval" = yes; then
3031                             wx_cv_use_gui='wxUSE_GUI=yes'
3032                           else
3033                             wx_cv_use_gui='wxUSE_GUI=no'
3034                           fi
3035
3036 else
3037
3038                           wx_cv_use_gui='wxUSE_GUI=${'DEFAULT_wxUSE_GUI":-$defaultval}"
3039
3040 fi
3041
3042
3043           eval "$wx_cv_use_gui"
3044
3045           if test x"$enablestring" = xdisable; then
3046             if test $wxUSE_GUI = no; then
3047               result=yes
3048             else
3049               result=no
3050             fi
3051           else
3052             result=$wxUSE_GUI
3053           fi
3054
3055           { echo "$as_me:$LINENO: result: $result" >&5
3056 echo "${ECHO_T}$result" >&6; }
3057
3058
3059           enablestring=
3060           defaultval=
3061           if test -z "$defaultval"; then
3062               if test x"$enablestring" = xdisable; then
3063                   defaultval=yes
3064               else
3065                   defaultval=no
3066               fi
3067           fi
3068
3069           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-monolithic" >&5
3070 echo $ECHO_N "checking for --${enablestring:-enable}-monolithic... $ECHO_C" >&6; }
3071           # Check whether --enable-monolithic was given.
3072 if test "${enable_monolithic+set}" = set; then
3073   enableval=$enable_monolithic;
3074                           if test "$enableval" = yes; then
3075                             wx_cv_use_monolithic='wxUSE_MONOLITHIC=yes'
3076                           else
3077                             wx_cv_use_monolithic='wxUSE_MONOLITHIC=no'
3078                           fi
3079
3080 else
3081
3082                           wx_cv_use_monolithic='wxUSE_MONOLITHIC=${'DEFAULT_wxUSE_MONOLITHIC":-$defaultval}"
3083
3084 fi
3085
3086
3087           eval "$wx_cv_use_monolithic"
3088
3089           if test x"$enablestring" = xdisable; then
3090             if test $wxUSE_MONOLITHIC = no; then
3091               result=yes
3092             else
3093               result=no
3094             fi
3095           else
3096             result=$wxUSE_MONOLITHIC
3097           fi
3098
3099           { echo "$as_me:$LINENO: result: $result" >&5
3100 echo "${ECHO_T}$result" >&6; }
3101
3102
3103           enablestring=
3104           defaultval=
3105           if test -z "$defaultval"; then
3106               if test x"$enablestring" = xdisable; then
3107                   defaultval=yes
3108               else
3109                   defaultval=no
3110               fi
3111           fi
3112
3113           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-plugins" >&5
3114 echo $ECHO_N "checking for --${enablestring:-enable}-plugins... $ECHO_C" >&6; }
3115           # Check whether --enable-plugins was given.
3116 if test "${enable_plugins+set}" = set; then
3117   enableval=$enable_plugins;
3118                           if test "$enableval" = yes; then
3119                             wx_cv_use_plugins='wxUSE_PLUGINS=yes'
3120                           else
3121                             wx_cv_use_plugins='wxUSE_PLUGINS=no'
3122                           fi
3123
3124 else
3125
3126                           wx_cv_use_plugins='wxUSE_PLUGINS=${'DEFAULT_wxUSE_PLUGINS":-$defaultval}"
3127
3128 fi
3129
3130
3131           eval "$wx_cv_use_plugins"
3132
3133           if test x"$enablestring" = xdisable; then
3134             if test $wxUSE_PLUGINS = no; then
3135               result=yes
3136             else
3137               result=no
3138             fi
3139           else
3140             result=$wxUSE_PLUGINS
3141           fi
3142
3143           { echo "$as_me:$LINENO: result: $result" >&5
3144 echo "${ECHO_T}$result" >&6; }
3145
3146
3147           withstring=without
3148           defaultval=$wxUSE_ALL_FEATURES
3149           if test -z "$defaultval"; then
3150               if test x"$withstring" = xwithout; then
3151                   defaultval=yes
3152               else
3153                   defaultval=no
3154               fi
3155           fi
3156           { echo "$as_me:$LINENO: checking for --${withstring:-with}-subdirs" >&5
3157 echo $ECHO_N "checking for --${withstring:-with}-subdirs... $ECHO_C" >&6; }
3158
3159 # Check whether --with-subdirs was given.
3160 if test "${with_subdirs+set}" = set; then
3161   withval=$with_subdirs;
3162                         if test "$withval" = yes; then
3163                           wx_cv_use_subdirs='wxWITH_SUBDIRS=yes'
3164                         else
3165                           wx_cv_use_subdirs='wxWITH_SUBDIRS=no'
3166                         fi
3167
3168 else
3169
3170                         wx_cv_use_subdirs='wxWITH_SUBDIRS=${'DEFAULT_wxWITH_SUBDIRS":-$defaultval}"
3171
3172 fi
3173
3174
3175           eval "$wx_cv_use_subdirs"
3176
3177           if test x"$withstring" = xwithout; then
3178             if test $wxWITH_SUBDIRS = yes; then
3179               result=no
3180             else
3181               result=yes
3182             fi
3183           else
3184             result=$wxWITH_SUBDIRS
3185           fi
3186
3187           { echo "$as_me:$LINENO: result: $result" >&5
3188 echo "${ECHO_T}$result" >&6; }
3189
3190
3191 # Check whether --with-flavour was given.
3192 if test "${with_flavour+set}" = set; then
3193   withval=$with_flavour; WX_FLAVOUR="$withval"
3194 fi
3195
3196
3197           enablestring=
3198           defaultval=
3199           if test -z "$defaultval"; then
3200               if test x"$enablestring" = xdisable; then
3201                   defaultval=yes
3202               else
3203                   defaultval=no
3204               fi
3205           fi
3206
3207           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-official_build" >&5
3208 echo $ECHO_N "checking for --${enablestring:-enable}-official_build... $ECHO_C" >&6; }
3209           # Check whether --enable-official_build was given.
3210 if test "${enable_official_build+set}" = set; then
3211   enableval=$enable_official_build;
3212                           if test "$enableval" = yes; then
3213                             wx_cv_use_official_build='wxUSE_OFFICIAL_BUILD=yes'
3214                           else
3215                             wx_cv_use_official_build='wxUSE_OFFICIAL_BUILD=no'
3216                           fi
3217
3218 else
3219
3220                           wx_cv_use_official_build='wxUSE_OFFICIAL_BUILD=${'DEFAULT_wxUSE_OFFICIAL_BUILD":-$defaultval}"
3221
3222 fi
3223
3224
3225           eval "$wx_cv_use_official_build"
3226
3227           if test x"$enablestring" = xdisable; then
3228             if test $wxUSE_OFFICIAL_BUILD = no; then
3229               result=yes
3230             else
3231               result=no
3232             fi
3233           else
3234             result=$wxUSE_OFFICIAL_BUILD
3235           fi
3236
3237           { echo "$as_me:$LINENO: result: $result" >&5
3238 echo "${ECHO_T}$result" >&6; }
3239
3240 # Check whether --enable-vendor was given.
3241 if test "${enable_vendor+set}" = set; then
3242   enableval=$enable_vendor; VENDOR="$enableval"
3243 fi
3244
3245 if test "x$VENDOR" = "x"; then
3246     VENDOR="custom"
3247 fi
3248
3249
3250           enablestring=disable
3251           defaultval=
3252           if test -z "$defaultval"; then
3253               if test x"$enablestring" = xdisable; then
3254                   defaultval=yes
3255               else
3256                   defaultval=no
3257               fi
3258           fi
3259
3260           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-all-features" >&5
3261 echo $ECHO_N "checking for --${enablestring:-enable}-all-features... $ECHO_C" >&6; }
3262           # Check whether --enable-all-features was given.
3263 if test "${enable_all_features+set}" = set; then
3264   enableval=$enable_all_features;
3265                           if test "$enableval" = yes; then
3266                             wx_cv_use_all_features='wxUSE_ALL_FEATURES=yes'
3267                           else
3268                             wx_cv_use_all_features='wxUSE_ALL_FEATURES=no'
3269                           fi
3270
3271 else
3272
3273                           wx_cv_use_all_features='wxUSE_ALL_FEATURES=${'DEFAULT_wxUSE_ALL_FEATURES":-$defaultval}"
3274
3275 fi
3276
3277
3278           eval "$wx_cv_use_all_features"
3279
3280           if test x"$enablestring" = xdisable; then
3281             if test $wxUSE_ALL_FEATURES = no; then
3282               result=yes
3283             else
3284               result=no
3285             fi
3286           else
3287             result=$wxUSE_ALL_FEATURES
3288           fi
3289
3290           { echo "$as_me:$LINENO: result: $result" >&5
3291 echo "${ECHO_T}$result" >&6; }
3292
3293
3294 if test "$wxUSE_ALL_FEATURES" = "no"; then
3295                     DEFAULT_wxUSE_ARTPROVIDER_TANGO=no
3296     DEFAULT_wxUSE_MEDIACTRL=no
3297 fi
3298
3299
3300 if test "$wxUSE_GUI" = "yes"; then
3301
3302
3303           enablestring=
3304           defaultval=
3305           if test -z "$defaultval"; then
3306               if test x"$enablestring" = xdisable; then
3307                   defaultval=yes
3308               else
3309                   defaultval=no
3310               fi
3311           fi
3312
3313           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal" >&5
3314 echo $ECHO_N "checking for --${enablestring:-enable}-universal... $ECHO_C" >&6; }
3315           # Check whether --enable-universal was given.
3316 if test "${enable_universal+set}" = set; then
3317   enableval=$enable_universal;
3318                           if test "$enableval" = yes; then
3319                             wx_cv_use_universal='wxUSE_UNIVERSAL=yes'
3320                           else
3321                             wx_cv_use_universal='wxUSE_UNIVERSAL=no'
3322                           fi
3323
3324 else
3325
3326                           wx_cv_use_universal='wxUSE_UNIVERSAL=${'DEFAULT_wxUSE_UNIVERSAL":-$defaultval}"
3327
3328 fi
3329
3330
3331           eval "$wx_cv_use_universal"
3332
3333           if test x"$enablestring" = xdisable; then
3334             if test $wxUSE_UNIVERSAL = no; then
3335               result=yes
3336             else
3337               result=no
3338             fi
3339           else
3340             result=$wxUSE_UNIVERSAL
3341           fi
3342
3343           { echo "$as_me:$LINENO: result: $result" >&5
3344 echo "${ECHO_T}$result" >&6; }
3345
3346 if test "$wxUSE_UNIVERSAL" = "yes"; then
3347
3348 # Check whether --with-themes was given.
3349 if test "${with_themes+set}" = set; then
3350   withval=$with_themes; wxUNIV_THEMES="$withval"
3351 fi
3352
3353 fi
3354
3355
3356 # Check whether --with-gtk was given.
3357 if test "${with_gtk+set}" = set; then
3358   withval=$with_gtk; wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
3359 fi
3360
3361
3362 # Check whether --with-motif was given.
3363 if test "${with_motif+set}" = set; then
3364   withval=$with_motif; wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
3365 fi
3366
3367
3368 # Check whether --with-osx_carbon was given.
3369 if test "${with_osx_carbon+set}" = set; then
3370   withval=$with_osx_carbon; wxUSE_OSX_CARBON="$withval" CACHE_OSX_CARBON=1 TOOLKIT_GIVEN=1
3371 fi
3372
3373
3374 # Check whether --with-osx_cocoa was given.
3375 if test "${with_osx_cocoa+set}" = set; then
3376   withval=$with_osx_cocoa; wxUSE_OSX_COCOA="$withval" CACHE_OSX_COCOA=1 TOOLKIT_GIVEN=1
3377 fi
3378
3379
3380 # Check whether --with-osx_iphone was given.
3381 if test "${with_osx_iphone+set}" = set; then
3382   withval=$with_osx_iphone; wxUSE_OSX_IPHONE="$withval" CACHE_OSX_IPHONE=1 TOOLKIT_GIVEN=1
3383 fi
3384
3385
3386 # Check whether --with-osx was given.
3387 if test "${with_osx+set}" = set; then
3388   withval=$with_osx; wxUSE_OSX_CARBON="$withval" CACHE_OSX_CARBON=1 TOOLKIT_GIVEN=1
3389 fi
3390
3391
3392 # Check whether --with-carbon was given.
3393 if test "${with_carbon+set}" = set; then
3394   withval=$with_carbon; wxUSE_OSX_CARBON="$withval" CACHE_OSX_CARBON=1 TOOLKIT_GIVEN=1
3395 fi
3396
3397
3398 # Check whether --with-cocoa was given.
3399 if test "${with_cocoa+set}" = set; then
3400   withval=$with_cocoa; wxUSE_OSX_COCOA="$withval" CACHE_OSX_COCOA=1 TOOLKIT_GIVEN=1
3401 fi
3402
3403
3404 # Check whether --with-iphone was given.
3405 if test "${with_iphone+set}" = set; then
3406   withval=$with_iphone; wxUSE_OSX_IPHONE="$withval" CACHE_OSX_IPHONE=1 TOOLKIT_GIVEN=1
3407 fi
3408
3409
3410 # Check whether --with-mac was given.
3411 if test "${with_mac+set}" = set; then
3412   withval=$with_mac; wxUSE_OSX_CARBON="$withval" CACHE_OSX_CARBON=1 TOOLKIT_GIVEN=1
3413 fi
3414
3415
3416 # Check whether --with-old_cocoa was given.
3417 if test "${with_old_cocoa+set}" = set; then
3418   withval=$with_old_cocoa; wxUSE_OLD_COCOA="$withval" CACHE_OLD_COCOA=1 TOOLKIT_GIVEN=1
3419 fi
3420
3421
3422 # Check whether --with-wine was given.
3423 if test "${with_wine+set}" = set; then
3424   withval=$with_wine; wxUSE_WINE="$withval" CACHE_WINE=1
3425 fi
3426
3427
3428 # Check whether --with-msw was given.
3429 if test "${with_msw+set}" = set; then
3430   withval=$with_msw; wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1
3431 fi
3432
3433
3434 # Check whether --with-pm was given.
3435 if test "${with_pm+set}" = set; then
3436   withval=$with_pm; wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
3437 fi
3438
3439
3440 # Check whether --with-mgl was given.
3441 if test "${with_mgl+set}" = set; then
3442   withval=$with_mgl; wxUSE_MGL="$withval" wxUSE_UNIVERSAL="yes" CACHE_MGL=1 TOOLKIT_GIVEN=1
3443 fi
3444
3445
3446 # Check whether --with-directfb was given.
3447 if test "${with_directfb+set}" = set; then
3448   withval=$with_directfb; wxUSE_DFB="$withval" wxUSE_UNIVERSAL="yes" CACHE_DFB=1 TOOLKIT_GIVEN=1
3449 fi
3450
3451
3452 # Check whether --with-microwin was given.
3453 if test "${with_microwin+set}" = set; then
3454   withval=$with_microwin; wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1
3455 fi
3456
3457
3458 # Check whether --with-x11 was given.
3459 if test "${with_x11+set}" = set; then
3460   withval=$with_x11; wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1
3461 fi
3462
3463
3464           enablestring=
3465           defaultval=
3466           if test -z "$defaultval"; then
3467               if test x"$enablestring" = xdisable; then
3468                   defaultval=yes
3469               else
3470                   defaultval=no
3471               fi
3472           fi
3473
3474           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-nanox" >&5
3475 echo $ECHO_N "checking for --${enablestring:-enable}-nanox... $ECHO_C" >&6; }
3476           # Check whether --enable-nanox was given.
3477 if test "${enable_nanox+set}" = set; then
3478   enableval=$enable_nanox;
3479                           if test "$enableval" = yes; then
3480                             wx_cv_use_nanox='wxUSE_NANOX=yes'
3481                           else
3482                             wx_cv_use_nanox='wxUSE_NANOX=no'
3483                           fi
3484
3485 else
3486
3487                           wx_cv_use_nanox='wxUSE_NANOX=${'DEFAULT_wxUSE_NANOX":-$defaultval}"
3488
3489 fi
3490
3491
3492           eval "$wx_cv_use_nanox"
3493
3494           if test x"$enablestring" = xdisable; then
3495             if test $wxUSE_NANOX = no; then
3496               result=yes
3497             else
3498               result=no
3499             fi
3500           else
3501             result=$wxUSE_NANOX
3502           fi
3503
3504           { echo "$as_me:$LINENO: result: $result" >&5
3505 echo "${ECHO_T}$result" >&6; }
3506
3507
3508 # Check whether --enable-gtk2 was given.
3509 if test "${enable_gtk2+set}" = set; then
3510   enableval=$enable_gtk2; wxUSE_GTK2="$enableval"
3511 fi
3512
3513
3514           enablestring=
3515           defaultval=
3516           if test -z "$defaultval"; then
3517               if test x"$enablestring" = xdisable; then
3518                   defaultval=yes
3519               else
3520                   defaultval=no
3521               fi
3522           fi
3523
3524           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gpe" >&5
3525 echo $ECHO_N "checking for --${enablestring:-enable}-gpe... $ECHO_C" >&6; }
3526           # Check whether --enable-gpe was given.
3527 if test "${enable_gpe+set}" = set; then
3528   enableval=$enable_gpe;
3529                           if test "$enableval" = yes; then
3530                             wx_cv_use_gpe='wxUSE_GPE=yes'
3531                           else
3532                             wx_cv_use_gpe='wxUSE_GPE=no'
3533                           fi
3534
3535 else
3536
3537                           wx_cv_use_gpe='wxUSE_GPE=${'DEFAULT_wxUSE_GPE":-$defaultval}"
3538
3539 fi
3540
3541
3542           eval "$wx_cv_use_gpe"
3543
3544           if test x"$enablestring" = xdisable; then
3545             if test $wxUSE_GPE = no; then
3546               result=yes
3547             else
3548               result=no
3549             fi
3550           else
3551             result=$wxUSE_GPE
3552           fi
3553
3554           { echo "$as_me:$LINENO: result: $result" >&5
3555 echo "${ECHO_T}$result" >&6; }
3556
3557
3558
3559 { echo "$as_me:$LINENO: checking for toolkit" >&5
3560 echo $ECHO_N "checking for toolkit... $ECHO_C" >&6; }
3561
3562
3563
3564 # In Wine, we need to default to MSW, not GTK or MOTIF
3565 if test "$wxUSE_WINE" = "yes"; then
3566     DEFAULT_DEFAULT_wxUSE_GTK=0
3567     DEFAULT_DEFAULT_wxUSE_MOTIF=0
3568     DEFAULT_DEFAULT_wxUSE_MSW=1
3569     wxUSE_SHARED=no
3570     CC=${CC:-winegcc}
3571     CXX=${CXX:-wineg++}
3572 fi
3573
3574
3575 if test "$wxUSE_GUI" = "yes"; then
3576
3577     if test "$USE_BEOS" = 1; then
3578         { { echo "$as_me:$LINENO: error: BeOS GUI is not supported yet, use --disable-gui" >&5
3579 echo "$as_me: error: BeOS GUI is not supported yet, use --disable-gui" >&2;}
3580    { (exit 1); exit 1; }; }
3581     fi
3582
3583     if test "$TOOLKIT_GIVEN" = 1; then
3584             for toolkit in $ALL_TOOLKITS; do
3585         var=wxUSE_$toolkit
3586         eval "value=\$${var}"
3587         if test "x$value" = "xno"; then
3588           eval "$var=0"
3589         elif test "x$value" != "x"; then
3590           eval "$var=1"
3591         fi
3592
3593         if test "x$value" != "x" -a "x$value" != "xyes" -a "x$value" != "xno"; then
3594           eval "wx${toolkit}_VERSION=$value"
3595         fi
3596       done
3597     else
3598             for toolkit in $ALL_TOOLKITS; do
3599         var=DEFAULT_DEFAULT_wxUSE_$toolkit
3600         eval "wxUSE_$toolkit=\$${var}"
3601       done
3602     fi
3603
3604             NUM_TOOLKITS=`expr ${wxUSE_OLD_COCOA:-0} + ${wxUSE_GTK:-0} + ${wxUSE_OSX_CARBON:-0} \
3605                   + ${wxUSE_OSX_COCOA:-0} + ${wxUSE_OSX_IPHONE:-0} + ${wxUSE_MGL:-0} + ${wxUSE_DFB:-0} \
3606                   + ${wxUSE_MICROWIN:-0} + ${wxUSE_MOTIF:-0} + ${wxUSE_MSW:-0} + ${wxUSE_X11:-0}`
3607
3608         case "${host}" in
3609       *-pc-os2_emx | *-pc-os2-emx )
3610         NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
3611     esac
3612
3613     case "$NUM_TOOLKITS" in
3614       1)
3615       ;;
3616       0)
3617         { { echo "$as_me:$LINENO: error: Please specify a toolkit -- cannot determine the default for ${host}" >&5
3618 echo "$as_me: error: Please specify a toolkit -- cannot determine the default for ${host}" >&2;}
3619    { (exit 1); exit 1; }; }
3620       ;;
3621       *)
3622         { { echo "$as_me:$LINENO: error: Please specify at most one toolkit" >&5
3623 echo "$as_me: error: Please specify at most one toolkit" >&2;}
3624    { (exit 1); exit 1; }; }
3625     esac
3626
3627     # to be removed when --disable-gtk2 isn't needed
3628     if test "x$wxUSE_GTK2" = "xyes"; then
3629         wxGTK_VERSION=2
3630         wxUSE_GTK1=0
3631     elif test "x$wxUSE_GTK2" = "xno"; then
3632         wxGTK_VERSION=1
3633         wxUSE_GTK1=1
3634     fi
3635
3636     for toolkit in $ALL_TOOLKITS; do
3637         var=wxUSE_$toolkit
3638         eval "value=\$${var}"
3639         if test "$value" = 1; then
3640           toolkit_echo=`echo $toolkit | tr '[A-Z]' '[a-z]'`
3641           { echo "$as_me:$LINENO: result: $toolkit_echo" >&5
3642 echo "${ECHO_T}$toolkit_echo" >&6; }
3643         fi
3644     done
3645 else
3646     if test "x$host_alias" != "x"; then
3647         { echo "$as_me:$LINENO: result: base ($host_alias hosted) only" >&5
3648 echo "${ECHO_T}base ($host_alias hosted) only" >&6; }
3649     else
3650         { echo "$as_me:$LINENO: result: base only" >&5
3651 echo "${ECHO_T}base only" >&6; }
3652     fi
3653 fi
3654
3655 wxUSE_MAC=0
3656 if test "$wxUSE_OSX_CARBON" = 1 \
3657        -o "$wxUSE_OSX_COCOA" = 1 \
3658        -o "$wxUSE_OSX_IPHONE" = 1; then
3659     wxUSE_MAC=1
3660 fi
3661
3662
3663
3664           { echo "$as_me:$LINENO: checking for --with-libpng" >&5
3665 echo $ECHO_N "checking for --with-libpng... $ECHO_C" >&6; }
3666
3667 # Check whether --with-libpng was given.
3668 if test "${with_libpng+set}" = set; then
3669   withval=$with_libpng;
3670                         if test "$withval" = yes; then
3671                           wx_cv_use_libpng='wxUSE_LIBPNG=yes'
3672                         elif test "$withval" = no; then
3673                           wx_cv_use_libpng='wxUSE_LIBPNG=no'
3674                         elif test "$withval" = sys; then
3675                           wx_cv_use_libpng='wxUSE_LIBPNG=sys'
3676                         elif test "$withval" = builtin; then
3677                           wx_cv_use_libpng='wxUSE_LIBPNG=builtin'
3678                         else
3679                           { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
3680 echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
3681    { (exit 1); exit 1; }; }
3682                         fi
3683
3684 else
3685
3686                         wx_cv_use_libpng='wxUSE_LIBPNG=${'DEFAULT_wxUSE_LIBPNG":-$wxUSE_ALL_FEATURES}"
3687
3688 fi
3689
3690
3691           eval "$wx_cv_use_libpng"
3692
3693           if test "$wxUSE_LIBPNG" = yes; then
3694             { echo "$as_me:$LINENO: result: yes" >&5
3695 echo "${ECHO_T}yes" >&6; }
3696           elif test "$wxUSE_LIBPNG" = no; then
3697             { echo "$as_me:$LINENO: result: no" >&5
3698 echo "${ECHO_T}no" >&6; }
3699           elif test "$wxUSE_LIBPNG" = sys; then
3700             { echo "$as_me:$LINENO: result: system version" >&5
3701 echo "${ECHO_T}system version" >&6; }
3702           elif test "$wxUSE_LIBPNG" = builtin; then
3703             { echo "$as_me:$LINENO: result: builtin version" >&5
3704 echo "${ECHO_T}builtin version" >&6; }
3705           else
3706             { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
3707 echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
3708    { (exit 1); exit 1; }; }
3709           fi
3710
3711
3712           { echo "$as_me:$LINENO: checking for --with-libjpeg" >&5
3713 echo $ECHO_N "checking for --with-libjpeg... $ECHO_C" >&6; }
3714
3715 # Check whether --with-libjpeg was given.
3716 if test "${with_libjpeg+set}" = set; then
3717   withval=$with_libjpeg;
3718                         if test "$withval" = yes; then
3719                           wx_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
3720                         elif test "$withval" = no; then
3721                           wx_cv_use_libjpeg='wxUSE_LIBJPEG=no'
3722                         elif test "$withval" = sys; then
3723                           wx_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
3724                         elif test "$withval" = builtin; then
3725                           wx_cv_use_libjpeg='wxUSE_LIBJPEG=builtin'
3726                         else
3727                           { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
3728 echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
3729    { (exit 1); exit 1; }; }
3730                         fi
3731
3732 else
3733
3734                         wx_cv_use_libjpeg='wxUSE_LIBJPEG=${'DEFAULT_wxUSE_LIBJPEG":-$wxUSE_ALL_FEATURES}"
3735
3736 fi
3737
3738
3739           eval "$wx_cv_use_libjpeg"
3740
3741           if test "$wxUSE_LIBJPEG" = yes; then
3742             { echo "$as_me:$LINENO: result: yes" >&5
3743 echo "${ECHO_T}yes" >&6; }
3744           elif test "$wxUSE_LIBJPEG" = no; then
3745             { echo "$as_me:$LINENO: result: no" >&5
3746 echo "${ECHO_T}no" >&6; }
3747           elif test "$wxUSE_LIBJPEG" = sys; then
3748             { echo "$as_me:$LINENO: result: system version" >&5
3749 echo "${ECHO_T}system version" >&6; }
3750           elif test "$wxUSE_LIBJPEG" = builtin; then
3751             { echo "$as_me:$LINENO: result: builtin version" >&5
3752 echo "${ECHO_T}builtin version" >&6; }
3753           else
3754             { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
3755 echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
3756    { (exit 1); exit 1; }; }
3757           fi
3758
3759
3760           { echo "$as_me:$LINENO: checking for --with-libtiff" >&5
3761 echo $ECHO_N "checking for --with-libtiff... $ECHO_C" >&6; }
3762
3763 # Check whether --with-libtiff was given.
3764 if test "${with_libtiff+set}" = set; then
3765   withval=$with_libtiff;
3766                         if test "$withval" = yes; then
3767                           wx_cv_use_libtiff='wxUSE_LIBTIFF=yes'
3768                         elif test "$withval" = no; then
3769                           wx_cv_use_libtiff='wxUSE_LIBTIFF=no'
3770                         elif test "$withval" = sys; then
3771                           wx_cv_use_libtiff='wxUSE_LIBTIFF=sys'
3772                         elif test "$withval" = builtin; then
3773                           wx_cv_use_libtiff='wxUSE_LIBTIFF=builtin'
3774                         else
3775                           { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
3776 echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
3777    { (exit 1); exit 1; }; }
3778                         fi
3779
3780 else
3781
3782                         wx_cv_use_libtiff='wxUSE_LIBTIFF=${'DEFAULT_wxUSE_LIBTIFF":-$wxUSE_ALL_FEATURES}"
3783
3784 fi
3785
3786
3787           eval "$wx_cv_use_libtiff"
3788
3789           if test "$wxUSE_LIBTIFF" = yes; then
3790             { echo "$as_me:$LINENO: result: yes" >&5
3791 echo "${ECHO_T}yes" >&6; }
3792           elif test "$wxUSE_LIBTIFF" = no; then
3793             { echo "$as_me:$LINENO: result: no" >&5
3794 echo "${ECHO_T}no" >&6; }
3795           elif test "$wxUSE_LIBTIFF" = sys; then
3796             { echo "$as_me:$LINENO: result: system version" >&5
3797 echo "${ECHO_T}system version" >&6; }
3798           elif test "$wxUSE_LIBTIFF" = builtin; then
3799             { echo "$as_me:$LINENO: result: builtin version" >&5
3800 echo "${ECHO_T}builtin version" >&6; }
3801           else
3802             { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
3803 echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
3804    { (exit 1); exit 1; }; }
3805           fi
3806
3807
3808           { echo "$as_me:$LINENO: checking for --with-libxpm" >&5
3809 echo $ECHO_N "checking for --with-libxpm... $ECHO_C" >&6; }
3810
3811 # Check whether --with-libxpm was given.
3812 if test "${with_libxpm+set}" = set; then
3813   withval=$with_libxpm;
3814                         if test "$withval" = yes; then
3815                           wx_cv_use_libxpm='wxUSE_LIBXPM=yes'
3816                         elif test "$withval" = no; then
3817                           wx_cv_use_libxpm='wxUSE_LIBXPM=no'
3818                         elif test "$withval" = sys; then
3819                           wx_cv_use_libxpm='wxUSE_LIBXPM=sys'
3820                         elif test "$withval" = builtin; then
3821                           wx_cv_use_libxpm='wxUSE_LIBXPM=builtin'
3822                         else
3823                           { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
3824 echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
3825    { (exit 1); exit 1; }; }
3826                         fi
3827
3828 else
3829
3830                         wx_cv_use_libxpm='wxUSE_LIBXPM=${'DEFAULT_wxUSE_LIBXPM":-$wxUSE_ALL_FEATURES}"
3831
3832 fi
3833
3834
3835           eval "$wx_cv_use_libxpm"
3836
3837           if test "$wxUSE_LIBXPM" = yes; then
3838             { echo "$as_me:$LINENO: result: yes" >&5
3839 echo "${ECHO_T}yes" >&6; }
3840           elif test "$wxUSE_LIBXPM" = no; then
3841             { echo "$as_me:$LINENO: result: no" >&5
3842 echo "${ECHO_T}no" >&6; }
3843           elif test "$wxUSE_LIBXPM" = sys; then
3844             { echo "$as_me:$LINENO: result: system version" >&5
3845 echo "${ECHO_T}system version" >&6; }
3846           elif test "$wxUSE_LIBXPM" = builtin; then
3847             { echo "$as_me:$LINENO: result: builtin version" >&5
3848 echo "${ECHO_T}builtin version" >&6; }
3849           else
3850             { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
3851 echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
3852    { (exit 1); exit 1; }; }
3853           fi
3854
3855
3856           withstring=
3857           defaultval=$wxUSE_ALL_FEATURES
3858           if test -z "$defaultval"; then
3859               if test x"$withstring" = xwithout; then
3860                   defaultval=yes
3861               else
3862                   defaultval=no
3863               fi
3864           fi
3865           { echo "$as_me:$LINENO: checking for --${withstring:-with}-libiconv" >&5
3866 echo $ECHO_N "checking for --${withstring:-with}-libiconv... $ECHO_C" >&6; }
3867
3868 # Check whether --with-libiconv was given.
3869 if test "${with_libiconv+set}" = set; then
3870   withval=$with_libiconv;
3871                         if test "$withval" = yes; then
3872                           wx_cv_use_libiconv='wxUSE_LIBICONV=yes'
3873                         else
3874                           wx_cv_use_libiconv='wxUSE_LIBICONV=no'
3875                         fi
3876
3877 else
3878
3879                         wx_cv_use_libiconv='wxUSE_LIBICONV=${'DEFAULT_wxUSE_LIBICONV":-$defaultval}"
3880
3881 fi
3882
3883
3884           eval "$wx_cv_use_libiconv"
3885
3886           if test x"$withstring" = xwithout; then
3887             if test $wxUSE_LIBICONV = yes; then
3888               result=no
3889             else
3890               result=yes
3891             fi
3892           else
3893             result=$wxUSE_LIBICONV
3894           fi
3895
3896           { echo "$as_me:$LINENO: result: $result" >&5
3897 echo "${ECHO_T}$result" >&6; }
3898
3899
3900           withstring=
3901           defaultval=$wxUSE_ALL_FEATURES
3902           if test -z "$defaultval"; then
3903               if test x"$withstring" = xwithout; then
3904                   defaultval=yes
3905               else
3906                   defaultval=no
3907               fi
3908           fi
3909           { echo "$as_me:$LINENO: checking for --${withstring:-with}-libmspack" >&5
3910 echo $ECHO_N "checking for --${withstring:-with}-libmspack... $ECHO_C" >&6; }
3911
3912 # Check whether --with-libmspack was given.
3913 if test "${with_libmspack+set}" = set; then
3914   withval=$with_libmspack;
3915                         if test "$withval" = yes; then
3916                           wx_cv_use_libmspack='wxUSE_LIBMSPACK=yes'
3917                         else
3918                           wx_cv_use_libmspack='wxUSE_LIBMSPACK=no'
3919                         fi
3920
3921 else
3922
3923                         wx_cv_use_libmspack='wxUSE_LIBMSPACK=${'DEFAULT_wxUSE_LIBMSPACK":-$defaultval}"
3924
3925 fi
3926
3927
3928           eval "$wx_cv_use_libmspack"
3929
3930           if test x"$withstring" = xwithout; then
3931             if test $wxUSE_LIBMSPACK = yes; then
3932               result=no
3933             else
3934               result=yes
3935             fi
3936           else
3937             result=$wxUSE_LIBMSPACK
3938           fi
3939
3940           { echo "$as_me:$LINENO: result: $result" >&5
3941 echo "${ECHO_T}$result" >&6; }
3942
3943
3944           withstring=without
3945           defaultval=$wxUSE_ALL_FEATURES
3946           if test -z "$defaultval"; then
3947               if test x"$withstring" = xwithout; then
3948                   defaultval=yes
3949               else
3950                   defaultval=no
3951               fi
3952           fi
3953           { echo "$as_me:$LINENO: checking for --${withstring:-with}-gtkprint" >&5
3954 echo $ECHO_N "checking for --${withstring:-with}-gtkprint... $ECHO_C" >&6; }
3955
3956 # Check whether --with-gtkprint was given.
3957 if test "${with_gtkprint+set}" = set; then
3958   withval=$with_gtkprint;
3959                         if test "$withval" = yes; then
3960                           wx_cv_use_gtkprint='wxUSE_GTKPRINT=yes'
3961                         else
3962                           wx_cv_use_gtkprint='wxUSE_GTKPRINT=no'
3963                         fi
3964
3965 else
3966
3967                         wx_cv_use_gtkprint='wxUSE_GTKPRINT=${'DEFAULT_wxUSE_GTKPRINT":-$defaultval}"
3968
3969 fi
3970
3971
3972           eval "$wx_cv_use_gtkprint"
3973
3974           if test x"$withstring" = xwithout; then
3975             if test $wxUSE_GTKPRINT = yes; then
3976               result=no
3977             else
3978               result=yes
3979             fi
3980           else
3981             result=$wxUSE_GTKPRINT
3982           fi
3983
3984           { echo "$as_me:$LINENO: result: $result" >&5
3985 echo "${ECHO_T}$result" >&6; }
3986
3987
3988           withstring=without
3989           defaultval=$wxUSE_ALL_FEATURES
3990           if test -z "$defaultval"; then
3991               if test x"$withstring" = xwithout; then
3992                   defaultval=yes
3993               else
3994                   defaultval=no
3995               fi
3996           fi
3997           { echo "$as_me:$LINENO: checking for --${withstring:-with}-gnomeprint" >&5
3998 echo $ECHO_N "checking for --${withstring:-with}-gnomeprint... $ECHO_C" >&6; }
3999
4000 # Check whether --with-gnomeprint was given.
4001 if test "${with_gnomeprint+set}" = set; then
4002   withval=$with_gnomeprint;
4003                         if test "$withval" = yes; then
4004                           wx_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=yes'
4005                         else
4006                           wx_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=no'
4007                         fi
4008
4009 else
4010
4011                         wx_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=${'DEFAULT_wxUSE_LIBGNOMEPRINT":-$defaultval}"
4012
4013 fi
4014
4015
4016           eval "$wx_cv_use_gnomeprint"
4017
4018           if test x"$withstring" = xwithout; then
4019             if test $wxUSE_LIBGNOMEPRINT = yes; then
4020               result=no
4021             else
4022               result=yes
4023             fi
4024           else
4025             result=$wxUSE_LIBGNOMEPRINT
4026           fi
4027
4028           { echo "$as_me:$LINENO: result: $result" >&5
4029 echo "${ECHO_T}$result" >&6; }
4030
4031
4032           withstring=
4033           defaultval=$wxUSE_ALL_FEATURES
4034           if test -z "$defaultval"; then
4035               if test x"$withstring" = xwithout; then
4036                   defaultval=yes
4037               else
4038                   defaultval=no
4039               fi
4040           fi
4041           { echo "$as_me:$LINENO: checking for --${withstring:-with}-gnomevfs" >&5
4042 echo $ECHO_N "checking for --${withstring:-with}-gnomevfs... $ECHO_C" >&6; }
4043
4044 # Check whether --with-gnomevfs was given.
4045 if test "${with_gnomevfs+set}" = set; then
4046   withval=$with_gnomevfs;
4047                         if test "$withval" = yes; then
4048                           wx_cv_use_gnomevfs='wxUSE_LIBGNOMEVFS=yes'
4049                         else
4050                           wx_cv_use_gnomevfs='wxUSE_LIBGNOMEVFS=no'
4051                         fi
4052
4053 else
4054
4055                         wx_cv_use_gnomevfs='wxUSE_LIBGNOMEVFS=${'DEFAULT_wxUSE_LIBGNOMEVFS":-$defaultval}"
4056
4057 fi
4058
4059
4060           eval "$wx_cv_use_gnomevfs"
4061
4062           if test x"$withstring" = xwithout; then
4063             if test $wxUSE_LIBGNOMEVFS = yes; then
4064               result=no
4065             else
4066               result=yes
4067             fi
4068           else
4069             result=$wxUSE_LIBGNOMEVFS
4070           fi
4071
4072           { echo "$as_me:$LINENO: result: $result" >&5
4073 echo "${ECHO_T}$result" >&6; }
4074
4075
4076           withstring=
4077           defaultval=$wxUSE_ALL_FEATURES
4078           if test -z "$defaultval"; then
4079               if test x"$withstring" = xwithout; then
4080                   defaultval=yes
4081               else
4082                   defaultval=no
4083               fi
4084           fi
4085           { echo "$as_me:$LINENO: checking for --${withstring:-with}-hildon" >&5
4086 echo $ECHO_N "checking for --${withstring:-with}-hildon... $ECHO_C" >&6; }
4087
4088 # Check whether --with-hildon was given.
4089 if test "${with_hildon+set}" = set; then
4090   withval=$with_hildon;
4091                         if test "$withval" = yes; then
4092                           wx_cv_use_hildon='wxUSE_LIBHILDON=yes'
4093                         else
4094                           wx_cv_use_hildon='wxUSE_LIBHILDON=no'
4095                         fi
4096
4097 else
4098
4099                         wx_cv_use_hildon='wxUSE_LIBHILDON=${'DEFAULT_wxUSE_LIBHILDON":-$defaultval}"
4100
4101 fi
4102
4103
4104           eval "$wx_cv_use_hildon"
4105
4106           if test x"$withstring" = xwithout; then
4107             if test $wxUSE_LIBHILDON = yes; then
4108               result=no
4109             else
4110               result=yes
4111             fi
4112           else
4113             result=$wxUSE_LIBHILDON
4114           fi
4115
4116           { echo "$as_me:$LINENO: result: $result" >&5
4117 echo "${ECHO_T}$result" >&6; }
4118
4119
4120           withstring=
4121           defaultval=$wxUSE_ALL_FEATURES
4122           if test -z "$defaultval"; then
4123               if test x"$withstring" = xwithout; then
4124                   defaultval=yes
4125               else
4126                   defaultval=no
4127               fi
4128           fi
4129           { echo "$as_me:$LINENO: checking for --${withstring:-with}-opengl" >&5
4130 echo $ECHO_N "checking for --${withstring:-with}-opengl... $ECHO_C" >&6; }
4131
4132 # Check whether --with-opengl was given.
4133 if test "${with_opengl+set}" = set; then
4134   withval=$with_opengl;
4135                         if test "$withval" = yes; then
4136                           wx_cv_use_opengl='wxUSE_OPENGL=yes'
4137                         else
4138                           wx_cv_use_opengl='wxUSE_OPENGL=no'
4139                         fi
4140
4141 else
4142
4143                         wx_cv_use_opengl='wxUSE_OPENGL=${'DEFAULT_wxUSE_OPENGL":-$defaultval}"
4144
4145 fi
4146
4147
4148           eval "$wx_cv_use_opengl"
4149
4150           if test x"$withstring" = xwithout; then
4151             if test $wxUSE_OPENGL = yes; then
4152               result=no
4153             else
4154               result=yes
4155             fi
4156           else
4157             result=$wxUSE_OPENGL
4158           fi
4159
4160           { echo "$as_me:$LINENO: result: $result" >&5
4161 echo "${ECHO_T}$result" >&6; }
4162
4163
4164 fi
4165
4166
4167           withstring=
4168           defaultval=$wxUSE_ALL_FEATURES
4169           if test -z "$defaultval"; then
4170               if test x"$withstring" = xwithout; then
4171                   defaultval=yes
4172               else
4173                   defaultval=no
4174               fi
4175           fi
4176           { echo "$as_me:$LINENO: checking for --${withstring:-with}-dmalloc" >&5
4177 echo $ECHO_N "checking for --${withstring:-with}-dmalloc... $ECHO_C" >&6; }
4178
4179 # Check whether --with-dmalloc was given.
4180 if test "${with_dmalloc+set}" = set; then
4181   withval=$with_dmalloc;
4182                         if test "$withval" = yes; then
4183                           wx_cv_use_dmalloc='wxUSE_DMALLOC=yes'
4184                         else
4185                           wx_cv_use_dmalloc='wxUSE_DMALLOC=no'
4186                         fi
4187
4188 else
4189
4190                         wx_cv_use_dmalloc='wxUSE_DMALLOC=${'DEFAULT_wxUSE_DMALLOC":-$defaultval}"
4191
4192 fi
4193
4194
4195           eval "$wx_cv_use_dmalloc"
4196
4197           if test x"$withstring" = xwithout; then
4198             if test $wxUSE_DMALLOC = yes; then
4199               result=no
4200             else
4201               result=yes
4202             fi
4203           else
4204             result=$wxUSE_DMALLOC
4205           fi
4206
4207           { echo "$as_me:$LINENO: result: $result" >&5
4208 echo "${ECHO_T}$result" >&6; }
4209
4210
4211           withstring=
4212           defaultval=$wxUSE_ALL_FEATURES
4213           if test -z "$defaultval"; then
4214               if test x"$withstring" = xwithout; then
4215                   defaultval=yes
4216               else
4217                   defaultval=no
4218               fi
4219           fi
4220           { echo "$as_me:$LINENO: checking for --${withstring:-with}-sdl" >&5
4221 echo $ECHO_N "checking for --${withstring:-with}-sdl... $ECHO_C" >&6; }
4222
4223 # Check whether --with-sdl was given.
4224 if test "${with_sdl+set}" = set; then
4225   withval=$with_sdl;
4226                         if test "$withval" = yes; then
4227                           wx_cv_use_sdl='wxUSE_LIBSDL=yes'
4228                         else
4229                           wx_cv_use_sdl='wxUSE_LIBSDL=no'
4230                         fi
4231
4232 else
4233
4234                         wx_cv_use_sdl='wxUSE_LIBSDL=${'DEFAULT_wxUSE_LIBSDL":-$defaultval}"
4235
4236 fi
4237
4238
4239           eval "$wx_cv_use_sdl"
4240
4241           if test x"$withstring" = xwithout; then
4242             if test $wxUSE_LIBSDL = yes; then
4243               result=no
4244             else
4245               result=yes
4246             fi
4247           else
4248             result=$wxUSE_LIBSDL
4249           fi
4250
4251           { echo "$as_me:$LINENO: result: $result" >&5
4252 echo "${ECHO_T}$result" >&6; }
4253
4254
4255           { echo "$as_me:$LINENO: checking for --with-regex" >&5
4256 echo $ECHO_N "checking for --with-regex... $ECHO_C" >&6; }
4257
4258 # Check whether --with-regex was given.
4259 if test "${with_regex+set}" = set; then
4260   withval=$with_regex;
4261                         if test "$withval" = yes; then
4262                           wx_cv_use_regex='wxUSE_REGEX=yes'
4263                         elif test "$withval" = no; then
4264                           wx_cv_use_regex='wxUSE_REGEX=no'
4265                         elif test "$withval" = sys; then
4266                           wx_cv_use_regex='wxUSE_REGEX=sys'
4267                         elif test "$withval" = builtin; then
4268                           wx_cv_use_regex='wxUSE_REGEX=builtin'
4269                         else
4270                           { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
4271 echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
4272    { (exit 1); exit 1; }; }
4273                         fi
4274
4275 else
4276
4277                         wx_cv_use_regex='wxUSE_REGEX=${'DEFAULT_wxUSE_REGEX":-$wxUSE_ALL_FEATURES}"
4278
4279 fi
4280
4281
4282           eval "$wx_cv_use_regex"
4283
4284           if test "$wxUSE_REGEX" = yes; then
4285             { echo "$as_me:$LINENO: result: yes" >&5
4286 echo "${ECHO_T}yes" >&6; }
4287           elif test "$wxUSE_REGEX" = no; then
4288             { echo "$as_me:$LINENO: result: no" >&5
4289 echo "${ECHO_T}no" >&6; }
4290           elif test "$wxUSE_REGEX" = sys; then
4291             { echo "$as_me:$LINENO: result: system version" >&5
4292 echo "${ECHO_T}system version" >&6; }
4293           elif test "$wxUSE_REGEX" = builtin; then
4294             { echo "$as_me:$LINENO: result: builtin version" >&5
4295 echo "${ECHO_T}builtin version" >&6; }
4296           else
4297             { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
4298 echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
4299    { (exit 1); exit 1; }; }
4300           fi
4301
4302
4303           { echo "$as_me:$LINENO: checking for --with-zlib" >&5
4304 echo $ECHO_N "checking for --with-zlib... $ECHO_C" >&6; }
4305
4306 # Check whether --with-zlib was given.
4307 if test "${with_zlib+set}" = set; then
4308   withval=$with_zlib;
4309                         if test "$withval" = yes; then
4310                           wx_cv_use_zlib='wxUSE_ZLIB=yes'
4311                         elif test "$withval" = no; then
4312                           wx_cv_use_zlib='wxUSE_ZLIB=no'
4313                         elif test "$withval" = sys; then
4314                           wx_cv_use_zlib='wxUSE_ZLIB=sys'
4315                         elif test "$withval" = builtin; then
4316                           wx_cv_use_zlib='wxUSE_ZLIB=builtin'
4317                         else
4318                           { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
4319 echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
4320    { (exit 1); exit 1; }; }
4321                         fi
4322
4323 else
4324
4325                         wx_cv_use_zlib='wxUSE_ZLIB=${'DEFAULT_wxUSE_ZLIB":-$wxUSE_ALL_FEATURES}"
4326
4327 fi
4328
4329
4330           eval "$wx_cv_use_zlib"
4331
4332           if test "$wxUSE_ZLIB" = yes; then
4333             { echo "$as_me:$LINENO: result: yes" >&5
4334 echo "${ECHO_T}yes" >&6; }
4335           elif test "$wxUSE_ZLIB" = no; then
4336             { echo "$as_me:$LINENO: result: no" >&5
4337 echo "${ECHO_T}no" >&6; }
4338           elif test "$wxUSE_ZLIB" = sys; then
4339             { echo "$as_me:$LINENO: result: system version" >&5
4340 echo "${ECHO_T}system version" >&6; }
4341           elif test "$wxUSE_ZLIB" = builtin; then
4342             { echo "$as_me:$LINENO: result: builtin version" >&5
4343 echo "${ECHO_T}builtin version" >&6; }
4344           else
4345             { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
4346 echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
4347    { (exit 1); exit 1; }; }
4348           fi
4349
4350
4351           { echo "$as_me:$LINENO: checking for --with-expat" >&5
4352 echo $ECHO_N "checking for --with-expat... $ECHO_C" >&6; }
4353
4354 # Check whether --with-expat was given.
4355 if test "${with_expat+set}" = set; then
4356   withval=$with_expat;
4357                         if test "$withval" = yes; then
4358                           wx_cv_use_expat='wxUSE_EXPAT=yes'
4359                         elif test "$withval" = no; then
4360                           wx_cv_use_expat='wxUSE_EXPAT=no'
4361                         elif test "$withval" = sys; then
4362                           wx_cv_use_expat='wxUSE_EXPAT=sys'
4363                         elif test "$withval" = builtin; then
4364                           wx_cv_use_expat='wxUSE_EXPAT=builtin'
4365                         else
4366                           { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
4367 echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
4368    { (exit 1); exit 1; }; }
4369                         fi
4370
4371 else
4372
4373                         wx_cv_use_expat='wxUSE_EXPAT=${'DEFAULT_wxUSE_EXPAT":-$wxUSE_ALL_FEATURES}"
4374
4375 fi
4376
4377
4378           eval "$wx_cv_use_expat"
4379
4380           if test "$wxUSE_EXPAT" = yes; then
4381             { echo "$as_me:$LINENO: result: yes" >&5
4382 echo "${ECHO_T}yes" >&6; }
4383           elif test "$wxUSE_EXPAT" = no; then
4384             { echo "$as_me:$LINENO: result: no" >&5
4385 echo "${ECHO_T}no" >&6; }
4386           elif test "$wxUSE_EXPAT" = sys; then
4387             { echo "$as_me:$LINENO: result: system version" >&5
4388 echo "${ECHO_T}system version" >&6; }
4389           elif test "$wxUSE_EXPAT" = builtin; then
4390             { echo "$as_me:$LINENO: result: builtin version" >&5
4391 echo "${ECHO_T}builtin version" >&6; }
4392           else
4393             { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
4394 echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
4395    { (exit 1); exit 1; }; }
4396           fi
4397
4398
4399 { echo "$as_me:$LINENO: checking for --with-macosx-sdk" >&5
4400 echo $ECHO_N "checking for --with-macosx-sdk... $ECHO_C" >&6; }
4401
4402 # Check whether --with-macosx-sdk was given.
4403 if test "${with_macosx_sdk+set}" = set; then
4404   withval=$with_macosx_sdk;
4405         wxUSE_MACOSX_SDK=$withval
4406         wx_cv_use_macosx_sdk="wxUSE_MACOSX_SDK=$withval"
4407
4408 fi
4409
4410 { echo "$as_me:$LINENO: result: $wxUSE_MACOSX_SDK" >&5
4411 echo "${ECHO_T}$wxUSE_MACOSX_SDK" >&6; }
4412
4413 { echo "$as_me:$LINENO: checking for --with-macosx-version-min" >&5
4414 echo $ECHO_N "checking for --with-macosx-version-min... $ECHO_C" >&6; }
4415
4416 # Check whether --with-macosx-version-min was given.
4417 if test "${with_macosx_version_min+set}" = set; then
4418   withval=$with_macosx_version_min;
4419         wxUSE_MACOSX_VERSION_MIN=$withval
4420         wx_cv_use_macosx_version_min="wxUSE_MACOSX_VERSION_MIN=$withval"
4421
4422 fi
4423
4424 { echo "$as_me:$LINENO: result: $wxUSE_MACOSX_VERSION_MIN" >&5
4425 echo "${ECHO_T}$wxUSE_MACOSX_VERSION_MIN" >&6; }
4426
4427
4428 { echo "$as_me:$LINENO: checking for --enable-debug" >&5
4429 echo $ECHO_N "checking for --enable-debug... $ECHO_C" >&6; }
4430 # Check whether --enable-debug was given.
4431 if test "${enable_debug+set}" = set; then
4432   enableval=$enable_debug;
4433         if test "$enableval" = yes; then
4434             wxUSE_DEBUG=yes
4435         elif test "$enableval" = no; then
4436             wxUSE_DEBUG=no
4437         elif test "$enableval" = max; then
4438             wxUSE_DEBUG=yes
4439             WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -DwxDEBUG_LEVEL=2"
4440         else
4441             { { echo "$as_me:$LINENO: error: Invalid --enable-debug value, must be yes, no or max" >&5
4442 echo "$as_me: error: Invalid --enable-debug value, must be yes, no or max" >&2;}
4443    { (exit 1); exit 1; }; }
4444         fi
4445
4446 else
4447   wxUSE_DEBUG=default
4448
4449 fi
4450
4451
4452 case "$wxUSE_DEBUG" in
4453     yes)
4454                         DEFAULT_wxUSE_DEBUG_FLAG=yes
4455         DEFAULT_wxUSE_DEBUG_INFO=yes
4456
4457                         DEFAULT_wxUSE_OPTIMISE=no
4458         ;;
4459
4460     no)
4461                         DEFAULT_wxUSE_DEBUG_FLAG=no
4462         DEFAULT_wxUSE_DEBUG_INFO=no
4463         ;;
4464
4465     default)
4466                         DEFAULT_wxUSE_DEBUG_FLAG=yes
4467         DEFAULT_wxUSE_DEBUG_INFO=no
4468         ;;
4469 esac
4470
4471
4472           enablestring=disable
4473           defaultval=
4474           if test -z "$defaultval"; then
4475               if test x"$enablestring" = xdisable; then
4476                   defaultval=yes
4477               else
4478                   defaultval=no
4479               fi
4480           fi
4481
4482           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_flag" >&5
4483 echo $ECHO_N "checking for --${enablestring:-enable}-debug_flag... $ECHO_C" >&6; }
4484           # Check whether --enable-debug_flag was given.
4485 if test "${enable_debug_flag+set}" = set; then
4486   enableval=$enable_debug_flag;
4487                           if test "$enableval" = yes; then
4488                             wx_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
4489                           else
4490                             wx_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
4491                           fi
4492
4493 else
4494
4495                           wx_cv_use_debug_flag='wxUSE_DEBUG_FLAG=${'DEFAULT_wxUSE_DEBUG_FLAG":-$defaultval}"
4496
4497 fi
4498
4499
4500           eval "$wx_cv_use_debug_flag"
4501
4502           if test x"$enablestring" = xdisable; then
4503             if test $wxUSE_DEBUG_FLAG = no; then
4504               result=yes
4505             else
4506               result=no
4507             fi
4508           else
4509             result=$wxUSE_DEBUG_FLAG
4510           fi
4511
4512           { echo "$as_me:$LINENO: result: $result" >&5
4513 echo "${ECHO_T}$result" >&6; }
4514
4515
4516           enablestring=
4517           defaultval=
4518           if test -z "$defaultval"; then
4519               if test x"$enablestring" = xdisable; then
4520                   defaultval=yes
4521               else
4522                   defaultval=no
4523               fi
4524           fi
4525
4526           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_info" >&5
4527 echo $ECHO_N "checking for --${enablestring:-enable}-debug_info... $ECHO_C" >&6; }
4528           # Check whether --enable-debug_info was given.
4529 if test "${enable_debug_info+set}" = set; then
4530   enableval=$enable_debug_info;
4531                           if test "$enableval" = yes; then
4532                             wx_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
4533                           else
4534                             wx_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
4535                           fi
4536
4537 else
4538
4539                           wx_cv_use_debug_info='wxUSE_DEBUG_INFO=${'DEFAULT_wxUSE_DEBUG_INFO":-$defaultval}"
4540
4541 fi
4542
4543
4544           eval "$wx_cv_use_debug_info"
4545
4546           if test x"$enablestring" = xdisable; then
4547             if test $wxUSE_DEBUG_INFO = no; then
4548               result=yes
4549             else
4550               result=no
4551             fi
4552           else
4553             result=$wxUSE_DEBUG_INFO
4554           fi
4555
4556           { echo "$as_me:$LINENO: result: $result" >&5
4557 echo "${ECHO_T}$result" >&6; }
4558
4559
4560
4561
4562           enablestring=
4563           defaultval=
4564           if test -z "$defaultval"; then
4565               if test x"$enablestring" = xdisable; then
4566                   defaultval=yes
4567               else
4568                   defaultval=no
4569               fi
4570           fi
4571
4572           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_gdb" >&5
4573 echo $ECHO_N "checking for --${enablestring:-enable}-debug_gdb... $ECHO_C" >&6; }
4574           # Check whether --enable-debug_gdb was given.
4575 if test "${enable_debug_gdb+set}" = set; then
4576   enableval=$enable_debug_gdb;
4577                           if test "$enableval" = yes; then
4578                             wx_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
4579                           else
4580                             wx_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
4581                           fi
4582
4583 else
4584
4585                           wx_cv_use_debug_gdb='wxUSE_DEBUG_GDB=${'DEFAULT_wxUSE_DEBUG_GDB":-$defaultval}"
4586
4587 fi
4588
4589
4590           eval "$wx_cv_use_debug_gdb"
4591
4592           if test x"$enablestring" = xdisable; then
4593             if test $wxUSE_DEBUG_GDB = no; then
4594               result=yes
4595             else
4596               result=no
4597             fi
4598           else
4599             result=$wxUSE_DEBUG_GDB
4600           fi
4601
4602           { echo "$as_me:$LINENO: result: $result" >&5
4603 echo "${ECHO_T}$result" >&6; }
4604
4605
4606           enablestring=
4607           defaultval=
4608           if test -z "$defaultval"; then
4609               if test x"$enablestring" = xdisable; then
4610                   defaultval=yes
4611               else
4612                   defaultval=no
4613               fi
4614           fi
4615
4616           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_cntxt" >&5
4617 echo $ECHO_N "checking for --${enablestring:-enable}-debug_cntxt... $ECHO_C" >&6; }
4618           # Check whether --enable-debug_cntxt was given.
4619 if test "${enable_debug_cntxt+set}" = set; then
4620   enableval=$enable_debug_cntxt;
4621                           if test "$enableval" = yes; then
4622                             wx_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
4623                           else
4624                             wx_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
4625                           fi
4626
4627 else
4628
4629                           wx_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=${'DEFAULT_wxUSE_DEBUG_CONTEXT":-$defaultval}"
4630
4631 fi
4632
4633
4634           eval "$wx_cv_use_debug_cntxt"
4635
4636           if test x"$enablestring" = xdisable; then
4637             if test $wxUSE_DEBUG_CONTEXT = no; then
4638               result=yes
4639             else
4640               result=no
4641             fi
4642           else
4643             result=$wxUSE_DEBUG_CONTEXT
4644           fi
4645
4646           { echo "$as_me:$LINENO: result: $result" >&5
4647 echo "${ECHO_T}$result" >&6; }
4648
4649
4650           enablestring=
4651           defaultval=
4652           if test -z "$defaultval"; then
4653               if test x"$enablestring" = xdisable; then
4654                   defaultval=yes
4655               else
4656                   defaultval=no
4657               fi
4658           fi
4659
4660           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mem_tracing" >&5
4661 echo $ECHO_N "checking for --${enablestring:-enable}-mem_tracing... $ECHO_C" >&6; }
4662           # Check whether --enable-mem_tracing was given.
4663 if test "${enable_mem_tracing+set}" = set; then
4664   enableval=$enable_mem_tracing;
4665                           if test "$enableval" = yes; then
4666                             wx_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
4667                           else
4668                             wx_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
4669                           fi
4670
4671 else
4672
4673                           wx_cv_use_mem_tracing='wxUSE_MEM_TRACING=${'DEFAULT_wxUSE_MEM_TRACING":-$defaultval}"
4674
4675 fi
4676
4677
4678           eval "$wx_cv_use_mem_tracing"
4679
4680           if test x"$enablestring" = xdisable; then
4681             if test $wxUSE_MEM_TRACING = no; then
4682               result=yes
4683             else
4684               result=no
4685             fi
4686           else
4687             result=$wxUSE_MEM_TRACING
4688           fi
4689
4690           { echo "$as_me:$LINENO: result: $result" >&5
4691 echo "${ECHO_T}$result" >&6; }
4692
4693
4694
4695
4696           enablestring=disable
4697           defaultval=
4698           if test -z "$defaultval"; then
4699               if test x"$enablestring" = xdisable; then
4700                   defaultval=yes
4701               else
4702                   defaultval=no
4703               fi
4704           fi
4705
4706           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-shared" >&5
4707 echo $ECHO_N "checking for --${enablestring:-enable}-shared... $ECHO_C" >&6; }
4708           # Check whether --enable-shared was given.
4709 if test "${enable_shared+set}" = set; then
4710   enableval=$enable_shared;
4711                           if test "$enableval" = yes; then
4712                             wx_cv_use_shared='wxUSE_SHARED=yes'
4713                           else
4714                             wx_cv_use_shared='wxUSE_SHARED=no'
4715                           fi
4716
4717 else
4718
4719                           wx_cv_use_shared='wxUSE_SHARED=${'DEFAULT_wxUSE_SHARED":-$defaultval}"
4720
4721 fi
4722
4723
4724           eval "$wx_cv_use_shared"
4725
4726           if test x"$enablestring" = xdisable; then
4727             if test $wxUSE_SHARED = no; then
4728               result=yes
4729             else
4730               result=no
4731             fi
4732           else
4733             result=$wxUSE_SHARED
4734           fi
4735
4736           { echo "$as_me:$LINENO: result: $result" >&5
4737 echo "${ECHO_T}$result" >&6; }
4738
4739
4740           enablestring=
4741           defaultval=
4742           if test -z "$defaultval"; then
4743               if test x"$enablestring" = xdisable; then
4744                   defaultval=yes
4745               else
4746                   defaultval=no
4747               fi
4748           fi
4749
4750           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stl" >&5
4751 echo $ECHO_N "checking for --${enablestring:-enable}-stl... $ECHO_C" >&6; }
4752           # Check whether --enable-stl was given.
4753 if test "${enable_stl+set}" = set; then
4754   enableval=$enable_stl;
4755                           if test "$enableval" = yes; then
4756                             wx_cv_use_stl='wxUSE_STL=yes'
4757                           else
4758                             wx_cv_use_stl='wxUSE_STL=no'
4759                           fi
4760
4761 else
4762
4763                           wx_cv_use_stl='wxUSE_STL=${'DEFAULT_wxUSE_STL":-$defaultval}"
4764
4765 fi
4766
4767
4768           eval "$wx_cv_use_stl"
4769
4770           if test x"$enablestring" = xdisable; then
4771             if test $wxUSE_STL = no; then
4772               result=yes
4773             else
4774               result=no
4775             fi
4776           else
4777             result=$wxUSE_STL
4778           fi
4779
4780           { echo "$as_me:$LINENO: result: $result" >&5
4781 echo "${ECHO_T}$result" >&6; }
4782
4783 if test "$wxUSE_STL" = "yes"; then
4784     DEFAULT_wxUSE_STD_CONTAINERS=yes
4785     DEFAULT_wxUSE_STD_IOSTREAM=yes
4786     DEFAULT_wxUSE_STD_STRING=yes
4787 fi
4788
4789           enablestring=
4790           defaultval=
4791           if test -z "$defaultval"; then
4792               if test x"$enablestring" = xdisable; then
4793                   defaultval=yes
4794               else
4795                   defaultval=no
4796               fi
4797           fi
4798
4799           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_containers" >&5
4800 echo $ECHO_N "checking for --${enablestring:-enable}-std_containers... $ECHO_C" >&6; }
4801           # Check whether --enable-std_containers was given.
4802 if test "${enable_std_containers+set}" = set; then
4803   enableval=$enable_std_containers;
4804                           if test "$enableval" = yes; then
4805                             wx_cv_use_std_containers='wxUSE_STD_CONTAINERS=yes'
4806                           else
4807                             wx_cv_use_std_containers='wxUSE_STD_CONTAINERS=no'
4808                           fi
4809
4810 else
4811
4812                           wx_cv_use_std_containers='wxUSE_STD_CONTAINERS=${'DEFAULT_wxUSE_STD_CONTAINERS":-$defaultval}"
4813
4814 fi
4815
4816
4817           eval "$wx_cv_use_std_containers"
4818
4819           if test x"$enablestring" = xdisable; then
4820             if test $wxUSE_STD_CONTAINERS = no; then
4821               result=yes
4822             else
4823               result=no
4824             fi
4825           else
4826             result=$wxUSE_STD_CONTAINERS
4827           fi
4828
4829           { echo "$as_me:$LINENO: result: $result" >&5
4830 echo "${ECHO_T}$result" >&6; }
4831
4832
4833           enablestring=
4834           defaultval=
4835           if test -z "$defaultval"; then
4836               if test x"$enablestring" = xdisable; then
4837                   defaultval=yes
4838               else
4839                   defaultval=no
4840               fi
4841           fi
4842
4843           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_iostreams" >&5
4844 echo $ECHO_N "checking for --${enablestring:-enable}-std_iostreams... $ECHO_C" >&6; }
4845           # Check whether --enable-std_iostreams was given.
4846 if test "${enable_std_iostreams+set}" = set; then
4847   enableval=$enable_std_iostreams;
4848                           if test "$enableval" = yes; then
4849                             wx_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
4850                           else
4851                             wx_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
4852                           fi
4853
4854 else
4855
4856                           wx_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=${'DEFAULT_wxUSE_STD_IOSTREAM":-$defaultval}"
4857
4858 fi
4859
4860
4861           eval "$wx_cv_use_std_iostreams"
4862
4863           if test x"$enablestring" = xdisable; then
4864             if test $wxUSE_STD_IOSTREAM = no; then
4865               result=yes
4866             else
4867               result=no
4868             fi
4869           else
4870             result=$wxUSE_STD_IOSTREAM
4871           fi
4872
4873           { echo "$as_me:$LINENO: result: $result" >&5
4874 echo "${ECHO_T}$result" >&6; }
4875
4876
4877           enablestring=
4878           defaultval=
4879           if test -z "$defaultval"; then
4880               if test x"$enablestring" = xdisable; then
4881                   defaultval=yes
4882               else
4883                   defaultval=no
4884               fi
4885           fi
4886
4887           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_string" >&5
4888 echo $ECHO_N "checking for --${enablestring:-enable}-std_string... $ECHO_C" >&6; }
4889           # Check whether --enable-std_string was given.
4890 if test "${enable_std_string+set}" = set; then
4891   enableval=$enable_std_string;
4892                           if test "$enableval" = yes; then
4893                             wx_cv_use_std_string='wxUSE_STD_STRING=yes'
4894                           else
4895                             wx_cv_use_std_string='wxUSE_STD_STRING=no'
4896                           fi
4897
4898 else
4899
4900                           wx_cv_use_std_string='wxUSE_STD_STRING=${'DEFAULT_wxUSE_STD_STRING":-$defaultval}"
4901
4902 fi
4903
4904
4905           eval "$wx_cv_use_std_string"
4906
4907           if test x"$enablestring" = xdisable; then
4908             if test $wxUSE_STD_STRING = no; then
4909               result=yes
4910             else
4911               result=no
4912             fi
4913           else
4914             result=$wxUSE_STD_STRING
4915           fi
4916
4917           { echo "$as_me:$LINENO: result: $result" >&5
4918 echo "${ECHO_T}$result" >&6; }
4919
4920
4921           enablestring=
4922           defaultval=
4923           if test -z "$defaultval"; then
4924               if test x"$enablestring" = xdisable; then
4925                   defaultval=yes
4926               else
4927                   defaultval=no
4928               fi
4929           fi
4930
4931           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_string_conv_in_wxstring" >&5
4932 echo $ECHO_N "checking for --${enablestring:-enable}-std_string_conv_in_wxstring... $ECHO_C" >&6; }
4933           # Check whether --enable-std_string_conv_in_wxstring was given.
4934 if test "${enable_std_string_conv_in_wxstring+set}" = set; then
4935   enableval=$enable_std_string_conv_in_wxstring;
4936                           if test "$enableval" = yes; then
4937                             wx_cv_use_std_string_conv_in_wxstring='wxUSE_STD_STRING_CONV_IN_WXSTRING=yes'
4938                           else
4939                             wx_cv_use_std_string_conv_in_wxstring='wxUSE_STD_STRING_CONV_IN_WXSTRING=no'
4940                           fi
4941
4942 else
4943
4944                           wx_cv_use_std_string_conv_in_wxstring='wxUSE_STD_STRING_CONV_IN_WXSTRING=${'DEFAULT_wxUSE_STD_STRING_CONV_IN_WXSTRING":-$defaultval}"
4945
4946 fi
4947
4948
4949           eval "$wx_cv_use_std_string_conv_in_wxstring"
4950
4951           if test x"$enablestring" = xdisable; then
4952             if test $wxUSE_STD_STRING_CONV_IN_WXSTRING = no; then
4953               result=yes
4954             else
4955               result=no
4956             fi
4957           else
4958             result=$wxUSE_STD_STRING_CONV_IN_WXSTRING
4959           fi
4960
4961           { echo "$as_me:$LINENO: result: $result" >&5
4962 echo "${ECHO_T}$result" >&6; }
4963
4964
4965           enablestring=disable
4966           defaultval=
4967           if test -z "$defaultval"; then
4968               if test x"$enablestring" = xdisable; then
4969                   defaultval=yes
4970               else
4971                   defaultval=no
4972               fi
4973           fi
4974
4975           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-unicode" >&5
4976 echo $ECHO_N "checking for --${enablestring:-enable}-unicode... $ECHO_C" >&6; }
4977           # Check whether --enable-unicode was given.
4978 if test "${enable_unicode+set}" = set; then
4979   enableval=$enable_unicode;
4980                           if test "$enableval" = yes; then
4981                             wx_cv_use_unicode='wxUSE_UNICODE=yes'
4982                           else
4983                             wx_cv_use_unicode='wxUSE_UNICODE=no'
4984                           fi
4985
4986 else
4987
4988                           wx_cv_use_unicode='wxUSE_UNICODE=${'DEFAULT_wxUSE_UNICODE":-$defaultval}"
4989
4990 fi
4991
4992
4993           eval "$wx_cv_use_unicode"
4994
4995           if test x"$enablestring" = xdisable; then
4996             if test $wxUSE_UNICODE = no; then
4997               result=yes
4998             else
4999               result=no
5000             fi
5001           else
5002             result=$wxUSE_UNICODE
5003           fi
5004
5005           { echo "$as_me:$LINENO: result: $result" >&5
5006 echo "${ECHO_T}$result" >&6; }
5007
5008
5009           enablestring=
5010           defaultval=
5011           if test -z "$defaultval"; then
5012               if test x"$enablestring" = xdisable; then
5013                   defaultval=yes
5014               else
5015                   defaultval=no
5016               fi
5017           fi
5018
5019           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mslu" >&5
5020 echo $ECHO_N "checking for --${enablestring:-enable}-mslu... $ECHO_C" >&6; }
5021           # Check whether --enable-mslu was given.
5022 if test "${enable_mslu+set}" = set; then
5023   enableval=$enable_mslu;
5024                           if test "$enableval" = yes; then
5025                             wx_cv_use_mslu='wxUSE_UNICODE_MSLU=yes'
5026                           else
5027                             wx_cv_use_mslu='wxUSE_UNICODE_MSLU=no'
5028                           fi
5029
5030 else
5031
5032                           wx_cv_use_mslu='wxUSE_UNICODE_MSLU=${'DEFAULT_wxUSE_UNICODE_MSLU":-$defaultval}"
5033
5034 fi
5035
5036
5037           eval "$wx_cv_use_mslu"
5038
5039           if test x"$enablestring" = xdisable; then
5040             if test $wxUSE_UNICODE_MSLU = no; then
5041               result=yes
5042             else
5043               result=no
5044             fi
5045           else
5046             result=$wxUSE_UNICODE_MSLU
5047           fi
5048
5049           { echo "$as_me:$LINENO: result: $result" >&5
5050 echo "${ECHO_T}$result" >&6; }
5051
5052
5053           enablestring=
5054           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-utf8" >&5
5055 echo $ECHO_N "checking for --${enablestring:-enable}-utf8... $ECHO_C" >&6; }
5056           # Check whether --enable-utf8 was given.
5057 if test "${enable_utf8+set}" = set; then
5058   enableval=$enable_utf8;
5059                           wx_cv_use_utf8="wxUSE_UNICODE_UTF8='$enableval'"
5060
5061 else
5062
5063                           wx_cv_use_utf8='wxUSE_UNICODE_UTF8='$DEFAULT_wxUSE_UNICODE_UTF8
5064
5065 fi
5066
5067
5068           eval "$wx_cv_use_utf8"
5069
5070           { echo "$as_me:$LINENO: result: $wxUSE_UNICODE_UTF8" >&5
5071 echo "${ECHO_T}$wxUSE_UNICODE_UTF8" >&6; }
5072
5073
5074           enablestring=
5075           defaultval=
5076           if test -z "$defaultval"; then
5077               if test x"$enablestring" = xdisable; then
5078                   defaultval=yes
5079               else
5080                   defaultval=no
5081               fi
5082           fi
5083
5084           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-utf8only" >&5
5085 echo $ECHO_N "checking for --${enablestring:-enable}-utf8only... $ECHO_C" >&6; }
5086           # Check whether --enable-utf8only was given.
5087 if test "${enable_utf8only+set}" = set; then
5088   enableval=$enable_utf8only;
5089                           if test "$enableval" = yes; then
5090                             wx_cv_use_utf8only='wxUSE_UNICODE_UTF8_LOCALE=yes'
5091                           else
5092                             wx_cv_use_utf8only='wxUSE_UNICODE_UTF8_LOCALE=no'
5093                           fi
5094
5095 else
5096
5097                           wx_cv_use_utf8only='wxUSE_UNICODE_UTF8_LOCALE=${'DEFAULT_wxUSE_UNICODE_UTF8_LOCALE":-$defaultval}"
5098
5099 fi
5100
5101
5102           eval "$wx_cv_use_utf8only"
5103
5104           if test x"$enablestring" = xdisable; then
5105             if test $wxUSE_UNICODE_UTF8_LOCALE = no; then
5106               result=yes
5107             else
5108               result=no
5109             fi
5110           else
5111             result=$wxUSE_UNICODE_UTF8_LOCALE
5112           fi
5113
5114           { echo "$as_me:$LINENO: result: $result" >&5
5115 echo "${ECHO_T}$result" >&6; }
5116
5117
5118           enablestring=
5119           defaultval=
5120           if test -z "$defaultval"; then
5121               if test x"$enablestring" = xdisable; then
5122                   defaultval=yes
5123               else
5124                   defaultval=no
5125               fi
5126           fi
5127
5128           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-extended_rtti" >&5
5129 echo $ECHO_N "checking for --${enablestring:-enable}-extended_rtti... $ECHO_C" >&6; }
5130           # Check whether --enable-extended_rtti was given.
5131 if test "${enable_extended_rtti+set}" = set; then
5132   enableval=$enable_extended_rtti;
5133                           if test "$enableval" = yes; then
5134                             wx_cv_use_extended_rtti='wxUSE_EXTENDED_RTTI=yes'
5135                           else
5136                             wx_cv_use_extended_rtti='wxUSE_EXTENDED_RTTI=no'
5137                           fi
5138
5139 else
5140
5141                           wx_cv_use_extended_rtti='wxUSE_EXTENDED_RTTI=${'DEFAULT_wxUSE_EXTENDED_RTTI":-$defaultval}"
5142
5143 fi
5144
5145
5146           eval "$wx_cv_use_extended_rtti"
5147
5148           if test x"$enablestring" = xdisable; then
5149             if test $wxUSE_EXTENDED_RTTI = no; then
5150               result=yes
5151             else
5152               result=no
5153             fi
5154           else
5155             result=$wxUSE_EXTENDED_RTTI
5156           fi
5157
5158           { echo "$as_me:$LINENO: result: $result" >&5
5159 echo "${ECHO_T}$result" >&6; }
5160
5161 if test "$USE_OS2" = 1; then
5162     DEFAULT_wxUSE_OMF=no
5163
5164           enablestring=
5165           defaultval=
5166           if test -z "$defaultval"; then
5167               if test x"$enablestring" = xdisable; then
5168                   defaultval=yes
5169               else
5170                   defaultval=no
5171               fi
5172           fi
5173
5174           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-omf" >&5
5175 echo $ECHO_N "checking for --${enablestring:-enable}-omf... $ECHO_C" >&6; }
5176           # Check whether --enable-omf was given.
5177 if test "${enable_omf+set}" = set; then
5178   enableval=$enable_omf;
5179                           if test "$enableval" = yes; then
5180                             wx_cv_use_omf='wxUSE_OMF=yes'
5181                           else
5182                             wx_cv_use_omf='wxUSE_OMF=no'
5183                           fi
5184
5185 else
5186
5187                           wx_cv_use_omf='wxUSE_OMF=${'DEFAULT_wxUSE_OMF":-$defaultval}"
5188
5189 fi
5190
5191
5192           eval "$wx_cv_use_omf"
5193
5194           if test x"$enablestring" = xdisable; then
5195             if test $wxUSE_OMF = no; then
5196               result=yes
5197             else
5198               result=no
5199             fi
5200           else
5201             result=$wxUSE_OMF
5202           fi
5203
5204           { echo "$as_me:$LINENO: result: $result" >&5
5205 echo "${ECHO_T}$result" >&6; }
5206
5207 fi
5208
5209
5210           enablestring=disable
5211           defaultval=
5212           if test -z "$defaultval"; then
5213               if test x"$enablestring" = xdisable; then
5214                   defaultval=yes
5215               else
5216                   defaultval=no
5217               fi
5218           fi
5219
5220           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-optimise" >&5
5221 echo $ECHO_N "checking for --${enablestring:-enable}-optimise... $ECHO_C" >&6; }
5222           # Check whether --enable-optimise was given.
5223 if test "${enable_optimise+set}" = set; then
5224   enableval=$enable_optimise;
5225                           if test "$enableval" = yes; then
5226                             wx_cv_use_optimise='wxUSE_OPTIMISE=yes'
5227                           else
5228                             wx_cv_use_optimise='wxUSE_OPTIMISE=no'
5229                           fi
5230
5231 else
5232
5233                           wx_cv_use_optimise='wxUSE_OPTIMISE=${'DEFAULT_wxUSE_OPTIMISE":-$defaultval}"
5234
5235 fi
5236
5237
5238           eval "$wx_cv_use_optimise"
5239
5240           if test x"$enablestring" = xdisable; then
5241             if test $wxUSE_OPTIMISE = no; then
5242               result=yes
5243             else
5244               result=no
5245             fi
5246           else
5247             result=$wxUSE_OPTIMISE
5248           fi
5249
5250           { echo "$as_me:$LINENO: result: $result" >&5
5251 echo "${ECHO_T}$result" >&6; }
5252
5253
5254
5255           enablestring=
5256           defaultval=
5257           if test -z "$defaultval"; then
5258               if test x"$enablestring" = xdisable; then
5259                   defaultval=yes
5260               else
5261                   defaultval=no
5262               fi
5263           fi
5264
5265           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-profile" >&5
5266 echo $ECHO_N "checking for --${enablestring:-enable}-profile... $ECHO_C" >&6; }
5267           # Check whether --enable-profile was given.
5268 if test "${enable_profile+set}" = set; then
5269   enableval=$enable_profile;
5270                           if test "$enableval" = yes; then
5271                             wx_cv_use_profile='wxUSE_PROFILE=yes'
5272                           else
5273                             wx_cv_use_profile='wxUSE_PROFILE=no'
5274                           fi
5275
5276 else
5277
5278                           wx_cv_use_profile='wxUSE_PROFILE=${'DEFAULT_wxUSE_PROFILE":-$defaultval}"
5279
5280 fi
5281
5282
5283           eval "$wx_cv_use_profile"
5284
5285           if test x"$enablestring" = xdisable; then
5286             if test $wxUSE_PROFILE = no; then
5287               result=yes
5288             else
5289               result=no
5290             fi
5291           else
5292             result=$wxUSE_PROFILE
5293           fi
5294
5295           { echo "$as_me:$LINENO: result: $result" >&5
5296 echo "${ECHO_T}$result" >&6; }
5297
5298
5299           enablestring=
5300           defaultval=
5301           if test -z "$defaultval"; then
5302               if test x"$enablestring" = xdisable; then
5303                   defaultval=yes
5304               else
5305                   defaultval=no
5306               fi
5307           fi
5308
5309           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_rtti" >&5
5310 echo $ECHO_N "checking for --${enablestring:-enable}-no_rtti... $ECHO_C" >&6; }
5311           # Check whether --enable-no_rtti was given.
5312 if test "${enable_no_rtti+set}" = set; then
5313   enableval=$enable_no_rtti;
5314                           if test "$enableval" = yes; then
5315                             wx_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
5316                           else
5317                             wx_cv_use_no_rtti='wxUSE_NO_RTTI=no'
5318                           fi
5319
5320 else
5321
5322                           wx_cv_use_no_rtti='wxUSE_NO_RTTI=${'DEFAULT_wxUSE_NO_RTTI":-$defaultval}"
5323
5324 fi
5325
5326
5327           eval "$wx_cv_use_no_rtti"
5328
5329           if test x"$enablestring" = xdisable; then
5330             if test $wxUSE_NO_RTTI = no; then
5331               result=yes
5332             else
5333               result=no
5334             fi
5335           else
5336             result=$wxUSE_NO_RTTI
5337           fi
5338
5339           { echo "$as_me:$LINENO: result: $result" >&5
5340 echo "${ECHO_T}$result" >&6; }
5341
5342
5343           enablestring=
5344           defaultval=
5345           if test -z "$defaultval"; then
5346               if test x"$enablestring" = xdisable; then
5347                   defaultval=yes
5348               else
5349                   defaultval=no
5350               fi
5351           fi
5352
5353           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_exceptions" >&5
5354 echo $ECHO_N "checking for --${enablestring:-enable}-no_exceptions... $ECHO_C" >&6; }
5355           # Check whether --enable-no_exceptions was given.
5356 if test "${enable_no_exceptions+set}" = set; then
5357   enableval=$enable_no_exceptions;
5358                           if test "$enableval" = yes; then
5359                             wx_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
5360                           else
5361                             wx_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
5362                           fi
5363
5364 else
5365
5366                           wx_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=${'DEFAULT_wxUSE_NO_EXCEPTIONS":-$defaultval}"
5367
5368 fi
5369
5370
5371           eval "$wx_cv_use_no_exceptions"
5372
5373           if test x"$enablestring" = xdisable; then
5374             if test $wxUSE_NO_EXCEPTIONS = no; then
5375               result=yes
5376             else
5377               result=no
5378             fi
5379           else
5380             result=$wxUSE_NO_EXCEPTIONS
5381           fi
5382
5383           { echo "$as_me:$LINENO: result: $result" >&5
5384 echo "${ECHO_T}$result" >&6; }
5385
5386
5387           enablestring=
5388           defaultval=
5389           if test -z "$defaultval"; then
5390               if test x"$enablestring" = xdisable; then
5391                   defaultval=yes
5392               else
5393                   defaultval=no
5394               fi
5395           fi
5396
5397           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-permissive" >&5
5398 echo $ECHO_N "checking for --${enablestring:-enable}-permissive... $ECHO_C" >&6; }
5399           # Check whether --enable-permissive was given.
5400 if test "${enable_permissive+set}" = set; then
5401   enableval=$enable_permissive;
5402                           if test "$enableval" = yes; then
5403                             wx_cv_use_permissive='wxUSE_PERMISSIVE=yes'
5404                           else
5405                             wx_cv_use_permissive='wxUSE_PERMISSIVE=no'
5406                           fi
5407
5408 else
5409
5410                           wx_cv_use_permissive='wxUSE_PERMISSIVE=${'DEFAULT_wxUSE_PERMISSIVE":-$defaultval}"
5411
5412 fi
5413
5414
5415           eval "$wx_cv_use_permissive"
5416
5417           if test x"$enablestring" = xdisable; then
5418             if test $wxUSE_PERMISSIVE = no; then
5419               result=yes
5420             else
5421               result=no
5422             fi
5423           else
5424             result=$wxUSE_PERMISSIVE
5425           fi
5426
5427           { echo "$as_me:$LINENO: result: $result" >&5
5428 echo "${ECHO_T}$result" >&6; }
5429
5430
5431           enablestring=
5432           defaultval=
5433           if test -z "$defaultval"; then
5434               if test x"$enablestring" = xdisable; then
5435                   defaultval=yes
5436               else
5437                   defaultval=no
5438               fi
5439           fi
5440
5441           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_deps" >&5
5442 echo $ECHO_N "checking for --${enablestring:-enable}-no_deps... $ECHO_C" >&6; }
5443           # Check whether --enable-no_deps was given.
5444 if test "${enable_no_deps+set}" = set; then
5445   enableval=$enable_no_deps;
5446                           if test "$enableval" = yes; then
5447                             wx_cv_use_no_deps='wxUSE_NO_DEPS=yes'
5448                           else
5449                             wx_cv_use_no_deps='wxUSE_NO_DEPS=no'
5450                           fi
5451
5452 else
5453
5454                           wx_cv_use_no_deps='wxUSE_NO_DEPS=${'DEFAULT_wxUSE_NO_DEPS":-$defaultval}"
5455
5456 fi
5457
5458
5459           eval "$wx_cv_use_no_deps"
5460
5461           if test x"$enablestring" = xdisable; then
5462             if test $wxUSE_NO_DEPS = no; then
5463               result=yes
5464             else
5465               result=no
5466             fi
5467           else
5468             result=$wxUSE_NO_DEPS
5469           fi
5470
5471           { echo "$as_me:$LINENO: result: $result" >&5
5472 echo "${ECHO_T}$result" >&6; }
5473
5474
5475           enablestring=disable
5476           defaultval=
5477           if test -z "$defaultval"; then
5478               if test x"$enablestring" = xdisable; then
5479                   defaultval=yes
5480               else
5481                   defaultval=no
5482               fi
5483           fi
5484
5485           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-vararg_macros" >&5
5486 echo $ECHO_N "checking for --${enablestring:-enable}-vararg_macros... $ECHO_C" >&6; }
5487           # Check whether --enable-vararg_macros was given.
5488 if test "${enable_vararg_macros+set}" = set; then
5489   enableval=$enable_vararg_macros;
5490                           if test "$enableval" = yes; then
5491                             wx_cv_use_vararg_macros='wxUSE_VARARG_MACROS=yes'
5492                           else
5493                             wx_cv_use_vararg_macros='wxUSE_VARARG_MACROS=no'
5494                           fi
5495
5496 else
5497
5498                           wx_cv_use_vararg_macros='wxUSE_VARARG_MACROS=${'DEFAULT_wxUSE_VARARG_MACROS":-$defaultval}"
5499
5500 fi
5501
5502
5503           eval "$wx_cv_use_vararg_macros"
5504
5505           if test x"$enablestring" = xdisable; then
5506             if test $wxUSE_VARARG_MACROS = no; then
5507               result=yes
5508             else
5509               result=no
5510             fi
5511           else
5512             result=$wxUSE_VARARG_MACROS
5513           fi
5514
5515           { echo "$as_me:$LINENO: result: $result" >&5
5516 echo "${ECHO_T}$result" >&6; }
5517
5518
5519
5520           enablestring=
5521           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal_binary" >&5
5522 echo $ECHO_N "checking for --${enablestring:-enable}-universal_binary... $ECHO_C" >&6; }
5523           # Check whether --enable-universal_binary was given.
5524 if test "${enable_universal_binary+set}" = set; then
5525   enableval=$enable_universal_binary;
5526                           wx_cv_use_universal_binary="wxUSE_UNIVERSAL_BINARY='$enableval'"
5527
5528 else
5529
5530                           wx_cv_use_universal_binary='wxUSE_UNIVERSAL_BINARY='$DEFAULT_wxUSE_UNIVERSAL_BINARY
5531
5532 fi
5533
5534
5535           eval "$wx_cv_use_universal_binary"
5536
5537           { echo "$as_me:$LINENO: result: $wxUSE_UNIVERSAL_BINARY" >&5
5538 echo "${ECHO_T}$wxUSE_UNIVERSAL_BINARY" >&6; }
5539
5540
5541           enablestring=
5542           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-macosx_arch" >&5
5543 echo $ECHO_N "checking for --${enablestring:-enable}-macosx_arch... $ECHO_C" >&6; }
5544           # Check whether --enable-macosx_arch was given.
5545 if test "${enable_macosx_arch+set}" = set; then
5546   enableval=$enable_macosx_arch;
5547                           wx_cv_use_macosx_arch="wxUSE_MAC_ARCH='$enableval'"
5548
5549 else
5550
5551                           wx_cv_use_macosx_arch='wxUSE_MAC_ARCH='$DEFAULT_wxUSE_MAC_ARCH
5552
5553 fi
5554
5555
5556           eval "$wx_cv_use_macosx_arch"
5557
5558           { echo "$as_me:$LINENO: result: $wxUSE_MAC_ARCH" >&5
5559 echo "${ECHO_T}$wxUSE_MAC_ARCH" >&6; }
5560
5561
5562
5563           enablestring=
5564           defaultval=
5565           if test -z "$defaultval"; then
5566               if test x"$enablestring" = xdisable; then
5567                   defaultval=yes
5568               else
5569                   defaultval=no
5570               fi
5571           fi
5572
5573           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat26" >&5
5574 echo $ECHO_N "checking for --${enablestring:-enable}-compat26... $ECHO_C" >&6; }
5575           # Check whether --enable-compat26 was given.
5576 if test "${enable_compat26+set}" = set; then
5577   enableval=$enable_compat26;
5578                           if test "$enableval" = yes; then
5579                             wx_cv_use_compat26='WXWIN_COMPATIBILITY_2_6=yes'
5580                           else
5581                             wx_cv_use_compat26='WXWIN_COMPATIBILITY_2_6=no'
5582                           fi
5583
5584 else
5585
5586                           wx_cv_use_compat26='WXWIN_COMPATIBILITY_2_6=${'DEFAULT_WXWIN_COMPATIBILITY_2_6":-$defaultval}"
5587
5588 fi
5589
5590
5591           eval "$wx_cv_use_compat26"
5592
5593           if test x"$enablestring" = xdisable; then
5594             if test $WXWIN_COMPATIBILITY_2_6 = no; then
5595               result=yes
5596             else
5597               result=no
5598             fi
5599           else
5600             result=$WXWIN_COMPATIBILITY_2_6
5601           fi
5602
5603           { echo "$as_me:$LINENO: result: $result" >&5
5604 echo "${ECHO_T}$result" >&6; }
5605
5606
5607           enablestring=disable
5608           defaultval=
5609           if test -z "$defaultval"; then
5610               if test x"$enablestring" = xdisable; then
5611                   defaultval=yes
5612               else
5613                   defaultval=no
5614               fi
5615           fi
5616
5617           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat28" >&5
5618 echo $ECHO_N "checking for --${enablestring:-enable}-compat28... $ECHO_C" >&6; }
5619           # Check whether --enable-compat28 was given.
5620 if test "${enable_compat28+set}" = set; then
5621   enableval=$enable_compat28;
5622                           if test "$enableval" = yes; then
5623                             wx_cv_use_compat28='WXWIN_COMPATIBILITY_2_8=yes'
5624                           else
5625                             wx_cv_use_compat28='WXWIN_COMPATIBILITY_2_8=no'
5626                           fi
5627
5628 else
5629
5630                           wx_cv_use_compat28='WXWIN_COMPATIBILITY_2_8=${'DEFAULT_WXWIN_COMPATIBILITY_2_8":-$defaultval}"
5631
5632 fi
5633
5634
5635           eval "$wx_cv_use_compat28"
5636
5637           if test x"$enablestring" = xdisable; then
5638             if test $WXWIN_COMPATIBILITY_2_8 = no; then
5639               result=yes
5640             else
5641               result=no
5642             fi
5643           else
5644             result=$WXWIN_COMPATIBILITY_2_8
5645           fi
5646
5647           { echo "$as_me:$LINENO: result: $result" >&5
5648 echo "${ECHO_T}$result" >&6; }
5649
5650
5651
5652           enablestring=disable
5653           defaultval=
5654           if test -z "$defaultval"; then
5655               if test x"$enablestring" = xdisable; then
5656                   defaultval=yes
5657               else
5658                   defaultval=no
5659               fi
5660           fi
5661
5662           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-rpath" >&5
5663 echo $ECHO_N "checking for --${enablestring:-enable}-rpath... $ECHO_C" >&6; }
5664           # Check whether --enable-rpath was given.
5665 if test "${enable_rpath+set}" = set; then
5666   enableval=$enable_rpath;
5667                           if test "$enableval" = yes; then
5668                             wx_cv_use_rpath='wxUSE_RPATH=yes'
5669                           else
5670                             wx_cv_use_rpath='wxUSE_RPATH=no'
5671                           fi
5672
5673 else
5674
5675                           wx_cv_use_rpath='wxUSE_RPATH=${'DEFAULT_wxUSE_RPATH":-$defaultval}"
5676
5677 fi
5678
5679
5680           eval "$wx_cv_use_rpath"
5681
5682           if test x"$enablestring" = xdisable; then
5683             if test $wxUSE_RPATH = no; then
5684               result=yes
5685             else
5686               result=no
5687             fi
5688           else
5689             result=$wxUSE_RPATH
5690           fi
5691
5692           { echo "$as_me:$LINENO: result: $result" >&5
5693 echo "${ECHO_T}$result" >&6; }
5694
5695
5696
5697           enablestring=
5698           defaultval=
5699           if test -z "$defaultval"; then
5700               if test x"$enablestring" = xdisable; then
5701                   defaultval=yes
5702               else
5703                   defaultval=no
5704               fi
5705           fi
5706
5707           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-objc_uniquifying" >&5
5708 echo $ECHO_N "checking for --${enablestring:-enable}-objc_uniquifying... $ECHO_C" >&6; }
5709           # Check whether --enable-objc_uniquifying was given.
5710 if test "${enable_objc_uniquifying+set}" = set; then
5711   enableval=$enable_objc_uniquifying;
5712                           if test "$enableval" = yes; then
5713                             wx_cv_use_objc_uniquifying='wxUSE_OBJC_UNIQUIFYING=yes'
5714                           else
5715                             wx_cv_use_objc_uniquifying='wxUSE_OBJC_UNIQUIFYING=no'
5716                           fi
5717
5718 else
5719
5720                           wx_cv_use_objc_uniquifying='wxUSE_OBJC_UNIQUIFYING=${'DEFAULT_wxUSE_OBJC_UNIQUIFYING":-$defaultval}"
5721
5722 fi
5723
5724
5725           eval "$wx_cv_use_objc_uniquifying"
5726
5727           if test x"$enablestring" = xdisable; then
5728             if test $wxUSE_OBJC_UNIQUIFYING = no; then
5729               result=yes
5730             else
5731               result=no
5732             fi
5733           else
5734             result=$wxUSE_OBJC_UNIQUIFYING
5735           fi
5736
5737           { echo "$as_me:$LINENO: result: $result" >&5
5738 echo "${ECHO_T}$result" >&6; }
5739
5740
5741
5742           enablestring=disable
5743           defaultval=
5744           if test -z "$defaultval"; then
5745               if test x"$enablestring" = xdisable; then
5746                   defaultval=yes
5747               else
5748                   defaultval=no
5749               fi
5750           fi
5751
5752           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-visibility" >&5
5753 echo $ECHO_N "checking for --${enablestring:-enable}-visibility... $ECHO_C" >&6; }
5754           # Check whether --enable-visibility was given.
5755 if test "${enable_visibility+set}" = set; then
5756   enableval=$enable_visibility;
5757                           if test "$enableval" = yes; then
5758                             wx_cv_use_visibility='wxUSE_VISIBILITY=yes'
5759                           else
5760                             wx_cv_use_visibility='wxUSE_VISIBILITY=no'
5761                           fi
5762
5763 else
5764
5765                           wx_cv_use_visibility='wxUSE_VISIBILITY=${'DEFAULT_wxUSE_VISIBILITY":-$defaultval}"
5766
5767 fi
5768
5769
5770           eval "$wx_cv_use_visibility"
5771
5772           if test x"$enablestring" = xdisable; then
5773             if test $wxUSE_VISIBILITY = no; then
5774               result=yes
5775             else
5776               result=no
5777             fi
5778           else
5779             result=$wxUSE_VISIBILITY
5780           fi
5781
5782           { echo "$as_me:$LINENO: result: $result" >&5
5783 echo "${ECHO_T}$result" >&6; }
5784
5785
5786           enablestring=disable
5787           defaultval=
5788           if test -z "$defaultval"; then
5789               if test x"$enablestring" = xdisable; then
5790                   defaultval=yes
5791               else
5792                   defaultval=no
5793               fi
5794           fi
5795
5796           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tls" >&5
5797 echo $ECHO_N "checking for --${enablestring:-enable}-tls... $ECHO_C" >&6; }
5798           # Check whether --enable-tls was given.
5799 if test "${enable_tls+set}" = set; then
5800   enableval=$enable_tls;
5801                           if test "$enableval" = yes; then
5802                             wx_cv_use_tls='wxUSE_COMPILER_TLS=yes'
5803                           else
5804                             wx_cv_use_tls='wxUSE_COMPILER_TLS=no'
5805                           fi
5806
5807 else
5808
5809                           wx_cv_use_tls='wxUSE_COMPILER_TLS=${'DEFAULT_wxUSE_COMPILER_TLS":-$defaultval}"
5810
5811 fi
5812
5813
5814           eval "$wx_cv_use_tls"
5815
5816           if test x"$enablestring" = xdisable; then
5817             if test $wxUSE_COMPILER_TLS = no; then
5818               result=yes
5819             else
5820               result=no
5821             fi
5822           else
5823             result=$wxUSE_COMPILER_TLS
5824           fi
5825
5826           { echo "$as_me:$LINENO: result: $result" >&5
5827 echo "${ECHO_T}$result" >&6; }
5828
5829
5830
5831
5832           enablestring=
5833           defaultval=$wxUSE_ALL_FEATURES
5834           if test -z "$defaultval"; then
5835               if test x"$enablestring" = xdisable; then
5836                   defaultval=yes
5837               else
5838                   defaultval=no
5839               fi
5840           fi
5841
5842           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-intl" >&5
5843 echo $ECHO_N "checking for --${enablestring:-enable}-intl... $ECHO_C" >&6; }
5844           # Check whether --enable-intl was given.
5845 if test "${enable_intl+set}" = set; then
5846   enableval=$enable_intl;
5847                           if test "$enableval" = yes; then
5848                             wx_cv_use_intl='wxUSE_INTL=yes'
5849                           else
5850                             wx_cv_use_intl='wxUSE_INTL=no'
5851                           fi
5852
5853 else
5854
5855                           wx_cv_use_intl='wxUSE_INTL=${'DEFAULT_wxUSE_INTL":-$defaultval}"
5856
5857 fi
5858
5859
5860           eval "$wx_cv_use_intl"
5861
5862           if test x"$enablestring" = xdisable; then
5863             if test $wxUSE_INTL = no; then
5864               result=yes
5865             else
5866               result=no
5867             fi
5868           else
5869             result=$wxUSE_INTL
5870           fi
5871
5872           { echo "$as_me:$LINENO: result: $result" >&5
5873 echo "${ECHO_T}$result" >&6; }
5874
5875
5876           enablestring=
5877           defaultval=$wxUSE_ALL_FEATURES
5878           if test -z "$defaultval"; then
5879               if test x"$enablestring" = xdisable; then
5880                   defaultval=yes
5881               else
5882                   defaultval=no
5883               fi
5884           fi
5885
5886           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xlocale" >&5
5887 echo $ECHO_N "checking for --${enablestring:-enable}-xlocale... $ECHO_C" >&6; }
5888           # Check whether --enable-xlocale was given.
5889 if test "${enable_xlocale+set}" = set; then
5890   enableval=$enable_xlocale;
5891                           if test "$enableval" = yes; then
5892                             wx_cv_use_xlocale='wxUSE_XLOCALE=yes'
5893                           else
5894                             wx_cv_use_xlocale='wxUSE_XLOCALE=no'
5895                           fi
5896
5897 else
5898
5899                           wx_cv_use_xlocale='wxUSE_XLOCALE=${'DEFAULT_wxUSE_XLOCALE":-$defaultval}"
5900
5901 fi
5902
5903
5904           eval "$wx_cv_use_xlocale"
5905
5906           if test x"$enablestring" = xdisable; then
5907             if test $wxUSE_XLOCALE = no; then
5908               result=yes
5909             else
5910               result=no
5911             fi
5912           else
5913             result=$wxUSE_XLOCALE
5914           fi
5915
5916           { echo "$as_me:$LINENO: result: $result" >&5
5917 echo "${ECHO_T}$result" >&6; }
5918
5919
5920           enablestring=
5921           defaultval=$wxUSE_ALL_FEATURES
5922           if test -z "$defaultval"; then
5923               if test x"$enablestring" = xdisable; then
5924                   defaultval=yes
5925               else
5926                   defaultval=no
5927               fi
5928           fi
5929
5930           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-config" >&5
5931 echo $ECHO_N "checking for --${enablestring:-enable}-config... $ECHO_C" >&6; }
5932           # Check whether --enable-config was given.
5933 if test "${enable_config+set}" = set; then
5934   enableval=$enable_config;
5935                           if test "$enableval" = yes; then
5936                             wx_cv_use_config='wxUSE_CONFIG=yes'
5937                           else
5938                             wx_cv_use_config='wxUSE_CONFIG=no'
5939                           fi
5940
5941 else
5942
5943                           wx_cv_use_config='wxUSE_CONFIG=${'DEFAULT_wxUSE_CONFIG":-$defaultval}"
5944
5945 fi
5946
5947
5948           eval "$wx_cv_use_config"
5949
5950           if test x"$enablestring" = xdisable; then
5951             if test $wxUSE_CONFIG = no; then
5952               result=yes
5953             else
5954               result=no
5955             fi
5956           else
5957             result=$wxUSE_CONFIG
5958           fi
5959
5960           { echo "$as_me:$LINENO: result: $result" >&5
5961 echo "${ECHO_T}$result" >&6; }
5962
5963
5964
5965           enablestring=
5966           defaultval=$wxUSE_ALL_FEATURES
5967           if test -z "$defaultval"; then
5968               if test x"$enablestring" = xdisable; then
5969                   defaultval=yes
5970               else
5971                   defaultval=no
5972               fi
5973           fi
5974
5975           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocols" >&5
5976 echo $ECHO_N "checking for --${enablestring:-enable}-protocols... $ECHO_C" >&6; }
5977           # Check whether --enable-protocols was given.
5978 if test "${enable_protocols+set}" = set; then
5979   enableval=$enable_protocols;
5980                           if test "$enableval" = yes; then
5981                             wx_cv_use_protocols='wxUSE_PROTOCOL=yes'
5982                           else
5983                             wx_cv_use_protocols='wxUSE_PROTOCOL=no'
5984                           fi
5985
5986 else
5987
5988                           wx_cv_use_protocols='wxUSE_PROTOCOL=${'DEFAULT_wxUSE_PROTOCOL":-$defaultval}"
5989
5990 fi
5991
5992
5993           eval "$wx_cv_use_protocols"
5994
5995           if test x"$enablestring" = xdisable; then
5996             if test $wxUSE_PROTOCOL = no; then
5997               result=yes
5998             else
5999               result=no
6000             fi
6001           else
6002             result=$wxUSE_PROTOCOL
6003           fi
6004
6005           { echo "$as_me:$LINENO: result: $result" >&5
6006 echo "${ECHO_T}$result" >&6; }
6007
6008
6009           enablestring=
6010           defaultval=$wxUSE_ALL_FEATURES
6011           if test -z "$defaultval"; then
6012               if test x"$enablestring" = xdisable; then
6013                   defaultval=yes
6014               else
6015                   defaultval=no
6016               fi
6017           fi
6018
6019           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ftp" >&5
6020 echo $ECHO_N "checking for --${enablestring:-enable}-ftp... $ECHO_C" >&6; }
6021           # Check whether --enable-ftp was given.
6022 if test "${enable_ftp+set}" = set; then
6023   enableval=$enable_ftp;
6024                           if test "$enableval" = yes; then
6025                             wx_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes'
6026                           else
6027                             wx_cv_use_ftp='wxUSE_PROTOCOL_FTP=no'
6028                           fi
6029
6030 else
6031
6032                           wx_cv_use_ftp='wxUSE_PROTOCOL_FTP=${'DEFAULT_wxUSE_PROTOCOL_FTP":-$defaultval}"
6033
6034 fi
6035
6036
6037           eval "$wx_cv_use_ftp"
6038
6039           if test x"$enablestring" = xdisable; then
6040             if test $wxUSE_PROTOCOL_FTP = no; then
6041               result=yes
6042             else
6043               result=no
6044             fi
6045           else
6046             result=$wxUSE_PROTOCOL_FTP
6047           fi
6048
6049           { echo "$as_me:$LINENO: result: $result" >&5
6050 echo "${ECHO_T}$result" >&6; }
6051
6052
6053           enablestring=
6054           defaultval=$wxUSE_ALL_FEATURES
6055           if test -z "$defaultval"; then
6056               if test x"$enablestring" = xdisable; then
6057                   defaultval=yes
6058               else
6059                   defaultval=no
6060               fi
6061           fi
6062
6063           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-http" >&5
6064 echo $ECHO_N "checking for --${enablestring:-enable}-http... $ECHO_C" >&6; }
6065           # Check whether --enable-http was given.
6066 if test "${enable_http+set}" = set; then
6067   enableval=$enable_http;
6068                           if test "$enableval" = yes; then
6069                             wx_cv_use_http='wxUSE_PROTOCOL_HTTP=yes'
6070                           else
6071                             wx_cv_use_http='wxUSE_PROTOCOL_HTTP=no'
6072                           fi
6073
6074 else
6075
6076                           wx_cv_use_http='wxUSE_PROTOCOL_HTTP=${'DEFAULT_wxUSE_PROTOCOL_HTTP":-$defaultval}"
6077
6078 fi
6079
6080
6081           eval "$wx_cv_use_http"
6082
6083           if test x"$enablestring" = xdisable; then
6084             if test $wxUSE_PROTOCOL_HTTP = no; then
6085               result=yes
6086             else
6087               result=no
6088             fi
6089           else
6090             result=$wxUSE_PROTOCOL_HTTP
6091           fi
6092
6093           { echo "$as_me:$LINENO: result: $result" >&5
6094 echo "${ECHO_T}$result" >&6; }
6095
6096
6097           enablestring=
6098           defaultval=$wxUSE_ALL_FEATURES
6099           if test -z "$defaultval"; then
6100               if test x"$enablestring" = xdisable; then
6101                   defaultval=yes
6102               else
6103                   defaultval=no
6104               fi
6105           fi
6106
6107           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fileproto" >&5
6108 echo $ECHO_N "checking for --${enablestring:-enable}-fileproto... $ECHO_C" >&6; }
6109           # Check whether --enable-fileproto was given.
6110 if test "${enable_fileproto+set}" = set; then
6111   enableval=$enable_fileproto;
6112                           if test "$enableval" = yes; then
6113                             wx_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes'
6114                           else
6115                             wx_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no'
6116                           fi
6117
6118 else
6119
6120                           wx_cv_use_fileproto='wxUSE_PROTOCOL_FILE=${'DEFAULT_wxUSE_PROTOCOL_FILE":-$defaultval}"
6121
6122 fi
6123
6124
6125           eval "$wx_cv_use_fileproto"
6126
6127           if test x"$enablestring" = xdisable; then
6128             if test $wxUSE_PROTOCOL_FILE = no; then
6129               result=yes
6130             else
6131               result=no
6132             fi
6133           else
6134             result=$wxUSE_PROTOCOL_FILE
6135           fi
6136
6137           { echo "$as_me:$LINENO: result: $result" >&5
6138 echo "${ECHO_T}$result" >&6; }
6139
6140
6141           enablestring=
6142           defaultval=$wxUSE_ALL_FEATURES
6143           if test -z "$defaultval"; then
6144               if test x"$enablestring" = xdisable; then
6145                   defaultval=yes
6146               else
6147                   defaultval=no
6148               fi
6149           fi
6150
6151           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sockets" >&5
6152 echo $ECHO_N "checking for --${enablestring:-enable}-sockets... $ECHO_C" >&6; }
6153           # Check whether --enable-sockets was given.
6154 if test "${enable_sockets+set}" = set; then
6155   enableval=$enable_sockets;
6156                           if test "$enableval" = yes; then
6157                             wx_cv_use_sockets='wxUSE_SOCKETS=yes'
6158                           else
6159                             wx_cv_use_sockets='wxUSE_SOCKETS=no'
6160                           fi
6161
6162 else
6163
6164                           wx_cv_use_sockets='wxUSE_SOCKETS=${'DEFAULT_wxUSE_SOCKETS":-$defaultval}"
6165
6166 fi
6167
6168
6169           eval "$wx_cv_use_sockets"
6170
6171           if test x"$enablestring" = xdisable; then
6172             if test $wxUSE_SOCKETS = no; then
6173               result=yes
6174             else
6175               result=no
6176             fi
6177           else
6178             result=$wxUSE_SOCKETS
6179           fi
6180
6181           { echo "$as_me:$LINENO: result: $result" >&5
6182 echo "${ECHO_T}$result" >&6; }
6183
6184
6185           enablestring=
6186           defaultval=$wxUSE_ALL_FEATURES
6187           if test -z "$defaultval"; then
6188               if test x"$enablestring" = xdisable; then
6189                   defaultval=yes
6190               else
6191                   defaultval=no
6192               fi
6193           fi
6194
6195           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ipv6" >&5
6196 echo $ECHO_N "checking for --${enablestring:-enable}-ipv6... $ECHO_C" >&6; }
6197           # Check whether --enable-ipv6 was given.
6198 if test "${enable_ipv6+set}" = set; then
6199   enableval=$enable_ipv6;
6200                           if test "$enableval" = yes; then
6201                             wx_cv_use_ipv6='wxUSE_IPV6=yes'
6202                           else
6203                             wx_cv_use_ipv6='wxUSE_IPV6=no'
6204                           fi
6205
6206 else
6207
6208                           wx_cv_use_ipv6='wxUSE_IPV6=${'DEFAULT_wxUSE_IPV6":-$defaultval}"
6209
6210 fi
6211
6212
6213           eval "$wx_cv_use_ipv6"
6214
6215           if test x"$enablestring" = xdisable; then
6216             if test $wxUSE_IPV6 = no; then
6217               result=yes
6218             else
6219               result=no
6220             fi
6221           else
6222             result=$wxUSE_IPV6
6223           fi
6224
6225           { echo "$as_me:$LINENO: result: $result" >&5
6226 echo "${ECHO_T}$result" >&6; }
6227
6228
6229           enablestring=
6230           defaultval=$wxUSE_ALL_FEATURES
6231           if test -z "$defaultval"; then
6232               if test x"$enablestring" = xdisable; then
6233                   defaultval=yes
6234               else
6235                   defaultval=no
6236               fi
6237           fi
6238
6239           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ole" >&5
6240 echo $ECHO_N "checking for --${enablestring:-enable}-ole... $ECHO_C" >&6; }
6241           # Check whether --enable-ole was given.
6242 if test "${enable_ole+set}" = set; then
6243   enableval=$enable_ole;
6244                           if test "$enableval" = yes; then
6245                             wx_cv_use_ole='wxUSE_OLE=yes'
6246                           else
6247                             wx_cv_use_ole='wxUSE_OLE=no'
6248                           fi
6249
6250 else
6251
6252                           wx_cv_use_ole='wxUSE_OLE=${'DEFAULT_wxUSE_OLE":-$defaultval}"
6253
6254 fi
6255
6256
6257           eval "$wx_cv_use_ole"
6258
6259           if test x"$enablestring" = xdisable; then
6260             if test $wxUSE_OLE = no; then
6261               result=yes
6262             else
6263               result=no
6264             fi
6265           else
6266             result=$wxUSE_OLE
6267           fi
6268
6269           { echo "$as_me:$LINENO: result: $result" >&5
6270 echo "${ECHO_T}$result" >&6; }
6271
6272
6273           enablestring=
6274           defaultval=$wxUSE_ALL_FEATURES
6275           if test -z "$defaultval"; then
6276               if test x"$enablestring" = xdisable; then
6277                   defaultval=yes
6278               else
6279                   defaultval=no
6280               fi
6281           fi
6282
6283           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataobj" >&5
6284 echo $ECHO_N "checking for --${enablestring:-enable}-dataobj... $ECHO_C" >&6; }
6285           # Check whether --enable-dataobj was given.
6286 if test "${enable_dataobj+set}" = set; then
6287   enableval=$enable_dataobj;
6288                           if test "$enableval" = yes; then
6289                             wx_cv_use_dataobj='wxUSE_DATAOBJ=yes'
6290                           else
6291                             wx_cv_use_dataobj='wxUSE_DATAOBJ=no'
6292                           fi
6293
6294 else
6295
6296                           wx_cv_use_dataobj='wxUSE_DATAOBJ=${'DEFAULT_wxUSE_DATAOBJ":-$defaultval}"
6297
6298 fi
6299
6300
6301           eval "$wx_cv_use_dataobj"
6302
6303           if test x"$enablestring" = xdisable; then
6304             if test $wxUSE_DATAOBJ = no; then
6305               result=yes
6306             else
6307               result=no
6308             fi
6309           else
6310             result=$wxUSE_DATAOBJ
6311           fi
6312
6313           { echo "$as_me:$LINENO: result: $result" >&5
6314 echo "${ECHO_T}$result" >&6; }
6315
6316
6317
6318           enablestring=
6319           defaultval=$wxUSE_ALL_FEATURES
6320           if test -z "$defaultval"; then
6321               if test x"$enablestring" = xdisable; then
6322                   defaultval=yes
6323               else
6324                   defaultval=no
6325               fi
6326           fi
6327
6328           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ipc" >&5
6329 echo $ECHO_N "checking for --${enablestring:-enable}-ipc... $ECHO_C" >&6; }
6330           # Check whether --enable-ipc was given.
6331 if test "${enable_ipc+set}" = set; then
6332   enableval=$enable_ipc;
6333                           if test "$enableval" = yes; then
6334                             wx_cv_use_ipc='wxUSE_IPC=yes'
6335                           else
6336                             wx_cv_use_ipc='wxUSE_IPC=no'
6337                           fi
6338
6339 else
6340
6341                           wx_cv_use_ipc='wxUSE_IPC=${'DEFAULT_wxUSE_IPC":-$defaultval}"
6342
6343 fi
6344
6345
6346           eval "$wx_cv_use_ipc"
6347
6348           if test x"$enablestring" = xdisable; then
6349             if test $wxUSE_IPC = no; then
6350               result=yes
6351             else
6352               result=no
6353             fi
6354           else
6355             result=$wxUSE_IPC
6356           fi
6357
6358           { echo "$as_me:$LINENO: result: $result" >&5
6359 echo "${ECHO_T}$result" >&6; }
6360
6361
6362
6363           enablestring=
6364           defaultval=$wxUSE_ALL_FEATURES
6365           if test -z "$defaultval"; then
6366               if test x"$enablestring" = xdisable; then
6367                   defaultval=yes
6368               else
6369                   defaultval=no
6370               fi
6371           fi
6372
6373           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-baseevtloop" >&5
6374 echo $ECHO_N "checking for --${enablestring:-enable}-baseevtloop... $ECHO_C" >&6; }
6375           # Check whether --enable-baseevtloop was given.
6376 if test "${enable_baseevtloop+set}" = set; then
6377   enableval=$enable_baseevtloop;
6378                           if test "$enableval" = yes; then
6379                             wx_cv_use_baseevtloop='wxUSE_CONSOLE_EVENTLOOP=yes'
6380                           else
6381                             wx_cv_use_baseevtloop='wxUSE_CONSOLE_EVENTLOOP=no'
6382                           fi
6383
6384 else
6385
6386                           wx_cv_use_baseevtloop='wxUSE_CONSOLE_EVENTLOOP=${'DEFAULT_wxUSE_CONSOLE_EVENTLOOP":-$defaultval}"
6387
6388 fi
6389
6390
6391           eval "$wx_cv_use_baseevtloop"
6392
6393           if test x"$enablestring" = xdisable; then
6394             if test $wxUSE_CONSOLE_EVENTLOOP = no; then
6395               result=yes
6396             else
6397               result=no
6398             fi
6399           else
6400             result=$wxUSE_CONSOLE_EVENTLOOP
6401           fi
6402
6403           { echo "$as_me:$LINENO: result: $result" >&5
6404 echo "${ECHO_T}$result" >&6; }
6405
6406
6407           enablestring=
6408           defaultval=$wxUSE_ALL_FEATURES
6409           if test -z "$defaultval"; then
6410               if test x"$enablestring" = xdisable; then
6411                   defaultval=yes
6412               else
6413                   defaultval=no
6414               fi
6415           fi
6416
6417           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-epollloop" >&5
6418 echo $ECHO_N "checking for --${enablestring:-enable}-epollloop... $ECHO_C" >&6; }
6419           # Check whether --enable-epollloop was given.
6420 if test "${enable_epollloop+set}" = set; then
6421   enableval=$enable_epollloop;
6422                           if test "$enableval" = yes; then
6423                             wx_cv_use_epollloop='wxUSE_EPOLL_DISPATCHER=yes'
6424                           else
6425                             wx_cv_use_epollloop='wxUSE_EPOLL_DISPATCHER=no'
6426                           fi
6427
6428 else
6429
6430                           wx_cv_use_epollloop='wxUSE_EPOLL_DISPATCHER=${'DEFAULT_wxUSE_EPOLL_DISPATCHER":-$defaultval}"
6431
6432 fi
6433
6434
6435           eval "$wx_cv_use_epollloop"
6436
6437           if test x"$enablestring" = xdisable; then
6438             if test $wxUSE_EPOLL_DISPATCHER = no; then
6439               result=yes
6440             else
6441               result=no
6442             fi
6443           else
6444             result=$wxUSE_EPOLL_DISPATCHER
6445           fi
6446
6447           { echo "$as_me:$LINENO: result: $result" >&5
6448 echo "${ECHO_T}$result" >&6; }
6449
6450
6451           enablestring=
6452           defaultval=$wxUSE_ALL_FEATURES
6453           if test -z "$defaultval"; then
6454               if test x"$enablestring" = xdisable; then
6455                   defaultval=yes
6456               else
6457                   defaultval=no
6458               fi
6459           fi
6460
6461           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-selectloop" >&5
6462 echo $ECHO_N "checking for --${enablestring:-enable}-selectloop... $ECHO_C" >&6; }
6463           # Check whether --enable-selectloop was given.
6464 if test "${enable_selectloop+set}" = set; then
6465   enableval=$enable_selectloop;
6466                           if test "$enableval" = yes; then
6467                             wx_cv_use_selectloop='wxUSE_SELECT_DISPATCHER=yes'
6468                           else
6469                             wx_cv_use_selectloop='wxUSE_SELECT_DISPATCHER=no'
6470                           fi
6471
6472 else
6473
6474                           wx_cv_use_selectloop='wxUSE_SELECT_DISPATCHER=${'DEFAULT_wxUSE_SELECT_DISPATCHER":-$defaultval}"
6475
6476 fi
6477
6478
6479           eval "$wx_cv_use_selectloop"
6480
6481           if test x"$enablestring" = xdisable; then
6482             if test $wxUSE_SELECT_DISPATCHER = no; then
6483               result=yes
6484             else
6485               result=no
6486             fi
6487           else
6488             result=$wxUSE_SELECT_DISPATCHER
6489           fi
6490
6491           { echo "$as_me:$LINENO: result: $result" >&5
6492 echo "${ECHO_T}$result" >&6; }
6493
6494
6495
6496           enablestring=
6497           defaultval=$wxUSE_ALL_FEATURES
6498           if test -z "$defaultval"; then
6499               if test x"$enablestring" = xdisable; then
6500                   defaultval=yes
6501               else
6502                   defaultval=no
6503               fi
6504           fi
6505
6506           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-any" >&5
6507 echo $ECHO_N "checking for --${enablestring:-enable}-any... $ECHO_C" >&6; }
6508           # Check whether --enable-any was given.
6509 if test "${enable_any+set}" = set; then
6510   enableval=$enable_any;
6511                           if test "$enableval" = yes; then
6512                             wx_cv_use_any='wxUSE_ANY=yes'
6513                           else
6514                             wx_cv_use_any='wxUSE_ANY=no'
6515                           fi
6516
6517 else
6518
6519                           wx_cv_use_any='wxUSE_ANY=${'DEFAULT_wxUSE_ANY":-$defaultval}"
6520
6521 fi
6522
6523
6524           eval "$wx_cv_use_any"
6525
6526           if test x"$enablestring" = xdisable; then
6527             if test $wxUSE_ANY = no; then
6528               result=yes
6529             else
6530               result=no
6531             fi
6532           else
6533             result=$wxUSE_ANY
6534           fi
6535
6536           { echo "$as_me:$LINENO: result: $result" >&5
6537 echo "${ECHO_T}$result" >&6; }
6538
6539
6540           enablestring=
6541           defaultval=$wxUSE_ALL_FEATURES
6542           if test -z "$defaultval"; then
6543               if test x"$enablestring" = xdisable; then
6544                   defaultval=yes
6545               else
6546                   defaultval=no
6547               fi
6548           fi
6549
6550           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-apple_ieee" >&5
6551 echo $ECHO_N "checking for --${enablestring:-enable}-apple_ieee... $ECHO_C" >&6; }
6552           # Check whether --enable-apple_ieee was given.
6553 if test "${enable_apple_ieee+set}" = set; then
6554   enableval=$enable_apple_ieee;
6555                           if test "$enableval" = yes; then
6556                             wx_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
6557                           else
6558                             wx_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
6559                           fi
6560
6561 else
6562
6563                           wx_cv_use_apple_ieee='wxUSE_APPLE_IEEE=${'DEFAULT_wxUSE_APPLE_IEEE":-$defaultval}"
6564
6565 fi
6566
6567
6568           eval "$wx_cv_use_apple_ieee"
6569
6570           if test x"$enablestring" = xdisable; then
6571             if test $wxUSE_APPLE_IEEE = no; then
6572               result=yes
6573             else
6574               result=no
6575             fi
6576           else
6577             result=$wxUSE_APPLE_IEEE
6578           fi
6579
6580           { echo "$as_me:$LINENO: result: $result" >&5
6581 echo "${ECHO_T}$result" >&6; }
6582
6583
6584           enablestring=
6585           defaultval=$wxUSE_ALL_FEATURES
6586           if test -z "$defaultval"; then
6587               if test x"$enablestring" = xdisable; then
6588                   defaultval=yes
6589               else
6590                   defaultval=no
6591               fi
6592           fi
6593
6594           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-arcstream" >&5
6595 echo $ECHO_N "checking for --${enablestring:-enable}-arcstream... $ECHO_C" >&6; }
6596           # Check whether --enable-arcstream was given.
6597 if test "${enable_arcstream+set}" = set; then
6598   enableval=$enable_arcstream;
6599                           if test "$enableval" = yes; then
6600                             wx_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=yes'
6601                           else
6602                             wx_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=no'
6603                           fi
6604
6605 else
6606
6607                           wx_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=${'DEFAULT_wxUSE_ARCHIVE_STREAMS":-$defaultval}"
6608
6609 fi
6610
6611
6612           eval "$wx_cv_use_arcstream"
6613
6614           if test x"$enablestring" = xdisable; then
6615             if test $wxUSE_ARCHIVE_STREAMS = no; then
6616               result=yes
6617             else
6618               result=no
6619             fi
6620           else
6621             result=$wxUSE_ARCHIVE_STREAMS
6622           fi
6623
6624           { echo "$as_me:$LINENO: result: $result" >&5
6625 echo "${ECHO_T}$result" >&6; }
6626
6627
6628           enablestring=
6629           defaultval=$wxUSE_ALL_FEATURES
6630           if test -z "$defaultval"; then
6631               if test x"$enablestring" = xdisable; then
6632                   defaultval=yes
6633               else
6634                   defaultval=no
6635               fi
6636           fi
6637
6638           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-base64" >&5
6639 echo $ECHO_N "checking for --${enablestring:-enable}-base64... $ECHO_C" >&6; }
6640           # Check whether --enable-base64 was given.
6641 if test "${enable_base64+set}" = set; then
6642   enableval=$enable_base64;
6643                           if test "$enableval" = yes; then
6644                             wx_cv_use_base64='wxUSE_BASE64=yes'
6645                           else
6646                             wx_cv_use_base64='wxUSE_BASE64=no'
6647                           fi
6648
6649 else
6650
6651                           wx_cv_use_base64='wxUSE_BASE64=${'DEFAULT_wxUSE_BASE64":-$defaultval}"
6652
6653 fi
6654
6655
6656           eval "$wx_cv_use_base64"
6657
6658           if test x"$enablestring" = xdisable; then
6659             if test $wxUSE_BASE64 = no; then
6660               result=yes
6661             else
6662               result=no
6663             fi
6664           else
6665             result=$wxUSE_BASE64
6666           fi
6667
6668           { echo "$as_me:$LINENO: result: $result" >&5
6669 echo "${ECHO_T}$result" >&6; }
6670
6671
6672           enablestring=
6673           defaultval=$wxUSE_ALL_FEATURES
6674           if test -z "$defaultval"; then
6675               if test x"$enablestring" = xdisable; then
6676                   defaultval=yes
6677               else
6678                   defaultval=no
6679               fi
6680           fi
6681
6682           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-backtrace" >&5
6683 echo $ECHO_N "checking for --${enablestring:-enable}-backtrace... $ECHO_C" >&6; }
6684           # Check whether --enable-backtrace was given.
6685 if test "${enable_backtrace+set}" = set; then
6686   enableval=$enable_backtrace;
6687                           if test "$enableval" = yes; then
6688                             wx_cv_use_backtrace='wxUSE_STACKWALKER=yes'
6689                           else
6690                             wx_cv_use_backtrace='wxUSE_STACKWALKER=no'
6691                           fi
6692
6693 else
6694
6695                           wx_cv_use_backtrace='wxUSE_STACKWALKER=${'DEFAULT_wxUSE_STACKWALKER":-$defaultval}"
6696
6697 fi
6698
6699
6700           eval "$wx_cv_use_backtrace"
6701
6702           if test x"$enablestring" = xdisable; then
6703             if test $wxUSE_STACKWALKER = no; then
6704               result=yes
6705             else
6706               result=no
6707             fi
6708           else
6709             result=$wxUSE_STACKWALKER
6710           fi
6711
6712           { echo "$as_me:$LINENO: result: $result" >&5
6713 echo "${ECHO_T}$result" >&6; }
6714
6715
6716           enablestring=
6717           defaultval=$wxUSE_ALL_FEATURES
6718           if test -z "$defaultval"; then
6719               if test x"$enablestring" = xdisable; then
6720                   defaultval=yes
6721               else
6722                   defaultval=no
6723               fi
6724           fi
6725
6726           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-catch_segvs" >&5
6727 echo $ECHO_N "checking for --${enablestring:-enable}-catch_segvs... $ECHO_C" >&6; }
6728           # Check whether --enable-catch_segvs was given.
6729 if test "${enable_catch_segvs+set}" = set; then
6730   enableval=$enable_catch_segvs;
6731                           if test "$enableval" = yes; then
6732                             wx_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
6733                           else
6734                             wx_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
6735                           fi
6736
6737 else
6738
6739                           wx_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=${'DEFAULT_wxUSE_ON_FATAL_EXCEPTION":-$defaultval}"
6740
6741 fi
6742
6743
6744           eval "$wx_cv_use_catch_segvs"
6745
6746           if test x"$enablestring" = xdisable; then
6747             if test $wxUSE_ON_FATAL_EXCEPTION = no; then
6748               result=yes
6749             else
6750               result=no
6751             fi
6752           else
6753             result=$wxUSE_ON_FATAL_EXCEPTION
6754           fi
6755
6756           { echo "$as_me:$LINENO: result: $result" >&5
6757 echo "${ECHO_T}$result" >&6; }
6758
6759
6760           enablestring=
6761           defaultval=$wxUSE_ALL_FEATURES
6762           if test -z "$defaultval"; then
6763               if test x"$enablestring" = xdisable; then
6764                   defaultval=yes
6765               else
6766                   defaultval=no
6767               fi
6768           fi
6769
6770           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-cmdline" >&5
6771 echo $ECHO_N "checking for --${enablestring:-enable}-cmdline... $ECHO_C" >&6; }
6772           # Check whether --enable-cmdline was given.
6773 if test "${enable_cmdline+set}" = set; then
6774   enableval=$enable_cmdline;
6775                           if test "$enableval" = yes; then
6776                             wx_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes'
6777                           else
6778                             wx_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no'
6779                           fi
6780
6781 else
6782
6783                           wx_cv_use_cmdline='wxUSE_CMDLINE_PARSER=${'DEFAULT_wxUSE_CMDLINE_PARSER":-$defaultval}"
6784
6785 fi
6786
6787
6788           eval "$wx_cv_use_cmdline"
6789
6790           if test x"$enablestring" = xdisable; then
6791             if test $wxUSE_CMDLINE_PARSER = no; then
6792               result=yes
6793             else
6794               result=no
6795             fi
6796           else
6797             result=$wxUSE_CMDLINE_PARSER
6798           fi
6799
6800           { echo "$as_me:$LINENO: result: $result" >&5
6801 echo "${ECHO_T}$result" >&6; }
6802
6803
6804           enablestring=
6805           defaultval=$wxUSE_ALL_FEATURES
6806           if test -z "$defaultval"; then
6807               if test x"$enablestring" = xdisable; then
6808                   defaultval=yes
6809               else
6810                   defaultval=no
6811               fi
6812           fi
6813
6814           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datetime" >&5
6815 echo $ECHO_N "checking for --${enablestring:-enable}-datetime... $ECHO_C" >&6; }
6816           # Check whether --enable-datetime was given.
6817 if test "${enable_datetime+set}" = set; then
6818   enableval=$enable_datetime;
6819                           if test "$enableval" = yes; then
6820                             wx_cv_use_datetime='wxUSE_DATETIME=yes'
6821                           else
6822                             wx_cv_use_datetime='wxUSE_DATETIME=no'
6823                           fi
6824
6825 else
6826
6827                           wx_cv_use_datetime='wxUSE_DATETIME=${'DEFAULT_wxUSE_DATETIME":-$defaultval}"
6828
6829 fi
6830
6831
6832           eval "$wx_cv_use_datetime"
6833
6834           if test x"$enablestring" = xdisable; then
6835             if test $wxUSE_DATETIME = no; then
6836               result=yes
6837             else
6838               result=no
6839             fi
6840           else
6841             result=$wxUSE_DATETIME
6842           fi
6843
6844           { echo "$as_me:$LINENO: result: $result" >&5
6845 echo "${ECHO_T}$result" >&6; }
6846
6847
6848           enablestring=
6849           defaultval=$wxUSE_ALL_FEATURES
6850           if test -z "$defaultval"; then
6851               if test x"$enablestring" = xdisable; then
6852                   defaultval=yes
6853               else
6854                   defaultval=no
6855               fi
6856           fi
6857
6858           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debugreport" >&5
6859 echo $ECHO_N "checking for --${enablestring:-enable}-debugreport... $ECHO_C" >&6; }
6860           # Check whether --enable-debugreport was given.
6861 if test "${enable_debugreport+set}" = set; then
6862   enableval=$enable_debugreport;
6863                           if test "$enableval" = yes; then
6864                             wx_cv_use_debugreport='wxUSE_DEBUGREPORT=yes'
6865                           else
6866                             wx_cv_use_debugreport='wxUSE_DEBUGREPORT=no'
6867                           fi
6868
6869 else
6870
6871                           wx_cv_use_debugreport='wxUSE_DEBUGREPORT=${'DEFAULT_wxUSE_DEBUGREPORT":-$defaultval}"
6872
6873 fi
6874
6875
6876           eval "$wx_cv_use_debugreport"
6877
6878           if test x"$enablestring" = xdisable; then
6879             if test $wxUSE_DEBUGREPORT = no; then
6880               result=yes
6881             else
6882               result=no
6883             fi
6884           else
6885             result=$wxUSE_DEBUGREPORT
6886           fi
6887
6888           { echo "$as_me:$LINENO: result: $result" >&5
6889 echo "${ECHO_T}$result" >&6; }
6890
6891
6892           enablestring=
6893           defaultval=$wxUSE_ALL_FEATURES
6894           if test -z "$defaultval"; then
6895               if test x"$enablestring" = xdisable; then
6896                   defaultval=yes
6897               else
6898                   defaultval=no
6899               fi
6900           fi
6901
6902           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dialupman" >&5
6903 echo $ECHO_N "checking for --${enablestring:-enable}-dialupman... $ECHO_C" >&6; }
6904           # Check whether --enable-dialupman was given.
6905 if test "${enable_dialupman+set}" = set; then
6906   enableval=$enable_dialupman;
6907                           if test "$enableval" = yes; then
6908                             wx_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
6909                           else
6910                             wx_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
6911                           fi
6912
6913 else
6914
6915                           wx_cv_use_dialupman='wxUSE_DIALUP_MANAGER=${'DEFAULT_wxUSE_DIALUP_MANAGER":-$defaultval}"
6916
6917 fi
6918
6919
6920           eval "$wx_cv_use_dialupman"
6921
6922           if test x"$enablestring" = xdisable; then
6923             if test $wxUSE_DIALUP_MANAGER = no; then
6924               result=yes
6925             else
6926               result=no
6927             fi
6928           else
6929             result=$wxUSE_DIALUP_MANAGER
6930           fi
6931
6932           { echo "$as_me:$LINENO: result: $result" >&5
6933 echo "${ECHO_T}$result" >&6; }
6934
6935
6936           enablestring=
6937           defaultval=$wxUSE_ALL_FEATURES
6938           if test -z "$defaultval"; then
6939               if test x"$enablestring" = xdisable; then
6940                   defaultval=yes
6941               else
6942                   defaultval=no
6943               fi
6944           fi
6945
6946           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynlib" >&5
6947 echo $ECHO_N "checking for --${enablestring:-enable}-dynlib... $ECHO_C" >&6; }
6948           # Check whether --enable-dynlib was given.
6949 if test "${enable_dynlib+set}" = set; then
6950   enableval=$enable_dynlib;
6951                           if test "$enableval" = yes; then
6952                             wx_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
6953                           else
6954                             wx_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
6955                           fi
6956
6957 else
6958
6959                           wx_cv_use_dynlib='wxUSE_DYNLIB_CLASS=${'DEFAULT_wxUSE_DYNLIB_CLASS":-$defaultval}"
6960
6961 fi
6962
6963
6964           eval "$wx_cv_use_dynlib"
6965
6966           if test x"$enablestring" = xdisable; then
6967             if test $wxUSE_DYNLIB_CLASS = no; then
6968               result=yes
6969             else
6970               result=no
6971             fi
6972           else
6973             result=$wxUSE_DYNLIB_CLASS
6974           fi
6975
6976           { echo "$as_me:$LINENO: result: $result" >&5
6977 echo "${ECHO_T}$result" >&6; }
6978
6979
6980           enablestring=
6981           defaultval=$wxUSE_ALL_FEATURES
6982           if test -z "$defaultval"; then
6983               if test x"$enablestring" = xdisable; then
6984                   defaultval=yes
6985               else
6986                   defaultval=no
6987               fi
6988           fi
6989
6990           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynamicloader" >&5
6991 echo $ECHO_N "checking for --${enablestring:-enable}-dynamicloader... $ECHO_C" >&6; }
6992           # Check whether --enable-dynamicloader was given.
6993 if test "${enable_dynamicloader+set}" = set; then
6994   enableval=$enable_dynamicloader;
6995                           if test "$enableval" = yes; then
6996                             wx_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes'
6997                           else
6998                             wx_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no'
6999                           fi
7000
7001 else
7002
7003                           wx_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=${'DEFAULT_wxUSE_DYNAMIC_LOADER":-$defaultval}"
7004
7005 fi
7006
7007
7008           eval "$wx_cv_use_dynamicloader"
7009
7010           if test x"$enablestring" = xdisable; then
7011             if test $wxUSE_DYNAMIC_LOADER = no; then
7012               result=yes
7013             else
7014               result=no
7015             fi
7016           else
7017             result=$wxUSE_DYNAMIC_LOADER
7018           fi
7019
7020           { echo "$as_me:$LINENO: result: $result" >&5
7021 echo "${ECHO_T}$result" >&6; }
7022
7023
7024           enablestring=
7025           defaultval=$wxUSE_ALL_FEATURES
7026           if test -z "$defaultval"; then
7027               if test x"$enablestring" = xdisable; then
7028                   defaultval=yes
7029               else
7030                   defaultval=no
7031               fi
7032           fi
7033
7034           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-exceptions" >&5
7035 echo $ECHO_N "checking for --${enablestring:-enable}-exceptions... $ECHO_C" >&6; }
7036           # Check whether --enable-exceptions was given.
7037 if test "${enable_exceptions+set}" = set; then
7038   enableval=$enable_exceptions;
7039                           if test "$enableval" = yes; then
7040                             wx_cv_use_exceptions='wxUSE_EXCEPTIONS=yes'
7041                           else
7042                             wx_cv_use_exceptions='wxUSE_EXCEPTIONS=no'
7043                           fi
7044
7045 else
7046
7047                           wx_cv_use_exceptions='wxUSE_EXCEPTIONS=${'DEFAULT_wxUSE_EXCEPTIONS":-$defaultval}"
7048
7049 fi
7050
7051
7052           eval "$wx_cv_use_exceptions"
7053
7054           if test x"$enablestring" = xdisable; then
7055             if test $wxUSE_EXCEPTIONS = no; then
7056               result=yes
7057             else
7058               result=no
7059             fi
7060           else
7061             result=$wxUSE_EXCEPTIONS
7062           fi
7063
7064           { echo "$as_me:$LINENO: result: $result" >&5
7065 echo "${ECHO_T}$result" >&6; }
7066
7067
7068           enablestring=
7069           defaultval=$wxUSE_ALL_FEATURES
7070           if test -z "$defaultval"; then
7071               if test x"$enablestring" = xdisable; then
7072                   defaultval=yes
7073               else
7074                   defaultval=no
7075               fi
7076           fi
7077
7078           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ffile" >&5
7079 echo $ECHO_N "checking for --${enablestring:-enable}-ffile... $ECHO_C" >&6; }
7080           # Check whether --enable-ffile was given.
7081 if test "${enable_ffile+set}" = set; then
7082   enableval=$enable_ffile;
7083                           if test "$enableval" = yes; then
7084                             wx_cv_use_ffile='wxUSE_FFILE=yes'
7085                           else
7086                             wx_cv_use_ffile='wxUSE_FFILE=no'
7087                           fi
7088
7089 else
7090
7091                           wx_cv_use_ffile='wxUSE_FFILE=${'DEFAULT_wxUSE_FFILE":-$defaultval}"
7092
7093 fi
7094
7095
7096           eval "$wx_cv_use_ffile"
7097
7098           if test x"$enablestring" = xdisable; then
7099             if test $wxUSE_FFILE = no; then
7100               result=yes
7101             else
7102               result=no
7103             fi
7104           else
7105             result=$wxUSE_FFILE
7106           fi
7107
7108           { echo "$as_me:$LINENO: result: $result" >&5
7109 echo "${ECHO_T}$result" >&6; }
7110
7111
7112           enablestring=
7113           defaultval=$wxUSE_ALL_FEATURES
7114           if test -z "$defaultval"; then
7115               if test x"$enablestring" = xdisable; then
7116                   defaultval=yes
7117               else
7118                   defaultval=no
7119               fi
7120           fi
7121
7122           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-file" >&5
7123 echo $ECHO_N "checking for --${enablestring:-enable}-file... $ECHO_C" >&6; }
7124           # Check whether --enable-file was given.
7125 if test "${enable_file+set}" = set; then
7126   enableval=$enable_file;
7127                           if test "$enableval" = yes; then
7128                             wx_cv_use_file='wxUSE_FILE=yes'
7129                           else
7130                             wx_cv_use_file='wxUSE_FILE=no'
7131                           fi
7132
7133 else
7134
7135                           wx_cv_use_file='wxUSE_FILE=${'DEFAULT_wxUSE_FILE":-$defaultval}"
7136
7137 fi
7138
7139
7140           eval "$wx_cv_use_file"
7141
7142           if test x"$enablestring" = xdisable; then
7143             if test $wxUSE_FILE = no; then
7144               result=yes
7145             else
7146               result=no
7147             fi
7148           else
7149             result=$wxUSE_FILE
7150           fi
7151
7152           { echo "$as_me:$LINENO: result: $result" >&5
7153 echo "${ECHO_T}$result" >&6; }
7154
7155
7156           enablestring=
7157           defaultval=$wxUSE_ALL_FEATURES
7158           if test -z "$defaultval"; then
7159               if test x"$enablestring" = xdisable; then
7160                   defaultval=yes
7161               else
7162                   defaultval=no
7163               fi
7164           fi
7165
7166           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filehistory" >&5
7167 echo $ECHO_N "checking for --${enablestring:-enable}-filehistory... $ECHO_C" >&6; }
7168           # Check whether --enable-filehistory was given.
7169 if test "${enable_filehistory+set}" = set; then
7170   enableval=$enable_filehistory;
7171                           if test "$enableval" = yes; then
7172                             wx_cv_use_filehistory='wxUSE_FILE_HISTORY=yes'
7173                           else
7174                             wx_cv_use_filehistory='wxUSE_FILE_HISTORY=no'
7175                           fi
7176
7177 else
7178
7179                           wx_cv_use_filehistory='wxUSE_FILE_HISTORY=${'DEFAULT_wxUSE_FILE_HISTORY":-$defaultval}"
7180
7181 fi
7182
7183
7184           eval "$wx_cv_use_filehistory"
7185
7186           if test x"$enablestring" = xdisable; then
7187             if test $wxUSE_FILE_HISTORY = no; then
7188               result=yes
7189             else
7190               result=no
7191             fi
7192           else
7193             result=$wxUSE_FILE_HISTORY
7194           fi
7195
7196           { echo "$as_me:$LINENO: result: $result" >&5
7197 echo "${ECHO_T}$result" >&6; }
7198
7199
7200           enablestring=
7201           defaultval=$wxUSE_ALL_FEATURES
7202           if test -z "$defaultval"; then
7203               if test x"$enablestring" = xdisable; then
7204                   defaultval=yes
7205               else
7206                   defaultval=no
7207               fi
7208           fi
7209
7210           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filesystem" >&5
7211 echo $ECHO_N "checking for --${enablestring:-enable}-filesystem... $ECHO_C" >&6; }
7212           # Check whether --enable-filesystem was given.
7213 if test "${enable_filesystem+set}" = set; then
7214   enableval=$enable_filesystem;
7215                           if test "$enableval" = yes; then
7216                             wx_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
7217                           else
7218                             wx_cv_use_filesystem='wxUSE_FILESYSTEM=no'
7219                           fi
7220
7221 else
7222
7223                           wx_cv_use_filesystem='wxUSE_FILESYSTEM=${'DEFAULT_wxUSE_FILESYSTEM":-$defaultval}"
7224
7225 fi
7226
7227
7228           eval "$wx_cv_use_filesystem"
7229
7230           if test x"$enablestring" = xdisable; then
7231             if test $wxUSE_FILESYSTEM = no; then
7232               result=yes
7233             else
7234               result=no
7235             fi
7236           else
7237             result=$wxUSE_FILESYSTEM
7238           fi
7239
7240           { echo "$as_me:$LINENO: result: $result" >&5
7241 echo "${ECHO_T}$result" >&6; }
7242
7243
7244           enablestring=
7245           defaultval=$wxUSE_ALL_FEATURES
7246           if test -z "$defaultval"; then
7247               if test x"$enablestring" = xdisable; then
7248                   defaultval=yes
7249               else
7250                   defaultval=no
7251               fi
7252           fi
7253
7254           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontenum" >&5
7255 echo $ECHO_N "checking for --${enablestring:-enable}-fontenum... $ECHO_C" >&6; }
7256           # Check whether --enable-fontenum was given.
7257 if test "${enable_fontenum+set}" = set; then
7258   enableval=$enable_fontenum;
7259                           if test "$enableval" = yes; then
7260                             wx_cv_use_fontenum='wxUSE_FONTENUM=yes'
7261                           else
7262                             wx_cv_use_fontenum='wxUSE_FONTENUM=no'
7263                           fi
7264
7265 else
7266
7267                           wx_cv_use_fontenum='wxUSE_FONTENUM=${'DEFAULT_wxUSE_FONTENUM":-$defaultval}"
7268
7269 fi
7270
7271
7272           eval "$wx_cv_use_fontenum"
7273
7274           if test x"$enablestring" = xdisable; then
7275             if test $wxUSE_FONTENUM = no; then
7276               result=yes
7277             else
7278               result=no
7279             fi
7280           else
7281             result=$wxUSE_FONTENUM
7282           fi
7283
7284           { echo "$as_me:$LINENO: result: $result" >&5
7285 echo "${ECHO_T}$result" >&6; }
7286
7287
7288           enablestring=
7289           defaultval=$wxUSE_ALL_FEATURES
7290           if test -z "$defaultval"; then
7291               if test x"$enablestring" = xdisable; then
7292                   defaultval=yes
7293               else
7294                   defaultval=no
7295               fi
7296           fi
7297
7298           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontmap" >&5
7299 echo $ECHO_N "checking for --${enablestring:-enable}-fontmap... $ECHO_C" >&6; }
7300           # Check whether --enable-fontmap was given.
7301 if test "${enable_fontmap+set}" = set; then
7302   enableval=$enable_fontmap;
7303                           if test "$enableval" = yes; then
7304                             wx_cv_use_fontmap='wxUSE_FONTMAP=yes'
7305                           else
7306                             wx_cv_use_fontmap='wxUSE_FONTMAP=no'
7307                           fi
7308
7309 else
7310
7311                           wx_cv_use_fontmap='wxUSE_FONTMAP=${'DEFAULT_wxUSE_FONTMAP":-$defaultval}"
7312
7313 fi
7314
7315
7316           eval "$wx_cv_use_fontmap"
7317
7318           if test x"$enablestring" = xdisable; then
7319             if test $wxUSE_FONTMAP = no; then
7320               result=yes
7321             else
7322               result=no
7323             fi
7324           else
7325             result=$wxUSE_FONTMAP
7326           fi
7327
7328           { echo "$as_me:$LINENO: result: $result" >&5
7329 echo "${ECHO_T}$result" >&6; }
7330
7331
7332           enablestring=
7333           defaultval=$wxUSE_ALL_FEATURES
7334           if test -z "$defaultval"; then
7335               if test x"$enablestring" = xdisable; then
7336                   defaultval=yes
7337               else
7338                   defaultval=no
7339               fi
7340           fi
7341
7342           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_archive" >&5
7343 echo $ECHO_N "checking for --${enablestring:-enable}-fs_archive... $ECHO_C" >&6; }
7344           # Check whether --enable-fs_archive was given.
7345 if test "${enable_fs_archive+set}" = set; then
7346   enableval=$enable_fs_archive;
7347                           if test "$enableval" = yes; then
7348                             wx_cv_use_fs_archive='wxUSE_FS_ARCHIVE=yes'
7349                           else
7350                             wx_cv_use_fs_archive='wxUSE_FS_ARCHIVE=no'
7351                           fi
7352
7353 else
7354
7355                           wx_cv_use_fs_archive='wxUSE_FS_ARCHIVE=${'DEFAULT_wxUSE_FS_ARCHIVE":-$defaultval}"
7356
7357 fi
7358
7359
7360           eval "$wx_cv_use_fs_archive"
7361
7362           if test x"$enablestring" = xdisable; then
7363             if test $wxUSE_FS_ARCHIVE = no; then
7364               result=yes
7365             else
7366               result=no
7367             fi
7368           else
7369             result=$wxUSE_FS_ARCHIVE
7370           fi
7371
7372           { echo "$as_me:$LINENO: result: $result" >&5
7373 echo "${ECHO_T}$result" >&6; }
7374
7375
7376           enablestring=
7377           defaultval=$wxUSE_ALL_FEATURES
7378           if test -z "$defaultval"; then
7379               if test x"$enablestring" = xdisable; then
7380                   defaultval=yes
7381               else
7382                   defaultval=no
7383               fi
7384           fi
7385
7386           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_inet" >&5
7387 echo $ECHO_N "checking for --${enablestring:-enable}-fs_inet... $ECHO_C" >&6; }
7388           # Check whether --enable-fs_inet was given.
7389 if test "${enable_fs_inet+set}" = set; then
7390   enableval=$enable_fs_inet;
7391                           if test "$enableval" = yes; then
7392                             wx_cv_use_fs_inet='wxUSE_FS_INET=yes'
7393                           else
7394                             wx_cv_use_fs_inet='wxUSE_FS_INET=no'
7395                           fi
7396
7397 else
7398
7399                           wx_cv_use_fs_inet='wxUSE_FS_INET=${'DEFAULT_wxUSE_FS_INET":-$defaultval}"
7400
7401 fi
7402
7403
7404           eval "$wx_cv_use_fs_inet"
7405
7406           if test x"$enablestring" = xdisable; then
7407             if test $wxUSE_FS_INET = no; then
7408               result=yes
7409             else
7410               result=no
7411             fi
7412           else
7413             result=$wxUSE_FS_INET
7414           fi
7415
7416           { echo "$as_me:$LINENO: result: $result" >&5
7417 echo "${ECHO_T}$result" >&6; }
7418
7419
7420           enablestring=
7421           defaultval=$wxUSE_ALL_FEATURES
7422           if test -z "$defaultval"; then
7423               if test x"$enablestring" = xdisable; then
7424                   defaultval=yes
7425               else
7426                   defaultval=no
7427               fi
7428           fi
7429
7430           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_zip" >&5
7431 echo $ECHO_N "checking for --${enablestring:-enable}-fs_zip... $ECHO_C" >&6; }
7432           # Check whether --enable-fs_zip was given.
7433 if test "${enable_fs_zip+set}" = set; then
7434   enableval=$enable_fs_zip;
7435                           if test "$enableval" = yes; then
7436                             wx_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
7437                           else
7438                             wx_cv_use_fs_zip='wxUSE_FS_ZIP=no'
7439                           fi
7440
7441 else
7442
7443                           wx_cv_use_fs_zip='wxUSE_FS_ZIP=${'DEFAULT_wxUSE_FS_ZIP":-$defaultval}"
7444
7445 fi
7446
7447
7448           eval "$wx_cv_use_fs_zip"
7449
7450           if test x"$enablestring" = xdisable; then
7451             if test $wxUSE_FS_ZIP = no; then
7452               result=yes
7453             else
7454               result=no
7455             fi
7456           else
7457             result=$wxUSE_FS_ZIP
7458           fi
7459
7460           { echo "$as_me:$LINENO: result: $result" >&5
7461 echo "${ECHO_T}$result" >&6; }
7462
7463
7464           enablestring=
7465           defaultval=$wxUSE_ALL_FEATURES
7466           if test -z "$defaultval"; then
7467               if test x"$enablestring" = xdisable; then
7468                   defaultval=yes
7469               else
7470                   defaultval=no
7471               fi
7472           fi
7473
7474           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fswatcher" >&5
7475 echo $ECHO_N "checking for --${enablestring:-enable}-fswatcher... $ECHO_C" >&6; }
7476           # Check whether --enable-fswatcher was given.
7477 if test "${enable_fswatcher+set}" = set; then
7478   enableval=$enable_fswatcher;
7479                           if test "$enableval" = yes; then
7480                             wx_cv_use_fswatcher='wxUSE_FSWATCHER=yes'
7481                           else
7482                             wx_cv_use_fswatcher='wxUSE_FSWATCHER=no'
7483                           fi
7484
7485 else
7486
7487                           wx_cv_use_fswatcher='wxUSE_FSWATCHER=${'DEFAULT_wxUSE_FSWATCHER":-$defaultval}"
7488
7489 fi
7490
7491
7492           eval "$wx_cv_use_fswatcher"
7493
7494           if test x"$enablestring" = xdisable; then
7495             if test $wxUSE_FSWATCHER = no; then
7496               result=yes
7497             else
7498               result=no
7499             fi
7500           else
7501             result=$wxUSE_FSWATCHER
7502           fi
7503
7504           { echo "$as_me:$LINENO: result: $result" >&5
7505 echo "${ECHO_T}$result" >&6; }
7506
7507
7508           enablestring=
7509           defaultval=$wxUSE_ALL_FEATURES
7510           if test -z "$defaultval"; then
7511               if test x"$enablestring" = xdisable; then
7512                   defaultval=yes
7513               else
7514                   defaultval=no
7515               fi
7516           fi
7517
7518           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-geometry" >&5
7519 echo $ECHO_N "checking for --${enablestring:-enable}-geometry... $ECHO_C" >&6; }
7520           # Check whether --enable-geometry was given.
7521 if test "${enable_geometry+set}" = set; then
7522   enableval=$enable_geometry;
7523                           if test "$enableval" = yes; then
7524                             wx_cv_use_geometry='wxUSE_GEOMETRY=yes'
7525                           else
7526                             wx_cv_use_geometry='wxUSE_GEOMETRY=no'
7527                           fi
7528
7529 else
7530
7531                           wx_cv_use_geometry='wxUSE_GEOMETRY=${'DEFAULT_wxUSE_GEOMETRY":-$defaultval}"
7532
7533 fi
7534
7535
7536           eval "$wx_cv_use_geometry"
7537
7538           if test x"$enablestring" = xdisable; then
7539             if test $wxUSE_GEOMETRY = no; then
7540               result=yes
7541             else
7542               result=no
7543             fi
7544           else
7545             result=$wxUSE_GEOMETRY
7546           fi
7547
7548           { echo "$as_me:$LINENO: result: $result" >&5
7549 echo "${ECHO_T}$result" >&6; }
7550
7551
7552           enablestring=
7553           defaultval=$wxUSE_ALL_FEATURES
7554           if test -z "$defaultval"; then
7555               if test x"$enablestring" = xdisable; then
7556                   defaultval=yes
7557               else
7558                   defaultval=no
7559               fi
7560           fi
7561
7562           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-log" >&5
7563 echo $ECHO_N "checking for --${enablestring:-enable}-log... $ECHO_C" >&6; }
7564           # Check whether --enable-log was given.
7565 if test "${enable_log+set}" = set; then
7566   enableval=$enable_log;
7567                           if test "$enableval" = yes; then
7568                             wx_cv_use_log='wxUSE_LOG=yes'
7569                           else
7570                             wx_cv_use_log='wxUSE_LOG=no'
7571                           fi
7572
7573 else
7574
7575                           wx_cv_use_log='wxUSE_LOG=${'DEFAULT_wxUSE_LOG":-$defaultval}"
7576
7577 fi
7578
7579
7580           eval "$wx_cv_use_log"
7581
7582           if test x"$enablestring" = xdisable; then
7583             if test $wxUSE_LOG = no; then
7584               result=yes
7585             else
7586               result=no
7587             fi
7588           else
7589             result=$wxUSE_LOG
7590           fi
7591
7592           { echo "$as_me:$LINENO: result: $result" >&5
7593 echo "${ECHO_T}$result" >&6; }
7594
7595
7596           enablestring=
7597           defaultval=$wxUSE_ALL_FEATURES
7598           if test -z "$defaultval"; then
7599               if test x"$enablestring" = xdisable; then
7600                   defaultval=yes
7601               else
7602                   defaultval=no
7603               fi
7604           fi
7605
7606           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-longlong" >&5
7607 echo $ECHO_N "checking for --${enablestring:-enable}-longlong... $ECHO_C" >&6; }
7608           # Check whether --enable-longlong was given.
7609 if test "${enable_longlong+set}" = set; then
7610   enableval=$enable_longlong;
7611                           if test "$enableval" = yes; then
7612                             wx_cv_use_longlong='wxUSE_LONGLONG=yes'
7613                           else
7614                             wx_cv_use_longlong='wxUSE_LONGLONG=no'
7615                           fi
7616
7617 else
7618
7619                           wx_cv_use_longlong='wxUSE_LONGLONG=${'DEFAULT_wxUSE_LONGLONG":-$defaultval}"
7620
7621 fi
7622
7623
7624           eval "$wx_cv_use_longlong"
7625
7626           if test x"$enablestring" = xdisable; then
7627             if test $wxUSE_LONGLONG = no; then
7628               result=yes
7629             else
7630               result=no
7631             fi
7632           else
7633             result=$wxUSE_LONGLONG
7634           fi
7635
7636           { echo "$as_me:$LINENO: result: $result" >&5
7637 echo "${ECHO_T}$result" >&6; }
7638
7639
7640           enablestring=
7641           defaultval=$wxUSE_ALL_FEATURES
7642           if test -z "$defaultval"; then
7643               if test x"$enablestring" = xdisable; then
7644                   defaultval=yes
7645               else
7646                   defaultval=no
7647               fi
7648           fi
7649
7650           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mimetype" >&5
7651 echo $ECHO_N "checking for --${enablestring:-enable}-mimetype... $ECHO_C" >&6; }
7652           # Check whether --enable-mimetype was given.
7653 if test "${enable_mimetype+set}" = set; then
7654   enableval=$enable_mimetype;
7655                           if test "$enableval" = yes; then
7656                             wx_cv_use_mimetype='wxUSE_MIMETYPE=yes'
7657                           else
7658                             wx_cv_use_mimetype='wxUSE_MIMETYPE=no'
7659                           fi
7660
7661 else
7662
7663                           wx_cv_use_mimetype='wxUSE_MIMETYPE=${'DEFAULT_wxUSE_MIMETYPE":-$defaultval}"
7664
7665 fi
7666
7667
7668           eval "$wx_cv_use_mimetype"
7669
7670           if test x"$enablestring" = xdisable; then
7671             if test $wxUSE_MIMETYPE = no; then
7672               result=yes
7673             else
7674               result=no
7675             fi
7676           else
7677             result=$wxUSE_MIMETYPE
7678           fi
7679
7680           { echo "$as_me:$LINENO: result: $result" >&5
7681 echo "${ECHO_T}$result" >&6; }
7682
7683
7684           enablestring=
7685           defaultval=$wxUSE_ALL_FEATURES
7686           if test -z "$defaultval"; then
7687               if test x"$enablestring" = xdisable; then
7688                   defaultval=yes
7689               else
7690                   defaultval=no
7691               fi
7692           fi
7693
7694           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printfposparam" >&5
7695 echo $ECHO_N "checking for --${enablestring:-enable}-printfposparam... $ECHO_C" >&6; }
7696           # Check whether --enable-printfposparam was given.
7697 if test "${enable_printfposparam+set}" = set; then
7698   enableval=$enable_printfposparam;
7699                           if test "$enableval" = yes; then
7700                             wx_cv_use_printfposparam='wxUSE_PRINTF_POS_PARAMS=yes'
7701                           else
7702                             wx_cv_use_printfposparam='wxUSE_PRINTF_POS_PARAMS=no'
7703                           fi
7704
7705 else
7706
7707                           wx_cv_use_printfposparam='wxUSE_PRINTF_POS_PARAMS=${'DEFAULT_wxUSE_PRINTF_POS_PARAMS":-$defaultval}"
7708
7709 fi
7710
7711
7712           eval "$wx_cv_use_printfposparam"
7713
7714           if test x"$enablestring" = xdisable; then
7715             if test $wxUSE_PRINTF_POS_PARAMS = no; then
7716               result=yes
7717             else
7718               result=no
7719             fi
7720           else
7721             result=$wxUSE_PRINTF_POS_PARAMS
7722           fi
7723
7724           { echo "$as_me:$LINENO: result: $result" >&5
7725 echo "${ECHO_T}$result" >&6; }
7726
7727
7728           enablestring=
7729           defaultval=$wxUSE_ALL_FEATURES
7730           if test -z "$defaultval"; then
7731               if test x"$enablestring" = xdisable; then
7732                   defaultval=yes
7733               else
7734                   defaultval=no
7735               fi
7736           fi
7737
7738           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-snglinst" >&5
7739 echo $ECHO_N "checking for --${enablestring:-enable}-snglinst... $ECHO_C" >&6; }
7740           # Check whether --enable-snglinst was given.
7741 if test "${enable_snglinst+set}" = set; then
7742   enableval=$enable_snglinst;
7743                           if test "$enableval" = yes; then
7744                             wx_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
7745                           else
7746                             wx_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
7747                           fi
7748
7749 else
7750
7751                           wx_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=${'DEFAULT_wxUSE_SNGLINST_CHECKER":-$defaultval}"
7752
7753 fi
7754
7755
7756           eval "$wx_cv_use_snglinst"
7757
7758           if test x"$enablestring" = xdisable; then
7759             if test $wxUSE_SNGLINST_CHECKER = no; then
7760               result=yes
7761             else
7762               result=no
7763             fi
7764           else
7765             result=$wxUSE_SNGLINST_CHECKER
7766           fi
7767
7768           { echo "$as_me:$LINENO: result: $result" >&5
7769 echo "${ECHO_T}$result" >&6; }
7770
7771
7772           enablestring=
7773           defaultval=$wxUSE_ALL_FEATURES
7774           if test -z "$defaultval"; then
7775               if test x"$enablestring" = xdisable; then
7776                   defaultval=yes
7777               else
7778                   defaultval=no
7779               fi
7780           fi
7781
7782           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sound" >&5
7783 echo $ECHO_N "checking for --${enablestring:-enable}-sound... $ECHO_C" >&6; }
7784           # Check whether --enable-sound was given.
7785 if test "${enable_sound+set}" = set; then
7786   enableval=$enable_sound;
7787                           if test "$enableval" = yes; then
7788                             wx_cv_use_sound='wxUSE_SOUND=yes'
7789                           else
7790                             wx_cv_use_sound='wxUSE_SOUND=no'
7791                           fi
7792
7793 else
7794
7795                           wx_cv_use_sound='wxUSE_SOUND=${'DEFAULT_wxUSE_SOUND":-$defaultval}"
7796
7797 fi
7798
7799
7800           eval "$wx_cv_use_sound"
7801
7802           if test x"$enablestring" = xdisable; then
7803             if test $wxUSE_SOUND = no; then
7804               result=yes
7805             else
7806               result=no
7807             fi
7808           else
7809             result=$wxUSE_SOUND
7810           fi
7811
7812           { echo "$as_me:$LINENO: result: $result" >&5
7813 echo "${ECHO_T}$result" >&6; }
7814
7815
7816           enablestring=
7817           defaultval=$wxUSE_ALL_FEATURES
7818           if test -z "$defaultval"; then
7819               if test x"$enablestring" = xdisable; then
7820                   defaultval=yes
7821               else
7822                   defaultval=no
7823               fi
7824           fi
7825
7826           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stdpaths" >&5
7827 echo $ECHO_N "checking for --${enablestring:-enable}-stdpaths... $ECHO_C" >&6; }
7828           # Check whether --enable-stdpaths was given.
7829 if test "${enable_stdpaths+set}" = set; then
7830   enableval=$enable_stdpaths;
7831                           if test "$enableval" = yes; then
7832                             wx_cv_use_stdpaths='wxUSE_STDPATHS=yes'
7833                           else
7834                             wx_cv_use_stdpaths='wxUSE_STDPATHS=no'
7835                           fi
7836
7837 else
7838
7839                           wx_cv_use_stdpaths='wxUSE_STDPATHS=${'DEFAULT_wxUSE_STDPATHS":-$defaultval}"
7840
7841 fi
7842
7843
7844           eval "$wx_cv_use_stdpaths"
7845
7846           if test x"$enablestring" = xdisable; then
7847             if test $wxUSE_STDPATHS = no; then
7848               result=yes
7849             else
7850               result=no
7851             fi
7852           else
7853             result=$wxUSE_STDPATHS
7854           fi
7855
7856           { echo "$as_me:$LINENO: result: $result" >&5
7857 echo "${ECHO_T}$result" >&6; }
7858
7859
7860           enablestring=
7861           defaultval=$wxUSE_ALL_FEATURES
7862           if test -z "$defaultval"; then
7863               if test x"$enablestring" = xdisable; then
7864                   defaultval=yes
7865               else
7866                   defaultval=no
7867               fi
7868           fi
7869
7870           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stopwatch" >&5
7871 echo $ECHO_N "checking for --${enablestring:-enable}-stopwatch... $ECHO_C" >&6; }
7872           # Check whether --enable-stopwatch was given.
7873 if test "${enable_stopwatch+set}" = set; then
7874   enableval=$enable_stopwatch;
7875                           if test "$enableval" = yes; then
7876                             wx_cv_use_stopwatch='wxUSE_STOPWATCH=yes'
7877                           else
7878                             wx_cv_use_stopwatch='wxUSE_STOPWATCH=no'
7879                           fi
7880
7881 else
7882
7883                           wx_cv_use_stopwatch='wxUSE_STOPWATCH=${'DEFAULT_wxUSE_STOPWATCH":-$defaultval}"
7884
7885 fi
7886
7887
7888           eval "$wx_cv_use_stopwatch"
7889
7890           if test x"$enablestring" = xdisable; then
7891             if test $wxUSE_STOPWATCH = no; then
7892               result=yes
7893             else
7894               result=no
7895             fi
7896           else
7897             result=$wxUSE_STOPWATCH
7898           fi
7899
7900           { echo "$as_me:$LINENO: result: $result" >&5
7901 echo "${ECHO_T}$result" >&6; }
7902
7903
7904           enablestring=
7905           defaultval=$wxUSE_ALL_FEATURES
7906           if test -z "$defaultval"; then
7907               if test x"$enablestring" = xdisable; then
7908                   defaultval=yes
7909               else
7910                   defaultval=no
7911               fi
7912           fi
7913
7914           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-streams" >&5
7915 echo $ECHO_N "checking for --${enablestring:-enable}-streams... $ECHO_C" >&6; }
7916           # Check whether --enable-streams was given.
7917 if test "${enable_streams+set}" = set; then
7918   enableval=$enable_streams;
7919                           if test "$enableval" = yes; then
7920                             wx_cv_use_streams='wxUSE_STREAMS=yes'
7921                           else
7922                             wx_cv_use_streams='wxUSE_STREAMS=no'
7923                           fi
7924
7925 else
7926
7927                           wx_cv_use_streams='wxUSE_STREAMS=${'DEFAULT_wxUSE_STREAMS":-$defaultval}"
7928
7929 fi
7930
7931
7932           eval "$wx_cv_use_streams"
7933
7934           if test x"$enablestring" = xdisable; then
7935             if test $wxUSE_STREAMS = no; then
7936               result=yes
7937             else
7938               result=no
7939             fi
7940           else
7941             result=$wxUSE_STREAMS
7942           fi
7943
7944           { echo "$as_me:$LINENO: result: $result" >&5
7945 echo "${ECHO_T}$result" >&6; }
7946
7947
7948           enablestring=
7949           defaultval=$wxUSE_ALL_FEATURES
7950           if test -z "$defaultval"; then
7951               if test x"$enablestring" = xdisable; then
7952                   defaultval=yes
7953               else
7954                   defaultval=no
7955               fi
7956           fi
7957
7958           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sysoptions" >&5
7959 echo $ECHO_N "checking for --${enablestring:-enable}-sysoptions... $ECHO_C" >&6; }
7960           # Check whether --enable-sysoptions was given.
7961 if test "${enable_sysoptions+set}" = set; then
7962   enableval=$enable_sysoptions;
7963                           if test "$enableval" = yes; then
7964                             wx_cv_use_sysoptions='wxUSE_SYSTEM_OPTIONS=yes'
7965                           else
7966                             wx_cv_use_sysoptions='wxUSE_SYSTEM_OPTIONS=no'
7967                           fi
7968
7969 else
7970
7971                           wx_cv_use_sysoptions='wxUSE_SYSTEM_OPTIONS=${'DEFAULT_wxUSE_SYSTEM_OPTIONS":-$defaultval}"
7972
7973 fi
7974
7975
7976           eval "$wx_cv_use_sysoptions"
7977
7978           if test x"$enablestring" = xdisable; then
7979             if test $wxUSE_SYSTEM_OPTIONS = no; then
7980               result=yes
7981             else
7982               result=no
7983             fi
7984           else
7985             result=$wxUSE_SYSTEM_OPTIONS
7986           fi
7987
7988           { echo "$as_me:$LINENO: result: $result" >&5
7989 echo "${ECHO_T}$result" >&6; }
7990
7991
7992           enablestring=
7993           defaultval=$wxUSE_ALL_FEATURES
7994           if test -z "$defaultval"; then
7995               if test x"$enablestring" = xdisable; then
7996                   defaultval=yes
7997               else
7998                   defaultval=no
7999               fi
8000           fi
8001
8002           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tarstream" >&5
8003 echo $ECHO_N "checking for --${enablestring:-enable}-tarstream... $ECHO_C" >&6; }
8004           # Check whether --enable-tarstream was given.
8005 if test "${enable_tarstream+set}" = set; then
8006   enableval=$enable_tarstream;
8007                           if test "$enableval" = yes; then
8008                             wx_cv_use_tarstream='wxUSE_TARSTREAM=yes'
8009                           else
8010                             wx_cv_use_tarstream='wxUSE_TARSTREAM=no'
8011                           fi
8012
8013 else
8014
8015                           wx_cv_use_tarstream='wxUSE_TARSTREAM=${'DEFAULT_wxUSE_TARSTREAM":-$defaultval}"
8016
8017 fi
8018
8019
8020           eval "$wx_cv_use_tarstream"
8021
8022           if test x"$enablestring" = xdisable; then
8023             if test $wxUSE_TARSTREAM = no; then
8024               result=yes
8025             else
8026               result=no
8027             fi
8028           else
8029             result=$wxUSE_TARSTREAM
8030           fi
8031
8032           { echo "$as_me:$LINENO: result: $result" >&5
8033 echo "${ECHO_T}$result" >&6; }
8034
8035
8036           enablestring=
8037           defaultval=$wxUSE_ALL_FEATURES
8038           if test -z "$defaultval"; then
8039               if test x"$enablestring" = xdisable; then
8040                   defaultval=yes
8041               else
8042                   defaultval=no
8043               fi
8044           fi
8045
8046           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textbuf" >&5
8047 echo $ECHO_N "checking for --${enablestring:-enable}-textbuf... $ECHO_C" >&6; }
8048           # Check whether --enable-textbuf was given.
8049 if test "${enable_textbuf+set}" = set; then
8050   enableval=$enable_textbuf;
8051                           if test "$enableval" = yes; then
8052                             wx_cv_use_textbuf='wxUSE_TEXTBUFFER=yes'
8053                           else
8054                             wx_cv_use_textbuf='wxUSE_TEXTBUFFER=no'
8055                           fi
8056
8057 else
8058
8059                           wx_cv_use_textbuf='wxUSE_TEXTBUFFER=${'DEFAULT_wxUSE_TEXTBUFFER":-$defaultval}"
8060
8061 fi
8062
8063
8064           eval "$wx_cv_use_textbuf"
8065
8066           if test x"$enablestring" = xdisable; then
8067             if test $wxUSE_TEXTBUFFER = no; then
8068               result=yes
8069             else
8070               result=no
8071             fi
8072           else
8073             result=$wxUSE_TEXTBUFFER
8074           fi
8075
8076           { echo "$as_me:$LINENO: result: $result" >&5
8077 echo "${ECHO_T}$result" >&6; }
8078
8079
8080           enablestring=
8081           defaultval=$wxUSE_ALL_FEATURES
8082           if test -z "$defaultval"; then
8083               if test x"$enablestring" = xdisable; then
8084                   defaultval=yes
8085               else
8086                   defaultval=no
8087               fi
8088           fi
8089
8090           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textfile" >&5
8091 echo $ECHO_N "checking for --${enablestring:-enable}-textfile... $ECHO_C" >&6; }
8092           # Check whether --enable-textfile was given.
8093 if test "${enable_textfile+set}" = set; then
8094   enableval=$enable_textfile;
8095                           if test "$enableval" = yes; then
8096                             wx_cv_use_textfile='wxUSE_TEXTFILE=yes'
8097                           else
8098                             wx_cv_use_textfile='wxUSE_TEXTFILE=no'
8099                           fi
8100
8101 else
8102
8103                           wx_cv_use_textfile='wxUSE_TEXTFILE=${'DEFAULT_wxUSE_TEXTFILE":-$defaultval}"
8104
8105 fi
8106
8107
8108           eval "$wx_cv_use_textfile"
8109
8110           if test x"$enablestring" = xdisable; then
8111             if test $wxUSE_TEXTFILE = no; then
8112               result=yes
8113             else
8114               result=no
8115             fi
8116           else
8117             result=$wxUSE_TEXTFILE
8118           fi
8119
8120           { echo "$as_me:$LINENO: result: $result" >&5
8121 echo "${ECHO_T}$result" >&6; }
8122
8123
8124           enablestring=
8125           defaultval=$wxUSE_ALL_FEATURES
8126           if test -z "$defaultval"; then
8127               if test x"$enablestring" = xdisable; then
8128                   defaultval=yes
8129               else
8130                   defaultval=no
8131               fi
8132           fi
8133
8134           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-timer" >&5
8135 echo $ECHO_N "checking for --${enablestring:-enable}-timer... $ECHO_C" >&6; }
8136           # Check whether --enable-timer was given.
8137 if test "${enable_timer+set}" = set; then
8138   enableval=$enable_timer;
8139                           if test "$enableval" = yes; then
8140                             wx_cv_use_timer='wxUSE_TIMER=yes'
8141                           else
8142                             wx_cv_use_timer='wxUSE_TIMER=no'
8143                           fi
8144
8145 else
8146
8147                           wx_cv_use_timer='wxUSE_TIMER=${'DEFAULT_wxUSE_TIMER":-$defaultval}"
8148
8149 fi
8150
8151
8152           eval "$wx_cv_use_timer"
8153
8154           if test x"$enablestring" = xdisable; then
8155             if test $wxUSE_TIMER = no; then
8156               result=yes
8157             else
8158               result=no
8159             fi
8160           else
8161             result=$wxUSE_TIMER
8162           fi
8163
8164           { echo "$as_me:$LINENO: result: $result" >&5
8165 echo "${ECHO_T}$result" >&6; }
8166
8167
8168           enablestring=
8169           defaultval=$wxUSE_ALL_FEATURES
8170           if test -z "$defaultval"; then
8171               if test x"$enablestring" = xdisable; then
8172                   defaultval=yes
8173               else
8174                   defaultval=no
8175               fi
8176           fi
8177
8178           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-variant" >&5
8179 echo $ECHO_N "checking for --${enablestring:-enable}-variant... $ECHO_C" >&6; }
8180           # Check whether --enable-variant was given.
8181 if test "${enable_variant+set}" = set; then
8182   enableval=$enable_variant;
8183                           if test "$enableval" = yes; then
8184                             wx_cv_use_variant='wxUSE_VARIANT=yes'
8185                           else
8186                             wx_cv_use_variant='wxUSE_VARIANT=no'
8187                           fi
8188
8189 else
8190
8191                           wx_cv_use_variant='wxUSE_VARIANT=${'DEFAULT_wxUSE_VARIANT":-$defaultval}"
8192
8193 fi
8194
8195
8196           eval "$wx_cv_use_variant"
8197
8198           if test x"$enablestring" = xdisable; then
8199             if test $wxUSE_VARIANT = no; then
8200               result=yes
8201             else
8202               result=no
8203             fi
8204           else
8205             result=$wxUSE_VARIANT
8206           fi
8207
8208           { echo "$as_me:$LINENO: result: $result" >&5
8209 echo "${ECHO_T}$result" >&6; }
8210
8211
8212           enablestring=
8213           defaultval=$wxUSE_ALL_FEATURES
8214           if test -z "$defaultval"; then
8215               if test x"$enablestring" = xdisable; then
8216                   defaultval=yes
8217               else
8218                   defaultval=no
8219               fi
8220           fi
8221
8222           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-zipstream" >&5
8223 echo $ECHO_N "checking for --${enablestring:-enable}-zipstream... $ECHO_C" >&6; }
8224           # Check whether --enable-zipstream was given.
8225 if test "${enable_zipstream+set}" = set; then
8226   enableval=$enable_zipstream;
8227                           if test "$enableval" = yes; then
8228                             wx_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
8229                           else
8230                             wx_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
8231                           fi
8232
8233 else
8234
8235                           wx_cv_use_zipstream='wxUSE_ZIPSTREAM=${'DEFAULT_wxUSE_ZIPSTREAM":-$defaultval}"
8236
8237 fi
8238
8239
8240           eval "$wx_cv_use_zipstream"
8241
8242           if test x"$enablestring" = xdisable; then
8243             if test $wxUSE_ZIPSTREAM = no; then
8244               result=yes
8245             else
8246               result=no
8247             fi
8248           else
8249             result=$wxUSE_ZIPSTREAM
8250           fi
8251
8252           { echo "$as_me:$LINENO: result: $result" >&5
8253 echo "${ECHO_T}$result" >&6; }
8254
8255
8256
8257           enablestring=
8258           defaultval=$wxUSE_ALL_FEATURES
8259           if test -z "$defaultval"; then
8260               if test x"$enablestring" = xdisable; then
8261                   defaultval=yes
8262               else
8263                   defaultval=no
8264               fi
8265           fi
8266
8267           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-url" >&5
8268 echo $ECHO_N "checking for --${enablestring:-enable}-url... $ECHO_C" >&6; }
8269           # Check whether --enable-url was given.
8270 if test "${enable_url+set}" = set; then
8271   enableval=$enable_url;
8272                           if test "$enableval" = yes; then
8273                             wx_cv_use_url='wxUSE_URL=yes'
8274                           else
8275                             wx_cv_use_url='wxUSE_URL=no'
8276                           fi
8277
8278 else
8279
8280                           wx_cv_use_url='wxUSE_URL=${'DEFAULT_wxUSE_URL":-$defaultval}"
8281
8282 fi
8283
8284
8285           eval "$wx_cv_use_url"
8286
8287           if test x"$enablestring" = xdisable; then
8288             if test $wxUSE_URL = no; then
8289               result=yes
8290             else
8291               result=no
8292             fi
8293           else
8294             result=$wxUSE_URL
8295           fi
8296
8297           { echo "$as_me:$LINENO: result: $result" >&5
8298 echo "${ECHO_T}$result" >&6; }
8299
8300
8301           enablestring=
8302           defaultval=$wxUSE_ALL_FEATURES
8303           if test -z "$defaultval"; then
8304               if test x"$enablestring" = xdisable; then
8305                   defaultval=yes
8306               else
8307                   defaultval=no
8308               fi
8309           fi
8310
8311           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol" >&5
8312 echo $ECHO_N "checking for --${enablestring:-enable}-protocol... $ECHO_C" >&6; }
8313           # Check whether --enable-protocol was given.
8314 if test "${enable_protocol+set}" = set; then
8315   enableval=$enable_protocol;
8316                           if test "$enableval" = yes; then
8317                             wx_cv_use_protocol='wxUSE_PROTOCOL=yes'
8318                           else
8319                             wx_cv_use_protocol='wxUSE_PROTOCOL=no'
8320                           fi
8321
8322 else
8323
8324                           wx_cv_use_protocol='wxUSE_PROTOCOL=${'DEFAULT_wxUSE_PROTOCOL":-$defaultval}"
8325
8326 fi
8327
8328
8329           eval "$wx_cv_use_protocol"
8330
8331           if test x"$enablestring" = xdisable; then
8332             if test $wxUSE_PROTOCOL = no; then
8333               result=yes
8334             else
8335               result=no
8336             fi
8337           else
8338             result=$wxUSE_PROTOCOL
8339           fi
8340
8341           { echo "$as_me:$LINENO: result: $result" >&5
8342 echo "${ECHO_T}$result" >&6; }
8343
8344
8345           enablestring=
8346           defaultval=$wxUSE_ALL_FEATURES
8347           if test -z "$defaultval"; then
8348               if test x"$enablestring" = xdisable; then
8349                   defaultval=yes
8350               else
8351                   defaultval=no
8352               fi
8353           fi
8354
8355           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_http" >&5
8356 echo $ECHO_N "checking for --${enablestring:-enable}-protocol_http... $ECHO_C" >&6; }
8357           # Check whether --enable-protocol_http was given.
8358 if test "${enable_protocol_http+set}" = set; then
8359   enableval=$enable_protocol_http;
8360                           if test "$enableval" = yes; then
8361                             wx_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes'
8362                           else
8363                             wx_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no'
8364                           fi
8365
8366 else
8367
8368                           wx_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=${'DEFAULT_wxUSE_PROTOCOL_HTTP":-$defaultval}"
8369
8370 fi
8371
8372
8373           eval "$wx_cv_use_protocol_http"
8374
8375           if test x"$enablestring" = xdisable; then
8376             if test $wxUSE_PROTOCOL_HTTP = no; then
8377               result=yes
8378             else
8379               result=no
8380             fi
8381           else
8382             result=$wxUSE_PROTOCOL_HTTP
8383           fi
8384
8385           { echo "$as_me:$LINENO: result: $result" >&5
8386 echo "${ECHO_T}$result" >&6; }
8387
8388
8389           enablestring=
8390           defaultval=$wxUSE_ALL_FEATURES
8391           if test -z "$defaultval"; then
8392               if test x"$enablestring" = xdisable; then
8393                   defaultval=yes
8394               else
8395                   defaultval=no
8396               fi
8397           fi
8398
8399           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_ftp" >&5
8400 echo $ECHO_N "checking for --${enablestring:-enable}-protocol_ftp... $ECHO_C" >&6; }
8401           # Check whether --enable-protocol_ftp was given.
8402 if test "${enable_protocol_ftp+set}" = set; then
8403   enableval=$enable_protocol_ftp;
8404                           if test "$enableval" = yes; then
8405                             wx_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes'
8406                           else
8407                             wx_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no'
8408                           fi
8409
8410 else
8411
8412                           wx_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=${'DEFAULT_wxUSE_PROTOCOL_FTP":-$defaultval}"
8413
8414 fi
8415
8416
8417           eval "$wx_cv_use_protocol_ftp"
8418
8419           if test x"$enablestring" = xdisable; then
8420             if test $wxUSE_PROTOCOL_FTP = no; then
8421               result=yes
8422             else
8423               result=no
8424             fi
8425           else
8426             result=$wxUSE_PROTOCOL_FTP
8427           fi
8428
8429           { echo "$as_me:$LINENO: result: $result" >&5
8430 echo "${ECHO_T}$result" >&6; }
8431
8432
8433           enablestring=
8434           defaultval=$wxUSE_ALL_FEATURES
8435           if test -z "$defaultval"; then
8436               if test x"$enablestring" = xdisable; then
8437                   defaultval=yes
8438               else
8439                   defaultval=no
8440               fi
8441           fi
8442
8443           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_file" >&5
8444 echo $ECHO_N "checking for --${enablestring:-enable}-protocol_file... $ECHO_C" >&6; }
8445           # Check whether --enable-protocol_file was given.
8446 if test "${enable_protocol_file+set}" = set; then
8447   enableval=$enable_protocol_file;
8448                           if test "$enableval" = yes; then
8449                             wx_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes'
8450                           else
8451                             wx_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no'
8452                           fi
8453
8454 else
8455
8456                           wx_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=${'DEFAULT_wxUSE_PROTOCOL_FILE":-$defaultval}"
8457
8458 fi
8459
8460
8461           eval "$wx_cv_use_protocol_file"
8462
8463           if test x"$enablestring" = xdisable; then
8464             if test $wxUSE_PROTOCOL_FILE = no; then
8465               result=yes
8466             else
8467               result=no
8468             fi
8469           else
8470             result=$wxUSE_PROTOCOL_FILE
8471           fi
8472
8473           { echo "$as_me:$LINENO: result: $result" >&5
8474 echo "${ECHO_T}$result" >&6; }
8475
8476
8477
8478           enablestring=
8479           defaultval=$wxUSE_ALL_FEATURES
8480           if test -z "$defaultval"; then
8481               if test x"$enablestring" = xdisable; then
8482                   defaultval=yes
8483               else
8484                   defaultval=no
8485               fi
8486           fi
8487
8488           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-threads" >&5
8489 echo $ECHO_N "checking for --${enablestring:-enable}-threads... $ECHO_C" >&6; }
8490           # Check whether --enable-threads was given.
8491 if test "${enable_threads+set}" = set; then
8492   enableval=$enable_threads;
8493                           if test "$enableval" = yes; then
8494                             wx_cv_use_threads='wxUSE_THREADS=yes'
8495                           else
8496                             wx_cv_use_threads='wxUSE_THREADS=no'
8497                           fi
8498
8499 else
8500
8501                           wx_cv_use_threads='wxUSE_THREADS=${'DEFAULT_wxUSE_THREADS":-$defaultval}"
8502
8503 fi
8504
8505
8506           eval "$wx_cv_use_threads"
8507
8508           if test x"$enablestring" = xdisable; then
8509             if test $wxUSE_THREADS = no; then
8510               result=yes
8511             else
8512               result=no
8513             fi
8514           else
8515             result=$wxUSE_THREADS
8516           fi
8517
8518           { echo "$as_me:$LINENO: result: $result" >&5
8519 echo "${ECHO_T}$result" >&6; }
8520
8521
8522
8523           enablestring=
8524           defaultval=
8525           if test -z "$defaultval"; then
8526               if test x"$enablestring" = xdisable; then
8527                   defaultval=yes
8528               else
8529                   defaultval=no
8530               fi
8531           fi
8532
8533           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-iniconf" >&5
8534 echo $ECHO_N "checking for --${enablestring:-enable}-iniconf... $ECHO_C" >&6; }
8535           # Check whether --enable-iniconf was given.
8536 if test "${enable_iniconf+set}" = set; then
8537   enableval=$enable_iniconf;
8538                           if test "$enableval" = yes; then
8539                             wx_cv_use_iniconf='wxUSE_INICONF=yes'
8540                           else
8541                             wx_cv_use_iniconf='wxUSE_INICONF=no'
8542                           fi
8543
8544 else
8545
8546                           wx_cv_use_iniconf='wxUSE_INICONF=${'DEFAULT_wxUSE_INICONF":-$defaultval}"
8547
8548 fi
8549
8550
8551           eval "$wx_cv_use_iniconf"
8552
8553           if test x"$enablestring" = xdisable; then
8554             if test $wxUSE_INICONF = no; then
8555               result=yes
8556             else
8557               result=no
8558             fi
8559           else
8560             result=$wxUSE_INICONF
8561           fi
8562
8563           { echo "$as_me:$LINENO: result: $result" >&5
8564 echo "${ECHO_T}$result" >&6; }
8565
8566
8567           enablestring=
8568           defaultval=$wxUSE_ALL_FEATURES
8569           if test -z "$defaultval"; then
8570               if test x"$enablestring" = xdisable; then
8571                   defaultval=yes
8572               else
8573                   defaultval=no
8574               fi
8575           fi
8576
8577           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-regkey" >&5
8578 echo $ECHO_N "checking for --${enablestring:-enable}-regkey... $ECHO_C" >&6; }
8579           # Check whether --enable-regkey was given.
8580 if test "${enable_regkey+set}" = set; then
8581   enableval=$enable_regkey;
8582                           if test "$enableval" = yes; then
8583                             wx_cv_use_regkey='wxUSE_REGKEY=yes'
8584                           else
8585                             wx_cv_use_regkey='wxUSE_REGKEY=no'
8586                           fi
8587
8588 else
8589
8590                           wx_cv_use_regkey='wxUSE_REGKEY=${'DEFAULT_wxUSE_REGKEY":-$defaultval}"
8591
8592 fi
8593
8594
8595           eval "$wx_cv_use_regkey"
8596
8597           if test x"$enablestring" = xdisable; then
8598             if test $wxUSE_REGKEY = no; then
8599               result=yes
8600             else
8601               result=no
8602             fi
8603           else
8604             result=$wxUSE_REGKEY
8605           fi
8606
8607           { echo "$as_me:$LINENO: result: $result" >&5
8608 echo "${ECHO_T}$result" >&6; }
8609
8610
8611 if test "$wxUSE_GUI" = "yes"; then
8612
8613
8614
8615           enablestring=
8616           defaultval=$wxUSE_ALL_FEATURES
8617           if test -z "$defaultval"; then
8618               if test x"$enablestring" = xdisable; then
8619                   defaultval=yes
8620               else
8621                   defaultval=no
8622               fi
8623           fi
8624
8625           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-docview" >&5
8626 echo $ECHO_N "checking for --${enablestring:-enable}-docview... $ECHO_C" >&6; }
8627           # Check whether --enable-docview was given.
8628 if test "${enable_docview+set}" = set; then
8629   enableval=$enable_docview;
8630                           if test "$enableval" = yes; then
8631                             wx_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
8632                           else
8633                             wx_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
8634                           fi
8635
8636 else
8637
8638                           wx_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=${'DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE":-$defaultval}"
8639
8640 fi
8641
8642
8643           eval "$wx_cv_use_docview"
8644
8645           if test x"$enablestring" = xdisable; then
8646             if test $wxUSE_DOC_VIEW_ARCHITECTURE = no; then
8647               result=yes
8648             else
8649               result=no
8650             fi
8651           else
8652             result=$wxUSE_DOC_VIEW_ARCHITECTURE
8653           fi
8654
8655           { echo "$as_me:$LINENO: result: $result" >&5
8656 echo "${ECHO_T}$result" >&6; }
8657
8658
8659           enablestring=
8660           defaultval=$wxUSE_ALL_FEATURES
8661           if test -z "$defaultval"; then
8662               if test x"$enablestring" = xdisable; then
8663                   defaultval=yes
8664               else
8665                   defaultval=no
8666               fi
8667           fi
8668
8669           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-help" >&5
8670 echo $ECHO_N "checking for --${enablestring:-enable}-help... $ECHO_C" >&6; }
8671           # Check whether --enable-help was given.
8672 if test "${enable_help+set}" = set; then
8673   enableval=$enable_help;
8674                           if test "$enableval" = yes; then
8675                             wx_cv_use_help='wxUSE_HELP=yes'
8676                           else
8677                             wx_cv_use_help='wxUSE_HELP=no'
8678                           fi
8679
8680 else
8681
8682                           wx_cv_use_help='wxUSE_HELP=${'DEFAULT_wxUSE_HELP":-$defaultval}"
8683
8684 fi
8685
8686
8687           eval "$wx_cv_use_help"
8688
8689           if test x"$enablestring" = xdisable; then
8690             if test $wxUSE_HELP = no; then
8691               result=yes
8692             else
8693               result=no
8694             fi
8695           else
8696             result=$wxUSE_HELP
8697           fi
8698
8699           { echo "$as_me:$LINENO: result: $result" >&5
8700 echo "${ECHO_T}$result" >&6; }
8701
8702
8703           enablestring=
8704           defaultval=$wxUSE_ALL_FEATURES
8705           if test -z "$defaultval"; then
8706               if test x"$enablestring" = xdisable; then
8707                   defaultval=yes
8708               else
8709                   defaultval=no
8710               fi
8711           fi
8712
8713           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mshtmlhelp" >&5
8714 echo $ECHO_N "checking for --${enablestring:-enable}-mshtmlhelp... $ECHO_C" >&6; }
8715           # Check whether --enable-mshtmlhelp was given.
8716 if test "${enable_mshtmlhelp+set}" = set; then
8717   enableval=$enable_mshtmlhelp;
8718                           if test "$enableval" = yes; then
8719                             wx_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes'
8720                           else
8721                             wx_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no'
8722                           fi
8723
8724 else
8725
8726                           wx_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=${'DEFAULT_wxUSE_MS_HTML_HELP":-$defaultval}"
8727
8728 fi
8729
8730
8731           eval "$wx_cv_use_mshtmlhelp"
8732
8733           if test x"$enablestring" = xdisable; then
8734             if test $wxUSE_MS_HTML_HELP = no; then
8735               result=yes
8736             else
8737               result=no
8738             fi
8739           else
8740             result=$wxUSE_MS_HTML_HELP
8741           fi
8742
8743           { echo "$as_me:$LINENO: result: $result" >&5
8744 echo "${ECHO_T}$result" >&6; }
8745
8746
8747           enablestring=
8748           defaultval=$wxUSE_ALL_FEATURES
8749           if test -z "$defaultval"; then
8750               if test x"$enablestring" = xdisable; then
8751                   defaultval=yes
8752               else
8753                   defaultval=no
8754               fi
8755           fi
8756
8757           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-html" >&5
8758 echo $ECHO_N "checking for --${enablestring:-enable}-html... $ECHO_C" >&6; }
8759           # Check whether --enable-html was given.
8760 if test "${enable_html+set}" = set; then
8761   enableval=$enable_html;
8762                           if test "$enableval" = yes; then
8763                             wx_cv_use_html='wxUSE_HTML=yes'
8764                           else
8765                             wx_cv_use_html='wxUSE_HTML=no'
8766                           fi
8767
8768 else
8769
8770                           wx_cv_use_html='wxUSE_HTML=${'DEFAULT_wxUSE_HTML":-$defaultval}"
8771
8772 fi
8773
8774
8775           eval "$wx_cv_use_html"
8776
8777           if test x"$enablestring" = xdisable; then
8778             if test $wxUSE_HTML = no; then
8779               result=yes
8780             else
8781               result=no
8782             fi
8783           else
8784             result=$wxUSE_HTML
8785           fi
8786
8787           { echo "$as_me:$LINENO: result: $result" >&5
8788 echo "${ECHO_T}$result" >&6; }
8789
8790
8791           enablestring=
8792           defaultval=$wxUSE_ALL_FEATURES
8793           if test -z "$defaultval"; then
8794               if test x"$enablestring" = xdisable; then
8795                   defaultval=yes
8796               else
8797                   defaultval=no
8798               fi
8799           fi
8800
8801           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-htmlhelp" >&5
8802 echo $ECHO_N "checking for --${enablestring:-enable}-htmlhelp... $ECHO_C" >&6; }
8803           # Check whether --enable-htmlhelp was given.
8804 if test "${enable_htmlhelp+set}" = set; then
8805   enableval=$enable_htmlhelp;
8806                           if test "$enableval" = yes; then
8807                             wx_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes'
8808                           else
8809                             wx_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no'
8810                           fi
8811
8812 else
8813
8814                           wx_cv_use_htmlhelp='wxUSE_WXHTML_HELP=${'DEFAULT_wxUSE_WXHTML_HELP":-$defaultval}"
8815
8816 fi
8817
8818
8819           eval "$wx_cv_use_htmlhelp"
8820
8821           if test x"$enablestring" = xdisable; then
8822             if test $wxUSE_WXHTML_HELP = no; then
8823               result=yes
8824             else
8825               result=no
8826             fi
8827           else
8828             result=$wxUSE_WXHTML_HELP
8829           fi
8830
8831           { echo "$as_me:$LINENO: result: $result" >&5
8832 echo "${ECHO_T}$result" >&6; }
8833
8834
8835           enablestring=
8836           defaultval=$wxUSE_ALL_FEATURES
8837           if test -z "$defaultval"; then
8838               if test x"$enablestring" = xdisable; then
8839                   defaultval=yes
8840               else
8841                   defaultval=no
8842               fi
8843           fi
8844
8845           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xrc" >&5
8846 echo $ECHO_N "checking for --${enablestring:-enable}-xrc... $ECHO_C" >&6; }
8847           # Check whether --enable-xrc was given.
8848 if test "${enable_xrc+set}" = set; then
8849   enableval=$enable_xrc;
8850                           if test "$enableval" = yes; then
8851                             wx_cv_use_xrc='wxUSE_XRC=yes'
8852                           else
8853                             wx_cv_use_xrc='wxUSE_XRC=no'
8854                           fi
8855
8856 else
8857
8858                           wx_cv_use_xrc='wxUSE_XRC=${'DEFAULT_wxUSE_XRC":-$defaultval}"
8859
8860 fi
8861
8862
8863           eval "$wx_cv_use_xrc"
8864
8865           if test x"$enablestring" = xdisable; then
8866             if test $wxUSE_XRC = no; then
8867               result=yes
8868             else
8869               result=no
8870             fi
8871           else
8872             result=$wxUSE_XRC
8873           fi
8874
8875           { echo "$as_me:$LINENO: result: $result" >&5
8876 echo "${ECHO_T}$result" >&6; }
8877
8878
8879           enablestring=
8880           defaultval=$wxUSE_ALL_FEATURES
8881           if test -z "$defaultval"; then
8882               if test x"$enablestring" = xdisable; then
8883                   defaultval=yes
8884               else
8885                   defaultval=no
8886               fi
8887           fi
8888
8889           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-aui" >&5
8890 echo $ECHO_N "checking for --${enablestring:-enable}-aui... $ECHO_C" >&6; }
8891           # Check whether --enable-aui was given.
8892 if test "${enable_aui+set}" = set; then
8893   enableval=$enable_aui;
8894                           if test "$enableval" = yes; then
8895                             wx_cv_use_aui='wxUSE_AUI=yes'
8896                           else
8897                             wx_cv_use_aui='wxUSE_AUI=no'
8898                           fi
8899
8900 else
8901
8902                           wx_cv_use_aui='wxUSE_AUI=${'DEFAULT_wxUSE_AUI":-$defaultval}"
8903
8904 fi
8905
8906
8907           eval "$wx_cv_use_aui"
8908
8909           if test x"$enablestring" = xdisable; then
8910             if test $wxUSE_AUI = no; then
8911               result=yes
8912             else
8913               result=no
8914             fi
8915           else
8916             result=$wxUSE_AUI
8917           fi
8918
8919           { echo "$as_me:$LINENO: result: $result" >&5
8920 echo "${ECHO_T}$result" >&6; }
8921
8922
8923           enablestring=
8924           defaultval=$wxUSE_ALL_FEATURES
8925           if test -z "$defaultval"; then
8926               if test x"$enablestring" = xdisable; then
8927                   defaultval=yes
8928               else
8929                   defaultval=no
8930               fi
8931           fi
8932
8933           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-propgrid" >&5
8934 echo $ECHO_N "checking for --${enablestring:-enable}-propgrid... $ECHO_C" >&6; }
8935           # Check whether --enable-propgrid was given.
8936 if test "${enable_propgrid+set}" = set; then
8937   enableval=$enable_propgrid;
8938                           if test "$enableval" = yes; then
8939                             wx_cv_use_propgrid='wxUSE_PROPGRID=yes'
8940                           else
8941                             wx_cv_use_propgrid='wxUSE_PROPGRID=no'
8942                           fi
8943
8944 else
8945
8946                           wx_cv_use_propgrid='wxUSE_PROPGRID=${'DEFAULT_wxUSE_PROPGRID":-$defaultval}"
8947
8948 fi
8949
8950
8951           eval "$wx_cv_use_propgrid"
8952
8953           if test x"$enablestring" = xdisable; then
8954             if test $wxUSE_PROPGRID = no; then
8955               result=yes
8956             else
8957               result=no
8958             fi
8959           else
8960             result=$wxUSE_PROPGRID
8961           fi
8962
8963           { echo "$as_me:$LINENO: result: $result" >&5
8964 echo "${ECHO_T}$result" >&6; }
8965
8966
8967           enablestring=
8968           defaultval=$wxUSE_ALL_FEATURES
8969           if test -z "$defaultval"; then
8970               if test x"$enablestring" = xdisable; then
8971                   defaultval=yes
8972               else
8973                   defaultval=no
8974               fi
8975           fi
8976
8977           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ribbon" >&5
8978 echo $ECHO_N "checking for --${enablestring:-enable}-ribbon... $ECHO_C" >&6; }
8979           # Check whether --enable-ribbon was given.
8980 if test "${enable_ribbon+set}" = set; then
8981   enableval=$enable_ribbon;
8982                           if test "$enableval" = yes; then
8983                             wx_cv_use_ribbon='wxUSE_RIBBON=yes'
8984                           else
8985                             wx_cv_use_ribbon='wxUSE_RIBBON=no'
8986                           fi
8987
8988 else
8989
8990                           wx_cv_use_ribbon='wxUSE_RIBBON=${'DEFAULT_wxUSE_RIBBON":-$defaultval}"
8991
8992 fi
8993
8994
8995           eval "$wx_cv_use_ribbon"
8996
8997           if test x"$enablestring" = xdisable; then
8998             if test $wxUSE_RIBBON = no; then
8999               result=yes
9000             else
9001               result=no
9002             fi
9003           else
9004             result=$wxUSE_RIBBON
9005           fi
9006
9007           { echo "$as_me:$LINENO: result: $result" >&5
9008 echo "${ECHO_T}$result" >&6; }
9009
9010
9011           enablestring=
9012           defaultval=$wxUSE_ALL_FEATURES
9013           if test -z "$defaultval"; then
9014               if test x"$enablestring" = xdisable; then
9015                   defaultval=yes
9016               else
9017                   defaultval=no
9018               fi
9019           fi
9020
9021           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stc" >&5
9022 echo $ECHO_N "checking for --${enablestring:-enable}-stc... $ECHO_C" >&6; }
9023           # Check whether --enable-stc was given.
9024 if test "${enable_stc+set}" = set; then
9025   enableval=$enable_stc;
9026                           if test "$enableval" = yes; then
9027                             wx_cv_use_stc='wxUSE_STC=yes'
9028                           else
9029                             wx_cv_use_stc='wxUSE_STC=no'
9030                           fi
9031
9032 else
9033
9034                           wx_cv_use_stc='wxUSE_STC=${'DEFAULT_wxUSE_STC":-$defaultval}"
9035
9036 fi
9037
9038
9039           eval "$wx_cv_use_stc"
9040
9041           if test x"$enablestring" = xdisable; then
9042             if test $wxUSE_STC = no; then
9043               result=yes
9044             else
9045               result=no
9046             fi
9047           else
9048             result=$wxUSE_STC
9049           fi
9050
9051           { echo "$as_me:$LINENO: result: $result" >&5
9052 echo "${ECHO_T}$result" >&6; }
9053
9054
9055           enablestring=
9056           defaultval=$wxUSE_ALL_FEATURES
9057           if test -z "$defaultval"; then
9058               if test x"$enablestring" = xdisable; then
9059                   defaultval=yes
9060               else
9061                   defaultval=no
9062               fi
9063           fi
9064
9065           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-constraints" >&5
9066 echo $ECHO_N "checking for --${enablestring:-enable}-constraints... $ECHO_C" >&6; }
9067           # Check whether --enable-constraints was given.
9068 if test "${enable_constraints+set}" = set; then
9069   enableval=$enable_constraints;
9070                           if test "$enableval" = yes; then
9071                             wx_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
9072                           else
9073                             wx_cv_use_constraints='wxUSE_CONSTRAINTS=no'
9074                           fi
9075
9076 else
9077
9078                           wx_cv_use_constraints='wxUSE_CONSTRAINTS=${'DEFAULT_wxUSE_CONSTRAINTS":-$defaultval}"
9079
9080 fi
9081
9082
9083           eval "$wx_cv_use_constraints"
9084
9085           if test x"$enablestring" = xdisable; then
9086             if test $wxUSE_CONSTRAINTS = no; then
9087               result=yes
9088             else
9089               result=no
9090             fi
9091           else
9092             result=$wxUSE_CONSTRAINTS
9093           fi
9094
9095           { echo "$as_me:$LINENO: result: $result" >&5
9096 echo "${ECHO_T}$result" >&6; }
9097
9098
9099           enablestring=
9100           defaultval=$wxUSE_ALL_FEATURES
9101           if test -z "$defaultval"; then
9102               if test x"$enablestring" = xdisable; then
9103                   defaultval=yes
9104               else
9105                   defaultval=no
9106               fi
9107           fi
9108
9109           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-loggui" >&5
9110 echo $ECHO_N "checking for --${enablestring:-enable}-loggui... $ECHO_C" >&6; }
9111           # Check whether --enable-loggui was given.
9112 if test "${enable_loggui+set}" = set; then
9113   enableval=$enable_loggui;
9114                           if test "$enableval" = yes; then
9115                             wx_cv_use_loggui='wxUSE_LOGGUI=yes'
9116                           else
9117                             wx_cv_use_loggui='wxUSE_LOGGUI=no'
9118                           fi
9119
9120 else
9121
9122                           wx_cv_use_loggui='wxUSE_LOGGUI=${'DEFAULT_wxUSE_LOGGUI":-$defaultval}"
9123
9124 fi
9125
9126
9127           eval "$wx_cv_use_loggui"
9128
9129           if test x"$enablestring" = xdisable; then
9130             if test $wxUSE_LOGGUI = no; then
9131               result=yes
9132             else
9133               result=no
9134             fi
9135           else
9136             result=$wxUSE_LOGGUI
9137           fi
9138
9139           { echo "$as_me:$LINENO: result: $result" >&5
9140 echo "${ECHO_T}$result" >&6; }
9141
9142
9143           enablestring=
9144           defaultval=$wxUSE_ALL_FEATURES
9145           if test -z "$defaultval"; then
9146               if test x"$enablestring" = xdisable; then
9147                   defaultval=yes
9148               else
9149                   defaultval=no
9150               fi
9151           fi
9152
9153           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logwin" >&5
9154 echo $ECHO_N "checking for --${enablestring:-enable}-logwin... $ECHO_C" >&6; }
9155           # Check whether --enable-logwin was given.
9156 if test "${enable_logwin+set}" = set; then
9157   enableval=$enable_logwin;
9158                           if test "$enableval" = yes; then
9159                             wx_cv_use_logwin='wxUSE_LOGWINDOW=yes'
9160                           else
9161                             wx_cv_use_logwin='wxUSE_LOGWINDOW=no'
9162                           fi
9163
9164 else
9165
9166                           wx_cv_use_logwin='wxUSE_LOGWINDOW=${'DEFAULT_wxUSE_LOGWINDOW":-$defaultval}"
9167
9168 fi
9169
9170
9171           eval "$wx_cv_use_logwin"
9172
9173           if test x"$enablestring" = xdisable; then
9174             if test $wxUSE_LOGWINDOW = no; then
9175               result=yes
9176             else
9177               result=no
9178             fi
9179           else
9180             result=$wxUSE_LOGWINDOW
9181           fi
9182
9183           { echo "$as_me:$LINENO: result: $result" >&5
9184 echo "${ECHO_T}$result" >&6; }
9185
9186
9187           enablestring=
9188           defaultval=$wxUSE_ALL_FEATURES
9189           if test -z "$defaultval"; then
9190               if test x"$enablestring" = xdisable; then
9191                   defaultval=yes
9192               else
9193                   defaultval=no
9194               fi
9195           fi
9196
9197           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logdialog" >&5
9198 echo $ECHO_N "checking for --${enablestring:-enable}-logdialog... $ECHO_C" >&6; }
9199           # Check whether --enable-logdialog was given.
9200 if test "${enable_logdialog+set}" = set; then
9201   enableval=$enable_logdialog;
9202                           if test "$enableval" = yes; then
9203                             wx_cv_use_logdialog='wxUSE_LOGDIALOG=yes'
9204                           else
9205                             wx_cv_use_logdialog='wxUSE_LOGDIALOG=no'
9206                           fi
9207
9208 else
9209
9210                           wx_cv_use_logdialog='wxUSE_LOGDIALOG=${'DEFAULT_wxUSE_LOGDIALOG":-$defaultval}"
9211
9212 fi
9213
9214
9215           eval "$wx_cv_use_logdialog"
9216
9217           if test x"$enablestring" = xdisable; then
9218             if test $wxUSE_LOGDIALOG = no; then
9219               result=yes
9220             else
9221               result=no
9222             fi
9223           else
9224             result=$wxUSE_LOGDIALOG
9225           fi
9226
9227           { echo "$as_me:$LINENO: result: $result" >&5
9228 echo "${ECHO_T}$result" >&6; }
9229
9230
9231           enablestring=
9232           defaultval=$wxUSE_ALL_FEATURES
9233           if test -z "$defaultval"; then
9234               if test x"$enablestring" = xdisable; then
9235                   defaultval=yes
9236               else
9237                   defaultval=no
9238               fi
9239           fi
9240
9241           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdi" >&5
9242 echo $ECHO_N "checking for --${enablestring:-enable}-mdi... $ECHO_C" >&6; }
9243           # Check whether --enable-mdi was given.
9244 if test "${enable_mdi+set}" = set; then
9245   enableval=$enable_mdi;
9246                           if test "$enableval" = yes; then
9247                             wx_cv_use_mdi='wxUSE_MDI=yes'
9248                           else
9249                             wx_cv_use_mdi='wxUSE_MDI=no'
9250                           fi
9251
9252 else
9253
9254                           wx_cv_use_mdi='wxUSE_MDI=${'DEFAULT_wxUSE_MDI":-$defaultval}"
9255
9256 fi
9257
9258
9259           eval "$wx_cv_use_mdi"
9260
9261           if test x"$enablestring" = xdisable; then
9262             if test $wxUSE_MDI = no; then
9263               result=yes
9264             else
9265               result=no
9266             fi
9267           else
9268             result=$wxUSE_MDI
9269           fi
9270
9271           { echo "$as_me:$LINENO: result: $result" >&5
9272 echo "${ECHO_T}$result" >&6; }
9273
9274
9275           enablestring=
9276           defaultval=$wxUSE_ALL_FEATURES
9277           if test -z "$defaultval"; then
9278               if test x"$enablestring" = xdisable; then
9279                   defaultval=yes
9280               else
9281                   defaultval=no
9282               fi
9283           fi
9284
9285           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdidoc" >&5
9286 echo $ECHO_N "checking for --${enablestring:-enable}-mdidoc... $ECHO_C" >&6; }
9287           # Check whether --enable-mdidoc was given.
9288 if test "${enable_mdidoc+set}" = set; then
9289   enableval=$enable_mdidoc;
9290                           if test "$enableval" = yes; then
9291                             wx_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=yes'
9292                           else
9293                             wx_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=no'
9294                           fi
9295
9296 else
9297
9298                           wx_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=${'DEFAULT_wxUSE_MDI_ARCHITECTURE":-$defaultval}"
9299
9300 fi
9301
9302
9303           eval "$wx_cv_use_mdidoc"
9304
9305           if test x"$enablestring" = xdisable; then
9306             if test $wxUSE_MDI_ARCHITECTURE = no; then
9307               result=yes
9308             else
9309               result=no
9310             fi
9311           else
9312             result=$wxUSE_MDI_ARCHITECTURE
9313           fi
9314
9315           { echo "$as_me:$LINENO: result: $result" >&5
9316 echo "${ECHO_T}$result" >&6; }
9317
9318
9319           enablestring=
9320           defaultval=$wxUSE_ALL_FEATURES
9321           if test -z "$defaultval"; then
9322               if test x"$enablestring" = xdisable; then
9323                   defaultval=yes
9324               else
9325                   defaultval=no
9326               fi
9327           fi
9328
9329           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mediactrl" >&5
9330 echo $ECHO_N "checking for --${enablestring:-enable}-mediactrl... $ECHO_C" >&6; }
9331           # Check whether --enable-mediactrl was given.
9332 if test "${enable_mediactrl+set}" = set; then
9333   enableval=$enable_mediactrl;
9334                           if test "$enableval" = yes; then
9335                             wx_cv_use_mediactrl='wxUSE_MEDIACTRL=yes'
9336                           else
9337                             wx_cv_use_mediactrl='wxUSE_MEDIACTRL=no'
9338                           fi
9339
9340 else
9341
9342                           wx_cv_use_mediactrl='wxUSE_MEDIACTRL=${'DEFAULT_wxUSE_MEDIACTRL":-$defaultval}"
9343
9344 fi
9345
9346
9347           eval "$wx_cv_use_mediactrl"
9348
9349           if test x"$enablestring" = xdisable; then
9350             if test $wxUSE_MEDIACTRL = no; then
9351               result=yes
9352             else
9353               result=no
9354             fi
9355           else
9356             result=$wxUSE_MEDIACTRL
9357           fi
9358
9359           { echo "$as_me:$LINENO: result: $result" >&5
9360 echo "${ECHO_T}$result" >&6; }
9361
9362
9363           enablestring=
9364           defaultval=$wxUSE_ALL_FEATURES
9365           if test -z "$defaultval"; then
9366               if test x"$enablestring" = xdisable; then
9367                   defaultval=yes
9368               else
9369                   defaultval=no
9370               fi
9371           fi
9372
9373           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gstreamer8" >&5
9374 echo $ECHO_N "checking for --${enablestring:-enable}-gstreamer8... $ECHO_C" >&6; }
9375           # Check whether --enable-gstreamer8 was given.
9376 if test "${enable_gstreamer8+set}" = set; then
9377   enableval=$enable_gstreamer8;
9378                           if test "$enableval" = yes; then
9379                             wx_cv_use_gstreamer8='wxUSE_GSTREAMER8=yes'
9380                           else
9381                             wx_cv_use_gstreamer8='wxUSE_GSTREAMER8=no'
9382                           fi
9383
9384 else
9385
9386                           wx_cv_use_gstreamer8='wxUSE_GSTREAMER8=${'DEFAULT_wxUSE_GSTREAMER8":-$defaultval}"
9387
9388 fi
9389
9390
9391           eval "$wx_cv_use_gstreamer8"
9392
9393           if test x"$enablestring" = xdisable; then
9394             if test $wxUSE_GSTREAMER8 = no; then
9395               result=yes
9396             else
9397               result=no
9398             fi
9399           else
9400             result=$wxUSE_GSTREAMER8
9401           fi
9402
9403           { echo "$as_me:$LINENO: result: $result" >&5
9404 echo "${ECHO_T}$result" >&6; }
9405
9406
9407           enablestring=
9408           defaultval=$wxUSE_ALL_FEATURES
9409           if test -z "$defaultval"; then
9410               if test x"$enablestring" = xdisable; then
9411                   defaultval=yes
9412               else
9413                   defaultval=no
9414               fi
9415           fi
9416
9417           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-webkit" >&5
9418 echo $ECHO_N "checking for --${enablestring:-enable}-webkit... $ECHO_C" >&6; }
9419           # Check whether --enable-webkit was given.
9420 if test "${enable_webkit+set}" = set; then
9421   enableval=$enable_webkit;
9422                           if test "$enableval" = yes; then
9423                             wx_cv_use_webkit='wxUSE_WEBKIT=yes'
9424                           else
9425                             wx_cv_use_webkit='wxUSE_WEBKIT=no'
9426                           fi
9427
9428 else
9429
9430                           wx_cv_use_webkit='wxUSE_WEBKIT=${'DEFAULT_wxUSE_WEBKIT":-$defaultval}"
9431
9432 fi
9433
9434
9435           eval "$wx_cv_use_webkit"
9436
9437           if test x"$enablestring" = xdisable; then
9438             if test $wxUSE_WEBKIT = no; then
9439               result=yes
9440             else
9441               result=no
9442             fi
9443           else
9444             result=$wxUSE_WEBKIT
9445           fi
9446
9447           { echo "$as_me:$LINENO: result: $result" >&5
9448 echo "${ECHO_T}$result" >&6; }
9449
9450
9451           enablestring=
9452           defaultval=$wxUSE_ALL_FEATURES
9453           if test -z "$defaultval"; then
9454               if test x"$enablestring" = xdisable; then
9455                   defaultval=yes
9456               else
9457                   defaultval=no
9458               fi
9459           fi
9460
9461           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-richtext" >&5
9462 echo $ECHO_N "checking for --${enablestring:-enable}-richtext... $ECHO_C" >&6; }
9463           # Check whether --enable-richtext was given.
9464 if test "${enable_richtext+set}" = set; then
9465   enableval=$enable_richtext;
9466                           if test "$enableval" = yes; then
9467                             wx_cv_use_richtext='wxUSE_RICHTEXT=yes'
9468                           else
9469                             wx_cv_use_richtext='wxUSE_RICHTEXT=no'
9470                           fi
9471
9472 else
9473
9474                           wx_cv_use_richtext='wxUSE_RICHTEXT=${'DEFAULT_wxUSE_RICHTEXT":-$defaultval}"
9475
9476 fi
9477
9478
9479           eval "$wx_cv_use_richtext"
9480
9481           if test x"$enablestring" = xdisable; then
9482             if test $wxUSE_RICHTEXT = no; then
9483               result=yes
9484             else
9485               result=no
9486             fi
9487           else
9488             result=$wxUSE_RICHTEXT
9489           fi
9490
9491           { echo "$as_me:$LINENO: result: $result" >&5
9492 echo "${ECHO_T}$result" >&6; }
9493
9494
9495           enablestring=
9496           defaultval=$wxUSE_ALL_FEATURES
9497           if test -z "$defaultval"; then
9498               if test x"$enablestring" = xdisable; then
9499                   defaultval=yes
9500               else
9501                   defaultval=no
9502               fi
9503           fi
9504
9505           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-postscript" >&5
9506 echo $ECHO_N "checking for --${enablestring:-enable}-postscript... $ECHO_C" >&6; }
9507           # Check whether --enable-postscript was given.
9508 if test "${enable_postscript+set}" = set; then
9509   enableval=$enable_postscript;
9510                           if test "$enableval" = yes; then
9511                             wx_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
9512                           else
9513                             wx_cv_use_postscript='wxUSE_POSTSCRIPT=no'
9514                           fi
9515
9516 else
9517
9518                           wx_cv_use_postscript='wxUSE_POSTSCRIPT=${'DEFAULT_wxUSE_POSTSCRIPT":-$defaultval}"
9519
9520 fi
9521
9522
9523           eval "$wx_cv_use_postscript"
9524
9525           if test x"$enablestring" = xdisable; then
9526             if test $wxUSE_POSTSCRIPT = no; then
9527               result=yes
9528             else
9529               result=no
9530             fi
9531           else
9532             result=$wxUSE_POSTSCRIPT
9533           fi
9534
9535           { echo "$as_me:$LINENO: result: $result" >&5
9536 echo "${ECHO_T}$result" >&6; }
9537
9538
9539           enablestring=
9540           defaultval=$wxUSE_ALL_FEATURES
9541           if test -z "$defaultval"; then
9542               if test x"$enablestring" = xdisable; then
9543                   defaultval=yes
9544               else
9545                   defaultval=no
9546               fi
9547           fi
9548
9549           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printarch" >&5
9550 echo $ECHO_N "checking for --${enablestring:-enable}-printarch... $ECHO_C" >&6; }
9551           # Check whether --enable-printarch was given.
9552 if test "${enable_printarch+set}" = set; then
9553   enableval=$enable_printarch;
9554                           if test "$enableval" = yes; then
9555                             wx_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
9556                           else
9557                             wx_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
9558                           fi
9559
9560 else
9561
9562                           wx_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=${'DEFAULT_wxUSE_PRINTING_ARCHITECTURE":-$defaultval}"
9563
9564 fi
9565
9566
9567           eval "$wx_cv_use_printarch"
9568
9569           if test x"$enablestring" = xdisable; then
9570             if test $wxUSE_PRINTING_ARCHITECTURE = no; then
9571               result=yes
9572             else
9573               result=no
9574             fi
9575           else
9576             result=$wxUSE_PRINTING_ARCHITECTURE
9577           fi
9578
9579           { echo "$as_me:$LINENO: result: $result" >&5
9580 echo "${ECHO_T}$result" >&6; }
9581
9582
9583           enablestring=
9584           defaultval=$wxUSE_ALL_FEATURES
9585           if test -z "$defaultval"; then
9586               if test x"$enablestring" = xdisable; then
9587                   defaultval=yes
9588               else
9589                   defaultval=no
9590               fi
9591           fi
9592
9593           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-svg" >&5
9594 echo $ECHO_N "checking for --${enablestring:-enable}-svg... $ECHO_C" >&6; }
9595           # Check whether --enable-svg was given.
9596 if test "${enable_svg+set}" = set; then
9597   enableval=$enable_svg;
9598                           if test "$enableval" = yes; then
9599                             wx_cv_use_svg='wxUSE_SVG=yes'
9600                           else
9601                             wx_cv_use_svg='wxUSE_SVG=no'
9602                           fi
9603
9604 else
9605
9606                           wx_cv_use_svg='wxUSE_SVG=${'DEFAULT_wxUSE_SVG":-$defaultval}"
9607
9608 fi
9609
9610
9611           eval "$wx_cv_use_svg"
9612
9613           if test x"$enablestring" = xdisable; then
9614             if test $wxUSE_SVG = no; then
9615               result=yes
9616             else
9617               result=no
9618             fi
9619           else
9620             result=$wxUSE_SVG
9621           fi
9622
9623           { echo "$as_me:$LINENO: result: $result" >&5
9624 echo "${ECHO_T}$result" >&6; }
9625
9626
9627 if test "$wxUSE_MAC" != 1; then
9628
9629           enablestring=
9630           defaultval=$wxUSE_ALL_FEATURES
9631           if test -z "$defaultval"; then
9632               if test x"$enablestring" = xdisable; then
9633                   defaultval=yes
9634               else
9635                   defaultval=no
9636               fi
9637           fi
9638
9639           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-graphics_ctx" >&5
9640 echo $ECHO_N "checking for --${enablestring:-enable}-graphics_ctx... $ECHO_C" >&6; }
9641           # Check whether --enable-graphics_ctx was given.
9642 if test "${enable_graphics_ctx+set}" = set; then
9643   enableval=$enable_graphics_ctx;
9644                           if test "$enableval" = yes; then
9645                             wx_cv_use_graphics_ctx='wxUSE_GRAPHICS_CONTEXT=yes'
9646                           else
9647                             wx_cv_use_graphics_ctx='wxUSE_GRAPHICS_CONTEXT=no'
9648                           fi
9649
9650 else
9651
9652                           wx_cv_use_graphics_ctx='wxUSE_GRAPHICS_CONTEXT=${'DEFAULT_wxUSE_GRAPHICS_CONTEXT":-$defaultval}"
9653
9654 fi
9655
9656
9657           eval "$wx_cv_use_graphics_ctx"
9658
9659           if test x"$enablestring" = xdisable; then
9660             if test $wxUSE_GRAPHICS_CONTEXT = no; then
9661               result=yes
9662             else
9663               result=no
9664             fi
9665           else
9666             result=$wxUSE_GRAPHICS_CONTEXT
9667           fi
9668
9669           { echo "$as_me:$LINENO: result: $result" >&5
9670 echo "${ECHO_T}$result" >&6; }
9671
9672 fi
9673
9674
9675
9676           enablestring=
9677           defaultval=$wxUSE_ALL_FEATURES
9678           if test -z "$defaultval"; then
9679               if test x"$enablestring" = xdisable; then
9680                   defaultval=yes
9681               else
9682                   defaultval=no
9683               fi
9684           fi
9685
9686           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-clipboard" >&5
9687 echo $ECHO_N "checking for --${enablestring:-enable}-clipboard... $ECHO_C" >&6; }
9688           # Check whether --enable-clipboard was given.
9689 if test "${enable_clipboard+set}" = set; then
9690   enableval=$enable_clipboard;
9691                           if test "$enableval" = yes; then
9692                             wx_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
9693                           else
9694                             wx_cv_use_clipboard='wxUSE_CLIPBOARD=no'
9695                           fi
9696
9697 else
9698
9699                           wx_cv_use_clipboard='wxUSE_CLIPBOARD=${'DEFAULT_wxUSE_CLIPBOARD":-$defaultval}"
9700
9701 fi
9702
9703
9704           eval "$wx_cv_use_clipboard"
9705
9706           if test x"$enablestring" = xdisable; then
9707             if test $wxUSE_CLIPBOARD = no; then
9708               result=yes
9709             else
9710               result=no
9711             fi
9712           else
9713             result=$wxUSE_CLIPBOARD
9714           fi
9715
9716           { echo "$as_me:$LINENO: result: $result" >&5
9717 echo "${ECHO_T}$result" >&6; }
9718
9719
9720           enablestring=
9721           defaultval=$wxUSE_ALL_FEATURES
9722           if test -z "$defaultval"; then
9723               if test x"$enablestring" = xdisable; then
9724                   defaultval=yes
9725               else
9726                   defaultval=no
9727               fi
9728           fi
9729
9730           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dnd" >&5
9731 echo $ECHO_N "checking for --${enablestring:-enable}-dnd... $ECHO_C" >&6; }
9732           # Check whether --enable-dnd was given.
9733 if test "${enable_dnd+set}" = set; then
9734   enableval=$enable_dnd;
9735                           if test "$enableval" = yes; then
9736                             wx_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
9737                           else
9738                             wx_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
9739                           fi
9740
9741 else
9742
9743                           wx_cv_use_dnd='wxUSE_DRAG_AND_DROP=${'DEFAULT_wxUSE_DRAG_AND_DROP":-$defaultval}"
9744
9745 fi
9746
9747
9748           eval "$wx_cv_use_dnd"
9749
9750           if test x"$enablestring" = xdisable; then
9751             if test $wxUSE_DRAG_AND_DROP = no; then
9752               result=yes
9753             else
9754               result=no
9755             fi
9756           else
9757             result=$wxUSE_DRAG_AND_DROP
9758           fi
9759
9760           { echo "$as_me:$LINENO: result: $result" >&5
9761 echo "${ECHO_T}$result" >&6; }
9762
9763
9764           enablestring=
9765           defaultval=$wxUSE_ALL_FEATURES
9766           if test -z "$defaultval"; then
9767               if test x"$enablestring" = xdisable; then
9768                   defaultval=yes
9769               else
9770                   defaultval=no
9771               fi
9772           fi
9773
9774           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
9775 echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6; }
9776           # Check whether --enable-metafile was given.
9777 if test "${enable_metafile+set}" = set; then
9778   enableval=$enable_metafile;
9779                           if test "$enableval" = yes; then
9780                             wx_cv_use_metafile='wxUSE_METAFILE=yes'
9781                           else
9782                             wx_cv_use_metafile='wxUSE_METAFILE=no'
9783                           fi
9784
9785 else
9786
9787                           wx_cv_use_metafile='wxUSE_METAFILE=${'DEFAULT_wxUSE_METAFILE":-$defaultval}"
9788
9789 fi
9790
9791
9792           eval "$wx_cv_use_metafile"
9793
9794           if test x"$enablestring" = xdisable; then
9795             if test $wxUSE_METAFILE = no; then
9796               result=yes
9797             else
9798               result=no
9799             fi
9800           else
9801             result=$wxUSE_METAFILE
9802           fi
9803
9804           { echo "$as_me:$LINENO: result: $result" >&5
9805 echo "${ECHO_T}$result" >&6; }
9806
9807
9808
9809 DEFAULT_wxUSE_CONTROLS=none
9810
9811           enablestring=disable
9812           defaultval=
9813           if test -z "$defaultval"; then
9814               if test x"$enablestring" = xdisable; then
9815                   defaultval=yes
9816               else
9817                   defaultval=no
9818               fi
9819           fi
9820
9821           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-controls" >&5
9822 echo $ECHO_N "checking for --${enablestring:-enable}-controls... $ECHO_C" >&6; }
9823           # Check whether --enable-controls was given.
9824 if test "${enable_controls+set}" = set; then
9825   enableval=$enable_controls;
9826                           if test "$enableval" = yes; then
9827                             wx_cv_use_controls='wxUSE_CONTROLS=yes'
9828                           else
9829                             wx_cv_use_controls='wxUSE_CONTROLS=no'
9830                           fi
9831
9832 else
9833
9834                           wx_cv_use_controls='wxUSE_CONTROLS=${'DEFAULT_wxUSE_CONTROLS":-$defaultval}"
9835
9836 fi
9837
9838
9839           eval "$wx_cv_use_controls"
9840
9841           if test x"$enablestring" = xdisable; then
9842             if test $wxUSE_CONTROLS = no; then
9843               result=yes
9844             else
9845               result=no
9846             fi
9847           else
9848             result=$wxUSE_CONTROLS
9849           fi
9850
9851           { echo "$as_me:$LINENO: result: $result" >&5
9852 echo "${ECHO_T}$result" >&6; }
9853
9854
9855 if test "$wxUSE_CONTROLS" = "no"; then
9856     DEFAULT_wxUSE_ACCEL=no
9857     DEFAULT_wxUSE_ANIMATIONCTRL=no
9858     DEFAULT_wxUSE_BANNERWINDOW=no
9859     DEFAULT_wxUSE_BMPBUTTON=no
9860     DEFAULT_wxUSE_BUTTON=no
9861     DEFAULT_wxUSE_CALCTRL=no
9862     DEFAULT_wxUSE_CARET=no
9863     DEFAULT_wxUSE_CHECKBOX=no
9864     DEFAULT_wxUSE_CHECKLISTBOX=no
9865     DEFAULT_wxUSE_CHOICE=no
9866     DEFAULT_wxUSE_CHOICEBOOK=no
9867     DEFAULT_wxUSE_COLLPANE=no
9868     DEFAULT_wxUSE_COLOURPICKERCTRL=no
9869     DEFAULT_wxUSE_COMBOBOX=no
9870     DEFAULT_wxUSE_COMBOBOX=no
9871     DEFAULT_wxUSE_COMMANDLINKBUTTON=no
9872     DEFAULT_wxUSE_DATAVIEWCTRL=no
9873     DEFAULT_wxUSE_DATEPICKCTRL=no
9874     DEFAULT_wxUSE_DETECT_SM=no
9875     DEFAULT_wxUSE_DIRPICKERCTRL=no
9876     DEFAULT_wxUSE_DISPLAY=no
9877     DEFAULT_wxUSE_FILECTRL=no
9878     DEFAULT_wxUSE_FILEPICKERCTRL=no
9879     DEFAULT_wxUSE_FONTPICKERCTRL=no
9880     DEFAULT_wxUSE_GAUGE=no
9881     DEFAULT_wxUSE_GRID=no
9882     DEFAULT_wxUSE_HEADERCTRL=no
9883     DEFAULT_wxUSE_HYPERLINKCTRL=no
9884     DEFAULT_wxUSE_IMAGLIST=no
9885     DEFAULT_wxUSE_LISTBOOK=no
9886     DEFAULT_wxUSE_LISTBOX=no
9887     DEFAULT_wxUSE_LISTCTRL=no
9888     DEFAULT_wxUSE_MARKUP=no
9889     DEFAULT_wxUSE_NOTEBOOK=no
9890     DEFAULT_wxUSE_POPUPWIN=no
9891     DEFAULT_wxUSE_RADIOBOX=no
9892     DEFAULT_wxUSE_RADIOBTN=no
9893     DEFAULT_wxUSE_RICHMSGDLG=no
9894     DEFAULT_wxUSE_REARRANGECTRL=no
9895     DEFAULT_wxUSE_SASH=no
9896     DEFAULT_wxUSE_SCROLLBAR=no
9897     DEFAULT_wxUSE_SEARCHCTRL=no
9898     DEFAULT_wxUSE_SLIDER=no
9899     DEFAULT_wxUSE_SPINBTN=no
9900     DEFAULT_wxUSE_SPINCTRL=no
9901     DEFAULT_wxUSE_SPLITTER=no
9902     DEFAULT_wxUSE_STATBMP=no
9903     DEFAULT_wxUSE_STATBOX=no
9904     DEFAULT_wxUSE_STATLINE=no
9905     DEFAULT_wxUSE_STATUSBAR=no
9906     DEFAULT_wxUSE_TIPWINDOW=no
9907     DEFAULT_wxUSE_TOGGLEBTN=no
9908     DEFAULT_wxUSE_TOOLBAR=no
9909     DEFAULT_wxUSE_TOOLBAR_NATIVE=no
9910     DEFAULT_wxUSE_TOOLBOOK=no
9911     DEFAULT_wxUSE_TOOLTIPS=no
9912     DEFAULT_wxUSE_TREEBOOK=no
9913     DEFAULT_wxUSE_TREECTRL=no
9914     DEFAULT_wxUSE_TREELISTCTRL=no
9915 fi
9916
9917
9918           enablestring=
9919           defaultval=$wxUSE_ALL_FEATURES
9920           if test -z "$defaultval"; then
9921               if test x"$enablestring" = xdisable; then
9922                   defaultval=yes
9923               else
9924                   defaultval=no
9925               fi
9926           fi
9927
9928           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-markup" >&5
9929 echo $ECHO_N "checking for --${enablestring:-enable}-markup... $ECHO_C" >&6; }
9930           # Check whether --enable-markup was given.
9931 if test "${enable_markup+set}" = set; then
9932   enableval=$enable_markup;
9933                           if test "$enableval" = yes; then
9934                             wx_cv_use_markup='wxUSE_MARKUP=yes'
9935                           else
9936                             wx_cv_use_markup='wxUSE_MARKUP=no'
9937                           fi
9938
9939 else
9940
9941                           wx_cv_use_markup='wxUSE_MARKUP=${'DEFAULT_wxUSE_MARKUP":-$defaultval}"
9942
9943 fi
9944
9945
9946           eval "$wx_cv_use_markup"
9947
9948           if test x"$enablestring" = xdisable; then
9949             if test $wxUSE_MARKUP = no; then
9950               result=yes
9951             else
9952               result=no
9953             fi
9954           else
9955             result=$wxUSE_MARKUP
9956           fi
9957
9958           { echo "$as_me:$LINENO: result: $result" >&5
9959 echo "${ECHO_T}$result" >&6; }
9960
9961
9962
9963           enablestring=
9964           defaultval=$wxUSE_ALL_FEATURES
9965           if test -z "$defaultval"; then
9966               if test x"$enablestring" = xdisable; then
9967                   defaultval=yes
9968               else
9969                   defaultval=no
9970               fi
9971           fi
9972
9973           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accel" >&5
9974 echo $ECHO_N "checking for --${enablestring:-enable}-accel... $ECHO_C" >&6; }
9975           # Check whether --enable-accel was given.
9976 if test "${enable_accel+set}" = set; then
9977   enableval=$enable_accel;
9978                           if test "$enableval" = yes; then
9979                             wx_cv_use_accel='wxUSE_ACCEL=yes'
9980                           else
9981                             wx_cv_use_accel='wxUSE_ACCEL=no'
9982                           fi
9983
9984 else
9985
9986                           wx_cv_use_accel='wxUSE_ACCEL=${'DEFAULT_wxUSE_ACCEL":-$defaultval}"
9987
9988 fi
9989
9990
9991           eval "$wx_cv_use_accel"
9992
9993           if test x"$enablestring" = xdisable; then
9994             if test $wxUSE_ACCEL = no; then
9995               result=yes
9996             else
9997               result=no
9998             fi
9999           else
10000             result=$wxUSE_ACCEL
10001           fi
10002
10003           { echo "$as_me:$LINENO: result: $result" >&5
10004 echo "${ECHO_T}$result" >&6; }
10005
10006
10007           enablestring=
10008           defaultval=$wxUSE_ALL_FEATURES
10009           if test -z "$defaultval"; then
10010               if test x"$enablestring" = xdisable; then
10011                   defaultval=yes
10012               else
10013                   defaultval=no
10014               fi
10015           fi
10016
10017           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-animatectrl" >&5
10018 echo $ECHO_N "checking for --${enablestring:-enable}-animatectrl... $ECHO_C" >&6; }
10019           # Check whether --enable-animatectrl was given.
10020 if test "${enable_animatectrl+set}" = set; then
10021   enableval=$enable_animatectrl;
10022                           if test "$enableval" = yes; then
10023                             wx_cv_use_animatectrl='wxUSE_ANIMATIONCTRL=yes'
10024                           else
10025                             wx_cv_use_animatectrl='wxUSE_ANIMATIONCTRL=no'
10026                           fi
10027
10028 else
10029
10030                           wx_cv_use_animatectrl='wxUSE_ANIMATIONCTRL=${'DEFAULT_wxUSE_ANIMATIONCTRL":-$defaultval}"
10031
10032 fi
10033
10034
10035           eval "$wx_cv_use_animatectrl"
10036
10037           if test x"$enablestring" = xdisable; then
10038             if test $wxUSE_ANIMATIONCTRL = no; then
10039               result=yes
10040             else
10041               result=no
10042             fi
10043           else
10044             result=$wxUSE_ANIMATIONCTRL
10045           fi
10046
10047           { echo "$as_me:$LINENO: result: $result" >&5
10048 echo "${ECHO_T}$result" >&6; }
10049
10050
10051           enablestring=
10052           defaultval=$wxUSE_ALL_FEATURES
10053           if test -z "$defaultval"; then
10054               if test x"$enablestring" = xdisable; then
10055                   defaultval=yes
10056               else
10057                   defaultval=no
10058               fi
10059           fi
10060
10061           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bannerwindow" >&5
10062 echo $ECHO_N "checking for --${enablestring:-enable}-bannerwindow... $ECHO_C" >&6; }
10063           # Check whether --enable-bannerwindow was given.
10064 if test "${enable_bannerwindow+set}" = set; then
10065   enableval=$enable_bannerwindow;
10066                           if test "$enableval" = yes; then
10067                             wx_cv_use_bannerwindow='wxUSE_BANNERWINDOW=yes'
10068                           else
10069                             wx_cv_use_bannerwindow='wxUSE_BANNERWINDOW=no'
10070                           fi
10071
10072 else
10073
10074                           wx_cv_use_bannerwindow='wxUSE_BANNERWINDOW=${'DEFAULT_wxUSE_BANNERWINDOW":-$defaultval}"
10075
10076 fi
10077
10078
10079           eval "$wx_cv_use_bannerwindow"
10080
10081           if test x"$enablestring" = xdisable; then
10082             if test $wxUSE_BANNERWINDOW = no; then
10083               result=yes
10084             else
10085               result=no
10086             fi
10087           else
10088             result=$wxUSE_BANNERWINDOW
10089           fi
10090
10091           { echo "$as_me:$LINENO: result: $result" >&5
10092 echo "${ECHO_T}$result" >&6; }
10093
10094
10095           enablestring=
10096           defaultval=$wxUSE_ALL_FEATURES
10097           if test -z "$defaultval"; then
10098               if test x"$enablestring" = xdisable; then
10099                   defaultval=yes
10100               else
10101                   defaultval=no
10102               fi
10103           fi
10104
10105           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-artstd" >&5
10106 echo $ECHO_N "checking for --${enablestring:-enable}-artstd... $ECHO_C" >&6; }
10107           # Check whether --enable-artstd was given.
10108 if test "${enable_artstd+set}" = set; then
10109   enableval=$enable_artstd;
10110                           if test "$enableval" = yes; then
10111                             wx_cv_use_artstd='wxUSE_ARTPROVIDER_STD=yes'
10112                           else
10113                             wx_cv_use_artstd='wxUSE_ARTPROVIDER_STD=no'
10114                           fi
10115
10116 else
10117
10118                           wx_cv_use_artstd='wxUSE_ARTPROVIDER_STD=${'DEFAULT_wxUSE_ARTPROVIDER_STD":-$defaultval}"
10119
10120 fi
10121
10122
10123           eval "$wx_cv_use_artstd"
10124
10125           if test x"$enablestring" = xdisable; then
10126             if test $wxUSE_ARTPROVIDER_STD = no; then
10127               result=yes
10128             else
10129               result=no
10130             fi
10131           else
10132             result=$wxUSE_ARTPROVIDER_STD
10133           fi
10134
10135           { echo "$as_me:$LINENO: result: $result" >&5
10136 echo "${ECHO_T}$result" >&6; }
10137
10138
10139           enablestring=
10140           defaultval=$wxUSE_ALL_FEATURES
10141           if test -z "$defaultval"; then
10142               if test x"$enablestring" = xdisable; then
10143                   defaultval=yes
10144               else
10145                   defaultval=no
10146               fi
10147           fi
10148
10149           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-arttango" >&5
10150 echo $ECHO_N "checking for --${enablestring:-enable}-arttango... $ECHO_C" >&6; }
10151           # Check whether --enable-arttango was given.
10152 if test "${enable_arttango+set}" = set; then
10153   enableval=$enable_arttango;
10154                           if test "$enableval" = yes; then
10155                             wx_cv_use_arttango='wxUSE_ARTPROVIDER_TANGO=yes'
10156                           else
10157                             wx_cv_use_arttango='wxUSE_ARTPROVIDER_TANGO=no'
10158                           fi
10159
10160 else
10161
10162                           wx_cv_use_arttango='wxUSE_ARTPROVIDER_TANGO=${'DEFAULT_wxUSE_ARTPROVIDER_TANGO":-$defaultval}"
10163
10164 fi
10165
10166
10167           eval "$wx_cv_use_arttango"
10168
10169           if test x"$enablestring" = xdisable; then
10170             if test $wxUSE_ARTPROVIDER_TANGO = no; then
10171               result=yes
10172             else
10173               result=no
10174             fi
10175           else
10176             result=$wxUSE_ARTPROVIDER_TANGO
10177           fi
10178
10179           { echo "$as_me:$LINENO: result: $result" >&5
10180 echo "${ECHO_T}$result" >&6; }
10181
10182
10183           enablestring=
10184           defaultval=$wxUSE_ALL_FEATURES
10185           if test -z "$defaultval"; then
10186               if test x"$enablestring" = xdisable; then
10187                   defaultval=yes
10188               else
10189                   defaultval=no
10190               fi
10191           fi
10192
10193           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bmpbutton" >&5
10194 echo $ECHO_N "checking for --${enablestring:-enable}-bmpbutton... $ECHO_C" >&6; }
10195           # Check whether --enable-bmpbutton was given.
10196 if test "${enable_bmpbutton+set}" = set; then
10197   enableval=$enable_bmpbutton;
10198                           if test "$enableval" = yes; then
10199                             wx_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
10200                           else
10201                             wx_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
10202                           fi
10203
10204 else
10205
10206                           wx_cv_use_bmpbutton='wxUSE_BMPBUTTON=${'DEFAULT_wxUSE_BMPBUTTON":-$defaultval}"
10207
10208 fi
10209
10210
10211           eval "$wx_cv_use_bmpbutton"
10212
10213           if test x"$enablestring" = xdisable; then
10214             if test $wxUSE_BMPBUTTON = no; then
10215               result=yes
10216             else
10217               result=no
10218             fi
10219           else
10220             result=$wxUSE_BMPBUTTON
10221           fi
10222
10223           { echo "$as_me:$LINENO: result: $result" >&5
10224 echo "${ECHO_T}$result" >&6; }
10225
10226
10227           enablestring=
10228           defaultval=$wxUSE_ALL_FEATURES
10229           if test -z "$defaultval"; then
10230               if test x"$enablestring" = xdisable; then
10231                   defaultval=yes
10232               else
10233                   defaultval=no
10234               fi
10235           fi
10236
10237           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bmpcombobox" >&5
10238 echo $ECHO_N "checking for --${enablestring:-enable}-bmpcombobox... $ECHO_C" >&6; }
10239           # Check whether --enable-bmpcombobox was given.
10240 if test "${enable_bmpcombobox+set}" = set; then
10241   enableval=$enable_bmpcombobox;
10242                           if test "$enableval" = yes; then
10243                             wx_cv_use_bmpcombobox='wxUSE_BITMAPCOMBOBOX=yes'
10244                           else
10245                             wx_cv_use_bmpcombobox='wxUSE_BITMAPCOMBOBOX=no'
10246                           fi
10247
10248 else
10249
10250                           wx_cv_use_bmpcombobox='wxUSE_BITMAPCOMBOBOX=${'DEFAULT_wxUSE_BITMAPCOMBOBOX":-$defaultval}"
10251
10252 fi
10253
10254
10255           eval "$wx_cv_use_bmpcombobox"
10256
10257           if test x"$enablestring" = xdisable; then
10258             if test $wxUSE_BITMAPCOMBOBOX = no; then
10259               result=yes
10260             else
10261               result=no
10262             fi
10263           else
10264             result=$wxUSE_BITMAPCOMBOBOX
10265           fi
10266
10267           { echo "$as_me:$LINENO: result: $result" >&5
10268 echo "${ECHO_T}$result" >&6; }
10269
10270
10271           enablestring=
10272           defaultval=$wxUSE_ALL_FEATURES
10273           if test -z "$defaultval"; then
10274               if test x"$enablestring" = xdisable; then
10275                   defaultval=yes
10276               else
10277                   defaultval=no
10278               fi
10279           fi
10280
10281           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-button" >&5
10282 echo $ECHO_N "checking for --${enablestring:-enable}-button... $ECHO_C" >&6; }
10283           # Check whether --enable-button was given.
10284 if test "${enable_button+set}" = set; then
10285   enableval=$enable_button;
10286                           if test "$enableval" = yes; then
10287                             wx_cv_use_button='wxUSE_BUTTON=yes'
10288                           else
10289                             wx_cv_use_button='wxUSE_BUTTON=no'
10290                           fi
10291
10292 else
10293
10294                           wx_cv_use_button='wxUSE_BUTTON=${'DEFAULT_wxUSE_BUTTON":-$defaultval}"
10295
10296 fi
10297
10298
10299           eval "$wx_cv_use_button"
10300
10301           if test x"$enablestring" = xdisable; then
10302             if test $wxUSE_BUTTON = no; then
10303               result=yes
10304             else
10305               result=no
10306             fi
10307           else
10308             result=$wxUSE_BUTTON
10309           fi
10310
10311           { echo "$as_me:$LINENO: result: $result" >&5
10312 echo "${ECHO_T}$result" >&6; }
10313
10314
10315           enablestring=
10316           defaultval=$wxUSE_ALL_FEATURES
10317           if test -z "$defaultval"; then
10318               if test x"$enablestring" = xdisable; then
10319                   defaultval=yes
10320               else
10321                   defaultval=no
10322               fi
10323           fi
10324
10325           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-calendar" >&5
10326 echo $ECHO_N "checking for --${enablestring:-enable}-calendar... $ECHO_C" >&6; }
10327           # Check whether --enable-calendar was given.
10328 if test "${enable_calendar+set}" = set; then
10329   enableval=$enable_calendar;
10330                           if test "$enableval" = yes; then
10331                             wx_cv_use_calendar='wxUSE_CALCTRL=yes'
10332                           else
10333                             wx_cv_use_calendar='wxUSE_CALCTRL=no'
10334                           fi
10335
10336 else
10337
10338                           wx_cv_use_calendar='wxUSE_CALCTRL=${'DEFAULT_wxUSE_CALCTRL":-$defaultval}"
10339
10340 fi
10341
10342
10343           eval "$wx_cv_use_calendar"
10344
10345           if test x"$enablestring" = xdisable; then
10346             if test $wxUSE_CALCTRL = no; then
10347               result=yes
10348             else
10349               result=no
10350             fi
10351           else
10352             result=$wxUSE_CALCTRL
10353           fi
10354
10355           { echo "$as_me:$LINENO: result: $result" >&5
10356 echo "${ECHO_T}$result" >&6; }
10357
10358
10359           enablestring=
10360           defaultval=$wxUSE_ALL_FEATURES
10361           if test -z "$defaultval"; then
10362               if test x"$enablestring" = xdisable; then
10363                   defaultval=yes
10364               else
10365                   defaultval=no
10366               fi
10367           fi
10368
10369           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-caret" >&5
10370 echo $ECHO_N "checking for --${enablestring:-enable}-caret... $ECHO_C" >&6; }
10371           # Check whether --enable-caret was given.
10372 if test "${enable_caret+set}" = set; then
10373   enableval=$enable_caret;
10374                           if test "$enableval" = yes; then
10375                             wx_cv_use_caret='wxUSE_CARET=yes'
10376                           else
10377                             wx_cv_use_caret='wxUSE_CARET=no'
10378                           fi
10379
10380 else
10381
10382                           wx_cv_use_caret='wxUSE_CARET=${'DEFAULT_wxUSE_CARET":-$defaultval}"
10383
10384 fi
10385
10386
10387           eval "$wx_cv_use_caret"
10388
10389           if test x"$enablestring" = xdisable; then
10390             if test $wxUSE_CARET = no; then
10391               result=yes
10392             else
10393               result=no
10394             fi
10395           else
10396             result=$wxUSE_CARET
10397           fi
10398
10399           { echo "$as_me:$LINENO: result: $result" >&5
10400 echo "${ECHO_T}$result" >&6; }
10401
10402
10403           enablestring=
10404           defaultval=$wxUSE_ALL_FEATURES
10405           if test -z "$defaultval"; then
10406               if test x"$enablestring" = xdisable; then
10407                   defaultval=yes
10408               else
10409                   defaultval=no
10410               fi
10411           fi
10412
10413           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checkbox" >&5
10414 echo $ECHO_N "checking for --${enablestring:-enable}-checkbox... $ECHO_C" >&6; }
10415           # Check whether --enable-checkbox was given.
10416 if test "${enable_checkbox+set}" = set; then
10417   enableval=$enable_checkbox;
10418                           if test "$enableval" = yes; then
10419                             wx_cv_use_checkbox='wxUSE_CHECKBOX=yes'
10420                           else
10421                             wx_cv_use_checkbox='wxUSE_CHECKBOX=no'
10422                           fi
10423
10424 else
10425
10426                           wx_cv_use_checkbox='wxUSE_CHECKBOX=${'DEFAULT_wxUSE_CHECKBOX":-$defaultval}"
10427
10428 fi
10429
10430
10431           eval "$wx_cv_use_checkbox"
10432
10433           if test x"$enablestring" = xdisable; then
10434             if test $wxUSE_CHECKBOX = no; then
10435               result=yes
10436             else
10437               result=no
10438             fi
10439           else
10440             result=$wxUSE_CHECKBOX
10441           fi
10442
10443           { echo "$as_me:$LINENO: result: $result" >&5
10444 echo "${ECHO_T}$result" >&6; }
10445
10446
10447           enablestring=
10448           defaultval=$wxUSE_ALL_FEATURES
10449           if test -z "$defaultval"; then
10450               if test x"$enablestring" = xdisable; then
10451                   defaultval=yes
10452               else
10453                   defaultval=no
10454               fi
10455           fi
10456
10457           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checklst" >&5
10458 echo $ECHO_N "checking for --${enablestring:-enable}-checklst... $ECHO_C" >&6; }
10459           # Check whether --enable-checklst was given.
10460 if test "${enable_checklst+set}" = set; then
10461   enableval=$enable_checklst;
10462                           if test "$enableval" = yes; then
10463                             wx_cv_use_checklst='wxUSE_CHECKLST=yes'
10464                           else
10465                             wx_cv_use_checklst='wxUSE_CHECKLST=no'
10466                           fi
10467
10468 else
10469
10470                           wx_cv_use_checklst='wxUSE_CHECKLST=${'DEFAULT_wxUSE_CHECKLST":-$defaultval}"
10471
10472 fi
10473
10474
10475           eval "$wx_cv_use_checklst"
10476
10477           if test x"$enablestring" = xdisable; then
10478             if test $wxUSE_CHECKLST = no; then
10479               result=yes
10480             else
10481               result=no
10482             fi
10483           else
10484             result=$wxUSE_CHECKLST
10485           fi
10486
10487           { echo "$as_me:$LINENO: result: $result" >&5
10488 echo "${ECHO_T}$result" >&6; }
10489
10490
10491           enablestring=
10492           defaultval=$wxUSE_ALL_FEATURES
10493           if test -z "$defaultval"; then
10494               if test x"$enablestring" = xdisable; then
10495                   defaultval=yes
10496               else
10497                   defaultval=no
10498               fi
10499           fi
10500
10501           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choice" >&5
10502 echo $ECHO_N "checking for --${enablestring:-enable}-choice... $ECHO_C" >&6; }
10503           # Check whether --enable-choice was given.
10504 if test "${enable_choice+set}" = set; then
10505   enableval=$enable_choice;
10506                           if test "$enableval" = yes; then
10507                             wx_cv_use_choice='wxUSE_CHOICE=yes'
10508                           else
10509                             wx_cv_use_choice='wxUSE_CHOICE=no'
10510                           fi
10511
10512 else
10513
10514                           wx_cv_use_choice='wxUSE_CHOICE=${'DEFAULT_wxUSE_CHOICE":-$defaultval}"
10515
10516 fi
10517
10518
10519           eval "$wx_cv_use_choice"
10520
10521           if test x"$enablestring" = xdisable; then
10522             if test $wxUSE_CHOICE = no; then
10523               result=yes
10524             else
10525               result=no
10526             fi
10527           else
10528             result=$wxUSE_CHOICE
10529           fi
10530
10531           { echo "$as_me:$LINENO: result: $result" >&5
10532 echo "${ECHO_T}$result" >&6; }
10533
10534
10535           enablestring=
10536           defaultval=$wxUSE_ALL_FEATURES
10537           if test -z "$defaultval"; then
10538               if test x"$enablestring" = xdisable; then
10539                   defaultval=yes
10540               else
10541                   defaultval=no
10542               fi
10543           fi
10544
10545           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicebook" >&5
10546 echo $ECHO_N "checking for --${enablestring:-enable}-choicebook... $ECHO_C" >&6; }
10547           # Check whether --enable-choicebook was given.
10548 if test "${enable_choicebook+set}" = set; then
10549   enableval=$enable_choicebook;
10550                           if test "$enableval" = yes; then
10551                             wx_cv_use_choicebook='wxUSE_CHOICEBOOK=yes'
10552                           else
10553                             wx_cv_use_choicebook='wxUSE_CHOICEBOOK=no'
10554                           fi
10555
10556 else
10557
10558                           wx_cv_use_choicebook='wxUSE_CHOICEBOOK=${'DEFAULT_wxUSE_CHOICEBOOK":-$defaultval}"
10559
10560 fi
10561
10562
10563           eval "$wx_cv_use_choicebook"
10564
10565           if test x"$enablestring" = xdisable; then
10566             if test $wxUSE_CHOICEBOOK = no; then
10567               result=yes
10568             else
10569               result=no
10570             fi
10571           else
10572             result=$wxUSE_CHOICEBOOK
10573           fi
10574
10575           { echo "$as_me:$LINENO: result: $result" >&5
10576 echo "${ECHO_T}$result" >&6; }
10577
10578
10579           enablestring=
10580           defaultval=$wxUSE_ALL_FEATURES
10581           if test -z "$defaultval"; then
10582               if test x"$enablestring" = xdisable; then
10583                   defaultval=yes
10584               else
10585                   defaultval=no
10586               fi
10587           fi
10588
10589           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-collpane" >&5
10590 echo $ECHO_N "checking for --${enablestring:-enable}-collpane... $ECHO_C" >&6; }
10591           # Check whether --enable-collpane was given.
10592 if test "${enable_collpane+set}" = set; then
10593   enableval=$enable_collpane;
10594                           if test "$enableval" = yes; then
10595                             wx_cv_use_collpane='wxUSE_COLLPANE=yes'
10596                           else
10597                             wx_cv_use_collpane='wxUSE_COLLPANE=no'
10598                           fi
10599
10600 else
10601
10602                           wx_cv_use_collpane='wxUSE_COLLPANE=${'DEFAULT_wxUSE_COLLPANE":-$defaultval}"
10603
10604 fi
10605
10606
10607           eval "$wx_cv_use_collpane"
10608
10609           if test x"$enablestring" = xdisable; then
10610             if test $wxUSE_COLLPANE = no; then
10611               result=yes
10612             else
10613               result=no
10614             fi
10615           else
10616             result=$wxUSE_COLLPANE
10617           fi
10618
10619           { echo "$as_me:$LINENO: result: $result" >&5
10620 echo "${ECHO_T}$result" >&6; }
10621
10622
10623           enablestring=
10624           defaultval=$wxUSE_ALL_FEATURES
10625           if test -z "$defaultval"; then
10626               if test x"$enablestring" = xdisable; then
10627                   defaultval=yes
10628               else
10629                   defaultval=no
10630               fi
10631           fi
10632
10633           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-colourpicker" >&5
10634 echo $ECHO_N "checking for --${enablestring:-enable}-colourpicker... $ECHO_C" >&6; }
10635           # Check whether --enable-colourpicker was given.
10636 if test "${enable_colourpicker+set}" = set; then
10637   enableval=$enable_colourpicker;
10638                           if test "$enableval" = yes; then
10639                             wx_cv_use_colourpicker='wxUSE_COLOURPICKERCTRL=yes'
10640                           else
10641                             wx_cv_use_colourpicker='wxUSE_COLOURPICKERCTRL=no'
10642                           fi
10643
10644 else
10645
10646                           wx_cv_use_colourpicker='wxUSE_COLOURPICKERCTRL=${'DEFAULT_wxUSE_COLOURPICKERCTRL":-$defaultval}"
10647
10648 fi
10649
10650
10651           eval "$wx_cv_use_colourpicker"
10652
10653           if test x"$enablestring" = xdisable; then
10654             if test $wxUSE_COLOURPICKERCTRL = no; then
10655               result=yes
10656             else
10657               result=no
10658             fi
10659           else
10660             result=$wxUSE_COLOURPICKERCTRL
10661           fi
10662
10663           { echo "$as_me:$LINENO: result: $result" >&5
10664 echo "${ECHO_T}$result" >&6; }
10665
10666
10667           enablestring=
10668           defaultval=$wxUSE_ALL_FEATURES
10669           if test -z "$defaultval"; then
10670               if test x"$enablestring" = xdisable; then
10671                   defaultval=yes
10672               else
10673                   defaultval=no
10674               fi
10675           fi
10676
10677           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-combobox" >&5
10678 echo $ECHO_N "checking for --${enablestring:-enable}-combobox... $ECHO_C" >&6; }
10679           # Check whether --enable-combobox was given.
10680 if test "${enable_combobox+set}" = set; then
10681   enableval=$enable_combobox;
10682                           if test "$enableval" = yes; then
10683                             wx_cv_use_combobox='wxUSE_COMBOBOX=yes'
10684                           else
10685                             wx_cv_use_combobox='wxUSE_COMBOBOX=no'
10686                           fi
10687
10688 else
10689
10690                           wx_cv_use_combobox='wxUSE_COMBOBOX=${'DEFAULT_wxUSE_COMBOBOX":-$defaultval}"
10691
10692 fi
10693
10694
10695           eval "$wx_cv_use_combobox"
10696
10697           if test x"$enablestring" = xdisable; then
10698             if test $wxUSE_COMBOBOX = no; then
10699               result=yes
10700             else
10701               result=no
10702             fi
10703           else
10704             result=$wxUSE_COMBOBOX
10705           fi
10706
10707           { echo "$as_me:$LINENO: result: $result" >&5
10708 echo "${ECHO_T}$result" >&6; }
10709
10710
10711           enablestring=
10712           defaultval=$wxUSE_ALL_FEATURES
10713           if test -z "$defaultval"; then
10714               if test x"$enablestring" = xdisable; then
10715                   defaultval=yes
10716               else
10717                   defaultval=no
10718               fi
10719           fi
10720
10721           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-comboctrl" >&5
10722 echo $ECHO_N "checking for --${enablestring:-enable}-comboctrl... $ECHO_C" >&6; }
10723           # Check whether --enable-comboctrl was given.
10724 if test "${enable_comboctrl+set}" = set; then
10725   enableval=$enable_comboctrl;
10726                           if test "$enableval" = yes; then
10727                             wx_cv_use_comboctrl='wxUSE_COMBOCTRL=yes'
10728                           else
10729                             wx_cv_use_comboctrl='wxUSE_COMBOCTRL=no'
10730                           fi
10731
10732 else
10733
10734                           wx_cv_use_comboctrl='wxUSE_COMBOCTRL=${'DEFAULT_wxUSE_COMBOCTRL":-$defaultval}"
10735
10736 fi
10737
10738
10739           eval "$wx_cv_use_comboctrl"
10740
10741           if test x"$enablestring" = xdisable; then
10742             if test $wxUSE_COMBOCTRL = no; then
10743               result=yes
10744             else
10745               result=no
10746             fi
10747           else
10748             result=$wxUSE_COMBOCTRL
10749           fi
10750
10751           { echo "$as_me:$LINENO: result: $result" >&5
10752 echo "${ECHO_T}$result" >&6; }
10753
10754
10755           enablestring=
10756           defaultval=$wxUSE_ALL_FEATURES
10757           if test -z "$defaultval"; then
10758               if test x"$enablestring" = xdisable; then
10759                   defaultval=yes
10760               else
10761                   defaultval=no
10762               fi
10763           fi
10764
10765           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-commandlinkbutton" >&5
10766 echo $ECHO_N "checking for --${enablestring:-enable}-commandlinkbutton... $ECHO_C" >&6; }
10767           # Check whether --enable-commandlinkbutton was given.
10768 if test "${enable_commandlinkbutton+set}" = set; then
10769   enableval=$enable_commandlinkbutton;
10770                           if test "$enableval" = yes; then
10771                             wx_cv_use_commandlinkbutton='wxUSE_COMMANDLINKBUTTON=yes'
10772                           else
10773                             wx_cv_use_commandlinkbutton='wxUSE_COMMANDLINKBUTTON=no'
10774                           fi
10775
10776 else
10777
10778                           wx_cv_use_commandlinkbutton='wxUSE_COMMANDLINKBUTTON=${'DEFAULT_wxUSE_COMMANDLINKBUTTON":-$defaultval}"
10779
10780 fi
10781
10782
10783           eval "$wx_cv_use_commandlinkbutton"
10784
10785           if test x"$enablestring" = xdisable; then
10786             if test $wxUSE_COMMANDLINKBUTTON = no; then
10787               result=yes
10788             else
10789               result=no
10790             fi
10791           else
10792             result=$wxUSE_COMMANDLINKBUTTON
10793           fi
10794
10795           { echo "$as_me:$LINENO: result: $result" >&5
10796 echo "${ECHO_T}$result" >&6; }
10797
10798
10799           enablestring=
10800           defaultval=$wxUSE_ALL_FEATURES
10801           if test -z "$defaultval"; then
10802               if test x"$enablestring" = xdisable; then
10803                   defaultval=yes
10804               else
10805                   defaultval=no
10806               fi
10807           fi
10808
10809           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataviewctrl" >&5
10810 echo $ECHO_N "checking for --${enablestring:-enable}-dataviewctrl... $ECHO_C" >&6; }
10811           # Check whether --enable-dataviewctrl was given.
10812 if test "${enable_dataviewctrl+set}" = set; then
10813   enableval=$enable_dataviewctrl;
10814                           if test "$enableval" = yes; then
10815                             wx_cv_use_dataviewctrl='wxUSE_DATAVIEWCTRL=yes'
10816                           else
10817                             wx_cv_use_dataviewctrl='wxUSE_DATAVIEWCTRL=no'
10818                           fi
10819
10820 else
10821
10822                           wx_cv_use_dataviewctrl='wxUSE_DATAVIEWCTRL=${'DEFAULT_wxUSE_DATAVIEWCTRL":-$defaultval}"
10823
10824 fi
10825
10826
10827           eval "$wx_cv_use_dataviewctrl"
10828
10829           if test x"$enablestring" = xdisable; then
10830             if test $wxUSE_DATAVIEWCTRL = no; then
10831               result=yes
10832             else
10833               result=no
10834             fi
10835           else
10836             result=$wxUSE_DATAVIEWCTRL
10837           fi
10838
10839           { echo "$as_me:$LINENO: result: $result" >&5
10840 echo "${ECHO_T}$result" >&6; }
10841
10842
10843           enablestring=
10844           defaultval=$wxUSE_ALL_FEATURES
10845           if test -z "$defaultval"; then
10846               if test x"$enablestring" = xdisable; then
10847                   defaultval=yes
10848               else
10849                   defaultval=no
10850               fi
10851           fi
10852
10853           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datepick" >&5
10854 echo $ECHO_N "checking for --${enablestring:-enable}-datepick... $ECHO_C" >&6; }
10855           # Check whether --enable-datepick was given.
10856 if test "${enable_datepick+set}" = set; then
10857   enableval=$enable_datepick;
10858                           if test "$enableval" = yes; then
10859                             wx_cv_use_datepick='wxUSE_DATEPICKCTRL=yes'
10860                           else
10861                             wx_cv_use_datepick='wxUSE_DATEPICKCTRL=no'
10862                           fi
10863
10864 else
10865
10866                           wx_cv_use_datepick='wxUSE_DATEPICKCTRL=${'DEFAULT_wxUSE_DATEPICKCTRL":-$defaultval}"
10867
10868 fi
10869
10870
10871           eval "$wx_cv_use_datepick"
10872
10873           if test x"$enablestring" = xdisable; then
10874             if test $wxUSE_DATEPICKCTRL = no; then
10875               result=yes
10876             else
10877               result=no
10878             fi
10879           else
10880             result=$wxUSE_DATEPICKCTRL
10881           fi
10882
10883           { echo "$as_me:$LINENO: result: $result" >&5
10884 echo "${ECHO_T}$result" >&6; }
10885
10886
10887           enablestring=
10888           defaultval=$wxUSE_ALL_FEATURES
10889           if test -z "$defaultval"; then
10890               if test x"$enablestring" = xdisable; then
10891                   defaultval=yes
10892               else
10893                   defaultval=no
10894               fi
10895           fi
10896
10897           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-detect_sm" >&5
10898 echo $ECHO_N "checking for --${enablestring:-enable}-detect_sm... $ECHO_C" >&6; }
10899           # Check whether --enable-detect_sm was given.
10900 if test "${enable_detect_sm+set}" = set; then
10901   enableval=$enable_detect_sm;
10902                           if test "$enableval" = yes; then
10903                             wx_cv_use_detect_sm='wxUSE_DETECT_SM=yes'
10904                           else
10905                             wx_cv_use_detect_sm='wxUSE_DETECT_SM=no'
10906                           fi
10907
10908 else
10909
10910                           wx_cv_use_detect_sm='wxUSE_DETECT_SM=${'DEFAULT_wxUSE_DETECT_SM":-$defaultval}"
10911
10912 fi
10913
10914
10915           eval "$wx_cv_use_detect_sm"
10916
10917           if test x"$enablestring" = xdisable; then
10918             if test $wxUSE_DETECT_SM = no; then
10919               result=yes
10920             else
10921               result=no
10922             fi
10923           else
10924             result=$wxUSE_DETECT_SM
10925           fi
10926
10927           { echo "$as_me:$LINENO: result: $result" >&5
10928 echo "${ECHO_T}$result" >&6; }
10929
10930
10931           enablestring=
10932           defaultval=$wxUSE_ALL_FEATURES
10933           if test -z "$defaultval"; then
10934               if test x"$enablestring" = xdisable; then
10935                   defaultval=yes
10936               else
10937                   defaultval=no
10938               fi
10939           fi
10940
10941           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirpicker" >&5
10942 echo $ECHO_N "checking for --${enablestring:-enable}-dirpicker... $ECHO_C" >&6; }
10943           # Check whether --enable-dirpicker was given.
10944 if test "${enable_dirpicker+set}" = set; then
10945   enableval=$enable_dirpicker;
10946                           if test "$enableval" = yes; then
10947                             wx_cv_use_dirpicker='wxUSE_DIRPICKERCTRL=yes'
10948                           else
10949                             wx_cv_use_dirpicker='wxUSE_DIRPICKERCTRL=no'
10950                           fi
10951
10952 else
10953
10954                           wx_cv_use_dirpicker='wxUSE_DIRPICKERCTRL=${'DEFAULT_wxUSE_DIRPICKERCTRL":-$defaultval}"
10955
10956 fi
10957
10958
10959           eval "$wx_cv_use_dirpicker"
10960
10961           if test x"$enablestring" = xdisable; then
10962             if test $wxUSE_DIRPICKERCTRL = no; then
10963               result=yes
10964             else
10965               result=no
10966             fi
10967           else
10968             result=$wxUSE_DIRPICKERCTRL
10969           fi
10970
10971           { echo "$as_me:$LINENO: result: $result" >&5
10972 echo "${ECHO_T}$result" >&6; }
10973
10974
10975           enablestring=
10976           defaultval=$wxUSE_ALL_FEATURES
10977           if test -z "$defaultval"; then
10978               if test x"$enablestring" = xdisable; then
10979                   defaultval=yes
10980               else
10981                   defaultval=no
10982               fi
10983           fi
10984
10985           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-display" >&5
10986 echo $ECHO_N "checking for --${enablestring:-enable}-display... $ECHO_C" >&6; }
10987           # Check whether --enable-display was given.
10988 if test "${enable_display+set}" = set; then
10989   enableval=$enable_display;
10990                           if test "$enableval" = yes; then
10991                             wx_cv_use_display='wxUSE_DISPLAY=yes'
10992                           else
10993                             wx_cv_use_display='wxUSE_DISPLAY=no'
10994                           fi
10995
10996 else
10997
10998                           wx_cv_use_display='wxUSE_DISPLAY=${'DEFAULT_wxUSE_DISPLAY":-$defaultval}"
10999
11000 fi
11001
11002
11003           eval "$wx_cv_use_display"
11004
11005           if test x"$enablestring" = xdisable; then
11006             if test $wxUSE_DISPLAY = no; then
11007               result=yes
11008             else
11009               result=no
11010             fi
11011           else
11012             result=$wxUSE_DISPLAY
11013           fi
11014
11015           { echo "$as_me:$LINENO: result: $result" >&5
11016 echo "${ECHO_T}$result" >&6; }
11017
11018
11019           enablestring=
11020           defaultval=$wxUSE_ALL_FEATURES
11021           if test -z "$defaultval"; then
11022               if test x"$enablestring" = xdisable; then
11023                   defaultval=yes
11024               else
11025                   defaultval=no
11026               fi
11027           fi
11028
11029           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-editablebox" >&5
11030 echo $ECHO_N "checking for --${enablestring:-enable}-editablebox... $ECHO_C" >&6; }
11031           # Check whether --enable-editablebox was given.
11032 if test "${enable_editablebox+set}" = set; then
11033   enableval=$enable_editablebox;
11034                           if test "$enableval" = yes; then
11035                             wx_cv_use_editablebox='wxUSE_EDITABLELISTBOX=yes'
11036                           else
11037                             wx_cv_use_editablebox='wxUSE_EDITABLELISTBOX=no'
11038                           fi
11039
11040 else
11041
11042                           wx_cv_use_editablebox='wxUSE_EDITABLELISTBOX=${'DEFAULT_wxUSE_EDITABLELISTBOX":-$defaultval}"
11043
11044 fi
11045
11046
11047           eval "$wx_cv_use_editablebox"
11048
11049           if test x"$enablestring" = xdisable; then
11050             if test $wxUSE_EDITABLELISTBOX = no; then
11051               result=yes
11052             else
11053               result=no
11054             fi
11055           else
11056             result=$wxUSE_EDITABLELISTBOX
11057           fi
11058
11059           { echo "$as_me:$LINENO: result: $result" >&5
11060 echo "${ECHO_T}$result" >&6; }
11061
11062
11063           enablestring=
11064           defaultval=$wxUSE_ALL_FEATURES
11065           if test -z "$defaultval"; then
11066               if test x"$enablestring" = xdisable; then
11067                   defaultval=yes
11068               else
11069                   defaultval=no
11070               fi
11071           fi
11072
11073           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filectrl" >&5
11074 echo $ECHO_N "checking for --${enablestring:-enable}-filectrl... $ECHO_C" >&6; }
11075           # Check whether --enable-filectrl was given.
11076 if test "${enable_filectrl+set}" = set; then
11077   enableval=$enable_filectrl;
11078                           if test "$enableval" = yes; then
11079                             wx_cv_use_filectrl='wxUSE_FILECTRL=yes'
11080                           else
11081                             wx_cv_use_filectrl='wxUSE_FILECTRL=no'
11082                           fi
11083
11084 else
11085
11086                           wx_cv_use_filectrl='wxUSE_FILECTRL=${'DEFAULT_wxUSE_FILECTRL":-$defaultval}"
11087
11088 fi
11089
11090
11091           eval "$wx_cv_use_filectrl"
11092
11093           if test x"$enablestring" = xdisable; then
11094             if test $wxUSE_FILECTRL = no; then
11095               result=yes
11096             else
11097               result=no
11098             fi
11099           else
11100             result=$wxUSE_FILECTRL
11101           fi
11102
11103           { echo "$as_me:$LINENO: result: $result" >&5
11104 echo "${ECHO_T}$result" >&6; }
11105
11106
11107           enablestring=
11108           defaultval=$wxUSE_ALL_FEATURES
11109           if test -z "$defaultval"; then
11110               if test x"$enablestring" = xdisable; then
11111                   defaultval=yes
11112               else
11113                   defaultval=no
11114               fi
11115           fi
11116
11117           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filepicker" >&5
11118 echo $ECHO_N "checking for --${enablestring:-enable}-filepicker... $ECHO_C" >&6; }
11119           # Check whether --enable-filepicker was given.
11120 if test "${enable_filepicker+set}" = set; then
11121   enableval=$enable_filepicker;
11122                           if test "$enableval" = yes; then
11123                             wx_cv_use_filepicker='wxUSE_FILEPICKERCTRL=yes'
11124                           else
11125                             wx_cv_use_filepicker='wxUSE_FILEPICKERCTRL=no'
11126                           fi
11127
11128 else
11129
11130                           wx_cv_use_filepicker='wxUSE_FILEPICKERCTRL=${'DEFAULT_wxUSE_FILEPICKERCTRL":-$defaultval}"
11131
11132 fi
11133
11134
11135           eval "$wx_cv_use_filepicker"
11136
11137           if test x"$enablestring" = xdisable; then
11138             if test $wxUSE_FILEPICKERCTRL = no; then
11139               result=yes
11140             else
11141               result=no
11142             fi
11143           else
11144             result=$wxUSE_FILEPICKERCTRL
11145           fi
11146
11147           { echo "$as_me:$LINENO: result: $result" >&5
11148 echo "${ECHO_T}$result" >&6; }
11149
11150
11151           enablestring=
11152           defaultval=$wxUSE_ALL_FEATURES
11153           if test -z "$defaultval"; then
11154               if test x"$enablestring" = xdisable; then
11155                   defaultval=yes
11156               else
11157                   defaultval=no
11158               fi
11159           fi
11160
11161           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontpicker" >&5
11162 echo $ECHO_N "checking for --${enablestring:-enable}-fontpicker... $ECHO_C" >&6; }
11163           # Check whether --enable-fontpicker was given.
11164 if test "${enable_fontpicker+set}" = set; then
11165   enableval=$enable_fontpicker;
11166                           if test "$enableval" = yes; then
11167                             wx_cv_use_fontpicker='wxUSE_FONTPICKERCTRL=yes'
11168                           else
11169                             wx_cv_use_fontpicker='wxUSE_FONTPICKERCTRL=no'
11170                           fi
11171
11172 else
11173
11174                           wx_cv_use_fontpicker='wxUSE_FONTPICKERCTRL=${'DEFAULT_wxUSE_FONTPICKERCTRL":-$defaultval}"
11175
11176 fi
11177
11178
11179           eval "$wx_cv_use_fontpicker"
11180
11181           if test x"$enablestring" = xdisable; then
11182             if test $wxUSE_FONTPICKERCTRL = no; then
11183               result=yes
11184             else
11185               result=no
11186             fi
11187           else
11188             result=$wxUSE_FONTPICKERCTRL
11189           fi
11190
11191           { echo "$as_me:$LINENO: result: $result" >&5
11192 echo "${ECHO_T}$result" >&6; }
11193
11194
11195           enablestring=
11196           defaultval=$wxUSE_ALL_FEATURES
11197           if test -z "$defaultval"; then
11198               if test x"$enablestring" = xdisable; then
11199                   defaultval=yes
11200               else
11201                   defaultval=no
11202               fi
11203           fi
11204
11205           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gauge" >&5
11206 echo $ECHO_N "checking for --${enablestring:-enable}-gauge... $ECHO_C" >&6; }
11207           # Check whether --enable-gauge was given.
11208 if test "${enable_gauge+set}" = set; then
11209   enableval=$enable_gauge;
11210                           if test "$enableval" = yes; then
11211                             wx_cv_use_gauge='wxUSE_GAUGE=yes'
11212                           else
11213                             wx_cv_use_gauge='wxUSE_GAUGE=no'
11214                           fi
11215
11216 else
11217
11218                           wx_cv_use_gauge='wxUSE_GAUGE=${'DEFAULT_wxUSE_GAUGE":-$defaultval}"
11219
11220 fi
11221
11222
11223           eval "$wx_cv_use_gauge"
11224
11225           if test x"$enablestring" = xdisable; then
11226             if test $wxUSE_GAUGE = no; then
11227               result=yes
11228             else
11229               result=no
11230             fi
11231           else
11232             result=$wxUSE_GAUGE
11233           fi
11234
11235           { echo "$as_me:$LINENO: result: $result" >&5
11236 echo "${ECHO_T}$result" >&6; }
11237
11238
11239           enablestring=
11240           defaultval=$wxUSE_ALL_FEATURES
11241           if test -z "$defaultval"; then
11242               if test x"$enablestring" = xdisable; then
11243                   defaultval=yes
11244               else
11245                   defaultval=no
11246               fi
11247           fi
11248
11249           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-grid" >&5
11250 echo $ECHO_N "checking for --${enablestring:-enable}-grid... $ECHO_C" >&6; }
11251           # Check whether --enable-grid was given.
11252 if test "${enable_grid+set}" = set; then
11253   enableval=$enable_grid;
11254                           if test "$enableval" = yes; then
11255                             wx_cv_use_grid='wxUSE_GRID=yes'
11256                           else
11257                             wx_cv_use_grid='wxUSE_GRID=no'
11258                           fi
11259
11260 else
11261
11262                           wx_cv_use_grid='wxUSE_GRID=${'DEFAULT_wxUSE_GRID":-$defaultval}"
11263
11264 fi
11265
11266
11267           eval "$wx_cv_use_grid"
11268
11269           if test x"$enablestring" = xdisable; then
11270             if test $wxUSE_GRID = no; then
11271               result=yes
11272             else
11273               result=no
11274             fi
11275           else
11276             result=$wxUSE_GRID
11277           fi
11278
11279           { echo "$as_me:$LINENO: result: $result" >&5
11280 echo "${ECHO_T}$result" >&6; }
11281
11282
11283           enablestring=
11284           defaultval=$wxUSE_ALL_FEATURES
11285           if test -z "$defaultval"; then
11286               if test x"$enablestring" = xdisable; then
11287                   defaultval=yes
11288               else
11289                   defaultval=no
11290               fi
11291           fi
11292
11293           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-headerctrl" >&5
11294 echo $ECHO_N "checking for --${enablestring:-enable}-headerctrl... $ECHO_C" >&6; }
11295           # Check whether --enable-headerctrl was given.
11296 if test "${enable_headerctrl+set}" = set; then
11297   enableval=$enable_headerctrl;
11298                           if test "$enableval" = yes; then
11299                             wx_cv_use_headerctrl='wxUSE_HEADERCTRL=yes'
11300                           else
11301                             wx_cv_use_headerctrl='wxUSE_HEADERCTRL=no'
11302                           fi
11303
11304 else
11305
11306                           wx_cv_use_headerctrl='wxUSE_HEADERCTRL=${'DEFAULT_wxUSE_HEADERCTRL":-$defaultval}"
11307
11308 fi
11309
11310
11311           eval "$wx_cv_use_headerctrl"
11312
11313           if test x"$enablestring" = xdisable; then
11314             if test $wxUSE_HEADERCTRL = no; then
11315               result=yes
11316             else
11317               result=no
11318             fi
11319           else
11320             result=$wxUSE_HEADERCTRL
11321           fi
11322
11323           { echo "$as_me:$LINENO: result: $result" >&5
11324 echo "${ECHO_T}$result" >&6; }
11325
11326
11327           enablestring=
11328           defaultval=$wxUSE_ALL_FEATURES
11329           if test -z "$defaultval"; then
11330               if test x"$enablestring" = xdisable; then
11331                   defaultval=yes
11332               else
11333                   defaultval=no
11334               fi
11335           fi
11336
11337           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-hyperlink" >&5
11338 echo $ECHO_N "checking for --${enablestring:-enable}-hyperlink... $ECHO_C" >&6; }
11339           # Check whether --enable-hyperlink was given.
11340 if test "${enable_hyperlink+set}" = set; then
11341   enableval=$enable_hyperlink;
11342                           if test "$enableval" = yes; then
11343                             wx_cv_use_hyperlink='wxUSE_HYPERLINKCTRL=yes'
11344                           else
11345                             wx_cv_use_hyperlink='wxUSE_HYPERLINKCTRL=no'
11346                           fi
11347
11348 else
11349
11350                           wx_cv_use_hyperlink='wxUSE_HYPERLINKCTRL=${'DEFAULT_wxUSE_HYPERLINKCTRL":-$defaultval}"
11351
11352 fi
11353
11354
11355           eval "$wx_cv_use_hyperlink"
11356
11357           if test x"$enablestring" = xdisable; then
11358             if test $wxUSE_HYPERLINKCTRL = no; then
11359               result=yes
11360             else
11361               result=no
11362             fi
11363           else
11364             result=$wxUSE_HYPERLINKCTRL
11365           fi
11366
11367           { echo "$as_me:$LINENO: result: $result" >&5
11368 echo "${ECHO_T}$result" >&6; }
11369
11370
11371           enablestring=
11372           defaultval=$wxUSE_ALL_FEATURES
11373           if test -z "$defaultval"; then
11374               if test x"$enablestring" = xdisable; then
11375                   defaultval=yes
11376               else
11377                   defaultval=no
11378               fi
11379           fi
11380
11381           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-imaglist" >&5
11382 echo $ECHO_N "checking for --${enablestring:-enable}-imaglist... $ECHO_C" >&6; }
11383           # Check whether --enable-imaglist was given.
11384 if test "${enable_imaglist+set}" = set; then
11385   enableval=$enable_imaglist;
11386                           if test "$enableval" = yes; then
11387                             wx_cv_use_imaglist='wxUSE_IMAGLIST=yes'
11388                           else
11389                             wx_cv_use_imaglist='wxUSE_IMAGLIST=no'
11390                           fi
11391
11392 else
11393
11394                           wx_cv_use_imaglist='wxUSE_IMAGLIST=${'DEFAULT_wxUSE_IMAGLIST":-$defaultval}"
11395
11396 fi
11397
11398
11399           eval "$wx_cv_use_imaglist"
11400
11401           if test x"$enablestring" = xdisable; then
11402             if test $wxUSE_IMAGLIST = no; then
11403               result=yes
11404             else
11405               result=no
11406             fi
11407           else
11408             result=$wxUSE_IMAGLIST
11409           fi
11410
11411           { echo "$as_me:$LINENO: result: $result" >&5
11412 echo "${ECHO_T}$result" >&6; }
11413
11414
11415           enablestring=
11416           defaultval=$wxUSE_ALL_FEATURES
11417           if test -z "$defaultval"; then
11418               if test x"$enablestring" = xdisable; then
11419                   defaultval=yes
11420               else
11421                   defaultval=no
11422               fi
11423           fi
11424
11425           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-infobar" >&5
11426 echo $ECHO_N "checking for --${enablestring:-enable}-infobar... $ECHO_C" >&6; }
11427           # Check whether --enable-infobar was given.
11428 if test "${enable_infobar+set}" = set; then
11429   enableval=$enable_infobar;
11430                           if test "$enableval" = yes; then
11431                             wx_cv_use_infobar='wxUSE_INFOBAR=yes'
11432                           else
11433                             wx_cv_use_infobar='wxUSE_INFOBAR=no'
11434                           fi
11435
11436 else
11437
11438                           wx_cv_use_infobar='wxUSE_INFOBAR=${'DEFAULT_wxUSE_INFOBAR":-$defaultval}"
11439
11440 fi
11441
11442
11443           eval "$wx_cv_use_infobar"
11444
11445           if test x"$enablestring" = xdisable; then
11446             if test $wxUSE_INFOBAR = no; then
11447               result=yes
11448             else
11449               result=no
11450             fi
11451           else
11452             result=$wxUSE_INFOBAR
11453           fi
11454
11455           { echo "$as_me:$LINENO: result: $result" >&5
11456 echo "${ECHO_T}$result" >&6; }
11457
11458
11459           enablestring=
11460           defaultval=$wxUSE_ALL_FEATURES
11461           if test -z "$defaultval"; then
11462               if test x"$enablestring" = xdisable; then
11463                   defaultval=yes
11464               else
11465                   defaultval=no
11466               fi
11467           fi
11468
11469           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbook" >&5
11470 echo $ECHO_N "checking for --${enablestring:-enable}-listbook... $ECHO_C" >&6; }
11471           # Check whether --enable-listbook was given.
11472 if test "${enable_listbook+set}" = set; then
11473   enableval=$enable_listbook;
11474                           if test "$enableval" = yes; then
11475                             wx_cv_use_listbook='wxUSE_LISTBOOK=yes'
11476                           else
11477                             wx_cv_use_listbook='wxUSE_LISTBOOK=no'
11478                           fi
11479
11480 else
11481
11482                           wx_cv_use_listbook='wxUSE_LISTBOOK=${'DEFAULT_wxUSE_LISTBOOK":-$defaultval}"
11483
11484 fi
11485
11486
11487           eval "$wx_cv_use_listbook"
11488
11489           if test x"$enablestring" = xdisable; then
11490             if test $wxUSE_LISTBOOK = no; then
11491               result=yes
11492             else
11493               result=no
11494             fi
11495           else
11496             result=$wxUSE_LISTBOOK
11497           fi
11498
11499           { echo "$as_me:$LINENO: result: $result" >&5
11500 echo "${ECHO_T}$result" >&6; }
11501
11502
11503           enablestring=
11504           defaultval=$wxUSE_ALL_FEATURES
11505           if test -z "$defaultval"; then
11506               if test x"$enablestring" = xdisable; then
11507                   defaultval=yes
11508               else
11509                   defaultval=no
11510               fi
11511           fi
11512
11513           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbox" >&5
11514 echo $ECHO_N "checking for --${enablestring:-enable}-listbox... $ECHO_C" >&6; }
11515           # Check whether --enable-listbox was given.
11516 if test "${enable_listbox+set}" = set; then
11517   enableval=$enable_listbox;
11518                           if test "$enableval" = yes; then
11519                             wx_cv_use_listbox='wxUSE_LISTBOX=yes'
11520                           else
11521                             wx_cv_use_listbox='wxUSE_LISTBOX=no'
11522                           fi
11523
11524 else
11525
11526                           wx_cv_use_listbox='wxUSE_LISTBOX=${'DEFAULT_wxUSE_LISTBOX":-$defaultval}"
11527
11528 fi
11529
11530
11531           eval "$wx_cv_use_listbox"
11532
11533           if test x"$enablestring" = xdisable; then
11534             if test $wxUSE_LISTBOX = no; then
11535               result=yes
11536             else
11537               result=no
11538             fi
11539           else
11540             result=$wxUSE_LISTBOX
11541           fi
11542
11543           { echo "$as_me:$LINENO: result: $result" >&5
11544 echo "${ECHO_T}$result" >&6; }
11545
11546
11547           enablestring=
11548           defaultval=$wxUSE_ALL_FEATURES
11549           if test -z "$defaultval"; then
11550               if test x"$enablestring" = xdisable; then
11551                   defaultval=yes
11552               else
11553                   defaultval=no
11554               fi
11555           fi
11556
11557           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listctrl" >&5
11558 echo $ECHO_N "checking for --${enablestring:-enable}-listctrl... $ECHO_C" >&6; }
11559           # Check whether --enable-listctrl was given.
11560 if test "${enable_listctrl+set}" = set; then
11561   enableval=$enable_listctrl;
11562                           if test "$enableval" = yes; then
11563                             wx_cv_use_listctrl='wxUSE_LISTCTRL=yes'
11564                           else
11565                             wx_cv_use_listctrl='wxUSE_LISTCTRL=no'
11566                           fi
11567
11568 else
11569
11570                           wx_cv_use_listctrl='wxUSE_LISTCTRL=${'DEFAULT_wxUSE_LISTCTRL":-$defaultval}"
11571
11572 fi
11573
11574
11575           eval "$wx_cv_use_listctrl"
11576
11577           if test x"$enablestring" = xdisable; then
11578             if test $wxUSE_LISTCTRL = no; then
11579               result=yes
11580             else
11581               result=no
11582             fi
11583           else
11584             result=$wxUSE_LISTCTRL
11585           fi
11586
11587           { echo "$as_me:$LINENO: result: $result" >&5
11588 echo "${ECHO_T}$result" >&6; }
11589
11590
11591           enablestring=
11592           defaultval=$wxUSE_ALL_FEATURES
11593           if test -z "$defaultval"; then
11594               if test x"$enablestring" = xdisable; then
11595                   defaultval=yes
11596               else
11597                   defaultval=no
11598               fi
11599           fi
11600
11601           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-notebook" >&5
11602 echo $ECHO_N "checking for --${enablestring:-enable}-notebook... $ECHO_C" >&6; }
11603           # Check whether --enable-notebook was given.
11604 if test "${enable_notebook+set}" = set; then
11605   enableval=$enable_notebook;
11606                           if test "$enableval" = yes; then
11607                             wx_cv_use_notebook='wxUSE_NOTEBOOK=yes'
11608                           else
11609                             wx_cv_use_notebook='wxUSE_NOTEBOOK=no'
11610                           fi
11611
11612 else
11613
11614                           wx_cv_use_notebook='wxUSE_NOTEBOOK=${'DEFAULT_wxUSE_NOTEBOOK":-$defaultval}"
11615
11616 fi
11617
11618
11619           eval "$wx_cv_use_notebook"
11620
11621           if test x"$enablestring" = xdisable; then
11622             if test $wxUSE_NOTEBOOK = no; then
11623               result=yes
11624             else
11625               result=no
11626             fi
11627           else
11628             result=$wxUSE_NOTEBOOK
11629           fi
11630
11631           { echo "$as_me:$LINENO: result: $result" >&5
11632 echo "${ECHO_T}$result" >&6; }
11633
11634
11635           enablestring=
11636           defaultval=$wxUSE_ALL_FEATURES
11637           if test -z "$defaultval"; then
11638               if test x"$enablestring" = xdisable; then
11639                   defaultval=yes
11640               else
11641                   defaultval=no
11642               fi
11643           fi
11644
11645           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-notifmsg" >&5
11646 echo $ECHO_N "checking for --${enablestring:-enable}-notifmsg... $ECHO_C" >&6; }
11647           # Check whether --enable-notifmsg was given.
11648 if test "${enable_notifmsg+set}" = set; then
11649   enableval=$enable_notifmsg;
11650                           if test "$enableval" = yes; then
11651                             wx_cv_use_notifmsg='wxUSE_NOTIFICATION_MESSAGE=yes'
11652                           else
11653                             wx_cv_use_notifmsg='wxUSE_NOTIFICATION_MESSAGE=no'
11654                           fi
11655
11656 else
11657
11658                           wx_cv_use_notifmsg='wxUSE_NOTIFICATION_MESSAGE=${'DEFAULT_wxUSE_NOTIFICATION_MESSAGE":-$defaultval}"
11659
11660 fi
11661
11662
11663           eval "$wx_cv_use_notifmsg"
11664
11665           if test x"$enablestring" = xdisable; then
11666             if test $wxUSE_NOTIFICATION_MESSAGE = no; then
11667               result=yes
11668             else
11669               result=no
11670             fi
11671           else
11672             result=$wxUSE_NOTIFICATION_MESSAGE
11673           fi
11674
11675           { echo "$as_me:$LINENO: result: $result" >&5
11676 echo "${ECHO_T}$result" >&6; }
11677
11678
11679           enablestring=
11680           defaultval=$wxUSE_ALL_FEATURES
11681           if test -z "$defaultval"; then
11682               if test x"$enablestring" = xdisable; then
11683                   defaultval=yes
11684               else
11685                   defaultval=no
11686               fi
11687           fi
11688
11689           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-odcombobox" >&5
11690 echo $ECHO_N "checking for --${enablestring:-enable}-odcombobox... $ECHO_C" >&6; }
11691           # Check whether --enable-odcombobox was given.
11692 if test "${enable_odcombobox+set}" = set; then
11693   enableval=$enable_odcombobox;
11694                           if test "$enableval" = yes; then
11695                             wx_cv_use_odcombobox='wxUSE_ODCOMBOBOX=yes'
11696                           else
11697                             wx_cv_use_odcombobox='wxUSE_ODCOMBOBOX=no'
11698                           fi
11699
11700 else
11701
11702                           wx_cv_use_odcombobox='wxUSE_ODCOMBOBOX=${'DEFAULT_wxUSE_ODCOMBOBOX":-$defaultval}"
11703
11704 fi
11705
11706
11707           eval "$wx_cv_use_odcombobox"
11708
11709           if test x"$enablestring" = xdisable; then
11710             if test $wxUSE_ODCOMBOBOX = no; then
11711               result=yes
11712             else
11713               result=no
11714             fi
11715           else
11716             result=$wxUSE_ODCOMBOBOX
11717           fi
11718
11719           { echo "$as_me:$LINENO: result: $result" >&5
11720 echo "${ECHO_T}$result" >&6; }
11721
11722
11723           enablestring=
11724           defaultval=$wxUSE_ALL_FEATURES
11725           if test -z "$defaultval"; then
11726               if test x"$enablestring" = xdisable; then
11727                   defaultval=yes
11728               else
11729                   defaultval=no
11730               fi
11731           fi
11732
11733           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-popupwin" >&5
11734 echo $ECHO_N "checking for --${enablestring:-enable}-popupwin... $ECHO_C" >&6; }
11735           # Check whether --enable-popupwin was given.
11736 if test "${enable_popupwin+set}" = set; then
11737   enableval=$enable_popupwin;
11738                           if test "$enableval" = yes; then
11739                             wx_cv_use_popupwin='wxUSE_POPUPWIN=yes'
11740                           else
11741                             wx_cv_use_popupwin='wxUSE_POPUPWIN=no'
11742                           fi
11743
11744 else
11745
11746                           wx_cv_use_popupwin='wxUSE_POPUPWIN=${'DEFAULT_wxUSE_POPUPWIN":-$defaultval}"
11747
11748 fi
11749
11750
11751           eval "$wx_cv_use_popupwin"
11752
11753           if test x"$enablestring" = xdisable; then
11754             if test $wxUSE_POPUPWIN = no; then
11755               result=yes
11756             else
11757               result=no
11758             fi
11759           else
11760             result=$wxUSE_POPUPWIN
11761           fi
11762
11763           { echo "$as_me:$LINENO: result: $result" >&5
11764 echo "${ECHO_T}$result" >&6; }
11765
11766
11767           enablestring=
11768           defaultval=$wxUSE_ALL_FEATURES
11769           if test -z "$defaultval"; then
11770               if test x"$enablestring" = xdisable; then
11771                   defaultval=yes
11772               else
11773                   defaultval=no
11774               fi
11775           fi
11776
11777           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobox" >&5
11778 echo $ECHO_N "checking for --${enablestring:-enable}-radiobox... $ECHO_C" >&6; }
11779           # Check whether --enable-radiobox was given.
11780 if test "${enable_radiobox+set}" = set; then
11781   enableval=$enable_radiobox;
11782                           if test "$enableval" = yes; then
11783                             wx_cv_use_radiobox='wxUSE_RADIOBOX=yes'
11784                           else
11785                             wx_cv_use_radiobox='wxUSE_RADIOBOX=no'
11786                           fi
11787
11788 else
11789
11790                           wx_cv_use_radiobox='wxUSE_RADIOBOX=${'DEFAULT_wxUSE_RADIOBOX":-$defaultval}"
11791
11792 fi
11793
11794
11795           eval "$wx_cv_use_radiobox"
11796
11797           if test x"$enablestring" = xdisable; then
11798             if test $wxUSE_RADIOBOX = no; then
11799               result=yes
11800             else
11801               result=no
11802             fi
11803           else
11804             result=$wxUSE_RADIOBOX
11805           fi
11806
11807           { echo "$as_me:$LINENO: result: $result" >&5
11808 echo "${ECHO_T}$result" >&6; }
11809
11810
11811           enablestring=
11812           defaultval=$wxUSE_ALL_FEATURES
11813           if test -z "$defaultval"; then
11814               if test x"$enablestring" = xdisable; then
11815                   defaultval=yes
11816               else
11817                   defaultval=no
11818               fi
11819           fi
11820
11821           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobtn" >&5
11822 echo $ECHO_N "checking for --${enablestring:-enable}-radiobtn... $ECHO_C" >&6; }
11823           # Check whether --enable-radiobtn was given.
11824 if test "${enable_radiobtn+set}" = set; then
11825   enableval=$enable_radiobtn;
11826                           if test "$enableval" = yes; then
11827                             wx_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
11828                           else
11829                             wx_cv_use_radiobtn='wxUSE_RADIOBTN=no'
11830                           fi
11831
11832 else
11833
11834                           wx_cv_use_radiobtn='wxUSE_RADIOBTN=${'DEFAULT_wxUSE_RADIOBTN":-$defaultval}"
11835
11836 fi
11837
11838
11839           eval "$wx_cv_use_radiobtn"
11840
11841           if test x"$enablestring" = xdisable; then
11842             if test $wxUSE_RADIOBTN = no; then
11843               result=yes
11844             else
11845               result=no
11846             fi
11847           else
11848             result=$wxUSE_RADIOBTN
11849           fi
11850
11851           { echo "$as_me:$LINENO: result: $result" >&5
11852 echo "${ECHO_T}$result" >&6; }
11853
11854
11855           enablestring=
11856           defaultval=$wxUSE_ALL_FEATURES
11857           if test -z "$defaultval"; then
11858               if test x"$enablestring" = xdisable; then
11859                   defaultval=yes
11860               else
11861                   defaultval=no
11862               fi
11863           fi
11864
11865           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-richmsgdlg" >&5
11866 echo $ECHO_N "checking for --${enablestring:-enable}-richmsgdlg... $ECHO_C" >&6; }
11867           # Check whether --enable-richmsgdlg was given.
11868 if test "${enable_richmsgdlg+set}" = set; then
11869   enableval=$enable_richmsgdlg;
11870                           if test "$enableval" = yes; then
11871                             wx_cv_use_richmsgdlg='wxUSE_RICHMSGDLG=yes'
11872                           else
11873                             wx_cv_use_richmsgdlg='wxUSE_RICHMSGDLG=no'
11874                           fi
11875
11876 else
11877
11878                           wx_cv_use_richmsgdlg='wxUSE_RICHMSGDLG=${'DEFAULT_wxUSE_RICHMSGDLG":-$defaultval}"
11879
11880 fi
11881
11882
11883           eval "$wx_cv_use_richmsgdlg"
11884
11885           if test x"$enablestring" = xdisable; then
11886             if test $wxUSE_RICHMSGDLG = no; then
11887               result=yes
11888             else
11889               result=no
11890             fi
11891           else
11892             result=$wxUSE_RICHMSGDLG
11893           fi
11894
11895           { echo "$as_me:$LINENO: result: $result" >&5
11896 echo "${ECHO_T}$result" >&6; }
11897
11898
11899           enablestring=
11900           defaultval=$wxUSE_ALL_FEATURES
11901           if test -z "$defaultval"; then
11902               if test x"$enablestring" = xdisable; then
11903                   defaultval=yes
11904               else
11905                   defaultval=no
11906               fi
11907           fi
11908
11909           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-rearrangectrl" >&5
11910 echo $ECHO_N "checking for --${enablestring:-enable}-rearrangectrl... $ECHO_C" >&6; }
11911           # Check whether --enable-rearrangectrl was given.
11912 if test "${enable_rearrangectrl+set}" = set; then
11913   enableval=$enable_rearrangectrl;
11914                           if test "$enableval" = yes; then
11915                             wx_cv_use_rearrangectrl='wxUSE_REARRANGECTRL=yes'
11916                           else
11917                             wx_cv_use_rearrangectrl='wxUSE_REARRANGECTRL=no'
11918                           fi
11919
11920 else
11921
11922                           wx_cv_use_rearrangectrl='wxUSE_REARRANGECTRL=${'DEFAULT_wxUSE_REARRANGECTRL":-$defaultval}"
11923
11924 fi
11925
11926
11927           eval "$wx_cv_use_rearrangectrl"
11928
11929           if test x"$enablestring" = xdisable; then
11930             if test $wxUSE_REARRANGECTRL = no; then
11931               result=yes
11932             else
11933               result=no
11934             fi
11935           else
11936             result=$wxUSE_REARRANGECTRL
11937           fi
11938
11939           { echo "$as_me:$LINENO: result: $result" >&5
11940 echo "${ECHO_T}$result" >&6; }
11941
11942
11943           enablestring=
11944           defaultval=$wxUSE_ALL_FEATURES
11945           if test -z "$defaultval"; then
11946               if test x"$enablestring" = xdisable; then
11947                   defaultval=yes
11948               else
11949                   defaultval=no
11950               fi
11951           fi
11952
11953           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sash" >&5
11954 echo $ECHO_N "checking for --${enablestring:-enable}-sash... $ECHO_C" >&6; }
11955           # Check whether --enable-sash was given.
11956 if test "${enable_sash+set}" = set; then
11957   enableval=$enable_sash;
11958                           if test "$enableval" = yes; then
11959                             wx_cv_use_sash='wxUSE_SASH=yes'
11960                           else
11961                             wx_cv_use_sash='wxUSE_SASH=no'
11962                           fi
11963
11964 else
11965
11966                           wx_cv_use_sash='wxUSE_SASH=${'DEFAULT_wxUSE_SASH":-$defaultval}"
11967
11968 fi
11969
11970
11971           eval "$wx_cv_use_sash"
11972
11973           if test x"$enablestring" = xdisable; then
11974             if test $wxUSE_SASH = no; then
11975               result=yes
11976             else
11977               result=no
11978             fi
11979           else
11980             result=$wxUSE_SASH
11981           fi
11982
11983           { echo "$as_me:$LINENO: result: $result" >&5
11984 echo "${ECHO_T}$result" >&6; }
11985
11986
11987           enablestring=
11988           defaultval=$wxUSE_ALL_FEATURES
11989           if test -z "$defaultval"; then
11990               if test x"$enablestring" = xdisable; then
11991                   defaultval=yes
11992               else
11993                   defaultval=no
11994               fi
11995           fi
11996
11997           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-scrollbar" >&5
11998 echo $ECHO_N "checking for --${enablestring:-enable}-scrollbar... $ECHO_C" >&6; }
11999           # Check whether --enable-scrollbar was given.
12000 if test "${enable_scrollbar+set}" = set; then
12001   enableval=$enable_scrollbar;
12002                           if test "$enableval" = yes; then
12003                             wx_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
12004                           else
12005                             wx_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
12006                           fi
12007
12008 else
12009
12010                           wx_cv_use_scrollbar='wxUSE_SCROLLBAR=${'DEFAULT_wxUSE_SCROLLBAR":-$defaultval}"
12011
12012 fi
12013
12014
12015           eval "$wx_cv_use_scrollbar"
12016
12017           if test x"$enablestring" = xdisable; then
12018             if test $wxUSE_SCROLLBAR = no; then
12019               result=yes
12020             else
12021               result=no
12022             fi
12023           else
12024             result=$wxUSE_SCROLLBAR
12025           fi
12026
12027           { echo "$as_me:$LINENO: result: $result" >&5
12028 echo "${ECHO_T}$result" >&6; }
12029
12030
12031           enablestring=
12032           defaultval=$wxUSE_ALL_FEATURES
12033           if test -z "$defaultval"; then
12034               if test x"$enablestring" = xdisable; then
12035                   defaultval=yes
12036               else
12037                   defaultval=no
12038               fi
12039           fi
12040
12041           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-searchctrl" >&5
12042 echo $ECHO_N "checking for --${enablestring:-enable}-searchctrl... $ECHO_C" >&6; }
12043           # Check whether --enable-searchctrl was given.
12044 if test "${enable_searchctrl+set}" = set; then
12045   enableval=$enable_searchctrl;
12046                           if test "$enableval" = yes; then
12047                             wx_cv_use_searchctrl='wxUSE_SEARCHCTRL=yes'
12048                           else
12049                             wx_cv_use_searchctrl='wxUSE_SEARCHCTRL=no'
12050                           fi
12051
12052 else
12053
12054                           wx_cv_use_searchctrl='wxUSE_SEARCHCTRL=${'DEFAULT_wxUSE_SEARCHCTRL":-$defaultval}"
12055
12056 fi
12057
12058
12059           eval "$wx_cv_use_searchctrl"
12060
12061           if test x"$enablestring" = xdisable; then
12062             if test $wxUSE_SEARCHCTRL = no; then
12063               result=yes
12064             else
12065               result=no
12066             fi
12067           else
12068             result=$wxUSE_SEARCHCTRL
12069           fi
12070
12071           { echo "$as_me:$LINENO: result: $result" >&5
12072 echo "${ECHO_T}$result" >&6; }
12073
12074
12075           enablestring=
12076           defaultval=$wxUSE_ALL_FEATURES
12077           if test -z "$defaultval"; then
12078               if test x"$enablestring" = xdisable; then
12079                   defaultval=yes
12080               else
12081                   defaultval=no
12082               fi
12083           fi
12084
12085           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-slider" >&5
12086 echo $ECHO_N "checking for --${enablestring:-enable}-slider... $ECHO_C" >&6; }
12087           # Check whether --enable-slider was given.
12088 if test "${enable_slider+set}" = set; then
12089   enableval=$enable_slider;
12090                           if test "$enableval" = yes; then
12091                             wx_cv_use_slider='wxUSE_SLIDER=yes'
12092                           else
12093                             wx_cv_use_slider='wxUSE_SLIDER=no'
12094                           fi
12095
12096 else
12097
12098                           wx_cv_use_slider='wxUSE_SLIDER=${'DEFAULT_wxUSE_SLIDER":-$defaultval}"
12099
12100 fi
12101
12102
12103           eval "$wx_cv_use_slider"
12104
12105           if test x"$enablestring" = xdisable; then
12106             if test $wxUSE_SLIDER = no; then
12107               result=yes
12108             else
12109               result=no
12110             fi
12111           else
12112             result=$wxUSE_SLIDER
12113           fi
12114
12115           { echo "$as_me:$LINENO: result: $result" >&5
12116 echo "${ECHO_T}$result" >&6; }
12117
12118
12119           enablestring=
12120           defaultval=$wxUSE_ALL_FEATURES
12121           if test -z "$defaultval"; then
12122               if test x"$enablestring" = xdisable; then
12123                   defaultval=yes
12124               else
12125                   defaultval=no
12126               fi
12127           fi
12128
12129           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinbtn" >&5
12130 echo $ECHO_N "checking for --${enablestring:-enable}-spinbtn... $ECHO_C" >&6; }
12131           # Check whether --enable-spinbtn was given.
12132 if test "${enable_spinbtn+set}" = set; then
12133   enableval=$enable_spinbtn;
12134                           if test "$enableval" = yes; then
12135                             wx_cv_use_spinbtn='wxUSE_SPINBTN=yes'
12136                           else
12137                             wx_cv_use_spinbtn='wxUSE_SPINBTN=no'
12138                           fi
12139
12140 else
12141
12142                           wx_cv_use_spinbtn='wxUSE_SPINBTN=${'DEFAULT_wxUSE_SPINBTN":-$defaultval}"
12143
12144 fi
12145
12146
12147           eval "$wx_cv_use_spinbtn"
12148
12149           if test x"$enablestring" = xdisable; then
12150             if test $wxUSE_SPINBTN = no; then
12151               result=yes
12152             else
12153               result=no
12154             fi
12155           else
12156             result=$wxUSE_SPINBTN
12157           fi
12158
12159           { echo "$as_me:$LINENO: result: $result" >&5
12160 echo "${ECHO_T}$result" >&6; }
12161
12162
12163           enablestring=
12164           defaultval=$wxUSE_ALL_FEATURES
12165           if test -z "$defaultval"; then
12166               if test x"$enablestring" = xdisable; then
12167                   defaultval=yes
12168               else
12169                   defaultval=no
12170               fi
12171           fi
12172
12173           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinctrl" >&5
12174 echo $ECHO_N "checking for --${enablestring:-enable}-spinctrl... $ECHO_C" >&6; }
12175           # Check whether --enable-spinctrl was given.
12176 if test "${enable_spinctrl+set}" = set; then
12177   enableval=$enable_spinctrl;
12178                           if test "$enableval" = yes; then
12179                             wx_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
12180                           else
12181                             wx_cv_use_spinctrl='wxUSE_SPINCTRL=no'
12182                           fi
12183
12184 else
12185
12186                           wx_cv_use_spinctrl='wxUSE_SPINCTRL=${'DEFAULT_wxUSE_SPINCTRL":-$defaultval}"
12187
12188 fi
12189
12190
12191           eval "$wx_cv_use_spinctrl"
12192
12193           if test x"$enablestring" = xdisable; then
12194             if test $wxUSE_SPINCTRL = no; then
12195               result=yes
12196             else
12197               result=no
12198             fi
12199           else
12200             result=$wxUSE_SPINCTRL
12201           fi
12202
12203           { echo "$as_me:$LINENO: result: $result" >&5
12204 echo "${ECHO_T}$result" >&6; }
12205
12206
12207           enablestring=
12208           defaultval=$wxUSE_ALL_FEATURES
12209           if test -z "$defaultval"; then
12210               if test x"$enablestring" = xdisable; then
12211                   defaultval=yes
12212               else
12213                   defaultval=no
12214               fi
12215           fi
12216
12217           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splitter" >&5
12218 echo $ECHO_N "checking for --${enablestring:-enable}-splitter... $ECHO_C" >&6; }
12219           # Check whether --enable-splitter was given.
12220 if test "${enable_splitter+set}" = set; then
12221   enableval=$enable_splitter;
12222                           if test "$enableval" = yes; then
12223                             wx_cv_use_splitter='wxUSE_SPLITTER=yes'
12224                           else
12225                             wx_cv_use_splitter='wxUSE_SPLITTER=no'
12226                           fi
12227
12228 else
12229
12230                           wx_cv_use_splitter='wxUSE_SPLITTER=${'DEFAULT_wxUSE_SPLITTER":-$defaultval}"
12231
12232 fi
12233
12234
12235           eval "$wx_cv_use_splitter"
12236
12237           if test x"$enablestring" = xdisable; then
12238             if test $wxUSE_SPLITTER = no; then
12239               result=yes
12240             else
12241               result=no
12242             fi
12243           else
12244             result=$wxUSE_SPLITTER
12245           fi
12246
12247           { echo "$as_me:$LINENO: result: $result" >&5
12248 echo "${ECHO_T}$result" >&6; }
12249
12250
12251           enablestring=
12252           defaultval=$wxUSE_ALL_FEATURES
12253           if test -z "$defaultval"; then
12254               if test x"$enablestring" = xdisable; then
12255                   defaultval=yes
12256               else
12257                   defaultval=no
12258               fi
12259           fi
12260
12261           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbmp" >&5
12262 echo $ECHO_N "checking for --${enablestring:-enable}-statbmp... $ECHO_C" >&6; }
12263           # Check whether --enable-statbmp was given.
12264 if test "${enable_statbmp+set}" = set; then
12265   enableval=$enable_statbmp;
12266                           if test "$enableval" = yes; then
12267                             wx_cv_use_statbmp='wxUSE_STATBMP=yes'
12268                           else
12269                             wx_cv_use_statbmp='wxUSE_STATBMP=no'
12270                           fi
12271
12272 else
12273
12274                           wx_cv_use_statbmp='wxUSE_STATBMP=${'DEFAULT_wxUSE_STATBMP":-$defaultval}"
12275
12276 fi
12277
12278
12279           eval "$wx_cv_use_statbmp"
12280
12281           if test x"$enablestring" = xdisable; then
12282             if test $wxUSE_STATBMP = no; then
12283               result=yes
12284             else
12285               result=no
12286             fi
12287           else
12288             result=$wxUSE_STATBMP
12289           fi
12290
12291           { echo "$as_me:$LINENO: result: $result" >&5
12292 echo "${ECHO_T}$result" >&6; }
12293
12294
12295           enablestring=
12296           defaultval=$wxUSE_ALL_FEATURES
12297           if test -z "$defaultval"; then
12298               if test x"$enablestring" = xdisable; then
12299                   defaultval=yes
12300               else
12301                   defaultval=no
12302               fi
12303           fi
12304
12305           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbox" >&5
12306 echo $ECHO_N "checking for --${enablestring:-enable}-statbox... $ECHO_C" >&6; }
12307           # Check whether --enable-statbox was given.
12308 if test "${enable_statbox+set}" = set; then
12309   enableval=$enable_statbox;
12310                           if test "$enableval" = yes; then
12311                             wx_cv_use_statbox='wxUSE_STATBOX=yes'
12312                           else
12313                             wx_cv_use_statbox='wxUSE_STATBOX=no'
12314                           fi
12315
12316 else
12317
12318                           wx_cv_use_statbox='wxUSE_STATBOX=${'DEFAULT_wxUSE_STATBOX":-$defaultval}"
12319
12320 fi
12321
12322
12323           eval "$wx_cv_use_statbox"
12324
12325           if test x"$enablestring" = xdisable; then
12326             if test $wxUSE_STATBOX = no; then
12327               result=yes
12328             else
12329               result=no
12330             fi
12331           else
12332             result=$wxUSE_STATBOX
12333           fi
12334
12335           { echo "$as_me:$LINENO: result: $result" >&5
12336 echo "${ECHO_T}$result" >&6; }
12337
12338
12339           enablestring=
12340           defaultval=$wxUSE_ALL_FEATURES
12341           if test -z "$defaultval"; then
12342               if test x"$enablestring" = xdisable; then
12343                   defaultval=yes
12344               else
12345                   defaultval=no
12346               fi
12347           fi
12348
12349           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statline" >&5
12350 echo $ECHO_N "checking for --${enablestring:-enable}-statline... $ECHO_C" >&6; }
12351           # Check whether --enable-statline was given.
12352 if test "${enable_statline+set}" = set; then
12353   enableval=$enable_statline;
12354                           if test "$enableval" = yes; then
12355                             wx_cv_use_statline='wxUSE_STATLINE=yes'
12356                           else
12357                             wx_cv_use_statline='wxUSE_STATLINE=no'
12358                           fi
12359
12360 else
12361
12362                           wx_cv_use_statline='wxUSE_STATLINE=${'DEFAULT_wxUSE_STATLINE":-$defaultval}"
12363
12364 fi
12365
12366
12367           eval "$wx_cv_use_statline"
12368
12369           if test x"$enablestring" = xdisable; then
12370             if test $wxUSE_STATLINE = no; then
12371               result=yes
12372             else
12373               result=no
12374             fi
12375           else
12376             result=$wxUSE_STATLINE
12377           fi
12378
12379           { echo "$as_me:$LINENO: result: $result" >&5
12380 echo "${ECHO_T}$result" >&6; }
12381
12382
12383           enablestring=
12384           defaultval=$wxUSE_ALL_FEATURES
12385           if test -z "$defaultval"; then
12386               if test x"$enablestring" = xdisable; then
12387                   defaultval=yes
12388               else
12389                   defaultval=no
12390               fi
12391           fi
12392
12393           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stattext" >&5
12394 echo $ECHO_N "checking for --${enablestring:-enable}-stattext... $ECHO_C" >&6; }
12395           # Check whether --enable-stattext was given.
12396 if test "${enable_stattext+set}" = set; then
12397   enableval=$enable_stattext;
12398                           if test "$enableval" = yes; then
12399                             wx_cv_use_stattext='wxUSE_STATTEXT=yes'
12400                           else
12401                             wx_cv_use_stattext='wxUSE_STATTEXT=no'
12402                           fi
12403
12404 else
12405
12406                           wx_cv_use_stattext='wxUSE_STATTEXT=${'DEFAULT_wxUSE_STATTEXT":-$defaultval}"
12407
12408 fi
12409
12410
12411           eval "$wx_cv_use_stattext"
12412
12413           if test x"$enablestring" = xdisable; then
12414             if test $wxUSE_STATTEXT = no; then
12415               result=yes
12416             else
12417               result=no
12418             fi
12419           else
12420             result=$wxUSE_STATTEXT
12421           fi
12422
12423           { echo "$as_me:$LINENO: result: $result" >&5
12424 echo "${ECHO_T}$result" >&6; }
12425
12426
12427           enablestring=
12428           defaultval=$wxUSE_ALL_FEATURES
12429           if test -z "$defaultval"; then
12430               if test x"$enablestring" = xdisable; then
12431                   defaultval=yes
12432               else
12433                   defaultval=no
12434               fi
12435           fi
12436
12437           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statusbar" >&5
12438 echo $ECHO_N "checking for --${enablestring:-enable}-statusbar... $ECHO_C" >&6; }
12439           # Check whether --enable-statusbar was given.
12440 if test "${enable_statusbar+set}" = set; then
12441   enableval=$enable_statusbar;
12442                           if test "$enableval" = yes; then
12443                             wx_cv_use_statusbar='wxUSE_STATUSBAR=yes'
12444                           else
12445                             wx_cv_use_statusbar='wxUSE_STATUSBAR=no'
12446                           fi
12447
12448 else
12449
12450                           wx_cv_use_statusbar='wxUSE_STATUSBAR=${'DEFAULT_wxUSE_STATUSBAR":-$defaultval}"
12451
12452 fi
12453
12454
12455           eval "$wx_cv_use_statusbar"
12456
12457           if test x"$enablestring" = xdisable; then
12458             if test $wxUSE_STATUSBAR = no; then
12459               result=yes
12460             else
12461               result=no
12462             fi
12463           else
12464             result=$wxUSE_STATUSBAR
12465           fi
12466
12467           { echo "$as_me:$LINENO: result: $result" >&5
12468 echo "${ECHO_T}$result" >&6; }
12469
12470
12471           enablestring=
12472           defaultval=$wxUSE_ALL_FEATURES
12473           if test -z "$defaultval"; then
12474               if test x"$enablestring" = xdisable; then
12475                   defaultval=yes
12476               else
12477                   defaultval=no
12478               fi
12479           fi
12480
12481           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-taskbaricon" >&5
12482 echo $ECHO_N "checking for --${enablestring:-enable}-taskbaricon... $ECHO_C" >&6; }
12483           # Check whether --enable-taskbaricon was given.
12484 if test "${enable_taskbaricon+set}" = set; then
12485   enableval=$enable_taskbaricon;
12486                           if test "$enableval" = yes; then
12487                             wx_cv_use_taskbaricon='wxUSE_TASKBARICON=yes'
12488                           else
12489                             wx_cv_use_taskbaricon='wxUSE_TASKBARICON=no'
12490                           fi
12491
12492 else
12493
12494                           wx_cv_use_taskbaricon='wxUSE_TASKBARICON=${'DEFAULT_wxUSE_TASKBARICON":-$defaultval}"
12495
12496 fi
12497
12498
12499           eval "$wx_cv_use_taskbaricon"
12500
12501           if test x"$enablestring" = xdisable; then
12502             if test $wxUSE_TASKBARICON = no; then
12503               result=yes
12504             else
12505               result=no
12506             fi
12507           else
12508             result=$wxUSE_TASKBARICON
12509           fi
12510
12511           { echo "$as_me:$LINENO: result: $result" >&5
12512 echo "${ECHO_T}$result" >&6; }
12513
12514
12515           enablestring=
12516           defaultval=$wxUSE_ALL_FEATURES
12517           if test -z "$defaultval"; then
12518               if test x"$enablestring" = xdisable; then
12519                   defaultval=yes
12520               else
12521                   defaultval=no
12522               fi
12523           fi
12524
12525           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarnative" >&5
12526 echo $ECHO_N "checking for --${enablestring:-enable}-tbarnative... $ECHO_C" >&6; }
12527           # Check whether --enable-tbarnative was given.
12528 if test "${enable_tbarnative+set}" = set; then
12529   enableval=$enable_tbarnative;
12530                           if test "$enableval" = yes; then
12531                             wx_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
12532                           else
12533                             wx_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
12534                           fi
12535
12536 else
12537
12538                           wx_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=${'DEFAULT_wxUSE_TOOLBAR_NATIVE":-$defaultval}"
12539
12540 fi
12541
12542
12543           eval "$wx_cv_use_tbarnative"
12544
12545           if test x"$enablestring" = xdisable; then
12546             if test $wxUSE_TOOLBAR_NATIVE = no; then
12547               result=yes
12548             else
12549               result=no
12550             fi
12551           else
12552             result=$wxUSE_TOOLBAR_NATIVE
12553           fi
12554
12555           { echo "$as_me:$LINENO: result: $result" >&5
12556 echo "${ECHO_T}$result" >&6; }
12557
12558
12559           enablestring=
12560           defaultval=$wxUSE_ALL_FEATURES
12561           if test -z "$defaultval"; then
12562               if test x"$enablestring" = xdisable; then
12563                   defaultval=yes
12564               else
12565                   defaultval=no
12566               fi
12567           fi
12568
12569           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textctrl" >&5
12570 echo $ECHO_N "checking for --${enablestring:-enable}-textctrl... $ECHO_C" >&6; }
12571           # Check whether --enable-textctrl was given.
12572 if test "${enable_textctrl+set}" = set; then
12573   enableval=$enable_textctrl;
12574                           if test "$enableval" = yes; then
12575                             wx_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
12576                           else
12577                             wx_cv_use_textctrl='wxUSE_TEXTCTRL=no'
12578                           fi
12579
12580 else
12581
12582                           wx_cv_use_textctrl='wxUSE_TEXTCTRL=${'DEFAULT_wxUSE_TEXTCTRL":-$defaultval}"
12583
12584 fi
12585
12586
12587           eval "$wx_cv_use_textctrl"
12588
12589           if test x"$enablestring" = xdisable; then
12590             if test $wxUSE_TEXTCTRL = no; then
12591               result=yes
12592             else
12593               result=no
12594             fi
12595           else
12596             result=$wxUSE_TEXTCTRL
12597           fi
12598
12599           { echo "$as_me:$LINENO: result: $result" >&5
12600 echo "${ECHO_T}$result" >&6; }
12601
12602
12603           enablestring=
12604           defaultval=$wxUSE_ALL_FEATURES
12605           if test -z "$defaultval"; then
12606               if test x"$enablestring" = xdisable; then
12607                   defaultval=yes
12608               else
12609                   defaultval=no
12610               fi
12611           fi
12612
12613           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipwindow" >&5
12614 echo $ECHO_N "checking for --${enablestring:-enable}-tipwindow... $ECHO_C" >&6; }
12615           # Check whether --enable-tipwindow was given.
12616 if test "${enable_tipwindow+set}" = set; then
12617   enableval=$enable_tipwindow;
12618                           if test "$enableval" = yes; then
12619                             wx_cv_use_tipwindow='wxUSE_TIPWINDOW=yes'
12620                           else
12621                             wx_cv_use_tipwindow='wxUSE_TIPWINDOW=no'
12622                           fi
12623
12624 else
12625
12626                           wx_cv_use_tipwindow='wxUSE_TIPWINDOW=${'DEFAULT_wxUSE_TIPWINDOW":-$defaultval}"
12627
12628 fi
12629
12630
12631           eval "$wx_cv_use_tipwindow"
12632
12633           if test x"$enablestring" = xdisable; then
12634             if test $wxUSE_TIPWINDOW = no; then
12635               result=yes
12636             else
12637               result=no
12638             fi
12639           else
12640             result=$wxUSE_TIPWINDOW
12641           fi
12642
12643           { echo "$as_me:$LINENO: result: $result" >&5
12644 echo "${ECHO_T}$result" >&6; }
12645
12646
12647           enablestring=
12648           defaultval=$wxUSE_ALL_FEATURES
12649           if test -z "$defaultval"; then
12650               if test x"$enablestring" = xdisable; then
12651                   defaultval=yes
12652               else
12653                   defaultval=no
12654               fi
12655           fi
12656
12657           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-togglebtn" >&5
12658 echo $ECHO_N "checking for --${enablestring:-enable}-togglebtn... $ECHO_C" >&6; }
12659           # Check whether --enable-togglebtn was given.
12660 if test "${enable_togglebtn+set}" = set; then
12661   enableval=$enable_togglebtn;
12662                           if test "$enableval" = yes; then
12663                             wx_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
12664                           else
12665                             wx_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
12666                           fi
12667
12668 else
12669
12670                           wx_cv_use_togglebtn='wxUSE_TOGGLEBTN=${'DEFAULT_wxUSE_TOGGLEBTN":-$defaultval}"
12671
12672 fi
12673
12674
12675           eval "$wx_cv_use_togglebtn"
12676
12677           if test x"$enablestring" = xdisable; then
12678             if test $wxUSE_TOGGLEBTN = no; then
12679               result=yes
12680             else
12681               result=no
12682             fi
12683           else
12684             result=$wxUSE_TOGGLEBTN
12685           fi
12686
12687           { echo "$as_me:$LINENO: result: $result" >&5
12688 echo "${ECHO_T}$result" >&6; }
12689
12690
12691           enablestring=
12692           defaultval=$wxUSE_ALL_FEATURES
12693           if test -z "$defaultval"; then
12694               if test x"$enablestring" = xdisable; then
12695                   defaultval=yes
12696               else
12697                   defaultval=no
12698               fi
12699           fi
12700
12701           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbar" >&5
12702 echo $ECHO_N "checking for --${enablestring:-enable}-toolbar... $ECHO_C" >&6; }
12703           # Check whether --enable-toolbar was given.
12704 if test "${enable_toolbar+set}" = set; then
12705   enableval=$enable_toolbar;
12706                           if test "$enableval" = yes; then
12707                             wx_cv_use_toolbar='wxUSE_TOOLBAR=yes'
12708                           else
12709                             wx_cv_use_toolbar='wxUSE_TOOLBAR=no'
12710                           fi
12711
12712 else
12713
12714                           wx_cv_use_toolbar='wxUSE_TOOLBAR=${'DEFAULT_wxUSE_TOOLBAR":-$defaultval}"
12715
12716 fi
12717
12718
12719           eval "$wx_cv_use_toolbar"
12720
12721           if test x"$enablestring" = xdisable; then
12722             if test $wxUSE_TOOLBAR = no; then
12723               result=yes
12724             else
12725               result=no
12726             fi
12727           else
12728             result=$wxUSE_TOOLBAR
12729           fi
12730
12731           { echo "$as_me:$LINENO: result: $result" >&5
12732 echo "${ECHO_T}$result" >&6; }
12733
12734
12735           enablestring=
12736           defaultval=$wxUSE_ALL_FEATURES
12737           if test -z "$defaultval"; then
12738               if test x"$enablestring" = xdisable; then
12739                   defaultval=yes
12740               else
12741                   defaultval=no
12742               fi
12743           fi
12744
12745           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbook" >&5
12746 echo $ECHO_N "checking for --${enablestring:-enable}-toolbook... $ECHO_C" >&6; }
12747           # Check whether --enable-toolbook was given.
12748 if test "${enable_toolbook+set}" = set; then
12749   enableval=$enable_toolbook;
12750                           if test "$enableval" = yes; then
12751                             wx_cv_use_toolbook='wxUSE_TOOLBOOK=yes'
12752                           else
12753                             wx_cv_use_toolbook='wxUSE_TOOLBOOK=no'
12754                           fi
12755
12756 else
12757
12758                           wx_cv_use_toolbook='wxUSE_TOOLBOOK=${'DEFAULT_wxUSE_TOOLBOOK":-$defaultval}"
12759
12760 fi
12761
12762
12763           eval "$wx_cv_use_toolbook"
12764
12765           if test x"$enablestring" = xdisable; then
12766             if test $wxUSE_TOOLBOOK = no; then
12767               result=yes
12768             else
12769               result=no
12770             fi
12771           else
12772             result=$wxUSE_TOOLBOOK
12773           fi
12774
12775           { echo "$as_me:$LINENO: result: $result" >&5
12776 echo "${ECHO_T}$result" >&6; }
12777
12778
12779           enablestring=
12780           defaultval=$wxUSE_ALL_FEATURES
12781           if test -z "$defaultval"; then
12782               if test x"$enablestring" = xdisable; then
12783                   defaultval=yes
12784               else
12785                   defaultval=no
12786               fi
12787           fi
12788
12789           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treebook" >&5
12790 echo $ECHO_N "checking for --${enablestring:-enable}-treebook... $ECHO_C" >&6; }
12791           # Check whether --enable-treebook was given.
12792 if test "${enable_treebook+set}" = set; then
12793   enableval=$enable_treebook;
12794                           if test "$enableval" = yes; then
12795                             wx_cv_use_treebook='wxUSE_TREEBOOK=yes'
12796                           else
12797                             wx_cv_use_treebook='wxUSE_TREEBOOK=no'
12798                           fi
12799
12800 else
12801
12802                           wx_cv_use_treebook='wxUSE_TREEBOOK=${'DEFAULT_wxUSE_TREEBOOK":-$defaultval}"
12803
12804 fi
12805
12806
12807           eval "$wx_cv_use_treebook"
12808
12809           if test x"$enablestring" = xdisable; then
12810             if test $wxUSE_TREEBOOK = no; then
12811               result=yes
12812             else
12813               result=no
12814             fi
12815           else
12816             result=$wxUSE_TREEBOOK
12817           fi
12818
12819           { echo "$as_me:$LINENO: result: $result" >&5
12820 echo "${ECHO_T}$result" >&6; }
12821
12822
12823           enablestring=
12824           defaultval=$wxUSE_ALL_FEATURES
12825           if test -z "$defaultval"; then
12826               if test x"$enablestring" = xdisable; then
12827                   defaultval=yes
12828               else
12829                   defaultval=no
12830               fi
12831           fi
12832
12833           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treectrl" >&5
12834 echo $ECHO_N "checking for --${enablestring:-enable}-treectrl... $ECHO_C" >&6; }
12835           # Check whether --enable-treectrl was given.
12836 if test "${enable_treectrl+set}" = set; then
12837   enableval=$enable_treectrl;
12838                           if test "$enableval" = yes; then
12839                             wx_cv_use_treectrl='wxUSE_TREECTRL=yes'
12840                           else
12841                             wx_cv_use_treectrl='wxUSE_TREECTRL=no'
12842                           fi
12843
12844 else
12845
12846                           wx_cv_use_treectrl='wxUSE_TREECTRL=${'DEFAULT_wxUSE_TREECTRL":-$defaultval}"
12847
12848 fi
12849
12850
12851           eval "$wx_cv_use_treectrl"
12852
12853           if test x"$enablestring" = xdisable; then
12854             if test $wxUSE_TREECTRL = no; then
12855               result=yes
12856             else
12857               result=no
12858             fi
12859           else
12860             result=$wxUSE_TREECTRL
12861           fi
12862
12863           { echo "$as_me:$LINENO: result: $result" >&5
12864 echo "${ECHO_T}$result" >&6; }
12865
12866
12867           enablestring=
12868           defaultval=$wxUSE_ALL_FEATURES
12869           if test -z "$defaultval"; then
12870               if test x"$enablestring" = xdisable; then
12871                   defaultval=yes
12872               else
12873                   defaultval=no
12874               fi
12875           fi
12876
12877           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treelist" >&5
12878 echo $ECHO_N "checking for --${enablestring:-enable}-treelist... $ECHO_C" >&6; }
12879           # Check whether --enable-treelist was given.
12880 if test "${enable_treelist+set}" = set; then
12881   enableval=$enable_treelist;
12882                           if test "$enableval" = yes; then
12883                             wx_cv_use_treelist='wxUSE_TREELISTCTRL=yes'
12884                           else
12885                             wx_cv_use_treelist='wxUSE_TREELISTCTRL=no'
12886                           fi
12887
12888 else
12889
12890                           wx_cv_use_treelist='wxUSE_TREELISTCTRL=${'DEFAULT_wxUSE_TREELISTCTRL":-$defaultval}"
12891
12892 fi
12893
12894
12895           eval "$wx_cv_use_treelist"
12896
12897           if test x"$enablestring" = xdisable; then
12898             if test $wxUSE_TREELISTCTRL = no; then
12899               result=yes
12900             else
12901               result=no
12902             fi
12903           else
12904             result=$wxUSE_TREELISTCTRL
12905           fi
12906
12907           { echo "$as_me:$LINENO: result: $result" >&5
12908 echo "${ECHO_T}$result" >&6; }
12909
12910
12911
12912
12913           enablestring=
12914           defaultval=$wxUSE_ALL_FEATURES
12915           if test -z "$defaultval"; then
12916               if test x"$enablestring" = xdisable; then
12917                   defaultval=yes
12918               else
12919                   defaultval=no
12920               fi
12921           fi
12922
12923           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-commondlg" >&5
12924 echo $ECHO_N "checking for --${enablestring:-enable}-commondlg... $ECHO_C" >&6; }
12925           # Check whether --enable-commondlg was given.
12926 if test "${enable_commondlg+set}" = set; then
12927   enableval=$enable_commondlg;
12928                           if test "$enableval" = yes; then
12929                             wx_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
12930                           else
12931                             wx_cv_use_commondlg='wxUSE_COMMONDLGS=no'
12932                           fi
12933
12934 else
12935
12936                           wx_cv_use_commondlg='wxUSE_COMMONDLGS=${'DEFAULT_wxUSE_COMMONDLGS":-$defaultval}"
12937
12938 fi
12939
12940
12941           eval "$wx_cv_use_commondlg"
12942
12943           if test x"$enablestring" = xdisable; then
12944             if test $wxUSE_COMMONDLGS = no; then
12945               result=yes
12946             else
12947               result=no
12948             fi
12949           else
12950             result=$wxUSE_COMMONDLGS
12951           fi
12952
12953           { echo "$as_me:$LINENO: result: $result" >&5
12954 echo "${ECHO_T}$result" >&6; }
12955
12956
12957           enablestring=
12958           defaultval=$wxUSE_ALL_FEATURES
12959           if test -z "$defaultval"; then
12960               if test x"$enablestring" = xdisable; then
12961                   defaultval=yes
12962               else
12963                   defaultval=no
12964               fi
12965           fi
12966
12967           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-aboutdlg" >&5
12968 echo $ECHO_N "checking for --${enablestring:-enable}-aboutdlg... $ECHO_C" >&6; }
12969           # Check whether --enable-aboutdlg was given.
12970 if test "${enable_aboutdlg+set}" = set; then
12971   enableval=$enable_aboutdlg;
12972                           if test "$enableval" = yes; then
12973                             wx_cv_use_aboutdlg='wxUSE_ABOUTDLG=yes'
12974                           else
12975                             wx_cv_use_aboutdlg='wxUSE_ABOUTDLG=no'
12976                           fi
12977
12978 else
12979
12980                           wx_cv_use_aboutdlg='wxUSE_ABOUTDLG=${'DEFAULT_wxUSE_ABOUTDLG":-$defaultval}"
12981
12982 fi
12983
12984
12985           eval "$wx_cv_use_aboutdlg"
12986
12987           if test x"$enablestring" = xdisable; then
12988             if test $wxUSE_ABOUTDLG = no; then
12989               result=yes
12990             else
12991               result=no
12992             fi
12993           else
12994             result=$wxUSE_ABOUTDLG
12995           fi
12996
12997           { echo "$as_me:$LINENO: result: $result" >&5
12998 echo "${ECHO_T}$result" >&6; }
12999
13000
13001           enablestring=
13002           defaultval=$wxUSE_ALL_FEATURES
13003           if test -z "$defaultval"; then
13004               if test x"$enablestring" = xdisable; then
13005                   defaultval=yes
13006               else
13007                   defaultval=no
13008               fi
13009           fi
13010
13011           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicedlg" >&5
13012 echo $ECHO_N "checking for --${enablestring:-enable}-choicedlg... $ECHO_C" >&6; }
13013           # Check whether --enable-choicedlg was given.
13014 if test "${enable_choicedlg+set}" = set; then
13015   enableval=$enable_choicedlg;
13016                           if test "$enableval" = yes; then
13017                             wx_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
13018                           else
13019                             wx_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
13020                           fi
13021
13022 else
13023
13024                           wx_cv_use_choicedlg='wxUSE_CHOICEDLG=${'DEFAULT_wxUSE_CHOICEDLG":-$defaultval}"
13025
13026 fi
13027
13028
13029           eval "$wx_cv_use_choicedlg"
13030
13031           if test x"$enablestring" = xdisable; then
13032             if test $wxUSE_CHOICEDLG = no; then
13033               result=yes
13034             else
13035               result=no
13036             fi
13037           else
13038             result=$wxUSE_CHOICEDLG
13039           fi
13040
13041           { echo "$as_me:$LINENO: result: $result" >&5
13042 echo "${ECHO_T}$result" >&6; }
13043
13044
13045           enablestring=
13046           defaultval=$wxUSE_ALL_FEATURES
13047           if test -z "$defaultval"; then
13048               if test x"$enablestring" = xdisable; then
13049                   defaultval=yes
13050               else
13051                   defaultval=no
13052               fi
13053           fi
13054
13055           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-coldlg" >&5
13056 echo $ECHO_N "checking for --${enablestring:-enable}-coldlg... $ECHO_C" >&6; }
13057           # Check whether --enable-coldlg was given.
13058 if test "${enable_coldlg+set}" = set; then
13059   enableval=$enable_coldlg;
13060                           if test "$enableval" = yes; then
13061                             wx_cv_use_coldlg='wxUSE_COLOURDLG=yes'
13062                           else
13063                             wx_cv_use_coldlg='wxUSE_COLOURDLG=no'
13064                           fi
13065
13066 else
13067
13068                           wx_cv_use_coldlg='wxUSE_COLOURDLG=${'DEFAULT_wxUSE_COLOURDLG":-$defaultval}"
13069
13070 fi
13071
13072
13073           eval "$wx_cv_use_coldlg"
13074
13075           if test x"$enablestring" = xdisable; then
13076             if test $wxUSE_COLOURDLG = no; then
13077               result=yes
13078             else
13079               result=no
13080             fi
13081           else
13082             result=$wxUSE_COLOURDLG
13083           fi
13084
13085           { echo "$as_me:$LINENO: result: $result" >&5
13086 echo "${ECHO_T}$result" >&6; }
13087
13088
13089           enablestring=
13090           defaultval=$wxUSE_ALL_FEATURES
13091           if test -z "$defaultval"; then
13092               if test x"$enablestring" = xdisable; then
13093                   defaultval=yes
13094               else
13095                   defaultval=no
13096               fi
13097           fi
13098
13099           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filedlg" >&5
13100 echo $ECHO_N "checking for --${enablestring:-enable}-filedlg... $ECHO_C" >&6; }
13101           # Check whether --enable-filedlg was given.
13102 if test "${enable_filedlg+set}" = set; then
13103   enableval=$enable_filedlg;
13104                           if test "$enableval" = yes; then
13105                             wx_cv_use_filedlg='wxUSE_FILEDLG=yes'
13106                           else
13107                             wx_cv_use_filedlg='wxUSE_FILEDLG=no'
13108                           fi
13109
13110 else
13111
13112                           wx_cv_use_filedlg='wxUSE_FILEDLG=${'DEFAULT_wxUSE_FILEDLG":-$defaultval}"
13113
13114 fi
13115
13116
13117           eval "$wx_cv_use_filedlg"
13118
13119           if test x"$enablestring" = xdisable; then
13120             if test $wxUSE_FILEDLG = no; then
13121               result=yes
13122             else
13123               result=no
13124             fi
13125           else
13126             result=$wxUSE_FILEDLG
13127           fi
13128
13129           { echo "$as_me:$LINENO: result: $result" >&5
13130 echo "${ECHO_T}$result" >&6; }
13131
13132
13133           enablestring=
13134           defaultval=$wxUSE_ALL_FEATURES
13135           if test -z "$defaultval"; then
13136               if test x"$enablestring" = xdisable; then
13137                   defaultval=yes
13138               else
13139                   defaultval=no
13140               fi
13141           fi
13142
13143           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-finddlg" >&5
13144 echo $ECHO_N "checking for --${enablestring:-enable}-finddlg... $ECHO_C" >&6; }
13145           # Check whether --enable-finddlg was given.
13146 if test "${enable_finddlg+set}" = set; then
13147   enableval=$enable_finddlg;
13148                           if test "$enableval" = yes; then
13149                             wx_cv_use_finddlg='wxUSE_FINDREPLDLG=yes'
13150                           else
13151                             wx_cv_use_finddlg='wxUSE_FINDREPLDLG=no'
13152                           fi
13153
13154 else
13155
13156                           wx_cv_use_finddlg='wxUSE_FINDREPLDLG=${'DEFAULT_wxUSE_FINDREPLDLG":-$defaultval}"
13157
13158 fi
13159
13160
13161           eval "$wx_cv_use_finddlg"
13162
13163           if test x"$enablestring" = xdisable; then
13164             if test $wxUSE_FINDREPLDLG = no; then
13165               result=yes
13166             else
13167               result=no
13168             fi
13169           else
13170             result=$wxUSE_FINDREPLDLG
13171           fi
13172
13173           { echo "$as_me:$LINENO: result: $result" >&5
13174 echo "${ECHO_T}$result" >&6; }
13175
13176
13177           enablestring=
13178           defaultval=$wxUSE_ALL_FEATURES
13179           if test -z "$defaultval"; then
13180               if test x"$enablestring" = xdisable; then
13181                   defaultval=yes
13182               else
13183                   defaultval=no
13184               fi
13185           fi
13186
13187           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontdlg" >&5
13188 echo $ECHO_N "checking for --${enablestring:-enable}-fontdlg... $ECHO_C" >&6; }
13189           # Check whether --enable-fontdlg was given.
13190 if test "${enable_fontdlg+set}" = set; then
13191   enableval=$enable_fontdlg;
13192                           if test "$enableval" = yes; then
13193                             wx_cv_use_fontdlg='wxUSE_FONTDLG=yes'
13194                           else
13195                             wx_cv_use_fontdlg='wxUSE_FONTDLG=no'
13196                           fi
13197
13198 else
13199
13200                           wx_cv_use_fontdlg='wxUSE_FONTDLG=${'DEFAULT_wxUSE_FONTDLG":-$defaultval}"
13201
13202 fi
13203
13204
13205           eval "$wx_cv_use_fontdlg"
13206
13207           if test x"$enablestring" = xdisable; then
13208             if test $wxUSE_FONTDLG = no; then
13209               result=yes
13210             else
13211               result=no
13212             fi
13213           else
13214             result=$wxUSE_FONTDLG
13215           fi
13216
13217           { echo "$as_me:$LINENO: result: $result" >&5
13218 echo "${ECHO_T}$result" >&6; }
13219
13220
13221           enablestring=
13222           defaultval=$wxUSE_ALL_FEATURES
13223           if test -z "$defaultval"; then
13224               if test x"$enablestring" = xdisable; then
13225                   defaultval=yes
13226               else
13227                   defaultval=no
13228               fi
13229           fi
13230
13231           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirdlg" >&5
13232 echo $ECHO_N "checking for --${enablestring:-enable}-dirdlg... $ECHO_C" >&6; }
13233           # Check whether --enable-dirdlg was given.
13234 if test "${enable_dirdlg+set}" = set; then
13235   enableval=$enable_dirdlg;
13236                           if test "$enableval" = yes; then
13237                             wx_cv_use_dirdlg='wxUSE_DIRDLG=yes'
13238                           else
13239                             wx_cv_use_dirdlg='wxUSE_DIRDLG=no'
13240                           fi
13241
13242 else
13243
13244                           wx_cv_use_dirdlg='wxUSE_DIRDLG=${'DEFAULT_wxUSE_DIRDLG":-$defaultval}"
13245
13246 fi
13247
13248
13249           eval "$wx_cv_use_dirdlg"
13250
13251           if test x"$enablestring" = xdisable; then
13252             if test $wxUSE_DIRDLG = no; then
13253               result=yes
13254             else
13255               result=no
13256             fi
13257           else
13258             result=$wxUSE_DIRDLG
13259           fi
13260
13261           { echo "$as_me:$LINENO: result: $result" >&5
13262 echo "${ECHO_T}$result" >&6; }
13263
13264
13265           enablestring=
13266           defaultval=$wxUSE_ALL_FEATURES
13267           if test -z "$defaultval"; then
13268               if test x"$enablestring" = xdisable; then
13269                   defaultval=yes
13270               else
13271                   defaultval=no
13272               fi
13273           fi
13274
13275           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-msgdlg" >&5
13276 echo $ECHO_N "checking for --${enablestring:-enable}-msgdlg... $ECHO_C" >&6; }
13277           # Check whether --enable-msgdlg was given.
13278 if test "${enable_msgdlg+set}" = set; then
13279   enableval=$enable_msgdlg;
13280                           if test "$enableval" = yes; then
13281                             wx_cv_use_msgdlg='wxUSE_MSGDLG=yes'
13282                           else
13283                             wx_cv_use_msgdlg='wxUSE_MSGDLG=no'
13284                           fi
13285
13286 else
13287
13288                           wx_cv_use_msgdlg='wxUSE_MSGDLG=${'DEFAULT_wxUSE_MSGDLG":-$defaultval}"
13289
13290 fi
13291
13292
13293           eval "$wx_cv_use_msgdlg"
13294
13295           if test x"$enablestring" = xdisable; then
13296             if test $wxUSE_MSGDLG = no; then
13297               result=yes
13298             else
13299               result=no
13300             fi
13301           else
13302             result=$wxUSE_MSGDLG
13303           fi
13304
13305           { echo "$as_me:$LINENO: result: $result" >&5
13306 echo "${ECHO_T}$result" >&6; }
13307
13308
13309           enablestring=
13310           defaultval=$wxUSE_ALL_FEATURES
13311           if test -z "$defaultval"; then
13312               if test x"$enablestring" = xdisable; then
13313                   defaultval=yes
13314               else
13315                   defaultval=no
13316               fi
13317           fi
13318
13319           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-numberdlg" >&5
13320 echo $ECHO_N "checking for --${enablestring:-enable}-numberdlg... $ECHO_C" >&6; }
13321           # Check whether --enable-numberdlg was given.
13322 if test "${enable_numberdlg+set}" = set; then
13323   enableval=$enable_numberdlg;
13324                           if test "$enableval" = yes; then
13325                             wx_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
13326                           else
13327                             wx_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
13328                           fi
13329
13330 else
13331
13332                           wx_cv_use_numberdlg='wxUSE_NUMBERDLG=${'DEFAULT_wxUSE_NUMBERDLG":-$defaultval}"
13333
13334 fi
13335
13336
13337           eval "$wx_cv_use_numberdlg"
13338
13339           if test x"$enablestring" = xdisable; then
13340             if test $wxUSE_NUMBERDLG = no; then
13341               result=yes
13342             else
13343               result=no
13344             fi
13345           else
13346             result=$wxUSE_NUMBERDLG
13347           fi
13348
13349           { echo "$as_me:$LINENO: result: $result" >&5
13350 echo "${ECHO_T}$result" >&6; }
13351
13352
13353           enablestring=
13354           defaultval=$wxUSE_ALL_FEATURES
13355           if test -z "$defaultval"; then
13356               if test x"$enablestring" = xdisable; then
13357                   defaultval=yes
13358               else
13359                   defaultval=no
13360               fi
13361           fi
13362
13363           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splash" >&5
13364 echo $ECHO_N "checking for --${enablestring:-enable}-splash... $ECHO_C" >&6; }
13365           # Check whether --enable-splash was given.
13366 if test "${enable_splash+set}" = set; then
13367   enableval=$enable_splash;
13368                           if test "$enableval" = yes; then
13369                             wx_cv_use_splash='wxUSE_SPLASH=yes'
13370                           else
13371                             wx_cv_use_splash='wxUSE_SPLASH=no'
13372                           fi
13373
13374 else
13375
13376                           wx_cv_use_splash='wxUSE_SPLASH=${'DEFAULT_wxUSE_SPLASH":-$defaultval}"
13377
13378 fi
13379
13380
13381           eval "$wx_cv_use_splash"
13382
13383           if test x"$enablestring" = xdisable; then
13384             if test $wxUSE_SPLASH = no; then
13385               result=yes
13386             else
13387               result=no
13388             fi
13389           else
13390             result=$wxUSE_SPLASH
13391           fi
13392
13393           { echo "$as_me:$LINENO: result: $result" >&5
13394 echo "${ECHO_T}$result" >&6; }
13395
13396
13397           enablestring=
13398           defaultval=$wxUSE_ALL_FEATURES
13399           if test -z "$defaultval"; then
13400               if test x"$enablestring" = xdisable; then
13401                   defaultval=yes
13402               else
13403                   defaultval=no
13404               fi
13405           fi
13406
13407           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textdlg" >&5
13408 echo $ECHO_N "checking for --${enablestring:-enable}-textdlg... $ECHO_C" >&6; }
13409           # Check whether --enable-textdlg was given.
13410 if test "${enable_textdlg+set}" = set; then
13411   enableval=$enable_textdlg;
13412                           if test "$enableval" = yes; then
13413                             wx_cv_use_textdlg='wxUSE_TEXTDLG=yes'
13414                           else
13415                             wx_cv_use_textdlg='wxUSE_TEXTDLG=no'
13416                           fi
13417
13418 else
13419
13420                           wx_cv_use_textdlg='wxUSE_TEXTDLG=${'DEFAULT_wxUSE_TEXTDLG":-$defaultval}"
13421
13422 fi
13423
13424
13425           eval "$wx_cv_use_textdlg"
13426
13427           if test x"$enablestring" = xdisable; then
13428             if test $wxUSE_TEXTDLG = no; then
13429               result=yes
13430             else
13431               result=no
13432             fi
13433           else
13434             result=$wxUSE_TEXTDLG
13435           fi
13436
13437           { echo "$as_me:$LINENO: result: $result" >&5
13438 echo "${ECHO_T}$result" >&6; }
13439
13440
13441           enablestring=
13442           defaultval=$wxUSE_ALL_FEATURES
13443           if test -z "$defaultval"; then
13444               if test x"$enablestring" = xdisable; then
13445                   defaultval=yes
13446               else
13447                   defaultval=no
13448               fi
13449           fi
13450
13451           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipdlg" >&5
13452 echo $ECHO_N "checking for --${enablestring:-enable}-tipdlg... $ECHO_C" >&6; }
13453           # Check whether --enable-tipdlg was given.
13454 if test "${enable_tipdlg+set}" = set; then
13455   enableval=$enable_tipdlg;
13456                           if test "$enableval" = yes; then
13457                             wx_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
13458                           else
13459                             wx_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
13460                           fi
13461
13462 else
13463
13464                           wx_cv_use_tipdlg='wxUSE_STARTUP_TIPS=${'DEFAULT_wxUSE_STARTUP_TIPS":-$defaultval}"
13465
13466 fi
13467
13468
13469           eval "$wx_cv_use_tipdlg"
13470
13471           if test x"$enablestring" = xdisable; then
13472             if test $wxUSE_STARTUP_TIPS = no; then
13473               result=yes
13474             else
13475               result=no
13476             fi
13477           else
13478             result=$wxUSE_STARTUP_TIPS
13479           fi
13480
13481           { echo "$as_me:$LINENO: result: $result" >&5
13482 echo "${ECHO_T}$result" >&6; }
13483
13484
13485           enablestring=
13486           defaultval=$wxUSE_ALL_FEATURES
13487           if test -z "$defaultval"; then
13488               if test x"$enablestring" = xdisable; then
13489                   defaultval=yes
13490               else
13491                   defaultval=no
13492               fi
13493           fi
13494
13495           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-progressdlg" >&5
13496 echo $ECHO_N "checking for --${enablestring:-enable}-progressdlg... $ECHO_C" >&6; }
13497           # Check whether --enable-progressdlg was given.
13498 if test "${enable_progressdlg+set}" = set; then
13499   enableval=$enable_progressdlg;
13500                           if test "$enableval" = yes; then
13501                             wx_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
13502                           else
13503                             wx_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
13504                           fi
13505
13506 else
13507
13508                           wx_cv_use_progressdlg='wxUSE_PROGRESSDLG=${'DEFAULT_wxUSE_PROGRESSDLG":-$defaultval}"
13509
13510 fi
13511
13512
13513           eval "$wx_cv_use_progressdlg"
13514
13515           if test x"$enablestring" = xdisable; then
13516             if test $wxUSE_PROGRESSDLG = no; then
13517               result=yes
13518             else
13519               result=no
13520             fi
13521           else
13522             result=$wxUSE_PROGRESSDLG
13523           fi
13524
13525           { echo "$as_me:$LINENO: result: $result" >&5
13526 echo "${ECHO_T}$result" >&6; }
13527
13528
13529           enablestring=
13530           defaultval=$wxUSE_ALL_FEATURES
13531           if test -z "$defaultval"; then
13532               if test x"$enablestring" = xdisable; then
13533                   defaultval=yes
13534               else
13535                   defaultval=no
13536               fi
13537           fi
13538
13539           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wizarddlg" >&5
13540 echo $ECHO_N "checking for --${enablestring:-enable}-wizarddlg... $ECHO_C" >&6; }
13541           # Check whether --enable-wizarddlg was given.
13542 if test "${enable_wizarddlg+set}" = set; then
13543   enableval=$enable_wizarddlg;
13544                           if test "$enableval" = yes; then
13545                             wx_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes'
13546                           else
13547                             wx_cv_use_wizarddlg='wxUSE_WIZARDDLG=no'
13548                           fi
13549
13550 else
13551
13552                           wx_cv_use_wizarddlg='wxUSE_WIZARDDLG=${'DEFAULT_wxUSE_WIZARDDLG":-$defaultval}"
13553
13554 fi
13555
13556
13557           eval "$wx_cv_use_wizarddlg"
13558
13559           if test x"$enablestring" = xdisable; then
13560             if test $wxUSE_WIZARDDLG = no; then
13561               result=yes
13562             else
13563               result=no
13564             fi
13565           else
13566             result=$wxUSE_WIZARDDLG
13567           fi
13568
13569           { echo "$as_me:$LINENO: result: $result" >&5
13570 echo "${ECHO_T}$result" >&6; }
13571
13572
13573
13574
13575           enablestring=
13576           defaultval=$wxUSE_ALL_FEATURES
13577           if test -z "$defaultval"; then
13578               if test x"$enablestring" = xdisable; then
13579                   defaultval=yes
13580               else
13581                   defaultval=no
13582               fi
13583           fi
13584
13585           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-menus" >&5
13586 echo $ECHO_N "checking for --${enablestring:-enable}-menus... $ECHO_C" >&6; }
13587           # Check whether --enable-menus was given.
13588 if test "${enable_menus+set}" = set; then
13589   enableval=$enable_menus;
13590                           if test "$enableval" = yes; then
13591                             wx_cv_use_menus='wxUSE_MENUS=yes'
13592                           else
13593                             wx_cv_use_menus='wxUSE_MENUS=no'
13594                           fi
13595
13596 else
13597
13598                           wx_cv_use_menus='wxUSE_MENUS=${'DEFAULT_wxUSE_MENUS":-$defaultval}"
13599
13600 fi
13601
13602
13603           eval "$wx_cv_use_menus"
13604
13605           if test x"$enablestring" = xdisable; then
13606             if test $wxUSE_MENUS = no; then
13607               result=yes
13608             else
13609               result=no
13610             fi
13611           else
13612             result=$wxUSE_MENUS
13613           fi
13614
13615           { echo "$as_me:$LINENO: result: $result" >&5
13616 echo "${ECHO_T}$result" >&6; }
13617
13618
13619           enablestring=
13620           defaultval=$wxUSE_ALL_FEATURES
13621           if test -z "$defaultval"; then
13622               if test x"$enablestring" = xdisable; then
13623                   defaultval=yes
13624               else
13625                   defaultval=no
13626               fi
13627           fi
13628
13629           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-miniframe" >&5
13630 echo $ECHO_N "checking for --${enablestring:-enable}-miniframe... $ECHO_C" >&6; }
13631           # Check whether --enable-miniframe was given.
13632 if test "${enable_miniframe+set}" = set; then
13633   enableval=$enable_miniframe;
13634                           if test "$enableval" = yes; then
13635                             wx_cv_use_miniframe='wxUSE_MINIFRAME=yes'
13636                           else
13637                             wx_cv_use_miniframe='wxUSE_MINIFRAME=no'
13638                           fi
13639
13640 else
13641
13642                           wx_cv_use_miniframe='wxUSE_MINIFRAME=${'DEFAULT_wxUSE_MINIFRAME":-$defaultval}"
13643
13644 fi
13645
13646
13647           eval "$wx_cv_use_miniframe"
13648
13649           if test x"$enablestring" = xdisable; then
13650             if test $wxUSE_MINIFRAME = no; then
13651               result=yes
13652             else
13653               result=no
13654             fi
13655           else
13656             result=$wxUSE_MINIFRAME
13657           fi
13658
13659           { echo "$as_me:$LINENO: result: $result" >&5
13660 echo "${ECHO_T}$result" >&6; }
13661
13662
13663           enablestring=
13664           defaultval=$wxUSE_ALL_FEATURES
13665           if test -z "$defaultval"; then
13666               if test x"$enablestring" = xdisable; then
13667                   defaultval=yes
13668               else
13669                   defaultval=no
13670               fi
13671           fi
13672
13673           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tooltips" >&5
13674 echo $ECHO_N "checking for --${enablestring:-enable}-tooltips... $ECHO_C" >&6; }
13675           # Check whether --enable-tooltips was given.
13676 if test "${enable_tooltips+set}" = set; then
13677   enableval=$enable_tooltips;
13678                           if test "$enableval" = yes; then
13679                             wx_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
13680                           else
13681                             wx_cv_use_tooltips='wxUSE_TOOLTIPS=no'
13682                           fi
13683
13684 else
13685
13686                           wx_cv_use_tooltips='wxUSE_TOOLTIPS=${'DEFAULT_wxUSE_TOOLTIPS":-$defaultval}"
13687
13688 fi
13689
13690
13691           eval "$wx_cv_use_tooltips"
13692
13693           if test x"$enablestring" = xdisable; then
13694             if test $wxUSE_TOOLTIPS = no; then
13695               result=yes
13696             else
13697               result=no
13698             fi
13699           else
13700             result=$wxUSE_TOOLTIPS
13701           fi
13702
13703           { echo "$as_me:$LINENO: result: $result" >&5
13704 echo "${ECHO_T}$result" >&6; }
13705
13706
13707           enablestring=
13708           defaultval=$wxUSE_ALL_FEATURES
13709           if test -z "$defaultval"; then
13710               if test x"$enablestring" = xdisable; then
13711                   defaultval=yes
13712               else
13713                   defaultval=no
13714               fi
13715           fi
13716
13717           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splines" >&5
13718 echo $ECHO_N "checking for --${enablestring:-enable}-splines... $ECHO_C" >&6; }
13719           # Check whether --enable-splines was given.
13720 if test "${enable_splines+set}" = set; then
13721   enableval=$enable_splines;
13722                           if test "$enableval" = yes; then
13723                             wx_cv_use_splines='wxUSE_SPLINES=yes'
13724                           else
13725                             wx_cv_use_splines='wxUSE_SPLINES=no'
13726                           fi
13727
13728 else
13729
13730                           wx_cv_use_splines='wxUSE_SPLINES=${'DEFAULT_wxUSE_SPLINES":-$defaultval}"
13731
13732 fi
13733
13734
13735           eval "$wx_cv_use_splines"
13736
13737           if test x"$enablestring" = xdisable; then
13738             if test $wxUSE_SPLINES = no; then
13739               result=yes
13740             else
13741               result=no
13742             fi
13743           else
13744             result=$wxUSE_SPLINES
13745           fi
13746
13747           { echo "$as_me:$LINENO: result: $result" >&5
13748 echo "${ECHO_T}$result" >&6; }
13749
13750
13751           enablestring=
13752           defaultval=$wxUSE_ALL_FEATURES
13753           if test -z "$defaultval"; then
13754               if test x"$enablestring" = xdisable; then
13755                   defaultval=yes
13756               else
13757                   defaultval=no
13758               fi
13759           fi
13760
13761           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mousewheel" >&5
13762 echo $ECHO_N "checking for --${enablestring:-enable}-mousewheel... $ECHO_C" >&6; }
13763           # Check whether --enable-mousewheel was given.
13764 if test "${enable_mousewheel+set}" = set; then
13765   enableval=$enable_mousewheel;
13766                           if test "$enableval" = yes; then
13767                             wx_cv_use_mousewheel='wxUSE_MOUSEWHEEL=yes'
13768                           else
13769                             wx_cv_use_mousewheel='wxUSE_MOUSEWHEEL=no'
13770                           fi
13771
13772 else
13773
13774                           wx_cv_use_mousewheel='wxUSE_MOUSEWHEEL=${'DEFAULT_wxUSE_MOUSEWHEEL":-$defaultval}"
13775
13776 fi
13777
13778
13779           eval "$wx_cv_use_mousewheel"
13780
13781           if test x"$enablestring" = xdisable; then
13782             if test $wxUSE_MOUSEWHEEL = no; then
13783               result=yes
13784             else
13785               result=no
13786             fi
13787           else
13788             result=$wxUSE_MOUSEWHEEL
13789           fi
13790
13791           { echo "$as_me:$LINENO: result: $result" >&5
13792 echo "${ECHO_T}$result" >&6; }
13793
13794
13795           enablestring=
13796           defaultval=$wxUSE_ALL_FEATURES
13797           if test -z "$defaultval"; then
13798               if test x"$enablestring" = xdisable; then
13799                   defaultval=yes
13800               else
13801                   defaultval=no
13802               fi
13803           fi
13804
13805           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-validators" >&5
13806 echo $ECHO_N "checking for --${enablestring:-enable}-validators... $ECHO_C" >&6; }
13807           # Check whether --enable-validators was given.
13808 if test "${enable_validators+set}" = set; then
13809   enableval=$enable_validators;
13810                           if test "$enableval" = yes; then
13811                             wx_cv_use_validators='wxUSE_VALIDATORS=yes'
13812                           else
13813                             wx_cv_use_validators='wxUSE_VALIDATORS=no'
13814                           fi
13815
13816 else
13817
13818                           wx_cv_use_validators='wxUSE_VALIDATORS=${'DEFAULT_wxUSE_VALIDATORS":-$defaultval}"
13819
13820 fi
13821
13822
13823           eval "$wx_cv_use_validators"
13824
13825           if test x"$enablestring" = xdisable; then
13826             if test $wxUSE_VALIDATORS = no; then
13827               result=yes
13828             else
13829               result=no
13830             fi
13831           else
13832             result=$wxUSE_VALIDATORS
13833           fi
13834
13835           { echo "$as_me:$LINENO: result: $result" >&5
13836 echo "${ECHO_T}$result" >&6; }
13837
13838
13839           enablestring=
13840           defaultval=$wxUSE_ALL_FEATURES
13841           if test -z "$defaultval"; then
13842               if test x"$enablestring" = xdisable; then
13843                   defaultval=yes
13844               else
13845                   defaultval=no
13846               fi
13847           fi
13848
13849           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-busyinfo" >&5
13850 echo $ECHO_N "checking for --${enablestring:-enable}-busyinfo... $ECHO_C" >&6; }
13851           # Check whether --enable-busyinfo was given.
13852 if test "${enable_busyinfo+set}" = set; then
13853   enableval=$enable_busyinfo;
13854                           if test "$enableval" = yes; then
13855                             wx_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
13856                           else
13857                             wx_cv_use_busyinfo='wxUSE_BUSYINFO=no'
13858                           fi
13859
13860 else
13861
13862                           wx_cv_use_busyinfo='wxUSE_BUSYINFO=${'DEFAULT_wxUSE_BUSYINFO":-$defaultval}"
13863
13864 fi
13865
13866
13867           eval "$wx_cv_use_busyinfo"
13868
13869           if test x"$enablestring" = xdisable; then
13870             if test $wxUSE_BUSYINFO = no; then
13871               result=yes
13872             else
13873               result=no
13874             fi
13875           else
13876             result=$wxUSE_BUSYINFO
13877           fi
13878
13879           { echo "$as_me:$LINENO: result: $result" >&5
13880 echo "${ECHO_T}$result" >&6; }
13881
13882
13883           enablestring=
13884           defaultval=$wxUSE_ALL_FEATURES
13885           if test -z "$defaultval"; then
13886               if test x"$enablestring" = xdisable; then
13887                   defaultval=yes
13888               else
13889                   defaultval=no
13890               fi
13891           fi
13892
13893           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-joystick" >&5
13894 echo $ECHO_N "checking for --${enablestring:-enable}-joystick... $ECHO_C" >&6; }
13895           # Check whether --enable-joystick was given.
13896 if test "${enable_joystick+set}" = set; then
13897   enableval=$enable_joystick;
13898                           if test "$enableval" = yes; then
13899                             wx_cv_use_joystick='wxUSE_JOYSTICK=yes'
13900                           else
13901                             wx_cv_use_joystick='wxUSE_JOYSTICK=no'
13902                           fi
13903
13904 else
13905
13906                           wx_cv_use_joystick='wxUSE_JOYSTICK=${'DEFAULT_wxUSE_JOYSTICK":-$defaultval}"
13907
13908 fi
13909
13910
13911           eval "$wx_cv_use_joystick"
13912
13913           if test x"$enablestring" = xdisable; then
13914             if test $wxUSE_JOYSTICK = no; then
13915               result=yes
13916             else
13917               result=no
13918             fi
13919           else
13920             result=$wxUSE_JOYSTICK
13921           fi
13922
13923           { echo "$as_me:$LINENO: result: $result" >&5
13924 echo "${ECHO_T}$result" >&6; }
13925
13926
13927           enablestring=
13928           defaultval=$wxUSE_ALL_FEATURES
13929           if test -z "$defaultval"; then
13930               if test x"$enablestring" = xdisable; then
13931                   defaultval=yes
13932               else
13933                   defaultval=no
13934               fi
13935           fi
13936
13937           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
13938 echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6; }
13939           # Check whether --enable-metafile was given.
13940 if test "${enable_metafile+set}" = set; then
13941   enableval=$enable_metafile;
13942                           if test "$enableval" = yes; then
13943                             wx_cv_use_metafile='wxUSE_METAFILE=yes'
13944                           else
13945                             wx_cv_use_metafile='wxUSE_METAFILE=no'
13946                           fi
13947
13948 else
13949
13950                           wx_cv_use_metafile='wxUSE_METAFILE=${'DEFAULT_wxUSE_METAFILE":-$defaultval}"
13951
13952 fi
13953
13954
13955           eval "$wx_cv_use_metafile"
13956
13957           if test x"$enablestring" = xdisable; then
13958             if test $wxUSE_METAFILE = no; then
13959               result=yes
13960             else
13961               result=no
13962             fi
13963           else
13964             result=$wxUSE_METAFILE
13965           fi
13966
13967           { echo "$as_me:$LINENO: result: $result" >&5
13968 echo "${ECHO_T}$result" >&6; }
13969
13970
13971           enablestring=
13972           defaultval=$wxUSE_ALL_FEATURES
13973           if test -z "$defaultval"; then
13974               if test x"$enablestring" = xdisable; then
13975                   defaultval=yes
13976               else
13977                   defaultval=no
13978               fi
13979           fi
13980
13981           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dragimage" >&5
13982 echo $ECHO_N "checking for --${enablestring:-enable}-dragimage... $ECHO_C" >&6; }
13983           # Check whether --enable-dragimage was given.
13984 if test "${enable_dragimage+set}" = set; then
13985   enableval=$enable_dragimage;
13986                           if test "$enableval" = yes; then
13987                             wx_cv_use_dragimage='wxUSE_DRAGIMAGE=yes'
13988                           else
13989                             wx_cv_use_dragimage='wxUSE_DRAGIMAGE=no'
13990                           fi
13991
13992 else
13993
13994                           wx_cv_use_dragimage='wxUSE_DRAGIMAGE=${'DEFAULT_wxUSE_DRAGIMAGE":-$defaultval}"
13995
13996 fi
13997
13998
13999           eval "$wx_cv_use_dragimage"
14000
14001           if test x"$enablestring" = xdisable; then
14002             if test $wxUSE_DRAGIMAGE = no; then
14003               result=yes
14004             else
14005               result=no
14006             fi
14007           else
14008             result=$wxUSE_DRAGIMAGE
14009           fi
14010
14011           { echo "$as_me:$LINENO: result: $result" >&5
14012 echo "${ECHO_T}$result" >&6; }
14013
14014
14015           enablestring=
14016           defaultval=$wxUSE_ALL_FEATURES
14017           if test -z "$defaultval"; then
14018               if test x"$enablestring" = xdisable; then
14019                   defaultval=yes
14020               else
14021                   defaultval=no
14022               fi
14023           fi
14024
14025           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accessibility" >&5
14026 echo $ECHO_N "checking for --${enablestring:-enable}-accessibility... $ECHO_C" >&6; }
14027           # Check whether --enable-accessibility was given.
14028 if test "${enable_accessibility+set}" = set; then
14029   enableval=$enable_accessibility;
14030                           if test "$enableval" = yes; then
14031                             wx_cv_use_accessibility='wxUSE_ACCESSIBILITY=yes'
14032                           else
14033                             wx_cv_use_accessibility='wxUSE_ACCESSIBILITY=no'
14034                           fi
14035
14036 else
14037
14038                           wx_cv_use_accessibility='wxUSE_ACCESSIBILITY=${'DEFAULT_wxUSE_ACCESSIBILITY":-$defaultval}"
14039
14040 fi
14041
14042
14043           eval "$wx_cv_use_accessibility"
14044
14045           if test x"$enablestring" = xdisable; then
14046             if test $wxUSE_ACCESSIBILITY = no; then
14047               result=yes
14048             else
14049               result=no
14050             fi
14051           else
14052             result=$wxUSE_ACCESSIBILITY
14053           fi
14054
14055           { echo "$as_me:$LINENO: result: $result" >&5
14056 echo "${ECHO_T}$result" >&6; }
14057
14058
14059           enablestring=
14060           defaultval=$wxUSE_ALL_FEATURES
14061           if test -z "$defaultval"; then
14062               if test x"$enablestring" = xdisable; then
14063                   defaultval=yes
14064               else
14065                   defaultval=no
14066               fi
14067           fi
14068
14069           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-uiactionsim" >&5
14070 echo $ECHO_N "checking for --${enablestring:-enable}-uiactionsim... $ECHO_C" >&6; }
14071           # Check whether --enable-uiactionsim was given.
14072 if test "${enable_uiactionsim+set}" = set; then
14073   enableval=$enable_uiactionsim;
14074                           if test "$enableval" = yes; then
14075                             wx_cv_use_uiactionsim='wxUSE_UIACTIONSIMULATOR=yes'
14076                           else
14077                             wx_cv_use_uiactionsim='wxUSE_UIACTIONSIMULATOR=no'
14078                           fi
14079
14080 else
14081
14082                           wx_cv_use_uiactionsim='wxUSE_UIACTIONSIMULATOR=${'DEFAULT_wxUSE_UIACTIONSIMULATOR":-$defaultval}"
14083
14084 fi
14085
14086
14087           eval "$wx_cv_use_uiactionsim"
14088
14089           if test x"$enablestring" = xdisable; then
14090             if test $wxUSE_UIACTIONSIMULATOR = no; then
14091               result=yes
14092             else
14093               result=no
14094             fi
14095           else
14096             result=$wxUSE_UIACTIONSIMULATOR
14097           fi
14098
14099           { echo "$as_me:$LINENO: result: $result" >&5
14100 echo "${ECHO_T}$result" >&6; }
14101
14102
14103           enablestring=
14104           defaultval=$wxUSE_ALL_FEATURES
14105           if test -z "$defaultval"; then
14106               if test x"$enablestring" = xdisable; then
14107                   defaultval=yes
14108               else
14109                   defaultval=no
14110               fi
14111           fi
14112
14113           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dctransform" >&5
14114 echo $ECHO_N "checking for --${enablestring:-enable}-dctransform... $ECHO_C" >&6; }
14115           # Check whether --enable-dctransform was given.
14116 if test "${enable_dctransform+set}" = set; then
14117   enableval=$enable_dctransform;
14118                           if test "$enableval" = yes; then
14119                             wx_cv_use_dctransform='wxUSE_DC_TRANSFORM_MATRIX=yes'
14120                           else
14121                             wx_cv_use_dctransform='wxUSE_DC_TRANSFORM_MATRIX=no'
14122                           fi
14123
14124 else
14125
14126                           wx_cv_use_dctransform='wxUSE_DC_TRANSFORM_MATRIX=${'DEFAULT_wxUSE_DC_TRANSFORM_MATRIX":-$defaultval}"
14127
14128 fi
14129
14130
14131           eval "$wx_cv_use_dctransform"
14132
14133           if test x"$enablestring" = xdisable; then
14134             if test $wxUSE_DC_TRANSFORM_MATRIX = no; then
14135               result=yes
14136             else
14137               result=no
14138             fi
14139           else
14140             result=$wxUSE_DC_TRANSFORM_MATRIX
14141           fi
14142
14143           { echo "$as_me:$LINENO: result: $result" >&5
14144 echo "${ECHO_T}$result" >&6; }
14145
14146
14147
14148
14149           enablestring=
14150           defaultval=$wxUSE_ALL_FEATURES
14151           if test -z "$defaultval"; then
14152               if test x"$enablestring" = xdisable; then
14153                   defaultval=yes
14154               else
14155                   defaultval=no
14156               fi
14157           fi
14158
14159           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-palette" >&5
14160 echo $ECHO_N "checking for --${enablestring:-enable}-palette... $ECHO_C" >&6; }
14161           # Check whether --enable-palette was given.
14162 if test "${enable_palette+set}" = set; then
14163   enableval=$enable_palette;
14164                           if test "$enableval" = yes; then
14165                             wx_cv_use_palette='wxUSE_PALETTE=yes'
14166                           else
14167                             wx_cv_use_palette='wxUSE_PALETTE=no'
14168                           fi
14169
14170 else
14171
14172                           wx_cv_use_palette='wxUSE_PALETTE=${'DEFAULT_wxUSE_PALETTE":-$defaultval}"
14173
14174 fi
14175
14176
14177           eval "$wx_cv_use_palette"
14178
14179           if test x"$enablestring" = xdisable; then
14180             if test $wxUSE_PALETTE = no; then
14181               result=yes
14182             else
14183               result=no
14184             fi
14185           else
14186             result=$wxUSE_PALETTE
14187           fi
14188
14189           { echo "$as_me:$LINENO: result: $result" >&5
14190 echo "${ECHO_T}$result" >&6; }
14191
14192
14193           enablestring=
14194           defaultval=$wxUSE_ALL_FEATURES
14195           if test -z "$defaultval"; then
14196               if test x"$enablestring" = xdisable; then
14197                   defaultval=yes
14198               else
14199                   defaultval=no
14200               fi
14201           fi
14202
14203           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-image" >&5
14204 echo $ECHO_N "checking for --${enablestring:-enable}-image... $ECHO_C" >&6; }
14205           # Check whether --enable-image was given.
14206 if test "${enable_image+set}" = set; then
14207   enableval=$enable_image;
14208                           if test "$enableval" = yes; then
14209                             wx_cv_use_image='wxUSE_IMAGE=yes'
14210                           else
14211                             wx_cv_use_image='wxUSE_IMAGE=no'
14212                           fi
14213
14214 else
14215
14216                           wx_cv_use_image='wxUSE_IMAGE=${'DEFAULT_wxUSE_IMAGE":-$defaultval}"
14217
14218 fi
14219
14220
14221           eval "$wx_cv_use_image"
14222
14223           if test x"$enablestring" = xdisable; then
14224             if test $wxUSE_IMAGE = no; then
14225               result=yes
14226             else
14227               result=no
14228             fi
14229           else
14230             result=$wxUSE_IMAGE
14231           fi
14232
14233           { echo "$as_me:$LINENO: result: $result" >&5
14234 echo "${ECHO_T}$result" >&6; }
14235
14236
14237           enablestring=
14238           defaultval=$wxUSE_ALL_FEATURES
14239           if test -z "$defaultval"; then
14240               if test x"$enablestring" = xdisable; then
14241                   defaultval=yes
14242               else
14243                   defaultval=no
14244               fi
14245           fi
14246
14247           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gif" >&5
14248 echo $ECHO_N "checking for --${enablestring:-enable}-gif... $ECHO_C" >&6; }
14249           # Check whether --enable-gif was given.
14250 if test "${enable_gif+set}" = set; then
14251   enableval=$enable_gif;
14252                           if test "$enableval" = yes; then
14253                             wx_cv_use_gif='wxUSE_GIF=yes'
14254                           else
14255                             wx_cv_use_gif='wxUSE_GIF=no'
14256                           fi
14257
14258 else
14259
14260                           wx_cv_use_gif='wxUSE_GIF=${'DEFAULT_wxUSE_GIF":-$defaultval}"
14261
14262 fi
14263
14264
14265           eval "$wx_cv_use_gif"
14266
14267           if test x"$enablestring" = xdisable; then
14268             if test $wxUSE_GIF = no; then
14269               result=yes
14270             else
14271               result=no
14272             fi
14273           else
14274             result=$wxUSE_GIF
14275           fi
14276
14277           { echo "$as_me:$LINENO: result: $result" >&5
14278 echo "${ECHO_T}$result" >&6; }
14279
14280
14281           enablestring=
14282           defaultval=$wxUSE_ALL_FEATURES
14283           if test -z "$defaultval"; then
14284               if test x"$enablestring" = xdisable; then
14285                   defaultval=yes
14286               else
14287                   defaultval=no
14288               fi
14289           fi
14290
14291           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pcx" >&5
14292 echo $ECHO_N "checking for --${enablestring:-enable}-pcx... $ECHO_C" >&6; }
14293           # Check whether --enable-pcx was given.
14294 if test "${enable_pcx+set}" = set; then
14295   enableval=$enable_pcx;
14296                           if test "$enableval" = yes; then
14297                             wx_cv_use_pcx='wxUSE_PCX=yes'
14298                           else
14299                             wx_cv_use_pcx='wxUSE_PCX=no'
14300                           fi
14301
14302 else
14303
14304                           wx_cv_use_pcx='wxUSE_PCX=${'DEFAULT_wxUSE_PCX":-$defaultval}"
14305
14306 fi
14307
14308
14309           eval "$wx_cv_use_pcx"
14310
14311           if test x"$enablestring" = xdisable; then
14312             if test $wxUSE_PCX = no; then
14313               result=yes
14314             else
14315               result=no
14316             fi
14317           else
14318             result=$wxUSE_PCX
14319           fi
14320
14321           { echo "$as_me:$LINENO: result: $result" >&5
14322 echo "${ECHO_T}$result" >&6; }
14323
14324
14325           enablestring=
14326           defaultval=$wxUSE_ALL_FEATURES
14327           if test -z "$defaultval"; then
14328               if test x"$enablestring" = xdisable; then
14329                   defaultval=yes
14330               else
14331                   defaultval=no
14332               fi
14333           fi
14334
14335           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tga" >&5
14336 echo $ECHO_N "checking for --${enablestring:-enable}-tga... $ECHO_C" >&6; }
14337           # Check whether --enable-tga was given.
14338 if test "${enable_tga+set}" = set; then
14339   enableval=$enable_tga;
14340                           if test "$enableval" = yes; then
14341                             wx_cv_use_tga='wxUSE_TGA=yes'
14342                           else
14343                             wx_cv_use_tga='wxUSE_TGA=no'
14344                           fi
14345
14346 else
14347
14348                           wx_cv_use_tga='wxUSE_TGA=${'DEFAULT_wxUSE_TGA":-$defaultval}"
14349
14350 fi
14351
14352
14353           eval "$wx_cv_use_tga"
14354
14355           if test x"$enablestring" = xdisable; then
14356             if test $wxUSE_TGA = no; then
14357               result=yes
14358             else
14359               result=no
14360             fi
14361           else
14362             result=$wxUSE_TGA
14363           fi
14364
14365           { echo "$as_me:$LINENO: result: $result" >&5
14366 echo "${ECHO_T}$result" >&6; }
14367
14368
14369           enablestring=
14370           defaultval=$wxUSE_ALL_FEATURES
14371           if test -z "$defaultval"; then
14372               if test x"$enablestring" = xdisable; then
14373                   defaultval=yes
14374               else
14375                   defaultval=no
14376               fi
14377           fi
14378
14379           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-iff" >&5
14380 echo $ECHO_N "checking for --${enablestring:-enable}-iff... $ECHO_C" >&6; }
14381           # Check whether --enable-iff was given.
14382 if test "${enable_iff+set}" = set; then
14383   enableval=$enable_iff;
14384                           if test "$enableval" = yes; then
14385                             wx_cv_use_iff='wxUSE_IFF=yes'
14386                           else
14387                             wx_cv_use_iff='wxUSE_IFF=no'
14388                           fi
14389
14390 else
14391
14392                           wx_cv_use_iff='wxUSE_IFF=${'DEFAULT_wxUSE_IFF":-$defaultval}"
14393
14394 fi
14395
14396
14397           eval "$wx_cv_use_iff"
14398
14399           if test x"$enablestring" = xdisable; then
14400             if test $wxUSE_IFF = no; then
14401               result=yes
14402             else
14403               result=no
14404             fi
14405           else
14406             result=$wxUSE_IFF
14407           fi
14408
14409           { echo "$as_me:$LINENO: result: $result" >&5
14410 echo "${ECHO_T}$result" >&6; }
14411
14412
14413           enablestring=
14414           defaultval=$wxUSE_ALL_FEATURES
14415           if test -z "$defaultval"; then
14416               if test x"$enablestring" = xdisable; then
14417                   defaultval=yes
14418               else
14419                   defaultval=no
14420               fi
14421           fi
14422
14423           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pnm" >&5
14424 echo $ECHO_N "checking for --${enablestring:-enable}-pnm... $ECHO_C" >&6; }
14425           # Check whether --enable-pnm was given.
14426 if test "${enable_pnm+set}" = set; then
14427   enableval=$enable_pnm;
14428                           if test "$enableval" = yes; then
14429                             wx_cv_use_pnm='wxUSE_PNM=yes'
14430                           else
14431                             wx_cv_use_pnm='wxUSE_PNM=no'
14432                           fi
14433
14434 else
14435
14436                           wx_cv_use_pnm='wxUSE_PNM=${'DEFAULT_wxUSE_PNM":-$defaultval}"
14437
14438 fi
14439
14440
14441           eval "$wx_cv_use_pnm"
14442
14443           if test x"$enablestring" = xdisable; then
14444             if test $wxUSE_PNM = no; then
14445               result=yes
14446             else
14447               result=no
14448             fi
14449           else
14450             result=$wxUSE_PNM
14451           fi
14452
14453           { echo "$as_me:$LINENO: result: $result" >&5
14454 echo "${ECHO_T}$result" >&6; }
14455
14456
14457           enablestring=
14458           defaultval=$wxUSE_ALL_FEATURES
14459           if test -z "$defaultval"; then
14460               if test x"$enablestring" = xdisable; then
14461                   defaultval=yes
14462               else
14463                   defaultval=no
14464               fi
14465           fi
14466
14467           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xpm" >&5
14468 echo $ECHO_N "checking for --${enablestring:-enable}-xpm... $ECHO_C" >&6; }
14469           # Check whether --enable-xpm was given.
14470 if test "${enable_xpm+set}" = set; then
14471   enableval=$enable_xpm;
14472                           if test "$enableval" = yes; then
14473                             wx_cv_use_xpm='wxUSE_XPM=yes'
14474                           else
14475                             wx_cv_use_xpm='wxUSE_XPM=no'
14476                           fi
14477
14478 else
14479
14480                           wx_cv_use_xpm='wxUSE_XPM=${'DEFAULT_wxUSE_XPM":-$defaultval}"
14481
14482 fi
14483
14484
14485           eval "$wx_cv_use_xpm"
14486
14487           if test x"$enablestring" = xdisable; then
14488             if test $wxUSE_XPM = no; then
14489               result=yes
14490             else
14491               result=no
14492             fi
14493           else
14494             result=$wxUSE_XPM
14495           fi
14496
14497           { echo "$as_me:$LINENO: result: $result" >&5
14498 echo "${ECHO_T}$result" >&6; }
14499
14500
14501           enablestring=
14502           defaultval=$wxUSE_ALL_FEATURES
14503           if test -z "$defaultval"; then
14504               if test x"$enablestring" = xdisable; then
14505                   defaultval=yes
14506               else
14507                   defaultval=no
14508               fi
14509           fi
14510
14511           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ico_cur" >&5
14512 echo $ECHO_N "checking for --${enablestring:-enable}-ico_cur... $ECHO_C" >&6; }
14513           # Check whether --enable-ico_cur was given.
14514 if test "${enable_ico_cur+set}" = set; then
14515   enableval=$enable_ico_cur;
14516                           if test "$enableval" = yes; then
14517                             wx_cv_use_ico_cur='wxUSE_ICO_CUR=yes'
14518                           else
14519                             wx_cv_use_ico_cur='wxUSE_ICO_CUR=no'
14520                           fi
14521
14522 else
14523
14524                           wx_cv_use_ico_cur='wxUSE_ICO_CUR=${'DEFAULT_wxUSE_ICO_CUR":-$defaultval}"
14525
14526 fi
14527
14528
14529           eval "$wx_cv_use_ico_cur"
14530
14531           if test x"$enablestring" = xdisable; then
14532             if test $wxUSE_ICO_CUR = no; then
14533               result=yes
14534             else
14535               result=no
14536             fi
14537           else
14538             result=$wxUSE_ICO_CUR
14539           fi
14540
14541           { echo "$as_me:$LINENO: result: $result" >&5
14542 echo "${ECHO_T}$result" >&6; }
14543
14544
14545
14546
14547           enablestring=
14548           defaultval=$wxUSE_ALL_FEATURES
14549           if test -z "$defaultval"; then
14550               if test x"$enablestring" = xdisable; then
14551                   defaultval=yes
14552               else
14553                   defaultval=no
14554               fi
14555           fi
14556
14557           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dccache" >&5
14558 echo $ECHO_N "checking for --${enablestring:-enable}-dccache... $ECHO_C" >&6; }
14559           # Check whether --enable-dccache was given.
14560 if test "${enable_dccache+set}" = set; then
14561   enableval=$enable_dccache;
14562                           if test "$enableval" = yes; then
14563                             wx_cv_use_dccache='wxUSE_DC_CACHEING=yes'
14564                           else
14565                             wx_cv_use_dccache='wxUSE_DC_CACHEING=no'
14566                           fi
14567
14568 else
14569
14570                           wx_cv_use_dccache='wxUSE_DC_CACHEING=${'DEFAULT_wxUSE_DC_CACHEING":-$defaultval}"
14571
14572 fi
14573
14574
14575           eval "$wx_cv_use_dccache"
14576
14577           if test x"$enablestring" = xdisable; then
14578             if test $wxUSE_DC_CACHEING = no; then
14579               result=yes
14580             else
14581               result=no
14582             fi
14583           else
14584             result=$wxUSE_DC_CACHEING
14585           fi
14586
14587           { echo "$as_me:$LINENO: result: $result" >&5
14588 echo "${ECHO_T}$result" >&6; }
14589
14590
14591           enablestring=
14592           defaultval=$wxUSE_ALL_FEATURES
14593           if test -z "$defaultval"; then
14594               if test x"$enablestring" = xdisable; then
14595                   defaultval=yes
14596               else
14597                   defaultval=no
14598               fi
14599           fi
14600
14601           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ps-in-msw" >&5
14602 echo $ECHO_N "checking for --${enablestring:-enable}-ps-in-msw... $ECHO_C" >&6; }
14603           # Check whether --enable-ps-in-msw was given.
14604 if test "${enable_ps_in_msw+set}" = set; then
14605   enableval=$enable_ps_in_msw;
14606                           if test "$enableval" = yes; then
14607                             wx_cv_use_ps_in_msw='wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW=yes'
14608                           else
14609                             wx_cv_use_ps_in_msw='wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW=no'
14610                           fi
14611
14612 else
14613
14614                           wx_cv_use_ps_in_msw='wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW=${'DEFAULT_wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW":-$defaultval}"
14615
14616 fi
14617
14618
14619           eval "$wx_cv_use_ps_in_msw"
14620
14621           if test x"$enablestring" = xdisable; then
14622             if test $wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW = no; then
14623               result=yes
14624             else
14625               result=no
14626             fi
14627           else
14628             result=$wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW
14629           fi
14630
14631           { echo "$as_me:$LINENO: result: $result" >&5
14632 echo "${ECHO_T}$result" >&6; }
14633
14634
14635           enablestring=
14636           defaultval=$wxUSE_ALL_FEATURES
14637           if test -z "$defaultval"; then
14638               if test x"$enablestring" = xdisable; then
14639                   defaultval=yes
14640               else
14641                   defaultval=no
14642               fi
14643           fi
14644
14645           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ownerdrawn" >&5
14646 echo $ECHO_N "checking for --${enablestring:-enable}-ownerdrawn... $ECHO_C" >&6; }
14647           # Check whether --enable-ownerdrawn was given.
14648 if test "${enable_ownerdrawn+set}" = set; then
14649   enableval=$enable_ownerdrawn;
14650                           if test "$enableval" = yes; then
14651                             wx_cv_use_ownerdrawn='wxUSE_OWNER_DRAWN=yes'
14652                           else
14653                             wx_cv_use_ownerdrawn='wxUSE_OWNER_DRAWN=no'
14654                           fi
14655
14656 else
14657
14658                           wx_cv_use_ownerdrawn='wxUSE_OWNER_DRAWN=${'DEFAULT_wxUSE_OWNER_DRAWN":-$defaultval}"
14659
14660 fi
14661
14662
14663           eval "$wx_cv_use_ownerdrawn"
14664
14665           if test x"$enablestring" = xdisable; then
14666             if test $wxUSE_OWNER_DRAWN = no; then
14667               result=yes
14668             else
14669               result=no
14670             fi
14671           else
14672             result=$wxUSE_OWNER_DRAWN
14673           fi
14674
14675           { echo "$as_me:$LINENO: result: $result" >&5
14676 echo "${ECHO_T}$result" >&6; }
14677
14678
14679           enablestring=
14680           defaultval=$wxUSE_ALL_FEATURES
14681           if test -z "$defaultval"; then
14682               if test x"$enablestring" = xdisable; then
14683                   defaultval=yes
14684               else
14685                   defaultval=no
14686               fi
14687           fi
14688
14689           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-uxtheme" >&5
14690 echo $ECHO_N "checking for --${enablestring:-enable}-uxtheme... $ECHO_C" >&6; }
14691           # Check whether --enable-uxtheme was given.
14692 if test "${enable_uxtheme+set}" = set; then
14693   enableval=$enable_uxtheme;
14694                           if test "$enableval" = yes; then
14695                             wx_cv_use_uxtheme='wxUSE_UXTHEME=yes'
14696                           else
14697                             wx_cv_use_uxtheme='wxUSE_UXTHEME=no'
14698                           fi
14699
14700 else
14701
14702                           wx_cv_use_uxtheme='wxUSE_UXTHEME=${'DEFAULT_wxUSE_UXTHEME":-$defaultval}"
14703
14704 fi
14705
14706
14707           eval "$wx_cv_use_uxtheme"
14708
14709           if test x"$enablestring" = xdisable; then
14710             if test $wxUSE_UXTHEME = no; then
14711               result=yes
14712             else
14713               result=no
14714             fi
14715           else
14716             result=$wxUSE_UXTHEME
14717           fi
14718
14719           { echo "$as_me:$LINENO: result: $result" >&5
14720 echo "${ECHO_T}$result" >&6; }
14721
14722
14723           enablestring=
14724           defaultval=$wxUSE_ALL_FEATURES
14725           if test -z "$defaultval"; then
14726               if test x"$enablestring" = xdisable; then
14727                   defaultval=yes
14728               else
14729                   defaultval=no
14730               fi
14731           fi
14732
14733           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wxdib" >&5
14734 echo $ECHO_N "checking for --${enablestring:-enable}-wxdib... $ECHO_C" >&6; }
14735           # Check whether --enable-wxdib was given.
14736 if test "${enable_wxdib+set}" = set; then
14737   enableval=$enable_wxdib;
14738                           if test "$enableval" = yes; then
14739                             wx_cv_use_wxdib='wxUSE_DIB=yes'
14740                           else
14741                             wx_cv_use_wxdib='wxUSE_DIB=no'
14742                           fi
14743
14744 else
14745
14746                           wx_cv_use_wxdib='wxUSE_DIB=${'DEFAULT_wxUSE_DIB":-$defaultval}"
14747
14748 fi
14749
14750
14751           eval "$wx_cv_use_wxdib"
14752
14753           if test x"$enablestring" = xdisable; then
14754             if test $wxUSE_DIB = no; then
14755               result=yes
14756             else
14757               result=no
14758             fi
14759           else
14760             result=$wxUSE_DIB
14761           fi
14762
14763           { echo "$as_me:$LINENO: result: $result" >&5
14764 echo "${ECHO_T}$result" >&6; }
14765
14766
14767 if test "$wxUSE_MSW" != 1; then
14768     DEFAULT_wxUSE_AUTOID_MANAGEMENT=no
14769 fi
14770
14771
14772           enablestring=
14773           defaultval=$wxUSE_ALL_FEATURES
14774           if test -z "$defaultval"; then
14775               if test x"$enablestring" = xdisable; then
14776                   defaultval=yes
14777               else
14778                   defaultval=no
14779               fi
14780           fi
14781
14782           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-autoidman" >&5
14783 echo $ECHO_N "checking for --${enablestring:-enable}-autoidman... $ECHO_C" >&6; }
14784           # Check whether --enable-autoidman was given.
14785 if test "${enable_autoidman+set}" = set; then
14786   enableval=$enable_autoidman;
14787                           if test "$enableval" = yes; then
14788                             wx_cv_use_autoidman='wxUSE_AUTOID_MANAGEMENT=yes'
14789                           else
14790                             wx_cv_use_autoidman='wxUSE_AUTOID_MANAGEMENT=no'
14791                           fi
14792
14793 else
14794
14795                           wx_cv_use_autoidman='wxUSE_AUTOID_MANAGEMENT=${'DEFAULT_wxUSE_AUTOID_MANAGEMENT":-$defaultval}"
14796
14797 fi
14798
14799
14800           eval "$wx_cv_use_autoidman"
14801
14802           if test x"$enablestring" = xdisable; then
14803             if test $wxUSE_AUTOID_MANAGEMENT = no; then
14804               result=yes
14805             else
14806               result=no
14807             fi
14808           else
14809             result=$wxUSE_AUTOID_MANAGEMENT
14810           fi
14811
14812           { echo "$as_me:$LINENO: result: $result" >&5
14813 echo "${ECHO_T}$result" >&6; }
14814
14815
14816 fi
14817
14818
14819 cat >confcache <<\_ACEOF
14820 # This file is a shell script that caches the results of configure
14821 # tests run on this system so they can be shared between configure
14822 # scripts and configure runs, see configure's option --config-cache.
14823 # It is not useful on other systems.  If it contains results you don't
14824 # want to keep, you may remove or edit it.
14825 #
14826 # config.status only pays attention to the cache file if you give it
14827 # the --recheck option to rerun configure.
14828 #
14829 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14830 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14831 # following values.
14832
14833 _ACEOF
14834
14835 # The following way of writing the cache mishandles newlines in values,
14836 # but we know of no workaround that is simple, portable, and efficient.
14837 # So, we kill variables containing newlines.
14838 # Ultrix sh set writes to stderr and can't be redirected directly,
14839 # and sets the high bit in the cache file unless we assign to the vars.
14840 (
14841   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14842     eval ac_val=\$$ac_var
14843     case $ac_val in #(
14844     *${as_nl}*)
14845       case $ac_var in #(
14846       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
14847 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
14848       esac
14849       case $ac_var in #(
14850       _ | IFS | as_nl) ;; #(
14851       *) $as_unset $ac_var ;;
14852       esac ;;
14853     esac
14854   done
14855
14856   (set) 2>&1 |
14857     case $as_nl`(ac_space=' '; set) 2>&1` in #(
14858     *${as_nl}ac_space=\ *)
14859       # `set' does not quote correctly, so add quotes (double-quote
14860       # substitution turns \\\\ into \\, and sed turns \\ into \).
14861       sed -n \
14862         "s/'/'\\\\''/g;
14863           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14864       ;; #(
14865     *)
14866       # `set' quotes correctly as required by POSIX, so do not add quotes.
14867       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14868       ;;
14869     esac |
14870     sort
14871 ) |
14872   sed '
14873      /^ac_cv_env_/b end
14874      t clear
14875      :clear
14876      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14877      t end
14878      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14879      :end' >>confcache
14880 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14881   if test -w "$cache_file"; then
14882     test "x$cache_file" != "x/dev/null" &&
14883       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
14884 echo "$as_me: updating cache $cache_file" >&6;}
14885     cat confcache >$cache_file
14886   else
14887     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
14888 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14889   fi
14890 fi
14891 rm -f confcache
14892
14893 CFLAGS=${CFLAGS:=}
14894 ac_ext=c
14895 ac_cpp='$CPP $CPPFLAGS'
14896 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14897 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14898 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14899 if test -n "$ac_tool_prefix"; then
14900   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
14901 set dummy ${ac_tool_prefix}gcc; ac_word=$2
14902 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14903 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14904 if test "${ac_cv_prog_CC+set}" = set; then
14905   echo $ECHO_N "(cached) $ECHO_C" >&6
14906 else
14907   if test -n "$CC"; then
14908   ac_cv_prog_CC="$CC" # Let the user override the test.
14909 else
14910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14911 for as_dir in $PATH
14912 do
14913   IFS=$as_save_IFS
14914   test -z "$as_dir" && as_dir=.
14915   for ac_exec_ext in '' $ac_executable_extensions; do
14916   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14917     ac_cv_prog_CC="${ac_tool_prefix}gcc"
14918     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14919     break 2
14920   fi
14921 done
14922 done
14923 IFS=$as_save_IFS
14924
14925 fi
14926 fi
14927 CC=$ac_cv_prog_CC
14928 if test -n "$CC"; then
14929   { echo "$as_me:$LINENO: result: $CC" >&5
14930 echo "${ECHO_T}$CC" >&6; }
14931 else
14932   { echo "$as_me:$LINENO: result: no" >&5
14933 echo "${ECHO_T}no" >&6; }
14934 fi
14935
14936
14937 fi
14938 if test -z "$ac_cv_prog_CC"; then
14939   ac_ct_CC=$CC
14940   # Extract the first word of "gcc", so it can be a program name with args.
14941 set dummy gcc; ac_word=$2
14942 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14943 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14944 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
14945   echo $ECHO_N "(cached) $ECHO_C" >&6
14946 else
14947   if test -n "$ac_ct_CC"; then
14948   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
14949 else
14950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14951 for as_dir in $PATH
14952 do
14953   IFS=$as_save_IFS
14954   test -z "$as_dir" && as_dir=.
14955   for ac_exec_ext in '' $ac_executable_extensions; do
14956   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14957     ac_cv_prog_ac_ct_CC="gcc"
14958     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14959     break 2
14960   fi
14961 done
14962 done
14963 IFS=$as_save_IFS
14964
14965 fi
14966 fi
14967 ac_ct_CC=$ac_cv_prog_ac_ct_CC
14968 if test -n "$ac_ct_CC"; then
14969   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
14970 echo "${ECHO_T}$ac_ct_CC" >&6; }
14971 else
14972   { echo "$as_me:$LINENO: result: no" >&5
14973 echo "${ECHO_T}no" >&6; }
14974 fi
14975
14976   if test "x$ac_ct_CC" = x; then
14977     CC=""
14978   else
14979     case $cross_compiling:$ac_tool_warned in
14980 yes:)
14981 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14982 whose name does not start with the host triplet.  If you think this
14983 configuration is useful to you, please write to autoconf@gnu.org." >&5
14984 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14985 whose name does not start with the host triplet.  If you think this
14986 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14987 ac_tool_warned=yes ;;
14988 esac
14989     CC=$ac_ct_CC
14990   fi
14991 else
14992   CC="$ac_cv_prog_CC"
14993 fi
14994
14995 if test -z "$CC"; then
14996           if test -n "$ac_tool_prefix"; then
14997     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
14998 set dummy ${ac_tool_prefix}cc; ac_word=$2
14999 { echo "$as_me:$LINENO: checking for $ac_word" >&5
15000 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
15001 if test "${ac_cv_prog_CC+set}" = set; then
15002   echo $ECHO_N "(cached) $ECHO_C" >&6
15003 else
15004   if test -n "$CC"; then
15005   ac_cv_prog_CC="$CC" # Let the user override the test.
15006 else
15007 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15008 for as_dir in $PATH
15009 do
15010   IFS=$as_save_IFS
15011   test -z "$as_dir" && as_dir=.
15012   for ac_exec_ext in '' $ac_executable_extensions; do
15013   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15014     ac_cv_prog_CC="${ac_tool_prefix}cc"
15015     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15016     break 2
15017   fi
15018 done
15019 done
15020 IFS=$as_save_IFS
15021
15022 fi
15023 fi
15024 CC=$ac_cv_prog_CC
15025 if test -n "$CC"; then
15026   { echo "$as_me:$LINENO: result: $CC" >&5
15027 echo "${ECHO_T}$CC" >&6; }
15028 else
15029   { echo "$as_me:$LINENO: result: no" >&5
15030 echo "${ECHO_T}no" >&6; }
15031 fi
15032
15033
15034   fi
15035 fi
15036 if test -z "$CC"; then
15037   # Extract the first word of "cc", so it can be a program name with args.
15038 set dummy cc; ac_word=$2
15039 { echo "$as_me:$LINENO: checking for $ac_word" >&5
15040 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
15041 if test "${ac_cv_prog_CC+set}" = set; then
15042   echo $ECHO_N "(cached) $ECHO_C" >&6
15043 else
15044   if test -n "$CC"; then
15045   ac_cv_prog_CC="$CC" # Let the user override the test.
15046 else
15047   ac_prog_rejected=no
15048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15049 for as_dir in $PATH
15050 do
15051   IFS=$as_save_IFS
15052   test -z "$as_dir" && as_dir=.
15053   for ac_exec_ext in '' $ac_executable_extensions; do
15054   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15055     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
15056        ac_prog_rejected=yes
15057        continue
15058      fi
15059     ac_cv_prog_CC="cc"
15060     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15061     break 2
15062   fi
15063 done
15064 done
15065 IFS=$as_save_IFS
15066
15067 if test $ac_prog_rejected = yes; then
15068   # We found a bogon in the path, so make sure we never use it.
15069   set dummy $ac_cv_prog_CC
15070   shift
15071   if test $# != 0; then
15072     # We chose a different compiler from the bogus one.
15073     # However, it has the same basename, so the bogon will be chosen
15074     # first if we set CC to just the basename; use the full file name.
15075     shift
15076     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
15077   fi
15078 fi
15079 fi
15080 fi
15081 CC=$ac_cv_prog_CC
15082 if test -n "$CC"; then
15083   { echo "$as_me:$LINENO: result: $CC" >&5
15084 echo "${ECHO_T}$CC" >&6; }
15085 else
15086   { echo "$as_me:$LINENO: result: no" >&5
15087 echo "${ECHO_T}no" >&6; }
15088 fi
15089
15090
15091 fi
15092 if test -z "$CC"; then
15093   if test -n "$ac_tool_prefix"; then
15094   for ac_prog in cl.exe
15095   do
15096     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
15097 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
15098 { echo "$as_me:$LINENO: checking for $ac_word" >&5
15099 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
15100 if test "${ac_cv_prog_CC+set}" = set; then
15101   echo $ECHO_N "(cached) $ECHO_C" >&6
15102 else
15103   if test -n "$CC"; then
15104   ac_cv_prog_CC="$CC" # Let the user override the test.
15105 else
15106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15107 for as_dir in $PATH
15108 do
15109   IFS=$as_save_IFS
15110   test -z "$as_dir" && as_dir=.
15111   for ac_exec_ext in '' $ac_executable_extensions; do
15112   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15113     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
15114     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15115     break 2
15116   fi
15117 done
15118 done
15119 IFS=$as_save_IFS
15120
15121 fi
15122 fi
15123 CC=$ac_cv_prog_CC
15124 if test -n "$CC"; then
15125   { echo "$as_me:$LINENO: result: $CC" >&5
15126 echo "${ECHO_T}$CC" >&6; }
15127 else
15128   { echo "$as_me:$LINENO: result: no" >&5
15129 echo "${ECHO_T}no" >&6; }
15130 fi
15131
15132
15133     test -n "$CC" && break
15134   done
15135 fi
15136 if test -z "$CC"; then
15137   ac_ct_CC=$CC
15138   for ac_prog in cl.exe
15139 do
15140   # Extract the first word of "$ac_prog", so it can be a program name with args.
15141 set dummy $ac_prog; ac_word=$2
15142 { echo "$as_me:$LINENO: checking for $ac_word" >&5
15143 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
15144 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
15145   echo $ECHO_N "(cached) $ECHO_C" >&6
15146 else
15147   if test -n "$ac_ct_CC"; then
15148   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
15149 else
15150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15151 for as_dir in $PATH
15152 do
15153   IFS=$as_save_IFS
15154   test -z "$as_dir" && as_dir=.
15155   for ac_exec_ext in '' $ac_executable_extensions; do
15156   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15157     ac_cv_prog_ac_ct_CC="$ac_prog"
15158     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15159     break 2
15160   fi
15161 done
15162 done
15163 IFS=$as_save_IFS
15164
15165 fi
15166 fi
15167 ac_ct_CC=$ac_cv_prog_ac_ct_CC
15168 if test -n "$ac_ct_CC"; then
15169   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
15170 echo "${ECHO_T}$ac_ct_CC" >&6; }
15171 else
15172   { echo "$as_me:$LINENO: result: no" >&5
15173 echo "${ECHO_T}no" >&6; }
15174 fi
15175
15176
15177   test -n "$ac_ct_CC" && break
15178 done
15179
15180   if test "x$ac_ct_CC" = x; then
15181     CC=""
15182   else
15183     case $cross_compiling:$ac_tool_warned in
15184 yes:)
15185 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
15186 whose name does not start with the host triplet.  If you think this
15187 configuration is useful to you, please write to autoconf@gnu.org." >&5
15188 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
15189 whose name does not start with the host triplet.  If you think this
15190 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
15191 ac_tool_warned=yes ;;
15192 esac
15193     CC=$ac_ct_CC
15194   fi
15195 fi
15196
15197 fi
15198
15199
15200 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
15201 See \`config.log' for more details." >&5
15202 echo "$as_me: error: no acceptable C compiler found in \$PATH
15203 See \`config.log' for more details." >&2;}
15204    { (exit 1); exit 1; }; }
15205
15206 # Provide some information about the compiler.
15207 echo "$as_me:$LINENO: checking for C compiler version" >&5
15208 ac_compiler=`set X $ac_compile; echo $2`
15209 { (ac_try="$ac_compiler --version >&5"
15210 case "(($ac_try" in
15211   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15212   *) ac_try_echo=$ac_try;;
15213 esac
15214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15215   (eval "$ac_compiler --version >&5") 2>&5
15216   ac_status=$?
15217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15218   (exit $ac_status); }
15219 { (ac_try="$ac_compiler -v >&5"
15220 case "(($ac_try" in
15221   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15222   *) ac_try_echo=$ac_try;;
15223 esac
15224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15225   (eval "$ac_compiler -v >&5") 2>&5
15226   ac_status=$?
15227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15228   (exit $ac_status); }
15229 { (ac_try="$ac_compiler -V >&5"
15230 case "(($ac_try" in
15231   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15232   *) ac_try_echo=$ac_try;;
15233 esac
15234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15235   (eval "$ac_compiler -V >&5") 2>&5
15236   ac_status=$?
15237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15238   (exit $ac_status); }
15239
15240 cat >conftest.$ac_ext <<_ACEOF
15241 /* confdefs.h.  */
15242 _ACEOF
15243 cat confdefs.h >>conftest.$ac_ext
15244 cat >>conftest.$ac_ext <<_ACEOF
15245 /* end confdefs.h.  */
15246
15247 int
15248 main ()
15249 {
15250
15251   ;
15252   return 0;
15253 }
15254 _ACEOF
15255 ac_clean_files_save=$ac_clean_files
15256 ac_clean_files="$ac_clean_files a.out a.exe b.out"
15257 # Try to create an executable without -o first, disregard a.out.
15258 # It will help us diagnose broken compilers, and finding out an intuition
15259 # of exeext.
15260 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
15261 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
15262 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
15263 #
15264 # List of possible output files, starting from the most likely.
15265 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
15266 # only as a last resort.  b.out is created by i960 compilers.
15267 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
15268 #
15269 # The IRIX 6 linker writes into existing files which may not be
15270 # executable, retaining their permissions.  Remove them first so a
15271 # subsequent execution test works.
15272 ac_rmfiles=
15273 for ac_file in $ac_files
15274 do
15275   case $ac_file in
15276     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
15277     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
15278   esac
15279 done
15280 rm -f $ac_rmfiles
15281
15282 if { (ac_try="$ac_link_default"
15283 case "(($ac_try" in
15284   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15285   *) ac_try_echo=$ac_try;;
15286 esac
15287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15288   (eval "$ac_link_default") 2>&5
15289   ac_status=$?
15290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15291   (exit $ac_status); }; then
15292   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
15293 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
15294 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
15295 # so that the user can short-circuit this test for compilers unknown to
15296 # Autoconf.
15297 for ac_file in $ac_files ''
15298 do
15299   test -f "$ac_file" || continue
15300   case $ac_file in
15301     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
15302         ;;
15303     [ab].out )
15304         # We found the default executable, but exeext='' is most
15305         # certainly right.
15306         break;;
15307     *.* )
15308         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
15309         then :; else
15310            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
15311         fi
15312         # We set ac_cv_exeext here because the later test for it is not
15313         # safe: cross compilers may not add the suffix if given an `-o'
15314         # argument, so we may need to know it at that point already.
15315         # Even if this section looks crufty: it has the advantage of
15316         # actually working.
15317         break;;
15318     * )
15319         break;;
15320   esac
15321 done
15322 test "$ac_cv_exeext" = no && ac_cv_exeext=
15323
15324 else
15325   ac_file=''
15326 fi
15327
15328 { echo "$as_me:$LINENO: result: $ac_file" >&5
15329 echo "${ECHO_T}$ac_file" >&6; }
15330 if test -z "$ac_file"; then
15331   echo "$as_me: failed program was:" >&5
15332 sed 's/^/| /' conftest.$ac_ext >&5
15333
15334 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
15335 See \`config.log' for more details." >&5
15336 echo "$as_me: error: C compiler cannot create executables
15337 See \`config.log' for more details." >&2;}
15338    { (exit 77); exit 77; }; }
15339 fi
15340
15341 ac_exeext=$ac_cv_exeext
15342
15343 # Check that the compiler produces executables we can run.  If not, either
15344 # the compiler is broken, or we cross compile.
15345 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
15346 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
15347 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
15348 # If not cross compiling, check that we can run a simple program.
15349 if test "$cross_compiling" != yes; then
15350   if { ac_try='./$ac_file'
15351   { (case "(($ac_try" in
15352   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15353   *) ac_try_echo=$ac_try;;
15354 esac
15355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15356   (eval "$ac_try") 2>&5
15357   ac_status=$?
15358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15359   (exit $ac_status); }; }; then
15360     cross_compiling=no
15361   else
15362     if test "$cross_compiling" = maybe; then
15363         cross_compiling=yes
15364     else
15365         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
15366 If you meant to cross compile, use \`--host'.
15367 See \`config.log' for more details." >&5
15368 echo "$as_me: error: cannot run C compiled programs.
15369 If you meant to cross compile, use \`--host'.
15370 See \`config.log' for more details." >&2;}
15371    { (exit 1); exit 1; }; }
15372     fi
15373   fi
15374 fi
15375 { echo "$as_me:$LINENO: result: yes" >&5
15376 echo "${ECHO_T}yes" >&6; }
15377
15378 rm -f a.out a.exe conftest$ac_cv_exeext b.out
15379 ac_clean_files=$ac_clean_files_save
15380 # Check that the compiler produces executables we can run.  If not, either
15381 # the compiler is broken, or we cross compile.
15382 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
15383 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
15384 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
15385 echo "${ECHO_T}$cross_compiling" >&6; }
15386
15387 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
15388 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
15389 if { (ac_try="$ac_link"
15390 case "(($ac_try" in
15391   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15392   *) ac_try_echo=$ac_try;;
15393 esac
15394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15395   (eval "$ac_link") 2>&5
15396   ac_status=$?
15397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15398   (exit $ac_status); }; then
15399   # If both `conftest.exe' and `conftest' are `present' (well, observable)
15400 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
15401 # work properly (i.e., refer to `conftest.exe'), while it won't with
15402 # `rm'.
15403 for ac_file in conftest.exe conftest conftest.*; do
15404   test -f "$ac_file" || continue
15405   case $ac_file in
15406     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
15407     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
15408           break;;
15409     * ) break;;
15410   esac
15411 done
15412 else
15413   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
15414 See \`config.log' for more details." >&5
15415 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
15416 See \`config.log' for more details." >&2;}
15417    { (exit 1); exit 1; }; }
15418 fi
15419
15420 rm -f conftest$ac_cv_exeext
15421 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
15422 echo "${ECHO_T}$ac_cv_exeext" >&6; }
15423
15424 rm -f conftest.$ac_ext
15425 EXEEXT=$ac_cv_exeext
15426 ac_exeext=$EXEEXT
15427 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
15428 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
15429 if test "${ac_cv_objext+set}" = set; then
15430   echo $ECHO_N "(cached) $ECHO_C" >&6
15431 else
15432   cat >conftest.$ac_ext <<_ACEOF
15433 /* confdefs.h.  */
15434 _ACEOF
15435 cat confdefs.h >>conftest.$ac_ext
15436 cat >>conftest.$ac_ext <<_ACEOF
15437 /* end confdefs.h.  */
15438
15439 int
15440 main ()
15441 {
15442
15443   ;
15444   return 0;
15445 }
15446 _ACEOF
15447 rm -f conftest.o conftest.obj
15448 if { (ac_try="$ac_compile"
15449 case "(($ac_try" in
15450   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15451   *) ac_try_echo=$ac_try;;
15452 esac
15453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15454   (eval "$ac_compile") 2>&5
15455   ac_status=$?
15456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15457   (exit $ac_status); }; then
15458   for ac_file in conftest.o conftest.obj conftest.*; do
15459   test -f "$ac_file" || continue;
15460   case $ac_file in
15461     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
15462     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
15463        break;;
15464   esac
15465 done
15466 else
15467   echo "$as_me: failed program was:" >&5
15468 sed 's/^/| /' conftest.$ac_ext >&5
15469
15470 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
15471 See \`config.log' for more details." >&5
15472 echo "$as_me: error: cannot compute suffix of object files: cannot compile
15473 See \`config.log' for more details." >&2;}
15474    { (exit 1); exit 1; }; }
15475 fi
15476
15477 rm -f conftest.$ac_cv_objext conftest.$ac_ext
15478 fi
15479 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
15480 echo "${ECHO_T}$ac_cv_objext" >&6; }
15481 OBJEXT=$ac_cv_objext
15482 ac_objext=$OBJEXT
15483 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
15484 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
15485 if test "${ac_cv_c_compiler_gnu+set}" = set; then
15486   echo $ECHO_N "(cached) $ECHO_C" >&6
15487 else
15488   cat >conftest.$ac_ext <<_ACEOF
15489 /* confdefs.h.  */
15490 _ACEOF
15491 cat confdefs.h >>conftest.$ac_ext
15492 cat >>conftest.$ac_ext <<_ACEOF
15493 /* end confdefs.h.  */
15494
15495 int
15496 main ()
15497 {
15498 #ifndef __GNUC__
15499        choke me
15500 #endif
15501
15502   ;
15503   return 0;
15504 }
15505 _ACEOF
15506 rm -f conftest.$ac_objext
15507 if { (ac_try="$ac_compile"
15508 case "(($ac_try" in
15509   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15510   *) ac_try_echo=$ac_try;;
15511 esac
15512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15513   (eval "$ac_compile") 2>conftest.er1
15514   ac_status=$?
15515   grep -v '^ *+' conftest.er1 >conftest.err
15516   rm -f conftest.er1
15517   cat conftest.err >&5
15518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15519   (exit $ac_status); } && {
15520          test -z "$ac_c_werror_flag" ||
15521          test ! -s conftest.err
15522        } && test -s conftest.$ac_objext; then
15523   ac_compiler_gnu=yes
15524 else
15525   echo "$as_me: failed program was:" >&5
15526 sed 's/^/| /' conftest.$ac_ext >&5
15527
15528         ac_compiler_gnu=no
15529 fi
15530
15531 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15532 ac_cv_c_compiler_gnu=$ac_compiler_gnu
15533
15534 fi
15535 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
15536 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
15537 GCC=`test $ac_compiler_gnu = yes && echo yes`
15538 ac_test_CFLAGS=${CFLAGS+set}
15539 ac_save_CFLAGS=$CFLAGS
15540 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
15541 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
15542 if test "${ac_cv_prog_cc_g+set}" = set; then
15543   echo $ECHO_N "(cached) $ECHO_C" >&6
15544 else
15545   ac_save_c_werror_flag=$ac_c_werror_flag
15546    ac_c_werror_flag=yes
15547    ac_cv_prog_cc_g=no
15548    CFLAGS="-g"
15549    cat >conftest.$ac_ext <<_ACEOF
15550 /* confdefs.h.  */
15551 _ACEOF
15552 cat confdefs.h >>conftest.$ac_ext
15553 cat >>conftest.$ac_ext <<_ACEOF
15554 /* end confdefs.h.  */
15555
15556 int
15557 main ()
15558 {
15559
15560   ;
15561   return 0;
15562 }
15563 _ACEOF
15564 rm -f conftest.$ac_objext
15565 if { (ac_try="$ac_compile"
15566 case "(($ac_try" in
15567   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15568   *) ac_try_echo=$ac_try;;
15569 esac
15570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15571   (eval "$ac_compile") 2>conftest.er1
15572   ac_status=$?
15573   grep -v '^ *+' conftest.er1 >conftest.err
15574   rm -f conftest.er1
15575   cat conftest.err >&5
15576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15577   (exit $ac_status); } && {
15578          test -z "$ac_c_werror_flag" ||
15579          test ! -s conftest.err
15580        } && test -s conftest.$ac_objext; then
15581   ac_cv_prog_cc_g=yes
15582 else
15583   echo "$as_me: failed program was:" >&5
15584 sed 's/^/| /' conftest.$ac_ext >&5
15585
15586         CFLAGS=""
15587       cat >conftest.$ac_ext <<_ACEOF
15588 /* confdefs.h.  */
15589 _ACEOF
15590 cat confdefs.h >>conftest.$ac_ext
15591 cat >>conftest.$ac_ext <<_ACEOF
15592 /* end confdefs.h.  */
15593
15594 int
15595 main ()
15596 {
15597
15598   ;
15599   return 0;
15600 }
15601 _ACEOF
15602 rm -f conftest.$ac_objext
15603 if { (ac_try="$ac_compile"
15604 case "(($ac_try" in
15605   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15606   *) ac_try_echo=$ac_try;;
15607 esac
15608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15609   (eval "$ac_compile") 2>conftest.er1
15610   ac_status=$?
15611   grep -v '^ *+' conftest.er1 >conftest.err
15612   rm -f conftest.er1
15613   cat conftest.err >&5
15614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15615   (exit $ac_status); } && {
15616          test -z "$ac_c_werror_flag" ||
15617          test ! -s conftest.err
15618        } && test -s conftest.$ac_objext; then
15619   :
15620 else
15621   echo "$as_me: failed program was:" >&5
15622 sed 's/^/| /' conftest.$ac_ext >&5
15623
15624         ac_c_werror_flag=$ac_save_c_werror_flag
15625          CFLAGS="-g"
15626          cat >conftest.$ac_ext <<_ACEOF
15627 /* confdefs.h.  */
15628 _ACEOF
15629 cat confdefs.h >>conftest.$ac_ext
15630 cat >>conftest.$ac_ext <<_ACEOF
15631 /* end confdefs.h.  */
15632
15633 int
15634 main ()
15635 {
15636
15637   ;
15638   return 0;
15639 }
15640 _ACEOF
15641 rm -f conftest.$ac_objext
15642 if { (ac_try="$ac_compile"
15643 case "(($ac_try" in
15644   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15645   *) ac_try_echo=$ac_try;;
15646 esac
15647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15648   (eval "$ac_compile") 2>conftest.er1
15649   ac_status=$?
15650   grep -v '^ *+' conftest.er1 >conftest.err
15651   rm -f conftest.er1
15652   cat conftest.err >&5
15653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15654   (exit $ac_status); } && {
15655          test -z "$ac_c_werror_flag" ||
15656          test ! -s conftest.err
15657        } && test -s conftest.$ac_objext; then
15658   ac_cv_prog_cc_g=yes
15659 else
15660   echo "$as_me: failed program was:" >&5
15661 sed 's/^/| /' conftest.$ac_ext >&5
15662
15663
15664 fi
15665
15666 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15667 fi
15668
15669 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15670 fi
15671
15672 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15673    ac_c_werror_flag=$ac_save_c_werror_flag
15674 fi
15675 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
15676 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
15677 if test "$ac_test_CFLAGS" = set; then
15678   CFLAGS=$ac_save_CFLAGS
15679 elif test $ac_cv_prog_cc_g = yes; then
15680   if test "$GCC" = yes; then
15681     CFLAGS="-g -O2"
15682   else
15683     CFLAGS="-g"
15684   fi
15685 else
15686   if test "$GCC" = yes; then
15687     CFLAGS="-O2"
15688   else
15689     CFLAGS=
15690   fi
15691 fi
15692 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
15693 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
15694 if test "${ac_cv_prog_cc_c89+set}" = set; then
15695   echo $ECHO_N "(cached) $ECHO_C" >&6
15696 else
15697   ac_cv_prog_cc_c89=no
15698 ac_save_CC=$CC
15699 cat >conftest.$ac_ext <<_ACEOF
15700 /* confdefs.h.  */
15701 _ACEOF
15702 cat confdefs.h >>conftest.$ac_ext
15703 cat >>conftest.$ac_ext <<_ACEOF
15704 /* end confdefs.h.  */
15705 #include <stdarg.h>
15706 #include <stdio.h>
15707 #include <sys/types.h>
15708 #include <sys/stat.h>
15709 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
15710 struct buf { int x; };
15711 FILE * (*rcsopen) (struct buf *, struct stat *, int);
15712 static char *e (p, i)
15713      char **p;
15714      int i;
15715 {
15716   return p[i];
15717 }
15718 static char *f (char * (*g) (char **, int), char **p, ...)
15719 {
15720   char *s;
15721   va_list v;
15722   va_start (v,p);
15723   s = g (p, va_arg (v,int));
15724   va_end (v);
15725   return s;
15726 }
15727
15728 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
15729    function prototypes and stuff, but not '\xHH' hex character constants.
15730    These don't provoke an error unfortunately, instead are silently treated
15731    as 'x'.  The following induces an error, until -std is added to get
15732    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
15733    array size at least.  It's necessary to write '\x00'==0 to get something
15734    that's true only with -std.  */
15735 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
15736
15737 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
15738    inside strings and character constants.  */
15739 #define FOO(x) 'x'
15740 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
15741
15742 int test (int i, double x);
15743 struct s1 {int (*f) (int a);};
15744 struct s2 {int (*f) (double a);};
15745 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
15746 int argc;
15747 char **argv;
15748 int
15749 main ()
15750 {
15751 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
15752   ;
15753   return 0;
15754 }
15755 _ACEOF
15756 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
15757         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
15758 do
15759   CC="$ac_save_CC $ac_arg"
15760   rm -f conftest.$ac_objext
15761 if { (ac_try="$ac_compile"
15762 case "(($ac_try" in
15763   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15764   *) ac_try_echo=$ac_try;;
15765 esac
15766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15767   (eval "$ac_compile") 2>conftest.er1
15768   ac_status=$?
15769   grep -v '^ *+' conftest.er1 >conftest.err
15770   rm -f conftest.er1
15771   cat conftest.err >&5
15772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15773   (exit $ac_status); } && {
15774          test -z "$ac_c_werror_flag" ||
15775          test ! -s conftest.err
15776        } && test -s conftest.$ac_objext; then
15777   ac_cv_prog_cc_c89=$ac_arg
15778 else
15779   echo "$as_me: failed program was:" >&5
15780 sed 's/^/| /' conftest.$ac_ext >&5
15781
15782
15783 fi
15784
15785 rm -f core conftest.err conftest.$ac_objext
15786   test "x$ac_cv_prog_cc_c89" != "xno" && break
15787 done
15788 rm -f conftest.$ac_ext
15789 CC=$ac_save_CC
15790
15791 fi
15792 # AC_CACHE_VAL
15793 case "x$ac_cv_prog_cc_c89" in
15794   x)
15795     { echo "$as_me:$LINENO: result: none needed" >&5
15796 echo "${ECHO_T}none needed" >&6; } ;;
15797   xno)
15798     { echo "$as_me:$LINENO: result: unsupported" >&5
15799 echo "${ECHO_T}unsupported" >&6; } ;;
15800   *)
15801     CC="$CC $ac_cv_prog_cc_c89"
15802     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
15803 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
15804 esac
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
15814
15815
15816
15817
15818
15819
15820     ac_ext=c
15821 ac_cpp='$CPP $CPPFLAGS'
15822 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15823 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15824 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15825
15826     { echo "$as_me:$LINENO: checking whether we are using the Intel C compiler" >&5
15827 echo $ECHO_N "checking whether we are using the Intel C compiler... $ECHO_C" >&6; }
15828 if test "${bakefile_cv_c_compiler___INTEL_COMPILER+set}" = set; then
15829   echo $ECHO_N "(cached) $ECHO_C" >&6
15830 else
15831   cat >conftest.$ac_ext <<_ACEOF
15832 /* confdefs.h.  */
15833 _ACEOF
15834 cat confdefs.h >>conftest.$ac_ext
15835 cat >>conftest.$ac_ext <<_ACEOF
15836 /* end confdefs.h.  */
15837
15838 int
15839 main ()
15840 {
15841
15842              #ifndef __INTEL_COMPILER
15843                 choke me
15844              #endif
15845
15846   ;
15847   return 0;
15848 }
15849 _ACEOF
15850 rm -f conftest.$ac_objext
15851 if { (ac_try="$ac_compile"
15852 case "(($ac_try" in
15853   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15854   *) ac_try_echo=$ac_try;;
15855 esac
15856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15857   (eval "$ac_compile") 2>conftest.er1
15858   ac_status=$?
15859   grep -v '^ *+' conftest.er1 >conftest.err
15860   rm -f conftest.er1
15861   cat conftest.err >&5
15862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15863   (exit $ac_status); } && {
15864          test -z "$ac_c_werror_flag" ||
15865          test ! -s conftest.err
15866        } && test -s conftest.$ac_objext; then
15867   bakefile_cv_c_compiler___INTEL_COMPILER=yes
15868 else
15869   echo "$as_me: failed program was:" >&5
15870 sed 's/^/| /' conftest.$ac_ext >&5
15871
15872         bakefile_cv_c_compiler___INTEL_COMPILER=no
15873
15874 fi
15875
15876 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15877
15878
15879 fi
15880 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___INTEL_COMPILER" >&5
15881 echo "${ECHO_T}$bakefile_cv_c_compiler___INTEL_COMPILER" >&6; }
15882     if test "x$bakefile_cv_c_compiler___INTEL_COMPILER" = "xyes"; then
15883         :; INTELCC=yes
15884     else
15885         :;
15886     fi
15887     ac_ext=c
15888 ac_cpp='$CPP $CPPFLAGS'
15889 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15890 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15891 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15892
15893
15894
15895
15896         if test "$INTELCC" = "yes"; then
15897
15898
15899     ac_ext=c
15900 ac_cpp='$CPP $CPPFLAGS'
15901 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15902 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15903 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15904
15905     { echo "$as_me:$LINENO: checking whether we are using Intel C compiler v8 or later" >&5
15906 echo $ECHO_N "checking whether we are using Intel C compiler v8 or later... $ECHO_C" >&6; }
15907 if test "${bakefile_cv_c_compiler___INTEL_COMPILER_lt_800+set}" = set; then
15908   echo $ECHO_N "(cached) $ECHO_C" >&6
15909 else
15910   cat >conftest.$ac_ext <<_ACEOF
15911 /* confdefs.h.  */
15912 _ACEOF
15913 cat confdefs.h >>conftest.$ac_ext
15914 cat >>conftest.$ac_ext <<_ACEOF
15915 /* end confdefs.h.  */
15916
15917 int
15918 main ()
15919 {
15920
15921              #ifndef __INTEL_COMPILER || __INTEL_COMPILER < 800
15922                 choke me
15923              #endif
15924
15925   ;
15926   return 0;
15927 }
15928 _ACEOF
15929 rm -f conftest.$ac_objext
15930 if { (ac_try="$ac_compile"
15931 case "(($ac_try" in
15932   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15933   *) ac_try_echo=$ac_try;;
15934 esac
15935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15936   (eval "$ac_compile") 2>conftest.er1
15937   ac_status=$?
15938   grep -v '^ *+' conftest.er1 >conftest.err
15939   rm -f conftest.er1
15940   cat conftest.err >&5
15941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15942   (exit $ac_status); } && {
15943          test -z "$ac_c_werror_flag" ||
15944          test ! -s conftest.err
15945        } && test -s conftest.$ac_objext; then
15946   bakefile_cv_c_compiler___INTEL_COMPILER_lt_800=yes
15947 else
15948   echo "$as_me: failed program was:" >&5
15949 sed 's/^/| /' conftest.$ac_ext >&5
15950
15951         bakefile_cv_c_compiler___INTEL_COMPILER_lt_800=no
15952
15953 fi
15954
15955 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15956
15957
15958 fi
15959 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___INTEL_COMPILER_lt_800" >&5
15960 echo "${ECHO_T}$bakefile_cv_c_compiler___INTEL_COMPILER_lt_800" >&6; }
15961     if test "x$bakefile_cv_c_compiler___INTEL_COMPILER_lt_800" = "xyes"; then
15962         :; INTELCC8=yes
15963     else
15964         :;
15965     fi
15966     ac_ext=c
15967 ac_cpp='$CPP $CPPFLAGS'
15968 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15969 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15970 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15971
15972
15973
15974
15975
15976     ac_ext=c
15977 ac_cpp='$CPP $CPPFLAGS'
15978 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15979 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15980 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15981
15982     { echo "$as_me:$LINENO: checking whether we are using Intel C compiler v10 or later" >&5
15983 echo $ECHO_N "checking whether we are using Intel C compiler v10 or later... $ECHO_C" >&6; }
15984 if test "${bakefile_cv_c_compiler___INTEL_COMPILER_lt_1000+set}" = set; then
15985   echo $ECHO_N "(cached) $ECHO_C" >&6
15986 else
15987   cat >conftest.$ac_ext <<_ACEOF
15988 /* confdefs.h.  */
15989 _ACEOF
15990 cat confdefs.h >>conftest.$ac_ext
15991 cat >>conftest.$ac_ext <<_ACEOF
15992 /* end confdefs.h.  */
15993
15994 int
15995 main ()
15996 {
15997
15998              #ifndef __INTEL_COMPILER || __INTEL_COMPILER < 1000
15999                 choke me
16000              #endif
16001
16002   ;
16003   return 0;
16004 }
16005 _ACEOF
16006 rm -f conftest.$ac_objext
16007 if { (ac_try="$ac_compile"
16008 case "(($ac_try" in
16009   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16010   *) ac_try_echo=$ac_try;;
16011 esac
16012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16013   (eval "$ac_compile") 2>conftest.er1
16014   ac_status=$?
16015   grep -v '^ *+' conftest.er1 >conftest.err
16016   rm -f conftest.er1
16017   cat conftest.err >&5
16018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16019   (exit $ac_status); } && {
16020          test -z "$ac_c_werror_flag" ||
16021          test ! -s conftest.err
16022        } && test -s conftest.$ac_objext; then
16023   bakefile_cv_c_compiler___INTEL_COMPILER_lt_1000=yes
16024 else
16025   echo "$as_me: failed program was:" >&5
16026 sed 's/^/| /' conftest.$ac_ext >&5
16027
16028         bakefile_cv_c_compiler___INTEL_COMPILER_lt_1000=no
16029
16030 fi
16031
16032 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16033
16034
16035 fi
16036 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___INTEL_COMPILER_lt_1000" >&5
16037 echo "${ECHO_T}$bakefile_cv_c_compiler___INTEL_COMPILER_lt_1000" >&6; }
16038     if test "x$bakefile_cv_c_compiler___INTEL_COMPILER_lt_1000" = "xyes"; then
16039         :; INTELCC10=yes
16040     else
16041         :;
16042     fi
16043     ac_ext=c
16044 ac_cpp='$CPP $CPPFLAGS'
16045 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16046 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16047 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16048
16049
16050
16051     fi
16052
16053         if test "x$GCC" != "xyes"; then
16054         if test "xCC" = "xC"; then
16055             { echo "$as_me:$LINENO: checking if the C compiler requires -ext o" >&5
16056 echo $ECHO_N "checking if the C compiler requires -ext o... $ECHO_C" >&6; }
16057 if test "${bakefile_cv_c_exto+set}" = set; then
16058   echo $ECHO_N "(cached) $ECHO_C" >&6
16059 else
16060   cat >conftest.$ac_ext <<_ACEOF
16061 /* confdefs.h.  */
16062 _ACEOF
16063 cat confdefs.h >>conftest.$ac_ext
16064 cat >>conftest.$ac_ext <<_ACEOF
16065 /* end confdefs.h.  */
16066
16067 int
16068 main ()
16069 {
16070
16071   ;
16072   return 0;
16073 }
16074 _ACEOF
16075 rm -f conftest.$ac_objext conftest.$ac_ext.o
16076 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16077   (eval $ac_compile) 2>&5
16078   ac_status=$?
16079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16080   (exit $ac_status); }; then
16081   for ac_file in `(ls conftest.* 2>/dev/null)`; do
16082     case $ac_file in
16083         conftest.$ac_ext.o)
16084             bakefile_cv_c_exto="-ext o"
16085             ;;
16086         *)
16087             ;;
16088     esac
16089 done
16090 else
16091   { { echo "$as_me:$LINENO: error: cannot figure out if compiler needs -ext o: cannot compile
16092 See \`config.log' for more details." >&5
16093 echo "$as_me: error: cannot figure out if compiler needs -ext o: cannot compile
16094 See \`config.log' for more details." >&2;}
16095    { (exit 1); exit 1; }; }
16096
16097 fi
16098
16099 rm -f conftest.$ac_ext.o conftest.$ac_objext conftest.$ac_ext
16100
16101 fi
16102 { echo "$as_me:$LINENO: result: $bakefile_cv_c_exto" >&5
16103 echo "${ECHO_T}$bakefile_cv_c_exto" >&6; }
16104 if test "x$bakefile_cv_c_exto" '!=' "x"; then
16105     if test "c" = "c"; then
16106         CFLAGS="$bakefile_cv_c_exto $CFLAGS"
16107     fi
16108     if test "c" = "cxx"; then
16109         CXXFLAGS="$bakefile_cv_c_exto $CXXFLAGS"
16110     fi
16111 fi
16112
16113             if test "x$bakefile_cv_c_exto" '!=' "x"; then
16114                 unset ac_cv_prog_cc_g
16115                 ac_test_CFLAGS=${CFLAGS+set}
16116 ac_save_CFLAGS=$CFLAGS
16117 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
16118 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
16119 if test "${ac_cv_prog_cc_g+set}" = set; then
16120   echo $ECHO_N "(cached) $ECHO_C" >&6
16121 else
16122   ac_save_c_werror_flag=$ac_c_werror_flag
16123    ac_c_werror_flag=yes
16124    ac_cv_prog_cc_g=no
16125    CFLAGS="-g"
16126    cat >conftest.$ac_ext <<_ACEOF
16127 /* confdefs.h.  */
16128 _ACEOF
16129 cat confdefs.h >>conftest.$ac_ext
16130 cat >>conftest.$ac_ext <<_ACEOF
16131 /* end confdefs.h.  */
16132
16133 int
16134 main ()
16135 {
16136
16137   ;
16138   return 0;
16139 }
16140 _ACEOF
16141 rm -f conftest.$ac_objext
16142 if { (ac_try="$ac_compile"
16143 case "(($ac_try" in
16144   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16145   *) ac_try_echo=$ac_try;;
16146 esac
16147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16148   (eval "$ac_compile") 2>conftest.er1
16149   ac_status=$?
16150   grep -v '^ *+' conftest.er1 >conftest.err
16151   rm -f conftest.er1
16152   cat conftest.err >&5
16153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16154   (exit $ac_status); } && {
16155          test -z "$ac_c_werror_flag" ||
16156          test ! -s conftest.err
16157        } && test -s conftest.$ac_objext; then
16158   ac_cv_prog_cc_g=yes
16159 else
16160   echo "$as_me: failed program was:" >&5
16161 sed 's/^/| /' conftest.$ac_ext >&5
16162
16163         CFLAGS=""
16164       cat >conftest.$ac_ext <<_ACEOF
16165 /* confdefs.h.  */
16166 _ACEOF
16167 cat confdefs.h >>conftest.$ac_ext
16168 cat >>conftest.$ac_ext <<_ACEOF
16169 /* end confdefs.h.  */
16170
16171 int
16172 main ()
16173 {
16174
16175   ;
16176   return 0;
16177 }
16178 _ACEOF
16179 rm -f conftest.$ac_objext
16180 if { (ac_try="$ac_compile"
16181 case "(($ac_try" in
16182   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16183   *) ac_try_echo=$ac_try;;
16184 esac
16185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16186   (eval "$ac_compile") 2>conftest.er1
16187   ac_status=$?
16188   grep -v '^ *+' conftest.er1 >conftest.err
16189   rm -f conftest.er1
16190   cat conftest.err >&5
16191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16192   (exit $ac_status); } && {
16193          test -z "$ac_c_werror_flag" ||
16194          test ! -s conftest.err
16195        } && test -s conftest.$ac_objext; then
16196   :
16197 else
16198   echo "$as_me: failed program was:" >&5
16199 sed 's/^/| /' conftest.$ac_ext >&5
16200
16201         ac_c_werror_flag=$ac_save_c_werror_flag
16202          CFLAGS="-g"
16203          cat >conftest.$ac_ext <<_ACEOF
16204 /* confdefs.h.  */
16205 _ACEOF
16206 cat confdefs.h >>conftest.$ac_ext
16207 cat >>conftest.$ac_ext <<_ACEOF
16208 /* end confdefs.h.  */
16209
16210 int
16211 main ()
16212 {
16213
16214   ;
16215   return 0;
16216 }
16217 _ACEOF
16218 rm -f conftest.$ac_objext
16219 if { (ac_try="$ac_compile"
16220 case "(($ac_try" in
16221   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16222   *) ac_try_echo=$ac_try;;
16223 esac
16224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16225   (eval "$ac_compile") 2>conftest.er1
16226   ac_status=$?
16227   grep -v '^ *+' conftest.er1 >conftest.err
16228   rm -f conftest.er1
16229   cat conftest.err >&5
16230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16231   (exit $ac_status); } && {
16232          test -z "$ac_c_werror_flag" ||
16233          test ! -s conftest.err
16234        } && test -s conftest.$ac_objext; then
16235   ac_cv_prog_cc_g=yes
16236 else
16237   echo "$as_me: failed program was:" >&5
16238 sed 's/^/| /' conftest.$ac_ext >&5
16239
16240
16241 fi
16242
16243 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16244 fi
16245
16246 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16247 fi
16248
16249 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16250    ac_c_werror_flag=$ac_save_c_werror_flag
16251 fi
16252 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
16253 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
16254 if test "$ac_test_CFLAGS" = set; then
16255   CFLAGS=$ac_save_CFLAGS
16256 elif test $ac_cv_prog_cc_g = yes; then
16257   if test "$GCC" = yes; then
16258     CFLAGS="-g -O2"
16259   else
16260     CFLAGS="-g"
16261   fi
16262 else
16263   if test "$GCC" = yes; then
16264     CFLAGS="-O2"
16265   else
16266     CFLAGS=
16267   fi
16268 fi
16269             fi
16270         fi
16271
16272                         case `uname -s` in
16273             AIX*)
16274
16275
16276     ac_ext=c
16277 ac_cpp='$CPP $CPPFLAGS'
16278 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16279 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16280 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16281
16282     { echo "$as_me:$LINENO: checking whether we are using the IBM xlC C compiler" >&5
16283 echo $ECHO_N "checking whether we are using the IBM xlC C compiler... $ECHO_C" >&6; }
16284 if test "${bakefile_cv_c_compiler___xlC__+set}" = set; then
16285   echo $ECHO_N "(cached) $ECHO_C" >&6
16286 else
16287   cat >conftest.$ac_ext <<_ACEOF
16288 /* confdefs.h.  */
16289 _ACEOF
16290 cat confdefs.h >>conftest.$ac_ext
16291 cat >>conftest.$ac_ext <<_ACEOF
16292 /* end confdefs.h.  */
16293
16294 int
16295 main ()
16296 {
16297
16298              #ifndef __xlC__
16299                 choke me
16300              #endif
16301
16302   ;
16303   return 0;
16304 }
16305 _ACEOF
16306 rm -f conftest.$ac_objext
16307 if { (ac_try="$ac_compile"
16308 case "(($ac_try" in
16309   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16310   *) ac_try_echo=$ac_try;;
16311 esac
16312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16313   (eval "$ac_compile") 2>conftest.er1
16314   ac_status=$?
16315   grep -v '^ *+' conftest.er1 >conftest.err
16316   rm -f conftest.er1
16317   cat conftest.err >&5
16318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16319   (exit $ac_status); } && {
16320          test -z "$ac_c_werror_flag" ||
16321          test ! -s conftest.err
16322        } && test -s conftest.$ac_objext; then
16323   bakefile_cv_c_compiler___xlC__=yes
16324 else
16325   echo "$as_me: failed program was:" >&5
16326 sed 's/^/| /' conftest.$ac_ext >&5
16327
16328         bakefile_cv_c_compiler___xlC__=no
16329
16330 fi
16331
16332 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16333
16334
16335 fi
16336 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___xlC__" >&5
16337 echo "${ECHO_T}$bakefile_cv_c_compiler___xlC__" >&6; }
16338     if test "x$bakefile_cv_c_compiler___xlC__" = "xyes"; then
16339         :; XLCC=yes
16340     else
16341         :;
16342     fi
16343     ac_ext=c
16344 ac_cpp='$CPP $CPPFLAGS'
16345 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16346 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16347 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16348
16349
16350
16351                 ;;
16352
16353             Darwin)
16354
16355
16356     ac_ext=c
16357 ac_cpp='$CPP $CPPFLAGS'
16358 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16359 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16360 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16361
16362     { echo "$as_me:$LINENO: checking whether we are using the Metrowerks C compiler" >&5
16363 echo $ECHO_N "checking whether we are using the Metrowerks C compiler... $ECHO_C" >&6; }
16364 if test "${bakefile_cv_c_compiler___MWERKS__+set}" = set; then
16365   echo $ECHO_N "(cached) $ECHO_C" >&6
16366 else
16367   cat >conftest.$ac_ext <<_ACEOF
16368 /* confdefs.h.  */
16369 _ACEOF
16370 cat confdefs.h >>conftest.$ac_ext
16371 cat >>conftest.$ac_ext <<_ACEOF
16372 /* end confdefs.h.  */
16373
16374 int
16375 main ()
16376 {
16377
16378              #ifndef __MWERKS__
16379                 choke me
16380              #endif
16381
16382   ;
16383   return 0;
16384 }
16385 _ACEOF
16386 rm -f conftest.$ac_objext
16387 if { (ac_try="$ac_compile"
16388 case "(($ac_try" in
16389   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16390   *) ac_try_echo=$ac_try;;
16391 esac
16392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16393   (eval "$ac_compile") 2>conftest.er1
16394   ac_status=$?
16395   grep -v '^ *+' conftest.er1 >conftest.err
16396   rm -f conftest.er1
16397   cat conftest.err >&5
16398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16399   (exit $ac_status); } && {
16400          test -z "$ac_c_werror_flag" ||
16401          test ! -s conftest.err
16402        } && test -s conftest.$ac_objext; then
16403   bakefile_cv_c_compiler___MWERKS__=yes
16404 else
16405   echo "$as_me: failed program was:" >&5
16406 sed 's/^/| /' conftest.$ac_ext >&5
16407
16408         bakefile_cv_c_compiler___MWERKS__=no
16409
16410 fi
16411
16412 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16413
16414
16415 fi
16416 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___MWERKS__" >&5
16417 echo "${ECHO_T}$bakefile_cv_c_compiler___MWERKS__" >&6; }
16418     if test "x$bakefile_cv_c_compiler___MWERKS__" = "xyes"; then
16419         :; MWCC=yes
16420     else
16421         :;
16422     fi
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
16430
16431                 if test "$MWCC" != "yes"; then
16432
16433
16434     ac_ext=c
16435 ac_cpp='$CPP $CPPFLAGS'
16436 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16437 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16438 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16439
16440     { echo "$as_me:$LINENO: checking whether we are using the IBM xlC C compiler" >&5
16441 echo $ECHO_N "checking whether we are using the IBM xlC C compiler... $ECHO_C" >&6; }
16442 if test "${bakefile_cv_c_compiler___xlC__+set}" = set; then
16443   echo $ECHO_N "(cached) $ECHO_C" >&6
16444 else
16445   cat >conftest.$ac_ext <<_ACEOF
16446 /* confdefs.h.  */
16447 _ACEOF
16448 cat confdefs.h >>conftest.$ac_ext
16449 cat >>conftest.$ac_ext <<_ACEOF
16450 /* end confdefs.h.  */
16451
16452 int
16453 main ()
16454 {
16455
16456              #ifndef __xlC__
16457                 choke me
16458              #endif
16459
16460   ;
16461   return 0;
16462 }
16463 _ACEOF
16464 rm -f conftest.$ac_objext
16465 if { (ac_try="$ac_compile"
16466 case "(($ac_try" in
16467   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16468   *) ac_try_echo=$ac_try;;
16469 esac
16470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16471   (eval "$ac_compile") 2>conftest.er1
16472   ac_status=$?
16473   grep -v '^ *+' conftest.er1 >conftest.err
16474   rm -f conftest.er1
16475   cat conftest.err >&5
16476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16477   (exit $ac_status); } && {
16478          test -z "$ac_c_werror_flag" ||
16479          test ! -s conftest.err
16480        } && test -s conftest.$ac_objext; then
16481   bakefile_cv_c_compiler___xlC__=yes
16482 else
16483   echo "$as_me: failed program was:" >&5
16484 sed 's/^/| /' conftest.$ac_ext >&5
16485
16486         bakefile_cv_c_compiler___xlC__=no
16487
16488 fi
16489
16490 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16491
16492
16493 fi
16494 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___xlC__" >&5
16495 echo "${ECHO_T}$bakefile_cv_c_compiler___xlC__" >&6; }
16496     if test "x$bakefile_cv_c_compiler___xlC__" = "xyes"; then
16497         :; XLCC=yes
16498     else
16499         :;
16500     fi
16501     ac_ext=c
16502 ac_cpp='$CPP $CPPFLAGS'
16503 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16504 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16505 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16506
16507
16508
16509                 fi
16510                 ;;
16511
16512             IRIX*)
16513
16514
16515     ac_ext=c
16516 ac_cpp='$CPP $CPPFLAGS'
16517 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16518 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16519 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16520
16521     { echo "$as_me:$LINENO: checking whether we are using the SGI C compiler" >&5
16522 echo $ECHO_N "checking whether we are using the SGI C compiler... $ECHO_C" >&6; }
16523 if test "${bakefile_cv_c_compiler__SGI_COMPILER_VERSION+set}" = set; then
16524   echo $ECHO_N "(cached) $ECHO_C" >&6
16525 else
16526   cat >conftest.$ac_ext <<_ACEOF
16527 /* confdefs.h.  */
16528 _ACEOF
16529 cat confdefs.h >>conftest.$ac_ext
16530 cat >>conftest.$ac_ext <<_ACEOF
16531 /* end confdefs.h.  */
16532
16533 int
16534 main ()
16535 {
16536
16537              #ifndef _SGI_COMPILER_VERSION
16538                 choke me
16539              #endif
16540
16541   ;
16542   return 0;
16543 }
16544 _ACEOF
16545 rm -f conftest.$ac_objext
16546 if { (ac_try="$ac_compile"
16547 case "(($ac_try" in
16548   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16549   *) ac_try_echo=$ac_try;;
16550 esac
16551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16552   (eval "$ac_compile") 2>conftest.er1
16553   ac_status=$?
16554   grep -v '^ *+' conftest.er1 >conftest.err
16555   rm -f conftest.er1
16556   cat conftest.err >&5
16557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16558   (exit $ac_status); } && {
16559          test -z "$ac_c_werror_flag" ||
16560          test ! -s conftest.err
16561        } && test -s conftest.$ac_objext; then
16562   bakefile_cv_c_compiler__SGI_COMPILER_VERSION=yes
16563 else
16564   echo "$as_me: failed program was:" >&5
16565 sed 's/^/| /' conftest.$ac_ext >&5
16566
16567         bakefile_cv_c_compiler__SGI_COMPILER_VERSION=no
16568
16569 fi
16570
16571 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16572
16573
16574 fi
16575 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler__SGI_COMPILER_VERSION" >&5
16576 echo "${ECHO_T}$bakefile_cv_c_compiler__SGI_COMPILER_VERSION" >&6; }
16577     if test "x$bakefile_cv_c_compiler__SGI_COMPILER_VERSION" = "xyes"; then
16578         :; SGICC=yes
16579     else
16580         :;
16581     fi
16582     ac_ext=c
16583 ac_cpp='$CPP $CPPFLAGS'
16584 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16585 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16586 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16587
16588
16589
16590                 ;;
16591
16592             Linux*)
16593                                                 if test "$INTELCC" != "yes"; then
16594
16595
16596     ac_ext=c
16597 ac_cpp='$CPP $CPPFLAGS'
16598 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16599 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16600 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16601
16602     { echo "$as_me:$LINENO: checking whether we are using the Sun C compiler" >&5
16603 echo $ECHO_N "checking whether we are using the Sun C compiler... $ECHO_C" >&6; }
16604 if test "${bakefile_cv_c_compiler___SUNPRO_C+set}" = set; then
16605   echo $ECHO_N "(cached) $ECHO_C" >&6
16606 else
16607   cat >conftest.$ac_ext <<_ACEOF
16608 /* confdefs.h.  */
16609 _ACEOF
16610 cat confdefs.h >>conftest.$ac_ext
16611 cat >>conftest.$ac_ext <<_ACEOF
16612 /* end confdefs.h.  */
16613
16614 int
16615 main ()
16616 {
16617
16618              #ifndef __SUNPRO_C
16619                 choke me
16620              #endif
16621
16622   ;
16623   return 0;
16624 }
16625 _ACEOF
16626 rm -f conftest.$ac_objext
16627 if { (ac_try="$ac_compile"
16628 case "(($ac_try" in
16629   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16630   *) ac_try_echo=$ac_try;;
16631 esac
16632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16633   (eval "$ac_compile") 2>conftest.er1
16634   ac_status=$?
16635   grep -v '^ *+' conftest.er1 >conftest.err
16636   rm -f conftest.er1
16637   cat conftest.err >&5
16638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16639   (exit $ac_status); } && {
16640          test -z "$ac_c_werror_flag" ||
16641          test ! -s conftest.err
16642        } && test -s conftest.$ac_objext; then
16643   bakefile_cv_c_compiler___SUNPRO_C=yes
16644 else
16645   echo "$as_me: failed program was:" >&5
16646 sed 's/^/| /' conftest.$ac_ext >&5
16647
16648         bakefile_cv_c_compiler___SUNPRO_C=no
16649
16650 fi
16651
16652 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16653
16654
16655 fi
16656 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___SUNPRO_C" >&5
16657 echo "${ECHO_T}$bakefile_cv_c_compiler___SUNPRO_C" >&6; }
16658     if test "x$bakefile_cv_c_compiler___SUNPRO_C" = "xyes"; then
16659         :; SUNCC=yes
16660     else
16661         :;
16662     fi
16663     ac_ext=c
16664 ac_cpp='$CPP $CPPFLAGS'
16665 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16666 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16667 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16668
16669
16670
16671                 fi
16672                 ;;
16673
16674             HP-UX*)
16675
16676
16677     ac_ext=c
16678 ac_cpp='$CPP $CPPFLAGS'
16679 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16680 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16681 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16682
16683     { echo "$as_me:$LINENO: checking whether we are using the HP C compiler" >&5
16684 echo $ECHO_N "checking whether we are using the HP C compiler... $ECHO_C" >&6; }
16685 if test "${bakefile_cv_c_compiler___HP_cc+set}" = set; then
16686   echo $ECHO_N "(cached) $ECHO_C" >&6
16687 else
16688   cat >conftest.$ac_ext <<_ACEOF
16689 /* confdefs.h.  */
16690 _ACEOF
16691 cat confdefs.h >>conftest.$ac_ext
16692 cat >>conftest.$ac_ext <<_ACEOF
16693 /* end confdefs.h.  */
16694
16695 int
16696 main ()
16697 {
16698
16699              #ifndef __HP_cc
16700                 choke me
16701              #endif
16702
16703   ;
16704   return 0;
16705 }
16706 _ACEOF
16707 rm -f conftest.$ac_objext
16708 if { (ac_try="$ac_compile"
16709 case "(($ac_try" in
16710   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16711   *) ac_try_echo=$ac_try;;
16712 esac
16713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16714   (eval "$ac_compile") 2>conftest.er1
16715   ac_status=$?
16716   grep -v '^ *+' conftest.er1 >conftest.err
16717   rm -f conftest.er1
16718   cat conftest.err >&5
16719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16720   (exit $ac_status); } && {
16721          test -z "$ac_c_werror_flag" ||
16722          test ! -s conftest.err
16723        } && test -s conftest.$ac_objext; then
16724   bakefile_cv_c_compiler___HP_cc=yes
16725 else
16726   echo "$as_me: failed program was:" >&5
16727 sed 's/^/| /' conftest.$ac_ext >&5
16728
16729         bakefile_cv_c_compiler___HP_cc=no
16730
16731 fi
16732
16733 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16734
16735
16736 fi
16737 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___HP_cc" >&5
16738 echo "${ECHO_T}$bakefile_cv_c_compiler___HP_cc" >&6; }
16739     if test "x$bakefile_cv_c_compiler___HP_cc" = "xyes"; then
16740         :; HPCC=yes
16741     else
16742         :;
16743     fi
16744     ac_ext=c
16745 ac_cpp='$CPP $CPPFLAGS'
16746 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16747 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16748 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16749
16750
16751
16752                 ;;
16753
16754             OSF1)
16755
16756
16757     ac_ext=c
16758 ac_cpp='$CPP $CPPFLAGS'
16759 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16760 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16761 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16762
16763     { echo "$as_me:$LINENO: checking whether we are using the Compaq C compiler" >&5
16764 echo $ECHO_N "checking whether we are using the Compaq C compiler... $ECHO_C" >&6; }
16765 if test "${bakefile_cv_c_compiler___DECC+set}" = set; then
16766   echo $ECHO_N "(cached) $ECHO_C" >&6
16767 else
16768   cat >conftest.$ac_ext <<_ACEOF
16769 /* confdefs.h.  */
16770 _ACEOF
16771 cat confdefs.h >>conftest.$ac_ext
16772 cat >>conftest.$ac_ext <<_ACEOF
16773 /* end confdefs.h.  */
16774
16775 int
16776 main ()
16777 {
16778
16779              #ifndef __DECC
16780                 choke me
16781              #endif
16782
16783   ;
16784   return 0;
16785 }
16786 _ACEOF
16787 rm -f conftest.$ac_objext
16788 if { (ac_try="$ac_compile"
16789 case "(($ac_try" in
16790   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16791   *) ac_try_echo=$ac_try;;
16792 esac
16793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16794   (eval "$ac_compile") 2>conftest.er1
16795   ac_status=$?
16796   grep -v '^ *+' conftest.er1 >conftest.err
16797   rm -f conftest.er1
16798   cat conftest.err >&5
16799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16800   (exit $ac_status); } && {
16801          test -z "$ac_c_werror_flag" ||
16802          test ! -s conftest.err
16803        } && test -s conftest.$ac_objext; then
16804   bakefile_cv_c_compiler___DECC=yes
16805 else
16806   echo "$as_me: failed program was:" >&5
16807 sed 's/^/| /' conftest.$ac_ext >&5
16808
16809         bakefile_cv_c_compiler___DECC=no
16810
16811 fi
16812
16813 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16814
16815
16816 fi
16817 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___DECC" >&5
16818 echo "${ECHO_T}$bakefile_cv_c_compiler___DECC" >&6; }
16819     if test "x$bakefile_cv_c_compiler___DECC" = "xyes"; then
16820         :; COMPAQCC=yes
16821     else
16822         :;
16823     fi
16824     ac_ext=c
16825 ac_cpp='$CPP $CPPFLAGS'
16826 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16827 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16828 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16829
16830
16831
16832                 ;;
16833
16834             SunOS)
16835
16836
16837     ac_ext=c
16838 ac_cpp='$CPP $CPPFLAGS'
16839 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16840 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16841 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16842
16843     { echo "$as_me:$LINENO: checking whether we are using the Sun C compiler" >&5
16844 echo $ECHO_N "checking whether we are using the Sun C compiler... $ECHO_C" >&6; }
16845 if test "${bakefile_cv_c_compiler___SUNPRO_C+set}" = set; then
16846   echo $ECHO_N "(cached) $ECHO_C" >&6
16847 else
16848   cat >conftest.$ac_ext <<_ACEOF
16849 /* confdefs.h.  */
16850 _ACEOF
16851 cat confdefs.h >>conftest.$ac_ext
16852 cat >>conftest.$ac_ext <<_ACEOF
16853 /* end confdefs.h.  */
16854
16855 int
16856 main ()
16857 {
16858
16859              #ifndef __SUNPRO_C
16860                 choke me
16861              #endif
16862
16863   ;
16864   return 0;
16865 }
16866 _ACEOF
16867 rm -f conftest.$ac_objext
16868 if { (ac_try="$ac_compile"
16869 case "(($ac_try" in
16870   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16871   *) ac_try_echo=$ac_try;;
16872 esac
16873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16874   (eval "$ac_compile") 2>conftest.er1
16875   ac_status=$?
16876   grep -v '^ *+' conftest.er1 >conftest.err
16877   rm -f conftest.er1
16878   cat conftest.err >&5
16879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16880   (exit $ac_status); } && {
16881          test -z "$ac_c_werror_flag" ||
16882          test ! -s conftest.err
16883        } && test -s conftest.$ac_objext; then
16884   bakefile_cv_c_compiler___SUNPRO_C=yes
16885 else
16886   echo "$as_me: failed program was:" >&5
16887 sed 's/^/| /' conftest.$ac_ext >&5
16888
16889         bakefile_cv_c_compiler___SUNPRO_C=no
16890
16891 fi
16892
16893 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16894
16895
16896 fi
16897 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___SUNPRO_C" >&5
16898 echo "${ECHO_T}$bakefile_cv_c_compiler___SUNPRO_C" >&6; }
16899     if test "x$bakefile_cv_c_compiler___SUNPRO_C" = "xyes"; then
16900         :; SUNCC=yes
16901     else
16902         :;
16903     fi
16904     ac_ext=c
16905 ac_cpp='$CPP $CPPFLAGS'
16906 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16907 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16908 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16909
16910
16911
16912                 ;;
16913         esac
16914     fi
16915
16916
16917
16918 ac_ext=c
16919 ac_cpp='$CPP $CPPFLAGS'
16920 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16921 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16922 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16923 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
16924 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
16925 # On Suns, sometimes $CPP names a directory.
16926 if test -n "$CPP" && test -d "$CPP"; then
16927   CPP=
16928 fi
16929 if test -z "$CPP"; then
16930   if test "${ac_cv_prog_CPP+set}" = set; then
16931   echo $ECHO_N "(cached) $ECHO_C" >&6
16932 else
16933       # Double quotes because CPP needs to be expanded
16934     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
16935     do
16936       ac_preproc_ok=false
16937 for ac_c_preproc_warn_flag in '' yes
16938 do
16939   # Use a header file that comes with gcc, so configuring glibc
16940   # with a fresh cross-compiler works.
16941   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16942   # <limits.h> exists even on freestanding compilers.
16943   # On the NeXT, cc -E runs the code through the compiler's parser,
16944   # not just through cpp. "Syntax error" is here to catch this case.
16945   cat >conftest.$ac_ext <<_ACEOF
16946 /* confdefs.h.  */
16947 _ACEOF
16948 cat confdefs.h >>conftest.$ac_ext
16949 cat >>conftest.$ac_ext <<_ACEOF
16950 /* end confdefs.h.  */
16951 #ifdef __STDC__
16952 # include <limits.h>
16953 #else
16954 # include <assert.h>
16955 #endif
16956                      Syntax error
16957 _ACEOF
16958 if { (ac_try="$ac_cpp conftest.$ac_ext"
16959 case "(($ac_try" in
16960   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16961   *) ac_try_echo=$ac_try;;
16962 esac
16963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16964   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16965   ac_status=$?
16966   grep -v '^ *+' conftest.er1 >conftest.err
16967   rm -f conftest.er1
16968   cat conftest.err >&5
16969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16970   (exit $ac_status); } >/dev/null && {
16971          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16972          test ! -s conftest.err
16973        }; then
16974   :
16975 else
16976   echo "$as_me: failed program was:" >&5
16977 sed 's/^/| /' conftest.$ac_ext >&5
16978
16979   # Broken: fails on valid input.
16980 continue
16981 fi
16982
16983 rm -f conftest.err conftest.$ac_ext
16984
16985   # OK, works on sane cases.  Now check whether nonexistent headers
16986   # can be detected and how.
16987   cat >conftest.$ac_ext <<_ACEOF
16988 /* confdefs.h.  */
16989 _ACEOF
16990 cat confdefs.h >>conftest.$ac_ext
16991 cat >>conftest.$ac_ext <<_ACEOF
16992 /* end confdefs.h.  */
16993 #include <ac_nonexistent.h>
16994 _ACEOF
16995 if { (ac_try="$ac_cpp conftest.$ac_ext"
16996 case "(($ac_try" in
16997   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16998   *) ac_try_echo=$ac_try;;
16999 esac
17000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17001   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17002   ac_status=$?
17003   grep -v '^ *+' conftest.er1 >conftest.err
17004   rm -f conftest.er1
17005   cat conftest.err >&5
17006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17007   (exit $ac_status); } >/dev/null && {
17008          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17009          test ! -s conftest.err
17010        }; then
17011   # Broken: success on invalid input.
17012 continue
17013 else
17014   echo "$as_me: failed program was:" >&5
17015 sed 's/^/| /' conftest.$ac_ext >&5
17016
17017   # Passes both tests.
17018 ac_preproc_ok=:
17019 break
17020 fi
17021
17022 rm -f conftest.err conftest.$ac_ext
17023
17024 done
17025 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
17026 rm -f conftest.err conftest.$ac_ext
17027 if $ac_preproc_ok; then
17028   break
17029 fi
17030
17031     done
17032     ac_cv_prog_CPP=$CPP
17033
17034 fi
17035   CPP=$ac_cv_prog_CPP
17036 else
17037   ac_cv_prog_CPP=$CPP
17038 fi
17039 { echo "$as_me:$LINENO: result: $CPP" >&5
17040 echo "${ECHO_T}$CPP" >&6; }
17041 ac_preproc_ok=false
17042 for ac_c_preproc_warn_flag in '' yes
17043 do
17044   # Use a header file that comes with gcc, so configuring glibc
17045   # with a fresh cross-compiler works.
17046   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17047   # <limits.h> exists even on freestanding compilers.
17048   # On the NeXT, cc -E runs the code through the compiler's parser,
17049   # not just through cpp. "Syntax error" is here to catch this case.
17050   cat >conftest.$ac_ext <<_ACEOF
17051 /* confdefs.h.  */
17052 _ACEOF
17053 cat confdefs.h >>conftest.$ac_ext
17054 cat >>conftest.$ac_ext <<_ACEOF
17055 /* end confdefs.h.  */
17056 #ifdef __STDC__
17057 # include <limits.h>
17058 #else
17059 # include <assert.h>
17060 #endif
17061                      Syntax error
17062 _ACEOF
17063 if { (ac_try="$ac_cpp conftest.$ac_ext"
17064 case "(($ac_try" in
17065   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17066   *) ac_try_echo=$ac_try;;
17067 esac
17068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17069   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17070   ac_status=$?
17071   grep -v '^ *+' conftest.er1 >conftest.err
17072   rm -f conftest.er1
17073   cat conftest.err >&5
17074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17075   (exit $ac_status); } >/dev/null && {
17076          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17077          test ! -s conftest.err
17078        }; then
17079   :
17080 else
17081   echo "$as_me: failed program was:" >&5
17082 sed 's/^/| /' conftest.$ac_ext >&5
17083
17084   # Broken: fails on valid input.
17085 continue
17086 fi
17087
17088 rm -f conftest.err conftest.$ac_ext
17089
17090   # OK, works on sane cases.  Now check whether nonexistent headers
17091   # can be detected and how.
17092   cat >conftest.$ac_ext <<_ACEOF
17093 /* confdefs.h.  */
17094 _ACEOF
17095 cat confdefs.h >>conftest.$ac_ext
17096 cat >>conftest.$ac_ext <<_ACEOF
17097 /* end confdefs.h.  */
17098 #include <ac_nonexistent.h>
17099 _ACEOF
17100 if { (ac_try="$ac_cpp conftest.$ac_ext"
17101 case "(($ac_try" in
17102   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17103   *) ac_try_echo=$ac_try;;
17104 esac
17105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17106   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17107   ac_status=$?
17108   grep -v '^ *+' conftest.er1 >conftest.err
17109   rm -f conftest.er1
17110   cat conftest.err >&5
17111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17112   (exit $ac_status); } >/dev/null && {
17113          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17114          test ! -s conftest.err
17115        }; then
17116   # Broken: success on invalid input.
17117 continue
17118 else
17119   echo "$as_me: failed program was:" >&5
17120 sed 's/^/| /' conftest.$ac_ext >&5
17121
17122   # Passes both tests.
17123 ac_preproc_ok=:
17124 break
17125 fi
17126
17127 rm -f conftest.err conftest.$ac_ext
17128
17129 done
17130 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
17131 rm -f conftest.err conftest.$ac_ext
17132 if $ac_preproc_ok; then
17133   :
17134 else
17135   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
17136 See \`config.log' for more details." >&5
17137 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
17138 See \`config.log' for more details." >&2;}
17139    { (exit 1); exit 1; }; }
17140 fi
17141
17142 ac_ext=c
17143 ac_cpp='$CPP $CPPFLAGS'
17144 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17145 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17146 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17147
17148
17149 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
17150 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
17151 if test "${ac_cv_path_GREP+set}" = set; then
17152   echo $ECHO_N "(cached) $ECHO_C" >&6
17153 else
17154   # Extract the first word of "grep ggrep" to use in msg output
17155 if test -z "$GREP"; then
17156 set dummy grep ggrep; ac_prog_name=$2
17157 if test "${ac_cv_path_GREP+set}" = set; then
17158   echo $ECHO_N "(cached) $ECHO_C" >&6
17159 else
17160   ac_path_GREP_found=false
17161 # Loop through the user's path and test for each of PROGNAME-LIST
17162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17163 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
17164 do
17165   IFS=$as_save_IFS
17166   test -z "$as_dir" && as_dir=.
17167   for ac_prog in grep ggrep; do
17168   for ac_exec_ext in '' $ac_executable_extensions; do
17169     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
17170     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
17171     # Check for GNU ac_path_GREP and select it if it is found.
17172   # Check for GNU $ac_path_GREP
17173 case `"$ac_path_GREP" --version 2>&1` in
17174 *GNU*)
17175   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
17176 *)
17177   ac_count=0
17178   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
17179   while :
17180   do
17181     cat "conftest.in" "conftest.in" >"conftest.tmp"
17182     mv "conftest.tmp" "conftest.in"
17183     cp "conftest.in" "conftest.nl"
17184     echo 'GREP' >> "conftest.nl"
17185     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
17186     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
17187     ac_count=`expr $ac_count + 1`
17188     if test $ac_count -gt ${ac_path_GREP_max-0}; then
17189       # Best one so far, save it but keep looking for a better one
17190       ac_cv_path_GREP="$ac_path_GREP"
17191       ac_path_GREP_max=$ac_count
17192     fi
17193     # 10*(2^10) chars as input seems more than enough
17194     test $ac_count -gt 10 && break
17195   done
17196   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
17197 esac
17198
17199
17200     $ac_path_GREP_found && break 3
17201   done
17202 done
17203
17204 done
17205 IFS=$as_save_IFS
17206
17207
17208 fi
17209
17210 GREP="$ac_cv_path_GREP"
17211 if test -z "$GREP"; then
17212   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
17213 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
17214    { (exit 1); exit 1; }; }
17215 fi
17216
17217 else
17218   ac_cv_path_GREP=$GREP
17219 fi
17220
17221
17222 fi
17223 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
17224 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
17225  GREP="$ac_cv_path_GREP"
17226
17227
17228 { echo "$as_me:$LINENO: checking for egrep" >&5
17229 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
17230 if test "${ac_cv_path_EGREP+set}" = set; then
17231   echo $ECHO_N "(cached) $ECHO_C" >&6
17232 else
17233   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
17234    then ac_cv_path_EGREP="$GREP -E"
17235    else
17236      # Extract the first word of "egrep" to use in msg output
17237 if test -z "$EGREP"; then
17238 set dummy egrep; ac_prog_name=$2
17239 if test "${ac_cv_path_EGREP+set}" = set; then
17240   echo $ECHO_N "(cached) $ECHO_C" >&6
17241 else
17242   ac_path_EGREP_found=false
17243 # Loop through the user's path and test for each of PROGNAME-LIST
17244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17245 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
17246 do
17247   IFS=$as_save_IFS
17248   test -z "$as_dir" && as_dir=.
17249   for ac_prog in egrep; do
17250   for ac_exec_ext in '' $ac_executable_extensions; do
17251     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
17252     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
17253     # Check for GNU ac_path_EGREP and select it if it is found.
17254   # Check for GNU $ac_path_EGREP
17255 case `"$ac_path_EGREP" --version 2>&1` in
17256 *GNU*)
17257   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
17258 *)
17259   ac_count=0
17260   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
17261   while :
17262   do
17263     cat "conftest.in" "conftest.in" >"conftest.tmp"
17264     mv "conftest.tmp" "conftest.in"
17265     cp "conftest.in" "conftest.nl"
17266     echo 'EGREP' >> "conftest.nl"
17267     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
17268     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
17269     ac_count=`expr $ac_count + 1`
17270     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
17271       # Best one so far, save it but keep looking for a better one
17272       ac_cv_path_EGREP="$ac_path_EGREP"
17273       ac_path_EGREP_max=$ac_count
17274     fi
17275     # 10*(2^10) chars as input seems more than enough
17276     test $ac_count -gt 10 && break
17277   done
17278   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
17279 esac
17280
17281
17282     $ac_path_EGREP_found && break 3
17283   done
17284 done
17285
17286 done
17287 IFS=$as_save_IFS
17288
17289
17290 fi
17291
17292 EGREP="$ac_cv_path_EGREP"
17293 if test -z "$EGREP"; then
17294   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
17295 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
17296    { (exit 1); exit 1; }; }
17297 fi
17298
17299 else
17300   ac_cv_path_EGREP=$EGREP
17301 fi
17302
17303
17304    fi
17305 fi
17306 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
17307 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
17308  EGREP="$ac_cv_path_EGREP"
17309
17310
17311 if test $ac_cv_c_compiler_gnu = yes; then
17312     { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
17313 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
17314 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
17315   echo $ECHO_N "(cached) $ECHO_C" >&6
17316 else
17317     ac_pattern="Autoconf.*'x'"
17318   cat >conftest.$ac_ext <<_ACEOF
17319 /* confdefs.h.  */
17320 _ACEOF
17321 cat confdefs.h >>conftest.$ac_ext
17322 cat >>conftest.$ac_ext <<_ACEOF
17323 /* end confdefs.h.  */
17324 #include <sgtty.h>
17325 Autoconf TIOCGETP
17326 _ACEOF
17327 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17328   $EGREP "$ac_pattern" >/dev/null 2>&1; then
17329   ac_cv_prog_gcc_traditional=yes
17330 else
17331   ac_cv_prog_gcc_traditional=no
17332 fi
17333 rm -f conftest*
17334
17335
17336   if test $ac_cv_prog_gcc_traditional = no; then
17337     cat >conftest.$ac_ext <<_ACEOF
17338 /* confdefs.h.  */
17339 _ACEOF
17340 cat confdefs.h >>conftest.$ac_ext
17341 cat >>conftest.$ac_ext <<_ACEOF
17342 /* end confdefs.h.  */
17343 #include <termio.h>
17344 Autoconf TCGETA
17345 _ACEOF
17346 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17347   $EGREP "$ac_pattern" >/dev/null 2>&1; then
17348   ac_cv_prog_gcc_traditional=yes
17349 fi
17350 rm -f conftest*
17351
17352   fi
17353 fi
17354 { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
17355 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
17356   if test $ac_cv_prog_gcc_traditional = yes; then
17357     CC="$CC -traditional"
17358   fi
17359 fi
17360
17361
17362 CXXFLAGS=${CXXFLAGS:=}
17363 ac_ext=cpp
17364 ac_cpp='$CXXCPP $CPPFLAGS'
17365 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17366 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17367 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17368 if test -z "$CXX"; then
17369   if test -n "$CCC"; then
17370     CXX=$CCC
17371   else
17372     if test -n "$ac_tool_prefix"; then
17373   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
17374   do
17375     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
17376 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
17377 { echo "$as_me:$LINENO: checking for $ac_word" >&5
17378 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
17379 if test "${ac_cv_prog_CXX+set}" = set; then
17380   echo $ECHO_N "(cached) $ECHO_C" >&6
17381 else
17382   if test -n "$CXX"; then
17383   ac_cv_prog_CXX="$CXX" # Let the user override the test.
17384 else
17385 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17386 for as_dir in $PATH
17387 do
17388   IFS=$as_save_IFS
17389   test -z "$as_dir" && as_dir=.
17390   for ac_exec_ext in '' $ac_executable_extensions; do
17391   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17392     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
17393     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17394     break 2
17395   fi
17396 done
17397 done
17398 IFS=$as_save_IFS
17399
17400 fi
17401 fi
17402 CXX=$ac_cv_prog_CXX
17403 if test -n "$CXX"; then
17404   { echo "$as_me:$LINENO: result: $CXX" >&5
17405 echo "${ECHO_T}$CXX" >&6; }
17406 else
17407   { echo "$as_me:$LINENO: result: no" >&5
17408 echo "${ECHO_T}no" >&6; }
17409 fi
17410
17411
17412     test -n "$CXX" && break
17413   done
17414 fi
17415 if test -z "$CXX"; then
17416   ac_ct_CXX=$CXX
17417   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
17418 do
17419   # Extract the first word of "$ac_prog", so it can be a program name with args.
17420 set dummy $ac_prog; ac_word=$2
17421 { echo "$as_me:$LINENO: checking for $ac_word" >&5
17422 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
17423 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
17424   echo $ECHO_N "(cached) $ECHO_C" >&6
17425 else
17426   if test -n "$ac_ct_CXX"; then
17427   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
17428 else
17429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17430 for as_dir in $PATH
17431 do
17432   IFS=$as_save_IFS
17433   test -z "$as_dir" && as_dir=.
17434   for ac_exec_ext in '' $ac_executable_extensions; do
17435   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17436     ac_cv_prog_ac_ct_CXX="$ac_prog"
17437     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17438     break 2
17439   fi
17440 done
17441 done
17442 IFS=$as_save_IFS
17443
17444 fi
17445 fi
17446 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
17447 if test -n "$ac_ct_CXX"; then
17448   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
17449 echo "${ECHO_T}$ac_ct_CXX" >&6; }
17450 else
17451   { echo "$as_me:$LINENO: result: no" >&5
17452 echo "${ECHO_T}no" >&6; }
17453 fi
17454
17455
17456   test -n "$ac_ct_CXX" && break
17457 done
17458
17459   if test "x$ac_ct_CXX" = x; then
17460     CXX="g++"
17461   else
17462     case $cross_compiling:$ac_tool_warned in
17463 yes:)
17464 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
17465 whose name does not start with the host triplet.  If you think this
17466 configuration is useful to you, please write to autoconf@gnu.org." >&5
17467 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
17468 whose name does not start with the host triplet.  If you think this
17469 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
17470 ac_tool_warned=yes ;;
17471 esac
17472     CXX=$ac_ct_CXX
17473   fi
17474 fi
17475
17476   fi
17477 fi
17478 # Provide some information about the compiler.
17479 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
17480 ac_compiler=`set X $ac_compile; echo $2`
17481 { (ac_try="$ac_compiler --version >&5"
17482 case "(($ac_try" in
17483   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17484   *) ac_try_echo=$ac_try;;
17485 esac
17486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17487   (eval "$ac_compiler --version >&5") 2>&5
17488   ac_status=$?
17489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17490   (exit $ac_status); }
17491 { (ac_try="$ac_compiler -v >&5"
17492 case "(($ac_try" in
17493   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17494   *) ac_try_echo=$ac_try;;
17495 esac
17496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17497   (eval "$ac_compiler -v >&5") 2>&5
17498   ac_status=$?
17499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17500   (exit $ac_status); }
17501 { (ac_try="$ac_compiler -V >&5"
17502 case "(($ac_try" in
17503   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17504   *) ac_try_echo=$ac_try;;
17505 esac
17506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17507   (eval "$ac_compiler -V >&5") 2>&5
17508   ac_status=$?
17509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17510   (exit $ac_status); }
17511
17512 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
17513 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
17514 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
17515   echo $ECHO_N "(cached) $ECHO_C" >&6
17516 else
17517   cat >conftest.$ac_ext <<_ACEOF
17518 /* confdefs.h.  */
17519 _ACEOF
17520 cat confdefs.h >>conftest.$ac_ext
17521 cat >>conftest.$ac_ext <<_ACEOF
17522 /* end confdefs.h.  */
17523
17524 int
17525 main ()
17526 {
17527 #ifndef __GNUC__
17528        choke me
17529 #endif
17530
17531   ;
17532   return 0;
17533 }
17534 _ACEOF
17535 rm -f conftest.$ac_objext
17536 if { (ac_try="$ac_compile"
17537 case "(($ac_try" in
17538   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17539   *) ac_try_echo=$ac_try;;
17540 esac
17541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17542   (eval "$ac_compile") 2>conftest.er1
17543   ac_status=$?
17544   grep -v '^ *+' conftest.er1 >conftest.err
17545   rm -f conftest.er1
17546   cat conftest.err >&5
17547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17548   (exit $ac_status); } && {
17549          test -z "$ac_cxx_werror_flag" ||
17550          test ! -s conftest.err
17551        } && test -s conftest.$ac_objext; then
17552   ac_compiler_gnu=yes
17553 else
17554   echo "$as_me: failed program was:" >&5
17555 sed 's/^/| /' conftest.$ac_ext >&5
17556
17557         ac_compiler_gnu=no
17558 fi
17559
17560 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17561 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
17562
17563 fi
17564 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
17565 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
17566 GXX=`test $ac_compiler_gnu = yes && echo yes`
17567 ac_test_CXXFLAGS=${CXXFLAGS+set}
17568 ac_save_CXXFLAGS=$CXXFLAGS
17569 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
17570 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
17571 if test "${ac_cv_prog_cxx_g+set}" = set; then
17572   echo $ECHO_N "(cached) $ECHO_C" >&6
17573 else
17574   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
17575    ac_cxx_werror_flag=yes
17576    ac_cv_prog_cxx_g=no
17577    CXXFLAGS="-g"
17578    cat >conftest.$ac_ext <<_ACEOF
17579 /* confdefs.h.  */
17580 _ACEOF
17581 cat confdefs.h >>conftest.$ac_ext
17582 cat >>conftest.$ac_ext <<_ACEOF
17583 /* end confdefs.h.  */
17584
17585 int
17586 main ()
17587 {
17588
17589   ;
17590   return 0;
17591 }
17592 _ACEOF
17593 rm -f conftest.$ac_objext
17594 if { (ac_try="$ac_compile"
17595 case "(($ac_try" in
17596   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17597   *) ac_try_echo=$ac_try;;
17598 esac
17599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17600   (eval "$ac_compile") 2>conftest.er1
17601   ac_status=$?
17602   grep -v '^ *+' conftest.er1 >conftest.err
17603   rm -f conftest.er1
17604   cat conftest.err >&5
17605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17606   (exit $ac_status); } && {
17607          test -z "$ac_cxx_werror_flag" ||
17608          test ! -s conftest.err
17609        } && test -s conftest.$ac_objext; then
17610   ac_cv_prog_cxx_g=yes
17611 else
17612   echo "$as_me: failed program was:" >&5
17613 sed 's/^/| /' conftest.$ac_ext >&5
17614
17615         CXXFLAGS=""
17616       cat >conftest.$ac_ext <<_ACEOF
17617 /* confdefs.h.  */
17618 _ACEOF
17619 cat confdefs.h >>conftest.$ac_ext
17620 cat >>conftest.$ac_ext <<_ACEOF
17621 /* end confdefs.h.  */
17622
17623 int
17624 main ()
17625 {
17626
17627   ;
17628   return 0;
17629 }
17630 _ACEOF
17631 rm -f conftest.$ac_objext
17632 if { (ac_try="$ac_compile"
17633 case "(($ac_try" in
17634   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17635   *) ac_try_echo=$ac_try;;
17636 esac
17637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17638   (eval "$ac_compile") 2>conftest.er1
17639   ac_status=$?
17640   grep -v '^ *+' conftest.er1 >conftest.err
17641   rm -f conftest.er1
17642   cat conftest.err >&5
17643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17644   (exit $ac_status); } && {
17645          test -z "$ac_cxx_werror_flag" ||
17646          test ! -s conftest.err
17647        } && test -s conftest.$ac_objext; then
17648   :
17649 else
17650   echo "$as_me: failed program was:" >&5
17651 sed 's/^/| /' conftest.$ac_ext >&5
17652
17653         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
17654          CXXFLAGS="-g"
17655          cat >conftest.$ac_ext <<_ACEOF
17656 /* confdefs.h.  */
17657 _ACEOF
17658 cat confdefs.h >>conftest.$ac_ext
17659 cat >>conftest.$ac_ext <<_ACEOF
17660 /* end confdefs.h.  */
17661
17662 int
17663 main ()
17664 {
17665
17666   ;
17667   return 0;
17668 }
17669 _ACEOF
17670 rm -f conftest.$ac_objext
17671 if { (ac_try="$ac_compile"
17672 case "(($ac_try" in
17673   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17674   *) ac_try_echo=$ac_try;;
17675 esac
17676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17677   (eval "$ac_compile") 2>conftest.er1
17678   ac_status=$?
17679   grep -v '^ *+' conftest.er1 >conftest.err
17680   rm -f conftest.er1
17681   cat conftest.err >&5
17682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17683   (exit $ac_status); } && {
17684          test -z "$ac_cxx_werror_flag" ||
17685          test ! -s conftest.err
17686        } && test -s conftest.$ac_objext; then
17687   ac_cv_prog_cxx_g=yes
17688 else
17689   echo "$as_me: failed program was:" >&5
17690 sed 's/^/| /' conftest.$ac_ext >&5
17691
17692
17693 fi
17694
17695 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17696 fi
17697
17698 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17699 fi
17700
17701 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17702    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
17703 fi
17704 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
17705 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
17706 if test "$ac_test_CXXFLAGS" = set; then
17707   CXXFLAGS=$ac_save_CXXFLAGS
17708 elif test $ac_cv_prog_cxx_g = yes; then
17709   if test "$GXX" = yes; then
17710     CXXFLAGS="-g -O2"
17711   else
17712     CXXFLAGS="-g"
17713   fi
17714 else
17715   if test "$GXX" = yes; then
17716     CXXFLAGS="-O2"
17717   else
17718     CXXFLAGS=
17719   fi
17720 fi
17721 ac_ext=c
17722 ac_cpp='$CPP $CPPFLAGS'
17723 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17724 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17725 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17726
17727
17728
17729
17730
17731
17732
17733
17734     ac_ext=cpp
17735 ac_cpp='$CXXCPP $CPPFLAGS'
17736 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17737 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17738 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17739
17740     { echo "$as_me:$LINENO: checking whether we are using the Intel C++ compiler" >&5
17741 echo $ECHO_N "checking whether we are using the Intel C++ compiler... $ECHO_C" >&6; }
17742 if test "${bakefile_cv_cxx_compiler___INTEL_COMPILER+set}" = set; then
17743   echo $ECHO_N "(cached) $ECHO_C" >&6
17744 else
17745   cat >conftest.$ac_ext <<_ACEOF
17746 /* confdefs.h.  */
17747 _ACEOF
17748 cat confdefs.h >>conftest.$ac_ext
17749 cat >>conftest.$ac_ext <<_ACEOF
17750 /* end confdefs.h.  */
17751
17752 int
17753 main ()
17754 {
17755
17756              #ifndef __INTEL_COMPILER
17757                 choke me
17758              #endif
17759
17760   ;
17761   return 0;
17762 }
17763 _ACEOF
17764 rm -f conftest.$ac_objext
17765 if { (ac_try="$ac_compile"
17766 case "(($ac_try" in
17767   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17768   *) ac_try_echo=$ac_try;;
17769 esac
17770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17771   (eval "$ac_compile") 2>conftest.er1
17772   ac_status=$?
17773   grep -v '^ *+' conftest.er1 >conftest.err
17774   rm -f conftest.er1
17775   cat conftest.err >&5
17776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17777   (exit $ac_status); } && {
17778          test -z "$ac_cxx_werror_flag" ||
17779          test ! -s conftest.err
17780        } && test -s conftest.$ac_objext; then
17781   bakefile_cv_cxx_compiler___INTEL_COMPILER=yes
17782 else
17783   echo "$as_me: failed program was:" >&5
17784 sed 's/^/| /' conftest.$ac_ext >&5
17785
17786         bakefile_cv_cxx_compiler___INTEL_COMPILER=no
17787
17788 fi
17789
17790 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17791
17792
17793 fi
17794 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___INTEL_COMPILER" >&5
17795 echo "${ECHO_T}$bakefile_cv_cxx_compiler___INTEL_COMPILER" >&6; }
17796     if test "x$bakefile_cv_cxx_compiler___INTEL_COMPILER" = "xyes"; then
17797         :; INTELCXX=yes
17798     else
17799         :;
17800     fi
17801     ac_ext=c
17802 ac_cpp='$CPP $CPPFLAGS'
17803 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17804 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17805 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17806
17807
17808
17809
17810         if test "$INTELCXX" = "yes"; then
17811
17812
17813     ac_ext=cpp
17814 ac_cpp='$CXXCPP $CPPFLAGS'
17815 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17816 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17817 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17818
17819     { echo "$as_me:$LINENO: checking whether we are using Intel C++ compiler v8 or later" >&5
17820 echo $ECHO_N "checking whether we are using Intel C++ compiler v8 or later... $ECHO_C" >&6; }
17821 if test "${bakefile_cv_cxx_compiler___INTEL_COMPILER_lt_800+set}" = set; then
17822   echo $ECHO_N "(cached) $ECHO_C" >&6
17823 else
17824   cat >conftest.$ac_ext <<_ACEOF
17825 /* confdefs.h.  */
17826 _ACEOF
17827 cat confdefs.h >>conftest.$ac_ext
17828 cat >>conftest.$ac_ext <<_ACEOF
17829 /* end confdefs.h.  */
17830
17831 int
17832 main ()
17833 {
17834
17835              #ifndef __INTEL_COMPILER || __INTEL_COMPILER < 800
17836                 choke me
17837              #endif
17838
17839   ;
17840   return 0;
17841 }
17842 _ACEOF
17843 rm -f conftest.$ac_objext
17844 if { (ac_try="$ac_compile"
17845 case "(($ac_try" in
17846   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17847   *) ac_try_echo=$ac_try;;
17848 esac
17849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17850   (eval "$ac_compile") 2>conftest.er1
17851   ac_status=$?
17852   grep -v '^ *+' conftest.er1 >conftest.err
17853   rm -f conftest.er1
17854   cat conftest.err >&5
17855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17856   (exit $ac_status); } && {
17857          test -z "$ac_cxx_werror_flag" ||
17858          test ! -s conftest.err
17859        } && test -s conftest.$ac_objext; then
17860   bakefile_cv_cxx_compiler___INTEL_COMPILER_lt_800=yes
17861 else
17862   echo "$as_me: failed program was:" >&5
17863 sed 's/^/| /' conftest.$ac_ext >&5
17864
17865         bakefile_cv_cxx_compiler___INTEL_COMPILER_lt_800=no
17866
17867 fi
17868
17869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17870
17871
17872 fi
17873 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___INTEL_COMPILER_lt_800" >&5
17874 echo "${ECHO_T}$bakefile_cv_cxx_compiler___INTEL_COMPILER_lt_800" >&6; }
17875     if test "x$bakefile_cv_cxx_compiler___INTEL_COMPILER_lt_800" = "xyes"; then
17876         :; INTELCXX8=yes
17877     else
17878         :;
17879     fi
17880     ac_ext=c
17881 ac_cpp='$CPP $CPPFLAGS'
17882 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17883 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17884 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17885
17886
17887
17888
17889
17890     ac_ext=cpp
17891 ac_cpp='$CXXCPP $CPPFLAGS'
17892 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17893 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17894 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17895
17896     { echo "$as_me:$LINENO: checking whether we are using Intel C++ compiler v10 or later" >&5
17897 echo $ECHO_N "checking whether we are using Intel C++ compiler v10 or later... $ECHO_C" >&6; }
17898 if test "${bakefile_cv_cxx_compiler___INTEL_COMPILER_lt_1000+set}" = set; then
17899   echo $ECHO_N "(cached) $ECHO_C" >&6
17900 else
17901   cat >conftest.$ac_ext <<_ACEOF
17902 /* confdefs.h.  */
17903 _ACEOF
17904 cat confdefs.h >>conftest.$ac_ext
17905 cat >>conftest.$ac_ext <<_ACEOF
17906 /* end confdefs.h.  */
17907
17908 int
17909 main ()
17910 {
17911
17912              #ifndef __INTEL_COMPILER || __INTEL_COMPILER < 1000
17913                 choke me
17914              #endif
17915
17916   ;
17917   return 0;
17918 }
17919 _ACEOF
17920 rm -f conftest.$ac_objext
17921 if { (ac_try="$ac_compile"
17922 case "(($ac_try" in
17923   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17924   *) ac_try_echo=$ac_try;;
17925 esac
17926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17927   (eval "$ac_compile") 2>conftest.er1
17928   ac_status=$?
17929   grep -v '^ *+' conftest.er1 >conftest.err
17930   rm -f conftest.er1
17931   cat conftest.err >&5
17932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17933   (exit $ac_status); } && {
17934          test -z "$ac_cxx_werror_flag" ||
17935          test ! -s conftest.err
17936        } && test -s conftest.$ac_objext; then
17937   bakefile_cv_cxx_compiler___INTEL_COMPILER_lt_1000=yes
17938 else
17939   echo "$as_me: failed program was:" >&5
17940 sed 's/^/| /' conftest.$ac_ext >&5
17941
17942         bakefile_cv_cxx_compiler___INTEL_COMPILER_lt_1000=no
17943
17944 fi
17945
17946 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17947
17948
17949 fi
17950 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___INTEL_COMPILER_lt_1000" >&5
17951 echo "${ECHO_T}$bakefile_cv_cxx_compiler___INTEL_COMPILER_lt_1000" >&6; }
17952     if test "x$bakefile_cv_cxx_compiler___INTEL_COMPILER_lt_1000" = "xyes"; then
17953         :; INTELCXX10=yes
17954     else
17955         :;
17956     fi
17957     ac_ext=c
17958 ac_cpp='$CPP $CPPFLAGS'
17959 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17960 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17961 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17962
17963
17964
17965     fi
17966
17967         if test "x$GCXX" != "xyes"; then
17968         if test "xCXX" = "xC"; then
17969             { echo "$as_me:$LINENO: checking if the C compiler requires -ext o" >&5
17970 echo $ECHO_N "checking if the C compiler requires -ext o... $ECHO_C" >&6; }
17971 if test "${bakefile_cv_c_exto+set}" = set; then
17972   echo $ECHO_N "(cached) $ECHO_C" >&6
17973 else
17974   cat >conftest.$ac_ext <<_ACEOF
17975 /* confdefs.h.  */
17976 _ACEOF
17977 cat confdefs.h >>conftest.$ac_ext
17978 cat >>conftest.$ac_ext <<_ACEOF
17979 /* end confdefs.h.  */
17980
17981 int
17982 main ()
17983 {
17984
17985   ;
17986   return 0;
17987 }
17988 _ACEOF
17989 rm -f conftest.$ac_objext conftest.$ac_ext.o
17990 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17991   (eval $ac_compile) 2>&5
17992   ac_status=$?
17993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17994   (exit $ac_status); }; then
17995   for ac_file in `(ls conftest.* 2>/dev/null)`; do
17996     case $ac_file in
17997         conftest.$ac_ext.o)
17998             bakefile_cv_c_exto="-ext o"
17999             ;;
18000         *)
18001             ;;
18002     esac
18003 done
18004 else
18005   { { echo "$as_me:$LINENO: error: cannot figure out if compiler needs -ext o: cannot compile
18006 See \`config.log' for more details." >&5
18007 echo "$as_me: error: cannot figure out if compiler needs -ext o: cannot compile
18008 See \`config.log' for more details." >&2;}
18009    { (exit 1); exit 1; }; }
18010
18011 fi
18012
18013 rm -f conftest.$ac_ext.o conftest.$ac_objext conftest.$ac_ext
18014
18015 fi
18016 { echo "$as_me:$LINENO: result: $bakefile_cv_c_exto" >&5
18017 echo "${ECHO_T}$bakefile_cv_c_exto" >&6; }
18018 if test "x$bakefile_cv_c_exto" '!=' "x"; then
18019     if test "c" = "c"; then
18020         CFLAGS="$bakefile_cv_c_exto $CFLAGS"
18021     fi
18022     if test "c" = "cxx"; then
18023         CXXFLAGS="$bakefile_cv_c_exto $CXXFLAGS"
18024     fi
18025 fi
18026
18027             if test "x$bakefile_cv_c_exto" '!=' "x"; then
18028                 unset ac_cv_prog_cc_g
18029                 ac_test_CFLAGS=${CFLAGS+set}
18030 ac_save_CFLAGS=$CFLAGS
18031 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
18032 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
18033 if test "${ac_cv_prog_cc_g+set}" = set; then
18034   echo $ECHO_N "(cached) $ECHO_C" >&6
18035 else
18036   ac_save_c_werror_flag=$ac_c_werror_flag
18037    ac_c_werror_flag=yes
18038    ac_cv_prog_cc_g=no
18039    CFLAGS="-g"
18040    cat >conftest.$ac_ext <<_ACEOF
18041 /* confdefs.h.  */
18042 _ACEOF
18043 cat confdefs.h >>conftest.$ac_ext
18044 cat >>conftest.$ac_ext <<_ACEOF
18045 /* end confdefs.h.  */
18046
18047 int
18048 main ()
18049 {
18050
18051   ;
18052   return 0;
18053 }
18054 _ACEOF
18055 rm -f conftest.$ac_objext
18056 if { (ac_try="$ac_compile"
18057 case "(($ac_try" in
18058   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18059   *) ac_try_echo=$ac_try;;
18060 esac
18061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18062   (eval "$ac_compile") 2>conftest.er1
18063   ac_status=$?
18064   grep -v '^ *+' conftest.er1 >conftest.err
18065   rm -f conftest.er1
18066   cat conftest.err >&5
18067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18068   (exit $ac_status); } && {
18069          test -z "$ac_c_werror_flag" ||
18070          test ! -s conftest.err
18071        } && test -s conftest.$ac_objext; then
18072   ac_cv_prog_cc_g=yes
18073 else
18074   echo "$as_me: failed program was:" >&5
18075 sed 's/^/| /' conftest.$ac_ext >&5
18076
18077         CFLAGS=""
18078       cat >conftest.$ac_ext <<_ACEOF
18079 /* confdefs.h.  */
18080 _ACEOF
18081 cat confdefs.h >>conftest.$ac_ext
18082 cat >>conftest.$ac_ext <<_ACEOF
18083 /* end confdefs.h.  */
18084
18085 int
18086 main ()
18087 {
18088
18089   ;
18090   return 0;
18091 }
18092 _ACEOF
18093 rm -f conftest.$ac_objext
18094 if { (ac_try="$ac_compile"
18095 case "(($ac_try" in
18096   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18097   *) ac_try_echo=$ac_try;;
18098 esac
18099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18100   (eval "$ac_compile") 2>conftest.er1
18101   ac_status=$?
18102   grep -v '^ *+' conftest.er1 >conftest.err
18103   rm -f conftest.er1
18104   cat conftest.err >&5
18105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18106   (exit $ac_status); } && {
18107          test -z "$ac_c_werror_flag" ||
18108          test ! -s conftest.err
18109        } && test -s conftest.$ac_objext; then
18110   :
18111 else
18112   echo "$as_me: failed program was:" >&5
18113 sed 's/^/| /' conftest.$ac_ext >&5
18114
18115         ac_c_werror_flag=$ac_save_c_werror_flag
18116          CFLAGS="-g"
18117          cat >conftest.$ac_ext <<_ACEOF
18118 /* confdefs.h.  */
18119 _ACEOF
18120 cat confdefs.h >>conftest.$ac_ext
18121 cat >>conftest.$ac_ext <<_ACEOF
18122 /* end confdefs.h.  */
18123
18124 int
18125 main ()
18126 {
18127
18128   ;
18129   return 0;
18130 }
18131 _ACEOF
18132 rm -f conftest.$ac_objext
18133 if { (ac_try="$ac_compile"
18134 case "(($ac_try" in
18135   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18136   *) ac_try_echo=$ac_try;;
18137 esac
18138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18139   (eval "$ac_compile") 2>conftest.er1
18140   ac_status=$?
18141   grep -v '^ *+' conftest.er1 >conftest.err
18142   rm -f conftest.er1
18143   cat conftest.err >&5
18144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18145   (exit $ac_status); } && {
18146          test -z "$ac_c_werror_flag" ||
18147          test ! -s conftest.err
18148        } && test -s conftest.$ac_objext; then
18149   ac_cv_prog_cc_g=yes
18150 else
18151   echo "$as_me: failed program was:" >&5
18152 sed 's/^/| /' conftest.$ac_ext >&5
18153
18154
18155 fi
18156
18157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18158 fi
18159
18160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18161 fi
18162
18163 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18164    ac_c_werror_flag=$ac_save_c_werror_flag
18165 fi
18166 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
18167 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
18168 if test "$ac_test_CFLAGS" = set; then
18169   CFLAGS=$ac_save_CFLAGS
18170 elif test $ac_cv_prog_cc_g = yes; then
18171   if test "$GCC" = yes; then
18172     CFLAGS="-g -O2"
18173   else
18174     CFLAGS="-g"
18175   fi
18176 else
18177   if test "$GCC" = yes; then
18178     CFLAGS="-O2"
18179   else
18180     CFLAGS=
18181   fi
18182 fi
18183             fi
18184         fi
18185
18186                         case `uname -s` in
18187             AIX*)
18188
18189
18190     ac_ext=cpp
18191 ac_cpp='$CXXCPP $CPPFLAGS'
18192 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18193 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18194 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18195
18196     { echo "$as_me:$LINENO: checking whether we are using the IBM xlC C++ compiler" >&5
18197 echo $ECHO_N "checking whether we are using the IBM xlC C++ compiler... $ECHO_C" >&6; }
18198 if test "${bakefile_cv_cxx_compiler___xlC__+set}" = set; then
18199   echo $ECHO_N "(cached) $ECHO_C" >&6
18200 else
18201   cat >conftest.$ac_ext <<_ACEOF
18202 /* confdefs.h.  */
18203 _ACEOF
18204 cat confdefs.h >>conftest.$ac_ext
18205 cat >>conftest.$ac_ext <<_ACEOF
18206 /* end confdefs.h.  */
18207
18208 int
18209 main ()
18210 {
18211
18212              #ifndef __xlC__
18213                 choke me
18214              #endif
18215
18216   ;
18217   return 0;
18218 }
18219 _ACEOF
18220 rm -f conftest.$ac_objext
18221 if { (ac_try="$ac_compile"
18222 case "(($ac_try" in
18223   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18224   *) ac_try_echo=$ac_try;;
18225 esac
18226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18227   (eval "$ac_compile") 2>conftest.er1
18228   ac_status=$?
18229   grep -v '^ *+' conftest.er1 >conftest.err
18230   rm -f conftest.er1
18231   cat conftest.err >&5
18232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18233   (exit $ac_status); } && {
18234          test -z "$ac_cxx_werror_flag" ||
18235          test ! -s conftest.err
18236        } && test -s conftest.$ac_objext; then
18237   bakefile_cv_cxx_compiler___xlC__=yes
18238 else
18239   echo "$as_me: failed program was:" >&5
18240 sed 's/^/| /' conftest.$ac_ext >&5
18241
18242         bakefile_cv_cxx_compiler___xlC__=no
18243
18244 fi
18245
18246 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18247
18248
18249 fi
18250 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___xlC__" >&5
18251 echo "${ECHO_T}$bakefile_cv_cxx_compiler___xlC__" >&6; }
18252     if test "x$bakefile_cv_cxx_compiler___xlC__" = "xyes"; then
18253         :; XLCXX=yes
18254     else
18255         :;
18256     fi
18257     ac_ext=c
18258 ac_cpp='$CPP $CPPFLAGS'
18259 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18260 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18261 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18262
18263
18264
18265                 ;;
18266
18267             Darwin)
18268
18269
18270     ac_ext=cpp
18271 ac_cpp='$CXXCPP $CPPFLAGS'
18272 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18273 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18274 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18275
18276     { echo "$as_me:$LINENO: checking whether we are using the Metrowerks C++ compiler" >&5
18277 echo $ECHO_N "checking whether we are using the Metrowerks C++ compiler... $ECHO_C" >&6; }
18278 if test "${bakefile_cv_cxx_compiler___MWERKS__+set}" = set; then
18279   echo $ECHO_N "(cached) $ECHO_C" >&6
18280 else
18281   cat >conftest.$ac_ext <<_ACEOF
18282 /* confdefs.h.  */
18283 _ACEOF
18284 cat confdefs.h >>conftest.$ac_ext
18285 cat >>conftest.$ac_ext <<_ACEOF
18286 /* end confdefs.h.  */
18287
18288 int
18289 main ()
18290 {
18291
18292              #ifndef __MWERKS__
18293                 choke me
18294              #endif
18295
18296   ;
18297   return 0;
18298 }
18299 _ACEOF
18300 rm -f conftest.$ac_objext
18301 if { (ac_try="$ac_compile"
18302 case "(($ac_try" in
18303   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18304   *) ac_try_echo=$ac_try;;
18305 esac
18306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18307   (eval "$ac_compile") 2>conftest.er1
18308   ac_status=$?
18309   grep -v '^ *+' conftest.er1 >conftest.err
18310   rm -f conftest.er1
18311   cat conftest.err >&5
18312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18313   (exit $ac_status); } && {
18314          test -z "$ac_cxx_werror_flag" ||
18315          test ! -s conftest.err
18316        } && test -s conftest.$ac_objext; then
18317   bakefile_cv_cxx_compiler___MWERKS__=yes
18318 else
18319   echo "$as_me: failed program was:" >&5
18320 sed 's/^/| /' conftest.$ac_ext >&5
18321
18322         bakefile_cv_cxx_compiler___MWERKS__=no
18323
18324 fi
18325
18326 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18327
18328
18329 fi
18330 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___MWERKS__" >&5
18331 echo "${ECHO_T}$bakefile_cv_cxx_compiler___MWERKS__" >&6; }
18332     if test "x$bakefile_cv_cxx_compiler___MWERKS__" = "xyes"; then
18333         :; MWCXX=yes
18334     else
18335         :;
18336     fi
18337     ac_ext=c
18338 ac_cpp='$CPP $CPPFLAGS'
18339 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18340 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18341 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18342
18343
18344
18345                 if test "$MWCXX" != "yes"; then
18346
18347
18348     ac_ext=cpp
18349 ac_cpp='$CXXCPP $CPPFLAGS'
18350 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18351 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18352 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18353
18354     { echo "$as_me:$LINENO: checking whether we are using the IBM xlC C++ compiler" >&5
18355 echo $ECHO_N "checking whether we are using the IBM xlC C++ compiler... $ECHO_C" >&6; }
18356 if test "${bakefile_cv_cxx_compiler___xlC__+set}" = set; then
18357   echo $ECHO_N "(cached) $ECHO_C" >&6
18358 else
18359   cat >conftest.$ac_ext <<_ACEOF
18360 /* confdefs.h.  */
18361 _ACEOF
18362 cat confdefs.h >>conftest.$ac_ext
18363 cat >>conftest.$ac_ext <<_ACEOF
18364 /* end confdefs.h.  */
18365
18366 int
18367 main ()
18368 {
18369
18370              #ifndef __xlC__
18371                 choke me
18372              #endif
18373
18374   ;
18375   return 0;
18376 }
18377 _ACEOF
18378 rm -f conftest.$ac_objext
18379 if { (ac_try="$ac_compile"
18380 case "(($ac_try" in
18381   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18382   *) ac_try_echo=$ac_try;;
18383 esac
18384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18385   (eval "$ac_compile") 2>conftest.er1
18386   ac_status=$?
18387   grep -v '^ *+' conftest.er1 >conftest.err
18388   rm -f conftest.er1
18389   cat conftest.err >&5
18390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18391   (exit $ac_status); } && {
18392          test -z "$ac_cxx_werror_flag" ||
18393          test ! -s conftest.err
18394        } && test -s conftest.$ac_objext; then
18395   bakefile_cv_cxx_compiler___xlC__=yes
18396 else
18397   echo "$as_me: failed program was:" >&5
18398 sed 's/^/| /' conftest.$ac_ext >&5
18399
18400         bakefile_cv_cxx_compiler___xlC__=no
18401
18402 fi
18403
18404 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18405
18406
18407 fi
18408 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___xlC__" >&5
18409 echo "${ECHO_T}$bakefile_cv_cxx_compiler___xlC__" >&6; }
18410     if test "x$bakefile_cv_cxx_compiler___xlC__" = "xyes"; then
18411         :; XLCXX=yes
18412     else
18413         :;
18414     fi
18415     ac_ext=c
18416 ac_cpp='$CPP $CPPFLAGS'
18417 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18418 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18419 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18420
18421
18422
18423                 fi
18424                 ;;
18425
18426             IRIX*)
18427
18428
18429     ac_ext=cpp
18430 ac_cpp='$CXXCPP $CPPFLAGS'
18431 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18432 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18433 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18434
18435     { echo "$as_me:$LINENO: checking whether we are using the SGI C++ compiler" >&5
18436 echo $ECHO_N "checking whether we are using the SGI C++ compiler... $ECHO_C" >&6; }
18437 if test "${bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION+set}" = set; then
18438   echo $ECHO_N "(cached) $ECHO_C" >&6
18439 else
18440   cat >conftest.$ac_ext <<_ACEOF
18441 /* confdefs.h.  */
18442 _ACEOF
18443 cat confdefs.h >>conftest.$ac_ext
18444 cat >>conftest.$ac_ext <<_ACEOF
18445 /* end confdefs.h.  */
18446
18447 int
18448 main ()
18449 {
18450
18451              #ifndef _SGI_COMPILER_VERSION
18452                 choke me
18453              #endif
18454
18455   ;
18456   return 0;
18457 }
18458 _ACEOF
18459 rm -f conftest.$ac_objext
18460 if { (ac_try="$ac_compile"
18461 case "(($ac_try" in
18462   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18463   *) ac_try_echo=$ac_try;;
18464 esac
18465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18466   (eval "$ac_compile") 2>conftest.er1
18467   ac_status=$?
18468   grep -v '^ *+' conftest.er1 >conftest.err
18469   rm -f conftest.er1
18470   cat conftest.err >&5
18471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18472   (exit $ac_status); } && {
18473          test -z "$ac_cxx_werror_flag" ||
18474          test ! -s conftest.err
18475        } && test -s conftest.$ac_objext; then
18476   bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION=yes
18477 else
18478   echo "$as_me: failed program was:" >&5
18479 sed 's/^/| /' conftest.$ac_ext >&5
18480
18481         bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION=no
18482
18483 fi
18484
18485 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18486
18487
18488 fi
18489 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" >&5
18490 echo "${ECHO_T}$bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" >&6; }
18491     if test "x$bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" = "xyes"; then
18492         :; SGICXX=yes
18493     else
18494         :;
18495     fi
18496     ac_ext=c
18497 ac_cpp='$CPP $CPPFLAGS'
18498 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18499 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18500 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18501
18502
18503
18504                 ;;
18505
18506             Linux*)
18507                                                 if test "$INTELCXX" != "yes"; then
18508
18509
18510     ac_ext=cpp
18511 ac_cpp='$CXXCPP $CPPFLAGS'
18512 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18513 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18514 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18515
18516     { echo "$as_me:$LINENO: checking whether we are using the Sun C++ compiler" >&5
18517 echo $ECHO_N "checking whether we are using the Sun C++ compiler... $ECHO_C" >&6; }
18518 if test "${bakefile_cv_cxx_compiler___SUNPRO_CC+set}" = set; then
18519   echo $ECHO_N "(cached) $ECHO_C" >&6
18520 else
18521   cat >conftest.$ac_ext <<_ACEOF
18522 /* confdefs.h.  */
18523 _ACEOF
18524 cat confdefs.h >>conftest.$ac_ext
18525 cat >>conftest.$ac_ext <<_ACEOF
18526 /* end confdefs.h.  */
18527
18528 int
18529 main ()
18530 {
18531
18532              #ifndef __SUNPRO_CC
18533                 choke me
18534              #endif
18535
18536   ;
18537   return 0;
18538 }
18539 _ACEOF
18540 rm -f conftest.$ac_objext
18541 if { (ac_try="$ac_compile"
18542 case "(($ac_try" in
18543   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18544   *) ac_try_echo=$ac_try;;
18545 esac
18546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18547   (eval "$ac_compile") 2>conftest.er1
18548   ac_status=$?
18549   grep -v '^ *+' conftest.er1 >conftest.err
18550   rm -f conftest.er1
18551   cat conftest.err >&5
18552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18553   (exit $ac_status); } && {
18554          test -z "$ac_cxx_werror_flag" ||
18555          test ! -s conftest.err
18556        } && test -s conftest.$ac_objext; then
18557   bakefile_cv_cxx_compiler___SUNPRO_CC=yes
18558 else
18559   echo "$as_me: failed program was:" >&5
18560 sed 's/^/| /' conftest.$ac_ext >&5
18561
18562         bakefile_cv_cxx_compiler___SUNPRO_CC=no
18563
18564 fi
18565
18566 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18567
18568
18569 fi
18570 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___SUNPRO_CC" >&5
18571 echo "${ECHO_T}$bakefile_cv_cxx_compiler___SUNPRO_CC" >&6; }
18572     if test "x$bakefile_cv_cxx_compiler___SUNPRO_CC" = "xyes"; then
18573         :; SUNCXX=yes
18574     else
18575         :;
18576     fi
18577     ac_ext=c
18578 ac_cpp='$CPP $CPPFLAGS'
18579 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18580 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18581 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18582
18583
18584
18585                 fi
18586                 ;;
18587
18588             HP-UX*)
18589
18590
18591     ac_ext=cpp
18592 ac_cpp='$CXXCPP $CPPFLAGS'
18593 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18594 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18595 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18596
18597     { echo "$as_me:$LINENO: checking whether we are using the HP C++ compiler" >&5
18598 echo $ECHO_N "checking whether we are using the HP C++ compiler... $ECHO_C" >&6; }
18599 if test "${bakefile_cv_cxx_compiler___HP_aCC+set}" = set; then
18600   echo $ECHO_N "(cached) $ECHO_C" >&6
18601 else
18602   cat >conftest.$ac_ext <<_ACEOF
18603 /* confdefs.h.  */
18604 _ACEOF
18605 cat confdefs.h >>conftest.$ac_ext
18606 cat >>conftest.$ac_ext <<_ACEOF
18607 /* end confdefs.h.  */
18608
18609 int
18610 main ()
18611 {
18612
18613              #ifndef __HP_aCC
18614                 choke me
18615              #endif
18616
18617   ;
18618   return 0;
18619 }
18620 _ACEOF
18621 rm -f conftest.$ac_objext
18622 if { (ac_try="$ac_compile"
18623 case "(($ac_try" in
18624   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18625   *) ac_try_echo=$ac_try;;
18626 esac
18627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18628   (eval "$ac_compile") 2>conftest.er1
18629   ac_status=$?
18630   grep -v '^ *+' conftest.er1 >conftest.err
18631   rm -f conftest.er1
18632   cat conftest.err >&5
18633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18634   (exit $ac_status); } && {
18635          test -z "$ac_cxx_werror_flag" ||
18636          test ! -s conftest.err
18637        } && test -s conftest.$ac_objext; then
18638   bakefile_cv_cxx_compiler___HP_aCC=yes
18639 else
18640   echo "$as_me: failed program was:" >&5
18641 sed 's/^/| /' conftest.$ac_ext >&5
18642
18643         bakefile_cv_cxx_compiler___HP_aCC=no
18644
18645 fi
18646
18647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18648
18649
18650 fi
18651 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___HP_aCC" >&5
18652 echo "${ECHO_T}$bakefile_cv_cxx_compiler___HP_aCC" >&6; }
18653     if test "x$bakefile_cv_cxx_compiler___HP_aCC" = "xyes"; then
18654         :; HPCXX=yes
18655     else
18656         :;
18657     fi
18658     ac_ext=c
18659 ac_cpp='$CPP $CPPFLAGS'
18660 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18661 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18662 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18663
18664
18665
18666                 ;;
18667
18668             OSF1)
18669
18670
18671     ac_ext=cpp
18672 ac_cpp='$CXXCPP $CPPFLAGS'
18673 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18674 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18675 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18676
18677     { echo "$as_me:$LINENO: checking whether we are using the Compaq C++ compiler" >&5
18678 echo $ECHO_N "checking whether we are using the Compaq C++ compiler... $ECHO_C" >&6; }
18679 if test "${bakefile_cv_cxx_compiler___DECCXX+set}" = set; then
18680   echo $ECHO_N "(cached) $ECHO_C" >&6
18681 else
18682   cat >conftest.$ac_ext <<_ACEOF
18683 /* confdefs.h.  */
18684 _ACEOF
18685 cat confdefs.h >>conftest.$ac_ext
18686 cat >>conftest.$ac_ext <<_ACEOF
18687 /* end confdefs.h.  */
18688
18689 int
18690 main ()
18691 {
18692
18693              #ifndef __DECCXX
18694                 choke me
18695              #endif
18696
18697   ;
18698   return 0;
18699 }
18700 _ACEOF
18701 rm -f conftest.$ac_objext
18702 if { (ac_try="$ac_compile"
18703 case "(($ac_try" in
18704   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18705   *) ac_try_echo=$ac_try;;
18706 esac
18707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18708   (eval "$ac_compile") 2>conftest.er1
18709   ac_status=$?
18710   grep -v '^ *+' conftest.er1 >conftest.err
18711   rm -f conftest.er1
18712   cat conftest.err >&5
18713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18714   (exit $ac_status); } && {
18715          test -z "$ac_cxx_werror_flag" ||
18716          test ! -s conftest.err
18717        } && test -s conftest.$ac_objext; then
18718   bakefile_cv_cxx_compiler___DECCXX=yes
18719 else
18720   echo "$as_me: failed program was:" >&5
18721 sed 's/^/| /' conftest.$ac_ext >&5
18722
18723         bakefile_cv_cxx_compiler___DECCXX=no
18724
18725 fi
18726
18727 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18728
18729
18730 fi
18731 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___DECCXX" >&5
18732 echo "${ECHO_T}$bakefile_cv_cxx_compiler___DECCXX" >&6; }
18733     if test "x$bakefile_cv_cxx_compiler___DECCXX" = "xyes"; then
18734         :; COMPAQCXX=yes
18735     else
18736         :;
18737     fi
18738     ac_ext=c
18739 ac_cpp='$CPP $CPPFLAGS'
18740 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18741 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18742 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18743
18744
18745
18746                 ;;
18747
18748             SunOS)
18749
18750
18751     ac_ext=cpp
18752 ac_cpp='$CXXCPP $CPPFLAGS'
18753 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18754 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18755 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18756
18757     { echo "$as_me:$LINENO: checking whether we are using the Sun C++ compiler" >&5
18758 echo $ECHO_N "checking whether we are using the Sun C++ compiler... $ECHO_C" >&6; }
18759 if test "${bakefile_cv_cxx_compiler___SUNPRO_CC+set}" = set; then
18760   echo $ECHO_N "(cached) $ECHO_C" >&6
18761 else
18762   cat >conftest.$ac_ext <<_ACEOF
18763 /* confdefs.h.  */
18764 _ACEOF
18765 cat confdefs.h >>conftest.$ac_ext
18766 cat >>conftest.$ac_ext <<_ACEOF
18767 /* end confdefs.h.  */
18768
18769 int
18770 main ()
18771 {
18772
18773              #ifndef __SUNPRO_CC
18774                 choke me
18775              #endif
18776
18777   ;
18778   return 0;
18779 }
18780 _ACEOF
18781 rm -f conftest.$ac_objext
18782 if { (ac_try="$ac_compile"
18783 case "(($ac_try" in
18784   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18785   *) ac_try_echo=$ac_try;;
18786 esac
18787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18788   (eval "$ac_compile") 2>conftest.er1
18789   ac_status=$?
18790   grep -v '^ *+' conftest.er1 >conftest.err
18791   rm -f conftest.er1
18792   cat conftest.err >&5
18793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18794   (exit $ac_status); } && {
18795          test -z "$ac_cxx_werror_flag" ||
18796          test ! -s conftest.err
18797        } && test -s conftest.$ac_objext; then
18798   bakefile_cv_cxx_compiler___SUNPRO_CC=yes
18799 else
18800   echo "$as_me: failed program was:" >&5
18801 sed 's/^/| /' conftest.$ac_ext >&5
18802
18803         bakefile_cv_cxx_compiler___SUNPRO_CC=no
18804
18805 fi
18806
18807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18808
18809
18810 fi
18811 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___SUNPRO_CC" >&5
18812 echo "${ECHO_T}$bakefile_cv_cxx_compiler___SUNPRO_CC" >&6; }
18813     if test "x$bakefile_cv_cxx_compiler___SUNPRO_CC" = "xyes"; then
18814         :; SUNCXX=yes
18815     else
18816         :;
18817     fi
18818     ac_ext=c
18819 ac_cpp='$CPP $CPPFLAGS'
18820 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18821 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18822 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18823
18824
18825
18826                 ;;
18827         esac
18828     fi
18829
18830
18831
18832 if test "$CXX" = "g++" -a "$GXX" != "yes"; then
18833     { { echo "$as_me:$LINENO: error: C++ compiler is needed to build wxWidgets" >&5
18834 echo "$as_me: error: C++ compiler is needed to build wxWidgets" >&2;}
18835    { (exit 1); exit 1; }; }
18836 fi
18837
18838 if test "x$SUNCXX" != xyes; then
18839     if test -n "$ac_tool_prefix"; then
18840   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
18841 set dummy ${ac_tool_prefix}ar; ac_word=$2
18842 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18843 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18844 if test "${ac_cv_prog_AR+set}" = set; then
18845   echo $ECHO_N "(cached) $ECHO_C" >&6
18846 else
18847   if test -n "$AR"; then
18848   ac_cv_prog_AR="$AR" # Let the user override the test.
18849 else
18850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18851 for as_dir in $PATH
18852 do
18853   IFS=$as_save_IFS
18854   test -z "$as_dir" && as_dir=.
18855   for ac_exec_ext in '' $ac_executable_extensions; do
18856   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18857     ac_cv_prog_AR="${ac_tool_prefix}ar"
18858     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18859     break 2
18860   fi
18861 done
18862 done
18863 IFS=$as_save_IFS
18864
18865 fi
18866 fi
18867 AR=$ac_cv_prog_AR
18868 if test -n "$AR"; then
18869   { echo "$as_me:$LINENO: result: $AR" >&5
18870 echo "${ECHO_T}$AR" >&6; }
18871 else
18872   { echo "$as_me:$LINENO: result: no" >&5
18873 echo "${ECHO_T}no" >&6; }
18874 fi
18875
18876
18877 fi
18878 if test -z "$ac_cv_prog_AR"; then
18879   ac_ct_AR=$AR
18880   # Extract the first word of "ar", so it can be a program name with args.
18881 set dummy ar; ac_word=$2
18882 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18883 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18884 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
18885   echo $ECHO_N "(cached) $ECHO_C" >&6
18886 else
18887   if test -n "$ac_ct_AR"; then
18888   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
18889 else
18890 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18891 for as_dir in $PATH
18892 do
18893   IFS=$as_save_IFS
18894   test -z "$as_dir" && as_dir=.
18895   for ac_exec_ext in '' $ac_executable_extensions; do
18896   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18897     ac_cv_prog_ac_ct_AR="ar"
18898     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18899     break 2
18900   fi
18901 done
18902 done
18903 IFS=$as_save_IFS
18904
18905 fi
18906 fi
18907 ac_ct_AR=$ac_cv_prog_ac_ct_AR
18908 if test -n "$ac_ct_AR"; then
18909   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
18910 echo "${ECHO_T}$ac_ct_AR" >&6; }
18911 else
18912   { echo "$as_me:$LINENO: result: no" >&5
18913 echo "${ECHO_T}no" >&6; }
18914 fi
18915
18916   if test "x$ac_ct_AR" = x; then
18917     AR=""
18918   else
18919     case $cross_compiling:$ac_tool_warned in
18920 yes:)
18921 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
18922 whose name does not start with the host triplet.  If you think this
18923 configuration is useful to you, please write to autoconf@gnu.org." >&5
18924 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
18925 whose name does not start with the host triplet.  If you think this
18926 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
18927 ac_tool_warned=yes ;;
18928 esac
18929     AR=$ac_ct_AR
18930   fi
18931 else
18932   AR="$ac_cv_prog_AR"
18933 fi
18934
18935     if test "x$AR" = "x" ; then
18936         { { echo "$as_me:$LINENO: error: ar is needed to build wxWidgets" >&5
18937 echo "$as_me: error: ar is needed to build wxWidgets" >&2;}
18938    { (exit 1); exit 1; }; }
18939     fi
18940 fi
18941
18942
18943 if test "$wxUSE_MAC" = 1; then
18944
18945 retest_macosx_linking=no
18946
18947 OSX_ARCH_OPTS=""
18948 if test "x$wxUSE_MAC_ARCH" != xno; then
18949     OSX_ARCH_OPTS="-arch $wxUSE_MAC_ARCH"
18950 fi
18951
18952     if test "x$wxUSE_UNIVERSAL_BINARY" != xno ; then
18953                         if test "x$wxUSE_UNIVERSAL_BINARY" == xyes; then
18954             # Implicitly turn on the new --with-macosx-sdk using the default
18955             # SDK which provides the behaviour this option has always had.
18956             if test "x$wxUSE_MACOSX_SDK" = "x"; then
18957                 { echo "$as_me:$LINENO: WARNING: Enabling default SDK due to --enable-universal_binary." >&5
18958 echo "$as_me: WARNING: Enabling default SDK due to --enable-universal_binary." >&2;}
18959                 { echo "$as_me:$LINENO: WARNING: If you don't want this, specify --without-macosx-sdk" >&5
18960 echo "$as_me: WARNING: If you don't want this, specify --without-macosx-sdk" >&2;}
18961                 wxUSE_MACOSX_SDK=yes
18962             fi
18963         else
18964             # Complain to user if he specified an argument to --enable-universal_binary
18965             # and also 1) specified --with-macosx-sdk using the default (yes) or
18966             # 2) specified --with-macosx-sdk using a path or 3) specified
18967             # --without-macosx-sdk (no).
18968             if test "x$wxUSE_MACOSX_SDK" != "x" ; then
18969                 { { echo "$as_me:$LINENO: error: Please specify the new --with-macosx-sdk=PATH and do not specify an arg to --enable-universal_binary
18970 See \`config.log' for more details." >&5
18971 echo "$as_me: error: Please specify the new --with-macosx-sdk=PATH and do not specify an arg to --enable-universal_binary
18972 See \`config.log' for more details." >&2;}
18973    { (exit 1); exit 1; }; }
18974             else
18975                 # Put the SDK path into the wxUSE_MACOSX_SDK.  We don't have to
18976                 # special-case the empty string because the below test simply
18977                 # converts "no" to the empty string anyway.
18978                 wxUSE_MACOSX_SDK="$wxUSE_UNIVERSAL_BINARY"
18979                                 { echo "$as_me:$LINENO: WARNING: Please use --with-macosx-sdk=PATH and --enable-universal_binary without an argument" >&5
18980 echo "$as_me: WARNING: Please use --with-macosx-sdk=PATH and --enable-universal_binary without an argument" >&2;}
18981             fi
18982         fi
18983                 OSX_ARCH_OPTS="-arch ppc -arch i386"
18984         if test "$wxUSE_OSX_COCOA" = 1; then
18985             OSX_ARCH_OPTS="$OSX_ARCH_OPTS -arch x86_64"
18986         fi
18987         { echo "$as_me:$LINENO: checking for universal binary architectures" >&5
18988 echo $ECHO_N "checking for universal binary architectures... $ECHO_C" >&6; }
18989         { echo "$as_me:$LINENO: result: $OSX_ARCH_OPTS" >&5
18990 echo "${ECHO_T}$OSX_ARCH_OPTS" >&6; }
18991
18992                                                                                                                 retest_macosx_linking=yes
18993
18994                                         { echo "$as_me:$LINENO: WARNING: Disabling precompiled headers due to universal binary build." >&5
18995 echo "$as_me: WARNING: Disabling precompiled headers due to universal binary build." >&2;}
18996         bk_use_pch=no
18997     fi
18998
18999 CXXFLAGS="$OSX_ARCH_OPTS $CXXFLAGS"
19000 CFLAGS="$OSX_ARCH_OPTS $CFLAGS"
19001 OBJCXXFLAGS="$OSX_ARCH_OPTS $OBJCXXFLAGS"
19002 OBJCFLAGS="$OSX_ARCH_OPTS $OBJCFLAGS"
19003 LDFLAGS="$OSX_ARCH_OPTS $LDFLAGS"
19004
19005 if test "x$wxUSE_MACOSX_SDK" = "xno"; then
19006     wxUSE_MACOSX_SDK=
19007 elif test "x$wxUSE_MACOSX_SDK" = "xyes"; then
19008     # TODO: Search for most recent SDK and use it.
19009     wxUSE_MACOSX_SDK="/Developer/SDKs/MacOSX10.4u.sdk"
19010 fi
19011
19012
19013 if test "x$wxUSE_MACOSX_SDK" != "x"; then
19014     { echo "$as_me:$LINENO: checking for SDK directory $wxUSE_MACOSX_SDK" >&5
19015 echo $ECHO_N "checking for SDK directory $wxUSE_MACOSX_SDK... $ECHO_C" >&6; }
19016     if ! test -d "$wxUSE_MACOSX_SDK"; then
19017         { { echo "$as_me:$LINENO: error: not found
19018 See \`config.log' for more details." >&5
19019 echo "$as_me: error: not found
19020 See \`config.log' for more details." >&2;}
19021    { (exit 1); exit 1; }; }
19022     else
19023         { echo "$as_me:$LINENO: result: exists" >&5
19024 echo "${ECHO_T}exists" >&6; }
19025     fi
19026         MACOSX_SDK_OPTS="-isysroot $wxUSE_MACOSX_SDK"
19027     retest_macosx_linking=yes
19028             fi
19029
19030 if test "x$wxUSE_MACOSX_VERSION_MIN" = "xno"; then
19031     wxUSE_MACOSX_VERSION_MIN=
19032 elif test "x$wxUSE_MACOSX_VERSION_MIN" = "xyes"; then
19033     if test "x$wxUSE_MACOSX_SDK" != "x"; then
19034         { echo "$as_me:$LINENO: checking SDK deployment version" >&5
19035 echo $ECHO_N "checking SDK deployment version... $ECHO_C" >&6; }
19036
19037         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/'`
19038
19039         # If that failed, try again with the new key
19040         if test "x$MACOSX_SDK_PLIST_VERSION_MIN" == "x"; then
19041
19042             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/'`
19043
19044         fi
19045
19046         if test "x$MACOSX_SDK_PLIST_VERSION_MIN" != "x"; then
19047             wxUSE_MACOSX_VERSION_MIN=$MACOSX_SDK_PLIST_VERSION_MIN
19048             { echo "$as_me:$LINENO: result: $wxUSE_MACOSX_VERSION_MIN" >&5
19049 echo "${ECHO_T}$wxUSE_MACOSX_VERSION_MIN" >&6; }
19050         else
19051             { echo "$as_me:$LINENO: WARNING: Could not determine deployment target from SDKSettings.plist" >&5
19052 echo "$as_me: WARNING: Could not determine deployment target from SDKSettings.plist" >&2;}
19053             wxUSE_MACOSX_VERSION_MIN=
19054         fi
19055     else
19056         wxUSE_MACOSX_VERSION_MIN=
19057     fi
19058 elif test "x$wxUSE_MACOSX_VERSION_MIN" = "x"; then
19059     for ac_prog in sw_vers
19060 do
19061   # Extract the first word of "$ac_prog", so it can be a program name with args.
19062 set dummy $ac_prog; ac_word=$2
19063 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19064 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19065 if test "${ac_cv_prog_OSX_SW_VERS+set}" = set; then
19066   echo $ECHO_N "(cached) $ECHO_C" >&6
19067 else
19068   if test -n "$OSX_SW_VERS"; then
19069   ac_cv_prog_OSX_SW_VERS="$OSX_SW_VERS" # Let the user override the test.
19070 else
19071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19072 for as_dir in $PATH
19073 do
19074   IFS=$as_save_IFS
19075   test -z "$as_dir" && as_dir=.
19076   for ac_exec_ext in '' $ac_executable_extensions; do
19077   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19078     ac_cv_prog_OSX_SW_VERS="$ac_prog"
19079     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19080     break 2
19081   fi
19082 done
19083 done
19084 IFS=$as_save_IFS
19085
19086 fi
19087 fi
19088 OSX_SW_VERS=$ac_cv_prog_OSX_SW_VERS
19089 if test -n "$OSX_SW_VERS"; then
19090   { echo "$as_me:$LINENO: result: $OSX_SW_VERS" >&5
19091 echo "${ECHO_T}$OSX_SW_VERS" >&6; }
19092 else
19093   { echo "$as_me:$LINENO: result: no" >&5
19094 echo "${ECHO_T}no" >&6; }
19095 fi
19096
19097
19098   test -n "$OSX_SW_VERS" && break
19099 done
19100
19101     if test "$OSX_SW_VERS" != ""; then
19102         OSX_VERSION=`sw_vers -productVersion | grep 10.[0-9]`
19103     else
19104                         { echo "$as_me:$LINENO: WARNING: Assuming OS X 10.4, use --with-macosx-version-min to override." >&5
19105 echo "$as_me: WARNING: Assuming OS X 10.4, use --with-macosx-version-min to override." >&2;}
19106         OSX_VERSION="10.4"
19107     fi
19108
19109     case "$OSX_VERSION" in
19110         10.4* )
19111             wxUSE_MACOSX_VERSION_MIN=10.4
19112             ;;
19113
19114         * )
19115             if test "$wxUSE_OSX_CARBON" = 1; then
19116                 # otherwise configure stops on leopard for universal_binary
19117                 wxUSE_MACOSX_VERSION_MIN=10.4
19118             else
19119                 # for Cocoa, use 10.5 to be able to compile it in 64 bits too
19120                 wxUSE_MACOSX_VERSION_MIN=10.5
19121             fi
19122             ;;
19123     esac
19124 fi
19125
19126 NEEDS_GCC40="no"
19127 if test "x$wxUSE_MACOSX_VERSION_MIN" == "x10.4"; then
19128     NEEDS_GCC40="yes"
19129 fi
19130
19131 if test "$wxUSE_OSX_CARBON" = 1; then
19132     NEEDS_GCC40="yes"
19133 fi
19134
19135 if test "x$NEEDS_GCC40" == "xyes"; then
19136     # gcc 4.2 cannot compile 10.4 compatible code, so if the user is using it
19137     # and wants 10.4 compatible code, then 'downgrade' to 4.0
19138     # This is also the simplest way to get 32-bit binaries on Snow Leopard.
19139     if test "x$CC" = "xgcc"; then
19140         CCVERSION=`$CC --version | grep 4.[2-9].`
19141         if test "x$CCVERSION" != "x"; then
19142             echo "$as_me:$LINENO: WARNING: gcc >= 4.2 cannot compile 10.4 compatible code. Using gcc 4.0 instead."
19143             CC="gcc-4.0"
19144         fi
19145     fi
19146
19147     if test "x$CXX" = "xg++"; then
19148         CCVERSION=`$CXX --version | grep 4.[2-9].`
19149         if test "x$CCVERSION" != "x"; then
19150             CXX="g++-4.0"
19151         fi
19152     fi
19153 fi
19154
19155 if test "x$MACOSX_SDK_OPTS" != "x"; then
19156     eval "CC=\"$CC $MACOSX_SDK_OPTS\""
19157     eval "CXX=\"$CXX $MACOSX_SDK_OPTS\""
19158     eval "LD=\"$LD $MACOSX_SDK_OPTS\""
19159 fi
19160
19161 if test "x$wxUSE_MACOSX_VERSION_MIN" != "x"; then
19162     if test "$wxUSE_OSX_IPHONE" = 1; then
19163         MACOSX_VERSION_MIN_OPTS="-miphoneos-version-min=$wxUSE_MACOSX_VERSION_MIN"
19164     else
19165         MACOSX_VERSION_MIN_OPTS="-mmacosx-version-min=$wxUSE_MACOSX_VERSION_MIN"
19166     fi
19167     eval "CC=\"$CC $MACOSX_VERSION_MIN_OPTS\""
19168     eval "CXX=\"$CXX $MACOSX_VERSION_MIN_OPTS\""
19169     eval "LD=\"$LD $MACOSX_VERSION_MIN_OPTS\""
19170     retest_macosx_linking=yes
19171 fi
19172
19173 if test "x$retest_macosx_linking" = "xyes"; then
19174     ac_ext=c
19175 ac_cpp='$CPP $CPPFLAGS'
19176 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19177 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19178 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19179
19180     { echo "$as_me:$LINENO: checking if C compiler works with SDK/version options" >&5
19181 echo $ECHO_N "checking if C compiler works with SDK/version options... $ECHO_C" >&6; }
19182     cat >conftest.$ac_ext <<_ACEOF
19183 /* confdefs.h.  */
19184 _ACEOF
19185 cat confdefs.h >>conftest.$ac_ext
19186 cat >>conftest.$ac_ext <<_ACEOF
19187 /* end confdefs.h.  */
19188
19189 int
19190 main ()
19191 {
19192
19193   ;
19194   return 0;
19195 }
19196 _ACEOF
19197 rm -f conftest.$ac_objext conftest$ac_exeext
19198 if { (ac_try="$ac_link"
19199 case "(($ac_try" in
19200   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19201   *) ac_try_echo=$ac_try;;
19202 esac
19203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19204   (eval "$ac_link") 2>conftest.er1
19205   ac_status=$?
19206   grep -v '^ *+' conftest.er1 >conftest.err
19207   rm -f conftest.er1
19208   cat conftest.err >&5
19209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19210   (exit $ac_status); } && {
19211          test -z "$ac_c_werror_flag" ||
19212          test ! -s conftest.err
19213        } && test -s conftest$ac_exeext &&
19214        $as_test_x conftest$ac_exeext; then
19215   { echo "$as_me:$LINENO: result: yes" >&5
19216 echo "${ECHO_T}yes" >&6; }
19217 else
19218   echo "$as_me: failed program was:" >&5
19219 sed 's/^/| /' conftest.$ac_ext >&5
19220
19221         { { echo "$as_me:$LINENO: error: no.  Try a different SDK
19222 See \`config.log' for more details." >&5
19223 echo "$as_me: error: no.  Try a different SDK
19224 See \`config.log' for more details." >&2;}
19225    { (exit 1); exit 1; }; }; exit 1
19226 fi
19227
19228 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19229       conftest$ac_exeext conftest.$ac_ext
19230     ac_ext=c
19231 ac_cpp='$CPP $CPPFLAGS'
19232 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19233 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19234 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19235
19236
19237     ac_ext=cpp
19238 ac_cpp='$CXXCPP $CPPFLAGS'
19239 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19240 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19241 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19242
19243     { echo "$as_me:$LINENO: checking if C++ compiler works with SDK/version options" >&5
19244 echo $ECHO_N "checking if C++ compiler works with SDK/version options... $ECHO_C" >&6; }
19245     cat >conftest.$ac_ext <<_ACEOF
19246 /* confdefs.h.  */
19247 _ACEOF
19248 cat confdefs.h >>conftest.$ac_ext
19249 cat >>conftest.$ac_ext <<_ACEOF
19250 /* end confdefs.h.  */
19251
19252 int
19253 main ()
19254 {
19255
19256   ;
19257   return 0;
19258 }
19259 _ACEOF
19260 rm -f conftest.$ac_objext conftest$ac_exeext
19261 if { (ac_try="$ac_link"
19262 case "(($ac_try" in
19263   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19264   *) ac_try_echo=$ac_try;;
19265 esac
19266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19267   (eval "$ac_link") 2>conftest.er1
19268   ac_status=$?
19269   grep -v '^ *+' conftest.er1 >conftest.err
19270   rm -f conftest.er1
19271   cat conftest.err >&5
19272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19273   (exit $ac_status); } && {
19274          test -z "$ac_cxx_werror_flag" ||
19275          test ! -s conftest.err
19276        } && test -s conftest$ac_exeext &&
19277        $as_test_x conftest$ac_exeext; then
19278   { echo "$as_me:$LINENO: result: yes" >&5
19279 echo "${ECHO_T}yes" >&6; }
19280 else
19281   echo "$as_me: failed program was:" >&5
19282 sed 's/^/| /' conftest.$ac_ext >&5
19283
19284         { { echo "$as_me:$LINENO: error: no.  Try a different SDK
19285 See \`config.log' for more details." >&5
19286 echo "$as_me: error: no.  Try a different SDK
19287 See \`config.log' for more details." >&2;}
19288    { (exit 1); exit 1; }; }; exit 1
19289 fi
19290
19291 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19292       conftest$ac_exeext conftest.$ac_ext
19293     ac_ext=c
19294 ac_cpp='$CPP $CPPFLAGS'
19295 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19296 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19297 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19298
19299 fi
19300
19301 fi
19302 case "${host}" in
19303
19304                 *-*-darwin* )
19305         INSTALL_PROGRAM="cp -fp"
19306         INSTALL_DATA="cp -fp"
19307         ;;
19308     *)
19309         ;;
19310 esac
19311
19312
19313 if test "x$XLCXX" = "xyes" -a "x$USE_AIX" = "x1"; then
19314     CXXFLAGS="-qunique $CXXFLAGS"
19315 fi
19316
19317 case "${host}" in
19318   powerpc-*-darwin* )
19319     { echo "$as_me:$LINENO: checking if __POWERPC__ is already defined" >&5
19320 echo $ECHO_N "checking if __POWERPC__ is already defined... $ECHO_C" >&6; }
19321     cat >conftest.$ac_ext <<_ACEOF
19322 /* confdefs.h.  */
19323 _ACEOF
19324 cat confdefs.h >>conftest.$ac_ext
19325 cat >>conftest.$ac_ext <<_ACEOF
19326 /* end confdefs.h.  */
19327
19328 int
19329 main ()
19330 {
19331 #ifndef __POWERPC__
19332         choke me for lack of PowerPC
19333 #endif
19334
19335   ;
19336   return 0;
19337 }
19338 _ACEOF
19339 rm -f conftest.$ac_objext
19340 if { (ac_try="$ac_compile"
19341 case "(($ac_try" in
19342   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19343   *) ac_try_echo=$ac_try;;
19344 esac
19345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19346   (eval "$ac_compile") 2>conftest.er1
19347   ac_status=$?
19348   grep -v '^ *+' conftest.er1 >conftest.err
19349   rm -f conftest.er1
19350   cat conftest.err >&5
19351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19352   (exit $ac_status); } && {
19353          test -z "$ac_c_werror_flag" ||
19354          test ! -s conftest.err
19355        } && test -s conftest.$ac_objext; then
19356   { echo "$as_me:$LINENO: result: yes" >&5
19357 echo "${ECHO_T}yes" >&6; }
19358 else
19359   echo "$as_me: failed program was:" >&5
19360 sed 's/^/| /' conftest.$ac_ext >&5
19361
19362         { echo "$as_me:$LINENO: result: no" >&5
19363 echo "${ECHO_T}no" >&6; }
19364         cat >>confdefs.h <<\_ACEOF
19365 #define __POWERPC__ 1
19366 _ACEOF
19367
19368
19369 fi
19370
19371 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19372   ;;
19373 esac
19374
19375 case "${host}" in
19376   *-*-darwin* )
19377     { echo "$as_me:$LINENO: checking if CoreFoundation/CFBase.h is usable" >&5
19378 echo $ECHO_N "checking if CoreFoundation/CFBase.h is usable... $ECHO_C" >&6; }
19379     cat >conftest.$ac_ext <<_ACEOF
19380 /* confdefs.h.  */
19381 _ACEOF
19382 cat confdefs.h >>conftest.$ac_ext
19383 cat >>conftest.$ac_ext <<_ACEOF
19384 /* end confdefs.h.  */
19385 #include <CoreFoundation/CFBase.h>
19386
19387 int
19388 main ()
19389 {
19390
19391   ;
19392   return 0;
19393 }
19394 _ACEOF
19395 rm -f conftest.$ac_objext
19396 if { (ac_try="$ac_compile"
19397 case "(($ac_try" in
19398   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19399   *) ac_try_echo=$ac_try;;
19400 esac
19401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19402   (eval "$ac_compile") 2>conftest.er1
19403   ac_status=$?
19404   grep -v '^ *+' conftest.er1 >conftest.err
19405   rm -f conftest.er1
19406   cat conftest.err >&5
19407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19408   (exit $ac_status); } && {
19409          test -z "$ac_c_werror_flag" ||
19410          test ! -s conftest.err
19411        } && test -s conftest.$ac_objext; then
19412   { echo "$as_me:$LINENO: result: yes" >&5
19413 echo "${ECHO_T}yes" >&6; }
19414 else
19415   echo "$as_me: failed program was:" >&5
19416 sed 's/^/| /' conftest.$ac_ext >&5
19417
19418         { echo "$as_me:$LINENO: result: no" >&5
19419 echo "${ECHO_T}no" >&6; }
19420         { echo "$as_me:$LINENO: checking if __CF_USE_FRAMEWORK_INCLUDES__ is required" >&5
19421 echo $ECHO_N "checking if __CF_USE_FRAMEWORK_INCLUDES__ is required... $ECHO_C" >&6; }
19422         cat >conftest.$ac_ext <<_ACEOF
19423 /* confdefs.h.  */
19424 _ACEOF
19425 cat confdefs.h >>conftest.$ac_ext
19426 cat >>conftest.$ac_ext <<_ACEOF
19427 /* end confdefs.h.  */
19428 #define __CF_USE_FRAMEWORK_INCLUDES__
19429 #include <CoreFoundation/CFBase.h>
19430
19431 int
19432 main ()
19433 {
19434
19435   ;
19436   return 0;
19437 }
19438 _ACEOF
19439 rm -f conftest.$ac_objext
19440 if { (ac_try="$ac_compile"
19441 case "(($ac_try" in
19442   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19443   *) ac_try_echo=$ac_try;;
19444 esac
19445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19446   (eval "$ac_compile") 2>conftest.er1
19447   ac_status=$?
19448   grep -v '^ *+' conftest.er1 >conftest.err
19449   rm -f conftest.er1
19450   cat conftest.err >&5
19451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19452   (exit $ac_status); } && {
19453          test -z "$ac_c_werror_flag" ||
19454          test ! -s conftest.err
19455        } && test -s conftest.$ac_objext; then
19456   { echo "$as_me:$LINENO: result: yes" >&5
19457 echo "${ECHO_T}yes" >&6; }
19458                         CPPFLAGS="-D__CF_USE_FRAMEWORK_INCLUDES__ $CPPFLAGS"
19459 else
19460   echo "$as_me: failed program was:" >&5
19461 sed 's/^/| /' conftest.$ac_ext >&5
19462
19463         { { echo "$as_me:$LINENO: error: no.  CoreFoundation not available.
19464 See \`config.log' for more details." >&5
19465 echo "$as_me: error: no.  CoreFoundation not available.
19466 See \`config.log' for more details." >&2;}
19467    { (exit 1); exit 1; }; }
19468
19469 fi
19470
19471 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19472
19473
19474 fi
19475
19476 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19477   ;;
19478 esac
19479
19480 wants_win32=0
19481 doesnt_want_win32=0
19482 case "${host}" in
19483   *-*-cygwin*)
19484       if test "$wxUSE_MSW" = 1 ; then
19485         wants_win32=1
19486       else
19487                         { echo "$as_me:$LINENO: checking if -mno-cygwin is in effect" >&5
19488 echo $ECHO_N "checking if -mno-cygwin is in effect... $ECHO_C" >&6; }
19489 if test "${wx_cv_nocygwin+set}" = set; then
19490   echo $ECHO_N "(cached) $ECHO_C" >&6
19491 else
19492
19493                 cat >conftest.$ac_ext <<_ACEOF
19494 /* confdefs.h.  */
19495 _ACEOF
19496 cat confdefs.h >>conftest.$ac_ext
19497 cat >>conftest.$ac_ext <<_ACEOF
19498 /* end confdefs.h.  */
19499
19500 int
19501 main ()
19502 {
19503
19504                         #ifdef __MINGW32__
19505                             choke me
19506                         #endif
19507
19508   ;
19509   return 0;
19510 }
19511 _ACEOF
19512 rm -f conftest.$ac_objext
19513 if { (ac_try="$ac_compile"
19514 case "(($ac_try" in
19515   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19516   *) ac_try_echo=$ac_try;;
19517 esac
19518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19519   (eval "$ac_compile") 2>conftest.er1
19520   ac_status=$?
19521   grep -v '^ *+' conftest.er1 >conftest.err
19522   rm -f conftest.er1
19523   cat conftest.err >&5
19524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19525   (exit $ac_status); } && {
19526          test -z "$ac_c_werror_flag" ||
19527          test ! -s conftest.err
19528        } && test -s conftest.$ac_objext; then
19529   wx_cv_nocygwin=no
19530 else
19531   echo "$as_me: failed program was:" >&5
19532 sed 's/^/| /' conftest.$ac_ext >&5
19533
19534         wx_cv_nocygwin=yes
19535
19536 fi
19537
19538 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19539
19540
19541 fi
19542 { echo "$as_me:$LINENO: result: $wx_cv_nocygwin" >&5
19543 echo "${ECHO_T}$wx_cv_nocygwin" >&6; }
19544
19545         if test "$wx_cv_nocygwin" = "yes"; then
19546             wants_win32=1
19547         else
19548             doesnt_want_win32=1
19549         fi
19550       fi
19551       if test "$wants_win32" = 1 ; then
19552         BAKEFILE_FORCE_PLATFORM=win32
19553       fi
19554   ;;
19555   *-*-mingw*)
19556       wants_win32=1
19557   ;;
19558 esac
19559
19560 if test "$wxUSE_WINE" = "yes"; then
19561     wants_win32=1
19562     LDFLAGS_GUI="-mwindows"
19563 fi
19564
19565 if test "$wants_win32" = 1 ; then
19566     USE_UNIX=0
19567     USE_WIN32=1
19568     cat >>confdefs.h <<\_ACEOF
19569 #define __WIN32__ 1
19570 _ACEOF
19571
19572     cat >>confdefs.h <<\_ACEOF
19573 #define __WIN95__ 1
19574 _ACEOF
19575
19576     cat >>confdefs.h <<\_ACEOF
19577 #define __WINDOWS__ 1
19578 _ACEOF
19579
19580     cat >>confdefs.h <<\_ACEOF
19581 #define __GNUWIN32__ 1
19582 _ACEOF
19583
19584     cat >>confdefs.h <<\_ACEOF
19585 #define STRICT 1
19586 _ACEOF
19587
19588 fi
19589 if test "$doesnt_want_win32" = 1 ; then
19590     USE_UNIX=1
19591     USE_WIN32=0
19592 fi
19593
19594 if test "$USE_UNIX" = 1 ; then
19595     wxUSE_UNIX=yes
19596     cat >>confdefs.h <<\_ACEOF
19597 #define __UNIX__ 1
19598 _ACEOF
19599
19600 fi
19601
19602 case "${host}" in
19603   *-pc-os2_emx | *-pc-os2-emx )
19604                                                       if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then
19605                               { echo "$as_me:$LINENO: checking for drand48 in -lcExt" >&5
19606 echo $ECHO_N "checking for drand48 in -lcExt... $ECHO_C" >&6; }
19607 if test "${ac_cv_lib_cExt_drand48+set}" = set; then
19608   echo $ECHO_N "(cached) $ECHO_C" >&6
19609 else
19610   ac_check_lib_save_LIBS=$LIBS
19611 LIBS="-lcExt  $LIBS"
19612 cat >conftest.$ac_ext <<_ACEOF
19613 /* confdefs.h.  */
19614 _ACEOF
19615 cat confdefs.h >>conftest.$ac_ext
19616 cat >>conftest.$ac_ext <<_ACEOF
19617 /* end confdefs.h.  */
19618
19619 /* Override any GCC internal prototype to avoid an error.
19620    Use char because int might match the return type of a GCC
19621    builtin and then its argument prototype would still apply.  */
19622 #ifdef __cplusplus
19623 extern "C"
19624 #endif
19625 char drand48 ();
19626 int
19627 main ()
19628 {
19629 return drand48 ();
19630   ;
19631   return 0;
19632 }
19633 _ACEOF
19634 rm -f conftest.$ac_objext conftest$ac_exeext
19635 if { (ac_try="$ac_link"
19636 case "(($ac_try" in
19637   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19638   *) ac_try_echo=$ac_try;;
19639 esac
19640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19641   (eval "$ac_link") 2>conftest.er1
19642   ac_status=$?
19643   grep -v '^ *+' conftest.er1 >conftest.err
19644   rm -f conftest.er1
19645   cat conftest.err >&5
19646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19647   (exit $ac_status); } && {
19648          test -z "$ac_c_werror_flag" ||
19649          test ! -s conftest.err
19650        } && test -s conftest$ac_exeext &&
19651        $as_test_x conftest$ac_exeext; then
19652   ac_cv_lib_cExt_drand48=yes
19653 else
19654   echo "$as_me: failed program was:" >&5
19655 sed 's/^/| /' conftest.$ac_ext >&5
19656
19657         ac_cv_lib_cExt_drand48=no
19658 fi
19659
19660 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19661       conftest$ac_exeext conftest.$ac_ext
19662 LIBS=$ac_check_lib_save_LIBS
19663 fi
19664 { echo "$as_me:$LINENO: result: $ac_cv_lib_cExt_drand48" >&5
19665 echo "${ECHO_T}$ac_cv_lib_cExt_drand48" >&6; }
19666 if test $ac_cv_lib_cExt_drand48 = yes; then
19667   LIBS="$LIBS -lcExt"
19668 fi
19669
19670       else
19671                     RESPROGRAMOBJ="\${top_srcdir}/include/wx/os2/wx.res"
19672       fi
19673                                     { echo "$as_me:$LINENO: checking for gcc/libc version" >&5
19674 echo $ECHO_N "checking for gcc/libc version... $ECHO_C" >&6; }
19675 if test "${wx_cv_gccversion+set}" = set; then
19676   echo $ECHO_N "(cached) $ECHO_C" >&6
19677 else
19678
19679           if test "$cross_compiling" = yes; then
19680                 wx_cv_gccversion="EMX2"
19681
19682 else
19683   cat >conftest.$ac_ext <<_ACEOF
19684 /* confdefs.h.  */
19685 _ACEOF
19686 cat confdefs.h >>conftest.$ac_ext
19687 cat >>conftest.$ac_ext <<_ACEOF
19688 /* end confdefs.h.  */
19689
19690                   #include <stdio.h>
19691
19692                   int main()
19693                   {
19694                       FILE *f=fopen("conftestval", "w");
19695                       if (!f) exit(1);
19696                       fprintf(f,
19697                   #if (__GNUC__ < 3)
19698                               "EMX2"
19699                   #elif (__GNUC__==3) && ((__GNUC_MINOR__ < 2) || ((__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__<2)))
19700                               "EMX3"
19701                   #elif (__GNUC__==3) && (__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__==2)
19702                               "Innotek5"
19703                   #else
19704                               "Innotek6"
19705                   #endif
19706                       );
19707                       exit(0);
19708                   }
19709
19710 _ACEOF
19711 rm -f conftest$ac_exeext
19712 if { (ac_try="$ac_link"
19713 case "(($ac_try" in
19714   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19715   *) ac_try_echo=$ac_try;;
19716 esac
19717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19718   (eval "$ac_link") 2>&5
19719   ac_status=$?
19720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19721   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19722   { (case "(($ac_try" in
19723   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19724   *) ac_try_echo=$ac_try;;
19725 esac
19726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19727   (eval "$ac_try") 2>&5
19728   ac_status=$?
19729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19730   (exit $ac_status); }; }; then
19731   wx_cv_gccversion=`cat conftestval`
19732 else
19733   echo "$as_me: program exited with status $ac_status" >&5
19734 echo "$as_me: failed program was:" >&5
19735 sed 's/^/| /' conftest.$ac_ext >&5
19736
19737 ( exit $ac_status )
19738 wx_cv_gccversion="EMX2"
19739 fi
19740 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19741 fi
19742
19743
19744
19745 fi
19746 { echo "$as_me:$LINENO: result: $wx_cv_gccversion" >&5
19747 echo "${ECHO_T}$wx_cv_gccversion" >&6; }
19748       if test "$wx_cv_gccversion" = "EMX2"; then
19749           LIBS="$LIBS -lstdcpp"
19750           LDFLAGS="$LDFLAGS -Zsysv-signals"
19751       else
19752           if test "$wx_cv_gccversion" = "EMX3"; then
19753               LIBS="$LIBS -lstdcxx -lgcc"
19754               LDFLAGS="$LDFLAGS -Zsysv-signals"
19755           else
19756               LIBS="$LIBS -lstdc++"
19757           fi
19758       fi
19759       if test "$wxUSE_SHARED" = "yes" -a "$wxUSE_OMF" = "no"; then
19760         { echo "$as_me:$LINENO: WARNING: Building DLLs requires OMF mode, enabled" >&5
19761 echo "$as_me: WARNING: Building DLLs requires OMF mode, enabled" >&2;}
19762         wxUSE_OMF=yes
19763         enable_omf=yes
19764       fi
19765         ;;
19766   *)
19767
19768       { echo "$as_me:$LINENO: checking for strcasecmp() in string.h" >&5
19769 echo $ECHO_N "checking for strcasecmp() in string.h... $ECHO_C" >&6; }
19770 if test "${ac_cv_string_strcasecmp+set}" = set; then
19771   echo $ECHO_N "(cached) $ECHO_C" >&6
19772 else
19773
19774           cat >conftest.$ac_ext <<_ACEOF
19775 /* confdefs.h.  */
19776 _ACEOF
19777 cat confdefs.h >>conftest.$ac_ext
19778 cat >>conftest.$ac_ext <<_ACEOF
19779 /* end confdefs.h.  */
19780
19781               #include <string.h>
19782
19783 int
19784 main ()
19785 {
19786
19787                   strcasecmp("foo", "bar");
19788
19789   ;
19790   return 0;
19791 }
19792 _ACEOF
19793 rm -f conftest.$ac_objext conftest$ac_exeext
19794 if { (ac_try="$ac_link"
19795 case "(($ac_try" in
19796   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19797   *) ac_try_echo=$ac_try;;
19798 esac
19799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19800   (eval "$ac_link") 2>conftest.er1
19801   ac_status=$?
19802   grep -v '^ *+' conftest.er1 >conftest.err
19803   rm -f conftest.er1
19804   cat conftest.err >&5
19805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19806   (exit $ac_status); } && {
19807          test -z "$ac_c_werror_flag" ||
19808          test ! -s conftest.err
19809        } && test -s conftest$ac_exeext &&
19810        $as_test_x conftest$ac_exeext; then
19811   ac_cv_string_strcasecmp=yes
19812 else
19813   echo "$as_me: failed program was:" >&5
19814 sed 's/^/| /' conftest.$ac_ext >&5
19815
19816         ac_cv_string_strcasecmp=no
19817
19818 fi
19819
19820 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19821       conftest$ac_exeext conftest.$ac_ext
19822
19823 fi
19824 { echo "$as_me:$LINENO: result: $ac_cv_string_strcasecmp" >&5
19825 echo "${ECHO_T}$ac_cv_string_strcasecmp" >&6; }
19826
19827       if test x"$ac_cv_string_strcasecmp" = "xyes"; then
19828           cat >>confdefs.h <<\_ACEOF
19829 #define HAVE_STRCASECMP_IN_STRING_H 1
19830 _ACEOF
19831
19832       else
19833           { echo "$as_me:$LINENO: checking for strcasecmp() in strings.h" >&5
19834 echo $ECHO_N "checking for strcasecmp() in strings.h... $ECHO_C" >&6; }
19835 if test "${ac_cv_strings_strcasecmp+set}" = set; then
19836   echo $ECHO_N "(cached) $ECHO_C" >&6
19837 else
19838
19839               cat >conftest.$ac_ext <<_ACEOF
19840 /* confdefs.h.  */
19841 _ACEOF
19842 cat confdefs.h >>conftest.$ac_ext
19843 cat >>conftest.$ac_ext <<_ACEOF
19844 /* end confdefs.h.  */
19845
19846                   #include <strings.h>
19847
19848 int
19849 main ()
19850 {
19851
19852                       strcasecmp("foo", "bar");
19853
19854   ;
19855   return 0;
19856 }
19857 _ACEOF
19858 rm -f conftest.$ac_objext conftest$ac_exeext
19859 if { (ac_try="$ac_link"
19860 case "(($ac_try" in
19861   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19862   *) ac_try_echo=$ac_try;;
19863 esac
19864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19865   (eval "$ac_link") 2>conftest.er1
19866   ac_status=$?
19867   grep -v '^ *+' conftest.er1 >conftest.err
19868   rm -f conftest.er1
19869   cat conftest.err >&5
19870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19871   (exit $ac_status); } && {
19872          test -z "$ac_c_werror_flag" ||
19873          test ! -s conftest.err
19874        } && test -s conftest$ac_exeext &&
19875        $as_test_x conftest$ac_exeext; then
19876   ac_cv_strings_strcasecmp=yes
19877 else
19878   echo "$as_me: failed program was:" >&5
19879 sed 's/^/| /' conftest.$ac_ext >&5
19880
19881         ac_cv_strings_strcasecmp=no
19882
19883 fi
19884
19885 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19886       conftest$ac_exeext conftest.$ac_ext
19887
19888 fi
19889 { echo "$as_me:$LINENO: result: $ac_cv_strings_strcasecmp" >&5
19890 echo "${ECHO_T}$ac_cv_strings_strcasecmp" >&6; }
19891
19892           if test x"$ac_cv_strings_strcasecmp" = "xyes"; then
19893               cat >>confdefs.h <<\_ACEOF
19894 #define HAVE_STRCASECMP_IN_STRINGS_H 1
19895 _ACEOF
19896
19897           else
19898               { { echo "$as_me:$LINENO: error: No case-insensitive string comparison function found." >&5
19899 echo "$as_me: error: No case-insensitive string comparison function found." >&2;}
19900    { (exit 1); exit 1; }; }
19901           fi
19902       fi
19903
19904         ;;
19905 esac
19906
19907
19908 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
19909 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
19910 if test "${ac_cv_header_stdc+set}" = set; then
19911   echo $ECHO_N "(cached) $ECHO_C" >&6
19912 else
19913   cat >conftest.$ac_ext <<_ACEOF
19914 /* confdefs.h.  */
19915 _ACEOF
19916 cat confdefs.h >>conftest.$ac_ext
19917 cat >>conftest.$ac_ext <<_ACEOF
19918 /* end confdefs.h.  */
19919 #include <stdlib.h>
19920 #include <stdarg.h>
19921 #include <string.h>
19922 #include <float.h>
19923
19924 int
19925 main ()
19926 {
19927
19928   ;
19929   return 0;
19930 }
19931 _ACEOF
19932 rm -f conftest.$ac_objext
19933 if { (ac_try="$ac_compile"
19934 case "(($ac_try" in
19935   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19936   *) ac_try_echo=$ac_try;;
19937 esac
19938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19939   (eval "$ac_compile") 2>conftest.er1
19940   ac_status=$?
19941   grep -v '^ *+' conftest.er1 >conftest.err
19942   rm -f conftest.er1
19943   cat conftest.err >&5
19944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19945   (exit $ac_status); } && {
19946          test -z "$ac_c_werror_flag" ||
19947          test ! -s conftest.err
19948        } && test -s conftest.$ac_objext; then
19949   ac_cv_header_stdc=yes
19950 else
19951   echo "$as_me: failed program was:" >&5
19952 sed 's/^/| /' conftest.$ac_ext >&5
19953
19954         ac_cv_header_stdc=no
19955 fi
19956
19957 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19958
19959 if test $ac_cv_header_stdc = yes; then
19960   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
19961   cat >conftest.$ac_ext <<_ACEOF
19962 /* confdefs.h.  */
19963 _ACEOF
19964 cat confdefs.h >>conftest.$ac_ext
19965 cat >>conftest.$ac_ext <<_ACEOF
19966 /* end confdefs.h.  */
19967 #include <string.h>
19968
19969 _ACEOF
19970 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19971   $EGREP "memchr" >/dev/null 2>&1; then
19972   :
19973 else
19974   ac_cv_header_stdc=no
19975 fi
19976 rm -f conftest*
19977
19978 fi
19979
19980 if test $ac_cv_header_stdc = yes; then
19981   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
19982   cat >conftest.$ac_ext <<_ACEOF
19983 /* confdefs.h.  */
19984 _ACEOF
19985 cat confdefs.h >>conftest.$ac_ext
19986 cat >>conftest.$ac_ext <<_ACEOF
19987 /* end confdefs.h.  */
19988 #include <stdlib.h>
19989
19990 _ACEOF
19991 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19992   $EGREP "free" >/dev/null 2>&1; then
19993   :
19994 else
19995   ac_cv_header_stdc=no
19996 fi
19997 rm -f conftest*
19998
19999 fi
20000
20001 if test $ac_cv_header_stdc = yes; then
20002   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
20003   if test "$cross_compiling" = yes; then
20004   :
20005 else
20006   cat >conftest.$ac_ext <<_ACEOF
20007 /* confdefs.h.  */
20008 _ACEOF
20009 cat confdefs.h >>conftest.$ac_ext
20010 cat >>conftest.$ac_ext <<_ACEOF
20011 /* end confdefs.h.  */
20012 #include <ctype.h>
20013 #include <stdlib.h>
20014 #if ((' ' & 0x0FF) == 0x020)
20015 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20016 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20017 #else
20018 # define ISLOWER(c) \
20019                    (('a' <= (c) && (c) <= 'i') \
20020                      || ('j' <= (c) && (c) <= 'r') \
20021                      || ('s' <= (c) && (c) <= 'z'))
20022 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20023 #endif
20024
20025 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20026 int
20027 main ()
20028 {
20029   int i;
20030   for (i = 0; i < 256; i++)
20031     if (XOR (islower (i), ISLOWER (i))
20032         || toupper (i) != TOUPPER (i))
20033       return 2;
20034   return 0;
20035 }
20036 _ACEOF
20037 rm -f conftest$ac_exeext
20038 if { (ac_try="$ac_link"
20039 case "(($ac_try" in
20040   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20041   *) ac_try_echo=$ac_try;;
20042 esac
20043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20044   (eval "$ac_link") 2>&5
20045   ac_status=$?
20046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20047   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20048   { (case "(($ac_try" in
20049   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20050   *) ac_try_echo=$ac_try;;
20051 esac
20052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20053   (eval "$ac_try") 2>&5
20054   ac_status=$?
20055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20056   (exit $ac_status); }; }; then
20057   :
20058 else
20059   echo "$as_me: program exited with status $ac_status" >&5
20060 echo "$as_me: failed program was:" >&5
20061 sed 's/^/| /' conftest.$ac_ext >&5
20062
20063 ( exit $ac_status )
20064 ac_cv_header_stdc=no
20065 fi
20066 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20067 fi
20068
20069
20070 fi
20071 fi
20072 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
20073 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
20074 if test $ac_cv_header_stdc = yes; then
20075
20076 cat >>confdefs.h <<\_ACEOF
20077 #define STDC_HEADERS 1
20078 _ACEOF
20079
20080 fi
20081
20082 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
20083
20084
20085
20086
20087
20088
20089
20090
20091
20092 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
20093                   inttypes.h stdint.h unistd.h
20094 do
20095 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20096 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20097 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20098 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20099   echo $ECHO_N "(cached) $ECHO_C" >&6
20100 else
20101   cat >conftest.$ac_ext <<_ACEOF
20102 /* confdefs.h.  */
20103 _ACEOF
20104 cat confdefs.h >>conftest.$ac_ext
20105 cat >>conftest.$ac_ext <<_ACEOF
20106 /* end confdefs.h.  */
20107 $ac_includes_default
20108
20109 #include <$ac_header>
20110 _ACEOF
20111 rm -f conftest.$ac_objext
20112 if { (ac_try="$ac_compile"
20113 case "(($ac_try" in
20114   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20115   *) ac_try_echo=$ac_try;;
20116 esac
20117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20118   (eval "$ac_compile") 2>conftest.er1
20119   ac_status=$?
20120   grep -v '^ *+' conftest.er1 >conftest.err
20121   rm -f conftest.er1
20122   cat conftest.err >&5
20123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20124   (exit $ac_status); } && {
20125          test -z "$ac_c_werror_flag" ||
20126          test ! -s conftest.err
20127        } && test -s conftest.$ac_objext; then
20128   eval "$as_ac_Header=yes"
20129 else
20130   echo "$as_me: failed program was:" >&5
20131 sed 's/^/| /' conftest.$ac_ext >&5
20132
20133         eval "$as_ac_Header=no"
20134 fi
20135
20136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20137 fi
20138 ac_res=`eval echo '${'$as_ac_Header'}'`
20139                { echo "$as_me:$LINENO: result: $ac_res" >&5
20140 echo "${ECHO_T}$ac_res" >&6; }
20141 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20142   cat >>confdefs.h <<_ACEOF
20143 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20144 _ACEOF
20145
20146 fi
20147
20148 done
20149
20150
20151
20152
20153 for ac_header in langinfo.h wchar.h
20154 do
20155 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20156 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20157 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20158 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20159   echo $ECHO_N "(cached) $ECHO_C" >&6
20160 else
20161   cat >conftest.$ac_ext <<_ACEOF
20162 /* confdefs.h.  */
20163 _ACEOF
20164 cat confdefs.h >>conftest.$ac_ext
20165 cat >>conftest.$ac_ext <<_ACEOF
20166 /* end confdefs.h.  */
20167 $ac_includes_default
20168
20169 #include <$ac_header>
20170 _ACEOF
20171 rm -f conftest.$ac_objext
20172 if { (ac_try="$ac_compile"
20173 case "(($ac_try" in
20174   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20175   *) ac_try_echo=$ac_try;;
20176 esac
20177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20178   (eval "$ac_compile") 2>conftest.er1
20179   ac_status=$?
20180   grep -v '^ *+' conftest.er1 >conftest.err
20181   rm -f conftest.er1
20182   cat conftest.err >&5
20183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20184   (exit $ac_status); } && {
20185          test -z "$ac_c_werror_flag" ||
20186          test ! -s conftest.err
20187        } && test -s conftest.$ac_objext; then
20188   eval "$as_ac_Header=yes"
20189 else
20190   echo "$as_me: failed program was:" >&5
20191 sed 's/^/| /' conftest.$ac_ext >&5
20192
20193         eval "$as_ac_Header=no"
20194 fi
20195
20196 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20197 fi
20198 ac_res=`eval echo '${'$as_ac_Header'}'`
20199                { echo "$as_me:$LINENO: result: $ac_res" >&5
20200 echo "${ECHO_T}$ac_res" >&6; }
20201 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20202   cat >>confdefs.h <<_ACEOF
20203 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20204 _ACEOF
20205
20206 fi
20207
20208 done
20209
20210
20211 if test "$ac_cv_header_wchar_h" != "yes"; then
20212
20213 for ac_header in wcstr.h
20214 do
20215 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20216 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20217 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20218 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20219   echo $ECHO_N "(cached) $ECHO_C" >&6
20220 else
20221   cat >conftest.$ac_ext <<_ACEOF
20222 /* confdefs.h.  */
20223 _ACEOF
20224 cat confdefs.h >>conftest.$ac_ext
20225 cat >>conftest.$ac_ext <<_ACEOF
20226 /* end confdefs.h.  */
20227 $ac_includes_default
20228
20229 #include <$ac_header>
20230 _ACEOF
20231 rm -f conftest.$ac_objext
20232 if { (ac_try="$ac_compile"
20233 case "(($ac_try" in
20234   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20235   *) ac_try_echo=$ac_try;;
20236 esac
20237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20238   (eval "$ac_compile") 2>conftest.er1
20239   ac_status=$?
20240   grep -v '^ *+' conftest.er1 >conftest.err
20241   rm -f conftest.er1
20242   cat conftest.err >&5
20243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20244   (exit $ac_status); } && {
20245          test -z "$ac_c_werror_flag" ||
20246          test ! -s conftest.err
20247        } && test -s conftest.$ac_objext; then
20248   eval "$as_ac_Header=yes"
20249 else
20250   echo "$as_me: failed program was:" >&5
20251 sed 's/^/| /' conftest.$ac_ext >&5
20252
20253         eval "$as_ac_Header=no"
20254 fi
20255
20256 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20257 fi
20258 ac_res=`eval echo '${'$as_ac_Header'}'`
20259                { echo "$as_me:$LINENO: result: $ac_res" >&5
20260 echo "${ECHO_T}$ac_res" >&6; }
20261 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20262   cat >>confdefs.h <<_ACEOF
20263 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20264 _ACEOF
20265
20266 fi
20267
20268 done
20269
20270 fi
20271
20272 case "${host}" in
20273   *-pc-os2_emx | *-pc-os2-emx )
20274                   if test $ac_cv_header_langinfo_h = "yes" \
20275                 -a \(   "$wx_cv_gccversion" = "EMX2" \
20276                      -o "$wx_cv_gccversion" = "EMX3" \
20277                      -o "$wx_cv_gccversion" = "Innotek5" \); then
20278           LIBS="$LIBS -lintl"
20279       fi
20280   ;;
20281 esac
20282
20283 if test "$USE_UNIX" = 1 ; then
20284
20285 for ac_header in sys/select.h
20286 do
20287 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20288 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20289 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20290 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20291   echo $ECHO_N "(cached) $ECHO_C" >&6
20292 else
20293   cat >conftest.$ac_ext <<_ACEOF
20294 /* confdefs.h.  */
20295 _ACEOF
20296 cat confdefs.h >>conftest.$ac_ext
20297 cat >>conftest.$ac_ext <<_ACEOF
20298 /* end confdefs.h.  */
20299 $ac_includes_default
20300
20301 #include <$ac_header>
20302 _ACEOF
20303 rm -f conftest.$ac_objext
20304 if { (ac_try="$ac_compile"
20305 case "(($ac_try" in
20306   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20307   *) ac_try_echo=$ac_try;;
20308 esac
20309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20310   (eval "$ac_compile") 2>conftest.er1
20311   ac_status=$?
20312   grep -v '^ *+' conftest.er1 >conftest.err
20313   rm -f conftest.er1
20314   cat conftest.err >&5
20315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20316   (exit $ac_status); } && {
20317          test -z "$ac_c_werror_flag" ||
20318          test ! -s conftest.err
20319        } && test -s conftest.$ac_objext; then
20320   eval "$as_ac_Header=yes"
20321 else
20322   echo "$as_me: failed program was:" >&5
20323 sed 's/^/| /' conftest.$ac_ext >&5
20324
20325         eval "$as_ac_Header=no"
20326 fi
20327
20328 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20329 fi
20330 ac_res=`eval echo '${'$as_ac_Header'}'`
20331                { echo "$as_me:$LINENO: result: $ac_res" >&5
20332 echo "${ECHO_T}$ac_res" >&6; }
20333 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20334   cat >>confdefs.h <<_ACEOF
20335 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20336 _ACEOF
20337
20338 fi
20339
20340 done
20341
20342 fi
20343
20344
20345 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
20346 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
20347 if test "${ac_cv_c_const+set}" = set; then
20348   echo $ECHO_N "(cached) $ECHO_C" >&6
20349 else
20350   cat >conftest.$ac_ext <<_ACEOF
20351 /* confdefs.h.  */
20352 _ACEOF
20353 cat confdefs.h >>conftest.$ac_ext
20354 cat >>conftest.$ac_ext <<_ACEOF
20355 /* end confdefs.h.  */
20356
20357 int
20358 main ()
20359 {
20360 /* FIXME: Include the comments suggested by Paul. */
20361 #ifndef __cplusplus
20362   /* Ultrix mips cc rejects this.  */
20363   typedef int charset[2];
20364   const charset cs;
20365   /* SunOS 4.1.1 cc rejects this.  */
20366   char const *const *pcpcc;
20367   char **ppc;
20368   /* NEC SVR4.0.2 mips cc rejects this.  */
20369   struct point {int x, y;};
20370   static struct point const zero = {0,0};
20371   /* AIX XL C 1.02.0.0 rejects this.
20372      It does not let you subtract one const X* pointer from another in
20373      an arm of an if-expression whose if-part is not a constant
20374      expression */
20375   const char *g = "string";
20376   pcpcc = &g + (g ? g-g : 0);
20377   /* HPUX 7.0 cc rejects these. */
20378   ++pcpcc;
20379   ppc = (char**) pcpcc;
20380   pcpcc = (char const *const *) ppc;
20381   { /* SCO 3.2v4 cc rejects this.  */
20382     char *t;
20383     char const *s = 0 ? (char *) 0 : (char const *) 0;
20384
20385     *t++ = 0;
20386     if (s) return 0;
20387   }
20388   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
20389     int x[] = {25, 17};
20390     const int *foo = &x[0];
20391     ++foo;
20392   }
20393   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
20394     typedef const int *iptr;
20395     iptr p = 0;
20396     ++p;
20397   }
20398   { /* AIX XL C 1.02.0.0 rejects this saying
20399        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
20400     struct s { int j; const int *ap[3]; };
20401     struct s *b; b->j = 5;
20402   }
20403   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
20404     const int foo = 10;
20405     if (!foo) return 0;
20406   }
20407   return !cs[0] && !zero.x;
20408 #endif
20409
20410   ;
20411   return 0;
20412 }
20413 _ACEOF
20414 rm -f conftest.$ac_objext
20415 if { (ac_try="$ac_compile"
20416 case "(($ac_try" in
20417   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20418   *) ac_try_echo=$ac_try;;
20419 esac
20420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20421   (eval "$ac_compile") 2>conftest.er1
20422   ac_status=$?
20423   grep -v '^ *+' conftest.er1 >conftest.err
20424   rm -f conftest.er1
20425   cat conftest.err >&5
20426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20427   (exit $ac_status); } && {
20428          test -z "$ac_c_werror_flag" ||
20429          test ! -s conftest.err
20430        } && test -s conftest.$ac_objext; then
20431   ac_cv_c_const=yes
20432 else
20433   echo "$as_me: failed program was:" >&5
20434 sed 's/^/| /' conftest.$ac_ext >&5
20435
20436         ac_cv_c_const=no
20437 fi
20438
20439 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20440 fi
20441 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
20442 echo "${ECHO_T}$ac_cv_c_const" >&6; }
20443 if test $ac_cv_c_const = no; then
20444
20445 cat >>confdefs.h <<\_ACEOF
20446 #define const
20447 _ACEOF
20448
20449 fi
20450
20451 { echo "$as_me:$LINENO: checking for inline" >&5
20452 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
20453 if test "${ac_cv_c_inline+set}" = set; then
20454   echo $ECHO_N "(cached) $ECHO_C" >&6
20455 else
20456   ac_cv_c_inline=no
20457 for ac_kw in inline __inline__ __inline; do
20458   cat >conftest.$ac_ext <<_ACEOF
20459 /* confdefs.h.  */
20460 _ACEOF
20461 cat confdefs.h >>conftest.$ac_ext
20462 cat >>conftest.$ac_ext <<_ACEOF
20463 /* end confdefs.h.  */
20464 #ifndef __cplusplus
20465 typedef int foo_t;
20466 static $ac_kw foo_t static_foo () {return 0; }
20467 $ac_kw foo_t foo () {return 0; }
20468 #endif
20469
20470 _ACEOF
20471 rm -f conftest.$ac_objext
20472 if { (ac_try="$ac_compile"
20473 case "(($ac_try" in
20474   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20475   *) ac_try_echo=$ac_try;;
20476 esac
20477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20478   (eval "$ac_compile") 2>conftest.er1
20479   ac_status=$?
20480   grep -v '^ *+' conftest.er1 >conftest.err
20481   rm -f conftest.er1
20482   cat conftest.err >&5
20483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20484   (exit $ac_status); } && {
20485          test -z "$ac_c_werror_flag" ||
20486          test ! -s conftest.err
20487        } && test -s conftest.$ac_objext; then
20488   ac_cv_c_inline=$ac_kw
20489 else
20490   echo "$as_me: failed program was:" >&5
20491 sed 's/^/| /' conftest.$ac_ext >&5
20492
20493
20494 fi
20495
20496 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20497   test "$ac_cv_c_inline" != no && break
20498 done
20499
20500 fi
20501 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
20502 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
20503
20504
20505 case $ac_cv_c_inline in
20506   inline | yes) ;;
20507   *)
20508     case $ac_cv_c_inline in
20509       no) ac_val=;;
20510       *) ac_val=$ac_cv_c_inline;;
20511     esac
20512     cat >>confdefs.h <<_ACEOF
20513 #ifndef __cplusplus
20514 #define inline $ac_val
20515 #endif
20516 _ACEOF
20517     ;;
20518 esac
20519
20520
20521 { echo "$as_me:$LINENO: checking for short" >&5
20522 echo $ECHO_N "checking for short... $ECHO_C" >&6; }
20523 if test "${ac_cv_type_short+set}" = set; then
20524   echo $ECHO_N "(cached) $ECHO_C" >&6
20525 else
20526   cat >conftest.$ac_ext <<_ACEOF
20527 /* confdefs.h.  */
20528 _ACEOF
20529 cat confdefs.h >>conftest.$ac_ext
20530 cat >>conftest.$ac_ext <<_ACEOF
20531 /* end confdefs.h.  */
20532 $ac_includes_default
20533 typedef short ac__type_new_;
20534 int
20535 main ()
20536 {
20537 if ((ac__type_new_ *) 0)
20538   return 0;
20539 if (sizeof (ac__type_new_))
20540   return 0;
20541   ;
20542   return 0;
20543 }
20544 _ACEOF
20545 rm -f conftest.$ac_objext
20546 if { (ac_try="$ac_compile"
20547 case "(($ac_try" in
20548   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20549   *) ac_try_echo=$ac_try;;
20550 esac
20551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20552   (eval "$ac_compile") 2>conftest.er1
20553   ac_status=$?
20554   grep -v '^ *+' conftest.er1 >conftest.err
20555   rm -f conftest.er1
20556   cat conftest.err >&5
20557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20558   (exit $ac_status); } && {
20559          test -z "$ac_c_werror_flag" ||
20560          test ! -s conftest.err
20561        } && test -s conftest.$ac_objext; then
20562   ac_cv_type_short=yes
20563 else
20564   echo "$as_me: failed program was:" >&5
20565 sed 's/^/| /' conftest.$ac_ext >&5
20566
20567         ac_cv_type_short=no
20568 fi
20569
20570 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20571 fi
20572 { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
20573 echo "${ECHO_T}$ac_cv_type_short" >&6; }
20574
20575 # The cast to long int works around a bug in the HP C Compiler
20576 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20577 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20578 # This bug is HP SR number 8606223364.
20579 { echo "$as_me:$LINENO: checking size of short" >&5
20580 echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
20581 if test "${ac_cv_sizeof_short+set}" = set; then
20582   echo $ECHO_N "(cached) $ECHO_C" >&6
20583 else
20584   if test "$cross_compiling" = yes; then
20585   # Depending upon the size, compute the lo and hi bounds.
20586 cat >conftest.$ac_ext <<_ACEOF
20587 /* confdefs.h.  */
20588 _ACEOF
20589 cat confdefs.h >>conftest.$ac_ext
20590 cat >>conftest.$ac_ext <<_ACEOF
20591 /* end confdefs.h.  */
20592 $ac_includes_default
20593    typedef short ac__type_sizeof_;
20594 int
20595 main ()
20596 {
20597 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
20598 test_array [0] = 0
20599
20600   ;
20601   return 0;
20602 }
20603 _ACEOF
20604 rm -f conftest.$ac_objext
20605 if { (ac_try="$ac_compile"
20606 case "(($ac_try" in
20607   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20608   *) ac_try_echo=$ac_try;;
20609 esac
20610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20611   (eval "$ac_compile") 2>conftest.er1
20612   ac_status=$?
20613   grep -v '^ *+' conftest.er1 >conftest.err
20614   rm -f conftest.er1
20615   cat conftest.err >&5
20616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20617   (exit $ac_status); } && {
20618          test -z "$ac_c_werror_flag" ||
20619          test ! -s conftest.err
20620        } && test -s conftest.$ac_objext; then
20621   ac_lo=0 ac_mid=0
20622   while :; do
20623     cat >conftest.$ac_ext <<_ACEOF
20624 /* confdefs.h.  */
20625 _ACEOF
20626 cat confdefs.h >>conftest.$ac_ext
20627 cat >>conftest.$ac_ext <<_ACEOF
20628 /* end confdefs.h.  */
20629 $ac_includes_default
20630    typedef short ac__type_sizeof_;
20631 int
20632 main ()
20633 {
20634 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
20635 test_array [0] = 0
20636
20637   ;
20638   return 0;
20639 }
20640 _ACEOF
20641 rm -f conftest.$ac_objext
20642 if { (ac_try="$ac_compile"
20643 case "(($ac_try" in
20644   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20645   *) ac_try_echo=$ac_try;;
20646 esac
20647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20648   (eval "$ac_compile") 2>conftest.er1
20649   ac_status=$?
20650   grep -v '^ *+' conftest.er1 >conftest.err
20651   rm -f conftest.er1
20652   cat conftest.err >&5
20653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20654   (exit $ac_status); } && {
20655          test -z "$ac_c_werror_flag" ||
20656          test ! -s conftest.err
20657        } && test -s conftest.$ac_objext; then
20658   ac_hi=$ac_mid; break
20659 else
20660   echo "$as_me: failed program was:" >&5
20661 sed 's/^/| /' conftest.$ac_ext >&5
20662
20663         ac_lo=`expr $ac_mid + 1`
20664                         if test $ac_lo -le $ac_mid; then
20665                           ac_lo= ac_hi=
20666                           break
20667                         fi
20668                         ac_mid=`expr 2 '*' $ac_mid + 1`
20669 fi
20670
20671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20672   done
20673 else
20674   echo "$as_me: failed program was:" >&5
20675 sed 's/^/| /' conftest.$ac_ext >&5
20676
20677         cat >conftest.$ac_ext <<_ACEOF
20678 /* confdefs.h.  */
20679 _ACEOF
20680 cat confdefs.h >>conftest.$ac_ext
20681 cat >>conftest.$ac_ext <<_ACEOF
20682 /* end confdefs.h.  */
20683 $ac_includes_default
20684    typedef short ac__type_sizeof_;
20685 int
20686 main ()
20687 {
20688 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
20689 test_array [0] = 0
20690
20691   ;
20692   return 0;
20693 }
20694 _ACEOF
20695 rm -f conftest.$ac_objext
20696 if { (ac_try="$ac_compile"
20697 case "(($ac_try" in
20698   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20699   *) ac_try_echo=$ac_try;;
20700 esac
20701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20702   (eval "$ac_compile") 2>conftest.er1
20703   ac_status=$?
20704   grep -v '^ *+' conftest.er1 >conftest.err
20705   rm -f conftest.er1
20706   cat conftest.err >&5
20707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20708   (exit $ac_status); } && {
20709          test -z "$ac_c_werror_flag" ||
20710          test ! -s conftest.err
20711        } && test -s conftest.$ac_objext; then
20712   ac_hi=-1 ac_mid=-1
20713   while :; do
20714     cat >conftest.$ac_ext <<_ACEOF
20715 /* confdefs.h.  */
20716 _ACEOF
20717 cat confdefs.h >>conftest.$ac_ext
20718 cat >>conftest.$ac_ext <<_ACEOF
20719 /* end confdefs.h.  */
20720 $ac_includes_default
20721    typedef short ac__type_sizeof_;
20722 int
20723 main ()
20724 {
20725 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
20726 test_array [0] = 0
20727
20728   ;
20729   return 0;
20730 }
20731 _ACEOF
20732 rm -f conftest.$ac_objext
20733 if { (ac_try="$ac_compile"
20734 case "(($ac_try" in
20735   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20736   *) ac_try_echo=$ac_try;;
20737 esac
20738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20739   (eval "$ac_compile") 2>conftest.er1
20740   ac_status=$?
20741   grep -v '^ *+' conftest.er1 >conftest.err
20742   rm -f conftest.er1
20743   cat conftest.err >&5
20744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20745   (exit $ac_status); } && {
20746          test -z "$ac_c_werror_flag" ||
20747          test ! -s conftest.err
20748        } && test -s conftest.$ac_objext; then
20749   ac_lo=$ac_mid; break
20750 else
20751   echo "$as_me: failed program was:" >&5
20752 sed 's/^/| /' conftest.$ac_ext >&5
20753
20754         ac_hi=`expr '(' $ac_mid ')' - 1`
20755                         if test $ac_mid -le $ac_hi; then
20756                           ac_lo= ac_hi=
20757                           break
20758                         fi
20759                         ac_mid=`expr 2 '*' $ac_mid`
20760 fi
20761
20762 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20763   done
20764 else
20765   echo "$as_me: failed program was:" >&5
20766 sed 's/^/| /' conftest.$ac_ext >&5
20767
20768         ac_lo= ac_hi=
20769 fi
20770
20771 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20772 fi
20773
20774 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20775 # Binary search between lo and hi bounds.
20776 while test "x$ac_lo" != "x$ac_hi"; do
20777   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20778   cat >conftest.$ac_ext <<_ACEOF
20779 /* confdefs.h.  */
20780 _ACEOF
20781 cat confdefs.h >>conftest.$ac_ext
20782 cat >>conftest.$ac_ext <<_ACEOF
20783 /* end confdefs.h.  */
20784 $ac_includes_default
20785    typedef short ac__type_sizeof_;
20786 int
20787 main ()
20788 {
20789 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
20790 test_array [0] = 0
20791
20792   ;
20793   return 0;
20794 }
20795 _ACEOF
20796 rm -f conftest.$ac_objext
20797 if { (ac_try="$ac_compile"
20798 case "(($ac_try" in
20799   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20800   *) ac_try_echo=$ac_try;;
20801 esac
20802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20803   (eval "$ac_compile") 2>conftest.er1
20804   ac_status=$?
20805   grep -v '^ *+' conftest.er1 >conftest.err
20806   rm -f conftest.er1
20807   cat conftest.err >&5
20808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20809   (exit $ac_status); } && {
20810          test -z "$ac_c_werror_flag" ||
20811          test ! -s conftest.err
20812        } && test -s conftest.$ac_objext; then
20813   ac_hi=$ac_mid
20814 else
20815   echo "$as_me: failed program was:" >&5
20816 sed 's/^/| /' conftest.$ac_ext >&5
20817
20818         ac_lo=`expr '(' $ac_mid ')' + 1`
20819 fi
20820
20821 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20822 done
20823 case $ac_lo in
20824 ?*) ac_cv_sizeof_short=$ac_lo;;
20825 '') if test "$ac_cv_type_short" = yes; then
20826      { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
20827 See \`config.log' for more details." >&5
20828 echo "$as_me: error: cannot compute sizeof (short)
20829 See \`config.log' for more details." >&2;}
20830    { (exit 77); exit 77; }; }
20831    else
20832      ac_cv_sizeof_short=0
20833    fi ;;
20834 esac
20835 else
20836   cat >conftest.$ac_ext <<_ACEOF
20837 /* confdefs.h.  */
20838 _ACEOF
20839 cat confdefs.h >>conftest.$ac_ext
20840 cat >>conftest.$ac_ext <<_ACEOF
20841 /* end confdefs.h.  */
20842 $ac_includes_default
20843    typedef short ac__type_sizeof_;
20844 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
20845 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
20846 #include <stdio.h>
20847 #include <stdlib.h>
20848 int
20849 main ()
20850 {
20851
20852   FILE *f = fopen ("conftest.val", "w");
20853   if (! f)
20854     return 1;
20855   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
20856     {
20857       long int i = longval ();
20858       if (i != ((long int) (sizeof (ac__type_sizeof_))))
20859         return 1;
20860       fprintf (f, "%ld\n", i);
20861     }
20862   else
20863     {
20864       unsigned long int i = ulongval ();
20865       if (i != ((long int) (sizeof (ac__type_sizeof_))))
20866         return 1;
20867       fprintf (f, "%lu\n", i);
20868     }
20869   return ferror (f) || fclose (f) != 0;
20870
20871   ;
20872   return 0;
20873 }
20874 _ACEOF
20875 rm -f conftest$ac_exeext
20876 if { (ac_try="$ac_link"
20877 case "(($ac_try" in
20878   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20879   *) ac_try_echo=$ac_try;;
20880 esac
20881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20882   (eval "$ac_link") 2>&5
20883   ac_status=$?
20884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20885   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20886   { (case "(($ac_try" in
20887   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20888   *) ac_try_echo=$ac_try;;
20889 esac
20890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20891   (eval "$ac_try") 2>&5
20892   ac_status=$?
20893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20894   (exit $ac_status); }; }; then
20895   ac_cv_sizeof_short=`cat conftest.val`
20896 else
20897   echo "$as_me: program exited with status $ac_status" >&5
20898 echo "$as_me: failed program was:" >&5
20899 sed 's/^/| /' conftest.$ac_ext >&5
20900
20901 ( exit $ac_status )
20902 if test "$ac_cv_type_short" = yes; then
20903      { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
20904 See \`config.log' for more details." >&5
20905 echo "$as_me: error: cannot compute sizeof (short)
20906 See \`config.log' for more details." >&2;}
20907    { (exit 77); exit 77; }; }
20908    else
20909      ac_cv_sizeof_short=0
20910    fi
20911 fi
20912 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20913 fi
20914 rm -f conftest.val
20915 fi
20916 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
20917 echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
20918
20919
20920
20921 cat >>confdefs.h <<_ACEOF
20922 #define SIZEOF_SHORT $ac_cv_sizeof_short
20923 _ACEOF
20924
20925
20926 { echo "$as_me:$LINENO: checking for void *" >&5
20927 echo $ECHO_N "checking for void *... $ECHO_C" >&6; }
20928 if test "${ac_cv_type_void_p+set}" = set; then
20929   echo $ECHO_N "(cached) $ECHO_C" >&6
20930 else
20931   cat >conftest.$ac_ext <<_ACEOF
20932 /* confdefs.h.  */
20933 _ACEOF
20934 cat confdefs.h >>conftest.$ac_ext
20935 cat >>conftest.$ac_ext <<_ACEOF
20936 /* end confdefs.h.  */
20937 $ac_includes_default
20938 typedef void * ac__type_new_;
20939 int
20940 main ()
20941 {
20942 if ((ac__type_new_ *) 0)
20943   return 0;
20944 if (sizeof (ac__type_new_))
20945   return 0;
20946   ;
20947   return 0;
20948 }
20949 _ACEOF
20950 rm -f conftest.$ac_objext
20951 if { (ac_try="$ac_compile"
20952 case "(($ac_try" in
20953   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20954   *) ac_try_echo=$ac_try;;
20955 esac
20956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20957   (eval "$ac_compile") 2>conftest.er1
20958   ac_status=$?
20959   grep -v '^ *+' conftest.er1 >conftest.err
20960   rm -f conftest.er1
20961   cat conftest.err >&5
20962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20963   (exit $ac_status); } && {
20964          test -z "$ac_c_werror_flag" ||
20965          test ! -s conftest.err
20966        } && test -s conftest.$ac_objext; then
20967   ac_cv_type_void_p=yes
20968 else
20969   echo "$as_me: failed program was:" >&5
20970 sed 's/^/| /' conftest.$ac_ext >&5
20971
20972         ac_cv_type_void_p=no
20973 fi
20974
20975 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20976 fi
20977 { echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
20978 echo "${ECHO_T}$ac_cv_type_void_p" >&6; }
20979
20980 # The cast to long int works around a bug in the HP C Compiler
20981 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20982 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20983 # This bug is HP SR number 8606223364.
20984 { echo "$as_me:$LINENO: checking size of void *" >&5
20985 echo $ECHO_N "checking size of void *... $ECHO_C" >&6; }
20986 if test "${ac_cv_sizeof_void_p+set}" = set; then
20987   echo $ECHO_N "(cached) $ECHO_C" >&6
20988 else
20989   if test "$cross_compiling" = yes; then
20990   # Depending upon the size, compute the lo and hi bounds.
20991 cat >conftest.$ac_ext <<_ACEOF
20992 /* confdefs.h.  */
20993 _ACEOF
20994 cat confdefs.h >>conftest.$ac_ext
20995 cat >>conftest.$ac_ext <<_ACEOF
20996 /* end confdefs.h.  */
20997 $ac_includes_default
20998    typedef void * ac__type_sizeof_;
20999 int
21000 main ()
21001 {
21002 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
21003 test_array [0] = 0
21004
21005   ;
21006   return 0;
21007 }
21008 _ACEOF
21009 rm -f conftest.$ac_objext
21010 if { (ac_try="$ac_compile"
21011 case "(($ac_try" in
21012   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21013   *) ac_try_echo=$ac_try;;
21014 esac
21015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21016   (eval "$ac_compile") 2>conftest.er1
21017   ac_status=$?
21018   grep -v '^ *+' conftest.er1 >conftest.err
21019   rm -f conftest.er1
21020   cat conftest.err >&5
21021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21022   (exit $ac_status); } && {
21023          test -z "$ac_c_werror_flag" ||
21024          test ! -s conftest.err
21025        } && test -s conftest.$ac_objext; then
21026   ac_lo=0 ac_mid=0
21027   while :; do
21028     cat >conftest.$ac_ext <<_ACEOF
21029 /* confdefs.h.  */
21030 _ACEOF
21031 cat confdefs.h >>conftest.$ac_ext
21032 cat >>conftest.$ac_ext <<_ACEOF
21033 /* end confdefs.h.  */
21034 $ac_includes_default
21035    typedef void * ac__type_sizeof_;
21036 int
21037 main ()
21038 {
21039 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21040 test_array [0] = 0
21041
21042   ;
21043   return 0;
21044 }
21045 _ACEOF
21046 rm -f conftest.$ac_objext
21047 if { (ac_try="$ac_compile"
21048 case "(($ac_try" in
21049   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21050   *) ac_try_echo=$ac_try;;
21051 esac
21052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21053   (eval "$ac_compile") 2>conftest.er1
21054   ac_status=$?
21055   grep -v '^ *+' conftest.er1 >conftest.err
21056   rm -f conftest.er1
21057   cat conftest.err >&5
21058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21059   (exit $ac_status); } && {
21060          test -z "$ac_c_werror_flag" ||
21061          test ! -s conftest.err
21062        } && test -s conftest.$ac_objext; then
21063   ac_hi=$ac_mid; break
21064 else
21065   echo "$as_me: failed program was:" >&5
21066 sed 's/^/| /' conftest.$ac_ext >&5
21067
21068         ac_lo=`expr $ac_mid + 1`
21069                         if test $ac_lo -le $ac_mid; then
21070                           ac_lo= ac_hi=
21071                           break
21072                         fi
21073                         ac_mid=`expr 2 '*' $ac_mid + 1`
21074 fi
21075
21076 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21077   done
21078 else
21079   echo "$as_me: failed program was:" >&5
21080 sed 's/^/| /' conftest.$ac_ext >&5
21081
21082         cat >conftest.$ac_ext <<_ACEOF
21083 /* confdefs.h.  */
21084 _ACEOF
21085 cat confdefs.h >>conftest.$ac_ext
21086 cat >>conftest.$ac_ext <<_ACEOF
21087 /* end confdefs.h.  */
21088 $ac_includes_default
21089    typedef void * ac__type_sizeof_;
21090 int
21091 main ()
21092 {
21093 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
21094 test_array [0] = 0
21095
21096   ;
21097   return 0;
21098 }
21099 _ACEOF
21100 rm -f conftest.$ac_objext
21101 if { (ac_try="$ac_compile"
21102 case "(($ac_try" in
21103   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21104   *) ac_try_echo=$ac_try;;
21105 esac
21106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21107   (eval "$ac_compile") 2>conftest.er1
21108   ac_status=$?
21109   grep -v '^ *+' conftest.er1 >conftest.err
21110   rm -f conftest.er1
21111   cat conftest.err >&5
21112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21113   (exit $ac_status); } && {
21114          test -z "$ac_c_werror_flag" ||
21115          test ! -s conftest.err
21116        } && test -s conftest.$ac_objext; then
21117   ac_hi=-1 ac_mid=-1
21118   while :; do
21119     cat >conftest.$ac_ext <<_ACEOF
21120 /* confdefs.h.  */
21121 _ACEOF
21122 cat confdefs.h >>conftest.$ac_ext
21123 cat >>conftest.$ac_ext <<_ACEOF
21124 /* end confdefs.h.  */
21125 $ac_includes_default
21126    typedef void * ac__type_sizeof_;
21127 int
21128 main ()
21129 {
21130 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
21131 test_array [0] = 0
21132
21133   ;
21134   return 0;
21135 }
21136 _ACEOF
21137 rm -f conftest.$ac_objext
21138 if { (ac_try="$ac_compile"
21139 case "(($ac_try" in
21140   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21141   *) ac_try_echo=$ac_try;;
21142 esac
21143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21144   (eval "$ac_compile") 2>conftest.er1
21145   ac_status=$?
21146   grep -v '^ *+' conftest.er1 >conftest.err
21147   rm -f conftest.er1
21148   cat conftest.err >&5
21149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21150   (exit $ac_status); } && {
21151          test -z "$ac_c_werror_flag" ||
21152          test ! -s conftest.err
21153        } && test -s conftest.$ac_objext; then
21154   ac_lo=$ac_mid; break
21155 else
21156   echo "$as_me: failed program was:" >&5
21157 sed 's/^/| /' conftest.$ac_ext >&5
21158
21159         ac_hi=`expr '(' $ac_mid ')' - 1`
21160                         if test $ac_mid -le $ac_hi; then
21161                           ac_lo= ac_hi=
21162                           break
21163                         fi
21164                         ac_mid=`expr 2 '*' $ac_mid`
21165 fi
21166
21167 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21168   done
21169 else
21170   echo "$as_me: failed program was:" >&5
21171 sed 's/^/| /' conftest.$ac_ext >&5
21172
21173         ac_lo= ac_hi=
21174 fi
21175
21176 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21177 fi
21178
21179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21180 # Binary search between lo and hi bounds.
21181 while test "x$ac_lo" != "x$ac_hi"; do
21182   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21183   cat >conftest.$ac_ext <<_ACEOF
21184 /* confdefs.h.  */
21185 _ACEOF
21186 cat confdefs.h >>conftest.$ac_ext
21187 cat >>conftest.$ac_ext <<_ACEOF
21188 /* end confdefs.h.  */
21189 $ac_includes_default
21190    typedef void * ac__type_sizeof_;
21191 int
21192 main ()
21193 {
21194 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21195 test_array [0] = 0
21196
21197   ;
21198   return 0;
21199 }
21200 _ACEOF
21201 rm -f conftest.$ac_objext
21202 if { (ac_try="$ac_compile"
21203 case "(($ac_try" in
21204   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21205   *) ac_try_echo=$ac_try;;
21206 esac
21207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21208   (eval "$ac_compile") 2>conftest.er1
21209   ac_status=$?
21210   grep -v '^ *+' conftest.er1 >conftest.err
21211   rm -f conftest.er1
21212   cat conftest.err >&5
21213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21214   (exit $ac_status); } && {
21215          test -z "$ac_c_werror_flag" ||
21216          test ! -s conftest.err
21217        } && test -s conftest.$ac_objext; then
21218   ac_hi=$ac_mid
21219 else
21220   echo "$as_me: failed program was:" >&5
21221 sed 's/^/| /' conftest.$ac_ext >&5
21222
21223         ac_lo=`expr '(' $ac_mid ')' + 1`
21224 fi
21225
21226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21227 done
21228 case $ac_lo in
21229 ?*) ac_cv_sizeof_void_p=$ac_lo;;
21230 '') if test "$ac_cv_type_void_p" = yes; then
21231      { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
21232 See \`config.log' for more details." >&5
21233 echo "$as_me: error: cannot compute sizeof (void *)
21234 See \`config.log' for more details." >&2;}
21235    { (exit 77); exit 77; }; }
21236    else
21237      ac_cv_sizeof_void_p=0
21238    fi ;;
21239 esac
21240 else
21241   cat >conftest.$ac_ext <<_ACEOF
21242 /* confdefs.h.  */
21243 _ACEOF
21244 cat confdefs.h >>conftest.$ac_ext
21245 cat >>conftest.$ac_ext <<_ACEOF
21246 /* end confdefs.h.  */
21247 $ac_includes_default
21248    typedef void * ac__type_sizeof_;
21249 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
21250 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
21251 #include <stdio.h>
21252 #include <stdlib.h>
21253 int
21254 main ()
21255 {
21256
21257   FILE *f = fopen ("conftest.val", "w");
21258   if (! f)
21259     return 1;
21260   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
21261     {
21262       long int i = longval ();
21263       if (i != ((long int) (sizeof (ac__type_sizeof_))))
21264         return 1;
21265       fprintf (f, "%ld\n", i);
21266     }
21267   else
21268     {
21269       unsigned long int i = ulongval ();
21270       if (i != ((long int) (sizeof (ac__type_sizeof_))))
21271         return 1;
21272       fprintf (f, "%lu\n", i);
21273     }
21274   return ferror (f) || fclose (f) != 0;
21275
21276   ;
21277   return 0;
21278 }
21279 _ACEOF
21280 rm -f conftest$ac_exeext
21281 if { (ac_try="$ac_link"
21282 case "(($ac_try" in
21283   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21284   *) ac_try_echo=$ac_try;;
21285 esac
21286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21287   (eval "$ac_link") 2>&5
21288   ac_status=$?
21289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21290   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21291   { (case "(($ac_try" in
21292   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21293   *) ac_try_echo=$ac_try;;
21294 esac
21295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21296   (eval "$ac_try") 2>&5
21297   ac_status=$?
21298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21299   (exit $ac_status); }; }; then
21300   ac_cv_sizeof_void_p=`cat conftest.val`
21301 else
21302   echo "$as_me: program exited with status $ac_status" >&5
21303 echo "$as_me: failed program was:" >&5
21304 sed 's/^/| /' conftest.$ac_ext >&5
21305
21306 ( exit $ac_status )
21307 if test "$ac_cv_type_void_p" = yes; then
21308      { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
21309 See \`config.log' for more details." >&5
21310 echo "$as_me: error: cannot compute sizeof (void *)
21311 See \`config.log' for more details." >&2;}
21312    { (exit 77); exit 77; }; }
21313    else
21314      ac_cv_sizeof_void_p=0
21315    fi
21316 fi
21317 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21318 fi
21319 rm -f conftest.val
21320 fi
21321 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
21322 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6; }
21323
21324
21325
21326 cat >>confdefs.h <<_ACEOF
21327 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
21328 _ACEOF
21329
21330
21331 { echo "$as_me:$LINENO: checking for int" >&5
21332 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
21333 if test "${ac_cv_type_int+set}" = set; then
21334   echo $ECHO_N "(cached) $ECHO_C" >&6
21335 else
21336   cat >conftest.$ac_ext <<_ACEOF
21337 /* confdefs.h.  */
21338 _ACEOF
21339 cat confdefs.h >>conftest.$ac_ext
21340 cat >>conftest.$ac_ext <<_ACEOF
21341 /* end confdefs.h.  */
21342 $ac_includes_default
21343 typedef int ac__type_new_;
21344 int
21345 main ()
21346 {
21347 if ((ac__type_new_ *) 0)
21348   return 0;
21349 if (sizeof (ac__type_new_))
21350   return 0;
21351   ;
21352   return 0;
21353 }
21354 _ACEOF
21355 rm -f conftest.$ac_objext
21356 if { (ac_try="$ac_compile"
21357 case "(($ac_try" in
21358   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21359   *) ac_try_echo=$ac_try;;
21360 esac
21361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21362   (eval "$ac_compile") 2>conftest.er1
21363   ac_status=$?
21364   grep -v '^ *+' conftest.er1 >conftest.err
21365   rm -f conftest.er1
21366   cat conftest.err >&5
21367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21368   (exit $ac_status); } && {
21369          test -z "$ac_c_werror_flag" ||
21370          test ! -s conftest.err
21371        } && test -s conftest.$ac_objext; then
21372   ac_cv_type_int=yes
21373 else
21374   echo "$as_me: failed program was:" >&5
21375 sed 's/^/| /' conftest.$ac_ext >&5
21376
21377         ac_cv_type_int=no
21378 fi
21379
21380 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21381 fi
21382 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
21383 echo "${ECHO_T}$ac_cv_type_int" >&6; }
21384
21385 # The cast to long int works around a bug in the HP C Compiler
21386 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21387 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21388 # This bug is HP SR number 8606223364.
21389 { echo "$as_me:$LINENO: checking size of int" >&5
21390 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
21391 if test "${ac_cv_sizeof_int+set}" = set; then
21392   echo $ECHO_N "(cached) $ECHO_C" >&6
21393 else
21394   if test "$cross_compiling" = yes; then
21395   # Depending upon the size, compute the lo and hi bounds.
21396 cat >conftest.$ac_ext <<_ACEOF
21397 /* confdefs.h.  */
21398 _ACEOF
21399 cat confdefs.h >>conftest.$ac_ext
21400 cat >>conftest.$ac_ext <<_ACEOF
21401 /* end confdefs.h.  */
21402 $ac_includes_default
21403    typedef int ac__type_sizeof_;
21404 int
21405 main ()
21406 {
21407 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
21408 test_array [0] = 0
21409
21410   ;
21411   return 0;
21412 }
21413 _ACEOF
21414 rm -f conftest.$ac_objext
21415 if { (ac_try="$ac_compile"
21416 case "(($ac_try" in
21417   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21418   *) ac_try_echo=$ac_try;;
21419 esac
21420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21421   (eval "$ac_compile") 2>conftest.er1
21422   ac_status=$?
21423   grep -v '^ *+' conftest.er1 >conftest.err
21424   rm -f conftest.er1
21425   cat conftest.err >&5
21426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21427   (exit $ac_status); } && {
21428          test -z "$ac_c_werror_flag" ||
21429          test ! -s conftest.err
21430        } && test -s conftest.$ac_objext; then
21431   ac_lo=0 ac_mid=0
21432   while :; do
21433     cat >conftest.$ac_ext <<_ACEOF
21434 /* confdefs.h.  */
21435 _ACEOF
21436 cat confdefs.h >>conftest.$ac_ext
21437 cat >>conftest.$ac_ext <<_ACEOF
21438 /* end confdefs.h.  */
21439 $ac_includes_default
21440    typedef int ac__type_sizeof_;
21441 int
21442 main ()
21443 {
21444 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21445 test_array [0] = 0
21446
21447   ;
21448   return 0;
21449 }
21450 _ACEOF
21451 rm -f conftest.$ac_objext
21452 if { (ac_try="$ac_compile"
21453 case "(($ac_try" in
21454   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21455   *) ac_try_echo=$ac_try;;
21456 esac
21457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21458   (eval "$ac_compile") 2>conftest.er1
21459   ac_status=$?
21460   grep -v '^ *+' conftest.er1 >conftest.err
21461   rm -f conftest.er1
21462   cat conftest.err >&5
21463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21464   (exit $ac_status); } && {
21465          test -z "$ac_c_werror_flag" ||
21466          test ! -s conftest.err
21467        } && test -s conftest.$ac_objext; then
21468   ac_hi=$ac_mid; break
21469 else
21470   echo "$as_me: failed program was:" >&5
21471 sed 's/^/| /' conftest.$ac_ext >&5
21472
21473         ac_lo=`expr $ac_mid + 1`
21474                         if test $ac_lo -le $ac_mid; then
21475                           ac_lo= ac_hi=
21476                           break
21477                         fi
21478                         ac_mid=`expr 2 '*' $ac_mid + 1`
21479 fi
21480
21481 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21482   done
21483 else
21484   echo "$as_me: failed program was:" >&5
21485 sed 's/^/| /' conftest.$ac_ext >&5
21486
21487         cat >conftest.$ac_ext <<_ACEOF
21488 /* confdefs.h.  */
21489 _ACEOF
21490 cat confdefs.h >>conftest.$ac_ext
21491 cat >>conftest.$ac_ext <<_ACEOF
21492 /* end confdefs.h.  */
21493 $ac_includes_default
21494    typedef int ac__type_sizeof_;
21495 int
21496 main ()
21497 {
21498 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
21499 test_array [0] = 0
21500
21501   ;
21502   return 0;
21503 }
21504 _ACEOF
21505 rm -f conftest.$ac_objext
21506 if { (ac_try="$ac_compile"
21507 case "(($ac_try" in
21508   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21509   *) ac_try_echo=$ac_try;;
21510 esac
21511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21512   (eval "$ac_compile") 2>conftest.er1
21513   ac_status=$?
21514   grep -v '^ *+' conftest.er1 >conftest.err
21515   rm -f conftest.er1
21516   cat conftest.err >&5
21517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21518   (exit $ac_status); } && {
21519          test -z "$ac_c_werror_flag" ||
21520          test ! -s conftest.err
21521        } && test -s conftest.$ac_objext; then
21522   ac_hi=-1 ac_mid=-1
21523   while :; do
21524     cat >conftest.$ac_ext <<_ACEOF
21525 /* confdefs.h.  */
21526 _ACEOF
21527 cat confdefs.h >>conftest.$ac_ext
21528 cat >>conftest.$ac_ext <<_ACEOF
21529 /* end confdefs.h.  */
21530 $ac_includes_default
21531    typedef int ac__type_sizeof_;
21532 int
21533 main ()
21534 {
21535 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
21536 test_array [0] = 0
21537
21538   ;
21539   return 0;
21540 }
21541 _ACEOF
21542 rm -f conftest.$ac_objext
21543 if { (ac_try="$ac_compile"
21544 case "(($ac_try" in
21545   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21546   *) ac_try_echo=$ac_try;;
21547 esac
21548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21549   (eval "$ac_compile") 2>conftest.er1
21550   ac_status=$?
21551   grep -v '^ *+' conftest.er1 >conftest.err
21552   rm -f conftest.er1
21553   cat conftest.err >&5
21554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21555   (exit $ac_status); } && {
21556          test -z "$ac_c_werror_flag" ||
21557          test ! -s conftest.err
21558        } && test -s conftest.$ac_objext; then
21559   ac_lo=$ac_mid; break
21560 else
21561   echo "$as_me: failed program was:" >&5
21562 sed 's/^/| /' conftest.$ac_ext >&5
21563
21564         ac_hi=`expr '(' $ac_mid ')' - 1`
21565                         if test $ac_mid -le $ac_hi; then
21566                           ac_lo= ac_hi=
21567                           break
21568                         fi
21569                         ac_mid=`expr 2 '*' $ac_mid`
21570 fi
21571
21572 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21573   done
21574 else
21575   echo "$as_me: failed program was:" >&5
21576 sed 's/^/| /' conftest.$ac_ext >&5
21577
21578         ac_lo= ac_hi=
21579 fi
21580
21581 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21582 fi
21583
21584 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21585 # Binary search between lo and hi bounds.
21586 while test "x$ac_lo" != "x$ac_hi"; do
21587   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21588   cat >conftest.$ac_ext <<_ACEOF
21589 /* confdefs.h.  */
21590 _ACEOF
21591 cat confdefs.h >>conftest.$ac_ext
21592 cat >>conftest.$ac_ext <<_ACEOF
21593 /* end confdefs.h.  */
21594 $ac_includes_default
21595    typedef int ac__type_sizeof_;
21596 int
21597 main ()
21598 {
21599 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21600 test_array [0] = 0
21601
21602   ;
21603   return 0;
21604 }
21605 _ACEOF
21606 rm -f conftest.$ac_objext
21607 if { (ac_try="$ac_compile"
21608 case "(($ac_try" in
21609   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21610   *) ac_try_echo=$ac_try;;
21611 esac
21612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21613   (eval "$ac_compile") 2>conftest.er1
21614   ac_status=$?
21615   grep -v '^ *+' conftest.er1 >conftest.err
21616   rm -f conftest.er1
21617   cat conftest.err >&5
21618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21619   (exit $ac_status); } && {
21620          test -z "$ac_c_werror_flag" ||
21621          test ! -s conftest.err
21622        } && test -s conftest.$ac_objext; then
21623   ac_hi=$ac_mid
21624 else
21625   echo "$as_me: failed program was:" >&5
21626 sed 's/^/| /' conftest.$ac_ext >&5
21627
21628         ac_lo=`expr '(' $ac_mid ')' + 1`
21629 fi
21630
21631 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21632 done
21633 case $ac_lo in
21634 ?*) ac_cv_sizeof_int=$ac_lo;;
21635 '') if test "$ac_cv_type_int" = yes; then
21636      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
21637 See \`config.log' for more details." >&5
21638 echo "$as_me: error: cannot compute sizeof (int)
21639 See \`config.log' for more details." >&2;}
21640    { (exit 77); exit 77; }; }
21641    else
21642      ac_cv_sizeof_int=0
21643    fi ;;
21644 esac
21645 else
21646   cat >conftest.$ac_ext <<_ACEOF
21647 /* confdefs.h.  */
21648 _ACEOF
21649 cat confdefs.h >>conftest.$ac_ext
21650 cat >>conftest.$ac_ext <<_ACEOF
21651 /* end confdefs.h.  */
21652 $ac_includes_default
21653    typedef int ac__type_sizeof_;
21654 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
21655 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
21656 #include <stdio.h>
21657 #include <stdlib.h>
21658 int
21659 main ()
21660 {
21661
21662   FILE *f = fopen ("conftest.val", "w");
21663   if (! f)
21664     return 1;
21665   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
21666     {
21667       long int i = longval ();
21668       if (i != ((long int) (sizeof (ac__type_sizeof_))))
21669         return 1;
21670       fprintf (f, "%ld\n", i);
21671     }
21672   else
21673     {
21674       unsigned long int i = ulongval ();
21675       if (i != ((long int) (sizeof (ac__type_sizeof_))))
21676         return 1;
21677       fprintf (f, "%lu\n", i);
21678     }
21679   return ferror (f) || fclose (f) != 0;
21680
21681   ;
21682   return 0;
21683 }
21684 _ACEOF
21685 rm -f conftest$ac_exeext
21686 if { (ac_try="$ac_link"
21687 case "(($ac_try" in
21688   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21689   *) ac_try_echo=$ac_try;;
21690 esac
21691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21692   (eval "$ac_link") 2>&5
21693   ac_status=$?
21694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21695   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21696   { (case "(($ac_try" in
21697   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21698   *) ac_try_echo=$ac_try;;
21699 esac
21700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21701   (eval "$ac_try") 2>&5
21702   ac_status=$?
21703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21704   (exit $ac_status); }; }; then
21705   ac_cv_sizeof_int=`cat conftest.val`
21706 else
21707   echo "$as_me: program exited with status $ac_status" >&5
21708 echo "$as_me: failed program was:" >&5
21709 sed 's/^/| /' conftest.$ac_ext >&5
21710
21711 ( exit $ac_status )
21712 if test "$ac_cv_type_int" = yes; then
21713      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
21714 See \`config.log' for more details." >&5
21715 echo "$as_me: error: cannot compute sizeof (int)
21716 See \`config.log' for more details." >&2;}
21717    { (exit 77); exit 77; }; }
21718    else
21719      ac_cv_sizeof_int=0
21720    fi
21721 fi
21722 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21723 fi
21724 rm -f conftest.val
21725 fi
21726 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
21727 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
21728
21729
21730
21731 cat >>confdefs.h <<_ACEOF
21732 #define SIZEOF_INT $ac_cv_sizeof_int
21733 _ACEOF
21734
21735
21736 { echo "$as_me:$LINENO: checking for long" >&5
21737 echo $ECHO_N "checking for long... $ECHO_C" >&6; }
21738 if test "${ac_cv_type_long+set}" = set; then
21739   echo $ECHO_N "(cached) $ECHO_C" >&6
21740 else
21741   cat >conftest.$ac_ext <<_ACEOF
21742 /* confdefs.h.  */
21743 _ACEOF
21744 cat confdefs.h >>conftest.$ac_ext
21745 cat >>conftest.$ac_ext <<_ACEOF
21746 /* end confdefs.h.  */
21747 $ac_includes_default
21748 typedef long ac__type_new_;
21749 int
21750 main ()
21751 {
21752 if ((ac__type_new_ *) 0)
21753   return 0;
21754 if (sizeof (ac__type_new_))
21755   return 0;
21756   ;
21757   return 0;
21758 }
21759 _ACEOF
21760 rm -f conftest.$ac_objext
21761 if { (ac_try="$ac_compile"
21762 case "(($ac_try" in
21763   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21764   *) ac_try_echo=$ac_try;;
21765 esac
21766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21767   (eval "$ac_compile") 2>conftest.er1
21768   ac_status=$?
21769   grep -v '^ *+' conftest.er1 >conftest.err
21770   rm -f conftest.er1
21771   cat conftest.err >&5
21772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21773   (exit $ac_status); } && {
21774          test -z "$ac_c_werror_flag" ||
21775          test ! -s conftest.err
21776        } && test -s conftest.$ac_objext; then
21777   ac_cv_type_long=yes
21778 else
21779   echo "$as_me: failed program was:" >&5
21780 sed 's/^/| /' conftest.$ac_ext >&5
21781
21782         ac_cv_type_long=no
21783 fi
21784
21785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21786 fi
21787 { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
21788 echo "${ECHO_T}$ac_cv_type_long" >&6; }
21789
21790 # The cast to long int works around a bug in the HP C Compiler
21791 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21792 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21793 # This bug is HP SR number 8606223364.
21794 { echo "$as_me:$LINENO: checking size of long" >&5
21795 echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
21796 if test "${ac_cv_sizeof_long+set}" = set; then
21797   echo $ECHO_N "(cached) $ECHO_C" >&6
21798 else
21799   if test "$cross_compiling" = yes; then
21800   # Depending upon the size, compute the lo and hi bounds.
21801 cat >conftest.$ac_ext <<_ACEOF
21802 /* confdefs.h.  */
21803 _ACEOF
21804 cat confdefs.h >>conftest.$ac_ext
21805 cat >>conftest.$ac_ext <<_ACEOF
21806 /* end confdefs.h.  */
21807 $ac_includes_default
21808    typedef long ac__type_sizeof_;
21809 int
21810 main ()
21811 {
21812 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
21813 test_array [0] = 0
21814
21815   ;
21816   return 0;
21817 }
21818 _ACEOF
21819 rm -f conftest.$ac_objext
21820 if { (ac_try="$ac_compile"
21821 case "(($ac_try" in
21822   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21823   *) ac_try_echo=$ac_try;;
21824 esac
21825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21826   (eval "$ac_compile") 2>conftest.er1
21827   ac_status=$?
21828   grep -v '^ *+' conftest.er1 >conftest.err
21829   rm -f conftest.er1
21830   cat conftest.err >&5
21831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21832   (exit $ac_status); } && {
21833          test -z "$ac_c_werror_flag" ||
21834          test ! -s conftest.err
21835        } && test -s conftest.$ac_objext; then
21836   ac_lo=0 ac_mid=0
21837   while :; do
21838     cat >conftest.$ac_ext <<_ACEOF
21839 /* confdefs.h.  */
21840 _ACEOF
21841 cat confdefs.h >>conftest.$ac_ext
21842 cat >>conftest.$ac_ext <<_ACEOF
21843 /* end confdefs.h.  */
21844 $ac_includes_default
21845    typedef long ac__type_sizeof_;
21846 int
21847 main ()
21848 {
21849 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21850 test_array [0] = 0
21851
21852   ;
21853   return 0;
21854 }
21855 _ACEOF
21856 rm -f conftest.$ac_objext
21857 if { (ac_try="$ac_compile"
21858 case "(($ac_try" in
21859   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21860   *) ac_try_echo=$ac_try;;
21861 esac
21862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21863   (eval "$ac_compile") 2>conftest.er1
21864   ac_status=$?
21865   grep -v '^ *+' conftest.er1 >conftest.err
21866   rm -f conftest.er1
21867   cat conftest.err >&5
21868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21869   (exit $ac_status); } && {
21870          test -z "$ac_c_werror_flag" ||
21871          test ! -s conftest.err
21872        } && test -s conftest.$ac_objext; then
21873   ac_hi=$ac_mid; break
21874 else
21875   echo "$as_me: failed program was:" >&5
21876 sed 's/^/| /' conftest.$ac_ext >&5
21877
21878         ac_lo=`expr $ac_mid + 1`
21879                         if test $ac_lo -le $ac_mid; then
21880                           ac_lo= ac_hi=
21881                           break
21882                         fi
21883                         ac_mid=`expr 2 '*' $ac_mid + 1`
21884 fi
21885
21886 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21887   done
21888 else
21889   echo "$as_me: failed program was:" >&5
21890 sed 's/^/| /' conftest.$ac_ext >&5
21891
21892         cat >conftest.$ac_ext <<_ACEOF
21893 /* confdefs.h.  */
21894 _ACEOF
21895 cat confdefs.h >>conftest.$ac_ext
21896 cat >>conftest.$ac_ext <<_ACEOF
21897 /* end confdefs.h.  */
21898 $ac_includes_default
21899    typedef long ac__type_sizeof_;
21900 int
21901 main ()
21902 {
21903 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
21904 test_array [0] = 0
21905
21906   ;
21907   return 0;
21908 }
21909 _ACEOF
21910 rm -f conftest.$ac_objext
21911 if { (ac_try="$ac_compile"
21912 case "(($ac_try" in
21913   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21914   *) ac_try_echo=$ac_try;;
21915 esac
21916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21917   (eval "$ac_compile") 2>conftest.er1
21918   ac_status=$?
21919   grep -v '^ *+' conftest.er1 >conftest.err
21920   rm -f conftest.er1
21921   cat conftest.err >&5
21922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21923   (exit $ac_status); } && {
21924          test -z "$ac_c_werror_flag" ||
21925          test ! -s conftest.err
21926        } && test -s conftest.$ac_objext; then
21927   ac_hi=-1 ac_mid=-1
21928   while :; do
21929     cat >conftest.$ac_ext <<_ACEOF
21930 /* confdefs.h.  */
21931 _ACEOF
21932 cat confdefs.h >>conftest.$ac_ext
21933 cat >>conftest.$ac_ext <<_ACEOF
21934 /* end confdefs.h.  */
21935 $ac_includes_default
21936    typedef long ac__type_sizeof_;
21937 int
21938 main ()
21939 {
21940 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
21941 test_array [0] = 0
21942
21943   ;
21944   return 0;
21945 }
21946 _ACEOF
21947 rm -f conftest.$ac_objext
21948 if { (ac_try="$ac_compile"
21949 case "(($ac_try" in
21950   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21951   *) ac_try_echo=$ac_try;;
21952 esac
21953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21954   (eval "$ac_compile") 2>conftest.er1
21955   ac_status=$?
21956   grep -v '^ *+' conftest.er1 >conftest.err
21957   rm -f conftest.er1
21958   cat conftest.err >&5
21959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21960   (exit $ac_status); } && {
21961          test -z "$ac_c_werror_flag" ||
21962          test ! -s conftest.err
21963        } && test -s conftest.$ac_objext; then
21964   ac_lo=$ac_mid; break
21965 else
21966   echo "$as_me: failed program was:" >&5
21967 sed 's/^/| /' conftest.$ac_ext >&5
21968
21969         ac_hi=`expr '(' $ac_mid ')' - 1`
21970                         if test $ac_mid -le $ac_hi; then
21971                           ac_lo= ac_hi=
21972                           break
21973                         fi
21974                         ac_mid=`expr 2 '*' $ac_mid`
21975 fi
21976
21977 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21978   done
21979 else
21980   echo "$as_me: failed program was:" >&5
21981 sed 's/^/| /' conftest.$ac_ext >&5
21982
21983         ac_lo= ac_hi=
21984 fi
21985
21986 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21987 fi
21988
21989 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21990 # Binary search between lo and hi bounds.
21991 while test "x$ac_lo" != "x$ac_hi"; do
21992   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21993   cat >conftest.$ac_ext <<_ACEOF
21994 /* confdefs.h.  */
21995 _ACEOF
21996 cat confdefs.h >>conftest.$ac_ext
21997 cat >>conftest.$ac_ext <<_ACEOF
21998 /* end confdefs.h.  */
21999 $ac_includes_default
22000    typedef long ac__type_sizeof_;
22001 int
22002 main ()
22003 {
22004 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22005 test_array [0] = 0
22006
22007   ;
22008   return 0;
22009 }
22010 _ACEOF
22011 rm -f conftest.$ac_objext
22012 if { (ac_try="$ac_compile"
22013 case "(($ac_try" in
22014   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22015   *) ac_try_echo=$ac_try;;
22016 esac
22017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22018   (eval "$ac_compile") 2>conftest.er1
22019   ac_status=$?
22020   grep -v '^ *+' conftest.er1 >conftest.err
22021   rm -f conftest.er1
22022   cat conftest.err >&5
22023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22024   (exit $ac_status); } && {
22025          test -z "$ac_c_werror_flag" ||
22026          test ! -s conftest.err
22027        } && test -s conftest.$ac_objext; then
22028   ac_hi=$ac_mid
22029 else
22030   echo "$as_me: failed program was:" >&5
22031 sed 's/^/| /' conftest.$ac_ext >&5
22032
22033         ac_lo=`expr '(' $ac_mid ')' + 1`
22034 fi
22035
22036 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22037 done
22038 case $ac_lo in
22039 ?*) ac_cv_sizeof_long=$ac_lo;;
22040 '') if test "$ac_cv_type_long" = yes; then
22041      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
22042 See \`config.log' for more details." >&5
22043 echo "$as_me: error: cannot compute sizeof (long)
22044 See \`config.log' for more details." >&2;}
22045    { (exit 77); exit 77; }; }
22046    else
22047      ac_cv_sizeof_long=0
22048    fi ;;
22049 esac
22050 else
22051   cat >conftest.$ac_ext <<_ACEOF
22052 /* confdefs.h.  */
22053 _ACEOF
22054 cat confdefs.h >>conftest.$ac_ext
22055 cat >>conftest.$ac_ext <<_ACEOF
22056 /* end confdefs.h.  */
22057 $ac_includes_default
22058    typedef long ac__type_sizeof_;
22059 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
22060 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
22061 #include <stdio.h>
22062 #include <stdlib.h>
22063 int
22064 main ()
22065 {
22066
22067   FILE *f = fopen ("conftest.val", "w");
22068   if (! f)
22069     return 1;
22070   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
22071     {
22072       long int i = longval ();
22073       if (i != ((long int) (sizeof (ac__type_sizeof_))))
22074         return 1;
22075       fprintf (f, "%ld\n", i);
22076     }
22077   else
22078     {
22079       unsigned long int i = ulongval ();
22080       if (i != ((long int) (sizeof (ac__type_sizeof_))))
22081         return 1;
22082       fprintf (f, "%lu\n", i);
22083     }
22084   return ferror (f) || fclose (f) != 0;
22085
22086   ;
22087   return 0;
22088 }
22089 _ACEOF
22090 rm -f conftest$ac_exeext
22091 if { (ac_try="$ac_link"
22092 case "(($ac_try" in
22093   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22094   *) ac_try_echo=$ac_try;;
22095 esac
22096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22097   (eval "$ac_link") 2>&5
22098   ac_status=$?
22099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22100   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22101   { (case "(($ac_try" in
22102   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22103   *) ac_try_echo=$ac_try;;
22104 esac
22105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22106   (eval "$ac_try") 2>&5
22107   ac_status=$?
22108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22109   (exit $ac_status); }; }; then
22110   ac_cv_sizeof_long=`cat conftest.val`
22111 else
22112   echo "$as_me: program exited with status $ac_status" >&5
22113 echo "$as_me: failed program was:" >&5
22114 sed 's/^/| /' conftest.$ac_ext >&5
22115
22116 ( exit $ac_status )
22117 if test "$ac_cv_type_long" = yes; then
22118      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
22119 See \`config.log' for more details." >&5
22120 echo "$as_me: error: cannot compute sizeof (long)
22121 See \`config.log' for more details." >&2;}
22122    { (exit 77); exit 77; }; }
22123    else
22124      ac_cv_sizeof_long=0
22125    fi
22126 fi
22127 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22128 fi
22129 rm -f conftest.val
22130 fi
22131 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
22132 echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
22133
22134
22135
22136 cat >>confdefs.h <<_ACEOF
22137 #define SIZEOF_LONG $ac_cv_sizeof_long
22138 _ACEOF
22139
22140
22141 { echo "$as_me:$LINENO: checking for size_t" >&5
22142 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
22143 if test "${ac_cv_type_size_t+set}" = set; then
22144   echo $ECHO_N "(cached) $ECHO_C" >&6
22145 else
22146   cat >conftest.$ac_ext <<_ACEOF
22147 /* confdefs.h.  */
22148 _ACEOF
22149 cat confdefs.h >>conftest.$ac_ext
22150 cat >>conftest.$ac_ext <<_ACEOF
22151 /* end confdefs.h.  */
22152 $ac_includes_default
22153 typedef size_t ac__type_new_;
22154 int
22155 main ()
22156 {
22157 if ((ac__type_new_ *) 0)
22158   return 0;
22159 if (sizeof (ac__type_new_))
22160   return 0;
22161   ;
22162   return 0;
22163 }
22164 _ACEOF
22165 rm -f conftest.$ac_objext
22166 if { (ac_try="$ac_compile"
22167 case "(($ac_try" in
22168   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22169   *) ac_try_echo=$ac_try;;
22170 esac
22171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22172   (eval "$ac_compile") 2>conftest.er1
22173   ac_status=$?
22174   grep -v '^ *+' conftest.er1 >conftest.err
22175   rm -f conftest.er1
22176   cat conftest.err >&5
22177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22178   (exit $ac_status); } && {
22179          test -z "$ac_c_werror_flag" ||
22180          test ! -s conftest.err
22181        } && test -s conftest.$ac_objext; then
22182   ac_cv_type_size_t=yes
22183 else
22184   echo "$as_me: failed program was:" >&5
22185 sed 's/^/| /' conftest.$ac_ext >&5
22186
22187         ac_cv_type_size_t=no
22188 fi
22189
22190 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22191 fi
22192 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
22193 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
22194
22195 # The cast to long int works around a bug in the HP C Compiler
22196 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22197 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22198 # This bug is HP SR number 8606223364.
22199 { echo "$as_me:$LINENO: checking size of size_t" >&5
22200 echo $ECHO_N "checking size of size_t... $ECHO_C" >&6; }
22201 if test "${ac_cv_sizeof_size_t+set}" = set; then
22202   echo $ECHO_N "(cached) $ECHO_C" >&6
22203 else
22204   if test "$cross_compiling" = yes; then
22205   # Depending upon the size, compute the lo and hi bounds.
22206 cat >conftest.$ac_ext <<_ACEOF
22207 /* confdefs.h.  */
22208 _ACEOF
22209 cat confdefs.h >>conftest.$ac_ext
22210 cat >>conftest.$ac_ext <<_ACEOF
22211 /* end confdefs.h.  */
22212 $ac_includes_default
22213    typedef size_t ac__type_sizeof_;
22214 int
22215 main ()
22216 {
22217 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
22218 test_array [0] = 0
22219
22220   ;
22221   return 0;
22222 }
22223 _ACEOF
22224 rm -f conftest.$ac_objext
22225 if { (ac_try="$ac_compile"
22226 case "(($ac_try" in
22227   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22228   *) ac_try_echo=$ac_try;;
22229 esac
22230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22231   (eval "$ac_compile") 2>conftest.er1
22232   ac_status=$?
22233   grep -v '^ *+' conftest.er1 >conftest.err
22234   rm -f conftest.er1
22235   cat conftest.err >&5
22236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22237   (exit $ac_status); } && {
22238          test -z "$ac_c_werror_flag" ||
22239          test ! -s conftest.err
22240        } && test -s conftest.$ac_objext; then
22241   ac_lo=0 ac_mid=0
22242   while :; do
22243     cat >conftest.$ac_ext <<_ACEOF
22244 /* confdefs.h.  */
22245 _ACEOF
22246 cat confdefs.h >>conftest.$ac_ext
22247 cat >>conftest.$ac_ext <<_ACEOF
22248 /* end confdefs.h.  */
22249 $ac_includes_default
22250    typedef size_t ac__type_sizeof_;
22251 int
22252 main ()
22253 {
22254 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22255 test_array [0] = 0
22256
22257   ;
22258   return 0;
22259 }
22260 _ACEOF
22261 rm -f conftest.$ac_objext
22262 if { (ac_try="$ac_compile"
22263 case "(($ac_try" in
22264   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22265   *) ac_try_echo=$ac_try;;
22266 esac
22267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22268   (eval "$ac_compile") 2>conftest.er1
22269   ac_status=$?
22270   grep -v '^ *+' conftest.er1 >conftest.err
22271   rm -f conftest.er1
22272   cat conftest.err >&5
22273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22274   (exit $ac_status); } && {
22275          test -z "$ac_c_werror_flag" ||
22276          test ! -s conftest.err
22277        } && test -s conftest.$ac_objext; then
22278   ac_hi=$ac_mid; break
22279 else
22280   echo "$as_me: failed program was:" >&5
22281 sed 's/^/| /' conftest.$ac_ext >&5
22282
22283         ac_lo=`expr $ac_mid + 1`
22284                         if test $ac_lo -le $ac_mid; then
22285                           ac_lo= ac_hi=
22286                           break
22287                         fi
22288                         ac_mid=`expr 2 '*' $ac_mid + 1`
22289 fi
22290
22291 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22292   done
22293 else
22294   echo "$as_me: failed program was:" >&5
22295 sed 's/^/| /' conftest.$ac_ext >&5
22296
22297         cat >conftest.$ac_ext <<_ACEOF
22298 /* confdefs.h.  */
22299 _ACEOF
22300 cat confdefs.h >>conftest.$ac_ext
22301 cat >>conftest.$ac_ext <<_ACEOF
22302 /* end confdefs.h.  */
22303 $ac_includes_default
22304    typedef size_t ac__type_sizeof_;
22305 int
22306 main ()
22307 {
22308 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
22309 test_array [0] = 0
22310
22311   ;
22312   return 0;
22313 }
22314 _ACEOF
22315 rm -f conftest.$ac_objext
22316 if { (ac_try="$ac_compile"
22317 case "(($ac_try" in
22318   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22319   *) ac_try_echo=$ac_try;;
22320 esac
22321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22322   (eval "$ac_compile") 2>conftest.er1
22323   ac_status=$?
22324   grep -v '^ *+' conftest.er1 >conftest.err
22325   rm -f conftest.er1
22326   cat conftest.err >&5
22327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22328   (exit $ac_status); } && {
22329          test -z "$ac_c_werror_flag" ||
22330          test ! -s conftest.err
22331        } && test -s conftest.$ac_objext; then
22332   ac_hi=-1 ac_mid=-1
22333   while :; do
22334     cat >conftest.$ac_ext <<_ACEOF
22335 /* confdefs.h.  */
22336 _ACEOF
22337 cat confdefs.h >>conftest.$ac_ext
22338 cat >>conftest.$ac_ext <<_ACEOF
22339 /* end confdefs.h.  */
22340 $ac_includes_default
22341    typedef size_t ac__type_sizeof_;
22342 int
22343 main ()
22344 {
22345 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
22346 test_array [0] = 0
22347
22348   ;
22349   return 0;
22350 }
22351 _ACEOF
22352 rm -f conftest.$ac_objext
22353 if { (ac_try="$ac_compile"
22354 case "(($ac_try" in
22355   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22356   *) ac_try_echo=$ac_try;;
22357 esac
22358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22359   (eval "$ac_compile") 2>conftest.er1
22360   ac_status=$?
22361   grep -v '^ *+' conftest.er1 >conftest.err
22362   rm -f conftest.er1
22363   cat conftest.err >&5
22364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22365   (exit $ac_status); } && {
22366          test -z "$ac_c_werror_flag" ||
22367          test ! -s conftest.err
22368        } && test -s conftest.$ac_objext; then
22369   ac_lo=$ac_mid; break
22370 else
22371   echo "$as_me: failed program was:" >&5
22372 sed 's/^/| /' conftest.$ac_ext >&5
22373
22374         ac_hi=`expr '(' $ac_mid ')' - 1`
22375                         if test $ac_mid -le $ac_hi; then
22376                           ac_lo= ac_hi=
22377                           break
22378                         fi
22379                         ac_mid=`expr 2 '*' $ac_mid`
22380 fi
22381
22382 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22383   done
22384 else
22385   echo "$as_me: failed program was:" >&5
22386 sed 's/^/| /' conftest.$ac_ext >&5
22387
22388         ac_lo= ac_hi=
22389 fi
22390
22391 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22392 fi
22393
22394 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22395 # Binary search between lo and hi bounds.
22396 while test "x$ac_lo" != "x$ac_hi"; do
22397   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22398   cat >conftest.$ac_ext <<_ACEOF
22399 /* confdefs.h.  */
22400 _ACEOF
22401 cat confdefs.h >>conftest.$ac_ext
22402 cat >>conftest.$ac_ext <<_ACEOF
22403 /* end confdefs.h.  */
22404 $ac_includes_default
22405    typedef size_t ac__type_sizeof_;
22406 int
22407 main ()
22408 {
22409 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22410 test_array [0] = 0
22411
22412   ;
22413   return 0;
22414 }
22415 _ACEOF
22416 rm -f conftest.$ac_objext
22417 if { (ac_try="$ac_compile"
22418 case "(($ac_try" in
22419   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22420   *) ac_try_echo=$ac_try;;
22421 esac
22422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22423   (eval "$ac_compile") 2>conftest.er1
22424   ac_status=$?
22425   grep -v '^ *+' conftest.er1 >conftest.err
22426   rm -f conftest.er1
22427   cat conftest.err >&5
22428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22429   (exit $ac_status); } && {
22430          test -z "$ac_c_werror_flag" ||
22431          test ! -s conftest.err
22432        } && test -s conftest.$ac_objext; then
22433   ac_hi=$ac_mid
22434 else
22435   echo "$as_me: failed program was:" >&5
22436 sed 's/^/| /' conftest.$ac_ext >&5
22437
22438         ac_lo=`expr '(' $ac_mid ')' + 1`
22439 fi
22440
22441 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22442 done
22443 case $ac_lo in
22444 ?*) ac_cv_sizeof_size_t=$ac_lo;;
22445 '') if test "$ac_cv_type_size_t" = yes; then
22446      { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
22447 See \`config.log' for more details." >&5
22448 echo "$as_me: error: cannot compute sizeof (size_t)
22449 See \`config.log' for more details." >&2;}
22450    { (exit 77); exit 77; }; }
22451    else
22452      ac_cv_sizeof_size_t=0
22453    fi ;;
22454 esac
22455 else
22456   cat >conftest.$ac_ext <<_ACEOF
22457 /* confdefs.h.  */
22458 _ACEOF
22459 cat confdefs.h >>conftest.$ac_ext
22460 cat >>conftest.$ac_ext <<_ACEOF
22461 /* end confdefs.h.  */
22462 $ac_includes_default
22463    typedef size_t ac__type_sizeof_;
22464 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
22465 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
22466 #include <stdio.h>
22467 #include <stdlib.h>
22468 int
22469 main ()
22470 {
22471
22472   FILE *f = fopen ("conftest.val", "w");
22473   if (! f)
22474     return 1;
22475   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
22476     {
22477       long int i = longval ();
22478       if (i != ((long int) (sizeof (ac__type_sizeof_))))
22479         return 1;
22480       fprintf (f, "%ld\n", i);
22481     }
22482   else
22483     {
22484       unsigned long int i = ulongval ();
22485       if (i != ((long int) (sizeof (ac__type_sizeof_))))
22486         return 1;
22487       fprintf (f, "%lu\n", i);
22488     }
22489   return ferror (f) || fclose (f) != 0;
22490
22491   ;
22492   return 0;
22493 }
22494 _ACEOF
22495 rm -f conftest$ac_exeext
22496 if { (ac_try="$ac_link"
22497 case "(($ac_try" in
22498   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22499   *) ac_try_echo=$ac_try;;
22500 esac
22501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22502   (eval "$ac_link") 2>&5
22503   ac_status=$?
22504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22505   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22506   { (case "(($ac_try" in
22507   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22508   *) ac_try_echo=$ac_try;;
22509 esac
22510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22511   (eval "$ac_try") 2>&5
22512   ac_status=$?
22513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22514   (exit $ac_status); }; }; then
22515   ac_cv_sizeof_size_t=`cat conftest.val`
22516 else
22517   echo "$as_me: program exited with status $ac_status" >&5
22518 echo "$as_me: failed program was:" >&5
22519 sed 's/^/| /' conftest.$ac_ext >&5
22520
22521 ( exit $ac_status )
22522 if test "$ac_cv_type_size_t" = yes; then
22523      { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
22524 See \`config.log' for more details." >&5
22525 echo "$as_me: error: cannot compute sizeof (size_t)
22526 See \`config.log' for more details." >&2;}
22527    { (exit 77); exit 77; }; }
22528    else
22529      ac_cv_sizeof_size_t=0
22530    fi
22531 fi
22532 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22533 fi
22534 rm -f conftest.val
22535 fi
22536 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
22537 echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6; }
22538
22539
22540
22541 cat >>confdefs.h <<_ACEOF
22542 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
22543 _ACEOF
22544
22545
22546
22547 case "${host}" in
22548     arm-*-linux* )
22549         { echo "$as_me:$LINENO: checking for long long" >&5
22550 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
22551 if test "${ac_cv_type_long_long+set}" = set; then
22552   echo $ECHO_N "(cached) $ECHO_C" >&6
22553 else
22554   cat >conftest.$ac_ext <<_ACEOF
22555 /* confdefs.h.  */
22556 _ACEOF
22557 cat confdefs.h >>conftest.$ac_ext
22558 cat >>conftest.$ac_ext <<_ACEOF
22559 /* end confdefs.h.  */
22560 $ac_includes_default
22561 typedef long long ac__type_new_;
22562 int
22563 main ()
22564 {
22565 if ((ac__type_new_ *) 0)
22566   return 0;
22567 if (sizeof (ac__type_new_))
22568   return 0;
22569   ;
22570   return 0;
22571 }
22572 _ACEOF
22573 rm -f conftest.$ac_objext
22574 if { (ac_try="$ac_compile"
22575 case "(($ac_try" in
22576   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22577   *) ac_try_echo=$ac_try;;
22578 esac
22579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22580   (eval "$ac_compile") 2>conftest.er1
22581   ac_status=$?
22582   grep -v '^ *+' conftest.er1 >conftest.err
22583   rm -f conftest.er1
22584   cat conftest.err >&5
22585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22586   (exit $ac_status); } && {
22587          test -z "$ac_c_werror_flag" ||
22588          test ! -s conftest.err
22589        } && test -s conftest.$ac_objext; then
22590   ac_cv_type_long_long=yes
22591 else
22592   echo "$as_me: failed program was:" >&5
22593 sed 's/^/| /' conftest.$ac_ext >&5
22594
22595         ac_cv_type_long_long=no
22596 fi
22597
22598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22599 fi
22600 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
22601 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
22602
22603 # The cast to long int works around a bug in the HP C Compiler
22604 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22605 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22606 # This bug is HP SR number 8606223364.
22607 { echo "$as_me:$LINENO: checking size of long long" >&5
22608 echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
22609 if test "${ac_cv_sizeof_long_long+set}" = set; then
22610   echo $ECHO_N "(cached) $ECHO_C" >&6
22611 else
22612   if test "$cross_compiling" = yes; then
22613   # Depending upon the size, compute the lo and hi bounds.
22614 cat >conftest.$ac_ext <<_ACEOF
22615 /* confdefs.h.  */
22616 _ACEOF
22617 cat confdefs.h >>conftest.$ac_ext
22618 cat >>conftest.$ac_ext <<_ACEOF
22619 /* end confdefs.h.  */
22620 $ac_includes_default
22621    typedef long long ac__type_sizeof_;
22622 int
22623 main ()
22624 {
22625 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
22626 test_array [0] = 0
22627
22628   ;
22629   return 0;
22630 }
22631 _ACEOF
22632 rm -f conftest.$ac_objext
22633 if { (ac_try="$ac_compile"
22634 case "(($ac_try" in
22635   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22636   *) ac_try_echo=$ac_try;;
22637 esac
22638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22639   (eval "$ac_compile") 2>conftest.er1
22640   ac_status=$?
22641   grep -v '^ *+' conftest.er1 >conftest.err
22642   rm -f conftest.er1
22643   cat conftest.err >&5
22644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22645   (exit $ac_status); } && {
22646          test -z "$ac_c_werror_flag" ||
22647          test ! -s conftest.err
22648        } && test -s conftest.$ac_objext; then
22649   ac_lo=0 ac_mid=0
22650   while :; do
22651     cat >conftest.$ac_ext <<_ACEOF
22652 /* confdefs.h.  */
22653 _ACEOF
22654 cat confdefs.h >>conftest.$ac_ext
22655 cat >>conftest.$ac_ext <<_ACEOF
22656 /* end confdefs.h.  */
22657 $ac_includes_default
22658    typedef long long ac__type_sizeof_;
22659 int
22660 main ()
22661 {
22662 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22663 test_array [0] = 0
22664
22665   ;
22666   return 0;
22667 }
22668 _ACEOF
22669 rm -f conftest.$ac_objext
22670 if { (ac_try="$ac_compile"
22671 case "(($ac_try" in
22672   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22673   *) ac_try_echo=$ac_try;;
22674 esac
22675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22676   (eval "$ac_compile") 2>conftest.er1
22677   ac_status=$?
22678   grep -v '^ *+' conftest.er1 >conftest.err
22679   rm -f conftest.er1
22680   cat conftest.err >&5
22681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22682   (exit $ac_status); } && {
22683          test -z "$ac_c_werror_flag" ||
22684          test ! -s conftest.err
22685        } && test -s conftest.$ac_objext; then
22686   ac_hi=$ac_mid; break
22687 else
22688   echo "$as_me: failed program was:" >&5
22689 sed 's/^/| /' conftest.$ac_ext >&5
22690
22691         ac_lo=`expr $ac_mid + 1`
22692                         if test $ac_lo -le $ac_mid; then
22693                           ac_lo= ac_hi=
22694                           break
22695                         fi
22696                         ac_mid=`expr 2 '*' $ac_mid + 1`
22697 fi
22698
22699 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22700   done
22701 else
22702   echo "$as_me: failed program was:" >&5
22703 sed 's/^/| /' conftest.$ac_ext >&5
22704
22705         cat >conftest.$ac_ext <<_ACEOF
22706 /* confdefs.h.  */
22707 _ACEOF
22708 cat confdefs.h >>conftest.$ac_ext
22709 cat >>conftest.$ac_ext <<_ACEOF
22710 /* end confdefs.h.  */
22711 $ac_includes_default
22712    typedef long long ac__type_sizeof_;
22713 int
22714 main ()
22715 {
22716 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
22717 test_array [0] = 0
22718
22719   ;
22720   return 0;
22721 }
22722 _ACEOF
22723 rm -f conftest.$ac_objext
22724 if { (ac_try="$ac_compile"
22725 case "(($ac_try" in
22726   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22727   *) ac_try_echo=$ac_try;;
22728 esac
22729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22730   (eval "$ac_compile") 2>conftest.er1
22731   ac_status=$?
22732   grep -v '^ *+' conftest.er1 >conftest.err
22733   rm -f conftest.er1
22734   cat conftest.err >&5
22735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22736   (exit $ac_status); } && {
22737          test -z "$ac_c_werror_flag" ||
22738          test ! -s conftest.err
22739        } && test -s conftest.$ac_objext; then
22740   ac_hi=-1 ac_mid=-1
22741   while :; do
22742     cat >conftest.$ac_ext <<_ACEOF
22743 /* confdefs.h.  */
22744 _ACEOF
22745 cat confdefs.h >>conftest.$ac_ext
22746 cat >>conftest.$ac_ext <<_ACEOF
22747 /* end confdefs.h.  */
22748 $ac_includes_default
22749    typedef long long ac__type_sizeof_;
22750 int
22751 main ()
22752 {
22753 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
22754 test_array [0] = 0
22755
22756   ;
22757   return 0;
22758 }
22759 _ACEOF
22760 rm -f conftest.$ac_objext
22761 if { (ac_try="$ac_compile"
22762 case "(($ac_try" in
22763   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22764   *) ac_try_echo=$ac_try;;
22765 esac
22766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22767   (eval "$ac_compile") 2>conftest.er1
22768   ac_status=$?
22769   grep -v '^ *+' conftest.er1 >conftest.err
22770   rm -f conftest.er1
22771   cat conftest.err >&5
22772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22773   (exit $ac_status); } && {
22774          test -z "$ac_c_werror_flag" ||
22775          test ! -s conftest.err
22776        } && test -s conftest.$ac_objext; then
22777   ac_lo=$ac_mid; break
22778 else
22779   echo "$as_me: failed program was:" >&5
22780 sed 's/^/| /' conftest.$ac_ext >&5
22781
22782         ac_hi=`expr '(' $ac_mid ')' - 1`
22783                         if test $ac_mid -le $ac_hi; then
22784                           ac_lo= ac_hi=
22785                           break
22786                         fi
22787                         ac_mid=`expr 2 '*' $ac_mid`
22788 fi
22789
22790 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22791   done
22792 else
22793   echo "$as_me: failed program was:" >&5
22794 sed 's/^/| /' conftest.$ac_ext >&5
22795
22796         ac_lo= ac_hi=
22797 fi
22798
22799 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22800 fi
22801
22802 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22803 # Binary search between lo and hi bounds.
22804 while test "x$ac_lo" != "x$ac_hi"; do
22805   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22806   cat >conftest.$ac_ext <<_ACEOF
22807 /* confdefs.h.  */
22808 _ACEOF
22809 cat confdefs.h >>conftest.$ac_ext
22810 cat >>conftest.$ac_ext <<_ACEOF
22811 /* end confdefs.h.  */
22812 $ac_includes_default
22813    typedef long long ac__type_sizeof_;
22814 int
22815 main ()
22816 {
22817 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22818 test_array [0] = 0
22819
22820   ;
22821   return 0;
22822 }
22823 _ACEOF
22824 rm -f conftest.$ac_objext
22825 if { (ac_try="$ac_compile"
22826 case "(($ac_try" in
22827   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22828   *) ac_try_echo=$ac_try;;
22829 esac
22830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22831   (eval "$ac_compile") 2>conftest.er1
22832   ac_status=$?
22833   grep -v '^ *+' conftest.er1 >conftest.err
22834   rm -f conftest.er1
22835   cat conftest.err >&5
22836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22837   (exit $ac_status); } && {
22838          test -z "$ac_c_werror_flag" ||
22839          test ! -s conftest.err
22840        } && test -s conftest.$ac_objext; then
22841   ac_hi=$ac_mid
22842 else
22843   echo "$as_me: failed program was:" >&5
22844 sed 's/^/| /' conftest.$ac_ext >&5
22845
22846         ac_lo=`expr '(' $ac_mid ')' + 1`
22847 fi
22848
22849 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22850 done
22851 case $ac_lo in
22852 ?*) ac_cv_sizeof_long_long=$ac_lo;;
22853 '') if test "$ac_cv_type_long_long" = yes; then
22854      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
22855 See \`config.log' for more details." >&5
22856 echo "$as_me: error: cannot compute sizeof (long long)
22857 See \`config.log' for more details." >&2;}
22858    { (exit 77); exit 77; }; }
22859    else
22860      ac_cv_sizeof_long_long=0
22861    fi ;;
22862 esac
22863 else
22864   cat >conftest.$ac_ext <<_ACEOF
22865 /* confdefs.h.  */
22866 _ACEOF
22867 cat confdefs.h >>conftest.$ac_ext
22868 cat >>conftest.$ac_ext <<_ACEOF
22869 /* end confdefs.h.  */
22870 $ac_includes_default
22871    typedef long long ac__type_sizeof_;
22872 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
22873 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
22874 #include <stdio.h>
22875 #include <stdlib.h>
22876 int
22877 main ()
22878 {
22879
22880   FILE *f = fopen ("conftest.val", "w");
22881   if (! f)
22882     return 1;
22883   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
22884     {
22885       long int i = longval ();
22886       if (i != ((long int) (sizeof (ac__type_sizeof_))))
22887         return 1;
22888       fprintf (f, "%ld\n", i);
22889     }
22890   else
22891     {
22892       unsigned long int i = ulongval ();
22893       if (i != ((long int) (sizeof (ac__type_sizeof_))))
22894         return 1;
22895       fprintf (f, "%lu\n", i);
22896     }
22897   return ferror (f) || fclose (f) != 0;
22898
22899   ;
22900   return 0;
22901 }
22902 _ACEOF
22903 rm -f conftest$ac_exeext
22904 if { (ac_try="$ac_link"
22905 case "(($ac_try" in
22906   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22907   *) ac_try_echo=$ac_try;;
22908 esac
22909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22910   (eval "$ac_link") 2>&5
22911   ac_status=$?
22912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22913   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22914   { (case "(($ac_try" in
22915   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22916   *) ac_try_echo=$ac_try;;
22917 esac
22918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22919   (eval "$ac_try") 2>&5
22920   ac_status=$?
22921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22922   (exit $ac_status); }; }; then
22923   ac_cv_sizeof_long_long=`cat conftest.val`
22924 else
22925   echo "$as_me: program exited with status $ac_status" >&5
22926 echo "$as_me: failed program was:" >&5
22927 sed 's/^/| /' conftest.$ac_ext >&5
22928
22929 ( exit $ac_status )
22930 if test "$ac_cv_type_long_long" = yes; then
22931      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
22932 See \`config.log' for more details." >&5
22933 echo "$as_me: error: cannot compute sizeof (long long)
22934 See \`config.log' for more details." >&2;}
22935    { (exit 77); exit 77; }; }
22936    else
22937      ac_cv_sizeof_long_long=0
22938    fi
22939 fi
22940 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22941 fi
22942 rm -f conftest.val
22943 fi
22944 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
22945 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
22946
22947
22948
22949 cat >>confdefs.h <<_ACEOF
22950 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
22951 _ACEOF
22952
22953
22954     ;;
22955     *-hp-hpux* )
22956         { echo "$as_me:$LINENO: checking for long long" >&5
22957 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
22958 if test "${ac_cv_type_long_long+set}" = set; then
22959   echo $ECHO_N "(cached) $ECHO_C" >&6
22960 else
22961   cat >conftest.$ac_ext <<_ACEOF
22962 /* confdefs.h.  */
22963 _ACEOF
22964 cat confdefs.h >>conftest.$ac_ext
22965 cat >>conftest.$ac_ext <<_ACEOF
22966 /* end confdefs.h.  */
22967 $ac_includes_default
22968 typedef long long ac__type_new_;
22969 int
22970 main ()
22971 {
22972 if ((ac__type_new_ *) 0)
22973   return 0;
22974 if (sizeof (ac__type_new_))
22975   return 0;
22976   ;
22977   return 0;
22978 }
22979 _ACEOF
22980 rm -f conftest.$ac_objext
22981 if { (ac_try="$ac_compile"
22982 case "(($ac_try" in
22983   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22984   *) ac_try_echo=$ac_try;;
22985 esac
22986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22987   (eval "$ac_compile") 2>conftest.er1
22988   ac_status=$?
22989   grep -v '^ *+' conftest.er1 >conftest.err
22990   rm -f conftest.er1
22991   cat conftest.err >&5
22992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22993   (exit $ac_status); } && {
22994          test -z "$ac_c_werror_flag" ||
22995          test ! -s conftest.err
22996        } && test -s conftest.$ac_objext; then
22997   ac_cv_type_long_long=yes
22998 else
22999   echo "$as_me: failed program was:" >&5
23000 sed 's/^/| /' conftest.$ac_ext >&5
23001
23002         ac_cv_type_long_long=no
23003 fi
23004
23005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23006 fi
23007 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
23008 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
23009
23010 # The cast to long int works around a bug in the HP C Compiler
23011 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23012 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23013 # This bug is HP SR number 8606223364.
23014 { echo "$as_me:$LINENO: checking size of long long" >&5
23015 echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
23016 if test "${ac_cv_sizeof_long_long+set}" = set; then
23017   echo $ECHO_N "(cached) $ECHO_C" >&6
23018 else
23019   if test "$cross_compiling" = yes; then
23020   # Depending upon the size, compute the lo and hi bounds.
23021 cat >conftest.$ac_ext <<_ACEOF
23022 /* confdefs.h.  */
23023 _ACEOF
23024 cat confdefs.h >>conftest.$ac_ext
23025 cat >>conftest.$ac_ext <<_ACEOF
23026 /* end confdefs.h.  */
23027 $ac_includes_default
23028    typedef long long ac__type_sizeof_;
23029 int
23030 main ()
23031 {
23032 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
23033 test_array [0] = 0
23034
23035   ;
23036   return 0;
23037 }
23038 _ACEOF
23039 rm -f conftest.$ac_objext
23040 if { (ac_try="$ac_compile"
23041 case "(($ac_try" in
23042   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23043   *) ac_try_echo=$ac_try;;
23044 esac
23045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23046   (eval "$ac_compile") 2>conftest.er1
23047   ac_status=$?
23048   grep -v '^ *+' conftest.er1 >conftest.err
23049   rm -f conftest.er1
23050   cat conftest.err >&5
23051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23052   (exit $ac_status); } && {
23053          test -z "$ac_c_werror_flag" ||
23054          test ! -s conftest.err
23055        } && test -s conftest.$ac_objext; then
23056   ac_lo=0 ac_mid=0
23057   while :; do
23058     cat >conftest.$ac_ext <<_ACEOF
23059 /* confdefs.h.  */
23060 _ACEOF
23061 cat confdefs.h >>conftest.$ac_ext
23062 cat >>conftest.$ac_ext <<_ACEOF
23063 /* end confdefs.h.  */
23064 $ac_includes_default
23065    typedef long long ac__type_sizeof_;
23066 int
23067 main ()
23068 {
23069 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
23070 test_array [0] = 0
23071
23072   ;
23073   return 0;
23074 }
23075 _ACEOF
23076 rm -f conftest.$ac_objext
23077 if { (ac_try="$ac_compile"
23078 case "(($ac_try" in
23079   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23080   *) ac_try_echo=$ac_try;;
23081 esac
23082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23083   (eval "$ac_compile") 2>conftest.er1
23084   ac_status=$?
23085   grep -v '^ *+' conftest.er1 >conftest.err
23086   rm -f conftest.er1
23087   cat conftest.err >&5
23088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23089   (exit $ac_status); } && {
23090          test -z "$ac_c_werror_flag" ||
23091          test ! -s conftest.err
23092        } && test -s conftest.$ac_objext; then
23093   ac_hi=$ac_mid; break
23094 else
23095   echo "$as_me: failed program was:" >&5
23096 sed 's/^/| /' conftest.$ac_ext >&5
23097
23098         ac_lo=`expr $ac_mid + 1`
23099                         if test $ac_lo -le $ac_mid; then
23100                           ac_lo= ac_hi=
23101                           break
23102                         fi
23103                         ac_mid=`expr 2 '*' $ac_mid + 1`
23104 fi
23105
23106 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23107   done
23108 else
23109   echo "$as_me: failed program was:" >&5
23110 sed 's/^/| /' conftest.$ac_ext >&5
23111
23112         cat >conftest.$ac_ext <<_ACEOF
23113 /* confdefs.h.  */
23114 _ACEOF
23115 cat confdefs.h >>conftest.$ac_ext
23116 cat >>conftest.$ac_ext <<_ACEOF
23117 /* end confdefs.h.  */
23118 $ac_includes_default
23119    typedef long long ac__type_sizeof_;
23120 int
23121 main ()
23122 {
23123 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
23124 test_array [0] = 0
23125
23126   ;
23127   return 0;
23128 }
23129 _ACEOF
23130 rm -f conftest.$ac_objext
23131 if { (ac_try="$ac_compile"
23132 case "(($ac_try" in
23133   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23134   *) ac_try_echo=$ac_try;;
23135 esac
23136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23137   (eval "$ac_compile") 2>conftest.er1
23138   ac_status=$?
23139   grep -v '^ *+' conftest.er1 >conftest.err
23140   rm -f conftest.er1
23141   cat conftest.err >&5
23142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23143   (exit $ac_status); } && {
23144          test -z "$ac_c_werror_flag" ||
23145          test ! -s conftest.err
23146        } && test -s conftest.$ac_objext; then
23147   ac_hi=-1 ac_mid=-1
23148   while :; do
23149     cat >conftest.$ac_ext <<_ACEOF
23150 /* confdefs.h.  */
23151 _ACEOF
23152 cat confdefs.h >>conftest.$ac_ext
23153 cat >>conftest.$ac_ext <<_ACEOF
23154 /* end confdefs.h.  */
23155 $ac_includes_default
23156    typedef long long ac__type_sizeof_;
23157 int
23158 main ()
23159 {
23160 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
23161 test_array [0] = 0
23162
23163   ;
23164   return 0;
23165 }
23166 _ACEOF
23167 rm -f conftest.$ac_objext
23168 if { (ac_try="$ac_compile"
23169 case "(($ac_try" in
23170   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23171   *) ac_try_echo=$ac_try;;
23172 esac
23173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23174   (eval "$ac_compile") 2>conftest.er1
23175   ac_status=$?
23176   grep -v '^ *+' conftest.er1 >conftest.err
23177   rm -f conftest.er1
23178   cat conftest.err >&5
23179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23180   (exit $ac_status); } && {
23181          test -z "$ac_c_werror_flag" ||
23182          test ! -s conftest.err
23183        } && test -s conftest.$ac_objext; then
23184   ac_lo=$ac_mid; break
23185 else
23186   echo "$as_me: failed program was:" >&5
23187 sed 's/^/| /' conftest.$ac_ext >&5
23188
23189         ac_hi=`expr '(' $ac_mid ')' - 1`
23190                         if test $ac_mid -le $ac_hi; then
23191                           ac_lo= ac_hi=
23192                           break
23193                         fi
23194                         ac_mid=`expr 2 '*' $ac_mid`
23195 fi
23196
23197 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23198   done
23199 else
23200   echo "$as_me: failed program was:" >&5
23201 sed 's/^/| /' conftest.$ac_ext >&5
23202
23203         ac_lo= ac_hi=
23204 fi
23205
23206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23207 fi
23208
23209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23210 # Binary search between lo and hi bounds.
23211 while test "x$ac_lo" != "x$ac_hi"; do
23212   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23213   cat >conftest.$ac_ext <<_ACEOF
23214 /* confdefs.h.  */
23215 _ACEOF
23216 cat confdefs.h >>conftest.$ac_ext
23217 cat >>conftest.$ac_ext <<_ACEOF
23218 /* end confdefs.h.  */
23219 $ac_includes_default
23220    typedef long long ac__type_sizeof_;
23221 int
23222 main ()
23223 {
23224 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
23225 test_array [0] = 0
23226
23227   ;
23228   return 0;
23229 }
23230 _ACEOF
23231 rm -f conftest.$ac_objext
23232 if { (ac_try="$ac_compile"
23233 case "(($ac_try" in
23234   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23235   *) ac_try_echo=$ac_try;;
23236 esac
23237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23238   (eval "$ac_compile") 2>conftest.er1
23239   ac_status=$?
23240   grep -v '^ *+' conftest.er1 >conftest.err
23241   rm -f conftest.er1
23242   cat conftest.err >&5
23243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23244   (exit $ac_status); } && {
23245          test -z "$ac_c_werror_flag" ||
23246          test ! -s conftest.err
23247        } && test -s conftest.$ac_objext; then
23248   ac_hi=$ac_mid
23249 else
23250   echo "$as_me: failed program was:" >&5
23251 sed 's/^/| /' conftest.$ac_ext >&5
23252
23253         ac_lo=`expr '(' $ac_mid ')' + 1`
23254 fi
23255
23256 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23257 done
23258 case $ac_lo in
23259 ?*) ac_cv_sizeof_long_long=$ac_lo;;
23260 '') if test "$ac_cv_type_long_long" = yes; then
23261      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
23262 See \`config.log' for more details." >&5
23263 echo "$as_me: error: cannot compute sizeof (long long)
23264 See \`config.log' for more details." >&2;}
23265    { (exit 77); exit 77; }; }
23266    else
23267      ac_cv_sizeof_long_long=0
23268    fi ;;
23269 esac
23270 else
23271   cat >conftest.$ac_ext <<_ACEOF
23272 /* confdefs.h.  */
23273 _ACEOF
23274 cat confdefs.h >>conftest.$ac_ext
23275 cat >>conftest.$ac_ext <<_ACEOF
23276 /* end confdefs.h.  */
23277 $ac_includes_default
23278    typedef long long ac__type_sizeof_;
23279 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
23280 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
23281 #include <stdio.h>
23282 #include <stdlib.h>
23283 int
23284 main ()
23285 {
23286
23287   FILE *f = fopen ("conftest.val", "w");
23288   if (! f)
23289     return 1;
23290   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
23291     {
23292       long int i = longval ();
23293       if (i != ((long int) (sizeof (ac__type_sizeof_))))
23294         return 1;
23295       fprintf (f, "%ld\n", i);
23296     }
23297   else
23298     {
23299       unsigned long int i = ulongval ();
23300       if (i != ((long int) (sizeof (ac__type_sizeof_))))
23301         return 1;
23302       fprintf (f, "%lu\n", i);
23303     }
23304   return ferror (f) || fclose (f) != 0;
23305
23306   ;
23307   return 0;
23308 }
23309 _ACEOF
23310 rm -f conftest$ac_exeext
23311 if { (ac_try="$ac_link"
23312 case "(($ac_try" in
23313   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23314   *) ac_try_echo=$ac_try;;
23315 esac
23316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23317   (eval "$ac_link") 2>&5
23318   ac_status=$?
23319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23320   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23321   { (case "(($ac_try" in
23322   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23323   *) ac_try_echo=$ac_try;;
23324 esac
23325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23326   (eval "$ac_try") 2>&5
23327   ac_status=$?
23328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23329   (exit $ac_status); }; }; then
23330   ac_cv_sizeof_long_long=`cat conftest.val`
23331 else
23332   echo "$as_me: program exited with status $ac_status" >&5
23333 echo "$as_me: failed program was:" >&5
23334 sed 's/^/| /' conftest.$ac_ext >&5
23335
23336 ( exit $ac_status )
23337 if test "$ac_cv_type_long_long" = yes; then
23338      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
23339 See \`config.log' for more details." >&5
23340 echo "$as_me: error: cannot compute sizeof (long long)
23341 See \`config.log' for more details." >&2;}
23342    { (exit 77); exit 77; }; }
23343    else
23344      ac_cv_sizeof_long_long=0
23345    fi
23346 fi
23347 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23348 fi
23349 rm -f conftest.val
23350 fi
23351 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
23352 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
23353
23354
23355
23356 cat >>confdefs.h <<_ACEOF
23357 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
23358 _ACEOF
23359
23360
23361         if test "$ac_cv_sizeof_long_long" != 0; then
23362                         CPPFLAGS="-D_INCLUDE_LONGLONG $CPPFLAGS"
23363         fi
23364     ;;
23365     * )
23366         { echo "$as_me:$LINENO: checking for long long" >&5
23367 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
23368 if test "${ac_cv_type_long_long+set}" = set; then
23369   echo $ECHO_N "(cached) $ECHO_C" >&6
23370 else
23371   cat >conftest.$ac_ext <<_ACEOF
23372 /* confdefs.h.  */
23373 _ACEOF
23374 cat confdefs.h >>conftest.$ac_ext
23375 cat >>conftest.$ac_ext <<_ACEOF
23376 /* end confdefs.h.  */
23377 $ac_includes_default
23378 typedef long long ac__type_new_;
23379 int
23380 main ()
23381 {
23382 if ((ac__type_new_ *) 0)
23383   return 0;
23384 if (sizeof (ac__type_new_))
23385   return 0;
23386   ;
23387   return 0;
23388 }
23389 _ACEOF
23390 rm -f conftest.$ac_objext
23391 if { (ac_try="$ac_compile"
23392 case "(($ac_try" in
23393   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23394   *) ac_try_echo=$ac_try;;
23395 esac
23396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23397   (eval "$ac_compile") 2>conftest.er1
23398   ac_status=$?
23399   grep -v '^ *+' conftest.er1 >conftest.err
23400   rm -f conftest.er1
23401   cat conftest.err >&5
23402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23403   (exit $ac_status); } && {
23404          test -z "$ac_c_werror_flag" ||
23405          test ! -s conftest.err
23406        } && test -s conftest.$ac_objext; then
23407   ac_cv_type_long_long=yes
23408 else
23409   echo "$as_me: failed program was:" >&5
23410 sed 's/^/| /' conftest.$ac_ext >&5
23411
23412         ac_cv_type_long_long=no
23413 fi
23414
23415 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23416 fi
23417 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
23418 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
23419
23420 # The cast to long int works around a bug in the HP C Compiler
23421 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23422 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23423 # This bug is HP SR number 8606223364.
23424 { echo "$as_me:$LINENO: checking size of long long" >&5
23425 echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
23426 if test "${ac_cv_sizeof_long_long+set}" = set; then
23427   echo $ECHO_N "(cached) $ECHO_C" >&6
23428 else
23429   if test "$cross_compiling" = yes; then
23430   # Depending upon the size, compute the lo and hi bounds.
23431 cat >conftest.$ac_ext <<_ACEOF
23432 /* confdefs.h.  */
23433 _ACEOF
23434 cat confdefs.h >>conftest.$ac_ext
23435 cat >>conftest.$ac_ext <<_ACEOF
23436 /* end confdefs.h.  */
23437 $ac_includes_default
23438    typedef long long ac__type_sizeof_;
23439 int
23440 main ()
23441 {
23442 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
23443 test_array [0] = 0
23444
23445   ;
23446   return 0;
23447 }
23448 _ACEOF
23449 rm -f conftest.$ac_objext
23450 if { (ac_try="$ac_compile"
23451 case "(($ac_try" in
23452   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23453   *) ac_try_echo=$ac_try;;
23454 esac
23455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23456   (eval "$ac_compile") 2>conftest.er1
23457   ac_status=$?
23458   grep -v '^ *+' conftest.er1 >conftest.err
23459   rm -f conftest.er1
23460   cat conftest.err >&5
23461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23462   (exit $ac_status); } && {
23463          test -z "$ac_c_werror_flag" ||
23464          test ! -s conftest.err
23465        } && test -s conftest.$ac_objext; then
23466   ac_lo=0 ac_mid=0
23467   while :; do
23468     cat >conftest.$ac_ext <<_ACEOF
23469 /* confdefs.h.  */
23470 _ACEOF
23471 cat confdefs.h >>conftest.$ac_ext
23472 cat >>conftest.$ac_ext <<_ACEOF
23473 /* end confdefs.h.  */
23474 $ac_includes_default
23475    typedef long long ac__type_sizeof_;
23476 int
23477 main ()
23478 {
23479 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
23480 test_array [0] = 0
23481
23482   ;
23483   return 0;
23484 }
23485 _ACEOF
23486 rm -f conftest.$ac_objext
23487 if { (ac_try="$ac_compile"
23488 case "(($ac_try" in
23489   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23490   *) ac_try_echo=$ac_try;;
23491 esac
23492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23493   (eval "$ac_compile") 2>conftest.er1
23494   ac_status=$?
23495   grep -v '^ *+' conftest.er1 >conftest.err
23496   rm -f conftest.er1
23497   cat conftest.err >&5
23498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23499   (exit $ac_status); } && {
23500          test -z "$ac_c_werror_flag" ||
23501          test ! -s conftest.err
23502        } && test -s conftest.$ac_objext; then
23503   ac_hi=$ac_mid; break
23504 else
23505   echo "$as_me: failed program was:" >&5
23506 sed 's/^/| /' conftest.$ac_ext >&5
23507
23508         ac_lo=`expr $ac_mid + 1`
23509                         if test $ac_lo -le $ac_mid; then
23510                           ac_lo= ac_hi=
23511                           break
23512                         fi
23513                         ac_mid=`expr 2 '*' $ac_mid + 1`
23514 fi
23515
23516 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23517   done
23518 else
23519   echo "$as_me: failed program was:" >&5
23520 sed 's/^/| /' conftest.$ac_ext >&5
23521
23522         cat >conftest.$ac_ext <<_ACEOF
23523 /* confdefs.h.  */
23524 _ACEOF
23525 cat confdefs.h >>conftest.$ac_ext
23526 cat >>conftest.$ac_ext <<_ACEOF
23527 /* end confdefs.h.  */
23528 $ac_includes_default
23529    typedef long long ac__type_sizeof_;
23530 int
23531 main ()
23532 {
23533 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
23534 test_array [0] = 0
23535
23536   ;
23537   return 0;
23538 }
23539 _ACEOF
23540 rm -f conftest.$ac_objext
23541 if { (ac_try="$ac_compile"
23542 case "(($ac_try" in
23543   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23544   *) ac_try_echo=$ac_try;;
23545 esac
23546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23547   (eval "$ac_compile") 2>conftest.er1
23548   ac_status=$?
23549   grep -v '^ *+' conftest.er1 >conftest.err
23550   rm -f conftest.er1
23551   cat conftest.err >&5
23552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23553   (exit $ac_status); } && {
23554          test -z "$ac_c_werror_flag" ||
23555          test ! -s conftest.err
23556        } && test -s conftest.$ac_objext; then
23557   ac_hi=-1 ac_mid=-1
23558   while :; do
23559     cat >conftest.$ac_ext <<_ACEOF
23560 /* confdefs.h.  */
23561 _ACEOF
23562 cat confdefs.h >>conftest.$ac_ext
23563 cat >>conftest.$ac_ext <<_ACEOF
23564 /* end confdefs.h.  */
23565 $ac_includes_default
23566    typedef long long ac__type_sizeof_;
23567 int
23568 main ()
23569 {
23570 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
23571 test_array [0] = 0
23572
23573   ;
23574   return 0;
23575 }
23576 _ACEOF
23577 rm -f conftest.$ac_objext
23578 if { (ac_try="$ac_compile"
23579 case "(($ac_try" in
23580   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23581   *) ac_try_echo=$ac_try;;
23582 esac
23583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23584   (eval "$ac_compile") 2>conftest.er1
23585   ac_status=$?
23586   grep -v '^ *+' conftest.er1 >conftest.err
23587   rm -f conftest.er1
23588   cat conftest.err >&5
23589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23590   (exit $ac_status); } && {
23591          test -z "$ac_c_werror_flag" ||
23592          test ! -s conftest.err
23593        } && test -s conftest.$ac_objext; then
23594   ac_lo=$ac_mid; break
23595 else
23596   echo "$as_me: failed program was:" >&5
23597 sed 's/^/| /' conftest.$ac_ext >&5
23598
23599         ac_hi=`expr '(' $ac_mid ')' - 1`
23600                         if test $ac_mid -le $ac_hi; then
23601                           ac_lo= ac_hi=
23602                           break
23603                         fi
23604                         ac_mid=`expr 2 '*' $ac_mid`
23605 fi
23606
23607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23608   done
23609 else
23610   echo "$as_me: failed program was:" >&5
23611 sed 's/^/| /' conftest.$ac_ext >&5
23612
23613         ac_lo= ac_hi=
23614 fi
23615
23616 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23617 fi
23618
23619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23620 # Binary search between lo and hi bounds.
23621 while test "x$ac_lo" != "x$ac_hi"; do
23622   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23623   cat >conftest.$ac_ext <<_ACEOF
23624 /* confdefs.h.  */
23625 _ACEOF
23626 cat confdefs.h >>conftest.$ac_ext
23627 cat >>conftest.$ac_ext <<_ACEOF
23628 /* end confdefs.h.  */
23629 $ac_includes_default
23630    typedef long long ac__type_sizeof_;
23631 int
23632 main ()
23633 {
23634 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
23635 test_array [0] = 0
23636
23637   ;
23638   return 0;
23639 }
23640 _ACEOF
23641 rm -f conftest.$ac_objext
23642 if { (ac_try="$ac_compile"
23643 case "(($ac_try" in
23644   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23645   *) ac_try_echo=$ac_try;;
23646 esac
23647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23648   (eval "$ac_compile") 2>conftest.er1
23649   ac_status=$?
23650   grep -v '^ *+' conftest.er1 >conftest.err
23651   rm -f conftest.er1
23652   cat conftest.err >&5
23653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23654   (exit $ac_status); } && {
23655          test -z "$ac_c_werror_flag" ||
23656          test ! -s conftest.err
23657        } && test -s conftest.$ac_objext; then
23658   ac_hi=$ac_mid
23659 else
23660   echo "$as_me: failed program was:" >&5
23661 sed 's/^/| /' conftest.$ac_ext >&5
23662
23663         ac_lo=`expr '(' $ac_mid ')' + 1`
23664 fi
23665
23666 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23667 done
23668 case $ac_lo in
23669 ?*) ac_cv_sizeof_long_long=$ac_lo;;
23670 '') if test "$ac_cv_type_long_long" = yes; then
23671      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
23672 See \`config.log' for more details." >&5
23673 echo "$as_me: error: cannot compute sizeof (long long)
23674 See \`config.log' for more details." >&2;}
23675    { (exit 77); exit 77; }; }
23676    else
23677      ac_cv_sizeof_long_long=0
23678    fi ;;
23679 esac
23680 else
23681   cat >conftest.$ac_ext <<_ACEOF
23682 /* confdefs.h.  */
23683 _ACEOF
23684 cat confdefs.h >>conftest.$ac_ext
23685 cat >>conftest.$ac_ext <<_ACEOF
23686 /* end confdefs.h.  */
23687 $ac_includes_default
23688    typedef long long ac__type_sizeof_;
23689 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
23690 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
23691 #include <stdio.h>
23692 #include <stdlib.h>
23693 int
23694 main ()
23695 {
23696
23697   FILE *f = fopen ("conftest.val", "w");
23698   if (! f)
23699     return 1;
23700   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
23701     {
23702       long int i = longval ();
23703       if (i != ((long int) (sizeof (ac__type_sizeof_))))
23704         return 1;
23705       fprintf (f, "%ld\n", i);
23706     }
23707   else
23708     {
23709       unsigned long int i = ulongval ();
23710       if (i != ((long int) (sizeof (ac__type_sizeof_))))
23711         return 1;
23712       fprintf (f, "%lu\n", i);
23713     }
23714   return ferror (f) || fclose (f) != 0;
23715
23716   ;
23717   return 0;
23718 }
23719 _ACEOF
23720 rm -f conftest$ac_exeext
23721 if { (ac_try="$ac_link"
23722 case "(($ac_try" in
23723   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23724   *) ac_try_echo=$ac_try;;
23725 esac
23726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23727   (eval "$ac_link") 2>&5
23728   ac_status=$?
23729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23730   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23731   { (case "(($ac_try" in
23732   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23733   *) ac_try_echo=$ac_try;;
23734 esac
23735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23736   (eval "$ac_try") 2>&5
23737   ac_status=$?
23738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23739   (exit $ac_status); }; }; then
23740   ac_cv_sizeof_long_long=`cat conftest.val`
23741 else
23742   echo "$as_me: program exited with status $ac_status" >&5
23743 echo "$as_me: failed program was:" >&5
23744 sed 's/^/| /' conftest.$ac_ext >&5
23745
23746 ( exit $ac_status )
23747 if test "$ac_cv_type_long_long" = yes; then
23748      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
23749 See \`config.log' for more details." >&5
23750 echo "$as_me: error: cannot compute sizeof (long long)
23751 See \`config.log' for more details." >&2;}
23752    { (exit 77); exit 77; }; }
23753    else
23754      ac_cv_sizeof_long_long=0
23755    fi
23756 fi
23757 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23758 fi
23759 rm -f conftest.val
23760 fi
23761 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
23762 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
23763
23764
23765
23766 cat >>confdefs.h <<_ACEOF
23767 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
23768 _ACEOF
23769
23770
23771 esac
23772
23773 { echo "$as_me:$LINENO: checking for wchar_t" >&5
23774 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
23775 if test "${ac_cv_type_wchar_t+set}" = set; then
23776   echo $ECHO_N "(cached) $ECHO_C" >&6
23777 else
23778   cat >conftest.$ac_ext <<_ACEOF
23779 /* confdefs.h.  */
23780 _ACEOF
23781 cat confdefs.h >>conftest.$ac_ext
23782 cat >>conftest.$ac_ext <<_ACEOF
23783 /* end confdefs.h.  */
23784
23785         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
23786         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
23787         #  error "fake wchar_t"
23788         #endif
23789         #ifdef HAVE_WCHAR_H
23790         #  ifdef __CYGWIN__
23791         #    include <stddef.h>
23792         #  endif
23793         #  include <wchar.h>
23794         #endif
23795         #ifdef HAVE_STDLIB_H
23796         #  include <stdlib.h>
23797         #endif
23798         #include <stdio.h>
23799
23800
23801
23802 typedef wchar_t ac__type_new_;
23803 int
23804 main ()
23805 {
23806 if ((ac__type_new_ *) 0)
23807   return 0;
23808 if (sizeof (ac__type_new_))
23809   return 0;
23810   ;
23811   return 0;
23812 }
23813 _ACEOF
23814 rm -f conftest.$ac_objext
23815 if { (ac_try="$ac_compile"
23816 case "(($ac_try" in
23817   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23818   *) ac_try_echo=$ac_try;;
23819 esac
23820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23821   (eval "$ac_compile") 2>conftest.er1
23822   ac_status=$?
23823   grep -v '^ *+' conftest.er1 >conftest.err
23824   rm -f conftest.er1
23825   cat conftest.err >&5
23826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23827   (exit $ac_status); } && {
23828          test -z "$ac_c_werror_flag" ||
23829          test ! -s conftest.err
23830        } && test -s conftest.$ac_objext; then
23831   ac_cv_type_wchar_t=yes
23832 else
23833   echo "$as_me: failed program was:" >&5
23834 sed 's/^/| /' conftest.$ac_ext >&5
23835
23836         ac_cv_type_wchar_t=no
23837 fi
23838
23839 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23840 fi
23841 { echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
23842 echo "${ECHO_T}$ac_cv_type_wchar_t" >&6; }
23843
23844 # The cast to long int works around a bug in the HP C Compiler
23845 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23846 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23847 # This bug is HP SR number 8606223364.
23848 { echo "$as_me:$LINENO: checking size of wchar_t" >&5
23849 echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6; }
23850 if test "${ac_cv_sizeof_wchar_t+set}" = set; then
23851   echo $ECHO_N "(cached) $ECHO_C" >&6
23852 else
23853   if test "$cross_compiling" = yes; then
23854   # Depending upon the size, compute the lo and hi bounds.
23855 cat >conftest.$ac_ext <<_ACEOF
23856 /* confdefs.h.  */
23857 _ACEOF
23858 cat confdefs.h >>conftest.$ac_ext
23859 cat >>conftest.$ac_ext <<_ACEOF
23860 /* end confdefs.h.  */
23861
23862         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
23863         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
23864         #  error "fake wchar_t"
23865         #endif
23866         #ifdef HAVE_WCHAR_H
23867         #  ifdef __CYGWIN__
23868         #    include <stddef.h>
23869         #  endif
23870         #  include <wchar.h>
23871         #endif
23872         #ifdef HAVE_STDLIB_H
23873         #  include <stdlib.h>
23874         #endif
23875         #include <stdio.h>
23876
23877
23878
23879    typedef wchar_t ac__type_sizeof_;
23880 int
23881 main ()
23882 {
23883 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
23884 test_array [0] = 0
23885
23886   ;
23887   return 0;
23888 }
23889 _ACEOF
23890 rm -f conftest.$ac_objext
23891 if { (ac_try="$ac_compile"
23892 case "(($ac_try" in
23893   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23894   *) ac_try_echo=$ac_try;;
23895 esac
23896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23897   (eval "$ac_compile") 2>conftest.er1
23898   ac_status=$?
23899   grep -v '^ *+' conftest.er1 >conftest.err
23900   rm -f conftest.er1
23901   cat conftest.err >&5
23902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23903   (exit $ac_status); } && {
23904          test -z "$ac_c_werror_flag" ||
23905          test ! -s conftest.err
23906        } && test -s conftest.$ac_objext; then
23907   ac_lo=0 ac_mid=0
23908   while :; do
23909     cat >conftest.$ac_ext <<_ACEOF
23910 /* confdefs.h.  */
23911 _ACEOF
23912 cat confdefs.h >>conftest.$ac_ext
23913 cat >>conftest.$ac_ext <<_ACEOF
23914 /* end confdefs.h.  */
23915
23916         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
23917         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
23918         #  error "fake wchar_t"
23919         #endif
23920         #ifdef HAVE_WCHAR_H
23921         #  ifdef __CYGWIN__
23922         #    include <stddef.h>
23923         #  endif
23924         #  include <wchar.h>
23925         #endif
23926         #ifdef HAVE_STDLIB_H
23927         #  include <stdlib.h>
23928         #endif
23929         #include <stdio.h>
23930
23931
23932
23933    typedef wchar_t ac__type_sizeof_;
23934 int
23935 main ()
23936 {
23937 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
23938 test_array [0] = 0
23939
23940   ;
23941   return 0;
23942 }
23943 _ACEOF
23944 rm -f conftest.$ac_objext
23945 if { (ac_try="$ac_compile"
23946 case "(($ac_try" in
23947   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23948   *) ac_try_echo=$ac_try;;
23949 esac
23950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23951   (eval "$ac_compile") 2>conftest.er1
23952   ac_status=$?
23953   grep -v '^ *+' conftest.er1 >conftest.err
23954   rm -f conftest.er1
23955   cat conftest.err >&5
23956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23957   (exit $ac_status); } && {
23958          test -z "$ac_c_werror_flag" ||
23959          test ! -s conftest.err
23960        } && test -s conftest.$ac_objext; then
23961   ac_hi=$ac_mid; break
23962 else
23963   echo "$as_me: failed program was:" >&5
23964 sed 's/^/| /' conftest.$ac_ext >&5
23965
23966         ac_lo=`expr $ac_mid + 1`
23967                         if test $ac_lo -le $ac_mid; then
23968                           ac_lo= ac_hi=
23969                           break
23970                         fi
23971                         ac_mid=`expr 2 '*' $ac_mid + 1`
23972 fi
23973
23974 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23975   done
23976 else
23977   echo "$as_me: failed program was:" >&5
23978 sed 's/^/| /' conftest.$ac_ext >&5
23979
23980         cat >conftest.$ac_ext <<_ACEOF
23981 /* confdefs.h.  */
23982 _ACEOF
23983 cat confdefs.h >>conftest.$ac_ext
23984 cat >>conftest.$ac_ext <<_ACEOF
23985 /* end confdefs.h.  */
23986
23987         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
23988         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
23989         #  error "fake wchar_t"
23990         #endif
23991         #ifdef HAVE_WCHAR_H
23992         #  ifdef __CYGWIN__
23993         #    include <stddef.h>
23994         #  endif
23995         #  include <wchar.h>
23996         #endif
23997         #ifdef HAVE_STDLIB_H
23998         #  include <stdlib.h>
23999         #endif
24000         #include <stdio.h>
24001
24002
24003
24004    typedef wchar_t ac__type_sizeof_;
24005 int
24006 main ()
24007 {
24008 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
24009 test_array [0] = 0
24010
24011   ;
24012   return 0;
24013 }
24014 _ACEOF
24015 rm -f conftest.$ac_objext
24016 if { (ac_try="$ac_compile"
24017 case "(($ac_try" in
24018   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24019   *) ac_try_echo=$ac_try;;
24020 esac
24021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24022   (eval "$ac_compile") 2>conftest.er1
24023   ac_status=$?
24024   grep -v '^ *+' conftest.er1 >conftest.err
24025   rm -f conftest.er1
24026   cat conftest.err >&5
24027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24028   (exit $ac_status); } && {
24029          test -z "$ac_c_werror_flag" ||
24030          test ! -s conftest.err
24031        } && test -s conftest.$ac_objext; then
24032   ac_hi=-1 ac_mid=-1
24033   while :; do
24034     cat >conftest.$ac_ext <<_ACEOF
24035 /* confdefs.h.  */
24036 _ACEOF
24037 cat confdefs.h >>conftest.$ac_ext
24038 cat >>conftest.$ac_ext <<_ACEOF
24039 /* end confdefs.h.  */
24040
24041         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
24042         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
24043         #  error "fake wchar_t"
24044         #endif
24045         #ifdef HAVE_WCHAR_H
24046         #  ifdef __CYGWIN__
24047         #    include <stddef.h>
24048         #  endif
24049         #  include <wchar.h>
24050         #endif
24051         #ifdef HAVE_STDLIB_H
24052         #  include <stdlib.h>
24053         #endif
24054         #include <stdio.h>
24055
24056
24057
24058    typedef wchar_t ac__type_sizeof_;
24059 int
24060 main ()
24061 {
24062 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
24063 test_array [0] = 0
24064
24065   ;
24066   return 0;
24067 }
24068 _ACEOF
24069 rm -f conftest.$ac_objext
24070 if { (ac_try="$ac_compile"
24071 case "(($ac_try" in
24072   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24073   *) ac_try_echo=$ac_try;;
24074 esac
24075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24076   (eval "$ac_compile") 2>conftest.er1
24077   ac_status=$?
24078   grep -v '^ *+' conftest.er1 >conftest.err
24079   rm -f conftest.er1
24080   cat conftest.err >&5
24081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24082   (exit $ac_status); } && {
24083          test -z "$ac_c_werror_flag" ||
24084          test ! -s conftest.err
24085        } && test -s conftest.$ac_objext; then
24086   ac_lo=$ac_mid; break
24087 else
24088   echo "$as_me: failed program was:" >&5
24089 sed 's/^/| /' conftest.$ac_ext >&5
24090
24091         ac_hi=`expr '(' $ac_mid ')' - 1`
24092                         if test $ac_mid -le $ac_hi; then
24093                           ac_lo= ac_hi=
24094                           break
24095                         fi
24096                         ac_mid=`expr 2 '*' $ac_mid`
24097 fi
24098
24099 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24100   done
24101 else
24102   echo "$as_me: failed program was:" >&5
24103 sed 's/^/| /' conftest.$ac_ext >&5
24104
24105         ac_lo= ac_hi=
24106 fi
24107
24108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24109 fi
24110
24111 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24112 # Binary search between lo and hi bounds.
24113 while test "x$ac_lo" != "x$ac_hi"; do
24114   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24115   cat >conftest.$ac_ext <<_ACEOF
24116 /* confdefs.h.  */
24117 _ACEOF
24118 cat confdefs.h >>conftest.$ac_ext
24119 cat >>conftest.$ac_ext <<_ACEOF
24120 /* end confdefs.h.  */
24121
24122         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
24123         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
24124         #  error "fake wchar_t"
24125         #endif
24126         #ifdef HAVE_WCHAR_H
24127         #  ifdef __CYGWIN__
24128         #    include <stddef.h>
24129         #  endif
24130         #  include <wchar.h>
24131         #endif
24132         #ifdef HAVE_STDLIB_H
24133         #  include <stdlib.h>
24134         #endif
24135         #include <stdio.h>
24136
24137
24138
24139    typedef wchar_t ac__type_sizeof_;
24140 int
24141 main ()
24142 {
24143 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24144 test_array [0] = 0
24145
24146   ;
24147   return 0;
24148 }
24149 _ACEOF
24150 rm -f conftest.$ac_objext
24151 if { (ac_try="$ac_compile"
24152 case "(($ac_try" in
24153   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24154   *) ac_try_echo=$ac_try;;
24155 esac
24156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24157   (eval "$ac_compile") 2>conftest.er1
24158   ac_status=$?
24159   grep -v '^ *+' conftest.er1 >conftest.err
24160   rm -f conftest.er1
24161   cat conftest.err >&5
24162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24163   (exit $ac_status); } && {
24164          test -z "$ac_c_werror_flag" ||
24165          test ! -s conftest.err
24166        } && test -s conftest.$ac_objext; then
24167   ac_hi=$ac_mid
24168 else
24169   echo "$as_me: failed program was:" >&5
24170 sed 's/^/| /' conftest.$ac_ext >&5
24171
24172         ac_lo=`expr '(' $ac_mid ')' + 1`
24173 fi
24174
24175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24176 done
24177 case $ac_lo in
24178 ?*) ac_cv_sizeof_wchar_t=$ac_lo;;
24179 '') if test "$ac_cv_type_wchar_t" = yes; then
24180      { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t)
24181 See \`config.log' for more details." >&5
24182 echo "$as_me: error: cannot compute sizeof (wchar_t)
24183 See \`config.log' for more details." >&2;}
24184    { (exit 77); exit 77; }; }
24185    else
24186      ac_cv_sizeof_wchar_t=0
24187    fi ;;
24188 esac
24189 else
24190   cat >conftest.$ac_ext <<_ACEOF
24191 /* confdefs.h.  */
24192 _ACEOF
24193 cat confdefs.h >>conftest.$ac_ext
24194 cat >>conftest.$ac_ext <<_ACEOF
24195 /* end confdefs.h.  */
24196
24197         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
24198         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
24199         #  error "fake wchar_t"
24200         #endif
24201         #ifdef HAVE_WCHAR_H
24202         #  ifdef __CYGWIN__
24203         #    include <stddef.h>
24204         #  endif
24205         #  include <wchar.h>
24206         #endif
24207         #ifdef HAVE_STDLIB_H
24208         #  include <stdlib.h>
24209         #endif
24210         #include <stdio.h>
24211
24212
24213
24214    typedef wchar_t ac__type_sizeof_;
24215 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
24216 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
24217 #include <stdio.h>
24218 #include <stdlib.h>
24219 int
24220 main ()
24221 {
24222
24223   FILE *f = fopen ("conftest.val", "w");
24224   if (! f)
24225     return 1;
24226   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
24227     {
24228       long int i = longval ();
24229       if (i != ((long int) (sizeof (ac__type_sizeof_))))
24230         return 1;
24231       fprintf (f, "%ld\n", i);
24232     }
24233   else
24234     {
24235       unsigned long int i = ulongval ();
24236       if (i != ((long int) (sizeof (ac__type_sizeof_))))
24237         return 1;
24238       fprintf (f, "%lu\n", i);
24239     }
24240   return ferror (f) || fclose (f) != 0;
24241
24242   ;
24243   return 0;
24244 }
24245 _ACEOF
24246 rm -f conftest$ac_exeext
24247 if { (ac_try="$ac_link"
24248 case "(($ac_try" in
24249   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24250   *) ac_try_echo=$ac_try;;
24251 esac
24252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24253   (eval "$ac_link") 2>&5
24254   ac_status=$?
24255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24256   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24257   { (case "(($ac_try" in
24258   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24259   *) ac_try_echo=$ac_try;;
24260 esac
24261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24262   (eval "$ac_try") 2>&5
24263   ac_status=$?
24264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24265   (exit $ac_status); }; }; then
24266   ac_cv_sizeof_wchar_t=`cat conftest.val`
24267 else
24268   echo "$as_me: program exited with status $ac_status" >&5
24269 echo "$as_me: failed program was:" >&5
24270 sed 's/^/| /' conftest.$ac_ext >&5
24271
24272 ( exit $ac_status )
24273 if test "$ac_cv_type_wchar_t" = yes; then
24274      { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t)
24275 See \`config.log' for more details." >&5
24276 echo "$as_me: error: cannot compute sizeof (wchar_t)
24277 See \`config.log' for more details." >&2;}
24278    { (exit 77); exit 77; }; }
24279    else
24280      ac_cv_sizeof_wchar_t=0
24281    fi
24282 fi
24283 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24284 fi
24285 rm -f conftest.val
24286 fi
24287 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
24288 echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6; }
24289
24290
24291
24292 cat >>confdefs.h <<_ACEOF
24293 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
24294 _ACEOF
24295
24296
24297 if test "$ac_cv_sizeof_wchar_t" = 0; then
24298     { { echo "$as_me:$LINENO: error: wxWidgets requires wchar_t support." >&5
24299 echo "$as_me: error: wxWidgets requires wchar_t support." >&2;}
24300    { (exit 1); exit 1; }; }
24301 fi
24302 cat >>confdefs.h <<\_ACEOF
24303 #define wxUSE_WCHAR_T 1
24304 _ACEOF
24305
24306
24307 { echo "$as_me:$LINENO: checking for va_copy" >&5
24308 echo $ECHO_N "checking for va_copy... $ECHO_C" >&6; }
24309 if test "${wx_cv_func_va_copy+set}" = set; then
24310   echo $ECHO_N "(cached) $ECHO_C" >&6
24311 else
24312
24313         ac_ext=cpp
24314 ac_cpp='$CXXCPP $CPPFLAGS'
24315 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24316 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24317 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24318
24319         cat >conftest.$ac_ext <<_ACEOF
24320
24321             #include <stdarg.h>
24322             void foo(char *f, ...)
24323             {
24324                 va_list ap1, ap2;
24325                 va_start(ap1, f);
24326                 va_copy(ap2, ap1);
24327                 va_end(ap2);
24328                 va_end(ap1);
24329             }
24330             int main()
24331             {
24332                 foo("hi", 17);
24333                 return 0;
24334             }
24335 _ACEOF
24336 rm -f conftest.$ac_objext conftest$ac_exeext
24337 if { (ac_try="$ac_link"
24338 case "(($ac_try" in
24339   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24340   *) ac_try_echo=$ac_try;;
24341 esac
24342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24343   (eval "$ac_link") 2>conftest.er1
24344   ac_status=$?
24345   grep -v '^ *+' conftest.er1 >conftest.err
24346   rm -f conftest.er1
24347   cat conftest.err >&5
24348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24349   (exit $ac_status); } && {
24350          test -z "$ac_cxx_werror_flag" ||
24351          test ! -s conftest.err
24352        } && test -s conftest$ac_exeext &&
24353        $as_test_x conftest$ac_exeext; then
24354   wx_cv_func_va_copy=yes
24355 else
24356   echo "$as_me: failed program was:" >&5
24357 sed 's/^/| /' conftest.$ac_ext >&5
24358
24359         wx_cv_func_va_copy=no
24360
24361 fi
24362
24363 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24364       conftest$ac_exeext conftest.$ac_ext
24365         ac_ext=c
24366 ac_cpp='$CPP $CPPFLAGS'
24367 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24368 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24369 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24370
24371
24372
24373 fi
24374 { echo "$as_me:$LINENO: result: $wx_cv_func_va_copy" >&5
24375 echo "${ECHO_T}$wx_cv_func_va_copy" >&6; }
24376
24377 if test $wx_cv_func_va_copy = "yes"; then
24378     cat >>confdefs.h <<\_ACEOF
24379 #define HAVE_VA_COPY 1
24380 _ACEOF
24381
24382 else
24383         { echo "$as_me:$LINENO: checking if va_list can be copied by value" >&5
24384 echo $ECHO_N "checking if va_list can be copied by value... $ECHO_C" >&6; }
24385 if test "${wx_cv_type_va_list_lvalue+set}" = set; then
24386   echo $ECHO_N "(cached) $ECHO_C" >&6
24387 else
24388
24389             if test "$cross_compiling" = yes; then
24390                   wx_cv_type_va_list_lvalue=yes
24391
24392 else
24393   cat >conftest.$ac_ext <<_ACEOF
24394
24395                 #include <stdarg.h>
24396                 int foo(char *f, ...)
24397                 {
24398                     va_list ap1, ap2;
24399                     va_start(ap1, f);
24400                     ap2 = ap1;
24401                     if ( va_arg(ap1, int) != 17 || va_arg(ap2, int) != 17 )
24402                         return 1;
24403                     va_end(ap2);
24404                     va_end(ap1);
24405                     return 0;
24406                 }
24407                 int main()
24408                 {
24409                     return foo("hi", 17);
24410                 }
24411 _ACEOF
24412 rm -f conftest$ac_exeext
24413 if { (ac_try="$ac_link"
24414 case "(($ac_try" in
24415   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24416   *) ac_try_echo=$ac_try;;
24417 esac
24418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24419   (eval "$ac_link") 2>&5
24420   ac_status=$?
24421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24422   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24423   { (case "(($ac_try" in
24424   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24425   *) ac_try_echo=$ac_try;;
24426 esac
24427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24428   (eval "$ac_try") 2>&5
24429   ac_status=$?
24430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24431   (exit $ac_status); }; }; then
24432   wx_cv_type_va_list_lvalue=yes
24433 else
24434   echo "$as_me: program exited with status $ac_status" >&5
24435 echo "$as_me: failed program was:" >&5
24436 sed 's/^/| /' conftest.$ac_ext >&5
24437
24438 ( exit $ac_status )
24439 wx_cv_type_va_list_lvalue=no
24440 fi
24441 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24442 fi
24443
24444
24445
24446
24447 fi
24448 { echo "$as_me:$LINENO: result: $wx_cv_type_va_list_lvalue" >&5
24449 echo "${ECHO_T}$wx_cv_type_va_list_lvalue" >&6; }
24450
24451     if test $wx_cv_type_va_list_lvalue != "yes"; then
24452                         cat >>confdefs.h <<\_ACEOF
24453 #define VA_LIST_IS_ARRAY 1
24454 _ACEOF
24455
24456     fi
24457 fi
24458
24459 if test "$wxUSE_VARARG_MACROS" = "yes"; then
24460
24461 { echo "$as_me:$LINENO: checking whether the compiler supports variadic macros" >&5
24462 echo $ECHO_N "checking whether the compiler supports variadic macros... $ECHO_C" >&6; }
24463 if test "${wx_cv_have_variadic_macros+set}" = set; then
24464   echo $ECHO_N "(cached) $ECHO_C" >&6
24465 else
24466
24467                         ac_ext=cpp
24468 ac_cpp='$CXXCPP $CPPFLAGS'
24469 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24470 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24471 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24472
24473         cat >conftest.$ac_ext <<_ACEOF
24474 /* confdefs.h.  */
24475 _ACEOF
24476 cat confdefs.h >>conftest.$ac_ext
24477 cat >>conftest.$ac_ext <<_ACEOF
24478 /* end confdefs.h.  */
24479
24480                     #include <stdio.h>
24481                     #define test(fmt, ...) printf(fmt, __VA_ARGS__)
24482
24483 int
24484 main ()
24485 {
24486
24487                     test("%s %d %p", "test", 1, 0);
24488
24489
24490   ;
24491   return 0;
24492 }
24493 _ACEOF
24494 rm -f conftest.$ac_objext
24495 if { (ac_try="$ac_compile"
24496 case "(($ac_try" in
24497   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24498   *) ac_try_echo=$ac_try;;
24499 esac
24500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24501   (eval "$ac_compile") 2>conftest.er1
24502   ac_status=$?
24503   grep -v '^ *+' conftest.er1 >conftest.err
24504   rm -f conftest.er1
24505   cat conftest.err >&5
24506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24507   (exit $ac_status); } && {
24508          test -z "$ac_cxx_werror_flag" ||
24509          test ! -s conftest.err
24510        } && test -s conftest.$ac_objext; then
24511   wx_cv_have_variadic_macros=yes
24512 else
24513   echo "$as_me: failed program was:" >&5
24514 sed 's/^/| /' conftest.$ac_ext >&5
24515
24516         wx_cv_have_variadic_macros=no
24517
24518 fi
24519
24520 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24521         ac_ext=c
24522 ac_cpp='$CPP $CPPFLAGS'
24523 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24524 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24525 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24526
24527
24528
24529 fi
24530 { echo "$as_me:$LINENO: result: $wx_cv_have_variadic_macros" >&5
24531 echo "${ECHO_T}$wx_cv_have_variadic_macros" >&6; }
24532
24533 if test $wx_cv_have_variadic_macros = "yes"; then
24534     cat >>confdefs.h <<\_ACEOF
24535 #define HAVE_VARIADIC_MACROS 1
24536 _ACEOF
24537
24538 fi
24539
24540 fi
24541
24542 LARGEFILE_CPPFLAGS=
24543 # Check whether --enable-largefile was given.
24544 if test "${enable_largefile+set}" = set; then
24545   enableval=$enable_largefile;
24546 fi
24547
24548 if test "$enable_largefile" != no; then
24549             wx_largefile=no
24550
24551     { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
24552 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
24553 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
24554   echo $ECHO_N "(cached) $ECHO_C" >&6
24555 else
24556
24557           cat >conftest.$ac_ext <<_ACEOF
24558 /* confdefs.h.  */
24559 _ACEOF
24560 cat confdefs.h >>conftest.$ac_ext
24561 cat >>conftest.$ac_ext <<_ACEOF
24562 /* end confdefs.h.  */
24563 #define _FILE_OFFSET_BITS 64
24564                           #include <sys/types.h>
24565 int
24566 main ()
24567 {
24568 typedef struct {
24569     unsigned int field: sizeof(off_t) == 8;
24570 } wxlf;
24571
24572   ;
24573   return 0;
24574 }
24575 _ACEOF
24576 rm -f conftest.$ac_objext
24577 if { (ac_try="$ac_compile"
24578 case "(($ac_try" in
24579   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24580   *) ac_try_echo=$ac_try;;
24581 esac
24582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24583   (eval "$ac_compile") 2>conftest.er1
24584   ac_status=$?
24585   grep -v '^ *+' conftest.er1 >conftest.err
24586   rm -f conftest.er1
24587   cat conftest.err >&5
24588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24589   (exit $ac_status); } && {
24590          test -z "$ac_c_werror_flag" ||
24591          test ! -s conftest.err
24592        } && test -s conftest.$ac_objext; then
24593   ac_cv_sys_file_offset_bits=64
24594 else
24595   echo "$as_me: failed program was:" >&5
24596 sed 's/^/| /' conftest.$ac_ext >&5
24597
24598         ac_cv_sys_file_offset_bits=no
24599 fi
24600
24601 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24602
24603
24604 fi
24605 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
24606 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
24607
24608     if test "$ac_cv_sys_file_offset_bits" != no; then
24609         wx_largefile=yes
24610         cat >>confdefs.h <<_ACEOF
24611 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
24612 _ACEOF
24613
24614     fi
24615
24616     if test "x$wx_largefile" != "xyes"; then
24617
24618     { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
24619 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
24620 if test "${ac_cv_sys_large_files+set}" = set; then
24621   echo $ECHO_N "(cached) $ECHO_C" >&6
24622 else
24623
24624           cat >conftest.$ac_ext <<_ACEOF
24625 /* confdefs.h.  */
24626 _ACEOF
24627 cat confdefs.h >>conftest.$ac_ext
24628 cat >>conftest.$ac_ext <<_ACEOF
24629 /* end confdefs.h.  */
24630 #define _LARGE_FILES 1
24631                           #include <sys/types.h>
24632 int
24633 main ()
24634 {
24635 typedef struct {
24636     unsigned int field: sizeof(off_t) == 8;
24637 } wxlf;
24638
24639   ;
24640   return 0;
24641 }
24642 _ACEOF
24643 rm -f conftest.$ac_objext
24644 if { (ac_try="$ac_compile"
24645 case "(($ac_try" in
24646   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24647   *) ac_try_echo=$ac_try;;
24648 esac
24649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24650   (eval "$ac_compile") 2>conftest.er1
24651   ac_status=$?
24652   grep -v '^ *+' conftest.er1 >conftest.err
24653   rm -f conftest.er1
24654   cat conftest.err >&5
24655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24656   (exit $ac_status); } && {
24657          test -z "$ac_c_werror_flag" ||
24658          test ! -s conftest.err
24659        } && test -s conftest.$ac_objext; then
24660   ac_cv_sys_large_files=1
24661 else
24662   echo "$as_me: failed program was:" >&5
24663 sed 's/^/| /' conftest.$ac_ext >&5
24664
24665         ac_cv_sys_large_files=no
24666 fi
24667
24668 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24669
24670
24671 fi
24672 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
24673 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
24674
24675     if test "$ac_cv_sys_large_files" != no; then
24676         wx_largefile=yes
24677         cat >>confdefs.h <<_ACEOF
24678 #define _LARGE_FILES $ac_cv_sys_large_files
24679 _ACEOF
24680
24681     fi
24682
24683     fi
24684
24685     { echo "$as_me:$LINENO: checking if large file support is available" >&5
24686 echo $ECHO_N "checking if large file support is available... $ECHO_C" >&6; }
24687     if test "x$wx_largefile" = "xyes"; then
24688         cat >>confdefs.h <<\_ACEOF
24689 #define HAVE_LARGEFILE_SUPPORT 1
24690 _ACEOF
24691
24692     fi
24693     { echo "$as_me:$LINENO: result: $wx_largefile" >&5
24694 echo "${ECHO_T}$wx_largefile" >&6; }
24695 fi
24696
24697 if test "$ac_cv_sys_file_offset_bits" = "64"; then
24698     LARGEFILE_CPPFLAGS="-D_FILE_OFFSET_BITS=64"
24699 elif test "$ac_cv_sys_large_files" = 1; then
24700     LARGEFILE_CPPFLAGS="-D_LARGE_FILES"
24701 fi
24702
24703 if test -n "$LARGEFILE_CPPFLAGS"; then
24704     WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS $LARGEFILE_CPPFLAGS"
24705
24706                             if test "$USE_HPUX" = 1 -a "$GXX" = "yes"; then
24707         { echo "$as_me:$LINENO: checking if -D__STDC_EXT__ is required" >&5
24708 echo $ECHO_N "checking if -D__STDC_EXT__ is required... $ECHO_C" >&6; }
24709 if test "${wx_cv_STDC_EXT_required+set}" = set; then
24710   echo $ECHO_N "(cached) $ECHO_C" >&6
24711 else
24712
24713                 ac_ext=cpp
24714 ac_cpp='$CXXCPP $CPPFLAGS'
24715 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24716 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24717 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24718
24719                 cat >conftest.$ac_ext <<_ACEOF
24720 /* confdefs.h.  */
24721 _ACEOF
24722 cat confdefs.h >>conftest.$ac_ext
24723 cat >>conftest.$ac_ext <<_ACEOF
24724 /* end confdefs.h.  */
24725
24726 int
24727 main ()
24728 {
24729
24730                         #ifndef __STDC_EXT__
24731                             choke me
24732                         #endif
24733
24734   ;
24735   return 0;
24736 }
24737 _ACEOF
24738 rm -f conftest.$ac_objext
24739 if { (ac_try="$ac_compile"
24740 case "(($ac_try" in
24741   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24742   *) ac_try_echo=$ac_try;;
24743 esac
24744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24745   (eval "$ac_compile") 2>conftest.er1
24746   ac_status=$?
24747   grep -v '^ *+' conftest.er1 >conftest.err
24748   rm -f conftest.er1
24749   cat conftest.err >&5
24750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24751   (exit $ac_status); } && {
24752          test -z "$ac_cxx_werror_flag" ||
24753          test ! -s conftest.err
24754        } && test -s conftest.$ac_objext; then
24755   wx_cv_STDC_EXT_required=no
24756 else
24757   echo "$as_me: failed program was:" >&5
24758 sed 's/^/| /' conftest.$ac_ext >&5
24759
24760         wx_cv_STDC_EXT_required=yes
24761
24762 fi
24763
24764 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24765                 ac_ext=c
24766 ac_cpp='$CPP $CPPFLAGS'
24767 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24768 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24769 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24770
24771
24772
24773 fi
24774 { echo "$as_me:$LINENO: result: $wx_cv_STDC_EXT_required" >&5
24775 echo "${ECHO_T}$wx_cv_STDC_EXT_required" >&6; }
24776         if test "x$wx_cv_STDC_EXT_required" = "xyes"; then
24777             WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -D__STDC_EXT__"
24778         fi
24779     fi
24780 fi
24781
24782 ac_ext=cpp
24783 ac_cpp='$CXXCPP $CPPFLAGS'
24784 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24785 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24786 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24787
24788 old_CPPFLAGS="$CPPFLAGS"
24789 CPPFLAGS="$CPPFLAGS $LARGEFILE_CPPFLAGS"
24790 { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
24791 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6; }
24792 if test "${ac_cv_sys_largefile_source+set}" = set; then
24793   echo $ECHO_N "(cached) $ECHO_C" >&6
24794 else
24795   while :; do
24796   cat >conftest.$ac_ext <<_ACEOF
24797 /* confdefs.h.  */
24798 _ACEOF
24799 cat confdefs.h >>conftest.$ac_ext
24800 cat >>conftest.$ac_ext <<_ACEOF
24801 /* end confdefs.h.  */
24802 #include <sys/types.h> /* for off_t */
24803      #include <stdio.h>
24804 int
24805 main ()
24806 {
24807 int (*fp) (FILE *, off_t, int) = fseeko;
24808      return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
24809   ;
24810   return 0;
24811 }
24812 _ACEOF
24813 rm -f conftest.$ac_objext conftest$ac_exeext
24814 if { (ac_try="$ac_link"
24815 case "(($ac_try" in
24816   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24817   *) ac_try_echo=$ac_try;;
24818 esac
24819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24820   (eval "$ac_link") 2>conftest.er1
24821   ac_status=$?
24822   grep -v '^ *+' conftest.er1 >conftest.err
24823   rm -f conftest.er1
24824   cat conftest.err >&5
24825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24826   (exit $ac_status); } && {
24827          test -z "$ac_cxx_werror_flag" ||
24828          test ! -s conftest.err
24829        } && test -s conftest$ac_exeext &&
24830        $as_test_x conftest$ac_exeext; then
24831   ac_cv_sys_largefile_source=no; break
24832 else
24833   echo "$as_me: failed program was:" >&5
24834 sed 's/^/| /' conftest.$ac_ext >&5
24835
24836
24837 fi
24838
24839 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24840       conftest$ac_exeext conftest.$ac_ext
24841   cat >conftest.$ac_ext <<_ACEOF
24842 /* confdefs.h.  */
24843 _ACEOF
24844 cat confdefs.h >>conftest.$ac_ext
24845 cat >>conftest.$ac_ext <<_ACEOF
24846 /* end confdefs.h.  */
24847 #define _LARGEFILE_SOURCE 1
24848 #include <sys/types.h> /* for off_t */
24849      #include <stdio.h>
24850 int
24851 main ()
24852 {
24853 int (*fp) (FILE *, off_t, int) = fseeko;
24854      return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
24855   ;
24856   return 0;
24857 }
24858 _ACEOF
24859 rm -f conftest.$ac_objext conftest$ac_exeext
24860 if { (ac_try="$ac_link"
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_link") 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_cxx_werror_flag" ||
24874          test ! -s conftest.err
24875        } && test -s conftest$ac_exeext &&
24876        $as_test_x conftest$ac_exeext; then
24877   ac_cv_sys_largefile_source=1; break
24878 else
24879   echo "$as_me: failed program was:" >&5
24880 sed 's/^/| /' conftest.$ac_ext >&5
24881
24882
24883 fi
24884
24885 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24886       conftest$ac_exeext conftest.$ac_ext
24887   ac_cv_sys_largefile_source=unknown
24888   break
24889 done
24890 fi
24891 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
24892 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
24893 case $ac_cv_sys_largefile_source in #(
24894   no | unknown) ;;
24895   *)
24896 cat >>confdefs.h <<_ACEOF
24897 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
24898 _ACEOF
24899 ;;
24900 esac
24901 rm -f conftest*
24902
24903 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
24904 # in glibc 2.1.3, but that breaks too many other things.
24905 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
24906 if test $ac_cv_sys_largefile_source != unknown; then
24907
24908 cat >>confdefs.h <<\_ACEOF
24909 #define HAVE_FSEEKO 1
24910 _ACEOF
24911
24912 fi
24913
24914 CPPFLAGS="$old_CPPFLAGS"
24915 ac_ext=c
24916 ac_cpp='$CPP $CPPFLAGS'
24917 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24918 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24919 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24920
24921 if test "$ac_cv_sys_largefile_source" != no; then
24922     WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_LARGEFILE_SOURCE=$ac_cv_sys_largefile_source"
24923 fi
24924
24925 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
24926 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
24927 if test "${ac_cv_c_bigendian+set}" = set; then
24928   echo $ECHO_N "(cached) $ECHO_C" >&6
24929 else
24930   ac_cv_c_bigendian=unknown
24931 # See if sys/param.h defines the BYTE_ORDER macro.
24932 cat >conftest.$ac_ext <<_ACEOF
24933 /* confdefs.h.  */
24934 _ACEOF
24935 cat confdefs.h >>conftest.$ac_ext
24936 cat >>conftest.$ac_ext <<_ACEOF
24937 /* end confdefs.h.  */
24938 #include <sys/types.h>
24939 #include <sys/param.h>
24940 int
24941 main ()
24942 {
24943
24944 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
24945  bogus endian macros
24946 #endif
24947   ;
24948   return 0;
24949 }
24950 _ACEOF
24951 rm -f conftest.$ac_objext
24952 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
24959   ac_status=$?
24960   grep -v '^ *+' conftest.er1 >conftest.err
24961   rm -f conftest.er1
24962   cat conftest.err >&5
24963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24964   (exit $ac_status); } && {
24965          test -z "$ac_c_werror_flag" ||
24966          test ! -s conftest.err
24967        } && test -s conftest.$ac_objext; then
24968   # It does; now see whether it defined to BIG_ENDIAN or not.
24969 cat >conftest.$ac_ext <<_ACEOF
24970 /* confdefs.h.  */
24971 _ACEOF
24972 cat confdefs.h >>conftest.$ac_ext
24973 cat >>conftest.$ac_ext <<_ACEOF
24974 /* end confdefs.h.  */
24975 #include <sys/types.h>
24976 #include <sys/param.h>
24977 int
24978 main ()
24979 {
24980
24981 #if BYTE_ORDER != BIG_ENDIAN
24982  not big endian
24983 #endif
24984   ;
24985   return 0;
24986 }
24987 _ACEOF
24988 rm -f conftest.$ac_objext
24989 if { (ac_try="$ac_compile"
24990 case "(($ac_try" in
24991   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24992   *) ac_try_echo=$ac_try;;
24993 esac
24994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24995   (eval "$ac_compile") 2>conftest.er1
24996   ac_status=$?
24997   grep -v '^ *+' conftest.er1 >conftest.err
24998   rm -f conftest.er1
24999   cat conftest.err >&5
25000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25001   (exit $ac_status); } && {
25002          test -z "$ac_c_werror_flag" ||
25003          test ! -s conftest.err
25004        } && test -s conftest.$ac_objext; then
25005   ac_cv_c_bigendian=yes
25006 else
25007   echo "$as_me: failed program was:" >&5
25008 sed 's/^/| /' conftest.$ac_ext >&5
25009
25010         ac_cv_c_bigendian=no
25011 fi
25012
25013 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25014 else
25015   echo "$as_me: failed program was:" >&5
25016 sed 's/^/| /' conftest.$ac_ext >&5
25017
25018
25019 fi
25020
25021 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25022 if test $ac_cv_c_bigendian = unknown; then
25023 if test "$cross_compiling" = yes; then
25024   ac_cv_c_bigendian=unknown
25025 else
25026   cat >conftest.$ac_ext <<_ACEOF
25027 /* confdefs.h.  */
25028 _ACEOF
25029 cat confdefs.h >>conftest.$ac_ext
25030 cat >>conftest.$ac_ext <<_ACEOF
25031 /* end confdefs.h.  */
25032 main () {
25033   /* Are we little or big endian?  From Harbison&Steele.  */
25034   union
25035   {
25036     long l;
25037     char c[sizeof (long)];
25038   } u;
25039   u.l = 1;
25040   exit (u.c[sizeof (long) - 1] == 1);
25041 }
25042 _ACEOF
25043 rm -f conftest$ac_exeext
25044 if { (ac_try="$ac_link"
25045 case "(($ac_try" in
25046   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25047   *) ac_try_echo=$ac_try;;
25048 esac
25049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25050   (eval "$ac_link") 2>&5
25051   ac_status=$?
25052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25053   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25054   { (case "(($ac_try" in
25055   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25056   *) ac_try_echo=$ac_try;;
25057 esac
25058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25059   (eval "$ac_try") 2>&5
25060   ac_status=$?
25061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25062   (exit $ac_status); }; }; then
25063   ac_cv_c_bigendian=no
25064 else
25065   echo "$as_me: program exited with status $ac_status" >&5
25066 echo "$as_me: failed program was:" >&5
25067 sed 's/^/| /' conftest.$ac_ext >&5
25068
25069 ( exit $ac_status )
25070 ac_cv_c_bigendian=yes
25071 fi
25072 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25073 fi
25074
25075
25076 fi
25077 fi
25078 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
25079 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
25080 if test $ac_cv_c_bigendian = unknown; then
25081   { 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
25082 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;}
25083 fi
25084 if test $ac_cv_c_bigendian = yes; then
25085   cat >>confdefs.h <<\_ACEOF
25086 #define WORDS_BIGENDIAN 1
25087 _ACEOF
25088
25089 fi
25090
25091
25092
25093
25094     ac_ext=cpp
25095 ac_cpp='$CXXCPP $CPPFLAGS'
25096 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25097 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25098 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25099
25100
25101
25102 for ac_header in iostream
25103 do
25104 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25105 { echo "$as_me:$LINENO: checking for $ac_header" >&5
25106 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
25107 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25108   echo $ECHO_N "(cached) $ECHO_C" >&6
25109 else
25110   cat >conftest.$ac_ext <<_ACEOF
25111 /* confdefs.h.  */
25112 _ACEOF
25113 cat confdefs.h >>conftest.$ac_ext
25114 cat >>conftest.$ac_ext <<_ACEOF
25115 /* end confdefs.h.  */
25116
25117
25118 #include <$ac_header>
25119 _ACEOF
25120 rm -f conftest.$ac_objext
25121 if { (ac_try="$ac_compile"
25122 case "(($ac_try" in
25123   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25124   *) ac_try_echo=$ac_try;;
25125 esac
25126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25127   (eval "$ac_compile") 2>conftest.er1
25128   ac_status=$?
25129   grep -v '^ *+' conftest.er1 >conftest.err
25130   rm -f conftest.er1
25131   cat conftest.err >&5
25132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25133   (exit $ac_status); } && {
25134          test -z "$ac_cxx_werror_flag" ||
25135          test ! -s conftest.err
25136        } && test -s conftest.$ac_objext; then
25137   eval "$as_ac_Header=yes"
25138 else
25139   echo "$as_me: failed program was:" >&5
25140 sed 's/^/| /' conftest.$ac_ext >&5
25141
25142         eval "$as_ac_Header=no"
25143 fi
25144
25145 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25146 fi
25147 ac_res=`eval echo '${'$as_ac_Header'}'`
25148                { echo "$as_me:$LINENO: result: $ac_res" >&5
25149 echo "${ECHO_T}$ac_res" >&6; }
25150 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25151   cat >>confdefs.h <<_ACEOF
25152 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25153 _ACEOF
25154
25155 fi
25156
25157 done
25158
25159
25160     if test "$ac_cv_header_iostream" = "yes" ; then
25161       :
25162     else
25163       cat >>confdefs.h <<\_ACEOF
25164 #define wxUSE_IOSTREAMH 1
25165 _ACEOF
25166
25167     fi
25168
25169     ac_ext=c
25170 ac_cpp='$CPP $CPPFLAGS'
25171 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25172 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25173 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25174
25175
25176
25177
25178   { echo "$as_me:$LINENO: checking if C++ compiler supports the explicit keyword" >&5
25179 echo $ECHO_N "checking if C++ compiler supports the explicit keyword... $ECHO_C" >&6; }
25180 if test "${wx_cv_explicit+set}" = set; then
25181   echo $ECHO_N "(cached) $ECHO_C" >&6
25182 else
25183
25184
25185     ac_ext=cpp
25186 ac_cpp='$CXXCPP $CPPFLAGS'
25187 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25188 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25189 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25190
25191
25192             cat >conftest.$ac_ext <<_ACEOF
25193 /* confdefs.h.  */
25194 _ACEOF
25195 cat confdefs.h >>conftest.$ac_ext
25196 cat >>conftest.$ac_ext <<_ACEOF
25197 /* end confdefs.h.  */
25198
25199         class Foo { public: explicit Foo(int) {} };
25200
25201 int
25202 main ()
25203 {
25204
25205         return 0;
25206
25207   ;
25208   return 0;
25209 }
25210 _ACEOF
25211 rm -f conftest.$ac_objext
25212 if { (ac_try="$ac_compile"
25213 case "(($ac_try" in
25214   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25215   *) ac_try_echo=$ac_try;;
25216 esac
25217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25218   (eval "$ac_compile") 2>conftest.er1
25219   ac_status=$?
25220   grep -v '^ *+' conftest.er1 >conftest.err
25221   rm -f conftest.er1
25222   cat conftest.err >&5
25223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25224   (exit $ac_status); } && {
25225          test -z "$ac_cxx_werror_flag" ||
25226          test ! -s conftest.err
25227        } && test -s conftest.$ac_objext; then
25228
25229         cat >conftest.$ac_ext <<_ACEOF
25230 /* confdefs.h.  */
25231 _ACEOF
25232 cat confdefs.h >>conftest.$ac_ext
25233 cat >>conftest.$ac_ext <<_ACEOF
25234 /* end confdefs.h.  */
25235
25236                 class Foo { public: explicit Foo(int) {} };
25237                 static void TakeFoo(const Foo& foo) { }
25238
25239 int
25240 main ()
25241 {
25242
25243                 TakeFoo(17);
25244                 return 0;
25245
25246   ;
25247   return 0;
25248 }
25249 _ACEOF
25250 rm -f conftest.$ac_objext
25251 if { (ac_try="$ac_compile"
25252 case "(($ac_try" in
25253   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25254   *) ac_try_echo=$ac_try;;
25255 esac
25256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25257   (eval "$ac_compile") 2>conftest.er1
25258   ac_status=$?
25259   grep -v '^ *+' conftest.er1 >conftest.err
25260   rm -f conftest.er1
25261   cat conftest.err >&5
25262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25263   (exit $ac_status); } && {
25264          test -z "$ac_cxx_werror_flag" ||
25265          test ! -s conftest.err
25266        } && test -s conftest.$ac_objext; then
25267   wx_cv_explicit=no
25268 else
25269   echo "$as_me: failed program was:" >&5
25270 sed 's/^/| /' conftest.$ac_ext >&5
25271
25272         wx_cv_explicit=yes
25273
25274 fi
25275
25276 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25277
25278 else
25279   echo "$as_me: failed program was:" >&5
25280 sed 's/^/| /' conftest.$ac_ext >&5
25281
25282         wx_cv_explicit=no
25283
25284 fi
25285
25286 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25287
25288     ac_ext=c
25289 ac_cpp='$CPP $CPPFLAGS'
25290 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25291 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25292 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25293
25294
25295 fi
25296 { echo "$as_me:$LINENO: result: $wx_cv_explicit" >&5
25297 echo "${ECHO_T}$wx_cv_explicit" >&6; }
25298
25299   if test "$wx_cv_explicit" = "yes"; then
25300     cat >>confdefs.h <<\_ACEOF
25301 #define HAVE_EXPLICIT 1
25302 _ACEOF
25303
25304   fi
25305
25306
25307 if test "x$SUNCXX" = xyes; then
25308     CXXFLAGS="-features=tmplife $CXXFLAGS"
25309 fi
25310
25311 if test "x$SUNCC" = xyes; then
25312     CFLAGS="-erroff=E_NO_EXPLICIT_TYPE_GIVEN $CFLAGS"
25313 fi
25314
25315 if test "x$SGICC" = "xyes"; then
25316     { echo "$as_me:$LINENO: checking if cc version is 7.4.4 or greater" >&5
25317 echo $ECHO_N "checking if cc version is 7.4.4 or greater... $ECHO_C" >&6; }
25318 if test "${wx_cv_prog_sgicc744+set}" = set; then
25319   echo $ECHO_N "(cached) $ECHO_C" >&6
25320 else
25321
25322             cat >conftest.$ac_ext <<_ACEOF
25323 /* confdefs.h.  */
25324 _ACEOF
25325 cat confdefs.h >>conftest.$ac_ext
25326 cat >>conftest.$ac_ext <<_ACEOF
25327 /* end confdefs.h.  */
25328
25329 int
25330 main ()
25331 {
25332
25333                     #if _SGI_COMPILER_VERSION >= 744
25334                     chock me: mipsPro is 7.4.4 or later
25335                     #endif
25336
25337   ;
25338   return 0;
25339 }
25340 _ACEOF
25341 rm -f conftest.$ac_objext
25342 if { (ac_try="$ac_compile"
25343 case "(($ac_try" in
25344   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25345   *) ac_try_echo=$ac_try;;
25346 esac
25347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25348   (eval "$ac_compile") 2>conftest.er1
25349   ac_status=$?
25350   grep -v '^ *+' conftest.er1 >conftest.err
25351   rm -f conftest.er1
25352   cat conftest.err >&5
25353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25354   (exit $ac_status); } && {
25355          test -z "$ac_c_werror_flag" ||
25356          test ! -s conftest.err
25357        } && test -s conftest.$ac_objext; then
25358   wx_cv_prog_sgicc744=no
25359 else
25360   echo "$as_me: failed program was:" >&5
25361 sed 's/^/| /' conftest.$ac_ext >&5
25362
25363         wx_cv_prog_sgicc744=yes
25364
25365 fi
25366
25367 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25368
25369
25370 fi
25371 { echo "$as_me:$LINENO: result: $wx_cv_prog_sgicc744" >&5
25372 echo "${ECHO_T}$wx_cv_prog_sgicc744" >&6; }
25373
25374     if test "x$wx_cv_prog_sgicc744" = "xyes"; then
25375         CFLAGS="-woff 3970 $CFLAGS"
25376     fi
25377 fi
25378 if test "x$SGICXX" = "xyes"; then
25379     { echo "$as_me:$LINENO: checking if CC version is 7.4.4 or greater" >&5
25380 echo $ECHO_N "checking if CC version is 7.4.4 or greater... $ECHO_C" >&6; }
25381 if test "${wx_cv_prog_sgicxx744+set}" = set; then
25382   echo $ECHO_N "(cached) $ECHO_C" >&6
25383 else
25384
25385             ac_ext=cpp
25386 ac_cpp='$CXXCPP $CPPFLAGS'
25387 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25388 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25389 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25390
25391             cat >conftest.$ac_ext <<_ACEOF
25392 /* confdefs.h.  */
25393 _ACEOF
25394 cat confdefs.h >>conftest.$ac_ext
25395 cat >>conftest.$ac_ext <<_ACEOF
25396 /* end confdefs.h.  */
25397
25398 int
25399 main ()
25400 {
25401
25402                     #if _SGI_COMPILER_VERSION >= 744
25403                     chock me: mipsPro is 7.4.4 or later
25404                     #endif
25405
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_prog_sgicxx744=no
25428 else
25429   echo "$as_me: failed program was:" >&5
25430 sed 's/^/| /' conftest.$ac_ext >&5
25431
25432         wx_cv_prog_sgicxx744=yes
25433
25434 fi
25435
25436 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25437             ac_ext=c
25438 ac_cpp='$CPP $CPPFLAGS'
25439 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25440 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25441 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25442
25443
25444
25445 fi
25446 { echo "$as_me:$LINENO: result: $wx_cv_prog_sgicxx744" >&5
25447 echo "${ECHO_T}$wx_cv_prog_sgicxx744" >&6; }
25448
25449     if test "x$wx_cv_prog_sgicxx744" = "xyes"; then
25450         CXXFLAGS="-woff 3970 $CXXFLAGS"
25451     fi
25452 fi
25453
25454 if test "x$HPCC" = "xyes"; then
25455                     CFLAGS="+W 2011,2450 $CFLAGS"
25456 fi
25457 if test "x$HPCXX" = "xyes"; then
25458                             CXXFLAGS="+W 2340,4232 $CXXFLAGS"
25459 fi
25460
25461 if test "x$COMPAQCXX" = "xyes"; then
25462                                 CXXFLAGS="-w0 -msg_disable basclsnondto,unrimpret,intconlosbit"
25463 fi
25464
25465 ac_ext=cpp
25466 ac_cpp='$CXXCPP $CPPFLAGS'
25467 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25468 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25469 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25470
25471
25472 if test "$wxUSE_STD_STRING" = "yes" -o "$wxUSE_STL" = "yes"; then
25473     if test "$wxUSE_UNICODE" = "yes"; then
25474         std_string="std::wstring"
25475         char_type="wchar_t"
25476     else
25477         std_string="std::string"
25478         char_type="char"
25479     fi
25480
25481         { echo "$as_me:$LINENO: checking for $std_string in <string>" >&5
25482 echo $ECHO_N "checking for $std_string in <string>... $ECHO_C" >&6; }
25483 if test "${wx_cv_class_stdstring+set}" = set; then
25484   echo $ECHO_N "(cached) $ECHO_C" >&6
25485 else
25486
25487             cat >conftest.$ac_ext <<_ACEOF
25488 /* confdefs.h.  */
25489 _ACEOF
25490 cat confdefs.h >>conftest.$ac_ext
25491 cat >>conftest.$ac_ext <<_ACEOF
25492 /* end confdefs.h.  */
25493 #include <string>
25494 int
25495 main ()
25496 {
25497 $std_string foo;
25498   ;
25499   return 0;
25500 }
25501 _ACEOF
25502 rm -f conftest.$ac_objext
25503 if { (ac_try="$ac_compile"
25504 case "(($ac_try" in
25505   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25506   *) ac_try_echo=$ac_try;;
25507 esac
25508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25509   (eval "$ac_compile") 2>conftest.er1
25510   ac_status=$?
25511   grep -v '^ *+' conftest.er1 >conftest.err
25512   rm -f conftest.er1
25513   cat conftest.err >&5
25514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25515   (exit $ac_status); } && {
25516          test -z "$ac_cxx_werror_flag" ||
25517          test ! -s conftest.err
25518        } && test -s conftest.$ac_objext; then
25519   wx_cv_class_stdstring=yes
25520 else
25521   echo "$as_me: failed program was:" >&5
25522 sed 's/^/| /' conftest.$ac_ext >&5
25523
25524         wx_cv_class_stdstring=no
25525
25526 fi
25527
25528 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25529
25530
25531 fi
25532 { echo "$as_me:$LINENO: result: $wx_cv_class_stdstring" >&5
25533 echo "${ECHO_T}$wx_cv_class_stdstring" >&6; }
25534
25535     if test "$wx_cv_class_stdstring" = yes; then
25536         if test "$wxUSE_UNICODE" = "yes"; then
25537             cat >>confdefs.h <<\_ACEOF
25538 #define HAVE_STD_WSTRING 1
25539 _ACEOF
25540
25541         fi
25542                     else
25543         { echo "$as_me:$LINENO: checking if std::basic_string<$char_type> works" >&5
25544 echo $ECHO_N "checking if std::basic_string<$char_type> works... $ECHO_C" >&6; }
25545 if test "${wx_cv_class_stdbasicstring+set}" = set; then
25546   echo $ECHO_N "(cached) $ECHO_C" >&6
25547 else
25548
25549                 cat >conftest.$ac_ext <<_ACEOF
25550 /* confdefs.h.  */
25551 _ACEOF
25552 cat confdefs.h >>conftest.$ac_ext
25553 cat >>conftest.$ac_ext <<_ACEOF
25554 /* end confdefs.h.  */
25555
25556                     #ifdef HAVE_WCHAR_H
25557                     #  ifdef __CYGWIN__
25558                     #    include <stddef.h>
25559                     #  endif
25560                     #  include <wchar.h>
25561                     #endif
25562                     #ifdef HAVE_STDLIB_H
25563                     #  include <stdlib.h>
25564                     #endif
25565                     #include <stdio.h>
25566                     #include <string>
25567
25568 int
25569 main ()
25570 {
25571 std::basic_string<$char_type> foo;
25572                      const $char_type* dummy = foo.c_str();
25573   ;
25574   return 0;
25575 }
25576 _ACEOF
25577 rm -f conftest.$ac_objext
25578 if { (ac_try="$ac_compile"
25579 case "(($ac_try" in
25580   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25581   *) ac_try_echo=$ac_try;;
25582 esac
25583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25584   (eval "$ac_compile") 2>conftest.er1
25585   ac_status=$?
25586   grep -v '^ *+' conftest.er1 >conftest.err
25587   rm -f conftest.er1
25588   cat conftest.err >&5
25589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25590   (exit $ac_status); } && {
25591          test -z "$ac_cxx_werror_flag" ||
25592          test ! -s conftest.err
25593        } && test -s conftest.$ac_objext; then
25594   wx_cv_class_stdbasicstring=yes
25595 else
25596   echo "$as_me: failed program was:" >&5
25597 sed 's/^/| /' conftest.$ac_ext >&5
25598
25599         wx_cv_class_stdbasicstring=no
25600
25601 fi
25602
25603 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25604
25605
25606 fi
25607 { echo "$as_me:$LINENO: result: $wx_cv_class_stdbasicstring" >&5
25608 echo "${ECHO_T}$wx_cv_class_stdbasicstring" >&6; }
25609
25610         if test "$wx_cv_class_stdbasicstring" != yes; then
25611             if test "$wxUSE_STL" = "yes"; then
25612                 { { echo "$as_me:$LINENO: error: Can't use --enable-stl without $std_string or std::basic_string<$char_type>" >&5
25613 echo "$as_me: error: Can't use --enable-stl without $std_string or std::basic_string<$char_type>" >&2;}
25614    { (exit 1); exit 1; }; }
25615             elif test "$wxUSE_STD_STRING" = "yes"; then
25616                 { { echo "$as_me:$LINENO: error: Can't use --enable-std_string without $std_string or std::basic_string<$char_type>" >&5
25617 echo "$as_me: error: Can't use --enable-std_string without $std_string or std::basic_string<$char_type>" >&2;}
25618    { (exit 1); exit 1; }; }
25619             else
25620                 { echo "$as_me:$LINENO: WARNING: No $std_string or std::basic_string<$char_type>, switching to --disable-std_string" >&5
25621 echo "$as_me: WARNING: No $std_string or std::basic_string<$char_type>, switching to --disable-std_string" >&2;}
25622                 wxUSE_STD_STRING=no
25623             fi
25624         fi
25625     fi
25626 fi
25627
25628 if test "$wxUSE_STD_IOSTREAM" = "yes"; then
25629     { echo "$as_me:$LINENO: checking for std::istream" >&5
25630 echo $ECHO_N "checking for std::istream... $ECHO_C" >&6; }
25631 if test "${ac_cv_type_std__istream+set}" = set; then
25632   echo $ECHO_N "(cached) $ECHO_C" >&6
25633 else
25634   cat >conftest.$ac_ext <<_ACEOF
25635 /* confdefs.h.  */
25636 _ACEOF
25637 cat confdefs.h >>conftest.$ac_ext
25638 cat >>conftest.$ac_ext <<_ACEOF
25639 /* end confdefs.h.  */
25640 #include <iostream>
25641
25642 typedef std::istream ac__type_new_;
25643 int
25644 main ()
25645 {
25646 if ((ac__type_new_ *) 0)
25647   return 0;
25648 if (sizeof (ac__type_new_))
25649   return 0;
25650   ;
25651   return 0;
25652 }
25653 _ACEOF
25654 rm -f conftest.$ac_objext
25655 if { (ac_try="$ac_compile"
25656 case "(($ac_try" in
25657   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25658   *) ac_try_echo=$ac_try;;
25659 esac
25660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25661   (eval "$ac_compile") 2>conftest.er1
25662   ac_status=$?
25663   grep -v '^ *+' conftest.er1 >conftest.err
25664   rm -f conftest.er1
25665   cat conftest.err >&5
25666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25667   (exit $ac_status); } && {
25668          test -z "$ac_cxx_werror_flag" ||
25669          test ! -s conftest.err
25670        } && test -s conftest.$ac_objext; then
25671   ac_cv_type_std__istream=yes
25672 else
25673   echo "$as_me: failed program was:" >&5
25674 sed 's/^/| /' conftest.$ac_ext >&5
25675
25676         ac_cv_type_std__istream=no
25677 fi
25678
25679 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25680 fi
25681 { echo "$as_me:$LINENO: result: $ac_cv_type_std__istream" >&5
25682 echo "${ECHO_T}$ac_cv_type_std__istream" >&6; }
25683 if test $ac_cv_type_std__istream = yes; then
25684
25685 cat >>confdefs.h <<_ACEOF
25686 #define HAVE_STD__ISTREAM 1
25687 _ACEOF
25688
25689
25690 else
25691   wxUSE_STD_IOSTREAM=no
25692 fi
25693 { echo "$as_me:$LINENO: checking for std::ostream" >&5
25694 echo $ECHO_N "checking for std::ostream... $ECHO_C" >&6; }
25695 if test "${ac_cv_type_std__ostream+set}" = set; then
25696   echo $ECHO_N "(cached) $ECHO_C" >&6
25697 else
25698   cat >conftest.$ac_ext <<_ACEOF
25699 /* confdefs.h.  */
25700 _ACEOF
25701 cat confdefs.h >>conftest.$ac_ext
25702 cat >>conftest.$ac_ext <<_ACEOF
25703 /* end confdefs.h.  */
25704 #include <iostream>
25705
25706 typedef std::ostream ac__type_new_;
25707 int
25708 main ()
25709 {
25710 if ((ac__type_new_ *) 0)
25711   return 0;
25712 if (sizeof (ac__type_new_))
25713   return 0;
25714   ;
25715   return 0;
25716 }
25717 _ACEOF
25718 rm -f conftest.$ac_objext
25719 if { (ac_try="$ac_compile"
25720 case "(($ac_try" in
25721   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25722   *) ac_try_echo=$ac_try;;
25723 esac
25724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25725   (eval "$ac_compile") 2>conftest.er1
25726   ac_status=$?
25727   grep -v '^ *+' conftest.er1 >conftest.err
25728   rm -f conftest.er1
25729   cat conftest.err >&5
25730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25731   (exit $ac_status); } && {
25732          test -z "$ac_cxx_werror_flag" ||
25733          test ! -s conftest.err
25734        } && test -s conftest.$ac_objext; then
25735   ac_cv_type_std__ostream=yes
25736 else
25737   echo "$as_me: failed program was:" >&5
25738 sed 's/^/| /' conftest.$ac_ext >&5
25739
25740         ac_cv_type_std__ostream=no
25741 fi
25742
25743 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25744 fi
25745 { echo "$as_me:$LINENO: result: $ac_cv_type_std__ostream" >&5
25746 echo "${ECHO_T}$ac_cv_type_std__ostream" >&6; }
25747 if test $ac_cv_type_std__ostream = yes; then
25748
25749 cat >>confdefs.h <<_ACEOF
25750 #define HAVE_STD__OSTREAM 1
25751 _ACEOF
25752
25753
25754 else
25755   wxUSE_STD_IOSTREAM=no
25756 fi
25757
25758
25759     if test "$wxUSE_STD_IOSTREAM" != "yes"; then
25760         if test "$wxUSE_STD_IOSTREAM" = "yes"; then
25761             { { echo "$as_me:$LINENO: error: Can't use --enable-std_iostreams without std::istream and std::ostream" >&5
25762 echo "$as_me: error: Can't use --enable-std_iostreams without std::istream and std::ostream" >&2;}
25763    { (exit 1); exit 1; }; }
25764         else
25765             { echo "$as_me:$LINENO: WARNING: No std::iostreams, switching to --disable-std_iostreams" >&5
25766 echo "$as_me: WARNING: No std::iostreams, switching to --disable-std_iostreams" >&2;}
25767         fi
25768     fi
25769 fi
25770
25771 if test "$wxUSE_STL" = "yes"; then
25772         { echo "$as_me:$LINENO: checking for basic STL functionality" >&5
25773 echo $ECHO_N "checking for basic STL functionality... $ECHO_C" >&6; }
25774 if test "${wx_cv_lib_stl+set}" = set; then
25775   echo $ECHO_N "(cached) $ECHO_C" >&6
25776 else
25777   cat >conftest.$ac_ext <<_ACEOF
25778 /* confdefs.h.  */
25779 _ACEOF
25780 cat confdefs.h >>conftest.$ac_ext
25781 cat >>conftest.$ac_ext <<_ACEOF
25782 /* end confdefs.h.  */
25783 #include <string>
25784             #include <functional>
25785             #include <algorithm>
25786             #include <vector>
25787             #include <list>
25788 int
25789 main ()
25790 {
25791 std::vector<int> moo;
25792              std::list<int> foo;
25793              std::vector<int>::iterator it =
25794                  std::find_if(moo.begin(), moo.end(),
25795                               std::bind2nd(std::less<int>(), 3));
25796   ;
25797   return 0;
25798 }
25799 _ACEOF
25800 rm -f conftest.$ac_objext
25801 if { (ac_try="$ac_compile"
25802 case "(($ac_try" in
25803   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25804   *) ac_try_echo=$ac_try;;
25805 esac
25806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25807   (eval "$ac_compile") 2>conftest.er1
25808   ac_status=$?
25809   grep -v '^ *+' conftest.er1 >conftest.err
25810   rm -f conftest.er1
25811   cat conftest.err >&5
25812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25813   (exit $ac_status); } && {
25814          test -z "$ac_cxx_werror_flag" ||
25815          test ! -s conftest.err
25816        } && test -s conftest.$ac_objext; then
25817   wx_cv_lib_stl=yes
25818 else
25819   echo "$as_me: failed program was:" >&5
25820 sed 's/^/| /' conftest.$ac_ext >&5
25821
25822         wx_cv_lib_stl=no
25823
25824 fi
25825
25826 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25827
25828 fi
25829 { echo "$as_me:$LINENO: result: $wx_cv_lib_stl" >&5
25830 echo "${ECHO_T}$wx_cv_lib_stl" >&6; }
25831
25832     if test "$wx_cv_lib_stl" != yes; then
25833          { { echo "$as_me:$LINENO: error: Can't use --enable-stl as basic STL functionality is missing" >&5
25834 echo "$as_me: error: Can't use --enable-stl as basic STL functionality is missing" >&2;}
25835    { (exit 1); exit 1; }; }
25836     fi
25837
25838         { echo "$as_me:$LINENO: checking for compliant std::string::compare" >&5
25839 echo $ECHO_N "checking for compliant std::string::compare... $ECHO_C" >&6; }
25840 if test "${wx_cv_func_stdstring_compare+set}" = set; then
25841   echo $ECHO_N "(cached) $ECHO_C" >&6
25842 else
25843   cat >conftest.$ac_ext <<_ACEOF
25844 /* confdefs.h.  */
25845 _ACEOF
25846 cat confdefs.h >>conftest.$ac_ext
25847 cat >>conftest.$ac_ext <<_ACEOF
25848 /* end confdefs.h.  */
25849 #include <string>
25850 int
25851 main ()
25852 {
25853 std::string foo, bar;
25854             foo.compare(bar);
25855             foo.compare(1, 1, bar);
25856             foo.compare(1, 1, bar, 1, 1);
25857             foo.compare("");
25858             foo.compare(1, 1, "");
25859             foo.compare(1, 1, "", 2);
25860   ;
25861   return 0;
25862 }
25863 _ACEOF
25864 rm -f conftest.$ac_objext
25865 if { (ac_try="$ac_compile"
25866 case "(($ac_try" in
25867   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25868   *) ac_try_echo=$ac_try;;
25869 esac
25870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25871   (eval "$ac_compile") 2>conftest.er1
25872   ac_status=$?
25873   grep -v '^ *+' conftest.er1 >conftest.err
25874   rm -f conftest.er1
25875   cat conftest.err >&5
25876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25877   (exit $ac_status); } && {
25878          test -z "$ac_cxx_werror_flag" ||
25879          test ! -s conftest.err
25880        } && test -s conftest.$ac_objext; then
25881   wx_cv_func_stdstring_compare=yes
25882 else
25883   echo "$as_me: failed program was:" >&5
25884 sed 's/^/| /' conftest.$ac_ext >&5
25885
25886         wx_cv_func_stdstring_compare=no
25887
25888 fi
25889
25890 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25891
25892 fi
25893 { echo "$as_me:$LINENO: result: $wx_cv_func_stdstring_compare" >&5
25894 echo "${ECHO_T}$wx_cv_func_stdstring_compare" >&6; }
25895
25896     if test "$wx_cv_func_stdstring_compare" = yes; then
25897         cat >>confdefs.h <<\_ACEOF
25898 #define HAVE_STD_STRING_COMPARE 1
25899 _ACEOF
25900
25901     fi
25902
25903     if test "$wx_cv_class_gnuhashmapset" = yes; then
25904          cat >>confdefs.h <<\_ACEOF
25905 #define HAVE_EXT_HASH_MAP 1
25906 _ACEOF
25907
25908          cat >>confdefs.h <<\_ACEOF
25909 #define HAVE_GNU_CXX_HASH_MAP 1
25910 _ACEOF
25911
25912     fi
25913
25914     { echo "$as_me:$LINENO: checking for unordered_map" >&5
25915 echo $ECHO_N "checking for unordered_map... $ECHO_C" >&6; }
25916 if test "${ac_cv_header_unordered_map+set}" = set; then
25917   echo $ECHO_N "(cached) $ECHO_C" >&6
25918 else
25919   cat >conftest.$ac_ext <<_ACEOF
25920 /* confdefs.h.  */
25921 _ACEOF
25922 cat confdefs.h >>conftest.$ac_ext
25923 cat >>conftest.$ac_ext <<_ACEOF
25924 /* end confdefs.h.  */
25925
25926
25927
25928 #include <unordered_map>
25929 _ACEOF
25930 rm -f conftest.$ac_objext
25931 if { (ac_try="$ac_compile"
25932 case "(($ac_try" in
25933   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25934   *) ac_try_echo=$ac_try;;
25935 esac
25936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25937   (eval "$ac_compile") 2>conftest.er1
25938   ac_status=$?
25939   grep -v '^ *+' conftest.er1 >conftest.err
25940   rm -f conftest.er1
25941   cat conftest.err >&5
25942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25943   (exit $ac_status); } && {
25944          test -z "$ac_cxx_werror_flag" ||
25945          test ! -s conftest.err
25946        } && test -s conftest.$ac_objext; then
25947   ac_cv_header_unordered_map=yes
25948 else
25949   echo "$as_me: failed program was:" >&5
25950 sed 's/^/| /' conftest.$ac_ext >&5
25951
25952         ac_cv_header_unordered_map=no
25953 fi
25954
25955 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25956 fi
25957 { echo "$as_me:$LINENO: result: $ac_cv_header_unordered_map" >&5
25958 echo "${ECHO_T}$ac_cv_header_unordered_map" >&6; }
25959 if test $ac_cv_header_unordered_map = yes; then
25960   { echo "$as_me:$LINENO: checking for unordered_map and unordered_set in std" >&5
25961 echo $ECHO_N "checking for unordered_map and unordered_set in std... $ECHO_C" >&6; }
25962 if test "${wx_cv_class_stdunorderedmapset+set}" = set; then
25963   echo $ECHO_N "(cached) $ECHO_C" >&6
25964 else
25965   cat >conftest.$ac_ext <<_ACEOF
25966 /* confdefs.h.  */
25967 _ACEOF
25968 cat confdefs.h >>conftest.$ac_ext
25969 cat >>conftest.$ac_ext <<_ACEOF
25970 /* end confdefs.h.  */
25971 #include <unordered_map>
25972                 #include <unordered_set>
25973 int
25974 main ()
25975 {
25976 std::unordered_map<double*, char*> test1;
25977                  std::unordered_set<char*> test2;
25978   ;
25979   return 0;
25980 }
25981 _ACEOF
25982 rm -f conftest.$ac_objext
25983 if { (ac_try="$ac_compile"
25984 case "(($ac_try" in
25985   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25986   *) ac_try_echo=$ac_try;;
25987 esac
25988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25989   (eval "$ac_compile") 2>conftest.er1
25990   ac_status=$?
25991   grep -v '^ *+' conftest.er1 >conftest.err
25992   rm -f conftest.er1
25993   cat conftest.err >&5
25994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25995   (exit $ac_status); } && {
25996          test -z "$ac_cxx_werror_flag" ||
25997          test ! -s conftest.err
25998        } && test -s conftest.$ac_objext; then
25999   wx_cv_class_stdunorderedmapset=yes
26000 else
26001   echo "$as_me: failed program was:" >&5
26002 sed 's/^/| /' conftest.$ac_ext >&5
26003
26004         wx_cv_class_stdunorderedmapset=no
26005 fi
26006
26007 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26008
26009
26010 fi
26011 { echo "$as_me:$LINENO: result: $wx_cv_class_stdunorderedmapset" >&5
26012 echo "${ECHO_T}$wx_cv_class_stdunorderedmapset" >&6; }
26013 fi
26014
26015
26016
26017     if test "$wx_cv_class_stdunorderedmapset" = yes; then
26018          cat >>confdefs.h <<\_ACEOF
26019 #define HAVE_STD_UNORDERED_MAP 1
26020 _ACEOF
26021
26022          cat >>confdefs.h <<\_ACEOF
26023 #define HAVE_STD_UNORDERED_SET 1
26024 _ACEOF
26025
26026     else
26027         { echo "$as_me:$LINENO: checking for tr1/unordered_map" >&5
26028 echo $ECHO_N "checking for tr1/unordered_map... $ECHO_C" >&6; }
26029 if test "${ac_cv_header_tr1_unordered_map+set}" = set; then
26030   echo $ECHO_N "(cached) $ECHO_C" >&6
26031 else
26032   cat >conftest.$ac_ext <<_ACEOF
26033 /* confdefs.h.  */
26034 _ACEOF
26035 cat confdefs.h >>conftest.$ac_ext
26036 cat >>conftest.$ac_ext <<_ACEOF
26037 /* end confdefs.h.  */
26038
26039
26040
26041 #include <tr1/unordered_map>
26042 _ACEOF
26043 rm -f conftest.$ac_objext
26044 if { (ac_try="$ac_compile"
26045 case "(($ac_try" in
26046   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26047   *) ac_try_echo=$ac_try;;
26048 esac
26049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26050   (eval "$ac_compile") 2>conftest.er1
26051   ac_status=$?
26052   grep -v '^ *+' conftest.er1 >conftest.err
26053   rm -f conftest.er1
26054   cat conftest.err >&5
26055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26056   (exit $ac_status); } && {
26057          test -z "$ac_cxx_werror_flag" ||
26058          test ! -s conftest.err
26059        } && test -s conftest.$ac_objext; then
26060   ac_cv_header_tr1_unordered_map=yes
26061 else
26062   echo "$as_me: failed program was:" >&5
26063 sed 's/^/| /' conftest.$ac_ext >&5
26064
26065         ac_cv_header_tr1_unordered_map=no
26066 fi
26067
26068 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26069 fi
26070 { echo "$as_me:$LINENO: result: $ac_cv_header_tr1_unordered_map" >&5
26071 echo "${ECHO_T}$ac_cv_header_tr1_unordered_map" >&6; }
26072 if test $ac_cv_header_tr1_unordered_map = yes; then
26073   { echo "$as_me:$LINENO: checking for unordered_map and unordered_set in std::tr1" >&5
26074 echo $ECHO_N "checking for unordered_map and unordered_set in std::tr1... $ECHO_C" >&6; }
26075 if test "${wx_cv_class_tr1unorderedmapset+set}" = set; then
26076   echo $ECHO_N "(cached) $ECHO_C" >&6
26077 else
26078   cat >conftest.$ac_ext <<_ACEOF
26079 /* confdefs.h.  */
26080 _ACEOF
26081 cat confdefs.h >>conftest.$ac_ext
26082 cat >>conftest.$ac_ext <<_ACEOF
26083 /* end confdefs.h.  */
26084 #include <tr1/unordered_map>
26085                     #include <tr1/unordered_set>
26086 int
26087 main ()
26088 {
26089 std::tr1::unordered_map<double*, char*> test1;
26090                      std::tr1::unordered_set<char*> test2;
26091             #if defined(__GNUC__) && (__GNUC__==4) && (__GNUC_MINOR__<2)
26092             #error can't use unordered_{map,set} with gcc-4.[01]: http://gcc.gnu.org/PR24389
26093             #endif
26094   ;
26095   return 0;
26096 }
26097 _ACEOF
26098 rm -f conftest.$ac_objext
26099 if { (ac_try="$ac_compile"
26100 case "(($ac_try" in
26101   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26102   *) ac_try_echo=$ac_try;;
26103 esac
26104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26105   (eval "$ac_compile") 2>conftest.er1
26106   ac_status=$?
26107   grep -v '^ *+' conftest.er1 >conftest.err
26108   rm -f conftest.er1
26109   cat conftest.err >&5
26110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26111   (exit $ac_status); } && {
26112          test -z "$ac_cxx_werror_flag" ||
26113          test ! -s conftest.err
26114        } && test -s conftest.$ac_objext; then
26115   wx_cv_class_tr1unorderedmapset=yes
26116 else
26117   echo "$as_me: failed program was:" >&5
26118 sed 's/^/| /' conftest.$ac_ext >&5
26119
26120         wx_cv_class_tr1unorderedmapset=no
26121 fi
26122
26123 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26124
26125
26126 fi
26127 { echo "$as_me:$LINENO: result: $wx_cv_class_tr1unorderedmapset" >&5
26128 echo "${ECHO_T}$wx_cv_class_tr1unorderedmapset" >&6; }
26129 fi
26130
26131
26132
26133         if test "$wx_cv_class_tr1unorderedmapset" = yes; then
26134             cat >>confdefs.h <<\_ACEOF
26135 #define HAVE_TR1_UNORDERED_MAP 1
26136 _ACEOF
26137
26138             cat >>confdefs.h <<\_ACEOF
26139 #define HAVE_TR1_UNORDERED_SET 1
26140 _ACEOF
26141
26142         else
26143                         { echo "$as_me:$LINENO: checking for hash_map" >&5
26144 echo $ECHO_N "checking for hash_map... $ECHO_C" >&6; }
26145 if test "${ac_cv_header_hash_map+set}" = set; then
26146   echo $ECHO_N "(cached) $ECHO_C" >&6
26147 else
26148   cat >conftest.$ac_ext <<_ACEOF
26149 /* confdefs.h.  */
26150 _ACEOF
26151 cat confdefs.h >>conftest.$ac_ext
26152 cat >>conftest.$ac_ext <<_ACEOF
26153 /* end confdefs.h.  */
26154
26155
26156
26157 #include <hash_map>
26158 _ACEOF
26159 rm -f conftest.$ac_objext
26160 if { (ac_try="$ac_compile"
26161 case "(($ac_try" in
26162   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26163   *) ac_try_echo=$ac_try;;
26164 esac
26165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26166   (eval "$ac_compile") 2>conftest.er1
26167   ac_status=$?
26168   grep -v '^ *+' conftest.er1 >conftest.err
26169   rm -f conftest.er1
26170   cat conftest.err >&5
26171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26172   (exit $ac_status); } && {
26173          test -z "$ac_cxx_werror_flag" ||
26174          test ! -s conftest.err
26175        } && test -s conftest.$ac_objext; then
26176   ac_cv_header_hash_map=yes
26177 else
26178   echo "$as_me: failed program was:" >&5
26179 sed 's/^/| /' conftest.$ac_ext >&5
26180
26181         ac_cv_header_hash_map=no
26182 fi
26183
26184 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26185 fi
26186 { echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5
26187 echo "${ECHO_T}$ac_cv_header_hash_map" >&6; }
26188 if test $ac_cv_header_hash_map = yes; then
26189   { echo "$as_me:$LINENO: checking for std::hash_map and hash_set" >&5
26190 echo $ECHO_N "checking for std::hash_map and hash_set... $ECHO_C" >&6; }
26191 if test "${wx_cv_class_stdhashmapset+set}" = set; then
26192   echo $ECHO_N "(cached) $ECHO_C" >&6
26193 else
26194   cat >conftest.$ac_ext <<_ACEOF
26195 /* confdefs.h.  */
26196 _ACEOF
26197 cat confdefs.h >>conftest.$ac_ext
26198 cat >>conftest.$ac_ext <<_ACEOF
26199 /* end confdefs.h.  */
26200 #include <hash_map>
26201                         #include <hash_set>
26202 int
26203 main ()
26204 {
26205 std::hash_map<double*, char*, std::hash<double*>, std::equal_to<double*> > test1;
26206                          std::hash_set<char*, std::hash<char*>, std::equal_to<char*> > test2;
26207   ;
26208   return 0;
26209 }
26210 _ACEOF
26211 rm -f conftest.$ac_objext
26212 if { (ac_try="$ac_compile"
26213 case "(($ac_try" in
26214   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26215   *) ac_try_echo=$ac_try;;
26216 esac
26217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26218   (eval "$ac_compile") 2>conftest.er1
26219   ac_status=$?
26220   grep -v '^ *+' conftest.er1 >conftest.err
26221   rm -f conftest.er1
26222   cat conftest.err >&5
26223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26224   (exit $ac_status); } && {
26225          test -z "$ac_cxx_werror_flag" ||
26226          test ! -s conftest.err
26227        } && test -s conftest.$ac_objext; then
26228   wx_cv_class_stdhashmapset=yes
26229 else
26230   echo "$as_me: failed program was:" >&5
26231 sed 's/^/| /' conftest.$ac_ext >&5
26232
26233         wx_cv_class_stdhashmapset=no
26234 fi
26235
26236 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26237
26238
26239 fi
26240 { echo "$as_me:$LINENO: result: $wx_cv_class_stdhashmapset" >&5
26241 echo "${ECHO_T}$wx_cv_class_stdhashmapset" >&6; }
26242 fi
26243
26244
26245
26246             if test "$wx_cv_class_stdhashmapset" = yes; then
26247                 cat >>confdefs.h <<\_ACEOF
26248 #define HAVE_HASH_MAP 1
26249 _ACEOF
26250
26251                 cat >>confdefs.h <<\_ACEOF
26252 #define HAVE_STD_HASH_MAP 1
26253 _ACEOF
26254
26255             fi
26256
26257             { echo "$as_me:$LINENO: checking for ext/hash_map" >&5
26258 echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6; }
26259 if test "${ac_cv_header_ext_hash_map+set}" = set; then
26260   echo $ECHO_N "(cached) $ECHO_C" >&6
26261 else
26262   cat >conftest.$ac_ext <<_ACEOF
26263 /* confdefs.h.  */
26264 _ACEOF
26265 cat confdefs.h >>conftest.$ac_ext
26266 cat >>conftest.$ac_ext <<_ACEOF
26267 /* end confdefs.h.  */
26268
26269
26270
26271 #include <ext/hash_map>
26272 _ACEOF
26273 rm -f conftest.$ac_objext
26274 if { (ac_try="$ac_compile"
26275 case "(($ac_try" in
26276   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26277   *) ac_try_echo=$ac_try;;
26278 esac
26279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26280   (eval "$ac_compile") 2>conftest.er1
26281   ac_status=$?
26282   grep -v '^ *+' conftest.er1 >conftest.err
26283   rm -f conftest.er1
26284   cat conftest.err >&5
26285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26286   (exit $ac_status); } && {
26287          test -z "$ac_cxx_werror_flag" ||
26288          test ! -s conftest.err
26289        } && test -s conftest.$ac_objext; then
26290   ac_cv_header_ext_hash_map=yes
26291 else
26292   echo "$as_me: failed program was:" >&5
26293 sed 's/^/| /' conftest.$ac_ext >&5
26294
26295         ac_cv_header_ext_hash_map=no
26296 fi
26297
26298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26299 fi
26300 { echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5
26301 echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6; }
26302 if test $ac_cv_header_ext_hash_map = yes; then
26303   { echo "$as_me:$LINENO: checking for GNU hash_map and hash_set" >&5
26304 echo $ECHO_N "checking for GNU hash_map and hash_set... $ECHO_C" >&6; }
26305 if test "${wx_cv_class_gnuhashmapset+set}" = set; then
26306   echo $ECHO_N "(cached) $ECHO_C" >&6
26307 else
26308   cat >conftest.$ac_ext <<_ACEOF
26309 /* confdefs.h.  */
26310 _ACEOF
26311 cat confdefs.h >>conftest.$ac_ext
26312 cat >>conftest.$ac_ext <<_ACEOF
26313 /* end confdefs.h.  */
26314 #include <ext/hash_map>
26315                         #include <ext/hash_set>
26316 int
26317 main ()
26318 {
26319 __gnu_cxx::hash_map<double*, char*, __gnu_cxx::hash<double*>, std::equal_to<double*> > test1;
26320                          __gnu_cxx::hash_set<char*, __gnu_cxx::hash<char*>, std::equal_to<char*> > test2;
26321   ;
26322   return 0;
26323 }
26324 _ACEOF
26325 rm -f conftest.$ac_objext
26326 if { (ac_try="$ac_compile"
26327 case "(($ac_try" in
26328   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26329   *) ac_try_echo=$ac_try;;
26330 esac
26331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26332   (eval "$ac_compile") 2>conftest.er1
26333   ac_status=$?
26334   grep -v '^ *+' conftest.er1 >conftest.err
26335   rm -f conftest.er1
26336   cat conftest.err >&5
26337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26338   (exit $ac_status); } && {
26339          test -z "$ac_cxx_werror_flag" ||
26340          test ! -s conftest.err
26341        } && test -s conftest.$ac_objext; then
26342   wx_cv_class_gnuhashmapset=yes
26343 else
26344   echo "$as_me: failed program was:" >&5
26345 sed 's/^/| /' conftest.$ac_ext >&5
26346
26347         wx_cv_class_gnuhashmapset=no
26348 fi
26349
26350 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26351
26352
26353 fi
26354 { echo "$as_me:$LINENO: result: $wx_cv_class_gnuhashmapset" >&5
26355 echo "${ECHO_T}$wx_cv_class_gnuhashmapset" >&6; }
26356 fi
26357
26358
26359
26360         fi
26361     fi
26362 fi
26363
26364 ac_ext=cpp
26365 ac_cpp='$CXXCPP $CPPFLAGS'
26366 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26367 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26368 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26369 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
26370 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
26371 if test -z "$CXXCPP"; then
26372   if test "${ac_cv_prog_CXXCPP+set}" = set; then
26373   echo $ECHO_N "(cached) $ECHO_C" >&6
26374 else
26375       # Double quotes because CXXCPP needs to be expanded
26376     for CXXCPP in "$CXX -E" "/lib/cpp"
26377     do
26378       ac_preproc_ok=false
26379 for ac_cxx_preproc_warn_flag in '' yes
26380 do
26381   # Use a header file that comes with gcc, so configuring glibc
26382   # with a fresh cross-compiler works.
26383   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26384   # <limits.h> exists even on freestanding compilers.
26385   # On the NeXT, cc -E runs the code through the compiler's parser,
26386   # not just through cpp. "Syntax error" is here to catch this case.
26387   cat >conftest.$ac_ext <<_ACEOF
26388 /* confdefs.h.  */
26389 _ACEOF
26390 cat confdefs.h >>conftest.$ac_ext
26391 cat >>conftest.$ac_ext <<_ACEOF
26392 /* end confdefs.h.  */
26393 #ifdef __STDC__
26394 # include <limits.h>
26395 #else
26396 # include <assert.h>
26397 #endif
26398                      Syntax error
26399 _ACEOF
26400 if { (ac_try="$ac_cpp conftest.$ac_ext"
26401 case "(($ac_try" in
26402   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26403   *) ac_try_echo=$ac_try;;
26404 esac
26405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26406   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26407   ac_status=$?
26408   grep -v '^ *+' conftest.er1 >conftest.err
26409   rm -f conftest.er1
26410   cat conftest.err >&5
26411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26412   (exit $ac_status); } >/dev/null && {
26413          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
26414          test ! -s conftest.err
26415        }; then
26416   :
26417 else
26418   echo "$as_me: failed program was:" >&5
26419 sed 's/^/| /' conftest.$ac_ext >&5
26420
26421   # Broken: fails on valid input.
26422 continue
26423 fi
26424
26425 rm -f conftest.err conftest.$ac_ext
26426
26427   # OK, works on sane cases.  Now check whether nonexistent headers
26428   # can be detected and how.
26429   cat >conftest.$ac_ext <<_ACEOF
26430 /* confdefs.h.  */
26431 _ACEOF
26432 cat confdefs.h >>conftest.$ac_ext
26433 cat >>conftest.$ac_ext <<_ACEOF
26434 /* end confdefs.h.  */
26435 #include <ac_nonexistent.h>
26436 _ACEOF
26437 if { (ac_try="$ac_cpp conftest.$ac_ext"
26438 case "(($ac_try" in
26439   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26440   *) ac_try_echo=$ac_try;;
26441 esac
26442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26443   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26444   ac_status=$?
26445   grep -v '^ *+' conftest.er1 >conftest.err
26446   rm -f conftest.er1
26447   cat conftest.err >&5
26448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26449   (exit $ac_status); } >/dev/null && {
26450          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
26451          test ! -s conftest.err
26452        }; then
26453   # Broken: success on invalid input.
26454 continue
26455 else
26456   echo "$as_me: failed program was:" >&5
26457 sed 's/^/| /' conftest.$ac_ext >&5
26458
26459   # Passes both tests.
26460 ac_preproc_ok=:
26461 break
26462 fi
26463
26464 rm -f conftest.err conftest.$ac_ext
26465
26466 done
26467 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
26468 rm -f conftest.err conftest.$ac_ext
26469 if $ac_preproc_ok; then
26470   break
26471 fi
26472
26473     done
26474     ac_cv_prog_CXXCPP=$CXXCPP
26475
26476 fi
26477   CXXCPP=$ac_cv_prog_CXXCPP
26478 else
26479   ac_cv_prog_CXXCPP=$CXXCPP
26480 fi
26481 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
26482 echo "${ECHO_T}$CXXCPP" >&6; }
26483 ac_preproc_ok=false
26484 for ac_cxx_preproc_warn_flag in '' yes
26485 do
26486   # Use a header file that comes with gcc, so configuring glibc
26487   # with a fresh cross-compiler works.
26488   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26489   # <limits.h> exists even on freestanding compilers.
26490   # On the NeXT, cc -E runs the code through the compiler's parser,
26491   # not just through cpp. "Syntax error" is here to catch this case.
26492   cat >conftest.$ac_ext <<_ACEOF
26493 /* confdefs.h.  */
26494 _ACEOF
26495 cat confdefs.h >>conftest.$ac_ext
26496 cat >>conftest.$ac_ext <<_ACEOF
26497 /* end confdefs.h.  */
26498 #ifdef __STDC__
26499 # include <limits.h>
26500 #else
26501 # include <assert.h>
26502 #endif
26503                      Syntax error
26504 _ACEOF
26505 if { (ac_try="$ac_cpp conftest.$ac_ext"
26506 case "(($ac_try" in
26507   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26508   *) ac_try_echo=$ac_try;;
26509 esac
26510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26511   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26512   ac_status=$?
26513   grep -v '^ *+' conftest.er1 >conftest.err
26514   rm -f conftest.er1
26515   cat conftest.err >&5
26516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26517   (exit $ac_status); } >/dev/null && {
26518          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
26519          test ! -s conftest.err
26520        }; then
26521   :
26522 else
26523   echo "$as_me: failed program was:" >&5
26524 sed 's/^/| /' conftest.$ac_ext >&5
26525
26526   # Broken: fails on valid input.
26527 continue
26528 fi
26529
26530 rm -f conftest.err conftest.$ac_ext
26531
26532   # OK, works on sane cases.  Now check whether nonexistent headers
26533   # can be detected and how.
26534   cat >conftest.$ac_ext <<_ACEOF
26535 /* confdefs.h.  */
26536 _ACEOF
26537 cat confdefs.h >>conftest.$ac_ext
26538 cat >>conftest.$ac_ext <<_ACEOF
26539 /* end confdefs.h.  */
26540 #include <ac_nonexistent.h>
26541 _ACEOF
26542 if { (ac_try="$ac_cpp conftest.$ac_ext"
26543 case "(($ac_try" in
26544   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26545   *) ac_try_echo=$ac_try;;
26546 esac
26547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26548   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26549   ac_status=$?
26550   grep -v '^ *+' conftest.er1 >conftest.err
26551   rm -f conftest.er1
26552   cat conftest.err >&5
26553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26554   (exit $ac_status); } >/dev/null && {
26555          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
26556          test ! -s conftest.err
26557        }; then
26558   # Broken: success on invalid input.
26559 continue
26560 else
26561   echo "$as_me: failed program was:" >&5
26562 sed 's/^/| /' conftest.$ac_ext >&5
26563
26564   # Passes both tests.
26565 ac_preproc_ok=:
26566 break
26567 fi
26568
26569 rm -f conftest.err conftest.$ac_ext
26570
26571 done
26572 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
26573 rm -f conftest.err conftest.$ac_ext
26574 if $ac_preproc_ok; then
26575   :
26576 else
26577   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
26578 See \`config.log' for more details." >&5
26579 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
26580 See \`config.log' for more details." >&2;}
26581    { (exit 1); exit 1; }; }
26582 fi
26583
26584 ac_ext=cpp
26585 ac_cpp='$CXXCPP $CPPFLAGS'
26586 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26587 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26588 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26589
26590
26591
26592
26593 for ac_header in type_traits tr1/type_traits
26594 do
26595 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26596 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26597   { echo "$as_me:$LINENO: checking for $ac_header" >&5
26598 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26599 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26600   echo $ECHO_N "(cached) $ECHO_C" >&6
26601 fi
26602 ac_res=`eval echo '${'$as_ac_Header'}'`
26603                { echo "$as_me:$LINENO: result: $ac_res" >&5
26604 echo "${ECHO_T}$ac_res" >&6; }
26605 else
26606   # Is the header compilable?
26607 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
26608 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
26609 cat >conftest.$ac_ext <<_ACEOF
26610 /* confdefs.h.  */
26611 _ACEOF
26612 cat confdefs.h >>conftest.$ac_ext
26613 cat >>conftest.$ac_ext <<_ACEOF
26614 /* end confdefs.h.  */
26615 $ac_includes_default
26616 #include <$ac_header>
26617 _ACEOF
26618 rm -f conftest.$ac_objext
26619 if { (ac_try="$ac_compile"
26620 case "(($ac_try" in
26621   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26622   *) ac_try_echo=$ac_try;;
26623 esac
26624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26625   (eval "$ac_compile") 2>conftest.er1
26626   ac_status=$?
26627   grep -v '^ *+' conftest.er1 >conftest.err
26628   rm -f conftest.er1
26629   cat conftest.err >&5
26630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26631   (exit $ac_status); } && {
26632          test -z "$ac_cxx_werror_flag" ||
26633          test ! -s conftest.err
26634        } && test -s conftest.$ac_objext; then
26635   ac_header_compiler=yes
26636 else
26637   echo "$as_me: failed program was:" >&5
26638 sed 's/^/| /' conftest.$ac_ext >&5
26639
26640         ac_header_compiler=no
26641 fi
26642
26643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26644 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26645 echo "${ECHO_T}$ac_header_compiler" >&6; }
26646
26647 # Is the header present?
26648 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
26649 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
26650 cat >conftest.$ac_ext <<_ACEOF
26651 /* confdefs.h.  */
26652 _ACEOF
26653 cat confdefs.h >>conftest.$ac_ext
26654 cat >>conftest.$ac_ext <<_ACEOF
26655 /* end confdefs.h.  */
26656 #include <$ac_header>
26657 _ACEOF
26658 if { (ac_try="$ac_cpp conftest.$ac_ext"
26659 case "(($ac_try" in
26660   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26661   *) ac_try_echo=$ac_try;;
26662 esac
26663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26664   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26665   ac_status=$?
26666   grep -v '^ *+' conftest.er1 >conftest.err
26667   rm -f conftest.er1
26668   cat conftest.err >&5
26669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26670   (exit $ac_status); } >/dev/null && {
26671          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
26672          test ! -s conftest.err
26673        }; then
26674   ac_header_preproc=yes
26675 else
26676   echo "$as_me: failed program was:" >&5
26677 sed 's/^/| /' conftest.$ac_ext >&5
26678
26679   ac_header_preproc=no
26680 fi
26681
26682 rm -f conftest.err conftest.$ac_ext
26683 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26684 echo "${ECHO_T}$ac_header_preproc" >&6; }
26685
26686 # So?  What about this header?
26687 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
26688   yes:no: )
26689     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26690 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26691     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26692 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26693     ac_header_preproc=yes
26694     ;;
26695   no:yes:* )
26696     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26697 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26698     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26699 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26700     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26701 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26702     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26703 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26704     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26705 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26706     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26707 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26708     ( cat <<\_ASBOX
26709 ## ----------------------------------------- ##
26710 ## Report this to wx-dev@lists.wxwidgets.org ##
26711 ## ----------------------------------------- ##
26712 _ASBOX
26713      ) | sed "s/^/$as_me: WARNING:     /" >&2
26714     ;;
26715 esac
26716 { echo "$as_me:$LINENO: checking for $ac_header" >&5
26717 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26718 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26719   echo $ECHO_N "(cached) $ECHO_C" >&6
26720 else
26721   eval "$as_ac_Header=\$ac_header_preproc"
26722 fi
26723 ac_res=`eval echo '${'$as_ac_Header'}'`
26724                { echo "$as_me:$LINENO: result: $ac_res" >&5
26725 echo "${ECHO_T}$ac_res" >&6; }
26726
26727 fi
26728 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26729   cat >>confdefs.h <<_ACEOF
26730 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26731 _ACEOF
26732
26733 fi
26734
26735 done
26736
26737
26738
26739
26740   if test -n "$GCC"; then
26741     { echo "$as_me:$LINENO: checking for __sync_fetch_and_add and __sync_sub_and_fetch builtins" >&5
26742 echo $ECHO_N "checking for __sync_fetch_and_add and __sync_sub_and_fetch builtins... $ECHO_C" >&6; }
26743     if test "${wx_cv_cc_gcc_atomic_builtins+set}" = set; then
26744   echo $ECHO_N "(cached) $ECHO_C" >&6
26745 else
26746
26747       cat >conftest.$ac_ext <<_ACEOF
26748 /* confdefs.h.  */
26749 _ACEOF
26750 cat confdefs.h >>conftest.$ac_ext
26751 cat >>conftest.$ac_ext <<_ACEOF
26752 /* end confdefs.h.  */
26753
26754 int
26755 main ()
26756 {
26757
26758           unsigned int value=0;
26759           /* wxAtomicInc doesn't use return value here */
26760           __sync_fetch_and_add(&value, 2);
26761           __sync_sub_and_fetch(&value, 1);
26762           /* but wxAtomicDec does, so mimic that: */
26763           unsigned int r2 = __sync_sub_and_fetch(&value, 1);
26764
26765   ;
26766   return 0;
26767 }
26768 _ACEOF
26769 rm -f conftest.$ac_objext conftest$ac_exeext
26770 if { (ac_try="$ac_link"
26771 case "(($ac_try" in
26772   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26773   *) ac_try_echo=$ac_try;;
26774 esac
26775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26776   (eval "$ac_link") 2>conftest.er1
26777   ac_status=$?
26778   grep -v '^ *+' conftest.er1 >conftest.err
26779   rm -f conftest.er1
26780   cat conftest.err >&5
26781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26782   (exit $ac_status); } && {
26783          test -z "$ac_cxx_werror_flag" ||
26784          test ! -s conftest.err
26785        } && test -s conftest$ac_exeext &&
26786        $as_test_x conftest$ac_exeext; then
26787   wx_cv_cc_gcc_atomic_builtins=yes
26788 else
26789   echo "$as_me: failed program was:" >&5
26790 sed 's/^/| /' conftest.$ac_ext >&5
26791
26792         wx_cv_cc_gcc_atomic_builtins=no
26793 fi
26794
26795 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26796       conftest$ac_exeext conftest.$ac_ext
26797
26798 fi
26799
26800     { echo "$as_me:$LINENO: result: $wx_cv_cc_gcc_atomic_builtins" >&5
26801 echo "${ECHO_T}$wx_cv_cc_gcc_atomic_builtins" >&6; }
26802     if test $wx_cv_cc_gcc_atomic_builtins = yes; then
26803       cat >>confdefs.h <<\_ACEOF
26804 #define HAVE_GCC_ATOMIC_BUILTINS 1
26805 _ACEOF
26806
26807     fi
26808   fi
26809
26810
26811 ac_ext=c
26812 ac_cpp='$CPP $CPPFLAGS'
26813 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26814 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26815 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26816
26817
26818
26819 SEARCH_INCLUDE="\
26820     /usr/local/include        \
26821     /usr/local/X11/include    \
26822     /usr/local/include/X11    \
26823     /usr/local/X11R7/include  \
26824     /usr/local/X11R6/include  \
26825     /usr/local/include/X11R7  \
26826     /usr/local/include/X11R6  \
26827                               \
26828     /usr/Motif-2.1/include    \
26829     /usr/Motif-1.2/include    \
26830     /usr/include/Motif1.2     \
26831                               \
26832     /usr/dt/include           \
26833     /usr/openwin/include      \
26834                               \
26835     /usr/include/Xm           \
26836                               \
26837     /usr/X11R7/include        \
26838     /usr/X11R6/include        \
26839     /usr/X11R6.4/include      \
26840                               \
26841     /usr/include/X11R7        \
26842     /usr/include/X11R6        \
26843                               \
26844     /usr/X11/include          \
26845     /usr/include/X11          \
26846                               \
26847     /usr/XFree86/include/X11  \
26848     /usr/pkg/include          \
26849                               \
26850     /usr/local/X1R5/include  \
26851     /usr/local/include/X11R5  \
26852     /usr/X11R5/include        \
26853     /usr/include/X11R5        \
26854                               \
26855     /usr/local/X11R4/include  \
26856     /usr/local/include/X11R4  \
26857     /usr/X11R4/include        \
26858     /usr/include/X11R4        \
26859                               \
26860     /usr/openwin/share/include"
26861
26862 { echo "$as_me:$LINENO: checking for libraries directory" >&5
26863 echo $ECHO_N "checking for libraries directory... $ECHO_C" >&6; }
26864
26865 case "${host}" in
26866     *-*-irix6* )
26867         if test "${wx_cv_std_libpath+set}" = set; then
26868   echo $ECHO_N "(cached) $ECHO_C" >&6
26869 else
26870
26871                 for d in /usr/lib /usr/lib32 /usr/lib/64 /usr/lib64; do
26872                     for e in a so sl dylib dll.a; do
26873                         libc="$d/libc.$e"
26874                         if test -f $libc; then
26875                             save_LIBS="$LIBS"
26876                             LIBS="$libc"
26877                             cat >conftest.$ac_ext <<_ACEOF
26878 int main() { return 0; }
26879 _ACEOF
26880 rm -f conftest.$ac_objext conftest$ac_exeext
26881 if { (ac_try="$ac_link"
26882 case "(($ac_try" in
26883   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26884   *) ac_try_echo=$ac_try;;
26885 esac
26886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26887   (eval "$ac_link") 2>conftest.er1
26888   ac_status=$?
26889   grep -v '^ *+' conftest.er1 >conftest.err
26890   rm -f conftest.er1
26891   cat conftest.err >&5
26892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26893   (exit $ac_status); } && {
26894          test -z "$ac_c_werror_flag" ||
26895          test ! -s conftest.err
26896        } && test -s conftest$ac_exeext &&
26897        $as_test_x conftest$ac_exeext; then
26898   wx_cv_std_libpath=`echo $d | sed s@/usr/@@`
26899 else
26900   echo "$as_me: failed program was:" >&5
26901 sed 's/^/| /' conftest.$ac_ext >&5
26902
26903
26904 fi
26905
26906 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26907       conftest$ac_exeext conftest.$ac_ext
26908                             LIBS="$save_LIBS"
26909                             if test "x$wx_cv_std_libpath" != "x"; then
26910                                 break 2
26911                             fi
26912                         fi
26913                     done
26914                 done
26915                 if test "x$wx_cv_std_libpath" = "x"; then
26916                     wx_cv_std_libpath="lib"
26917                 fi
26918
26919
26920 fi
26921
26922         ;;
26923
26924     *-*-solaris2* )
26925                 if test "$ac_cv_sizeof_void_p" = 8 -a -d "/usr/lib/64"; then
26926             wx_cv_std_libpath="lib/64"
26927         else
26928             wx_cv_std_libpath="lib"
26929         fi
26930         ;;
26931
26932     *-*-linux* )
26933                 if test "$ac_cv_sizeof_void_p" = 8 -a \
26934                 -d "/usr/lib64" -a ! -h "/usr/lib64"; then
26935             wx_cv_std_libpath="lib64"
26936         else
26937             wx_cv_std_libpath="lib"
26938         fi
26939         ;;
26940
26941     *)
26942         wx_cv_std_libpath="lib";
26943         ;;
26944 esac
26945
26946 { echo "$as_me:$LINENO: result: $wx_cv_std_libpath" >&5
26947 echo "${ECHO_T}$wx_cv_std_libpath" >&6; }
26948
26949 SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s@include@$wx_cv_std_libpath@g` /usr/$wx_cv_std_libpath"
26950
26951 if test "$build" != "$host" -a "$GCC" = yes; then
26952                     if cross_root=`$CC -print-prog-name=ld 2>/dev/null`; then
26953         cross_root=`dirname $cross_root`
26954         cross_root=`dirname $cross_root`
26955
26956                         SEARCH_LIB=`for x in $SEARCH_LIB; do echo $x; done | sed -ne "s|^/usr|$cross_root|p"`
26957         SEARCH_INCLUDE=`for x in $SEARCH_INCLUDE; do echo $x; done | sed -ne "s|^/usr|$cross_root|p"`
26958         SEARCH_INCLUDE="$SEARCH_INCLUDE $cross_root/include"
26959
26960                 if test -z "$PKG_CONFIG_PATH"; then
26961             PKG_CONFIG_PATH="$cross_root/local/lib/pkgconfig:$cross_root/lib/pkgconfig"
26962             export PKG_CONFIG_PATH
26963         fi
26964
26965                                 if test -z "$x_includes" -o "$x_includes" = NONE; then
26966
26967 ac_find_includes=
26968 for ac_dir in $SEARCH_INCLUDE /usr/include
26969   do
26970     if test -f "$ac_dir/X11/Intrinsic.h"; then
26971       ac_find_includes=$ac_dir
26972       break
26973     fi
26974   done
26975
26976             x_includes=$ac_find_includes
26977         fi
26978         if test -z "$x_libraries" -o "$x_libraries" = NONE; then
26979
26980   ac_find_libraries=
26981   for ac_dir in $SEARCH_LIB
26982   do
26983     for ac_extension in a so sl dylib dll.a; do
26984       if test -f "$ac_dir/libXt.$ac_extension"; then
26985         ac_find_libraries=$ac_dir
26986         break 2
26987       fi
26988     done
26989   done
26990
26991             x_libraries=$ac_find_libraries
26992         fi
26993     fi
26994 fi
26995
26996
26997 cat >confcache <<\_ACEOF
26998 # This file is a shell script that caches the results of configure
26999 # tests run on this system so they can be shared between configure
27000 # scripts and configure runs, see configure's option --config-cache.
27001 # It is not useful on other systems.  If it contains results you don't
27002 # want to keep, you may remove or edit it.
27003 #
27004 # config.status only pays attention to the cache file if you give it
27005 # the --recheck option to rerun configure.
27006 #
27007 # `ac_cv_env_foo' variables (set or unset) will be overridden when
27008 # loading this file, other *unset* `ac_cv_foo' will be assigned the
27009 # following values.
27010
27011 _ACEOF
27012
27013 # The following way of writing the cache mishandles newlines in values,
27014 # but we know of no workaround that is simple, portable, and efficient.
27015 # So, we kill variables containing newlines.
27016 # Ultrix sh set writes to stderr and can't be redirected directly,
27017 # and sets the high bit in the cache file unless we assign to the vars.
27018 (
27019   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
27020     eval ac_val=\$$ac_var
27021     case $ac_val in #(
27022     *${as_nl}*)
27023       case $ac_var in #(
27024       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
27025 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
27026       esac
27027       case $ac_var in #(
27028       _ | IFS | as_nl) ;; #(
27029       *) $as_unset $ac_var ;;
27030       esac ;;
27031     esac
27032   done
27033
27034   (set) 2>&1 |
27035     case $as_nl`(ac_space=' '; set) 2>&1` in #(
27036     *${as_nl}ac_space=\ *)
27037       # `set' does not quote correctly, so add quotes (double-quote
27038       # substitution turns \\\\ into \\, and sed turns \\ into \).
27039       sed -n \
27040         "s/'/'\\\\''/g;
27041           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
27042       ;; #(
27043     *)
27044       # `set' quotes correctly as required by POSIX, so do not add quotes.
27045       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
27046       ;;
27047     esac |
27048     sort
27049 ) |
27050   sed '
27051      /^ac_cv_env_/b end
27052      t clear
27053      :clear
27054      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
27055      t end
27056      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
27057      :end' >>confcache
27058 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
27059   if test -w "$cache_file"; then
27060     test "x$cache_file" != "x/dev/null" &&
27061       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
27062 echo "$as_me: updating cache $cache_file" >&6;}
27063     cat confcache >$cache_file
27064   else
27065     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
27066 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
27067   fi
27068 fi
27069 rm -f confcache
27070
27071 if test "$USE_LINUX" = 1 -o "$USE_GNU" = 1; then
27072     { echo "$as_me:$LINENO: checking for glibc 2.1 or later" >&5
27073 echo $ECHO_N "checking for glibc 2.1 or later... $ECHO_C" >&6; }
27074 if test "${wx_cv_lib_glibc21+set}" = set; then
27075   echo $ECHO_N "(cached) $ECHO_C" >&6
27076 else
27077
27078         cat >conftest.$ac_ext <<_ACEOF
27079 /* confdefs.h.  */
27080 _ACEOF
27081 cat confdefs.h >>conftest.$ac_ext
27082 cat >>conftest.$ac_ext <<_ACEOF
27083 /* end confdefs.h.  */
27084 #include <features.h>
27085 int
27086 main ()
27087 {
27088
27089                 #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1)
27090                 not glibc 2.1
27091                 #endif
27092
27093   ;
27094   return 0;
27095 }
27096 _ACEOF
27097 rm -f conftest.$ac_objext
27098 if { (ac_try="$ac_compile"
27099 case "(($ac_try" in
27100   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27101   *) ac_try_echo=$ac_try;;
27102 esac
27103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27104   (eval "$ac_compile") 2>conftest.er1
27105   ac_status=$?
27106   grep -v '^ *+' conftest.er1 >conftest.err
27107   rm -f conftest.er1
27108   cat conftest.err >&5
27109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27110   (exit $ac_status); } && {
27111          test -z "$ac_c_werror_flag" ||
27112          test ! -s conftest.err
27113        } && test -s conftest.$ac_objext; then
27114
27115                 wx_cv_lib_glibc21=yes
27116
27117 else
27118   echo "$as_me: failed program was:" >&5
27119 sed 's/^/| /' conftest.$ac_ext >&5
27120
27121
27122                 wx_cv_lib_glibc21=no
27123
27124
27125 fi
27126
27127 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27128
27129 fi
27130 { echo "$as_me:$LINENO: result: $wx_cv_lib_glibc21" >&5
27131 echo "${ECHO_T}$wx_cv_lib_glibc21" >&6; }
27132     if test "$wx_cv_lib_glibc21" = "yes"; then
27133         cat >>confdefs.h <<\_ACEOF
27134 #define wxHAVE_GLIBC2 1
27135 _ACEOF
27136
27137     fi
27138 fi
27139
27140 if test "x$wx_cv_lib_glibc21" = "xyes"; then
27141     if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then
27142         cat >>confdefs.h <<\_ACEOF
27143 #define _GNU_SOURCE 1
27144 _ACEOF
27145
27146     fi
27147 fi
27148
27149 have_cos=0
27150 have_floor=0
27151
27152 for ac_func in cos
27153 do
27154 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27155 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27156 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27157 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27158   echo $ECHO_N "(cached) $ECHO_C" >&6
27159 else
27160   cat >conftest.$ac_ext <<_ACEOF
27161 /* confdefs.h.  */
27162 _ACEOF
27163 cat confdefs.h >>conftest.$ac_ext
27164 cat >>conftest.$ac_ext <<_ACEOF
27165 /* end confdefs.h.  */
27166 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27167    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27168 #define $ac_func innocuous_$ac_func
27169
27170 /* System header to define __stub macros and hopefully few prototypes,
27171     which can conflict with char $ac_func (); below.
27172     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27173     <limits.h> exists even on freestanding compilers.  */
27174
27175 #ifdef __STDC__
27176 # include <limits.h>
27177 #else
27178 # include <assert.h>
27179 #endif
27180
27181 #undef $ac_func
27182
27183 /* Override any GCC internal prototype to avoid an error.
27184    Use char because int might match the return type of a GCC
27185    builtin and then its argument prototype would still apply.  */
27186 #ifdef __cplusplus
27187 extern "C"
27188 #endif
27189 char $ac_func ();
27190 /* The GNU C library defines this for functions which it implements
27191     to always fail with ENOSYS.  Some functions are actually named
27192     something starting with __ and the normal name is an alias.  */
27193 #if defined __stub_$ac_func || defined __stub___$ac_func
27194 choke me
27195 #endif
27196
27197 int
27198 main ()
27199 {
27200 return $ac_func ();
27201   ;
27202   return 0;
27203 }
27204 _ACEOF
27205 rm -f conftest.$ac_objext conftest$ac_exeext
27206 if { (ac_try="$ac_link"
27207 case "(($ac_try" in
27208   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27209   *) ac_try_echo=$ac_try;;
27210 esac
27211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27212   (eval "$ac_link") 2>conftest.er1
27213   ac_status=$?
27214   grep -v '^ *+' conftest.er1 >conftest.err
27215   rm -f conftest.er1
27216   cat conftest.err >&5
27217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27218   (exit $ac_status); } && {
27219          test -z "$ac_c_werror_flag" ||
27220          test ! -s conftest.err
27221        } && test -s conftest$ac_exeext &&
27222        $as_test_x conftest$ac_exeext; then
27223   eval "$as_ac_var=yes"
27224 else
27225   echo "$as_me: failed program was:" >&5
27226 sed 's/^/| /' conftest.$ac_ext >&5
27227
27228         eval "$as_ac_var=no"
27229 fi
27230
27231 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27232       conftest$ac_exeext conftest.$ac_ext
27233 fi
27234 ac_res=`eval echo '${'$as_ac_var'}'`
27235                { echo "$as_me:$LINENO: result: $ac_res" >&5
27236 echo "${ECHO_T}$ac_res" >&6; }
27237 if test `eval echo '${'$as_ac_var'}'` = yes; then
27238   cat >>confdefs.h <<_ACEOF
27239 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27240 _ACEOF
27241  have_cos=1
27242 fi
27243 done
27244
27245
27246 for ac_func in floor
27247 do
27248 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27249 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27250 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27251 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27252   echo $ECHO_N "(cached) $ECHO_C" >&6
27253 else
27254   cat >conftest.$ac_ext <<_ACEOF
27255 /* confdefs.h.  */
27256 _ACEOF
27257 cat confdefs.h >>conftest.$ac_ext
27258 cat >>conftest.$ac_ext <<_ACEOF
27259 /* end confdefs.h.  */
27260 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27261    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27262 #define $ac_func innocuous_$ac_func
27263
27264 /* System header to define __stub macros and hopefully few prototypes,
27265     which can conflict with char $ac_func (); below.
27266     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27267     <limits.h> exists even on freestanding compilers.  */
27268
27269 #ifdef __STDC__
27270 # include <limits.h>
27271 #else
27272 # include <assert.h>
27273 #endif
27274
27275 #undef $ac_func
27276
27277 /* Override any GCC internal prototype to avoid an error.
27278    Use char because int might match the return type of a GCC
27279    builtin and then its argument prototype would still apply.  */
27280 #ifdef __cplusplus
27281 extern "C"
27282 #endif
27283 char $ac_func ();
27284 /* The GNU C library defines this for functions which it implements
27285     to always fail with ENOSYS.  Some functions are actually named
27286     something starting with __ and the normal name is an alias.  */
27287 #if defined __stub_$ac_func || defined __stub___$ac_func
27288 choke me
27289 #endif
27290
27291 int
27292 main ()
27293 {
27294 return $ac_func ();
27295   ;
27296   return 0;
27297 }
27298 _ACEOF
27299 rm -f conftest.$ac_objext conftest$ac_exeext
27300 if { (ac_try="$ac_link"
27301 case "(($ac_try" in
27302   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27303   *) ac_try_echo=$ac_try;;
27304 esac
27305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27306   (eval "$ac_link") 2>conftest.er1
27307   ac_status=$?
27308   grep -v '^ *+' conftest.er1 >conftest.err
27309   rm -f conftest.er1
27310   cat conftest.err >&5
27311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27312   (exit $ac_status); } && {
27313          test -z "$ac_c_werror_flag" ||
27314          test ! -s conftest.err
27315        } && test -s conftest$ac_exeext &&
27316        $as_test_x conftest$ac_exeext; then
27317   eval "$as_ac_var=yes"
27318 else
27319   echo "$as_me: failed program was:" >&5
27320 sed 's/^/| /' conftest.$ac_ext >&5
27321
27322         eval "$as_ac_var=no"
27323 fi
27324
27325 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27326       conftest$ac_exeext conftest.$ac_ext
27327 fi
27328 ac_res=`eval echo '${'$as_ac_var'}'`
27329                { echo "$as_me:$LINENO: result: $ac_res" >&5
27330 echo "${ECHO_T}$ac_res" >&6; }
27331 if test `eval echo '${'$as_ac_var'}'` = yes; then
27332   cat >>confdefs.h <<_ACEOF
27333 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27334 _ACEOF
27335  have_floor=1
27336 fi
27337 done
27338
27339 { echo "$as_me:$LINENO: checking if floating point functions link without -lm" >&5
27340 echo $ECHO_N "checking if floating point functions link without -lm... $ECHO_C" >&6; }
27341 if test "$have_cos" = 1 -a "$have_floor" = 1; then
27342     { echo "$as_me:$LINENO: result: yes" >&5
27343 echo "${ECHO_T}yes" >&6; }
27344 else
27345     { echo "$as_me:$LINENO: result: no" >&5
27346 echo "${ECHO_T}no" >&6; }
27347     LIBS="$LIBS -lm"
27348     # use different functions to avoid configure caching
27349     have_sin=0
27350     have_ceil=0
27351
27352 for ac_func in sin
27353 do
27354 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27355 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27356 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27357 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27358   echo $ECHO_N "(cached) $ECHO_C" >&6
27359 else
27360   cat >conftest.$ac_ext <<_ACEOF
27361 /* confdefs.h.  */
27362 _ACEOF
27363 cat confdefs.h >>conftest.$ac_ext
27364 cat >>conftest.$ac_ext <<_ACEOF
27365 /* end confdefs.h.  */
27366 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27367    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27368 #define $ac_func innocuous_$ac_func
27369
27370 /* System header to define __stub macros and hopefully few prototypes,
27371     which can conflict with char $ac_func (); below.
27372     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27373     <limits.h> exists even on freestanding compilers.  */
27374
27375 #ifdef __STDC__
27376 # include <limits.h>
27377 #else
27378 # include <assert.h>
27379 #endif
27380
27381 #undef $ac_func
27382
27383 /* Override any GCC internal prototype to avoid an error.
27384    Use char because int might match the return type of a GCC
27385    builtin and then its argument prototype would still apply.  */
27386 #ifdef __cplusplus
27387 extern "C"
27388 #endif
27389 char $ac_func ();
27390 /* The GNU C library defines this for functions which it implements
27391     to always fail with ENOSYS.  Some functions are actually named
27392     something starting with __ and the normal name is an alias.  */
27393 #if defined __stub_$ac_func || defined __stub___$ac_func
27394 choke me
27395 #endif
27396
27397 int
27398 main ()
27399 {
27400 return $ac_func ();
27401   ;
27402   return 0;
27403 }
27404 _ACEOF
27405 rm -f conftest.$ac_objext conftest$ac_exeext
27406 if { (ac_try="$ac_link"
27407 case "(($ac_try" in
27408   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27409   *) ac_try_echo=$ac_try;;
27410 esac
27411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27412   (eval "$ac_link") 2>conftest.er1
27413   ac_status=$?
27414   grep -v '^ *+' conftest.er1 >conftest.err
27415   rm -f conftest.er1
27416   cat conftest.err >&5
27417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27418   (exit $ac_status); } && {
27419          test -z "$ac_c_werror_flag" ||
27420          test ! -s conftest.err
27421        } && test -s conftest$ac_exeext &&
27422        $as_test_x conftest$ac_exeext; then
27423   eval "$as_ac_var=yes"
27424 else
27425   echo "$as_me: failed program was:" >&5
27426 sed 's/^/| /' conftest.$ac_ext >&5
27427
27428         eval "$as_ac_var=no"
27429 fi
27430
27431 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27432       conftest$ac_exeext conftest.$ac_ext
27433 fi
27434 ac_res=`eval echo '${'$as_ac_var'}'`
27435                { echo "$as_me:$LINENO: result: $ac_res" >&5
27436 echo "${ECHO_T}$ac_res" >&6; }
27437 if test `eval echo '${'$as_ac_var'}'` = yes; then
27438   cat >>confdefs.h <<_ACEOF
27439 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27440 _ACEOF
27441  have_sin=1
27442 fi
27443 done
27444
27445
27446 for ac_func in ceil
27447 do
27448 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27449 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27450 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27451 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27452   echo $ECHO_N "(cached) $ECHO_C" >&6
27453 else
27454   cat >conftest.$ac_ext <<_ACEOF
27455 /* confdefs.h.  */
27456 _ACEOF
27457 cat confdefs.h >>conftest.$ac_ext
27458 cat >>conftest.$ac_ext <<_ACEOF
27459 /* end confdefs.h.  */
27460 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27461    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27462 #define $ac_func innocuous_$ac_func
27463
27464 /* System header to define __stub macros and hopefully few prototypes,
27465     which can conflict with char $ac_func (); below.
27466     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27467     <limits.h> exists even on freestanding compilers.  */
27468
27469 #ifdef __STDC__
27470 # include <limits.h>
27471 #else
27472 # include <assert.h>
27473 #endif
27474
27475 #undef $ac_func
27476
27477 /* Override any GCC internal prototype to avoid an error.
27478    Use char because int might match the return type of a GCC
27479    builtin and then its argument prototype would still apply.  */
27480 #ifdef __cplusplus
27481 extern "C"
27482 #endif
27483 char $ac_func ();
27484 /* The GNU C library defines this for functions which it implements
27485     to always fail with ENOSYS.  Some functions are actually named
27486     something starting with __ and the normal name is an alias.  */
27487 #if defined __stub_$ac_func || defined __stub___$ac_func
27488 choke me
27489 #endif
27490
27491 int
27492 main ()
27493 {
27494 return $ac_func ();
27495   ;
27496   return 0;
27497 }
27498 _ACEOF
27499 rm -f conftest.$ac_objext conftest$ac_exeext
27500 if { (ac_try="$ac_link"
27501 case "(($ac_try" in
27502   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27503   *) ac_try_echo=$ac_try;;
27504 esac
27505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27506   (eval "$ac_link") 2>conftest.er1
27507   ac_status=$?
27508   grep -v '^ *+' conftest.er1 >conftest.err
27509   rm -f conftest.er1
27510   cat conftest.err >&5
27511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27512   (exit $ac_status); } && {
27513          test -z "$ac_c_werror_flag" ||
27514          test ! -s conftest.err
27515        } && test -s conftest$ac_exeext &&
27516        $as_test_x conftest$ac_exeext; then
27517   eval "$as_ac_var=yes"
27518 else
27519   echo "$as_me: failed program was:" >&5
27520 sed 's/^/| /' conftest.$ac_ext >&5
27521
27522         eval "$as_ac_var=no"
27523 fi
27524
27525 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27526       conftest$ac_exeext conftest.$ac_ext
27527 fi
27528 ac_res=`eval echo '${'$as_ac_var'}'`
27529                { echo "$as_me:$LINENO: result: $ac_res" >&5
27530 echo "${ECHO_T}$ac_res" >&6; }
27531 if test `eval echo '${'$as_ac_var'}'` = yes; then
27532   cat >>confdefs.h <<_ACEOF
27533 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27534 _ACEOF
27535  have_ceil=1
27536 fi
27537 done
27538
27539     { echo "$as_me:$LINENO: checking if floating point functions link with -lm" >&5
27540 echo $ECHO_N "checking if floating point functions link with -lm... $ECHO_C" >&6; }
27541     if test "$have_sin" = 1 -a "$have_ceil" = 1; then
27542         { echo "$as_me:$LINENO: result: yes" >&5
27543 echo "${ECHO_T}yes" >&6; }
27544     else
27545         { echo "$as_me:$LINENO: result: no" >&5
27546 echo "${ECHO_T}no" >&6; }
27547         # not sure we should warn the user, crash, etc.
27548     fi
27549 fi
27550
27551 ac_ext=cpp
27552 ac_cpp='$CXXCPP $CPPFLAGS'
27553 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27554 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27555 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27556
27557 if test "wxUSE_UNICODE" = "yes"; then
27558
27559   for wx_func in wcstoull
27560   do
27561     { echo "$as_me:$LINENO: checking for $wx_func" >&5
27562 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
27563 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
27564   echo $ECHO_N "(cached) $ECHO_C" >&6
27565 else
27566
27567         cat >conftest.$ac_ext <<_ACEOF
27568
27569             /* confdefs.h.  */
27570 _ACEOF
27571 cat confdefs.h >>conftest.$ac_ext
27572 cat >>conftest.$ac_ext <<_ACEOF
27573 /* end confdefs.h.  */
27574
27575
27576                 $ac_includes_default
27577
27578 int
27579 main ()
27580 {
27581
27582                 #ifndef $wx_func
27583                   &$wx_func;
27584                 #endif
27585
27586
27587   ;
27588   return 0;
27589 }
27590
27591 _ACEOF
27592 rm -f conftest.$ac_objext conftest$ac_exeext
27593 if { (ac_try="$ac_link"
27594 case "(($ac_try" in
27595   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27596   *) ac_try_echo=$ac_try;;
27597 esac
27598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27599   (eval "$ac_link") 2>conftest.er1
27600   ac_status=$?
27601   grep -v '^ *+' conftest.er1 >conftest.err
27602   rm -f conftest.er1
27603   cat conftest.err >&5
27604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27605   (exit $ac_status); } && {
27606          test -z "$ac_cxx_werror_flag" ||
27607          test ! -s conftest.err
27608        } && test -s conftest$ac_exeext &&
27609        $as_test_x conftest$ac_exeext; then
27610   eval wx_cv_func_$wx_func=yes
27611 else
27612   echo "$as_me: failed program was:" >&5
27613 sed 's/^/| /' conftest.$ac_ext >&5
27614
27615         eval wx_cv_func_$wx_func=no
27616 fi
27617
27618 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27619       conftest$ac_exeext conftest.$ac_ext
27620
27621 fi
27622 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
27623                { echo "$as_me:$LINENO: result: $ac_res" >&5
27624 echo "${ECHO_T}$ac_res" >&6; }
27625
27626     if eval test \$wx_cv_func_$wx_func = yes
27627     then
27628       cat >>confdefs.h <<_ACEOF
27629 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
27630 _ACEOF
27631
27632
27633     else
27634       :
27635
27636     fi
27637   done
27638
27639 else
27640
27641   for wx_func in strtoull
27642   do
27643     { echo "$as_me:$LINENO: checking for $wx_func" >&5
27644 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
27645 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
27646   echo $ECHO_N "(cached) $ECHO_C" >&6
27647 else
27648
27649         cat >conftest.$ac_ext <<_ACEOF
27650
27651             /* confdefs.h.  */
27652 _ACEOF
27653 cat confdefs.h >>conftest.$ac_ext
27654 cat >>conftest.$ac_ext <<_ACEOF
27655 /* end confdefs.h.  */
27656
27657
27658                 $ac_includes_default
27659
27660 int
27661 main ()
27662 {
27663
27664                 #ifndef $wx_func
27665                   &$wx_func;
27666                 #endif
27667
27668
27669   ;
27670   return 0;
27671 }
27672
27673 _ACEOF
27674 rm -f conftest.$ac_objext conftest$ac_exeext
27675 if { (ac_try="$ac_link"
27676 case "(($ac_try" in
27677   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27678   *) ac_try_echo=$ac_try;;
27679 esac
27680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27681   (eval "$ac_link") 2>conftest.er1
27682   ac_status=$?
27683   grep -v '^ *+' conftest.er1 >conftest.err
27684   rm -f conftest.er1
27685   cat conftest.err >&5
27686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27687   (exit $ac_status); } && {
27688          test -z "$ac_cxx_werror_flag" ||
27689          test ! -s conftest.err
27690        } && test -s conftest$ac_exeext &&
27691        $as_test_x conftest$ac_exeext; then
27692   eval wx_cv_func_$wx_func=yes
27693 else
27694   echo "$as_me: failed program was:" >&5
27695 sed 's/^/| /' conftest.$ac_ext >&5
27696
27697         eval wx_cv_func_$wx_func=no
27698 fi
27699
27700 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27701       conftest$ac_exeext conftest.$ac_ext
27702
27703 fi
27704 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
27705                { echo "$as_me:$LINENO: result: $ac_res" >&5
27706 echo "${ECHO_T}$ac_res" >&6; }
27707
27708     if eval test \$wx_cv_func_$wx_func = yes
27709     then
27710       cat >>confdefs.h <<_ACEOF
27711 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
27712 _ACEOF
27713
27714
27715     else
27716       :
27717
27718     fi
27719   done
27720
27721 fi
27722 ac_ext=c
27723 ac_cpp='$CPP $CPPFLAGS'
27724 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27725 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27726 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27727
27728
27729
27730
27731 if test "$wxUSE_REGEX" != "no"; then
27732     cat >>confdefs.h <<\_ACEOF
27733 #define wxUSE_REGEX 1
27734 _ACEOF
27735
27736
27737     if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_REGEX" = "yes"; then
27738         { echo "$as_me:$LINENO: WARNING: Defaulting to the builtin regex library for Unicode build." >&5
27739 echo "$as_me: WARNING: Defaulting to the builtin regex library for Unicode build." >&2;}
27740         wxUSE_REGEX=builtin
27741     fi
27742
27743     if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then
27744                         { echo "$as_me:$LINENO: checking for regex.h" >&5
27745 echo $ECHO_N "checking for regex.h... $ECHO_C" >&6; }
27746 if test "${ac_cv_header_regex_h+set}" = set; then
27747   echo $ECHO_N "(cached) $ECHO_C" >&6
27748 else
27749   cat >conftest.$ac_ext <<_ACEOF
27750 /* confdefs.h.  */
27751 _ACEOF
27752 cat confdefs.h >>conftest.$ac_ext
27753 cat >>conftest.$ac_ext <<_ACEOF
27754 /* end confdefs.h.  */
27755
27756
27757 #include <regex.h>
27758 _ACEOF
27759 rm -f conftest.$ac_objext
27760 if { (ac_try="$ac_compile"
27761 case "(($ac_try" in
27762   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27763   *) ac_try_echo=$ac_try;;
27764 esac
27765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27766   (eval "$ac_compile") 2>conftest.er1
27767   ac_status=$?
27768   grep -v '^ *+' conftest.er1 >conftest.err
27769   rm -f conftest.er1
27770   cat conftest.err >&5
27771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27772   (exit $ac_status); } && {
27773          test -z "$ac_c_werror_flag" ||
27774          test ! -s conftest.err
27775        } && test -s conftest.$ac_objext; then
27776   ac_cv_header_regex_h=yes
27777 else
27778   echo "$as_me: failed program was:" >&5
27779 sed 's/^/| /' conftest.$ac_ext >&5
27780
27781         ac_cv_header_regex_h=no
27782 fi
27783
27784 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27785 fi
27786 { echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
27787 echo "${ECHO_T}$ac_cv_header_regex_h" >&6; }
27788 if test $ac_cv_header_regex_h = yes; then
27789
27790
27791 for ac_func in regcomp re_search
27792 do
27793 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27794 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27795 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27796 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27797   echo $ECHO_N "(cached) $ECHO_C" >&6
27798 else
27799   cat >conftest.$ac_ext <<_ACEOF
27800 /* confdefs.h.  */
27801 _ACEOF
27802 cat confdefs.h >>conftest.$ac_ext
27803 cat >>conftest.$ac_ext <<_ACEOF
27804 /* end confdefs.h.  */
27805 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27806    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27807 #define $ac_func innocuous_$ac_func
27808
27809 /* System header to define __stub macros and hopefully few prototypes,
27810     which can conflict with char $ac_func (); below.
27811     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27812     <limits.h> exists even on freestanding compilers.  */
27813
27814 #ifdef __STDC__
27815 # include <limits.h>
27816 #else
27817 # include <assert.h>
27818 #endif
27819
27820 #undef $ac_func
27821
27822 /* Override any GCC internal prototype to avoid an error.
27823    Use char because int might match the return type of a GCC
27824    builtin and then its argument prototype would still apply.  */
27825 #ifdef __cplusplus
27826 extern "C"
27827 #endif
27828 char $ac_func ();
27829 /* The GNU C library defines this for functions which it implements
27830     to always fail with ENOSYS.  Some functions are actually named
27831     something starting with __ and the normal name is an alias.  */
27832 #if defined __stub_$ac_func || defined __stub___$ac_func
27833 choke me
27834 #endif
27835
27836 int
27837 main ()
27838 {
27839 return $ac_func ();
27840   ;
27841   return 0;
27842 }
27843 _ACEOF
27844 rm -f conftest.$ac_objext conftest$ac_exeext
27845 if { (ac_try="$ac_link"
27846 case "(($ac_try" in
27847   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27848   *) ac_try_echo=$ac_try;;
27849 esac
27850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27851   (eval "$ac_link") 2>conftest.er1
27852   ac_status=$?
27853   grep -v '^ *+' conftest.er1 >conftest.err
27854   rm -f conftest.er1
27855   cat conftest.err >&5
27856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27857   (exit $ac_status); } && {
27858          test -z "$ac_c_werror_flag" ||
27859          test ! -s conftest.err
27860        } && test -s conftest$ac_exeext &&
27861        $as_test_x conftest$ac_exeext; then
27862   eval "$as_ac_var=yes"
27863 else
27864   echo "$as_me: failed program was:" >&5
27865 sed 's/^/| /' conftest.$ac_ext >&5
27866
27867         eval "$as_ac_var=no"
27868 fi
27869
27870 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27871       conftest$ac_exeext conftest.$ac_ext
27872 fi
27873 ac_res=`eval echo '${'$as_ac_var'}'`
27874                { echo "$as_me:$LINENO: result: $ac_res" >&5
27875 echo "${ECHO_T}$ac_res" >&6; }
27876 if test `eval echo '${'$as_ac_var'}'` = yes; then
27877   cat >>confdefs.h <<_ACEOF
27878 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27879 _ACEOF
27880
27881 fi
27882 done
27883
27884 fi
27885
27886
27887
27888         if test "x$ac_cv_func_regcomp" != "xyes"; then
27889             if test "$wxUSE_REGEX" = "sys" ; then
27890                 { { echo "$as_me:$LINENO: error: system regex library not found! Use --with-regex to use built-in version" >&5
27891 echo "$as_me: error: system regex library not found! Use --with-regex to use built-in version" >&2;}
27892    { (exit 1); exit 1; }; }
27893             else
27894                 { echo "$as_me:$LINENO: WARNING: system regex library not found, will use built-in instead" >&5
27895 echo "$as_me: WARNING: system regex library not found, will use built-in instead" >&2;}
27896                 wxUSE_REGEX=builtin
27897             fi
27898         else
27899                         wxUSE_REGEX=sys
27900                         cat >>confdefs.h <<\_ACEOF
27901 #define WX_NO_REGEX_ADVANCED 1
27902 _ACEOF
27903
27904         fi
27905     fi
27906 fi
27907
27908
27909 ZLIB_LINK=
27910 if test "$wxUSE_ZLIB" != "no" ; then
27911     cat >>confdefs.h <<\_ACEOF
27912 #define wxUSE_ZLIB 1
27913 _ACEOF
27914
27915
27916     if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then
27917                                                 if test "$USE_DARWIN" = 1; then
27918             system_zlib_h_ok="yes"
27919         else
27920                                                                                     { echo "$as_me:$LINENO: checking for zlib.h >= 1.1.4" >&5
27921 echo $ECHO_N "checking for zlib.h >= 1.1.4... $ECHO_C" >&6; }
27922 if test "${ac_cv_header_zlib_h+set}" = set; then
27923   echo $ECHO_N "(cached) $ECHO_C" >&6
27924 else
27925   if test "$cross_compiling" = yes; then
27926                       unset ac_cv_header_zlib_h
27927
27928 else
27929   cat >conftest.$ac_ext <<_ACEOF
27930 /* confdefs.h.  */
27931 _ACEOF
27932 cat confdefs.h >>conftest.$ac_ext
27933 cat >>conftest.$ac_ext <<_ACEOF
27934 /* end confdefs.h.  */
27935
27936                         #include <zlib.h>
27937                         #include <stdio.h>
27938
27939                         int main()
27940                         {
27941                             FILE *f=fopen("conftestval", "w");
27942                             if (!f) exit(1);
27943                             fprintf(f, "%s",
27944                                     ZLIB_VERSION[0] == '1' &&
27945                                     (ZLIB_VERSION[2] > '1' ||
27946                                     (ZLIB_VERSION[2] == '1' &&
27947                                      ZLIB_VERSION[4] >= '4')) ? "yes" : "no");
27948                             exit(0);
27949                         }
27950
27951 _ACEOF
27952 rm -f conftest$ac_exeext
27953 if { (ac_try="$ac_link"
27954 case "(($ac_try" in
27955   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27956   *) ac_try_echo=$ac_try;;
27957 esac
27958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27959   (eval "$ac_link") 2>&5
27960   ac_status=$?
27961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27962   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27963   { (case "(($ac_try" in
27964   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27965   *) ac_try_echo=$ac_try;;
27966 esac
27967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27968   (eval "$ac_try") 2>&5
27969   ac_status=$?
27970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27971   (exit $ac_status); }; }; then
27972   ac_cv_header_zlib_h=`cat conftestval`
27973 else
27974   echo "$as_me: program exited with status $ac_status" >&5
27975 echo "$as_me: failed program was:" >&5
27976 sed 's/^/| /' conftest.$ac_ext >&5
27977
27978 ( exit $ac_status )
27979 ac_cv_header_zlib_h=no
27980 fi
27981 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27982 fi
27983
27984
27985
27986 fi
27987 { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
27988 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
27989                                     { echo "$as_me:$LINENO: checking for zlib.h" >&5
27990 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
27991 if test "${ac_cv_header_zlib_h+set}" = set; then
27992   echo $ECHO_N "(cached) $ECHO_C" >&6
27993 else
27994   cat >conftest.$ac_ext <<_ACEOF
27995 /* confdefs.h.  */
27996 _ACEOF
27997 cat confdefs.h >>conftest.$ac_ext
27998 cat >>conftest.$ac_ext <<_ACEOF
27999 /* end confdefs.h.  */
28000
28001
28002 #include <zlib.h>
28003 _ACEOF
28004 rm -f conftest.$ac_objext
28005 if { (ac_try="$ac_compile"
28006 case "(($ac_try" in
28007   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28008   *) ac_try_echo=$ac_try;;
28009 esac
28010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28011   (eval "$ac_compile") 2>conftest.er1
28012   ac_status=$?
28013   grep -v '^ *+' conftest.er1 >conftest.err
28014   rm -f conftest.er1
28015   cat conftest.err >&5
28016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28017   (exit $ac_status); } && {
28018          test -z "$ac_c_werror_flag" ||
28019          test ! -s conftest.err
28020        } && test -s conftest.$ac_objext; then
28021   ac_cv_header_zlib_h=yes
28022 else
28023   echo "$as_me: failed program was:" >&5
28024 sed 's/^/| /' conftest.$ac_ext >&5
28025
28026         ac_cv_header_zlib_h=no
28027 fi
28028
28029 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28030 fi
28031 { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
28032 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
28033
28034
28035
28036             system_zlib_h_ok=$ac_cv_header_zlib_h
28037         fi
28038
28039         if test "$system_zlib_h_ok" = "yes"; then
28040             { echo "$as_me:$LINENO: checking for deflate in -lz" >&5
28041 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6; }
28042 if test "${ac_cv_lib_z_deflate+set}" = set; then
28043   echo $ECHO_N "(cached) $ECHO_C" >&6
28044 else
28045   ac_check_lib_save_LIBS=$LIBS
28046 LIBS="-lz  $LIBS"
28047 cat >conftest.$ac_ext <<_ACEOF
28048 /* confdefs.h.  */
28049 _ACEOF
28050 cat confdefs.h >>conftest.$ac_ext
28051 cat >>conftest.$ac_ext <<_ACEOF
28052 /* end confdefs.h.  */
28053
28054 /* Override any GCC internal prototype to avoid an error.
28055    Use char because int might match the return type of a GCC
28056    builtin and then its argument prototype would still apply.  */
28057 #ifdef __cplusplus
28058 extern "C"
28059 #endif
28060 char deflate ();
28061 int
28062 main ()
28063 {
28064 return deflate ();
28065   ;
28066   return 0;
28067 }
28068 _ACEOF
28069 rm -f conftest.$ac_objext conftest$ac_exeext
28070 if { (ac_try="$ac_link"
28071 case "(($ac_try" in
28072   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28073   *) ac_try_echo=$ac_try;;
28074 esac
28075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28076   (eval "$ac_link") 2>conftest.er1
28077   ac_status=$?
28078   grep -v '^ *+' conftest.er1 >conftest.err
28079   rm -f conftest.er1
28080   cat conftest.err >&5
28081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28082   (exit $ac_status); } && {
28083          test -z "$ac_c_werror_flag" ||
28084          test ! -s conftest.err
28085        } && test -s conftest$ac_exeext &&
28086        $as_test_x conftest$ac_exeext; then
28087   ac_cv_lib_z_deflate=yes
28088 else
28089   echo "$as_me: failed program was:" >&5
28090 sed 's/^/| /' conftest.$ac_ext >&5
28091
28092         ac_cv_lib_z_deflate=no
28093 fi
28094
28095 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28096       conftest$ac_exeext conftest.$ac_ext
28097 LIBS=$ac_check_lib_save_LIBS
28098 fi
28099 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
28100 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6; }
28101 if test $ac_cv_lib_z_deflate = yes; then
28102   ZLIB_LINK=" -lz"
28103 fi
28104
28105         fi
28106
28107         if test "x$ZLIB_LINK" = "x" ; then
28108             if test "$wxUSE_ZLIB" = "sys" ; then
28109                 { { echo "$as_me:$LINENO: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&5
28110 echo "$as_me: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&2;}
28111    { (exit 1); exit 1; }; }
28112             else
28113                 { echo "$as_me:$LINENO: WARNING: zlib library not found or too old, will use built-in instead" >&5
28114 echo "$as_me: WARNING: zlib library not found or too old, will use built-in instead" >&2;}
28115                 wxUSE_ZLIB=builtin
28116             fi
28117         else
28118                         wxUSE_ZLIB=sys
28119         fi
28120     fi
28121 fi
28122
28123
28124 PNG_LINK=
28125 if test "$wxUSE_LIBPNG" != "no" ; then
28126     cat >>confdefs.h <<\_ACEOF
28127 #define wxUSE_LIBPNG 1
28128 _ACEOF
28129
28130
28131     if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then
28132         { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&5
28133 echo "$as_me: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&2;}
28134         wxUSE_LIBPNG=sys
28135     fi
28136
28137                 if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
28138         { echo "$as_me:$LINENO: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&5
28139 echo "$as_me: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&2;}
28140         wxUSE_LIBPNG=builtin
28141     fi
28142
28143     if test "$wxUSE_MGL" != 1 ; then
28144                 if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then
28145                                     { echo "$as_me:$LINENO: checking for png.h > 0.90" >&5
28146 echo $ECHO_N "checking for png.h > 0.90... $ECHO_C" >&6; }
28147 if test "${ac_cv_header_png_h+set}" = set; then
28148   echo $ECHO_N "(cached) $ECHO_C" >&6
28149 else
28150   if test "$cross_compiling" = yes; then
28151                       unset ac_cv_header_png_h
28152
28153 else
28154   cat >conftest.$ac_ext <<_ACEOF
28155 /* confdefs.h.  */
28156 _ACEOF
28157 cat confdefs.h >>conftest.$ac_ext
28158 cat >>conftest.$ac_ext <<_ACEOF
28159 /* end confdefs.h.  */
28160
28161                         #include <png.h>
28162                         #include <stdio.h>
28163
28164                         int main()
28165                         {
28166                             FILE *f=fopen("conftestval", "w");
28167                             if (!f) exit(1);
28168                             fprintf(f, "%s",
28169                                      PNG_LIBPNG_VER > 90 ? "yes" : "no");
28170                             exit(0);
28171                         }
28172
28173 _ACEOF
28174 rm -f conftest$ac_exeext
28175 if { (ac_try="$ac_link"
28176 case "(($ac_try" in
28177   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28178   *) ac_try_echo=$ac_try;;
28179 esac
28180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28181   (eval "$ac_link") 2>&5
28182   ac_status=$?
28183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28184   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28185   { (case "(($ac_try" in
28186   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28187   *) ac_try_echo=$ac_try;;
28188 esac
28189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28190   (eval "$ac_try") 2>&5
28191   ac_status=$?
28192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28193   (exit $ac_status); }; }; then
28194   ac_cv_header_png_h=`cat conftestval`
28195 else
28196   echo "$as_me: program exited with status $ac_status" >&5
28197 echo "$as_me: failed program was:" >&5
28198 sed 's/^/| /' conftest.$ac_ext >&5
28199
28200 ( exit $ac_status )
28201 ac_cv_header_png_h=no
28202 fi
28203 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28204 fi
28205
28206
28207
28208 fi
28209 { echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
28210 echo "${ECHO_T}$ac_cv_header_png_h" >&6; }
28211             { echo "$as_me:$LINENO: checking for png.h" >&5
28212 echo $ECHO_N "checking for png.h... $ECHO_C" >&6; }
28213 if test "${ac_cv_header_png_h+set}" = set; then
28214   echo $ECHO_N "(cached) $ECHO_C" >&6
28215 else
28216   cat >conftest.$ac_ext <<_ACEOF
28217 /* confdefs.h.  */
28218 _ACEOF
28219 cat confdefs.h >>conftest.$ac_ext
28220 cat >>conftest.$ac_ext <<_ACEOF
28221 /* end confdefs.h.  */
28222
28223
28224 #include <png.h>
28225 _ACEOF
28226 rm -f conftest.$ac_objext
28227 if { (ac_try="$ac_compile"
28228 case "(($ac_try" in
28229   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28230   *) ac_try_echo=$ac_try;;
28231 esac
28232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28233   (eval "$ac_compile") 2>conftest.er1
28234   ac_status=$?
28235   grep -v '^ *+' conftest.er1 >conftest.err
28236   rm -f conftest.er1
28237   cat conftest.err >&5
28238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28239   (exit $ac_status); } && {
28240          test -z "$ac_c_werror_flag" ||
28241          test ! -s conftest.err
28242        } && test -s conftest.$ac_objext; then
28243   ac_cv_header_png_h=yes
28244 else
28245   echo "$as_me: failed program was:" >&5
28246 sed 's/^/| /' conftest.$ac_ext >&5
28247
28248         ac_cv_header_png_h=no
28249 fi
28250
28251 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28252 fi
28253 { echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
28254 echo "${ECHO_T}$ac_cv_header_png_h" >&6; }
28255
28256
28257
28258             if test "$ac_cv_header_png_h" = "yes"; then
28259                 { echo "$as_me:$LINENO: checking for png_sig_cmp in -lpng" >&5
28260 echo $ECHO_N "checking for png_sig_cmp in -lpng... $ECHO_C" >&6; }
28261 if test "${ac_cv_lib_png_png_sig_cmp+set}" = set; then
28262   echo $ECHO_N "(cached) $ECHO_C" >&6
28263 else
28264   ac_check_lib_save_LIBS=$LIBS
28265 LIBS="-lpng -lz -lm $LIBS"
28266 cat >conftest.$ac_ext <<_ACEOF
28267 /* confdefs.h.  */
28268 _ACEOF
28269 cat confdefs.h >>conftest.$ac_ext
28270 cat >>conftest.$ac_ext <<_ACEOF
28271 /* end confdefs.h.  */
28272
28273 /* Override any GCC internal prototype to avoid an error.
28274    Use char because int might match the return type of a GCC
28275    builtin and then its argument prototype would still apply.  */
28276 #ifdef __cplusplus
28277 extern "C"
28278 #endif
28279 char png_sig_cmp ();
28280 int
28281 main ()
28282 {
28283 return png_sig_cmp ();
28284   ;
28285   return 0;
28286 }
28287 _ACEOF
28288 rm -f conftest.$ac_objext conftest$ac_exeext
28289 if { (ac_try="$ac_link"
28290 case "(($ac_try" in
28291   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28292   *) ac_try_echo=$ac_try;;
28293 esac
28294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28295   (eval "$ac_link") 2>conftest.er1
28296   ac_status=$?
28297   grep -v '^ *+' conftest.er1 >conftest.err
28298   rm -f conftest.er1
28299   cat conftest.err >&5
28300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28301   (exit $ac_status); } && {
28302          test -z "$ac_c_werror_flag" ||
28303          test ! -s conftest.err
28304        } && test -s conftest$ac_exeext &&
28305        $as_test_x conftest$ac_exeext; then
28306   ac_cv_lib_png_png_sig_cmp=yes
28307 else
28308   echo "$as_me: failed program was:" >&5
28309 sed 's/^/| /' conftest.$ac_ext >&5
28310
28311         ac_cv_lib_png_png_sig_cmp=no
28312 fi
28313
28314 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28315       conftest$ac_exeext conftest.$ac_ext
28316 LIBS=$ac_check_lib_save_LIBS
28317 fi
28318 { echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_sig_cmp" >&5
28319 echo "${ECHO_T}$ac_cv_lib_png_png_sig_cmp" >&6; }
28320 if test $ac_cv_lib_png_png_sig_cmp = yes; then
28321   PNG_LINK=" -lpng -lz"
28322 fi
28323
28324             fi
28325
28326             if test "x$PNG_LINK" = "x" ; then
28327                 if test "$wxUSE_LIBPNG" = "sys" ; then
28328                     { { echo "$as_me:$LINENO: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&5
28329 echo "$as_me: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&2;}
28330    { (exit 1); exit 1; }; }
28331                 else
28332                     { echo "$as_me:$LINENO: WARNING: system png library not found or too old, will use built-in instead" >&5
28333 echo "$as_me: WARNING: system png library not found or too old, will use built-in instead" >&2;}
28334                     wxUSE_LIBPNG=builtin
28335                 fi
28336             else
28337                                 wxUSE_LIBPNG=sys
28338             fi
28339         fi
28340     fi
28341 fi
28342
28343
28344 JPEG_LINK=
28345 if test "$wxUSE_LIBJPEG" != "no" ; then
28346     cat >>confdefs.h <<\_ACEOF
28347 #define wxUSE_LIBJPEG 1
28348 _ACEOF
28349
28350
28351     if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then
28352         { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&5
28353 echo "$as_me: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&2;}
28354         wxUSE_LIBJPEG=sys
28355     fi
28356
28357     if test "$wxUSE_MGL" != 1 ; then
28358                 if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then
28359                                                 { echo "$as_me:$LINENO: checking for jpeglib.h" >&5
28360 echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6; }
28361             if test "${ac_cv_header_jpeglib_h+set}" = set; then
28362   echo $ECHO_N "(cached) $ECHO_C" >&6
28363 else
28364   cat >conftest.$ac_ext <<_ACEOF
28365 /* confdefs.h.  */
28366 _ACEOF
28367 cat confdefs.h >>conftest.$ac_ext
28368 cat >>conftest.$ac_ext <<_ACEOF
28369 /* end confdefs.h.  */
28370
28371                         #undef HAVE_STDLIB_H
28372                         #include <stdio.h>
28373                         #include <jpeglib.h>
28374
28375 int
28376 main ()
28377 {
28378
28379
28380   ;
28381   return 0;
28382 }
28383 _ACEOF
28384 rm -f conftest.$ac_objext
28385 if { (ac_try="$ac_compile"
28386 case "(($ac_try" in
28387   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28388   *) ac_try_echo=$ac_try;;
28389 esac
28390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28391   (eval "$ac_compile") 2>conftest.er1
28392   ac_status=$?
28393   grep -v '^ *+' conftest.er1 >conftest.err
28394   rm -f conftest.er1
28395   cat conftest.err >&5
28396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28397   (exit $ac_status); } && {
28398          test -z "$ac_c_werror_flag" ||
28399          test ! -s conftest.err
28400        } && test -s conftest.$ac_objext; then
28401   ac_cv_header_jpeglib_h=yes
28402 else
28403   echo "$as_me: failed program was:" >&5
28404 sed 's/^/| /' conftest.$ac_ext >&5
28405
28406         ac_cv_header_jpeglib_h=no
28407
28408 fi
28409
28410 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28411
28412 fi
28413
28414             { echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5
28415 echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6; }
28416
28417             if test "$ac_cv_header_jpeglib_h" = "yes"; then
28418                 { echo "$as_me:$LINENO: checking for jpeg_read_header in -ljpeg" >&5
28419 echo $ECHO_N "checking for jpeg_read_header in -ljpeg... $ECHO_C" >&6; }
28420 if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then
28421   echo $ECHO_N "(cached) $ECHO_C" >&6
28422 else
28423   ac_check_lib_save_LIBS=$LIBS
28424 LIBS="-ljpeg  $LIBS"
28425 cat >conftest.$ac_ext <<_ACEOF
28426 /* confdefs.h.  */
28427 _ACEOF
28428 cat confdefs.h >>conftest.$ac_ext
28429 cat >>conftest.$ac_ext <<_ACEOF
28430 /* end confdefs.h.  */
28431
28432 /* Override any GCC internal prototype to avoid an error.
28433    Use char because int might match the return type of a GCC
28434    builtin and then its argument prototype would still apply.  */
28435 #ifdef __cplusplus
28436 extern "C"
28437 #endif
28438 char jpeg_read_header ();
28439 int
28440 main ()
28441 {
28442 return jpeg_read_header ();
28443   ;
28444   return 0;
28445 }
28446 _ACEOF
28447 rm -f conftest.$ac_objext conftest$ac_exeext
28448 if { (ac_try="$ac_link"
28449 case "(($ac_try" in
28450   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28451   *) ac_try_echo=$ac_try;;
28452 esac
28453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28454   (eval "$ac_link") 2>conftest.er1
28455   ac_status=$?
28456   grep -v '^ *+' conftest.er1 >conftest.err
28457   rm -f conftest.er1
28458   cat conftest.err >&5
28459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28460   (exit $ac_status); } && {
28461          test -z "$ac_c_werror_flag" ||
28462          test ! -s conftest.err
28463        } && test -s conftest$ac_exeext &&
28464        $as_test_x conftest$ac_exeext; then
28465   ac_cv_lib_jpeg_jpeg_read_header=yes
28466 else
28467   echo "$as_me: failed program was:" >&5
28468 sed 's/^/| /' conftest.$ac_ext >&5
28469
28470         ac_cv_lib_jpeg_jpeg_read_header=no
28471 fi
28472
28473 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28474       conftest$ac_exeext conftest.$ac_ext
28475 LIBS=$ac_check_lib_save_LIBS
28476 fi
28477 { echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
28478 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_read_header" >&6; }
28479 if test $ac_cv_lib_jpeg_jpeg_read_header = yes; then
28480   JPEG_LINK=" -ljpeg"
28481 fi
28482
28483             fi
28484
28485             if test "x$JPEG_LINK" = "x" ; then
28486                 if test "$wxUSE_LIBJPEG" = "sys" ; then
28487                     { { echo "$as_me:$LINENO: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&5
28488 echo "$as_me: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&2;}
28489    { (exit 1); exit 1; }; }
28490                 else
28491                     { echo "$as_me:$LINENO: WARNING: system jpeg library not found, will use built-in instead" >&5
28492 echo "$as_me: WARNING: system jpeg library not found, will use built-in instead" >&2;}
28493                     wxUSE_LIBJPEG=builtin
28494                 fi
28495             else
28496                                 wxUSE_LIBJPEG=sys
28497
28498                 if test "$wxUSE_MSW" = 1; then
28499                                                                                                     { echo "$as_me:$LINENO: checking for boolean" >&5
28500 echo $ECHO_N "checking for boolean... $ECHO_C" >&6; }
28501 if test "${ac_cv_type_boolean+set}" = set; then
28502   echo $ECHO_N "(cached) $ECHO_C" >&6
28503 else
28504   cat >conftest.$ac_ext <<_ACEOF
28505 /* confdefs.h.  */
28506 _ACEOF
28507 cat confdefs.h >>conftest.$ac_ext
28508 cat >>conftest.$ac_ext <<_ACEOF
28509 /* end confdefs.h.  */
28510 #include <windows.h>
28511
28512 typedef boolean ac__type_new_;
28513 int
28514 main ()
28515 {
28516 if ((ac__type_new_ *) 0)
28517   return 0;
28518 if (sizeof (ac__type_new_))
28519   return 0;
28520   ;
28521   return 0;
28522 }
28523 _ACEOF
28524 rm -f conftest.$ac_objext
28525 if { (ac_try="$ac_compile"
28526 case "(($ac_try" in
28527   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28528   *) ac_try_echo=$ac_try;;
28529 esac
28530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28531   (eval "$ac_compile") 2>conftest.er1
28532   ac_status=$?
28533   grep -v '^ *+' conftest.er1 >conftest.err
28534   rm -f conftest.er1
28535   cat conftest.err >&5
28536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28537   (exit $ac_status); } && {
28538          test -z "$ac_c_werror_flag" ||
28539          test ! -s conftest.err
28540        } && test -s conftest.$ac_objext; then
28541   ac_cv_type_boolean=yes
28542 else
28543   echo "$as_me: failed program was:" >&5
28544 sed 's/^/| /' conftest.$ac_ext >&5
28545
28546         ac_cv_type_boolean=no
28547 fi
28548
28549 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28550 fi
28551 { echo "$as_me:$LINENO: result: $ac_cv_type_boolean" >&5
28552 echo "${ECHO_T}$ac_cv_type_boolean" >&6; }
28553 if test $ac_cv_type_boolean = yes; then
28554
28555 cat >>confdefs.h <<_ACEOF
28556 #define HAVE_BOOLEAN 1
28557 _ACEOF
28558
28559
28560                             { echo "$as_me:$LINENO: checking for boolean" >&5
28561 echo $ECHO_N "checking for boolean... $ECHO_C" >&6; }
28562 if test "${ac_cv_type_boolean+set}" = set; then
28563   echo $ECHO_N "(cached) $ECHO_C" >&6
28564 else
28565   cat >conftest.$ac_ext <<_ACEOF
28566 /* confdefs.h.  */
28567 _ACEOF
28568 cat confdefs.h >>conftest.$ac_ext
28569 cat >>conftest.$ac_ext <<_ACEOF
28570 /* end confdefs.h.  */
28571
28572                                     #undef HAVE_BOOLEAN
28573                                     #include <stdio.h>
28574                                     #include <jpeglib.h>
28575
28576
28577 typedef boolean ac__type_new_;
28578 int
28579 main ()
28580 {
28581 if ((ac__type_new_ *) 0)
28582   return 0;
28583 if (sizeof (ac__type_new_))
28584   return 0;
28585   ;
28586   return 0;
28587 }
28588 _ACEOF
28589 rm -f conftest.$ac_objext
28590 if { (ac_try="$ac_compile"
28591 case "(($ac_try" in
28592   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28593   *) ac_try_echo=$ac_try;;
28594 esac
28595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28596   (eval "$ac_compile") 2>conftest.er1
28597   ac_status=$?
28598   grep -v '^ *+' conftest.er1 >conftest.err
28599   rm -f conftest.er1
28600   cat conftest.err >&5
28601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28602   (exit $ac_status); } && {
28603          test -z "$ac_c_werror_flag" ||
28604          test ! -s conftest.err
28605        } && test -s conftest.$ac_objext; then
28606   ac_cv_type_boolean=yes
28607 else
28608   echo "$as_me: failed program was:" >&5
28609 sed 's/^/| /' conftest.$ac_ext >&5
28610
28611         ac_cv_type_boolean=no
28612 fi
28613
28614 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28615 fi
28616 { echo "$as_me:$LINENO: result: $ac_cv_type_boolean" >&5
28617 echo "${ECHO_T}$ac_cv_type_boolean" >&6; }
28618
28619 # The cast to long int works around a bug in the HP C Compiler
28620 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
28621 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
28622 # This bug is HP SR number 8606223364.
28623 { echo "$as_me:$LINENO: checking size of boolean" >&5
28624 echo $ECHO_N "checking size of boolean... $ECHO_C" >&6; }
28625 if test "${ac_cv_sizeof_boolean+set}" = set; then
28626   echo $ECHO_N "(cached) $ECHO_C" >&6
28627 else
28628   if test "$cross_compiling" = yes; then
28629   # Depending upon the size, compute the lo and hi bounds.
28630 cat >conftest.$ac_ext <<_ACEOF
28631 /* confdefs.h.  */
28632 _ACEOF
28633 cat confdefs.h >>conftest.$ac_ext
28634 cat >>conftest.$ac_ext <<_ACEOF
28635 /* end confdefs.h.  */
28636
28637                                     #undef HAVE_BOOLEAN
28638                                     #include <stdio.h>
28639                                     #include <jpeglib.h>
28640
28641
28642    typedef boolean ac__type_sizeof_;
28643 int
28644 main ()
28645 {
28646 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
28647 test_array [0] = 0
28648
28649   ;
28650   return 0;
28651 }
28652 _ACEOF
28653 rm -f conftest.$ac_objext
28654 if { (ac_try="$ac_compile"
28655 case "(($ac_try" in
28656   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28657   *) ac_try_echo=$ac_try;;
28658 esac
28659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28660   (eval "$ac_compile") 2>conftest.er1
28661   ac_status=$?
28662   grep -v '^ *+' conftest.er1 >conftest.err
28663   rm -f conftest.er1
28664   cat conftest.err >&5
28665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28666   (exit $ac_status); } && {
28667          test -z "$ac_c_werror_flag" ||
28668          test ! -s conftest.err
28669        } && test -s conftest.$ac_objext; then
28670   ac_lo=0 ac_mid=0
28671   while :; do
28672     cat >conftest.$ac_ext <<_ACEOF
28673 /* confdefs.h.  */
28674 _ACEOF
28675 cat confdefs.h >>conftest.$ac_ext
28676 cat >>conftest.$ac_ext <<_ACEOF
28677 /* end confdefs.h.  */
28678
28679                                     #undef HAVE_BOOLEAN
28680                                     #include <stdio.h>
28681                                     #include <jpeglib.h>
28682
28683
28684    typedef boolean ac__type_sizeof_;
28685 int
28686 main ()
28687 {
28688 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
28689 test_array [0] = 0
28690
28691   ;
28692   return 0;
28693 }
28694 _ACEOF
28695 rm -f conftest.$ac_objext
28696 if { (ac_try="$ac_compile"
28697 case "(($ac_try" in
28698   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28699   *) ac_try_echo=$ac_try;;
28700 esac
28701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28702   (eval "$ac_compile") 2>conftest.er1
28703   ac_status=$?
28704   grep -v '^ *+' conftest.er1 >conftest.err
28705   rm -f conftest.er1
28706   cat conftest.err >&5
28707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28708   (exit $ac_status); } && {
28709          test -z "$ac_c_werror_flag" ||
28710          test ! -s conftest.err
28711        } && test -s conftest.$ac_objext; then
28712   ac_hi=$ac_mid; break
28713 else
28714   echo "$as_me: failed program was:" >&5
28715 sed 's/^/| /' conftest.$ac_ext >&5
28716
28717         ac_lo=`expr $ac_mid + 1`
28718                         if test $ac_lo -le $ac_mid; then
28719                           ac_lo= ac_hi=
28720                           break
28721                         fi
28722                         ac_mid=`expr 2 '*' $ac_mid + 1`
28723 fi
28724
28725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28726   done
28727 else
28728   echo "$as_me: failed program was:" >&5
28729 sed 's/^/| /' conftest.$ac_ext >&5
28730
28731         cat >conftest.$ac_ext <<_ACEOF
28732 /* confdefs.h.  */
28733 _ACEOF
28734 cat confdefs.h >>conftest.$ac_ext
28735 cat >>conftest.$ac_ext <<_ACEOF
28736 /* end confdefs.h.  */
28737
28738                                     #undef HAVE_BOOLEAN
28739                                     #include <stdio.h>
28740                                     #include <jpeglib.h>
28741
28742
28743    typedef boolean ac__type_sizeof_;
28744 int
28745 main ()
28746 {
28747 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
28748 test_array [0] = 0
28749
28750   ;
28751   return 0;
28752 }
28753 _ACEOF
28754 rm -f conftest.$ac_objext
28755 if { (ac_try="$ac_compile"
28756 case "(($ac_try" in
28757   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28758   *) ac_try_echo=$ac_try;;
28759 esac
28760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28761   (eval "$ac_compile") 2>conftest.er1
28762   ac_status=$?
28763   grep -v '^ *+' conftest.er1 >conftest.err
28764   rm -f conftest.er1
28765   cat conftest.err >&5
28766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28767   (exit $ac_status); } && {
28768          test -z "$ac_c_werror_flag" ||
28769          test ! -s conftest.err
28770        } && test -s conftest.$ac_objext; then
28771   ac_hi=-1 ac_mid=-1
28772   while :; do
28773     cat >conftest.$ac_ext <<_ACEOF
28774 /* confdefs.h.  */
28775 _ACEOF
28776 cat confdefs.h >>conftest.$ac_ext
28777 cat >>conftest.$ac_ext <<_ACEOF
28778 /* end confdefs.h.  */
28779
28780                                     #undef HAVE_BOOLEAN
28781                                     #include <stdio.h>
28782                                     #include <jpeglib.h>
28783
28784
28785    typedef boolean ac__type_sizeof_;
28786 int
28787 main ()
28788 {
28789 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
28790 test_array [0] = 0
28791
28792   ;
28793   return 0;
28794 }
28795 _ACEOF
28796 rm -f conftest.$ac_objext
28797 if { (ac_try="$ac_compile"
28798 case "(($ac_try" in
28799   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28800   *) ac_try_echo=$ac_try;;
28801 esac
28802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28803   (eval "$ac_compile") 2>conftest.er1
28804   ac_status=$?
28805   grep -v '^ *+' conftest.er1 >conftest.err
28806   rm -f conftest.er1
28807   cat conftest.err >&5
28808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28809   (exit $ac_status); } && {
28810          test -z "$ac_c_werror_flag" ||
28811          test ! -s conftest.err
28812        } && test -s conftest.$ac_objext; then
28813   ac_lo=$ac_mid; break
28814 else
28815   echo "$as_me: failed program was:" >&5
28816 sed 's/^/| /' conftest.$ac_ext >&5
28817
28818         ac_hi=`expr '(' $ac_mid ')' - 1`
28819                         if test $ac_mid -le $ac_hi; then
28820                           ac_lo= ac_hi=
28821                           break
28822                         fi
28823                         ac_mid=`expr 2 '*' $ac_mid`
28824 fi
28825
28826 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28827   done
28828 else
28829   echo "$as_me: failed program was:" >&5
28830 sed 's/^/| /' conftest.$ac_ext >&5
28831
28832         ac_lo= ac_hi=
28833 fi
28834
28835 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28836 fi
28837
28838 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28839 # Binary search between lo and hi bounds.
28840 while test "x$ac_lo" != "x$ac_hi"; do
28841   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
28842   cat >conftest.$ac_ext <<_ACEOF
28843 /* confdefs.h.  */
28844 _ACEOF
28845 cat confdefs.h >>conftest.$ac_ext
28846 cat >>conftest.$ac_ext <<_ACEOF
28847 /* end confdefs.h.  */
28848
28849                                     #undef HAVE_BOOLEAN
28850                                     #include <stdio.h>
28851                                     #include <jpeglib.h>
28852
28853
28854    typedef boolean ac__type_sizeof_;
28855 int
28856 main ()
28857 {
28858 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
28859 test_array [0] = 0
28860
28861   ;
28862   return 0;
28863 }
28864 _ACEOF
28865 rm -f conftest.$ac_objext
28866 if { (ac_try="$ac_compile"
28867 case "(($ac_try" in
28868   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28869   *) ac_try_echo=$ac_try;;
28870 esac
28871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28872   (eval "$ac_compile") 2>conftest.er1
28873   ac_status=$?
28874   grep -v '^ *+' conftest.er1 >conftest.err
28875   rm -f conftest.er1
28876   cat conftest.err >&5
28877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28878   (exit $ac_status); } && {
28879          test -z "$ac_c_werror_flag" ||
28880          test ! -s conftest.err
28881        } && test -s conftest.$ac_objext; then
28882   ac_hi=$ac_mid
28883 else
28884   echo "$as_me: failed program was:" >&5
28885 sed 's/^/| /' conftest.$ac_ext >&5
28886
28887         ac_lo=`expr '(' $ac_mid ')' + 1`
28888 fi
28889
28890 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28891 done
28892 case $ac_lo in
28893 ?*) ac_cv_sizeof_boolean=$ac_lo;;
28894 '') if test "$ac_cv_type_boolean" = yes; then
28895      { { echo "$as_me:$LINENO: error: cannot compute sizeof (boolean)
28896 See \`config.log' for more details." >&5
28897 echo "$as_me: error: cannot compute sizeof (boolean)
28898 See \`config.log' for more details." >&2;}
28899    { (exit 77); exit 77; }; }
28900    else
28901      ac_cv_sizeof_boolean=0
28902    fi ;;
28903 esac
28904 else
28905   cat >conftest.$ac_ext <<_ACEOF
28906 /* confdefs.h.  */
28907 _ACEOF
28908 cat confdefs.h >>conftest.$ac_ext
28909 cat >>conftest.$ac_ext <<_ACEOF
28910 /* end confdefs.h.  */
28911
28912                                     #undef HAVE_BOOLEAN
28913                                     #include <stdio.h>
28914                                     #include <jpeglib.h>
28915
28916
28917    typedef boolean ac__type_sizeof_;
28918 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
28919 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
28920 #include <stdio.h>
28921 #include <stdlib.h>
28922 int
28923 main ()
28924 {
28925
28926   FILE *f = fopen ("conftest.val", "w");
28927   if (! f)
28928     return 1;
28929   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
28930     {
28931       long int i = longval ();
28932       if (i != ((long int) (sizeof (ac__type_sizeof_))))
28933         return 1;
28934       fprintf (f, "%ld\n", i);
28935     }
28936   else
28937     {
28938       unsigned long int i = ulongval ();
28939       if (i != ((long int) (sizeof (ac__type_sizeof_))))
28940         return 1;
28941       fprintf (f, "%lu\n", i);
28942     }
28943   return ferror (f) || fclose (f) != 0;
28944
28945   ;
28946   return 0;
28947 }
28948 _ACEOF
28949 rm -f conftest$ac_exeext
28950 if { (ac_try="$ac_link"
28951 case "(($ac_try" in
28952   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28953   *) ac_try_echo=$ac_try;;
28954 esac
28955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28956   (eval "$ac_link") 2>&5
28957   ac_status=$?
28958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28959   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28960   { (case "(($ac_try" in
28961   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28962   *) ac_try_echo=$ac_try;;
28963 esac
28964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28965   (eval "$ac_try") 2>&5
28966   ac_status=$?
28967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28968   (exit $ac_status); }; }; then
28969   ac_cv_sizeof_boolean=`cat conftest.val`
28970 else
28971   echo "$as_me: program exited with status $ac_status" >&5
28972 echo "$as_me: failed program was:" >&5
28973 sed 's/^/| /' conftest.$ac_ext >&5
28974
28975 ( exit $ac_status )
28976 if test "$ac_cv_type_boolean" = yes; then
28977      { { echo "$as_me:$LINENO: error: cannot compute sizeof (boolean)
28978 See \`config.log' for more details." >&5
28979 echo "$as_me: error: cannot compute sizeof (boolean)
28980 See \`config.log' for more details." >&2;}
28981    { (exit 77); exit 77; }; }
28982    else
28983      ac_cv_sizeof_boolean=0
28984    fi
28985 fi
28986 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28987 fi
28988 rm -f conftest.val
28989 fi
28990 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_boolean" >&5
28991 echo "${ECHO_T}$ac_cv_sizeof_boolean" >&6; }
28992
28993
28994
28995 cat >>confdefs.h <<_ACEOF
28996 #define SIZEOF_BOOLEAN $ac_cv_sizeof_boolean
28997 _ACEOF
28998
28999
29000                             cat >>confdefs.h <<_ACEOF
29001 #define wxHACK_BOOLEAN wxInt`expr 8 \* $ac_cv_sizeof_boolean`
29002 _ACEOF
29003
29004
29005 fi
29006
29007                 fi
29008             fi
29009         fi
29010     fi
29011 fi
29012
29013
29014 TIFF_LINK=
29015 TIFF_PREREQ_LINKS=-lm
29016 if test "$wxUSE_LIBTIFF" != "no" ; then
29017     cat >>confdefs.h <<\_ACEOF
29018 #define wxUSE_LIBTIFF 1
29019 _ACEOF
29020
29021
29022     if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then
29023                         if test "$wxUSE_LIBJPEG" = "sys"; then
29024             TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $JPEG_LINK"
29025         fi
29026         if test "$wxUSE_ZLIB" = "sys"; then
29027             TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $ZLIB_LINK"
29028         fi
29029         { echo "$as_me:$LINENO: checking for tiffio.h" >&5
29030 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
29031 if test "${ac_cv_header_tiffio_h+set}" = set; then
29032   echo $ECHO_N "(cached) $ECHO_C" >&6
29033 else
29034   cat >conftest.$ac_ext <<_ACEOF
29035 /* confdefs.h.  */
29036 _ACEOF
29037 cat confdefs.h >>conftest.$ac_ext
29038 cat >>conftest.$ac_ext <<_ACEOF
29039 /* end confdefs.h.  */
29040
29041
29042
29043 #include <tiffio.h>
29044 _ACEOF
29045 rm -f conftest.$ac_objext
29046 if { (ac_try="$ac_compile"
29047 case "(($ac_try" in
29048   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29049   *) ac_try_echo=$ac_try;;
29050 esac
29051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29052   (eval "$ac_compile") 2>conftest.er1
29053   ac_status=$?
29054   grep -v '^ *+' conftest.er1 >conftest.err
29055   rm -f conftest.er1
29056   cat conftest.err >&5
29057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29058   (exit $ac_status); } && {
29059          test -z "$ac_c_werror_flag" ||
29060          test ! -s conftest.err
29061        } && test -s conftest.$ac_objext; then
29062   ac_cv_header_tiffio_h=yes
29063 else
29064   echo "$as_me: failed program was:" >&5
29065 sed 's/^/| /' conftest.$ac_ext >&5
29066
29067         ac_cv_header_tiffio_h=no
29068 fi
29069
29070 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29071 fi
29072 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
29073 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
29074 if test $ac_cv_header_tiffio_h = yes; then
29075
29076                             { echo "$as_me:$LINENO: checking for TIFFError in -ltiff" >&5
29077 echo $ECHO_N "checking for TIFFError in -ltiff... $ECHO_C" >&6; }
29078 if test "${ac_cv_lib_tiff_TIFFError+set}" = set; then
29079   echo $ECHO_N "(cached) $ECHO_C" >&6
29080 else
29081   ac_check_lib_save_LIBS=$LIBS
29082 LIBS="-ltiff $TIFF_PREREQ_LINKS $LIBS"
29083 cat >conftest.$ac_ext <<_ACEOF
29084 /* confdefs.h.  */
29085 _ACEOF
29086 cat confdefs.h >>conftest.$ac_ext
29087 cat >>conftest.$ac_ext <<_ACEOF
29088 /* end confdefs.h.  */
29089
29090 /* Override any GCC internal prototype to avoid an error.
29091    Use char because int might match the return type of a GCC
29092    builtin and then its argument prototype would still apply.  */
29093 #ifdef __cplusplus
29094 extern "C"
29095 #endif
29096 char TIFFError ();
29097 int
29098 main ()
29099 {
29100 return TIFFError ();
29101   ;
29102   return 0;
29103 }
29104 _ACEOF
29105 rm -f conftest.$ac_objext conftest$ac_exeext
29106 if { (ac_try="$ac_link"
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_link") 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_exeext &&
29122        $as_test_x conftest$ac_exeext; then
29123   ac_cv_lib_tiff_TIFFError=yes
29124 else
29125   echo "$as_me: failed program was:" >&5
29126 sed 's/^/| /' conftest.$ac_ext >&5
29127
29128         ac_cv_lib_tiff_TIFFError=no
29129 fi
29130
29131 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29132       conftest$ac_exeext conftest.$ac_ext
29133 LIBS=$ac_check_lib_save_LIBS
29134 fi
29135 { echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFError" >&5
29136 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFError" >&6; }
29137 if test $ac_cv_lib_tiff_TIFFError = yes; then
29138   TIFF_LINK=" -ltiff"
29139 fi
29140
29141
29142 fi
29143
29144
29145
29146         if test "x$TIFF_LINK" = "x" ; then
29147             if test "$wxUSE_LIBTIFF" = "sys" ; then
29148                 { { echo "$as_me:$LINENO: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&5
29149 echo "$as_me: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&2;}
29150    { (exit 1); exit 1; }; }
29151             else
29152                 { echo "$as_me:$LINENO: WARNING: system tiff library not found, will use built-in instead" >&5
29153 echo "$as_me: WARNING: system tiff library not found, will use built-in instead" >&2;}
29154                 wxUSE_LIBTIFF=builtin
29155             fi
29156         else
29157                         wxUSE_LIBTIFF=sys
29158         fi
29159     fi
29160     if test "$wxUSE_LIBTIFF" = "builtin" ; then
29161         if test "$wxUSE_LIBJPEG" = "no"; then
29162                                                                                     ac_configure_args="$ac_configure_args --disable-jpeg"
29163         fi
29164         subdirs="$subdirs src/tiff"
29165
29166     fi
29167 fi
29168
29169
29170 if test "$wxUSE_EXPAT" != "no"; then
29171     wxUSE_XML=yes
29172     cat >>confdefs.h <<\_ACEOF
29173 #define wxUSE_EXPAT 1
29174 _ACEOF
29175
29176     cat >>confdefs.h <<\_ACEOF
29177 #define wxUSE_XML 1
29178 _ACEOF
29179
29180
29181     if test "$wxUSE_EXPAT" = "sys" -o "$wxUSE_EXPAT" = "yes" ; then
29182         { echo "$as_me:$LINENO: checking for expat.h" >&5
29183 echo $ECHO_N "checking for expat.h... $ECHO_C" >&6; }
29184 if test "${ac_cv_header_expat_h+set}" = set; then
29185   echo $ECHO_N "(cached) $ECHO_C" >&6
29186 else
29187   cat >conftest.$ac_ext <<_ACEOF
29188 /* confdefs.h.  */
29189 _ACEOF
29190 cat confdefs.h >>conftest.$ac_ext
29191 cat >>conftest.$ac_ext <<_ACEOF
29192 /* end confdefs.h.  */
29193
29194
29195 #include <expat.h>
29196 _ACEOF
29197 rm -f conftest.$ac_objext
29198 if { (ac_try="$ac_compile"
29199 case "(($ac_try" in
29200   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29201   *) ac_try_echo=$ac_try;;
29202 esac
29203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29204   (eval "$ac_compile") 2>conftest.er1
29205   ac_status=$?
29206   grep -v '^ *+' conftest.er1 >conftest.err
29207   rm -f conftest.er1
29208   cat conftest.err >&5
29209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29210   (exit $ac_status); } && {
29211          test -z "$ac_c_werror_flag" ||
29212          test ! -s conftest.err
29213        } && test -s conftest.$ac_objext; then
29214   ac_cv_header_expat_h=yes
29215 else
29216   echo "$as_me: failed program was:" >&5
29217 sed 's/^/| /' conftest.$ac_ext >&5
29218
29219         ac_cv_header_expat_h=no
29220 fi
29221
29222 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29223 fi
29224 { echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
29225 echo "${ECHO_T}$ac_cv_header_expat_h" >&6; }
29226 if test $ac_cv_header_expat_h = yes; then
29227   found_expat_h=1
29228 fi
29229
29230
29231         if test "x$found_expat_h" = "x1"; then
29232                         { echo "$as_me:$LINENO: checking if expat.h is valid C++ header" >&5
29233 echo $ECHO_N "checking if expat.h is valid C++ header... $ECHO_C" >&6; }
29234 if test "${wx_cv_expat_is_not_broken+set}" = set; then
29235   echo $ECHO_N "(cached) $ECHO_C" >&6
29236 else
29237
29238                 ac_ext=cpp
29239 ac_cpp='$CXXCPP $CPPFLAGS'
29240 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29241 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29242 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29243
29244                 cat >conftest.$ac_ext <<_ACEOF
29245 /* confdefs.h.  */
29246 _ACEOF
29247 cat confdefs.h >>conftest.$ac_ext
29248 cat >>conftest.$ac_ext <<_ACEOF
29249 /* end confdefs.h.  */
29250 #include <expat.h>
29251 int
29252 main ()
29253 {
29254
29255   ;
29256   return 0;
29257 }
29258 _ACEOF
29259 rm -f conftest.$ac_objext
29260 if { (ac_try="$ac_compile"
29261 case "(($ac_try" in
29262   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29263   *) ac_try_echo=$ac_try;;
29264 esac
29265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29266   (eval "$ac_compile") 2>conftest.er1
29267   ac_status=$?
29268   grep -v '^ *+' conftest.er1 >conftest.err
29269   rm -f conftest.er1
29270   cat conftest.err >&5
29271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29272   (exit $ac_status); } && {
29273          test -z "$ac_cxx_werror_flag" ||
29274          test ! -s conftest.err
29275        } && test -s conftest.$ac_objext; then
29276   wx_cv_expat_is_not_broken=yes
29277 else
29278   echo "$as_me: failed program was:" >&5
29279 sed 's/^/| /' conftest.$ac_ext >&5
29280
29281         wx_cv_expat_is_not_broken=no
29282
29283 fi
29284
29285 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29286                 ac_ext=c
29287 ac_cpp='$CPP $CPPFLAGS'
29288 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29289 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29290 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29291
29292
29293
29294 fi
29295 { echo "$as_me:$LINENO: result: $wx_cv_expat_is_not_broken" >&5
29296 echo "${ECHO_T}$wx_cv_expat_is_not_broken" >&6; }
29297             if test "$wx_cv_expat_is_not_broken" = "yes" ; then
29298                 { echo "$as_me:$LINENO: checking for XML_ParserCreate in -lexpat" >&5
29299 echo $ECHO_N "checking for XML_ParserCreate in -lexpat... $ECHO_C" >&6; }
29300 if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then
29301   echo $ECHO_N "(cached) $ECHO_C" >&6
29302 else
29303   ac_check_lib_save_LIBS=$LIBS
29304 LIBS="-lexpat  $LIBS"
29305 cat >conftest.$ac_ext <<_ACEOF
29306 /* confdefs.h.  */
29307 _ACEOF
29308 cat confdefs.h >>conftest.$ac_ext
29309 cat >>conftest.$ac_ext <<_ACEOF
29310 /* end confdefs.h.  */
29311
29312 /* Override any GCC internal prototype to avoid an error.
29313    Use char because int might match the return type of a GCC
29314    builtin and then its argument prototype would still apply.  */
29315 #ifdef __cplusplus
29316 extern "C"
29317 #endif
29318 char XML_ParserCreate ();
29319 int
29320 main ()
29321 {
29322 return XML_ParserCreate ();
29323   ;
29324   return 0;
29325 }
29326 _ACEOF
29327 rm -f conftest.$ac_objext conftest$ac_exeext
29328 if { (ac_try="$ac_link"
29329 case "(($ac_try" in
29330   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29331   *) ac_try_echo=$ac_try;;
29332 esac
29333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29334   (eval "$ac_link") 2>conftest.er1
29335   ac_status=$?
29336   grep -v '^ *+' conftest.er1 >conftest.err
29337   rm -f conftest.er1
29338   cat conftest.err >&5
29339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29340   (exit $ac_status); } && {
29341          test -z "$ac_c_werror_flag" ||
29342          test ! -s conftest.err
29343        } && test -s conftest$ac_exeext &&
29344        $as_test_x conftest$ac_exeext; then
29345   ac_cv_lib_expat_XML_ParserCreate=yes
29346 else
29347   echo "$as_me: failed program was:" >&5
29348 sed 's/^/| /' conftest.$ac_ext >&5
29349
29350         ac_cv_lib_expat_XML_ParserCreate=no
29351 fi
29352
29353 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29354       conftest$ac_exeext conftest.$ac_ext
29355 LIBS=$ac_check_lib_save_LIBS
29356 fi
29357 { echo "$as_me:$LINENO: result: $ac_cv_lib_expat_XML_ParserCreate" >&5
29358 echo "${ECHO_T}$ac_cv_lib_expat_XML_ParserCreate" >&6; }
29359 if test $ac_cv_lib_expat_XML_ParserCreate = yes; then
29360   EXPAT_LINK=" -lexpat"
29361 fi
29362
29363             fi
29364         fi
29365         if test "x$EXPAT_LINK" = "x" ; then
29366             if test "$wxUSE_EXPAT" = "sys" ; then
29367                 { { echo "$as_me:$LINENO: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&5
29368 echo "$as_me: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&2;}
29369    { (exit 1); exit 1; }; }
29370             else
29371                 { echo "$as_me:$LINENO: WARNING: system expat library not found, will use built-in instead" >&5
29372 echo "$as_me: WARNING: system expat library not found, will use built-in instead" >&2;}
29373                 wxUSE_EXPAT=builtin
29374             fi
29375         else
29376                         wxUSE_EXPAT=sys
29377         fi
29378     fi
29379     if test "$wxUSE_EXPAT" = "builtin" ; then
29380                 subdirs="$subdirs src/expat"
29381
29382     fi
29383 fi
29384
29385
29386
29387 if test "$wxUSE_LIBMSPACK" != "no"; then
29388     { echo "$as_me:$LINENO: checking for mspack.h" >&5
29389 echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6; }
29390 if test "${ac_cv_header_mspack_h+set}" = set; then
29391   echo $ECHO_N "(cached) $ECHO_C" >&6
29392 else
29393   cat >conftest.$ac_ext <<_ACEOF
29394 /* confdefs.h.  */
29395 _ACEOF
29396 cat confdefs.h >>conftest.$ac_ext
29397 cat >>conftest.$ac_ext <<_ACEOF
29398 /* end confdefs.h.  */
29399
29400
29401 #include <mspack.h>
29402 _ACEOF
29403 rm -f conftest.$ac_objext
29404 if { (ac_try="$ac_compile"
29405 case "(($ac_try" in
29406   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29407   *) ac_try_echo=$ac_try;;
29408 esac
29409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29410   (eval "$ac_compile") 2>conftest.er1
29411   ac_status=$?
29412   grep -v '^ *+' conftest.er1 >conftest.err
29413   rm -f conftest.er1
29414   cat conftest.err >&5
29415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29416   (exit $ac_status); } && {
29417          test -z "$ac_c_werror_flag" ||
29418          test ! -s conftest.err
29419        } && test -s conftest.$ac_objext; then
29420   ac_cv_header_mspack_h=yes
29421 else
29422   echo "$as_me: failed program was:" >&5
29423 sed 's/^/| /' conftest.$ac_ext >&5
29424
29425         ac_cv_header_mspack_h=no
29426 fi
29427
29428 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29429 fi
29430 { echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
29431 echo "${ECHO_T}$ac_cv_header_mspack_h" >&6; }
29432 if test $ac_cv_header_mspack_h = yes; then
29433   found_mspack_h=1
29434 fi
29435
29436
29437     if test "x$found_mspack_h" = "x1"; then
29438         { echo "$as_me:$LINENO: checking for mspack_create_chm_decompressor in -lmspack" >&5
29439 echo $ECHO_N "checking for mspack_create_chm_decompressor in -lmspack... $ECHO_C" >&6; }
29440 if test "${ac_cv_lib_mspack_mspack_create_chm_decompressor+set}" = set; then
29441   echo $ECHO_N "(cached) $ECHO_C" >&6
29442 else
29443   ac_check_lib_save_LIBS=$LIBS
29444 LIBS="-lmspack  $LIBS"
29445 cat >conftest.$ac_ext <<_ACEOF
29446 /* confdefs.h.  */
29447 _ACEOF
29448 cat confdefs.h >>conftest.$ac_ext
29449 cat >>conftest.$ac_ext <<_ACEOF
29450 /* end confdefs.h.  */
29451
29452 /* Override any GCC internal prototype to avoid an error.
29453    Use char because int might match the return type of a GCC
29454    builtin and then its argument prototype would still apply.  */
29455 #ifdef __cplusplus
29456 extern "C"
29457 #endif
29458 char mspack_create_chm_decompressor ();
29459 int
29460 main ()
29461 {
29462 return mspack_create_chm_decompressor ();
29463   ;
29464   return 0;
29465 }
29466 _ACEOF
29467 rm -f conftest.$ac_objext conftest$ac_exeext
29468 if { (ac_try="$ac_link"
29469 case "(($ac_try" in
29470   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29471   *) ac_try_echo=$ac_try;;
29472 esac
29473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29474   (eval "$ac_link") 2>conftest.er1
29475   ac_status=$?
29476   grep -v '^ *+' conftest.er1 >conftest.err
29477   rm -f conftest.er1
29478   cat conftest.err >&5
29479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29480   (exit $ac_status); } && {
29481          test -z "$ac_c_werror_flag" ||
29482          test ! -s conftest.err
29483        } && test -s conftest$ac_exeext &&
29484        $as_test_x conftest$ac_exeext; then
29485   ac_cv_lib_mspack_mspack_create_chm_decompressor=yes
29486 else
29487   echo "$as_me: failed program was:" >&5
29488 sed 's/^/| /' conftest.$ac_ext >&5
29489
29490         ac_cv_lib_mspack_mspack_create_chm_decompressor=no
29491 fi
29492
29493 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29494       conftest$ac_exeext conftest.$ac_ext
29495 LIBS=$ac_check_lib_save_LIBS
29496 fi
29497 { echo "$as_me:$LINENO: result: $ac_cv_lib_mspack_mspack_create_chm_decompressor" >&5
29498 echo "${ECHO_T}$ac_cv_lib_mspack_mspack_create_chm_decompressor" >&6; }
29499 if test $ac_cv_lib_mspack_mspack_create_chm_decompressor = yes; then
29500   MSPACK_LINK=" -lmspack"
29501 fi
29502
29503     fi
29504     if test "x$MSPACK_LINK" = "x" ; then
29505         wxUSE_LIBMSPACK=no
29506     fi
29507 fi
29508
29509 if test "$wxUSE_LIBMSPACK" != "no"; then
29510     cat >>confdefs.h <<\_ACEOF
29511 #define wxUSE_LIBMSPACK 1
29512 _ACEOF
29513
29514 fi
29515
29516
29517
29518 AFMINSTALL=
29519 WIN32INSTALL=
29520
29521 TOOLKIT=
29522 TOOLKIT_INCLUDE=
29523 WIDGET_SET=
29524
29525 if test "$USE_WIN32" = 1 ; then
29526
29527 for ac_header in w32api.h
29528 do
29529 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29530 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29531 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29532 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29533   echo $ECHO_N "(cached) $ECHO_C" >&6
29534 else
29535   cat >conftest.$ac_ext <<_ACEOF
29536 /* confdefs.h.  */
29537 _ACEOF
29538 cat confdefs.h >>conftest.$ac_ext
29539 cat >>conftest.$ac_ext <<_ACEOF
29540 /* end confdefs.h.  */
29541
29542
29543 #include <$ac_header>
29544 _ACEOF
29545 rm -f conftest.$ac_objext
29546 if { (ac_try="$ac_compile"
29547 case "(($ac_try" in
29548   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29549   *) ac_try_echo=$ac_try;;
29550 esac
29551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29552   (eval "$ac_compile") 2>conftest.er1
29553   ac_status=$?
29554   grep -v '^ *+' conftest.er1 >conftest.err
29555   rm -f conftest.er1
29556   cat conftest.err >&5
29557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29558   (exit $ac_status); } && {
29559          test -z "$ac_c_werror_flag" ||
29560          test ! -s conftest.err
29561        } && test -s conftest.$ac_objext; then
29562   eval "$as_ac_Header=yes"
29563 else
29564   echo "$as_me: failed program was:" >&5
29565 sed 's/^/| /' conftest.$ac_ext >&5
29566
29567         eval "$as_ac_Header=no"
29568 fi
29569
29570 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29571 fi
29572 ac_res=`eval echo '${'$as_ac_Header'}'`
29573                { echo "$as_me:$LINENO: result: $ac_res" >&5
29574 echo "${ECHO_T}$ac_res" >&6; }
29575 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29576   cat >>confdefs.h <<_ACEOF
29577 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29578 _ACEOF
29579
29580 fi
29581
29582 done
29583
29584     { echo "$as_me:$LINENO: checking for windows.h" >&5
29585 echo $ECHO_N "checking for windows.h... $ECHO_C" >&6; }
29586 if test "${ac_cv_header_windows_h+set}" = set; then
29587   echo $ECHO_N "(cached) $ECHO_C" >&6
29588 else
29589   cat >conftest.$ac_ext <<_ACEOF
29590 /* confdefs.h.  */
29591 _ACEOF
29592 cat confdefs.h >>conftest.$ac_ext
29593 cat >>conftest.$ac_ext <<_ACEOF
29594 /* end confdefs.h.  */
29595
29596
29597 #include <windows.h>
29598 _ACEOF
29599 rm -f conftest.$ac_objext
29600 if { (ac_try="$ac_compile"
29601 case "(($ac_try" in
29602   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29603   *) ac_try_echo=$ac_try;;
29604 esac
29605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29606   (eval "$ac_compile") 2>conftest.er1
29607   ac_status=$?
29608   grep -v '^ *+' conftest.er1 >conftest.err
29609   rm -f conftest.er1
29610   cat conftest.err >&5
29611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29612   (exit $ac_status); } && {
29613          test -z "$ac_c_werror_flag" ||
29614          test ! -s conftest.err
29615        } && test -s conftest.$ac_objext; then
29616   ac_cv_header_windows_h=yes
29617 else
29618   echo "$as_me: failed program was:" >&5
29619 sed 's/^/| /' conftest.$ac_ext >&5
29620
29621         ac_cv_header_windows_h=no
29622 fi
29623
29624 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29625 fi
29626 { echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
29627 echo "${ECHO_T}$ac_cv_header_windows_h" >&6; }
29628 if test $ac_cv_header_windows_h = yes; then
29629   :
29630 else
29631
29632         { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of windows.h" >&5
29633 echo "$as_me: error: please set CFLAGS to contain the location of windows.h" >&2;}
29634    { (exit 1); exit 1; }; }
29635
29636 fi
29637
29638
29639
29640     LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lcomdlg32 -ladvapi32 -lwsock32 -lgdi32"
29641     case "${host}" in
29642         x86_64-*-mingw32* )
29643                                                 WINDRES_CPU_DEFINE="--define WX_CPU_AMD64"
29644         ;;
29645     esac
29646     if test "$wxUSE_ACCESSIBILITY" = "yes" ; then
29647         LIBS="$LIBS -loleacc"
29648     fi
29649
29650     case "${host}" in
29651         *-*-cygwin* )
29652                         LIBS="$LIBS -lkernel32 -luser32"
29653     esac
29654
29655         RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__ $WINDRES_CPU_DEFINE"
29656     RESPROGRAMOBJ="\$(PROGRAM)_resources.o"
29657
29658                 WXCONFIG_RESFLAGS="--define __WIN32__ --define __WIN95__ --define __GNUWIN32__ $WINDRES_CPU_DEFINE"
29659
29660         WIN32INSTALL=win32install
29661
29662         { echo "$as_me:$LINENO: checking for pbt.h" >&5
29663 echo $ECHO_N "checking for pbt.h... $ECHO_C" >&6; }
29664 if test "${ac_cv_header_pbt_h+set}" = set; then
29665   echo $ECHO_N "(cached) $ECHO_C" >&6
29666 else
29667   cat >conftest.$ac_ext <<_ACEOF
29668 /* confdefs.h.  */
29669 _ACEOF
29670 cat confdefs.h >>conftest.$ac_ext
29671 cat >>conftest.$ac_ext <<_ACEOF
29672 /* end confdefs.h.  */
29673
29674
29675 #include <pbt.h>
29676 _ACEOF
29677 rm -f conftest.$ac_objext
29678 if { (ac_try="$ac_compile"
29679 case "(($ac_try" in
29680   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29681   *) ac_try_echo=$ac_try;;
29682 esac
29683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29684   (eval "$ac_compile") 2>conftest.er1
29685   ac_status=$?
29686   grep -v '^ *+' conftest.er1 >conftest.err
29687   rm -f conftest.er1
29688   cat conftest.err >&5
29689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29690   (exit $ac_status); } && {
29691          test -z "$ac_c_werror_flag" ||
29692          test ! -s conftest.err
29693        } && test -s conftest.$ac_objext; then
29694   ac_cv_header_pbt_h=yes
29695 else
29696   echo "$as_me: failed program was:" >&5
29697 sed 's/^/| /' conftest.$ac_ext >&5
29698
29699         ac_cv_header_pbt_h=no
29700 fi
29701
29702 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29703 fi
29704 { echo "$as_me:$LINENO: result: $ac_cv_header_pbt_h" >&5
29705 echo "${ECHO_T}$ac_cv_header_pbt_h" >&6; }
29706 if test $ac_cv_header_pbt_h = yes; then
29707   :
29708 else
29709   cat >>confdefs.h <<\_ACEOF
29710 #define NEED_PBT_H 1
29711 _ACEOF
29712
29713 fi
29714
29715
29716 fi
29717
29718 if test "$wxUSE_GUI" = "yes"; then
29719     USE_GUI=1
29720
29721     GUI_TK_LIBRARY=
29722
29723     WXGTK12=
29724     WXGTK127=
29725     WXGTK2=
29726     WXGPE=
29727
29728     if test "$wxUSE_OLD_COCOA" = 1 ; then
29729         if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes"; then
29730             { echo "$as_me:$LINENO: WARNING: Printing not supported under wxCocoa yet, disabled" >&5
29731 echo "$as_me: WARNING: Printing not supported under wxCocoa yet, disabled" >&2;}
29732             wxUSE_PRINTING_ARCHITECTURE=no
29733         fi
29734         if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
29735             { echo "$as_me:$LINENO: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&5
29736 echo "$as_me: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&2;}
29737             wxUSE_DRAG_AND_DROP=no
29738         fi
29739         if test "$wxUSE_DRAGIMAGE" = "yes"; then
29740             { echo "$as_me:$LINENO: WARNING: wxDragImage not supported under wxCocoa yet, disabled" >&5
29741 echo "$as_me: WARNING: wxDragImage not supported under wxCocoa yet, disabled" >&2;}
29742             wxUSE_DRAGIMAGE=no
29743         fi
29744     fi
29745
29746     if test "$wxUSE_MSW" = 1 ; then
29747         TOOLKIT=MSW
29748         GUIDIST=MSW_DIST
29749
29750                 case "${host}" in
29751             *-*-mingw32* )
29752                 WXCONFIG_LDFLAGS_GUI="$LDFLAGS -Wl,--subsystem,windows -mwindows"
29753         esac
29754     fi
29755
29756     if test "$wxUSE_GTK" = 1; then
29757                 { echo "$as_me:$LINENO: checking for GTK+ version" >&5
29758 echo $ECHO_N "checking for GTK+ version... $ECHO_C" >&6; }
29759
29760         gtk_version_cached=1
29761         if test "${wx_cv_lib_gtk+set}" = set; then
29762   echo $ECHO_N "(cached) $ECHO_C" >&6
29763 else
29764
29765                                                 gtk_version_cached=0
29766                 { echo "$as_me:$LINENO: result: " >&5
29767 echo "${ECHO_T}" >&6; }
29768
29769                                                 GTK_MODULES=
29770                 if test "$wxUSE_THREADS" = "yes"; then
29771                     GTK_MODULES=gthread
29772                 fi
29773
29774                                 wx_cv_lib_gtk=
29775                 if test "x$wxGTK_VERSION" != "x1"
29776                 then
29777                                                                                 case "${host}" in
29778                         *-*-solaris2* )
29779                             if test "$wxUSE_THREADS" = "yes" -a "$GCC" = yes; then
29780                                 enable_gtktest=no
29781                             fi
29782                     esac
29783
29784                     # Check whether --enable-gtktest was given.
29785 if test "${enable_gtktest+set}" = set; then
29786   enableval=$enable_gtktest;
29787 else
29788   enable_gtktest=yes
29789 fi
29790
29791
29792   pkg_config_args=gtk+-2.0
29793   for module in . $GTK_MODULES
29794   do
29795       case "$module" in
29796          gthread)
29797              pkg_config_args="$pkg_config_args gthread-2.0"
29798          ;;
29799       esac
29800   done
29801
29802   no_gtk=""
29803
29804   # Extract the first word of "pkg-config", so it can be a program name with args.
29805 set dummy pkg-config; ac_word=$2
29806 { echo "$as_me:$LINENO: checking for $ac_word" >&5
29807 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
29808 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
29809   echo $ECHO_N "(cached) $ECHO_C" >&6
29810 else
29811   case $PKG_CONFIG in
29812   [\\/]* | ?:[\\/]*)
29813   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
29814   ;;
29815   *)
29816   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29817 for as_dir in $PATH
29818 do
29819   IFS=$as_save_IFS
29820   test -z "$as_dir" && as_dir=.
29821   for ac_exec_ext in '' $ac_executable_extensions; do
29822   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29823     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
29824     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29825     break 2
29826   fi
29827 done
29828 done
29829 IFS=$as_save_IFS
29830
29831   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
29832   ;;
29833 esac
29834 fi
29835 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
29836 if test -n "$PKG_CONFIG"; then
29837   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
29838 echo "${ECHO_T}$PKG_CONFIG" >&6; }
29839 else
29840   { echo "$as_me:$LINENO: result: no" >&5
29841 echo "${ECHO_T}no" >&6; }
29842 fi
29843
29844
29845
29846   if test x$PKG_CONFIG != xno ; then
29847     if pkg-config --atleast-pkgconfig-version 0.7 ; then
29848       :
29849     else
29850       echo "*** pkg-config too old; version 0.7 or better required."
29851       no_gtk=yes
29852       PKG_CONFIG=no
29853     fi
29854   else
29855     no_gtk=yes
29856   fi
29857
29858   min_gtk_version=2.4.0
29859   { echo "$as_me:$LINENO: checking for GTK+ - version >= $min_gtk_version" >&5
29860 echo $ECHO_N "checking for GTK+ - version >= $min_gtk_version... $ECHO_C" >&6; }
29861
29862   if test x$PKG_CONFIG != xno ; then
29863     ## don't try to run the test against uninstalled libtool libs
29864     if $PKG_CONFIG --uninstalled $pkg_config_args; then
29865           echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
29866           enable_gtktest=no
29867     fi
29868
29869     if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
29870           :
29871     else
29872           no_gtk=yes
29873     fi
29874   fi
29875
29876   if test x"$no_gtk" = x ; then
29877     GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
29878     GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
29879     gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
29880            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
29881     gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
29882            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
29883     gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
29884            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
29885     if test "x$enable_gtktest" = "xyes" ; then
29886       ac_save_CFLAGS="$CFLAGS"
29887       ac_save_LIBS="$LIBS"
29888       CFLAGS="$CFLAGS $GTK_CFLAGS"
29889       LIBS="$GTK_LIBS $LIBS"
29890       rm -f conf.gtktest
29891       if test "$cross_compiling" = yes; then
29892   echo $ac_n "cross compiling; assumed OK... $ac_c"
29893 else
29894   cat >conftest.$ac_ext <<_ACEOF
29895 /* confdefs.h.  */
29896 _ACEOF
29897 cat confdefs.h >>conftest.$ac_ext
29898 cat >>conftest.$ac_ext <<_ACEOF
29899 /* end confdefs.h.  */
29900
29901 #include <gtk/gtk.h>
29902 #include <stdio.h>
29903 #include <stdlib.h>
29904
29905 int
29906 main ()
29907 {
29908   int major, minor, micro;
29909   char *tmp_version;
29910
29911   system ("touch conf.gtktest");
29912
29913   /* HP/UX 9 (%@#!) writes to sscanf strings */
29914   tmp_version = g_strdup("$min_gtk_version");
29915   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
29916      printf("%s, bad version string\n", "$min_gtk_version");
29917      exit(1);
29918    }
29919
29920   if ((gtk_major_version != $gtk_config_major_version) ||
29921       (gtk_minor_version != $gtk_config_minor_version) ||
29922       (gtk_micro_version != $gtk_config_micro_version))
29923     {
29924       printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
29925              $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
29926              gtk_major_version, gtk_minor_version, gtk_micro_version);
29927       printf ("*** was found! If pkg-config was correct, then it is best\n");
29928       printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
29929       printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
29930       printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
29931       printf("*** required on your system.\n");
29932       printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
29933       printf("*** to point to the correct configuration files\n");
29934     }
29935   else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
29936            (gtk_minor_version != GTK_MINOR_VERSION) ||
29937            (gtk_micro_version != GTK_MICRO_VERSION))
29938     {
29939       printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
29940              GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
29941       printf("*** library (version %d.%d.%d)\n",
29942              gtk_major_version, gtk_minor_version, gtk_micro_version);
29943     }
29944   else
29945     {
29946       if ((gtk_major_version > major) ||
29947         ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
29948         ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
29949       {
29950         return 0;
29951        }
29952      else
29953       {
29954         printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
29955                gtk_major_version, gtk_minor_version, gtk_micro_version);
29956         printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
29957                major, minor, micro);
29958         printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
29959         printf("***\n");
29960         printf("*** If you have already installed a sufficiently new version, this error\n");
29961         printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
29962         printf("*** being found. The easiest way to fix this is to remove the old version\n");
29963         printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
29964         printf("*** correct copy of pkg-config. (In this case, you will have to\n");
29965         printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
29966         printf("*** so that the correct libraries are found at run-time))\n");
29967       }
29968     }
29969   return 1;
29970 }
29971
29972 _ACEOF
29973 rm -f conftest$ac_exeext
29974 if { (ac_try="$ac_link"
29975 case "(($ac_try" in
29976   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29977   *) ac_try_echo=$ac_try;;
29978 esac
29979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29980   (eval "$ac_link") 2>&5
29981   ac_status=$?
29982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29983   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29984   { (case "(($ac_try" in
29985   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29986   *) ac_try_echo=$ac_try;;
29987 esac
29988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29989   (eval "$ac_try") 2>&5
29990   ac_status=$?
29991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29992   (exit $ac_status); }; }; then
29993   :
29994 else
29995   echo "$as_me: program exited with status $ac_status" >&5
29996 echo "$as_me: failed program was:" >&5
29997 sed 's/^/| /' conftest.$ac_ext >&5
29998
29999 ( exit $ac_status )
30000 no_gtk=yes
30001 fi
30002 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30003 fi
30004
30005
30006        CFLAGS="$ac_save_CFLAGS"
30007        LIBS="$ac_save_LIBS"
30008      fi
30009   fi
30010   if test "x$no_gtk" = x ; then
30011      { echo "$as_me:$LINENO: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5
30012 echo "${ECHO_T}yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6; }
30013      wx_cv_lib_gtk=2.0
30014   else
30015      { echo "$as_me:$LINENO: result: no" >&5
30016 echo "${ECHO_T}no" >&6; }
30017      if test "$PKG_CONFIG" = "no" ; then
30018        echo "*** A new enough version of pkg-config was not found."
30019        echo "*** See http://pkgconfig.sourceforge.net"
30020      else
30021        if test -f conf.gtktest ; then
30022         :
30023        else
30024           echo "*** Could not run GTK+ test program, checking why..."
30025           ac_save_CFLAGS="$CFLAGS"
30026           ac_save_LIBS="$LIBS"
30027           CFLAGS="$CFLAGS $GTK_CFLAGS"
30028           LIBS="$LIBS $GTK_LIBS"
30029           cat >conftest.$ac_ext <<_ACEOF
30030 /* confdefs.h.  */
30031 _ACEOF
30032 cat confdefs.h >>conftest.$ac_ext
30033 cat >>conftest.$ac_ext <<_ACEOF
30034 /* end confdefs.h.  */
30035
30036 #include <gtk/gtk.h>
30037 #include <stdio.h>
30038
30039 int
30040 main ()
30041 {
30042  return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
30043   ;
30044   return 0;
30045 }
30046 _ACEOF
30047 rm -f conftest.$ac_objext conftest$ac_exeext
30048 if { (ac_try="$ac_link"
30049 case "(($ac_try" in
30050   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30051   *) ac_try_echo=$ac_try;;
30052 esac
30053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30054   (eval "$ac_link") 2>conftest.er1
30055   ac_status=$?
30056   grep -v '^ *+' conftest.er1 >conftest.err
30057   rm -f conftest.er1
30058   cat conftest.err >&5
30059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30060   (exit $ac_status); } && {
30061          test -z "$ac_c_werror_flag" ||
30062          test ! -s conftest.err
30063        } && test -s conftest$ac_exeext &&
30064        $as_test_x conftest$ac_exeext; then
30065    echo "*** The test program compiled, but did not run. This usually means"
30066           echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
30067           echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
30068           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
30069           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
30070           echo "*** is required on your system"
30071           echo "***"
30072           echo "*** If you have an old version installed, it is best to remove it, although"
30073           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
30074 else
30075   echo "$as_me: failed program was:" >&5
30076 sed 's/^/| /' conftest.$ac_ext >&5
30077
30078          echo "*** The test program failed to compile or link. See the file config.log for the"
30079           echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."
30080 fi
30081
30082 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30083       conftest$ac_exeext conftest.$ac_ext
30084           CFLAGS="$ac_save_CFLAGS"
30085           LIBS="$ac_save_LIBS"
30086        fi
30087      fi
30088      GTK_CFLAGS=""
30089      GTK_LIBS=""
30090      :
30091   fi
30092
30093
30094   rm -f conf.gtktest
30095
30096
30097                                         GTK_LIBS="$GTK_LIBS -lX11"
30098                 fi
30099
30100                                 if test -z "$wx_cv_lib_gtk"; then
30101                     if test "x$wxGTK_VERSION" = "x1" -o "x$wxGTK_VERSION" = "xany" ; then
30102
30103 # Check whether --with-gtk-prefix was given.
30104 if test "${with_gtk_prefix+set}" = set; then
30105   withval=$with_gtk_prefix; gtk_config_prefix="$withval"
30106 else
30107   gtk_config_prefix=""
30108 fi
30109
30110
30111 # Check whether --with-gtk-exec-prefix was given.
30112 if test "${with_gtk_exec_prefix+set}" = set; then
30113   withval=$with_gtk_exec_prefix; gtk_config_exec_prefix="$withval"
30114 else
30115   gtk_config_exec_prefix=""
30116 fi
30117
30118 # Check whether --enable-gtktest was given.
30119 if test "${enable_gtktest+set}" = set; then
30120   enableval=$enable_gtktest;
30121 else
30122   enable_gtktest=yes
30123 fi
30124
30125
30126   for module in . $GTK_MODULES
30127   do
30128       case "$module" in
30129          gthread)
30130              gtk_config_args="$gtk_config_args gthread"
30131          ;;
30132       esac
30133   done
30134
30135   if test x$gtk_config_exec_prefix != x ; then
30136      gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
30137      if test x${GTK_CONFIG+set} != xset ; then
30138         GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
30139      fi
30140   fi
30141   if test x$gtk_config_prefix != x ; then
30142      gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
30143      if test x${GTK_CONFIG+set} != xset ; then
30144         GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
30145      fi
30146   fi
30147
30148   # Extract the first word of "gtk-config", so it can be a program name with args.
30149 set dummy gtk-config; ac_word=$2
30150 { echo "$as_me:$LINENO: checking for $ac_word" >&5
30151 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
30152 if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
30153   echo $ECHO_N "(cached) $ECHO_C" >&6
30154 else
30155   case $GTK_CONFIG in
30156   [\\/]* | ?:[\\/]*)
30157   ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
30158   ;;
30159   *)
30160   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30161 for as_dir in $PATH
30162 do
30163   IFS=$as_save_IFS
30164   test -z "$as_dir" && as_dir=.
30165   for ac_exec_ext in '' $ac_executable_extensions; do
30166   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30167     ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
30168     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30169     break 2
30170   fi
30171 done
30172 done
30173 IFS=$as_save_IFS
30174
30175   test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
30176   ;;
30177 esac
30178 fi
30179 GTK_CONFIG=$ac_cv_path_GTK_CONFIG
30180 if test -n "$GTK_CONFIG"; then
30181   { echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
30182 echo "${ECHO_T}$GTK_CONFIG" >&6; }
30183 else
30184   { echo "$as_me:$LINENO: result: no" >&5
30185 echo "${ECHO_T}no" >&6; }
30186 fi
30187
30188
30189   min_gtk_version=1.2.7
30190   { echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
30191 echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6; }
30192   no_gtk=""
30193   if test "$GTK_CONFIG" = "no" ; then
30194     no_gtk=yes
30195   else
30196     GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
30197     GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
30198     gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
30199            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
30200     gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
30201            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
30202     gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
30203            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
30204     if test "x$enable_gtktest" = "xyes" ; then
30205       ac_save_CFLAGS="$CFLAGS"
30206       ac_save_LIBS="$LIBS"
30207       CFLAGS="$CFLAGS $GTK_CFLAGS"
30208       LIBS="$GTK_LIBS $LIBS"
30209       rm -f conf.gtktest
30210       if test "$cross_compiling" = yes; then
30211   echo $ac_n "cross compiling; assumed OK... $ac_c"
30212 else
30213   cat >conftest.$ac_ext <<_ACEOF
30214 /* confdefs.h.  */
30215 _ACEOF
30216 cat confdefs.h >>conftest.$ac_ext
30217 cat >>conftest.$ac_ext <<_ACEOF
30218 /* end confdefs.h.  */
30219
30220 #include <gtk/gtk.h>
30221 #include <stdio.h>
30222 #include <stdlib.h>
30223
30224 int
30225 main ()
30226 {
30227   int major, minor, micro;
30228   char *tmp_version;
30229
30230   system ("touch conf.gtktest");
30231
30232   /* HP/UX 9 (%@#!) writes to sscanf strings */
30233   tmp_version = g_strdup("$min_gtk_version");
30234   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
30235      printf("%s, bad version string\n", "$min_gtk_version");
30236      exit(1);
30237    }
30238
30239   if ((gtk_major_version != $gtk_config_major_version) ||
30240       (gtk_minor_version != $gtk_config_minor_version) ||
30241       (gtk_micro_version != $gtk_config_micro_version))
30242     {
30243       printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
30244              $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
30245              gtk_major_version, gtk_minor_version, gtk_micro_version);
30246       printf ("*** was found! If gtk-config was correct, then it is best\n");
30247       printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
30248       printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
30249       printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
30250       printf("*** required on your system.\n");
30251       printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
30252       printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
30253       printf("*** before re-running configure\n");
30254     }
30255 #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
30256   else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
30257            (gtk_minor_version != GTK_MINOR_VERSION) ||
30258            (gtk_micro_version != GTK_MICRO_VERSION))
30259     {
30260       printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
30261              GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
30262       printf("*** library (version %d.%d.%d)\n",
30263              gtk_major_version, gtk_minor_version, gtk_micro_version);
30264     }
30265 #endif /* defined (GTK_MAJOR_VERSION) ... */
30266   else
30267     {
30268       if ((gtk_major_version > major) ||
30269         ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
30270         ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
30271       {
30272         return 0;
30273        }
30274      else
30275       {
30276         printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
30277                gtk_major_version, gtk_minor_version, gtk_micro_version);
30278         printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
30279                major, minor, micro);
30280         printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
30281         printf("***\n");
30282         printf("*** If you have already installed a sufficiently new version, this error\n");
30283         printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
30284         printf("*** being found. The easiest way to fix this is to remove the old version\n");
30285         printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
30286         printf("*** correct copy of gtk-config. (In this case, you will have to\n");
30287         printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
30288         printf("*** so that the correct libraries are found at run-time))\n");
30289       }
30290     }
30291   return 1;
30292 }
30293
30294 _ACEOF
30295 rm -f conftest$ac_exeext
30296 if { (ac_try="$ac_link"
30297 case "(($ac_try" in
30298   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30299   *) ac_try_echo=$ac_try;;
30300 esac
30301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30302   (eval "$ac_link") 2>&5
30303   ac_status=$?
30304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30305   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30306   { (case "(($ac_try" in
30307   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30308   *) ac_try_echo=$ac_try;;
30309 esac
30310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30311   (eval "$ac_try") 2>&5
30312   ac_status=$?
30313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30314   (exit $ac_status); }; }; then
30315   :
30316 else
30317   echo "$as_me: program exited with status $ac_status" >&5
30318 echo "$as_me: failed program was:" >&5
30319 sed 's/^/| /' conftest.$ac_ext >&5
30320
30321 ( exit $ac_status )
30322 no_gtk=yes
30323 fi
30324 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30325 fi
30326
30327
30328        CFLAGS="$ac_save_CFLAGS"
30329        LIBS="$ac_save_LIBS"
30330      fi
30331   fi
30332   if test "x$no_gtk" = x ; then
30333      { echo "$as_me:$LINENO: result: yes" >&5
30334 echo "${ECHO_T}yes" >&6; }
30335      wx_cv_lib_gtk=1.2.7
30336   else
30337      { echo "$as_me:$LINENO: result: no" >&5
30338 echo "${ECHO_T}no" >&6; }
30339      if test "$GTK_CONFIG" = "no" ; then
30340        echo "*** The gtk-config script installed by GTK could not be found"
30341        echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
30342        echo "*** your path, or set the GTK_CONFIG environment variable to the"
30343        echo "*** full path to gtk-config."
30344      else
30345        if test -f conf.gtktest ; then
30346         :
30347        else
30348           echo "*** Could not run GTK test program, checking why..."
30349           CFLAGS="$CFLAGS $GTK_CFLAGS"
30350           LIBS="$LIBS $GTK_LIBS"
30351           cat >conftest.$ac_ext <<_ACEOF
30352 /* confdefs.h.  */
30353 _ACEOF
30354 cat confdefs.h >>conftest.$ac_ext
30355 cat >>conftest.$ac_ext <<_ACEOF
30356 /* end confdefs.h.  */
30357
30358 #include <gtk/gtk.h>
30359 #include <stdio.h>
30360
30361 int
30362 main ()
30363 {
30364  return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
30365   ;
30366   return 0;
30367 }
30368 _ACEOF
30369 rm -f conftest.$ac_objext conftest$ac_exeext
30370 if { (ac_try="$ac_link"
30371 case "(($ac_try" in
30372   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30373   *) ac_try_echo=$ac_try;;
30374 esac
30375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30376   (eval "$ac_link") 2>conftest.er1
30377   ac_status=$?
30378   grep -v '^ *+' conftest.er1 >conftest.err
30379   rm -f conftest.er1
30380   cat conftest.err >&5
30381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30382   (exit $ac_status); } && {
30383          test -z "$ac_c_werror_flag" ||
30384          test ! -s conftest.err
30385        } && test -s conftest$ac_exeext &&
30386        $as_test_x conftest$ac_exeext; then
30387    echo "*** The test program compiled, but did not run. This usually means"
30388           echo "*** that the run-time linker is not finding GTK or finding the wrong"
30389           echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
30390           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
30391           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
30392           echo "*** is required on your system"
30393           echo "***"
30394           echo "*** If you have an old version installed, it is best to remove it, although"
30395           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
30396           echo "***"
30397           echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
30398           echo "*** came with the system with the command"
30399           echo "***"
30400           echo "***    rpm --erase --nodeps gtk gtk-devel"
30401 else
30402   echo "$as_me: failed program was:" >&5
30403 sed 's/^/| /' conftest.$ac_ext >&5
30404
30405          echo "*** The test program failed to compile or link. See the file config.log for the"
30406           echo "*** exact error that occured. This usually means GTK was incorrectly installed"
30407           echo "*** or that you have moved GTK since it was installed. In the latter case, you"
30408           echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
30409 fi
30410
30411 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30412       conftest$ac_exeext conftest.$ac_ext
30413           CFLAGS="$ac_save_CFLAGS"
30414           LIBS="$ac_save_LIBS"
30415        fi
30416      fi
30417      GTK_CFLAGS=""
30418      GTK_LIBS=""
30419      :
30420   fi
30421
30422
30423   rm -f conf.gtktest
30424
30425
30426                         if test -z "$wx_cv_lib_gtk"; then
30427
30428 # Check whether --with-gtk-prefix was given.
30429 if test "${with_gtk_prefix+set}" = set; then
30430   withval=$with_gtk_prefix; gtk_config_prefix="$withval"
30431 else
30432   gtk_config_prefix=""
30433 fi
30434
30435
30436 # Check whether --with-gtk-exec-prefix was given.
30437 if test "${with_gtk_exec_prefix+set}" = set; then
30438   withval=$with_gtk_exec_prefix; gtk_config_exec_prefix="$withval"
30439 else
30440   gtk_config_exec_prefix=""
30441 fi
30442
30443 # Check whether --enable-gtktest was given.
30444 if test "${enable_gtktest+set}" = set; then
30445   enableval=$enable_gtktest;
30446 else
30447   enable_gtktest=yes
30448 fi
30449
30450
30451   for module in . $GTK_MODULES
30452   do
30453       case "$module" in
30454          gthread)
30455              gtk_config_args="$gtk_config_args gthread"
30456          ;;
30457       esac
30458   done
30459
30460   if test x$gtk_config_exec_prefix != x ; then
30461      gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
30462      if test x${GTK_CONFIG+set} != xset ; then
30463         GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
30464      fi
30465   fi
30466   if test x$gtk_config_prefix != x ; then
30467      gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
30468      if test x${GTK_CONFIG+set} != xset ; then
30469         GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
30470      fi
30471   fi
30472
30473   # Extract the first word of "gtk-config", so it can be a program name with args.
30474 set dummy gtk-config; ac_word=$2
30475 { echo "$as_me:$LINENO: checking for $ac_word" >&5
30476 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
30477 if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
30478   echo $ECHO_N "(cached) $ECHO_C" >&6
30479 else
30480   case $GTK_CONFIG in
30481   [\\/]* | ?:[\\/]*)
30482   ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
30483   ;;
30484   *)
30485   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30486 for as_dir in $PATH
30487 do
30488   IFS=$as_save_IFS
30489   test -z "$as_dir" && as_dir=.
30490   for ac_exec_ext in '' $ac_executable_extensions; do
30491   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30492     ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
30493     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30494     break 2
30495   fi
30496 done
30497 done
30498 IFS=$as_save_IFS
30499
30500   test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
30501   ;;
30502 esac
30503 fi
30504 GTK_CONFIG=$ac_cv_path_GTK_CONFIG
30505 if test -n "$GTK_CONFIG"; then
30506   { echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
30507 echo "${ECHO_T}$GTK_CONFIG" >&6; }
30508 else
30509   { echo "$as_me:$LINENO: result: no" >&5
30510 echo "${ECHO_T}no" >&6; }
30511 fi
30512
30513
30514   min_gtk_version=1.2.3
30515   { echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
30516 echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6; }
30517   no_gtk=""
30518   if test "$GTK_CONFIG" = "no" ; then
30519     no_gtk=yes
30520   else
30521     GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
30522     GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
30523     gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
30524            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
30525     gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
30526            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
30527     gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
30528            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
30529     if test "x$enable_gtktest" = "xyes" ; then
30530       ac_save_CFLAGS="$CFLAGS"
30531       ac_save_LIBS="$LIBS"
30532       CFLAGS="$CFLAGS $GTK_CFLAGS"
30533       LIBS="$GTK_LIBS $LIBS"
30534       rm -f conf.gtktest
30535       if test "$cross_compiling" = yes; then
30536   echo $ac_n "cross compiling; assumed OK... $ac_c"
30537 else
30538   cat >conftest.$ac_ext <<_ACEOF
30539 /* confdefs.h.  */
30540 _ACEOF
30541 cat confdefs.h >>conftest.$ac_ext
30542 cat >>conftest.$ac_ext <<_ACEOF
30543 /* end confdefs.h.  */
30544
30545 #include <gtk/gtk.h>
30546 #include <stdio.h>
30547 #include <stdlib.h>
30548
30549 int
30550 main ()
30551 {
30552   int major, minor, micro;
30553   char *tmp_version;
30554
30555   system ("touch conf.gtktest");
30556
30557   /* HP/UX 9 (%@#!) writes to sscanf strings */
30558   tmp_version = g_strdup("$min_gtk_version");
30559   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
30560      printf("%s, bad version string\n", "$min_gtk_version");
30561      exit(1);
30562    }
30563
30564   if ((gtk_major_version != $gtk_config_major_version) ||
30565       (gtk_minor_version != $gtk_config_minor_version) ||
30566       (gtk_micro_version != $gtk_config_micro_version))
30567     {
30568       printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
30569              $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
30570              gtk_major_version, gtk_minor_version, gtk_micro_version);
30571       printf ("*** was found! If gtk-config was correct, then it is best\n");
30572       printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
30573       printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
30574       printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
30575       printf("*** required on your system.\n");
30576       printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
30577       printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
30578       printf("*** before re-running configure\n");
30579     }
30580 #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
30581   else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
30582            (gtk_minor_version != GTK_MINOR_VERSION) ||
30583            (gtk_micro_version != GTK_MICRO_VERSION))
30584     {
30585       printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
30586              GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
30587       printf("*** library (version %d.%d.%d)\n",
30588              gtk_major_version, gtk_minor_version, gtk_micro_version);
30589     }
30590 #endif /* defined (GTK_MAJOR_VERSION) ... */
30591   else
30592     {
30593       if ((gtk_major_version > major) ||
30594         ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
30595         ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
30596       {
30597         return 0;
30598        }
30599      else
30600       {
30601         printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
30602                gtk_major_version, gtk_minor_version, gtk_micro_version);
30603         printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
30604                major, minor, micro);
30605         printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
30606         printf("***\n");
30607         printf("*** If you have already installed a sufficiently new version, this error\n");
30608         printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
30609         printf("*** being found. The easiest way to fix this is to remove the old version\n");
30610         printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
30611         printf("*** correct copy of gtk-config. (In this case, you will have to\n");
30612         printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
30613         printf("*** so that the correct libraries are found at run-time))\n");
30614       }
30615     }
30616   return 1;
30617 }
30618
30619 _ACEOF
30620 rm -f conftest$ac_exeext
30621 if { (ac_try="$ac_link"
30622 case "(($ac_try" in
30623   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30624   *) ac_try_echo=$ac_try;;
30625 esac
30626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30627   (eval "$ac_link") 2>&5
30628   ac_status=$?
30629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30630   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30631   { (case "(($ac_try" in
30632   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30633   *) ac_try_echo=$ac_try;;
30634 esac
30635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30636   (eval "$ac_try") 2>&5
30637   ac_status=$?
30638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30639   (exit $ac_status); }; }; then
30640   :
30641 else
30642   echo "$as_me: program exited with status $ac_status" >&5
30643 echo "$as_me: failed program was:" >&5
30644 sed 's/^/| /' conftest.$ac_ext >&5
30645
30646 ( exit $ac_status )
30647 no_gtk=yes
30648 fi
30649 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30650 fi
30651
30652
30653        CFLAGS="$ac_save_CFLAGS"
30654        LIBS="$ac_save_LIBS"
30655      fi
30656   fi
30657   if test "x$no_gtk" = x ; then
30658      { echo "$as_me:$LINENO: result: yes" >&5
30659 echo "${ECHO_T}yes" >&6; }
30660      wx_cv_lib_gtk=1.2.3
30661   else
30662      { echo "$as_me:$LINENO: result: no" >&5
30663 echo "${ECHO_T}no" >&6; }
30664      if test "$GTK_CONFIG" = "no" ; then
30665        echo "*** The gtk-config script installed by GTK could not be found"
30666        echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
30667        echo "*** your path, or set the GTK_CONFIG environment variable to the"
30668        echo "*** full path to gtk-config."
30669      else
30670        if test -f conf.gtktest ; then
30671         :
30672        else
30673           echo "*** Could not run GTK test program, checking why..."
30674           CFLAGS="$CFLAGS $GTK_CFLAGS"
30675           LIBS="$LIBS $GTK_LIBS"
30676           cat >conftest.$ac_ext <<_ACEOF
30677 /* confdefs.h.  */
30678 _ACEOF
30679 cat confdefs.h >>conftest.$ac_ext
30680 cat >>conftest.$ac_ext <<_ACEOF
30681 /* end confdefs.h.  */
30682
30683 #include <gtk/gtk.h>
30684 #include <stdio.h>
30685
30686 int
30687 main ()
30688 {
30689  return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
30690   ;
30691   return 0;
30692 }
30693 _ACEOF
30694 rm -f conftest.$ac_objext conftest$ac_exeext
30695 if { (ac_try="$ac_link"
30696 case "(($ac_try" in
30697   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30698   *) ac_try_echo=$ac_try;;
30699 esac
30700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30701   (eval "$ac_link") 2>conftest.er1
30702   ac_status=$?
30703   grep -v '^ *+' conftest.er1 >conftest.err
30704   rm -f conftest.er1
30705   cat conftest.err >&5
30706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30707   (exit $ac_status); } && {
30708          test -z "$ac_c_werror_flag" ||
30709          test ! -s conftest.err
30710        } && test -s conftest$ac_exeext &&
30711        $as_test_x conftest$ac_exeext; then
30712    echo "*** The test program compiled, but did not run. This usually means"
30713           echo "*** that the run-time linker is not finding GTK or finding the wrong"
30714           echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
30715           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
30716           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
30717           echo "*** is required on your system"
30718           echo "***"
30719           echo "*** If you have an old version installed, it is best to remove it, although"
30720           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
30721           echo "***"
30722           echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
30723           echo "*** came with the system with the command"
30724           echo "***"
30725           echo "***    rpm --erase --nodeps gtk gtk-devel"
30726 else
30727   echo "$as_me: failed program was:" >&5
30728 sed 's/^/| /' conftest.$ac_ext >&5
30729
30730          echo "*** The test program failed to compile or link. See the file config.log for the"
30731           echo "*** exact error that occured. This usually means GTK was incorrectly installed"
30732           echo "*** or that you have moved GTK since it was installed. In the latter case, you"
30733           echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
30734 fi
30735
30736 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30737       conftest$ac_exeext conftest.$ac_ext
30738           CFLAGS="$ac_save_CFLAGS"
30739           LIBS="$ac_save_LIBS"
30740        fi
30741      fi
30742      GTK_CFLAGS=""
30743      GTK_LIBS=""
30744      :
30745   fi
30746
30747
30748   rm -f conf.gtktest
30749
30750                         fi
30751                     fi
30752                 fi
30753
30754                 if test -z "$wx_cv_lib_gtk"; then
30755                                         wx_cv_lib_gtk=none
30756                 else
30757                                                             wx_cv_cflags_gtk=$GTK_CFLAGS
30758                     wx_cv_libs_gtk=$GTK_LIBS
30759                 fi
30760
30761
30762 fi
30763
30764
30765                         if test "$gtk_version_cached" = 1; then
30766             { echo "$as_me:$LINENO: result: $wx_cv_lib_gtk" >&5
30767 echo "${ECHO_T}$wx_cv_lib_gtk" >&6; }
30768         fi
30769
30770         case "$wx_cv_lib_gtk" in
30771             2.0)    WXGTK2=1
30772                     TOOLKIT_VERSION=2
30773                     ;;
30774             1.2.7)  WXGTK127=1
30775                     WXGTK12=1
30776                     ;;
30777             1.2.3)  WXGTK12=1
30778                     ;;
30779             *)      { { echo "$as_me:$LINENO: error:
30780 The development files for GTK+ were not found. For GTK+ 2, please
30781 ensure that pkg-config is in the path and that gtk+-2.0.pc is
30782 installed. For GTK+ 1.2 please check that gtk-config is in the path,
30783 and that the version is 1.2.3 or above. Also check that the
30784 libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config
30785 --libs' are in the LD_LIBRARY_PATH or equivalent.
30786                             " >&5
30787 echo "$as_me: error:
30788 The development files for GTK+ were not found. For GTK+ 2, please
30789 ensure that pkg-config is in the path and that gtk+-2.0.pc is
30790 installed. For GTK+ 1.2 please check that gtk-config is in the path,
30791 and that the version is 1.2.3 or above. Also check that the
30792 libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config
30793 --libs' are in the LD_LIBRARY_PATH or equivalent.
30794                             " >&2;}
30795    { (exit 1); exit 1; }; }
30796                     ;;
30797         esac
30798
30799         if test "$WXGTK2" = 1; then
30800             save_CFLAGS="$CFLAGS"
30801             save_LIBS="$LIBS"
30802             CFLAGS="$wx_cv_cflags_gtk $CFLAGS"
30803             LIBS="$LIBS $wx_cv_libs_gtk"
30804
30805                         { echo "$as_me:$LINENO: checking if GTK+ is version >= 2.18" >&5
30806 echo $ECHO_N "checking if GTK+ is version >= 2.18... $ECHO_C" >&6; }
30807             cat >conftest.$ac_ext <<_ACEOF
30808 /* confdefs.h.  */
30809 _ACEOF
30810 cat confdefs.h >>conftest.$ac_ext
30811 cat >>conftest.$ac_ext <<_ACEOF
30812 /* end confdefs.h.  */
30813
30814                             #include <gtk/gtk.h>
30815
30816 int
30817 main ()
30818 {
30819
30820                             #if !GTK_CHECK_VERSION(2,18,0)
30821                             Not GTK+ 2.18
30822                             #endif
30823
30824   ;
30825   return 0;
30826 }
30827 _ACEOF
30828 rm -f conftest.$ac_objext
30829 if { (ac_try="$ac_compile"
30830 case "(($ac_try" in
30831   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30832   *) ac_try_echo=$ac_try;;
30833 esac
30834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30835   (eval "$ac_compile") 2>conftest.er1
30836   ac_status=$?
30837   grep -v '^ *+' conftest.er1 >conftest.err
30838   rm -f conftest.er1
30839   cat conftest.err >&5
30840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30841   (exit $ac_status); } && {
30842          test -z "$ac_c_werror_flag" ||
30843          test ! -s conftest.err
30844        } && test -s conftest.$ac_objext; then
30845
30846                             cat >>confdefs.h <<\_ACEOF
30847 #define __WXGTK218__ 1
30848 _ACEOF
30849
30850                             cat >>confdefs.h <<\_ACEOF
30851 #define __WXGTK210__ 1
30852 _ACEOF
30853
30854                             cat >>confdefs.h <<\_ACEOF
30855 #define __WXGTK26__ 1
30856 _ACEOF
30857
30858                             { echo "$as_me:$LINENO: result: yes" >&5
30859 echo "${ECHO_T}yes" >&6; }
30860                             ac_wxgtk218=1
30861
30862 else
30863   echo "$as_me: failed program was:" >&5
30864 sed 's/^/| /' conftest.$ac_ext >&5
30865
30866
30867                             { echo "$as_me:$LINENO: result: no" >&5
30868 echo "${ECHO_T}no" >&6; }
30869                             ac_wxgtk218=0
30870
30871 fi
30872
30873 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30874
30875             if test "$ac_wxgtk218" = 0; then
30876                                 { echo "$as_me:$LINENO: checking if GTK+ is version >= 2.10" >&5
30877 echo $ECHO_N "checking if GTK+ is version >= 2.10... $ECHO_C" >&6; }
30878                 cat >conftest.$ac_ext <<_ACEOF
30879 /* confdefs.h.  */
30880 _ACEOF
30881 cat confdefs.h >>conftest.$ac_ext
30882 cat >>conftest.$ac_ext <<_ACEOF
30883 /* end confdefs.h.  */
30884
30885                                 #include <gtk/gtk.h>
30886
30887 int
30888 main ()
30889 {
30890
30891                                 #if !GTK_CHECK_VERSION(2,10,0)
30892                                 Not GTK+ 2.10
30893                                 #endif
30894
30895   ;
30896   return 0;
30897 }
30898 _ACEOF
30899 rm -f conftest.$ac_objext
30900 if { (ac_try="$ac_compile"
30901 case "(($ac_try" in
30902   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30903   *) ac_try_echo=$ac_try;;
30904 esac
30905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30906   (eval "$ac_compile") 2>conftest.er1
30907   ac_status=$?
30908   grep -v '^ *+' conftest.er1 >conftest.err
30909   rm -f conftest.er1
30910   cat conftest.err >&5
30911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30912   (exit $ac_status); } && {
30913          test -z "$ac_c_werror_flag" ||
30914          test ! -s conftest.err
30915        } && test -s conftest.$ac_objext; then
30916
30917                                 cat >>confdefs.h <<\_ACEOF
30918 #define __WXGTK210__ 1
30919 _ACEOF
30920
30921                                 cat >>confdefs.h <<\_ACEOF
30922 #define __WXGTK26__ 1
30923 _ACEOF
30924
30925                                 { echo "$as_me:$LINENO: result: yes" >&5
30926 echo "${ECHO_T}yes" >&6; }
30927                                 ac_wxgtk210=1
30928
30929 else
30930   echo "$as_me: failed program was:" >&5
30931 sed 's/^/| /' conftest.$ac_ext >&5
30932
30933
30934                                 { echo "$as_me:$LINENO: result: no" >&5
30935 echo "${ECHO_T}no" >&6; }
30936                                 ac_wxgtk210=0
30937
30938 fi
30939
30940 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30941
30942                 if test "$ac_wxgtk210" = 0; then
30943                                         { echo "$as_me:$LINENO: checking if GTK+ is version >= 2.6" >&5
30944 echo $ECHO_N "checking if GTK+ is version >= 2.6... $ECHO_C" >&6; }
30945                     cat >conftest.$ac_ext <<_ACEOF
30946 /* confdefs.h.  */
30947 _ACEOF
30948 cat confdefs.h >>conftest.$ac_ext
30949 cat >>conftest.$ac_ext <<_ACEOF
30950 /* end confdefs.h.  */
30951
30952                                     #include <gtk/gtk.h>
30953
30954 int
30955 main ()
30956 {
30957
30958                                     #if !GTK_CHECK_VERSION(2,6,0)
30959                                     Not GTK+ 2.6
30960                                     #endif
30961
30962   ;
30963   return 0;
30964 }
30965 _ACEOF
30966 rm -f conftest.$ac_objext
30967 if { (ac_try="$ac_compile"
30968 case "(($ac_try" in
30969   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30970   *) ac_try_echo=$ac_try;;
30971 esac
30972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30973   (eval "$ac_compile") 2>conftest.er1
30974   ac_status=$?
30975   grep -v '^ *+' conftest.er1 >conftest.err
30976   rm -f conftest.er1
30977   cat conftest.err >&5
30978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30979   (exit $ac_status); } && {
30980          test -z "$ac_c_werror_flag" ||
30981          test ! -s conftest.err
30982        } && test -s conftest.$ac_objext; then
30983
30984                                     cat >>confdefs.h <<\_ACEOF
30985 #define __WXGTK26__ 1
30986 _ACEOF
30987
30988                                     { echo "$as_me:$LINENO: result: yes" >&5
30989 echo "${ECHO_T}yes" >&6; }
30990                                     ac_wxgtk26=1
30991
30992 else
30993   echo "$as_me: failed program was:" >&5
30994 sed 's/^/| /' conftest.$ac_ext >&5
30995
30996
30997                                     { echo "$as_me:$LINENO: result: no" >&5
30998 echo "${ECHO_T}no" >&6; }
30999                                     ac_wxgtk26=0
31000
31001 fi
31002
31003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31004                 fi
31005             fi
31006
31007             CFLAGS="$save_CFLAGS"
31008             LIBS="$save_LIBS"
31009         else
31010             if test "$wxUSE_UNICODE" = "yes"; then
31011                 { echo "$as_me:$LINENO: WARNING: Unicode configuration not supported with GTK+ 1.x" >&5
31012 echo "$as_me: WARNING: Unicode configuration not supported with GTK+ 1.x" >&2;}
31013                 wxUSE_UNICODE=no
31014             fi
31015
31016                         { echo "$as_me:$LINENO: checking for gdk_im_open in -lgdk" >&5
31017 echo $ECHO_N "checking for gdk_im_open in -lgdk... $ECHO_C" >&6; }
31018 if test "${ac_cv_lib_gdk_gdk_im_open+set}" = set; then
31019   echo $ECHO_N "(cached) $ECHO_C" >&6
31020 else
31021   ac_check_lib_save_LIBS=$LIBS
31022 LIBS="-lgdk  $LIBS"
31023 cat >conftest.$ac_ext <<_ACEOF
31024 /* confdefs.h.  */
31025 _ACEOF
31026 cat confdefs.h >>conftest.$ac_ext
31027 cat >>conftest.$ac_ext <<_ACEOF
31028 /* end confdefs.h.  */
31029
31030 /* Override any GCC internal prototype to avoid an error.
31031    Use char because int might match the return type of a GCC
31032    builtin and then its argument prototype would still apply.  */
31033 #ifdef __cplusplus
31034 extern "C"
31035 #endif
31036 char gdk_im_open ();
31037 int
31038 main ()
31039 {
31040 return gdk_im_open ();
31041   ;
31042   return 0;
31043 }
31044 _ACEOF
31045 rm -f conftest.$ac_objext conftest$ac_exeext
31046 if { (ac_try="$ac_link"
31047 case "(($ac_try" in
31048   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31049   *) ac_try_echo=$ac_try;;
31050 esac
31051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31052   (eval "$ac_link") 2>conftest.er1
31053   ac_status=$?
31054   grep -v '^ *+' conftest.er1 >conftest.err
31055   rm -f conftest.er1
31056   cat conftest.err >&5
31057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31058   (exit $ac_status); } && {
31059          test -z "$ac_c_werror_flag" ||
31060          test ! -s conftest.err
31061        } && test -s conftest$ac_exeext &&
31062        $as_test_x conftest$ac_exeext; then
31063   ac_cv_lib_gdk_gdk_im_open=yes
31064 else
31065   echo "$as_me: failed program was:" >&5
31066 sed 's/^/| /' conftest.$ac_ext >&5
31067
31068         ac_cv_lib_gdk_gdk_im_open=no
31069 fi
31070
31071 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31072       conftest$ac_exeext conftest.$ac_ext
31073 LIBS=$ac_check_lib_save_LIBS
31074 fi
31075 { echo "$as_me:$LINENO: result: $ac_cv_lib_gdk_gdk_im_open" >&5
31076 echo "${ECHO_T}$ac_cv_lib_gdk_gdk_im_open" >&6; }
31077 if test $ac_cv_lib_gdk_gdk_im_open = yes; then
31078   cat >>confdefs.h <<\_ACEOF
31079 #define HAVE_XIM 1
31080 _ACEOF
31081
31082 fi
31083
31084
31085                                     if test "$USE_DARWIN" != 1; then
31086
31087 for ac_func in poll
31088 do
31089 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31090 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31091 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31092 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31093   echo $ECHO_N "(cached) $ECHO_C" >&6
31094 else
31095   cat >conftest.$ac_ext <<_ACEOF
31096 /* confdefs.h.  */
31097 _ACEOF
31098 cat confdefs.h >>conftest.$ac_ext
31099 cat >>conftest.$ac_ext <<_ACEOF
31100 /* end confdefs.h.  */
31101 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31102    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31103 #define $ac_func innocuous_$ac_func
31104
31105 /* System header to define __stub macros and hopefully few prototypes,
31106     which can conflict with char $ac_func (); below.
31107     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31108     <limits.h> exists even on freestanding compilers.  */
31109
31110 #ifdef __STDC__
31111 # include <limits.h>
31112 #else
31113 # include <assert.h>
31114 #endif
31115
31116 #undef $ac_func
31117
31118 /* Override any GCC internal prototype to avoid an error.
31119    Use char because int might match the return type of a GCC
31120    builtin and then its argument prototype would still apply.  */
31121 #ifdef __cplusplus
31122 extern "C"
31123 #endif
31124 char $ac_func ();
31125 /* The GNU C library defines this for functions which it implements
31126     to always fail with ENOSYS.  Some functions are actually named
31127     something starting with __ and the normal name is an alias.  */
31128 #if defined __stub_$ac_func || defined __stub___$ac_func
31129 choke me
31130 #endif
31131
31132 int
31133 main ()
31134 {
31135 return $ac_func ();
31136   ;
31137   return 0;
31138 }
31139 _ACEOF
31140 rm -f conftest.$ac_objext conftest$ac_exeext
31141 if { (ac_try="$ac_link"
31142 case "(($ac_try" in
31143   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31144   *) ac_try_echo=$ac_try;;
31145 esac
31146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31147   (eval "$ac_link") 2>conftest.er1
31148   ac_status=$?
31149   grep -v '^ *+' conftest.er1 >conftest.err
31150   rm -f conftest.er1
31151   cat conftest.err >&5
31152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31153   (exit $ac_status); } && {
31154          test -z "$ac_c_werror_flag" ||
31155          test ! -s conftest.err
31156        } && test -s conftest$ac_exeext &&
31157        $as_test_x conftest$ac_exeext; then
31158   eval "$as_ac_var=yes"
31159 else
31160   echo "$as_me: failed program was:" >&5
31161 sed 's/^/| /' conftest.$ac_ext >&5
31162
31163         eval "$as_ac_var=no"
31164 fi
31165
31166 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31167       conftest$ac_exeext conftest.$ac_ext
31168 fi
31169 ac_res=`eval echo '${'$as_ac_var'}'`
31170                { echo "$as_me:$LINENO: result: $ac_res" >&5
31171 echo "${ECHO_T}$ac_res" >&6; }
31172 if test `eval echo '${'$as_ac_var'}'` = yes; then
31173   cat >>confdefs.h <<_ACEOF
31174 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31175 _ACEOF
31176
31177 fi
31178 done
31179
31180             fi
31181         fi
31182
31183         TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
31184         GUI_TK_LIBRARY="$wx_cv_libs_gtk $GUI_TK_LIBRARY"
31185
31186                 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE -DG_DISABLE_CAST_CHECKS"
31187
31188         AFMINSTALL=afminstall
31189         TOOLKIT=GTK
31190         GUIDIST=GTK_DIST
31191
31192                 if test "$wxUSE_GPE" = "yes"; then
31193             { echo "$as_me:$LINENO: checking for gpewidget library" >&5
31194 echo $ECHO_N "checking for gpewidget library... $ECHO_C" >&6; }
31195
31196   ac_find_libraries=
31197   for ac_dir in $SEARCH_LIB
31198   do
31199     for ac_extension in a so sl dylib dll.a; do
31200       if test -f "$ac_dir/libgpewidget.$ac_extension"; then
31201         ac_find_libraries=$ac_dir
31202         break 2
31203       fi
31204     done
31205   done
31206
31207             if test "$ac_find_libraries" != "" ; then
31208
31209     if test "$ac_find_libraries" = "default location"; then
31210     ac_path_to_link=""
31211   else
31212     echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
31213     result=$?
31214     if test $result = 0; then
31215       ac_path_to_link=""
31216     else
31217       ac_path_to_link=" -L$ac_find_libraries"
31218     fi
31219   fi
31220
31221                                                 GUI_TK_LIBRARY="-L${prefix}/lib -lgpewidget $GUI_TK_LIBRARY"
31222                 WXGPE=1
31223                 { echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
31224 echo "${ECHO_T}found in $ac_find_libraries" >&6; }
31225             else
31226                 { echo "$as_me:$LINENO: result: not found" >&5
31227 echo "${ECHO_T}not found" >&6; }
31228             fi
31229
31230                                                                                                                     fi
31231     fi
31232
31233     if test "$wxUSE_MGL" = 1; then
31234        { echo "$as_me:$LINENO: checking for SciTech MGL library" >&5
31235 echo $ECHO_N "checking for SciTech MGL library... $ECHO_C" >&6; }
31236         if test "x$MGL_ROOT" = x ; then
31237             { echo "$as_me:$LINENO: result: not found" >&5
31238 echo "${ECHO_T}not found" >&6; }
31239             { { echo "$as_me:$LINENO: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&5
31240 echo "$as_me: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&2;}
31241    { (exit 1); exit 1; }; }
31242         else
31243             { echo "$as_me:$LINENO: result: $MGL_ROOT" >&5
31244 echo "${ECHO_T}$MGL_ROOT" >&6; }
31245         fi
31246
31247         { echo "$as_me:$LINENO: checking for libmgl location" >&5
31248 echo $ECHO_N "checking for libmgl location... $ECHO_C" >&6; }
31249                                 case "${host}" in
31250             *-*-linux* )
31251                                           if test "x$wxUSE_SHARED" = xyes ; then
31252                   mgl_os_candidates="linux/gcc/x86/so linux/gcc/x86/a linux/gcc/glibc.so linux/gcc/glibc"
31253               else
31254                   mgl_os_candidates="linux/gcc/x86/a linux/gcc/x86/so linux/gcc/glibc linux/gcc/glibc.so"
31255               fi
31256               ;;
31257             *-pc-msdosdjgpp )
31258               mgl_os_candidates="dos32/dj2"
31259               ;;
31260             *)
31261               { { echo "$as_me:$LINENO: error: This system type ${host} is not yet supported by wxMGL." >&5
31262 echo "$as_me: error: This system type ${host} is not yet supported by wxMGL." >&2;}
31263    { (exit 1); exit 1; }; }
31264         esac
31265
31266         mgl_lib_type=""
31267         mgl_os=""
31268
31269         for mgl_os_i in $mgl_os_candidates ; do
31270             if test "x$mgl_os" = x ; then
31271                 if test "$wxUSE_DEBUG_FLAG" = yes ; then
31272                     if test -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.a -o \
31273                             -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.so; then
31274                         mgl_lib_type=debug
31275                         mgl_os=$mgl_os_i
31276                     fi
31277                 fi
31278                 if test "x$mgl_lib_type" = x ; then
31279                     if test -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.a -o \
31280                             -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.so; then
31281                         mgl_lib_type=release
31282                         mgl_os=$mgl_os_i
31283                     fi
31284                 fi
31285             fi
31286         done
31287
31288         if test "x$mgl_os" = x ; then
31289             { echo "$as_me:$LINENO: result: not found" >&5
31290 echo "${ECHO_T}not found" >&6; }
31291             { { echo "$as_me:$LINENO: error: Cannot find MGL libraries, make sure they are compiled." >&5
31292 echo "$as_me: error: Cannot find MGL libraries, make sure they are compiled." >&2;}
31293    { (exit 1); exit 1; }; }
31294         fi
31295         { echo "$as_me:$LINENO: result: \"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&5
31296 echo "${ECHO_T}\"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&6; }
31297
31298         wxUSE_UNIVERSAL="yes"
31299
31300         TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
31301         GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm"
31302
31303         AFMINSTALL=afminstall
31304         TOOLKIT=MGL
31305         GUIDIST=MGL_DIST
31306     fi
31307
31308     if test "$wxUSE_DFB" = 1; then
31309
31310
31311 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
31312         if test -n "$ac_tool_prefix"; then
31313   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
31314 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
31315 { echo "$as_me:$LINENO: checking for $ac_word" >&5
31316 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
31317 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
31318   echo $ECHO_N "(cached) $ECHO_C" >&6
31319 else
31320   case $PKG_CONFIG in
31321   [\\/]* | ?:[\\/]*)
31322   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
31323   ;;
31324   *)
31325   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31326 for as_dir in $PATH
31327 do
31328   IFS=$as_save_IFS
31329   test -z "$as_dir" && as_dir=.
31330   for ac_exec_ext in '' $ac_executable_extensions; do
31331   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31332     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
31333     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31334     break 2
31335   fi
31336 done
31337 done
31338 IFS=$as_save_IFS
31339
31340   ;;
31341 esac
31342 fi
31343 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
31344 if test -n "$PKG_CONFIG"; then
31345   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
31346 echo "${ECHO_T}$PKG_CONFIG" >&6; }
31347 else
31348   { echo "$as_me:$LINENO: result: no" >&5
31349 echo "${ECHO_T}no" >&6; }
31350 fi
31351
31352
31353 fi
31354 if test -z "$ac_cv_path_PKG_CONFIG"; then
31355   ac_pt_PKG_CONFIG=$PKG_CONFIG
31356   # Extract the first word of "pkg-config", so it can be a program name with args.
31357 set dummy pkg-config; ac_word=$2
31358 { echo "$as_me:$LINENO: checking for $ac_word" >&5
31359 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
31360 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
31361   echo $ECHO_N "(cached) $ECHO_C" >&6
31362 else
31363   case $ac_pt_PKG_CONFIG in
31364   [\\/]* | ?:[\\/]*)
31365   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
31366   ;;
31367   *)
31368   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31369 for as_dir in $PATH
31370 do
31371   IFS=$as_save_IFS
31372   test -z "$as_dir" && as_dir=.
31373   for ac_exec_ext in '' $ac_executable_extensions; do
31374   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31375     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
31376     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31377     break 2
31378   fi
31379 done
31380 done
31381 IFS=$as_save_IFS
31382
31383   ;;
31384 esac
31385 fi
31386 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
31387 if test -n "$ac_pt_PKG_CONFIG"; then
31388   { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
31389 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
31390 else
31391   { echo "$as_me:$LINENO: result: no" >&5
31392 echo "${ECHO_T}no" >&6; }
31393 fi
31394
31395   if test "x$ac_pt_PKG_CONFIG" = x; then
31396     PKG_CONFIG=""
31397   else
31398     case $cross_compiling:$ac_tool_warned in
31399 yes:)
31400 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
31401 whose name does not start with the host triplet.  If you think this
31402 configuration is useful to you, please write to autoconf@gnu.org." >&5
31403 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
31404 whose name does not start with the host triplet.  If you think this
31405 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
31406 ac_tool_warned=yes ;;
31407 esac
31408     PKG_CONFIG=$ac_pt_PKG_CONFIG
31409   fi
31410 else
31411   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
31412 fi
31413
31414 fi
31415 if test -n "$PKG_CONFIG"; then
31416         _pkg_min_version=0.9.0
31417         { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
31418 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
31419         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
31420                 { echo "$as_me:$LINENO: result: yes" >&5
31421 echo "${ECHO_T}yes" >&6; }
31422         else
31423                 { echo "$as_me:$LINENO: result: no" >&5
31424 echo "${ECHO_T}no" >&6; }
31425                 PKG_CONFIG=""
31426         fi
31427
31428 fi
31429
31430
31431 pkg_failed=no
31432 { echo "$as_me:$LINENO: checking for DIRECTFB" >&5
31433 echo $ECHO_N "checking for DIRECTFB... $ECHO_C" >&6; }
31434
31435 if test -n "$PKG_CONFIG"; then
31436     if test -n "$DIRECTFB_CFLAGS"; then
31437         pkg_cv_DIRECTFB_CFLAGS="$DIRECTFB_CFLAGS"
31438     else
31439         if test -n "$PKG_CONFIG" && \
31440     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"directfb >= 0.9.23\"") >&5
31441   ($PKG_CONFIG --exists --print-errors "directfb >= 0.9.23") 2>&5
31442   ac_status=$?
31443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31444   (exit $ac_status); }; then
31445   pkg_cv_DIRECTFB_CFLAGS=`$PKG_CONFIG --cflags "directfb >= 0.9.23" 2>/dev/null`
31446 else
31447   pkg_failed=yes
31448 fi
31449     fi
31450 else
31451         pkg_failed=untried
31452 fi
31453 if test -n "$PKG_CONFIG"; then
31454     if test -n "$DIRECTFB_LIBS"; then
31455         pkg_cv_DIRECTFB_LIBS="$DIRECTFB_LIBS"
31456     else
31457         if test -n "$PKG_CONFIG" && \
31458     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"directfb >= 0.9.23\"") >&5
31459   ($PKG_CONFIG --exists --print-errors "directfb >= 0.9.23") 2>&5
31460   ac_status=$?
31461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31462   (exit $ac_status); }; then
31463   pkg_cv_DIRECTFB_LIBS=`$PKG_CONFIG --libs "directfb >= 0.9.23" 2>/dev/null`
31464 else
31465   pkg_failed=yes
31466 fi
31467     fi
31468 else
31469         pkg_failed=untried
31470 fi
31471
31472
31473
31474 if test $pkg_failed = yes; then
31475
31476 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31477         _pkg_short_errors_supported=yes
31478 else
31479         _pkg_short_errors_supported=no
31480 fi
31481         if test $_pkg_short_errors_supported = yes; then
31482                 DIRECTFB_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "directfb >= 0.9.23"`
31483         else
31484                 DIRECTFB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "directfb >= 0.9.23"`
31485         fi
31486         # Put the nasty error message in config.log where it belongs
31487         echo "$DIRECTFB_PKG_ERRORS" >&5
31488
31489
31490                            { { echo "$as_me:$LINENO: error: DirectFB not found." >&5
31491 echo "$as_me: error: DirectFB not found." >&2;}
31492    { (exit 1); exit 1; }; }
31493
31494
31495 elif test $pkg_failed = untried; then
31496
31497                            { { echo "$as_me:$LINENO: error: DirectFB not found." >&5
31498 echo "$as_me: error: DirectFB not found." >&2;}
31499    { (exit 1); exit 1; }; }
31500
31501
31502 else
31503         DIRECTFB_CFLAGS=$pkg_cv_DIRECTFB_CFLAGS
31504         DIRECTFB_LIBS=$pkg_cv_DIRECTFB_LIBS
31505         { echo "$as_me:$LINENO: result: yes" >&5
31506 echo "${ECHO_T}yes" >&6; }
31507
31508                            wxUSE_UNIVERSAL="yes"
31509                            TOOLKIT_INCLUDE="$DIRECTFB_CFLAGS"
31510                            GUI_TK_LIBRARY="$DIRECTFB_LIBS"
31511                            TOOLKIT=DFB
31512                            GUIDIST=DFB_DIST
31513
31514 fi
31515     fi
31516
31517     if test "$wxUSE_MICROWIN" = 1; then
31518         { echo "$as_me:$LINENO: checking for MicroWindows" >&5
31519 echo $ECHO_N "checking for MicroWindows... $ECHO_C" >&6; }
31520         if test "x$MICROWINDOWS" = x ; then
31521             { echo "$as_me:$LINENO: result: not found" >&5
31522 echo "${ECHO_T}not found" >&6; }
31523             { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&5
31524 echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&2;}
31525    { (exit 1); exit 1; }; }
31526         else
31527             { echo "$as_me:$LINENO: result: $MICROWINDOWS" >&5
31528 echo "${ECHO_T}$MICROWINDOWS" >&6; }
31529         fi
31530
31531         if test -f $MICROWINDOWS/lib/libmwin.a; then
31532             { echo "$as_me:$LINENO: result: MicroWindows' libraries found." >&5
31533 echo "${ECHO_T}MicroWindows' libraries found." >&6; }
31534         else
31535             { { echo "$as_me:$LINENO: error: Cannot find MicroWindows libraries, make sure they are compiled." >&5
31536 echo "$as_me: error: Cannot find MicroWindows libraries, make sure they are compiled." >&2;}
31537    { (exit 1); exit 1; }; }
31538         fi
31539
31540         TOOLKIT_INCLUDE="-I$MICROWINDOWS/include"
31541         GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib"
31542
31543         wxUSE_UNIVERSAL="yes"
31544
31545         AFMINSTALL=afminstall
31546         TOOLKIT=MICROWIN
31547         GUIDIST=MICROWIN_DIST
31548
31549         TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1"
31550     fi
31551
31552         if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
31553                                 { echo "$as_me:$LINENO: checking for X" >&5
31554 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
31555
31556
31557 # Check whether --with-x was given.
31558 if test "${with_x+set}" = set; then
31559   withval=$with_x;
31560 fi
31561
31562 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
31563 if test "x$with_x" = xno; then
31564   # The user explicitly disabled X.
31565   have_x=disabled
31566 else
31567   case $x_includes,$x_libraries in #(
31568     *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
31569 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
31570    { (exit 1); exit 1; }; };; #(
31571     *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
31572   echo $ECHO_N "(cached) $ECHO_C" >&6
31573 else
31574   # One or both of the vars are not set, and there is no cached value.
31575 ac_x_includes=no ac_x_libraries=no
31576 rm -f -r conftest.dir
31577 if mkdir conftest.dir; then
31578   cd conftest.dir
31579   cat >Imakefile <<'_ACEOF'
31580 incroot:
31581         @echo incroot='${INCROOT}'
31582 usrlibdir:
31583         @echo usrlibdir='${USRLIBDIR}'
31584 libdir:
31585         @echo libdir='${LIBDIR}'
31586 _ACEOF
31587   if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
31588     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
31589     for ac_var in incroot usrlibdir libdir; do
31590       eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
31591     done
31592     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
31593     for ac_extension in a so sl; do
31594       if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
31595          test -f "$ac_im_libdir/libX11.$ac_extension"; then
31596         ac_im_usrlibdir=$ac_im_libdir; break
31597       fi
31598     done
31599     # Screen out bogus values from the imake configuration.  They are
31600     # bogus both because they are the default anyway, and because
31601     # using them would break gcc on systems where it needs fixed includes.
31602     case $ac_im_incroot in
31603         /usr/include) ac_x_includes= ;;
31604         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
31605     esac
31606     case $ac_im_usrlibdir in
31607         /usr/lib | /lib) ;;
31608         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
31609     esac
31610   fi
31611   cd ..
31612   rm -f -r conftest.dir
31613 fi
31614
31615 # Standard set of common directories for X headers.
31616 # Check X11 before X11Rn because it is often a symlink to the current release.
31617 ac_x_header_dirs='
31618 /usr/X11/include
31619 /usr/X11R6/include
31620 /usr/X11R5/include
31621 /usr/X11R4/include
31622
31623 /usr/include/X11
31624 /usr/include/X11R6
31625 /usr/include/X11R5
31626 /usr/include/X11R4
31627
31628 /usr/local/X11/include
31629 /usr/local/X11R6/include
31630 /usr/local/X11R5/include
31631 /usr/local/X11R4/include
31632
31633 /usr/local/include/X11
31634 /usr/local/include/X11R6
31635 /usr/local/include/X11R5
31636 /usr/local/include/X11R4
31637
31638 /usr/X386/include
31639 /usr/x386/include
31640 /usr/XFree86/include/X11
31641
31642 /usr/include
31643 /usr/local/include
31644 /usr/unsupported/include
31645 /usr/athena/include
31646 /usr/local/x11r5/include
31647 /usr/lpp/Xamples/include
31648
31649 /usr/openwin/include
31650 /usr/openwin/share/include'
31651
31652 if test "$ac_x_includes" = no; then
31653   # Guess where to find include files, by looking for Xlib.h.
31654   # First, try using that file with no special directory specified.
31655   cat >conftest.$ac_ext <<_ACEOF
31656 /* confdefs.h.  */
31657 _ACEOF
31658 cat confdefs.h >>conftest.$ac_ext
31659 cat >>conftest.$ac_ext <<_ACEOF
31660 /* end confdefs.h.  */
31661 #include <X11/Xlib.h>
31662 _ACEOF
31663 if { (ac_try="$ac_cpp conftest.$ac_ext"
31664 case "(($ac_try" in
31665   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31666   *) ac_try_echo=$ac_try;;
31667 esac
31668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31669   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31670   ac_status=$?
31671   grep -v '^ *+' conftest.er1 >conftest.err
31672   rm -f conftest.er1
31673   cat conftest.err >&5
31674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31675   (exit $ac_status); } >/dev/null && {
31676          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31677          test ! -s conftest.err
31678        }; then
31679   # We can compile using X headers with no special include directory.
31680 ac_x_includes=
31681 else
31682   echo "$as_me: failed program was:" >&5
31683 sed 's/^/| /' conftest.$ac_ext >&5
31684
31685   for ac_dir in $ac_x_header_dirs; do
31686   if test -r "$ac_dir/X11/Xlib.h"; then
31687     ac_x_includes=$ac_dir
31688     break
31689   fi
31690 done
31691 fi
31692
31693 rm -f conftest.err conftest.$ac_ext
31694 fi # $ac_x_includes = no
31695
31696 if test "$ac_x_libraries" = no; then
31697   # Check for the libraries.
31698   # See if we find them without any special options.
31699   # Don't add to $LIBS permanently.
31700   ac_save_LIBS=$LIBS
31701   LIBS="-lX11 $LIBS"
31702   cat >conftest.$ac_ext <<_ACEOF
31703 /* confdefs.h.  */
31704 _ACEOF
31705 cat confdefs.h >>conftest.$ac_ext
31706 cat >>conftest.$ac_ext <<_ACEOF
31707 /* end confdefs.h.  */
31708 #include <X11/Xlib.h>
31709 int
31710 main ()
31711 {
31712 XrmInitialize ()
31713   ;
31714   return 0;
31715 }
31716 _ACEOF
31717 rm -f conftest.$ac_objext conftest$ac_exeext
31718 if { (ac_try="$ac_link"
31719 case "(($ac_try" in
31720   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31721   *) ac_try_echo=$ac_try;;
31722 esac
31723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31724   (eval "$ac_link") 2>conftest.er1
31725   ac_status=$?
31726   grep -v '^ *+' conftest.er1 >conftest.err
31727   rm -f conftest.er1
31728   cat conftest.err >&5
31729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31730   (exit $ac_status); } && {
31731          test -z "$ac_c_werror_flag" ||
31732          test ! -s conftest.err
31733        } && test -s conftest$ac_exeext &&
31734        $as_test_x conftest$ac_exeext; then
31735   LIBS=$ac_save_LIBS
31736 # We can link X programs with no special library path.
31737 ac_x_libraries=
31738 else
31739   echo "$as_me: failed program was:" >&5
31740 sed 's/^/| /' conftest.$ac_ext >&5
31741
31742         LIBS=$ac_save_LIBS
31743 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
31744 do
31745   # Don't even attempt the hair of trying to link an X program!
31746   for ac_extension in a so sl; do
31747     if test -r "$ac_dir/libX11.$ac_extension"; then
31748       ac_x_libraries=$ac_dir
31749       break 2
31750     fi
31751   done
31752 done
31753 fi
31754
31755 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31756       conftest$ac_exeext conftest.$ac_ext
31757 fi # $ac_x_libraries = no
31758
31759 case $ac_x_includes,$ac_x_libraries in #(
31760   no,* | *,no | *\'*)
31761     # Didn't find X, or a directory has "'" in its name.
31762     ac_cv_have_x="have_x=no";; #(
31763   *)
31764     # Record where we found X for the cache.
31765     ac_cv_have_x="have_x=yes\
31766         ac_x_includes='$ac_x_includes'\
31767         ac_x_libraries='$ac_x_libraries'"
31768 esac
31769 fi
31770 ;; #(
31771     *) have_x=yes;;
31772   esac
31773   eval "$ac_cv_have_x"
31774 fi # $with_x != no
31775
31776 if test "$have_x" != yes; then
31777   { echo "$as_me:$LINENO: result: $have_x" >&5
31778 echo "${ECHO_T}$have_x" >&6; }
31779   no_x=yes
31780 else
31781   # If each of the values was on the command line, it overrides each guess.
31782   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
31783   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
31784   # Update the cache value to reflect the command line values.
31785   ac_cv_have_x="have_x=yes\
31786         ac_x_includes='$x_includes'\
31787         ac_x_libraries='$x_libraries'"
31788   { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
31789 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
31790 fi
31791
31792 if test "$no_x" = yes; then
31793   # Not all programs may use this symbol, but it does not hurt to define it.
31794
31795 cat >>confdefs.h <<\_ACEOF
31796 #define X_DISPLAY_MISSING 1
31797 _ACEOF
31798
31799   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
31800 else
31801   if test -n "$x_includes"; then
31802     X_CFLAGS="$X_CFLAGS -I$x_includes"
31803   fi
31804
31805   # It would also be nice to do this for all -L options, not just this one.
31806   if test -n "$x_libraries"; then
31807     X_LIBS="$X_LIBS -L$x_libraries"
31808     # For Solaris; some versions of Sun CC require a space after -R and
31809     # others require no space.  Words are not sufficient . . . .
31810     { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
31811 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; }
31812     ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
31813     ac_xsave_c_werror_flag=$ac_c_werror_flag
31814     ac_c_werror_flag=yes
31815     cat >conftest.$ac_ext <<_ACEOF
31816 /* confdefs.h.  */
31817 _ACEOF
31818 cat confdefs.h >>conftest.$ac_ext
31819 cat >>conftest.$ac_ext <<_ACEOF
31820 /* end confdefs.h.  */
31821
31822 int
31823 main ()
31824 {
31825
31826   ;
31827   return 0;
31828 }
31829 _ACEOF
31830 rm -f conftest.$ac_objext conftest$ac_exeext
31831 if { (ac_try="$ac_link"
31832 case "(($ac_try" in
31833   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31834   *) ac_try_echo=$ac_try;;
31835 esac
31836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31837   (eval "$ac_link") 2>conftest.er1
31838   ac_status=$?
31839   grep -v '^ *+' conftest.er1 >conftest.err
31840   rm -f conftest.er1
31841   cat conftest.err >&5
31842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31843   (exit $ac_status); } && {
31844          test -z "$ac_c_werror_flag" ||
31845          test ! -s conftest.err
31846        } && test -s conftest$ac_exeext &&
31847        $as_test_x conftest$ac_exeext; then
31848   { echo "$as_me:$LINENO: result: no" >&5
31849 echo "${ECHO_T}no" >&6; }
31850        X_LIBS="$X_LIBS -R$x_libraries"
31851 else
31852   echo "$as_me: failed program was:" >&5
31853 sed 's/^/| /' conftest.$ac_ext >&5
31854
31855         LIBS="$ac_xsave_LIBS -R $x_libraries"
31856        cat >conftest.$ac_ext <<_ACEOF
31857 /* confdefs.h.  */
31858 _ACEOF
31859 cat confdefs.h >>conftest.$ac_ext
31860 cat >>conftest.$ac_ext <<_ACEOF
31861 /* end confdefs.h.  */
31862
31863 int
31864 main ()
31865 {
31866
31867   ;
31868   return 0;
31869 }
31870 _ACEOF
31871 rm -f conftest.$ac_objext conftest$ac_exeext
31872 if { (ac_try="$ac_link"
31873 case "(($ac_try" in
31874   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31875   *) ac_try_echo=$ac_try;;
31876 esac
31877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31878   (eval "$ac_link") 2>conftest.er1
31879   ac_status=$?
31880   grep -v '^ *+' conftest.er1 >conftest.err
31881   rm -f conftest.er1
31882   cat conftest.err >&5
31883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31884   (exit $ac_status); } && {
31885          test -z "$ac_c_werror_flag" ||
31886          test ! -s conftest.err
31887        } && test -s conftest$ac_exeext &&
31888        $as_test_x conftest$ac_exeext; then
31889   { echo "$as_me:$LINENO: result: yes" >&5
31890 echo "${ECHO_T}yes" >&6; }
31891           X_LIBS="$X_LIBS -R $x_libraries"
31892 else
31893   echo "$as_me: failed program was:" >&5
31894 sed 's/^/| /' conftest.$ac_ext >&5
31895
31896         { echo "$as_me:$LINENO: result: neither works" >&5
31897 echo "${ECHO_T}neither works" >&6; }
31898 fi
31899
31900 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31901       conftest$ac_exeext conftest.$ac_ext
31902 fi
31903
31904 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31905       conftest$ac_exeext conftest.$ac_ext
31906     ac_c_werror_flag=$ac_xsave_c_werror_flag
31907     LIBS=$ac_xsave_LIBS
31908   fi
31909
31910   # Check for system-dependent libraries X programs must link with.
31911   # Do this before checking for the system-independent R6 libraries
31912   # (-lICE), since we may need -lsocket or whatever for X linking.
31913
31914   if test "$ISC" = yes; then
31915     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
31916   else
31917     # Martyn Johnson says this is needed for Ultrix, if the X
31918     # libraries were built with DECnet support.  And Karl Berry says
31919     # the Alpha needs dnet_stub (dnet does not exist).
31920     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
31921     cat >conftest.$ac_ext <<_ACEOF
31922 /* confdefs.h.  */
31923 _ACEOF
31924 cat confdefs.h >>conftest.$ac_ext
31925 cat >>conftest.$ac_ext <<_ACEOF
31926 /* end confdefs.h.  */
31927
31928 /* Override any GCC internal prototype to avoid an error.
31929    Use char because int might match the return type of a GCC
31930    builtin and then its argument prototype would still apply.  */
31931 #ifdef __cplusplus
31932 extern "C"
31933 #endif
31934 char XOpenDisplay ();
31935 int
31936 main ()
31937 {
31938 return XOpenDisplay ();
31939   ;
31940   return 0;
31941 }
31942 _ACEOF
31943 rm -f conftest.$ac_objext conftest$ac_exeext
31944 if { (ac_try="$ac_link"
31945 case "(($ac_try" in
31946   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31947   *) ac_try_echo=$ac_try;;
31948 esac
31949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31950   (eval "$ac_link") 2>conftest.er1
31951   ac_status=$?
31952   grep -v '^ *+' conftest.er1 >conftest.err
31953   rm -f conftest.er1
31954   cat conftest.err >&5
31955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31956   (exit $ac_status); } && {
31957          test -z "$ac_c_werror_flag" ||
31958          test ! -s conftest.err
31959        } && test -s conftest$ac_exeext &&
31960        $as_test_x conftest$ac_exeext; then
31961   :
31962 else
31963   echo "$as_me: failed program was:" >&5
31964 sed 's/^/| /' conftest.$ac_ext >&5
31965
31966         { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
31967 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
31968 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
31969   echo $ECHO_N "(cached) $ECHO_C" >&6
31970 else
31971   ac_check_lib_save_LIBS=$LIBS
31972 LIBS="-ldnet  $LIBS"
31973 cat >conftest.$ac_ext <<_ACEOF
31974 /* confdefs.h.  */
31975 _ACEOF
31976 cat confdefs.h >>conftest.$ac_ext
31977 cat >>conftest.$ac_ext <<_ACEOF
31978 /* end confdefs.h.  */
31979
31980 /* Override any GCC internal prototype to avoid an error.
31981    Use char because int might match the return type of a GCC
31982    builtin and then its argument prototype would still apply.  */
31983 #ifdef __cplusplus
31984 extern "C"
31985 #endif
31986 char dnet_ntoa ();
31987 int
31988 main ()
31989 {
31990 return dnet_ntoa ();
31991   ;
31992   return 0;
31993 }
31994 _ACEOF
31995 rm -f conftest.$ac_objext conftest$ac_exeext
31996 if { (ac_try="$ac_link"
31997 case "(($ac_try" in
31998   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31999   *) ac_try_echo=$ac_try;;
32000 esac
32001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32002   (eval "$ac_link") 2>conftest.er1
32003   ac_status=$?
32004   grep -v '^ *+' conftest.er1 >conftest.err
32005   rm -f conftest.er1
32006   cat conftest.err >&5
32007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32008   (exit $ac_status); } && {
32009          test -z "$ac_c_werror_flag" ||
32010          test ! -s conftest.err
32011        } && test -s conftest$ac_exeext &&
32012        $as_test_x conftest$ac_exeext; then
32013   ac_cv_lib_dnet_dnet_ntoa=yes
32014 else
32015   echo "$as_me: failed program was:" >&5
32016 sed 's/^/| /' conftest.$ac_ext >&5
32017
32018         ac_cv_lib_dnet_dnet_ntoa=no
32019 fi
32020
32021 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32022       conftest$ac_exeext conftest.$ac_ext
32023 LIBS=$ac_check_lib_save_LIBS
32024 fi
32025 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
32026 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
32027 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
32028   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
32029 fi
32030
32031     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
32032       { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
32033 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; }
32034 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
32035   echo $ECHO_N "(cached) $ECHO_C" >&6
32036 else
32037   ac_check_lib_save_LIBS=$LIBS
32038 LIBS="-ldnet_stub  $LIBS"
32039 cat >conftest.$ac_ext <<_ACEOF
32040 /* confdefs.h.  */
32041 _ACEOF
32042 cat confdefs.h >>conftest.$ac_ext
32043 cat >>conftest.$ac_ext <<_ACEOF
32044 /* end confdefs.h.  */
32045
32046 /* Override any GCC internal prototype to avoid an error.
32047    Use char because int might match the return type of a GCC
32048    builtin and then its argument prototype would still apply.  */
32049 #ifdef __cplusplus
32050 extern "C"
32051 #endif
32052 char dnet_ntoa ();
32053 int
32054 main ()
32055 {
32056 return dnet_ntoa ();
32057   ;
32058   return 0;
32059 }
32060 _ACEOF
32061 rm -f conftest.$ac_objext conftest$ac_exeext
32062 if { (ac_try="$ac_link"
32063 case "(($ac_try" in
32064   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32065   *) ac_try_echo=$ac_try;;
32066 esac
32067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32068   (eval "$ac_link") 2>conftest.er1
32069   ac_status=$?
32070   grep -v '^ *+' conftest.er1 >conftest.err
32071   rm -f conftest.er1
32072   cat conftest.err >&5
32073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32074   (exit $ac_status); } && {
32075          test -z "$ac_c_werror_flag" ||
32076          test ! -s conftest.err
32077        } && test -s conftest$ac_exeext &&
32078        $as_test_x conftest$ac_exeext; then
32079   ac_cv_lib_dnet_stub_dnet_ntoa=yes
32080 else
32081   echo "$as_me: failed program was:" >&5
32082 sed 's/^/| /' conftest.$ac_ext >&5
32083
32084         ac_cv_lib_dnet_stub_dnet_ntoa=no
32085 fi
32086
32087 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32088       conftest$ac_exeext conftest.$ac_ext
32089 LIBS=$ac_check_lib_save_LIBS
32090 fi
32091 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
32092 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
32093 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
32094   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
32095 fi
32096
32097     fi
32098 fi
32099
32100 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32101       conftest$ac_exeext conftest.$ac_ext
32102     LIBS="$ac_xsave_LIBS"
32103
32104     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
32105     # to get the SysV transport functions.
32106     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
32107     # needs -lnsl.
32108     # The nsl library prevents programs from opening the X display
32109     # on Irix 5.2, according to T.E. Dickey.
32110     # The functions gethostbyname, getservbyname, and inet_addr are
32111     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
32112     { echo "$as_me:$LINENO: checking for gethostbyname" >&5
32113 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
32114 if test "${ac_cv_func_gethostbyname+set}" = set; then
32115   echo $ECHO_N "(cached) $ECHO_C" >&6
32116 else
32117   cat >conftest.$ac_ext <<_ACEOF
32118 /* confdefs.h.  */
32119 _ACEOF
32120 cat confdefs.h >>conftest.$ac_ext
32121 cat >>conftest.$ac_ext <<_ACEOF
32122 /* end confdefs.h.  */
32123 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
32124    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32125 #define gethostbyname innocuous_gethostbyname
32126
32127 /* System header to define __stub macros and hopefully few prototypes,
32128     which can conflict with char gethostbyname (); below.
32129     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32130     <limits.h> exists even on freestanding compilers.  */
32131
32132 #ifdef __STDC__
32133 # include <limits.h>
32134 #else
32135 # include <assert.h>
32136 #endif
32137
32138 #undef gethostbyname
32139
32140 /* Override any GCC internal prototype to avoid an error.
32141    Use char because int might match the return type of a GCC
32142    builtin and then its argument prototype would still apply.  */
32143 #ifdef __cplusplus
32144 extern "C"
32145 #endif
32146 char gethostbyname ();
32147 /* The GNU C library defines this for functions which it implements
32148     to always fail with ENOSYS.  Some functions are actually named
32149     something starting with __ and the normal name is an alias.  */
32150 #if defined __stub_gethostbyname || defined __stub___gethostbyname
32151 choke me
32152 #endif
32153
32154 int
32155 main ()
32156 {
32157 return gethostbyname ();
32158   ;
32159   return 0;
32160 }
32161 _ACEOF
32162 rm -f conftest.$ac_objext conftest$ac_exeext
32163 if { (ac_try="$ac_link"
32164 case "(($ac_try" in
32165   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32166   *) ac_try_echo=$ac_try;;
32167 esac
32168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32169   (eval "$ac_link") 2>conftest.er1
32170   ac_status=$?
32171   grep -v '^ *+' conftest.er1 >conftest.err
32172   rm -f conftest.er1
32173   cat conftest.err >&5
32174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32175   (exit $ac_status); } && {
32176          test -z "$ac_c_werror_flag" ||
32177          test ! -s conftest.err
32178        } && test -s conftest$ac_exeext &&
32179        $as_test_x conftest$ac_exeext; then
32180   ac_cv_func_gethostbyname=yes
32181 else
32182   echo "$as_me: failed program was:" >&5
32183 sed 's/^/| /' conftest.$ac_ext >&5
32184
32185         ac_cv_func_gethostbyname=no
32186 fi
32187
32188 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32189       conftest$ac_exeext conftest.$ac_ext
32190 fi
32191 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
32192 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
32193
32194     if test $ac_cv_func_gethostbyname = no; then
32195       { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
32196 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
32197 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
32198   echo $ECHO_N "(cached) $ECHO_C" >&6
32199 else
32200   ac_check_lib_save_LIBS=$LIBS
32201 LIBS="-lnsl  $LIBS"
32202 cat >conftest.$ac_ext <<_ACEOF
32203 /* confdefs.h.  */
32204 _ACEOF
32205 cat confdefs.h >>conftest.$ac_ext
32206 cat >>conftest.$ac_ext <<_ACEOF
32207 /* end confdefs.h.  */
32208
32209 /* Override any GCC internal prototype to avoid an error.
32210    Use char because int might match the return type of a GCC
32211    builtin and then its argument prototype would still apply.  */
32212 #ifdef __cplusplus
32213 extern "C"
32214 #endif
32215 char gethostbyname ();
32216 int
32217 main ()
32218 {
32219 return gethostbyname ();
32220   ;
32221   return 0;
32222 }
32223 _ACEOF
32224 rm -f conftest.$ac_objext conftest$ac_exeext
32225 if { (ac_try="$ac_link"
32226 case "(($ac_try" in
32227   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32228   *) ac_try_echo=$ac_try;;
32229 esac
32230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32231   (eval "$ac_link") 2>conftest.er1
32232   ac_status=$?
32233   grep -v '^ *+' conftest.er1 >conftest.err
32234   rm -f conftest.er1
32235   cat conftest.err >&5
32236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32237   (exit $ac_status); } && {
32238          test -z "$ac_c_werror_flag" ||
32239          test ! -s conftest.err
32240        } && test -s conftest$ac_exeext &&
32241        $as_test_x conftest$ac_exeext; then
32242   ac_cv_lib_nsl_gethostbyname=yes
32243 else
32244   echo "$as_me: failed program was:" >&5
32245 sed 's/^/| /' conftest.$ac_ext >&5
32246
32247         ac_cv_lib_nsl_gethostbyname=no
32248 fi
32249
32250 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32251       conftest$ac_exeext conftest.$ac_ext
32252 LIBS=$ac_check_lib_save_LIBS
32253 fi
32254 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
32255 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
32256 if test $ac_cv_lib_nsl_gethostbyname = yes; then
32257   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
32258 fi
32259
32260       if test $ac_cv_lib_nsl_gethostbyname = no; then
32261         { echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
32262 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; }
32263 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
32264   echo $ECHO_N "(cached) $ECHO_C" >&6
32265 else
32266   ac_check_lib_save_LIBS=$LIBS
32267 LIBS="-lbsd  $LIBS"
32268 cat >conftest.$ac_ext <<_ACEOF
32269 /* confdefs.h.  */
32270 _ACEOF
32271 cat confdefs.h >>conftest.$ac_ext
32272 cat >>conftest.$ac_ext <<_ACEOF
32273 /* end confdefs.h.  */
32274
32275 /* Override any GCC internal prototype to avoid an error.
32276    Use char because int might match the return type of a GCC
32277    builtin and then its argument prototype would still apply.  */
32278 #ifdef __cplusplus
32279 extern "C"
32280 #endif
32281 char gethostbyname ();
32282 int
32283 main ()
32284 {
32285 return gethostbyname ();
32286   ;
32287   return 0;
32288 }
32289 _ACEOF
32290 rm -f conftest.$ac_objext conftest$ac_exeext
32291 if { (ac_try="$ac_link"
32292 case "(($ac_try" in
32293   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32294   *) ac_try_echo=$ac_try;;
32295 esac
32296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32297   (eval "$ac_link") 2>conftest.er1
32298   ac_status=$?
32299   grep -v '^ *+' conftest.er1 >conftest.err
32300   rm -f conftest.er1
32301   cat conftest.err >&5
32302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32303   (exit $ac_status); } && {
32304          test -z "$ac_c_werror_flag" ||
32305          test ! -s conftest.err
32306        } && test -s conftest$ac_exeext &&
32307        $as_test_x conftest$ac_exeext; then
32308   ac_cv_lib_bsd_gethostbyname=yes
32309 else
32310   echo "$as_me: failed program was:" >&5
32311 sed 's/^/| /' conftest.$ac_ext >&5
32312
32313         ac_cv_lib_bsd_gethostbyname=no
32314 fi
32315
32316 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32317       conftest$ac_exeext conftest.$ac_ext
32318 LIBS=$ac_check_lib_save_LIBS
32319 fi
32320 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
32321 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; }
32322 if test $ac_cv_lib_bsd_gethostbyname = yes; then
32323   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
32324 fi
32325
32326       fi
32327     fi
32328
32329     # lieder@skyler.mavd.honeywell.com says without -lsocket,
32330     # socket/setsockopt and other routines are undefined under SCO ODT
32331     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
32332     # on later versions), says Simon Leinen: it contains gethostby*
32333     # variants that don't use the name server (or something).  -lsocket
32334     # must be given before -lnsl if both are needed.  We assume that
32335     # if connect needs -lnsl, so does gethostbyname.
32336     { echo "$as_me:$LINENO: checking for connect" >&5
32337 echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
32338 if test "${ac_cv_func_connect+set}" = set; then
32339   echo $ECHO_N "(cached) $ECHO_C" >&6
32340 else
32341   cat >conftest.$ac_ext <<_ACEOF
32342 /* confdefs.h.  */
32343 _ACEOF
32344 cat confdefs.h >>conftest.$ac_ext
32345 cat >>conftest.$ac_ext <<_ACEOF
32346 /* end confdefs.h.  */
32347 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
32348    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32349 #define connect innocuous_connect
32350
32351 /* System header to define __stub macros and hopefully few prototypes,
32352     which can conflict with char connect (); below.
32353     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32354     <limits.h> exists even on freestanding compilers.  */
32355
32356 #ifdef __STDC__
32357 # include <limits.h>
32358 #else
32359 # include <assert.h>
32360 #endif
32361
32362 #undef connect
32363
32364 /* Override any GCC internal prototype to avoid an error.
32365    Use char because int might match the return type of a GCC
32366    builtin and then its argument prototype would still apply.  */
32367 #ifdef __cplusplus
32368 extern "C"
32369 #endif
32370 char connect ();
32371 /* The GNU C library defines this for functions which it implements
32372     to always fail with ENOSYS.  Some functions are actually named
32373     something starting with __ and the normal name is an alias.  */
32374 #if defined __stub_connect || defined __stub___connect
32375 choke me
32376 #endif
32377
32378 int
32379 main ()
32380 {
32381 return connect ();
32382   ;
32383   return 0;
32384 }
32385 _ACEOF
32386 rm -f conftest.$ac_objext conftest$ac_exeext
32387 if { (ac_try="$ac_link"
32388 case "(($ac_try" in
32389   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32390   *) ac_try_echo=$ac_try;;
32391 esac
32392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32393   (eval "$ac_link") 2>conftest.er1
32394   ac_status=$?
32395   grep -v '^ *+' conftest.er1 >conftest.err
32396   rm -f conftest.er1
32397   cat conftest.err >&5
32398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32399   (exit $ac_status); } && {
32400          test -z "$ac_c_werror_flag" ||
32401          test ! -s conftest.err
32402        } && test -s conftest$ac_exeext &&
32403        $as_test_x conftest$ac_exeext; then
32404   ac_cv_func_connect=yes
32405 else
32406   echo "$as_me: failed program was:" >&5
32407 sed 's/^/| /' conftest.$ac_ext >&5
32408
32409         ac_cv_func_connect=no
32410 fi
32411
32412 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32413       conftest$ac_exeext conftest.$ac_ext
32414 fi
32415 { echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
32416 echo "${ECHO_T}$ac_cv_func_connect" >&6; }
32417
32418     if test $ac_cv_func_connect = no; then
32419       { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
32420 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
32421 if test "${ac_cv_lib_socket_connect+set}" = set; then
32422   echo $ECHO_N "(cached) $ECHO_C" >&6
32423 else
32424   ac_check_lib_save_LIBS=$LIBS
32425 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
32426 cat >conftest.$ac_ext <<_ACEOF
32427 /* confdefs.h.  */
32428 _ACEOF
32429 cat confdefs.h >>conftest.$ac_ext
32430 cat >>conftest.$ac_ext <<_ACEOF
32431 /* end confdefs.h.  */
32432
32433 /* Override any GCC internal prototype to avoid an error.
32434    Use char because int might match the return type of a GCC
32435    builtin and then its argument prototype would still apply.  */
32436 #ifdef __cplusplus
32437 extern "C"
32438 #endif
32439 char connect ();
32440 int
32441 main ()
32442 {
32443 return connect ();
32444   ;
32445   return 0;
32446 }
32447 _ACEOF
32448 rm -f conftest.$ac_objext conftest$ac_exeext
32449 if { (ac_try="$ac_link"
32450 case "(($ac_try" in
32451   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32452   *) ac_try_echo=$ac_try;;
32453 esac
32454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32455   (eval "$ac_link") 2>conftest.er1
32456   ac_status=$?
32457   grep -v '^ *+' conftest.er1 >conftest.err
32458   rm -f conftest.er1
32459   cat conftest.err >&5
32460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32461   (exit $ac_status); } && {
32462          test -z "$ac_c_werror_flag" ||
32463          test ! -s conftest.err
32464        } && test -s conftest$ac_exeext &&
32465        $as_test_x conftest$ac_exeext; then
32466   ac_cv_lib_socket_connect=yes
32467 else
32468   echo "$as_me: failed program was:" >&5
32469 sed 's/^/| /' conftest.$ac_ext >&5
32470
32471         ac_cv_lib_socket_connect=no
32472 fi
32473
32474 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32475       conftest$ac_exeext conftest.$ac_ext
32476 LIBS=$ac_check_lib_save_LIBS
32477 fi
32478 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
32479 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
32480 if test $ac_cv_lib_socket_connect = yes; then
32481   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
32482 fi
32483
32484     fi
32485
32486     # Guillermo Gomez says -lposix is necessary on A/UX.
32487     { echo "$as_me:$LINENO: checking for remove" >&5
32488 echo $ECHO_N "checking for remove... $ECHO_C" >&6; }
32489 if test "${ac_cv_func_remove+set}" = set; then
32490   echo $ECHO_N "(cached) $ECHO_C" >&6
32491 else
32492   cat >conftest.$ac_ext <<_ACEOF
32493 /* confdefs.h.  */
32494 _ACEOF
32495 cat confdefs.h >>conftest.$ac_ext
32496 cat >>conftest.$ac_ext <<_ACEOF
32497 /* end confdefs.h.  */
32498 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
32499    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32500 #define remove innocuous_remove
32501
32502 /* System header to define __stub macros and hopefully few prototypes,
32503     which can conflict with char remove (); below.
32504     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32505     <limits.h> exists even on freestanding compilers.  */
32506
32507 #ifdef __STDC__
32508 # include <limits.h>
32509 #else
32510 # include <assert.h>
32511 #endif
32512
32513 #undef remove
32514
32515 /* Override any GCC internal prototype to avoid an error.
32516    Use char because int might match the return type of a GCC
32517    builtin and then its argument prototype would still apply.  */
32518 #ifdef __cplusplus
32519 extern "C"
32520 #endif
32521 char remove ();
32522 /* The GNU C library defines this for functions which it implements
32523     to always fail with ENOSYS.  Some functions are actually named
32524     something starting with __ and the normal name is an alias.  */
32525 #if defined __stub_remove || defined __stub___remove
32526 choke me
32527 #endif
32528
32529 int
32530 main ()
32531 {
32532 return remove ();
32533   ;
32534   return 0;
32535 }
32536 _ACEOF
32537 rm -f conftest.$ac_objext conftest$ac_exeext
32538 if { (ac_try="$ac_link"
32539 case "(($ac_try" in
32540   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32541   *) ac_try_echo=$ac_try;;
32542 esac
32543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32544   (eval "$ac_link") 2>conftest.er1
32545   ac_status=$?
32546   grep -v '^ *+' conftest.er1 >conftest.err
32547   rm -f conftest.er1
32548   cat conftest.err >&5
32549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32550   (exit $ac_status); } && {
32551          test -z "$ac_c_werror_flag" ||
32552          test ! -s conftest.err
32553        } && test -s conftest$ac_exeext &&
32554        $as_test_x conftest$ac_exeext; then
32555   ac_cv_func_remove=yes
32556 else
32557   echo "$as_me: failed program was:" >&5
32558 sed 's/^/| /' conftest.$ac_ext >&5
32559
32560         ac_cv_func_remove=no
32561 fi
32562
32563 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32564       conftest$ac_exeext conftest.$ac_ext
32565 fi
32566 { echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
32567 echo "${ECHO_T}$ac_cv_func_remove" >&6; }
32568
32569     if test $ac_cv_func_remove = no; then
32570       { echo "$as_me:$LINENO: checking for remove in -lposix" >&5
32571 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; }
32572 if test "${ac_cv_lib_posix_remove+set}" = set; then
32573   echo $ECHO_N "(cached) $ECHO_C" >&6
32574 else
32575   ac_check_lib_save_LIBS=$LIBS
32576 LIBS="-lposix  $LIBS"
32577 cat >conftest.$ac_ext <<_ACEOF
32578 /* confdefs.h.  */
32579 _ACEOF
32580 cat confdefs.h >>conftest.$ac_ext
32581 cat >>conftest.$ac_ext <<_ACEOF
32582 /* end confdefs.h.  */
32583
32584 /* Override any GCC internal prototype to avoid an error.
32585    Use char because int might match the return type of a GCC
32586    builtin and then its argument prototype would still apply.  */
32587 #ifdef __cplusplus
32588 extern "C"
32589 #endif
32590 char remove ();
32591 int
32592 main ()
32593 {
32594 return remove ();
32595   ;
32596   return 0;
32597 }
32598 _ACEOF
32599 rm -f conftest.$ac_objext conftest$ac_exeext
32600 if { (ac_try="$ac_link"
32601 case "(($ac_try" in
32602   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32603   *) ac_try_echo=$ac_try;;
32604 esac
32605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32606   (eval "$ac_link") 2>conftest.er1
32607   ac_status=$?
32608   grep -v '^ *+' conftest.er1 >conftest.err
32609   rm -f conftest.er1
32610   cat conftest.err >&5
32611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32612   (exit $ac_status); } && {
32613          test -z "$ac_c_werror_flag" ||
32614          test ! -s conftest.err
32615        } && test -s conftest$ac_exeext &&
32616        $as_test_x conftest$ac_exeext; then
32617   ac_cv_lib_posix_remove=yes
32618 else
32619   echo "$as_me: failed program was:" >&5
32620 sed 's/^/| /' conftest.$ac_ext >&5
32621
32622         ac_cv_lib_posix_remove=no
32623 fi
32624
32625 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32626       conftest$ac_exeext conftest.$ac_ext
32627 LIBS=$ac_check_lib_save_LIBS
32628 fi
32629 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
32630 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; }
32631 if test $ac_cv_lib_posix_remove = yes; then
32632   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
32633 fi
32634
32635     fi
32636
32637     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
32638     { echo "$as_me:$LINENO: checking for shmat" >&5
32639 echo $ECHO_N "checking for shmat... $ECHO_C" >&6; }
32640 if test "${ac_cv_func_shmat+set}" = set; then
32641   echo $ECHO_N "(cached) $ECHO_C" >&6
32642 else
32643   cat >conftest.$ac_ext <<_ACEOF
32644 /* confdefs.h.  */
32645 _ACEOF
32646 cat confdefs.h >>conftest.$ac_ext
32647 cat >>conftest.$ac_ext <<_ACEOF
32648 /* end confdefs.h.  */
32649 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
32650    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32651 #define shmat innocuous_shmat
32652
32653 /* System header to define __stub macros and hopefully few prototypes,
32654     which can conflict with char shmat (); below.
32655     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32656     <limits.h> exists even on freestanding compilers.  */
32657
32658 #ifdef __STDC__
32659 # include <limits.h>
32660 #else
32661 # include <assert.h>
32662 #endif
32663
32664 #undef shmat
32665
32666 /* Override any GCC internal prototype to avoid an error.
32667    Use char because int might match the return type of a GCC
32668    builtin and then its argument prototype would still apply.  */
32669 #ifdef __cplusplus
32670 extern "C"
32671 #endif
32672 char shmat ();
32673 /* The GNU C library defines this for functions which it implements
32674     to always fail with ENOSYS.  Some functions are actually named
32675     something starting with __ and the normal name is an alias.  */
32676 #if defined __stub_shmat || defined __stub___shmat
32677 choke me
32678 #endif
32679
32680 int
32681 main ()
32682 {
32683 return shmat ();
32684   ;
32685   return 0;
32686 }
32687 _ACEOF
32688 rm -f conftest.$ac_objext conftest$ac_exeext
32689 if { (ac_try="$ac_link"
32690 case "(($ac_try" in
32691   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32692   *) ac_try_echo=$ac_try;;
32693 esac
32694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32695   (eval "$ac_link") 2>conftest.er1
32696   ac_status=$?
32697   grep -v '^ *+' conftest.er1 >conftest.err
32698   rm -f conftest.er1
32699   cat conftest.err >&5
32700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32701   (exit $ac_status); } && {
32702          test -z "$ac_c_werror_flag" ||
32703          test ! -s conftest.err
32704        } && test -s conftest$ac_exeext &&
32705        $as_test_x conftest$ac_exeext; then
32706   ac_cv_func_shmat=yes
32707 else
32708   echo "$as_me: failed program was:" >&5
32709 sed 's/^/| /' conftest.$ac_ext >&5
32710
32711         ac_cv_func_shmat=no
32712 fi
32713
32714 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32715       conftest$ac_exeext conftest.$ac_ext
32716 fi
32717 { echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
32718 echo "${ECHO_T}$ac_cv_func_shmat" >&6; }
32719
32720     if test $ac_cv_func_shmat = no; then
32721       { echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
32722 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; }
32723 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
32724   echo $ECHO_N "(cached) $ECHO_C" >&6
32725 else
32726   ac_check_lib_save_LIBS=$LIBS
32727 LIBS="-lipc  $LIBS"
32728 cat >conftest.$ac_ext <<_ACEOF
32729 /* confdefs.h.  */
32730 _ACEOF
32731 cat confdefs.h >>conftest.$ac_ext
32732 cat >>conftest.$ac_ext <<_ACEOF
32733 /* end confdefs.h.  */
32734
32735 /* Override any GCC internal prototype to avoid an error.
32736    Use char because int might match the return type of a GCC
32737    builtin and then its argument prototype would still apply.  */
32738 #ifdef __cplusplus
32739 extern "C"
32740 #endif
32741 char shmat ();
32742 int
32743 main ()
32744 {
32745 return shmat ();
32746   ;
32747   return 0;
32748 }
32749 _ACEOF
32750 rm -f conftest.$ac_objext conftest$ac_exeext
32751 if { (ac_try="$ac_link"
32752 case "(($ac_try" in
32753   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32754   *) ac_try_echo=$ac_try;;
32755 esac
32756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32757   (eval "$ac_link") 2>conftest.er1
32758   ac_status=$?
32759   grep -v '^ *+' conftest.er1 >conftest.err
32760   rm -f conftest.er1
32761   cat conftest.err >&5
32762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32763   (exit $ac_status); } && {
32764          test -z "$ac_c_werror_flag" ||
32765          test ! -s conftest.err
32766        } && test -s conftest$ac_exeext &&
32767        $as_test_x conftest$ac_exeext; then
32768   ac_cv_lib_ipc_shmat=yes
32769 else
32770   echo "$as_me: failed program was:" >&5
32771 sed 's/^/| /' conftest.$ac_ext >&5
32772
32773         ac_cv_lib_ipc_shmat=no
32774 fi
32775
32776 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32777       conftest$ac_exeext conftest.$ac_ext
32778 LIBS=$ac_check_lib_save_LIBS
32779 fi
32780 { echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
32781 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; }
32782 if test $ac_cv_lib_ipc_shmat = yes; then
32783   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
32784 fi
32785
32786     fi
32787   fi
32788
32789   # Check for libraries that X11R6 Xt/Xaw programs need.
32790   ac_save_LDFLAGS=$LDFLAGS
32791   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
32792   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
32793   # check for ICE first), but we must link in the order -lSM -lICE or
32794   # we get undefined symbols.  So assume we have SM if we have ICE.
32795   # These have to be linked with before -lX11, unlike the other
32796   # libraries we check for below, so use a different variable.
32797   # John Interrante, Karl Berry
32798   { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
32799 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; }
32800 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
32801   echo $ECHO_N "(cached) $ECHO_C" >&6
32802 else
32803   ac_check_lib_save_LIBS=$LIBS
32804 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
32805 cat >conftest.$ac_ext <<_ACEOF
32806 /* confdefs.h.  */
32807 _ACEOF
32808 cat confdefs.h >>conftest.$ac_ext
32809 cat >>conftest.$ac_ext <<_ACEOF
32810 /* end confdefs.h.  */
32811
32812 /* Override any GCC internal prototype to avoid an error.
32813    Use char because int might match the return type of a GCC
32814    builtin and then its argument prototype would still apply.  */
32815 #ifdef __cplusplus
32816 extern "C"
32817 #endif
32818 char IceConnectionNumber ();
32819 int
32820 main ()
32821 {
32822 return IceConnectionNumber ();
32823   ;
32824   return 0;
32825 }
32826 _ACEOF
32827 rm -f conftest.$ac_objext conftest$ac_exeext
32828 if { (ac_try="$ac_link"
32829 case "(($ac_try" in
32830   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32831   *) ac_try_echo=$ac_try;;
32832 esac
32833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32834   (eval "$ac_link") 2>conftest.er1
32835   ac_status=$?
32836   grep -v '^ *+' conftest.er1 >conftest.err
32837   rm -f conftest.er1
32838   cat conftest.err >&5
32839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32840   (exit $ac_status); } && {
32841          test -z "$ac_c_werror_flag" ||
32842          test ! -s conftest.err
32843        } && test -s conftest$ac_exeext &&
32844        $as_test_x conftest$ac_exeext; then
32845   ac_cv_lib_ICE_IceConnectionNumber=yes
32846 else
32847   echo "$as_me: failed program was:" >&5
32848 sed 's/^/| /' conftest.$ac_ext >&5
32849
32850         ac_cv_lib_ICE_IceConnectionNumber=no
32851 fi
32852
32853 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32854       conftest$ac_exeext conftest.$ac_ext
32855 LIBS=$ac_check_lib_save_LIBS
32856 fi
32857 { echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
32858 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
32859 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
32860   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
32861 fi
32862
32863   LDFLAGS=$ac_save_LDFLAGS
32864
32865 fi
32866
32867
32868         if test "$no_x" = "yes"; then
32869           { { echo "$as_me:$LINENO: error: X11 not found, please use --x-includes and/or --x-libraries options (see config.log for details)" >&5
32870 echo "$as_me: error: X11 not found, please use --x-includes and/or --x-libraries options (see config.log for details)" >&2;}
32871    { (exit 1); exit 1; }; }
32872         fi
32873
32874                                 GUI_TK_LIBRARY=`echo $X_LIBS | sed 's/ -LNONE//' | sed 's/ -RNONE//'`
32875         TOOLKIT_INCLUDE=`echo $X_CFLAGS | sed 's/ -INONE//'`
32876         AFMINSTALL=afminstall
32877         COMPILED_X_PROGRAM=0
32878
32879     fi
32880
32881     if test "$wxUSE_X11" = 1; then
32882         if test "$wxUSE_NANOX" = "yes"; then
32883             { echo "$as_me:$LINENO: checking for MicroWindows/NanoX distribution" >&5
32884 echo $ECHO_N "checking for MicroWindows/NanoX distribution... $ECHO_C" >&6; }
32885             if test "x$MICROWIN" = x ; then
32886                 { echo "$as_me:$LINENO: result: not found" >&5
32887 echo "${ECHO_T}not found" >&6; }
32888                 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&5
32889 echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&2;}
32890    { (exit 1); exit 1; }; }
32891             else
32892                 { echo "$as_me:$LINENO: result: $MICROWIN" >&5
32893 echo "${ECHO_T}$MICROWIN" >&6; }
32894                 cat >>confdefs.h <<\_ACEOF
32895 #define wxUSE_NANOX 1
32896 _ACEOF
32897
32898             fi
32899         fi
32900
32901         if test "$wxUSE_UNICODE" = "yes"; then
32902
32903
32904 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
32905         if test -n "$ac_tool_prefix"; then
32906   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
32907 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
32908 { echo "$as_me:$LINENO: checking for $ac_word" >&5
32909 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
32910 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
32911   echo $ECHO_N "(cached) $ECHO_C" >&6
32912 else
32913   case $PKG_CONFIG in
32914   [\\/]* | ?:[\\/]*)
32915   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
32916   ;;
32917   *)
32918   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32919 for as_dir in $PATH
32920 do
32921   IFS=$as_save_IFS
32922   test -z "$as_dir" && as_dir=.
32923   for ac_exec_ext in '' $ac_executable_extensions; do
32924   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32925     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
32926     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
32927     break 2
32928   fi
32929 done
32930 done
32931 IFS=$as_save_IFS
32932
32933   ;;
32934 esac
32935 fi
32936 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
32937 if test -n "$PKG_CONFIG"; then
32938   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
32939 echo "${ECHO_T}$PKG_CONFIG" >&6; }
32940 else
32941   { echo "$as_me:$LINENO: result: no" >&5
32942 echo "${ECHO_T}no" >&6; }
32943 fi
32944
32945
32946 fi
32947 if test -z "$ac_cv_path_PKG_CONFIG"; then
32948   ac_pt_PKG_CONFIG=$PKG_CONFIG
32949   # Extract the first word of "pkg-config", so it can be a program name with args.
32950 set dummy pkg-config; ac_word=$2
32951 { echo "$as_me:$LINENO: checking for $ac_word" >&5
32952 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
32953 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
32954   echo $ECHO_N "(cached) $ECHO_C" >&6
32955 else
32956   case $ac_pt_PKG_CONFIG in
32957   [\\/]* | ?:[\\/]*)
32958   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
32959   ;;
32960   *)
32961   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32962 for as_dir in $PATH
32963 do
32964   IFS=$as_save_IFS
32965   test -z "$as_dir" && as_dir=.
32966   for ac_exec_ext in '' $ac_executable_extensions; do
32967   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32968     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
32969     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
32970     break 2
32971   fi
32972 done
32973 done
32974 IFS=$as_save_IFS
32975
32976   ;;
32977 esac
32978 fi
32979 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
32980 if test -n "$ac_pt_PKG_CONFIG"; then
32981   { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
32982 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
32983 else
32984   { echo "$as_me:$LINENO: result: no" >&5
32985 echo "${ECHO_T}no" >&6; }
32986 fi
32987
32988   if test "x$ac_pt_PKG_CONFIG" = x; then
32989     PKG_CONFIG=""
32990   else
32991     case $cross_compiling:$ac_tool_warned in
32992 yes:)
32993 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
32994 whose name does not start with the host triplet.  If you think this
32995 configuration is useful to you, please write to autoconf@gnu.org." >&5
32996 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
32997 whose name does not start with the host triplet.  If you think this
32998 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
32999 ac_tool_warned=yes ;;
33000 esac
33001     PKG_CONFIG=$ac_pt_PKG_CONFIG
33002   fi
33003 else
33004   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
33005 fi
33006
33007 fi
33008 if test -n "$PKG_CONFIG"; then
33009         _pkg_min_version=0.9.0
33010         { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
33011 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
33012         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
33013                 { echo "$as_me:$LINENO: result: yes" >&5
33014 echo "${ECHO_T}yes" >&6; }
33015         else
33016                 { echo "$as_me:$LINENO: result: no" >&5
33017 echo "${ECHO_T}no" >&6; }
33018                 PKG_CONFIG=""
33019         fi
33020
33021 fi
33022
33023
33024 pkg_failed=no
33025 { echo "$as_me:$LINENO: checking for PANGOX" >&5
33026 echo $ECHO_N "checking for PANGOX... $ECHO_C" >&6; }
33027
33028 if test -n "$PKG_CONFIG"; then
33029     if test -n "$PANGOX_CFLAGS"; then
33030         pkg_cv_PANGOX_CFLAGS="$PANGOX_CFLAGS"
33031     else
33032         if test -n "$PKG_CONFIG" && \
33033     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangox\"") >&5
33034   ($PKG_CONFIG --exists --print-errors "pangox") 2>&5
33035   ac_status=$?
33036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33037   (exit $ac_status); }; then
33038   pkg_cv_PANGOX_CFLAGS=`$PKG_CONFIG --cflags "pangox" 2>/dev/null`
33039 else
33040   pkg_failed=yes
33041 fi
33042     fi
33043 else
33044         pkg_failed=untried
33045 fi
33046 if test -n "$PKG_CONFIG"; then
33047     if test -n "$PANGOX_LIBS"; then
33048         pkg_cv_PANGOX_LIBS="$PANGOX_LIBS"
33049     else
33050         if test -n "$PKG_CONFIG" && \
33051     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangox\"") >&5
33052   ($PKG_CONFIG --exists --print-errors "pangox") 2>&5
33053   ac_status=$?
33054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33055   (exit $ac_status); }; then
33056   pkg_cv_PANGOX_LIBS=`$PKG_CONFIG --libs "pangox" 2>/dev/null`
33057 else
33058   pkg_failed=yes
33059 fi
33060     fi
33061 else
33062         pkg_failed=untried
33063 fi
33064
33065
33066
33067 if test $pkg_failed = yes; then
33068
33069 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
33070         _pkg_short_errors_supported=yes
33071 else
33072         _pkg_short_errors_supported=no
33073 fi
33074         if test $_pkg_short_errors_supported = yes; then
33075                 PANGOX_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "pangox"`
33076         else
33077                 PANGOX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangox"`
33078         fi
33079         # Put the nasty error message in config.log where it belongs
33080         echo "$PANGOX_PKG_ERRORS" >&5
33081
33082
33083                     { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5
33084 echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;}
33085    { (exit 1); exit 1; }; }
33086
33087
33088 elif test $pkg_failed = untried; then
33089
33090                     { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5
33091 echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;}
33092    { (exit 1); exit 1; }; }
33093
33094
33095 else
33096         PANGOX_CFLAGS=$pkg_cv_PANGOX_CFLAGS
33097         PANGOX_LIBS=$pkg_cv_PANGOX_LIBS
33098         { echo "$as_me:$LINENO: result: yes" >&5
33099 echo "${ECHO_T}yes" >&6; }
33100
33101                     CFLAGS="$PANGOX_CFLAGS $CFLAGS"
33102                     CXXFLAGS="$PANGOX_CFLAGS $CXXFLAGS"
33103                     GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOX_LIBS"
33104
33105 fi
33106
33107 pkg_failed=no
33108 { echo "$as_me:$LINENO: checking for PANGOFT2" >&5
33109 echo $ECHO_N "checking for PANGOFT2... $ECHO_C" >&6; }
33110
33111 if test -n "$PKG_CONFIG"; then
33112     if test -n "$PANGOFT2_CFLAGS"; then
33113         pkg_cv_PANGOFT2_CFLAGS="$PANGOFT2_CFLAGS"
33114     else
33115         if test -n "$PKG_CONFIG" && \
33116     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangoft2\"") >&5
33117   ($PKG_CONFIG --exists --print-errors "pangoft2") 2>&5
33118   ac_status=$?
33119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33120   (exit $ac_status); }; then
33121   pkg_cv_PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2" 2>/dev/null`
33122 else
33123   pkg_failed=yes
33124 fi
33125     fi
33126 else
33127         pkg_failed=untried
33128 fi
33129 if test -n "$PKG_CONFIG"; then
33130     if test -n "$PANGOFT2_LIBS"; then
33131         pkg_cv_PANGOFT2_LIBS="$PANGOFT2_LIBS"
33132     else
33133         if test -n "$PKG_CONFIG" && \
33134     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangoft2\"") >&5
33135   ($PKG_CONFIG --exists --print-errors "pangoft2") 2>&5
33136   ac_status=$?
33137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33138   (exit $ac_status); }; then
33139   pkg_cv_PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2" 2>/dev/null`
33140 else
33141   pkg_failed=yes
33142 fi
33143     fi
33144 else
33145         pkg_failed=untried
33146 fi
33147
33148
33149
33150 if test $pkg_failed = yes; then
33151
33152 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
33153         _pkg_short_errors_supported=yes
33154 else
33155         _pkg_short_errors_supported=no
33156 fi
33157         if test $_pkg_short_errors_supported = yes; then
33158                 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "pangoft2"`
33159         else
33160                 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
33161         fi
33162         # Put the nasty error message in config.log where it belongs
33163         echo "$PANGOFT2_PKG_ERRORS" >&5
33164
33165
33166                     { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
33167 echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
33168                     wxUSE_PRINTING_ARCHITECTURE="no"
33169
33170
33171 elif test $pkg_failed = untried; then
33172
33173                     { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
33174 echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
33175                     wxUSE_PRINTING_ARCHITECTURE="no"
33176
33177
33178 else
33179         PANGOFT2_CFLAGS=$pkg_cv_PANGOFT2_CFLAGS
33180         PANGOFT2_LIBS=$pkg_cv_PANGOFT2_LIBS
33181         { echo "$as_me:$LINENO: result: yes" >&5
33182 echo "${ECHO_T}yes" >&6; }
33183
33184                     CFLAGS="$PANGOFT2_CFLAGS $CFLAGS"
33185                     CXXFLAGS="$PANGOFT2_CFLAGS $CXXFLAGS"
33186                     GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS"
33187
33188 fi
33189
33190 pkg_failed=no
33191 { echo "$as_me:$LINENO: checking for PANGOXFT" >&5
33192 echo $ECHO_N "checking for PANGOXFT... $ECHO_C" >&6; }
33193
33194 if test -n "$PKG_CONFIG"; then
33195     if test -n "$PANGOXFT_CFLAGS"; then
33196         pkg_cv_PANGOXFT_CFLAGS="$PANGOXFT_CFLAGS"
33197     else
33198         if test -n "$PKG_CONFIG" && \
33199     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangoxft\"") >&5
33200   ($PKG_CONFIG --exists --print-errors "pangoxft") 2>&5
33201   ac_status=$?
33202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33203   (exit $ac_status); }; then
33204   pkg_cv_PANGOXFT_CFLAGS=`$PKG_CONFIG --cflags "pangoxft" 2>/dev/null`
33205 else
33206   pkg_failed=yes
33207 fi
33208     fi
33209 else
33210         pkg_failed=untried
33211 fi
33212 if test -n "$PKG_CONFIG"; then
33213     if test -n "$PANGOXFT_LIBS"; then
33214         pkg_cv_PANGOXFT_LIBS="$PANGOXFT_LIBS"
33215     else
33216         if test -n "$PKG_CONFIG" && \
33217     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangoxft\"") >&5
33218   ($PKG_CONFIG --exists --print-errors "pangoxft") 2>&5
33219   ac_status=$?
33220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33221   (exit $ac_status); }; then
33222   pkg_cv_PANGOXFT_LIBS=`$PKG_CONFIG --libs "pangoxft" 2>/dev/null`
33223 else
33224   pkg_failed=yes
33225 fi
33226     fi
33227 else
33228         pkg_failed=untried
33229 fi
33230
33231
33232
33233 if test $pkg_failed = yes; then
33234
33235 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
33236         _pkg_short_errors_supported=yes
33237 else
33238         _pkg_short_errors_supported=no
33239 fi
33240         if test $_pkg_short_errors_supported = yes; then
33241                 PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "pangoxft"`
33242         else
33243                 PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoxft"`
33244         fi
33245         # Put the nasty error message in config.log where it belongs
33246         echo "$PANGOXFT_PKG_ERRORS" >&5
33247
33248
33249                     { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5
33250 echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;}
33251
33252
33253 elif test $pkg_failed = untried; then
33254
33255                     { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5
33256 echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;}
33257
33258
33259 else
33260         PANGOXFT_CFLAGS=$pkg_cv_PANGOXFT_CFLAGS
33261         PANGOXFT_LIBS=$pkg_cv_PANGOXFT_LIBS
33262         { echo "$as_me:$LINENO: result: yes" >&5
33263 echo "${ECHO_T}yes" >&6; }
33264
33265                     cat >>confdefs.h <<\_ACEOF
33266 #define HAVE_PANGO_XFT 1
33267 _ACEOF
33268
33269                     CFLAGS="$PANGOXFT_CFLAGS $CFLAGS"
33270                     CXXFLAGS="$PANGOXFT_CFLAGS $CXXFLAGS"
33271                     GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOXFT_LIBS"
33272
33273 fi
33274             save_LIBS="$LIBS"
33275             LIBS="$LIBS $PANGOX_LIBS"
33276
33277 for ac_func in pango_font_family_is_monospace
33278 do
33279 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33280 { echo "$as_me:$LINENO: checking for $ac_func" >&5
33281 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
33282 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
33283   echo $ECHO_N "(cached) $ECHO_C" >&6
33284 else
33285   cat >conftest.$ac_ext <<_ACEOF
33286 /* confdefs.h.  */
33287 _ACEOF
33288 cat confdefs.h >>conftest.$ac_ext
33289 cat >>conftest.$ac_ext <<_ACEOF
33290 /* end confdefs.h.  */
33291 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33292    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
33293 #define $ac_func innocuous_$ac_func
33294
33295 /* System header to define __stub macros and hopefully few prototypes,
33296     which can conflict with char $ac_func (); below.
33297     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33298     <limits.h> exists even on freestanding compilers.  */
33299
33300 #ifdef __STDC__
33301 # include <limits.h>
33302 #else
33303 # include <assert.h>
33304 #endif
33305
33306 #undef $ac_func
33307
33308 /* Override any GCC internal prototype to avoid an error.
33309    Use char because int might match the return type of a GCC
33310    builtin and then its argument prototype would still apply.  */
33311 #ifdef __cplusplus
33312 extern "C"
33313 #endif
33314 char $ac_func ();
33315 /* The GNU C library defines this for functions which it implements
33316     to always fail with ENOSYS.  Some functions are actually named
33317     something starting with __ and the normal name is an alias.  */
33318 #if defined __stub_$ac_func || defined __stub___$ac_func
33319 choke me
33320 #endif
33321
33322 int
33323 main ()
33324 {
33325 return $ac_func ();
33326   ;
33327   return 0;
33328 }
33329 _ACEOF
33330 rm -f conftest.$ac_objext conftest$ac_exeext
33331 if { (ac_try="$ac_link"
33332 case "(($ac_try" in
33333   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33334   *) ac_try_echo=$ac_try;;
33335 esac
33336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33337   (eval "$ac_link") 2>conftest.er1
33338   ac_status=$?
33339   grep -v '^ *+' conftest.er1 >conftest.err
33340   rm -f conftest.er1
33341   cat conftest.err >&5
33342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33343   (exit $ac_status); } && {
33344          test -z "$ac_c_werror_flag" ||
33345          test ! -s conftest.err
33346        } && test -s conftest$ac_exeext &&
33347        $as_test_x conftest$ac_exeext; then
33348   eval "$as_ac_var=yes"
33349 else
33350   echo "$as_me: failed program was:" >&5
33351 sed 's/^/| /' conftest.$ac_ext >&5
33352
33353         eval "$as_ac_var=no"
33354 fi
33355
33356 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33357       conftest$ac_exeext conftest.$ac_ext
33358 fi
33359 ac_res=`eval echo '${'$as_ac_var'}'`
33360                { echo "$as_me:$LINENO: result: $ac_res" >&5
33361 echo "${ECHO_T}$ac_res" >&6; }
33362 if test `eval echo '${'$as_ac_var'}'` = yes; then
33363   cat >>confdefs.h <<_ACEOF
33364 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33365 _ACEOF
33366
33367 fi
33368 done
33369
33370             LIBS="$save_LIBS"
33371         fi
33372
33373         wxUSE_UNIVERSAL="yes"
33374
33375         if test "$wxUSE_NANOX" = "yes"; then
33376             TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE"
33377             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"
33378             GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a"
33379         else
33380             GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11"
33381         fi
33382
33383         TOOLKIT=X11
33384         GUIDIST=X11_DIST
33385     fi
33386
33387     if test "$wxUSE_MOTIF" = 1; then
33388         { echo "$as_me:$LINENO: checking for Motif/Lesstif headers" >&5
33389 echo $ECHO_N "checking for Motif/Lesstif headers... $ECHO_C" >&6; }
33390
33391 ac_find_includes=
33392 for ac_dir in $SEARCH_INCLUDE /usr/include
33393   do
33394     if test -f "$ac_dir/Xm/Xm.h"; then
33395       ac_find_includes=$ac_dir
33396       break
33397     fi
33398   done
33399
33400         if test "$ac_find_includes" != "" ; then
33401             { echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
33402 echo "${ECHO_T}found in $ac_find_includes" >&6; }
33403
33404     if test "x$ac_find_includes" = "x/usr/include"; then
33405     ac_path_to_include=""
33406   else
33407     echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
33408     result=$?
33409     if test $result = 0; then
33410       ac_path_to_include=""
33411     else
33412       ac_path_to_include=" -I$ac_find_includes"
33413     fi
33414   fi
33415
33416             TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include"
33417         else
33418             save_CFLAGS=$CFLAGS
33419             CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
33420
33421             cat >conftest.$ac_ext <<_ACEOF
33422 /* confdefs.h.  */
33423 _ACEOF
33424 cat confdefs.h >>conftest.$ac_ext
33425 cat >>conftest.$ac_ext <<_ACEOF
33426 /* end confdefs.h.  */
33427
33428                     #include <Xm/Xm.h>
33429
33430 int
33431 main ()
33432 {
33433
33434                     int version;
33435                     version = xmUseVersion;
33436
33437   ;
33438   return 0;
33439 }
33440 _ACEOF
33441 rm -f conftest.$ac_objext
33442 if { (ac_try="$ac_compile"
33443 case "(($ac_try" in
33444   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33445   *) ac_try_echo=$ac_try;;
33446 esac
33447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33448   (eval "$ac_compile") 2>conftest.er1
33449   ac_status=$?
33450   grep -v '^ *+' conftest.er1 >conftest.err
33451   rm -f conftest.er1
33452   cat conftest.err >&5
33453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33454   (exit $ac_status); } && {
33455          test -z "$ac_c_werror_flag" ||
33456          test ! -s conftest.err
33457        } && test -s conftest.$ac_objext; then
33458
33459                     { echo "$as_me:$LINENO: result: found in default search path" >&5
33460 echo "${ECHO_T}found in default search path" >&6; }
33461                     COMPILED_X_PROGRAM=1
33462
33463 else
33464   echo "$as_me: failed program was:" >&5
33465 sed 's/^/| /' conftest.$ac_ext >&5
33466
33467
33468                     { echo "$as_me:$LINENO: result: no" >&5
33469 echo "${ECHO_T}no" >&6; }
33470                     { { echo "$as_me:$LINENO: error: please set CPPFLAGS to contain the location of Xm/Xm.h" >&5
33471 echo "$as_me: error: please set CPPFLAGS to contain the location of Xm/Xm.h" >&2;}
33472    { (exit 1); exit 1; }; }
33473
33474
33475 fi
33476
33477 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33478
33479             CFLAGS=$save_CFLAGS
33480         fi
33481
33482
33483         { echo "$as_me:$LINENO: checking for Motif/Lesstif library" >&5
33484 echo $ECHO_N "checking for Motif/Lesstif library... $ECHO_C" >&6; }
33485
33486   ac_find_libraries=
33487   for ac_dir in $SEARCH_LIB
33488   do
33489     for ac_extension in a so sl dylib dll.a; do
33490       if test -f "$ac_dir/libXm.$ac_extension"; then
33491         ac_find_libraries=$ac_dir
33492         break 2
33493       fi
33494     done
33495   done
33496
33497
33498         if test "x$ac_find_libraries" != "x" ; then
33499             { echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
33500 echo "${ECHO_T}found in $ac_find_libraries" >&6; }
33501
33502
33503     if test "$ac_find_libraries" = "default location"; then
33504     ac_path_to_link=""
33505   else
33506     echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
33507     result=$?
33508     if test $result = 0; then
33509       ac_path_to_link=""
33510     else
33511       ac_path_to_link=" -L$ac_find_libraries"
33512     fi
33513   fi
33514
33515             GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
33516         else
33517                                                 save_CFLAGS=$CFLAGS
33518             CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
33519             save_LIBS="$LIBS"
33520             LIBS="$GUI_TK_LIBRARY -lXm -lXmu -lXext -lX11"
33521
33522             cat >conftest.$ac_ext <<_ACEOF
33523 /* confdefs.h.  */
33524 _ACEOF
33525 cat confdefs.h >>conftest.$ac_ext
33526 cat >>conftest.$ac_ext <<_ACEOF
33527 /* end confdefs.h.  */
33528
33529                     #include <Xm/Xm.h>
33530
33531 int
33532 main ()
33533 {
33534
33535                     int version;
33536                     version = xmUseVersion;
33537
33538   ;
33539   return 0;
33540 }
33541 _ACEOF
33542 rm -f conftest.$ac_objext conftest$ac_exeext
33543 if { (ac_try="$ac_link"
33544 case "(($ac_try" in
33545   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33546   *) ac_try_echo=$ac_try;;
33547 esac
33548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33549   (eval "$ac_link") 2>conftest.er1
33550   ac_status=$?
33551   grep -v '^ *+' conftest.er1 >conftest.err
33552   rm -f conftest.er1
33553   cat conftest.err >&5
33554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33555   (exit $ac_status); } && {
33556          test -z "$ac_c_werror_flag" ||
33557          test ! -s conftest.err
33558        } && test -s conftest$ac_exeext &&
33559        $as_test_x conftest$ac_exeext; then
33560
33561                     { echo "$as_me:$LINENO: result: found in default search path" >&5
33562 echo "${ECHO_T}found in default search path" >&6; }
33563                     COMPILED_X_PROGRAM=1
33564
33565 else
33566   echo "$as_me: failed program was:" >&5
33567 sed 's/^/| /' conftest.$ac_ext >&5
33568
33569
33570                     { echo "$as_me:$LINENO: result: no" >&5
33571 echo "${ECHO_T}no" >&6; }
33572                     { { echo "$as_me:$LINENO: error: please set LDFLAGS to contain the location of libXm" >&5
33573 echo "$as_me: error: please set LDFLAGS to contain the location of libXm" >&2;}
33574    { (exit 1); exit 1; }; }
33575
33576
33577 fi
33578
33579 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33580       conftest$ac_exeext conftest.$ac_ext
33581
33582             CFLAGS=$save_CFLAGS
33583             LIBS="$save_LIBS"
33584         fi
33585
33586         { echo "$as_me:$LINENO: checking if we need -lXp and/or -lSM -lICE" >&5
33587 echo $ECHO_N "checking if we need -lXp and/or -lSM -lICE... $ECHO_C" >&6; }
33588         libp_link=""
33589         libsm_ice_link=""
33590         libs_found=0
33591         for libp in "" " -lXp"; do
33592             if test "$libs_found" = 0; then
33593                 for libsm_ice in "" " -lSM -lICE"; do
33594                     if test "$libs_found" = 0; then
33595                         save_LIBS="$LIBS"
33596                         LIBS="$GUI_TK_LIBRARY -lXm ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11"
33597                         save_CFLAGS=$CFLAGS
33598                         CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
33599
33600                         cat >conftest.$ac_ext <<_ACEOF
33601 /* confdefs.h.  */
33602 _ACEOF
33603 cat confdefs.h >>conftest.$ac_ext
33604 cat >>conftest.$ac_ext <<_ACEOF
33605 /* end confdefs.h.  */
33606
33607                                 #include <Xm/Xm.h>
33608                                 #include <Xm/List.h>
33609
33610 int
33611 main ()
33612 {
33613
33614                                 XmString string = NULL;
33615                                 Widget w = NULL;
33616                                 int position = 0;
33617                                 XmListAddItem(w, string, position);
33618
33619   ;
33620   return 0;
33621 }
33622 _ACEOF
33623 rm -f conftest.$ac_objext conftest$ac_exeext
33624 if { (ac_try="$ac_link"
33625 case "(($ac_try" in
33626   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33627   *) ac_try_echo=$ac_try;;
33628 esac
33629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33630   (eval "$ac_link") 2>conftest.er1
33631   ac_status=$?
33632   grep -v '^ *+' conftest.er1 >conftest.err
33633   rm -f conftest.er1
33634   cat conftest.err >&5
33635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33636   (exit $ac_status); } && {
33637          test -z "$ac_c_werror_flag" ||
33638          test ! -s conftest.err
33639        } && test -s conftest$ac_exeext &&
33640        $as_test_x conftest$ac_exeext; then
33641
33642                                 libp_link="$libp"
33643                                 libsm_ice_link="$libsm_ice"
33644                                 { echo "$as_me:$LINENO: result: need${libp_link}${libsm_ice_link}" >&5
33645 echo "${ECHO_T}need${libp_link}${libsm_ice_link}" >&6; }
33646                                 libs_found=1
33647
33648 else
33649   echo "$as_me: failed program was:" >&5
33650 sed 's/^/| /' conftest.$ac_ext >&5
33651
33652
33653
33654 fi
33655
33656 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33657       conftest$ac_exeext conftest.$ac_ext
33658
33659                         LIBS="$save_LIBS"
33660                         CFLAGS=$save_CFLAGS
33661                     fi
33662                 done
33663             fi
33664         done
33665
33666         if test "$libs_found" = 0; then
33667             { echo "$as_me:$LINENO: result: can't find the right libraries" >&5
33668 echo "${ECHO_T}can't find the right libraries" >&6; }
33669             { { echo "$as_me:$LINENO: error: can't link a simple motif program" >&5
33670 echo "$as_me: error: can't link a simple motif program" >&2;}
33671    { (exit 1); exit 1; }; }
33672         fi
33673
33674                         { echo "$as_me:$LINENO: checking for SgCreateList in -lSgm" >&5
33675 echo $ECHO_N "checking for SgCreateList in -lSgm... $ECHO_C" >&6; }
33676 if test "${ac_cv_lib_Sgm_SgCreateList+set}" = set; then
33677   echo $ECHO_N "(cached) $ECHO_C" >&6
33678 else
33679   ac_check_lib_save_LIBS=$LIBS
33680 LIBS="-lSgm  $LIBS"
33681 cat >conftest.$ac_ext <<_ACEOF
33682 /* confdefs.h.  */
33683 _ACEOF
33684 cat confdefs.h >>conftest.$ac_ext
33685 cat >>conftest.$ac_ext <<_ACEOF
33686 /* end confdefs.h.  */
33687
33688 /* Override any GCC internal prototype to avoid an error.
33689    Use char because int might match the return type of a GCC
33690    builtin and then its argument prototype would still apply.  */
33691 #ifdef __cplusplus
33692 extern "C"
33693 #endif
33694 char SgCreateList ();
33695 int
33696 main ()
33697 {
33698 return SgCreateList ();
33699   ;
33700   return 0;
33701 }
33702 _ACEOF
33703 rm -f conftest.$ac_objext conftest$ac_exeext
33704 if { (ac_try="$ac_link"
33705 case "(($ac_try" in
33706   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33707   *) ac_try_echo=$ac_try;;
33708 esac
33709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33710   (eval "$ac_link") 2>conftest.er1
33711   ac_status=$?
33712   grep -v '^ *+' conftest.er1 >conftest.err
33713   rm -f conftest.er1
33714   cat conftest.err >&5
33715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33716   (exit $ac_status); } && {
33717          test -z "$ac_c_werror_flag" ||
33718          test ! -s conftest.err
33719        } && test -s conftest$ac_exeext &&
33720        $as_test_x conftest$ac_exeext; then
33721   ac_cv_lib_Sgm_SgCreateList=yes
33722 else
33723   echo "$as_me: failed program was:" >&5
33724 sed 's/^/| /' conftest.$ac_ext >&5
33725
33726         ac_cv_lib_Sgm_SgCreateList=no
33727 fi
33728
33729 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33730       conftest$ac_exeext conftest.$ac_ext
33731 LIBS=$ac_check_lib_save_LIBS
33732 fi
33733 { echo "$as_me:$LINENO: result: $ac_cv_lib_Sgm_SgCreateList" >&5
33734 echo "${ECHO_T}$ac_cv_lib_Sgm_SgCreateList" >&6; }
33735 if test $ac_cv_lib_Sgm_SgCreateList = yes; then
33736   libsgm_link=" -lSgm"
33737 fi
33738
33739
33740         save_CFLAGS=$CFLAGS
33741         CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
33742
33743         { echo "$as_me:$LINENO: checking for Motif 2" >&5
33744 echo $ECHO_N "checking for Motif 2... $ECHO_C" >&6; }
33745 if test "${wx_cv_lib_motif2+set}" = set; then
33746   echo $ECHO_N "(cached) $ECHO_C" >&6
33747 else
33748   cat >conftest.$ac_ext <<_ACEOF
33749 /* confdefs.h.  */
33750 _ACEOF
33751 cat confdefs.h >>conftest.$ac_ext
33752 cat >>conftest.$ac_ext <<_ACEOF
33753 /* end confdefs.h.  */
33754
33755                             #include <Xm/Xm.h>
33756
33757 int
33758 main ()
33759 {
33760
33761                             #if XmVersion < 2000
33762                             Not Motif 2
33763                             #endif
33764
33765   ;
33766   return 0;
33767 }
33768 _ACEOF
33769 rm -f conftest.$ac_objext
33770 if { (ac_try="$ac_compile"
33771 case "(($ac_try" in
33772   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33773   *) ac_try_echo=$ac_try;;
33774 esac
33775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33776   (eval "$ac_compile") 2>conftest.er1
33777   ac_status=$?
33778   grep -v '^ *+' conftest.er1 >conftest.err
33779   rm -f conftest.er1
33780   cat conftest.err >&5
33781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33782   (exit $ac_status); } && {
33783          test -z "$ac_c_werror_flag" ||
33784          test ! -s conftest.err
33785        } && test -s conftest.$ac_objext; then
33786   wx_cv_lib_motif2="yes"
33787 else
33788   echo "$as_me: failed program was:" >&5
33789 sed 's/^/| /' conftest.$ac_ext >&5
33790
33791         wx_cv_lib_motif2="no"
33792 fi
33793
33794 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33795 fi
33796 { echo "$as_me:$LINENO: result: $wx_cv_lib_motif2" >&5
33797 echo "${ECHO_T}$wx_cv_lib_motif2" >&6; }
33798         if test "$wx_cv_lib_motif2" = "yes"; then
33799             cat >>confdefs.h <<\_ACEOF
33800 #define __WXMOTIF20__ 1
33801 _ACEOF
33802
33803         else
33804             cat >>confdefs.h <<\_ACEOF
33805 #define __WXMOTIF20__ 0
33806 _ACEOF
33807
33808         fi
33809
33810         { echo "$as_me:$LINENO: checking whether Motif is Lesstif" >&5
33811 echo $ECHO_N "checking whether Motif is Lesstif... $ECHO_C" >&6; }
33812 if test "${wx_cv_lib_lesstif+set}" = set; then
33813   echo $ECHO_N "(cached) $ECHO_C" >&6
33814 else
33815   cat >conftest.$ac_ext <<_ACEOF
33816 /* confdefs.h.  */
33817 _ACEOF
33818 cat confdefs.h >>conftest.$ac_ext
33819 cat >>conftest.$ac_ext <<_ACEOF
33820 /* end confdefs.h.  */
33821
33822                             #include <Xm/Xm.h>
33823
33824 int
33825 main ()
33826 {
33827
33828                             #if !defined(LesstifVersion) || LesstifVersion <= 0
33829                             Not Lesstif
33830                             #endif
33831
33832   ;
33833   return 0;
33834 }
33835 _ACEOF
33836 rm -f conftest.$ac_objext
33837 if { (ac_try="$ac_compile"
33838 case "(($ac_try" in
33839   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33840   *) ac_try_echo=$ac_try;;
33841 esac
33842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33843   (eval "$ac_compile") 2>conftest.er1
33844   ac_status=$?
33845   grep -v '^ *+' conftest.er1 >conftest.err
33846   rm -f conftest.er1
33847   cat conftest.err >&5
33848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33849   (exit $ac_status); } && {
33850          test -z "$ac_c_werror_flag" ||
33851          test ! -s conftest.err
33852        } && test -s conftest.$ac_objext; then
33853   wx_cv_lib_lesstif="yes"
33854 else
33855   echo "$as_me: failed program was:" >&5
33856 sed 's/^/| /' conftest.$ac_ext >&5
33857
33858         wx_cv_lib_lesstif="no"
33859 fi
33860
33861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33862
33863 fi
33864 { echo "$as_me:$LINENO: result: $wx_cv_lib_lesstif" >&5
33865 echo "${ECHO_T}$wx_cv_lib_lesstif" >&6; }
33866         if test "$wx_cv_lib_lesstif" = "yes"; then
33867             cat >>confdefs.h <<\_ACEOF
33868 #define __WXLESSTIF__ 1
33869 _ACEOF
33870
33871         else
33872             cat >>confdefs.h <<\_ACEOF
33873 #define __WXLESSTIF__ 0
33874 _ACEOF
33875
33876         fi
33877
33878         CFLAGS=$save_CFLAGS
33879
33880         GUI_TK_LIBRARY="$GUI_TK_LIBRARY${libsgm_link} -lXm${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11"
33881         TOOLKIT=MOTIF
33882         GUIDIST=MOTIF_DIST
33883     fi
33884
33885         if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
33886                 if test "$wxUSE_LIBXPM" = "sys"; then
33887             { echo "$as_me:$LINENO: checking for Xpm library" >&5
33888 echo $ECHO_N "checking for Xpm library... $ECHO_C" >&6; }
33889
33890   ac_find_libraries=
33891   for ac_dir in $SEARCH_LIB
33892   do
33893     for ac_extension in a so sl dylib dll.a; do
33894       if test -f "$ac_dir/libXpm.$ac_extension"; then
33895         ac_find_libraries=$ac_dir
33896         break 2
33897       fi
33898     done
33899   done
33900
33901             if test "$ac_find_libraries" != "" ; then
33902
33903     if test "$ac_find_libraries" = "default location"; then
33904     ac_path_to_link=""
33905   else
33906     echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
33907     result=$?
33908     if test $result = 0; then
33909       ac_path_to_link=""
33910     else
33911       ac_path_to_link=" -L$ac_find_libraries"
33912     fi
33913   fi
33914
33915                 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
33916                 { echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
33917 echo "${ECHO_T}found in $ac_find_libraries" >&6; }
33918
33919                 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
33920 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
33921 if test "${wx_cv_x11_xpm_h+set}" = set; then
33922   echo $ECHO_N "(cached) $ECHO_C" >&6
33923 else
33924
33925                         save_CFLAGS=$CFLAGS
33926                         CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
33927
33928                         cat >conftest.$ac_ext <<_ACEOF
33929 /* confdefs.h.  */
33930 _ACEOF
33931 cat confdefs.h >>conftest.$ac_ext
33932 cat >>conftest.$ac_ext <<_ACEOF
33933 /* end confdefs.h.  */
33934
33935                                 #include <X11/xpm.h>
33936
33937 int
33938 main ()
33939 {
33940
33941                                 int version;
33942                                 version = XpmLibraryVersion();
33943
33944   ;
33945   return 0;
33946 }
33947 _ACEOF
33948 rm -f conftest.$ac_objext
33949 if { (ac_try="$ac_compile"
33950 case "(($ac_try" in
33951   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33952   *) ac_try_echo=$ac_try;;
33953 esac
33954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33955   (eval "$ac_compile") 2>conftest.er1
33956   ac_status=$?
33957   grep -v '^ *+' conftest.er1 >conftest.err
33958   rm -f conftest.er1
33959   cat conftest.err >&5
33960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33961   (exit $ac_status); } && {
33962          test -z "$ac_c_werror_flag" ||
33963          test ! -s conftest.err
33964        } && test -s conftest.$ac_objext; then
33965   wx_cv_x11_xpm_h=yes
33966 else
33967   echo "$as_me: failed program was:" >&5
33968 sed 's/^/| /' conftest.$ac_ext >&5
33969
33970         wx_cv_x11_xpm_h=no
33971
33972 fi
33973
33974 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33975
33976                         CFLAGS=$save_CFLAGS
33977
33978
33979 fi
33980 { echo "$as_me:$LINENO: result: $wx_cv_x11_xpm_h" >&5
33981 echo "${ECHO_T}$wx_cv_x11_xpm_h" >&6; }
33982
33983                 if test $wx_cv_x11_xpm_h = "yes"; then
33984                     GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXpm"
33985                     cat >>confdefs.h <<\_ACEOF
33986 #define wxHAVE_LIB_XPM 1
33987 _ACEOF
33988
33989                 else
33990                     { echo "$as_me:$LINENO: WARNING: built-in less efficient XPM decoder will be used" >&5
33991 echo "$as_me: WARNING: built-in less efficient XPM decoder will be used" >&2;}
33992                 fi
33993             fi
33994
33995         fi
33996
33997                 { echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
33998 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6; }
33999 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
34000   echo $ECHO_N "(cached) $ECHO_C" >&6
34001 else
34002   ac_check_lib_save_LIBS=$LIBS
34003 LIBS="-lXext $GUI_TK_LIBRARY -lX11 $LIBS"
34004 cat >conftest.$ac_ext <<_ACEOF
34005 /* confdefs.h.  */
34006 _ACEOF
34007 cat confdefs.h >>conftest.$ac_ext
34008 cat >>conftest.$ac_ext <<_ACEOF
34009 /* end confdefs.h.  */
34010
34011 /* Override any GCC internal prototype to avoid an error.
34012    Use char because int might match the return type of a GCC
34013    builtin and then its argument prototype would still apply.  */
34014 #ifdef __cplusplus
34015 extern "C"
34016 #endif
34017 char XShapeQueryExtension ();
34018 int
34019 main ()
34020 {
34021 return XShapeQueryExtension ();
34022   ;
34023   return 0;
34024 }
34025 _ACEOF
34026 rm -f conftest.$ac_objext conftest$ac_exeext
34027 if { (ac_try="$ac_link"
34028 case "(($ac_try" in
34029   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34030   *) ac_try_echo=$ac_try;;
34031 esac
34032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34033   (eval "$ac_link") 2>conftest.er1
34034   ac_status=$?
34035   grep -v '^ *+' conftest.er1 >conftest.err
34036   rm -f conftest.er1
34037   cat conftest.err >&5
34038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34039   (exit $ac_status); } && {
34040          test -z "$ac_c_werror_flag" ||
34041          test ! -s conftest.err
34042        } && test -s conftest$ac_exeext &&
34043        $as_test_x conftest$ac_exeext; then
34044   ac_cv_lib_Xext_XShapeQueryExtension=yes
34045 else
34046   echo "$as_me: failed program was:" >&5
34047 sed 's/^/| /' conftest.$ac_ext >&5
34048
34049         ac_cv_lib_Xext_XShapeQueryExtension=no
34050 fi
34051
34052 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34053       conftest$ac_exeext conftest.$ac_ext
34054 LIBS=$ac_check_lib_save_LIBS
34055 fi
34056 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
34057 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
34058 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
34059
34060                       GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXext"
34061                       wxHAVE_XEXT_LIB=1
34062
34063 fi
34064
34065
34066         if test "$wxHAVE_XEXT_LIB" = 1; then
34067             save_CFLAGS="$CFLAGS"
34068             CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
34069
34070             { echo "$as_me:$LINENO: checking for X11/extensions/shape.h" >&5
34071 echo $ECHO_N "checking for X11/extensions/shape.h... $ECHO_C" >&6; }
34072             cat >conftest.$ac_ext <<_ACEOF
34073 /* confdefs.h.  */
34074 _ACEOF
34075 cat confdefs.h >>conftest.$ac_ext
34076 cat >>conftest.$ac_ext <<_ACEOF
34077 /* end confdefs.h.  */
34078
34079                             #include <X11/Xlib.h>
34080                             #include <X11/extensions/shape.h>
34081
34082 int
34083 main ()
34084 {
34085
34086                             int dummy1, dummy2;
34087                             XShapeQueryExtension((Display*)NULL,
34088                                                  (int*)NULL, (int*)NULL);
34089
34090   ;
34091   return 0;
34092 }
34093 _ACEOF
34094 rm -f conftest.$ac_objext
34095 if { (ac_try="$ac_compile"
34096 case "(($ac_try" in
34097   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34098   *) ac_try_echo=$ac_try;;
34099 esac
34100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34101   (eval "$ac_compile") 2>conftest.er1
34102   ac_status=$?
34103   grep -v '^ *+' conftest.er1 >conftest.err
34104   rm -f conftest.er1
34105   cat conftest.err >&5
34106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34107   (exit $ac_status); } && {
34108          test -z "$ac_c_werror_flag" ||
34109          test ! -s conftest.err
34110        } && test -s conftest.$ac_objext; then
34111
34112                             cat >>confdefs.h <<\_ACEOF
34113 #define HAVE_XSHAPE 1
34114 _ACEOF
34115
34116                             { echo "$as_me:$LINENO: result: found" >&5
34117 echo "${ECHO_T}found" >&6; }
34118
34119 else
34120   echo "$as_me: failed program was:" >&5
34121 sed 's/^/| /' conftest.$ac_ext >&5
34122
34123
34124                             { echo "$as_me:$LINENO: result: not found" >&5
34125 echo "${ECHO_T}not found" >&6; }
34126
34127 fi
34128
34129 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34130             CFLAGS="$save_CFLAGS"
34131
34132         fi
34133     fi
34134
34135     if test "$wxUSE_OSX_CARBON" = 1; then
34136         { echo "$as_me:$LINENO: checking for compiler syntax to enable Pascal strings" >&5
34137 echo $ECHO_N "checking for compiler syntax to enable Pascal strings... $ECHO_C" >&6; }
34138         if test "$GCC" = yes; then
34139             { echo "$as_me:$LINENO: result: gcc" >&5
34140 echo "${ECHO_T}gcc" >&6; }
34141             CPPFLAGS_PASCAL="-fpascal-strings"
34142         elif test "`echo $CXX | sed -e 's@.*/@@'`" = "xlC"; then
34143             { echo "$as_me:$LINENO: result: xlc" >&5
34144 echo "${ECHO_T}xlc" >&6; }
34145             CPPFLAGS_PASCAL="-qmacpstr"
34146         else
34147             { echo "$as_me:$LINENO: result: none" >&5
34148 echo "${ECHO_T}none" >&6; }
34149         fi
34150
34151         if test "x$wxUSE_UNIX" = "xyes"; then
34152             CPPFLAGS="$CPPFLAGS_PASCAL -I/Developer/Headers/FlatCarbon $CPPFLAGS"
34153         else
34154                         CPPFLAGS="$CPPFLAGS_PASCAL -DTARGET_CARBON $CPPFLAGS"
34155         fi
34156
34157         TOOLKIT=OSX_CARBON
34158                 GUIDIST=OSX_CARBON_DIST
34159                         WXBASEPORT="_carbon"
34160
34161                                         TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMAC__ -D__WXOSX__"
34162     fi
34163
34164     if test "$wxUSE_OSX_COCOA" = 1; then
34165         TOOLKIT=OSX_COCOA
34166         GUIDIST=OSX_COCOA_DIST
34167
34168                 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMAC__ -D__WXOSX__"
34169     fi
34170
34171     if test "$wxUSE_OSX_IPHONE" = 1; then
34172         TOOLKIT=OSX_IPHONE
34173     fi
34174
34175     if test "$wxUSE_OLD_COCOA" = 1; then
34176         TOOLKIT=COCOA
34177         GUIDIST=COCOA_DIST
34178     fi
34179
34180     if test "$wxUSE_PM" = 1; then
34181         TOOLKIT=PM
34182         GUIDIST=PM_DIST
34183         { echo "$as_me:$LINENO: checking for type SPBCDATA" >&5
34184 echo $ECHO_N "checking for type SPBCDATA... $ECHO_C" >&6; }
34185 if test "${wx_cv_spbcdata+set}" = set; then
34186   echo $ECHO_N "(cached) $ECHO_C" >&6
34187 else
34188
34189                 cat >conftest.$ac_ext <<_ACEOF
34190 /* confdefs.h.  */
34191 _ACEOF
34192 cat confdefs.h >>conftest.$ac_ext
34193 cat >>conftest.$ac_ext <<_ACEOF
34194 /* end confdefs.h.  */
34195
34196                         #define INCL_PM
34197                         #include <os2.h>
34198
34199 int
34200 main ()
34201 {
34202
34203                         SPBCDATA test;
34204
34205   ;
34206   return 0;
34207 }
34208 _ACEOF
34209 rm -f conftest.$ac_objext
34210 if { (ac_try="$ac_compile"
34211 case "(($ac_try" in
34212   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34213   *) ac_try_echo=$ac_try;;
34214 esac
34215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34216   (eval "$ac_compile") 2>conftest.er1
34217   ac_status=$?
34218   grep -v '^ *+' conftest.er1 >conftest.err
34219   rm -f conftest.er1
34220   cat conftest.err >&5
34221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34222   (exit $ac_status); } && {
34223          test -z "$ac_c_werror_flag" ||
34224          test ! -s conftest.err
34225        } && test -s conftest.$ac_objext; then
34226   wx_cv_spbcdata=yes
34227 else
34228   echo "$as_me: failed program was:" >&5
34229 sed 's/^/| /' conftest.$ac_ext >&5
34230
34231         wx_cv_spbcdata=no
34232
34233 fi
34234
34235 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34236
34237
34238 fi
34239 { echo "$as_me:$LINENO: result: $wx_cv_spbcdata" >&5
34240 echo "${ECHO_T}$wx_cv_spbcdata" >&6; }
34241
34242         if test $wx_cv_spbcdata = "yes"; then
34243             cat >>confdefs.h <<\_ACEOF
34244 #define HAVE_SPBCDATA 1
34245 _ACEOF
34246
34247         fi
34248     fi
34249
34250         if test "$TOOLKIT" = "PM" ; then
34251         TOOLKIT_DIR="os2"
34252     else
34253         TOOLKIT_DIR=`echo ${TOOLKIT} | tr '[A-Z]' '[a-z]'`
34254     fi
34255
34256     if test "$wxUSE_UNIVERSAL" = "yes"; then
34257         TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__"
34258         WIDGET_SET=univ
34259     fi
34260
34261         GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
34262     DISTDIR="wx\$(TOOLKIT)"
34263 else
34264     USE_GUI=0
34265
34266             TOOLKIT_DIR="base"
34267
34268         if test "$USE_WIN32" = 1 ; then
34269                         TOOLKIT="MSW"
34270     fi
34271
34272         GUIDIST="BASE_DIST"
34273     DISTDIR="wxBase"
34274 fi
34275
34276
34277
34278 if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_UTF8" = "auto" ; then
34279     if test "$USE_UNIX" = 1 -a "$wxUSE_DARWIN" != 1 ; then
34280         wxUSE_UNICODE_UTF8=yes
34281     elif test "$USE_OS2" = 1 ; then
34282                                 wxUSE_UNICODE_UTF8=yes
34283     else
34284         wxUSE_UNICODE_UTF8=no
34285     fi
34286 fi
34287
34288
34289 if test "$wxUSE_GUI" = "yes"; then
34290     if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_PM" != 1; then
34291
34292 for ac_header in X11/Xlib.h
34293 do
34294 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
34295 { echo "$as_me:$LINENO: checking for $ac_header" >&5
34296 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
34297 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
34298   echo $ECHO_N "(cached) $ECHO_C" >&6
34299 else
34300   cat >conftest.$ac_ext <<_ACEOF
34301 /* confdefs.h.  */
34302 _ACEOF
34303 cat confdefs.h >>conftest.$ac_ext
34304 cat >>conftest.$ac_ext <<_ACEOF
34305 /* end confdefs.h.  */
34306
34307
34308 #include <$ac_header>
34309 _ACEOF
34310 rm -f conftest.$ac_objext
34311 if { (ac_try="$ac_compile"
34312 case "(($ac_try" in
34313   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34314   *) ac_try_echo=$ac_try;;
34315 esac
34316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34317   (eval "$ac_compile") 2>conftest.er1
34318   ac_status=$?
34319   grep -v '^ *+' conftest.er1 >conftest.err
34320   rm -f conftest.er1
34321   cat conftest.err >&5
34322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34323   (exit $ac_status); } && {
34324          test -z "$ac_c_werror_flag" ||
34325          test ! -s conftest.err
34326        } && test -s conftest.$ac_objext; then
34327   eval "$as_ac_Header=yes"
34328 else
34329   echo "$as_me: failed program was:" >&5
34330 sed 's/^/| /' conftest.$ac_ext >&5
34331
34332         eval "$as_ac_Header=no"
34333 fi
34334
34335 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34336 fi
34337 ac_res=`eval echo '${'$as_ac_Header'}'`
34338                { echo "$as_me:$LINENO: result: $ac_res" >&5
34339 echo "${ECHO_T}$ac_res" >&6; }
34340 if test `eval echo '${'$as_ac_Header'}'` = yes; then
34341   cat >>confdefs.h <<_ACEOF
34342 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
34343 _ACEOF
34344
34345 fi
34346
34347 done
34348
34349
34350 for ac_header in X11/XKBlib.h
34351 do
34352 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
34353 { echo "$as_me:$LINENO: checking for $ac_header" >&5
34354 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
34355 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
34356   echo $ECHO_N "(cached) $ECHO_C" >&6
34357 else
34358   cat >conftest.$ac_ext <<_ACEOF
34359 /* confdefs.h.  */
34360 _ACEOF
34361 cat confdefs.h >>conftest.$ac_ext
34362 cat >>conftest.$ac_ext <<_ACEOF
34363 /* end confdefs.h.  */
34364
34365                           #if HAVE_X11_XLIB_H
34366                             #include <X11/Xlib.h>
34367                           #endif
34368
34369
34370 #include <$ac_header>
34371 _ACEOF
34372 rm -f conftest.$ac_objext
34373 if { (ac_try="$ac_compile"
34374 case "(($ac_try" in
34375   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34376   *) ac_try_echo=$ac_try;;
34377 esac
34378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34379   (eval "$ac_compile") 2>conftest.er1
34380   ac_status=$?
34381   grep -v '^ *+' conftest.er1 >conftest.err
34382   rm -f conftest.er1
34383   cat conftest.err >&5
34384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34385   (exit $ac_status); } && {
34386          test -z "$ac_c_werror_flag" ||
34387          test ! -s conftest.err
34388        } && test -s conftest.$ac_objext; then
34389   eval "$as_ac_Header=yes"
34390 else
34391   echo "$as_me: failed program was:" >&5
34392 sed 's/^/| /' conftest.$ac_ext >&5
34393
34394         eval "$as_ac_Header=no"
34395 fi
34396
34397 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34398 fi
34399 ac_res=`eval echo '${'$as_ac_Header'}'`
34400                { echo "$as_me:$LINENO: result: $ac_res" >&5
34401 echo "${ECHO_T}$ac_res" >&6; }
34402 if test `eval echo '${'$as_ac_Header'}'` = yes; then
34403   cat >>confdefs.h <<_ACEOF
34404 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
34405 _ACEOF
34406
34407 fi
34408
34409 done
34410
34411     fi
34412 fi
34413
34414
34415
34416 USE_XINERAMA=0
34417 if test "$wxUSE_DISPLAY" = "yes"; then
34418         if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_X11" = 1 -o "$wxUSE_GTK1" = 1; then
34419         { echo "$as_me:$LINENO: checking for Xinerama" >&5
34420 echo $ECHO_N "checking for Xinerama... $ECHO_C" >&6; }
34421
34422   ac_find_libraries=
34423   for ac_dir in $SEARCH_LIB
34424   do
34425     for ac_extension in a so sl dylib dll.a; do
34426       if test -f "$ac_dir/libXinerama.$ac_extension"; then
34427         ac_find_libraries=$ac_dir
34428         break 2
34429       fi
34430     done
34431   done
34432
34433         if test "$ac_find_libraries" != "" ; then
34434
34435     if test "$ac_find_libraries" = "default location"; then
34436     ac_path_to_link=""
34437   else
34438     echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
34439     result=$?
34440     if test $result = 0; then
34441       ac_path_to_link=""
34442     else
34443       ac_path_to_link=" -L$ac_find_libraries"
34444     fi
34445   fi
34446
34447             if test "$ac_path_to_link" != " -L/usr/lib" ; then
34448                 LDFLAGS="$LDFLAGS $ac_path_to_link"
34449             fi
34450             USE_XINERAMA=1
34451             GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXinerama"
34452             { echo "$as_me:$LINENO: result: yes" >&5
34453 echo "${ECHO_T}yes" >&6; }
34454         else
34455             { echo "$as_me:$LINENO: result: no" >&5
34456 echo "${ECHO_T}no" >&6; }
34457             { echo "$as_me:$LINENO: WARNING: Xinerama not found; disabling wxDisplay" >&5
34458 echo "$as_me: WARNING: Xinerama not found; disabling wxDisplay" >&2;}
34459             wxUSE_DISPLAY="no"
34460         fi
34461     elif test "$wxUSE_MSW" = 1; then
34462                 { echo "$as_me:$LINENO: checking for ddraw.h" >&5
34463 echo $ECHO_N "checking for ddraw.h... $ECHO_C" >&6; }
34464 if test "${ac_cv_header_ddraw_h+set}" = set; then
34465   echo $ECHO_N "(cached) $ECHO_C" >&6
34466 else
34467   cat >conftest.$ac_ext <<_ACEOF
34468 /* confdefs.h.  */
34469 _ACEOF
34470 cat confdefs.h >>conftest.$ac_ext
34471 cat >>conftest.$ac_ext <<_ACEOF
34472 /* end confdefs.h.  */
34473 #include <windows.h>
34474
34475 #include <ddraw.h>
34476 _ACEOF
34477 rm -f conftest.$ac_objext
34478 if { (ac_try="$ac_compile"
34479 case "(($ac_try" in
34480   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34481   *) ac_try_echo=$ac_try;;
34482 esac
34483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34484   (eval "$ac_compile") 2>conftest.er1
34485   ac_status=$?
34486   grep -v '^ *+' conftest.er1 >conftest.err
34487   rm -f conftest.er1
34488   cat conftest.err >&5
34489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34490   (exit $ac_status); } && {
34491          test -z "$ac_c_werror_flag" ||
34492          test ! -s conftest.err
34493        } && test -s conftest.$ac_objext; then
34494   ac_cv_header_ddraw_h=yes
34495 else
34496   echo "$as_me: failed program was:" >&5
34497 sed 's/^/| /' conftest.$ac_ext >&5
34498
34499         ac_cv_header_ddraw_h=no
34500 fi
34501
34502 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34503 fi
34504 { echo "$as_me:$LINENO: result: $ac_cv_header_ddraw_h" >&5
34505 echo "${ECHO_T}$ac_cv_header_ddraw_h" >&6; }
34506
34507
34508     fi
34509 fi
34510
34511 if test "$wxUSE_DISPLAY" = "yes"; then
34512         if test "$USE_XINERAMA" = 1 -o "$wxUSE_GTK" = 1; then
34513         { echo "$as_me:$LINENO: checking for Xxf86vm extension" >&5
34514 echo $ECHO_N "checking for Xxf86vm extension... $ECHO_C" >&6; }
34515
34516   ac_find_libraries=
34517   for ac_dir in $SEARCH_LIB
34518   do
34519     for ac_extension in a so sl dylib dll.a; do
34520       if test -f "$ac_dir/libXxf86vm.$ac_extension"; then
34521         ac_find_libraries=$ac_dir
34522         break 2
34523       fi
34524     done
34525   done
34526
34527         if test "$ac_find_libraries" != "" ; then
34528             { echo "$as_me:$LINENO: result: yes" >&5
34529 echo "${ECHO_T}yes" >&6; }
34530
34531 for ac_header in X11/extensions/xf86vmode.h
34532 do
34533 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
34534 { echo "$as_me:$LINENO: checking for $ac_header" >&5
34535 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
34536 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
34537   echo $ECHO_N "(cached) $ECHO_C" >&6
34538 else
34539   cat >conftest.$ac_ext <<_ACEOF
34540 /* confdefs.h.  */
34541 _ACEOF
34542 cat confdefs.h >>conftest.$ac_ext
34543 cat >>conftest.$ac_ext <<_ACEOF
34544 /* end confdefs.h.  */
34545
34546                                   #if HAVE_X11_XLIB_H
34547                                     #include <X11/Xlib.h>
34548                                   #endif
34549
34550
34551 #include <$ac_header>
34552 _ACEOF
34553 rm -f conftest.$ac_objext
34554 if { (ac_try="$ac_compile"
34555 case "(($ac_try" in
34556   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34557   *) ac_try_echo=$ac_try;;
34558 esac
34559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34560   (eval "$ac_compile") 2>conftest.er1
34561   ac_status=$?
34562   grep -v '^ *+' conftest.er1 >conftest.err
34563   rm -f conftest.er1
34564   cat conftest.err >&5
34565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34566   (exit $ac_status); } && {
34567          test -z "$ac_c_werror_flag" ||
34568          test ! -s conftest.err
34569        } && test -s conftest.$ac_objext; then
34570   eval "$as_ac_Header=yes"
34571 else
34572   echo "$as_me: failed program was:" >&5
34573 sed 's/^/| /' conftest.$ac_ext >&5
34574
34575         eval "$as_ac_Header=no"
34576 fi
34577
34578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34579 fi
34580 ac_res=`eval echo '${'$as_ac_Header'}'`
34581                { echo "$as_me:$LINENO: result: $ac_res" >&5
34582 echo "${ECHO_T}$ac_res" >&6; }
34583 if test `eval echo '${'$as_ac_Header'}'` = yes; then
34584   cat >>confdefs.h <<_ACEOF
34585 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
34586 _ACEOF
34587
34588                               GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXxf86vm"
34589
34590 fi
34591
34592 done
34593
34594         else
34595             { echo "$as_me:$LINENO: result: no" >&5
34596 echo "${ECHO_T}no" >&6; }
34597         fi
34598     fi
34599 fi
34600
34601 if test "$wxUSE_DETECT_SM" = "yes"; then
34602     if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_MAC" != 1 -a "$wxUSE_OLD_COCOA" != 1; then
34603         { echo "$as_me:$LINENO: checking for -lSM - X11 session management" >&5
34604 echo $ECHO_N "checking for -lSM - X11 session management... $ECHO_C" >&6; }
34605
34606   ac_find_libraries=
34607   for ac_dir in $SEARCH_LIB
34608   do
34609     for ac_extension in a so sl dylib dll.a; do
34610       if test -f "$ac_dir/libSM.$ac_extension"; then
34611         ac_find_libraries=$ac_dir
34612         break 2
34613       fi
34614     done
34615   done
34616
34617         if test "$ac_find_libraries" != "" ; then
34618
34619     if test "$ac_find_libraries" = "default location"; then
34620     ac_path_to_link=""
34621   else
34622     echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
34623     result=$?
34624     if test $result = 0; then
34625       ac_path_to_link=""
34626     else
34627       ac_path_to_link=" -L$ac_find_libraries"
34628     fi
34629   fi
34630
34631             if test "$ac_path_to_link" != " -L/usr/lib" ; then
34632                 LDFLAGS="$LDFLAGS $ac_path_to_link"
34633             fi
34634             GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lSM"
34635             { echo "$as_me:$LINENO: result: yes" >&5
34636 echo "${ECHO_T}yes" >&6; }
34637         else
34638             { echo "$as_me:$LINENO: result: no" >&5
34639 echo "${ECHO_T}no" >&6; }
34640             { echo "$as_me:$LINENO: WARNING: libSM not found; disabling session management detection" >&5
34641 echo "$as_me: WARNING: libSM not found; disabling session management detection" >&2;}
34642             wxUSE_DETECT_SM="no"
34643         fi
34644     else
34645         wxUSE_DETECT_SM="no"
34646     fi
34647 fi
34648
34649
34650
34651 USE_OPENGL=0
34652 if test "$wxUSE_OPENGL" = "yes" -o "$wxUSE_OPENGL" = "auto"; then
34653
34654
34655     if test "$wxUSE_OSX_CARBON" = 1 -o "$wxUSE_OSX_COCOA" = 1 -o "$wxUSE_OLD_COCOA" = 1; then
34656         OPENGL_LIBS="-framework OpenGL -framework AGL"
34657     elif test "$wxUSE_MSW" = 1; then
34658         OPENGL_LIBS="-lopengl32 -lglu32"
34659     elif test "$wxUSE_MOTIF" = 1 -o "$wxUSE_X11" = 1 -o "$wxUSE_GTK2" = 1 -o "$wxUSE_GTK" = 1; then
34660
34661                         { echo "$as_me:$LINENO: checking for OpenGL headers" >&5
34662 echo $ECHO_N "checking for OpenGL headers... $ECHO_C" >&6; }
34663
34664 ac_find_includes=
34665 for ac_dir in $SEARCH_INCLUDE /opt/graphics/OpenGL/include /usr/include
34666   do
34667     if test -f "$ac_dir/GL/gl.h"; then
34668       ac_find_includes=$ac_dir
34669       break
34670     fi
34671   done
34672
34673         if test "$ac_find_includes" != "" ; then
34674             { echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
34675 echo "${ECHO_T}found in $ac_find_includes" >&6; }
34676
34677     if test "x$ac_find_includes" = "x/usr/include"; then
34678     ac_path_to_include=""
34679   else
34680     echo "$CPPFLAGS" | grep "\-I$ac_find_includes" > /dev/null
34681     result=$?
34682     if test $result = 0; then
34683       ac_path_to_include=""
34684     else
34685       ac_path_to_include=" -I$ac_find_includes"
34686     fi
34687   fi
34688
34689             CPPFLAGS="$ac_path_to_include $CPPFLAGS"
34690         else
34691             { echo "$as_me:$LINENO: result: not found" >&5
34692 echo "${ECHO_T}not found" >&6; }
34693         fi
34694
34695         { echo "$as_me:$LINENO: checking for GL/gl.h" >&5
34696 echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6; }
34697 if test "${ac_cv_header_GL_gl_h+set}" = set; then
34698   echo $ECHO_N "(cached) $ECHO_C" >&6
34699 else
34700   cat >conftest.$ac_ext <<_ACEOF
34701 /* confdefs.h.  */
34702 _ACEOF
34703 cat confdefs.h >>conftest.$ac_ext
34704 cat >>conftest.$ac_ext <<_ACEOF
34705 /* end confdefs.h.  */
34706
34707
34708 #include <GL/gl.h>
34709 _ACEOF
34710 rm -f conftest.$ac_objext
34711 if { (ac_try="$ac_compile"
34712 case "(($ac_try" in
34713   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34714   *) ac_try_echo=$ac_try;;
34715 esac
34716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34717   (eval "$ac_compile") 2>conftest.er1
34718   ac_status=$?
34719   grep -v '^ *+' conftest.er1 >conftest.err
34720   rm -f conftest.er1
34721   cat conftest.err >&5
34722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34723   (exit $ac_status); } && {
34724          test -z "$ac_c_werror_flag" ||
34725          test ! -s conftest.err
34726        } && test -s conftest.$ac_objext; then
34727   ac_cv_header_GL_gl_h=yes
34728 else
34729   echo "$as_me: failed program was:" >&5
34730 sed 's/^/| /' conftest.$ac_ext >&5
34731
34732         ac_cv_header_GL_gl_h=no
34733 fi
34734
34735 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34736 fi
34737 { echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
34738 echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6; }
34739 if test $ac_cv_header_GL_gl_h = yes; then
34740
34741             { echo "$as_me:$LINENO: checking for GL/glu.h" >&5
34742 echo $ECHO_N "checking for GL/glu.h... $ECHO_C" >&6; }
34743 if test "${ac_cv_header_GL_glu_h+set}" = set; then
34744   echo $ECHO_N "(cached) $ECHO_C" >&6
34745 else
34746   cat >conftest.$ac_ext <<_ACEOF
34747 /* confdefs.h.  */
34748 _ACEOF
34749 cat confdefs.h >>conftest.$ac_ext
34750 cat >>conftest.$ac_ext <<_ACEOF
34751 /* end confdefs.h.  */
34752
34753
34754 #include <GL/glu.h>
34755 _ACEOF
34756 rm -f conftest.$ac_objext
34757 if { (ac_try="$ac_compile"
34758 case "(($ac_try" in
34759   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34760   *) ac_try_echo=$ac_try;;
34761 esac
34762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34763   (eval "$ac_compile") 2>conftest.er1
34764   ac_status=$?
34765   grep -v '^ *+' conftest.er1 >conftest.err
34766   rm -f conftest.er1
34767   cat conftest.err >&5
34768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34769   (exit $ac_status); } && {
34770          test -z "$ac_c_werror_flag" ||
34771          test ! -s conftest.err
34772        } && test -s conftest.$ac_objext; then
34773   ac_cv_header_GL_glu_h=yes
34774 else
34775   echo "$as_me: failed program was:" >&5
34776 sed 's/^/| /' conftest.$ac_ext >&5
34777
34778         ac_cv_header_GL_glu_h=no
34779 fi
34780
34781 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34782 fi
34783 { echo "$as_me:$LINENO: result: $ac_cv_header_GL_glu_h" >&5
34784 echo "${ECHO_T}$ac_cv_header_GL_glu_h" >&6; }
34785 if test $ac_cv_header_GL_glu_h = yes; then
34786
34787                 found_gl=0
34788
34789                 { echo "$as_me:$LINENO: checking for -lGL" >&5
34790 echo $ECHO_N "checking for -lGL... $ECHO_C" >&6; }
34791
34792   ac_find_libraries=
34793   for ac_dir in $SEARCH_LIB /opt/graphics/OpenGL/lib
34794   do
34795     for ac_extension in a so sl dylib dll.a; do
34796       if test -f "$ac_dir/libGL.$ac_extension"; then
34797         ac_find_libraries=$ac_dir
34798         break 2
34799       fi
34800     done
34801   done
34802
34803                 if test "$ac_find_libraries" != "" ; then
34804                     { echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
34805 echo "${ECHO_T}found in $ac_find_libraries" >&6; }
34806
34807
34808     if test "$ac_find_libraries" = "default location"; then
34809     ac_path_to_link=""
34810   else
34811     echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
34812     result=$?
34813     if test $result = 0; then
34814       ac_path_to_link=""
34815     else
34816       ac_path_to_link=" -L$ac_find_libraries"
34817     fi
34818   fi
34819
34820                     if test "$ac_path_to_link" != " -L/usr/lib" ; then
34821                         LDFLAGS_GL="$ac_path_to_link"
34822                     fi
34823
34824                                                                                 { echo "$as_me:$LINENO: checking for -lGLU" >&5
34825 echo $ECHO_N "checking for -lGLU... $ECHO_C" >&6; }
34826
34827   ac_find_libraries=
34828   for ac_dir in $SEARCH_LIB
34829   do
34830     for ac_extension in a so sl dylib dll.a; do
34831       if test -f "$ac_dir/libGLU.$ac_extension"; then
34832         ac_find_libraries=$ac_dir
34833         break 2
34834       fi
34835     done
34836   done
34837
34838                     if test "$ac_find_libraries" != "" ; then
34839
34840     if test "$ac_find_libraries" = "default location"; then
34841     ac_path_to_link=""
34842   else
34843     echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
34844     result=$?
34845     if test $result = 0; then
34846       ac_path_to_link=""
34847     else
34848       ac_path_to_link=" -L$ac_find_libraries"
34849     fi
34850   fi
34851
34852                         if test "$ac_path_to_link" != " -L/usr/lib" -a \
34853                                     "$ac_path_to_link" != "$LDFLAGS_GL"; then
34854                             LDFLAGS_GL="$LDFLAGS_GL$ac_path_to_link"
34855                         fi
34856
34857                         found_gl=1
34858                         OPENGL_LIBS="-lGL -lGLU"
34859                         { echo "$as_me:$LINENO: result: yes" >&5
34860 echo "${ECHO_T}yes" >&6; }
34861                     else
34862                         { echo "$as_me:$LINENO: result: no" >&5
34863 echo "${ECHO_T}no" >&6; }
34864                     fi
34865                 else
34866                     { echo "$as_me:$LINENO: result: no" >&5
34867 echo "${ECHO_T}no" >&6; }
34868                 fi
34869
34870                 if test "$found_gl" != 1; then
34871                     { echo "$as_me:$LINENO: checking for -lMesaGL" >&5
34872 echo $ECHO_N "checking for -lMesaGL... $ECHO_C" >&6; }
34873
34874   ac_find_libraries=
34875   for ac_dir in $SEARCH_LIB
34876   do
34877     for ac_extension in a so sl dylib dll.a; do
34878       if test -f "$ac_dir/libMesaGL.$ac_extension"; then
34879         ac_find_libraries=$ac_dir
34880         break 2
34881       fi
34882     done
34883   done
34884
34885                     if test "$ac_find_libraries" != "" ; then
34886
34887     if test "$ac_find_libraries" = "default location"; then
34888     ac_path_to_link=""
34889   else
34890     echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
34891     result=$?
34892     if test $result = 0; then
34893       ac_path_to_link=""
34894     else
34895       ac_path_to_link=" -L$ac_find_libraries"
34896     fi
34897   fi
34898
34899                         LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
34900                         OPENGL_LIBS="-lMesaGL -lMesaGLU"
34901                         { echo "$as_me:$LINENO: result: yes" >&5
34902 echo "${ECHO_T}yes" >&6; }
34903                     else
34904                         { echo "$as_me:$LINENO: result: no" >&5
34905 echo "${ECHO_T}no" >&6; }
34906                     fi
34907                 fi
34908
34909 fi
34910
34911
34912
34913 fi
34914
34915
34916
34917         if test "x$OPENGL_LIBS" = "x"; then
34918             if test "$wxUSE_OPENGL" = "yes"; then
34919                 { { echo "$as_me:$LINENO: error: OpenGL libraries not available" >&5
34920 echo "$as_me: error: OpenGL libraries not available" >&2;}
34921    { (exit 1); exit 1; }; }
34922             else
34923                                 { echo "$as_me:$LINENO: WARNING: OpenGL libraries not available, disabling support for OpenGL" >&5
34924 echo "$as_me: WARNING: OpenGL libraries not available, disabling support for OpenGL" >&2;}
34925                 wxUSE_OPENGL=no
34926                 USE_OPENGL=0
34927             fi
34928         fi
34929     else
34930         { echo "$as_me:$LINENO: WARNING: wxGLCanvas not implemented for this port, library will be compiled without it." >&5
34931 echo "$as_me: WARNING: wxGLCanvas not implemented for this port, library will be compiled without it." >&2;}
34932         wxUSE_OPENGL="no"
34933     fi
34934
34935     if test "$wxUSE_OPENGL" = "auto"; then
34936                                 wxUSE_OPENGL=yes
34937     fi
34938
34939     if test "$wxUSE_OPENGL" = "yes"; then
34940         USE_OPENGL=1
34941         cat >>confdefs.h <<\_ACEOF
34942 #define wxUSE_OPENGL 1
34943 _ACEOF
34944
34945         cat >>confdefs.h <<\_ACEOF
34946 #define wxUSE_GLCANVAS 1
34947 _ACEOF
34948
34949         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl opengl/cube opengl/penguin opengl/isosurf"
34950     fi
34951 fi
34952
34953
34954 if test -n "$TOOLKIT" ; then
34955     TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__"
34956 fi
34957
34958
34959
34960 if test "$wxUSE_SHARED" = "yes"; then
34961     case "${host}" in
34962       *-pc-msdosdjgpp )
34963                 wxUSE_SHARED=no
34964         { echo "$as_me:$LINENO: WARNING: Host system doesn't support shared libraries, disabling" >&5
34965 echo "$as_me: WARNING: Host system doesn't support shared libraries, disabling" >&2;}
34966       ;;
34967     esac
34968 fi
34969
34970 if test "$wxUSE_SHARED" = "yes"; then
34971
34972
34973     case "${host}" in
34974         *-*-cygwin* | *-*-mingw* )
34975                                                                                                 wx_cv_version_script=no
34976             ;;
34977
34978         *)
34979             { echo "$as_me:$LINENO: checking if the linker accepts --version-script" >&5
34980 echo $ECHO_N "checking if the linker accepts --version-script... $ECHO_C" >&6; }
34981 if test "${wx_cv_version_script+set}" = set; then
34982   echo $ECHO_N "(cached) $ECHO_C" >&6
34983 else
34984
34985                 echo "VER_1 { *; };" >conftest.sym
34986                 echo "int main() { return 0; }" >conftest.cpp
34987
34988                 if { ac_try='
34989                         $CXX -o conftest.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
34990                         -Wl,--version-script,conftest.sym >/dev/null 2>conftest.stderr'
34991   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34992   (eval $ac_try) 2>&5
34993   ac_status=$?
34994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34995   (exit $ac_status); }; } ; then
34996                   if test -s conftest.stderr ; then
34997                       wx_cv_version_script=no
34998                   else
34999                       wx_cv_version_script=yes
35000                   fi
35001                 else
35002                   wx_cv_version_script=no
35003                 fi
35004
35005                                                                                                                                                                                                 if test $wx_cv_version_script = yes
35006                 then
35007                   echo "struct B { virtual ~B() { } }; \
35008                         struct D : public B { }; \
35009                         void F() { D d; }" > conftest.cpp
35010
35011                   if { ac_try='
35012                         $CXX -shared -fPIC -o conftest1.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
35013                         -Wl,--version-script,conftest.sym >/dev/null 2>/dev/null'
35014   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35015   (eval $ac_try) 2>&5
35016   ac_status=$?
35017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35018   (exit $ac_status); }; } &&
35019                      { ac_try='
35020                         $CXX -shared -fPIC -o conftest2.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
35021                         -Wl,--version-script,conftest.sym conftest1.output >/dev/null 2>/dev/null'
35022   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35023   (eval $ac_try) 2>&5
35024   ac_status=$?
35025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35026   (exit $ac_status); }; }
35027                   then
35028                     if { ac_try='
35029                           $CXX -shared -fPIC -o conftest3.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
35030                           -Wl,--version-script,conftest.sym conftest2.output conftest1.output >/dev/null 2>/dev/null'
35031   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35032   (eval $ac_try) 2>&5
35033   ac_status=$?
35034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35035   (exit $ac_status); }; }
35036                     then
35037                       wx_cv_version_script=yes
35038                     else
35039                       wx_cv_version_script=no
35040                     fi
35041                   fi
35042                 fi
35043
35044                 rm -f conftest.output conftest.stderr conftest.sym conftest.cpp
35045                 rm -f conftest1.output conftest2.output conftest3.output
35046
35047 fi
35048 { echo "$as_me:$LINENO: result: $wx_cv_version_script" >&5
35049 echo "${ECHO_T}$wx_cv_version_script" >&6; }
35050
35051             if test $wx_cv_version_script = yes ; then
35052                 LDFLAGS_VERSIONING="-Wl,--version-script,\$(wx_top_builddir)/version-script"
35053             fi
35054             ;;
35055     esac
35056
35057
35058             if test "$wxUSE_VISIBILITY" != "no"; then
35059
35060
35061   if test -n "$GCC"; then
35062     CFLAGS_VISIBILITY="-fvisibility=hidden"
35063     CXXFLAGS_VISIBILITY="-fvisibility=hidden -fvisibility-inlines-hidden"
35064     { echo "$as_me:$LINENO: checking for symbols visibility support" >&5
35065 echo $ECHO_N "checking for symbols visibility support... $ECHO_C" >&6; }
35066     if test "${wx_cv_cc_visibility+set}" = set; then
35067   echo $ECHO_N "(cached) $ECHO_C" >&6
35068 else
35069
35070       wx_save_CXXFLAGS="$CXXFLAGS"
35071       CXXFLAGS="$CXXFLAGS $CXXFLAGS_VISIBILITY"
35072       ac_ext=cpp
35073 ac_cpp='$CXXCPP $CPPFLAGS'
35074 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35075 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35076 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
35077
35078       cat >conftest.$ac_ext <<_ACEOF
35079 /* confdefs.h.  */
35080 _ACEOF
35081 cat confdefs.h >>conftest.$ac_ext
35082 cat >>conftest.$ac_ext <<_ACEOF
35083 /* end confdefs.h.  */
35084
35085          /* we need gcc >= 4.0, older versions with visibility support
35086             didn't have class visibility: */
35087          #if defined(__GNUC__) && __GNUC__ < 4
35088          error this gcc is too old;
35089          #endif
35090
35091          /* visibility only makes sense for ELF shared libs: */
35092          #if !defined(__ELF__) && !defined(__APPLE__)
35093          error this platform has no visibility;
35094          #endif
35095
35096          /* at the time of Xcode 4.1 / Clang 3, Clang++ still didn't have the bugs sorted out: */
35097          #if defined(__clang__)
35098          clang compiler is still broken w.r.t. visibility;
35099          #endif
35100
35101          extern __attribute__((__visibility__("hidden"))) int hiddenvar;
35102          extern __attribute__((__visibility__("default"))) int exportedvar;
35103          extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void);
35104          extern __attribute__((__visibility__("default"))) int exportedfunc (void);
35105          class __attribute__((__visibility__("default"))) Foo {
35106            Foo() {}
35107          };
35108
35109 int
35110 main ()
35111 {
35112
35113   ;
35114   return 0;
35115 }
35116 _ACEOF
35117 rm -f conftest.$ac_objext
35118 if { (ac_try="$ac_compile"
35119 case "(($ac_try" in
35120   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35121   *) ac_try_echo=$ac_try;;
35122 esac
35123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35124   (eval "$ac_compile") 2>conftest.er1
35125   ac_status=$?
35126   grep -v '^ *+' conftest.er1 >conftest.err
35127   rm -f conftest.er1
35128   cat conftest.err >&5
35129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35130   (exit $ac_status); } && {
35131          test -z "$ac_cxx_werror_flag" ||
35132          test ! -s conftest.err
35133        } && test -s conftest.$ac_objext; then
35134   wx_cv_cc_visibility=yes
35135 else
35136   echo "$as_me: failed program was:" >&5
35137 sed 's/^/| /' conftest.$ac_ext >&5
35138
35139         wx_cv_cc_visibility=no
35140 fi
35141
35142 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35143       ac_ext=c
35144 ac_cpp='$CPP $CPPFLAGS'
35145 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35146 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35147 ac_compiler_gnu=$ac_cv_c_compiler_gnu
35148
35149       CXXFLAGS="$wx_save_CXXFLAGS"
35150 fi
35151
35152     { echo "$as_me:$LINENO: result: $wx_cv_cc_visibility" >&5
35153 echo "${ECHO_T}$wx_cv_cc_visibility" >&6; }
35154     if test $wx_cv_cc_visibility = yes; then
35155                               { echo "$as_me:$LINENO: checking for broken libstdc++ visibility" >&5
35156 echo $ECHO_N "checking for broken libstdc++ visibility... $ECHO_C" >&6; }
35157       if test "${wx_cv_cc_broken_libstdcxx_visibility+set}" = set; then
35158   echo $ECHO_N "(cached) $ECHO_C" >&6
35159 else
35160
35161         wx_save_CXXFLAGS="$CXXFLAGS"
35162         wx_save_LDFLAGS="$LDFLAGS"
35163         CXXFLAGS="$CXXFLAGS $CXXFLAGS_VISIBILITY"
35164         LDFLAGS="$LDFLAGS -shared -fPIC"
35165         ac_ext=cpp
35166 ac_cpp='$CXXCPP $CPPFLAGS'
35167 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35168 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35169 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
35170
35171         cat >conftest.$ac_ext <<_ACEOF
35172 /* confdefs.h.  */
35173 _ACEOF
35174 cat confdefs.h >>conftest.$ac_ext
35175 cat >>conftest.$ac_ext <<_ACEOF
35176 /* end confdefs.h.  */
35177
35178             #include <string>
35179
35180 int
35181 main ()
35182 {
35183
35184             std::string s("hello");
35185             return s.length();
35186
35187   ;
35188   return 0;
35189 }
35190 _ACEOF
35191 rm -f conftest.$ac_objext conftest$ac_exeext
35192 if { (ac_try="$ac_link"
35193 case "(($ac_try" in
35194   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35195   *) ac_try_echo=$ac_try;;
35196 esac
35197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35198   (eval "$ac_link") 2>conftest.er1
35199   ac_status=$?
35200   grep -v '^ *+' conftest.er1 >conftest.err
35201   rm -f conftest.er1
35202   cat conftest.err >&5
35203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35204   (exit $ac_status); } && {
35205          test -z "$ac_cxx_werror_flag" ||
35206          test ! -s conftest.err
35207        } && test -s conftest$ac_exeext &&
35208        $as_test_x conftest$ac_exeext; then
35209   wx_cv_cc_broken_libstdcxx_visibility=no
35210 else
35211   echo "$as_me: failed program was:" >&5
35212 sed 's/^/| /' conftest.$ac_ext >&5
35213
35214         wx_cv_cc_broken_libstdcxx_visibility=yes
35215 fi
35216
35217 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35218       conftest$ac_exeext conftest.$ac_ext
35219         ac_ext=c
35220 ac_cpp='$CPP $CPPFLAGS'
35221 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35222 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35223 ac_compiler_gnu=$ac_cv_c_compiler_gnu
35224
35225         CXXFLAGS="$wx_save_CXXFLAGS"
35226         LDFLAGS="$wx_save_LDFLAGS"
35227 fi
35228
35229       { echo "$as_me:$LINENO: result: $wx_cv_cc_broken_libstdcxx_visibility" >&5
35230 echo "${ECHO_T}$wx_cv_cc_broken_libstdcxx_visibility" >&6; }
35231
35232       if test $wx_cv_cc_broken_libstdcxx_visibility = yes; then
35233         { echo "$as_me:$LINENO: checking whether we can work around it" >&5
35234 echo $ECHO_N "checking whether we can work around it... $ECHO_C" >&6; }
35235         if test "${wx_cv_cc_visibility_workaround+set}" = set; then
35236   echo $ECHO_N "(cached) $ECHO_C" >&6
35237 else
35238
35239           ac_ext=cpp
35240 ac_cpp='$CXXCPP $CPPFLAGS'
35241 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35242 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35243 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
35244
35245           cat >conftest.$ac_ext <<_ACEOF
35246 /* confdefs.h.  */
35247 _ACEOF
35248 cat confdefs.h >>conftest.$ac_ext
35249 cat >>conftest.$ac_ext <<_ACEOF
35250 /* end confdefs.h.  */
35251
35252               #pragma GCC visibility push(default)
35253               #include <string>
35254               #pragma GCC visibility pop
35255
35256 int
35257 main ()
35258 {
35259
35260               std::string s("hello");
35261               return s.length();
35262
35263   ;
35264   return 0;
35265 }
35266 _ACEOF
35267 rm -f conftest.$ac_objext conftest$ac_exeext
35268 if { (ac_try="$ac_link"
35269 case "(($ac_try" in
35270   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35271   *) ac_try_echo=$ac_try;;
35272 esac
35273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35274   (eval "$ac_link") 2>conftest.er1
35275   ac_status=$?
35276   grep -v '^ *+' conftest.er1 >conftest.err
35277   rm -f conftest.er1
35278   cat conftest.err >&5
35279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35280   (exit $ac_status); } && {
35281          test -z "$ac_cxx_werror_flag" ||
35282          test ! -s conftest.err
35283        } && test -s conftest$ac_exeext &&
35284        $as_test_x conftest$ac_exeext; then
35285   wx_cv_cc_visibility_workaround=no
35286 else
35287   echo "$as_me: failed program was:" >&5
35288 sed 's/^/| /' conftest.$ac_ext >&5
35289
35290         wx_cv_cc_visibility_workaround=yes
35291 fi
35292
35293 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35294       conftest$ac_exeext conftest.$ac_ext
35295           ac_ext=c
35296 ac_cpp='$CPP $CPPFLAGS'
35297 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35298 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35299 ac_compiler_gnu=$ac_cv_c_compiler_gnu
35300
35301
35302 fi
35303
35304         { echo "$as_me:$LINENO: result: $wx_cv_cc_visibility_workaround" >&5
35305 echo "${ECHO_T}$wx_cv_cc_visibility_workaround" >&6; }
35306
35307         if test $wx_cv_cc_visibility_workaround = no; then
35308                     wx_cv_cc_visibility=no
35309         fi
35310       fi
35311     fi
35312
35313     if test $wx_cv_cc_visibility = yes; then
35314       cat >>confdefs.h <<\_ACEOF
35315 #define HAVE_VISIBILITY 1
35316 _ACEOF
35317
35318       if test $wx_cv_cc_broken_libstdcxx_visibility = yes; then
35319         cat >>confdefs.h <<\_ACEOF
35320 #define HAVE_BROKEN_LIBSTDCXX_VISIBILITY 1
35321 _ACEOF
35322
35323       fi
35324     else
35325       CFLAGS_VISIBILITY=""
35326       CXXFLAGS_VISIBILITY=""
35327     fi
35328
35329
35330   fi
35331
35332     fi
35333
35334         if test "x$SUNCXX" = xyes; then
35335         SAMPLES_RPATH_FLAG="-R\$(wx_top_builddir)/lib"
35336         WXCONFIG_RPATH="-R\$libdir"
35337     else
35338     case "${host}" in
35339       *-*-linux* | *-*-gnu* )
35340         SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(wx_top_builddir)/lib"
35341         WXCONFIG_RPATH="-Wl,-rpath,\$libdir"
35342         ;;
35343
35344       *-*-solaris2* )
35345
35346                         CPPFLAGS="-isystem /usr/openwin/include $CPPFLAGS"
35347
35348                         saveLdflags="$LDFLAGS"
35349         LDFLAGS="$saveLdflags -Wl,-rpath,/"
35350         { echo "$as_me:$LINENO: checking if the linker accepts -rpath" >&5
35351 echo $ECHO_N "checking if the linker accepts -rpath... $ECHO_C" >&6; }
35352         cat >conftest.$ac_ext <<_ACEOF
35353 /* confdefs.h.  */
35354 _ACEOF
35355 cat confdefs.h >>conftest.$ac_ext
35356 cat >>conftest.$ac_ext <<_ACEOF
35357 /* end confdefs.h.  */
35358
35359 int
35360 main ()
35361 {
35362
35363   ;
35364   return 0;
35365 }
35366 _ACEOF
35367 rm -f conftest.$ac_objext conftest$ac_exeext
35368 if { (ac_try="$ac_link"
35369 case "(($ac_try" in
35370   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35371   *) ac_try_echo=$ac_try;;
35372 esac
35373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35374   (eval "$ac_link") 2>conftest.er1
35375   ac_status=$?
35376   grep -v '^ *+' conftest.er1 >conftest.err
35377   rm -f conftest.er1
35378   cat conftest.err >&5
35379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35380   (exit $ac_status); } && {
35381          test -z "$ac_c_werror_flag" ||
35382          test ! -s conftest.err
35383        } && test -s conftest$ac_exeext &&
35384        $as_test_x conftest$ac_exeext; then
35385
35386                 { echo "$as_me:$LINENO: result: yes" >&5
35387 echo "${ECHO_T}yes" >&6; }
35388                 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(wx_top_builddir)/lib"
35389                 WXCONFIG_RPATH="-Wl,-rpath,\$libdir"
35390
35391 else
35392   echo "$as_me: failed program was:" >&5
35393 sed 's/^/| /' conftest.$ac_ext >&5
35394
35395
35396                 { echo "$as_me:$LINENO: result: no" >&5
35397 echo "${ECHO_T}no" >&6; }
35398                 { echo "$as_me:$LINENO: checking if the linker accepts -R" >&5
35399 echo $ECHO_N "checking if the linker accepts -R... $ECHO_C" >&6; }
35400                 LDFLAGS="$saveLdflags -Wl,-R,/"
35401                 cat >conftest.$ac_ext <<_ACEOF
35402 /* confdefs.h.  */
35403 _ACEOF
35404 cat confdefs.h >>conftest.$ac_ext
35405 cat >>conftest.$ac_ext <<_ACEOF
35406 /* end confdefs.h.  */
35407
35408 int
35409 main ()
35410 {
35411
35412   ;
35413   return 0;
35414 }
35415 _ACEOF
35416 rm -f conftest.$ac_objext conftest$ac_exeext
35417 if { (ac_try="$ac_link"
35418 case "(($ac_try" in
35419   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35420   *) ac_try_echo=$ac_try;;
35421 esac
35422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35423   (eval "$ac_link") 2>conftest.er1
35424   ac_status=$?
35425   grep -v '^ *+' conftest.er1 >conftest.err
35426   rm -f conftest.er1
35427   cat conftest.err >&5
35428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35429   (exit $ac_status); } && {
35430          test -z "$ac_c_werror_flag" ||
35431          test ! -s conftest.err
35432        } && test -s conftest$ac_exeext &&
35433        $as_test_x conftest$ac_exeext; then
35434
35435                         { echo "$as_me:$LINENO: result: yes" >&5
35436 echo "${ECHO_T}yes" >&6; }
35437                         SAMPLES_RPATH_FLAG="-Wl,-R,\$(wx_top_builddir)/lib"
35438                         WXCONFIG_RPATH="-Wl,-R,\$libdir"
35439
35440 else
35441   echo "$as_me: failed program was:" >&5
35442 sed 's/^/| /' conftest.$ac_ext >&5
35443
35444
35445                         { echo "$as_me:$LINENO: result: no" >&5
35446 echo "${ECHO_T}no" >&6; }
35447
35448 fi
35449
35450 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35451       conftest$ac_exeext conftest.$ac_ext
35452
35453 fi
35454
35455 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35456       conftest$ac_exeext conftest.$ac_ext
35457         LDFLAGS="$saveLdflags"
35458       ;;
35459
35460       *-*-darwin* )
35461         install_name_tool=`which ${HOST_PREFIX}install_name_tool`
35462         if test "$install_name_tool" -a -x "$install_name_tool"; then
35463             DYLIB_RPATH_POSTLINK="${HOST_PREFIX}install_name_tool -id \$@ \$@"
35464             cat <<EOF >change-install-names
35465 #!/bin/sh
35466 libnames=\`cd \${2} ; ls -1 | grep '\.[0-9][0-9]*\.dylib\$'\`
35467 for i in \${libnames} ; do
35468     ${HOST_PREFIX}install_name_tool -id \${3}/\${i} \${1}/\${i}
35469     for dep in \${libnames} ; do
35470         ${HOST_PREFIX}install_name_tool -change \${2}/\${dep} \${3}/\${dep} \${1}/\${i}
35471     done
35472 done
35473 EOF
35474             chmod +x change-install-names
35475             DYLIB_RPATH_INSTALL="\$(wx_top_builddir)/change-install-names \${DESTDIR}\${libdir} \$(wx_top_builddir)/lib \${libdir}"
35476         fi
35477
35478                                         HEADER_PAD_OPTION="-headerpad_max_install_names"
35479       ;;
35480
35481       *-*-cygwin* | *-*-mingw32* )
35482         ;;
35483
35484       *-*-hpux* )
35485         SAMPLES_RPATH_FLAG="-Wl,+b,\$(wx_top_builddir)/lib"
35486         WXCONFIG_RPATH="-Wl,+b,\$libdir"
35487         ;;
35488
35489     esac
35490     fi
35491
35492             WXCONFIG_ONLY_CPPFLAGS="$WXCONFIG_ONLY_CPPFLAGS -DWXUSINGDLL"
35493
35494     if test $wxUSE_RPATH = "no"; then
35495         SAMPLES_RPATH_FLAG=''
35496         DYLIB_PATH_POSTLINK=''
35497         WXCONFIG_RPATH=''
35498     fi
35499
35500     SHARED=1
35501
35502 else
35503
35504     config_linkage_component="-static"
35505     SHARED=0
35506
35507 fi
35508
35509
35510 UNICODE=0
35511 lib_unicode_suffix=
35512 WX_CHARTYPE="ansi"
35513 if test "$wxUSE_UNICODE" = "yes"; then
35514     lib_unicode_suffix=u
35515     WX_CHARTYPE="unicode"
35516     UNICODE=1
35517 fi
35518
35519 WX_FLAVOUR=${WX_FLAVOUR:+-$WX_FLAVOUR}
35520 WX_LIB_FLAVOUR=`echo $WX_FLAVOUR | tr '-' '_'`
35521
35522 DEBUG_INFO=0
35523 if test "$wxUSE_DEBUG_INFO" = "yes"; then
35524     DEBUG_INFO=1
35525 fi
35526
35527 WX_VERSION_TAG=`echo WX${lib_unicode_suffix}${WX_LIB_FLAVOUR}_${WX_RELEASE} | tr '[a-z]' '[A-Z]'`
35528
35529 TOOLCHAIN_NAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}${HOST_SUFFIX}"
35530
35531 TOOLCHAIN_FULLNAME="${HOST_PREFIX}${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}-${WX_CHARTYPE}${config_linkage_component}-${WX_RELEASE}${WX_FLAVOUR}"
35532
35533
35534 if test "$wxUSE_OSX_CARBON" = 1 -o "$wxUSE_OSX_COCOA" = 1 -o "$wxUSE_OLD_COCOA" = 1; then
35535     WX_LIBRARY_BASENAME_NOGUI="wx_base${lib_unicode_suffix}${WX_LIB_FLAVOUR}"
35536 else
35537     WX_LIBRARY_BASENAME_NOGUI="wx_base${WXBASEPORT}${lib_unicode_suffix}${WX_LIB_FLAVOUR}"
35538 fi
35539 if test "${TOOLKIT_DIR}" = "os2"; then
35540     WX_LIBRARY_BASENAME_GUI="wx_pm${WIDGET_SET}${lib_unicode_suffix}${WX_LIB_FLAVOUR}"
35541 else
35542     WX_LIBRARY_BASENAME_GUI="wx_${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${WX_LIB_FLAVOUR}"
35543 fi
35544
35545
35546
35547 if test "$wxUSE_OLD_COCOA" = 1; then
35548
35549     ac_ext=c
35550 ac_cpp='$CPP $CPPFLAGS'
35551 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35552 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35553 ac_compiler_gnu=$ac_cv_c_compiler_gnu
35554
35555 ac_ext=m
35556
35557     { echo "$as_me:$LINENO: checking if AppKit/NSEvent.h conflicts with CoreFoundation" >&5
35558 echo $ECHO_N "checking if AppKit/NSEvent.h conflicts with CoreFoundation... $ECHO_C" >&6; }
35559     cat >conftest.$ac_ext <<_ACEOF
35560 /* confdefs.h.  */
35561 _ACEOF
35562 cat confdefs.h >>conftest.$ac_ext
35563 cat >>conftest.$ac_ext <<_ACEOF
35564 /* end confdefs.h.  */
35565 #include <AppKit/NSEvent.h>
35566 #include <CoreFoundation/CoreFoundation.h>
35567
35568 int
35569 main ()
35570 {
35571
35572   ;
35573   return 0;
35574 }
35575 _ACEOF
35576 rm -f conftest.$ac_objext
35577 if { (ac_try="$ac_compile"
35578 case "(($ac_try" in
35579   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35580   *) ac_try_echo=$ac_try;;
35581 esac
35582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35583   (eval "$ac_compile") 2>conftest.er1
35584   ac_status=$?
35585   grep -v '^ *+' conftest.er1 >conftest.err
35586   rm -f conftest.er1
35587   cat conftest.err >&5
35588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35589   (exit $ac_status); } && {
35590          test -z "$ac_c_werror_flag" ||
35591          test ! -s conftest.err
35592        } && test -s conftest.$ac_objext; then
35593   { echo "$as_me:$LINENO: result: no" >&5
35594 echo "${ECHO_T}no" >&6; }
35595 else
35596   echo "$as_me: failed program was:" >&5
35597 sed 's/^/| /' conftest.$ac_ext >&5
35598
35599         { echo "$as_me:$LINENO: result: yes" >&5
35600 echo "${ECHO_T}yes" >&6; }
35601         { echo "$as_me:$LINENO: checking if defining __Point__ will fix it" >&5
35602 echo $ECHO_N "checking if defining __Point__ will fix it... $ECHO_C" >&6; }
35603         cat >conftest.$ac_ext <<_ACEOF
35604 /* confdefs.h.  */
35605 _ACEOF
35606 cat confdefs.h >>conftest.$ac_ext
35607 cat >>conftest.$ac_ext <<_ACEOF
35608 /* end confdefs.h.  */
35609 #define __Point__ 1
35610 #include <AppKit/NSEvent.h>
35611 #include <CoreFoundation/CoreFoundation.h>
35612
35613 int
35614 main ()
35615 {
35616
35617   ;
35618   return 0;
35619 }
35620 _ACEOF
35621 rm -f conftest.$ac_objext
35622 if { (ac_try="$ac_compile"
35623 case "(($ac_try" in
35624   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35625   *) ac_try_echo=$ac_try;;
35626 esac
35627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35628   (eval "$ac_compile") 2>conftest.er1
35629   ac_status=$?
35630   grep -v '^ *+' conftest.er1 >conftest.err
35631   rm -f conftest.er1
35632   cat conftest.err >&5
35633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35634   (exit $ac_status); } && {
35635          test -z "$ac_c_werror_flag" ||
35636          test ! -s conftest.err
35637        } && test -s conftest.$ac_objext; then
35638   { echo "$as_me:$LINENO: result: yes" >&5
35639 echo "${ECHO_T}yes" >&6; }
35640             cat >>confdefs.h <<\_ACEOF
35641 #define __Point__ 1
35642 _ACEOF
35643
35644
35645 else
35646   echo "$as_me: failed program was:" >&5
35647 sed 's/^/| /' conftest.$ac_ext >&5
35648
35649         { { echo "$as_me:$LINENO: error: no
35650 See \`config.log' for more details." >&5
35651 echo "$as_me: error: no
35652 See \`config.log' for more details." >&2;}
35653    { (exit 1); exit 1; }; }
35654
35655 fi
35656
35657 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35658
35659 fi
35660
35661 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35662     ac_ext=c
35663 ac_cpp='$CPP $CPPFLAGS'
35664 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35665 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35666 ac_compiler_gnu=$ac_cv_c_compiler_gnu
35667
35668 fi
35669
35670
35671 { echo "$as_me:$LINENO: checking for mode_t" >&5
35672 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
35673 if test "${ac_cv_type_mode_t+set}" = set; then
35674   echo $ECHO_N "(cached) $ECHO_C" >&6
35675 else
35676   cat >conftest.$ac_ext <<_ACEOF
35677 /* confdefs.h.  */
35678 _ACEOF
35679 cat confdefs.h >>conftest.$ac_ext
35680 cat >>conftest.$ac_ext <<_ACEOF
35681 /* end confdefs.h.  */
35682 $ac_includes_default
35683 typedef mode_t ac__type_new_;
35684 int
35685 main ()
35686 {
35687 if ((ac__type_new_ *) 0)
35688   return 0;
35689 if (sizeof (ac__type_new_))
35690   return 0;
35691   ;
35692   return 0;
35693 }
35694 _ACEOF
35695 rm -f conftest.$ac_objext
35696 if { (ac_try="$ac_compile"
35697 case "(($ac_try" in
35698   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35699   *) ac_try_echo=$ac_try;;
35700 esac
35701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35702   (eval "$ac_compile") 2>conftest.er1
35703   ac_status=$?
35704   grep -v '^ *+' conftest.er1 >conftest.err
35705   rm -f conftest.er1
35706   cat conftest.err >&5
35707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35708   (exit $ac_status); } && {
35709          test -z "$ac_c_werror_flag" ||
35710          test ! -s conftest.err
35711        } && test -s conftest.$ac_objext; then
35712   ac_cv_type_mode_t=yes
35713 else
35714   echo "$as_me: failed program was:" >&5
35715 sed 's/^/| /' conftest.$ac_ext >&5
35716
35717         ac_cv_type_mode_t=no
35718 fi
35719
35720 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35721 fi
35722 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
35723 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
35724 if test $ac_cv_type_mode_t = yes; then
35725   :
35726 else
35727
35728 cat >>confdefs.h <<_ACEOF
35729 #define mode_t int
35730 _ACEOF
35731
35732 fi
35733
35734 { echo "$as_me:$LINENO: checking for off_t" >&5
35735 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
35736 if test "${ac_cv_type_off_t+set}" = set; then
35737   echo $ECHO_N "(cached) $ECHO_C" >&6
35738 else
35739   cat >conftest.$ac_ext <<_ACEOF
35740 /* confdefs.h.  */
35741 _ACEOF
35742 cat confdefs.h >>conftest.$ac_ext
35743 cat >>conftest.$ac_ext <<_ACEOF
35744 /* end confdefs.h.  */
35745 $ac_includes_default
35746 typedef off_t ac__type_new_;
35747 int
35748 main ()
35749 {
35750 if ((ac__type_new_ *) 0)
35751   return 0;
35752 if (sizeof (ac__type_new_))
35753   return 0;
35754   ;
35755   return 0;
35756 }
35757 _ACEOF
35758 rm -f conftest.$ac_objext
35759 if { (ac_try="$ac_compile"
35760 case "(($ac_try" in
35761   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35762   *) ac_try_echo=$ac_try;;
35763 esac
35764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35765   (eval "$ac_compile") 2>conftest.er1
35766   ac_status=$?
35767   grep -v '^ *+' conftest.er1 >conftest.err
35768   rm -f conftest.er1
35769   cat conftest.err >&5
35770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35771   (exit $ac_status); } && {
35772          test -z "$ac_c_werror_flag" ||
35773          test ! -s conftest.err
35774        } && test -s conftest.$ac_objext; then
35775   ac_cv_type_off_t=yes
35776 else
35777   echo "$as_me: failed program was:" >&5
35778 sed 's/^/| /' conftest.$ac_ext >&5
35779
35780         ac_cv_type_off_t=no
35781 fi
35782
35783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35784 fi
35785 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
35786 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
35787 if test $ac_cv_type_off_t = yes; then
35788   :
35789 else
35790
35791 cat >>confdefs.h <<_ACEOF
35792 #define off_t long int
35793 _ACEOF
35794
35795 fi
35796
35797 { echo "$as_me:$LINENO: checking for pid_t" >&5
35798 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
35799 if test "${ac_cv_type_pid_t+set}" = set; then
35800   echo $ECHO_N "(cached) $ECHO_C" >&6
35801 else
35802   cat >conftest.$ac_ext <<_ACEOF
35803 /* confdefs.h.  */
35804 _ACEOF
35805 cat confdefs.h >>conftest.$ac_ext
35806 cat >>conftest.$ac_ext <<_ACEOF
35807 /* end confdefs.h.  */
35808 $ac_includes_default
35809 typedef pid_t ac__type_new_;
35810 int
35811 main ()
35812 {
35813 if ((ac__type_new_ *) 0)
35814   return 0;
35815 if (sizeof (ac__type_new_))
35816   return 0;
35817   ;
35818   return 0;
35819 }
35820 _ACEOF
35821 rm -f conftest.$ac_objext
35822 if { (ac_try="$ac_compile"
35823 case "(($ac_try" in
35824   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35825   *) ac_try_echo=$ac_try;;
35826 esac
35827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35828   (eval "$ac_compile") 2>conftest.er1
35829   ac_status=$?
35830   grep -v '^ *+' conftest.er1 >conftest.err
35831   rm -f conftest.er1
35832   cat conftest.err >&5
35833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35834   (exit $ac_status); } && {
35835          test -z "$ac_c_werror_flag" ||
35836          test ! -s conftest.err
35837        } && test -s conftest.$ac_objext; then
35838   ac_cv_type_pid_t=yes
35839 else
35840   echo "$as_me: failed program was:" >&5
35841 sed 's/^/| /' conftest.$ac_ext >&5
35842
35843         ac_cv_type_pid_t=no
35844 fi
35845
35846 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35847 fi
35848 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
35849 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
35850 if test $ac_cv_type_pid_t = yes; then
35851   :
35852 else
35853
35854 cat >>confdefs.h <<_ACEOF
35855 #define pid_t int
35856 _ACEOF
35857
35858 fi
35859
35860 { echo "$as_me:$LINENO: checking for size_t" >&5
35861 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
35862 if test "${ac_cv_type_size_t+set}" = set; then
35863   echo $ECHO_N "(cached) $ECHO_C" >&6
35864 else
35865   cat >conftest.$ac_ext <<_ACEOF
35866 /* confdefs.h.  */
35867 _ACEOF
35868 cat confdefs.h >>conftest.$ac_ext
35869 cat >>conftest.$ac_ext <<_ACEOF
35870 /* end confdefs.h.  */
35871 $ac_includes_default
35872 typedef size_t ac__type_new_;
35873 int
35874 main ()
35875 {
35876 if ((ac__type_new_ *) 0)
35877   return 0;
35878 if (sizeof (ac__type_new_))
35879   return 0;
35880   ;
35881   return 0;
35882 }
35883 _ACEOF
35884 rm -f conftest.$ac_objext
35885 if { (ac_try="$ac_compile"
35886 case "(($ac_try" in
35887   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35888   *) ac_try_echo=$ac_try;;
35889 esac
35890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35891   (eval "$ac_compile") 2>conftest.er1
35892   ac_status=$?
35893   grep -v '^ *+' conftest.er1 >conftest.err
35894   rm -f conftest.er1
35895   cat conftest.err >&5
35896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35897   (exit $ac_status); } && {
35898          test -z "$ac_c_werror_flag" ||
35899          test ! -s conftest.err
35900        } && test -s conftest.$ac_objext; then
35901   ac_cv_type_size_t=yes
35902 else
35903   echo "$as_me: failed program was:" >&5
35904 sed 's/^/| /' conftest.$ac_ext >&5
35905
35906         ac_cv_type_size_t=no
35907 fi
35908
35909 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35910 fi
35911 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
35912 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
35913 if test $ac_cv_type_size_t = yes; then
35914   :
35915 else
35916
35917 cat >>confdefs.h <<_ACEOF
35918 #define size_t unsigned int
35919 _ACEOF
35920
35921 fi
35922
35923
35924 { echo "$as_me:$LINENO: checking for ssize_t" >&5
35925 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
35926 if test "${ac_cv_type_ssize_t+set}" = set; then
35927   echo $ECHO_N "(cached) $ECHO_C" >&6
35928 else
35929   cat >conftest.$ac_ext <<_ACEOF
35930 /* confdefs.h.  */
35931 _ACEOF
35932 cat confdefs.h >>conftest.$ac_ext
35933 cat >>conftest.$ac_ext <<_ACEOF
35934 /* end confdefs.h.  */
35935 $ac_includes_default
35936 typedef ssize_t ac__type_new_;
35937 int
35938 main ()
35939 {
35940 if ((ac__type_new_ *) 0)
35941   return 0;
35942 if (sizeof (ac__type_new_))
35943   return 0;
35944   ;
35945   return 0;
35946 }
35947 _ACEOF
35948 rm -f conftest.$ac_objext
35949 if { (ac_try="$ac_compile"
35950 case "(($ac_try" in
35951   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35952   *) ac_try_echo=$ac_try;;
35953 esac
35954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35955   (eval "$ac_compile") 2>conftest.er1
35956   ac_status=$?
35957   grep -v '^ *+' conftest.er1 >conftest.err
35958   rm -f conftest.er1
35959   cat conftest.err >&5
35960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35961   (exit $ac_status); } && {
35962          test -z "$ac_c_werror_flag" ||
35963          test ! -s conftest.err
35964        } && test -s conftest.$ac_objext; then
35965   ac_cv_type_ssize_t=yes
35966 else
35967   echo "$as_me: failed program was:" >&5
35968 sed 's/^/| /' conftest.$ac_ext >&5
35969
35970         ac_cv_type_ssize_t=no
35971 fi
35972
35973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35974 fi
35975 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
35976 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
35977 if test $ac_cv_type_ssize_t = yes; then
35978
35979 cat >>confdefs.h <<_ACEOF
35980 #define HAVE_SSIZE_T 1
35981 _ACEOF
35982
35983
35984 fi
35985
35986
35987 ac_ext=cpp
35988 ac_cpp='$CXXCPP $CPPFLAGS'
35989 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35990 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35991 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
35992  { echo "$as_me:$LINENO: checking if size_t is unsigned int" >&5
35993 echo $ECHO_N "checking if size_t is unsigned int... $ECHO_C" >&6; }
35994 if test "${wx_cv_size_t_is_uint+set}" = set; then
35995   echo $ECHO_N "(cached) $ECHO_C" >&6
35996 else
35997
35998                             cat >conftest.$ac_ext <<_ACEOF
35999 /* confdefs.h.  */
36000 _ACEOF
36001 cat confdefs.h >>conftest.$ac_ext
36002 cat >>conftest.$ac_ext <<_ACEOF
36003 /* end confdefs.h.  */
36004 #include <stddef.h>
36005 int
36006 main ()
36007 {
36008
36009             return 0; }
36010
36011             struct Foo { void foo(size_t); void foo(unsigned int); };
36012
36013             int bar() {
36014
36015   ;
36016   return 0;
36017 }
36018 _ACEOF
36019 rm -f conftest.$ac_objext
36020 if { (ac_try="$ac_compile"
36021 case "(($ac_try" in
36022   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36023   *) ac_try_echo=$ac_try;;
36024 esac
36025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36026   (eval "$ac_compile") 2>conftest.er1
36027   ac_status=$?
36028   grep -v '^ *+' conftest.er1 >conftest.err
36029   rm -f conftest.er1
36030   cat conftest.err >&5
36031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36032   (exit $ac_status); } && {
36033          test -z "$ac_cxx_werror_flag" ||
36034          test ! -s conftest.err
36035        } && test -s conftest.$ac_objext; then
36036   wx_cv_size_t_is_uint=no
36037 else
36038   echo "$as_me: failed program was:" >&5
36039 sed 's/^/| /' conftest.$ac_ext >&5
36040
36041         wx_cv_size_t_is_uint=yes
36042
36043 fi
36044
36045 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36046
36047
36048 fi
36049 { echo "$as_me:$LINENO: result: $wx_cv_size_t_is_uint" >&5
36050 echo "${ECHO_T}$wx_cv_size_t_is_uint" >&6; }
36051
36052 if test "$wx_cv_size_t_is_uint" = "yes"; then
36053     cat >>confdefs.h <<\_ACEOF
36054 #define wxSIZE_T_IS_UINT 1
36055 _ACEOF
36056
36057 else
36058     { echo "$as_me:$LINENO: checking if size_t is unsigned long" >&5
36059 echo $ECHO_N "checking if size_t is unsigned long... $ECHO_C" >&6; }
36060 if test "${wx_cv_size_t_is_ulong+set}" = set; then
36061   echo $ECHO_N "(cached) $ECHO_C" >&6
36062 else
36063   cat >conftest.$ac_ext <<_ACEOF
36064 /* confdefs.h.  */
36065 _ACEOF
36066 cat confdefs.h >>conftest.$ac_ext
36067 cat >>conftest.$ac_ext <<_ACEOF
36068 /* end confdefs.h.  */
36069 #include <stddef.h>
36070 int
36071 main ()
36072 {
36073
36074                 return 0; }
36075
36076                 struct Foo { void foo(size_t); void foo(unsigned long); };
36077
36078                 int bar() {
36079
36080   ;
36081   return 0;
36082 }
36083 _ACEOF
36084 rm -f conftest.$ac_objext
36085 if { (ac_try="$ac_compile"
36086 case "(($ac_try" in
36087   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36088   *) ac_try_echo=$ac_try;;
36089 esac
36090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36091   (eval "$ac_compile") 2>conftest.er1
36092   ac_status=$?
36093   grep -v '^ *+' conftest.er1 >conftest.err
36094   rm -f conftest.er1
36095   cat conftest.err >&5
36096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36097   (exit $ac_status); } && {
36098          test -z "$ac_cxx_werror_flag" ||
36099          test ! -s conftest.err
36100        } && test -s conftest.$ac_objext; then
36101   wx_cv_size_t_is_ulong=no
36102 else
36103   echo "$as_me: failed program was:" >&5
36104 sed 's/^/| /' conftest.$ac_ext >&5
36105
36106         wx_cv_size_t_is_ulong=yes
36107
36108 fi
36109
36110 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36111
36112 fi
36113 { echo "$as_me:$LINENO: result: $wx_cv_size_t_is_ulong" >&5
36114 echo "${ECHO_T}$wx_cv_size_t_is_ulong" >&6; }
36115
36116     if test "$wx_cv_size_t_is_ulong" = "yes"; then
36117         cat >>confdefs.h <<\_ACEOF
36118 #define wxSIZE_T_IS_ULONG 1
36119 _ACEOF
36120
36121     fi
36122 fi
36123
36124 { echo "$as_me:$LINENO: checking if wchar_t is separate type" >&5
36125 echo $ECHO_N "checking if wchar_t is separate type... $ECHO_C" >&6; }
36126 if test "${wx_cv_wchar_t_is_separate_type+set}" = set; then
36127   echo $ECHO_N "(cached) $ECHO_C" >&6
36128 else
36129   cat >conftest.$ac_ext <<_ACEOF
36130 /* confdefs.h.  */
36131 _ACEOF
36132 cat confdefs.h >>conftest.$ac_ext
36133 cat >>conftest.$ac_ext <<_ACEOF
36134 /* end confdefs.h.  */
36135 #include <wchar.h>
36136 int
36137 main ()
36138 {
36139
36140             return 0; }
36141
36142             struct Foo { void foo(wchar_t);
36143                          void foo(unsigned short);
36144                          void foo(unsigned int);
36145                          void foo(unsigned long); };
36146
36147             int bar() {
36148
36149   ;
36150   return 0;
36151 }
36152 _ACEOF
36153 rm -f conftest.$ac_objext
36154 if { (ac_try="$ac_compile"
36155 case "(($ac_try" in
36156   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36157   *) ac_try_echo=$ac_try;;
36158 esac
36159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36160   (eval "$ac_compile") 2>conftest.er1
36161   ac_status=$?
36162   grep -v '^ *+' conftest.er1 >conftest.err
36163   rm -f conftest.er1
36164   cat conftest.err >&5
36165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36166   (exit $ac_status); } && {
36167          test -z "$ac_cxx_werror_flag" ||
36168          test ! -s conftest.err
36169        } && test -s conftest.$ac_objext; then
36170   wx_cv_wchar_t_is_separate_type=yes
36171 else
36172   echo "$as_me: failed program was:" >&5
36173 sed 's/^/| /' conftest.$ac_ext >&5
36174
36175         wx_cv_wchar_t_is_separate_type=no
36176
36177 fi
36178
36179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36180
36181 fi
36182 { echo "$as_me:$LINENO: result: $wx_cv_wchar_t_is_separate_type" >&5
36183 echo "${ECHO_T}$wx_cv_wchar_t_is_separate_type" >&6; }
36184
36185 if test "$wx_cv_wchar_t_is_separate_type" = "yes"; then
36186     cat >>confdefs.h <<\_ACEOF
36187 #define wxWCHAR_T_IS_REAL_TYPE 1
36188 _ACEOF
36189
36190 else
36191     cat >>confdefs.h <<\_ACEOF
36192 #define wxWCHAR_T_IS_REAL_TYPE 0
36193 _ACEOF
36194
36195 fi
36196
36197 ac_ext=c
36198 ac_cpp='$CPP $CPPFLAGS'
36199 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36200 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36201 ac_compiler_gnu=$ac_cv_c_compiler_gnu
36202
36203
36204 { echo "$as_me:$LINENO: checking for pw_gecos in struct passwd" >&5
36205 echo $ECHO_N "checking for pw_gecos in struct passwd... $ECHO_C" >&6; }
36206 if test "${wx_cv_struct_pw_gecos+set}" = set; then
36207   echo $ECHO_N "(cached) $ECHO_C" >&6
36208 else
36209
36210         cat >conftest.$ac_ext <<_ACEOF
36211 /* confdefs.h.  */
36212 _ACEOF
36213 cat confdefs.h >>conftest.$ac_ext
36214 cat >>conftest.$ac_ext <<_ACEOF
36215 /* end confdefs.h.  */
36216 #include <pwd.h>
36217 int
36218 main ()
36219 {
36220
36221                 char *p;
36222                 struct passwd *pw;
36223                 p = pw->pw_gecos;
36224
36225   ;
36226   return 0;
36227 }
36228 _ACEOF
36229 rm -f conftest.$ac_objext
36230 if { (ac_try="$ac_compile"
36231 case "(($ac_try" in
36232   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36233   *) ac_try_echo=$ac_try;;
36234 esac
36235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36236   (eval "$ac_compile") 2>conftest.er1
36237   ac_status=$?
36238   grep -v '^ *+' conftest.er1 >conftest.err
36239   rm -f conftest.er1
36240   cat conftest.err >&5
36241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36242   (exit $ac_status); } && {
36243          test -z "$ac_c_werror_flag" ||
36244          test ! -s conftest.err
36245        } && test -s conftest.$ac_objext; then
36246
36247                 wx_cv_struct_pw_gecos=yes
36248
36249 else
36250   echo "$as_me: failed program was:" >&5
36251 sed 's/^/| /' conftest.$ac_ext >&5
36252
36253
36254                 wx_cv_struct_pw_gecos=no
36255
36256
36257 fi
36258
36259 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36260
36261
36262 fi
36263 { echo "$as_me:$LINENO: result: $wx_cv_struct_pw_gecos" >&5
36264 echo "${ECHO_T}$wx_cv_struct_pw_gecos" >&6; }
36265
36266 if test "$wx_cv_struct_pw_gecos" = "yes"; then
36267     cat >>confdefs.h <<\_ACEOF
36268 #define HAVE_PW_GECOS 1
36269 _ACEOF
36270
36271 fi
36272
36273
36274 WCSLEN_FOUND=0
36275 WCHAR_LINK=
36276
36277 for ac_func in wcslen
36278 do
36279 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36280 { echo "$as_me:$LINENO: checking for $ac_func" >&5
36281 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
36282 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
36283   echo $ECHO_N "(cached) $ECHO_C" >&6
36284 else
36285   cat >conftest.$ac_ext <<_ACEOF
36286 /* confdefs.h.  */
36287 _ACEOF
36288 cat confdefs.h >>conftest.$ac_ext
36289 cat >>conftest.$ac_ext <<_ACEOF
36290 /* end confdefs.h.  */
36291 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36292    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36293 #define $ac_func innocuous_$ac_func
36294
36295 /* System header to define __stub macros and hopefully few prototypes,
36296     which can conflict with char $ac_func (); below.
36297     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36298     <limits.h> exists even on freestanding compilers.  */
36299
36300 #ifdef __STDC__
36301 # include <limits.h>
36302 #else
36303 # include <assert.h>
36304 #endif
36305
36306 #undef $ac_func
36307
36308 /* Override any GCC internal prototype to avoid an error.
36309    Use char because int might match the return type of a GCC
36310    builtin and then its argument prototype would still apply.  */
36311 #ifdef __cplusplus
36312 extern "C"
36313 #endif
36314 char $ac_func ();
36315 /* The GNU C library defines this for functions which it implements
36316     to always fail with ENOSYS.  Some functions are actually named
36317     something starting with __ and the normal name is an alias.  */
36318 #if defined __stub_$ac_func || defined __stub___$ac_func
36319 choke me
36320 #endif
36321
36322 int
36323 main ()
36324 {
36325 return $ac_func ();
36326   ;
36327   return 0;
36328 }
36329 _ACEOF
36330 rm -f conftest.$ac_objext conftest$ac_exeext
36331 if { (ac_try="$ac_link"
36332 case "(($ac_try" in
36333   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36334   *) ac_try_echo=$ac_try;;
36335 esac
36336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36337   (eval "$ac_link") 2>conftest.er1
36338   ac_status=$?
36339   grep -v '^ *+' conftest.er1 >conftest.err
36340   rm -f conftest.er1
36341   cat conftest.err >&5
36342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36343   (exit $ac_status); } && {
36344          test -z "$ac_c_werror_flag" ||
36345          test ! -s conftest.err
36346        } && test -s conftest$ac_exeext &&
36347        $as_test_x conftest$ac_exeext; then
36348   eval "$as_ac_var=yes"
36349 else
36350   echo "$as_me: failed program was:" >&5
36351 sed 's/^/| /' conftest.$ac_ext >&5
36352
36353         eval "$as_ac_var=no"
36354 fi
36355
36356 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36357       conftest$ac_exeext conftest.$ac_ext
36358 fi
36359 ac_res=`eval echo '${'$as_ac_var'}'`
36360                { echo "$as_me:$LINENO: result: $ac_res" >&5
36361 echo "${ECHO_T}$ac_res" >&6; }
36362 if test `eval echo '${'$as_ac_var'}'` = yes; then
36363   cat >>confdefs.h <<_ACEOF
36364 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36365 _ACEOF
36366  WCSLEN_FOUND=1
36367 fi
36368 done
36369
36370
36371 if test "$WCSLEN_FOUND" = 0; then
36372     if test "$TOOLKIT" = "MSW"; then
36373         { echo "$as_me:$LINENO: checking for wcslen in -lmsvcrt" >&5
36374 echo $ECHO_N "checking for wcslen in -lmsvcrt... $ECHO_C" >&6; }
36375 if test "${ac_cv_lib_msvcrt_wcslen+set}" = set; then
36376   echo $ECHO_N "(cached) $ECHO_C" >&6
36377 else
36378   ac_check_lib_save_LIBS=$LIBS
36379 LIBS="-lmsvcrt  $LIBS"
36380 cat >conftest.$ac_ext <<_ACEOF
36381 /* confdefs.h.  */
36382 _ACEOF
36383 cat confdefs.h >>conftest.$ac_ext
36384 cat >>conftest.$ac_ext <<_ACEOF
36385 /* end confdefs.h.  */
36386
36387 /* Override any GCC internal prototype to avoid an error.
36388    Use char because int might match the return type of a GCC
36389    builtin and then its argument prototype would still apply.  */
36390 #ifdef __cplusplus
36391 extern "C"
36392 #endif
36393 char wcslen ();
36394 int
36395 main ()
36396 {
36397 return wcslen ();
36398   ;
36399   return 0;
36400 }
36401 _ACEOF
36402 rm -f conftest.$ac_objext conftest$ac_exeext
36403 if { (ac_try="$ac_link"
36404 case "(($ac_try" in
36405   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36406   *) ac_try_echo=$ac_try;;
36407 esac
36408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36409   (eval "$ac_link") 2>conftest.er1
36410   ac_status=$?
36411   grep -v '^ *+' conftest.er1 >conftest.err
36412   rm -f conftest.er1
36413   cat conftest.err >&5
36414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36415   (exit $ac_status); } && {
36416          test -z "$ac_c_werror_flag" ||
36417          test ! -s conftest.err
36418        } && test -s conftest$ac_exeext &&
36419        $as_test_x conftest$ac_exeext; then
36420   ac_cv_lib_msvcrt_wcslen=yes
36421 else
36422   echo "$as_me: failed program was:" >&5
36423 sed 's/^/| /' conftest.$ac_ext >&5
36424
36425         ac_cv_lib_msvcrt_wcslen=no
36426 fi
36427
36428 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36429       conftest$ac_exeext conftest.$ac_ext
36430 LIBS=$ac_check_lib_save_LIBS
36431 fi
36432 { echo "$as_me:$LINENO: result: $ac_cv_lib_msvcrt_wcslen" >&5
36433 echo "${ECHO_T}$ac_cv_lib_msvcrt_wcslen" >&6; }
36434 if test $ac_cv_lib_msvcrt_wcslen = yes; then
36435   WCHAR_OK=1
36436 fi
36437
36438     else
36439         { echo "$as_me:$LINENO: checking for wcslen in -lw" >&5
36440 echo $ECHO_N "checking for wcslen in -lw... $ECHO_C" >&6; }
36441 if test "${ac_cv_lib_w_wcslen+set}" = set; then
36442   echo $ECHO_N "(cached) $ECHO_C" >&6
36443 else
36444   ac_check_lib_save_LIBS=$LIBS
36445 LIBS="-lw  $LIBS"
36446 cat >conftest.$ac_ext <<_ACEOF
36447 /* confdefs.h.  */
36448 _ACEOF
36449 cat confdefs.h >>conftest.$ac_ext
36450 cat >>conftest.$ac_ext <<_ACEOF
36451 /* end confdefs.h.  */
36452
36453 /* Override any GCC internal prototype to avoid an error.
36454    Use char because int might match the return type of a GCC
36455    builtin and then its argument prototype would still apply.  */
36456 #ifdef __cplusplus
36457 extern "C"
36458 #endif
36459 char wcslen ();
36460 int
36461 main ()
36462 {
36463 return wcslen ();
36464   ;
36465   return 0;
36466 }
36467 _ACEOF
36468 rm -f conftest.$ac_objext conftest$ac_exeext
36469 if { (ac_try="$ac_link"
36470 case "(($ac_try" in
36471   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36472   *) ac_try_echo=$ac_try;;
36473 esac
36474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36475   (eval "$ac_link") 2>conftest.er1
36476   ac_status=$?
36477   grep -v '^ *+' conftest.er1 >conftest.err
36478   rm -f conftest.er1
36479   cat conftest.err >&5
36480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36481   (exit $ac_status); } && {
36482          test -z "$ac_c_werror_flag" ||
36483          test ! -s conftest.err
36484        } && test -s conftest$ac_exeext &&
36485        $as_test_x conftest$ac_exeext; then
36486   ac_cv_lib_w_wcslen=yes
36487 else
36488   echo "$as_me: failed program was:" >&5
36489 sed 's/^/| /' conftest.$ac_ext >&5
36490
36491         ac_cv_lib_w_wcslen=no
36492 fi
36493
36494 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36495       conftest$ac_exeext conftest.$ac_ext
36496 LIBS=$ac_check_lib_save_LIBS
36497 fi
36498 { echo "$as_me:$LINENO: result: $ac_cv_lib_w_wcslen" >&5
36499 echo "${ECHO_T}$ac_cv_lib_w_wcslen" >&6; }
36500 if test $ac_cv_lib_w_wcslen = yes; then
36501
36502                         WCHAR_LINK=" -lw"
36503                         WCSLEN_FOUND=1
36504
36505 fi
36506
36507     fi
36508 fi
36509
36510 if test "$WCSLEN_FOUND" = 1; then
36511     cat >>confdefs.h <<\_ACEOF
36512 #define HAVE_WCSLEN 1
36513 _ACEOF
36514
36515 fi
36516
36517
36518
36519
36520
36521
36522
36523 for ac_func in wcsdup wcsftime strnlen wcsnlen wcscasecmp wcsncasecmp
36524 do
36525 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36526 { echo "$as_me:$LINENO: checking for $ac_func" >&5
36527 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
36528 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
36529   echo $ECHO_N "(cached) $ECHO_C" >&6
36530 else
36531   cat >conftest.$ac_ext <<_ACEOF
36532 /* confdefs.h.  */
36533 _ACEOF
36534 cat confdefs.h >>conftest.$ac_ext
36535 cat >>conftest.$ac_ext <<_ACEOF
36536 /* end confdefs.h.  */
36537 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36538    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36539 #define $ac_func innocuous_$ac_func
36540
36541 /* System header to define __stub macros and hopefully few prototypes,
36542     which can conflict with char $ac_func (); below.
36543     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36544     <limits.h> exists even on freestanding compilers.  */
36545
36546 #ifdef __STDC__
36547 # include <limits.h>
36548 #else
36549 # include <assert.h>
36550 #endif
36551
36552 #undef $ac_func
36553
36554 /* Override any GCC internal prototype to avoid an error.
36555    Use char because int might match the return type of a GCC
36556    builtin and then its argument prototype would still apply.  */
36557 #ifdef __cplusplus
36558 extern "C"
36559 #endif
36560 char $ac_func ();
36561 /* The GNU C library defines this for functions which it implements
36562     to always fail with ENOSYS.  Some functions are actually named
36563     something starting with __ and the normal name is an alias.  */
36564 #if defined __stub_$ac_func || defined __stub___$ac_func
36565 choke me
36566 #endif
36567
36568 int
36569 main ()
36570 {
36571 return $ac_func ();
36572   ;
36573   return 0;
36574 }
36575 _ACEOF
36576 rm -f conftest.$ac_objext conftest$ac_exeext
36577 if { (ac_try="$ac_link"
36578 case "(($ac_try" in
36579   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36580   *) ac_try_echo=$ac_try;;
36581 esac
36582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36583   (eval "$ac_link") 2>conftest.er1
36584   ac_status=$?
36585   grep -v '^ *+' conftest.er1 >conftest.err
36586   rm -f conftest.er1
36587   cat conftest.err >&5
36588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36589   (exit $ac_status); } && {
36590          test -z "$ac_c_werror_flag" ||
36591          test ! -s conftest.err
36592        } && test -s conftest$ac_exeext &&
36593        $as_test_x conftest$ac_exeext; then
36594   eval "$as_ac_var=yes"
36595 else
36596   echo "$as_me: failed program was:" >&5
36597 sed 's/^/| /' conftest.$ac_ext >&5
36598
36599         eval "$as_ac_var=no"
36600 fi
36601
36602 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36603       conftest$ac_exeext conftest.$ac_ext
36604 fi
36605 ac_res=`eval echo '${'$as_ac_var'}'`
36606                { echo "$as_me:$LINENO: result: $ac_res" >&5
36607 echo "${ECHO_T}$ac_res" >&6; }
36608 if test `eval echo '${'$as_ac_var'}'` = yes; then
36609   cat >>confdefs.h <<_ACEOF
36610 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36611 _ACEOF
36612
36613 fi
36614 done
36615
36616
36617 if test "$USE_HPUX" = 1 -a "$GCC" != "yes"; then
36618     CPPFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CPPFLAGS"
36619 fi
36620
36621 { echo "$as_me:$LINENO: checking for mbstate_t" >&5
36622 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6; }
36623 if test "${ac_cv_type_mbstate_t+set}" = set; then
36624   echo $ECHO_N "(cached) $ECHO_C" >&6
36625 else
36626   cat >conftest.$ac_ext <<_ACEOF
36627 /* confdefs.h.  */
36628 _ACEOF
36629 cat confdefs.h >>conftest.$ac_ext
36630 cat >>conftest.$ac_ext <<_ACEOF
36631 /* end confdefs.h.  */
36632 #include <wchar.h>
36633
36634 typedef mbstate_t ac__type_new_;
36635 int
36636 main ()
36637 {
36638 if ((ac__type_new_ *) 0)
36639   return 0;
36640 if (sizeof (ac__type_new_))
36641   return 0;
36642   ;
36643   return 0;
36644 }
36645 _ACEOF
36646 rm -f conftest.$ac_objext
36647 if { (ac_try="$ac_compile"
36648 case "(($ac_try" in
36649   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36650   *) ac_try_echo=$ac_try;;
36651 esac
36652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36653   (eval "$ac_compile") 2>conftest.er1
36654   ac_status=$?
36655   grep -v '^ *+' conftest.er1 >conftest.err
36656   rm -f conftest.er1
36657   cat conftest.err >&5
36658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36659   (exit $ac_status); } && {
36660          test -z "$ac_c_werror_flag" ||
36661          test ! -s conftest.err
36662        } && test -s conftest.$ac_objext; then
36663   ac_cv_type_mbstate_t=yes
36664 else
36665   echo "$as_me: failed program was:" >&5
36666 sed 's/^/| /' conftest.$ac_ext >&5
36667
36668         ac_cv_type_mbstate_t=no
36669 fi
36670
36671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36672 fi
36673 { echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
36674 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6; }
36675 if test $ac_cv_type_mbstate_t = yes; then
36676
36677 cat >>confdefs.h <<_ACEOF
36678 #define HAVE_MBSTATE_T 1
36679 _ACEOF
36680
36681
36682 for ac_func in wcsrtombs
36683 do
36684 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36685 { echo "$as_me:$LINENO: checking for $ac_func" >&5
36686 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
36687 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
36688   echo $ECHO_N "(cached) $ECHO_C" >&6
36689 else
36690   cat >conftest.$ac_ext <<_ACEOF
36691 /* confdefs.h.  */
36692 _ACEOF
36693 cat confdefs.h >>conftest.$ac_ext
36694 cat >>conftest.$ac_ext <<_ACEOF
36695 /* end confdefs.h.  */
36696 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36697    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36698 #define $ac_func innocuous_$ac_func
36699
36700 /* System header to define __stub macros and hopefully few prototypes,
36701     which can conflict with char $ac_func (); below.
36702     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36703     <limits.h> exists even on freestanding compilers.  */
36704
36705 #ifdef __STDC__
36706 # include <limits.h>
36707 #else
36708 # include <assert.h>
36709 #endif
36710
36711 #undef $ac_func
36712
36713 /* Override any GCC internal prototype to avoid an error.
36714    Use char because int might match the return type of a GCC
36715    builtin and then its argument prototype would still apply.  */
36716 #ifdef __cplusplus
36717 extern "C"
36718 #endif
36719 char $ac_func ();
36720 /* The GNU C library defines this for functions which it implements
36721     to always fail with ENOSYS.  Some functions are actually named
36722     something starting with __ and the normal name is an alias.  */
36723 #if defined __stub_$ac_func || defined __stub___$ac_func
36724 choke me
36725 #endif
36726
36727 int
36728 main ()
36729 {
36730 return $ac_func ();
36731   ;
36732   return 0;
36733 }
36734 _ACEOF
36735 rm -f conftest.$ac_objext conftest$ac_exeext
36736 if { (ac_try="$ac_link"
36737 case "(($ac_try" in
36738   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36739   *) ac_try_echo=$ac_try;;
36740 esac
36741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36742   (eval "$ac_link") 2>conftest.er1
36743   ac_status=$?
36744   grep -v '^ *+' conftest.er1 >conftest.err
36745   rm -f conftest.er1
36746   cat conftest.err >&5
36747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36748   (exit $ac_status); } && {
36749          test -z "$ac_c_werror_flag" ||
36750          test ! -s conftest.err
36751        } && test -s conftest$ac_exeext &&
36752        $as_test_x conftest$ac_exeext; then
36753   eval "$as_ac_var=yes"
36754 else
36755   echo "$as_me: failed program was:" >&5
36756 sed 's/^/| /' conftest.$ac_ext >&5
36757
36758         eval "$as_ac_var=no"
36759 fi
36760
36761 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36762       conftest$ac_exeext conftest.$ac_ext
36763 fi
36764 ac_res=`eval echo '${'$as_ac_var'}'`
36765                { echo "$as_me:$LINENO: result: $ac_res" >&5
36766 echo "${ECHO_T}$ac_res" >&6; }
36767 if test `eval echo '${'$as_ac_var'}'` = yes; then
36768   cat >>confdefs.h <<_ACEOF
36769 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36770 _ACEOF
36771
36772 fi
36773 done
36774
36775 fi
36776
36777
36778
36779
36780
36781 for ac_func in snprintf vsnprintf vsscanf
36782 do
36783 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36784 { echo "$as_me:$LINENO: checking for $ac_func" >&5
36785 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
36786 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
36787   echo $ECHO_N "(cached) $ECHO_C" >&6
36788 else
36789   cat >conftest.$ac_ext <<_ACEOF
36790 /* confdefs.h.  */
36791 _ACEOF
36792 cat confdefs.h >>conftest.$ac_ext
36793 cat >>conftest.$ac_ext <<_ACEOF
36794 /* end confdefs.h.  */
36795 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36796    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36797 #define $ac_func innocuous_$ac_func
36798
36799 /* System header to define __stub macros and hopefully few prototypes,
36800     which can conflict with char $ac_func (); below.
36801     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36802     <limits.h> exists even on freestanding compilers.  */
36803
36804 #ifdef __STDC__
36805 # include <limits.h>
36806 #else
36807 # include <assert.h>
36808 #endif
36809
36810 #undef $ac_func
36811
36812 /* Override any GCC internal prototype to avoid an error.
36813    Use char because int might match the return type of a GCC
36814    builtin and then its argument prototype would still apply.  */
36815 #ifdef __cplusplus
36816 extern "C"
36817 #endif
36818 char $ac_func ();
36819 /* The GNU C library defines this for functions which it implements
36820     to always fail with ENOSYS.  Some functions are actually named
36821     something starting with __ and the normal name is an alias.  */
36822 #if defined __stub_$ac_func || defined __stub___$ac_func
36823 choke me
36824 #endif
36825
36826 int
36827 main ()
36828 {
36829 return $ac_func ();
36830   ;
36831   return 0;
36832 }
36833 _ACEOF
36834 rm -f conftest.$ac_objext conftest$ac_exeext
36835 if { (ac_try="$ac_link"
36836 case "(($ac_try" in
36837   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36838   *) ac_try_echo=$ac_try;;
36839 esac
36840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36841   (eval "$ac_link") 2>conftest.er1
36842   ac_status=$?
36843   grep -v '^ *+' conftest.er1 >conftest.err
36844   rm -f conftest.er1
36845   cat conftest.err >&5
36846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36847   (exit $ac_status); } && {
36848          test -z "$ac_c_werror_flag" ||
36849          test ! -s conftest.err
36850        } && test -s conftest$ac_exeext &&
36851        $as_test_x conftest$ac_exeext; then
36852   eval "$as_ac_var=yes"
36853 else
36854   echo "$as_me: failed program was:" >&5
36855 sed 's/^/| /' conftest.$ac_ext >&5
36856
36857         eval "$as_ac_var=no"
36858 fi
36859
36860 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36861       conftest$ac_exeext conftest.$ac_ext
36862 fi
36863 ac_res=`eval echo '${'$as_ac_var'}'`
36864                { echo "$as_me:$LINENO: result: $ac_res" >&5
36865 echo "${ECHO_T}$ac_res" >&6; }
36866 if test `eval echo '${'$as_ac_var'}'` = yes; then
36867   cat >>confdefs.h <<_ACEOF
36868 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36869 _ACEOF
36870
36871 fi
36872 done
36873
36874
36875 ac_ext=cpp
36876 ac_cpp='$CXXCPP $CPPFLAGS'
36877 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36878 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36879 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
36880
36881 if test "$ac_cv_func_vsnprintf" = "yes"; then
36882         { echo "$as_me:$LINENO: checking for vsnprintf declaration" >&5
36883 echo $ECHO_N "checking for vsnprintf declaration... $ECHO_C" >&6; }
36884 if test "${wx_cv_func_vsnprintf_decl+set}" = set; then
36885   echo $ECHO_N "(cached) $ECHO_C" >&6
36886 else
36887
36888                                                             cat >conftest.$ac_ext <<_ACEOF
36889 /* confdefs.h.  */
36890 _ACEOF
36891 cat confdefs.h >>conftest.$ac_ext
36892 cat >>conftest.$ac_ext <<_ACEOF
36893 /* end confdefs.h.  */
36894
36895                     #include <stdio.h>
36896                     #include <stdarg.h>
36897                     #ifdef __MSL__
36898                     #if __MSL__ >= 0x6000
36899                     namespace std {}
36900                     using namespace std;
36901                     #endif
36902                     #endif
36903
36904 int
36905 main ()
36906 {
36907
36908                     char *buf;
36909                     va_list ap;
36910                     vsnprintf(buf, 10u, "%s", ap);
36911
36912   ;
36913   return 0;
36914 }
36915 _ACEOF
36916 rm -f conftest.$ac_objext
36917 if { (ac_try="$ac_compile"
36918 case "(($ac_try" in
36919   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36920   *) ac_try_echo=$ac_try;;
36921 esac
36922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36923   (eval "$ac_compile") 2>conftest.er1
36924   ac_status=$?
36925   grep -v '^ *+' conftest.er1 >conftest.err
36926   rm -f conftest.er1
36927   cat conftest.err >&5
36928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36929   (exit $ac_status); } && {
36930          test -z "$ac_cxx_werror_flag" ||
36931          test ! -s conftest.err
36932        } && test -s conftest.$ac_objext; then
36933   wx_cv_func_vsnprintf_decl=yes
36934 else
36935   echo "$as_me: failed program was:" >&5
36936 sed 's/^/| /' conftest.$ac_ext >&5
36937
36938         wx_cv_func_vsnprintf_decl=no
36939
36940 fi
36941
36942 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36943
36944
36945 fi
36946 { echo "$as_me:$LINENO: result: $wx_cv_func_vsnprintf_decl" >&5
36947 echo "${ECHO_T}$wx_cv_func_vsnprintf_decl" >&6; }
36948
36949     if test "$wx_cv_func_vsnprintf_decl" = "yes"; then
36950         cat >>confdefs.h <<\_ACEOF
36951 #define HAVE_VSNPRINTF_DECL 1
36952 _ACEOF
36953
36954
36955                         { echo "$as_me:$LINENO: checking if vsnprintf declaration is broken" >&5
36956 echo $ECHO_N "checking if vsnprintf declaration is broken... $ECHO_C" >&6; }
36957 if test "${wx_cv_func_broken_vsnprintf_decl+set}" = set; then
36958   echo $ECHO_N "(cached) $ECHO_C" >&6
36959 else
36960
36961                 cat >conftest.$ac_ext <<_ACEOF
36962 /* confdefs.h.  */
36963 _ACEOF
36964 cat confdefs.h >>conftest.$ac_ext
36965 cat >>conftest.$ac_ext <<_ACEOF
36966 /* end confdefs.h.  */
36967
36968                         #include <stdio.h>
36969                         #include <stdarg.h>
36970                         #ifdef __MSL__
36971                         #if __MSL__ >= 0x6000
36972                         namespace std {}
36973                         using namespace std;
36974                         #endif
36975                         #endif
36976
36977 int
36978 main ()
36979 {
36980
36981                         char *buf;
36982                         va_list ap;
36983                         const char *fmt = "%s";
36984                         vsnprintf(buf, 10u, fmt, ap);
36985
36986   ;
36987   return 0;
36988 }
36989 _ACEOF
36990 rm -f conftest.$ac_objext
36991 if { (ac_try="$ac_compile"
36992 case "(($ac_try" in
36993   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36994   *) ac_try_echo=$ac_try;;
36995 esac
36996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36997   (eval "$ac_compile") 2>conftest.er1
36998   ac_status=$?
36999   grep -v '^ *+' conftest.er1 >conftest.err
37000   rm -f conftest.er1
37001   cat conftest.err >&5
37002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37003   (exit $ac_status); } && {
37004          test -z "$ac_cxx_werror_flag" ||
37005          test ! -s conftest.err
37006        } && test -s conftest.$ac_objext; then
37007   wx_cv_func_broken_vsnprintf_decl=no
37008 else
37009   echo "$as_me: failed program was:" >&5
37010 sed 's/^/| /' conftest.$ac_ext >&5
37011
37012         wx_cv_func_broken_vsnprintf_decl=yes
37013
37014 fi
37015
37016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37017
37018
37019 fi
37020 { echo "$as_me:$LINENO: result: $wx_cv_func_broken_vsnprintf_decl" >&5
37021 echo "${ECHO_T}$wx_cv_func_broken_vsnprintf_decl" >&6; }
37022
37023         if test "$wx_cv_func_broken_vsnprintf_decl" = "yes"; then
37024             cat >>confdefs.h <<\_ACEOF
37025 #define HAVE_BROKEN_VSNPRINTF_DECL 1
37026 _ACEOF
37027
37028         fi
37029     fi
37030 fi
37031
37032 if test "$ac_cv_func_snprintf" = "yes"; then
37033     { echo "$as_me:$LINENO: checking for snprintf declaration" >&5
37034 echo $ECHO_N "checking for snprintf declaration... $ECHO_C" >&6; }
37035 if test "${wx_cv_func_snprintf_decl+set}" = set; then
37036   echo $ECHO_N "(cached) $ECHO_C" >&6
37037 else
37038
37039             cat >conftest.$ac_ext <<_ACEOF
37040 /* confdefs.h.  */
37041 _ACEOF
37042 cat confdefs.h >>conftest.$ac_ext
37043 cat >>conftest.$ac_ext <<_ACEOF
37044 /* end confdefs.h.  */
37045
37046                     #include <stdio.h>
37047                     #include <stdarg.h>
37048                     #ifdef __MSL__
37049                     #if __MSL__ >= 0x6000
37050                     namespace std {}
37051                     using namespace std;
37052                     #endif
37053                     #endif
37054
37055 int
37056 main ()
37057 {
37058
37059                     char *buf;
37060                     snprintf(buf, 10u, "%s", "wx");
37061
37062   ;
37063   return 0;
37064 }
37065 _ACEOF
37066 rm -f conftest.$ac_objext
37067 if { (ac_try="$ac_compile"
37068 case "(($ac_try" in
37069   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37070   *) ac_try_echo=$ac_try;;
37071 esac
37072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37073   (eval "$ac_compile") 2>conftest.er1
37074   ac_status=$?
37075   grep -v '^ *+' conftest.er1 >conftest.err
37076   rm -f conftest.er1
37077   cat conftest.err >&5
37078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37079   (exit $ac_status); } && {
37080          test -z "$ac_cxx_werror_flag" ||
37081          test ! -s conftest.err
37082        } && test -s conftest.$ac_objext; then
37083   wx_cv_func_snprintf_decl=yes
37084 else
37085   echo "$as_me: failed program was:" >&5
37086 sed 's/^/| /' conftest.$ac_ext >&5
37087
37088         wx_cv_func_snprintf_decl=no
37089
37090 fi
37091
37092 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37093
37094
37095 fi
37096 { echo "$as_me:$LINENO: result: $wx_cv_func_snprintf_decl" >&5
37097 echo "${ECHO_T}$wx_cv_func_snprintf_decl" >&6; }
37098
37099     if test "$wx_cv_func_snprintf_decl" = "yes"; then
37100         cat >>confdefs.h <<\_ACEOF
37101 #define HAVE_SNPRINTF_DECL 1
37102 _ACEOF
37103
37104     fi
37105
37106     if test "$wxUSE_PRINTF_POS_PARAMS" = "yes"; then
37107
37108                                         { echo "$as_me:$LINENO: checking if snprintf supports positional arguments" >&5
37109 echo $ECHO_N "checking if snprintf supports positional arguments... $ECHO_C" >&6; }
37110 if test "${wx_cv_func_snprintf_pos_params+set}" = set; then
37111   echo $ECHO_N "(cached) $ECHO_C" >&6
37112 else
37113
37114                 if test "$cross_compiling" = yes; then
37115
37116                         { echo "$as_me:$LINENO: WARNING: Assuming Unix98 printf() is not available,
37117 define HAVE_UNIX98_PRINTF as 1 in setup.h if it is available." >&5
37118 echo "$as_me: WARNING: Assuming Unix98 printf() is not available,
37119 define HAVE_UNIX98_PRINTF as 1 in setup.h if it is available." >&2;}
37120                         wx_cv_func_snprintf_pos_params=no
37121
37122
37123 else
37124   cat >conftest.$ac_ext <<_ACEOF
37125 /* confdefs.h.  */
37126 _ACEOF
37127 cat confdefs.h >>conftest.$ac_ext
37128 cat >>conftest.$ac_ext <<_ACEOF
37129 /* end confdefs.h.  */
37130
37131                         #include <stdio.h>
37132
37133                         int main (void)
37134                         {
37135                             char buffer[128];
37136                             snprintf (buffer, 128, "%2$d %3$d %1$d", 1, 2, 3);
37137                             if (strcmp ("2 3 1", buffer) == 0)
37138                                 exit (0);
37139                             exit (1);
37140                         }
37141
37142 _ACEOF
37143 rm -f conftest$ac_exeext
37144 if { (ac_try="$ac_link"
37145 case "(($ac_try" in
37146   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37147   *) ac_try_echo=$ac_try;;
37148 esac
37149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37150   (eval "$ac_link") 2>&5
37151   ac_status=$?
37152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37153   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
37154   { (case "(($ac_try" in
37155   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37156   *) ac_try_echo=$ac_try;;
37157 esac
37158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37159   (eval "$ac_try") 2>&5
37160   ac_status=$?
37161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37162   (exit $ac_status); }; }; then
37163   wx_cv_func_snprintf_pos_params=no
37164 else
37165   echo "$as_me: program exited with status $ac_status" >&5
37166 echo "$as_me: failed program was:" >&5
37167 sed 's/^/| /' conftest.$ac_ext >&5
37168
37169 ( exit $ac_status )
37170 wx_cv_func_snprintf_pos_params=yes
37171 fi
37172 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
37173 fi
37174
37175
37176
37177
37178 fi
37179 { echo "$as_me:$LINENO: result: $wx_cv_func_snprintf_pos_params" >&5
37180 echo "${ECHO_T}$wx_cv_func_snprintf_pos_params" >&6; }
37181
37182         if test "$wx_cv_func_snprintf_pos_params" = "yes"; then
37183             cat >>confdefs.h <<\_ACEOF
37184 #define HAVE_UNIX98_PRINTF 1
37185 _ACEOF
37186
37187         fi
37188     fi
37189 fi
37190
37191 if test "$ac_cv_func_vsscanf" = "yes"; then
37192     { echo "$as_me:$LINENO: checking for vsscanf declaration" >&5
37193 echo $ECHO_N "checking for vsscanf declaration... $ECHO_C" >&6; }
37194 if test "${wx_cv_func_vsscanf_decl+set}" = set; then
37195   echo $ECHO_N "(cached) $ECHO_C" >&6
37196 else
37197
37198             cat >conftest.$ac_ext <<_ACEOF
37199 /* confdefs.h.  */
37200 _ACEOF
37201 cat confdefs.h >>conftest.$ac_ext
37202 cat >>conftest.$ac_ext <<_ACEOF
37203 /* end confdefs.h.  */
37204
37205                     #include <stdio.h>
37206                     #include <stdarg.h>
37207                     #ifdef __MSL__
37208                     #if __MSL__ >= 0x6000
37209                     namespace std {}
37210                     using namespace std;
37211                     #endif
37212                     #endif
37213
37214 int
37215 main ()
37216 {
37217
37218                     char *buf;
37219                     va_list args;
37220                     vsscanf(buf, "%s", args);
37221
37222   ;
37223   return 0;
37224 }
37225 _ACEOF
37226 rm -f conftest.$ac_objext
37227 if { (ac_try="$ac_compile"
37228 case "(($ac_try" in
37229   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37230   *) ac_try_echo=$ac_try;;
37231 esac
37232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37233   (eval "$ac_compile") 2>conftest.er1
37234   ac_status=$?
37235   grep -v '^ *+' conftest.er1 >conftest.err
37236   rm -f conftest.er1
37237   cat conftest.err >&5
37238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37239   (exit $ac_status); } && {
37240          test -z "$ac_cxx_werror_flag" ||
37241          test ! -s conftest.err
37242        } && test -s conftest.$ac_objext; then
37243   wx_cv_func_vsscanf_decl=yes
37244 else
37245   echo "$as_me: failed program was:" >&5
37246 sed 's/^/| /' conftest.$ac_ext >&5
37247
37248         wx_cv_func_vsscanf_decl=no
37249
37250 fi
37251
37252 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37253
37254
37255 fi
37256 { echo "$as_me:$LINENO: result: $wx_cv_func_vsscanf_decl" >&5
37257 echo "${ECHO_T}$wx_cv_func_vsscanf_decl" >&6; }
37258
37259     if test "$wx_cv_func_vsscanf_decl" = "yes"; then
37260         cat >>confdefs.h <<\_ACEOF
37261 #define HAVE_VSSCANF_DECL 1
37262 _ACEOF
37263
37264     fi
37265 fi
37266 ac_ext=c
37267 ac_cpp='$CPP $CPPFLAGS'
37268 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37269 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37270 ac_compiler_gnu=$ac_cv_c_compiler_gnu
37271
37272
37273 if test "$wxUSE_UNICODE" = yes; then
37274
37275             wchar_headers="#include <stdio.h>
37276 #include <wchar.h>"
37277     case "${host}" in
37278         *-*-solaris2* )
37279
37280 for ac_header in widec.h
37281 do
37282 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
37283 { echo "$as_me:$LINENO: checking for $ac_header" >&5
37284 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
37285 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
37286   echo $ECHO_N "(cached) $ECHO_C" >&6
37287 else
37288   cat >conftest.$ac_ext <<_ACEOF
37289 /* confdefs.h.  */
37290 _ACEOF
37291 cat confdefs.h >>conftest.$ac_ext
37292 cat >>conftest.$ac_ext <<_ACEOF
37293 /* end confdefs.h.  */
37294 $ac_includes_default
37295
37296 #include <$ac_header>
37297 _ACEOF
37298 rm -f conftest.$ac_objext
37299 if { (ac_try="$ac_compile"
37300 case "(($ac_try" in
37301   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37302   *) ac_try_echo=$ac_try;;
37303 esac
37304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37305   (eval "$ac_compile") 2>conftest.er1
37306   ac_status=$?
37307   grep -v '^ *+' conftest.er1 >conftest.err
37308   rm -f conftest.er1
37309   cat conftest.err >&5
37310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37311   (exit $ac_status); } && {
37312          test -z "$ac_c_werror_flag" ||
37313          test ! -s conftest.err
37314        } && test -s conftest.$ac_objext; then
37315   eval "$as_ac_Header=yes"
37316 else
37317   echo "$as_me: failed program was:" >&5
37318 sed 's/^/| /' conftest.$ac_ext >&5
37319
37320         eval "$as_ac_Header=no"
37321 fi
37322
37323 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37324 fi
37325 ac_res=`eval echo '${'$as_ac_Header'}'`
37326                { echo "$as_me:$LINENO: result: $ac_res" >&5
37327 echo "${ECHO_T}$ac_res" >&6; }
37328 if test `eval echo '${'$as_ac_Header'}'` = yes; then
37329   cat >>confdefs.h <<_ACEOF
37330 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
37331 _ACEOF
37332
37333 fi
37334
37335 done
37336
37337             if test "$ac_cv_header_widec_h" = "yes"; then
37338                 wchar_headers="$wchar_headers
37339 #include <widec.h>"
37340             fi
37341     esac
37342
37343
37344   for wx_func in putws fputws wprintf vswprintf vswscanf
37345   do
37346     { echo "$as_me:$LINENO: checking for $wx_func" >&5
37347 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
37348 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
37349   echo $ECHO_N "(cached) $ECHO_C" >&6
37350 else
37351
37352         cat >conftest.$ac_ext <<_ACEOF
37353
37354             /* confdefs.h.  */
37355 _ACEOF
37356 cat confdefs.h >>conftest.$ac_ext
37357 cat >>conftest.$ac_ext <<_ACEOF
37358 /* end confdefs.h.  */
37359
37360                 $wchar_headers
37361                 $ac_includes_default
37362
37363 int
37364 main ()
37365 {
37366
37367                 #ifndef $wx_func
37368                   &$wx_func;
37369                 #endif
37370
37371
37372   ;
37373   return 0;
37374 }
37375
37376 _ACEOF
37377 rm -f conftest.$ac_objext conftest$ac_exeext
37378 if { (ac_try="$ac_link"
37379 case "(($ac_try" in
37380   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37381   *) ac_try_echo=$ac_try;;
37382 esac
37383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37384   (eval "$ac_link") 2>conftest.er1
37385   ac_status=$?
37386   grep -v '^ *+' conftest.er1 >conftest.err
37387   rm -f conftest.er1
37388   cat conftest.err >&5
37389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37390   (exit $ac_status); } && {
37391          test -z "$ac_c_werror_flag" ||
37392          test ! -s conftest.err
37393        } && test -s conftest$ac_exeext &&
37394        $as_test_x conftest$ac_exeext; then
37395   eval wx_cv_func_$wx_func=yes
37396 else
37397   echo "$as_me: failed program was:" >&5
37398 sed 's/^/| /' conftest.$ac_ext >&5
37399
37400         eval wx_cv_func_$wx_func=no
37401 fi
37402
37403 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37404       conftest$ac_exeext conftest.$ac_ext
37405
37406 fi
37407 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
37408                { echo "$as_me:$LINENO: result: $ac_res" >&5
37409 echo "${ECHO_T}$ac_res" >&6; }
37410
37411     if eval test \$wx_cv_func_$wx_func = yes
37412     then
37413       cat >>confdefs.h <<_ACEOF
37414 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
37415 _ACEOF
37416
37417
37418     else
37419       :
37420
37421     fi
37422   done
37423
37424
37425                 { echo "$as_me:$LINENO: checking for _vsnwprintf" >&5
37426 echo $ECHO_N "checking for _vsnwprintf... $ECHO_C" >&6; }
37427     cat >conftest.$ac_ext <<_ACEOF
37428 /* confdefs.h.  */
37429 _ACEOF
37430 cat confdefs.h >>conftest.$ac_ext
37431 cat >>conftest.$ac_ext <<_ACEOF
37432 /* end confdefs.h.  */
37433 #include <wchar.h>
37434 int
37435 main ()
37436 {
37437 &_vsnwprintf;
37438   ;
37439   return 0;
37440 }
37441 _ACEOF
37442 rm -f conftest.$ac_objext
37443 if { (ac_try="$ac_compile"
37444 case "(($ac_try" in
37445   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37446   *) ac_try_echo=$ac_try;;
37447 esac
37448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37449   (eval "$ac_compile") 2>conftest.er1
37450   ac_status=$?
37451   grep -v '^ *+' conftest.er1 >conftest.err
37452   rm -f conftest.er1
37453   cat conftest.err >&5
37454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37455   (exit $ac_status); } && {
37456          test -z "$ac_c_werror_flag" ||
37457          test ! -s conftest.err
37458        } && test -s conftest.$ac_objext; then
37459   { echo "$as_me:$LINENO: result: yes" >&5
37460 echo "${ECHO_T}yes" >&6; }
37461                     cat >>confdefs.h <<\_ACEOF
37462 #define HAVE__VSNWPRINTF 1
37463 _ACEOF
37464
37465 else
37466   echo "$as_me: failed program was:" >&5
37467 sed 's/^/| /' conftest.$ac_ext >&5
37468
37469         { echo "$as_me:$LINENO: result: no" >&5
37470 echo "${ECHO_T}no" >&6; }
37471 fi
37472
37473 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext;
37474 fi
37475
37476 if test "$wxUSE_FILE" = "yes"; then
37477
37478   for wx_func in fsync
37479   do
37480     { echo "$as_me:$LINENO: checking for $wx_func" >&5
37481 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
37482 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
37483   echo $ECHO_N "(cached) $ECHO_C" >&6
37484 else
37485
37486         cat >conftest.$ac_ext <<_ACEOF
37487
37488             /* confdefs.h.  */
37489 _ACEOF
37490 cat confdefs.h >>conftest.$ac_ext
37491 cat >>conftest.$ac_ext <<_ACEOF
37492 /* end confdefs.h.  */
37493
37494
37495                 $ac_includes_default
37496
37497 int
37498 main ()
37499 {
37500
37501                 #ifndef $wx_func
37502                   &$wx_func;
37503                 #endif
37504
37505
37506   ;
37507   return 0;
37508 }
37509
37510 _ACEOF
37511 rm -f conftest.$ac_objext conftest$ac_exeext
37512 if { (ac_try="$ac_link"
37513 case "(($ac_try" in
37514   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37515   *) ac_try_echo=$ac_try;;
37516 esac
37517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37518   (eval "$ac_link") 2>conftest.er1
37519   ac_status=$?
37520   grep -v '^ *+' conftest.er1 >conftest.err
37521   rm -f conftest.er1
37522   cat conftest.err >&5
37523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37524   (exit $ac_status); } && {
37525          test -z "$ac_c_werror_flag" ||
37526          test ! -s conftest.err
37527        } && test -s conftest$ac_exeext &&
37528        $as_test_x conftest$ac_exeext; then
37529   eval wx_cv_func_$wx_func=yes
37530 else
37531   echo "$as_me: failed program was:" >&5
37532 sed 's/^/| /' conftest.$ac_ext >&5
37533
37534         eval wx_cv_func_$wx_func=no
37535 fi
37536
37537 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37538       conftest$ac_exeext conftest.$ac_ext
37539
37540 fi
37541 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
37542                { echo "$as_me:$LINENO: result: $ac_res" >&5
37543 echo "${ECHO_T}$ac_res" >&6; }
37544
37545     if eval test \$wx_cv_func_$wx_func = yes
37546     then
37547       cat >>confdefs.h <<_ACEOF
37548 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
37549 _ACEOF
37550
37551
37552     else
37553       :
37554
37555     fi
37556   done
37557
37558 fi
37559
37560 ac_ext=cpp
37561 ac_cpp='$CXXCPP $CPPFLAGS'
37562 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37563 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37564 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
37565
37566
37567   for wx_func in round
37568   do
37569     { echo "$as_me:$LINENO: checking for $wx_func" >&5
37570 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
37571 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
37572   echo $ECHO_N "(cached) $ECHO_C" >&6
37573 else
37574
37575         cat >conftest.$ac_ext <<_ACEOF
37576
37577             /* confdefs.h.  */
37578 _ACEOF
37579 cat confdefs.h >>conftest.$ac_ext
37580 cat >>conftest.$ac_ext <<_ACEOF
37581 /* end confdefs.h.  */
37582
37583                 #include <math.h>
37584                 $ac_includes_default
37585
37586 int
37587 main ()
37588 {
37589
37590                 #ifndef $wx_func
37591                   &$wx_func;
37592                 #endif
37593
37594
37595   ;
37596   return 0;
37597 }
37598
37599 _ACEOF
37600 rm -f conftest.$ac_objext conftest$ac_exeext
37601 if { (ac_try="$ac_link"
37602 case "(($ac_try" in
37603   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37604   *) ac_try_echo=$ac_try;;
37605 esac
37606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37607   (eval "$ac_link") 2>conftest.er1
37608   ac_status=$?
37609   grep -v '^ *+' conftest.er1 >conftest.err
37610   rm -f conftest.er1
37611   cat conftest.err >&5
37612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37613   (exit $ac_status); } && {
37614          test -z "$ac_cxx_werror_flag" ||
37615          test ! -s conftest.err
37616        } && test -s conftest$ac_exeext &&
37617        $as_test_x conftest$ac_exeext; then
37618   eval wx_cv_func_$wx_func=yes
37619 else
37620   echo "$as_me: failed program was:" >&5
37621 sed 's/^/| /' conftest.$ac_ext >&5
37622
37623         eval wx_cv_func_$wx_func=no
37624 fi
37625
37626 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37627       conftest$ac_exeext conftest.$ac_ext
37628
37629 fi
37630 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
37631                { echo "$as_me:$LINENO: result: $ac_res" >&5
37632 echo "${ECHO_T}$ac_res" >&6; }
37633
37634     if eval test \$wx_cv_func_$wx_func = yes
37635     then
37636       cat >>confdefs.h <<_ACEOF
37637 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
37638 _ACEOF
37639
37640
37641     else
37642       :
37643
37644     fi
37645   done
37646
37647 ac_ext=c
37648 ac_cpp='$CPP $CPPFLAGS'
37649 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37650 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37651 ac_compiler_gnu=$ac_cv_c_compiler_gnu
37652
37653
37654 if test "$TOOLKIT" != "MSW"; then
37655
37656 if test "$wxUSE_LIBICONV" != "no" ; then
37657
37658
37659
37660 # Check whether --with-libiconv-prefix was given.
37661 if test "${with_libiconv_prefix+set}" = set; then
37662   withval=$with_libiconv_prefix;
37663     for dir in `echo "$withval" | tr : ' '`; do
37664       if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
37665       if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
37666     done
37667
37668 fi
37669
37670
37671   { echo "$as_me:$LINENO: checking for iconv" >&5
37672 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
37673 if test "${am_cv_func_iconv+set}" = set; then
37674   echo $ECHO_N "(cached) $ECHO_C" >&6
37675 else
37676
37677     am_cv_func_iconv="no, consider installing GNU libiconv"
37678     am_cv_lib_iconv=no
37679     cat >conftest.$ac_ext <<_ACEOF
37680 /* confdefs.h.  */
37681 _ACEOF
37682 cat confdefs.h >>conftest.$ac_ext
37683 cat >>conftest.$ac_ext <<_ACEOF
37684 /* end confdefs.h.  */
37685 #include <stdlib.h>
37686 #include <iconv.h>
37687 int
37688 main ()
37689 {
37690 iconv_t cd = iconv_open("","");
37691        iconv(cd,NULL,NULL,NULL,NULL);
37692        iconv_close(cd);
37693   ;
37694   return 0;
37695 }
37696 _ACEOF
37697 rm -f conftest.$ac_objext conftest$ac_exeext
37698 if { (ac_try="$ac_link"
37699 case "(($ac_try" in
37700   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37701   *) ac_try_echo=$ac_try;;
37702 esac
37703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37704   (eval "$ac_link") 2>conftest.er1
37705   ac_status=$?
37706   grep -v '^ *+' conftest.er1 >conftest.err
37707   rm -f conftest.er1
37708   cat conftest.err >&5
37709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37710   (exit $ac_status); } && {
37711          test -z "$ac_c_werror_flag" ||
37712          test ! -s conftest.err
37713        } && test -s conftest$ac_exeext &&
37714        $as_test_x conftest$ac_exeext; then
37715   am_cv_func_iconv=yes
37716 else
37717   echo "$as_me: failed program was:" >&5
37718 sed 's/^/| /' conftest.$ac_ext >&5
37719
37720
37721 fi
37722
37723 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37724       conftest$ac_exeext conftest.$ac_ext
37725     if test "$am_cv_func_iconv" != yes; then
37726       am_save_LIBS="$LIBS"
37727       LIBS="$LIBS -liconv"
37728       cat >conftest.$ac_ext <<_ACEOF
37729 /* confdefs.h.  */
37730 _ACEOF
37731 cat confdefs.h >>conftest.$ac_ext
37732 cat >>conftest.$ac_ext <<_ACEOF
37733 /* end confdefs.h.  */
37734 #include <stdlib.h>
37735 #include <iconv.h>
37736 int
37737 main ()
37738 {
37739 iconv_t cd = iconv_open("","");
37740          iconv(cd,NULL,NULL,NULL,NULL);
37741          iconv_close(cd);
37742   ;
37743   return 0;
37744 }
37745 _ACEOF
37746 rm -f conftest.$ac_objext conftest$ac_exeext
37747 if { (ac_try="$ac_link"
37748 case "(($ac_try" in
37749   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37750   *) ac_try_echo=$ac_try;;
37751 esac
37752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37753   (eval "$ac_link") 2>conftest.er1
37754   ac_status=$?
37755   grep -v '^ *+' conftest.er1 >conftest.err
37756   rm -f conftest.er1
37757   cat conftest.err >&5
37758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37759   (exit $ac_status); } && {
37760          test -z "$ac_c_werror_flag" ||
37761          test ! -s conftest.err
37762        } && test -s conftest$ac_exeext &&
37763        $as_test_x conftest$ac_exeext; then
37764   am_cv_lib_iconv=yes
37765         am_cv_func_iconv=yes
37766 else
37767   echo "$as_me: failed program was:" >&5
37768 sed 's/^/| /' conftest.$ac_ext >&5
37769
37770
37771 fi
37772
37773 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37774       conftest$ac_exeext conftest.$ac_ext
37775       LIBS="$am_save_LIBS"
37776     fi
37777
37778 fi
37779 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
37780 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
37781   if test "$am_cv_func_iconv" = yes; then
37782
37783 cat >>confdefs.h <<\_ACEOF
37784 #define HAVE_ICONV 1
37785 _ACEOF
37786
37787     { echo "$as_me:$LINENO: checking if iconv needs const" >&5
37788 echo $ECHO_N "checking if iconv needs const... $ECHO_C" >&6; }
37789 if test "${wx_cv_func_iconv_const+set}" = set; then
37790   echo $ECHO_N "(cached) $ECHO_C" >&6
37791 else
37792   cat >conftest.$ac_ext <<_ACEOF
37793 /* confdefs.h.  */
37794 _ACEOF
37795 cat confdefs.h >>conftest.$ac_ext
37796 cat >>conftest.$ac_ext <<_ACEOF
37797 /* end confdefs.h.  */
37798
37799 #include <stdlib.h>
37800 #include <iconv.h>
37801 extern
37802 #ifdef __cplusplus
37803 "C"
37804 #endif
37805 #if defined(__STDC__) || defined(__cplusplus)
37806 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
37807 #else
37808 size_t iconv();
37809 #endif
37810
37811 int
37812 main ()
37813 {
37814
37815   ;
37816   return 0;
37817 }
37818 _ACEOF
37819 rm -f conftest.$ac_objext
37820 if { (ac_try="$ac_compile"
37821 case "(($ac_try" in
37822   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37823   *) ac_try_echo=$ac_try;;
37824 esac
37825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37826   (eval "$ac_compile") 2>conftest.er1
37827   ac_status=$?
37828   grep -v '^ *+' conftest.er1 >conftest.err
37829   rm -f conftest.er1
37830   cat conftest.err >&5
37831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37832   (exit $ac_status); } && {
37833          test -z "$ac_c_werror_flag" ||
37834          test ! -s conftest.err
37835        } && test -s conftest.$ac_objext; then
37836   wx_cv_func_iconv_const="no"
37837 else
37838   echo "$as_me: failed program was:" >&5
37839 sed 's/^/| /' conftest.$ac_ext >&5
37840
37841         wx_cv_func_iconv_const="yes"
37842
37843 fi
37844
37845 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37846
37847 fi
37848 { echo "$as_me:$LINENO: result: $wx_cv_func_iconv_const" >&5
37849 echo "${ECHO_T}$wx_cv_func_iconv_const" >&6; }
37850
37851     iconv_const=
37852     if test "x$wx_cv_func_iconv_const" = "xyes"; then
37853         iconv_const="const"
37854     fi
37855
37856
37857 cat >>confdefs.h <<_ACEOF
37858 #define ICONV_CONST $iconv_const
37859 _ACEOF
37860
37861   fi
37862   LIBICONV=
37863   if test "$am_cv_lib_iconv" = yes; then
37864     LIBICONV="-liconv"
37865   fi
37866
37867
37868     LIBS="$LIBICONV $LIBS"
37869 fi
37870
37871 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
37872
37873 for ac_func in sigaction
37874 do
37875 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37876 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37877 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37878 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37879   echo $ECHO_N "(cached) $ECHO_C" >&6
37880 else
37881   cat >conftest.$ac_ext <<_ACEOF
37882 /* confdefs.h.  */
37883 _ACEOF
37884 cat confdefs.h >>conftest.$ac_ext
37885 cat >>conftest.$ac_ext <<_ACEOF
37886 /* end confdefs.h.  */
37887 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37888    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37889 #define $ac_func innocuous_$ac_func
37890
37891 /* System header to define __stub macros and hopefully few prototypes,
37892     which can conflict with char $ac_func (); below.
37893     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37894     <limits.h> exists even on freestanding compilers.  */
37895
37896 #ifdef __STDC__
37897 # include <limits.h>
37898 #else
37899 # include <assert.h>
37900 #endif
37901
37902 #undef $ac_func
37903
37904 /* Override any GCC internal prototype to avoid an error.
37905    Use char because int might match the return type of a GCC
37906    builtin and then its argument prototype would still apply.  */
37907 #ifdef __cplusplus
37908 extern "C"
37909 #endif
37910 char $ac_func ();
37911 /* The GNU C library defines this for functions which it implements
37912     to always fail with ENOSYS.  Some functions are actually named
37913     something starting with __ and the normal name is an alias.  */
37914 #if defined __stub_$ac_func || defined __stub___$ac_func
37915 choke me
37916 #endif
37917
37918 int
37919 main ()
37920 {
37921 return $ac_func ();
37922   ;
37923   return 0;
37924 }
37925 _ACEOF
37926 rm -f conftest.$ac_objext conftest$ac_exeext
37927 if { (ac_try="$ac_link"
37928 case "(($ac_try" in
37929   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37930   *) ac_try_echo=$ac_try;;
37931 esac
37932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37933   (eval "$ac_link") 2>conftest.er1
37934   ac_status=$?
37935   grep -v '^ *+' conftest.er1 >conftest.err
37936   rm -f conftest.er1
37937   cat conftest.err >&5
37938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37939   (exit $ac_status); } && {
37940          test -z "$ac_c_werror_flag" ||
37941          test ! -s conftest.err
37942        } && test -s conftest$ac_exeext &&
37943        $as_test_x conftest$ac_exeext; then
37944   eval "$as_ac_var=yes"
37945 else
37946   echo "$as_me: failed program was:" >&5
37947 sed 's/^/| /' conftest.$ac_ext >&5
37948
37949         eval "$as_ac_var=no"
37950 fi
37951
37952 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37953       conftest$ac_exeext conftest.$ac_ext
37954 fi
37955 ac_res=`eval echo '${'$as_ac_var'}'`
37956                { echo "$as_me:$LINENO: result: $ac_res" >&5
37957 echo "${ECHO_T}$ac_res" >&6; }
37958 if test `eval echo '${'$as_ac_var'}'` = yes; then
37959   cat >>confdefs.h <<_ACEOF
37960 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37961 _ACEOF
37962
37963 fi
37964 done
37965
37966
37967     if test "$ac_cv_func_sigaction" = "no"; then
37968         { echo "$as_me:$LINENO: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&5
37969 echo "$as_me: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&2;}
37970         wxUSE_ON_FATAL_EXCEPTION=no
37971     fi
37972
37973     if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
37974       { echo "$as_me:$LINENO: checking for sa_handler type" >&5
37975 echo $ECHO_N "checking for sa_handler type... $ECHO_C" >&6; }
37976 if test "${wx_cv_type_sa_handler+set}" = set; then
37977   echo $ECHO_N "(cached) $ECHO_C" >&6
37978 else
37979
37980                 ac_ext=cpp
37981 ac_cpp='$CXXCPP $CPPFLAGS'
37982 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37983 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37984 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
37985
37986         cat >conftest.$ac_ext <<_ACEOF
37987 /* confdefs.h.  */
37988 _ACEOF
37989 cat confdefs.h >>conftest.$ac_ext
37990 cat >>conftest.$ac_ext <<_ACEOF
37991 /* end confdefs.h.  */
37992 #include <signal.h>
37993 int
37994 main ()
37995 {
37996
37997                         extern void testSigHandler(int);
37998
37999                         struct sigaction sa;
38000                         sa.sa_handler = testSigHandler;
38001
38002   ;
38003   return 0;
38004 }
38005 _ACEOF
38006 rm -f conftest.$ac_objext
38007 if { (ac_try="$ac_compile"
38008 case "(($ac_try" in
38009   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38010   *) ac_try_echo=$ac_try;;
38011 esac
38012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38013   (eval "$ac_compile") 2>conftest.er1
38014   ac_status=$?
38015   grep -v '^ *+' conftest.er1 >conftest.err
38016   rm -f conftest.er1
38017   cat conftest.err >&5
38018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38019   (exit $ac_status); } && {
38020          test -z "$ac_cxx_werror_flag" ||
38021          test ! -s conftest.err
38022        } && test -s conftest.$ac_objext; then
38023
38024                         wx_cv_type_sa_handler=int
38025
38026 else
38027   echo "$as_me: failed program was:" >&5
38028 sed 's/^/| /' conftest.$ac_ext >&5
38029
38030
38031                         wx_cv_type_sa_handler=void
38032
38033 fi
38034
38035 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38036         ac_ext=c
38037 ac_cpp='$CPP $CPPFLAGS'
38038 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38039 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38040 ac_compiler_gnu=$ac_cv_c_compiler_gnu
38041
38042
38043 fi
38044 { echo "$as_me:$LINENO: result: $wx_cv_type_sa_handler" >&5
38045 echo "${ECHO_T}$wx_cv_type_sa_handler" >&6; }
38046
38047       cat >>confdefs.h <<_ACEOF
38048 #define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
38049 _ACEOF
38050
38051     fi
38052 fi
38053
38054 if test "$wxUSE_STACKWALKER" = "yes" -a "$wxUSE_UNIX" = "yes"; then
38055     { echo "$as_me:$LINENO: checking for backtrace() in <execinfo.h>" >&5
38056 echo $ECHO_N "checking for backtrace() in <execinfo.h>... $ECHO_C" >&6; }
38057 if test "${wx_cv_func_backtrace+set}" = set; then
38058   echo $ECHO_N "(cached) $ECHO_C" >&6
38059 else
38060
38061             ac_ext=cpp
38062 ac_cpp='$CXXCPP $CPPFLAGS'
38063 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38064 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38065 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
38066
38067             cat >conftest.$ac_ext <<_ACEOF
38068 /* confdefs.h.  */
38069 _ACEOF
38070 cat confdefs.h >>conftest.$ac_ext
38071 cat >>conftest.$ac_ext <<_ACEOF
38072 /* end confdefs.h.  */
38073 #include <execinfo.h>
38074 int
38075 main ()
38076 {
38077
38078                     void *trace[1];
38079                     char **messages;
38080
38081                     backtrace(trace, 1);
38082                     messages = backtrace_symbols(trace, 1);
38083
38084   ;
38085   return 0;
38086 }
38087 _ACEOF
38088 rm -f conftest.$ac_objext
38089 if { (ac_try="$ac_compile"
38090 case "(($ac_try" in
38091   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38092   *) ac_try_echo=$ac_try;;
38093 esac
38094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38095   (eval "$ac_compile") 2>conftest.er1
38096   ac_status=$?
38097   grep -v '^ *+' conftest.er1 >conftest.err
38098   rm -f conftest.er1
38099   cat conftest.err >&5
38100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38101   (exit $ac_status); } && {
38102          test -z "$ac_cxx_werror_flag" ||
38103          test ! -s conftest.err
38104        } && test -s conftest.$ac_objext; then
38105   wx_cv_func_backtrace=yes
38106 else
38107   echo "$as_me: failed program was:" >&5
38108 sed 's/^/| /' conftest.$ac_ext >&5
38109
38110         wx_cv_func_backtrace=no
38111
38112 fi
38113
38114 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38115             ac_ext=c
38116 ac_cpp='$CPP $CPPFLAGS'
38117 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38118 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38119 ac_compiler_gnu=$ac_cv_c_compiler_gnu
38120
38121
38122
38123 fi
38124 { echo "$as_me:$LINENO: result: $wx_cv_func_backtrace" >&5
38125 echo "${ECHO_T}$wx_cv_func_backtrace" >&6; }
38126
38127
38128     if test "$wx_cv_func_backtrace" = "no"; then
38129         { echo "$as_me:$LINENO: WARNING: backtrace() is not available, wxStackWalker will not be available" >&5
38130 echo "$as_me: WARNING: backtrace() is not available, wxStackWalker will not be available" >&2;}
38131         wxUSE_STACKWALKER=no
38132     else
38133         { echo "$as_me:$LINENO: checking for __cxa_demangle() in <cxxabi.h>" >&5
38134 echo $ECHO_N "checking for __cxa_demangle() in <cxxabi.h>... $ECHO_C" >&6; }
38135 if test "${wx_cv_func_cxa_demangle+set}" = set; then
38136   echo $ECHO_N "(cached) $ECHO_C" >&6
38137 else
38138
38139                 ac_ext=cpp
38140 ac_cpp='$CXXCPP $CPPFLAGS'
38141 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38142 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38143 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
38144
38145                 cat >conftest.$ac_ext <<_ACEOF
38146 /* confdefs.h.  */
38147 _ACEOF
38148 cat confdefs.h >>conftest.$ac_ext
38149 cat >>conftest.$ac_ext <<_ACEOF
38150 /* end confdefs.h.  */
38151 #include <cxxabi.h>
38152 int
38153 main ()
38154 {
38155
38156                         int rc;
38157                         __cxxabiv1::__cxa_demangle("foo", 0, 0, &rc);
38158
38159   ;
38160   return 0;
38161 }
38162 _ACEOF
38163 rm -f conftest.$ac_objext conftest$ac_exeext
38164 if { (ac_try="$ac_link"
38165 case "(($ac_try" in
38166   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38167   *) ac_try_echo=$ac_try;;
38168 esac
38169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38170   (eval "$ac_link") 2>conftest.er1
38171   ac_status=$?
38172   grep -v '^ *+' conftest.er1 >conftest.err
38173   rm -f conftest.er1
38174   cat conftest.err >&5
38175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38176   (exit $ac_status); } && {
38177          test -z "$ac_cxx_werror_flag" ||
38178          test ! -s conftest.err
38179        } && test -s conftest$ac_exeext &&
38180        $as_test_x conftest$ac_exeext; then
38181   wx_cv_func_cxa_demangle=yes
38182 else
38183   echo "$as_me: failed program was:" >&5
38184 sed 's/^/| /' conftest.$ac_ext >&5
38185
38186         wx_cv_func_cxa_demangle=no
38187
38188 fi
38189
38190 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38191       conftest$ac_exeext conftest.$ac_ext
38192                 ac_ext=c
38193 ac_cpp='$CPP $CPPFLAGS'
38194 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38195 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38196 ac_compiler_gnu=$ac_cv_c_compiler_gnu
38197
38198
38199
38200 fi
38201 { echo "$as_me:$LINENO: result: $wx_cv_func_cxa_demangle" >&5
38202 echo "${ECHO_T}$wx_cv_func_cxa_demangle" >&6; }
38203
38204         if test "$wx_cv_func_cxa_demangle" = "yes"; then
38205             cat >>confdefs.h <<\_ACEOF
38206 #define HAVE_CXA_DEMANGLE 1
38207 _ACEOF
38208
38209         fi
38210     fi
38211 fi
38212
38213 if test "$wxUSE_STACKWALKER" = "yes" -a "$USE_WIN32" != 1 -a "$USE_UNIX" != 1; then
38214     { echo "$as_me:$LINENO: WARNING: wxStackWalker is only available on Win32 and UNIX... disabled" >&5
38215 echo "$as_me: WARNING: wxStackWalker is only available on Win32 and UNIX... disabled" >&2;}
38216     wxUSE_STACKWALKER=no
38217 fi
38218
38219
38220
38221
38222 for ac_func in mkstemp mktemp
38223 do
38224 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38225 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38226 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38227 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38228   echo $ECHO_N "(cached) $ECHO_C" >&6
38229 else
38230   cat >conftest.$ac_ext <<_ACEOF
38231 /* confdefs.h.  */
38232 _ACEOF
38233 cat confdefs.h >>conftest.$ac_ext
38234 cat >>conftest.$ac_ext <<_ACEOF
38235 /* end confdefs.h.  */
38236 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38237    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38238 #define $ac_func innocuous_$ac_func
38239
38240 /* System header to define __stub macros and hopefully few prototypes,
38241     which can conflict with char $ac_func (); below.
38242     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38243     <limits.h> exists even on freestanding compilers.  */
38244
38245 #ifdef __STDC__
38246 # include <limits.h>
38247 #else
38248 # include <assert.h>
38249 #endif
38250
38251 #undef $ac_func
38252
38253 /* Override any GCC internal prototype to avoid an error.
38254    Use char because int might match the return type of a GCC
38255    builtin and then its argument prototype would still apply.  */
38256 #ifdef __cplusplus
38257 extern "C"
38258 #endif
38259 char $ac_func ();
38260 /* The GNU C library defines this for functions which it implements
38261     to always fail with ENOSYS.  Some functions are actually named
38262     something starting with __ and the normal name is an alias.  */
38263 #if defined __stub_$ac_func || defined __stub___$ac_func
38264 choke me
38265 #endif
38266
38267 int
38268 main ()
38269 {
38270 return $ac_func ();
38271   ;
38272   return 0;
38273 }
38274 _ACEOF
38275 rm -f conftest.$ac_objext conftest$ac_exeext
38276 if { (ac_try="$ac_link"
38277 case "(($ac_try" in
38278   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38279   *) ac_try_echo=$ac_try;;
38280 esac
38281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38282   (eval "$ac_link") 2>conftest.er1
38283   ac_status=$?
38284   grep -v '^ *+' conftest.er1 >conftest.err
38285   rm -f conftest.er1
38286   cat conftest.err >&5
38287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38288   (exit $ac_status); } && {
38289          test -z "$ac_c_werror_flag" ||
38290          test ! -s conftest.err
38291        } && test -s conftest$ac_exeext &&
38292        $as_test_x conftest$ac_exeext; then
38293   eval "$as_ac_var=yes"
38294 else
38295   echo "$as_me: failed program was:" >&5
38296 sed 's/^/| /' conftest.$ac_ext >&5
38297
38298         eval "$as_ac_var=no"
38299 fi
38300
38301 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38302       conftest$ac_exeext conftest.$ac_ext
38303 fi
38304 ac_res=`eval echo '${'$as_ac_var'}'`
38305                { echo "$as_me:$LINENO: result: $ac_res" >&5
38306 echo "${ECHO_T}$ac_res" >&6; }
38307 if test `eval echo '${'$as_ac_var'}'` = yes; then
38308   cat >>confdefs.h <<_ACEOF
38309 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38310 _ACEOF
38311  break
38312 fi
38313 done
38314
38315
38316 { echo "$as_me:$LINENO: checking for statfs" >&5
38317 echo $ECHO_N "checking for statfs... $ECHO_C" >&6; }
38318 if test "${wx_cv_func_statfs+set}" = set; then
38319   echo $ECHO_N "(cached) $ECHO_C" >&6
38320 else
38321   cat >conftest.$ac_ext <<_ACEOF
38322 /* confdefs.h.  */
38323 _ACEOF
38324 cat confdefs.h >>conftest.$ac_ext
38325 cat >>conftest.$ac_ext <<_ACEOF
38326 /* end confdefs.h.  */
38327
38328              #if defined(__BSD__)
38329              #include <sys/param.h>
38330              #include <sys/mount.h>
38331              #else
38332              #include <sys/vfs.h>
38333              #endif
38334
38335 int
38336 main ()
38337 {
38338
38339              long l;
38340              struct statfs fs;
38341              statfs("/", &fs);
38342              l = fs.f_bsize;
38343              l += fs.f_blocks;
38344              l += fs.f_bavail;
38345
38346   ;
38347   return 0;
38348 }
38349 _ACEOF
38350 rm -f conftest.$ac_objext
38351 if { (ac_try="$ac_compile"
38352 case "(($ac_try" in
38353   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38354   *) ac_try_echo=$ac_try;;
38355 esac
38356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38357   (eval "$ac_compile") 2>conftest.er1
38358   ac_status=$?
38359   grep -v '^ *+' conftest.er1 >conftest.err
38360   rm -f conftest.er1
38361   cat conftest.err >&5
38362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38363   (exit $ac_status); } && {
38364          test -z "$ac_c_werror_flag" ||
38365          test ! -s conftest.err
38366        } && test -s conftest.$ac_objext; then
38367   wx_cv_func_statfs=yes
38368 else
38369   echo "$as_me: failed program was:" >&5
38370 sed 's/^/| /' conftest.$ac_ext >&5
38371
38372         wx_cv_func_statfs=no
38373
38374 fi
38375
38376 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38377
38378 fi
38379 { echo "$as_me:$LINENO: result: $wx_cv_func_statfs" >&5
38380 echo "${ECHO_T}$wx_cv_func_statfs" >&6; }
38381
38382 if test "$wx_cv_func_statfs" = "yes"; then
38383         { echo "$as_me:$LINENO: checking for statfs declaration" >&5
38384 echo $ECHO_N "checking for statfs declaration... $ECHO_C" >&6; }
38385 if test "${wx_cv_func_statfs_decl+set}" = set; then
38386   echo $ECHO_N "(cached) $ECHO_C" >&6
38387 else
38388   ac_ext=cpp
38389 ac_cpp='$CXXCPP $CPPFLAGS'
38390 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38391 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38392 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
38393
38394         cat >conftest.$ac_ext <<_ACEOF
38395 /* confdefs.h.  */
38396 _ACEOF
38397 cat confdefs.h >>conftest.$ac_ext
38398 cat >>conftest.$ac_ext <<_ACEOF
38399 /* end confdefs.h.  */
38400
38401                  #if defined(__BSD__)
38402                  #include <sys/param.h>
38403                  #include <sys/mount.h>
38404                  #else
38405                  #include <sys/vfs.h>
38406                  #endif
38407
38408 int
38409 main ()
38410 {
38411
38412                 struct statfs fs;
38413                 statfs("", &fs);
38414
38415   ;
38416   return 0;
38417 }
38418 _ACEOF
38419 rm -f conftest.$ac_objext
38420 if { (ac_try="$ac_compile"
38421 case "(($ac_try" in
38422   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38423   *) ac_try_echo=$ac_try;;
38424 esac
38425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38426   (eval "$ac_compile") 2>conftest.er1
38427   ac_status=$?
38428   grep -v '^ *+' conftest.er1 >conftest.err
38429   rm -f conftest.er1
38430   cat conftest.err >&5
38431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38432   (exit $ac_status); } && {
38433          test -z "$ac_cxx_werror_flag" ||
38434          test ! -s conftest.err
38435        } && test -s conftest.$ac_objext; then
38436   wx_cv_func_statfs_decl=yes
38437 else
38438   echo "$as_me: failed program was:" >&5
38439 sed 's/^/| /' conftest.$ac_ext >&5
38440
38441         wx_cv_func_statfs_decl=no
38442
38443 fi
38444
38445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38446         ac_ext=c
38447 ac_cpp='$CPP $CPPFLAGS'
38448 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38449 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38450 ac_compiler_gnu=$ac_cv_c_compiler_gnu
38451
38452
38453 fi
38454 { echo "$as_me:$LINENO: result: $wx_cv_func_statfs_decl" >&5
38455 echo "${ECHO_T}$wx_cv_func_statfs_decl" >&6; }
38456
38457     if test "$wx_cv_func_statfs_decl" = "yes"; then
38458         cat >>confdefs.h <<\_ACEOF
38459 #define HAVE_STATFS_DECL 1
38460 _ACEOF
38461
38462     fi
38463
38464     wx_cv_type_statvfs_t="struct statfs"
38465     cat >>confdefs.h <<\_ACEOF
38466 #define HAVE_STATFS 1
38467 _ACEOF
38468
38469 else
38470     { echo "$as_me:$LINENO: checking for statvfs" >&5
38471 echo $ECHO_N "checking for statvfs... $ECHO_C" >&6; }
38472 if test "${wx_cv_func_statvfs+set}" = set; then
38473   echo $ECHO_N "(cached) $ECHO_C" >&6
38474 else
38475   cat >conftest.$ac_ext <<_ACEOF
38476 /* confdefs.h.  */
38477 _ACEOF
38478 cat confdefs.h >>conftest.$ac_ext
38479 cat >>conftest.$ac_ext <<_ACEOF
38480 /* end confdefs.h.  */
38481
38482                 #include <stddef.h>
38483                 #include <sys/statvfs.h>
38484
38485 int
38486 main ()
38487 {
38488
38489                 statvfs("/", NULL);
38490
38491   ;
38492   return 0;
38493 }
38494 _ACEOF
38495 rm -f conftest.$ac_objext
38496 if { (ac_try="$ac_compile"
38497 case "(($ac_try" in
38498   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38499   *) ac_try_echo=$ac_try;;
38500 esac
38501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38502   (eval "$ac_compile") 2>conftest.er1
38503   ac_status=$?
38504   grep -v '^ *+' conftest.er1 >conftest.err
38505   rm -f conftest.er1
38506   cat conftest.err >&5
38507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38508   (exit $ac_status); } && {
38509          test -z "$ac_c_werror_flag" ||
38510          test ! -s conftest.err
38511        } && test -s conftest.$ac_objext; then
38512   wx_cv_func_statvfs=yes
38513 else
38514   echo "$as_me: failed program was:" >&5
38515 sed 's/^/| /' conftest.$ac_ext >&5
38516
38517         wx_cv_func_statvfs=no
38518
38519 fi
38520
38521 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38522
38523 fi
38524 { echo "$as_me:$LINENO: result: $wx_cv_func_statvfs" >&5
38525 echo "${ECHO_T}$wx_cv_func_statvfs" >&6; }
38526
38527     if test "$wx_cv_func_statvfs" = "yes"; then
38528                                                                 { echo "$as_me:$LINENO: checking for statvfs argument type" >&5
38529 echo $ECHO_N "checking for statvfs argument type... $ECHO_C" >&6; }
38530 if test "${wx_cv_type_statvfs_t+set}" = set; then
38531   echo $ECHO_N "(cached) $ECHO_C" >&6
38532 else
38533   ac_ext=cpp
38534 ac_cpp='$CXXCPP $CPPFLAGS'
38535 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38536 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38537 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
38538
38539             cat >conftest.$ac_ext <<_ACEOF
38540 /* confdefs.h.  */
38541 _ACEOF
38542 cat confdefs.h >>conftest.$ac_ext
38543 cat >>conftest.$ac_ext <<_ACEOF
38544 /* end confdefs.h.  */
38545
38546                     #include <sys/statvfs.h>
38547
38548 int
38549 main ()
38550 {
38551
38552                     long l;
38553                     statvfs_t fs;
38554                     statvfs("/", &fs);
38555                     l = fs.f_bsize;
38556                     l += fs.f_blocks;
38557                     l += fs.f_bavail;
38558
38559   ;
38560   return 0;
38561 }
38562 _ACEOF
38563 rm -f conftest.$ac_objext
38564 if { (ac_try="$ac_compile"
38565 case "(($ac_try" in
38566   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38567   *) ac_try_echo=$ac_try;;
38568 esac
38569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38570   (eval "$ac_compile") 2>conftest.er1
38571   ac_status=$?
38572   grep -v '^ *+' conftest.er1 >conftest.err
38573   rm -f conftest.er1
38574   cat conftest.err >&5
38575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38576   (exit $ac_status); } && {
38577          test -z "$ac_cxx_werror_flag" ||
38578          test ! -s conftest.err
38579        } && test -s conftest.$ac_objext; then
38580   wx_cv_type_statvfs_t=statvfs_t
38581 else
38582   echo "$as_me: failed program was:" >&5
38583 sed 's/^/| /' conftest.$ac_ext >&5
38584
38585
38586                     cat >conftest.$ac_ext <<_ACEOF
38587 /* confdefs.h.  */
38588 _ACEOF
38589 cat confdefs.h >>conftest.$ac_ext
38590 cat >>conftest.$ac_ext <<_ACEOF
38591 /* end confdefs.h.  */
38592
38593                             #include <sys/statvfs.h>
38594
38595 int
38596 main ()
38597 {
38598
38599                             long l;
38600                             struct statvfs fs;
38601                             statvfs("/", &fs);
38602                             l = fs.f_bsize;
38603                             l += fs.f_blocks;
38604                             l += fs.f_bavail;
38605
38606   ;
38607   return 0;
38608 }
38609 _ACEOF
38610 rm -f conftest.$ac_objext
38611 if { (ac_try="$ac_compile"
38612 case "(($ac_try" in
38613   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38614   *) ac_try_echo=$ac_try;;
38615 esac
38616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38617   (eval "$ac_compile") 2>conftest.er1
38618   ac_status=$?
38619   grep -v '^ *+' conftest.er1 >conftest.err
38620   rm -f conftest.er1
38621   cat conftest.err >&5
38622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38623   (exit $ac_status); } && {
38624          test -z "$ac_cxx_werror_flag" ||
38625          test ! -s conftest.err
38626        } && test -s conftest.$ac_objext; then
38627   wx_cv_type_statvfs_t="struct statvfs"
38628 else
38629   echo "$as_me: failed program was:" >&5
38630 sed 's/^/| /' conftest.$ac_ext >&5
38631
38632         wx_cv_type_statvfs_t="unknown"
38633
38634 fi
38635
38636 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38637
38638
38639 fi
38640
38641 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38642             ac_ext=c
38643 ac_cpp='$CPP $CPPFLAGS'
38644 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38645 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38646 ac_compiler_gnu=$ac_cv_c_compiler_gnu
38647
38648
38649 fi
38650 { echo "$as_me:$LINENO: result: $wx_cv_type_statvfs_t" >&5
38651 echo "${ECHO_T}$wx_cv_type_statvfs_t" >&6; }
38652
38653         if test "$wx_cv_type_statvfs_t" != "unknown"; then
38654             cat >>confdefs.h <<\_ACEOF
38655 #define HAVE_STATVFS 1
38656 _ACEOF
38657
38658         fi
38659     else
38660                 wx_cv_type_statvfs_t="unknown"
38661     fi
38662 fi
38663
38664 if test "$wx_cv_type_statvfs_t" != "unknown"; then
38665     cat >>confdefs.h <<_ACEOF
38666 #define WX_STATFS_T $wx_cv_type_statvfs_t
38667 _ACEOF
38668
38669 else
38670     { echo "$as_me:$LINENO: WARNING: wxGetDiskSpace() function won't work without statfs()" >&5
38671 echo "$as_me: WARNING: wxGetDiskSpace() function won't work without statfs()" >&2;}
38672 fi
38673
38674 if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
38675
38676
38677 for ac_func in fcntl flock
38678 do
38679 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38680 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38681 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38682 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38683   echo $ECHO_N "(cached) $ECHO_C" >&6
38684 else
38685   cat >conftest.$ac_ext <<_ACEOF
38686 /* confdefs.h.  */
38687 _ACEOF
38688 cat confdefs.h >>conftest.$ac_ext
38689 cat >>conftest.$ac_ext <<_ACEOF
38690 /* end confdefs.h.  */
38691 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38692    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38693 #define $ac_func innocuous_$ac_func
38694
38695 /* System header to define __stub macros and hopefully few prototypes,
38696     which can conflict with char $ac_func (); below.
38697     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38698     <limits.h> exists even on freestanding compilers.  */
38699
38700 #ifdef __STDC__
38701 # include <limits.h>
38702 #else
38703 # include <assert.h>
38704 #endif
38705
38706 #undef $ac_func
38707
38708 /* Override any GCC internal prototype to avoid an error.
38709    Use char because int might match the return type of a GCC
38710    builtin and then its argument prototype would still apply.  */
38711 #ifdef __cplusplus
38712 extern "C"
38713 #endif
38714 char $ac_func ();
38715 /* The GNU C library defines this for functions which it implements
38716     to always fail with ENOSYS.  Some functions are actually named
38717     something starting with __ and the normal name is an alias.  */
38718 #if defined __stub_$ac_func || defined __stub___$ac_func
38719 choke me
38720 #endif
38721
38722 int
38723 main ()
38724 {
38725 return $ac_func ();
38726   ;
38727   return 0;
38728 }
38729 _ACEOF
38730 rm -f conftest.$ac_objext conftest$ac_exeext
38731 if { (ac_try="$ac_link"
38732 case "(($ac_try" in
38733   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38734   *) ac_try_echo=$ac_try;;
38735 esac
38736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38737   (eval "$ac_link") 2>conftest.er1
38738   ac_status=$?
38739   grep -v '^ *+' conftest.er1 >conftest.err
38740   rm -f conftest.er1
38741   cat conftest.err >&5
38742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38743   (exit $ac_status); } && {
38744          test -z "$ac_c_werror_flag" ||
38745          test ! -s conftest.err
38746        } && test -s conftest$ac_exeext &&
38747        $as_test_x conftest$ac_exeext; then
38748   eval "$as_ac_var=yes"
38749 else
38750   echo "$as_me: failed program was:" >&5
38751 sed 's/^/| /' conftest.$ac_ext >&5
38752
38753         eval "$as_ac_var=no"
38754 fi
38755
38756 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38757       conftest$ac_exeext conftest.$ac_ext
38758 fi
38759 ac_res=`eval echo '${'$as_ac_var'}'`
38760                { echo "$as_me:$LINENO: result: $ac_res" >&5
38761 echo "${ECHO_T}$ac_res" >&6; }
38762 if test `eval echo '${'$as_ac_var'}'` = yes; then
38763   cat >>confdefs.h <<_ACEOF
38764 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38765 _ACEOF
38766  break
38767 fi
38768 done
38769
38770
38771     if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
38772         { echo "$as_me:$LINENO: WARNING: wxSingleInstanceChecker not available" >&5
38773 echo "$as_me: WARNING: wxSingleInstanceChecker not available" >&2;}
38774         wxUSE_SNGLINST_CHECKER=no
38775     fi
38776 fi
38777
38778
38779
38780 for ac_func in setenv putenv
38781 do
38782 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38783 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38784 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38785 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38786   echo $ECHO_N "(cached) $ECHO_C" >&6
38787 else
38788   cat >conftest.$ac_ext <<_ACEOF
38789 /* confdefs.h.  */
38790 _ACEOF
38791 cat confdefs.h >>conftest.$ac_ext
38792 cat >>conftest.$ac_ext <<_ACEOF
38793 /* end confdefs.h.  */
38794 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38795    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38796 #define $ac_func innocuous_$ac_func
38797
38798 /* System header to define __stub macros and hopefully few prototypes,
38799     which can conflict with char $ac_func (); below.
38800     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38801     <limits.h> exists even on freestanding compilers.  */
38802
38803 #ifdef __STDC__
38804 # include <limits.h>
38805 #else
38806 # include <assert.h>
38807 #endif
38808
38809 #undef $ac_func
38810
38811 /* Override any GCC internal prototype to avoid an error.
38812    Use char because int might match the return type of a GCC
38813    builtin and then its argument prototype would still apply.  */
38814 #ifdef __cplusplus
38815 extern "C"
38816 #endif
38817 char $ac_func ();
38818 /* The GNU C library defines this for functions which it implements
38819     to always fail with ENOSYS.  Some functions are actually named
38820     something starting with __ and the normal name is an alias.  */
38821 #if defined __stub_$ac_func || defined __stub___$ac_func
38822 choke me
38823 #endif
38824
38825 int
38826 main ()
38827 {
38828 return $ac_func ();
38829   ;
38830   return 0;
38831 }
38832 _ACEOF
38833 rm -f conftest.$ac_objext conftest$ac_exeext
38834 if { (ac_try="$ac_link"
38835 case "(($ac_try" in
38836   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38837   *) ac_try_echo=$ac_try;;
38838 esac
38839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38840   (eval "$ac_link") 2>conftest.er1
38841   ac_status=$?
38842   grep -v '^ *+' conftest.er1 >conftest.err
38843   rm -f conftest.er1
38844   cat conftest.err >&5
38845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38846   (exit $ac_status); } && {
38847          test -z "$ac_c_werror_flag" ||
38848          test ! -s conftest.err
38849        } && test -s conftest$ac_exeext &&
38850        $as_test_x conftest$ac_exeext; then
38851   eval "$as_ac_var=yes"
38852 else
38853   echo "$as_me: failed program was:" >&5
38854 sed 's/^/| /' conftest.$ac_ext >&5
38855
38856         eval "$as_ac_var=no"
38857 fi
38858
38859 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38860       conftest$ac_exeext conftest.$ac_ext
38861 fi
38862 ac_res=`eval echo '${'$as_ac_var'}'`
38863                { echo "$as_me:$LINENO: result: $ac_res" >&5
38864 echo "${ECHO_T}$ac_res" >&6; }
38865 if test `eval echo '${'$as_ac_var'}'` = yes; then
38866   cat >>confdefs.h <<_ACEOF
38867 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38868 _ACEOF
38869  break
38870 fi
38871 done
38872
38873 if test "$ac_cv_func_setenv" = "yes"; then
38874
38875 for ac_func in unsetenv
38876 do
38877 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38878 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38879 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38880 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38881   echo $ECHO_N "(cached) $ECHO_C" >&6
38882 else
38883   cat >conftest.$ac_ext <<_ACEOF
38884 /* confdefs.h.  */
38885 _ACEOF
38886 cat confdefs.h >>conftest.$ac_ext
38887 cat >>conftest.$ac_ext <<_ACEOF
38888 /* end confdefs.h.  */
38889 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38890    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38891 #define $ac_func innocuous_$ac_func
38892
38893 /* System header to define __stub macros and hopefully few prototypes,
38894     which can conflict with char $ac_func (); below.
38895     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38896     <limits.h> exists even on freestanding compilers.  */
38897
38898 #ifdef __STDC__
38899 # include <limits.h>
38900 #else
38901 # include <assert.h>
38902 #endif
38903
38904 #undef $ac_func
38905
38906 /* Override any GCC internal prototype to avoid an error.
38907    Use char because int might match the return type of a GCC
38908    builtin and then its argument prototype would still apply.  */
38909 #ifdef __cplusplus
38910 extern "C"
38911 #endif
38912 char $ac_func ();
38913 /* The GNU C library defines this for functions which it implements
38914     to always fail with ENOSYS.  Some functions are actually named
38915     something starting with __ and the normal name is an alias.  */
38916 #if defined __stub_$ac_func || defined __stub___$ac_func
38917 choke me
38918 #endif
38919
38920 int
38921 main ()
38922 {
38923 return $ac_func ();
38924   ;
38925   return 0;
38926 }
38927 _ACEOF
38928 rm -f conftest.$ac_objext conftest$ac_exeext
38929 if { (ac_try="$ac_link"
38930 case "(($ac_try" in
38931   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38932   *) ac_try_echo=$ac_try;;
38933 esac
38934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38935   (eval "$ac_link") 2>conftest.er1
38936   ac_status=$?
38937   grep -v '^ *+' conftest.er1 >conftest.err
38938   rm -f conftest.er1
38939   cat conftest.err >&5
38940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38941   (exit $ac_status); } && {
38942          test -z "$ac_c_werror_flag" ||
38943          test ! -s conftest.err
38944        } && test -s conftest$ac_exeext &&
38945        $as_test_x conftest$ac_exeext; then
38946   eval "$as_ac_var=yes"
38947 else
38948   echo "$as_me: failed program was:" >&5
38949 sed 's/^/| /' conftest.$ac_ext >&5
38950
38951         eval "$as_ac_var=no"
38952 fi
38953
38954 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38955       conftest$ac_exeext conftest.$ac_ext
38956 fi
38957 ac_res=`eval echo '${'$as_ac_var'}'`
38958                { echo "$as_me:$LINENO: result: $ac_res" >&5
38959 echo "${ECHO_T}$ac_res" >&6; }
38960 if test `eval echo '${'$as_ac_var'}'` = yes; then
38961   cat >>confdefs.h <<_ACEOF
38962 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38963 _ACEOF
38964
38965 fi
38966 done
38967
38968 fi
38969
38970 HAVE_SOME_SLEEP_FUNC=0
38971 if test "$USE_BEOS" = 1; then
38972             cat >>confdefs.h <<\_ACEOF
38973 #define HAVE_SLEEP 1
38974 _ACEOF
38975
38976     HAVE_SOME_SLEEP_FUNC=1
38977 fi
38978
38979 if test "$USE_DARWIN" = 1; then
38980             cat >>confdefs.h <<\_ACEOF
38981 #define HAVE_USLEEP 1
38982 _ACEOF
38983
38984     HAVE_SOME_SLEEP_FUNC=1
38985 fi
38986
38987 if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
38988         POSIX4_LINK=
38989
38990 for ac_func in nanosleep
38991 do
38992 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38993 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38994 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38995 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38996   echo $ECHO_N "(cached) $ECHO_C" >&6
38997 else
38998   cat >conftest.$ac_ext <<_ACEOF
38999 /* confdefs.h.  */
39000 _ACEOF
39001 cat confdefs.h >>conftest.$ac_ext
39002 cat >>conftest.$ac_ext <<_ACEOF
39003 /* end confdefs.h.  */
39004 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39005    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39006 #define $ac_func innocuous_$ac_func
39007
39008 /* System header to define __stub macros and hopefully few prototypes,
39009     which can conflict with char $ac_func (); below.
39010     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39011     <limits.h> exists even on freestanding compilers.  */
39012
39013 #ifdef __STDC__
39014 # include <limits.h>
39015 #else
39016 # include <assert.h>
39017 #endif
39018
39019 #undef $ac_func
39020
39021 /* Override any GCC internal prototype to avoid an error.
39022    Use char because int might match the return type of a GCC
39023    builtin and then its argument prototype would still apply.  */
39024 #ifdef __cplusplus
39025 extern "C"
39026 #endif
39027 char $ac_func ();
39028 /* The GNU C library defines this for functions which it implements
39029     to always fail with ENOSYS.  Some functions are actually named
39030     something starting with __ and the normal name is an alias.  */
39031 #if defined __stub_$ac_func || defined __stub___$ac_func
39032 choke me
39033 #endif
39034
39035 int
39036 main ()
39037 {
39038 return $ac_func ();
39039   ;
39040   return 0;
39041 }
39042 _ACEOF
39043 rm -f conftest.$ac_objext conftest$ac_exeext
39044 if { (ac_try="$ac_link"
39045 case "(($ac_try" in
39046   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39047   *) ac_try_echo=$ac_try;;
39048 esac
39049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39050   (eval "$ac_link") 2>conftest.er1
39051   ac_status=$?
39052   grep -v '^ *+' conftest.er1 >conftest.err
39053   rm -f conftest.er1
39054   cat conftest.err >&5
39055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39056   (exit $ac_status); } && {
39057          test -z "$ac_c_werror_flag" ||
39058          test ! -s conftest.err
39059        } && test -s conftest$ac_exeext &&
39060        $as_test_x conftest$ac_exeext; then
39061   eval "$as_ac_var=yes"
39062 else
39063   echo "$as_me: failed program was:" >&5
39064 sed 's/^/| /' conftest.$ac_ext >&5
39065
39066         eval "$as_ac_var=no"
39067 fi
39068
39069 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39070       conftest$ac_exeext conftest.$ac_ext
39071 fi
39072 ac_res=`eval echo '${'$as_ac_var'}'`
39073                { echo "$as_me:$LINENO: result: $ac_res" >&5
39074 echo "${ECHO_T}$ac_res" >&6; }
39075 if test `eval echo '${'$as_ac_var'}'` = yes; then
39076   cat >>confdefs.h <<_ACEOF
39077 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39078 _ACEOF
39079  cat >>confdefs.h <<\_ACEOF
39080 #define HAVE_NANOSLEEP 1
39081 _ACEOF
39082
39083 else
39084
39085             { echo "$as_me:$LINENO: checking for nanosleep in -lposix4" >&5
39086 echo $ECHO_N "checking for nanosleep in -lposix4... $ECHO_C" >&6; }
39087 if test "${ac_cv_lib_posix4_nanosleep+set}" = set; then
39088   echo $ECHO_N "(cached) $ECHO_C" >&6
39089 else
39090   ac_check_lib_save_LIBS=$LIBS
39091 LIBS="-lposix4  $LIBS"
39092 cat >conftest.$ac_ext <<_ACEOF
39093 /* confdefs.h.  */
39094 _ACEOF
39095 cat confdefs.h >>conftest.$ac_ext
39096 cat >>conftest.$ac_ext <<_ACEOF
39097 /* end confdefs.h.  */
39098
39099 /* Override any GCC internal prototype to avoid an error.
39100    Use char because int might match the return type of a GCC
39101    builtin and then its argument prototype would still apply.  */
39102 #ifdef __cplusplus
39103 extern "C"
39104 #endif
39105 char nanosleep ();
39106 int
39107 main ()
39108 {
39109 return nanosleep ();
39110   ;
39111   return 0;
39112 }
39113 _ACEOF
39114 rm -f conftest.$ac_objext conftest$ac_exeext
39115 if { (ac_try="$ac_link"
39116 case "(($ac_try" in
39117   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39118   *) ac_try_echo=$ac_try;;
39119 esac
39120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39121   (eval "$ac_link") 2>conftest.er1
39122   ac_status=$?
39123   grep -v '^ *+' conftest.er1 >conftest.err
39124   rm -f conftest.er1
39125   cat conftest.err >&5
39126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39127   (exit $ac_status); } && {
39128          test -z "$ac_c_werror_flag" ||
39129          test ! -s conftest.err
39130        } && test -s conftest$ac_exeext &&
39131        $as_test_x conftest$ac_exeext; then
39132   ac_cv_lib_posix4_nanosleep=yes
39133 else
39134   echo "$as_me: failed program was:" >&5
39135 sed 's/^/| /' conftest.$ac_ext >&5
39136
39137         ac_cv_lib_posix4_nanosleep=no
39138 fi
39139
39140 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39141       conftest$ac_exeext conftest.$ac_ext
39142 LIBS=$ac_check_lib_save_LIBS
39143 fi
39144 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_nanosleep" >&5
39145 echo "${ECHO_T}$ac_cv_lib_posix4_nanosleep" >&6; }
39146 if test $ac_cv_lib_posix4_nanosleep = yes; then
39147
39148                     cat >>confdefs.h <<\_ACEOF
39149 #define HAVE_NANOSLEEP 1
39150 _ACEOF
39151
39152                     POSIX4_LINK=" -lposix4"
39153
39154 else
39155
39156
39157   for wx_func in usleep
39158   do
39159     { echo "$as_me:$LINENO: checking for $wx_func" >&5
39160 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
39161 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
39162   echo $ECHO_N "(cached) $ECHO_C" >&6
39163 else
39164
39165         cat >conftest.$ac_ext <<_ACEOF
39166
39167             /* confdefs.h.  */
39168 _ACEOF
39169 cat confdefs.h >>conftest.$ac_ext
39170 cat >>conftest.$ac_ext <<_ACEOF
39171 /* end confdefs.h.  */
39172
39173
39174                 $ac_includes_default
39175
39176 int
39177 main ()
39178 {
39179
39180                 #ifndef $wx_func
39181                   &$wx_func;
39182                 #endif
39183
39184
39185   ;
39186   return 0;
39187 }
39188
39189 _ACEOF
39190 rm -f conftest.$ac_objext conftest$ac_exeext
39191 if { (ac_try="$ac_link"
39192 case "(($ac_try" in
39193   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39194   *) ac_try_echo=$ac_try;;
39195 esac
39196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39197   (eval "$ac_link") 2>conftest.er1
39198   ac_status=$?
39199   grep -v '^ *+' conftest.er1 >conftest.err
39200   rm -f conftest.er1
39201   cat conftest.err >&5
39202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39203   (exit $ac_status); } && {
39204          test -z "$ac_c_werror_flag" ||
39205          test ! -s conftest.err
39206        } && test -s conftest$ac_exeext &&
39207        $as_test_x conftest$ac_exeext; then
39208   eval wx_cv_func_$wx_func=yes
39209 else
39210   echo "$as_me: failed program was:" >&5
39211 sed 's/^/| /' conftest.$ac_ext >&5
39212
39213         eval wx_cv_func_$wx_func=no
39214 fi
39215
39216 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39217       conftest$ac_exeext conftest.$ac_ext
39218
39219 fi
39220 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
39221                { echo "$as_me:$LINENO: result: $ac_res" >&5
39222 echo "${ECHO_T}$ac_res" >&6; }
39223
39224     if eval test \$wx_cv_func_$wx_func = yes
39225     then
39226       cat >>confdefs.h <<_ACEOF
39227 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
39228 _ACEOF
39229
39230
39231     else
39232       :
39233       { echo "$as_me:$LINENO: WARNING: wxSleep() function will not work" >&5
39234 echo "$as_me: WARNING: wxSleep() function will not work" >&2;}
39235
39236     fi
39237   done
39238
39239
39240
39241 fi
39242
39243
39244
39245 fi
39246 done
39247
39248 fi
39249
39250
39251   for wx_func in uname
39252   do
39253     { echo "$as_me:$LINENO: checking for $wx_func" >&5
39254 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
39255 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
39256   echo $ECHO_N "(cached) $ECHO_C" >&6
39257 else
39258
39259         cat >conftest.$ac_ext <<_ACEOF
39260
39261             /* confdefs.h.  */
39262 _ACEOF
39263 cat confdefs.h >>conftest.$ac_ext
39264 cat >>conftest.$ac_ext <<_ACEOF
39265 /* end confdefs.h.  */
39266
39267                 #include <sys/utsname.h>
39268                 $ac_includes_default
39269
39270 int
39271 main ()
39272 {
39273
39274                 #ifndef $wx_func
39275                   &$wx_func;
39276                 #endif
39277
39278
39279   ;
39280   return 0;
39281 }
39282
39283 _ACEOF
39284 rm -f conftest.$ac_objext conftest$ac_exeext
39285 if { (ac_try="$ac_link"
39286 case "(($ac_try" in
39287   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39288   *) ac_try_echo=$ac_try;;
39289 esac
39290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39291   (eval "$ac_link") 2>conftest.er1
39292   ac_status=$?
39293   grep -v '^ *+' conftest.er1 >conftest.err
39294   rm -f conftest.er1
39295   cat conftest.err >&5
39296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39297   (exit $ac_status); } && {
39298          test -z "$ac_c_werror_flag" ||
39299          test ! -s conftest.err
39300        } && test -s conftest$ac_exeext &&
39301        $as_test_x conftest$ac_exeext; then
39302   eval wx_cv_func_$wx_func=yes
39303 else
39304   echo "$as_me: failed program was:" >&5
39305 sed 's/^/| /' conftest.$ac_ext >&5
39306
39307         eval wx_cv_func_$wx_func=no
39308 fi
39309
39310 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39311       conftest$ac_exeext conftest.$ac_ext
39312
39313 fi
39314 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
39315                { echo "$as_me:$LINENO: result: $ac_res" >&5
39316 echo "${ECHO_T}$ac_res" >&6; }
39317
39318     if eval test \$wx_cv_func_$wx_func = yes
39319     then
39320       cat >>confdefs.h <<_ACEOF
39321 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
39322 _ACEOF
39323
39324
39325     else
39326       :
39327
39328     fi
39329   done
39330
39331 if test "$wx_cv_func_uname" != yes; then
39332
39333   for wx_func in gethostname
39334   do
39335     { echo "$as_me:$LINENO: checking for $wx_func" >&5
39336 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
39337 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
39338   echo $ECHO_N "(cached) $ECHO_C" >&6
39339 else
39340
39341         cat >conftest.$ac_ext <<_ACEOF
39342
39343             /* confdefs.h.  */
39344 _ACEOF
39345 cat confdefs.h >>conftest.$ac_ext
39346 cat >>conftest.$ac_ext <<_ACEOF
39347 /* end confdefs.h.  */
39348
39349
39350                 $ac_includes_default
39351
39352 int
39353 main ()
39354 {
39355
39356                 #ifndef $wx_func
39357                   &$wx_func;
39358                 #endif
39359
39360
39361   ;
39362   return 0;
39363 }
39364
39365 _ACEOF
39366 rm -f conftest.$ac_objext conftest$ac_exeext
39367 if { (ac_try="$ac_link"
39368 case "(($ac_try" in
39369   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39370   *) ac_try_echo=$ac_try;;
39371 esac
39372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39373   (eval "$ac_link") 2>conftest.er1
39374   ac_status=$?
39375   grep -v '^ *+' conftest.er1 >conftest.err
39376   rm -f conftest.er1
39377   cat conftest.err >&5
39378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39379   (exit $ac_status); } && {
39380          test -z "$ac_c_werror_flag" ||
39381          test ! -s conftest.err
39382        } && test -s conftest$ac_exeext &&
39383        $as_test_x conftest$ac_exeext; then
39384   eval wx_cv_func_$wx_func=yes
39385 else
39386   echo "$as_me: failed program was:" >&5
39387 sed 's/^/| /' conftest.$ac_ext >&5
39388
39389         eval wx_cv_func_$wx_func=no
39390 fi
39391
39392 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39393       conftest$ac_exeext conftest.$ac_ext
39394
39395 fi
39396 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
39397                { echo "$as_me:$LINENO: result: $ac_res" >&5
39398 echo "${ECHO_T}$ac_res" >&6; }
39399
39400     if eval test \$wx_cv_func_$wx_func = yes
39401     then
39402       cat >>confdefs.h <<_ACEOF
39403 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
39404 _ACEOF
39405
39406
39407     else
39408       :
39409
39410     fi
39411   done
39412
39413 fi
39414
39415
39416   for wx_func in strtok_r
39417   do
39418     { echo "$as_me:$LINENO: checking for $wx_func" >&5
39419 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
39420 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
39421   echo $ECHO_N "(cached) $ECHO_C" >&6
39422 else
39423
39424         cat >conftest.$ac_ext <<_ACEOF
39425
39426             /* confdefs.h.  */
39427 _ACEOF
39428 cat confdefs.h >>conftest.$ac_ext
39429 cat >>conftest.$ac_ext <<_ACEOF
39430 /* end confdefs.h.  */
39431
39432                 #define _REENTRANT
39433                 $ac_includes_default
39434
39435 int
39436 main ()
39437 {
39438
39439                 #ifndef $wx_func
39440                   &$wx_func;
39441                 #endif
39442
39443
39444   ;
39445   return 0;
39446 }
39447
39448 _ACEOF
39449 rm -f conftest.$ac_objext conftest$ac_exeext
39450 if { (ac_try="$ac_link"
39451 case "(($ac_try" in
39452   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39453   *) ac_try_echo=$ac_try;;
39454 esac
39455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39456   (eval "$ac_link") 2>conftest.er1
39457   ac_status=$?
39458   grep -v '^ *+' conftest.er1 >conftest.err
39459   rm -f conftest.er1
39460   cat conftest.err >&5
39461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39462   (exit $ac_status); } && {
39463          test -z "$ac_c_werror_flag" ||
39464          test ! -s conftest.err
39465        } && test -s conftest$ac_exeext &&
39466        $as_test_x conftest$ac_exeext; then
39467   eval wx_cv_func_$wx_func=yes
39468 else
39469   echo "$as_me: failed program was:" >&5
39470 sed 's/^/| /' conftest.$ac_ext >&5
39471
39472         eval wx_cv_func_$wx_func=no
39473 fi
39474
39475 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39476       conftest$ac_exeext conftest.$ac_ext
39477
39478 fi
39479 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
39480                { echo "$as_me:$LINENO: result: $ac_res" >&5
39481 echo "${ECHO_T}$ac_res" >&6; }
39482
39483     if eval test \$wx_cv_func_$wx_func = yes
39484     then
39485       cat >>confdefs.h <<_ACEOF
39486 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
39487 _ACEOF
39488
39489
39490     else
39491       :
39492
39493     fi
39494   done
39495
39496
39497 INET_LINK=
39498
39499 for ac_func in inet_addr
39500 do
39501 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39502 { echo "$as_me:$LINENO: checking for $ac_func" >&5
39503 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
39504 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39505   echo $ECHO_N "(cached) $ECHO_C" >&6
39506 else
39507   cat >conftest.$ac_ext <<_ACEOF
39508 /* confdefs.h.  */
39509 _ACEOF
39510 cat confdefs.h >>conftest.$ac_ext
39511 cat >>conftest.$ac_ext <<_ACEOF
39512 /* end confdefs.h.  */
39513 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39514    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39515 #define $ac_func innocuous_$ac_func
39516
39517 /* System header to define __stub macros and hopefully few prototypes,
39518     which can conflict with char $ac_func (); below.
39519     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39520     <limits.h> exists even on freestanding compilers.  */
39521
39522 #ifdef __STDC__
39523 # include <limits.h>
39524 #else
39525 # include <assert.h>
39526 #endif
39527
39528 #undef $ac_func
39529
39530 /* Override any GCC internal prototype to avoid an error.
39531    Use char because int might match the return type of a GCC
39532    builtin and then its argument prototype would still apply.  */
39533 #ifdef __cplusplus
39534 extern "C"
39535 #endif
39536 char $ac_func ();
39537 /* The GNU C library defines this for functions which it implements
39538     to always fail with ENOSYS.  Some functions are actually named
39539     something starting with __ and the normal name is an alias.  */
39540 #if defined __stub_$ac_func || defined __stub___$ac_func
39541 choke me
39542 #endif
39543
39544 int
39545 main ()
39546 {
39547 return $ac_func ();
39548   ;
39549   return 0;
39550 }
39551 _ACEOF
39552 rm -f conftest.$ac_objext conftest$ac_exeext
39553 if { (ac_try="$ac_link"
39554 case "(($ac_try" in
39555   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39556   *) ac_try_echo=$ac_try;;
39557 esac
39558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39559   (eval "$ac_link") 2>conftest.er1
39560   ac_status=$?
39561   grep -v '^ *+' conftest.er1 >conftest.err
39562   rm -f conftest.er1
39563   cat conftest.err >&5
39564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39565   (exit $ac_status); } && {
39566          test -z "$ac_c_werror_flag" ||
39567          test ! -s conftest.err
39568        } && test -s conftest$ac_exeext &&
39569        $as_test_x conftest$ac_exeext; then
39570   eval "$as_ac_var=yes"
39571 else
39572   echo "$as_me: failed program was:" >&5
39573 sed 's/^/| /' conftest.$ac_ext >&5
39574
39575         eval "$as_ac_var=no"
39576 fi
39577
39578 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39579       conftest$ac_exeext conftest.$ac_ext
39580 fi
39581 ac_res=`eval echo '${'$as_ac_var'}'`
39582                { echo "$as_me:$LINENO: result: $ac_res" >&5
39583 echo "${ECHO_T}$ac_res" >&6; }
39584 if test `eval echo '${'$as_ac_var'}'` = yes; then
39585   cat >>confdefs.h <<_ACEOF
39586 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39587 _ACEOF
39588  cat >>confdefs.h <<\_ACEOF
39589 #define HAVE_INET_ADDR 1
39590 _ACEOF
39591
39592 else
39593
39594         { echo "$as_me:$LINENO: checking for inet_addr in -lnsl" >&5
39595 echo $ECHO_N "checking for inet_addr in -lnsl... $ECHO_C" >&6; }
39596 if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then
39597   echo $ECHO_N "(cached) $ECHO_C" >&6
39598 else
39599   ac_check_lib_save_LIBS=$LIBS
39600 LIBS="-lnsl  $LIBS"
39601 cat >conftest.$ac_ext <<_ACEOF
39602 /* confdefs.h.  */
39603 _ACEOF
39604 cat confdefs.h >>conftest.$ac_ext
39605 cat >>conftest.$ac_ext <<_ACEOF
39606 /* end confdefs.h.  */
39607
39608 /* Override any GCC internal prototype to avoid an error.
39609    Use char because int might match the return type of a GCC
39610    builtin and then its argument prototype would still apply.  */
39611 #ifdef __cplusplus
39612 extern "C"
39613 #endif
39614 char inet_addr ();
39615 int
39616 main ()
39617 {
39618 return inet_addr ();
39619   ;
39620   return 0;
39621 }
39622 _ACEOF
39623 rm -f conftest.$ac_objext conftest$ac_exeext
39624 if { (ac_try="$ac_link"
39625 case "(($ac_try" in
39626   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39627   *) ac_try_echo=$ac_try;;
39628 esac
39629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39630   (eval "$ac_link") 2>conftest.er1
39631   ac_status=$?
39632   grep -v '^ *+' conftest.er1 >conftest.err
39633   rm -f conftest.er1
39634   cat conftest.err >&5
39635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39636   (exit $ac_status); } && {
39637          test -z "$ac_c_werror_flag" ||
39638          test ! -s conftest.err
39639        } && test -s conftest$ac_exeext &&
39640        $as_test_x conftest$ac_exeext; then
39641   ac_cv_lib_nsl_inet_addr=yes
39642 else
39643   echo "$as_me: failed program was:" >&5
39644 sed 's/^/| /' conftest.$ac_ext >&5
39645
39646         ac_cv_lib_nsl_inet_addr=no
39647 fi
39648
39649 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39650       conftest$ac_exeext conftest.$ac_ext
39651 LIBS=$ac_check_lib_save_LIBS
39652 fi
39653 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_addr" >&5
39654 echo "${ECHO_T}$ac_cv_lib_nsl_inet_addr" >&6; }
39655 if test $ac_cv_lib_nsl_inet_addr = yes; then
39656   INET_LINK="nsl"
39657 else
39658
39659                 { echo "$as_me:$LINENO: checking for inet_addr in -lresolv" >&5
39660 echo $ECHO_N "checking for inet_addr in -lresolv... $ECHO_C" >&6; }
39661 if test "${ac_cv_lib_resolv_inet_addr+set}" = set; then
39662   echo $ECHO_N "(cached) $ECHO_C" >&6
39663 else
39664   ac_check_lib_save_LIBS=$LIBS
39665 LIBS="-lresolv  $LIBS"
39666 cat >conftest.$ac_ext <<_ACEOF
39667 /* confdefs.h.  */
39668 _ACEOF
39669 cat confdefs.h >>conftest.$ac_ext
39670 cat >>conftest.$ac_ext <<_ACEOF
39671 /* end confdefs.h.  */
39672
39673 /* Override any GCC internal prototype to avoid an error.
39674    Use char because int might match the return type of a GCC
39675    builtin and then its argument prototype would still apply.  */
39676 #ifdef __cplusplus
39677 extern "C"
39678 #endif
39679 char inet_addr ();
39680 int
39681 main ()
39682 {
39683 return inet_addr ();
39684   ;
39685   return 0;
39686 }
39687 _ACEOF
39688 rm -f conftest.$ac_objext conftest$ac_exeext
39689 if { (ac_try="$ac_link"
39690 case "(($ac_try" in
39691   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39692   *) ac_try_echo=$ac_try;;
39693 esac
39694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39695   (eval "$ac_link") 2>conftest.er1
39696   ac_status=$?
39697   grep -v '^ *+' conftest.er1 >conftest.err
39698   rm -f conftest.er1
39699   cat conftest.err >&5
39700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39701   (exit $ac_status); } && {
39702          test -z "$ac_c_werror_flag" ||
39703          test ! -s conftest.err
39704        } && test -s conftest$ac_exeext &&
39705        $as_test_x conftest$ac_exeext; then
39706   ac_cv_lib_resolv_inet_addr=yes
39707 else
39708   echo "$as_me: failed program was:" >&5
39709 sed 's/^/| /' conftest.$ac_ext >&5
39710
39711         ac_cv_lib_resolv_inet_addr=no
39712 fi
39713
39714 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39715       conftest$ac_exeext conftest.$ac_ext
39716 LIBS=$ac_check_lib_save_LIBS
39717 fi
39718 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_addr" >&5
39719 echo "${ECHO_T}$ac_cv_lib_resolv_inet_addr" >&6; }
39720 if test $ac_cv_lib_resolv_inet_addr = yes; then
39721   INET_LINK="resolv"
39722 else
39723
39724                         { echo "$as_me:$LINENO: checking for inet_addr in -lsocket" >&5
39725 echo $ECHO_N "checking for inet_addr in -lsocket... $ECHO_C" >&6; }
39726 if test "${ac_cv_lib_socket_inet_addr+set}" = set; then
39727   echo $ECHO_N "(cached) $ECHO_C" >&6
39728 else
39729   ac_check_lib_save_LIBS=$LIBS
39730 LIBS="-lsocket  $LIBS"
39731 cat >conftest.$ac_ext <<_ACEOF
39732 /* confdefs.h.  */
39733 _ACEOF
39734 cat confdefs.h >>conftest.$ac_ext
39735 cat >>conftest.$ac_ext <<_ACEOF
39736 /* end confdefs.h.  */
39737
39738 /* Override any GCC internal prototype to avoid an error.
39739    Use char because int might match the return type of a GCC
39740    builtin and then its argument prototype would still apply.  */
39741 #ifdef __cplusplus
39742 extern "C"
39743 #endif
39744 char inet_addr ();
39745 int
39746 main ()
39747 {
39748 return inet_addr ();
39749   ;
39750   return 0;
39751 }
39752 _ACEOF
39753 rm -f conftest.$ac_objext conftest$ac_exeext
39754 if { (ac_try="$ac_link"
39755 case "(($ac_try" in
39756   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39757   *) ac_try_echo=$ac_try;;
39758 esac
39759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39760   (eval "$ac_link") 2>conftest.er1
39761   ac_status=$?
39762   grep -v '^ *+' conftest.er1 >conftest.err
39763   rm -f conftest.er1
39764   cat conftest.err >&5
39765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39766   (exit $ac_status); } && {
39767          test -z "$ac_c_werror_flag" ||
39768          test ! -s conftest.err
39769        } && test -s conftest$ac_exeext &&
39770        $as_test_x conftest$ac_exeext; then
39771   ac_cv_lib_socket_inet_addr=yes
39772 else
39773   echo "$as_me: failed program was:" >&5
39774 sed 's/^/| /' conftest.$ac_ext >&5
39775
39776         ac_cv_lib_socket_inet_addr=no
39777 fi
39778
39779 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39780       conftest$ac_exeext conftest.$ac_ext
39781 LIBS=$ac_check_lib_save_LIBS
39782 fi
39783 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_inet_addr" >&5
39784 echo "${ECHO_T}$ac_cv_lib_socket_inet_addr" >&6; }
39785 if test $ac_cv_lib_socket_inet_addr = yes; then
39786   INET_LINK="socket"
39787
39788 fi
39789
39790
39791
39792 fi
39793
39794
39795
39796 fi
39797
39798
39799
39800 fi
39801 done
39802
39803
39804
39805 for ac_func in inet_aton
39806 do
39807 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39808 { echo "$as_me:$LINENO: checking for $ac_func" >&5
39809 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
39810 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39811   echo $ECHO_N "(cached) $ECHO_C" >&6
39812 else
39813   cat >conftest.$ac_ext <<_ACEOF
39814 /* confdefs.h.  */
39815 _ACEOF
39816 cat confdefs.h >>conftest.$ac_ext
39817 cat >>conftest.$ac_ext <<_ACEOF
39818 /* end confdefs.h.  */
39819 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39820    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39821 #define $ac_func innocuous_$ac_func
39822
39823 /* System header to define __stub macros and hopefully few prototypes,
39824     which can conflict with char $ac_func (); below.
39825     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39826     <limits.h> exists even on freestanding compilers.  */
39827
39828 #ifdef __STDC__
39829 # include <limits.h>
39830 #else
39831 # include <assert.h>
39832 #endif
39833
39834 #undef $ac_func
39835
39836 /* Override any GCC internal prototype to avoid an error.
39837    Use char because int might match the return type of a GCC
39838    builtin and then its argument prototype would still apply.  */
39839 #ifdef __cplusplus
39840 extern "C"
39841 #endif
39842 char $ac_func ();
39843 /* The GNU C library defines this for functions which it implements
39844     to always fail with ENOSYS.  Some functions are actually named
39845     something starting with __ and the normal name is an alias.  */
39846 #if defined __stub_$ac_func || defined __stub___$ac_func
39847 choke me
39848 #endif
39849
39850 int
39851 main ()
39852 {
39853 return $ac_func ();
39854   ;
39855   return 0;
39856 }
39857 _ACEOF
39858 rm -f conftest.$ac_objext conftest$ac_exeext
39859 if { (ac_try="$ac_link"
39860 case "(($ac_try" in
39861   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39862   *) ac_try_echo=$ac_try;;
39863 esac
39864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39865   (eval "$ac_link") 2>conftest.er1
39866   ac_status=$?
39867   grep -v '^ *+' conftest.er1 >conftest.err
39868   rm -f conftest.er1
39869   cat conftest.err >&5
39870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39871   (exit $ac_status); } && {
39872          test -z "$ac_c_werror_flag" ||
39873          test ! -s conftest.err
39874        } && test -s conftest$ac_exeext &&
39875        $as_test_x conftest$ac_exeext; then
39876   eval "$as_ac_var=yes"
39877 else
39878   echo "$as_me: failed program was:" >&5
39879 sed 's/^/| /' conftest.$ac_ext >&5
39880
39881         eval "$as_ac_var=no"
39882 fi
39883
39884 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39885       conftest$ac_exeext conftest.$ac_ext
39886 fi
39887 ac_res=`eval echo '${'$as_ac_var'}'`
39888                { echo "$as_me:$LINENO: result: $ac_res" >&5
39889 echo "${ECHO_T}$ac_res" >&6; }
39890 if test `eval echo '${'$as_ac_var'}'` = yes; then
39891   cat >>confdefs.h <<_ACEOF
39892 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39893 _ACEOF
39894  cat >>confdefs.h <<\_ACEOF
39895 #define HAVE_INET_ATON 1
39896 _ACEOF
39897
39898 else
39899
39900                         as_ac_Lib=`echo "ac_cv_lib_$INET_LINK''_inet_aton" | $as_tr_sh`
39901 { echo "$as_me:$LINENO: checking for inet_aton in -l$INET_LINK" >&5
39902 echo $ECHO_N "checking for inet_aton in -l$INET_LINK... $ECHO_C" >&6; }
39903 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
39904   echo $ECHO_N "(cached) $ECHO_C" >&6
39905 else
39906   ac_check_lib_save_LIBS=$LIBS
39907 LIBS="-l$INET_LINK  $LIBS"
39908 cat >conftest.$ac_ext <<_ACEOF
39909 /* confdefs.h.  */
39910 _ACEOF
39911 cat confdefs.h >>conftest.$ac_ext
39912 cat >>conftest.$ac_ext <<_ACEOF
39913 /* end confdefs.h.  */
39914
39915 /* Override any GCC internal prototype to avoid an error.
39916    Use char because int might match the return type of a GCC
39917    builtin and then its argument prototype would still apply.  */
39918 #ifdef __cplusplus
39919 extern "C"
39920 #endif
39921 char inet_aton ();
39922 int
39923 main ()
39924 {
39925 return inet_aton ();
39926   ;
39927   return 0;
39928 }
39929 _ACEOF
39930 rm -f conftest.$ac_objext conftest$ac_exeext
39931 if { (ac_try="$ac_link"
39932 case "(($ac_try" in
39933   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39934   *) ac_try_echo=$ac_try;;
39935 esac
39936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39937   (eval "$ac_link") 2>conftest.er1
39938   ac_status=$?
39939   grep -v '^ *+' conftest.er1 >conftest.err
39940   rm -f conftest.er1
39941   cat conftest.err >&5
39942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39943   (exit $ac_status); } && {
39944          test -z "$ac_c_werror_flag" ||
39945          test ! -s conftest.err
39946        } && test -s conftest$ac_exeext &&
39947        $as_test_x conftest$ac_exeext; then
39948   eval "$as_ac_Lib=yes"
39949 else
39950   echo "$as_me: failed program was:" >&5
39951 sed 's/^/| /' conftest.$ac_ext >&5
39952
39953         eval "$as_ac_Lib=no"
39954 fi
39955
39956 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39957       conftest$ac_exeext conftest.$ac_ext
39958 LIBS=$ac_check_lib_save_LIBS
39959 fi
39960 ac_res=`eval echo '${'$as_ac_Lib'}'`
39961                { echo "$as_me:$LINENO: result: $ac_res" >&5
39962 echo "${ECHO_T}$ac_res" >&6; }
39963 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
39964   cat >>confdefs.h <<\_ACEOF
39965 #define HAVE_INET_ATON 1
39966 _ACEOF
39967
39968 fi
39969
39970
39971 fi
39972 done
39973
39974
39975 if test "x$INET_LINK" != "x"; then
39976     cat >>confdefs.h <<\_ACEOF
39977 #define HAVE_INET_ADDR 1
39978 _ACEOF
39979
39980     INET_LINK=" -l$INET_LINK"
39981 fi
39982
39983
39984   for wx_func in fdopen
39985   do
39986     { echo "$as_me:$LINENO: checking for $wx_func" >&5
39987 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
39988 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
39989   echo $ECHO_N "(cached) $ECHO_C" >&6
39990 else
39991
39992         cat >conftest.$ac_ext <<_ACEOF
39993
39994             /* confdefs.h.  */
39995 _ACEOF
39996 cat confdefs.h >>conftest.$ac_ext
39997 cat >>conftest.$ac_ext <<_ACEOF
39998 /* end confdefs.h.  */
39999
40000
40001                 $ac_includes_default
40002
40003 int
40004 main ()
40005 {
40006
40007                 #ifndef $wx_func
40008                   &$wx_func;
40009                 #endif
40010
40011
40012   ;
40013   return 0;
40014 }
40015
40016 _ACEOF
40017 rm -f conftest.$ac_objext conftest$ac_exeext
40018 if { (ac_try="$ac_link"
40019 case "(($ac_try" in
40020   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40021   *) ac_try_echo=$ac_try;;
40022 esac
40023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40024   (eval "$ac_link") 2>conftest.er1
40025   ac_status=$?
40026   grep -v '^ *+' conftest.er1 >conftest.err
40027   rm -f conftest.er1
40028   cat conftest.err >&5
40029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40030   (exit $ac_status); } && {
40031          test -z "$ac_c_werror_flag" ||
40032          test ! -s conftest.err
40033        } && test -s conftest$ac_exeext &&
40034        $as_test_x conftest$ac_exeext; then
40035   eval wx_cv_func_$wx_func=yes
40036 else
40037   echo "$as_me: failed program was:" >&5
40038 sed 's/^/| /' conftest.$ac_ext >&5
40039
40040         eval wx_cv_func_$wx_func=no
40041 fi
40042
40043 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40044       conftest$ac_exeext conftest.$ac_ext
40045
40046 fi
40047 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
40048                { echo "$as_me:$LINENO: result: $ac_res" >&5
40049 echo "${ECHO_T}$ac_res" >&6; }
40050
40051     if eval test \$wx_cv_func_$wx_func = yes
40052     then
40053       cat >>confdefs.h <<_ACEOF
40054 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
40055 _ACEOF
40056
40057
40058     else
40059       :
40060
40061     fi
40062   done
40063
40064
40065 if test "$wxUSE_TARSTREAM" = "yes"; then
40066
40067   for wx_func in sysconf
40068   do
40069     { echo "$as_me:$LINENO: checking for $wx_func" >&5
40070 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
40071 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
40072   echo $ECHO_N "(cached) $ECHO_C" >&6
40073 else
40074
40075         cat >conftest.$ac_ext <<_ACEOF
40076
40077             /* confdefs.h.  */
40078 _ACEOF
40079 cat confdefs.h >>conftest.$ac_ext
40080 cat >>conftest.$ac_ext <<_ACEOF
40081 /* end confdefs.h.  */
40082
40083
40084                 $ac_includes_default
40085
40086 int
40087 main ()
40088 {
40089
40090                 #ifndef $wx_func
40091                   &$wx_func;
40092                 #endif
40093
40094
40095   ;
40096   return 0;
40097 }
40098
40099 _ACEOF
40100 rm -f conftest.$ac_objext conftest$ac_exeext
40101 if { (ac_try="$ac_link"
40102 case "(($ac_try" in
40103   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40104   *) ac_try_echo=$ac_try;;
40105 esac
40106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40107   (eval "$ac_link") 2>conftest.er1
40108   ac_status=$?
40109   grep -v '^ *+' conftest.er1 >conftest.err
40110   rm -f conftest.er1
40111   cat conftest.err >&5
40112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40113   (exit $ac_status); } && {
40114          test -z "$ac_c_werror_flag" ||
40115          test ! -s conftest.err
40116        } && test -s conftest$ac_exeext &&
40117        $as_test_x conftest$ac_exeext; then
40118   eval wx_cv_func_$wx_func=yes
40119 else
40120   echo "$as_me: failed program was:" >&5
40121 sed 's/^/| /' conftest.$ac_ext >&5
40122
40123         eval wx_cv_func_$wx_func=no
40124 fi
40125
40126 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40127       conftest$ac_exeext conftest.$ac_ext
40128
40129 fi
40130 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
40131                { echo "$as_me:$LINENO: result: $ac_res" >&5
40132 echo "${ECHO_T}$ac_res" >&6; }
40133
40134     if eval test \$wx_cv_func_$wx_func = yes
40135     then
40136       cat >>confdefs.h <<_ACEOF
40137 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
40138 _ACEOF
40139
40140
40141     else
40142       :
40143
40144     fi
40145   done
40146
40147
40148
40149   for wx_func in getpwuid_r
40150   do
40151     { echo "$as_me:$LINENO: checking for $wx_func" >&5
40152 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
40153 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
40154   echo $ECHO_N "(cached) $ECHO_C" >&6
40155 else
40156
40157         cat >conftest.$ac_ext <<_ACEOF
40158
40159             /* confdefs.h.  */
40160 _ACEOF
40161 cat confdefs.h >>conftest.$ac_ext
40162 cat >>conftest.$ac_ext <<_ACEOF
40163 /* end confdefs.h.  */
40164
40165
40166                     #define _REENTRANT
40167                     #include <pwd.h>
40168
40169                 $ac_includes_default
40170
40171 int
40172 main ()
40173 {
40174
40175                 #ifndef $wx_func
40176                   &$wx_func;
40177                 #endif
40178
40179                     struct passwd pw, *ppw;
40180                     char buf[1024];
40181                     getpwuid_r(0, &pw, buf, sizeof(buf), &ppw)
40182
40183
40184   ;
40185   return 0;
40186 }
40187
40188 _ACEOF
40189 rm -f conftest.$ac_objext conftest$ac_exeext
40190 if { (ac_try="$ac_link"
40191 case "(($ac_try" in
40192   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40193   *) ac_try_echo=$ac_try;;
40194 esac
40195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40196   (eval "$ac_link") 2>conftest.er1
40197   ac_status=$?
40198   grep -v '^ *+' conftest.er1 >conftest.err
40199   rm -f conftest.er1
40200   cat conftest.err >&5
40201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40202   (exit $ac_status); } && {
40203          test -z "$ac_c_werror_flag" ||
40204          test ! -s conftest.err
40205        } && test -s conftest$ac_exeext &&
40206        $as_test_x conftest$ac_exeext; then
40207   eval wx_cv_func_$wx_func=yes
40208 else
40209   echo "$as_me: failed program was:" >&5
40210 sed 's/^/| /' conftest.$ac_ext >&5
40211
40212         eval wx_cv_func_$wx_func=no
40213 fi
40214
40215 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40216       conftest$ac_exeext conftest.$ac_ext
40217
40218 fi
40219 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
40220                { echo "$as_me:$LINENO: result: $ac_res" >&5
40221 echo "${ECHO_T}$ac_res" >&6; }
40222
40223     if eval test \$wx_cv_func_$wx_func = yes
40224     then
40225       cat >>confdefs.h <<_ACEOF
40226 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
40227 _ACEOF
40228
40229
40230     else
40231       :
40232
40233     fi
40234   done
40235
40236
40237
40238   for wx_func in getgrgid_r
40239   do
40240     { echo "$as_me:$LINENO: checking for $wx_func" >&5
40241 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
40242 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
40243   echo $ECHO_N "(cached) $ECHO_C" >&6
40244 else
40245
40246         cat >conftest.$ac_ext <<_ACEOF
40247
40248             /* confdefs.h.  */
40249 _ACEOF
40250 cat confdefs.h >>conftest.$ac_ext
40251 cat >>conftest.$ac_ext <<_ACEOF
40252 /* end confdefs.h.  */
40253
40254
40255                     #define _REENTRANT
40256                     #include <grp.h>
40257
40258                 $ac_includes_default
40259
40260 int
40261 main ()
40262 {
40263
40264                 #ifndef $wx_func
40265                   &$wx_func;
40266                 #endif
40267
40268                     struct group grp, *pgrp;
40269                     char buf[1024];
40270                     getgrgid_r(0, &grp, buf, sizeof(buf), &pgrp)
40271
40272
40273   ;
40274   return 0;
40275 }
40276
40277 _ACEOF
40278 rm -f conftest.$ac_objext conftest$ac_exeext
40279 if { (ac_try="$ac_link"
40280 case "(($ac_try" in
40281   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40282   *) ac_try_echo=$ac_try;;
40283 esac
40284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40285   (eval "$ac_link") 2>conftest.er1
40286   ac_status=$?
40287   grep -v '^ *+' conftest.er1 >conftest.err
40288   rm -f conftest.er1
40289   cat conftest.err >&5
40290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40291   (exit $ac_status); } && {
40292          test -z "$ac_c_werror_flag" ||
40293          test ! -s conftest.err
40294        } && test -s conftest$ac_exeext &&
40295        $as_test_x conftest$ac_exeext; then
40296   eval wx_cv_func_$wx_func=yes
40297 else
40298   echo "$as_me: failed program was:" >&5
40299 sed 's/^/| /' conftest.$ac_ext >&5
40300
40301         eval wx_cv_func_$wx_func=no
40302 fi
40303
40304 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40305       conftest$ac_exeext conftest.$ac_ext
40306
40307 fi
40308 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
40309                { echo "$as_me:$LINENO: result: $ac_res" >&5
40310 echo "${ECHO_T}$ac_res" >&6; }
40311
40312     if eval test \$wx_cv_func_$wx_func = yes
40313     then
40314       cat >>confdefs.h <<_ACEOF
40315 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
40316 _ACEOF
40317
40318
40319     else
40320       :
40321
40322     fi
40323   done
40324
40325 fi
40326
40327 fi
40328
40329
40330
40331 cat >confcache <<\_ACEOF
40332 # This file is a shell script that caches the results of configure
40333 # tests run on this system so they can be shared between configure
40334 # scripts and configure runs, see configure's option --config-cache.
40335 # It is not useful on other systems.  If it contains results you don't
40336 # want to keep, you may remove or edit it.
40337 #
40338 # config.status only pays attention to the cache file if you give it
40339 # the --recheck option to rerun configure.
40340 #
40341 # `ac_cv_env_foo' variables (set or unset) will be overridden when
40342 # loading this file, other *unset* `ac_cv_foo' will be assigned the
40343 # following values.
40344
40345 _ACEOF
40346
40347 # The following way of writing the cache mishandles newlines in values,
40348 # but we know of no workaround that is simple, portable, and efficient.
40349 # So, we kill variables containing newlines.
40350 # Ultrix sh set writes to stderr and can't be redirected directly,
40351 # and sets the high bit in the cache file unless we assign to the vars.
40352 (
40353   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
40354     eval ac_val=\$$ac_var
40355     case $ac_val in #(
40356     *${as_nl}*)
40357       case $ac_var in #(
40358       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
40359 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
40360       esac
40361       case $ac_var in #(
40362       _ | IFS | as_nl) ;; #(
40363       *) $as_unset $ac_var ;;
40364       esac ;;
40365     esac
40366   done
40367
40368   (set) 2>&1 |
40369     case $as_nl`(ac_space=' '; set) 2>&1` in #(
40370     *${as_nl}ac_space=\ *)
40371       # `set' does not quote correctly, so add quotes (double-quote
40372       # substitution turns \\\\ into \\, and sed turns \\ into \).
40373       sed -n \
40374         "s/'/'\\\\''/g;
40375           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
40376       ;; #(
40377     *)
40378       # `set' quotes correctly as required by POSIX, so do not add quotes.
40379       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
40380       ;;
40381     esac |
40382     sort
40383 ) |
40384   sed '
40385      /^ac_cv_env_/b end
40386      t clear
40387      :clear
40388      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
40389      t end
40390      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
40391      :end' >>confcache
40392 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
40393   if test -w "$cache_file"; then
40394     test "x$cache_file" != "x/dev/null" &&
40395       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
40396 echo "$as_me: updating cache $cache_file" >&6;}
40397     cat confcache >$cache_file
40398   else
40399     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
40400 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
40401   fi
40402 fi
40403 rm -f confcache
40404
40405
40406 if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
40407
40408
40409     THREADS_LINK=
40410     THREADS_CFLAGS=
40411
40412     if test "$wxUSE_THREADS" = "yes" ; then
40413         if test "$USE_BEOS" = 1; then
40414             { echo "$as_me:$LINENO: WARNING: BeOS threads are not yet supported... disabled" >&5
40415 echo "$as_me: WARNING: BeOS threads are not yet supported... disabled" >&2;}
40416             wxUSE_THREADS="no"
40417         fi
40418     fi
40419
40420     if test "$wxUSE_THREADS" = "yes" ; then
40421
40422
40423                                 THREAD_OPTS="-pthread"
40424         if test "x$SUNCXX" = xyes; then
40425             THREAD_OPTS="-mt lthread $THREAD_OPTS"
40426         fi
40427
40428         case "${host}" in
40429           *-*-solaris2* | *-*-sunos4* )
40430                 if test "x$GCC" = "xyes"; then
40431                                         THREAD_OPTS="-pthreads $THREAD_OPTS"
40432                 fi
40433                 ;;
40434           *-*-freebsd*)
40435                                                 THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r"
40436                 ;;
40437           *-*-darwin* | *-*-cygwin* )
40438                                                 THREAD_OPTS=""
40439                 ;;
40440           *-*-aix*)
40441                                 THREAD_OPTS="pthreads"
40442                 ;;
40443           *-hp-hpux* )
40444                 if test "x$GCC" = "xyes"; then
40445                                         $CXX -dumpspecs | grep 'pthread:' >/dev/null ||
40446                         THREAD_OPTS=""
40447                 else
40448                                                             THREAD_OPTS="-mt"
40449                 fi
40450                 ;;
40451
40452           *-*-irix* )
40453                                                                 if test "x$GCC" = "xyes"; then
40454                     THREAD_OPTS=""
40455                 fi
40456                 ;;
40457
40458           *-*-qnx*)
40459                                                 THREAD_OPTS=""
40460                 ;;
40461
40462           *-*-*UnixWare*)
40463                                 if test "x$GCC" != "xyes"; then
40464                     THREAD_OPTS="-Ethread"
40465                 fi
40466                 ;;
40467         esac
40468
40469         case "${host}" in
40470             *-*-qnx*)
40471                                                                 THREAD_OPTS="none pthread"
40472                 ;;
40473
40474             *)
40475                                                                                 THREAD_OPTS="$THREAD_OPTS pthread none"
40476                 ;;
40477         esac
40478
40479                 THREADS_OK=no
40480         for flag in $THREAD_OPTS; do
40481             case $flag in
40482                 none)
40483                     { echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
40484 echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6; }
40485                     ;;
40486
40487                 -*)
40488                     { echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
40489 echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6; }
40490                     THREADS_CFLAGS="$flag"
40491                     ;;
40492
40493                 *)
40494                     { echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
40495 echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6; }
40496                     THREADS_LINK="-l$flag"
40497                     ;;
40498               esac
40499
40500               save_LIBS="$LIBS"
40501               save_CFLAGS="$CFLAGS"
40502               LIBS="$THREADS_LINK $LIBS"
40503               CFLAGS="$THREADS_CFLAGS $CFLAGS"
40504
40505               cat >conftest.$ac_ext <<_ACEOF
40506 /* confdefs.h.  */
40507 _ACEOF
40508 cat confdefs.h >>conftest.$ac_ext
40509 cat >>conftest.$ac_ext <<_ACEOF
40510 /* end confdefs.h.  */
40511 #include <pthread.h>
40512 int
40513 main ()
40514 {
40515 pthread_create(0,0,0,0);
40516   ;
40517   return 0;
40518 }
40519 _ACEOF
40520 rm -f conftest.$ac_objext conftest$ac_exeext
40521 if { (ac_try="$ac_link"
40522 case "(($ac_try" in
40523   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40524   *) ac_try_echo=$ac_try;;
40525 esac
40526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40527   (eval "$ac_link") 2>conftest.er1
40528   ac_status=$?
40529   grep -v '^ *+' conftest.er1 >conftest.err
40530   rm -f conftest.er1
40531   cat conftest.err >&5
40532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40533   (exit $ac_status); } && {
40534          test -z "$ac_c_werror_flag" ||
40535          test ! -s conftest.err
40536        } && test -s conftest$ac_exeext &&
40537        $as_test_x conftest$ac_exeext; then
40538   THREADS_OK=yes
40539 else
40540   echo "$as_me: failed program was:" >&5
40541 sed 's/^/| /' conftest.$ac_ext >&5
40542
40543
40544 fi
40545
40546 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40547       conftest$ac_exeext conftest.$ac_ext
40548
40549               LIBS="$save_LIBS"
40550               CFLAGS="$save_CFLAGS"
40551
40552               { echo "$as_me:$LINENO: result: $THREADS_OK" >&5
40553 echo "${ECHO_T}$THREADS_OK" >&6; }
40554               if test "x$THREADS_OK" = "xyes"; then
40555                       break;
40556               fi
40557
40558               THREADS_LINK=""
40559               THREADS_CFLAGS=""
40560       done
40561
40562       if test "x$THREADS_OK" != "xyes"; then
40563           wxUSE_THREADS=no
40564           { echo "$as_me:$LINENO: WARNING: No thread support on this system... disabled" >&5
40565 echo "$as_me: WARNING: No thread support on this system... disabled" >&2;}
40566       else
40567                                                                                           LDFLAGS="$THREADS_CFLAGS $LDFLAGS"
40568           WXCONFIG_LDFLAGS="$THREADS_CFLAGS $WXCONFIG_LDFLAGS"
40569           LIBS="$THREADS_LINK $LIBS"
40570
40571           { echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
40572 echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6; }
40573           flag=no
40574           case "${host}" in
40575             *-aix*)
40576                                                                                                                 LDFLAGS="-L/usr/lib/threads $LDFLAGS"
40577                 WXCONFIG_LDFLAGS="-L/usr/lib/threads $WXCONFIG_LDFLAGS"
40578                 flag="-D_THREAD_SAFE"
40579                 ;;
40580             *-freebsd*)
40581                 flag="-D_THREAD_SAFE"
40582                 ;;
40583             *-hp-hpux* )
40584                 flag="-D_REENTRANT"
40585                 if test "x$GCC" != "xyes"; then
40586                                         flag="$flag -D_RWSTD_MULTI_THREAD"
40587                 fi
40588                 ;;
40589             *solaris* | alpha*-osf*)
40590                 flag="-D_REENTRANT"
40591                 ;;
40592           esac
40593           { echo "$as_me:$LINENO: result: ${flag}" >&5
40594 echo "${ECHO_T}${flag}" >&6; }
40595           if test "x$flag" != xno; then
40596               THREADS_CFLAGS="$THREADS_CFLAGS $flag"
40597           fi
40598
40599                     WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS $THREADS_CFLAGS"
40600       fi
40601     fi
40602
40603         if test "$wxUSE_THREADS" = "yes" ; then
40604
40605 for ac_func in thr_setconcurrency
40606 do
40607 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40608 { echo "$as_me:$LINENO: checking for $ac_func" >&5
40609 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
40610 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
40611   echo $ECHO_N "(cached) $ECHO_C" >&6
40612 else
40613   cat >conftest.$ac_ext <<_ACEOF
40614 /* confdefs.h.  */
40615 _ACEOF
40616 cat confdefs.h >>conftest.$ac_ext
40617 cat >>conftest.$ac_ext <<_ACEOF
40618 /* end confdefs.h.  */
40619 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40620    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40621 #define $ac_func innocuous_$ac_func
40622
40623 /* System header to define __stub macros and hopefully few prototypes,
40624     which can conflict with char $ac_func (); below.
40625     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40626     <limits.h> exists even on freestanding compilers.  */
40627
40628 #ifdef __STDC__
40629 # include <limits.h>
40630 #else
40631 # include <assert.h>
40632 #endif
40633
40634 #undef $ac_func
40635
40636 /* Override any GCC internal prototype to avoid an error.
40637    Use char because int might match the return type of a GCC
40638    builtin and then its argument prototype would still apply.  */
40639 #ifdef __cplusplus
40640 extern "C"
40641 #endif
40642 char $ac_func ();
40643 /* The GNU C library defines this for functions which it implements
40644     to always fail with ENOSYS.  Some functions are actually named
40645     something starting with __ and the normal name is an alias.  */
40646 #if defined __stub_$ac_func || defined __stub___$ac_func
40647 choke me
40648 #endif
40649
40650 int
40651 main ()
40652 {
40653 return $ac_func ();
40654   ;
40655   return 0;
40656 }
40657 _ACEOF
40658 rm -f conftest.$ac_objext conftest$ac_exeext
40659 if { (ac_try="$ac_link"
40660 case "(($ac_try" in
40661   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40662   *) ac_try_echo=$ac_try;;
40663 esac
40664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40665   (eval "$ac_link") 2>conftest.er1
40666   ac_status=$?
40667   grep -v '^ *+' conftest.er1 >conftest.err
40668   rm -f conftest.er1
40669   cat conftest.err >&5
40670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40671   (exit $ac_status); } && {
40672          test -z "$ac_c_werror_flag" ||
40673          test ! -s conftest.err
40674        } && test -s conftest$ac_exeext &&
40675        $as_test_x conftest$ac_exeext; then
40676   eval "$as_ac_var=yes"
40677 else
40678   echo "$as_me: failed program was:" >&5
40679 sed 's/^/| /' conftest.$ac_ext >&5
40680
40681         eval "$as_ac_var=no"
40682 fi
40683
40684 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40685       conftest$ac_exeext conftest.$ac_ext
40686 fi
40687 ac_res=`eval echo '${'$as_ac_var'}'`
40688                { echo "$as_me:$LINENO: result: $ac_res" >&5
40689 echo "${ECHO_T}$ac_res" >&6; }
40690 if test `eval echo '${'$as_ac_var'}'` = yes; then
40691   cat >>confdefs.h <<_ACEOF
40692 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40693 _ACEOF
40694
40695 fi
40696 done
40697
40698
40699                   { echo "$as_me:$LINENO: checking for pthread_cleanup_push/pop" >&5
40700 echo $ECHO_N "checking for pthread_cleanup_push/pop... $ECHO_C" >&6; }
40701 if test "${wx_cv_func_pthread_cleanup+set}" = set; then
40702   echo $ECHO_N "(cached) $ECHO_C" >&6
40703 else
40704
40705                                 ac_ext=cpp
40706 ac_cpp='$CXXCPP $CPPFLAGS'
40707 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40708 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40709 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
40710
40711         cat >conftest.$ac_ext <<_ACEOF
40712 /* confdefs.h.  */
40713 _ACEOF
40714 cat confdefs.h >>conftest.$ac_ext
40715 cat >>conftest.$ac_ext <<_ACEOF
40716 /* end confdefs.h.  */
40717 #include <pthread.h>
40718                void ThreadCleanupFunc(void *p);
40719
40720 int
40721 main ()
40722 {
40723
40724                 void *p;
40725                 pthread_cleanup_push(ThreadCleanupFunc, p);
40726                 pthread_cleanup_pop(0);
40727
40728   ;
40729   return 0;
40730 }
40731 _ACEOF
40732 rm -f conftest.$ac_objext
40733 if { (ac_try="$ac_compile"
40734 case "(($ac_try" in
40735   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40736   *) ac_try_echo=$ac_try;;
40737 esac
40738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40739   (eval "$ac_compile") 2>conftest.er1
40740   ac_status=$?
40741   grep -v '^ *+' conftest.er1 >conftest.err
40742   rm -f conftest.er1
40743   cat conftest.err >&5
40744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40745   (exit $ac_status); } && {
40746          test -z "$ac_cxx_werror_flag" ||
40747          test ! -s conftest.err
40748        } && test -s conftest.$ac_objext; then
40749
40750                wx_cv_func_pthread_cleanup=yes
40751
40752 else
40753   echo "$as_me: failed program was:" >&5
40754 sed 's/^/| /' conftest.$ac_ext >&5
40755
40756
40757                wx_cv_func_pthread_cleanup=no
40758
40759
40760 fi
40761
40762 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40763         ac_ext=c
40764 ac_cpp='$CPP $CPPFLAGS'
40765 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40766 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40767 ac_compiler_gnu=$ac_cv_c_compiler_gnu
40768
40769
40770 fi
40771 { echo "$as_me:$LINENO: result: $wx_cv_func_pthread_cleanup" >&5
40772 echo "${ECHO_T}$wx_cv_func_pthread_cleanup" >&6; }
40773       if test "x$wx_cv_func_pthread_cleanup" = "xyes"; then
40774         cat >>confdefs.h <<\_ACEOF
40775 #define wxHAVE_PTHREAD_CLEANUP 1
40776 _ACEOF
40777
40778       fi
40779
40780
40781 for ac_header in sched.h
40782 do
40783 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
40784 { echo "$as_me:$LINENO: checking for $ac_header" >&5
40785 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
40786 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
40787   echo $ECHO_N "(cached) $ECHO_C" >&6
40788 else
40789   cat >conftest.$ac_ext <<_ACEOF
40790 /* confdefs.h.  */
40791 _ACEOF
40792 cat confdefs.h >>conftest.$ac_ext
40793 cat >>conftest.$ac_ext <<_ACEOF
40794 /* end confdefs.h.  */
40795 $ac_includes_default
40796
40797 #include <$ac_header>
40798 _ACEOF
40799 rm -f conftest.$ac_objext
40800 if { (ac_try="$ac_compile"
40801 case "(($ac_try" in
40802   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40803   *) ac_try_echo=$ac_try;;
40804 esac
40805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40806   (eval "$ac_compile") 2>conftest.er1
40807   ac_status=$?
40808   grep -v '^ *+' conftest.er1 >conftest.err
40809   rm -f conftest.er1
40810   cat conftest.err >&5
40811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40812   (exit $ac_status); } && {
40813          test -z "$ac_c_werror_flag" ||
40814          test ! -s conftest.err
40815        } && test -s conftest.$ac_objext; then
40816   eval "$as_ac_Header=yes"
40817 else
40818   echo "$as_me: failed program was:" >&5
40819 sed 's/^/| /' conftest.$ac_ext >&5
40820
40821         eval "$as_ac_Header=no"
40822 fi
40823
40824 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40825 fi
40826 ac_res=`eval echo '${'$as_ac_Header'}'`
40827                { echo "$as_me:$LINENO: result: $ac_res" >&5
40828 echo "${ECHO_T}$ac_res" >&6; }
40829 if test `eval echo '${'$as_ac_Header'}'` = yes; then
40830   cat >>confdefs.h <<_ACEOF
40831 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
40832 _ACEOF
40833
40834 fi
40835
40836 done
40837
40838       if test "$ac_cv_header_sched_h" = "yes"; then
40839           { echo "$as_me:$LINENO: checking for sched_yield" >&5
40840 echo $ECHO_N "checking for sched_yield... $ECHO_C" >&6; }
40841 if test "${ac_cv_func_sched_yield+set}" = set; then
40842   echo $ECHO_N "(cached) $ECHO_C" >&6
40843 else
40844   cat >conftest.$ac_ext <<_ACEOF
40845 /* confdefs.h.  */
40846 _ACEOF
40847 cat confdefs.h >>conftest.$ac_ext
40848 cat >>conftest.$ac_ext <<_ACEOF
40849 /* end confdefs.h.  */
40850 /* Define sched_yield to an innocuous variant, in case <limits.h> declares sched_yield.
40851    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40852 #define sched_yield innocuous_sched_yield
40853
40854 /* System header to define __stub macros and hopefully few prototypes,
40855     which can conflict with char sched_yield (); below.
40856     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40857     <limits.h> exists even on freestanding compilers.  */
40858
40859 #ifdef __STDC__
40860 # include <limits.h>
40861 #else
40862 # include <assert.h>
40863 #endif
40864
40865 #undef sched_yield
40866
40867 /* Override any GCC internal prototype to avoid an error.
40868    Use char because int might match the return type of a GCC
40869    builtin and then its argument prototype would still apply.  */
40870 #ifdef __cplusplus
40871 extern "C"
40872 #endif
40873 char sched_yield ();
40874 /* The GNU C library defines this for functions which it implements
40875     to always fail with ENOSYS.  Some functions are actually named
40876     something starting with __ and the normal name is an alias.  */
40877 #if defined __stub_sched_yield || defined __stub___sched_yield
40878 choke me
40879 #endif
40880
40881 int
40882 main ()
40883 {
40884 return sched_yield ();
40885   ;
40886   return 0;
40887 }
40888 _ACEOF
40889 rm -f conftest.$ac_objext conftest$ac_exeext
40890 if { (ac_try="$ac_link"
40891 case "(($ac_try" in
40892   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40893   *) ac_try_echo=$ac_try;;
40894 esac
40895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40896   (eval "$ac_link") 2>conftest.er1
40897   ac_status=$?
40898   grep -v '^ *+' conftest.er1 >conftest.err
40899   rm -f conftest.er1
40900   cat conftest.err >&5
40901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40902   (exit $ac_status); } && {
40903          test -z "$ac_c_werror_flag" ||
40904          test ! -s conftest.err
40905        } && test -s conftest$ac_exeext &&
40906        $as_test_x conftest$ac_exeext; then
40907   ac_cv_func_sched_yield=yes
40908 else
40909   echo "$as_me: failed program was:" >&5
40910 sed 's/^/| /' conftest.$ac_ext >&5
40911
40912         ac_cv_func_sched_yield=no
40913 fi
40914
40915 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40916       conftest$ac_exeext conftest.$ac_ext
40917 fi
40918 { echo "$as_me:$LINENO: result: $ac_cv_func_sched_yield" >&5
40919 echo "${ECHO_T}$ac_cv_func_sched_yield" >&6; }
40920 if test $ac_cv_func_sched_yield = yes; then
40921   cat >>confdefs.h <<\_ACEOF
40922 #define HAVE_SCHED_YIELD 1
40923 _ACEOF
40924
40925 else
40926
40927                 { echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5
40928 echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6; }
40929 if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then
40930   echo $ECHO_N "(cached) $ECHO_C" >&6
40931 else
40932   ac_check_lib_save_LIBS=$LIBS
40933 LIBS="-lposix4  $LIBS"
40934 cat >conftest.$ac_ext <<_ACEOF
40935 /* confdefs.h.  */
40936 _ACEOF
40937 cat confdefs.h >>conftest.$ac_ext
40938 cat >>conftest.$ac_ext <<_ACEOF
40939 /* end confdefs.h.  */
40940
40941 /* Override any GCC internal prototype to avoid an error.
40942    Use char because int might match the return type of a GCC
40943    builtin and then its argument prototype would still apply.  */
40944 #ifdef __cplusplus
40945 extern "C"
40946 #endif
40947 char sched_yield ();
40948 int
40949 main ()
40950 {
40951 return sched_yield ();
40952   ;
40953   return 0;
40954 }
40955 _ACEOF
40956 rm -f conftest.$ac_objext conftest$ac_exeext
40957 if { (ac_try="$ac_link"
40958 case "(($ac_try" in
40959   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40960   *) ac_try_echo=$ac_try;;
40961 esac
40962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40963   (eval "$ac_link") 2>conftest.er1
40964   ac_status=$?
40965   grep -v '^ *+' conftest.er1 >conftest.err
40966   rm -f conftest.er1
40967   cat conftest.err >&5
40968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40969   (exit $ac_status); } && {
40970          test -z "$ac_c_werror_flag" ||
40971          test ! -s conftest.err
40972        } && test -s conftest$ac_exeext &&
40973        $as_test_x conftest$ac_exeext; then
40974   ac_cv_lib_posix4_sched_yield=yes
40975 else
40976   echo "$as_me: failed program was:" >&5
40977 sed 's/^/| /' conftest.$ac_ext >&5
40978
40979         ac_cv_lib_posix4_sched_yield=no
40980 fi
40981
40982 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40983       conftest$ac_exeext conftest.$ac_ext
40984 LIBS=$ac_check_lib_save_LIBS
40985 fi
40986 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5
40987 echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6; }
40988 if test $ac_cv_lib_posix4_sched_yield = yes; then
40989   cat >>confdefs.h <<\_ACEOF
40990 #define HAVE_SCHED_YIELD 1
40991 _ACEOF
40992  POSIX4_LINK=" -lposix4"
40993 else
40994   { echo "$as_me:$LINENO: WARNING: wxThread::Yield will not work properly" >&5
40995 echo "$as_me: WARNING: wxThread::Yield will not work properly" >&2;}
40996
40997 fi
40998
40999
41000
41001 fi
41002
41003       fi
41004
41005                                           HAVE_PRIOR_FUNCS=0
41006       { echo "$as_me:$LINENO: checking for pthread_attr_getschedpolicy" >&5
41007 echo $ECHO_N "checking for pthread_attr_getschedpolicy... $ECHO_C" >&6; }
41008 if test "${ac_cv_func_pthread_attr_getschedpolicy+set}" = set; then
41009   echo $ECHO_N "(cached) $ECHO_C" >&6
41010 else
41011   cat >conftest.$ac_ext <<_ACEOF
41012 /* confdefs.h.  */
41013 _ACEOF
41014 cat confdefs.h >>conftest.$ac_ext
41015 cat >>conftest.$ac_ext <<_ACEOF
41016 /* end confdefs.h.  */
41017 /* Define pthread_attr_getschedpolicy to an innocuous variant, in case <limits.h> declares pthread_attr_getschedpolicy.
41018    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41019 #define pthread_attr_getschedpolicy innocuous_pthread_attr_getschedpolicy
41020
41021 /* System header to define __stub macros and hopefully few prototypes,
41022     which can conflict with char pthread_attr_getschedpolicy (); below.
41023     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41024     <limits.h> exists even on freestanding compilers.  */
41025
41026 #ifdef __STDC__
41027 # include <limits.h>
41028 #else
41029 # include <assert.h>
41030 #endif
41031
41032 #undef pthread_attr_getschedpolicy
41033
41034 /* Override any GCC internal prototype to avoid an error.
41035    Use char because int might match the return type of a GCC
41036    builtin and then its argument prototype would still apply.  */
41037 #ifdef __cplusplus
41038 extern "C"
41039 #endif
41040 char pthread_attr_getschedpolicy ();
41041 /* The GNU C library defines this for functions which it implements
41042     to always fail with ENOSYS.  Some functions are actually named
41043     something starting with __ and the normal name is an alias.  */
41044 #if defined __stub_pthread_attr_getschedpolicy || defined __stub___pthread_attr_getschedpolicy
41045 choke me
41046 #endif
41047
41048 int
41049 main ()
41050 {
41051 return pthread_attr_getschedpolicy ();
41052   ;
41053   return 0;
41054 }
41055 _ACEOF
41056 rm -f conftest.$ac_objext conftest$ac_exeext
41057 if { (ac_try="$ac_link"
41058 case "(($ac_try" in
41059   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41060   *) ac_try_echo=$ac_try;;
41061 esac
41062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41063   (eval "$ac_link") 2>conftest.er1
41064   ac_status=$?
41065   grep -v '^ *+' conftest.er1 >conftest.err
41066   rm -f conftest.er1
41067   cat conftest.err >&5
41068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41069   (exit $ac_status); } && {
41070          test -z "$ac_c_werror_flag" ||
41071          test ! -s conftest.err
41072        } && test -s conftest$ac_exeext &&
41073        $as_test_x conftest$ac_exeext; then
41074   ac_cv_func_pthread_attr_getschedpolicy=yes
41075 else
41076   echo "$as_me: failed program was:" >&5
41077 sed 's/^/| /' conftest.$ac_ext >&5
41078
41079         ac_cv_func_pthread_attr_getschedpolicy=no
41080 fi
41081
41082 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41083       conftest$ac_exeext conftest.$ac_ext
41084 fi
41085 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_getschedpolicy" >&5
41086 echo "${ECHO_T}$ac_cv_func_pthread_attr_getschedpolicy" >&6; }
41087 if test $ac_cv_func_pthread_attr_getschedpolicy = yes; then
41088   { echo "$as_me:$LINENO: checking for pthread_attr_setschedparam" >&5
41089 echo $ECHO_N "checking for pthread_attr_setschedparam... $ECHO_C" >&6; }
41090 if test "${ac_cv_func_pthread_attr_setschedparam+set}" = set; then
41091   echo $ECHO_N "(cached) $ECHO_C" >&6
41092 else
41093   cat >conftest.$ac_ext <<_ACEOF
41094 /* confdefs.h.  */
41095 _ACEOF
41096 cat confdefs.h >>conftest.$ac_ext
41097 cat >>conftest.$ac_ext <<_ACEOF
41098 /* end confdefs.h.  */
41099 /* Define pthread_attr_setschedparam to an innocuous variant, in case <limits.h> declares pthread_attr_setschedparam.
41100    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41101 #define pthread_attr_setschedparam innocuous_pthread_attr_setschedparam
41102
41103 /* System header to define __stub macros and hopefully few prototypes,
41104     which can conflict with char pthread_attr_setschedparam (); below.
41105     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41106     <limits.h> exists even on freestanding compilers.  */
41107
41108 #ifdef __STDC__
41109 # include <limits.h>
41110 #else
41111 # include <assert.h>
41112 #endif
41113
41114 #undef pthread_attr_setschedparam
41115
41116 /* Override any GCC internal prototype to avoid an error.
41117    Use char because int might match the return type of a GCC
41118    builtin and then its argument prototype would still apply.  */
41119 #ifdef __cplusplus
41120 extern "C"
41121 #endif
41122 char pthread_attr_setschedparam ();
41123 /* The GNU C library defines this for functions which it implements
41124     to always fail with ENOSYS.  Some functions are actually named
41125     something starting with __ and the normal name is an alias.  */
41126 #if defined __stub_pthread_attr_setschedparam || defined __stub___pthread_attr_setschedparam
41127 choke me
41128 #endif
41129
41130 int
41131 main ()
41132 {
41133 return pthread_attr_setschedparam ();
41134   ;
41135   return 0;
41136 }
41137 _ACEOF
41138 rm -f conftest.$ac_objext conftest$ac_exeext
41139 if { (ac_try="$ac_link"
41140 case "(($ac_try" in
41141   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41142   *) ac_try_echo=$ac_try;;
41143 esac
41144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41145   (eval "$ac_link") 2>conftest.er1
41146   ac_status=$?
41147   grep -v '^ *+' conftest.er1 >conftest.err
41148   rm -f conftest.er1
41149   cat conftest.err >&5
41150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41151   (exit $ac_status); } && {
41152          test -z "$ac_c_werror_flag" ||
41153          test ! -s conftest.err
41154        } && test -s conftest$ac_exeext &&
41155        $as_test_x conftest$ac_exeext; then
41156   ac_cv_func_pthread_attr_setschedparam=yes
41157 else
41158   echo "$as_me: failed program was:" >&5
41159 sed 's/^/| /' conftest.$ac_ext >&5
41160
41161         ac_cv_func_pthread_attr_setschedparam=no
41162 fi
41163
41164 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41165       conftest$ac_exeext conftest.$ac_ext
41166 fi
41167 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setschedparam" >&5
41168 echo "${ECHO_T}$ac_cv_func_pthread_attr_setschedparam" >&6; }
41169 if test $ac_cv_func_pthread_attr_setschedparam = yes; then
41170   { echo "$as_me:$LINENO: checking for sched_get_priority_max" >&5
41171 echo $ECHO_N "checking for sched_get_priority_max... $ECHO_C" >&6; }
41172 if test "${ac_cv_func_sched_get_priority_max+set}" = set; then
41173   echo $ECHO_N "(cached) $ECHO_C" >&6
41174 else
41175   cat >conftest.$ac_ext <<_ACEOF
41176 /* confdefs.h.  */
41177 _ACEOF
41178 cat confdefs.h >>conftest.$ac_ext
41179 cat >>conftest.$ac_ext <<_ACEOF
41180 /* end confdefs.h.  */
41181 /* Define sched_get_priority_max to an innocuous variant, in case <limits.h> declares sched_get_priority_max.
41182    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41183 #define sched_get_priority_max innocuous_sched_get_priority_max
41184
41185 /* System header to define __stub macros and hopefully few prototypes,
41186     which can conflict with char sched_get_priority_max (); below.
41187     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41188     <limits.h> exists even on freestanding compilers.  */
41189
41190 #ifdef __STDC__
41191 # include <limits.h>
41192 #else
41193 # include <assert.h>
41194 #endif
41195
41196 #undef sched_get_priority_max
41197
41198 /* Override any GCC internal prototype to avoid an error.
41199    Use char because int might match the return type of a GCC
41200    builtin and then its argument prototype would still apply.  */
41201 #ifdef __cplusplus
41202 extern "C"
41203 #endif
41204 char sched_get_priority_max ();
41205 /* The GNU C library defines this for functions which it implements
41206     to always fail with ENOSYS.  Some functions are actually named
41207     something starting with __ and the normal name is an alias.  */
41208 #if defined __stub_sched_get_priority_max || defined __stub___sched_get_priority_max
41209 choke me
41210 #endif
41211
41212 int
41213 main ()
41214 {
41215 return sched_get_priority_max ();
41216   ;
41217   return 0;
41218 }
41219 _ACEOF
41220 rm -f conftest.$ac_objext conftest$ac_exeext
41221 if { (ac_try="$ac_link"
41222 case "(($ac_try" in
41223   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41224   *) ac_try_echo=$ac_try;;
41225 esac
41226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41227   (eval "$ac_link") 2>conftest.er1
41228   ac_status=$?
41229   grep -v '^ *+' conftest.er1 >conftest.err
41230   rm -f conftest.er1
41231   cat conftest.err >&5
41232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41233   (exit $ac_status); } && {
41234          test -z "$ac_c_werror_flag" ||
41235          test ! -s conftest.err
41236        } && test -s conftest$ac_exeext &&
41237        $as_test_x conftest$ac_exeext; then
41238   ac_cv_func_sched_get_priority_max=yes
41239 else
41240   echo "$as_me: failed program was:" >&5
41241 sed 's/^/| /' conftest.$ac_ext >&5
41242
41243         ac_cv_func_sched_get_priority_max=no
41244 fi
41245
41246 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41247       conftest$ac_exeext conftest.$ac_ext
41248 fi
41249 { echo "$as_me:$LINENO: result: $ac_cv_func_sched_get_priority_max" >&5
41250 echo "${ECHO_T}$ac_cv_func_sched_get_priority_max" >&6; }
41251 if test $ac_cv_func_sched_get_priority_max = yes; then
41252   HAVE_PRIOR_FUNCS=1
41253 else
41254   { echo "$as_me:$LINENO: checking for sched_get_priority_max in -lposix4" >&5
41255 echo $ECHO_N "checking for sched_get_priority_max in -lposix4... $ECHO_C" >&6; }
41256 if test "${ac_cv_lib_posix4_sched_get_priority_max+set}" = set; then
41257   echo $ECHO_N "(cached) $ECHO_C" >&6
41258 else
41259   ac_check_lib_save_LIBS=$LIBS
41260 LIBS="-lposix4  $LIBS"
41261 cat >conftest.$ac_ext <<_ACEOF
41262 /* confdefs.h.  */
41263 _ACEOF
41264 cat confdefs.h >>conftest.$ac_ext
41265 cat >>conftest.$ac_ext <<_ACEOF
41266 /* end confdefs.h.  */
41267
41268 /* Override any GCC internal prototype to avoid an error.
41269    Use char because int might match the return type of a GCC
41270    builtin and then its argument prototype would still apply.  */
41271 #ifdef __cplusplus
41272 extern "C"
41273 #endif
41274 char sched_get_priority_max ();
41275 int
41276 main ()
41277 {
41278 return sched_get_priority_max ();
41279   ;
41280   return 0;
41281 }
41282 _ACEOF
41283 rm -f conftest.$ac_objext conftest$ac_exeext
41284 if { (ac_try="$ac_link"
41285 case "(($ac_try" in
41286   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41287   *) ac_try_echo=$ac_try;;
41288 esac
41289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41290   (eval "$ac_link") 2>conftest.er1
41291   ac_status=$?
41292   grep -v '^ *+' conftest.er1 >conftest.err
41293   rm -f conftest.er1
41294   cat conftest.err >&5
41295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41296   (exit $ac_status); } && {
41297          test -z "$ac_c_werror_flag" ||
41298          test ! -s conftest.err
41299        } && test -s conftest$ac_exeext &&
41300        $as_test_x conftest$ac_exeext; then
41301   ac_cv_lib_posix4_sched_get_priority_max=yes
41302 else
41303   echo "$as_me: failed program was:" >&5
41304 sed 's/^/| /' conftest.$ac_ext >&5
41305
41306         ac_cv_lib_posix4_sched_get_priority_max=no
41307 fi
41308
41309 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41310       conftest$ac_exeext conftest.$ac_ext
41311 LIBS=$ac_check_lib_save_LIBS
41312 fi
41313 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_get_priority_max" >&5
41314 echo "${ECHO_T}$ac_cv_lib_posix4_sched_get_priority_max" >&6; }
41315 if test $ac_cv_lib_posix4_sched_get_priority_max = yes; then
41316
41317                                 HAVE_PRIOR_FUNCS=1
41318                                 POSIX4_LINK=" -lposix4"
41319
41320 fi
41321
41322
41323 fi
41324
41325
41326 fi
41327
41328
41329 fi
41330
41331
41332       if test "$HAVE_PRIOR_FUNCS" = 1; then
41333         cat >>confdefs.h <<\_ACEOF
41334 #define HAVE_THREAD_PRIORITY_FUNCTIONS 1
41335 _ACEOF
41336
41337       else
41338         { echo "$as_me:$LINENO: WARNING: Setting thread priority will not work" >&5
41339 echo "$as_me: WARNING: Setting thread priority will not work" >&2;}
41340       fi
41341
41342       { echo "$as_me:$LINENO: checking for pthread_cancel" >&5
41343 echo $ECHO_N "checking for pthread_cancel... $ECHO_C" >&6; }
41344 if test "${ac_cv_func_pthread_cancel+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_cancel to an innocuous variant, in case <limits.h> declares pthread_cancel.
41354    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41355 #define pthread_cancel innocuous_pthread_cancel
41356
41357 /* System header to define __stub macros and hopefully few prototypes,
41358     which can conflict with char pthread_cancel (); 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_cancel
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_cancel ();
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_cancel || defined __stub___pthread_cancel
41381 choke me
41382 #endif
41383
41384 int
41385 main ()
41386 {
41387 return pthread_cancel ();
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_cancel=yes
41411 else
41412   echo "$as_me: failed program was:" >&5
41413 sed 's/^/| /' conftest.$ac_ext >&5
41414
41415         ac_cv_func_pthread_cancel=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_cancel" >&5
41422 echo "${ECHO_T}$ac_cv_func_pthread_cancel" >&6; }
41423 if test $ac_cv_func_pthread_cancel = yes; then
41424   cat >>confdefs.h <<\_ACEOF
41425 #define HAVE_PTHREAD_CANCEL 1
41426 _ACEOF
41427
41428 else
41429   { echo "$as_me:$LINENO: WARNING: wxThread::Kill() will not work properly" >&5
41430 echo "$as_me: WARNING: wxThread::Kill() will not work properly" >&2;}
41431 fi
41432
41433
41434       { echo "$as_me:$LINENO: checking for pthread_mutex_timedlock" >&5
41435 echo $ECHO_N "checking for pthread_mutex_timedlock... $ECHO_C" >&6; }
41436 if test "${ac_cv_func_pthread_mutex_timedlock+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_mutex_timedlock to an innocuous variant, in case <limits.h> declares pthread_mutex_timedlock.
41446    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41447 #define pthread_mutex_timedlock innocuous_pthread_mutex_timedlock
41448
41449 /* System header to define __stub macros and hopefully few prototypes,
41450     which can conflict with char pthread_mutex_timedlock (); 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_mutex_timedlock
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_mutex_timedlock ();
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_mutex_timedlock || defined __stub___pthread_mutex_timedlock
41473 choke me
41474 #endif
41475
41476 int
41477 main ()
41478 {
41479 return pthread_mutex_timedlock ();
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_mutex_timedlock=yes
41503 else
41504   echo "$as_me: failed program was:" >&5
41505 sed 's/^/| /' conftest.$ac_ext >&5
41506
41507         ac_cv_func_pthread_mutex_timedlock=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_mutex_timedlock" >&5
41514 echo "${ECHO_T}$ac_cv_func_pthread_mutex_timedlock" >&6; }
41515 if test $ac_cv_func_pthread_mutex_timedlock = yes; then
41516   cat >>confdefs.h <<\_ACEOF
41517 #define HAVE_PTHREAD_MUTEX_TIMEDLOCK 1
41518 _ACEOF
41519
41520 else
41521   { echo "$as_me:$LINENO: WARNING: wxMutex::LockTimeout() will not work" >&5
41522 echo "$as_me: WARNING: wxMutex::LockTimeout() will not work" >&2;}
41523 fi
41524
41525
41526       { echo "$as_me:$LINENO: checking for pthread_attr_setstacksize" >&5
41527 echo $ECHO_N "checking for pthread_attr_setstacksize... $ECHO_C" >&6; }
41528 if test "${ac_cv_func_pthread_attr_setstacksize+set}" = set; then
41529   echo $ECHO_N "(cached) $ECHO_C" >&6
41530 else
41531   cat >conftest.$ac_ext <<_ACEOF
41532 /* confdefs.h.  */
41533 _ACEOF
41534 cat confdefs.h >>conftest.$ac_ext
41535 cat >>conftest.$ac_ext <<_ACEOF
41536 /* end confdefs.h.  */
41537 /* Define pthread_attr_setstacksize to an innocuous variant, in case <limits.h> declares pthread_attr_setstacksize.
41538    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41539 #define pthread_attr_setstacksize innocuous_pthread_attr_setstacksize
41540
41541 /* System header to define __stub macros and hopefully few prototypes,
41542     which can conflict with char pthread_attr_setstacksize (); below.
41543     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41544     <limits.h> exists even on freestanding compilers.  */
41545
41546 #ifdef __STDC__
41547 # include <limits.h>
41548 #else
41549 # include <assert.h>
41550 #endif
41551
41552 #undef pthread_attr_setstacksize
41553
41554 /* Override any GCC internal prototype to avoid an error.
41555    Use char because int might match the return type of a GCC
41556    builtin and then its argument prototype would still apply.  */
41557 #ifdef __cplusplus
41558 extern "C"
41559 #endif
41560 char pthread_attr_setstacksize ();
41561 /* The GNU C library defines this for functions which it implements
41562     to always fail with ENOSYS.  Some functions are actually named
41563     something starting with __ and the normal name is an alias.  */
41564 #if defined __stub_pthread_attr_setstacksize || defined __stub___pthread_attr_setstacksize
41565 choke me
41566 #endif
41567
41568 int
41569 main ()
41570 {
41571 return pthread_attr_setstacksize ();
41572   ;
41573   return 0;
41574 }
41575 _ACEOF
41576 rm -f conftest.$ac_objext conftest$ac_exeext
41577 if { (ac_try="$ac_link"
41578 case "(($ac_try" in
41579   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41580   *) ac_try_echo=$ac_try;;
41581 esac
41582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41583   (eval "$ac_link") 2>conftest.er1
41584   ac_status=$?
41585   grep -v '^ *+' conftest.er1 >conftest.err
41586   rm -f conftest.er1
41587   cat conftest.err >&5
41588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41589   (exit $ac_status); } && {
41590          test -z "$ac_c_werror_flag" ||
41591          test ! -s conftest.err
41592        } && test -s conftest$ac_exeext &&
41593        $as_test_x conftest$ac_exeext; then
41594   ac_cv_func_pthread_attr_setstacksize=yes
41595 else
41596   echo "$as_me: failed program was:" >&5
41597 sed 's/^/| /' conftest.$ac_ext >&5
41598
41599         ac_cv_func_pthread_attr_setstacksize=no
41600 fi
41601
41602 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41603       conftest$ac_exeext conftest.$ac_ext
41604 fi
41605 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setstacksize" >&5
41606 echo "${ECHO_T}$ac_cv_func_pthread_attr_setstacksize" >&6; }
41607 if test $ac_cv_func_pthread_attr_setstacksize = yes; then
41608   cat >>confdefs.h <<\_ACEOF
41609 #define HAVE_PTHREAD_ATTR_SETSTACKSIZE 1
41610 _ACEOF
41611
41612 fi
41613
41614
41615
41616       { echo "$as_me:$LINENO: checking for pthread_mutexattr_t" >&5
41617 echo $ECHO_N "checking for pthread_mutexattr_t... $ECHO_C" >&6; }
41618 if test "${wx_cv_type_pthread_mutexattr_t+set}" = set; then
41619   echo $ECHO_N "(cached) $ECHO_C" >&6
41620 else
41621
41622         cat >conftest.$ac_ext <<_ACEOF
41623 /* confdefs.h.  */
41624 _ACEOF
41625 cat confdefs.h >>conftest.$ac_ext
41626 cat >>conftest.$ac_ext <<_ACEOF
41627 /* end confdefs.h.  */
41628 #include <pthread.h>
41629 int
41630 main ()
41631 {
41632
41633                pthread_mutexattr_t attr;
41634                pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
41635
41636   ;
41637   return 0;
41638 }
41639 _ACEOF
41640 rm -f conftest.$ac_objext
41641 if { (ac_try="$ac_compile"
41642 case "(($ac_try" in
41643   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41644   *) ac_try_echo=$ac_try;;
41645 esac
41646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41647   (eval "$ac_compile") 2>conftest.er1
41648   ac_status=$?
41649   grep -v '^ *+' conftest.er1 >conftest.err
41650   rm -f conftest.er1
41651   cat conftest.err >&5
41652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41653   (exit $ac_status); } && {
41654          test -z "$ac_c_werror_flag" ||
41655          test ! -s conftest.err
41656        } && test -s conftest.$ac_objext; then
41657   wx_cv_type_pthread_mutexattr_t=yes
41658 else
41659   echo "$as_me: failed program was:" >&5
41660 sed 's/^/| /' conftest.$ac_ext >&5
41661
41662         wx_cv_type_pthread_mutexattr_t=no
41663
41664 fi
41665
41666 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41667
41668 fi
41669 { echo "$as_me:$LINENO: result: $wx_cv_type_pthread_mutexattr_t" >&5
41670 echo "${ECHO_T}$wx_cv_type_pthread_mutexattr_t" >&6; }
41671
41672       if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
41673         cat >>confdefs.h <<\_ACEOF
41674 #define HAVE_PTHREAD_MUTEXATTR_T 1
41675 _ACEOF
41676
41677
41678                         { echo "$as_me:$LINENO: checking for pthread_mutexattr_settype declaration" >&5
41679 echo $ECHO_N "checking for pthread_mutexattr_settype declaration... $ECHO_C" >&6; }
41680 if test "${wx_cv_func_pthread_mutexattr_settype_decl+set}" = set; then
41681   echo $ECHO_N "(cached) $ECHO_C" >&6
41682 else
41683
41684                        cat >conftest.$ac_ext <<_ACEOF
41685 /* confdefs.h.  */
41686 _ACEOF
41687 cat confdefs.h >>conftest.$ac_ext
41688 cat >>conftest.$ac_ext <<_ACEOF
41689 /* end confdefs.h.  */
41690 #include <pthread.h>
41691 int
41692 main ()
41693 {
41694
41695                                pthread_mutexattr_t attr;
41696                                pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
41697
41698   ;
41699   return 0;
41700 }
41701 _ACEOF
41702 rm -f conftest.$ac_objext
41703 if { (ac_try="$ac_compile"
41704 case "(($ac_try" in
41705   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41706   *) ac_try_echo=$ac_try;;
41707 esac
41708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41709   (eval "$ac_compile") 2>conftest.er1
41710   ac_status=$?
41711   grep -v '^ *+' conftest.er1 >conftest.err
41712   rm -f conftest.er1
41713   cat conftest.err >&5
41714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41715   (exit $ac_status); } && {
41716          test -z "$ac_c_werror_flag" ||
41717          test ! -s conftest.err
41718        } && test -s conftest.$ac_objext; then
41719   wx_cv_func_pthread_mutexattr_settype_decl=yes
41720 else
41721   echo "$as_me: failed program was:" >&5
41722 sed 's/^/| /' conftest.$ac_ext >&5
41723
41724         wx_cv_func_pthread_mutexattr_settype_decl=no
41725
41726 fi
41727
41728 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41729
41730 fi
41731 { echo "$as_me:$LINENO: result: $wx_cv_func_pthread_mutexattr_settype_decl" >&5
41732 echo "${ECHO_T}$wx_cv_func_pthread_mutexattr_settype_decl" >&6; }
41733         if test "$wx_cv_func_pthread_mutexattr_settype_decl" = "yes"; then
41734             cat >>confdefs.h <<\_ACEOF
41735 #define HAVE_PTHREAD_MUTEXATTR_SETTYPE_DECL 1
41736 _ACEOF
41737
41738         fi
41739       else
41740                 { echo "$as_me:$LINENO: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
41741 echo $ECHO_N "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER... $ECHO_C" >&6; }
41742 if test "${wx_cv_type_pthread_rec_mutex_init+set}" = set; then
41743   echo $ECHO_N "(cached) $ECHO_C" >&6
41744 else
41745
41746             cat >conftest.$ac_ext <<_ACEOF
41747 /* confdefs.h.  */
41748 _ACEOF
41749 cat confdefs.h >>conftest.$ac_ext
41750 cat >>conftest.$ac_ext <<_ACEOF
41751 /* end confdefs.h.  */
41752 #include <pthread.h>
41753 int
41754 main ()
41755 {
41756
41757                     pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
41758
41759   ;
41760   return 0;
41761 }
41762 _ACEOF
41763 rm -f conftest.$ac_objext
41764 if { (ac_try="$ac_compile"
41765 case "(($ac_try" in
41766   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41767   *) ac_try_echo=$ac_try;;
41768 esac
41769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41770   (eval "$ac_compile") 2>conftest.er1
41771   ac_status=$?
41772   grep -v '^ *+' conftest.er1 >conftest.err
41773   rm -f conftest.er1
41774   cat conftest.err >&5
41775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41776   (exit $ac_status); } && {
41777          test -z "$ac_c_werror_flag" ||
41778          test ! -s conftest.err
41779        } && test -s conftest.$ac_objext; then
41780
41781                     wx_cv_type_pthread_rec_mutex_init=yes
41782
41783 else
41784   echo "$as_me: failed program was:" >&5
41785 sed 's/^/| /' conftest.$ac_ext >&5
41786
41787
41788                     wx_cv_type_pthread_rec_mutex_init=no
41789
41790
41791 fi
41792
41793 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41794
41795 fi
41796 { echo "$as_me:$LINENO: result: $wx_cv_type_pthread_rec_mutex_init" >&5
41797 echo "${ECHO_T}$wx_cv_type_pthread_rec_mutex_init" >&6; }
41798         if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
41799           cat >>confdefs.h <<\_ACEOF
41800 #define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
41801 _ACEOF
41802
41803         else
41804                     { echo "$as_me:$LINENO: WARNING: wxMutex won't be recursive on this platform" >&5
41805 echo "$as_me: WARNING: wxMutex won't be recursive on this platform" >&2;}
41806         fi
41807       fi
41808
41809       if test "$wxUSE_COMPILER_TLS" = "auto"; then
41810           if test "$USE_NETBSD" = 1; then
41811               { echo "$as_me:$LINENO: WARNING: Disabling TLS under NetBSD, please contact wx-dev if it works now" >&5
41812 echo "$as_me: WARNING: Disabling TLS under NetBSD, please contact wx-dev if it works now" >&2;}
41813               wxUSE_COMPILER_TLS=no
41814           else
41815               wxUSE_COMPILER_TLS=yes
41816           fi
41817       fi
41818
41819       if test "$wxUSE_COMPILER_TLS" = "yes"; then
41820                     { echo "$as_me:$LINENO: checking for __thread keyword" >&5
41821 echo $ECHO_N "checking for __thread keyword... $ECHO_C" >&6; }
41822 if test "${wx_cv_cc___thread+set}" = set; then
41823   echo $ECHO_N "(cached) $ECHO_C" >&6
41824 else
41825
41826                   cat >conftest.$ac_ext <<_ACEOF
41827 /* confdefs.h.  */
41828 _ACEOF
41829 cat confdefs.h >>conftest.$ac_ext
41830 cat >>conftest.$ac_ext <<_ACEOF
41831 /* end confdefs.h.  */
41832 #include <pthread.h>
41833 int
41834 main ()
41835 {
41836
41837                           static __thread int n = 0;
41838                           static __thread int *p = 0;
41839
41840   ;
41841   return 0;
41842 }
41843 _ACEOF
41844 rm -f conftest.$ac_objext
41845 if { (ac_try="$ac_compile"
41846 case "(($ac_try" in
41847   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41848   *) ac_try_echo=$ac_try;;
41849 esac
41850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41851   (eval "$ac_compile") 2>conftest.er1
41852   ac_status=$?
41853   grep -v '^ *+' conftest.er1 >conftest.err
41854   rm -f conftest.er1
41855   cat conftest.err >&5
41856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41857   (exit $ac_status); } && {
41858          test -z "$ac_c_werror_flag" ||
41859          test ! -s conftest.err
41860        } && test -s conftest.$ac_objext; then
41861   wx_cv_cc___thread=yes
41862 else
41863   echo "$as_me: failed program was:" >&5
41864 sed 's/^/| /' conftest.$ac_ext >&5
41865
41866         wx_cv_cc___thread=no
41867
41868 fi
41869
41870 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41871
41872
41873 fi
41874 { echo "$as_me:$LINENO: result: $wx_cv_cc___thread" >&5
41875 echo "${ECHO_T}$wx_cv_cc___thread" >&6; }
41876
41877           if test "$wx_cv_cc___thread" = "yes"; then
41878
41879   GXX_VERSION=""
41880
41881
41882
41883   { echo "$as_me:$LINENO: checking if gcc accepts -dumpversion option" >&5
41884 echo $ECHO_N "checking if gcc accepts -dumpversion option... $ECHO_C" >&6; }
41885
41886   if  test "x$GCC" = "xyes" ; then
41887
41888     if  test -z "" ; then
41889
41890       ax_gcc_option_test="int main()
41891 {
41892         return 0;
41893 }"
41894
41895 else
41896
41897       ax_gcc_option_test=""
41898
41899 fi
41900
41901
41902     # Dump the test program to file
41903     cat <<EOF > conftest.c
41904 $ax_gcc_option_test
41905 EOF
41906
41907     # Dump back the file to the log, useful for debugging purposes
41908     { ac_try='cat conftest.c 1>&5'
41909   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41910   (eval $ac_try) 2>&5
41911   ac_status=$?
41912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41913   (exit $ac_status); }; }
41914
41915     if  { ac_try='$CC  -dumpversion -c conftest.c 1>&5'
41916   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41917   (eval $ac_try) 2>&5
41918   ac_status=$?
41919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41920   (exit $ac_status); }; } ; then
41921
41922                 { echo "$as_me:$LINENO: result: yes" >&5
41923 echo "${ECHO_T}yes" >&6; }
41924
41925     ax_gcc_version_option=yes
41926
41927
41928 else
41929
41930                 { echo "$as_me:$LINENO: result: no" >&5
41931 echo "${ECHO_T}no" >&6; }
41932
41933     ax_gcc_version_option=no
41934
41935
41936 fi
41937
41938
41939 else
41940
41941     { echo "$as_me:$LINENO: result: no gcc available" >&5
41942 echo "${ECHO_T}no gcc available" >&6; }
41943
41944 fi
41945
41946
41947   if test "x$GXX" = "xyes"; then
41948
41949     if test "x$ax_gxx_version_option" != "no"; then
41950
41951       { echo "$as_me:$LINENO: checking gxx version" >&5
41952 echo $ECHO_N "checking gxx version... $ECHO_C" >&6; }
41953 if test "${ax_cv_gxx_version+set}" = set; then
41954   echo $ECHO_N "(cached) $ECHO_C" >&6
41955 else
41956
41957         ax_cv_gxx_version="`$CXX -dumpversion`"
41958         if test "x$ax_cv_gxx_version" = "x"; then
41959
41960           ax_cv_gxx_version=""
41961
41962 fi
41963
41964
41965 fi
41966 { echo "$as_me:$LINENO: result: $ax_cv_gxx_version" >&5
41967 echo "${ECHO_T}$ax_cv_gxx_version" >&6; }
41968       GXX_VERSION=$ax_cv_gxx_version
41969
41970 fi
41971
41972
41973 fi
41974
41975
41976
41977               if test -n "$ax_cv_gxx_version"; then
41978                                                                                                                                                                   { echo "$as_me:$LINENO: checking whether __thread support in g++ is usable" >&5
41979 echo $ECHO_N "checking whether __thread support in g++ is usable... $ECHO_C" >&6; }
41980                   case "$ax_cv_gxx_version" in
41981                     1.* | 2.* | 3.* )
41982                         { echo "$as_me:$LINENO: result: no, it's broken" >&5
41983 echo "${ECHO_T}no, it's broken" >&6; }
41984                         wx_cv_cc___thread=no
41985                         ;;
41986                     *)
41987                         { echo "$as_me:$LINENO: result: yes, it works" >&5
41988 echo "${ECHO_T}yes, it works" >&6; }
41989                         ;;
41990                   esac
41991               fi
41992           fi
41993
41994           if test "$wx_cv_cc___thread" = "yes"; then
41995             cat >>confdefs.h <<\_ACEOF
41996 #define HAVE___THREAD_KEYWORD 1
41997 _ACEOF
41998
41999           fi
42000         fi
42001     fi
42002
42003 else
42004     if test "$wxUSE_THREADS" = "yes" ; then
42005       case "${host}" in
42006         x86_64-*-mingw32* )
42007         ;;
42008         *-*-mingw32* )
42009                         { echo "$as_me:$LINENO: checking if compiler supports -mthreads" >&5
42010 echo $ECHO_N "checking if compiler supports -mthreads... $ECHO_C" >&6; }
42011 if test "${wx_cv_cflags_mthread+set}" = set; then
42012   echo $ECHO_N "(cached) $ECHO_C" >&6
42013 else
42014
42015                     CFLAGS_OLD="$CFLAGS"
42016                     CFLAGS="-mthreads $CFLAGS"
42017                     cat >conftest.$ac_ext <<_ACEOF
42018 /* confdefs.h.  */
42019 _ACEOF
42020 cat confdefs.h >>conftest.$ac_ext
42021 cat >>conftest.$ac_ext <<_ACEOF
42022 /* end confdefs.h.  */
42023
42024 int
42025 main ()
42026 {
42027
42028   ;
42029   return 0;
42030 }
42031 _ACEOF
42032 rm -f conftest.$ac_objext
42033 if { (ac_try="$ac_compile"
42034 case "(($ac_try" in
42035   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42036   *) ac_try_echo=$ac_try;;
42037 esac
42038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42039   (eval "$ac_compile") 2>conftest.er1
42040   ac_status=$?
42041   grep -v '^ *+' conftest.er1 >conftest.err
42042   rm -f conftest.er1
42043   cat conftest.err >&5
42044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42045   (exit $ac_status); } && {
42046          test -z "$ac_c_werror_flag" ||
42047          test ! -s conftest.err
42048        } && test -s conftest.$ac_objext; then
42049   wx_cv_cflags_mthread=yes
42050 else
42051   echo "$as_me: failed program was:" >&5
42052 sed 's/^/| /' conftest.$ac_ext >&5
42053
42054         wx_cv_cflags_mthread=no
42055
42056 fi
42057
42058 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42059
42060
42061 fi
42062 { echo "$as_me:$LINENO: result: $wx_cv_cflags_mthread" >&5
42063 echo "${ECHO_T}$wx_cv_cflags_mthread" >&6; }
42064
42065             if test "$wx_cv_cflags_mthread" = "yes"; then
42066                                 WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -mthreads"
42067                 LDFLAGS="$LDFLAGS -mthreads"
42068             else
42069                                 CFLAGS="$CFLAGS_OLD"
42070             fi
42071         ;;
42072         *-pc-os2*emx )
42073             WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -Zmt -D__ST_MT_ERRNO__"
42074             LDFLAGS="$LDFLAGS -Zmt"
42075         ;;
42076       esac
42077     fi
42078 fi
42079
42080 { echo "$as_me:$LINENO: checking for localtime_r" >&5
42081 echo $ECHO_N "checking for localtime_r... $ECHO_C" >&6; }
42082 if test "${ac_cv_func_localtime_r+set}" = set; then
42083   echo $ECHO_N "(cached) $ECHO_C" >&6
42084 else
42085   cat >conftest.$ac_ext <<_ACEOF
42086 /* confdefs.h.  */
42087 _ACEOF
42088 cat confdefs.h >>conftest.$ac_ext
42089 cat >>conftest.$ac_ext <<_ACEOF
42090 /* end confdefs.h.  */
42091 /* Define localtime_r to an innocuous variant, in case <limits.h> declares localtime_r.
42092    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
42093 #define localtime_r innocuous_localtime_r
42094
42095 /* System header to define __stub macros and hopefully few prototypes,
42096     which can conflict with char localtime_r (); below.
42097     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42098     <limits.h> exists even on freestanding compilers.  */
42099
42100 #ifdef __STDC__
42101 # include <limits.h>
42102 #else
42103 # include <assert.h>
42104 #endif
42105
42106 #undef localtime_r
42107
42108 /* Override any GCC internal prototype to avoid an error.
42109    Use char because int might match the return type of a GCC
42110    builtin and then its argument prototype would still apply.  */
42111 #ifdef __cplusplus
42112 extern "C"
42113 #endif
42114 char localtime_r ();
42115 /* The GNU C library defines this for functions which it implements
42116     to always fail with ENOSYS.  Some functions are actually named
42117     something starting with __ and the normal name is an alias.  */
42118 #if defined __stub_localtime_r || defined __stub___localtime_r
42119 choke me
42120 #endif
42121
42122 int
42123 main ()
42124 {
42125 return localtime_r ();
42126   ;
42127   return 0;
42128 }
42129 _ACEOF
42130 rm -f conftest.$ac_objext conftest$ac_exeext
42131 if { (ac_try="$ac_link"
42132 case "(($ac_try" in
42133   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42134   *) ac_try_echo=$ac_try;;
42135 esac
42136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42137   (eval "$ac_link") 2>conftest.er1
42138   ac_status=$?
42139   grep -v '^ *+' conftest.er1 >conftest.err
42140   rm -f conftest.er1
42141   cat conftest.err >&5
42142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42143   (exit $ac_status); } && {
42144          test -z "$ac_c_werror_flag" ||
42145          test ! -s conftest.err
42146        } && test -s conftest$ac_exeext &&
42147        $as_test_x conftest$ac_exeext; then
42148   ac_cv_func_localtime_r=yes
42149 else
42150   echo "$as_me: failed program was:" >&5
42151 sed 's/^/| /' conftest.$ac_ext >&5
42152
42153         ac_cv_func_localtime_r=no
42154 fi
42155
42156 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42157       conftest$ac_exeext conftest.$ac_ext
42158 fi
42159 { echo "$as_me:$LINENO: result: $ac_cv_func_localtime_r" >&5
42160 echo "${ECHO_T}$ac_cv_func_localtime_r" >&6; }
42161 if test $ac_cv_func_localtime_r = yes; then
42162    cat >>confdefs.h <<\_ACEOF
42163 #define HAVE_LOCALTIME_R 1
42164 _ACEOF
42165
42166 fi
42167
42168 { echo "$as_me:$LINENO: checking for gmtime_r" >&5
42169 echo $ECHO_N "checking for gmtime_r... $ECHO_C" >&6; }
42170 if test "${ac_cv_func_gmtime_r+set}" = set; then
42171   echo $ECHO_N "(cached) $ECHO_C" >&6
42172 else
42173   cat >conftest.$ac_ext <<_ACEOF
42174 /* confdefs.h.  */
42175 _ACEOF
42176 cat confdefs.h >>conftest.$ac_ext
42177 cat >>conftest.$ac_ext <<_ACEOF
42178 /* end confdefs.h.  */
42179 /* Define gmtime_r to an innocuous variant, in case <limits.h> declares gmtime_r.
42180    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
42181 #define gmtime_r innocuous_gmtime_r
42182
42183 /* System header to define __stub macros and hopefully few prototypes,
42184     which can conflict with char gmtime_r (); below.
42185     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42186     <limits.h> exists even on freestanding compilers.  */
42187
42188 #ifdef __STDC__
42189 # include <limits.h>
42190 #else
42191 # include <assert.h>
42192 #endif
42193
42194 #undef gmtime_r
42195
42196 /* Override any GCC internal prototype to avoid an error.
42197    Use char because int might match the return type of a GCC
42198    builtin and then its argument prototype would still apply.  */
42199 #ifdef __cplusplus
42200 extern "C"
42201 #endif
42202 char gmtime_r ();
42203 /* The GNU C library defines this for functions which it implements
42204     to always fail with ENOSYS.  Some functions are actually named
42205     something starting with __ and the normal name is an alias.  */
42206 #if defined __stub_gmtime_r || defined __stub___gmtime_r
42207 choke me
42208 #endif
42209
42210 int
42211 main ()
42212 {
42213 return gmtime_r ();
42214   ;
42215   return 0;
42216 }
42217 _ACEOF
42218 rm -f conftest.$ac_objext conftest$ac_exeext
42219 if { (ac_try="$ac_link"
42220 case "(($ac_try" in
42221   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42222   *) ac_try_echo=$ac_try;;
42223 esac
42224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42225   (eval "$ac_link") 2>conftest.er1
42226   ac_status=$?
42227   grep -v '^ *+' conftest.er1 >conftest.err
42228   rm -f conftest.er1
42229   cat conftest.err >&5
42230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42231   (exit $ac_status); } && {
42232          test -z "$ac_c_werror_flag" ||
42233          test ! -s conftest.err
42234        } && test -s conftest$ac_exeext &&
42235        $as_test_x conftest$ac_exeext; then
42236   ac_cv_func_gmtime_r=yes
42237 else
42238   echo "$as_me: failed program was:" >&5
42239 sed 's/^/| /' conftest.$ac_ext >&5
42240
42241         ac_cv_func_gmtime_r=no
42242 fi
42243
42244 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42245       conftest$ac_exeext conftest.$ac_ext
42246 fi
42247 { echo "$as_me:$LINENO: result: $ac_cv_func_gmtime_r" >&5
42248 echo "${ECHO_T}$ac_cv_func_gmtime_r" >&6; }
42249 if test $ac_cv_func_gmtime_r = yes; then
42250    cat >>confdefs.h <<\_ACEOF
42251 #define HAVE_GMTIME_R 1
42252 _ACEOF
42253
42254 fi
42255
42256
42257
42258
42259     ac_ext=c
42260 ac_cpp='$CPP $CPPFLAGS'
42261 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42262 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42263 ac_compiler_gnu=$ac_cv_c_compiler_gnu
42264
42265     { echo "$as_me:$LINENO: checking how many arguments gethostbyname_r() takes" >&5
42266 echo $ECHO_N "checking how many arguments gethostbyname_r() takes... $ECHO_C" >&6; }
42267
42268     if test "${ac_cv_func_which_gethostbyname_r+set}" = set; then
42269   echo $ECHO_N "(cached) $ECHO_C" >&6
42270 else
42271
42272
42273 ################################################################
42274
42275 ac_cv_func_which_gethostbyname_r=unknown
42276
42277 #
42278 # ONE ARGUMENT (sanity check)
42279 #
42280
42281 # This should fail, as there is no variant of gethostbyname_r() that takes
42282 # a single argument. If it actually compiles, then we can assume that
42283 # netdb.h is not declaring the function, and the compiler is thereby
42284 # assuming an implicit prototype. In which case, we're out of luck.
42285 #
42286 cat >conftest.$ac_ext <<_ACEOF
42287 /* confdefs.h.  */
42288 _ACEOF
42289 cat confdefs.h >>conftest.$ac_ext
42290 cat >>conftest.$ac_ext <<_ACEOF
42291 /* end confdefs.h.  */
42292 #include <netdb.h>
42293 int
42294 main ()
42295 {
42296
42297             char *name = "www.gnu.org";
42298             (void)gethostbyname_r(name) /* ; */
42299
42300   ;
42301   return 0;
42302 }
42303 _ACEOF
42304 rm -f conftest.$ac_objext
42305 if { (ac_try="$ac_compile"
42306 case "(($ac_try" in
42307   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42308   *) ac_try_echo=$ac_try;;
42309 esac
42310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42311   (eval "$ac_compile") 2>conftest.er1
42312   ac_status=$?
42313   grep -v '^ *+' conftest.er1 >conftest.err
42314   rm -f conftest.er1
42315   cat conftest.err >&5
42316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42317   (exit $ac_status); } && {
42318          test -z "$ac_c_werror_flag" ||
42319          test ! -s conftest.err
42320        } && test -s conftest.$ac_objext; then
42321   ac_cv_func_which_gethostbyname_r=no
42322 else
42323   echo "$as_me: failed program was:" >&5
42324 sed 's/^/| /' conftest.$ac_ext >&5
42325
42326
42327 fi
42328
42329 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42330
42331 #
42332 # SIX ARGUMENTS
42333 # (e.g. Linux)
42334 #
42335
42336 if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then
42337
42338 cat >conftest.$ac_ext <<_ACEOF
42339 /* confdefs.h.  */
42340 _ACEOF
42341 cat confdefs.h >>conftest.$ac_ext
42342 cat >>conftest.$ac_ext <<_ACEOF
42343 /* end confdefs.h.  */
42344 #include <netdb.h>
42345 int
42346 main ()
42347 {
42348
42349             char *name = "www.gnu.org";
42350             struct hostent ret, *retp;
42351             char buf[1024];
42352             int buflen = 1024;
42353             int my_h_errno;
42354             (void)gethostbyname_r(name, &ret, buf, buflen, &retp, &my_h_errno) /* ; */
42355
42356   ;
42357   return 0;
42358 }
42359 _ACEOF
42360 rm -f conftest.$ac_objext
42361 if { (ac_try="$ac_compile"
42362 case "(($ac_try" in
42363   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42364   *) ac_try_echo=$ac_try;;
42365 esac
42366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42367   (eval "$ac_compile") 2>conftest.er1
42368   ac_status=$?
42369   grep -v '^ *+' conftest.er1 >conftest.err
42370   rm -f conftest.er1
42371   cat conftest.err >&5
42372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42373   (exit $ac_status); } && {
42374          test -z "$ac_c_werror_flag" ||
42375          test ! -s conftest.err
42376        } && test -s conftest.$ac_objext; then
42377   ac_cv_func_which_gethostbyname_r=six
42378 else
42379   echo "$as_me: failed program was:" >&5
42380 sed 's/^/| /' conftest.$ac_ext >&5
42381
42382
42383 fi
42384
42385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42386
42387 fi
42388
42389 #
42390 # FIVE ARGUMENTS
42391 # (e.g. Solaris)
42392 #
42393
42394 if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then
42395
42396 cat >conftest.$ac_ext <<_ACEOF
42397 /* confdefs.h.  */
42398 _ACEOF
42399 cat confdefs.h >>conftest.$ac_ext
42400 cat >>conftest.$ac_ext <<_ACEOF
42401 /* end confdefs.h.  */
42402 #include <netdb.h>
42403 int
42404 main ()
42405 {
42406
42407             char *name = "www.gnu.org";
42408             struct hostent ret;
42409             char buf[1024];
42410             int buflen = 1024;
42411             int my_h_errno;
42412             (void)gethostbyname_r(name, &ret, buf, buflen, &my_h_errno) /* ; */
42413
42414   ;
42415   return 0;
42416 }
42417 _ACEOF
42418 rm -f conftest.$ac_objext
42419 if { (ac_try="$ac_compile"
42420 case "(($ac_try" in
42421   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42422   *) ac_try_echo=$ac_try;;
42423 esac
42424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42425   (eval "$ac_compile") 2>conftest.er1
42426   ac_status=$?
42427   grep -v '^ *+' conftest.er1 >conftest.err
42428   rm -f conftest.er1
42429   cat conftest.err >&5
42430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42431   (exit $ac_status); } && {
42432          test -z "$ac_c_werror_flag" ||
42433          test ! -s conftest.err
42434        } && test -s conftest.$ac_objext; then
42435   ac_cv_func_which_gethostbyname_r=five
42436 else
42437   echo "$as_me: failed program was:" >&5
42438 sed 's/^/| /' conftest.$ac_ext >&5
42439
42440
42441 fi
42442
42443 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42444
42445 fi
42446
42447 #
42448 # THREE ARGUMENTS
42449 # (e.g. AIX, HP-UX, Tru64)
42450 #
42451
42452 if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then
42453
42454 cat >conftest.$ac_ext <<_ACEOF
42455 /* confdefs.h.  */
42456 _ACEOF
42457 cat confdefs.h >>conftest.$ac_ext
42458 cat >>conftest.$ac_ext <<_ACEOF
42459 /* end confdefs.h.  */
42460 #include <netdb.h>
42461 int
42462 main ()
42463 {
42464
42465             char *name = "www.gnu.org";
42466             struct hostent ret;
42467             struct hostent_data data;
42468             (void)gethostbyname_r(name, &ret, &data) /* ; */
42469
42470   ;
42471   return 0;
42472 }
42473 _ACEOF
42474 rm -f conftest.$ac_objext
42475 if { (ac_try="$ac_compile"
42476 case "(($ac_try" in
42477   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42478   *) ac_try_echo=$ac_try;;
42479 esac
42480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42481   (eval "$ac_compile") 2>conftest.er1
42482   ac_status=$?
42483   grep -v '^ *+' conftest.er1 >conftest.err
42484   rm -f conftest.er1
42485   cat conftest.err >&5
42486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42487   (exit $ac_status); } && {
42488          test -z "$ac_c_werror_flag" ||
42489          test ! -s conftest.err
42490        } && test -s conftest.$ac_objext; then
42491   ac_cv_func_which_gethostbyname_r=three
42492 else
42493   echo "$as_me: failed program was:" >&5
42494 sed 's/^/| /' conftest.$ac_ext >&5
42495
42496
42497 fi
42498
42499 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42500
42501 fi
42502
42503 ################################################################
42504
42505
42506 fi
42507
42508 case "$ac_cv_func_which_gethostbyname_r" in
42509     three)
42510     { echo "$as_me:$LINENO: result: three" >&5
42511 echo "${ECHO_T}three" >&6; }
42512     cat >>confdefs.h <<\_ACEOF
42513 #define HAVE_FUNC_GETHOSTBYNAME_R_3 1
42514 _ACEOF
42515
42516     ;;
42517
42518     five)
42519     { echo "$as_me:$LINENO: result: five" >&5
42520 echo "${ECHO_T}five" >&6; }
42521     cat >>confdefs.h <<\_ACEOF
42522 #define HAVE_FUNC_GETHOSTBYNAME_R_5 1
42523 _ACEOF
42524
42525     ;;
42526
42527     six)
42528     { echo "$as_me:$LINENO: result: six" >&5
42529 echo "${ECHO_T}six" >&6; }
42530     cat >>confdefs.h <<\_ACEOF
42531 #define HAVE_FUNC_GETHOSTBYNAME_R_6 1
42532 _ACEOF
42533
42534     ;;
42535
42536     no)
42537     { echo "$as_me:$LINENO: result: cannot find function declaration in netdb.h" >&5
42538 echo "${ECHO_T}cannot find function declaration in netdb.h" >&6; }
42539     ;;
42540
42541     unknown)
42542     { echo "$as_me:$LINENO: result: can't tell" >&5
42543 echo "${ECHO_T}can't tell" >&6; }
42544     ;;
42545
42546     *)
42547     { { echo "$as_me:$LINENO: error: internal error" >&5
42548 echo "$as_me: error: internal error" >&2;}
42549    { (exit 1); exit 1; }; }
42550     ;;
42551 esac
42552
42553 ac_ext=c
42554 ac_cpp='$CPP $CPPFLAGS'
42555 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42556 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42557 ac_compiler_gnu=$ac_cv_c_compiler_gnu
42558
42559
42560
42561       if test "x$ac_cv_func_which_gethostbyname_r" = "xno" -o \
42562               "x$ac_cv_func_which_gethostbyname_r" = "xunknown" ; then
42563           { echo "$as_me:$LINENO: checking for gethostbyname" >&5
42564 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
42565 if test "${ac_cv_func_gethostbyname+set}" = set; then
42566   echo $ECHO_N "(cached) $ECHO_C" >&6
42567 else
42568   cat >conftest.$ac_ext <<_ACEOF
42569 /* confdefs.h.  */
42570 _ACEOF
42571 cat confdefs.h >>conftest.$ac_ext
42572 cat >>conftest.$ac_ext <<_ACEOF
42573 /* end confdefs.h.  */
42574 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
42575    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
42576 #define gethostbyname innocuous_gethostbyname
42577
42578 /* System header to define __stub macros and hopefully few prototypes,
42579     which can conflict with char gethostbyname (); below.
42580     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42581     <limits.h> exists even on freestanding compilers.  */
42582
42583 #ifdef __STDC__
42584 # include <limits.h>
42585 #else
42586 # include <assert.h>
42587 #endif
42588
42589 #undef gethostbyname
42590
42591 /* Override any GCC internal prototype to avoid an error.
42592    Use char because int might match the return type of a GCC
42593    builtin and then its argument prototype would still apply.  */
42594 #ifdef __cplusplus
42595 extern "C"
42596 #endif
42597 char gethostbyname ();
42598 /* The GNU C library defines this for functions which it implements
42599     to always fail with ENOSYS.  Some functions are actually named
42600     something starting with __ and the normal name is an alias.  */
42601 #if defined __stub_gethostbyname || defined __stub___gethostbyname
42602 choke me
42603 #endif
42604
42605 int
42606 main ()
42607 {
42608 return gethostbyname ();
42609   ;
42610   return 0;
42611 }
42612 _ACEOF
42613 rm -f conftest.$ac_objext conftest$ac_exeext
42614 if { (ac_try="$ac_link"
42615 case "(($ac_try" in
42616   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42617   *) ac_try_echo=$ac_try;;
42618 esac
42619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42620   (eval "$ac_link") 2>conftest.er1
42621   ac_status=$?
42622   grep -v '^ *+' conftest.er1 >conftest.err
42623   rm -f conftest.er1
42624   cat conftest.err >&5
42625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42626   (exit $ac_status); } && {
42627          test -z "$ac_c_werror_flag" ||
42628          test ! -s conftest.err
42629        } && test -s conftest$ac_exeext &&
42630        $as_test_x conftest$ac_exeext; then
42631   ac_cv_func_gethostbyname=yes
42632 else
42633   echo "$as_me: failed program was:" >&5
42634 sed 's/^/| /' conftest.$ac_ext >&5
42635
42636         ac_cv_func_gethostbyname=no
42637 fi
42638
42639 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42640       conftest$ac_exeext conftest.$ac_ext
42641 fi
42642 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
42643 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
42644 if test $ac_cv_func_gethostbyname = yes; then
42645    cat >>confdefs.h <<\_ACEOF
42646 #define HAVE_GETHOSTBYNAME 1
42647 _ACEOF
42648
42649 fi
42650
42651       fi
42652
42653 { echo "$as_me:$LINENO: checking how many arguments getservbyname_r() takes" >&5
42654 echo $ECHO_N "checking how many arguments getservbyname_r() takes... $ECHO_C" >&6; }
42655 if test "${ac_cv_func_which_getservbyname_r+set}" = set; then
42656   echo $ECHO_N "(cached) $ECHO_C" >&6
42657 else
42658
42659                 ac_ext=cpp
42660 ac_cpp='$CXXCPP $CPPFLAGS'
42661 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42662 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42663 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
42664
42665
42666         cat >conftest.$ac_ext <<_ACEOF
42667 /* confdefs.h.  */
42668 _ACEOF
42669 cat confdefs.h >>conftest.$ac_ext
42670 cat >>conftest.$ac_ext <<_ACEOF
42671 /* end confdefs.h.  */
42672 #include <netdb.h>
42673 int
42674 main ()
42675 {
42676
42677                 char *name;
42678                 char *proto;
42679                 struct servent *se, *res;
42680                 char buffer[2048];
42681                 int buflen = 2048;
42682                 (void) getservbyname_r(name, proto, se, buffer, buflen, &res)
42683
42684   ;
42685   return 0;
42686 }
42687 _ACEOF
42688 rm -f conftest.$ac_objext
42689 if { (ac_try="$ac_compile"
42690 case "(($ac_try" in
42691   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42692   *) ac_try_echo=$ac_try;;
42693 esac
42694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42695   (eval "$ac_compile") 2>conftest.er1
42696   ac_status=$?
42697   grep -v '^ *+' conftest.er1 >conftest.err
42698   rm -f conftest.er1
42699   cat conftest.err >&5
42700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42701   (exit $ac_status); } && {
42702          test -z "$ac_cxx_werror_flag" ||
42703          test ! -s conftest.err
42704        } && test -s conftest.$ac_objext; then
42705   ac_cv_func_which_getservbyname_r=six
42706 else
42707   echo "$as_me: failed program was:" >&5
42708 sed 's/^/| /' conftest.$ac_ext >&5
42709
42710
42711                 cat >conftest.$ac_ext <<_ACEOF
42712 /* confdefs.h.  */
42713 _ACEOF
42714 cat confdefs.h >>conftest.$ac_ext
42715 cat >>conftest.$ac_ext <<_ACEOF
42716 /* end confdefs.h.  */
42717 #include <netdb.h>
42718 int
42719 main ()
42720 {
42721
42722                         char *name;
42723                         char *proto;
42724                         struct servent *se;
42725                         char buffer[2048];
42726                         int buflen = 2048;
42727                         (void) getservbyname_r(name, proto, se, buffer, buflen)
42728
42729   ;
42730   return 0;
42731 }
42732 _ACEOF
42733 rm -f conftest.$ac_objext
42734 if { (ac_try="$ac_compile"
42735 case "(($ac_try" in
42736   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42737   *) ac_try_echo=$ac_try;;
42738 esac
42739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42740   (eval "$ac_compile") 2>conftest.er1
42741   ac_status=$?
42742   grep -v '^ *+' conftest.er1 >conftest.err
42743   rm -f conftest.er1
42744   cat conftest.err >&5
42745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42746   (exit $ac_status); } && {
42747          test -z "$ac_cxx_werror_flag" ||
42748          test ! -s conftest.err
42749        } && test -s conftest.$ac_objext; then
42750   ac_cv_func_which_getservbyname_r=five
42751 else
42752   echo "$as_me: failed program was:" >&5
42753 sed 's/^/| /' conftest.$ac_ext >&5
42754
42755
42756                         cat >conftest.$ac_ext <<_ACEOF
42757 /* confdefs.h.  */
42758 _ACEOF
42759 cat confdefs.h >>conftest.$ac_ext
42760 cat >>conftest.$ac_ext <<_ACEOF
42761 /* end confdefs.h.  */
42762 #include <netdb.h>
42763 int
42764 main ()
42765 {
42766
42767                                 char *name;
42768                                 char *proto;
42769                                 struct servent *se;
42770                                 struct servent_data data;
42771                                 (void) getservbyname_r(name, proto, se, &data);
42772
42773   ;
42774   return 0;
42775 }
42776 _ACEOF
42777 rm -f conftest.$ac_objext
42778 if { (ac_try="$ac_compile"
42779 case "(($ac_try" in
42780   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42781   *) ac_try_echo=$ac_try;;
42782 esac
42783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42784   (eval "$ac_compile") 2>conftest.er1
42785   ac_status=$?
42786   grep -v '^ *+' conftest.er1 >conftest.err
42787   rm -f conftest.er1
42788   cat conftest.err >&5
42789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42790   (exit $ac_status); } && {
42791          test -z "$ac_cxx_werror_flag" ||
42792          test ! -s conftest.err
42793        } && test -s conftest.$ac_objext; then
42794   ac_cv_func_which_getservbyname_r=four
42795 else
42796   echo "$as_me: failed program was:" >&5
42797 sed 's/^/| /' conftest.$ac_ext >&5
42798
42799         ac_cv_func_which_getservbyname_r=no
42800
42801 fi
42802
42803 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42804
42805
42806 fi
42807
42808 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42809
42810
42811 fi
42812
42813 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42814         ac_ext=c
42815 ac_cpp='$CPP $CPPFLAGS'
42816 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42817 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42818 ac_compiler_gnu=$ac_cv_c_compiler_gnu
42819
42820
42821
42822 fi
42823 { echo "$as_me:$LINENO: result: $ac_cv_func_which_getservbyname_r" >&5
42824 echo "${ECHO_T}$ac_cv_func_which_getservbyname_r" >&6; }
42825
42826 if test $ac_cv_func_which_getservbyname_r = six; then
42827   cat >>confdefs.h <<\_ACEOF
42828 #define HAVE_FUNC_GETSERVBYNAME_R_6 1
42829 _ACEOF
42830
42831 elif test $ac_cv_func_which_getservbyname_r = five; then
42832   cat >>confdefs.h <<\_ACEOF
42833 #define HAVE_FUNC_GETSERVBYNAME_R_5 1
42834 _ACEOF
42835
42836 elif test $ac_cv_func_which_getservbyname_r = four; then
42837   cat >>confdefs.h <<\_ACEOF
42838 #define HAVE_FUNC_GETSERVBYNAME_R_4 1
42839 _ACEOF
42840
42841 fi
42842
42843
42844       if test "x$ac_cv_func_which_getservbyname_r" = "xno" -o \
42845               "x$ac_cv_func_which_getservbyname_r" = "xunknown" ; then
42846
42847 for ac_func in getservbyname
42848 do
42849 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42850 { echo "$as_me:$LINENO: checking for $ac_func" >&5
42851 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
42852 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
42853   echo $ECHO_N "(cached) $ECHO_C" >&6
42854 else
42855   cat >conftest.$ac_ext <<_ACEOF
42856 /* confdefs.h.  */
42857 _ACEOF
42858 cat confdefs.h >>conftest.$ac_ext
42859 cat >>conftest.$ac_ext <<_ACEOF
42860 /* end confdefs.h.  */
42861 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42862    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
42863 #define $ac_func innocuous_$ac_func
42864
42865 /* System header to define __stub macros and hopefully few prototypes,
42866     which can conflict with char $ac_func (); below.
42867     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42868     <limits.h> exists even on freestanding compilers.  */
42869
42870 #ifdef __STDC__
42871 # include <limits.h>
42872 #else
42873 # include <assert.h>
42874 #endif
42875
42876 #undef $ac_func
42877
42878 /* Override any GCC internal prototype to avoid an error.
42879    Use char because int might match the return type of a GCC
42880    builtin and then its argument prototype would still apply.  */
42881 #ifdef __cplusplus
42882 extern "C"
42883 #endif
42884 char $ac_func ();
42885 /* The GNU C library defines this for functions which it implements
42886     to always fail with ENOSYS.  Some functions are actually named
42887     something starting with __ and the normal name is an alias.  */
42888 #if defined __stub_$ac_func || defined __stub___$ac_func
42889 choke me
42890 #endif
42891
42892 int
42893 main ()
42894 {
42895 return $ac_func ();
42896   ;
42897   return 0;
42898 }
42899 _ACEOF
42900 rm -f conftest.$ac_objext conftest$ac_exeext
42901 if { (ac_try="$ac_link"
42902 case "(($ac_try" in
42903   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42904   *) ac_try_echo=$ac_try;;
42905 esac
42906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42907   (eval "$ac_link") 2>conftest.er1
42908   ac_status=$?
42909   grep -v '^ *+' conftest.er1 >conftest.err
42910   rm -f conftest.er1
42911   cat conftest.err >&5
42912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42913   (exit $ac_status); } && {
42914          test -z "$ac_c_werror_flag" ||
42915          test ! -s conftest.err
42916        } && test -s conftest$ac_exeext &&
42917        $as_test_x conftest$ac_exeext; then
42918   eval "$as_ac_var=yes"
42919 else
42920   echo "$as_me: failed program was:" >&5
42921 sed 's/^/| /' conftest.$ac_ext >&5
42922
42923         eval "$as_ac_var=no"
42924 fi
42925
42926 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42927       conftest$ac_exeext conftest.$ac_ext
42928 fi
42929 ac_res=`eval echo '${'$as_ac_var'}'`
42930                { echo "$as_me:$LINENO: result: $ac_res" >&5
42931 echo "${ECHO_T}$ac_res" >&6; }
42932 if test `eval echo '${'$as_ac_var'}'` = yes; then
42933   cat >>confdefs.h <<_ACEOF
42934 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42935 _ACEOF
42936   cat >>confdefs.h <<\_ACEOF
42937 #define HAVE_GETSERVBYNAME 1
42938 _ACEOF
42939
42940 fi
42941 done
42942
42943       fi
42944
42945 if test "$wxUSE_THREADS" = "yes"; then
42946   cat >>confdefs.h <<\_ACEOF
42947 #define wxUSE_THREADS 1
42948 _ACEOF
42949
42950
42951   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
42952 else
42953       if test "$wx_cv_func_strtok_r" = "yes"; then
42954     { echo "$as_me:$LINENO: checking if -D_REENTRANT is needed" >&5
42955 echo $ECHO_N "checking if -D_REENTRANT is needed... $ECHO_C" >&6; }
42956     if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
42957         WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_REENTRANT"
42958         { echo "$as_me:$LINENO: result: yes" >&5
42959 echo "${ECHO_T}yes" >&6; }
42960     else
42961         { echo "$as_me:$LINENO: result: no" >&5
42962 echo "${ECHO_T}no" >&6; }
42963     fi
42964   fi
42965 fi
42966
42967 if test "$WXGTK2" = 1 ; then
42968   cat >>confdefs.h <<_ACEOF
42969 #define __WXGTK20__ $WXGTK2
42970 _ACEOF
42971
42972   WXGTK12=1
42973 fi
42974
42975 if test "$WXGTK12" = 1 ; then
42976   cat >>confdefs.h <<_ACEOF
42977 #define __WXGTK12__ $WXGTK12
42978 _ACEOF
42979
42980 fi
42981
42982 if test "$WXGTK127" = 1 ; then
42983   cat >>confdefs.h <<_ACEOF
42984 #define __WXGTK127__ $WXGTK127
42985 _ACEOF
42986
42987 fi
42988
42989 if test "$WXGPE" = 1 ; then
42990   cat >>confdefs.h <<_ACEOF
42991 #define __WXGPE__ $WXGPE
42992 _ACEOF
42993
42994 fi
42995
42996 DEBUG_CFLAGS=
42997 if `echo $CXXFLAGS $CFLAGS | grep " -g" >/dev/null`; then
42998                     { echo "$as_me:$LINENO: WARNING: CXXFLAGS/CFLAGS already contains -g flag; ignoring the --enable-debug_info option" >&5
42999 echo "$as_me: WARNING: CXXFLAGS/CFLAGS already contains -g flag; ignoring the --enable-debug_info option" >&2;}
43000 elif test "$wxUSE_DEBUG_INFO" = "yes" ; then
43001     DEBUG_CFLAGS="-g"
43002 fi
43003
43004 if test "$wxUSE_DEBUG_GDB" = "yes" ; then
43005     wxUSE_DEBUG_INFO=yes
43006     if test "$GCC" = yes; then
43007         DEBUG_CFLAGS="-ggdb"
43008     fi
43009 fi
43010
43011 if test "$wxUSE_DEBUG_FLAG" = "no" ; then
43012     WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -DwxDEBUG_LEVEL=0"
43013
43014     if test "$wxUSE_GTK" = 1 ; then
43015         if test "x$wxGTK_VERSION" = "x1" ; then
43016             CPPFLAGS="-DGTK_NO_CHECK_CASTS $CPPFLAGS"
43017         fi
43018     fi
43019 fi
43020
43021 if test "$wxUSE_MEM_TRACING" = "yes" ; then
43022     cat >>confdefs.h <<\_ACEOF
43023 #define wxUSE_MEMORY_TRACING 1
43024 _ACEOF
43025
43026     cat >>confdefs.h <<\_ACEOF
43027 #define wxUSE_GLOBAL_MEMORY_OPERATORS 1
43028 _ACEOF
43029
43030     cat >>confdefs.h <<\_ACEOF
43031 #define wxUSE_DEBUG_NEW_ALWAYS 1
43032 _ACEOF
43033
43034     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
43035 fi
43036
43037 if test "$wxUSE_DMALLOC" = "yes" ; then
43038     DMALLOC_LIBS="-ldmallocthcxx"
43039 fi
43040
43041 PROFILE_FLAGS=
43042 if test "$wxUSE_PROFILE" = "yes" ; then
43043     PROFILE_FLAGS=" -pg"
43044 fi
43045
43046 if test "$GCC" = "yes" ; then
43047     if test "$wxUSE_NO_RTTI" = "yes" ; then
43048                                 WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -DwxNO_RTTI -fno-rtti"
43049     fi
43050     if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
43051         WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -fno-exceptions"
43052     fi
43053     if test "$wxUSE_PERMISSIVE" = "yes" ; then
43054         WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -fpermissive"
43055     fi
43056
43057                                                 case "${host}" in
43058       powerpc*-*-aix* )
43059         WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -mminimal-toc"
43060         ;;
43061       *-hppa* )
43062         WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -ffunction-sections"
43063         ;;
43064     esac
43065 fi
43066
43067 OPTIMISE_CFLAGS=
43068 if `echo $CXXFLAGS $CFLAGS | grep " -O" >/dev/null`; then
43069                     { echo "$as_me:$LINENO: WARNING: CXXFLAGS/CFLAGS already contains -O flag; ignoring the --disable-optimise option" >&5
43070 echo "$as_me: WARNING: CXXFLAGS/CFLAGS already contains -O flag; ignoring the --disable-optimise option" >&2;}
43071 else
43072     if test "$wxUSE_OPTIMISE" = "no" ; then
43073         if test "$GCC" = yes ; then
43074                                     OPTIMISE_CFLAGS="-O0"
43075         fi
43076     else
43077         if test "$GCC" = yes ; then
43078             case "${host}" in
43079                 *-pc-os2_emx | *-pc-os2-emx )
43080                                                             OPTIMISE_CFLAGS="-O2"
43081                 ;;
43082                 *)
43083                                                                                 OPTIMISE_CFLAGS="-O2 -fno-strict-aliasing"
43084                 ;;
43085             esac
43086         else
43087             OPTIMISE_CFLAGS="-O"
43088         fi
43089     fi
43090 fi
43091
43092
43093 if test "x$WXWIN_COMPATIBILITY_2_6" = "xyes"; then
43094     cat >>confdefs.h <<\_ACEOF
43095 #define WXWIN_COMPATIBILITY_2_6 1
43096 _ACEOF
43097
43098
43099     WXWIN_COMPATIBILITY_2_8="yes"
43100 fi
43101
43102 if test "x$WXWIN_COMPATIBILITY_2_8" != "xno"; then
43103     cat >>confdefs.h <<\_ACEOF
43104 #define WXWIN_COMPATIBILITY_2_8 1
43105 _ACEOF
43106
43107 fi
43108
43109
43110 if test "$wxUSE_GUI" = "yes"; then
43111     cat >>confdefs.h <<\_ACEOF
43112 #define wxUSE_GUI 1
43113 _ACEOF
43114
43115
43116                                             fi
43117
43118
43119 if test "$wxUSE_UNIX" = "yes"; then
43120   cat >>confdefs.h <<\_ACEOF
43121 #define wxUSE_UNIX 1
43122 _ACEOF
43123
43124 fi
43125
43126
43127 if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
43128
43129     HAVE_DL_FUNCS=0
43130     HAVE_SHL_FUNCS=0
43131     if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then
43132         if test "$USE_DOS" = 1; then
43133             HAVE_DL_FUNCS=0
43134         else
43135
43136 for ac_func in dlopen
43137 do
43138 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43139 { echo "$as_me:$LINENO: checking for $ac_func" >&5
43140 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
43141 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
43142   echo $ECHO_N "(cached) $ECHO_C" >&6
43143 else
43144   cat >conftest.$ac_ext <<_ACEOF
43145 /* confdefs.h.  */
43146 _ACEOF
43147 cat confdefs.h >>conftest.$ac_ext
43148 cat >>conftest.$ac_ext <<_ACEOF
43149 /* end confdefs.h.  */
43150 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43151    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
43152 #define $ac_func innocuous_$ac_func
43153
43154 /* System header to define __stub macros and hopefully few prototypes,
43155     which can conflict with char $ac_func (); below.
43156     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43157     <limits.h> exists even on freestanding compilers.  */
43158
43159 #ifdef __STDC__
43160 # include <limits.h>
43161 #else
43162 # include <assert.h>
43163 #endif
43164
43165 #undef $ac_func
43166
43167 /* Override any GCC internal prototype to avoid an error.
43168    Use char because int might match the return type of a GCC
43169    builtin and then its argument prototype would still apply.  */
43170 #ifdef __cplusplus
43171 extern "C"
43172 #endif
43173 char $ac_func ();
43174 /* The GNU C library defines this for functions which it implements
43175     to always fail with ENOSYS.  Some functions are actually named
43176     something starting with __ and the normal name is an alias.  */
43177 #if defined __stub_$ac_func || defined __stub___$ac_func
43178 choke me
43179 #endif
43180
43181 int
43182 main ()
43183 {
43184 return $ac_func ();
43185   ;
43186   return 0;
43187 }
43188 _ACEOF
43189 rm -f conftest.$ac_objext conftest$ac_exeext
43190 if { (ac_try="$ac_link"
43191 case "(($ac_try" in
43192   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43193   *) ac_try_echo=$ac_try;;
43194 esac
43195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43196   (eval "$ac_link") 2>conftest.er1
43197   ac_status=$?
43198   grep -v '^ *+' conftest.er1 >conftest.err
43199   rm -f conftest.er1
43200   cat conftest.err >&5
43201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43202   (exit $ac_status); } && {
43203          test -z "$ac_c_werror_flag" ||
43204          test ! -s conftest.err
43205        } && test -s conftest$ac_exeext &&
43206        $as_test_x conftest$ac_exeext; then
43207   eval "$as_ac_var=yes"
43208 else
43209   echo "$as_me: failed program was:" >&5
43210 sed 's/^/| /' conftest.$ac_ext >&5
43211
43212         eval "$as_ac_var=no"
43213 fi
43214
43215 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43216       conftest$ac_exeext conftest.$ac_ext
43217 fi
43218 ac_res=`eval echo '${'$as_ac_var'}'`
43219                { echo "$as_me:$LINENO: result: $ac_res" >&5
43220 echo "${ECHO_T}$ac_res" >&6; }
43221 if test `eval echo '${'$as_ac_var'}'` = yes; then
43222   cat >>confdefs.h <<_ACEOF
43223 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43224 _ACEOF
43225
43226                 cat >>confdefs.h <<\_ACEOF
43227 #define HAVE_DLOPEN 1
43228 _ACEOF
43229
43230                 HAVE_DL_FUNCS=1
43231
43232 else
43233
43234                 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
43235 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
43236 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
43237   echo $ECHO_N "(cached) $ECHO_C" >&6
43238 else
43239   ac_check_lib_save_LIBS=$LIBS
43240 LIBS="-ldl  $LIBS"
43241 cat >conftest.$ac_ext <<_ACEOF
43242 /* confdefs.h.  */
43243 _ACEOF
43244 cat confdefs.h >>conftest.$ac_ext
43245 cat >>conftest.$ac_ext <<_ACEOF
43246 /* end confdefs.h.  */
43247
43248 /* Override any GCC internal prototype to avoid an error.
43249    Use char because int might match the return type of a GCC
43250    builtin and then its argument prototype would still apply.  */
43251 #ifdef __cplusplus
43252 extern "C"
43253 #endif
43254 char dlopen ();
43255 int
43256 main ()
43257 {
43258 return dlopen ();
43259   ;
43260   return 0;
43261 }
43262 _ACEOF
43263 rm -f conftest.$ac_objext conftest$ac_exeext
43264 if { (ac_try="$ac_link"
43265 case "(($ac_try" in
43266   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43267   *) ac_try_echo=$ac_try;;
43268 esac
43269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43270   (eval "$ac_link") 2>conftest.er1
43271   ac_status=$?
43272   grep -v '^ *+' conftest.er1 >conftest.err
43273   rm -f conftest.er1
43274   cat conftest.err >&5
43275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43276   (exit $ac_status); } && {
43277          test -z "$ac_c_werror_flag" ||
43278          test ! -s conftest.err
43279        } && test -s conftest$ac_exeext &&
43280        $as_test_x conftest$ac_exeext; then
43281   ac_cv_lib_dl_dlopen=yes
43282 else
43283   echo "$as_me: failed program was:" >&5
43284 sed 's/^/| /' conftest.$ac_ext >&5
43285
43286         ac_cv_lib_dl_dlopen=no
43287 fi
43288
43289 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43290       conftest$ac_exeext conftest.$ac_ext
43291 LIBS=$ac_check_lib_save_LIBS
43292 fi
43293 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
43294 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
43295 if test $ac_cv_lib_dl_dlopen = yes; then
43296
43297                                 cat >>confdefs.h <<\_ACEOF
43298 #define HAVE_DLOPEN 1
43299 _ACEOF
43300
43301                                 HAVE_DL_FUNCS=1
43302                                 DL_LINK=" -ldl$DL_LINK"
43303
43304 else
43305
43306
43307 for ac_func in shl_load
43308 do
43309 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43310 { echo "$as_me:$LINENO: checking for $ac_func" >&5
43311 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
43312 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
43313   echo $ECHO_N "(cached) $ECHO_C" >&6
43314 else
43315   cat >conftest.$ac_ext <<_ACEOF
43316 /* confdefs.h.  */
43317 _ACEOF
43318 cat confdefs.h >>conftest.$ac_ext
43319 cat >>conftest.$ac_ext <<_ACEOF
43320 /* end confdefs.h.  */
43321 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43322    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
43323 #define $ac_func innocuous_$ac_func
43324
43325 /* System header to define __stub macros and hopefully few prototypes,
43326     which can conflict with char $ac_func (); below.
43327     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43328     <limits.h> exists even on freestanding compilers.  */
43329
43330 #ifdef __STDC__
43331 # include <limits.h>
43332 #else
43333 # include <assert.h>
43334 #endif
43335
43336 #undef $ac_func
43337
43338 /* Override any GCC internal prototype to avoid an error.
43339    Use char because int might match the return type of a GCC
43340    builtin and then its argument prototype would still apply.  */
43341 #ifdef __cplusplus
43342 extern "C"
43343 #endif
43344 char $ac_func ();
43345 /* The GNU C library defines this for functions which it implements
43346     to always fail with ENOSYS.  Some functions are actually named
43347     something starting with __ and the normal name is an alias.  */
43348 #if defined __stub_$ac_func || defined __stub___$ac_func
43349 choke me
43350 #endif
43351
43352 int
43353 main ()
43354 {
43355 return $ac_func ();
43356   ;
43357   return 0;
43358 }
43359 _ACEOF
43360 rm -f conftest.$ac_objext conftest$ac_exeext
43361 if { (ac_try="$ac_link"
43362 case "(($ac_try" in
43363   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43364   *) ac_try_echo=$ac_try;;
43365 esac
43366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43367   (eval "$ac_link") 2>conftest.er1
43368   ac_status=$?
43369   grep -v '^ *+' conftest.er1 >conftest.err
43370   rm -f conftest.er1
43371   cat conftest.err >&5
43372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43373   (exit $ac_status); } && {
43374          test -z "$ac_c_werror_flag" ||
43375          test ! -s conftest.err
43376        } && test -s conftest$ac_exeext &&
43377        $as_test_x conftest$ac_exeext; then
43378   eval "$as_ac_var=yes"
43379 else
43380   echo "$as_me: failed program was:" >&5
43381 sed 's/^/| /' conftest.$ac_ext >&5
43382
43383         eval "$as_ac_var=no"
43384 fi
43385
43386 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43387       conftest$ac_exeext conftest.$ac_ext
43388 fi
43389 ac_res=`eval echo '${'$as_ac_var'}'`
43390                { echo "$as_me:$LINENO: result: $ac_res" >&5
43391 echo "${ECHO_T}$ac_res" >&6; }
43392 if test `eval echo '${'$as_ac_var'}'` = yes; then
43393   cat >>confdefs.h <<_ACEOF
43394 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43395 _ACEOF
43396
43397                                                 cat >>confdefs.h <<\_ACEOF
43398 #define HAVE_SHL_LOAD 1
43399 _ACEOF
43400
43401                                                 HAVE_SHL_FUNCS=1
43402
43403 else
43404
43405                                                 { echo "$as_me:$LINENO: checking for dld in -lshl_load" >&5
43406 echo $ECHO_N "checking for dld in -lshl_load... $ECHO_C" >&6; }
43407 if test "${ac_cv_lib_shl_load_dld+set}" = set; then
43408   echo $ECHO_N "(cached) $ECHO_C" >&6
43409 else
43410   ac_check_lib_save_LIBS=$LIBS
43411 LIBS="-lshl_load  $LIBS"
43412 cat >conftest.$ac_ext <<_ACEOF
43413 /* confdefs.h.  */
43414 _ACEOF
43415 cat confdefs.h >>conftest.$ac_ext
43416 cat >>conftest.$ac_ext <<_ACEOF
43417 /* end confdefs.h.  */
43418
43419 /* Override any GCC internal prototype to avoid an error.
43420    Use char because int might match the return type of a GCC
43421    builtin and then its argument prototype would still apply.  */
43422 #ifdef __cplusplus
43423 extern "C"
43424 #endif
43425 char dld ();
43426 int
43427 main ()
43428 {
43429 return dld ();
43430   ;
43431   return 0;
43432 }
43433 _ACEOF
43434 rm -f conftest.$ac_objext conftest$ac_exeext
43435 if { (ac_try="$ac_link"
43436 case "(($ac_try" in
43437   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43438   *) ac_try_echo=$ac_try;;
43439 esac
43440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43441   (eval "$ac_link") 2>conftest.er1
43442   ac_status=$?
43443   grep -v '^ *+' conftest.er1 >conftest.err
43444   rm -f conftest.er1
43445   cat conftest.err >&5
43446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43447   (exit $ac_status); } && {
43448          test -z "$ac_c_werror_flag" ||
43449          test ! -s conftest.err
43450        } && test -s conftest$ac_exeext &&
43451        $as_test_x conftest$ac_exeext; then
43452   ac_cv_lib_shl_load_dld=yes
43453 else
43454   echo "$as_me: failed program was:" >&5
43455 sed 's/^/| /' conftest.$ac_ext >&5
43456
43457         ac_cv_lib_shl_load_dld=no
43458 fi
43459
43460 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43461       conftest$ac_exeext conftest.$ac_ext
43462 LIBS=$ac_check_lib_save_LIBS
43463 fi
43464 { echo "$as_me:$LINENO: result: $ac_cv_lib_shl_load_dld" >&5
43465 echo "${ECHO_T}$ac_cv_lib_shl_load_dld" >&6; }
43466 if test $ac_cv_lib_shl_load_dld = yes; then
43467
43468                                                                 HAVE_SHL_FUNCS=1
43469                                                                 DL_LINK=" -ldld$DL_LINK"
43470
43471 fi
43472
43473
43474 fi
43475 done
43476
43477
43478 fi
43479
43480
43481 fi
43482 done
43483
43484
43485                         if test "$HAVE_DL_FUNCS" = 1; then
43486
43487 for ac_func in dlerror
43488 do
43489 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43490 { echo "$as_me:$LINENO: checking for $ac_func" >&5
43491 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
43492 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
43493   echo $ECHO_N "(cached) $ECHO_C" >&6
43494 else
43495   cat >conftest.$ac_ext <<_ACEOF
43496 /* confdefs.h.  */
43497 _ACEOF
43498 cat confdefs.h >>conftest.$ac_ext
43499 cat >>conftest.$ac_ext <<_ACEOF
43500 /* end confdefs.h.  */
43501 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43502    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
43503 #define $ac_func innocuous_$ac_func
43504
43505 /* System header to define __stub macros and hopefully few prototypes,
43506     which can conflict with char $ac_func (); below.
43507     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43508     <limits.h> exists even on freestanding compilers.  */
43509
43510 #ifdef __STDC__
43511 # include <limits.h>
43512 #else
43513 # include <assert.h>
43514 #endif
43515
43516 #undef $ac_func
43517
43518 /* Override any GCC internal prototype to avoid an error.
43519    Use char because int might match the return type of a GCC
43520    builtin and then its argument prototype would still apply.  */
43521 #ifdef __cplusplus
43522 extern "C"
43523 #endif
43524 char $ac_func ();
43525 /* The GNU C library defines this for functions which it implements
43526     to always fail with ENOSYS.  Some functions are actually named
43527     something starting with __ and the normal name is an alias.  */
43528 #if defined __stub_$ac_func || defined __stub___$ac_func
43529 choke me
43530 #endif
43531
43532 int
43533 main ()
43534 {
43535 return $ac_func ();
43536   ;
43537   return 0;
43538 }
43539 _ACEOF
43540 rm -f conftest.$ac_objext conftest$ac_exeext
43541 if { (ac_try="$ac_link"
43542 case "(($ac_try" in
43543   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43544   *) ac_try_echo=$ac_try;;
43545 esac
43546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43547   (eval "$ac_link") 2>conftest.er1
43548   ac_status=$?
43549   grep -v '^ *+' conftest.er1 >conftest.err
43550   rm -f conftest.er1
43551   cat conftest.err >&5
43552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43553   (exit $ac_status); } && {
43554          test -z "$ac_c_werror_flag" ||
43555          test ! -s conftest.err
43556        } && test -s conftest$ac_exeext &&
43557        $as_test_x conftest$ac_exeext; then
43558   eval "$as_ac_var=yes"
43559 else
43560   echo "$as_me: failed program was:" >&5
43561 sed 's/^/| /' conftest.$ac_ext >&5
43562
43563         eval "$as_ac_var=no"
43564 fi
43565
43566 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43567       conftest$ac_exeext conftest.$ac_ext
43568 fi
43569 ac_res=`eval echo '${'$as_ac_var'}'`
43570                { echo "$as_me:$LINENO: result: $ac_res" >&5
43571 echo "${ECHO_T}$ac_res" >&6; }
43572 if test `eval echo '${'$as_ac_var'}'` = yes; then
43573   cat >>confdefs.h <<_ACEOF
43574 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43575 _ACEOF
43576  cat >>confdefs.h <<\_ACEOF
43577 #define HAVE_DLERROR 1
43578 _ACEOF
43579
43580 else
43581
43582                         { echo "$as_me:$LINENO: checking for dlerror in -ldl" >&5
43583 echo $ECHO_N "checking for dlerror in -ldl... $ECHO_C" >&6; }
43584 if test "${ac_cv_lib_dl_dlerror+set}" = set; then
43585   echo $ECHO_N "(cached) $ECHO_C" >&6
43586 else
43587   ac_check_lib_save_LIBS=$LIBS
43588 LIBS="-ldl  $LIBS"
43589 cat >conftest.$ac_ext <<_ACEOF
43590 /* confdefs.h.  */
43591 _ACEOF
43592 cat confdefs.h >>conftest.$ac_ext
43593 cat >>conftest.$ac_ext <<_ACEOF
43594 /* end confdefs.h.  */
43595
43596 /* Override any GCC internal prototype to avoid an error.
43597    Use char because int might match the return type of a GCC
43598    builtin and then its argument prototype would still apply.  */
43599 #ifdef __cplusplus
43600 extern "C"
43601 #endif
43602 char dlerror ();
43603 int
43604 main ()
43605 {
43606 return dlerror ();
43607   ;
43608   return 0;
43609 }
43610 _ACEOF
43611 rm -f conftest.$ac_objext conftest$ac_exeext
43612 if { (ac_try="$ac_link"
43613 case "(($ac_try" in
43614   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43615   *) ac_try_echo=$ac_try;;
43616 esac
43617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43618   (eval "$ac_link") 2>conftest.er1
43619   ac_status=$?
43620   grep -v '^ *+' conftest.er1 >conftest.err
43621   rm -f conftest.er1
43622   cat conftest.err >&5
43623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43624   (exit $ac_status); } && {
43625          test -z "$ac_c_werror_flag" ||
43626          test ! -s conftest.err
43627        } && test -s conftest$ac_exeext &&
43628        $as_test_x conftest$ac_exeext; then
43629   ac_cv_lib_dl_dlerror=yes
43630 else
43631   echo "$as_me: failed program was:" >&5
43632 sed 's/^/| /' conftest.$ac_ext >&5
43633
43634         ac_cv_lib_dl_dlerror=no
43635 fi
43636
43637 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43638       conftest$ac_exeext conftest.$ac_ext
43639 LIBS=$ac_check_lib_save_LIBS
43640 fi
43641 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlerror" >&5
43642 echo "${ECHO_T}$ac_cv_lib_dl_dlerror" >&6; }
43643 if test $ac_cv_lib_dl_dlerror = yes; then
43644   cat >>confdefs.h <<\_ACEOF
43645 #define HAVE_DLERROR 1
43646 _ACEOF
43647
43648 fi
43649
43650
43651
43652 fi
43653 done
43654
43655             fi
43656         fi
43657
43658                 if test "$USE_DARWIN" = 1; then
43659                         HAVE_DL_FUNCS=1
43660         fi
43661
43662         if test "$HAVE_DL_FUNCS" = 0; then
43663             if test "$HAVE_SHL_FUNCS" = 0; then
43664               if test "$USE_UNIX" = 1 -o "$USE_DOS" = 1; then
43665                   { echo "$as_me:$LINENO: WARNING: Missing dynamic loading support, several features will be disabled" >&5
43666 echo "$as_me: WARNING: Missing dynamic loading support, several features will be disabled" >&2;}
43667                   wxUSE_DYNAMIC_LOADER=no
43668                   wxUSE_DYNLIB_CLASS=no
43669               else
43670                   { echo "$as_me:$LINENO: WARNING: Assuming wxLibrary class works on this platform" >&5
43671 echo "$as_me: WARNING: Assuming wxLibrary class works on this platform" >&2;}
43672               fi
43673             fi
43674         fi
43675     fi
43676 fi
43677
43678 if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then
43679     cat >>confdefs.h <<\_ACEOF
43680 #define wxUSE_DYNAMIC_LOADER 1
43681 _ACEOF
43682
43683 fi
43684 if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
43685     cat >>confdefs.h <<\_ACEOF
43686 #define wxUSE_DYNLIB_CLASS 1
43687 _ACEOF
43688
43689 fi
43690
43691
43692
43693 if test "$wxUSE_PLUGINS" = "yes" ; then
43694     if test "$wxUSE_SHARED" = "no" ; then
43695         { echo "$as_me:$LINENO: WARNING: plugins supported only in shared build, disabling" >&5
43696 echo "$as_me: WARNING: plugins supported only in shared build, disabling" >&2;}
43697         wxUSE_PLUGINS=no
43698     fi
43699     if test "$wxUSE_MONOLITHIC" = "yes" ; then
43700         { echo "$as_me:$LINENO: WARNING: plugins not supported monolithic build, disabling" >&5
43701 echo "$as_me: WARNING: plugins not supported monolithic build, disabling" >&2;}
43702         wxUSE_PLUGINS=no
43703     fi
43704     if test "$wxUSE_DYNLIB_CLASS" = "no" ; then
43705         { echo "$as_me:$LINENO: WARNING: plugins require wxDynamicLibrary, disabling" >&5
43706 echo "$as_me: WARNING: plugins require wxDynamicLibrary, disabling" >&2;}
43707         wxUSE_PLUGINS=no
43708     fi
43709     if test "$wxUSE_PLUGINS" = "yes" ; then
43710         cat >>confdefs.h <<\_ACEOF
43711 #define wxUSE_PLUGINS 1
43712 _ACEOF
43713
43714     fi
43715 fi
43716
43717
43718 if test "$wxUSE_FSWATCHER" = "yes"; then
43719                 if test "$wxUSE_MSW" != "1"; then
43720         if test "$wxUSE_UNIX" = "yes"; then
43721
43722 for ac_header in sys/inotify.h
43723 do
43724 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
43725 { echo "$as_me:$LINENO: checking for $ac_header" >&5
43726 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
43727 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
43728   echo $ECHO_N "(cached) $ECHO_C" >&6
43729 else
43730   cat >conftest.$ac_ext <<_ACEOF
43731 /* confdefs.h.  */
43732 _ACEOF
43733 cat confdefs.h >>conftest.$ac_ext
43734 cat >>conftest.$ac_ext <<_ACEOF
43735 /* end confdefs.h.  */
43736 $ac_includes_default
43737
43738 #include <$ac_header>
43739 _ACEOF
43740 rm -f conftest.$ac_objext
43741 if { (ac_try="$ac_compile"
43742 case "(($ac_try" in
43743   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43744   *) ac_try_echo=$ac_try;;
43745 esac
43746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43747   (eval "$ac_compile") 2>conftest.er1
43748   ac_status=$?
43749   grep -v '^ *+' conftest.er1 >conftest.err
43750   rm -f conftest.er1
43751   cat conftest.err >&5
43752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43753   (exit $ac_status); } && {
43754          test -z "$ac_c_werror_flag" ||
43755          test ! -s conftest.err
43756        } && test -s conftest.$ac_objext; then
43757   eval "$as_ac_Header=yes"
43758 else
43759   echo "$as_me: failed program was:" >&5
43760 sed 's/^/| /' conftest.$ac_ext >&5
43761
43762         eval "$as_ac_Header=no"
43763 fi
43764
43765 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43766 fi
43767 ac_res=`eval echo '${'$as_ac_Header'}'`
43768                { echo "$as_me:$LINENO: result: $ac_res" >&5
43769 echo "${ECHO_T}$ac_res" >&6; }
43770 if test `eval echo '${'$as_ac_Header'}'` = yes; then
43771   cat >>confdefs.h <<_ACEOF
43772 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
43773 _ACEOF
43774
43775 fi
43776
43777 done
43778
43779             if test "$ac_cv_header_sys_inotify_h" = "yes"; then
43780                 cat >>confdefs.h <<\_ACEOF
43781 #define wxHAS_INOTIFY 1
43782 _ACEOF
43783
43784             else
43785
43786 for ac_header in sys/event.h
43787 do
43788 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
43789 { echo "$as_me:$LINENO: checking for $ac_header" >&5
43790 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
43791 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
43792   echo $ECHO_N "(cached) $ECHO_C" >&6
43793 else
43794   cat >conftest.$ac_ext <<_ACEOF
43795 /* confdefs.h.  */
43796 _ACEOF
43797 cat confdefs.h >>conftest.$ac_ext
43798 cat >>conftest.$ac_ext <<_ACEOF
43799 /* end confdefs.h.  */
43800 $ac_includes_default
43801
43802 #include <$ac_header>
43803 _ACEOF
43804 rm -f conftest.$ac_objext
43805 if { (ac_try="$ac_compile"
43806 case "(($ac_try" in
43807   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43808   *) ac_try_echo=$ac_try;;
43809 esac
43810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43811   (eval "$ac_compile") 2>conftest.er1
43812   ac_status=$?
43813   grep -v '^ *+' conftest.er1 >conftest.err
43814   rm -f conftest.er1
43815   cat conftest.err >&5
43816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43817   (exit $ac_status); } && {
43818          test -z "$ac_c_werror_flag" ||
43819          test ! -s conftest.err
43820        } && test -s conftest.$ac_objext; then
43821   eval "$as_ac_Header=yes"
43822 else
43823   echo "$as_me: failed program was:" >&5
43824 sed 's/^/| /' conftest.$ac_ext >&5
43825
43826         eval "$as_ac_Header=no"
43827 fi
43828
43829 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43830 fi
43831 ac_res=`eval echo '${'$as_ac_Header'}'`
43832                { echo "$as_me:$LINENO: result: $ac_res" >&5
43833 echo "${ECHO_T}$ac_res" >&6; }
43834 if test `eval echo '${'$as_ac_Header'}'` = yes; then
43835   cat >>confdefs.h <<_ACEOF
43836 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
43837 _ACEOF
43838
43839 fi
43840
43841 done
43842
43843                 if test "$ac_cv_header_sys_event_h" = "yes"; then
43844                     cat >>confdefs.h <<\_ACEOF
43845 #define wxHAS_KQUEUE 1
43846 _ACEOF
43847
43848                 else
43849                     wxUSE_FSWATCHER=no
43850                 fi
43851             fi
43852         else
43853             wxUSE_FSWATCHER=no
43854         fi
43855     else
43856         if test "$wxUSE_THREADS" != "yes"; then
43857             { echo "$as_me:$LINENO: WARNING: wxFileSystemWatcher disabled due to --disable-threads" >&5
43858 echo "$as_me: WARNING: wxFileSystemWatcher disabled due to --disable-threads" >&2;}
43859             wxUSE_FSWATCHER=no
43860         fi
43861     fi
43862
43863     if test "$wxUSE_FSWATCHER" = "yes"; then
43864         cat >>confdefs.h <<\_ACEOF
43865 #define wxUSE_FSWATCHER 1
43866 _ACEOF
43867
43868         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS fswatcher"
43869     else
43870         { echo "$as_me:$LINENO: WARNING: wxFileSystemWatcher won't be available on this platform" >&5
43871 echo "$as_me: WARNING: wxFileSystemWatcher won't be available on this platform" >&2;}
43872     fi
43873 fi
43874
43875
43876 if test "$wxUSE_STL" = "yes"; then
43877   cat >>confdefs.h <<\_ACEOF
43878 #define wxUSE_STL 1
43879 _ACEOF
43880
43881 fi
43882
43883 if test "$wxUSE_EXTENDED_RTTI" = "yes"; then
43884   cat >>confdefs.h <<\_ACEOF
43885 #define wxUSE_EXTENDED_RTTI 1
43886 _ACEOF
43887
43888 fi
43889
43890 if test "$wxUSE_ANY" = "yes"; then
43891     cat >>confdefs.h <<\_ACEOF
43892 #define wxUSE_ANY 1
43893 _ACEOF
43894
43895 fi
43896
43897 if test "$wxUSE_APPLE_IEEE" = "yes"; then
43898   cat >>confdefs.h <<\_ACEOF
43899 #define wxUSE_APPLE_IEEE 1
43900 _ACEOF
43901
43902 fi
43903
43904 if test "$wxUSE_TIMER" = "yes"; then
43905   cat >>confdefs.h <<\_ACEOF
43906 #define wxUSE_TIMER 1
43907 _ACEOF
43908
43909 fi
43910
43911 if test "$USE_UNIX" = 1 ; then
43912         if test "$wxUSE_MGL" != 1; then
43913                                 { echo "$as_me:$LINENO: checking for SNDCTL_DSP_SPEED in sys/soundcard.h" >&5
43914 echo $ECHO_N "checking for SNDCTL_DSP_SPEED in sys/soundcard.h... $ECHO_C" >&6; }
43915 if test "${ac_cv_header_sys_soundcard+set}" = set; then
43916   echo $ECHO_N "(cached) $ECHO_C" >&6
43917 else
43918
43919             cat >conftest.$ac_ext <<_ACEOF
43920 /* confdefs.h.  */
43921 _ACEOF
43922 cat confdefs.h >>conftest.$ac_ext
43923 cat >>conftest.$ac_ext <<_ACEOF
43924 /* end confdefs.h.  */
43925
43926                     #include <sys/ioctl.h>
43927                     #include <sys/soundcard.h>
43928
43929 int
43930 main ()
43931 {
43932
43933                     ioctl(0, SNDCTL_DSP_SPEED, 0);
43934
43935   ;
43936   return 0;
43937 }
43938 _ACEOF
43939 rm -f conftest.$ac_objext conftest$ac_exeext
43940 if { (ac_try="$ac_link"
43941 case "(($ac_try" in
43942   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43943   *) ac_try_echo=$ac_try;;
43944 esac
43945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43946   (eval "$ac_link") 2>conftest.er1
43947   ac_status=$?
43948   grep -v '^ *+' conftest.er1 >conftest.err
43949   rm -f conftest.er1
43950   cat conftest.err >&5
43951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43952   (exit $ac_status); } && {
43953          test -z "$ac_c_werror_flag" ||
43954          test ! -s conftest.err
43955        } && test -s conftest$ac_exeext &&
43956        $as_test_x conftest$ac_exeext; then
43957   ac_cv_header_sys_soundcard=yes
43958 else
43959   echo "$as_me: failed program was:" >&5
43960 sed 's/^/| /' conftest.$ac_ext >&5
43961
43962
43963                     saveLibs="$LIBS"
43964                     LIBS="$saveLibs -lossaudio"
43965                     cat >conftest.$ac_ext <<_ACEOF
43966 /* confdefs.h.  */
43967 _ACEOF
43968 cat confdefs.h >>conftest.$ac_ext
43969 cat >>conftest.$ac_ext <<_ACEOF
43970 /* end confdefs.h.  */
43971
43972                             #include <sys/ioctl.h>
43973                             #include <sys/soundcard.h>
43974
43975 int
43976 main ()
43977 {
43978
43979                             ioctl(0, SNDCTL_DSP_SPEED, 0);
43980
43981   ;
43982   return 0;
43983 }
43984 _ACEOF
43985 rm -f conftest.$ac_objext conftest$ac_exeext
43986 if { (ac_try="$ac_link"
43987 case "(($ac_try" in
43988   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43989   *) ac_try_echo=$ac_try;;
43990 esac
43991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43992   (eval "$ac_link") 2>conftest.er1
43993   ac_status=$?
43994   grep -v '^ *+' conftest.er1 >conftest.err
43995   rm -f conftest.er1
43996   cat conftest.err >&5
43997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43998   (exit $ac_status); } && {
43999          test -z "$ac_c_werror_flag" ||
44000          test ! -s conftest.err
44001        } && test -s conftest$ac_exeext &&
44002        $as_test_x conftest$ac_exeext; then
44003   ac_cv_header_sys_soundcard=yes
44004 else
44005   echo "$as_me: failed program was:" >&5
44006 sed 's/^/| /' conftest.$ac_ext >&5
44007
44008
44009                             LIBS="$saveLibs"
44010                             ac_cv_header_sys_soundcard=no
44011
44012
44013 fi
44014
44015 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
44016       conftest$ac_exeext conftest.$ac_ext
44017
44018
44019 fi
44020
44021 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
44022       conftest$ac_exeext conftest.$ac_ext
44023
44024 fi
44025 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard" >&5
44026 echo "${ECHO_T}$ac_cv_header_sys_soundcard" >&6; }
44027     fi
44028
44029     if test "$ac_cv_header_sys_soundcard" = "yes"; then
44030         cat >>confdefs.h <<\_ACEOF
44031 #define HAVE_SYS_SOUNDCARD_H 1
44032 _ACEOF
44033
44034     fi
44035 fi
44036
44037 WITH_PLUGIN_SDL=0
44038 if test "$wxUSE_SOUND" = "yes"; then
44039   if test "$USE_UNIX" = 1 ; then
44040     if test "$wxUSE_LIBSDL" != "no"; then
44041
44042 # Check whether --with-sdl-prefix was given.
44043 if test "${with_sdl_prefix+set}" = set; then
44044   withval=$with_sdl_prefix; sdl_prefix="$withval"
44045 else
44046   sdl_prefix=""
44047 fi
44048
44049
44050 # Check whether --with-sdl-exec-prefix was given.
44051 if test "${with_sdl_exec_prefix+set}" = set; then
44052   withval=$with_sdl_exec_prefix; sdl_exec_prefix="$withval"
44053 else
44054   sdl_exec_prefix=""
44055 fi
44056
44057 # Check whether --enable-sdltest was given.
44058 if test "${enable_sdltest+set}" = set; then
44059   enableval=$enable_sdltest;
44060 else
44061   enable_sdltest=yes
44062 fi
44063
44064
44065   if test x$sdl_exec_prefix != x ; then
44066     sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
44067     if test x${SDL_CONFIG+set} != xset ; then
44068       SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
44069     fi
44070   fi
44071   if test x$sdl_prefix != x ; then
44072     sdl_args="$sdl_args --prefix=$sdl_prefix"
44073     if test x${SDL_CONFIG+set} != xset ; then
44074       SDL_CONFIG=$sdl_prefix/bin/sdl-config
44075     fi
44076   fi
44077
44078   if test "x$prefix" != xNONE; then
44079     PATH="$prefix/bin:$prefix/usr/bin:$PATH"
44080   fi
44081   # Extract the first word of "sdl-config", so it can be a program name with args.
44082 set dummy sdl-config; ac_word=$2
44083 { echo "$as_me:$LINENO: checking for $ac_word" >&5
44084 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
44085 if test "${ac_cv_path_SDL_CONFIG+set}" = set; then
44086   echo $ECHO_N "(cached) $ECHO_C" >&6
44087 else
44088   case $SDL_CONFIG in
44089   [\\/]* | ?:[\\/]*)
44090   ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
44091   ;;
44092   *)
44093   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44094 for as_dir in $PATH
44095 do
44096   IFS=$as_save_IFS
44097   test -z "$as_dir" && as_dir=.
44098   for ac_exec_ext in '' $ac_executable_extensions; do
44099   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
44100     ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
44101     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44102     break 2
44103   fi
44104 done
44105 done
44106 IFS=$as_save_IFS
44107
44108   test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
44109   ;;
44110 esac
44111 fi
44112 SDL_CONFIG=$ac_cv_path_SDL_CONFIG
44113 if test -n "$SDL_CONFIG"; then
44114   { echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5
44115 echo "${ECHO_T}$SDL_CONFIG" >&6; }
44116 else
44117   { echo "$as_me:$LINENO: result: no" >&5
44118 echo "${ECHO_T}no" >&6; }
44119 fi
44120
44121
44122   min_sdl_version=1.2.0
44123   { echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5
44124 echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6; }
44125   no_sdl=""
44126   if test "$SDL_CONFIG" = "no" ; then
44127     no_sdl=yes
44128   else
44129     SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
44130     SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
44131
44132     sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
44133            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
44134     sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
44135            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
44136     sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
44137            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
44138     if test "x$enable_sdltest" = "xyes" ; then
44139       ac_save_CFLAGS="$CFLAGS"
44140       ac_save_CXXFLAGS="$CXXFLAGS"
44141       ac_save_LIBS="$LIBS"
44142       CFLAGS="$CFLAGS $SDL_CFLAGS"
44143       CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
44144       LIBS="$LIBS $SDL_LIBS"
44145       rm -f conf.sdltest
44146       if test "$cross_compiling" = yes; then
44147   echo $ac_n "cross compiling; assumed OK... $ac_c"
44148 else
44149   cat >conftest.$ac_ext <<_ACEOF
44150 /* confdefs.h.  */
44151 _ACEOF
44152 cat confdefs.h >>conftest.$ac_ext
44153 cat >>conftest.$ac_ext <<_ACEOF
44154 /* end confdefs.h.  */
44155
44156 #include <stdio.h>
44157 #include <stdlib.h>
44158 #include <string.h>
44159 #include "SDL.h"
44160
44161 char*
44162 my_strdup (char *str)
44163 {
44164   char *new_str;
44165
44166   if (str)
44167     {
44168       new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
44169       strcpy (new_str, str);
44170     }
44171   else
44172     new_str = NULL;
44173
44174   return new_str;
44175 }
44176
44177 int main (int argc, char *argv[])
44178 {
44179   int major, minor, micro;
44180   char *tmp_version;
44181
44182   /* This hangs on some systems (?)
44183   system ("touch conf.sdltest");
44184   */
44185   { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
44186
44187   /* HP/UX 9 (%@#!) writes to sscanf strings */
44188   tmp_version = my_strdup("$min_sdl_version");
44189   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
44190      printf("%s, bad version string\n", "$min_sdl_version");
44191      exit(1);
44192    }
44193
44194    if (($sdl_major_version > major) ||
44195       (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
44196       (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
44197     {
44198       return 0;
44199     }
44200   else
44201     {
44202       printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
44203       printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
44204       printf("*** best to upgrade to the required version.\n");
44205       printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
44206       printf("*** to point to the correct copy of sdl-config, and remove the file\n");
44207       printf("*** config.cache before re-running configure\n");
44208       return 1;
44209     }
44210 }
44211
44212
44213 _ACEOF
44214 rm -f conftest$ac_exeext
44215 if { (ac_try="$ac_link"
44216 case "(($ac_try" in
44217   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44218   *) ac_try_echo=$ac_try;;
44219 esac
44220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44221   (eval "$ac_link") 2>&5
44222   ac_status=$?
44223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44224   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
44225   { (case "(($ac_try" in
44226   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44227   *) ac_try_echo=$ac_try;;
44228 esac
44229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44230   (eval "$ac_try") 2>&5
44231   ac_status=$?
44232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44233   (exit $ac_status); }; }; then
44234   :
44235 else
44236   echo "$as_me: program exited with status $ac_status" >&5
44237 echo "$as_me: failed program was:" >&5
44238 sed 's/^/| /' conftest.$ac_ext >&5
44239
44240 ( exit $ac_status )
44241 no_sdl=yes
44242 fi
44243 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
44244 fi
44245
44246
44247        CFLAGS="$ac_save_CFLAGS"
44248        CXXFLAGS="$ac_save_CXXFLAGS"
44249        LIBS="$ac_save_LIBS"
44250      fi
44251   fi
44252   if test "x$no_sdl" = x ; then
44253      { echo "$as_me:$LINENO: result: yes" >&5
44254 echo "${ECHO_T}yes" >&6; }
44255
44256                     EXTRALIBS_SDL="$SDL_LIBS"
44257                     CFLAGS="$SDL_CFLAGS $CFLAGS"
44258                     CXXFLAGS="$SDL_CFLAGS $CXXFLAGS"
44259                     cat >>confdefs.h <<\_ACEOF
44260 #define wxUSE_LIBSDL 1
44261 _ACEOF
44262
44263
44264   else
44265      { echo "$as_me:$LINENO: result: no" >&5
44266 echo "${ECHO_T}no" >&6; }
44267      if test "$SDL_CONFIG" = "no" ; then
44268        echo "*** The sdl-config script installed by SDL could not be found"
44269        echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
44270        echo "*** your path, or set the SDL_CONFIG environment variable to the"
44271        echo "*** full path to sdl-config."
44272      else
44273        if test -f conf.sdltest ; then
44274         :
44275        else
44276           echo "*** Could not run SDL test program, checking why..."
44277           CFLAGS="$CFLAGS $SDL_CFLAGS"
44278           CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
44279           LIBS="$LIBS $SDL_LIBS"
44280           cat >conftest.$ac_ext <<_ACEOF
44281 /* confdefs.h.  */
44282 _ACEOF
44283 cat confdefs.h >>conftest.$ac_ext
44284 cat >>conftest.$ac_ext <<_ACEOF
44285 /* end confdefs.h.  */
44286
44287 #include <stdio.h>
44288 #include "SDL.h"
44289
44290 int main(int argc, char *argv[])
44291 { return 0; }
44292 #undef  main
44293 #define main K_and_R_C_main
44294
44295 int
44296 main ()
44297 {
44298  return 0;
44299   ;
44300   return 0;
44301 }
44302 _ACEOF
44303 rm -f conftest.$ac_objext conftest$ac_exeext
44304 if { (ac_try="$ac_link"
44305 case "(($ac_try" in
44306   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44307   *) ac_try_echo=$ac_try;;
44308 esac
44309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44310   (eval "$ac_link") 2>conftest.er1
44311   ac_status=$?
44312   grep -v '^ *+' conftest.er1 >conftest.err
44313   rm -f conftest.er1
44314   cat conftest.err >&5
44315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44316   (exit $ac_status); } && {
44317          test -z "$ac_c_werror_flag" ||
44318          test ! -s conftest.err
44319        } && test -s conftest$ac_exeext &&
44320        $as_test_x conftest$ac_exeext; then
44321    echo "*** The test program compiled, but did not run. This usually means"
44322           echo "*** that the run-time linker is not finding SDL or finding the wrong"
44323           echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
44324           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
44325           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
44326           echo "*** is required on your system"
44327           echo "***"
44328           echo "*** If you have an old version installed, it is best to remove it, although"
44329           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
44330 else
44331   echo "$as_me: failed program was:" >&5
44332 sed 's/^/| /' conftest.$ac_ext >&5
44333
44334          echo "*** The test program failed to compile or link. See the file config.log for the"
44335           echo "*** exact error that occured. This usually means SDL was incorrectly installed"
44336           echo "*** or that you have moved SDL since it was installed. In the latter case, you"
44337           echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
44338 fi
44339
44340 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
44341       conftest$ac_exeext conftest.$ac_ext
44342           CFLAGS="$ac_save_CFLAGS"
44343           CXXFLAGS="$ac_save_CXXFLAGS"
44344           LIBS="$ac_save_LIBS"
44345        fi
44346      fi
44347      SDL_CFLAGS=""
44348      SDL_LIBS=""
44349      wxUSE_LIBSDL="no"
44350   fi
44351
44352
44353   rm -f conf.sdltest
44354
44355       if test "$wxUSE_LIBSDL" = "yes" -a "$wxUSE_PLUGINS" = "yes" ; then
44356         WITH_PLUGIN_SDL=1
44357       fi
44358     fi
44359   else
44360         if test "$wxUSE_MGL" = 1; then
44361         { echo "$as_me:$LINENO: WARNING: wxSound not supported in MGL under DOS... disabled" >&5
44362 echo "$as_me: WARNING: wxSound not supported in MGL under DOS... disabled" >&2;}
44363         wxUSE_SOUND="no"
44364     fi
44365   fi
44366 fi
44367
44368 if test "$wxUSE_SOUND" = "yes"; then
44369   cat >>confdefs.h <<\_ACEOF
44370 #define wxUSE_SOUND 1
44371 _ACEOF
44372
44373   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sound"
44374 fi
44375
44376 if test "$WXGTK2" = 1; then
44377
44378
44379 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
44380         if test -n "$ac_tool_prefix"; then
44381   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
44382 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
44383 { echo "$as_me:$LINENO: checking for $ac_word" >&5
44384 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
44385 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
44386   echo $ECHO_N "(cached) $ECHO_C" >&6
44387 else
44388   case $PKG_CONFIG in
44389   [\\/]* | ?:[\\/]*)
44390   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
44391   ;;
44392   *)
44393   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44394 for as_dir in $PATH
44395 do
44396   IFS=$as_save_IFS
44397   test -z "$as_dir" && as_dir=.
44398   for ac_exec_ext in '' $ac_executable_extensions; do
44399   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
44400     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
44401     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44402     break 2
44403   fi
44404 done
44405 done
44406 IFS=$as_save_IFS
44407
44408   ;;
44409 esac
44410 fi
44411 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
44412 if test -n "$PKG_CONFIG"; then
44413   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
44414 echo "${ECHO_T}$PKG_CONFIG" >&6; }
44415 else
44416   { echo "$as_me:$LINENO: result: no" >&5
44417 echo "${ECHO_T}no" >&6; }
44418 fi
44419
44420
44421 fi
44422 if test -z "$ac_cv_path_PKG_CONFIG"; then
44423   ac_pt_PKG_CONFIG=$PKG_CONFIG
44424   # Extract the first word of "pkg-config", so it can be a program name with args.
44425 set dummy pkg-config; ac_word=$2
44426 { echo "$as_me:$LINENO: checking for $ac_word" >&5
44427 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
44428 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
44429   echo $ECHO_N "(cached) $ECHO_C" >&6
44430 else
44431   case $ac_pt_PKG_CONFIG in
44432   [\\/]* | ?:[\\/]*)
44433   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
44434   ;;
44435   *)
44436   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44437 for as_dir in $PATH
44438 do
44439   IFS=$as_save_IFS
44440   test -z "$as_dir" && as_dir=.
44441   for ac_exec_ext in '' $ac_executable_extensions; do
44442   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
44443     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
44444     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44445     break 2
44446   fi
44447 done
44448 done
44449 IFS=$as_save_IFS
44450
44451   ;;
44452 esac
44453 fi
44454 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
44455 if test -n "$ac_pt_PKG_CONFIG"; then
44456   { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
44457 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
44458 else
44459   { echo "$as_me:$LINENO: result: no" >&5
44460 echo "${ECHO_T}no" >&6; }
44461 fi
44462
44463   if test "x$ac_pt_PKG_CONFIG" = x; then
44464     PKG_CONFIG=""
44465   else
44466     case $cross_compiling:$ac_tool_warned in
44467 yes:)
44468 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
44469 whose name does not start with the host triplet.  If you think this
44470 configuration is useful to you, please write to autoconf@gnu.org." >&5
44471 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
44472 whose name does not start with the host triplet.  If you think this
44473 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
44474 ac_tool_warned=yes ;;
44475 esac
44476     PKG_CONFIG=$ac_pt_PKG_CONFIG
44477   fi
44478 else
44479   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
44480 fi
44481
44482 fi
44483 if test -n "$PKG_CONFIG"; then
44484         _pkg_min_version=0.9.0
44485         { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
44486 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
44487         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
44488                 { echo "$as_me:$LINENO: result: yes" >&5
44489 echo "${ECHO_T}yes" >&6; }
44490         else
44491                 { echo "$as_me:$LINENO: result: no" >&5
44492 echo "${ECHO_T}no" >&6; }
44493                 PKG_CONFIG=""
44494         fi
44495
44496 fi
44497
44498     if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
44499
44500         if test "$wxUSE_GTKPRINT" = "yes" ; then
44501
44502
44503 pkg_failed=no
44504 { echo "$as_me:$LINENO: checking for GTKPRINT" >&5
44505 echo $ECHO_N "checking for GTKPRINT... $ECHO_C" >&6; }
44506
44507 if test -n "$PKG_CONFIG"; then
44508     if test -n "$GTKPRINT_CFLAGS"; then
44509         pkg_cv_GTKPRINT_CFLAGS="$GTKPRINT_CFLAGS"
44510     else
44511         if test -n "$PKG_CONFIG" && \
44512     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk+-unix-print-2.0 >= 2.10\"") >&5
44513   ($PKG_CONFIG --exists --print-errors "gtk+-unix-print-2.0 >= 2.10") 2>&5
44514   ac_status=$?
44515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44516   (exit $ac_status); }; then
44517   pkg_cv_GTKPRINT_CFLAGS=`$PKG_CONFIG --cflags "gtk+-unix-print-2.0 >= 2.10" 2>/dev/null`
44518 else
44519   pkg_failed=yes
44520 fi
44521     fi
44522 else
44523         pkg_failed=untried
44524 fi
44525 if test -n "$PKG_CONFIG"; then
44526     if test -n "$GTKPRINT_LIBS"; then
44527         pkg_cv_GTKPRINT_LIBS="$GTKPRINT_LIBS"
44528     else
44529         if test -n "$PKG_CONFIG" && \
44530     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk+-unix-print-2.0 >= 2.10\"") >&5
44531   ($PKG_CONFIG --exists --print-errors "gtk+-unix-print-2.0 >= 2.10") 2>&5
44532   ac_status=$?
44533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44534   (exit $ac_status); }; then
44535   pkg_cv_GTKPRINT_LIBS=`$PKG_CONFIG --libs "gtk+-unix-print-2.0 >= 2.10" 2>/dev/null`
44536 else
44537   pkg_failed=yes
44538 fi
44539     fi
44540 else
44541         pkg_failed=untried
44542 fi
44543
44544
44545
44546 if test $pkg_failed = yes; then
44547
44548 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
44549         _pkg_short_errors_supported=yes
44550 else
44551         _pkg_short_errors_supported=no
44552 fi
44553         if test $_pkg_short_errors_supported = yes; then
44554                 GTKPRINT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gtk+-unix-print-2.0 >= 2.10"`
44555         else
44556                 GTKPRINT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+-unix-print-2.0 >= 2.10"`
44557         fi
44558         # Put the nasty error message in config.log where it belongs
44559         echo "$GTKPRINT_PKG_ERRORS" >&5
44560
44561
44562                         { echo "$as_me:$LINENO: WARNING: GTK printing support not found (GTK+ >= 2.10), library will use GNOME printing support or standard PostScript printing" >&5
44563 echo "$as_me: WARNING: GTK printing support not found (GTK+ >= 2.10), library will use GNOME printing support or standard PostScript printing" >&2;}
44564                         wxUSE_GTKPRINT="no"
44565
44566
44567 elif test $pkg_failed = untried; then
44568
44569                         { echo "$as_me:$LINENO: WARNING: GTK printing support not found (GTK+ >= 2.10), library will use GNOME printing support or standard PostScript printing" >&5
44570 echo "$as_me: WARNING: GTK printing support not found (GTK+ >= 2.10), library will use GNOME printing support or standard PostScript printing" >&2;}
44571                         wxUSE_GTKPRINT="no"
44572
44573
44574 else
44575         GTKPRINT_CFLAGS=$pkg_cv_GTKPRINT_CFLAGS
44576         GTKPRINT_LIBS=$pkg_cv_GTKPRINT_LIBS
44577         { echo "$as_me:$LINENO: result: yes" >&5
44578 echo "${ECHO_T}yes" >&6; }
44579
44580                         CFLAGS="$GTKPRINT_CFLAGS $CFLAGS"
44581                         CXXFLAGS="$GTKPRINT_CFLAGS $CXXFLAGS"
44582                         cat >>confdefs.h <<\_ACEOF
44583 #define wxUSE_GTKPRINT 1
44584 _ACEOF
44585
44586
44587 fi
44588         fi
44589
44590         if test "$wxUSE_LIBGNOMEPRINT" = "yes" ; then
44591
44592
44593 pkg_failed=no
44594 { echo "$as_me:$LINENO: checking for LIBGNOMEPRINTUI" >&5
44595 echo $ECHO_N "checking for LIBGNOMEPRINTUI... $ECHO_C" >&6; }
44596
44597 if test -n "$PKG_CONFIG"; then
44598     if test -n "$LIBGNOMEPRINTUI_CFLAGS"; then
44599         pkg_cv_LIBGNOMEPRINTUI_CFLAGS="$LIBGNOMEPRINTUI_CFLAGS"
44600     else
44601         if test -n "$PKG_CONFIG" && \
44602     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgnomeprintui-2.2 >= 2.8\"") >&5
44603   ($PKG_CONFIG --exists --print-errors "libgnomeprintui-2.2 >= 2.8") 2>&5
44604   ac_status=$?
44605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44606   (exit $ac_status); }; then
44607   pkg_cv_LIBGNOMEPRINTUI_CFLAGS=`$PKG_CONFIG --cflags "libgnomeprintui-2.2 >= 2.8" 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 "$LIBGNOMEPRINTUI_LIBS"; then
44617         pkg_cv_LIBGNOMEPRINTUI_LIBS="$LIBGNOMEPRINTUI_LIBS"
44618     else
44619         if test -n "$PKG_CONFIG" && \
44620     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgnomeprintui-2.2 >= 2.8\"") >&5
44621   ($PKG_CONFIG --exists --print-errors "libgnomeprintui-2.2 >= 2.8") 2>&5
44622   ac_status=$?
44623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44624   (exit $ac_status); }; then
44625   pkg_cv_LIBGNOMEPRINTUI_LIBS=`$PKG_CONFIG --libs "libgnomeprintui-2.2 >= 2.8" 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                 LIBGNOMEPRINTUI_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libgnomeprintui-2.2 >= 2.8"`
44645         else
44646                 LIBGNOMEPRINTUI_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libgnomeprintui-2.2 >= 2.8"`
44647         fi
44648         # Put the nasty error message in config.log where it belongs
44649         echo "$LIBGNOMEPRINTUI_PKG_ERRORS" >&5
44650
44651
44652                         { echo "$as_me:$LINENO: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&5
44653 echo "$as_me: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&2;}
44654                         wxUSE_LIBGNOMEPRINT="no"
44655
44656
44657 elif test $pkg_failed = untried; then
44658
44659                         { echo "$as_me:$LINENO: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&5
44660 echo "$as_me: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&2;}
44661                         wxUSE_LIBGNOMEPRINT="no"
44662
44663
44664 else
44665         LIBGNOMEPRINTUI_CFLAGS=$pkg_cv_LIBGNOMEPRINTUI_CFLAGS
44666         LIBGNOMEPRINTUI_LIBS=$pkg_cv_LIBGNOMEPRINTUI_LIBS
44667         { echo "$as_me:$LINENO: result: yes" >&5
44668 echo "${ECHO_T}yes" >&6; }
44669
44670                         CFLAGS="$LIBGNOMEPRINTUI_CFLAGS $CFLAGS"
44671                         CXXFLAGS="$LIBGNOMEPRINTUI_CFLAGS $CXXFLAGS"
44672                         cat >>confdefs.h <<\_ACEOF
44673 #define wxUSE_LIBGNOMEPRINT 1
44674 _ACEOF
44675
44676
44677 fi
44678         fi
44679     fi
44680
44681     if test "$wxUSE_MIMETYPE" = "yes" ; then
44682         if test "$wxUSE_LIBGNOMEVFS" = "yes" ; then
44683
44684
44685 pkg_failed=no
44686 { echo "$as_me:$LINENO: checking for GNOMEVFS" >&5
44687 echo $ECHO_N "checking for GNOMEVFS... $ECHO_C" >&6; }
44688
44689 if test -n "$PKG_CONFIG"; then
44690     if test -n "$GNOMEVFS_CFLAGS"; then
44691         pkg_cv_GNOMEVFS_CFLAGS="$GNOMEVFS_CFLAGS"
44692     else
44693         if test -n "$PKG_CONFIG" && \
44694     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gnome-vfs-2.0 >= 2.0\"") >&5
44695   ($PKG_CONFIG --exists --print-errors "gnome-vfs-2.0 >= 2.0") 2>&5
44696   ac_status=$?
44697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44698   (exit $ac_status); }; then
44699   pkg_cv_GNOMEVFS_CFLAGS=`$PKG_CONFIG --cflags "gnome-vfs-2.0 >= 2.0" 2>/dev/null`
44700 else
44701   pkg_failed=yes
44702 fi
44703     fi
44704 else
44705         pkg_failed=untried
44706 fi
44707 if test -n "$PKG_CONFIG"; then
44708     if test -n "$GNOMEVFS_LIBS"; then
44709         pkg_cv_GNOMEVFS_LIBS="$GNOMEVFS_LIBS"
44710     else
44711         if test -n "$PKG_CONFIG" && \
44712     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gnome-vfs-2.0 >= 2.0\"") >&5
44713   ($PKG_CONFIG --exists --print-errors "gnome-vfs-2.0 >= 2.0") 2>&5
44714   ac_status=$?
44715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44716   (exit $ac_status); }; then
44717   pkg_cv_GNOMEVFS_LIBS=`$PKG_CONFIG --libs "gnome-vfs-2.0 >= 2.0" 2>/dev/null`
44718 else
44719   pkg_failed=yes
44720 fi
44721     fi
44722 else
44723         pkg_failed=untried
44724 fi
44725
44726
44727
44728 if test $pkg_failed = yes; then
44729
44730 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
44731         _pkg_short_errors_supported=yes
44732 else
44733         _pkg_short_errors_supported=no
44734 fi
44735         if test $_pkg_short_errors_supported = yes; then
44736                 GNOMEVFS_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gnome-vfs-2.0 >= 2.0"`
44737         else
44738                 GNOMEVFS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gnome-vfs-2.0 >= 2.0"`
44739         fi
44740         # Put the nasty error message in config.log where it belongs
44741         echo "$GNOMEVFS_PKG_ERRORS" >&5
44742
44743
44744                         { echo "$as_me:$LINENO: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&5
44745 echo "$as_me: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&2;}
44746                         wxUSE_LIBGNOMEVFS="no"
44747
44748
44749 elif test $pkg_failed = untried; then
44750
44751                         { echo "$as_me:$LINENO: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&5
44752 echo "$as_me: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&2;}
44753                         wxUSE_LIBGNOMEVFS="no"
44754
44755
44756 else
44757         GNOMEVFS_CFLAGS=$pkg_cv_GNOMEVFS_CFLAGS
44758         GNOMEVFS_LIBS=$pkg_cv_GNOMEVFS_LIBS
44759         { echo "$as_me:$LINENO: result: yes" >&5
44760 echo "${ECHO_T}yes" >&6; }
44761
44762                         CFLAGS="$GNOMEVFS_CFLAGS $CFLAGS"
44763                         CXXFLAGS="$GNOMEVFS_CFLAGS $CXXFLAGS"
44764                         cat >>confdefs.h <<\_ACEOF
44765 #define wxUSE_LIBGNOMEVFS 1
44766 _ACEOF
44767
44768
44769 fi
44770         fi
44771     fi
44772
44773     if test "$wxUSE_LIBHILDON" = "yes" ; then
44774
44775 pkg_failed=no
44776 { echo "$as_me:$LINENO: checking for HILDON" >&5
44777 echo $ECHO_N "checking for HILDON... $ECHO_C" >&6; }
44778
44779 if test -n "$PKG_CONFIG"; then
44780     if test -n "$HILDON_CFLAGS"; then
44781         pkg_cv_HILDON_CFLAGS="$HILDON_CFLAGS"
44782     else
44783         if test -n "$PKG_CONFIG" && \
44784     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"hildon-lgpl >= 0.9\"") >&5
44785   ($PKG_CONFIG --exists --print-errors "hildon-lgpl >= 0.9") 2>&5
44786   ac_status=$?
44787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44788   (exit $ac_status); }; then
44789   pkg_cv_HILDON_CFLAGS=`$PKG_CONFIG --cflags "hildon-lgpl >= 0.9" 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 "$HILDON_LIBS"; then
44799         pkg_cv_HILDON_LIBS="$HILDON_LIBS"
44800     else
44801         if test -n "$PKG_CONFIG" && \
44802     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"hildon-lgpl >= 0.9\"") >&5
44803   ($PKG_CONFIG --exists --print-errors "hildon-lgpl >= 0.9") 2>&5
44804   ac_status=$?
44805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44806   (exit $ac_status); }; then
44807   pkg_cv_HILDON_LIBS=`$PKG_CONFIG --libs "hildon-lgpl >= 0.9" 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                 HILDON_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "hildon-lgpl >= 0.9"`
44827         else
44828                 HILDON_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "hildon-lgpl >= 0.9"`
44829         fi
44830         # Put the nasty error message in config.log where it belongs
44831         echo "$HILDON_PKG_ERRORS" >&5
44832
44833
44834                 { echo "$as_me:$LINENO: WARNING: libhildon_lgpl not found" >&5
44835 echo "$as_me: WARNING: libhildon_lgpl not found" >&2;}
44836                         wxUSE_LIBHILDON="no"
44837                         ac_hildon_lgpl=0
44838
44839
44840 elif test $pkg_failed = untried; then
44841
44842                 { echo "$as_me:$LINENO: WARNING: libhildon_lgpl not found" >&5
44843 echo "$as_me: WARNING: libhildon_lgpl not found" >&2;}
44844                         wxUSE_LIBHILDON="no"
44845                         ac_hildon_lgpl=0
44846
44847
44848 else
44849         HILDON_CFLAGS=$pkg_cv_HILDON_CFLAGS
44850         HILDON_LIBS=$pkg_cv_HILDON_LIBS
44851         { echo "$as_me:$LINENO: result: yes" >&5
44852 echo "${ECHO_T}yes" >&6; }
44853
44854                 EXTRALIBS_HILDON="$HILDON_LIBS"
44855                 CFLAGS="$CFLAGS $HILDON_CFLAGS"
44856                 CXXFLAGS="$CXXFLAGS $HILDON_CFLAGS"
44857                 cat >>confdefs.h <<\_ACEOF
44858 #define wxUSE_LIBHILDON 1
44859 _ACEOF
44860
44861                 ac_hildon_lgpl=1
44862
44863 fi
44864
44865         if test "$ac_hildon_lgpl" = 0 ; then
44866
44867 pkg_failed=no
44868 { echo "$as_me:$LINENO: checking for HILDON2" >&5
44869 echo $ECHO_N "checking for HILDON2... $ECHO_C" >&6; }
44870
44871 if test -n "$PKG_CONFIG"; then
44872     if test -n "$HILDON2_CFLAGS"; then
44873         pkg_cv_HILDON2_CFLAGS="$HILDON2_CFLAGS"
44874     else
44875         if test -n "$PKG_CONFIG" && \
44876     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"hildon-1 >= 1.99\"") >&5
44877   ($PKG_CONFIG --exists --print-errors "hildon-1 >= 1.99") 2>&5
44878   ac_status=$?
44879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44880   (exit $ac_status); }; then
44881   pkg_cv_HILDON2_CFLAGS=`$PKG_CONFIG --cflags "hildon-1 >= 1.99" 2>/dev/null`
44882 else
44883   pkg_failed=yes
44884 fi
44885     fi
44886 else
44887         pkg_failed=untried
44888 fi
44889 if test -n "$PKG_CONFIG"; then
44890     if test -n "$HILDON2_LIBS"; then
44891         pkg_cv_HILDON2_LIBS="$HILDON2_LIBS"
44892     else
44893         if test -n "$PKG_CONFIG" && \
44894     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"hildon-1 >= 1.99\"") >&5
44895   ($PKG_CONFIG --exists --print-errors "hildon-1 >= 1.99") 2>&5
44896   ac_status=$?
44897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44898   (exit $ac_status); }; then
44899   pkg_cv_HILDON2_LIBS=`$PKG_CONFIG --libs "hildon-1 >= 1.99" 2>/dev/null`
44900 else
44901   pkg_failed=yes
44902 fi
44903     fi
44904 else
44905         pkg_failed=untried
44906 fi
44907
44908
44909
44910 if test $pkg_failed = yes; then
44911
44912 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
44913         _pkg_short_errors_supported=yes
44914 else
44915         _pkg_short_errors_supported=no
44916 fi
44917         if test $_pkg_short_errors_supported = yes; then
44918                 HILDON2_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "hildon-1 >= 1.99"`
44919         else
44920                 HILDON2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "hildon-1 >= 1.99"`
44921         fi
44922         # Put the nasty error message in config.log where it belongs
44923         echo "$HILDON2_PKG_ERRORS" >&5
44924
44925
44926                     { echo "$as_me:$LINENO: WARNING: libhildon_1 not found" >&5
44927 echo "$as_me: WARNING: libhildon_1 not found" >&2;}
44928                             wxUSE_LIBHILDON2="no"
44929
44930
44931 elif test $pkg_failed = untried; then
44932
44933                     { echo "$as_me:$LINENO: WARNING: libhildon_1 not found" >&5
44934 echo "$as_me: WARNING: libhildon_1 not found" >&2;}
44935                             wxUSE_LIBHILDON2="no"
44936
44937
44938 else
44939         HILDON2_CFLAGS=$pkg_cv_HILDON2_CFLAGS
44940         HILDON2_LIBS=$pkg_cv_HILDON2_LIBS
44941         { echo "$as_me:$LINENO: result: yes" >&5
44942 echo "${ECHO_T}yes" >&6; }
44943
44944                     EXTRALIBS_HILDON="$HILDON2_LIBS"
44945                     CFLAGS="$CFLAGS $HILDON2_CFLAGS"
44946                     CXXFLAGS="$CXXFLAGS $HILDON2_CFLAGS"
44947                     cat >>confdefs.h <<\_ACEOF
44948 #define wxUSE_LIBHILDON2 1
44949 _ACEOF
44950
44951
44952 fi
44953         fi
44954     fi
44955 fi
44956
44957 if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
44958   cat >>confdefs.h <<\_ACEOF
44959 #define wxUSE_CMDLINE_PARSER 1
44960 _ACEOF
44961
44962 fi
44963
44964 if test "$wxUSE_STOPWATCH" = "yes"; then
44965   cat >>confdefs.h <<\_ACEOF
44966 #define wxUSE_STOPWATCH 1
44967 _ACEOF
44968
44969 fi
44970
44971 if test "$wxUSE_DATETIME" = "yes"; then
44972   cat >>confdefs.h <<\_ACEOF
44973 #define wxUSE_DATETIME 1
44974 _ACEOF
44975
44976 fi
44977
44978 if test "$wxUSE_FILE" = "yes"; then
44979   cat >>confdefs.h <<\_ACEOF
44980 #define wxUSE_FILE 1
44981 _ACEOF
44982
44983 fi
44984
44985 if test "$wxUSE_FFILE" = "yes"; then
44986   cat >>confdefs.h <<\_ACEOF
44987 #define wxUSE_FFILE 1
44988 _ACEOF
44989
44990 fi
44991
44992 if test "$wxUSE_ARCHIVE_STREAMS" = "yes"; then
44993   if test "$wxUSE_STREAMS" != yes; then
44994     { echo "$as_me:$LINENO: WARNING: wxArchive requires wxStreams... disabled" >&5
44995 echo "$as_me: WARNING: wxArchive requires wxStreams... disabled" >&2;}
44996     wxUSE_ARCHIVE_STREAMS=no
44997   else
44998     cat >>confdefs.h <<\_ACEOF
44999 #define wxUSE_ARCHIVE_STREAMS 1
45000 _ACEOF
45001
45002   fi
45003 fi
45004
45005 if test "$wxUSE_ZIPSTREAM" = "yes"; then
45006   if test "$wxUSE_ARCHIVE_STREAMS" != "yes"; then
45007     { echo "$as_me:$LINENO: WARNING: wxZip requires wxArchive... disabled" >&5
45008 echo "$as_me: WARNING: wxZip requires wxArchive... disabled" >&2;}
45009   elif test "$wxUSE_ZLIB" = "no"; then
45010     { echo "$as_me:$LINENO: WARNING: wxZip requires wxZlib... disabled" >&5
45011 echo "$as_me: WARNING: wxZip requires wxZlib... disabled" >&2;}
45012   else
45013     cat >>confdefs.h <<\_ACEOF
45014 #define wxUSE_ZIPSTREAM 1
45015 _ACEOF
45016
45017   fi
45018 fi
45019
45020 if test "$wxUSE_TARSTREAM" = "yes"; then
45021   if test "$wxUSE_ARCHIVE_STREAMS" != "yes"; then
45022     { echo "$as_me:$LINENO: WARNING: wxTar requires wxArchive... disabled" >&5
45023 echo "$as_me: WARNING: wxTar requires wxArchive... disabled" >&2;}
45024   else
45025     cat >>confdefs.h <<\_ACEOF
45026 #define wxUSE_TARSTREAM 1
45027 _ACEOF
45028
45029   fi
45030 fi
45031
45032 if test "$wxUSE_FILE_HISTORY" = "yes"; then
45033   cat >>confdefs.h <<\_ACEOF
45034 #define wxUSE_FILE_HISTORY 1
45035 _ACEOF
45036
45037 fi
45038
45039 if test "$wxUSE_FILESYSTEM" = "yes"; then
45040   if test "$wxUSE_STREAMS" != yes -o \( "$wxUSE_FILE" != yes -a "$wxUSE_FFILE" != yes \); then
45041     { echo "$as_me:$LINENO: WARNING: wxFileSystem requires wxStreams and wxFile or wxFFile... disabled" >&5
45042 echo "$as_me: WARNING: wxFileSystem requires wxStreams and wxFile or wxFFile... disabled" >&2;}
45043     wxUSE_FILESYSTEM=no
45044   else
45045     cat >>confdefs.h <<\_ACEOF
45046 #define wxUSE_FILESYSTEM 1
45047 _ACEOF
45048
45049   fi
45050 fi
45051
45052 if test "$wxUSE_FS_ARCHIVE" = "yes"; then
45053   if test "$wxUSE_FILESYSTEM" != yes -o "$wxUSE_ARCHIVE_STREAMS" != yes; then
45054     { echo "$as_me:$LINENO: WARNING: wxArchiveFSHandler requires wxArchive and wxFileSystem... disabled" >&5
45055 echo "$as_me: WARNING: wxArchiveFSHandler requires wxArchive and wxFileSystem... disabled" >&2;}
45056   else
45057     cat >>confdefs.h <<\_ACEOF
45058 #define wxUSE_FS_ARCHIVE 1
45059 _ACEOF
45060
45061   fi
45062 fi
45063
45064 if test "$wxUSE_FS_ZIP" = "yes"; then
45065   if test "$wxUSE_FS_ARCHIVE" != yes; then
45066     { echo "$as_me:$LINENO: WARNING: wxZipFSHandler requires wxArchiveFSHandler... disabled" >&5
45067 echo "$as_me: WARNING: wxZipFSHandler requires wxArchiveFSHandler... disabled" >&2;}
45068   else
45069     cat >>confdefs.h <<\_ACEOF
45070 #define wxUSE_FS_ZIP 1
45071 _ACEOF
45072
45073   fi
45074 fi
45075
45076 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
45077   if test "$USE_UNIX" != 1; then
45078     { echo "$as_me:$LINENO: WARNING: Catching fatal exceptions not currently supported on this system, wxApp::OnFatalException will not be called" >&5
45079 echo "$as_me: WARNING: Catching fatal exceptions not currently supported on this system, wxApp::OnFatalException will not be called" >&2;}
45080     wxUSE_ON_FATAL_EXCEPTION=no
45081   else
45082     cat >>confdefs.h <<\_ACEOF
45083 #define wxUSE_ON_FATAL_EXCEPTION 1
45084 _ACEOF
45085
45086   fi
45087 fi
45088
45089 if test "$wxUSE_STACKWALKER" = "yes"; then
45090     cat >>confdefs.h <<\_ACEOF
45091 #define wxUSE_STACKWALKER 1
45092 _ACEOF
45093
45094 fi
45095
45096 if test "$wxUSE_DEBUGREPORT" = "yes"; then
45097     if test "$USE_UNIX" != 1 -a "$USE_WIN32" != 1; then
45098         { echo "$as_me:$LINENO: WARNING: Creating debug reports not currently supported on this system, disabled" >&5
45099 echo "$as_me: WARNING: Creating debug reports not currently supported on this system, disabled" >&2;}
45100         wxUSE_DEBUGREPORT=no
45101     else
45102         cat >>confdefs.h <<\_ACEOF
45103 #define wxUSE_DEBUGREPORT 1
45104 _ACEOF
45105
45106         if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
45107             SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS debugrpt"
45108         fi
45109     fi
45110 fi
45111
45112 if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
45113   cat >>confdefs.h <<\_ACEOF
45114 #define wxUSE_SNGLINST_CHECKER 1
45115 _ACEOF
45116
45117 fi
45118
45119 if test "$wxUSE_BUSYINFO" = "yes"; then
45120   cat >>confdefs.h <<\_ACEOF
45121 #define wxUSE_BUSYINFO 1
45122 _ACEOF
45123
45124 fi
45125
45126 if test "$wxUSE_STD_CONTAINERS" = "yes"; then
45127   cat >>confdefs.h <<\_ACEOF
45128 #define wxUSE_STD_CONTAINERS 1
45129 _ACEOF
45130
45131 fi
45132
45133 if test "$wxUSE_STD_IOSTREAM" = "yes"; then
45134   cat >>confdefs.h <<\_ACEOF
45135 #define wxUSE_STD_IOSTREAM 1
45136 _ACEOF
45137
45138 fi
45139
45140 if test "$wxUSE_STD_STRING" = "yes"; then
45141   cat >>confdefs.h <<\_ACEOF
45142 #define wxUSE_STD_STRING 1
45143 _ACEOF
45144
45145 fi
45146
45147 if test "$wxUSE_STD_STRING_CONV_IN_WXSTRING" = "yes"; then
45148   cat >>confdefs.h <<\_ACEOF
45149 #define wxUSE_STD_STRING_CONV_IN_WXSTRING 1
45150 _ACEOF
45151
45152 fi
45153
45154 if test "$wxUSE_STDPATHS" = "yes"; then
45155   cat >>confdefs.h <<\_ACEOF
45156 #define wxUSE_STDPATHS 1
45157 _ACEOF
45158
45159 fi
45160
45161 if test "$wxUSE_TEXTBUFFER" = "yes"; then
45162     cat >>confdefs.h <<\_ACEOF
45163 #define wxUSE_TEXTBUFFER 1
45164 _ACEOF
45165
45166 fi
45167
45168 if test "$wxUSE_TEXTFILE" = "yes"; then
45169   if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then
45170     { echo "$as_me:$LINENO: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&5
45171 echo "$as_me: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&2;}
45172   else
45173     cat >>confdefs.h <<\_ACEOF
45174 #define wxUSE_TEXTFILE 1
45175 _ACEOF
45176
45177   fi
45178 fi
45179
45180 if test "$wxUSE_CONFIG" = "yes" ; then
45181   if test "$wxUSE_TEXTFILE" != "yes"; then
45182     { echo "$as_me:$LINENO: WARNING: wxConfig requires wxTextFile... disabled" >&5
45183 echo "$as_me: WARNING: wxConfig requires wxTextFile... disabled" >&2;}
45184   else
45185     cat >>confdefs.h <<\_ACEOF
45186 #define wxUSE_CONFIG 1
45187 _ACEOF
45188
45189     cat >>confdefs.h <<\_ACEOF
45190 #define wxUSE_CONFIG_NATIVE 1
45191 _ACEOF
45192
45193     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
45194   fi
45195 fi
45196
45197 if test "$wxUSE_INTL" = "yes" ; then
45198   if test "$wxUSE_FILE" != "yes"; then
45199     { echo "$as_me:$LINENO: WARNING: I18n code requires wxFile... disabled" >&5
45200 echo "$as_me: WARNING: I18n code requires wxFile... disabled" >&2;}
45201   else
45202     cat >>confdefs.h <<\_ACEOF
45203 #define wxUSE_INTL 1
45204 _ACEOF
45205
45206     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
45207     GUIDIST="$GUIDIST INTL_DIST"
45208   fi
45209 fi
45210
45211 if test "$wxUSE_XLOCALE" = "yes" ; then
45212     cat >>confdefs.h <<\_ACEOF
45213 #define wxUSE_XLOCALE 1
45214 _ACEOF
45215
45216     { echo "$as_me:$LINENO: checking for locale_t" >&5
45217 echo $ECHO_N "checking for locale_t... $ECHO_C" >&6; }
45218 if test "${ac_cv_type_locale_t+set}" = set; then
45219   echo $ECHO_N "(cached) $ECHO_C" >&6
45220 else
45221   cat >conftest.$ac_ext <<_ACEOF
45222 /* confdefs.h.  */
45223 _ACEOF
45224 cat confdefs.h >>conftest.$ac_ext
45225 cat >>conftest.$ac_ext <<_ACEOF
45226 /* end confdefs.h.  */
45227 #include <xlocale.h>
45228                     #include <locale.h>
45229
45230 typedef locale_t ac__type_new_;
45231 int
45232 main ()
45233 {
45234 if ((ac__type_new_ *) 0)
45235   return 0;
45236 if (sizeof (ac__type_new_))
45237   return 0;
45238   ;
45239   return 0;
45240 }
45241 _ACEOF
45242 rm -f conftest.$ac_objext
45243 if { (ac_try="$ac_compile"
45244 case "(($ac_try" in
45245   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45246   *) ac_try_echo=$ac_try;;
45247 esac
45248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45249   (eval "$ac_compile") 2>conftest.er1
45250   ac_status=$?
45251   grep -v '^ *+' conftest.er1 >conftest.err
45252   rm -f conftest.er1
45253   cat conftest.err >&5
45254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45255   (exit $ac_status); } && {
45256          test -z "$ac_c_werror_flag" ||
45257          test ! -s conftest.err
45258        } && test -s conftest.$ac_objext; then
45259   ac_cv_type_locale_t=yes
45260 else
45261   echo "$as_me: failed program was:" >&5
45262 sed 's/^/| /' conftest.$ac_ext >&5
45263
45264         ac_cv_type_locale_t=no
45265 fi
45266
45267 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45268 fi
45269 { echo "$as_me:$LINENO: result: $ac_cv_type_locale_t" >&5
45270 echo "${ECHO_T}$ac_cv_type_locale_t" >&6; }
45271 if test $ac_cv_type_locale_t = yes; then
45272
45273 cat >>confdefs.h <<_ACEOF
45274 #define HAVE_LOCALE_T 1
45275 _ACEOF
45276
45277
45278 fi
45279
45280 fi
45281
45282 if test "$wxUSE_LOG" = "yes"; then
45283   cat >>confdefs.h <<\_ACEOF
45284 #define wxUSE_LOG 1
45285 _ACEOF
45286
45287
45288     if test "$wxUSE_LOGGUI" = "yes"; then
45289       cat >>confdefs.h <<\_ACEOF
45290 #define wxUSE_LOGGUI 1
45291 _ACEOF
45292
45293     fi
45294
45295     if test "$wxUSE_LOGWINDOW" = "yes"; then
45296       cat >>confdefs.h <<\_ACEOF
45297 #define wxUSE_LOGWINDOW 1
45298 _ACEOF
45299
45300     fi
45301
45302     if test "$wxUSE_LOGDIALOG" = "yes"; then
45303       cat >>confdefs.h <<\_ACEOF
45304 #define wxUSE_LOG_DIALOG 1
45305 _ACEOF
45306
45307     fi
45308
45309         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS keyboard"
45310 fi
45311
45312 if test "$wxUSE_LONGLONG" = "yes"; then
45313   cat >>confdefs.h <<\_ACEOF
45314 #define wxUSE_LONGLONG 1
45315 _ACEOF
45316
45317 fi
45318
45319 if test "$wxUSE_GEOMETRY" = "yes"; then
45320   cat >>confdefs.h <<\_ACEOF
45321 #define wxUSE_GEOMETRY 1
45322 _ACEOF
45323
45324 fi
45325
45326 if test "$wxUSE_BASE64" = "yes"; then
45327   cat >>confdefs.h <<\_ACEOF
45328 #define wxUSE_BASE64 1
45329 _ACEOF
45330
45331 fi
45332
45333 if test "$wxUSE_STREAMS" = "yes" ; then
45334   cat >>confdefs.h <<\_ACEOF
45335 #define wxUSE_STREAMS 1
45336 _ACEOF
45337
45338 fi
45339
45340 if test "$wxUSE_PRINTF_POS_PARAMS" = "yes"; then
45341   cat >>confdefs.h <<\_ACEOF
45342 #define wxUSE_PRINTF_POS_PARAMS 1
45343 _ACEOF
45344
45345 fi
45346
45347 if test "$wxUSE_OBJC_UNIQUIFYING" = "yes"; then
45348   cat >>confdefs.h <<\_ACEOF
45349 #define wxUSE_OBJC_UNIQUIFYING 1
45350 _ACEOF
45351
45352 fi
45353
45354
45355 if test "$wxUSE_CONSOLE_EVENTLOOP" = "yes"; then
45356     cat >>confdefs.h <<\_ACEOF
45357 #define wxUSE_CONSOLE_EVENTLOOP 1
45358 _ACEOF
45359
45360
45361     if test "$wxUSE_UNIX" = "yes"; then
45362         if test "$wxUSE_SELECT_DISPATCHER" = "yes"; then
45363             cat >>confdefs.h <<\_ACEOF
45364 #define wxUSE_SELECT_DISPATCHER 1
45365 _ACEOF
45366
45367         fi
45368
45369         if test "$wxUSE_EPOLL_DISPATCHER" = "yes"; then
45370
45371 for ac_header in sys/epoll.h
45372 do
45373 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
45374 { echo "$as_me:$LINENO: checking for $ac_header" >&5
45375 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
45376 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
45377   echo $ECHO_N "(cached) $ECHO_C" >&6
45378 else
45379   cat >conftest.$ac_ext <<_ACEOF
45380 /* confdefs.h.  */
45381 _ACEOF
45382 cat confdefs.h >>conftest.$ac_ext
45383 cat >>conftest.$ac_ext <<_ACEOF
45384 /* end confdefs.h.  */
45385 $ac_includes_default
45386
45387 #include <$ac_header>
45388 _ACEOF
45389 rm -f conftest.$ac_objext
45390 if { (ac_try="$ac_compile"
45391 case "(($ac_try" in
45392   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45393   *) ac_try_echo=$ac_try;;
45394 esac
45395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45396   (eval "$ac_compile") 2>conftest.er1
45397   ac_status=$?
45398   grep -v '^ *+' conftest.er1 >conftest.err
45399   rm -f conftest.er1
45400   cat conftest.err >&5
45401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45402   (exit $ac_status); } && {
45403          test -z "$ac_c_werror_flag" ||
45404          test ! -s conftest.err
45405        } && test -s conftest.$ac_objext; then
45406   eval "$as_ac_Header=yes"
45407 else
45408   echo "$as_me: failed program was:" >&5
45409 sed 's/^/| /' conftest.$ac_ext >&5
45410
45411         eval "$as_ac_Header=no"
45412 fi
45413
45414 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45415 fi
45416 ac_res=`eval echo '${'$as_ac_Header'}'`
45417                { echo "$as_me:$LINENO: result: $ac_res" >&5
45418 echo "${ECHO_T}$ac_res" >&6; }
45419 if test `eval echo '${'$as_ac_Header'}'` = yes; then
45420   cat >>confdefs.h <<_ACEOF
45421 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
45422 _ACEOF
45423
45424 fi
45425
45426 done
45427
45428             if test "$ac_cv_header_sys_epoll_h" = "yes"; then
45429                 cat >>confdefs.h <<\_ACEOF
45430 #define wxUSE_EPOLL_DISPATCHER 1
45431 _ACEOF
45432
45433             else
45434                 { echo "$as_me:$LINENO: WARNING: sys/epoll.h not available, wxEpollDispatcher disabled" >&5
45435 echo "$as_me: WARNING: sys/epoll.h not available, wxEpollDispatcher disabled" >&2;}
45436             fi
45437         fi
45438     fi
45439 fi
45440
45441
45442
45443
45444 for ac_func in gettimeofday ftime
45445 do
45446 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
45447 { echo "$as_me:$LINENO: checking for $ac_func" >&5
45448 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
45449 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
45450   echo $ECHO_N "(cached) $ECHO_C" >&6
45451 else
45452   cat >conftest.$ac_ext <<_ACEOF
45453 /* confdefs.h.  */
45454 _ACEOF
45455 cat confdefs.h >>conftest.$ac_ext
45456 cat >>conftest.$ac_ext <<_ACEOF
45457 /* end confdefs.h.  */
45458 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
45459    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
45460 #define $ac_func innocuous_$ac_func
45461
45462 /* System header to define __stub macros and hopefully few prototypes,
45463     which can conflict with char $ac_func (); below.
45464     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45465     <limits.h> exists even on freestanding compilers.  */
45466
45467 #ifdef __STDC__
45468 # include <limits.h>
45469 #else
45470 # include <assert.h>
45471 #endif
45472
45473 #undef $ac_func
45474
45475 /* Override any GCC internal prototype to avoid an error.
45476    Use char because int might match the return type of a GCC
45477    builtin and then its argument prototype would still apply.  */
45478 #ifdef __cplusplus
45479 extern "C"
45480 #endif
45481 char $ac_func ();
45482 /* The GNU C library defines this for functions which it implements
45483     to always fail with ENOSYS.  Some functions are actually named
45484     something starting with __ and the normal name is an alias.  */
45485 #if defined __stub_$ac_func || defined __stub___$ac_func
45486 choke me
45487 #endif
45488
45489 int
45490 main ()
45491 {
45492 return $ac_func ();
45493   ;
45494   return 0;
45495 }
45496 _ACEOF
45497 rm -f conftest.$ac_objext conftest$ac_exeext
45498 if { (ac_try="$ac_link"
45499 case "(($ac_try" in
45500   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45501   *) ac_try_echo=$ac_try;;
45502 esac
45503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45504   (eval "$ac_link") 2>conftest.er1
45505   ac_status=$?
45506   grep -v '^ *+' conftest.er1 >conftest.err
45507   rm -f conftest.er1
45508   cat conftest.err >&5
45509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45510   (exit $ac_status); } && {
45511          test -z "$ac_c_werror_flag" ||
45512          test ! -s conftest.err
45513        } && test -s conftest$ac_exeext &&
45514        $as_test_x conftest$ac_exeext; then
45515   eval "$as_ac_var=yes"
45516 else
45517   echo "$as_me: failed program was:" >&5
45518 sed 's/^/| /' conftest.$ac_ext >&5
45519
45520         eval "$as_ac_var=no"
45521 fi
45522
45523 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
45524       conftest$ac_exeext conftest.$ac_ext
45525 fi
45526 ac_res=`eval echo '${'$as_ac_var'}'`
45527                { echo "$as_me:$LINENO: result: $ac_res" >&5
45528 echo "${ECHO_T}$ac_res" >&6; }
45529 if test `eval echo '${'$as_ac_var'}'` = yes; then
45530   cat >>confdefs.h <<_ACEOF
45531 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
45532 _ACEOF
45533  break
45534 fi
45535 done
45536
45537
45538 if test "$ac_cv_func_gettimeofday" = "yes"; then
45539     { echo "$as_me:$LINENO: checking whether gettimeofday takes two arguments" >&5
45540 echo $ECHO_N "checking whether gettimeofday takes two arguments... $ECHO_C" >&6; }
45541 if test "${wx_cv_func_gettimeofday_has_2_args+set}" = set; then
45542   echo $ECHO_N "(cached) $ECHO_C" >&6
45543 else
45544
45545                 cat >conftest.$ac_ext <<_ACEOF
45546 /* confdefs.h.  */
45547 _ACEOF
45548 cat confdefs.h >>conftest.$ac_ext
45549 cat >>conftest.$ac_ext <<_ACEOF
45550 /* end confdefs.h.  */
45551
45552                 #include <sys/time.h>
45553                 #include <unistd.h>
45554
45555 int
45556 main ()
45557 {
45558
45559                 struct timeval tv;
45560                 gettimeofday(&tv, NULL);
45561
45562   ;
45563   return 0;
45564 }
45565 _ACEOF
45566 rm -f conftest.$ac_objext
45567 if { (ac_try="$ac_compile"
45568 case "(($ac_try" in
45569   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45570   *) ac_try_echo=$ac_try;;
45571 esac
45572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45573   (eval "$ac_compile") 2>conftest.er1
45574   ac_status=$?
45575   grep -v '^ *+' conftest.er1 >conftest.err
45576   rm -f conftest.er1
45577   cat conftest.err >&5
45578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45579   (exit $ac_status); } && {
45580          test -z "$ac_c_werror_flag" ||
45581          test ! -s conftest.err
45582        } && test -s conftest.$ac_objext; then
45583   wx_cv_func_gettimeofday_has_2_args=yes
45584 else
45585   echo "$as_me: failed program was:" >&5
45586 sed 's/^/| /' conftest.$ac_ext >&5
45587
45588         cat >conftest.$ac_ext <<_ACEOF
45589 /* confdefs.h.  */
45590 _ACEOF
45591 cat confdefs.h >>conftest.$ac_ext
45592 cat >>conftest.$ac_ext <<_ACEOF
45593 /* end confdefs.h.  */
45594
45595                     #include <sys/time.h>
45596                     #include <unistd.h>
45597
45598 int
45599 main ()
45600 {
45601
45602                     struct timeval tv;
45603                     gettimeofday(&tv);
45604
45605   ;
45606   return 0;
45607 }
45608 _ACEOF
45609 rm -f conftest.$ac_objext
45610 if { (ac_try="$ac_compile"
45611 case "(($ac_try" in
45612   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45613   *) ac_try_echo=$ac_try;;
45614 esac
45615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45616   (eval "$ac_compile") 2>conftest.er1
45617   ac_status=$?
45618   grep -v '^ *+' conftest.er1 >conftest.err
45619   rm -f conftest.er1
45620   cat conftest.err >&5
45621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45622   (exit $ac_status); } && {
45623          test -z "$ac_c_werror_flag" ||
45624          test ! -s conftest.err
45625        } && test -s conftest.$ac_objext; then
45626   wx_cv_func_gettimeofday_has_2_args=no
45627 else
45628   echo "$as_me: failed program was:" >&5
45629 sed 's/^/| /' conftest.$ac_ext >&5
45630
45631
45632                     { echo "$as_me:$LINENO: WARNING: failed to determine number of gettimeofday() arguments" >&5
45633 echo "$as_me: WARNING: failed to determine number of gettimeofday() arguments" >&2;}
45634                     wx_cv_func_gettimeofday_has_2_args=unknown
45635
45636
45637 fi
45638
45639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45640
45641 fi
45642
45643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45644
45645 fi
45646 { echo "$as_me:$LINENO: result: $wx_cv_func_gettimeofday_has_2_args" >&5
45647 echo "${ECHO_T}$wx_cv_func_gettimeofday_has_2_args" >&6; }
45648
45649     if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
45650         cat >>confdefs.h <<\_ACEOF
45651 #define WX_GETTIMEOFDAY_NO_TZ 1
45652 _ACEOF
45653
45654     fi
45655 fi
45656
45657 if test "$wxUSE_DATETIME" = "yes"; then
45658             { echo "$as_me:$LINENO: checking for timezone variable in <time.h>" >&5
45659 echo $ECHO_N "checking for timezone variable in <time.h>... $ECHO_C" >&6; }
45660 if test "${wx_cv_var_timezone+set}" = set; then
45661   echo $ECHO_N "(cached) $ECHO_C" >&6
45662 else
45663
45664                         ac_ext=cpp
45665 ac_cpp='$CXXCPP $CPPFLAGS'
45666 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
45667 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
45668 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
45669
45670                         cat >conftest.$ac_ext <<_ACEOF
45671 /* confdefs.h.  */
45672 _ACEOF
45673 cat confdefs.h >>conftest.$ac_ext
45674 cat >>conftest.$ac_ext <<_ACEOF
45675 /* end confdefs.h.  */
45676
45677                                 #include <time.h>
45678
45679 int
45680 main ()
45681 {
45682
45683                                 int tz;
45684                                 tz = timezone;
45685
45686   ;
45687   return 0;
45688 }
45689 _ACEOF
45690 rm -f conftest.$ac_objext
45691 if { (ac_try="$ac_compile"
45692 case "(($ac_try" in
45693   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45694   *) ac_try_echo=$ac_try;;
45695 esac
45696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45697   (eval "$ac_compile") 2>conftest.er1
45698   ac_status=$?
45699   grep -v '^ *+' conftest.er1 >conftest.err
45700   rm -f conftest.er1
45701   cat conftest.err >&5
45702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45703   (exit $ac_status); } && {
45704          test -z "$ac_cxx_werror_flag" ||
45705          test ! -s conftest.err
45706        } && test -s conftest.$ac_objext; then
45707
45708                                 wx_cv_var_timezone=timezone
45709
45710 else
45711   echo "$as_me: failed program was:" >&5
45712 sed 's/^/| /' conftest.$ac_ext >&5
45713
45714
45715                                 cat >conftest.$ac_ext <<_ACEOF
45716 /* confdefs.h.  */
45717 _ACEOF
45718 cat confdefs.h >>conftest.$ac_ext
45719 cat >>conftest.$ac_ext <<_ACEOF
45720 /* end confdefs.h.  */
45721
45722                                         #include <time.h>
45723
45724 int
45725 main ()
45726 {
45727
45728                                         int tz;
45729                                         tz = _timezone;
45730
45731   ;
45732   return 0;
45733 }
45734 _ACEOF
45735 rm -f conftest.$ac_objext
45736 if { (ac_try="$ac_compile"
45737 case "(($ac_try" in
45738   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45739   *) ac_try_echo=$ac_try;;
45740 esac
45741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45742   (eval "$ac_compile") 2>conftest.er1
45743   ac_status=$?
45744   grep -v '^ *+' conftest.er1 >conftest.err
45745   rm -f conftest.er1
45746   cat conftest.err >&5
45747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45748   (exit $ac_status); } && {
45749          test -z "$ac_cxx_werror_flag" ||
45750          test ! -s conftest.err
45751        } && test -s conftest.$ac_objext; then
45752
45753                                         wx_cv_var_timezone=_timezone
45754
45755 else
45756   echo "$as_me: failed program was:" >&5
45757 sed 's/^/| /' conftest.$ac_ext >&5
45758
45759
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
45767                                                 #include <time.h>
45768
45769 int
45770 main ()
45771 {
45772
45773                                                 int tz;
45774                                                 tz = __timezone;
45775
45776   ;
45777   return 0;
45778 }
45779 _ACEOF
45780 rm -f conftest.$ac_objext
45781 if { (ac_try="$ac_compile"
45782 case "(($ac_try" in
45783   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45784   *) ac_try_echo=$ac_try;;
45785 esac
45786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45787   (eval "$ac_compile") 2>conftest.er1
45788   ac_status=$?
45789   grep -v '^ *+' conftest.er1 >conftest.err
45790   rm -f conftest.er1
45791   cat conftest.err >&5
45792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45793   (exit $ac_status); } && {
45794          test -z "$ac_cxx_werror_flag" ||
45795          test ! -s conftest.err
45796        } && test -s conftest.$ac_objext; then
45797
45798                                                 wx_cv_var_timezone=__timezone
45799
45800 else
45801   echo "$as_me: failed program was:" >&5
45802 sed 's/^/| /' conftest.$ac_ext >&5
45803
45804
45805                                                 if test "$USE_DOS" = 0 ; then
45806                                                     { echo "$as_me:$LINENO: WARNING: no timezone variable" >&5
45807 echo "$as_me: WARNING: no timezone variable" >&2;}
45808                                                 fi
45809
45810
45811 fi
45812
45813 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45814
45815
45816 fi
45817
45818 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45819
45820
45821 fi
45822
45823 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45824                         ac_ext=c
45825 ac_cpp='$CPP $CPPFLAGS'
45826 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
45827 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
45828 ac_compiler_gnu=$ac_cv_c_compiler_gnu
45829
45830
45831
45832 fi
45833 { echo "$as_me:$LINENO: result: $wx_cv_var_timezone" >&5
45834 echo "${ECHO_T}$wx_cv_var_timezone" >&6; }
45835
45836         if test "x$wx_cv_var_timezone" != x ; then
45837         cat >>confdefs.h <<_ACEOF
45838 #define WX_TIMEZONE $wx_cv_var_timezone
45839 _ACEOF
45840
45841     fi
45842
45843
45844 for ac_func in localtime
45845 do
45846 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
45847 { echo "$as_me:$LINENO: checking for $ac_func" >&5
45848 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
45849 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
45850   echo $ECHO_N "(cached) $ECHO_C" >&6
45851 else
45852   cat >conftest.$ac_ext <<_ACEOF
45853 /* confdefs.h.  */
45854 _ACEOF
45855 cat confdefs.h >>conftest.$ac_ext
45856 cat >>conftest.$ac_ext <<_ACEOF
45857 /* end confdefs.h.  */
45858 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
45859    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
45860 #define $ac_func innocuous_$ac_func
45861
45862 /* System header to define __stub macros and hopefully few prototypes,
45863     which can conflict with char $ac_func (); below.
45864     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45865     <limits.h> exists even on freestanding compilers.  */
45866
45867 #ifdef __STDC__
45868 # include <limits.h>
45869 #else
45870 # include <assert.h>
45871 #endif
45872
45873 #undef $ac_func
45874
45875 /* Override any GCC internal prototype to avoid an error.
45876    Use char because int might match the return type of a GCC
45877    builtin and then its argument prototype would still apply.  */
45878 #ifdef __cplusplus
45879 extern "C"
45880 #endif
45881 char $ac_func ();
45882 /* The GNU C library defines this for functions which it implements
45883     to always fail with ENOSYS.  Some functions are actually named
45884     something starting with __ and the normal name is an alias.  */
45885 #if defined __stub_$ac_func || defined __stub___$ac_func
45886 choke me
45887 #endif
45888
45889 int
45890 main ()
45891 {
45892 return $ac_func ();
45893   ;
45894   return 0;
45895 }
45896 _ACEOF
45897 rm -f conftest.$ac_objext conftest$ac_exeext
45898 if { (ac_try="$ac_link"
45899 case "(($ac_try" in
45900   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45901   *) ac_try_echo=$ac_try;;
45902 esac
45903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45904   (eval "$ac_link") 2>conftest.er1
45905   ac_status=$?
45906   grep -v '^ *+' conftest.er1 >conftest.err
45907   rm -f conftest.er1
45908   cat conftest.err >&5
45909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45910   (exit $ac_status); } && {
45911          test -z "$ac_c_werror_flag" ||
45912          test ! -s conftest.err
45913        } && test -s conftest$ac_exeext &&
45914        $as_test_x conftest$ac_exeext; then
45915   eval "$as_ac_var=yes"
45916 else
45917   echo "$as_me: failed program was:" >&5
45918 sed 's/^/| /' conftest.$ac_ext >&5
45919
45920         eval "$as_ac_var=no"
45921 fi
45922
45923 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
45924       conftest$ac_exeext conftest.$ac_ext
45925 fi
45926 ac_res=`eval echo '${'$as_ac_var'}'`
45927                { echo "$as_me:$LINENO: result: $ac_res" >&5
45928 echo "${ECHO_T}$ac_res" >&6; }
45929 if test `eval echo '${'$as_ac_var'}'` = yes; then
45930   cat >>confdefs.h <<_ACEOF
45931 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
45932 _ACEOF
45933
45934 fi
45935 done
45936
45937
45938     if test "$ac_cv_func_localtime" = "yes"; then
45939         { echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
45940 echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6; }
45941 if test "${wx_cv_struct_tm_has_gmtoff+set}" = set; then
45942   echo $ECHO_N "(cached) $ECHO_C" >&6
45943 else
45944
45945             cat >conftest.$ac_ext <<_ACEOF
45946 /* confdefs.h.  */
45947 _ACEOF
45948 cat confdefs.h >>conftest.$ac_ext
45949 cat >>conftest.$ac_ext <<_ACEOF
45950 /* end confdefs.h.  */
45951
45952                     #include <time.h>
45953
45954 int
45955 main ()
45956 {
45957
45958                     struct tm tm;
45959                     tm.tm_gmtoff++;
45960
45961   ;
45962   return 0;
45963 }
45964 _ACEOF
45965 rm -f conftest.$ac_objext
45966 if { (ac_try="$ac_compile"
45967 case "(($ac_try" in
45968   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45969   *) ac_try_echo=$ac_try;;
45970 esac
45971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45972   (eval "$ac_compile") 2>conftest.er1
45973   ac_status=$?
45974   grep -v '^ *+' conftest.er1 >conftest.err
45975   rm -f conftest.er1
45976   cat conftest.err >&5
45977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45978   (exit $ac_status); } && {
45979          test -z "$ac_c_werror_flag" ||
45980          test ! -s conftest.err
45981        } && test -s conftest.$ac_objext; then
45982
45983                     wx_cv_struct_tm_has_gmtoff=yes
45984
45985 else
45986   echo "$as_me: failed program was:" >&5
45987 sed 's/^/| /' conftest.$ac_ext >&5
45988
45989         wx_cv_struct_tm_has_gmtoff=no
45990
45991 fi
45992
45993 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45994
45995 fi
45996 { echo "$as_me:$LINENO: result: $wx_cv_struct_tm_has_gmtoff" >&5
45997 echo "${ECHO_T}$wx_cv_struct_tm_has_gmtoff" >&6; }
45998     fi
45999
46000     if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
46001         cat >>confdefs.h <<\_ACEOF
46002 #define WX_GMTOFF_IN_TM 1
46003 _ACEOF
46004
46005     fi
46006
46007     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
46008 fi
46009
46010
46011 if test "$wxUSE_SOCKETS" = "yes"; then
46012     if test "$wxUSE_MGL" = 1; then
46013         { echo "$as_me:$LINENO: WARNING: wxSocket not yet supported under MGL... disabled" >&5
46014 echo "$as_me: WARNING: wxSocket not yet supported under MGL... disabled" >&2;}
46015         wxUSE_SOCKETS="no"
46016     fi
46017 fi
46018
46019 if test "$wxUSE_SOCKETS" = "yes"; then
46020         if test "$TOOLKIT" != "MSW"; then
46021                 { echo "$as_me:$LINENO: checking for socket" >&5
46022 echo $ECHO_N "checking for socket... $ECHO_C" >&6; }
46023 if test "${ac_cv_func_socket+set}" = set; then
46024   echo $ECHO_N "(cached) $ECHO_C" >&6
46025 else
46026   cat >conftest.$ac_ext <<_ACEOF
46027 /* confdefs.h.  */
46028 _ACEOF
46029 cat confdefs.h >>conftest.$ac_ext
46030 cat >>conftest.$ac_ext <<_ACEOF
46031 /* end confdefs.h.  */
46032 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
46033    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
46034 #define socket innocuous_socket
46035
46036 /* System header to define __stub macros and hopefully few prototypes,
46037     which can conflict with char socket (); below.
46038     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
46039     <limits.h> exists even on freestanding compilers.  */
46040
46041 #ifdef __STDC__
46042 # include <limits.h>
46043 #else
46044 # include <assert.h>
46045 #endif
46046
46047 #undef socket
46048
46049 /* Override any GCC internal prototype to avoid an error.
46050    Use char because int might match the return type of a GCC
46051    builtin and then its argument prototype would still apply.  */
46052 #ifdef __cplusplus
46053 extern "C"
46054 #endif
46055 char socket ();
46056 /* The GNU C library defines this for functions which it implements
46057     to always fail with ENOSYS.  Some functions are actually named
46058     something starting with __ and the normal name is an alias.  */
46059 #if defined __stub_socket || defined __stub___socket
46060 choke me
46061 #endif
46062
46063 int
46064 main ()
46065 {
46066 return socket ();
46067   ;
46068   return 0;
46069 }
46070 _ACEOF
46071 rm -f conftest.$ac_objext conftest$ac_exeext
46072 if { (ac_try="$ac_link"
46073 case "(($ac_try" in
46074   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46075   *) ac_try_echo=$ac_try;;
46076 esac
46077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46078   (eval "$ac_link") 2>conftest.er1
46079   ac_status=$?
46080   grep -v '^ *+' conftest.er1 >conftest.err
46081   rm -f conftest.er1
46082   cat conftest.err >&5
46083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46084   (exit $ac_status); } && {
46085          test -z "$ac_c_werror_flag" ||
46086          test ! -s conftest.err
46087        } && test -s conftest$ac_exeext &&
46088        $as_test_x conftest$ac_exeext; then
46089   ac_cv_func_socket=yes
46090 else
46091   echo "$as_me: failed program was:" >&5
46092 sed 's/^/| /' conftest.$ac_ext >&5
46093
46094         ac_cv_func_socket=no
46095 fi
46096
46097 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
46098       conftest$ac_exeext conftest.$ac_ext
46099 fi
46100 { echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
46101 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
46102 if test $ac_cv_func_socket = yes; then
46103   :
46104 else
46105
46106                 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
46107 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
46108 if test "${ac_cv_lib_socket_socket+set}" = set; then
46109   echo $ECHO_N "(cached) $ECHO_C" >&6
46110 else
46111   ac_check_lib_save_LIBS=$LIBS
46112 LIBS="-lsocket  $LIBS"
46113 cat >conftest.$ac_ext <<_ACEOF
46114 /* confdefs.h.  */
46115 _ACEOF
46116 cat confdefs.h >>conftest.$ac_ext
46117 cat >>conftest.$ac_ext <<_ACEOF
46118 /* end confdefs.h.  */
46119
46120 /* Override any GCC internal prototype to avoid an error.
46121    Use char because int might match the return type of a GCC
46122    builtin and then its argument prototype would still apply.  */
46123 #ifdef __cplusplus
46124 extern "C"
46125 #endif
46126 char socket ();
46127 int
46128 main ()
46129 {
46130 return socket ();
46131   ;
46132   return 0;
46133 }
46134 _ACEOF
46135 rm -f conftest.$ac_objext conftest$ac_exeext
46136 if { (ac_try="$ac_link"
46137 case "(($ac_try" in
46138   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46139   *) ac_try_echo=$ac_try;;
46140 esac
46141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46142   (eval "$ac_link") 2>conftest.er1
46143   ac_status=$?
46144   grep -v '^ *+' conftest.er1 >conftest.err
46145   rm -f conftest.er1
46146   cat conftest.err >&5
46147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46148   (exit $ac_status); } && {
46149          test -z "$ac_c_werror_flag" ||
46150          test ! -s conftest.err
46151        } && test -s conftest$ac_exeext &&
46152        $as_test_x conftest$ac_exeext; then
46153   ac_cv_lib_socket_socket=yes
46154 else
46155   echo "$as_me: failed program was:" >&5
46156 sed 's/^/| /' conftest.$ac_ext >&5
46157
46158         ac_cv_lib_socket_socket=no
46159 fi
46160
46161 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
46162       conftest$ac_exeext conftest.$ac_ext
46163 LIBS=$ac_check_lib_save_LIBS
46164 fi
46165 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
46166 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
46167 if test $ac_cv_lib_socket_socket = yes; then
46168   if test "$INET_LINK" != " -lsocket"; then
46169                         INET_LINK="$INET_LINK -lsocket"
46170                     fi
46171 else
46172
46173                         { echo "$as_me:$LINENO: WARNING: socket library not found - sockets will be disabled" >&5
46174 echo "$as_me: WARNING: socket library not found - sockets will be disabled" >&2;}
46175                         wxUSE_SOCKETS=no
46176
46177
46178 fi
46179
46180
46181
46182 fi
46183
46184     fi
46185 fi
46186
46187 if test "$wxUSE_SOCKETS" = "yes" ; then
46188                 if test "$TOOLKIT" != "MSW"; then
46189                                         { echo "$as_me:$LINENO: checking what is the type of the third argument of getsockname" >&5
46190 echo $ECHO_N "checking what is the type of the third argument of getsockname... $ECHO_C" >&6; }
46191 if test "${wx_cv_type_getsockname3+set}" = set; then
46192   echo $ECHO_N "(cached) $ECHO_C" >&6
46193 else
46194
46195                 ac_ext=cpp
46196 ac_cpp='$CXXCPP $CPPFLAGS'
46197 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
46198 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46199 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
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                         socklen_t 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=socklen_t
46240 else
46241   echo "$as_me: failed program was:" >&5
46242 sed 's/^/| /' conftest.$ac_ext >&5
46243
46244
46245                                                                                                                                                                         CFLAGS_OLD="$CFLAGS"
46246                         if test "$GCC" = yes ; then
46247                             CFLAGS="-Werror $CFLAGS"
46248                         fi
46249
46250                         cat >conftest.$ac_ext <<_ACEOF
46251 /* confdefs.h.  */
46252 _ACEOF
46253 cat confdefs.h >>conftest.$ac_ext
46254 cat >>conftest.$ac_ext <<_ACEOF
46255 /* end confdefs.h.  */
46256
46257                                 #include <sys/types.h>
46258                                 #include <sys/socket.h>
46259
46260 int
46261 main ()
46262 {
46263
46264                                 size_t len;
46265                                 getsockname(0, 0, &len);
46266
46267   ;
46268   return 0;
46269 }
46270 _ACEOF
46271 rm -f conftest.$ac_objext
46272 if { (ac_try="$ac_compile"
46273 case "(($ac_try" in
46274   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46275   *) ac_try_echo=$ac_try;;
46276 esac
46277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46278   (eval "$ac_compile") 2>conftest.er1
46279   ac_status=$?
46280   grep -v '^ *+' conftest.er1 >conftest.err
46281   rm -f conftest.er1
46282   cat conftest.err >&5
46283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46284   (exit $ac_status); } && {
46285          test -z "$ac_cxx_werror_flag" ||
46286          test ! -s conftest.err
46287        } && test -s conftest.$ac_objext; then
46288   wx_cv_type_getsockname3=size_t
46289 else
46290   echo "$as_me: failed program was:" >&5
46291 sed 's/^/| /' conftest.$ac_ext >&5
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                                     int len;
46308                                     getsockname(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_getsockname3=int
46332 else
46333   echo "$as_me: failed program was:" >&5
46334 sed 's/^/| /' conftest.$ac_ext >&5
46335
46336         wx_cv_type_getsockname3=unknown
46337
46338 fi
46339
46340 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46341
46342 fi
46343
46344 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46345
46346                         CFLAGS="$CFLAGS_OLD"
46347
46348
46349 fi
46350
46351 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46352                 ac_ext=c
46353 ac_cpp='$CPP $CPPFLAGS'
46354 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
46355 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46356 ac_compiler_gnu=$ac_cv_c_compiler_gnu
46357
46358
46359 fi
46360 { echo "$as_me:$LINENO: result: $wx_cv_type_getsockname3" >&5
46361 echo "${ECHO_T}$wx_cv_type_getsockname3" >&6; }
46362
46363         if test "$wx_cv_type_getsockname3" = "unknown"; then
46364             wxUSE_SOCKETS=no
46365             { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
46366 echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
46367         else
46368             cat >>confdefs.h <<_ACEOF
46369 #define WX_SOCKLEN_T $wx_cv_type_getsockname3
46370 _ACEOF
46371
46372         fi
46373                 { echo "$as_me:$LINENO: checking what is the type of the fifth argument of getsockopt" >&5
46374 echo $ECHO_N "checking what is the type of the fifth argument of getsockopt... $ECHO_C" >&6; }
46375 if test "${wx_cv_type_getsockopt5+set}" = set; then
46376   echo $ECHO_N "(cached) $ECHO_C" >&6
46377 else
46378
46379                                                                                                 ac_ext=cpp
46380 ac_cpp='$CXXCPP $CPPFLAGS'
46381 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
46382 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46383 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
46384
46385                 cat >conftest.$ac_ext <<_ACEOF
46386 /* confdefs.h.  */
46387 _ACEOF
46388 cat confdefs.h >>conftest.$ac_ext
46389 cat >>conftest.$ac_ext <<_ACEOF
46390 /* end confdefs.h.  */
46391
46392                         #include <sys/types.h>
46393                         #include <sys/socket.h>
46394
46395 int
46396 main ()
46397 {
46398
46399                         socklen_t len;
46400                         getsockopt(0, 0, 0, 0, &len);
46401
46402   ;
46403   return 0;
46404 }
46405 _ACEOF
46406 rm -f conftest.$ac_objext
46407 if { (ac_try="$ac_compile"
46408 case "(($ac_try" in
46409   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46410   *) ac_try_echo=$ac_try;;
46411 esac
46412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46413   (eval "$ac_compile") 2>conftest.er1
46414   ac_status=$?
46415   grep -v '^ *+' conftest.er1 >conftest.err
46416   rm -f conftest.er1
46417   cat conftest.err >&5
46418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46419   (exit $ac_status); } && {
46420          test -z "$ac_cxx_werror_flag" ||
46421          test ! -s conftest.err
46422        } && test -s conftest.$ac_objext; then
46423   wx_cv_type_getsockopt5=socklen_t
46424 else
46425   echo "$as_me: failed program was:" >&5
46426 sed 's/^/| /' conftest.$ac_ext >&5
46427
46428
46429                         cat >conftest.$ac_ext <<_ACEOF
46430 /* confdefs.h.  */
46431 _ACEOF
46432 cat confdefs.h >>conftest.$ac_ext
46433 cat >>conftest.$ac_ext <<_ACEOF
46434 /* end confdefs.h.  */
46435
46436                                 #include <sys/types.h>
46437                                 #include <sys/socket.h>
46438
46439 int
46440 main ()
46441 {
46442
46443                                 size_t len;
46444                                 getsockopt(0, 0, 0, 0, &len);
46445
46446   ;
46447   return 0;
46448 }
46449 _ACEOF
46450 rm -f conftest.$ac_objext
46451 if { (ac_try="$ac_compile"
46452 case "(($ac_try" in
46453   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46454   *) ac_try_echo=$ac_try;;
46455 esac
46456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46457   (eval "$ac_compile") 2>conftest.er1
46458   ac_status=$?
46459   grep -v '^ *+' conftest.er1 >conftest.err
46460   rm -f conftest.er1
46461   cat conftest.err >&5
46462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46463   (exit $ac_status); } && {
46464          test -z "$ac_cxx_werror_flag" ||
46465          test ! -s conftest.err
46466        } && test -s conftest.$ac_objext; then
46467   wx_cv_type_getsockopt5=size_t
46468 else
46469   echo "$as_me: failed program was:" >&5
46470 sed 's/^/| /' conftest.$ac_ext >&5
46471
46472         cat >conftest.$ac_ext <<_ACEOF
46473 /* confdefs.h.  */
46474 _ACEOF
46475 cat confdefs.h >>conftest.$ac_ext
46476 cat >>conftest.$ac_ext <<_ACEOF
46477 /* end confdefs.h.  */
46478
46479                                     #include <sys/types.h>
46480                                     #include <sys/socket.h>
46481
46482 int
46483 main ()
46484 {
46485
46486                                     int len;
46487                                     getsockopt(0, 0, 0, 0, &len);
46488
46489   ;
46490   return 0;
46491 }
46492 _ACEOF
46493 rm -f conftest.$ac_objext
46494 if { (ac_try="$ac_compile"
46495 case "(($ac_try" in
46496   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46497   *) ac_try_echo=$ac_try;;
46498 esac
46499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46500   (eval "$ac_compile") 2>conftest.er1
46501   ac_status=$?
46502   grep -v '^ *+' conftest.er1 >conftest.err
46503   rm -f conftest.er1
46504   cat conftest.err >&5
46505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46506   (exit $ac_status); } && {
46507          test -z "$ac_cxx_werror_flag" ||
46508          test ! -s conftest.err
46509        } && test -s conftest.$ac_objext; then
46510   wx_cv_type_getsockopt5=int
46511 else
46512   echo "$as_me: failed program was:" >&5
46513 sed 's/^/| /' conftest.$ac_ext >&5
46514
46515         wx_cv_type_getsockopt5=unknown
46516
46517 fi
46518
46519 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46520
46521 fi
46522
46523 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46524
46525
46526 fi
46527
46528 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46529                 ac_ext=c
46530 ac_cpp='$CPP $CPPFLAGS'
46531 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
46532 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46533 ac_compiler_gnu=$ac_cv_c_compiler_gnu
46534
46535
46536 fi
46537 { echo "$as_me:$LINENO: result: $wx_cv_type_getsockopt5" >&5
46538 echo "${ECHO_T}$wx_cv_type_getsockopt5" >&6; }
46539
46540         if test "$wx_cv_type_getsockopt5" = "unknown"; then
46541             wxUSE_SOCKETS=no
46542             { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
46543 echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
46544         else
46545             cat >>confdefs.h <<_ACEOF
46546 #define SOCKOPTLEN_T $wx_cv_type_getsockopt5
46547 _ACEOF
46548
46549         fi
46550     fi
46551 fi
46552
46553 if test "$wxUSE_SOCKETS" = "yes" ; then
46554     if test "$wxUSE_IPV6" = "yes"; then
46555         { echo "$as_me:$LINENO: checking whether we have sockaddr_in6" >&5
46556 echo $ECHO_N "checking whether we have sockaddr_in6... $ECHO_C" >&6; }
46557 if test "${wx_cv_type_sockaddr_in6+set}" = set; then
46558   echo $ECHO_N "(cached) $ECHO_C" >&6
46559 else
46560
46561                 cat >conftest.$ac_ext <<_ACEOF
46562 /* confdefs.h.  */
46563 _ACEOF
46564 cat confdefs.h >>conftest.$ac_ext
46565 cat >>conftest.$ac_ext <<_ACEOF
46566 /* end confdefs.h.  */
46567
46568                         #include <sys/types.h>
46569                         #include <sys/socket.h>
46570                         #include <netinet/in.h>
46571
46572 int
46573 main ()
46574 {
46575
46576                         struct sockaddr_in6 sa6;
46577
46578   ;
46579   return 0;
46580 }
46581 _ACEOF
46582 rm -f conftest.$ac_objext
46583 if { (ac_try="$ac_compile"
46584 case "(($ac_try" in
46585   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46586   *) ac_try_echo=$ac_try;;
46587 esac
46588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46589   (eval "$ac_compile") 2>conftest.er1
46590   ac_status=$?
46591   grep -v '^ *+' conftest.er1 >conftest.err
46592   rm -f conftest.er1
46593   cat conftest.err >&5
46594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46595   (exit $ac_status); } && {
46596          test -z "$ac_c_werror_flag" ||
46597          test ! -s conftest.err
46598        } && test -s conftest.$ac_objext; then
46599   wx_cv_type_sockaddr_in6=yes
46600 else
46601   echo "$as_me: failed program was:" >&5
46602 sed 's/^/| /' conftest.$ac_ext >&5
46603
46604         wx_cv_type_sockaddr_in6=no
46605
46606 fi
46607
46608 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46609
46610
46611 fi
46612 { echo "$as_me:$LINENO: result: $wx_cv_type_sockaddr_in6" >&5
46613 echo "${ECHO_T}$wx_cv_type_sockaddr_in6" >&6; }
46614
46615         if test "$wx_cv_type_sockaddr_in6"="yes"; then
46616             cat >>confdefs.h <<\_ACEOF
46617 #define wxUSE_IPV6 1
46618 _ACEOF
46619
46620         else
46621             { echo "$as_me:$LINENO: WARNING: IPv6 support not available... disabled" >&5
46622 echo "$as_me: WARNING: IPv6 support not available... disabled" >&2;}
46623         fi
46624     fi
46625
46626     cat >>confdefs.h <<\_ACEOF
46627 #define wxUSE_SOCKETS 1
46628 _ACEOF
46629
46630     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
46631 fi
46632
46633 if test "$wxUSE_PROTOCOL" = "yes"; then
46634     if test "$wxUSE_SOCKETS" != "yes"; then
46635         { echo "$as_me:$LINENO: WARNING: Protocol classes require sockets... disabled" >&5
46636 echo "$as_me: WARNING: Protocol classes require sockets... disabled" >&2;}
46637         wxUSE_PROTOCOL=no
46638     fi
46639 fi
46640
46641 if test "$wxUSE_PROTOCOL" = "yes"; then
46642     cat >>confdefs.h <<\_ACEOF
46643 #define wxUSE_PROTOCOL 1
46644 _ACEOF
46645
46646
46647     if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then
46648         cat >>confdefs.h <<\_ACEOF
46649 #define wxUSE_PROTOCOL_HTTP 1
46650 _ACEOF
46651
46652     fi
46653     if test "$wxUSE_PROTOCOL_FTP" = "yes"; then
46654         cat >>confdefs.h <<\_ACEOF
46655 #define wxUSE_PROTOCOL_FTP 1
46656 _ACEOF
46657
46658     fi
46659     if test "$wxUSE_PROTOCOL_FILE" = "yes"; then
46660         cat >>confdefs.h <<\_ACEOF
46661 #define wxUSE_PROTOCOL_FILE 1
46662 _ACEOF
46663
46664     fi
46665 else
46666     if test "$wxUSE_FS_INET" = "yes"; then
46667         { echo "$as_me:$LINENO: WARNING: HTTP filesystem require protocol classes... disabled" >&5
46668 echo "$as_me: WARNING: HTTP filesystem require protocol classes... disabled" >&2;}
46669         wxUSE_FS_INET="no"
46670     fi
46671 fi
46672
46673 if test "$wxUSE_URL" = "yes"; then
46674     if test "$wxUSE_PROTOCOL" != "yes"; then
46675         { echo "$as_me:$LINENO: WARNING: wxURL class requires wxProtocol... disabled" >&5
46676 echo "$as_me: WARNING: wxURL class requires wxProtocol... disabled" >&2;}
46677         wxUSE_URL=no
46678     fi
46679     if test "$wxUSE_URL" = "yes"; then
46680         cat >>confdefs.h <<\_ACEOF
46681 #define wxUSE_URL 1
46682 _ACEOF
46683
46684     fi
46685 fi
46686
46687 if test "$wxUSE_VARIANT" = "yes"; then
46688     cat >>confdefs.h <<\_ACEOF
46689 #define wxUSE_VARIANT 1
46690 _ACEOF
46691
46692 fi
46693
46694 if test "$wxUSE_FS_INET" = "yes"; then
46695   cat >>confdefs.h <<\_ACEOF
46696 #define wxUSE_FS_INET 1
46697 _ACEOF
46698
46699 fi
46700
46701
46702 if test "$wxUSE_GUI" = "yes" -a "$wxUSE_JOYSTICK" = "yes"; then
46703     wxUSE_JOYSTICK=no
46704
46705         if test "$TOOLKIT" = "MSW"; then
46706         wxUSE_JOYSTICK=yes
46707
46708         elif test "$TOOLKIT" = "OSX" -o "$TOOLKIT" = "COCOA"; then
46709         if test "$USE_DARWIN" = 1; then
46710                         { echo "$as_me:$LINENO: checking headers have declarations needed for joystick support" >&5
46711 echo $ECHO_N "checking headers have declarations needed for joystick support... $ECHO_C" >&6; }
46712             ac_ext=cpp
46713 ac_cpp='$CXXCPP $CPPFLAGS'
46714 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
46715 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46716 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
46717
46718             cat >conftest.$ac_ext <<_ACEOF
46719 /* confdefs.h.  */
46720 _ACEOF
46721 cat confdefs.h >>conftest.$ac_ext
46722 cat >>conftest.$ac_ext <<_ACEOF
46723 /* end confdefs.h.  */
46724  #include <IOKit/hid/IOHIDLib.h>
46725 int
46726 main ()
46727 {
46728  IOHIDQueueInterface *qi = NULL;
46729                               IOHIDCallbackFunction cb = NULL;
46730                               qi->setEventCallout(NULL, cb, NULL, NULL);
46731   ;
46732   return 0;
46733 }
46734 _ACEOF
46735 rm -f conftest.$ac_objext
46736 if { (ac_try="$ac_compile"
46737 case "(($ac_try" in
46738   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46739   *) ac_try_echo=$ac_try;;
46740 esac
46741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46742   (eval "$ac_compile") 2>conftest.er1
46743   ac_status=$?
46744   grep -v '^ *+' conftest.er1 >conftest.err
46745   rm -f conftest.er1
46746   cat conftest.err >&5
46747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46748   (exit $ac_status); } && {
46749          test -z "$ac_cxx_werror_flag" ||
46750          test ! -s conftest.err
46751        } && test -s conftest.$ac_objext; then
46752    wxUSE_JOYSTICK=yes
46753
46754 else
46755   echo "$as_me: failed program was:" >&5
46756 sed 's/^/| /' conftest.$ac_ext >&5
46757
46758
46759 fi
46760
46761 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46762             ac_ext=c
46763 ac_cpp='$CPP $CPPFLAGS'
46764 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
46765 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46766 ac_compiler_gnu=$ac_cv_c_compiler_gnu
46767
46768             { echo "$as_me:$LINENO: result: $wxUSE_JOYSTICK" >&5
46769 echo "${ECHO_T}$wxUSE_JOYSTICK" >&6; }
46770         fi
46771
46772         else
46773                 if test "$wxUSE_MGL" != 1; then
46774
46775 for ac_header in linux/joystick.h
46776 do
46777 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
46778 { echo "$as_me:$LINENO: checking for $ac_header" >&5
46779 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
46780 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
46781   echo $ECHO_N "(cached) $ECHO_C" >&6
46782 else
46783   cat >conftest.$ac_ext <<_ACEOF
46784 /* confdefs.h.  */
46785 _ACEOF
46786 cat confdefs.h >>conftest.$ac_ext
46787 cat >>conftest.$ac_ext <<_ACEOF
46788 /* end confdefs.h.  */
46789 $ac_includes_default
46790
46791 #include <$ac_header>
46792 _ACEOF
46793 rm -f conftest.$ac_objext
46794 if { (ac_try="$ac_compile"
46795 case "(($ac_try" in
46796   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46797   *) ac_try_echo=$ac_try;;
46798 esac
46799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46800   (eval "$ac_compile") 2>conftest.er1
46801   ac_status=$?
46802   grep -v '^ *+' conftest.er1 >conftest.err
46803   rm -f conftest.er1
46804   cat conftest.err >&5
46805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46806   (exit $ac_status); } && {
46807          test -z "$ac_c_werror_flag" ||
46808          test ! -s conftest.err
46809        } && test -s conftest.$ac_objext; then
46810   eval "$as_ac_Header=yes"
46811 else
46812   echo "$as_me: failed program was:" >&5
46813 sed 's/^/| /' conftest.$ac_ext >&5
46814
46815         eval "$as_ac_Header=no"
46816 fi
46817
46818 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46819 fi
46820 ac_res=`eval echo '${'$as_ac_Header'}'`
46821                { echo "$as_me:$LINENO: result: $ac_res" >&5
46822 echo "${ECHO_T}$ac_res" >&6; }
46823 if test `eval echo '${'$as_ac_Header'}'` = yes; then
46824   cat >>confdefs.h <<_ACEOF
46825 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
46826 _ACEOF
46827  wxUSE_JOYSTICK=yes
46828 fi
46829
46830 done
46831
46832         fi
46833     fi
46834
46835     if test "$wxUSE_JOYSTICK" = "yes"; then
46836         cat >>confdefs.h <<\_ACEOF
46837 #define wxUSE_JOYSTICK 1
46838 _ACEOF
46839
46840         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
46841     else
46842         { echo "$as_me:$LINENO: WARNING: Joystick not supported by this system... disabled" >&5
46843 echo "$as_me: WARNING: Joystick not supported by this system... disabled" >&2;}
46844     fi
46845 fi
46846
46847
46848
46849 if test "$wxUSE_FONTENUM" = "yes" ; then
46850   cat >>confdefs.h <<\_ACEOF
46851 #define wxUSE_FONTENUM 1
46852 _ACEOF
46853
46854 fi
46855
46856 if test "$wxUSE_FONTMAP" = "yes" ; then
46857   cat >>confdefs.h <<\_ACEOF
46858 #define wxUSE_FONTMAP 1
46859 _ACEOF
46860
46861 fi
46862
46863 if test "$wxUSE_UNICODE" = "yes" ; then
46864   cat >>confdefs.h <<\_ACEOF
46865 #define wxUSE_UNICODE 1
46866 _ACEOF
46867
46868
46869   if test "$USE_WIN32" != 1; then
46870       wxUSE_UNICODE_MSLU=no
46871   fi
46872
46873   if test "$USE_WIN32" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then
46874         { echo "$as_me:$LINENO: checking for main in -lunicows" >&5
46875 echo $ECHO_N "checking for main in -lunicows... $ECHO_C" >&6; }
46876 if test "${ac_cv_lib_unicows_main+set}" = set; then
46877   echo $ECHO_N "(cached) $ECHO_C" >&6
46878 else
46879   ac_check_lib_save_LIBS=$LIBS
46880 LIBS="-lunicows  $LIBS"
46881 cat >conftest.$ac_ext <<_ACEOF
46882 /* confdefs.h.  */
46883 _ACEOF
46884 cat confdefs.h >>conftest.$ac_ext
46885 cat >>conftest.$ac_ext <<_ACEOF
46886 /* end confdefs.h.  */
46887
46888
46889 int
46890 main ()
46891 {
46892 return main ();
46893   ;
46894   return 0;
46895 }
46896 _ACEOF
46897 rm -f conftest.$ac_objext conftest$ac_exeext
46898 if { (ac_try="$ac_link"
46899 case "(($ac_try" in
46900   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46901   *) ac_try_echo=$ac_try;;
46902 esac
46903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46904   (eval "$ac_link") 2>conftest.er1
46905   ac_status=$?
46906   grep -v '^ *+' conftest.er1 >conftest.err
46907   rm -f conftest.er1
46908   cat conftest.err >&5
46909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46910   (exit $ac_status); } && {
46911          test -z "$ac_c_werror_flag" ||
46912          test ! -s conftest.err
46913        } && test -s conftest$ac_exeext &&
46914        $as_test_x conftest$ac_exeext; then
46915   ac_cv_lib_unicows_main=yes
46916 else
46917   echo "$as_me: failed program was:" >&5
46918 sed 's/^/| /' conftest.$ac_ext >&5
46919
46920         ac_cv_lib_unicows_main=no
46921 fi
46922
46923 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
46924       conftest$ac_exeext conftest.$ac_ext
46925 LIBS=$ac_check_lib_save_LIBS
46926 fi
46927 { echo "$as_me:$LINENO: result: $ac_cv_lib_unicows_main" >&5
46928 echo "${ECHO_T}$ac_cv_lib_unicows_main" >&6; }
46929 if test $ac_cv_lib_unicows_main = yes; then
46930
46931                 cat >>confdefs.h <<\_ACEOF
46932 #define wxUSE_UNICODE_MSLU 1
46933 _ACEOF
46934
46935
46936 else
46937
46938                 { echo "$as_me:$LINENO: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
46939                              Applications will only run on Windows NT/2000/XP!" >&5
46940 echo "$as_me: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
46941                              Applications will only run on Windows NT/2000/XP!" >&2;}
46942                 wxUSE_UNICODE_MSLU=no
46943
46944 fi
46945
46946     fi
46947 fi
46948
46949 if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_UTF8" = "yes"; then
46950     cat >>confdefs.h <<\_ACEOF
46951 #define wxUSE_UNICODE_UTF8 1
46952 _ACEOF
46953
46954
46955     if test "$wxUSE_UNICODE_UTF8_LOCALE" = "yes"; then
46956         cat >>confdefs.h <<\_ACEOF
46957 #define wxUSE_UTF8_LOCALE_ONLY 1
46958 _ACEOF
46959
46960     fi
46961 fi
46962
46963
46964 if test "$wxUSE_CONSTRAINTS" = "yes"; then
46965     cat >>confdefs.h <<\_ACEOF
46966 #define wxUSE_CONSTRAINTS 1
46967 _ACEOF
46968
46969     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
46970 fi
46971
46972 if test "$wxUSE_MDI" = "yes"; then
46973     cat >>confdefs.h <<\_ACEOF
46974 #define wxUSE_MDI 1
46975 _ACEOF
46976
46977
46978     if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
46979         cat >>confdefs.h <<\_ACEOF
46980 #define wxUSE_MDI_ARCHITECTURE 1
46981 _ACEOF
46982
46983         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
46984     fi
46985 fi
46986
46987 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
46988     cat >>confdefs.h <<\_ACEOF
46989 #define wxUSE_DOC_VIEW_ARCHITECTURE 1
46990 _ACEOF
46991
46992     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
46993 fi
46994
46995 if test "$wxUSE_HELP" = "yes"; then
46996     cat >>confdefs.h <<\_ACEOF
46997 #define wxUSE_HELP 1
46998 _ACEOF
46999
47000     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
47001
47002     if test "$wxUSE_MSW" = 1; then
47003       if test "$wxUSE_MS_HTML_HELP" = "yes"; then
47004         cat >>confdefs.h <<\_ACEOF
47005 #define wxUSE_MS_HTML_HELP 1
47006 _ACEOF
47007
47008       fi
47009     fi
47010
47011     if test "$wxUSE_WXHTML_HELP" = "yes"; then
47012       if test "$wxUSE_HTML" = "yes"; then
47013         cat >>confdefs.h <<\_ACEOF
47014 #define wxUSE_WXHTML_HELP 1
47015 _ACEOF
47016
47017       else
47018         { echo "$as_me:$LINENO: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&5
47019 echo "$as_me: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&2;}
47020         wxUSE_WXHTML_HELP=no
47021       fi
47022     fi
47023 fi
47024
47025 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
47026     cat >>confdefs.h <<\_ACEOF
47027 #define wxUSE_PRINTING_ARCHITECTURE 1
47028 _ACEOF
47029
47030     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
47031 fi
47032
47033 if test "$wxUSE_POSTSCRIPT" = "yes" ; then
47034   cat >>confdefs.h <<\_ACEOF
47035 #define wxUSE_POSTSCRIPT 1
47036 _ACEOF
47037
47038 fi
47039
47040 cat >>confdefs.h <<\_ACEOF
47041 #define wxUSE_AFM_FOR_POSTSCRIPT 1
47042 _ACEOF
47043
47044
47045 if test "$wxUSE_SVG" = "yes"; then
47046     cat >>confdefs.h <<\_ACEOF
47047 #define wxUSE_SVG 1
47048 _ACEOF
47049
47050 fi
47051
47052
47053 if test "$wxUSE_METAFILE" = "yes"; then
47054     if test "$wxUSE_MSW" != 1 -a "$wxUSE_MAC" != 1 -a "$wxUSE_PM" != 1; then
47055         { echo "$as_me:$LINENO: WARNING: wxMetafile is not available on this system... disabled" >&5
47056 echo "$as_me: WARNING: wxMetafile is not available on this system... disabled" >&2;}
47057         wxUSE_METAFILE=no
47058     fi
47059 fi
47060
47061
47062 if test "$USE_WIN32" = 1 -a \( "$wxUSE_DATAOBJ"       = "yes" \
47063                           -o "$wxUSE_CLIPBOARD"     = "yes" \
47064                           -o "$wxUSE_OLE"     = "yes" \
47065                           -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then
47066     { echo "$as_me:$LINENO: checking for ole2.h" >&5
47067 echo $ECHO_N "checking for ole2.h... $ECHO_C" >&6; }
47068 if test "${ac_cv_header_ole2_h+set}" = set; then
47069   echo $ECHO_N "(cached) $ECHO_C" >&6
47070 else
47071   cat >conftest.$ac_ext <<_ACEOF
47072 /* confdefs.h.  */
47073 _ACEOF
47074 cat confdefs.h >>conftest.$ac_ext
47075 cat >>conftest.$ac_ext <<_ACEOF
47076 /* end confdefs.h.  */
47077
47078
47079 #include <ole2.h>
47080 _ACEOF
47081 rm -f conftest.$ac_objext
47082 if { (ac_try="$ac_compile"
47083 case "(($ac_try" in
47084   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47085   *) ac_try_echo=$ac_try;;
47086 esac
47087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47088   (eval "$ac_compile") 2>conftest.er1
47089   ac_status=$?
47090   grep -v '^ *+' conftest.er1 >conftest.err
47091   rm -f conftest.er1
47092   cat conftest.err >&5
47093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47094   (exit $ac_status); } && {
47095          test -z "$ac_c_werror_flag" ||
47096          test ! -s conftest.err
47097        } && test -s conftest.$ac_objext; then
47098   ac_cv_header_ole2_h=yes
47099 else
47100   echo "$as_me: failed program was:" >&5
47101 sed 's/^/| /' conftest.$ac_ext >&5
47102
47103         ac_cv_header_ole2_h=no
47104 fi
47105
47106 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47107 fi
47108 { echo "$as_me:$LINENO: result: $ac_cv_header_ole2_h" >&5
47109 echo "${ECHO_T}$ac_cv_header_ole2_h" >&6; }
47110
47111
47112
47113     if test "$ac_cv_header_ole2_h" = "yes" ; then
47114         if test "$GCC" = yes ; then
47115             { echo "$as_me:$LINENO: checking if g++ requires -fvtable-thunks" >&5
47116 echo $ECHO_N "checking if g++ requires -fvtable-thunks... $ECHO_C" >&6; }
47117             cat >conftest.$ac_ext <<_ACEOF
47118 /* confdefs.h.  */
47119 _ACEOF
47120 cat confdefs.h >>conftest.$ac_ext
47121 cat >>conftest.$ac_ext <<_ACEOF
47122 /* end confdefs.h.  */
47123 #include <windows.h>
47124                             #include <ole2.h>
47125 int
47126 main ()
47127 {
47128
47129   ;
47130   return 0;
47131 }
47132 _ACEOF
47133 rm -f conftest.$ac_objext
47134 if { (ac_try="$ac_compile"
47135 case "(($ac_try" in
47136   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47137   *) ac_try_echo=$ac_try;;
47138 esac
47139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47140   (eval "$ac_compile") 2>conftest.er1
47141   ac_status=$?
47142   grep -v '^ *+' conftest.er1 >conftest.err
47143   rm -f conftest.er1
47144   cat conftest.err >&5
47145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47146   (exit $ac_status); } && {
47147          test -z "$ac_c_werror_flag" ||
47148          test ! -s conftest.err
47149        } && test -s conftest.$ac_objext; then
47150   { echo "$as_me:$LINENO: result: no" >&5
47151 echo "${ECHO_T}no" >&6; }
47152 else
47153   echo "$as_me: failed program was:" >&5
47154 sed 's/^/| /' conftest.$ac_ext >&5
47155
47156         { echo "$as_me:$LINENO: result: yes" >&5
47157 echo "${ECHO_T}yes" >&6; }
47158                             WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -fvtable-thunks"
47159 fi
47160
47161 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47162             LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS"
47163             if test "$wxUSE_OLE" = "yes" ; then
47164                 cat >>confdefs.h <<\_ACEOF
47165 #define wxUSE_OLE 1
47166 _ACEOF
47167
47168                 cat >>confdefs.h <<\_ACEOF
47169 #define wxUSE_OLE_AUTOMATION 1
47170 _ACEOF
47171
47172                 cat >>confdefs.h <<\_ACEOF
47173 #define wxUSE_ACTIVEX 1
47174 _ACEOF
47175
47176                 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS oleauto"
47177             fi
47178         fi
47179
47180                 if test "$wxUSE_DATAOBJ" = "yes" ; then
47181             cat >>confdefs.h <<\_ACEOF
47182 #define wxUSE_DATAOBJ 1
47183 _ACEOF
47184
47185         fi
47186     else
47187         { echo "$as_me:$LINENO: WARNING: Some features disabled because OLE headers not found" >&5
47188 echo "$as_me: WARNING: Some features disabled because OLE headers not found" >&2;}
47189
47190         wxUSE_CLIPBOARD=no
47191         wxUSE_DRAG_AND_DROP=no
47192         wxUSE_DATAOBJ=no
47193         wxUSE_OLE=no
47194     fi
47195
47196     if test "$wxUSE_METAFILE" = "yes"; then
47197         cat >>confdefs.h <<\_ACEOF
47198 #define wxUSE_METAFILE 1
47199 _ACEOF
47200
47201
47202                 cat >>confdefs.h <<\_ACEOF
47203 #define wxUSE_ENH_METAFILE 1
47204 _ACEOF
47205
47206     fi
47207 fi
47208
47209 if test "$wxUSE_IPC" = "yes"; then
47210     if test "$wxUSE_SOCKETS" != "yes" -a "$USE_WIN32" != 1; then
47211         { echo "$as_me:$LINENO: WARNING: wxWidgets IPC classes require sockets... disabled" >&5
47212 echo "$as_me: WARNING: wxWidgets IPC classes require sockets... disabled" >&2;}
47213         wxUSE_IPC=no
47214     fi
47215
47216     if test "$wxUSE_IPC" = "yes"; then
47217         cat >>confdefs.h <<\_ACEOF
47218 #define wxUSE_IPC 1
47219 _ACEOF
47220
47221         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ipc"
47222     fi
47223 fi
47224
47225 if test "$wxUSE_DATAOBJ" = "yes"; then
47226     if test "$wxUSE_MGL" = 1 -o "$wxUSE_DFB" = 1; then
47227         { echo "$as_me:$LINENO: WARNING: wxDataObject not yet supported under $TOOLKIT... disabled" >&5
47228 echo "$as_me: WARNING: wxDataObject not yet supported under $TOOLKIT... disabled" >&2;}
47229         wxUSE_DATAOBJ=no
47230     else
47231         cat >>confdefs.h <<\_ACEOF
47232 #define wxUSE_DATAOBJ 1
47233 _ACEOF
47234
47235     fi
47236 else
47237     { echo "$as_me:$LINENO: WARNING: Clipboard and drag-and-drop require wxDataObject -- disabled" >&5
47238 echo "$as_me: WARNING: Clipboard and drag-and-drop require wxDataObject -- disabled" >&2;}
47239     wxUSE_CLIPBOARD=no
47240     wxUSE_DRAG_AND_DROP=no
47241 fi
47242
47243 if test "$wxUSE_CLIPBOARD" = "yes"; then
47244     if test "$wxUSE_MGL" = 1 -o "$wxUSE_DFB" = 1; then
47245         { echo "$as_me:$LINENO: WARNING: Clipboard not yet supported under $TOOLKIT... disabled" >&5
47246 echo "$as_me: WARNING: Clipboard not yet supported under $TOOLKIT... disabled" >&2;}
47247         wxUSE_CLIPBOARD=no
47248     fi
47249
47250     if test "$wxUSE_CLIPBOARD" = "yes"; then
47251         cat >>confdefs.h <<\_ACEOF
47252 #define wxUSE_CLIPBOARD 1
47253 _ACEOF
47254
47255     fi
47256 fi
47257
47258 if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
47259     if test "$wxUSE_GTK" = 1; then
47260         if test "$WXGTK12" != 1; then
47261             { echo "$as_me:$LINENO: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&5
47262 echo "$as_me: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&2;}
47263             wxUSE_DRAG_AND_DROP=no
47264         fi
47265     fi
47266
47267     if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_X11" = 1 -o "$wxUSE_MGL" = 1 -o \
47268             "$wxUSE_DFB" = 1; then
47269         { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under $TOOLKIT... disabled" >&5
47270 echo "$as_me: WARNING: Drag and drop not yet supported under $TOOLKIT... disabled" >&2;}
47271         wxUSE_DRAG_AND_DROP=no
47272     fi
47273
47274     if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
47275         cat >>confdefs.h <<\_ACEOF
47276 #define wxUSE_DRAG_AND_DROP 1
47277 _ACEOF
47278
47279     fi
47280
47281 fi
47282
47283 if test "$wxUSE_DRAG_AND_DROP" = "yes" -o "$wxUSE_CLIPBOARD" = "yes"; then
47284     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
47285 fi
47286
47287 if test "$wxUSE_CLIPBOARD" = "yes"; then
47288     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS clipboard"
47289 fi
47290
47291 if test "$wxUSE_SPLINES" = "yes" ; then
47292   cat >>confdefs.h <<\_ACEOF
47293 #define wxUSE_SPLINES 1
47294 _ACEOF
47295
47296 fi
47297
47298 if test "$wxUSE_MOUSEWHEEL" = "yes" ; then
47299   cat >>confdefs.h <<\_ACEOF
47300 #define wxUSE_MOUSEWHEEL 1
47301 _ACEOF
47302
47303 fi
47304
47305 if test "$wxUSE_UIACTIONSIMULATOR" = "yes" ; then
47306     cat >>confdefs.h <<\_ACEOF
47307 #define wxUSE_UIACTIONSIMULATOR 1
47308 _ACEOF
47309
47310     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS uiaction"
47311 fi
47312
47313 if test "$wxUSE_DC_TRANSFORM_MATRIX" = "yes" ; then
47314     cat >>confdefs.h <<\_ACEOF
47315 #define wxUSE_DC_TRANSFORM_MATRIX 1
47316 _ACEOF
47317
47318 fi
47319
47320
47321 USES_CONTROLS=0
47322 if test "$wxUSE_CONTROLS" = "yes"; then
47323   USES_CONTROLS=1
47324 fi
47325
47326 if test "$wxUSE_MARKUP" = "yes"; then
47327   cat >>confdefs.h <<\_ACEOF
47328 #define wxUSE_MARKUP 1
47329 _ACEOF
47330
47331 fi
47332
47333 if test "$wxUSE_ACCEL" = "yes"; then
47334   cat >>confdefs.h <<\_ACEOF
47335 #define wxUSE_ACCEL 1
47336 _ACEOF
47337
47338   USES_CONTROLS=1
47339 fi
47340
47341 if test "$wxUSE_ANIMATIONCTRL" = "yes"; then
47342   cat >>confdefs.h <<\_ACEOF
47343 #define wxUSE_ANIMATIONCTRL 1
47344 _ACEOF
47345
47346   USES_CONTROLS=1
47347   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS animate"
47348 fi
47349
47350 if test "$wxUSE_BANNERWINDOW" = "yes"; then
47351   cat >>confdefs.h <<\_ACEOF
47352 #define wxUSE_BANNERWINDOW 1
47353 _ACEOF
47354
47355 fi
47356
47357 if test "$wxUSE_BUTTON" = "yes"; then
47358   cat >>confdefs.h <<\_ACEOF
47359 #define wxUSE_BUTTON 1
47360 _ACEOF
47361
47362   USES_CONTROLS=1
47363 fi
47364
47365 if test "$wxUSE_BMPBUTTON" = "yes"; then
47366   cat >>confdefs.h <<\_ACEOF
47367 #define wxUSE_BMPBUTTON 1
47368 _ACEOF
47369
47370   USES_CONTROLS=1
47371 fi
47372
47373 if test "$wxUSE_CALCTRL" = "yes"; then
47374   cat >>confdefs.h <<\_ACEOF
47375 #define wxUSE_CALENDARCTRL 1
47376 _ACEOF
47377
47378   USES_CONTROLS=1
47379   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
47380 fi
47381
47382 if test "$wxUSE_CARET" = "yes"; then
47383   cat >>confdefs.h <<\_ACEOF
47384 #define wxUSE_CARET 1
47385 _ACEOF
47386
47387   USES_CONTROLS=1
47388   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
47389 fi
47390
47391 if test "$wxUSE_COLLPANE" = "yes"; then
47392     cat >>confdefs.h <<\_ACEOF
47393 #define wxUSE_COLLPANE 1
47394 _ACEOF
47395
47396     USES_CONTROLS=1
47397     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS collpane"
47398 fi
47399
47400 if test "$wxUSE_COMBOBOX" = "yes"; then
47401   cat >>confdefs.h <<\_ACEOF
47402 #define wxUSE_COMBOBOX 1
47403 _ACEOF
47404
47405   USES_CONTROLS=1
47406 fi
47407
47408 if test "$wxUSE_COMBOCTRL" = "yes"; then
47409   cat >>confdefs.h <<\_ACEOF
47410 #define wxUSE_COMBOCTRL 1
47411 _ACEOF
47412
47413   USES_CONTROLS=1
47414 fi
47415
47416 if test "$wxUSE_COMMANDLINKBUTTON" = "yes"; then
47417   cat >>confdefs.h <<\_ACEOF
47418 #define wxUSE_COMMANDLINKBUTTON 1
47419 _ACEOF
47420
47421   USES_CONTROLS=1
47422 fi
47423
47424 if test "$wxUSE_CHOICE" = "yes"; then
47425   cat >>confdefs.h <<\_ACEOF
47426 #define wxUSE_CHOICE 1
47427 _ACEOF
47428
47429   USES_CONTROLS=1
47430 fi
47431
47432 if test "$wxUSE_CHOICEBOOK" = "yes"; then
47433     cat >>confdefs.h <<\_ACEOF
47434 #define wxUSE_CHOICEBOOK 1
47435 _ACEOF
47436
47437     USES_CONTROLS=1
47438 fi
47439
47440 if test "$wxUSE_CHECKBOX" = "yes"; then
47441   cat >>confdefs.h <<\_ACEOF
47442 #define wxUSE_CHECKBOX 1
47443 _ACEOF
47444
47445   USES_CONTROLS=1
47446 fi
47447
47448 if test "$wxUSE_CHECKLST" = "yes"; then
47449   cat >>confdefs.h <<\_ACEOF
47450 #define wxUSE_CHECKLISTBOX 1
47451 _ACEOF
47452
47453   USES_CONTROLS=1
47454 fi
47455
47456 if test "$wxUSE_COLOURPICKERCTRL" = "yes"; then
47457   cat >>confdefs.h <<\_ACEOF
47458 #define wxUSE_COLOURPICKERCTRL 1
47459 _ACEOF
47460
47461   USES_CONTROLS=1
47462 fi
47463
47464 if test "$wxUSE_DATEPICKCTRL" = "yes"; then
47465   cat >>confdefs.h <<\_ACEOF
47466 #define wxUSE_DATEPICKCTRL 1
47467 _ACEOF
47468
47469   USES_CONTROLS=1
47470 fi
47471
47472 if test "$wxUSE_DIRPICKERCTRL" = "yes"; then
47473   cat >>confdefs.h <<\_ACEOF
47474 #define wxUSE_DIRPICKERCTRL 1
47475 _ACEOF
47476
47477   USES_CONTROLS=1
47478 fi
47479
47480 if test "$wxUSE_FILECTRL" = "yes"; then
47481   cat >>confdefs.h <<\_ACEOF
47482 #define wxUSE_FILECTRL 1
47483 _ACEOF
47484
47485   USES_CONTROLS=1
47486 fi
47487
47488 if test "$wxUSE_FILEPICKERCTRL" = "yes"; then
47489   cat >>confdefs.h <<\_ACEOF
47490 #define wxUSE_FILEPICKERCTRL 1
47491 _ACEOF
47492
47493   USES_CONTROLS=1
47494 fi
47495
47496 if test "$wxUSE_FONTPICKERCTRL" = "yes"; then
47497   cat >>confdefs.h <<\_ACEOF
47498 #define wxUSE_FONTPICKERCTRL 1
47499 _ACEOF
47500
47501   USES_CONTROLS=1
47502 fi
47503
47504 if test "$wxUSE_DISPLAY" = "yes"; then
47505     if test "$wxUSE_DFB" = 1 -o "$wxUSE_MGL" = 1; then
47506         { echo "$as_me:$LINENO: WARNING: wxDisplay not yet supported under $TOOLKIT... disabled" >&5
47507 echo "$as_me: WARNING: wxDisplay not yet supported under $TOOLKIT... disabled" >&2;}
47508         wxUSE_DISPLAY=no
47509     else
47510         cat >>confdefs.h <<\_ACEOF
47511 #define wxUSE_DISPLAY 1
47512 _ACEOF
47513
47514         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS display"
47515     fi
47516 fi
47517
47518 if test "$wxUSE_DETECT_SM" = "yes"; then
47519     cat >>confdefs.h <<\_ACEOF
47520 #define wxUSE_DETECT_SM 1
47521 _ACEOF
47522
47523 fi
47524
47525 if test "$wxUSE_GAUGE" = "yes"; then
47526   cat >>confdefs.h <<\_ACEOF
47527 #define wxUSE_GAUGE 1
47528 _ACEOF
47529
47530   USES_CONTROLS=1
47531 fi
47532
47533 if test "$wxUSE_GRID" = "yes"; then
47534   cat >>confdefs.h <<\_ACEOF
47535 #define wxUSE_GRID 1
47536 _ACEOF
47537
47538   USES_CONTROLS=1
47539   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
47540 fi
47541
47542 if test "$wxUSE_HEADERCTRL" = "yes"; then
47543   cat >>confdefs.h <<\_ACEOF
47544 #define wxUSE_HEADERCTRL 1
47545 _ACEOF
47546
47547   USES_CONTROLS=1
47548 fi
47549
47550 if test "$wxUSE_HYPERLINKCTRL" = "yes"; then
47551   cat >>confdefs.h <<\_ACEOF
47552 #define wxUSE_HYPERLINKCTRL 1
47553 _ACEOF
47554
47555   USES_CONTROLS=1
47556 fi
47557
47558 if test "$wxUSE_BITMAPCOMBOBOX" = "yes"; then
47559   cat >>confdefs.h <<\_ACEOF
47560 #define wxUSE_BITMAPCOMBOBOX 1
47561 _ACEOF
47562
47563   USES_CONTROLS=1
47564 fi
47565
47566 if test "$wxUSE_DATAVIEWCTRL" = "yes"; then
47567   cat >>confdefs.h <<\_ACEOF
47568 #define wxUSE_DATAVIEWCTRL 1
47569 _ACEOF
47570
47571   USES_CONTROLS=1
47572   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dataview"
47573 fi
47574
47575 if test "$wxUSE_IMAGLIST" = "yes"; then
47576     cat >>confdefs.h <<\_ACEOF
47577 #define wxUSE_IMAGLIST 1
47578 _ACEOF
47579
47580 fi
47581
47582 if test "$wxUSE_INFOBAR" = "yes"; then
47583     cat >>confdefs.h <<\_ACEOF
47584 #define wxUSE_INFOBAR 1
47585 _ACEOF
47586
47587 fi
47588
47589 if test "$wxUSE_LISTBOOK" = "yes"; then
47590     cat >>confdefs.h <<\_ACEOF
47591 #define wxUSE_LISTBOOK 1
47592 _ACEOF
47593
47594     USES_CONTROLS=1
47595 fi
47596
47597 if test "$wxUSE_LISTBOX" = "yes"; then
47598     cat >>confdefs.h <<\_ACEOF
47599 #define wxUSE_LISTBOX 1
47600 _ACEOF
47601
47602     USES_CONTROLS=1
47603 fi
47604
47605 if test "$wxUSE_LISTCTRL" = "yes"; then
47606     if test "$wxUSE_IMAGLIST" = "yes"; then
47607         cat >>confdefs.h <<\_ACEOF
47608 #define wxUSE_LISTCTRL 1
47609 _ACEOF
47610
47611         USES_CONTROLS=1
47612         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
47613     else
47614         { echo "$as_me:$LINENO: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&5
47615 echo "$as_me: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&2;}
47616     fi
47617 fi
47618
47619 if test "$wxUSE_EDITABLELISTBOX" = "yes"; then
47620     cat >>confdefs.h <<\_ACEOF
47621 #define wxUSE_EDITABLELISTBOX 1
47622 _ACEOF
47623
47624     USES_CONTROLS=1
47625 fi
47626
47627 if test "$wxUSE_NOTEBOOK" = "yes"; then
47628     cat >>confdefs.h <<\_ACEOF
47629 #define wxUSE_NOTEBOOK 1
47630 _ACEOF
47631
47632     USES_CONTROLS=1
47633     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
47634 fi
47635
47636 if test "$wxUSE_NOTIFICATION_MESSAGE" = "yes"; then
47637     cat >>confdefs.h <<\_ACEOF
47638 #define wxUSE_NOTIFICATION_MESSAGE 1
47639 _ACEOF
47640
47641 fi
47642
47643 if test "$wxUSE_ODCOMBOBOX" = "yes"; then
47644   cat >>confdefs.h <<\_ACEOF
47645 #define wxUSE_ODCOMBOBOX 1
47646 _ACEOF
47647
47648   USES_CONTROLS=1
47649   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS combo"
47650 fi
47651
47652 if test "$wxUSE_RADIOBOX" = "yes"; then
47653     cat >>confdefs.h <<\_ACEOF
47654 #define wxUSE_RADIOBOX 1
47655 _ACEOF
47656
47657     USES_CONTROLS=1
47658 fi
47659
47660 if test "$wxUSE_RADIOBTN" = "yes"; then
47661     cat >>confdefs.h <<\_ACEOF
47662 #define wxUSE_RADIOBTN 1
47663 _ACEOF
47664
47665     USES_CONTROLS=1
47666 fi
47667
47668 if test "$wxUSE_REARRANGECTRL" = "yes"; then
47669     cat >>confdefs.h <<\_ACEOF
47670 #define wxUSE_REARRANGECTRL 1
47671 _ACEOF
47672
47673 fi
47674
47675 if test "$wxUSE_RICHMSGDLG" = "yes"; then
47676     cat >>confdefs.h <<\_ACEOF
47677 #define wxUSE_RICHMSGDLG 1
47678 _ACEOF
47679
47680 fi
47681
47682 if test "$wxUSE_SASH" = "yes"; then
47683     cat >>confdefs.h <<\_ACEOF
47684 #define wxUSE_SASH 1
47685 _ACEOF
47686
47687     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
47688 fi
47689
47690 if test "$wxUSE_SCROLLBAR" = "yes"; then
47691     cat >>confdefs.h <<\_ACEOF
47692 #define wxUSE_SCROLLBAR 1
47693 _ACEOF
47694
47695     USES_CONTROLS=1
47696     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll"
47697 fi
47698
47699 if test "$wxUSE_SEARCHCTRL" = "yes"; then
47700     cat >>confdefs.h <<\_ACEOF
47701 #define wxUSE_SEARCHCTRL 1
47702 _ACEOF
47703
47704     USES_CONTROLS=1
47705 fi
47706
47707 if test "$wxUSE_SLIDER" = "yes"; then
47708     cat >>confdefs.h <<\_ACEOF
47709 #define wxUSE_SLIDER 1
47710 _ACEOF
47711
47712     USES_CONTROLS=1
47713 fi
47714
47715 if test "$wxUSE_SPINBTN" = "yes"; then
47716     cat >>confdefs.h <<\_ACEOF
47717 #define wxUSE_SPINBTN 1
47718 _ACEOF
47719
47720     USES_CONTROLS=1
47721 fi
47722
47723 if test "$wxUSE_SPINCTRL" = "yes"; then
47724     cat >>confdefs.h <<\_ACEOF
47725 #define wxUSE_SPINCTRL 1
47726 _ACEOF
47727
47728     USES_CONTROLS=1
47729 fi
47730
47731 if test "$wxUSE_SPLITTER" = "yes"; then
47732     cat >>confdefs.h <<\_ACEOF
47733 #define wxUSE_SPLITTER 1
47734 _ACEOF
47735
47736     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
47737 fi
47738
47739 if test "$wxUSE_STATBMP" = "yes"; then
47740     cat >>confdefs.h <<\_ACEOF
47741 #define wxUSE_STATBMP 1
47742 _ACEOF
47743
47744     USES_CONTROLS=1
47745 fi
47746
47747 if test "$wxUSE_STATBOX" = "yes"; then
47748     cat >>confdefs.h <<\_ACEOF
47749 #define wxUSE_STATBOX 1
47750 _ACEOF
47751
47752     USES_CONTROLS=1
47753 fi
47754
47755 if test "$wxUSE_STATTEXT" = "yes"; then
47756     cat >>confdefs.h <<\_ACEOF
47757 #define wxUSE_STATTEXT 1
47758 _ACEOF
47759
47760     USES_CONTROLS=1
47761 fi
47762
47763 if test "$wxUSE_STATLINE" = "yes"; then
47764     cat >>confdefs.h <<\_ACEOF
47765 #define wxUSE_STATLINE 1
47766 _ACEOF
47767
47768     USES_CONTROLS=1
47769 fi
47770
47771 if test "$wxUSE_STATUSBAR" = "yes"; then
47772         cat >>confdefs.h <<\_ACEOF
47773 #define wxUSE_NATIVE_STATUSBAR 1
47774 _ACEOF
47775
47776     cat >>confdefs.h <<\_ACEOF
47777 #define wxUSE_STATUSBAR 1
47778 _ACEOF
47779
47780     USES_CONTROLS=1
47781
47782     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
47783 fi
47784
47785 if test "$wxUSE_TEXTCTRL" = "yes"; then
47786     cat >>confdefs.h <<\_ACEOF
47787 #define wxUSE_TEXTCTRL 1
47788 _ACEOF
47789
47790     USES_CONTROLS=1
47791     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
47792
47793             cat >>confdefs.h <<\_ACEOF
47794 #define wxUSE_RICHEDIT 1
47795 _ACEOF
47796
47797     cat >>confdefs.h <<\_ACEOF
47798 #define wxUSE_RICHEDIT2 1
47799 _ACEOF
47800
47801 fi
47802
47803 if test "$wxUSE_TOGGLEBTN" = "yes"; then
47804     if test "$wxUSE_OLD_COCOA" = 1 ; then
47805         { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&5
47806 echo "$as_me: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&2;}
47807         wxUSE_TOGGLEBTN=no
47808     fi
47809
47810     if test "$wxUSE_TOGGLEBTN" = "yes"; then
47811         cat >>confdefs.h <<\_ACEOF
47812 #define wxUSE_TOGGLEBTN 1
47813 _ACEOF
47814
47815         USES_CONTROLS=1
47816     fi
47817 fi
47818
47819 if test "$wxUSE_TOOLBAR" = "yes"; then
47820     cat >>confdefs.h <<\_ACEOF
47821 #define wxUSE_TOOLBAR 1
47822 _ACEOF
47823
47824     USES_CONTROLS=1
47825
47826     if test "$wxUSE_UNIVERSAL" = "yes"; then
47827         wxUSE_TOOLBAR_NATIVE="no"
47828     else
47829         wxUSE_TOOLBAR_NATIVE="yes"
47830         cat >>confdefs.h <<\_ACEOF
47831 #define wxUSE_TOOLBAR_NATIVE 1
47832 _ACEOF
47833
47834     fi
47835
47836     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
47837 fi
47838
47839 if test "$wxUSE_TOOLTIPS" = "yes"; then
47840     if test "$wxUSE_MOTIF" = 1; then
47841         { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet under Motif... disabled" >&5
47842 echo "$as_me: WARNING: wxTooltip not supported yet under Motif... disabled" >&2;}
47843     else
47844         if test "$wxUSE_UNIVERSAL" = "yes"; then
47845             { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&5
47846 echo "$as_me: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&2;}
47847         else
47848             cat >>confdefs.h <<\_ACEOF
47849 #define wxUSE_TOOLTIPS 1
47850 _ACEOF
47851
47852         fi
47853     fi
47854 fi
47855
47856 if test "$wxUSE_TREEBOOK" = "yes"; then
47857     cat >>confdefs.h <<\_ACEOF
47858 #define wxUSE_TREEBOOK 1
47859 _ACEOF
47860
47861     USES_CONTROLS=1
47862 fi
47863
47864 if test "$wxUSE_TOOLBOOK" = "yes"; then
47865     cat >>confdefs.h <<\_ACEOF
47866 #define wxUSE_TOOLBOOK 1
47867 _ACEOF
47868
47869     USES_CONTROLS=1
47870 fi
47871
47872 if test "$wxUSE_TREECTRL" = "yes"; then
47873     if test "$wxUSE_IMAGLIST" = "yes"; then
47874         cat >>confdefs.h <<\_ACEOF
47875 #define wxUSE_TREECTRL 1
47876 _ACEOF
47877
47878         USES_CONTROLS=1
47879         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
47880     else
47881         { echo "$as_me:$LINENO: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&5
47882 echo "$as_me: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&2;}
47883     fi
47884 fi
47885
47886 if test "$wxUSE_TREECTRL" = "yes"; then
47887     cat >>confdefs.h <<\_ACEOF
47888 #define wxUSE_TREELISTCTRL 1
47889 _ACEOF
47890
47891     USES_CONTROLS=1
47892 fi
47893
47894 if test "$wxUSE_POPUPWIN" = "yes"; then
47895     if test "$wxUSE_OLD_COCOA" = 1 ; then
47896         { echo "$as_me:$LINENO: WARNING: Popup window not yet supported under Mac OS X... disabled" >&5
47897 echo "$as_me: WARNING: Popup window not yet supported under Mac OS X... disabled" >&2;}
47898     else
47899         if test "$wxUSE_PM" = 1; then
47900             { echo "$as_me:$LINENO: WARNING: wxPopupWindow not yet supported under PM... disabled" >&5
47901 echo "$as_me: WARNING: wxPopupWindow not yet supported under PM... disabled" >&2;}
47902         else
47903             cat >>confdefs.h <<\_ACEOF
47904 #define wxUSE_POPUPWIN 1
47905 _ACEOF
47906
47907             SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS popup"
47908
47909             USES_CONTROLS=1
47910         fi
47911     fi
47912 fi
47913
47914 if test "$wxUSE_DIALUP_MANAGER" = "yes"; then
47915     if test "$wxUSE_MAC" = 1 -o "$wxUSE_OLD_COCOA" = 1 -o "$wxUSE_MGL" = 1; then
47916         { echo "$as_me:$LINENO: WARNING: Dialup manager not supported on this platform... disabled" >&5
47917 echo "$as_me: WARNING: Dialup manager not supported on this platform... disabled" >&2;}
47918     else
47919         cat >>confdefs.h <<\_ACEOF
47920 #define wxUSE_DIALUP_MANAGER 1
47921 _ACEOF
47922
47923         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
47924     fi
47925 fi
47926
47927 if test "$wxUSE_TIPWINDOW" = "yes"; then
47928     if test "$wxUSE_PM" = 1; then
47929         { echo "$as_me:$LINENO: WARNING: wxTipWindow not yet supported under PM... disabled" >&5
47930 echo "$as_me: WARNING: wxTipWindow not yet supported under PM... disabled" >&2;}
47931     else
47932         cat >>confdefs.h <<\_ACEOF
47933 #define wxUSE_TIPWINDOW 1
47934 _ACEOF
47935
47936     fi
47937 fi
47938
47939 if test "$USES_CONTROLS" = 1; then
47940     cat >>confdefs.h <<\_ACEOF
47941 #define wxUSE_CONTROLS 1
47942 _ACEOF
47943
47944 fi
47945
47946
47947 if test "$wxUSE_ACCESSIBILITY" = "yes"; then
47948     cat >>confdefs.h <<\_ACEOF
47949 #define wxUSE_ACCESSIBILITY 1
47950 _ACEOF
47951
47952     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS access"
47953 fi
47954
47955 if test "$wxUSE_ARTPROVIDER_STD" = "yes"; then
47956     cat >>confdefs.h <<\_ACEOF
47957 #define wxUSE_ARTPROVIDER_STD 1
47958 _ACEOF
47959
47960 fi
47961
47962 if test "$wxUSE_ARTPROVIDER_TANGO" = "auto"; then
47963             if test "$wxUSE_GTK" != 1; then
47964                 if test "$wxUSE_LIBPNG" != no -a \
47965                 "$wxUSE_IMAGE" = yes -a \
47966                 "$wxUSE_STREAMS" = yes; then
47967             wxUSE_ARTPROVIDER_TANGO="yes"
47968         fi
47969     fi
47970 fi
47971
47972 if test "$wxUSE_ARTPROVIDER_TANGO" = "yes"; then
47973     cat >>confdefs.h <<\_ACEOF
47974 #define wxUSE_ARTPROVIDER_TANGO 1
47975 _ACEOF
47976
47977 fi
47978
47979 if test "$wxUSE_DRAGIMAGE" = "yes"; then
47980     cat >>confdefs.h <<\_ACEOF
47981 #define wxUSE_DRAGIMAGE 1
47982 _ACEOF
47983
47984     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
47985 fi
47986
47987 if test "$wxUSE_EXCEPTIONS" = "yes"; then
47988     if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
47989         { echo "$as_me:$LINENO: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&5
47990 echo "$as_me: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&2;}
47991     else
47992         cat >>confdefs.h <<\_ACEOF
47993 #define wxUSE_EXCEPTIONS 1
47994 _ACEOF
47995
47996         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS except"
47997     fi
47998 fi
47999
48000 USE_HTML=0
48001 if test "$wxUSE_HTML" = "yes"; then
48002     cat >>confdefs.h <<\_ACEOF
48003 #define wxUSE_HTML 1
48004 _ACEOF
48005
48006     USE_HTML=1
48007     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html html/about html/help html/helpview html/printing html/test html/virtual html/widget html/zip htlbox"
48008 fi
48009 if test "$wxUSE_WEBKIT" = "yes"; then
48010     if test "$wxUSE_MAC" = 1 -a "$USE_DARWIN" = 1; then
48011         old_CPPFLAGS="$CPPFLAGS"
48012         CPPFLAGS="-x objective-c++ $CPPFLAGS"
48013         { echo "$as_me:$LINENO: checking for WebKit/HIWebView.h" >&5
48014 echo $ECHO_N "checking for WebKit/HIWebView.h... $ECHO_C" >&6; }
48015 if test "${ac_cv_header_WebKit_HIWebView_h+set}" = set; then
48016   echo $ECHO_N "(cached) $ECHO_C" >&6
48017 else
48018   cat >conftest.$ac_ext <<_ACEOF
48019 /* confdefs.h.  */
48020 _ACEOF
48021 cat confdefs.h >>conftest.$ac_ext
48022 cat >>conftest.$ac_ext <<_ACEOF
48023 /* end confdefs.h.  */
48024
48025                            #include <Carbon/Carbon.h>
48026                            #include <WebKit/WebKit.h>
48027
48028
48029 #include <WebKit/HIWebView.h>
48030 _ACEOF
48031 rm -f conftest.$ac_objext
48032 if { (ac_try="$ac_compile"
48033 case "(($ac_try" in
48034   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48035   *) ac_try_echo=$ac_try;;
48036 esac
48037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48038   (eval "$ac_compile") 2>conftest.er1
48039   ac_status=$?
48040   grep -v '^ *+' conftest.er1 >conftest.err
48041   rm -f conftest.er1
48042   cat conftest.err >&5
48043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48044   (exit $ac_status); } && {
48045          test -z "$ac_c_werror_flag" ||
48046          test ! -s conftest.err
48047        } && test -s conftest.$ac_objext; then
48048   ac_cv_header_WebKit_HIWebView_h=yes
48049 else
48050   echo "$as_me: failed program was:" >&5
48051 sed 's/^/| /' conftest.$ac_ext >&5
48052
48053         ac_cv_header_WebKit_HIWebView_h=no
48054 fi
48055
48056 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
48057 fi
48058 { echo "$as_me:$LINENO: result: $ac_cv_header_WebKit_HIWebView_h" >&5
48059 echo "${ECHO_T}$ac_cv_header_WebKit_HIWebView_h" >&6; }
48060 if test $ac_cv_header_WebKit_HIWebView_h = yes; then
48061
48062                            cat >>confdefs.h <<\_ACEOF
48063 #define wxUSE_WEBKIT 1
48064 _ACEOF
48065
48066                            WEBKIT_LINK="-framework WebKit"
48067
48068 else
48069
48070                            { echo "$as_me:$LINENO: WARNING: WebKit headers not found; disabling wxWebKit" >&5
48071 echo "$as_me: WARNING: WebKit headers not found; disabling wxWebKit" >&2;}
48072                            wxUSE_WEBKIT=no
48073
48074 fi
48075
48076
48077         CPPFLAGS="$old_CPPFLAGS"
48078     elif test "$wxUSE_OLD_COCOA" = 1; then
48079         cat >>confdefs.h <<\_ACEOF
48080 #define wxUSE_WEBKIT 1
48081 _ACEOF
48082
48083     else
48084         wxUSE_WEBKIT=no
48085     fi
48086     if test "$wxUSE_WEBKIT" = "yes"; then
48087         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html/htmlctrl"
48088     fi
48089 fi
48090
48091 USE_XRC=0
48092 if test "$wxUSE_XRC" = "yes"; then
48093     if test "$wxUSE_XML" != "yes"; then
48094         { echo "$as_me:$LINENO: WARNING: XML library not built, XRC resources disabled" >&5
48095 echo "$as_me: WARNING: XML library not built, XRC resources disabled" >&2;}
48096         wxUSE_XRC=no
48097     else
48098         cat >>confdefs.h <<\_ACEOF
48099 #define wxUSE_XRC 1
48100 _ACEOF
48101
48102         USE_XRC=1
48103         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS xrc"
48104     fi
48105 fi
48106
48107 USE_AUI=0
48108 if test "$wxUSE_AUI" = "yes"; then
48109    cat >>confdefs.h <<\_ACEOF
48110 #define wxUSE_AUI 1
48111 _ACEOF
48112
48113    USE_AUI=1
48114    SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS aui"
48115 fi
48116
48117 USE_PROPGRID=0
48118 if test "$wxUSE_PROPGRID" = "yes"; then
48119    cat >>confdefs.h <<\_ACEOF
48120 #define wxUSE_PROPGRID 1
48121 _ACEOF
48122
48123    USE_PROPGRID=1
48124    SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS propgrid"
48125 fi
48126
48127 USE_RIBBON=0
48128 if test "$wxUSE_RIBBON" = "yes"; then
48129    cat >>confdefs.h <<\_ACEOF
48130 #define wxUSE_RIBBON 1
48131 _ACEOF
48132
48133    USE_RIBBON=1
48134    SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ribbon"
48135 fi
48136
48137 USE_STC=0
48138 if test "$wxUSE_STC" = "yes"; then
48139    cat >>confdefs.h <<\_ACEOF
48140 #define wxUSE_STC 1
48141 _ACEOF
48142
48143    USE_STC=1
48144    SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS stc"
48145
48146       # Extract the first word of "python", so it can be a program name with args.
48147 set dummy python; ac_word=$2
48148 { echo "$as_me:$LINENO: checking for $ac_word" >&5
48149 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
48150 if test "${ac_cv_path_PYTHON+set}" = set; then
48151   echo $ECHO_N "(cached) $ECHO_C" >&6
48152 else
48153   case $PYTHON in
48154   [\\/]* | ?:[\\/]*)
48155   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
48156   ;;
48157   *)
48158   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
48159 for as_dir in $PATH
48160 do
48161   IFS=$as_save_IFS
48162   test -z "$as_dir" && as_dir=.
48163   for ac_exec_ext in '' $ac_executable_extensions; do
48164   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
48165     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
48166     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
48167     break 2
48168   fi
48169 done
48170 done
48171 IFS=$as_save_IFS
48172
48173   ;;
48174 esac
48175 fi
48176 PYTHON=$ac_cv_path_PYTHON
48177 if test -n "$PYTHON"; then
48178   { echo "$as_me:$LINENO: result: $PYTHON" >&5
48179 echo "${ECHO_T}$PYTHON" >&6; }
48180 else
48181   { echo "$as_me:$LINENO: result: no" >&5
48182 echo "${ECHO_T}no" >&6; }
48183 fi
48184
48185
48186    if test "x$PYTHON" = "x"; then
48187      COND_PYTHON="#"
48188    fi
48189
48190 fi
48191
48192 if test "$wxUSE_MENUS" = "yes"; then
48193     cat >>confdefs.h <<\_ACEOF
48194 #define wxUSE_MENUS 1
48195 _ACEOF
48196
48197     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
48198 fi
48199
48200 if test "$wxUSE_METAFILE" = "yes"; then
48201     cat >>confdefs.h <<\_ACEOF
48202 #define wxUSE_METAFILE 1
48203 _ACEOF
48204
48205 fi
48206
48207 if test "$wxUSE_MIMETYPE" = "yes"; then
48208     cat >>confdefs.h <<\_ACEOF
48209 #define wxUSE_MIMETYPE 1
48210 _ACEOF
48211
48212 fi
48213
48214 if test "$wxUSE_MINIFRAME" = "yes"; then
48215     cat >>confdefs.h <<\_ACEOF
48216 #define wxUSE_MINIFRAME 1
48217 _ACEOF
48218
48219 fi
48220
48221 if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
48222     cat >>confdefs.h <<\_ACEOF
48223 #define wxUSE_SYSTEM_OPTIONS 1
48224 _ACEOF
48225
48226 fi
48227
48228 if test "$wxUSE_TASKBARICON" = "yes"; then
48229     cat >>confdefs.h <<\_ACEOF
48230 #define wxUSE_TASKBARICON 1
48231 _ACEOF
48232
48233     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar"
48234 fi
48235
48236
48237 if test "$wxUSE_VALIDATORS" = "yes"; then
48238     cat >>confdefs.h <<\_ACEOF
48239 #define wxUSE_VALIDATORS 1
48240 _ACEOF
48241
48242     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
48243 fi
48244
48245 if test "$wxUSE_PALETTE" = "yes" ; then
48246     if test "$wxUSE_DFB" = 1; then
48247         { echo "$as_me:$LINENO: WARNING: wxPalette not yet supported under DFB... disabled" >&5
48248 echo "$as_me: WARNING: wxPalette not yet supported under DFB... disabled" >&2;}
48249         wxUSE_PALETTE=no
48250     else
48251         cat >>confdefs.h <<\_ACEOF
48252 #define wxUSE_PALETTE 1
48253 _ACEOF
48254
48255     fi
48256 fi
48257
48258 if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then
48259     LIBS=" -lunicows $LIBS"
48260 fi
48261
48262 USE_RICHTEXT=0
48263 if test "$wxUSE_RICHTEXT" = "yes"; then
48264     cat >>confdefs.h <<\_ACEOF
48265 #define wxUSE_RICHTEXT 1
48266 _ACEOF
48267
48268     USE_RICHTEXT=1
48269     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS richtext"
48270 fi
48271
48272
48273 if test "$wxUSE_IMAGE" = "yes" ; then
48274     cat >>confdefs.h <<\_ACEOF
48275 #define wxUSE_IMAGE 1
48276 _ACEOF
48277
48278
48279     if test "$wxUSE_GIF" = "yes" ; then
48280       cat >>confdefs.h <<\_ACEOF
48281 #define wxUSE_GIF 1
48282 _ACEOF
48283
48284     fi
48285
48286     if test "$wxUSE_PCX" = "yes" ; then
48287       cat >>confdefs.h <<\_ACEOF
48288 #define wxUSE_PCX 1
48289 _ACEOF
48290
48291     fi
48292
48293     if test "$wxUSE_TGA" = "yes" ; then
48294       cat >>confdefs.h <<\_ACEOF
48295 #define wxUSE_TGA 1
48296 _ACEOF
48297
48298     fi
48299
48300     if test "$wxUSE_IFF" = "yes" ; then
48301       cat >>confdefs.h <<\_ACEOF
48302 #define wxUSE_IFF 1
48303 _ACEOF
48304
48305     fi
48306
48307     if test "$wxUSE_PNM" = "yes" ; then
48308       cat >>confdefs.h <<\_ACEOF
48309 #define wxUSE_PNM 1
48310 _ACEOF
48311
48312     fi
48313
48314     if test "$wxUSE_XPM" = "yes" ; then
48315       cat >>confdefs.h <<\_ACEOF
48316 #define wxUSE_XPM 1
48317 _ACEOF
48318
48319     fi
48320
48321     if test "$wxUSE_ICO_CUR" = "yes" ; then
48322       cat >>confdefs.h <<\_ACEOF
48323 #define wxUSE_ICO_CUR 1
48324 _ACEOF
48325
48326     fi
48327 fi
48328
48329
48330 if test "$wxUSE_ABOUTDLG" = "yes"; then
48331     cat >>confdefs.h <<\_ACEOF
48332 #define wxUSE_ABOUTDLG 1
48333 _ACEOF
48334
48335 fi
48336
48337 if test "$wxUSE_CHOICEDLG" = "yes"; then
48338     cat >>confdefs.h <<\_ACEOF
48339 #define wxUSE_CHOICEDLG 1
48340 _ACEOF
48341
48342 fi
48343
48344 if test "$wxUSE_COLOURDLG" = "yes"; then
48345     cat >>confdefs.h <<\_ACEOF
48346 #define wxUSE_COLOURDLG 1
48347 _ACEOF
48348
48349 fi
48350
48351 if test "$wxUSE_FILEDLG" = "yes"; then
48352     cat >>confdefs.h <<\_ACEOF
48353 #define wxUSE_FILEDLG 1
48354 _ACEOF
48355
48356 fi
48357
48358 if test "$wxUSE_FINDREPLDLG" = "yes"; then
48359     cat >>confdefs.h <<\_ACEOF
48360 #define wxUSE_FINDREPLDLG 1
48361 _ACEOF
48362
48363 fi
48364
48365 if test "$wxUSE_FONTDLG" = "yes"; then
48366     cat >>confdefs.h <<\_ACEOF
48367 #define wxUSE_FONTDLG 1
48368 _ACEOF
48369
48370 fi
48371
48372 if test "$wxUSE_DIRDLG" = "yes"; then
48373     if test "$wxUSE_TREECTRL" != "yes"; then
48374         { echo "$as_me:$LINENO: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&5
48375 echo "$as_me: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&2;}
48376     else
48377         cat >>confdefs.h <<\_ACEOF
48378 #define wxUSE_DIRDLG 1
48379 _ACEOF
48380
48381     fi
48382 fi
48383
48384 if test "$wxUSE_MSGDLG" = "yes"; then
48385     cat >>confdefs.h <<\_ACEOF
48386 #define wxUSE_MSGDLG 1
48387 _ACEOF
48388
48389 fi
48390
48391 if test "$wxUSE_NUMBERDLG" = "yes"; then
48392     cat >>confdefs.h <<\_ACEOF
48393 #define wxUSE_NUMBERDLG 1
48394 _ACEOF
48395
48396 fi
48397
48398 if test "$wxUSE_PROGRESSDLG" = "yes"; then
48399     cat >>confdefs.h <<\_ACEOF
48400 #define wxUSE_PROGRESSDLG 1
48401 _ACEOF
48402
48403 fi
48404
48405 if test "$wxUSE_SPLASH" = "yes"; then
48406     cat >>confdefs.h <<\_ACEOF
48407 #define wxUSE_SPLASH 1
48408 _ACEOF
48409
48410     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splash"
48411 fi
48412
48413 if test "$wxUSE_STARTUP_TIPS" = "yes"; then
48414     cat >>confdefs.h <<\_ACEOF
48415 #define wxUSE_STARTUP_TIPS 1
48416 _ACEOF
48417
48418 fi
48419
48420 if test "$wxUSE_TEXTDLG" = "yes"; then
48421     cat >>confdefs.h <<\_ACEOF
48422 #define wxUSE_TEXTDLG 1
48423 _ACEOF
48424
48425 fi
48426
48427 if test "$wxUSE_WIZARDDLG" = "yes"; then
48428     cat >>confdefs.h <<\_ACEOF
48429 #define wxUSE_WIZARDDLG 1
48430 _ACEOF
48431
48432     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
48433 fi
48434
48435
48436 if test "$wxUSE_MSW" = 1 -o "$wxUSE_PM" = 1; then
48437     if test "$wxUSE_OWNER_DRAWN" = "yes"; then
48438         cat >>confdefs.h <<\_ACEOF
48439 #define wxUSE_OWNER_DRAWN 1
48440 _ACEOF
48441
48442     fi
48443 fi
48444
48445
48446 if test "$wxUSE_MSW" = 1 ; then
48447
48448     if test "$wxUSE_DC_CACHEING" = "yes"; then
48449         cat >>confdefs.h <<\_ACEOF
48450 #define wxUSE_DC_CACHEING 1
48451 _ACEOF
48452
48453     fi
48454
48455     if test "$wxUSE_DIB" = "yes"; then
48456         cat >>confdefs.h <<\_ACEOF
48457 #define wxUSE_WXDIB 1
48458 _ACEOF
48459
48460     fi
48461
48462     if test "$wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW" = "yes"; then
48463         cat >>confdefs.h <<\_ACEOF
48464 #define wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW 1
48465 _ACEOF
48466
48467     fi
48468
48469     if test "$wxUSE_UXTHEME" = "yes"; then
48470         cat >>confdefs.h <<\_ACEOF
48471 #define wxUSE_UXTHEME 1
48472 _ACEOF
48473
48474     fi
48475
48476 fi
48477
48478 if test "$wxUSE_AUTOID_MANAGEMENT" = "yes"; then
48479     cat >>confdefs.h <<\_ACEOF
48480 #define wxUSE_AUTOID_MANAGEMENT 1
48481 _ACEOF
48482
48483 fi
48484
48485 if test "$USE_WIN32" = 1 ; then
48486     if test "$wxUSE_INICONF" = "yes"; then
48487         cat >>confdefs.h <<\_ACEOF
48488 #define wxUSE_INICONF 1
48489 _ACEOF
48490
48491     fi
48492
48493     if test "$wxUSE_REGKEY" = "yes"; then
48494         cat >>confdefs.h <<\_ACEOF
48495 #define wxUSE_REGKEY 1
48496 _ACEOF
48497
48498     fi
48499 fi
48500
48501
48502 if test "$wxUSE_MAC" = 1; then
48503     wxUSE_GRAPHICS_CONTEXT="yes"
48504 fi
48505
48506 if test "$wxUSE_GRAPHICS_CONTEXT" = "yes"; then
48507     wx_has_graphics=0
48508     if test "$wxUSE_MSW" = 1; then
48509         { echo "$as_me:$LINENO: checking if GDI+ is available" >&5
48510 echo $ECHO_N "checking if GDI+ is available... $ECHO_C" >&6; }
48511 if test "${wx_cv_lib_gdiplus+set}" = set; then
48512   echo $ECHO_N "(cached) $ECHO_C" >&6
48513 else
48514
48515                                                 ac_ext=cpp
48516 ac_cpp='$CXXCPP $CPPFLAGS'
48517 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
48518 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
48519 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
48520
48521                 cat >conftest.$ac_ext <<_ACEOF
48522 /* confdefs.h.  */
48523 _ACEOF
48524 cat confdefs.h >>conftest.$ac_ext
48525 cat >>conftest.$ac_ext <<_ACEOF
48526 /* end confdefs.h.  */
48527 #include <windows.h>
48528                      #include <gdiplus.h>
48529 int
48530 main ()
48531 {
48532
48533                         using namespace Gdiplus;
48534
48535   ;
48536   return 0;
48537 }
48538 _ACEOF
48539 rm -f conftest.$ac_objext
48540 if { (ac_try="$ac_compile"
48541 case "(($ac_try" in
48542   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48543   *) ac_try_echo=$ac_try;;
48544 esac
48545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48546   (eval "$ac_compile") 2>conftest.er1
48547   ac_status=$?
48548   grep -v '^ *+' conftest.er1 >conftest.err
48549   rm -f conftest.er1
48550   cat conftest.err >&5
48551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48552   (exit $ac_status); } && {
48553          test -z "$ac_cxx_werror_flag" ||
48554          test ! -s conftest.err
48555        } && test -s conftest.$ac_objext; then
48556   wx_cv_lib_gdiplus=yes
48557 else
48558   echo "$as_me: failed program was:" >&5
48559 sed 's/^/| /' conftest.$ac_ext >&5
48560
48561         wx_cv_lib_gdiplus=no
48562
48563 fi
48564
48565 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
48566                 ac_ext=c
48567 ac_cpp='$CPP $CPPFLAGS'
48568 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
48569 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
48570 ac_compiler_gnu=$ac_cv_c_compiler_gnu
48571
48572
48573
48574 fi
48575 { echo "$as_me:$LINENO: result: $wx_cv_lib_gdiplus" >&5
48576 echo "${ECHO_T}$wx_cv_lib_gdiplus" >&6; }
48577         if test "$wx_cv_lib_gdiplus" = "yes"; then
48578             wx_has_graphics=1
48579         fi
48580     elif test "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then
48581
48582 pkg_failed=no
48583 { echo "$as_me:$LINENO: checking for CAIRO" >&5
48584 echo $ECHO_N "checking for CAIRO... $ECHO_C" >&6; }
48585
48586 if test -n "$PKG_CONFIG"; then
48587     if test -n "$CAIRO_CFLAGS"; then
48588         pkg_cv_CAIRO_CFLAGS="$CAIRO_CFLAGS"
48589     else
48590         if test -n "$PKG_CONFIG" && \
48591     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"cairo\"") >&5
48592   ($PKG_CONFIG --exists --print-errors "cairo") 2>&5
48593   ac_status=$?
48594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48595   (exit $ac_status); }; then
48596   pkg_cv_CAIRO_CFLAGS=`$PKG_CONFIG --cflags "cairo" 2>/dev/null`
48597 else
48598   pkg_failed=yes
48599 fi
48600     fi
48601 else
48602         pkg_failed=untried
48603 fi
48604 if test -n "$PKG_CONFIG"; then
48605     if test -n "$CAIRO_LIBS"; then
48606         pkg_cv_CAIRO_LIBS="$CAIRO_LIBS"
48607     else
48608         if test -n "$PKG_CONFIG" && \
48609     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"cairo\"") >&5
48610   ($PKG_CONFIG --exists --print-errors "cairo") 2>&5
48611   ac_status=$?
48612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48613   (exit $ac_status); }; then
48614   pkg_cv_CAIRO_LIBS=`$PKG_CONFIG --libs "cairo" 2>/dev/null`
48615 else
48616   pkg_failed=yes
48617 fi
48618     fi
48619 else
48620         pkg_failed=untried
48621 fi
48622
48623
48624
48625 if test $pkg_failed = yes; then
48626
48627 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
48628         _pkg_short_errors_supported=yes
48629 else
48630         _pkg_short_errors_supported=no
48631 fi
48632         if test $_pkg_short_errors_supported = yes; then
48633                 CAIRO_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cairo"`
48634         else
48635                 CAIRO_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cairo"`
48636         fi
48637         # Put the nasty error message in config.log where it belongs
48638         echo "$CAIRO_PKG_ERRORS" >&5
48639
48640         { echo "$as_me:$LINENO: WARNING: Cairo library not found" >&5
48641 echo "$as_me: WARNING: Cairo library not found" >&2;}
48642
48643 elif test $pkg_failed = untried; then
48644         { echo "$as_me:$LINENO: WARNING: Cairo library not found" >&5
48645 echo "$as_me: WARNING: Cairo library not found" >&2;}
48646
48647 else
48648         CAIRO_CFLAGS=$pkg_cv_CAIRO_CFLAGS
48649         CAIRO_LIBS=$pkg_cv_CAIRO_LIBS
48650         { echo "$as_me:$LINENO: result: yes" >&5
48651 echo "${ECHO_T}yes" >&6; }
48652         wx_has_graphics=1
48653 fi
48654         if test "$wx_has_graphics" = 1; then
48655                                                 save_LIBS="$LIBS"
48656             LIBS="$LIBS $CAIRO_LIBS"
48657
48658 for ac_func in cairo_push_group
48659 do
48660 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
48661 { echo "$as_me:$LINENO: checking for $ac_func" >&5
48662 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
48663 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
48664   echo $ECHO_N "(cached) $ECHO_C" >&6
48665 else
48666   cat >conftest.$ac_ext <<_ACEOF
48667 /* confdefs.h.  */
48668 _ACEOF
48669 cat confdefs.h >>conftest.$ac_ext
48670 cat >>conftest.$ac_ext <<_ACEOF
48671 /* end confdefs.h.  */
48672 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
48673    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
48674 #define $ac_func innocuous_$ac_func
48675
48676 /* System header to define __stub macros and hopefully few prototypes,
48677     which can conflict with char $ac_func (); below.
48678     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
48679     <limits.h> exists even on freestanding compilers.  */
48680
48681 #ifdef __STDC__
48682 # include <limits.h>
48683 #else
48684 # include <assert.h>
48685 #endif
48686
48687 #undef $ac_func
48688
48689 /* Override any GCC internal prototype to avoid an error.
48690    Use char because int might match the return type of a GCC
48691    builtin and then its argument prototype would still apply.  */
48692 #ifdef __cplusplus
48693 extern "C"
48694 #endif
48695 char $ac_func ();
48696 /* The GNU C library defines this for functions which it implements
48697     to always fail with ENOSYS.  Some functions are actually named
48698     something starting with __ and the normal name is an alias.  */
48699 #if defined __stub_$ac_func || defined __stub___$ac_func
48700 choke me
48701 #endif
48702
48703 int
48704 main ()
48705 {
48706 return $ac_func ();
48707   ;
48708   return 0;
48709 }
48710 _ACEOF
48711 rm -f conftest.$ac_objext conftest$ac_exeext
48712 if { (ac_try="$ac_link"
48713 case "(($ac_try" in
48714   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48715   *) ac_try_echo=$ac_try;;
48716 esac
48717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48718   (eval "$ac_link") 2>conftest.er1
48719   ac_status=$?
48720   grep -v '^ *+' conftest.er1 >conftest.err
48721   rm -f conftest.er1
48722   cat conftest.err >&5
48723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48724   (exit $ac_status); } && {
48725          test -z "$ac_c_werror_flag" ||
48726          test ! -s conftest.err
48727        } && test -s conftest$ac_exeext &&
48728        $as_test_x conftest$ac_exeext; then
48729   eval "$as_ac_var=yes"
48730 else
48731   echo "$as_me: failed program was:" >&5
48732 sed 's/^/| /' conftest.$ac_ext >&5
48733
48734         eval "$as_ac_var=no"
48735 fi
48736
48737 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
48738       conftest$ac_exeext conftest.$ac_ext
48739 fi
48740 ac_res=`eval echo '${'$as_ac_var'}'`
48741                { echo "$as_me:$LINENO: result: $ac_res" >&5
48742 echo "${ECHO_T}$ac_res" >&6; }
48743 if test `eval echo '${'$as_ac_var'}'` = yes; then
48744   cat >>confdefs.h <<_ACEOF
48745 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
48746 _ACEOF
48747
48748 fi
48749 done
48750
48751             LIBS="$save_LIBS"
48752             if test "$ac_cv_func_cairo_push_group" = "no"; then
48753                 wx_has_graphics=0
48754                 { echo "$as_me:$LINENO: WARNING: Cairo library is too old and misses cairo_push_group()" >&5
48755 echo "$as_me: WARNING: Cairo library is too old and misses cairo_push_group()" >&2;}
48756             else
48757                 cat >>confdefs.h <<\_ACEOF
48758 #define wxUSE_CAIRO 1
48759 _ACEOF
48760
48761
48762                                                 if test "$wxUSE_GTK" != 1; then
48763                     CPPFLAGS="$CAIRO_CFLAGS $CPPFLAGS"
48764                     GUI_TK_LIBRARY="$GUI_TK_LIBRARY $CAIRO_LIBS"
48765                 fi
48766             fi
48767         fi
48768     else
48769                 wx_has_graphics=1
48770     fi
48771
48772     if test "$wx_has_graphics" = 1; then
48773         cat >>confdefs.h <<\_ACEOF
48774 #define wxUSE_GRAPHICS_CONTEXT 1
48775 _ACEOF
48776
48777     else
48778         { echo "$as_me:$LINENO: WARNING: wxGraphicsContext won't be available" >&5
48779 echo "$as_me: WARNING: wxGraphicsContext won't be available" >&2;}
48780     fi
48781 fi
48782
48783
48784 USE_MEDIA=0
48785
48786 if test "$wxUSE_MEDIACTRL" = "yes" -o "$wxUSE_MEDIACTRL" = "auto"; then
48787     USE_MEDIA=1
48788
48789                 if test "$wxUSE_GTK" = 1; then
48790         wxUSE_GSTREAMER="no"
48791
48792                                                                 GST_VERSION_MAJOR=0
48793         GST_VERSION_MINOR=10
48794         GST_VERSION=$GST_VERSION_MAJOR.$GST_VERSION_MINOR
48795
48796         if test "$wxUSE_GSTREAMER8" = "no"; then
48797
48798 pkg_failed=no
48799 { echo "$as_me:$LINENO: checking for GST" >&5
48800 echo $ECHO_N "checking for GST... $ECHO_C" >&6; }
48801
48802 if test -n "$PKG_CONFIG"; then
48803     if test -n "$GST_CFLAGS"; then
48804         pkg_cv_GST_CFLAGS="$GST_CFLAGS"
48805     else
48806         if test -n "$PKG_CONFIG" && \
48807     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gstreamer-\$GST_VERSION gstreamer-plugins-base-\$GST_VERSION gconf-2.0\"") >&5
48808   ($PKG_CONFIG --exists --print-errors "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0") 2>&5
48809   ac_status=$?
48810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48811   (exit $ac_status); }; then
48812   pkg_cv_GST_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0" 2>/dev/null`
48813 else
48814   pkg_failed=yes
48815 fi
48816     fi
48817 else
48818         pkg_failed=untried
48819 fi
48820 if test -n "$PKG_CONFIG"; then
48821     if test -n "$GST_LIBS"; then
48822         pkg_cv_GST_LIBS="$GST_LIBS"
48823     else
48824         if test -n "$PKG_CONFIG" && \
48825     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gstreamer-\$GST_VERSION gstreamer-plugins-base-\$GST_VERSION gconf-2.0\"") >&5
48826   ($PKG_CONFIG --exists --print-errors "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0") 2>&5
48827   ac_status=$?
48828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48829   (exit $ac_status); }; then
48830   pkg_cv_GST_LIBS=`$PKG_CONFIG --libs "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0" 2>/dev/null`
48831 else
48832   pkg_failed=yes
48833 fi
48834     fi
48835 else
48836         pkg_failed=untried
48837 fi
48838
48839
48840
48841 if test $pkg_failed = yes; then
48842
48843 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
48844         _pkg_short_errors_supported=yes
48845 else
48846         _pkg_short_errors_supported=no
48847 fi
48848         if test $_pkg_short_errors_supported = yes; then
48849                 GST_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0"`
48850         else
48851                 GST_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0"`
48852         fi
48853         # Put the nasty error message in config.log where it belongs
48854         echo "$GST_PKG_ERRORS" >&5
48855
48856
48857                     { echo "$as_me:$LINENO: WARNING: GStreamer 0.10 not available, falling back to 0.8" >&5
48858 echo "$as_me: WARNING: GStreamer 0.10 not available, falling back to 0.8" >&2;}
48859                     GST_VERSION_MINOR=8
48860
48861
48862 elif test $pkg_failed = untried; then
48863
48864                     { echo "$as_me:$LINENO: WARNING: GStreamer 0.10 not available, falling back to 0.8" >&5
48865 echo "$as_me: WARNING: GStreamer 0.10 not available, falling back to 0.8" >&2;}
48866                     GST_VERSION_MINOR=8
48867
48868
48869 else
48870         GST_CFLAGS=$pkg_cv_GST_CFLAGS
48871         GST_LIBS=$pkg_cv_GST_LIBS
48872         { echo "$as_me:$LINENO: result: yes" >&5
48873 echo "${ECHO_T}yes" >&6; }
48874
48875                     wxUSE_GSTREAMER="yes"
48876                     GST_LIBS="$GST_LIBS -lgstinterfaces-$GST_VERSION"
48877
48878 fi
48879         else
48880                         GST_VERSION_MINOR=8
48881         fi
48882
48883         if test $GST_VERSION_MINOR = "8"; then
48884             GST_VERSION=$GST_VERSION_MAJOR.$GST_VERSION_MINOR
48885
48886 pkg_failed=no
48887 { echo "$as_me:$LINENO: checking for GST" >&5
48888 echo $ECHO_N "checking for GST... $ECHO_C" >&6; }
48889
48890 if test -n "$PKG_CONFIG"; then
48891     if test -n "$GST_CFLAGS"; then
48892         pkg_cv_GST_CFLAGS="$GST_CFLAGS"
48893     else
48894         if test -n "$PKG_CONFIG" && \
48895     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gstreamer-\$GST_VERSION gstreamer-interfaces-\$GST_VERSION gstreamer-gconf-\$GST_VERSION\"") >&5
48896   ($PKG_CONFIG --exists --print-errors "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION") 2>&5
48897   ac_status=$?
48898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48899   (exit $ac_status); }; then
48900   pkg_cv_GST_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION" 2>/dev/null`
48901 else
48902   pkg_failed=yes
48903 fi
48904     fi
48905 else
48906         pkg_failed=untried
48907 fi
48908 if test -n "$PKG_CONFIG"; then
48909     if test -n "$GST_LIBS"; then
48910         pkg_cv_GST_LIBS="$GST_LIBS"
48911     else
48912         if test -n "$PKG_CONFIG" && \
48913     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gstreamer-\$GST_VERSION gstreamer-interfaces-\$GST_VERSION gstreamer-gconf-\$GST_VERSION\"") >&5
48914   ($PKG_CONFIG --exists --print-errors "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION") 2>&5
48915   ac_status=$?
48916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48917   (exit $ac_status); }; then
48918   pkg_cv_GST_LIBS=`$PKG_CONFIG --libs "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION" 2>/dev/null`
48919 else
48920   pkg_failed=yes
48921 fi
48922     fi
48923 else
48924         pkg_failed=untried
48925 fi
48926
48927
48928
48929 if test $pkg_failed = yes; then
48930
48931 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
48932         _pkg_short_errors_supported=yes
48933 else
48934         _pkg_short_errors_supported=no
48935 fi
48936         if test $_pkg_short_errors_supported = yes; then
48937                 GST_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION"`
48938         else
48939                 GST_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION"`
48940         fi
48941         # Put the nasty error message in config.log where it belongs
48942         echo "$GST_PKG_ERRORS" >&5
48943
48944
48945                     { echo "$as_me:$LINENO: WARNING: GStreamer 0.8/0.10 not available." >&5
48946 echo "$as_me: WARNING: GStreamer 0.8/0.10 not available." >&2;}
48947
48948 elif test $pkg_failed = untried; then
48949
48950                     { echo "$as_me:$LINENO: WARNING: GStreamer 0.8/0.10 not available." >&5
48951 echo "$as_me: WARNING: GStreamer 0.8/0.10 not available." >&2;}
48952
48953 else
48954         GST_CFLAGS=$pkg_cv_GST_CFLAGS
48955         GST_LIBS=$pkg_cv_GST_LIBS
48956         { echo "$as_me:$LINENO: result: yes" >&5
48957 echo "${ECHO_T}yes" >&6; }
48958         wxUSE_GSTREAMER="yes"
48959 fi
48960         fi
48961
48962
48963         if test "$wxUSE_GSTREAMER" = "yes"; then
48964             CPPFLAGS="$GST_CFLAGS $CPPFLAGS"
48965             EXTRALIBS_MEDIA="$GST_LIBS"
48966
48967             cat >>confdefs.h <<\_ACEOF
48968 #define wxUSE_GSTREAMER 1
48969 _ACEOF
48970
48971         else
48972             USE_MEDIA=0
48973         fi
48974     fi
48975
48976     if test $USE_MEDIA = 1; then
48977         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mediaplayer"
48978         cat >>confdefs.h <<\_ACEOF
48979 #define wxUSE_MEDIACTRL 1
48980 _ACEOF
48981
48982     else
48983         if test "$wxUSE_MEDIACTRL" = "yes"; then
48984             { { echo "$as_me:$LINENO: error: GStreamer not available" >&5
48985 echo "$as_me: error: GStreamer not available" >&2;}
48986    { (exit 1); exit 1; }; }
48987         else
48988                         { echo "$as_me:$LINENO: WARNING: GStreamer not available... disabling wxMediaCtrl" >&5
48989 echo "$as_me: WARNING: GStreamer not available... disabling wxMediaCtrl" >&2;}
48990         fi
48991     fi
48992 fi
48993
48994
48995 if test "$cross_compiling" != "no"; then
48996         OSINFO="\"$host\""
48997 else
48998         OSINFO=`uname -s -r -m`
48999     OSINFO="\"$OSINFO\""
49000 fi
49001
49002 cat >>confdefs.h <<_ACEOF
49003 #define WXWIN_OS_DESCRIPTION $OSINFO
49004 _ACEOF
49005
49006
49007
49008 if test "x$prefix" != "xNONE"; then
49009     wxPREFIX=$prefix
49010 else
49011     wxPREFIX=$ac_default_prefix
49012 fi
49013
49014 cat >>confdefs.h <<_ACEOF
49015 #define wxINSTALL_PREFIX "$wxPREFIX"
49016 _ACEOF
49017
49018
49019
49020
49021 STD_BASE_LIBS="base"
49022 STD_GUI_LIBS=""
49023 BUILT_WX_LIBS="base"
49024 ALL_WX_LIBS="xrc stc gl media qa html adv core xml net base"
49025
49026 if test "$wxUSE_SOCKETS" = "yes" ; then
49027     STD_BASE_LIBS="net $STD_BASE_LIBS"
49028     BUILT_WX_LIBS="net $BUILT_WX_LIBS"
49029 fi
49030 if test "$wxUSE_XML" = "yes" ; then
49031     STD_BASE_LIBS="xml $STD_BASE_LIBS"
49032     BUILT_WX_LIBS="xml $BUILT_WX_LIBS"
49033 fi
49034
49035 if test "$wxUSE_GUI" = "yes"; then
49036     STD_GUI_LIBS="adv core"
49037     BUILT_WX_LIBS="$STD_GUI_LIBS $BUILT_WX_LIBS"
49038
49039     if test "$wxUSE_DEBUGREPORT" = "yes" ; then
49040         STD_GUI_LIBS="qa $STD_GUI_LIBS"
49041         BUILT_WX_LIBS="qa $BUILT_WX_LIBS"
49042     fi
49043     if test "$wxUSE_HTML" = "yes" ; then
49044         STD_GUI_LIBS="html $STD_GUI_LIBS"
49045         BUILT_WX_LIBS="html $BUILT_WX_LIBS"
49046     fi
49047     if test "$wxUSE_MEDIACTRL" = "yes" ; then
49048         BUILT_WX_LIBS="media $BUILT_WX_LIBS"
49049     fi
49050     if test "$wxUSE_OPENGL" = "yes" ; then
49051         BUILT_WX_LIBS="gl $BUILT_WX_LIBS"
49052     fi
49053     if test "$wxUSE_AUI" = "yes" ; then
49054         BUILT_WX_LIBS="aui $BUILT_WX_LIBS"
49055     fi
49056     if test "$wxUSE_PROPGRID" = "yes" ; then
49057         BUILT_WX_LIBS="propgrid $BUILT_WX_LIBS"
49058     fi
49059     if test "$wxUSE_RIBBON" = "yes" ; then
49060         BUILT_WX_LIBS="ribbon $BUILT_WX_LIBS"
49061     fi
49062     if test "$wxUSE_RICHTEXT" = "yes" ; then
49063         BUILT_WX_LIBS="richtext $BUILT_WX_LIBS"
49064     fi
49065     if test "$wxUSE_STC" = "yes" ; then
49066         BUILT_WX_LIBS="stc $BUILT_WX_LIBS"
49067     fi
49068     if test "$wxUSE_XRC" = "yes" ; then
49069         STD_GUI_LIBS="xrc $STD_GUI_LIBS"
49070         BUILT_WX_LIBS="xrc $BUILT_WX_LIBS"
49071     fi
49072 fi
49073
49074
49075
49076
49077
49078
49079
49080 EXTRA_FRAMEWORKS=
49081 if test "$wxUSE_MAC" = 1 ; then
49082     if test "$USE_DARWIN" = 1; then
49083         if test "$wxUSE_OSX_IPHONE" = 1; then
49084             EXTRA_FRAMEWORKS="-framework IOKit -framework UIKit -framework CFNetwork -framework AudioToolbox -framework CoreFoundation -framework CoreGraphics -framework OpenGLES -framework Foundation -framework QuartzCore"
49085         else
49086             EXTRA_FRAMEWORKS="-framework IOKit -framework Carbon -framework Cocoa -framework AudioToolbox -framework System -framework OpenGL -framework QuickTime"
49087         fi
49088     fi
49089 fi
49090 if test "$wxUSE_OLD_COCOA" = 1 ; then
49091     EXTRA_FRAMEWORKS="-framework IOKit -framework Cocoa"
49092     if test "$wxUSE_MEDIACTRL" = "yes"; then
49093         EXTRA_FRAMEWORKS="$EXTRA_FRAMEWORKS -framework QuickTime"
49094     fi
49095 fi
49096 if test "$USE_DARWIN" = 1 -a "$wxUSE_MAC" != 1 -a "$wxUSE_OLD_COCOA" != 1 ; then
49097     EXTRA_FRAMEWORKS="$EXTRA_FRAMEWORKS -framework IOKit -framework CoreServices -framework System -framework ApplicationServices"
49098 fi
49099
49100 LDFLAGS="$LDFLAGS $EXTRA_FRAMEWORKS"
49101 WXCONFIG_LDFLAGS="$WXCONFIG_LDFLAGS $EXTRA_FRAMEWORKS"
49102
49103 LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK $LIBS"
49104
49105 if test "$wxUSE_GUI" = "yes"; then
49106
49107
49108         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs drawing \
49109                      erase event exec font image minimal render \
49110                      shaped svg taborder vscroll widgets wrapsizer"
49111
49112     if test "$wxUSE_MONOLITHIC" != "yes"; then
49113         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS console"
49114     fi
49115     if test "$TOOLKIT" = "MSW"; then
49116         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS regtest"
49117         if test "$wxUSE_UNIVERSAL" != "yes"; then
49118             SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ownerdrw nativdlg dll"
49119         fi
49120     fi
49121     if test "$TOOLKIT" = "PM" -a "$wxUSE_UNIVERSAL" != "yes"; then
49122         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ownerdrw"
49123     fi
49124 else
49125     SAMPLES_SUBDIRS="console"
49126     if test "$wxUSE_SOCKETS" = "yes" ; then
49127         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
49128     fi
49129     if test "$wxUSE_IPC" = "yes" ; then
49130         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ipc"
49131     fi
49132 fi
49133
49134
49135 if test "x$INTELCC" = "xyes" ; then
49136                                         CWARNINGS="-Wall -wd810,869,981,1418,1572,1684,2259"
49137 elif test "$GCC" = yes ; then
49138     CWARNINGS="-Wall -Wundef"
49139 fi
49140
49141 if test "x$INTELCXX" = "xyes" ; then
49142                                                                 CXXWARNINGS="-Wall -wd279,383,444,810,869,981,1418,1419,1881,2259"
49143 elif test "$GXX" = yes ; then
49144     CXXWARNINGS="-Wall -Wundef -Wunused-parameter -Wno-ctor-dtor-privacy"
49145     { echo "$as_me:$LINENO: checking CXXWARNINGS for gcc -Woverloaded-virtual" >&5
49146 echo $ECHO_N "checking CXXWARNINGS for gcc -Woverloaded-virtual... $ECHO_C" >&6; }
49147 if test "${ac_cv_cxxflags_gcc_option__Woverloaded_virtual+set}" = set; then
49148   echo $ECHO_N "(cached) $ECHO_C" >&6
49149 else
49150   ac_cv_cxxflags_gcc_option__Woverloaded_virtual="no, unknown"
49151
49152  ac_ext=cpp
49153 ac_cpp='$CXXCPP $CPPFLAGS'
49154 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
49155 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
49156 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
49157
49158  ac_save_CXXFLAGS="$CXXFLAGS"
49159 for ac_arg in "-pedantic -Werror % -Woverloaded-virtual"     "-pedantic % -Woverloaded-virtual %% no, obsolete"     #
49160 do CXXFLAGS="$ac_save_CXXFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
49161    cat >conftest.$ac_ext <<_ACEOF
49162 /* confdefs.h.  */
49163 _ACEOF
49164 cat confdefs.h >>conftest.$ac_ext
49165 cat >>conftest.$ac_ext <<_ACEOF
49166 /* end confdefs.h.  */
49167
49168 int
49169 main ()
49170 {
49171 return 0;
49172   ;
49173   return 0;
49174 }
49175 _ACEOF
49176 rm -f conftest.$ac_objext
49177 if { (ac_try="$ac_compile"
49178 case "(($ac_try" in
49179   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49180   *) ac_try_echo=$ac_try;;
49181 esac
49182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
49183   (eval "$ac_compile") 2>conftest.er1
49184   ac_status=$?
49185   grep -v '^ *+' conftest.er1 >conftest.err
49186   rm -f conftest.er1
49187   cat conftest.err >&5
49188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49189   (exit $ac_status); } && {
49190          test -z "$ac_cxx_werror_flag" ||
49191          test ! -s conftest.err
49192        } && test -s conftest.$ac_objext; then
49193   ac_cv_cxxflags_gcc_option__Woverloaded_virtual=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
49194 else
49195   echo "$as_me: failed program was:" >&5
49196 sed 's/^/| /' conftest.$ac_ext >&5
49197
49198
49199 fi
49200
49201 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
49202 done
49203  CXXFLAGS="$ac_save_CXXFLAGS"
49204  ac_ext=c
49205 ac_cpp='$CPP $CPPFLAGS'
49206 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
49207 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
49208 ac_compiler_gnu=$ac_cv_c_compiler_gnu
49209
49210
49211 fi
49212 { echo "$as_me:$LINENO: result: $ac_cv_cxxflags_gcc_option__Woverloaded_virtual" >&5
49213 echo "${ECHO_T}$ac_cv_cxxflags_gcc_option__Woverloaded_virtual" >&6; }
49214 case ".$ac_cv_cxxflags_gcc_option__Woverloaded_virtual" in
49215      .ok|.ok,*)  ;;
49216    .|.no|.no,*)  ;;
49217    *)
49218    if echo " $CXXWARNINGS " | grep " $ac_cv_cxxflags_gcc_option__Woverloaded_virtual " 2>&1 >/dev/null
49219    then { (echo "$as_me:$LINENO: : CXXWARNINGS does contain \$ac_cv_cxxflags_gcc_option__Woverloaded_virtual") >&5
49220   (: CXXWARNINGS does contain $ac_cv_cxxflags_gcc_option__Woverloaded_virtual) 2>&5
49221   ac_status=$?
49222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49223   (exit $ac_status); }
49224    else { (echo "$as_me:$LINENO: : CXXWARNINGS=\"\$CXXWARNINGS \$ac_cv_cxxflags_gcc_option__Woverloaded_virtual\"") >&5
49225   (: CXXWARNINGS="$CXXWARNINGS $ac_cv_cxxflags_gcc_option__Woverloaded_virtual") 2>&5
49226   ac_status=$?
49227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49228   (exit $ac_status); }
49229                       CXXWARNINGS="$CXXWARNINGS $ac_cv_cxxflags_gcc_option__Woverloaded_virtual"
49230    fi
49231  ;;
49232 esac
49233
49234
49235                     if test "$wxUSE_MAC" = 1 ; then
49236         CXXWARNINGS="$CXXWARNINGS -Wno-deprecated-declarations"
49237     fi
49238 fi
49239
49240
49241 WXCONFIG_CFLAGS=`echo $WXCONFIG_CFLAGS`
49242 WXCONFIG_CXXFLAGS=`echo $WXCONFIG_CFLAGS $WXCONFIG_CXXFLAGS`
49243
49244
49245 CPPFLAGS=`echo $WXCONFIG_CPPFLAGS \
49246  -I\\${wx_top_builddir}/lib/wx/include/${TOOLCHAIN_FULLNAME} \
49247  -I\\${top_srcdir}/include $TOOLKIT_INCLUDE \
49248  $CPPFLAGS `
49249
49250 C_AND_CXX_FLAGS="$DEBUG_CFLAGS $PROFILE_FLAGS $OPTIMISE_CFLAGS"
49251 CFLAGS=`echo $WXCONFIG_CFLAGS $CWARNINGS $C_AND_CXX_FLAGS $CFLAGS `
49252 CXXFLAGS=`echo $WXCONFIG_CXXFLAGS $C_AND_CXX_FLAGS $CXXFLAGS `
49253 OBJCFLAGS=`echo $WXCONFIG_CFLAGS $CWARNINGS $C_AND_CXX_FLAGS $OBJCFLAGS `
49254 OBJCXXFLAGS=`echo $WXCONFIG_CXXFLAGS $C_AND_CXX_FLAGS $OBJCXXFLAGS `
49255
49256 WXCONFIG_CPPFLAGS=`echo $WXCONFIG_CPPFLAGS $WXCONFIG_ONLY_CPPFLAGS`
49257
49258
49259 if test "x$MWCC" = "xyes"; then
49260
49261             CC="$CC -cwd source -I-"
49262     CXX="$CXX -cwd source -I-"
49263 fi
49264
49265
49266 LIBS=`echo $LIBS`
49267 EXTRALIBS="$LDFLAGS $LDFLAGS_VERSIONING $LIBS $DMALLOC_LIBS"
49268 EXTRALIBS_XML="$EXPAT_LINK"
49269 EXTRALIBS_HTML="$MSPACK_LINK"
49270 EXTRALIBS_MEDIA="$GST_LIBS"
49271 EXTRALIBS_STC="-lwxscintilla${WX_LIB_FLAVOUR}-${WX_RELEASE}${HOST_SUFFIX}"
49272 if test "$wxUSE_GUI" = "yes"; then
49273     EXTRALIBS_GUI=`echo $GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK $WEBKIT_LINK $EXTRALIBS_HILDON $EXTRALIBS_GNOMEVFS $EXTRALIBS_GNOMEPRINT`
49274 fi
49275 if test "$wxUSE_OPENGL" = "yes"; then
49276     EXTRALIBS_OPENGL="$LDFLAGS_GL $OPENGL_LIBS"
49277 fi
49278
49279 LDFLAGS="$LDFLAGS $PROFILE_FLAGS"
49280
49281 WXCONFIG_LIBS="$LIBS"
49282
49283 if test "$wxUSE_REGEX" = "builtin" ; then
49284     wxconfig_3rdparty="regex${lib_unicode_suffix} $wxconfig_3rdparty"
49285 fi
49286 if test "$wxUSE_EXPAT" = "builtin" ; then
49287     wxconfig_3rdparty="expat $wxconfig_3rdparty"
49288 fi
49289 if test "$wxUSE_LIBTIFF" = "builtin" ; then
49290     wxconfig_3rdparty="tiff $wxconfig_3rdparty"
49291 fi
49292 if test "$wxUSE_LIBJPEG" = "builtin" ; then
49293     wxconfig_3rdparty="jpeg $wxconfig_3rdparty"
49294 fi
49295 if test "$wxUSE_LIBPNG" = "builtin" ; then
49296     wxconfig_3rdparty="png $wxconfig_3rdparty"
49297 fi
49298 if test "$wxUSE_ZLIB" = "builtin" ; then
49299     wxconfig_3rdparty="zlib $wxconfig_3rdparty"
49300 fi
49301
49302 for i in $wxconfig_3rdparty ; do
49303     WXCONFIG_LIBS="-lwx${i}${WX_LIB_FLAVOUR}-${WX_RELEASE}${HOST_SUFFIX} $WXCONFIG_LIBS"
49304 done
49305
49306
49307 if test "x$wxUSE_UNIVERSAL" = "xyes" ; then
49308     WXUNIV=1
49309
49310     case "$wxUNIV_THEMES" in
49311         ''|all)
49312             cat >>confdefs.h <<\_ACEOF
49313 #define wxUSE_ALL_THEMES 1
49314 _ACEOF
49315
49316             ;;
49317
49318         *)
49319             for t in `echo $wxUNIV_THEMES | tr , ' ' | tr '[a-z]' '[A-Z]'`; do
49320                 cat >>confdefs.h <<_ACEOF
49321 #define wxUSE_THEME_$t 1
49322 _ACEOF
49323
49324             done
49325     esac
49326 else
49327     WXUNIV=0
49328 fi
49329
49330
49331
49332
49333
49334
49335
49336
49337 if test $wxUSE_MONOLITHIC = "yes" ; then
49338     MONOLITHIC=1
49339 else
49340     MONOLITHIC=0
49341 fi
49342
49343 if test $wxUSE_PLUGINS = "yes" ; then
49344     USE_PLUGINS=1
49345 else
49346     USE_PLUGINS=0
49347 fi
49348
49349 if test "$wxUSE_DEBUGREPORT" = "yes" ; then
49350     USE_QA=1
49351 else
49352     USE_QA=0
49353 fi
49354
49355 if test $wxUSE_OFFICIAL_BUILD = "yes" ; then
49356     OFFICIAL_BUILD=1
49357 else
49358     OFFICIAL_BUILD=0
49359 fi
49360
49361
49362
49363
49364
49365
49366
49367
49368
49369
49370
49371
49372
49373
49374
49375
49376
49377
49378
49379
49380
49381
49382
49383
49384
49385
49386
49387 TOOLKIT_LOWERCASE=`echo $TOOLKIT | tr '[A-Z]' '[a-z]'`
49388
49389
49390
49391
49392
49393
49394
49395
49396
49397
49398 case "$TOOLKIT" in
49399     GTK)
49400         TOOLKIT_DESC="GTK+"
49401         if test "$WXGTK2" = 1; then
49402             TOOLKIT_DESC="$TOOLKIT_DESC 2"
49403             if test "$wxUSE_GTKPRINT" = "yes" ; then
49404                 TOOLKIT_EXTRA="$TOOLKIT_EXTRA GTK+ printing";
49405             fi
49406             if test "$wxUSE_LIBGNOMEPRINT" = "yes" ; then
49407                 TOOLKIT_EXTRA="$TOOLKIT_EXTRA gnomeprint";
49408             fi
49409             if test "$wxUSE_LIBGNOMEVFS" = "yes" ; then
49410                 TOOLKIT_EXTRA="$TOOLKIT_EXTRA gnomevfs"
49411             fi
49412             if test "$wxUSE_LIBHILDON" = "yes"; then
49413                 TOOLKIT_EXTRA="$TOOLKIT_EXTRA hildon"
49414             fi
49415             if test "$wxUSE_LIBHILDON2" = "yes"; then
49416                 TOOLKIT_EXTRA="$TOOLKIT_EXTRA hildon"
49417             fi
49418
49419             if test "$TOOLKIT_EXTRA" != ""; then
49420                 TOOLKIT_DESC="$TOOLKIT_DESC with support for `echo $TOOLKIT_EXTRA | tr -s ' '`"
49421             fi
49422         fi
49423         ;;
49424
49425     ?*)
49426         TOOLKIT_DESC=$TOOLKIT_LOWERCASE
49427         ;;
49428
49429     *)
49430         TOOLKIT_DESC="base only"
49431         ;;
49432 esac
49433
49434 if test "$wxUSE_WINE" = "yes"; then
49435     BAKEFILE_FORCE_PLATFORM=win32
49436 fi
49437
49438 if test "$wxUSE_UNICODE" = yes -a "$GCC" = yes -a "$bk_use_pch" != no
49439 then
49440     { echo "$as_me:$LINENO: checking for gcc precompiled header bug" >&5
49441 echo $ECHO_N "checking for gcc precompiled header bug... $ECHO_C" >&6; }
49442 if test "${wx_cv_gcc_pch_bug+set}" = set; then
49443   echo $ECHO_N "(cached) $ECHO_C" >&6
49444 else
49445
49446             echo '#include <stdio.h>
49447                   const wchar_t test_var[] = L"awidetest";' > conftest.h
49448
49449             echo '#include "conftest.h"
49450                   int main()
49451                   {
49452                      printf("%ls", test_var);
49453                      return 0;
49454                   }' > conftest.cpp
49455
49456             wx_cv_gcc_pch_bug="pch not supported"
49457
49458             if $CXX conftest.h >/dev/null 2>&1
49459             then
49460                 wx_cv_gcc_pch_bug=
49461
49462                 if $CXX -o conftest$PROGRAM_EXT conftest.cpp >/dev/null 2>&1
49463                 then
49464                     if tr -dc '[a-z]' < conftest$PROGRAM_EXT |
49465                         grep awidetest >/dev/null
49466                     then
49467                         wx_cv_gcc_pch_bug=no
49468                     else
49469                         wx_cv_gcc_pch_bug=yes
49470                     fi
49471                 fi
49472             fi
49473
49474             rm -f conftest.h conftest.gch conftest.cpp conftest$PROGRAM_EXT
49475
49476 fi
49477 { echo "$as_me:$LINENO: result: $wx_cv_gcc_pch_bug" >&5
49478 echo "${ECHO_T}$wx_cv_gcc_pch_bug" >&6; }
49479
49480     if test "$wx_cv_gcc_pch_bug" = yes; then
49481                         bk_use_pch=no
49482     fi
49483 fi
49484
49485
49486
49487
49488
49489
49490
49491     if test "x$BAKEFILE_HOST" = "x"; then
49492                if test "x${host}" = "x" ; then
49493                        { { echo "$as_me:$LINENO: error: You must call the autoconf \"CANONICAL_HOST\" macro in your configure.ac (or .in) file." >&5
49494 echo "$as_me: error: You must call the autoconf \"CANONICAL_HOST\" macro in your configure.ac (or .in) file." >&2;}
49495    { (exit 1); exit 1; }; }
49496                fi
49497
49498         BAKEFILE_HOST="${host}"
49499     fi
49500
49501     if test "x$BAKEFILE_CHECK_BASICS" != "xno"; then
49502
49503     if test -n "$ac_tool_prefix"; then
49504   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
49505 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
49506 { echo "$as_me:$LINENO: checking for $ac_word" >&5
49507 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
49508 if test "${ac_cv_prog_RANLIB+set}" = set; then
49509   echo $ECHO_N "(cached) $ECHO_C" >&6
49510 else
49511   if test -n "$RANLIB"; then
49512   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
49513 else
49514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
49515 for as_dir in $PATH
49516 do
49517   IFS=$as_save_IFS
49518   test -z "$as_dir" && as_dir=.
49519   for ac_exec_ext in '' $ac_executable_extensions; do
49520   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
49521     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
49522     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
49523     break 2
49524   fi
49525 done
49526 done
49527 IFS=$as_save_IFS
49528
49529 fi
49530 fi
49531 RANLIB=$ac_cv_prog_RANLIB
49532 if test -n "$RANLIB"; then
49533   { echo "$as_me:$LINENO: result: $RANLIB" >&5
49534 echo "${ECHO_T}$RANLIB" >&6; }
49535 else
49536   { echo "$as_me:$LINENO: result: no" >&5
49537 echo "${ECHO_T}no" >&6; }
49538 fi
49539
49540
49541 fi
49542 if test -z "$ac_cv_prog_RANLIB"; then
49543   ac_ct_RANLIB=$RANLIB
49544   # Extract the first word of "ranlib", so it can be a program name with args.
49545 set dummy ranlib; ac_word=$2
49546 { echo "$as_me:$LINENO: checking for $ac_word" >&5
49547 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
49548 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
49549   echo $ECHO_N "(cached) $ECHO_C" >&6
49550 else
49551   if test -n "$ac_ct_RANLIB"; then
49552   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
49553 else
49554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
49555 for as_dir in $PATH
49556 do
49557   IFS=$as_save_IFS
49558   test -z "$as_dir" && as_dir=.
49559   for ac_exec_ext in '' $ac_executable_extensions; do
49560   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
49561     ac_cv_prog_ac_ct_RANLIB="ranlib"
49562     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
49563     break 2
49564   fi
49565 done
49566 done
49567 IFS=$as_save_IFS
49568
49569 fi
49570 fi
49571 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
49572 if test -n "$ac_ct_RANLIB"; then
49573   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
49574 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
49575 else
49576   { echo "$as_me:$LINENO: result: no" >&5
49577 echo "${ECHO_T}no" >&6; }
49578 fi
49579
49580   if test "x$ac_ct_RANLIB" = x; then
49581     RANLIB=":"
49582   else
49583     case $cross_compiling:$ac_tool_warned in
49584 yes:)
49585 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
49586 whose name does not start with the host triplet.  If you think this
49587 configuration is useful to you, please write to autoconf@gnu.org." >&5
49588 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
49589 whose name does not start with the host triplet.  If you think this
49590 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
49591 ac_tool_warned=yes ;;
49592 esac
49593     RANLIB=$ac_ct_RANLIB
49594   fi
49595 else
49596   RANLIB="$ac_cv_prog_RANLIB"
49597 fi
49598
49599     # Find a good install program.  We prefer a C program (faster),
49600 # so one script is as good as another.  But avoid the broken or
49601 # incompatible versions:
49602 # SysV /etc/install, /usr/sbin/install
49603 # SunOS /usr/etc/install
49604 # IRIX /sbin/install
49605 # AIX /bin/install
49606 # AmigaOS /C/install, which installs bootblocks on floppy discs
49607 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
49608 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
49609 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
49610 # OS/2's system install, which has a completely different semantic
49611 # ./install, which can be erroneously created by make from ./install.sh.
49612 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
49613 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
49614 if test -z "$INSTALL"; then
49615 if test "${ac_cv_path_install+set}" = set; then
49616   echo $ECHO_N "(cached) $ECHO_C" >&6
49617 else
49618   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
49619 for as_dir in $PATH
49620 do
49621   IFS=$as_save_IFS
49622   test -z "$as_dir" && as_dir=.
49623   # Account for people who put trailing slashes in PATH elements.
49624 case $as_dir/ in
49625   ./ | .// | /cC/* | \
49626   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
49627   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
49628   /usr/ucb/* ) ;;
49629   *)
49630     # OSF1 and SCO ODT 3.0 have their own names for install.
49631     # Don't use installbsd from OSF since it installs stuff as root
49632     # by default.
49633     for ac_prog in ginstall scoinst install; do
49634       for ac_exec_ext in '' $ac_executable_extensions; do
49635         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
49636           if test $ac_prog = install &&
49637             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
49638             # AIX install.  It has an incompatible calling convention.
49639             :
49640           elif test $ac_prog = install &&
49641             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
49642             # program-specific install script used by HP pwplus--don't use.
49643             :
49644           else
49645             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
49646             break 3
49647           fi
49648         fi
49649       done
49650     done
49651     ;;
49652 esac
49653 done
49654 IFS=$as_save_IFS
49655
49656
49657 fi
49658   if test "${ac_cv_path_install+set}" = set; then
49659     INSTALL=$ac_cv_path_install
49660   else
49661     # As a last resort, use the slow shell script.  Don't cache a
49662     # value for INSTALL within a source directory, because that will
49663     # break other packages using the cache if that directory is
49664     # removed, or if the value is a relative name.
49665     INSTALL=$ac_install_sh
49666   fi
49667 fi
49668 { echo "$as_me:$LINENO: result: $INSTALL" >&5
49669 echo "${ECHO_T}$INSTALL" >&6; }
49670
49671 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
49672 # It thinks the first close brace ends the variable substitution.
49673 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
49674
49675 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
49676
49677 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
49678
49679     { echo "$as_me:$LINENO: checking whether ln -s works" >&5
49680 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
49681 LN_S=$as_ln_s
49682 if test "$LN_S" = "ln -s"; then
49683   { echo "$as_me:$LINENO: result: yes" >&5
49684 echo "${ECHO_T}yes" >&6; }
49685 else
49686   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
49687 echo "${ECHO_T}no, using $LN_S" >&6; }
49688 fi
49689
49690
49691     { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
49692 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
49693 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
49694 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
49695   echo $ECHO_N "(cached) $ECHO_C" >&6
49696 else
49697   cat >conftest.make <<\_ACEOF
49698 SHELL = /bin/sh
49699 all:
49700         @echo '@@@%%%=$(MAKE)=@@@%%%'
49701 _ACEOF
49702 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
49703 case `${MAKE-make} -f conftest.make 2>/dev/null` in
49704   *@@@%%%=?*=@@@%%%*)
49705     eval ac_cv_prog_make_${ac_make}_set=yes;;
49706   *)
49707     eval ac_cv_prog_make_${ac_make}_set=no;;
49708 esac
49709 rm -f conftest.make
49710 fi
49711 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
49712   { echo "$as_me:$LINENO: result: yes" >&5
49713 echo "${ECHO_T}yes" >&6; }
49714   SET_MAKE=
49715 else
49716   { echo "$as_me:$LINENO: result: no" >&5
49717 echo "${ECHO_T}no" >&6; }
49718   SET_MAKE="MAKE=${MAKE-make}"
49719 fi
49720
49721
49722
49723     if test "x$SUNCXX" = "xyes"; then
49724                                 AR=$CXX
49725         AROPTIONS="-xar -o"
49726
49727     elif test "x$SGICC" = "xyes"; then
49728                 AR=$CXX
49729         AROPTIONS="-ar -o"
49730
49731     else
49732         if test -n "$ac_tool_prefix"; then
49733   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
49734 set dummy ${ac_tool_prefix}ar; ac_word=$2
49735 { echo "$as_me:$LINENO: checking for $ac_word" >&5
49736 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
49737 if test "${ac_cv_prog_AR+set}" = set; then
49738   echo $ECHO_N "(cached) $ECHO_C" >&6
49739 else
49740   if test -n "$AR"; then
49741   ac_cv_prog_AR="$AR" # Let the user override the test.
49742 else
49743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
49744 for as_dir in $PATH
49745 do
49746   IFS=$as_save_IFS
49747   test -z "$as_dir" && as_dir=.
49748   for ac_exec_ext in '' $ac_executable_extensions; do
49749   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
49750     ac_cv_prog_AR="${ac_tool_prefix}ar"
49751     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
49752     break 2
49753   fi
49754 done
49755 done
49756 IFS=$as_save_IFS
49757
49758 fi
49759 fi
49760 AR=$ac_cv_prog_AR
49761 if test -n "$AR"; then
49762   { echo "$as_me:$LINENO: result: $AR" >&5
49763 echo "${ECHO_T}$AR" >&6; }
49764 else
49765   { echo "$as_me:$LINENO: result: no" >&5
49766 echo "${ECHO_T}no" >&6; }
49767 fi
49768
49769
49770 fi
49771 if test -z "$ac_cv_prog_AR"; then
49772   ac_ct_AR=$AR
49773   # Extract the first word of "ar", so it can be a program name with args.
49774 set dummy ar; ac_word=$2
49775 { echo "$as_me:$LINENO: checking for $ac_word" >&5
49776 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
49777 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
49778   echo $ECHO_N "(cached) $ECHO_C" >&6
49779 else
49780   if test -n "$ac_ct_AR"; then
49781   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
49782 else
49783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
49784 for as_dir in $PATH
49785 do
49786   IFS=$as_save_IFS
49787   test -z "$as_dir" && as_dir=.
49788   for ac_exec_ext in '' $ac_executable_extensions; do
49789   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
49790     ac_cv_prog_ac_ct_AR="ar"
49791     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
49792     break 2
49793   fi
49794 done
49795 done
49796 IFS=$as_save_IFS
49797
49798 fi
49799 fi
49800 ac_ct_AR=$ac_cv_prog_ac_ct_AR
49801 if test -n "$ac_ct_AR"; then
49802   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
49803 echo "${ECHO_T}$ac_ct_AR" >&6; }
49804 else
49805   { echo "$as_me:$LINENO: result: no" >&5
49806 echo "${ECHO_T}no" >&6; }
49807 fi
49808
49809   if test "x$ac_ct_AR" = x; then
49810     AR="ar"
49811   else
49812     case $cross_compiling:$ac_tool_warned in
49813 yes:)
49814 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
49815 whose name does not start with the host triplet.  If you think this
49816 configuration is useful to you, please write to autoconf@gnu.org." >&5
49817 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
49818 whose name does not start with the host triplet.  If you think this
49819 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
49820 ac_tool_warned=yes ;;
49821 esac
49822     AR=$ac_ct_AR
49823   fi
49824 else
49825   AR="$ac_cv_prog_AR"
49826 fi
49827
49828         AROPTIONS=rcu
49829     fi
49830
49831
49832     if test -n "$ac_tool_prefix"; then
49833   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
49834 set dummy ${ac_tool_prefix}strip; ac_word=$2
49835 { echo "$as_me:$LINENO: checking for $ac_word" >&5
49836 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
49837 if test "${ac_cv_prog_STRIP+set}" = set; then
49838   echo $ECHO_N "(cached) $ECHO_C" >&6
49839 else
49840   if test -n "$STRIP"; then
49841   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
49842 else
49843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
49844 for as_dir in $PATH
49845 do
49846   IFS=$as_save_IFS
49847   test -z "$as_dir" && as_dir=.
49848   for ac_exec_ext in '' $ac_executable_extensions; do
49849   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
49850     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
49851     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
49852     break 2
49853   fi
49854 done
49855 done
49856 IFS=$as_save_IFS
49857
49858 fi
49859 fi
49860 STRIP=$ac_cv_prog_STRIP
49861 if test -n "$STRIP"; then
49862   { echo "$as_me:$LINENO: result: $STRIP" >&5
49863 echo "${ECHO_T}$STRIP" >&6; }
49864 else
49865   { echo "$as_me:$LINENO: result: no" >&5
49866 echo "${ECHO_T}no" >&6; }
49867 fi
49868
49869
49870 fi
49871 if test -z "$ac_cv_prog_STRIP"; then
49872   ac_ct_STRIP=$STRIP
49873   # Extract the first word of "strip", so it can be a program name with args.
49874 set dummy strip; ac_word=$2
49875 { echo "$as_me:$LINENO: checking for $ac_word" >&5
49876 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
49877 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
49878   echo $ECHO_N "(cached) $ECHO_C" >&6
49879 else
49880   if test -n "$ac_ct_STRIP"; then
49881   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
49882 else
49883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
49884 for as_dir in $PATH
49885 do
49886   IFS=$as_save_IFS
49887   test -z "$as_dir" && as_dir=.
49888   for ac_exec_ext in '' $ac_executable_extensions; do
49889   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
49890     ac_cv_prog_ac_ct_STRIP="strip"
49891     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
49892     break 2
49893   fi
49894 done
49895 done
49896 IFS=$as_save_IFS
49897
49898 fi
49899 fi
49900 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
49901 if test -n "$ac_ct_STRIP"; then
49902   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
49903 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
49904 else
49905   { echo "$as_me:$LINENO: result: no" >&5
49906 echo "${ECHO_T}no" >&6; }
49907 fi
49908
49909   if test "x$ac_ct_STRIP" = x; then
49910     STRIP=":"
49911   else
49912     case $cross_compiling:$ac_tool_warned in
49913 yes:)
49914 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
49915 whose name does not start with the host triplet.  If you think this
49916 configuration is useful to you, please write to autoconf@gnu.org." >&5
49917 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
49918 whose name does not start with the host triplet.  If you think this
49919 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
49920 ac_tool_warned=yes ;;
49921 esac
49922     STRIP=$ac_ct_STRIP
49923   fi
49924 else
49925   STRIP="$ac_cv_prog_STRIP"
49926 fi
49927
49928     if test -n "$ac_tool_prefix"; then
49929   # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
49930 set dummy ${ac_tool_prefix}nm; ac_word=$2
49931 { echo "$as_me:$LINENO: checking for $ac_word" >&5
49932 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
49933 if test "${ac_cv_prog_NM+set}" = set; then
49934   echo $ECHO_N "(cached) $ECHO_C" >&6
49935 else
49936   if test -n "$NM"; then
49937   ac_cv_prog_NM="$NM" # Let the user override the test.
49938 else
49939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
49940 for as_dir in $PATH
49941 do
49942   IFS=$as_save_IFS
49943   test -z "$as_dir" && as_dir=.
49944   for ac_exec_ext in '' $ac_executable_extensions; do
49945   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
49946     ac_cv_prog_NM="${ac_tool_prefix}nm"
49947     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
49948     break 2
49949   fi
49950 done
49951 done
49952 IFS=$as_save_IFS
49953
49954 fi
49955 fi
49956 NM=$ac_cv_prog_NM
49957 if test -n "$NM"; then
49958   { echo "$as_me:$LINENO: result: $NM" >&5
49959 echo "${ECHO_T}$NM" >&6; }
49960 else
49961   { echo "$as_me:$LINENO: result: no" >&5
49962 echo "${ECHO_T}no" >&6; }
49963 fi
49964
49965
49966 fi
49967 if test -z "$ac_cv_prog_NM"; then
49968   ac_ct_NM=$NM
49969   # Extract the first word of "nm", so it can be a program name with args.
49970 set dummy nm; ac_word=$2
49971 { echo "$as_me:$LINENO: checking for $ac_word" >&5
49972 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
49973 if test "${ac_cv_prog_ac_ct_NM+set}" = set; then
49974   echo $ECHO_N "(cached) $ECHO_C" >&6
49975 else
49976   if test -n "$ac_ct_NM"; then
49977   ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
49978 else
49979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
49980 for as_dir in $PATH
49981 do
49982   IFS=$as_save_IFS
49983   test -z "$as_dir" && as_dir=.
49984   for ac_exec_ext in '' $ac_executable_extensions; do
49985   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
49986     ac_cv_prog_ac_ct_NM="nm"
49987     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
49988     break 2
49989   fi
49990 done
49991 done
49992 IFS=$as_save_IFS
49993
49994 fi
49995 fi
49996 ac_ct_NM=$ac_cv_prog_ac_ct_NM
49997 if test -n "$ac_ct_NM"; then
49998   { echo "$as_me:$LINENO: result: $ac_ct_NM" >&5
49999 echo "${ECHO_T}$ac_ct_NM" >&6; }
50000 else
50001   { echo "$as_me:$LINENO: result: no" >&5
50002 echo "${ECHO_T}no" >&6; }
50003 fi
50004
50005   if test "x$ac_ct_NM" = x; then
50006     NM=":"
50007   else
50008     case $cross_compiling:$ac_tool_warned in
50009 yes:)
50010 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
50011 whose name does not start with the host triplet.  If you think this
50012 configuration is useful to you, please write to autoconf@gnu.org." >&5
50013 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
50014 whose name does not start with the host triplet.  If you think this
50015 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
50016 ac_tool_warned=yes ;;
50017 esac
50018     NM=$ac_ct_NM
50019   fi
50020 else
50021   NM="$ac_cv_prog_NM"
50022 fi
50023
50024
50025             { echo "$as_me:$LINENO: checking for command to install directories" >&5
50026 echo $ECHO_N "checking for command to install directories... $ECHO_C" >&6; }
50027     INSTALL_TEST_DIR=acbftest$$
50028     $INSTALL -d $INSTALL_TEST_DIR > /dev/null 2>&1
50029     if test $? = 0 -a -d $INSTALL_TEST_DIR; then
50030         rmdir $INSTALL_TEST_DIR
50031                         INSTALL_DIR='$(INSTALL) -d'
50032         { echo "$as_me:$LINENO: result: $INSTALL -d" >&5
50033 echo "${ECHO_T}$INSTALL -d" >&6; }
50034     else
50035         INSTALL_DIR="mkdir -p"
50036         { echo "$as_me:$LINENO: result: mkdir -p" >&5
50037 echo "${ECHO_T}mkdir -p" >&6; }
50038     fi
50039
50040
50041     LDFLAGS_GUI=
50042     case ${BAKEFILE_HOST} in
50043         *-*-cygwin* | *-*-mingw32* )
50044         LDFLAGS_GUI="-mwindows"
50045     esac
50046
50047
50048     fi
50049
50050         { echo "$as_me:$LINENO: checking if make is GNU make" >&5
50051 echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6; }
50052 if test "${bakefile_cv_prog_makeisgnu+set}" = set; then
50053   echo $ECHO_N "(cached) $ECHO_C" >&6
50054 else
50055
50056         if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
50057                 egrep -s GNU > /dev/null); then
50058             bakefile_cv_prog_makeisgnu="yes"
50059         else
50060             bakefile_cv_prog_makeisgnu="no"
50061         fi
50062
50063 fi
50064 { echo "$as_me:$LINENO: result: $bakefile_cv_prog_makeisgnu" >&5
50065 echo "${ECHO_T}$bakefile_cv_prog_makeisgnu" >&6; }
50066
50067     if test "x$bakefile_cv_prog_makeisgnu" = "xyes"; then
50068         IF_GNU_MAKE=""
50069     else
50070         IF_GNU_MAKE="#"
50071     fi
50072
50073
50074
50075     PLATFORM_UNIX=0
50076     PLATFORM_WIN32=0
50077     PLATFORM_MSDOS=0
50078     PLATFORM_MAC=0
50079     PLATFORM_MACOS=0
50080     PLATFORM_MACOSX=0
50081     PLATFORM_OS2=0
50082     PLATFORM_BEOS=0
50083
50084     if test "x$BAKEFILE_FORCE_PLATFORM" = "x"; then
50085         case "${BAKEFILE_HOST}" in
50086             *-*-mingw32* )
50087                 PLATFORM_WIN32=1
50088             ;;
50089             *-pc-msdosdjgpp )
50090                 PLATFORM_MSDOS=1
50091             ;;
50092             *-pc-os2_emx | *-pc-os2-emx )
50093                 PLATFORM_OS2=1
50094             ;;
50095             *-*-darwin* )
50096                 PLATFORM_MAC=1
50097                 PLATFORM_MACOSX=1
50098             ;;
50099             *-*-beos* )
50100                 PLATFORM_BEOS=1
50101             ;;
50102             powerpc-apple-macos* )
50103                 PLATFORM_MAC=1
50104                 PLATFORM_MACOS=1
50105             ;;
50106             * )
50107                 PLATFORM_UNIX=1
50108             ;;
50109         esac
50110     else
50111         case "$BAKEFILE_FORCE_PLATFORM" in
50112             win32 )
50113                 PLATFORM_WIN32=1
50114             ;;
50115             msdos )
50116                 PLATFORM_MSDOS=1
50117             ;;
50118             os2 )
50119                 PLATFORM_OS2=1
50120             ;;
50121             darwin )
50122                 PLATFORM_MAC=1
50123                 PLATFORM_MACOSX=1
50124             ;;
50125             unix )
50126                 PLATFORM_UNIX=1
50127             ;;
50128             beos )
50129                 PLATFORM_BEOS=1
50130             ;;
50131             * )
50132                 { { echo "$as_me:$LINENO: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&5
50133 echo "$as_me: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&2;}
50134    { (exit 1); exit 1; }; }
50135             ;;
50136         esac
50137     fi
50138
50139
50140
50141
50142
50143
50144
50145
50146
50147
50148
50149     # Check whether --enable-omf was given.
50150 if test "${enable_omf+set}" = set; then
50151   enableval=$enable_omf; bk_os2_use_omf="$enableval"
50152 fi
50153
50154
50155     case "${BAKEFILE_HOST}" in
50156       *-*-darwin* )
50157                         if test "x$GCC" = "xyes"; then
50158             CFLAGS="$CFLAGS -fno-common"
50159             CXXFLAGS="$CXXFLAGS -fno-common"
50160         fi
50161         if test "x$XLCC" = "xyes"; then
50162             CFLAGS="$CFLAGS -qnocommon"
50163             CXXFLAGS="$CXXFLAGS -qnocommon"
50164         fi
50165         ;;
50166
50167       *-pc-os2_emx | *-pc-os2-emx )
50168         if test "x$bk_os2_use_omf" = "xyes" ; then
50169             AR=emxomfar
50170             RANLIB=:
50171             LDFLAGS="-Zomf $LDFLAGS"
50172             CFLAGS="-Zomf $CFLAGS"
50173             CXXFLAGS="-Zomf $CXXFLAGS"
50174             OS2_LIBEXT="lib"
50175         else
50176             OS2_LIBEXT="a"
50177         fi
50178         ;;
50179
50180       i*86-*-beos* )
50181         LDFLAGS="-L/boot/develop/lib/x86 $LDFLAGS"
50182         ;;
50183     esac
50184
50185
50186     SO_SUFFIX="so"
50187     SO_SUFFIX_MODULE="so"
50188     EXEEXT=""
50189     LIBPREFIX="lib"
50190     LIBEXT=".a"
50191     DLLPREFIX="lib"
50192     DLLPREFIX_MODULE=""
50193     DLLIMP_SUFFIX=""
50194     dlldir="$libdir"
50195
50196     case "${BAKEFILE_HOST}" in
50197                         ia64-hp-hpux* )
50198         ;;
50199         *-hp-hpux* )
50200             SO_SUFFIX="sl"
50201             SO_SUFFIX_MODULE="sl"
50202         ;;
50203         *-*-aix* )
50204                                                                         SO_SUFFIX="a"
50205             SO_SUFFIX_MODULE="a"
50206         ;;
50207         *-*-cygwin* )
50208             SO_SUFFIX="dll"
50209             SO_SUFFIX_MODULE="dll"
50210             DLLIMP_SUFFIX="dll.a"
50211             EXEEXT=".exe"
50212             DLLPREFIX="cyg"
50213             dlldir="$bindir"
50214         ;;
50215         *-*-mingw32* )
50216             SO_SUFFIX="dll"
50217             SO_SUFFIX_MODULE="dll"
50218             DLLIMP_SUFFIX="dll.a"
50219             EXEEXT=".exe"
50220             DLLPREFIX=""
50221             dlldir="$bindir"
50222         ;;
50223         *-pc-msdosdjgpp )
50224             EXEEXT=".exe"
50225             DLLPREFIX=""
50226             dlldir="$bindir"
50227         ;;
50228         *-pc-os2_emx | *-pc-os2-emx )
50229             SO_SUFFIX="dll"
50230             SO_SUFFIX_MODULE="dll"
50231             DLLIMP_SUFFIX=$OS2_LIBEXT
50232             EXEEXT=".exe"
50233             DLLPREFIX=""
50234             LIBPREFIX=""
50235             LIBEXT=".$OS2_LIBEXT"
50236             dlldir="$bindir"
50237         ;;
50238         *-*-darwin* )
50239             SO_SUFFIX="dylib"
50240             SO_SUFFIX_MODULE="bundle"
50241         ;;
50242     esac
50243
50244     if test "x$DLLIMP_SUFFIX" = "x" ; then
50245         DLLIMP_SUFFIX="$SO_SUFFIX"
50246     fi
50247
50248
50249
50250
50251
50252
50253
50254
50255
50256
50257
50258
50259         PIC_FLAG=""
50260     if test "x$GCC" = "xyes"; then
50261                 PIC_FLAG="-fPIC"
50262     fi
50263
50264         SHARED_LD_CC="\$(CC) -shared ${PIC_FLAG} -o"
50265     SHARED_LD_CXX="\$(CXX) -shared ${PIC_FLAG} -o"
50266     WINDOWS_IMPLIB=0
50267
50268     case "${BAKEFILE_HOST}" in
50269       *-hp-hpux* )
50270                 if test "x$GCC" != "xyes"; then
50271                         LDFLAGS="$LDFLAGS -L/usr/lib"
50272
50273             SHARED_LD_CC="${CC} -b -o"
50274             SHARED_LD_CXX="${CXX} -b -o"
50275             PIC_FLAG="+Z"
50276         fi
50277       ;;
50278
50279       *-*-linux* )
50280                         if test "$INTELCC" = "yes" -a "$INTELCC8" != "yes"; then
50281             PIC_FLAG="-KPIC"
50282         elif test "x$SUNCXX" = "xyes"; then
50283             SHARED_LD_CC="${CC} -G -o"
50284             SHARED_LD_CXX="${CXX} -G -o"
50285             PIC_FLAG="-KPIC"
50286         fi
50287       ;;
50288
50289       *-*-solaris2* )
50290         if test "x$SUNCXX" = xyes ; then
50291             SHARED_LD_CC="${CC} -G -o"
50292             SHARED_LD_CXX="${CXX} -G -o"
50293             PIC_FLAG="-KPIC"
50294         fi
50295       ;;
50296
50297       *-*-darwin* )
50298
50299 D='$'
50300 cat <<EOF >shared-ld-sh
50301 #!/bin/sh
50302 #-----------------------------------------------------------------------------
50303 #-- Name:        distrib/mac/shared-ld-sh
50304 #-- Purpose:     Link a mach-o dynamic shared library for Darwin / Mac OS X
50305 #-- Author:      Gilles Depeyrot
50306 #-- Copyright:   (c) 2002 Gilles Depeyrot
50307 #-- Licence:     any use permitted
50308 #-----------------------------------------------------------------------------
50309
50310 verbose=0
50311 args=""
50312 objects=""
50313 linking_flag="-dynamiclib"
50314 ldargs="-r -keep_private_externs -nostdlib"
50315
50316 if test "x${D}CXX" = "x"; then
50317     CXX="c++"
50318 fi
50319
50320 while test ${D}# -gt 0; do
50321     case ${D}1 in
50322
50323        -v)
50324         verbose=1
50325         ;;
50326
50327        -o|-compatibility_version|-current_version|-framework|-undefined|-install_name)
50328         # collect these options and values
50329         args="${D}{args} ${D}1 ${D}2"
50330         shift
50331         ;;
50332
50333        -arch|-isysroot)
50334         # collect these options and values
50335         ldargs="${D}{ldargs} ${D}1 ${D}2"
50336         shift
50337         ;;
50338
50339        -s|-Wl,*)
50340         # collect these load args
50341         ldargs="${D}{ldargs} ${D}1"
50342         ;;
50343
50344        -l*|-L*|-flat_namespace|-headerpad_max_install_names)
50345         # collect these options
50346         args="${D}{args} ${D}1"
50347         ;;
50348
50349        -dynamiclib|-bundle)
50350         linking_flag="${D}1"
50351         ;;
50352
50353        -*)
50354         echo "shared-ld: unhandled option '${D}1'"
50355         exit 1
50356         ;;
50357
50358         *.o | *.a | *.dylib)
50359         # collect object files
50360         objects="${D}{objects} ${D}1"
50361         ;;
50362
50363         *)
50364         echo "shared-ld: unhandled argument '${D}1'"
50365         exit 1
50366         ;;
50367
50368     esac
50369     shift
50370 done
50371
50372 status=0
50373
50374 #
50375 # Link one module containing all the others
50376 #
50377 if test ${D}{verbose} = 1; then
50378     echo "${D}CXX ${D}{ldargs} ${D}{objects} -o master.${D}${D}.o"
50379 fi
50380 ${D}CXX ${D}{ldargs} ${D}{objects} -o master.${D}${D}.o
50381 status=${D}?
50382
50383 #
50384 # Link the shared library from the single module created, but only if the
50385 # previous command didn't fail:
50386 #
50387 if test ${D}{status} = 0; then
50388     if test ${D}{verbose} = 1; then
50389         echo "${D}CXX ${D}{linking_flag} master.${D}${D}.o ${D}{args}"
50390     fi
50391     ${D}CXX ${D}{linking_flag} master.${D}${D}.o ${D}{args}
50392     status=${D}?
50393 fi
50394
50395 #
50396 # Remove intermediate module
50397 #
50398 rm -f master.${D}${D}.o
50399
50400 exit ${D}status
50401 EOF
50402
50403         chmod +x shared-ld-sh
50404
50405         SHARED_LD_MODULE_CC="`pwd`/shared-ld-sh -bundle -headerpad_max_install_names -o"
50406         SHARED_LD_MODULE_CXX="CXX=\"\$(CXX)\" $SHARED_LD_MODULE_CC"
50407
50408
50409                                 { echo "$as_me:$LINENO: checking for gcc 3.1 or later" >&5
50410 echo $ECHO_N "checking for gcc 3.1 or later... $ECHO_C" >&6; }
50411 if test "${bakefile_cv_gcc31+set}" = set; then
50412   echo $ECHO_N "(cached) $ECHO_C" >&6
50413 else
50414
50415            cat >conftest.$ac_ext <<_ACEOF
50416 /* confdefs.h.  */
50417 _ACEOF
50418 cat confdefs.h >>conftest.$ac_ext
50419 cat >>conftest.$ac_ext <<_ACEOF
50420 /* end confdefs.h.  */
50421
50422 int
50423 main ()
50424 {
50425
50426                    #if (__GNUC__ < 3) || \
50427                        ((__GNUC__ == 3) && (__GNUC_MINOR__ < 1))
50428                        This is old gcc
50429                    #endif
50430
50431   ;
50432   return 0;
50433 }
50434 _ACEOF
50435 rm -f conftest.$ac_objext
50436 if { (ac_try="$ac_compile"
50437 case "(($ac_try" in
50438   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50439   *) ac_try_echo=$ac_try;;
50440 esac
50441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
50442   (eval "$ac_compile") 2>conftest.er1
50443   ac_status=$?
50444   grep -v '^ *+' conftest.er1 >conftest.err
50445   rm -f conftest.er1
50446   cat conftest.err >&5
50447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50448   (exit $ac_status); } && {
50449          test -z "$ac_c_werror_flag" ||
50450          test ! -s conftest.err
50451        } && test -s conftest.$ac_objext; then
50452
50453                    bakefile_cv_gcc31=yes
50454
50455 else
50456   echo "$as_me: failed program was:" >&5
50457 sed 's/^/| /' conftest.$ac_ext >&5
50458
50459
50460                    bakefile_cv_gcc31=no
50461
50462
50463 fi
50464
50465 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
50466
50467 fi
50468 { echo "$as_me:$LINENO: result: $bakefile_cv_gcc31" >&5
50469 echo "${ECHO_T}$bakefile_cv_gcc31" >&6; }
50470         if test "$bakefile_cv_gcc31" = "no"; then
50471                         SHARED_LD_CC="`pwd`/shared-ld-sh -dynamiclib -headerpad_max_install_names -o"
50472             SHARED_LD_CXX="$SHARED_LD_CC"
50473         else
50474                         SHARED_LD_CC="\${CC} -dynamiclib -single_module -headerpad_max_install_names -o"
50475             SHARED_LD_CXX="\${CXX} -dynamiclib -single_module -headerpad_max_install_names -o"
50476         fi
50477
50478         if test "x$GCC" == "xyes"; then
50479             PIC_FLAG="-dynamic -fPIC"
50480         fi
50481         if test "x$XLCC" = "xyes"; then
50482             PIC_FLAG="-dynamic -DPIC"
50483         fi
50484       ;;
50485
50486       *-*-aix* )
50487         if test "x$GCC" = "xyes"; then
50488                                                             PIC_FLAG=""
50489
50490                                                                                     case "${BAKEFILE_HOST}" in
50491                 *-*-aix5* )
50492                     LD_EXPFULL="-Wl,-bexpfull"
50493                     ;;
50494             esac
50495
50496             SHARED_LD_CC="\$(CC) -shared $LD_EXPFULL -o"
50497             SHARED_LD_CXX="\$(CXX) -shared $LD_EXPFULL -o"
50498         else
50499                                     # Extract the first word of "makeC++SharedLib", so it can be a program name with args.
50500 set dummy makeC++SharedLib; ac_word=$2
50501 { echo "$as_me:$LINENO: checking for $ac_word" >&5
50502 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
50503 if test "${ac_cv_prog_AIX_CXX_LD+set}" = set; then
50504   echo $ECHO_N "(cached) $ECHO_C" >&6
50505 else
50506   if test -n "$AIX_CXX_LD"; then
50507   ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test.
50508 else
50509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
50510 for as_dir in $PATH
50511 do
50512   IFS=$as_save_IFS
50513   test -z "$as_dir" && as_dir=.
50514   for ac_exec_ext in '' $ac_executable_extensions; do
50515   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
50516     ac_cv_prog_AIX_CXX_LD="makeC++SharedLib"
50517     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
50518     break 2
50519   fi
50520 done
50521 done
50522 IFS=$as_save_IFS
50523
50524   test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib"
50525 fi
50526 fi
50527 AIX_CXX_LD=$ac_cv_prog_AIX_CXX_LD
50528 if test -n "$AIX_CXX_LD"; then
50529   { echo "$as_me:$LINENO: result: $AIX_CXX_LD" >&5
50530 echo "${ECHO_T}$AIX_CXX_LD" >&6; }
50531 else
50532   { echo "$as_me:$LINENO: result: no" >&5
50533 echo "${ECHO_T}no" >&6; }
50534 fi
50535
50536
50537             SHARED_LD_CC="$AIX_CC_LD -p 0 -o"
50538             SHARED_LD_CXX="$AIX_CXX_LD -p 0 -o"
50539         fi
50540       ;;
50541
50542       *-*-beos* )
50543                         SHARED_LD_CC="${LD} -nostart -o"
50544         SHARED_LD_CXX="${LD} -nostart -o"
50545       ;;
50546
50547       *-*-irix* )
50548                 if test "x$GCC" != "xyes"; then
50549             PIC_FLAG="-KPIC"
50550         fi
50551       ;;
50552
50553       *-*-cygwin* | *-*-mingw32* )
50554         PIC_FLAG=""
50555         SHARED_LD_CC="\$(CC) -shared -o"
50556         SHARED_LD_CXX="\$(CXX) -shared -o"
50557         WINDOWS_IMPLIB=1
50558       ;;
50559
50560       *-pc-os2_emx | *-pc-os2-emx )
50561         SHARED_LD_CC="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
50562         SHARED_LD_CXX="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
50563         PIC_FLAG=""
50564
50565 D='$'
50566 cat <<EOF >dllar.sh
50567 #!/bin/sh
50568 #
50569 # dllar - a tool to build both a .dll and an .a file
50570 # from a set of object (.o) files for EMX/OS2.
50571 #
50572 #  Written by Andrew Zabolotny, bit@freya.etu.ru
50573 #  Ported to Unix like shell by Stefan Neis, Stefan.Neis@t-online.de
50574 #
50575 #  This script will accept a set of files on the command line.
50576 #  All the public symbols from the .o files will be exported into
50577 #  a .DEF file, then linker will be run (through gcc) against them to
50578 #  build a shared library consisting of all given .o files. All libraries
50579 #  (.a) will be first decompressed into component .o files then act as
50580 #  described above. You can optionally give a description (-d "description")
50581 #  which will be put into .DLL. To see the list of accepted options (as well
50582 #  as command-line format) simply run this program without options. The .DLL
50583 #  is built to be imported by name (there is no guarantee that new versions
50584 #  of the library you build will have same ordinals for same symbols).
50585 #
50586 #  dllar is free software; you can redistribute it and/or modify
50587 #  it under the terms of the GNU General Public License as published by
50588 #  the Free Software Foundation; either version 2, or (at your option)
50589 #  any later version.
50590 #
50591 #  dllar is distributed in the hope that it will be useful,
50592 #  but WITHOUT ANY WARRANTY; without even the implied warranty of
50593 #  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
50594 #  GNU General Public License for more details.
50595 #
50596 #  You should have received a copy of the GNU General Public License
50597 #  along with dllar; see the file COPYING.  If not, write to the Free
50598 #  Software Foundation, 59 Temple Place - Suite 330, Boston, MA
50599 #  02111-1307, USA.
50600
50601 # To successfuly run this program you will need:
50602 #  - Current drive should have LFN support (HPFS, ext2, network, etc)
50603 #    (Sometimes dllar generates filenames which won't fit 8.3 scheme)
50604 #  - gcc
50605 #    (used to build the .dll)
50606 #  - emxexp
50607 #    (used to create .def file from .o files)
50608 #  - emximp
50609 #    (used to create .a file from .def file)
50610 #  - GNU text utilites (cat, sort, uniq)
50611 #    used to process emxexp output
50612 #  - GNU file utilities (mv, rm)
50613 #  - GNU sed
50614 #  - lxlite (optional, see flag below)
50615 #    (used for general .dll cleanup)
50616 #
50617
50618 flag_USE_LXLITE=1;
50619
50620 #
50621 # helper functions
50622 # basnam, variant of basename, which does _not_ remove the path, _iff_
50623 #                              second argument (suffix to remove) is given
50624 basnam(){
50625     case ${D}# in
50626     1)
50627         echo ${D}1 | sed 's/.*\\///' | sed 's/.*\\\\//'
50628         ;;
50629     2)
50630         echo ${D}1 | sed 's/'${D}2'${D}//'
50631         ;;
50632     *)
50633         echo "error in basnam ${D}*"
50634         exit 8
50635         ;;
50636     esac
50637 }
50638
50639 # Cleanup temporary files and output
50640 CleanUp() {
50641     cd ${D}curDir
50642     for i in ${D}inputFiles ; do
50643         case ${D}i in
50644         *!)
50645             rm -rf \`basnam ${D}i !\`
50646             ;;
50647         *)
50648             ;;
50649         esac
50650     done
50651
50652     # Kill result in case of failure as there is just to many stupid make/nmake
50653     # things out there which doesn't do this.
50654     if [ ${D}# -eq 0 ]; then
50655         rm -f ${D}arcFile ${D}arcFile2 ${D}defFile ${D}dllFile
50656     fi
50657 }
50658
50659 # Print usage and exit script with rc=1.
50660 PrintHelp() {
50661  echo 'Usage: dllar.sh [-o[utput] output_file] [-i[mport] importlib_name]'
50662  echo '       [-name-mangler-script script.sh]'
50663  echo '       [-d[escription] "dll descrption"] [-cc "CC"] [-f[lags] "CFLAGS"]'
50664  echo '       [-ord[inals]] -ex[clude] "symbol(s)"'
50665  echo '       [-libf[lags] "{INIT|TERM}{GLOBAL|INSTANCE}"] [-nocrt[dll]] [-nolxl[ite]]'
50666  echo '       [*.o] [*.a]'
50667  echo '*> "output_file" should have no extension.'
50668  echo '   If it has the .o, .a or .dll extension, it is automatically removed.'
50669  echo '   The import library name is derived from this and is set to "name".a,'
50670  echo '   unless overridden by -import'
50671  echo '*> "importlib_name" should have no extension.'
50672  echo '   If it has the .o, or .a extension, it is automatically removed.'
50673  echo '   This name is used as the import library name and may be longer and'
50674  echo '   more descriptive than the DLL name which has to follow the old '
50675  echo '   8.3 convention of FAT.'
50676  echo '*> "script.sh may be given to override the output_file name by a'
50677  echo '   different name. It is mainly useful if the regular make process'
50678  echo '   of some package does not take into account OS/2 restriction of'
50679  echo '   DLL name lengths. It takes the importlib name as input and is'
50680  echo '   supposed to procude a shorter name as output. The script should'
50681  echo '   expect to get importlib_name without extension and should produce'
50682  echo '   a (max.) 8 letter name without extension.'
50683  echo '*> "cc" is used to use another GCC executable.   (default: gcc.exe)'
50684  echo '*> "flags" should be any set of valid GCC flags. (default: -s -Zcrtdll)'
50685  echo '   These flags will be put at the start of GCC command line.'
50686  echo '*> -ord[inals] tells dllar to export entries by ordinals. Be careful.'
50687  echo '*> -ex[clude] defines symbols which will not be exported. You can define'
50688  echo '   multiple symbols, for example -ex "myfunc yourfunc _GLOBAL*".'
50689  echo '   If the last character of a symbol is "*", all symbols beginning'
50690  echo '   with the prefix before "*" will be exclude, (see _GLOBAL* above).'
50691  echo '*> -libf[lags] can be used to add INITGLOBAL/INITINSTANCE and/or'
50692  echo '   TERMGLOBAL/TERMINSTANCE flags to the dynamically-linked library.'
50693  echo '*> -nocrt[dll] switch will disable linking the library against emx''s'
50694  echo '   C runtime DLLs.'
50695  echo '*> -nolxl[ite] switch will disable running lxlite on the resulting DLL.'
50696  echo '*> All other switches (for example -L./ or -lmylib) will be passed'
50697  echo '   unchanged to GCC at the end of command line.'
50698  echo '*> If you create a DLL from a library and you do not specify -o,'
50699  echo '   the basename for DLL and import library will be set to library name,'
50700  echo '   the initial library will be renamed to 'name'_s.a (_s for static)'
50701  echo '   i.e. "dllar gcc.a" will create gcc.dll and gcc.a, and the initial'
50702  echo '   library will be renamed into gcc_s.a.'
50703  echo '--------'
50704  echo 'Example:'
50705  echo '   dllar -o gcc290.dll libgcc.a -d "GNU C runtime library" -ord'
50706  echo '    -ex "__main __ctordtor*" -libf "INITINSTANCE TERMINSTANCE"'
50707  CleanUp
50708  exit 1
50709 }
50710
50711 # Execute a command.
50712 # If exit code of the commnad <> 0 CleanUp() is called and we'll exit the script.
50713 # @Uses    Whatever CleanUp() uses.
50714 doCommand() {
50715     echo "${D}*"
50716     eval ${D}*
50717     rcCmd=${D}?
50718
50719     if [ ${D}rcCmd -ne 0 ]; then
50720         echo "command failed, exit code="${D}rcCmd
50721         CleanUp
50722         exit ${D}rcCmd
50723     fi
50724 }
50725
50726 # main routine
50727 # setup globals
50728 cmdLine=${D}*
50729 outFile=""
50730 outimpFile=""
50731 inputFiles=""
50732 renameScript=""
50733 description=""
50734 CC=gcc.exe
50735 CFLAGS="-s -Zcrtdll"
50736 EXTRA_CFLAGS=""
50737 EXPORT_BY_ORDINALS=0
50738 exclude_symbols=""
50739 library_flags=""
50740 curDir=\`pwd\`
50741 curDirS=curDir
50742 case ${D}curDirS in
50743 */)
50744   ;;
50745 *)
50746   curDirS=${D}{curDirS}"/"
50747   ;;
50748 esac
50749 # Parse commandline
50750 libsToLink=0
50751 omfLinking=0
50752 while [ ${D}1 ]; do
50753     case ${D}1 in
50754     -ord*)
50755         EXPORT_BY_ORDINALS=1;
50756         ;;
50757     -o*)
50758         shift
50759         outFile=${D}1
50760         ;;
50761     -i*)
50762         shift
50763         outimpFile=${D}1
50764         ;;
50765     -name-mangler-script)
50766         shift
50767         renameScript=${D}1
50768         ;;
50769     -d*)
50770         shift
50771         description=${D}1
50772         ;;
50773     -f*)
50774         shift
50775         CFLAGS=${D}1
50776         ;;
50777     -c*)
50778         shift
50779         CC=${D}1
50780         ;;
50781     -h*)
50782         PrintHelp
50783         ;;
50784     -ex*)
50785         shift
50786         exclude_symbols=${D}{exclude_symbols}${D}1" "
50787         ;;
50788     -libf*)
50789         shift
50790         library_flags=${D}{library_flags}${D}1" "
50791         ;;
50792     -nocrt*)
50793         CFLAGS="-s"
50794         ;;
50795     -nolxl*)
50796         flag_USE_LXLITE=0
50797         ;;
50798     -* | /*)
50799         case ${D}1 in
50800         -L* | -l*)
50801             libsToLink=1
50802             ;;
50803         -Zomf)
50804             omfLinking=1
50805             ;;
50806         *)
50807             ;;
50808         esac
50809         EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
50810         ;;
50811     *.dll)
50812         EXTRA_CFLAGS="${D}{EXTRA_CFLAGS} \`basnam ${D}1 .dll\`"
50813         if [ ${D}omfLinking -eq 1 ]; then
50814             EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.lib"
50815         else
50816             EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.a"
50817         fi
50818         ;;
50819     *)
50820         found=0;
50821         if [ ${D}libsToLink -ne 0 ]; then
50822             EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
50823         else
50824             for file in ${D}1 ; do
50825                 if [ -f ${D}file ]; then
50826                     inputFiles="${D}{inputFiles} ${D}file"
50827                     found=1
50828                 fi
50829             done
50830             if [ ${D}found -eq 0 ]; then
50831                 echo "ERROR: No file(s) found: "${D}1
50832                 exit 8
50833             fi
50834         fi
50835       ;;
50836     esac
50837     shift
50838 done # iterate cmdline words
50839
50840 #
50841 if [ -z "${D}inputFiles" ]; then
50842     echo "dllar: no input files"
50843     PrintHelp
50844 fi
50845
50846 # Now extract all .o files from .a files
50847 newInputFiles=""
50848 for file in ${D}inputFiles ; do
50849     case ${D}file in
50850     *.a | *.lib)
50851         case ${D}file in
50852         *.a)
50853             suffix=".a"
50854             AR="ar"
50855             ;;
50856         *.lib)
50857             suffix=".lib"
50858             AR="emxomfar"
50859             EXTRA_CFLAGS="${D}EXTRA_CFLAGS -Zomf"
50860             ;;
50861         *)
50862             ;;
50863         esac
50864         dirname=\`basnam ${D}file ${D}suffix\`"_%"
50865         mkdir ${D}dirname
50866         if [ ${D}? -ne 0 ]; then
50867             echo "Failed to create subdirectory ./${D}dirname"
50868             CleanUp
50869             exit 8;
50870         fi
50871         # Append '!' to indicate archive
50872         newInputFiles="${D}newInputFiles ${D}{dirname}!"
50873         doCommand "cd ${D}dirname; ${D}AR x ../${D}file"
50874         cd ${D}curDir
50875         found=0;
50876         for subfile in ${D}dirname/*.o* ; do
50877             if [ -f ${D}subfile ]; then
50878                 found=1
50879                 if [ -s ${D}subfile ]; then
50880                     # FIXME: This should be: is file size > 32 byte, _not_ > 0!
50881                     newInputFiles="${D}newInputFiles ${D}subfile"
50882                 fi
50883             fi
50884         done
50885         if [ ${D}found -eq 0 ]; then
50886             echo "WARNING: there are no files in archive \\'${D}file\\'"
50887         fi
50888         ;;
50889     *)
50890         newInputFiles="${D}{newInputFiles} ${D}file"
50891         ;;
50892     esac
50893 done
50894 inputFiles="${D}newInputFiles"
50895
50896 # Output filename(s).
50897 do_backup=0;
50898 if [ -z ${D}outFile ]; then
50899     do_backup=1;
50900     set outFile ${D}inputFiles; outFile=${D}2
50901 fi
50902
50903 # If it is an archive, remove the '!' and the '_%' suffixes
50904 case ${D}outFile in
50905 *_%!)
50906     outFile=\`basnam ${D}outFile _%!\`
50907     ;;
50908 *)
50909     ;;
50910 esac
50911 case ${D}outFile in
50912 *.dll)
50913     outFile=\`basnam ${D}outFile .dll\`
50914     ;;
50915 *.DLL)
50916     outFile=\`basnam ${D}outFile .DLL\`
50917     ;;
50918 *.o)
50919     outFile=\`basnam ${D}outFile .o\`
50920     ;;
50921 *.obj)
50922     outFile=\`basnam ${D}outFile .obj\`
50923     ;;
50924 *.a)
50925     outFile=\`basnam ${D}outFile .a\`
50926     ;;
50927 *.lib)
50928     outFile=\`basnam ${D}outFile .lib\`
50929     ;;
50930 *)
50931     ;;
50932 esac
50933 case ${D}outimpFile in
50934 *.a)
50935     outimpFile=\`basnam ${D}outimpFile .a\`
50936     ;;
50937 *.lib)
50938     outimpFile=\`basnam ${D}outimpFile .lib\`
50939     ;;
50940 *)
50941     ;;
50942 esac
50943 if [ -z ${D}outimpFile ]; then
50944     outimpFile=${D}outFile
50945 fi
50946 defFile="${D}{outFile}.def"
50947 arcFile="${D}{outimpFile}.a"
50948 arcFile2="${D}{outimpFile}.lib"
50949
50950 #create ${D}dllFile as something matching 8.3 restrictions,
50951 if [ -z ${D}renameScript ] ; then
50952     dllFile="${D}outFile"
50953 else
50954     dllFile=\`${D}renameScript ${D}outimpFile\`
50955 fi
50956
50957 if [ ${D}do_backup -ne 0 ] ; then
50958     if [ -f ${D}arcFile ] ; then
50959         doCommand "mv ${D}arcFile ${D}{outFile}_s.a"
50960     fi
50961     if [ -f ${D}arcFile2 ] ; then
50962         doCommand "mv ${D}arcFile2 ${D}{outFile}_s.lib"
50963     fi
50964 fi
50965
50966 # Extract public symbols from all the object files.
50967 tmpdefFile=${D}{defFile}_%
50968 rm -f ${D}tmpdefFile
50969 for file in ${D}inputFiles ; do
50970     case ${D}file in
50971     *!)
50972         ;;
50973     *)
50974         doCommand "emxexp -u ${D}file >> ${D}tmpdefFile"
50975         ;;
50976     esac
50977 done
50978
50979 # Create the def file.
50980 rm -f ${D}defFile
50981 echo "LIBRARY \`basnam ${D}dllFile\` ${D}library_flags" >> ${D}defFile
50982 dllFile="${D}{dllFile}.dll"
50983 if [ ! -z ${D}description ]; then
50984     echo "DESCRIPTION  \\"${D}{description}\\"" >> ${D}defFile
50985 fi
50986 echo "EXPORTS" >> ${D}defFile
50987
50988 doCommand "cat ${D}tmpdefFile | sort.exe | uniq.exe > ${D}{tmpdefFile}%"
50989 grep -v "^ *;" < ${D}{tmpdefFile}% | grep -v "^ *${D}" >${D}tmpdefFile
50990
50991 # Checks if the export is ok or not.
50992 for word in ${D}exclude_symbols; do
50993     grep -v ${D}word < ${D}tmpdefFile >${D}{tmpdefFile}%
50994     mv ${D}{tmpdefFile}% ${D}tmpdefFile
50995 done
50996
50997
50998 if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then
50999     sed "=" < ${D}tmpdefFile | \\
51000     sed '
51001       N
51002       : loop
51003       s/^\\([0-9]\\+\\)\\([^;]*\\)\\(;.*\\)\\?/\\2 @\\1 NONAME/
51004       t loop
51005     ' > ${D}{tmpdefFile}%
51006     grep -v "^ *${D}" < ${D}{tmpdefFile}% > ${D}tmpdefFile
51007 else
51008     rm -f ${D}{tmpdefFile}%
51009 fi
51010 cat ${D}tmpdefFile >> ${D}defFile
51011 rm -f ${D}tmpdefFile
51012
51013 # Do linking, create implib, and apply lxlite.
51014 gccCmdl="";
51015 for file in ${D}inputFiles ; do
51016     case ${D}file in
51017     *!)
51018         ;;
51019     *)
51020         gccCmdl="${D}gccCmdl ${D}file"
51021         ;;
51022     esac
51023 done
51024 doCommand "${D}CC ${D}CFLAGS -Zdll -o ${D}dllFile ${D}defFile ${D}gccCmdl ${D}EXTRA_CFLAGS"
51025 touch "${D}{outFile}.dll"
51026
51027 doCommand "emximp -o ${D}arcFile ${D}defFile"
51028 if [ ${D}flag_USE_LXLITE -ne 0 ]; then
51029     add_flags="";
51030     if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then
51031         add_flags="-ynd"
51032     fi
51033     doCommand "lxlite -cs -t: -mrn -mln ${D}add_flags ${D}dllFile"
51034 fi
51035 doCommand "emxomf -s -l ${D}arcFile"
51036
51037 # Successful exit.
51038 CleanUp 1
51039 exit 0
51040 EOF
51041
51042         chmod +x dllar.sh
51043       ;;
51044
51045       powerpc-apple-macos* | \
51046       *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | *-*-k*bsd*-gnu | \
51047       *-*-mirbsd* | \
51048       *-*-sunos4* | \
51049       *-*-osf* | \
51050       *-*-dgux5* | \
51051       *-*-sysv5* | \
51052       *-pc-msdosdjgpp )
51053               ;;
51054
51055       *)
51056         { { echo "$as_me:$LINENO: error: unknown system type $BAKEFILE_HOST." >&5
51057 echo "$as_me: error: unknown system type $BAKEFILE_HOST." >&2;}
51058    { (exit 1); exit 1; }; }
51059     esac
51060
51061     if test "x$PIC_FLAG" != "x" ; then
51062         PIC_FLAG="$PIC_FLAG -DPIC"
51063     fi
51064
51065     if test "x$SHARED_LD_MODULE_CC" = "x" ; then
51066         SHARED_LD_MODULE_CC="$SHARED_LD_CC"
51067     fi
51068     if test "x$SHARED_LD_MODULE_CXX" = "x" ; then
51069         SHARED_LD_MODULE_CXX="$SHARED_LD_CXX"
51070     fi
51071
51072
51073
51074
51075
51076
51077
51078
51079
51080     USE_SOVERSION=0
51081     USE_SOVERLINUX=0
51082     USE_SOVERSOLARIS=0
51083     USE_SOVERCYGWIN=0
51084     USE_SOTWOSYMLINKS=0
51085     USE_MACVERSION=0
51086     SONAME_FLAG=
51087
51088     case "${BAKEFILE_HOST}" in
51089       *-*-linux* | *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \
51090       *-*-k*bsd*-gnu | *-*-mirbsd* )
51091         if test "x$SUNCXX" = "xyes"; then
51092             SONAME_FLAG="-h "
51093         else
51094             SONAME_FLAG="-Wl,-soname,"
51095         fi
51096         USE_SOVERSION=1
51097         USE_SOVERLINUX=1
51098         USE_SOTWOSYMLINKS=1
51099       ;;
51100
51101       *-*-solaris2* )
51102         SONAME_FLAG="-h "
51103         USE_SOVERSION=1
51104         USE_SOVERSOLARIS=1
51105       ;;
51106
51107       *-*-darwin* )
51108         USE_MACVERSION=1
51109         USE_SOVERSION=1
51110         USE_SOTWOSYMLINKS=1
51111       ;;
51112
51113       *-*-cygwin* )
51114         USE_SOVERSION=1
51115         USE_SOVERCYGWIN=1
51116       ;;
51117     esac
51118
51119
51120
51121
51122
51123
51124
51125
51126
51127
51128     # Check whether --enable-dependency-tracking was given.
51129 if test "${enable_dependency_tracking+set}" = set; then
51130   enableval=$enable_dependency_tracking; bk_use_trackdeps="$enableval"
51131 fi
51132
51133
51134     { echo "$as_me:$LINENO: checking for dependency tracking method" >&5
51135 echo $ECHO_N "checking for dependency tracking method... $ECHO_C" >&6; }
51136
51137     BK_DEPS=""
51138     if test "x$bk_use_trackdeps" = "xno" ; then
51139         DEPS_TRACKING=0
51140         { echo "$as_me:$LINENO: result: disabled" >&5
51141 echo "${ECHO_T}disabled" >&6; }
51142     else
51143         DEPS_TRACKING=1
51144
51145         if test "x$GCC" = "xyes"; then
51146             DEPSMODE=gcc
51147             case "${BAKEFILE_HOST}" in
51148                 *-*-darwin* )
51149                                                             DEPSFLAG="-no-cpp-precomp -MMD"
51150                 ;;
51151                 * )
51152                     DEPSFLAG="-MMD"
51153                 ;;
51154             esac
51155             { echo "$as_me:$LINENO: result: gcc" >&5
51156 echo "${ECHO_T}gcc" >&6; }
51157         elif test "x$MWCC" = "xyes"; then
51158             DEPSMODE=mwcc
51159             DEPSFLAG="-MM"
51160             { echo "$as_me:$LINENO: result: mwcc" >&5
51161 echo "${ECHO_T}mwcc" >&6; }
51162         elif test "x$SUNCC" = "xyes"; then
51163             DEPSMODE=unixcc
51164             DEPSFLAG="-xM1"
51165             { echo "$as_me:$LINENO: result: Sun cc" >&5
51166 echo "${ECHO_T}Sun cc" >&6; }
51167         elif test "x$SGICC" = "xyes"; then
51168             DEPSMODE=unixcc
51169             DEPSFLAG="-M"
51170             { echo "$as_me:$LINENO: result: SGI cc" >&5
51171 echo "${ECHO_T}SGI cc" >&6; }
51172         elif test "x$HPCC" = "xyes"; then
51173             DEPSMODE=unixcc
51174             DEPSFLAG="+make"
51175             { echo "$as_me:$LINENO: result: HP cc" >&5
51176 echo "${ECHO_T}HP cc" >&6; }
51177         elif test "x$COMPAQCC" = "xyes"; then
51178             DEPSMODE=gcc
51179             DEPSFLAG="-MD"
51180             { echo "$as_me:$LINENO: result: Compaq cc" >&5
51181 echo "${ECHO_T}Compaq cc" >&6; }
51182         else
51183             DEPS_TRACKING=0
51184             { echo "$as_me:$LINENO: result: none" >&5
51185 echo "${ECHO_T}none" >&6; }
51186         fi
51187
51188         if test $DEPS_TRACKING = 1 ; then
51189
51190 D='$'
51191 cat <<EOF >bk-deps
51192 #!/bin/sh
51193
51194 # This script is part of Bakefile (http://www.bakefile.org) autoconf
51195 # script. It is used to track C/C++ files dependencies in portable way.
51196 #
51197 # Permission is given to use this file in any way.
51198
51199 DEPSMODE=${DEPSMODE}
51200 DEPSFLAG="${DEPSFLAG}"
51201 DEPSDIRBASE=.deps
51202
51203 if test ${D}DEPSMODE = gcc ; then
51204     ${D}* ${D}{DEPSFLAG}
51205     status=${D}?
51206
51207     # determine location of created files:
51208     while test ${D}# -gt 0; do
51209         case "${D}1" in
51210             -o )
51211                 shift
51212                 objfile=${D}1
51213             ;;
51214             -* )
51215             ;;
51216             * )
51217                 srcfile=${D}1
51218             ;;
51219         esac
51220         shift
51221     done
51222     objfilebase=\`basename ${D}objfile\`
51223     builddir=\`dirname ${D}objfile\`
51224     depfile=\`basename ${D}srcfile | sed -e 's/\\..*${D}/.d/g'\`
51225     depobjname=\`echo ${D}depfile |sed -e 's/\\.d/.o/g'\`
51226     depsdir=${D}builddir/${D}DEPSDIRBASE
51227     mkdir -p ${D}depsdir
51228
51229     # if the compiler failed, we're done:
51230     if test ${D}{status} != 0 ; then
51231         rm -f ${D}depfile
51232         exit ${D}{status}
51233     fi
51234
51235     # move created file to the location we want it in:
51236     if test -f ${D}depfile ; then
51237         sed -e "s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{depsdir}/${D}{objfilebase}.d
51238         rm -f ${D}depfile
51239     else
51240         # "g++ -MMD -o fooobj.o foosrc.cpp" produces fooobj.d
51241         depfile=\`echo "${D}objfile" | sed -e 's/\\..*${D}/.d/g'\`
51242         if test ! -f ${D}depfile ; then
51243             # "cxx -MD -o fooobj.o foosrc.cpp" creates fooobj.o.d (Compaq C++)
51244             depfile="${D}objfile.d"
51245         fi
51246         if test -f ${D}depfile ; then
51247             sed -e "\\,^${D}objfile,!s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{depsdir}/${D}{objfilebase}.d
51248             rm -f ${D}depfile
51249         fi
51250     fi
51251     exit 0
51252
51253 elif test ${D}DEPSMODE = mwcc ; then
51254     ${D}* || exit ${D}?
51255     # Run mwcc again with -MM and redirect into the dep file we want
51256     # NOTE: We can't use shift here because we need ${D}* to be valid
51257     prevarg=
51258     for arg in ${D}* ; do
51259         if test "${D}prevarg" = "-o"; then
51260             objfile=${D}arg
51261         else
51262             case "${D}arg" in
51263                 -* )
51264                 ;;
51265                 * )
51266                     srcfile=${D}arg
51267                 ;;
51268             esac
51269         fi
51270         prevarg="${D}arg"
51271     done
51272
51273     objfilebase=\`basename ${D}objfile\`
51274     builddir=\`dirname ${D}objfile\`
51275     depsdir=${D}builddir/${D}DEPSDIRBASE
51276     mkdir -p ${D}depsdir
51277
51278     ${D}* ${D}DEPSFLAG >${D}{depsdir}/${D}{objfilebase}.d
51279     exit 0
51280
51281 elif test ${D}DEPSMODE = unixcc; then
51282     ${D}* || exit ${D}?
51283     # Run compiler again with deps flag and redirect into the dep file.
51284     # It doesn't work if the '-o FILE' option is used, but without it the
51285     # dependency file will contain the wrong name for the object. So it is
51286     # removed from the command line, and the dep file is fixed with sed.
51287     cmd=""
51288     while test ${D}# -gt 0; do
51289         case "${D}1" in
51290             -o )
51291                 shift
51292                 objfile=${D}1
51293             ;;
51294             * )
51295                 eval arg${D}#=\\${D}1
51296                 cmd="${D}cmd \\${D}arg${D}#"
51297             ;;
51298         esac
51299         shift
51300     done
51301
51302     objfilebase=\`basename ${D}objfile\`
51303     builddir=\`dirname ${D}objfile\`
51304     depsdir=${D}builddir/${D}DEPSDIRBASE
51305     mkdir -p ${D}depsdir
51306
51307     eval "${D}cmd ${D}DEPSFLAG" | sed "s|.*:|${D}objfile:|" >${D}{depsdir}/${D}{objfilebase}.d
51308     exit 0
51309
51310 else
51311     ${D}*
51312     exit ${D}?
51313 fi
51314 EOF
51315
51316             chmod +x bk-deps
51317                                     BK_DEPS="`pwd`/bk-deps"
51318         fi
51319     fi
51320
51321
51322
51323
51324
51325     case ${BAKEFILE_HOST} in
51326         *-*-cygwin* | *-*-mingw32* )
51327                         if test -n "$ac_tool_prefix"; then
51328   # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
51329 set dummy ${ac_tool_prefix}windres; ac_word=$2
51330 { echo "$as_me:$LINENO: checking for $ac_word" >&5
51331 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
51332 if test "${ac_cv_prog_WINDRES+set}" = set; then
51333   echo $ECHO_N "(cached) $ECHO_C" >&6
51334 else
51335   if test -n "$WINDRES"; then
51336   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
51337 else
51338 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
51339 for as_dir in $PATH
51340 do
51341   IFS=$as_save_IFS
51342   test -z "$as_dir" && as_dir=.
51343   for ac_exec_ext in '' $ac_executable_extensions; do
51344   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
51345     ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
51346     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
51347     break 2
51348   fi
51349 done
51350 done
51351 IFS=$as_save_IFS
51352
51353 fi
51354 fi
51355 WINDRES=$ac_cv_prog_WINDRES
51356 if test -n "$WINDRES"; then
51357   { echo "$as_me:$LINENO: result: $WINDRES" >&5
51358 echo "${ECHO_T}$WINDRES" >&6; }
51359 else
51360   { echo "$as_me:$LINENO: result: no" >&5
51361 echo "${ECHO_T}no" >&6; }
51362 fi
51363
51364
51365 fi
51366 if test -z "$ac_cv_prog_WINDRES"; then
51367   ac_ct_WINDRES=$WINDRES
51368   # Extract the first word of "windres", so it can be a program name with args.
51369 set dummy windres; ac_word=$2
51370 { echo "$as_me:$LINENO: checking for $ac_word" >&5
51371 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
51372 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
51373   echo $ECHO_N "(cached) $ECHO_C" >&6
51374 else
51375   if test -n "$ac_ct_WINDRES"; then
51376   ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
51377 else
51378 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
51379 for as_dir in $PATH
51380 do
51381   IFS=$as_save_IFS
51382   test -z "$as_dir" && as_dir=.
51383   for ac_exec_ext in '' $ac_executable_extensions; do
51384   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
51385     ac_cv_prog_ac_ct_WINDRES="windres"
51386     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
51387     break 2
51388   fi
51389 done
51390 done
51391 IFS=$as_save_IFS
51392
51393 fi
51394 fi
51395 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
51396 if test -n "$ac_ct_WINDRES"; then
51397   { echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
51398 echo "${ECHO_T}$ac_ct_WINDRES" >&6; }
51399 else
51400   { echo "$as_me:$LINENO: result: no" >&5
51401 echo "${ECHO_T}no" >&6; }
51402 fi
51403
51404   if test "x$ac_ct_WINDRES" = x; then
51405     WINDRES=""
51406   else
51407     case $cross_compiling:$ac_tool_warned in
51408 yes:)
51409 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
51410 whose name does not start with the host triplet.  If you think this
51411 configuration is useful to you, please write to autoconf@gnu.org." >&5
51412 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
51413 whose name does not start with the host triplet.  If you think this
51414 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
51415 ac_tool_warned=yes ;;
51416 esac
51417     WINDRES=$ac_ct_WINDRES
51418   fi
51419 else
51420   WINDRES="$ac_cv_prog_WINDRES"
51421 fi
51422
51423          ;;
51424
51425       *-*-darwin* | powerpc-apple-macos* )
51426             # Extract the first word of "Rez", so it can be a program name with args.
51427 set dummy Rez; ac_word=$2
51428 { echo "$as_me:$LINENO: checking for $ac_word" >&5
51429 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
51430 if test "${ac_cv_prog_REZ+set}" = set; then
51431   echo $ECHO_N "(cached) $ECHO_C" >&6
51432 else
51433   if test -n "$REZ"; then
51434   ac_cv_prog_REZ="$REZ" # Let the user override the test.
51435 else
51436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
51437 for as_dir in $PATH
51438 do
51439   IFS=$as_save_IFS
51440   test -z "$as_dir" && as_dir=.
51441   for ac_exec_ext in '' $ac_executable_extensions; do
51442   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
51443     ac_cv_prog_REZ="Rez"
51444     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
51445     break 2
51446   fi
51447 done
51448 done
51449 IFS=$as_save_IFS
51450
51451   test -z "$ac_cv_prog_REZ" && ac_cv_prog_REZ="/Developer/Tools/Rez"
51452 fi
51453 fi
51454 REZ=$ac_cv_prog_REZ
51455 if test -n "$REZ"; then
51456   { echo "$as_me:$LINENO: result: $REZ" >&5
51457 echo "${ECHO_T}$REZ" >&6; }
51458 else
51459   { echo "$as_me:$LINENO: result: no" >&5
51460 echo "${ECHO_T}no" >&6; }
51461 fi
51462
51463
51464             # Extract the first word of "SetFile", so it can be a program name with args.
51465 set dummy SetFile; ac_word=$2
51466 { echo "$as_me:$LINENO: checking for $ac_word" >&5
51467 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
51468 if test "${ac_cv_prog_SETFILE+set}" = set; then
51469   echo $ECHO_N "(cached) $ECHO_C" >&6
51470 else
51471   if test -n "$SETFILE"; then
51472   ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
51473 else
51474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
51475 for as_dir in $PATH
51476 do
51477   IFS=$as_save_IFS
51478   test -z "$as_dir" && as_dir=.
51479   for ac_exec_ext in '' $ac_executable_extensions; do
51480   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
51481     ac_cv_prog_SETFILE="SetFile"
51482     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
51483     break 2
51484   fi
51485 done
51486 done
51487 IFS=$as_save_IFS
51488
51489   test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
51490 fi
51491 fi
51492 SETFILE=$ac_cv_prog_SETFILE
51493 if test -n "$SETFILE"; then
51494   { echo "$as_me:$LINENO: result: $SETFILE" >&5
51495 echo "${ECHO_T}$SETFILE" >&6; }
51496 else
51497   { echo "$as_me:$LINENO: result: no" >&5
51498 echo "${ECHO_T}no" >&6; }
51499 fi
51500
51501
51502         ;;
51503     esac
51504
51505
51506
51507
51508
51509
51510
51511
51512
51513     BAKEFILE_BAKEFILE_M4_VERSION="0.2.9"
51514
51515
51516 BAKEFILE_AUTOCONF_INC_M4_VERSION="0.2.9"
51517
51518
51519
51520     # Check whether --enable-precomp-headers was given.
51521 if test "${enable_precomp_headers+set}" = set; then
51522   enableval=$enable_precomp_headers; bk_use_pch="$enableval"
51523 fi
51524
51525
51526     GCC_PCH=0
51527     ICC_PCH=0
51528     USE_PCH=0
51529     BK_MAKE_PCH=""
51530
51531     case ${BAKEFILE_HOST} in
51532         *-*-cygwin* )
51533                                                 bk_use_pch="no"
51534             ;;
51535     esac
51536
51537     if test "x$bk_use_pch" = "x" -o "x$bk_use_pch" = "xyes" ; then
51538         if test "x$GCC" = "xyes"; then
51539                         { echo "$as_me:$LINENO: checking if the compiler supports precompiled headers" >&5
51540 echo $ECHO_N "checking if the compiler supports precompiled headers... $ECHO_C" >&6; }
51541             cat >conftest.$ac_ext <<_ACEOF
51542 /* confdefs.h.  */
51543 _ACEOF
51544 cat confdefs.h >>conftest.$ac_ext
51545 cat >>conftest.$ac_ext <<_ACEOF
51546 /* end confdefs.h.  */
51547
51548 int
51549 main ()
51550 {
51551
51552                     #if !defined(__GNUC__) || !defined(__GNUC_MINOR__)
51553                         There is no PCH support
51554                     #endif
51555                     #if (__GNUC__ < 3)
51556                         There is no PCH support
51557                     #endif
51558                     #if (__GNUC__ == 3) && \
51559                        ((!defined(__APPLE_CC__) && (__GNUC_MINOR__ < 4)) || \
51560                        ( defined(__APPLE_CC__) && (__GNUC_MINOR__ < 3))) || \
51561                        ( defined(__INTEL_COMPILER) )
51562                         There is no PCH support
51563                     #endif
51564
51565   ;
51566   return 0;
51567 }
51568 _ACEOF
51569 rm -f conftest.$ac_objext
51570 if { (ac_try="$ac_compile"
51571 case "(($ac_try" in
51572   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51573   *) ac_try_echo=$ac_try;;
51574 esac
51575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
51576   (eval "$ac_compile") 2>conftest.er1
51577   ac_status=$?
51578   grep -v '^ *+' conftest.er1 >conftest.err
51579   rm -f conftest.er1
51580   cat conftest.err >&5
51581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51582   (exit $ac_status); } && {
51583          test -z "$ac_c_werror_flag" ||
51584          test ! -s conftest.err
51585        } && test -s conftest.$ac_objext; then
51586
51587                     { echo "$as_me:$LINENO: result: yes" >&5
51588 echo "${ECHO_T}yes" >&6; }
51589                     GCC_PCH=1
51590
51591 else
51592   echo "$as_me: failed program was:" >&5
51593 sed 's/^/| /' conftest.$ac_ext >&5
51594
51595
51596                     if test "$INTELCXX8" = "yes"; then
51597                         { echo "$as_me:$LINENO: result: yes" >&5
51598 echo "${ECHO_T}yes" >&6; }
51599                         ICC_PCH=1
51600                         if test "$INTELCXX10" = "yes"; then
51601                             ICC_PCH_CREATE_SWITCH="-pch-create"
51602                             ICC_PCH_USE_SWITCH="-pch-use"
51603                         else
51604                             ICC_PCH_CREATE_SWITCH="-create-pch"
51605                             ICC_PCH_USE_SWITCH="-use-pch"
51606                         fi
51607                     else
51608                         { echo "$as_me:$LINENO: result: no" >&5
51609 echo "${ECHO_T}no" >&6; }
51610                     fi
51611
51612 fi
51613
51614 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
51615             if test $GCC_PCH = 1 -o $ICC_PCH = 1 ; then
51616                 USE_PCH=1
51617
51618 D='$'
51619 cat <<EOF >bk-make-pch
51620 #!/bin/sh
51621
51622 # This script is part of Bakefile (http://www.bakefile.org) autoconf
51623 # script. It is used to generated precompiled headers.
51624 #
51625 # Permission is given to use this file in any way.
51626
51627 outfile="${D}{1}"
51628 header="${D}{2}"
51629 shift
51630 shift
51631
51632 builddir=\`echo ${D}outfile | sed -e 's,/\\.pch/.*${D},,g'\`
51633
51634 compiler=""
51635 headerfile=""
51636
51637 while test ${D}{#} -gt 0; do
51638     add_to_cmdline=1
51639     case "${D}{1}" in
51640         -I* )
51641             incdir=\`echo ${D}{1} | sed -e 's/-I\\(.*\\)/\\1/g'\`
51642             if test "x${D}{headerfile}" = "x" -a -f "${D}{incdir}/${D}{header}" ; then
51643                 headerfile="${D}{incdir}/${D}{header}"
51644             fi
51645         ;;
51646         -use-pch|-use_pch|-pch-use )
51647             shift
51648             add_to_cmdline=0
51649         ;;
51650     esac
51651     if test ${D}add_to_cmdline = 1 ; then
51652         compiler="${D}{compiler} ${D}{1}"
51653     fi
51654     shift
51655 done
51656
51657 if test "x${D}{headerfile}" = "x" ; then
51658     echo "error: can't find header ${D}{header} in include paths" >&2
51659 else
51660     if test -f ${D}{outfile} ; then
51661         rm -f ${D}{outfile}
51662     else
51663         mkdir -p \`dirname ${D}{outfile}\`
51664     fi
51665     depsfile="${D}{builddir}/.deps/\`echo ${D}{outfile} | tr '/.' '__'\`.d"
51666     mkdir -p ${D}{builddir}/.deps
51667     if test "x${GCC_PCH}" = "x1" ; then
51668         # can do this because gcc is >= 3.4:
51669         ${D}{compiler} -o ${D}{outfile} -MMD -MF "${D}{depsfile}" "${D}{headerfile}"
51670     elif test "x${ICC_PCH}" = "x1" ; then
51671         filename=pch_gen-${D}${D}
51672         file=${D}{filename}.c
51673         dfile=${D}{filename}.d
51674         cat > ${D}file <<EOT
51675 #include "${D}header"
51676 EOT
51677         # using -MF icc complains about differing command lines in creation/use
51678         ${D}compiler -c ${ICC_PCH_CREATE_SWITCH} ${D}outfile -MMD ${D}file && \\
51679           sed -e "s,^.*:,${D}outfile:," -e "s, ${D}file,," < ${D}dfile > ${D}depsfile && \\
51680           rm -f ${D}file ${D}dfile ${D}{filename}.o
51681     fi
51682     exit ${D}{?}
51683 fi
51684 EOF
51685
51686                 chmod +x bk-make-pch
51687                                                                 BK_MAKE_PCH="`pwd`/bk-make-pch"
51688             fi
51689         fi
51690     fi
51691
51692
51693
51694
51695
51696
51697
51698     COND_BUILD_DEBUG="#"
51699     if test "x$BUILD" = "xdebug" ; then
51700         COND_BUILD_DEBUG=""
51701     fi
51702
51703     COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="#"
51704     if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then
51705         COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT=""
51706     fi
51707
51708     COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="#"
51709     if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then
51710         COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT=""
51711     fi
51712
51713     COND_BUILD_DEBUG_UNICODE_0="#"
51714     if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x0" ; then
51715         COND_BUILD_DEBUG_UNICODE_0=""
51716     fi
51717
51718     COND_BUILD_DEBUG_UNICODE_1="#"
51719     if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x1" ; then
51720         COND_BUILD_DEBUG_UNICODE_1=""
51721     fi
51722
51723     COND_BUILD_RELEASE="#"
51724     if test "x$BUILD" = "xrelease" ; then
51725         COND_BUILD_RELEASE=""
51726     fi
51727
51728     COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="#"
51729     if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then
51730         COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT=""
51731     fi
51732
51733     COND_BUILD_RELEASE_UNICODE_0="#"
51734     if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x0" ; then
51735         COND_BUILD_RELEASE_UNICODE_0=""
51736     fi
51737
51738     COND_BUILD_RELEASE_UNICODE_1="#"
51739     if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x1" ; then
51740         COND_BUILD_RELEASE_UNICODE_1=""
51741     fi
51742
51743     COND_BUILD_debug="#"
51744     if test "x$BUILD" = "xdebug" ; then
51745         COND_BUILD_debug=""
51746     fi
51747
51748     COND_BUILD_debug_DEBUG_FLAG_default="#"
51749     if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then
51750         COND_BUILD_debug_DEBUG_FLAG_default=""
51751     fi
51752
51753     COND_BUILD_debug_DEBUG_INFO_default="#"
51754     if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then
51755         COND_BUILD_debug_DEBUG_INFO_default=""
51756     fi
51757
51758     COND_BUILD_debug_UNICODE_0="#"
51759     if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x0" ; then
51760         COND_BUILD_debug_UNICODE_0=""
51761     fi
51762
51763     COND_BUILD_debug_UNICODE_1="#"
51764     if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x1" ; then
51765         COND_BUILD_debug_UNICODE_1=""
51766     fi
51767
51768     COND_BUILD_release="#"
51769     if test "x$BUILD" = "xrelease" ; then
51770         COND_BUILD_release=""
51771     fi
51772
51773     COND_BUILD_release_DEBUG_INFO_default="#"
51774     if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then
51775         COND_BUILD_release_DEBUG_INFO_default=""
51776     fi
51777
51778     COND_BUILD_release_UNICODE_0="#"
51779     if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x0" ; then
51780         COND_BUILD_release_UNICODE_0=""
51781     fi
51782
51783     COND_BUILD_release_UNICODE_1="#"
51784     if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x1" ; then
51785         COND_BUILD_release_UNICODE_1=""
51786     fi
51787
51788     COND_DEBUG_FLAG_0="#"
51789     if test "x$DEBUG_FLAG" = "x0" ; then
51790         COND_DEBUG_FLAG_0=""
51791     fi
51792
51793     COND_DEBUG_FLAG_1="#"
51794     if test "x$DEBUG_FLAG" = "x1" ; then
51795         COND_DEBUG_FLAG_1=""
51796     fi
51797
51798     COND_DEBUG_INFO_0="#"
51799     if test "x$DEBUG_INFO" = "x0" ; then
51800         COND_DEBUG_INFO_0=""
51801     fi
51802
51803     COND_DEBUG_INFO_1="#"
51804     if test "x$DEBUG_INFO" = "x1" ; then
51805         COND_DEBUG_INFO_1=""
51806     fi
51807
51808     COND_DEPS_TRACKING_0="#"
51809     if test "x$DEPS_TRACKING" = "x0" ; then
51810         COND_DEPS_TRACKING_0=""
51811     fi
51812
51813     COND_DEPS_TRACKING_1="#"
51814     if test "x$DEPS_TRACKING" = "x1" ; then
51815         COND_DEPS_TRACKING_1=""
51816     fi
51817
51818     COND_GCC_PCH_1="#"
51819     if test "x$GCC_PCH" = "x1" ; then
51820         COND_GCC_PCH_1=""
51821     fi
51822
51823     COND_ICC_PCH_1="#"
51824     if test "x$ICC_PCH" = "x1" ; then
51825         COND_ICC_PCH_1=""
51826     fi
51827
51828     COND_MONOLITHIC_0="#"
51829     if test "x$MONOLITHIC" = "x0" ; then
51830         COND_MONOLITHIC_0=""
51831     fi
51832
51833     COND_MONOLITHIC_0_SHARED_0="#"
51834     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" ; then
51835         COND_MONOLITHIC_0_SHARED_0=""
51836     fi
51837
51838     COND_MONOLITHIC_0_SHARED_0_USE_AUI_1="#"
51839     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_AUI" = "x1" ; then
51840         COND_MONOLITHIC_0_SHARED_0_USE_AUI_1=""
51841     fi
51842
51843     COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="#"
51844     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" ; then
51845         COND_MONOLITHIC_0_SHARED_0_USE_GUI_1=""
51846     fi
51847
51848     COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1="#"
51849     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then
51850         COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1=""
51851     fi
51852
51853     COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1="#"
51854     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_MEDIA" = "x1" ; then
51855         COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1=""
51856     fi
51857
51858     COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1="#"
51859     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_QA" = "x1" ; then
51860         COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1=""
51861     fi
51862
51863     COND_MONOLITHIC_0_SHARED_0_USE_PROPGRID_1="#"
51864     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_PROPGRID" = "x1" ; then
51865         COND_MONOLITHIC_0_SHARED_0_USE_PROPGRID_1=""
51866     fi
51867
51868     COND_MONOLITHIC_0_SHARED_0_USE_RIBBON_1="#"
51869     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_RIBBON" = "x1" ; then
51870         COND_MONOLITHIC_0_SHARED_0_USE_RIBBON_1=""
51871     fi
51872
51873     COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1="#"
51874     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_RICHTEXT" = "x1" ; then
51875         COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1=""
51876     fi
51877
51878     COND_MONOLITHIC_0_SHARED_0_USE_STC_1="#"
51879     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_STC" = "x1" ; then
51880         COND_MONOLITHIC_0_SHARED_0_USE_STC_1=""
51881     fi
51882
51883     COND_MONOLITHIC_0_SHARED_0_USE_XRC_1="#"
51884     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then
51885         COND_MONOLITHIC_0_SHARED_0_USE_XRC_1=""
51886     fi
51887
51888     COND_MONOLITHIC_0_SHARED_1="#"
51889     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" ; then
51890         COND_MONOLITHIC_0_SHARED_1=""
51891     fi
51892
51893     COND_MONOLITHIC_0_SHARED_1_USE_AUI_1="#"
51894     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_AUI" = "x1" ; then
51895         COND_MONOLITHIC_0_SHARED_1_USE_AUI_1=""
51896     fi
51897
51898     COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="#"
51899     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" ; then
51900         COND_MONOLITHIC_0_SHARED_1_USE_GUI_1=""
51901     fi
51902
51903     COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1="#"
51904     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then
51905         COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1=""
51906     fi
51907
51908     COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1="#"
51909     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_MEDIA" = "x1" ; then
51910         COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1=""
51911     fi
51912
51913     COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1="#"
51914     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_QA" = "x1" ; then
51915         COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1=""
51916     fi
51917
51918     COND_MONOLITHIC_0_SHARED_1_USE_PROPGRID_1="#"
51919     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_PROPGRID" = "x1" ; then
51920         COND_MONOLITHIC_0_SHARED_1_USE_PROPGRID_1=""
51921     fi
51922
51923     COND_MONOLITHIC_0_SHARED_1_USE_RIBBON_1="#"
51924     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_RIBBON" = "x1" ; then
51925         COND_MONOLITHIC_0_SHARED_1_USE_RIBBON_1=""
51926     fi
51927
51928     COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1="#"
51929     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_RICHTEXT" = "x1" ; then
51930         COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1=""
51931     fi
51932
51933     COND_MONOLITHIC_0_SHARED_1_USE_STC_1="#"
51934     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_STC" = "x1" ; then
51935         COND_MONOLITHIC_0_SHARED_1_USE_STC_1=""
51936     fi
51937
51938     COND_MONOLITHIC_0_SHARED_1_USE_XRC_1="#"
51939     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then
51940         COND_MONOLITHIC_0_SHARED_1_USE_XRC_1=""
51941     fi
51942
51943     COND_MONOLITHIC_0_USE_AUI_1="#"
51944     if test "x$MONOLITHIC" = "x0" -a "x$USE_AUI" = "x1" ; then
51945         COND_MONOLITHIC_0_USE_AUI_1=""
51946     fi
51947
51948     COND_MONOLITHIC_0_USE_GUI_1="#"
51949     if test "x$MONOLITHIC" = "x0" -a "x$USE_GUI" = "x1" ; then
51950         COND_MONOLITHIC_0_USE_GUI_1=""
51951     fi
51952
51953     COND_MONOLITHIC_0_USE_GUI_1_USE_MEDIA_1="#"
51954     if test "x$MONOLITHIC" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_MEDIA" = "x1" ; then
51955         COND_MONOLITHIC_0_USE_GUI_1_USE_MEDIA_1=""
51956     fi
51957
51958     COND_MONOLITHIC_0_USE_HTML_1="#"
51959     if test "x$MONOLITHIC" = "x0" -a "x$USE_HTML" = "x1" ; then
51960         COND_MONOLITHIC_0_USE_HTML_1=""
51961     fi
51962
51963     COND_MONOLITHIC_0_USE_MEDIA_1="#"
51964     if test "x$MONOLITHIC" = "x0" -a "x$USE_MEDIA" = "x1" ; then
51965         COND_MONOLITHIC_0_USE_MEDIA_1=""
51966     fi
51967
51968     COND_MONOLITHIC_0_USE_PROPGRID_1="#"
51969     if test "x$MONOLITHIC" = "x0" -a "x$USE_PROPGRID" = "x1" ; then
51970         COND_MONOLITHIC_0_USE_PROPGRID_1=""
51971     fi
51972
51973     COND_MONOLITHIC_0_USE_QA_1="#"
51974     if test "x$MONOLITHIC" = "x0" -a "x$USE_QA" = "x1" ; then
51975         COND_MONOLITHIC_0_USE_QA_1=""
51976     fi
51977
51978     COND_MONOLITHIC_0_USE_RIBBON_1="#"
51979     if test "x$MONOLITHIC" = "x0" -a "x$USE_RIBBON" = "x1" ; then
51980         COND_MONOLITHIC_0_USE_RIBBON_1=""
51981     fi
51982
51983     COND_MONOLITHIC_0_USE_RICHTEXT_1="#"
51984     if test "x$MONOLITHIC" = "x0" -a "x$USE_RICHTEXT" = "x1" ; then
51985         COND_MONOLITHIC_0_USE_RICHTEXT_1=""
51986     fi
51987
51988     COND_MONOLITHIC_0_USE_STC_1="#"
51989     if test "x$MONOLITHIC" = "x0" -a "x$USE_STC" = "x1" ; then
51990         COND_MONOLITHIC_0_USE_STC_1=""
51991     fi
51992
51993     COND_MONOLITHIC_0_USE_XRC_1="#"
51994     if test "x$MONOLITHIC" = "x0" -a "x$USE_XRC" = "x1" ; then
51995         COND_MONOLITHIC_0_USE_XRC_1=""
51996     fi
51997
51998     COND_MONOLITHIC_1="#"
51999     if test "x$MONOLITHIC" = "x1" ; then
52000         COND_MONOLITHIC_1=""
52001     fi
52002
52003     COND_MONOLITHIC_1_SHARED_0="#"
52004     if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x0" ; then
52005         COND_MONOLITHIC_1_SHARED_0=""
52006     fi
52007
52008     COND_MONOLITHIC_1_SHARED_1="#"
52009     if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x1" ; then
52010         COND_MONOLITHIC_1_SHARED_1=""
52011     fi
52012
52013     COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="#"
52014     if test "x$OFFICIAL_BUILD" = "x0" -a "x$PLATFORM_WIN32" = "x1" ; then
52015         COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1=""
52016     fi
52017
52018     COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="#"
52019     if test "x$OFFICIAL_BUILD" = "x1" -a "x$PLATFORM_WIN32" = "x1" ; then
52020         COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1=""
52021     fi
52022
52023     COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1="#"
52024     if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERCYGWIN" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
52025         COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1=""
52026     fi
52027
52028     COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="#"
52029     if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
52030         COND_PLATFORM_MACOSX_0_USE_SOVERSION_1=""
52031     fi
52032
52033     COND_PLATFORM_MACOSX_1="#"
52034     if test "x$PLATFORM_MACOSX" = "x1" ; then
52035         COND_PLATFORM_MACOSX_1=""
52036     fi
52037
52038     COND_PLATFORM_MACOSX_1_PLATFORM_MSDOS_0="#"
52039     if test "x$PLATFORM_MACOSX" = "x1" -a "x$PLATFORM_MSDOS" = "x0" ; then
52040         COND_PLATFORM_MACOSX_1_PLATFORM_MSDOS_0=""
52041     fi
52042
52043     COND_PLATFORM_MACOSX_1_PLATFORM_WIN32_1_SHARED_0="#"
52044     if test "x$PLATFORM_MACOSX" = "x1" -a "x$PLATFORM_WIN32" = "x1" -a "x$SHARED" = "x0" ; then
52045         COND_PLATFORM_MACOSX_1_PLATFORM_WIN32_1_SHARED_0=""
52046     fi
52047
52048     COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_CARBON_USE_GUI_1="#"
52049     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xOSX_CARBON" -a "x$USE_GUI" = "x1" ; then
52050         COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_CARBON_USE_GUI_1=""
52051     fi
52052
52053     COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_CARBON_USE_GUI_1_WXUNIV_0="#"
52054     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xOSX_CARBON" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
52055         COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_CARBON_USE_GUI_1_WXUNIV_0=""
52056     fi
52057
52058     COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_COCOA_USE_GUI_1="#"
52059     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xOSX_COCOA" -a "x$USE_GUI" = "x1" ; then
52060         COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_COCOA_USE_GUI_1=""
52061     fi
52062
52063     COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_COCOA_USE_GUI_1_WXUNIV_0="#"
52064     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xOSX_COCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
52065         COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_COCOA_USE_GUI_1_WXUNIV_0=""
52066     fi
52067
52068     COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_IPHONE_USE_GUI_1="#"
52069     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xOSX_IPHONE" -a "x$USE_GUI" = "x1" ; then
52070         COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_IPHONE_USE_GUI_1=""
52071     fi
52072
52073     COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_IPHONE_USE_GUI_1_WXUNIV_0="#"
52074     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xOSX_IPHONE" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
52075         COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_IPHONE_USE_GUI_1_WXUNIV_0=""
52076     fi
52077
52078     COND_PLATFORM_MACOSX_1_USE_GUI_1="#"
52079     if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_GUI" = "x1" ; then
52080         COND_PLATFORM_MACOSX_1_USE_GUI_1=""
52081     fi
52082
52083     COND_PLATFORM_MACOSX_1_USE_OPENGL_1="#"
52084     if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_OPENGL" = "x1" ; then
52085         COND_PLATFORM_MACOSX_1_USE_OPENGL_1=""
52086     fi
52087
52088     COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="#"
52089     if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
52090         COND_PLATFORM_MACOSX_1_USE_SOVERSION_1=""
52091     fi
52092
52093     COND_PLATFORM_MACOS_1="#"
52094     if test "x$PLATFORM_MACOS" = "x1" ; then
52095         COND_PLATFORM_MACOS_1=""
52096     fi
52097
52098     COND_PLATFORM_MAC_0="#"
52099     if test "x$PLATFORM_MAC" = "x0" ; then
52100         COND_PLATFORM_MAC_0=""
52101     fi
52102
52103     COND_PLATFORM_MAC_1="#"
52104     if test "x$PLATFORM_MAC" = "x1" ; then
52105         COND_PLATFORM_MAC_1=""
52106     fi
52107
52108     COND_PLATFORM_MSDOS_0="#"
52109     if test "x$PLATFORM_MSDOS" = "x0" ; then
52110         COND_PLATFORM_MSDOS_0=""
52111     fi
52112
52113     COND_PLATFORM_MSDOS_1="#"
52114     if test "x$PLATFORM_MSDOS" = "x1" ; then
52115         COND_PLATFORM_MSDOS_1=""
52116     fi
52117
52118     COND_PLATFORM_OS2_1="#"
52119     if test "x$PLATFORM_OS2" = "x1" ; then
52120         COND_PLATFORM_OS2_1=""
52121     fi
52122
52123     COND_PLATFORM_UNIX_0="#"
52124     if test "x$PLATFORM_UNIX" = "x0" ; then
52125         COND_PLATFORM_UNIX_0=""
52126     fi
52127
52128     COND_PLATFORM_UNIX_1="#"
52129     if test "x$PLATFORM_UNIX" = "x1" ; then
52130         COND_PLATFORM_UNIX_1=""
52131     fi
52132
52133     COND_PLATFORM_UNIX_1_TOOLKIT_MGL="#"
52134     if test "x$PLATFORM_UNIX" = "x1" -a "x$TOOLKIT" = "xMGL" ; then
52135         COND_PLATFORM_UNIX_1_TOOLKIT_MGL=""
52136     fi
52137
52138     COND_PLATFORM_UNIX_1_TOOLKIT_MGL_USE_GUI_1="#"
52139     if test "x$PLATFORM_UNIX" = "x1" -a "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then
52140         COND_PLATFORM_UNIX_1_TOOLKIT_MGL_USE_GUI_1=""
52141     fi
52142
52143     COND_PLATFORM_UNIX_1_USE_GUI_1="#"
52144     if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_GUI" = "x1" ; then
52145         COND_PLATFORM_UNIX_1_USE_GUI_1=""
52146     fi
52147
52148     COND_PLATFORM_UNIX_1_USE_PLUGINS_0="#"
52149     if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_PLUGINS" = "x0" ; then
52150         COND_PLATFORM_UNIX_1_USE_PLUGINS_0=""
52151     fi
52152
52153     COND_PLATFORM_WIN32_0="#"
52154     if test "x$PLATFORM_WIN32" = "x0" ; then
52155         COND_PLATFORM_WIN32_0=""
52156     fi
52157
52158     COND_PLATFORM_WIN32_1="#"
52159     if test "x$PLATFORM_WIN32" = "x1" ; then
52160         COND_PLATFORM_WIN32_1=""
52161     fi
52162
52163     COND_PLATFORM_WIN32_1_SHARED_0="#"
52164     if test "x$PLATFORM_WIN32" = "x1" -a "x$SHARED" = "x0" ; then
52165         COND_PLATFORM_WIN32_1_SHARED_0=""
52166     fi
52167
52168     COND_SHARED_0="#"
52169     if test "x$SHARED" = "x0" ; then
52170         COND_SHARED_0=""
52171     fi
52172
52173     COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0="#"
52174     if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMAC" -a "x$WXUNIV" = "x0" ; then
52175         COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0=""
52176     fi
52177
52178     COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0="#"
52179     if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then
52180         COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0=""
52181     fi
52182
52183     COND_SHARED_0_TOOLKIT_PM_WXUNIV_0="#"
52184     if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xPM" -a "x$WXUNIV" = "x0" ; then
52185         COND_SHARED_0_TOOLKIT_PM_WXUNIV_0=""
52186     fi
52187
52188     COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="#"
52189     if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
52190         COND_SHARED_0_USE_GUI_1_USE_OPENGL_1=""
52191     fi
52192
52193     COND_SHARED_0_USE_GUI_1_wxUSE_LIBJPEG_builtin="#"
52194     if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
52195         COND_SHARED_0_USE_GUI_1_wxUSE_LIBJPEG_builtin=""
52196     fi
52197
52198     COND_SHARED_0_USE_GUI_1_wxUSE_LIBPNG_builtin="#"
52199     if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
52200         COND_SHARED_0_USE_GUI_1_wxUSE_LIBPNG_builtin=""
52201     fi
52202
52203     COND_SHARED_0_USE_GUI_1_wxUSE_LIBTIFF_builtin="#"
52204     if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
52205         COND_SHARED_0_USE_GUI_1_wxUSE_LIBTIFF_builtin=""
52206     fi
52207
52208     COND_SHARED_0_USE_STC_1="#"
52209     if test "x$SHARED" = "x0" -a "x$USE_STC" = "x1" ; then
52210         COND_SHARED_0_USE_STC_1=""
52211     fi
52212
52213     COND_SHARED_0_wxUSE_EXPAT_builtin="#"
52214     if test "x$SHARED" = "x0" -a "x$wxUSE_EXPAT" = "xbuiltin" ; then
52215         COND_SHARED_0_wxUSE_EXPAT_builtin=""
52216     fi
52217
52218     COND_SHARED_0_wxUSE_REGEX_builtin="#"
52219     if test "x$SHARED" = "x0" -a "x$wxUSE_REGEX" = "xbuiltin" ; then
52220         COND_SHARED_0_wxUSE_REGEX_builtin=""
52221     fi
52222
52223     COND_SHARED_0_wxUSE_ZLIB_builtin="#"
52224     if test "x$SHARED" = "x0" -a "x$wxUSE_ZLIB" = "xbuiltin" ; then
52225         COND_SHARED_0_wxUSE_ZLIB_builtin=""
52226     fi
52227
52228     COND_SHARED_1="#"
52229     if test "x$SHARED" = "x1" ; then
52230         COND_SHARED_1=""
52231     fi
52232
52233     COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="#"
52234     if test "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
52235         COND_SHARED_1_USE_GUI_1_USE_OPENGL_1=""
52236     fi
52237
52238     COND_TOOLKIT_="#"
52239     if test "x$TOOLKIT" = "x" ; then
52240         COND_TOOLKIT_=""
52241     fi
52242
52243     COND_TOOLKIT_COCOA="#"
52244     if test "x$TOOLKIT" = "xCOCOA" ; then
52245         COND_TOOLKIT_COCOA=""
52246     fi
52247
52248     COND_TOOLKIT_COCOA_USE_GUI_1="#"
52249     if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" ; then
52250         COND_TOOLKIT_COCOA_USE_GUI_1=""
52251     fi
52252
52253     COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="#"
52254     if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
52255         COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0=""
52256     fi
52257
52258     COND_TOOLKIT_DFB="#"
52259     if test "x$TOOLKIT" = "xDFB" ; then
52260         COND_TOOLKIT_DFB=""
52261     fi
52262
52263     COND_TOOLKIT_DFB_USE_GUI_1="#"
52264     if test "x$TOOLKIT" = "xDFB" -a "x$USE_GUI" = "x1" ; then
52265         COND_TOOLKIT_DFB_USE_GUI_1=""
52266     fi
52267
52268     COND_TOOLKIT_GTK="#"
52269     if test "x$TOOLKIT" = "xGTK" ; then
52270         COND_TOOLKIT_GTK=""
52271     fi
52272
52273     COND_TOOLKIT_GTK_TOOLKIT_VERSION_="#"
52274     if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x" ; then
52275         COND_TOOLKIT_GTK_TOOLKIT_VERSION_=""
52276     fi
52277
52278     COND_TOOLKIT_GTK_TOOLKIT_VERSION_2="#"
52279     if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x2" ; then
52280         COND_TOOLKIT_GTK_TOOLKIT_VERSION_2=""
52281     fi
52282
52283     COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1="#"
52284     if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x2" -a "x$USE_GUI" = "x1" ; then
52285         COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1=""
52286     fi
52287
52288     COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0="#"
52289     if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x2" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
52290         COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0=""
52291     fi
52292
52293     COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1="#"
52294     if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x" -a "x$USE_GUI" = "x1" ; then
52295         COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1=""
52296     fi
52297
52298     COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0="#"
52299     if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
52300         COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0=""
52301     fi
52302
52303     COND_TOOLKIT_GTK_USE_GUI_1="#"
52304     if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" ; then
52305         COND_TOOLKIT_GTK_USE_GUI_1=""
52306     fi
52307
52308     COND_TOOLKIT_MAC="#"
52309     if test "x$TOOLKIT" = "xMAC" ; then
52310         COND_TOOLKIT_MAC=""
52311     fi
52312
52313     COND_TOOLKIT_MGL="#"
52314     if test "x$TOOLKIT" = "xMGL" ; then
52315         COND_TOOLKIT_MGL=""
52316     fi
52317
52318     COND_TOOLKIT_MGL_USE_GUI_1="#"
52319     if test "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then
52320         COND_TOOLKIT_MGL_USE_GUI_1=""
52321     fi
52322
52323     COND_TOOLKIT_MOTIF="#"
52324     if test "x$TOOLKIT" = "xMOTIF" ; then
52325         COND_TOOLKIT_MOTIF=""
52326     fi
52327
52328     COND_TOOLKIT_MOTIF_USE_GUI_1="#"
52329     if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" ; then
52330         COND_TOOLKIT_MOTIF_USE_GUI_1=""
52331     fi
52332
52333     COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="#"
52334     if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
52335         COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0=""
52336     fi
52337
52338     COND_TOOLKIT_MSW="#"
52339     if test "x$TOOLKIT" = "xMSW" ; then
52340         COND_TOOLKIT_MSW=""
52341     fi
52342
52343     COND_TOOLKIT_MSW_USE_GUI_1="#"
52344     if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" ; then
52345         COND_TOOLKIT_MSW_USE_GUI_1=""
52346     fi
52347
52348     COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="#"
52349     if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
52350         COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0=""
52351     fi
52352
52353     COND_TOOLKIT_MSW_WXUNIV_0="#"
52354     if test "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then
52355         COND_TOOLKIT_MSW_WXUNIV_0=""
52356     fi
52357
52358     COND_TOOLKIT_OSX_CARBON="#"
52359     if test "x$TOOLKIT" = "xOSX_CARBON" ; then
52360         COND_TOOLKIT_OSX_CARBON=""
52361     fi
52362
52363     COND_TOOLKIT_OSX_CARBON_USE_GUI_1="#"
52364     if test "x$TOOLKIT" = "xOSX_CARBON" -a "x$USE_GUI" = "x1" ; then
52365         COND_TOOLKIT_OSX_CARBON_USE_GUI_1=""
52366     fi
52367
52368     COND_TOOLKIT_OSX_COCOA="#"
52369     if test "x$TOOLKIT" = "xOSX_COCOA" ; then
52370         COND_TOOLKIT_OSX_COCOA=""
52371     fi
52372
52373     COND_TOOLKIT_OSX_COCOA_USE_GUI_1="#"
52374     if test "x$TOOLKIT" = "xOSX_COCOA" -a "x$USE_GUI" = "x1" ; then
52375         COND_TOOLKIT_OSX_COCOA_USE_GUI_1=""
52376     fi
52377
52378     COND_TOOLKIT_OSX_IPHONE="#"
52379     if test "x$TOOLKIT" = "xOSX_IPHONE" ; then
52380         COND_TOOLKIT_OSX_IPHONE=""
52381     fi
52382
52383     COND_TOOLKIT_OSX_IPHONE_USE_GUI_1="#"
52384     if test "x$TOOLKIT" = "xOSX_IPHONE" -a "x$USE_GUI" = "x1" ; then
52385         COND_TOOLKIT_OSX_IPHONE_USE_GUI_1=""
52386     fi
52387
52388     COND_TOOLKIT_OSX_IPHONE_USE_GUI_1_WXUNIV_0="#"
52389     if test "x$TOOLKIT" = "xOSX_IPHONE" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
52390         COND_TOOLKIT_OSX_IPHONE_USE_GUI_1_WXUNIV_0=""
52391     fi
52392
52393     COND_TOOLKIT_PM="#"
52394     if test "x$TOOLKIT" = "xPM" ; then
52395         COND_TOOLKIT_PM=""
52396     fi
52397
52398     COND_TOOLKIT_PM_USE_GUI_1="#"
52399     if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" ; then
52400         COND_TOOLKIT_PM_USE_GUI_1=""
52401     fi
52402
52403     COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="#"
52404     if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
52405         COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0=""
52406     fi
52407
52408     COND_TOOLKIT_WINCE="#"
52409     if test "x$TOOLKIT" = "xWINCE" ; then
52410         COND_TOOLKIT_WINCE=""
52411     fi
52412
52413     COND_TOOLKIT_WINCE_USE_GUI_1="#"
52414     if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" ; then
52415         COND_TOOLKIT_WINCE_USE_GUI_1=""
52416     fi
52417
52418     COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0="#"
52419     if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
52420         COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0=""
52421     fi
52422
52423     COND_TOOLKIT_WINCE_WXUNIV_0="#"
52424     if test "x$TOOLKIT" = "xWINCE" -a "x$WXUNIV" = "x0" ; then
52425         COND_TOOLKIT_WINCE_WXUNIV_0=""
52426     fi
52427
52428     COND_TOOLKIT_X11="#"
52429     if test "x$TOOLKIT" = "xX11" ; then
52430         COND_TOOLKIT_X11=""
52431     fi
52432
52433     COND_TOOLKIT_X11_USE_GUI_1="#"
52434     if test "x$TOOLKIT" = "xX11" -a "x$USE_GUI" = "x1" ; then
52435         COND_TOOLKIT_X11_USE_GUI_1=""
52436     fi
52437
52438     COND_UNICODE_1="#"
52439     if test "x$UNICODE" = "x1" ; then
52440         COND_UNICODE_1=""
52441     fi
52442
52443     COND_USE_CAIRO_1="#"
52444     if test "x$USE_CAIRO" = "x1" ; then
52445         COND_USE_CAIRO_1=""
52446     fi
52447
52448     COND_USE_EXCEPTIONS_0="#"
52449     if test "x$USE_EXCEPTIONS" = "x0" ; then
52450         COND_USE_EXCEPTIONS_0=""
52451     fi
52452
52453     COND_USE_EXCEPTIONS_1="#"
52454     if test "x$USE_EXCEPTIONS" = "x1" ; then
52455         COND_USE_EXCEPTIONS_1=""
52456     fi
52457
52458     COND_USE_GUI_0="#"
52459     if test "x$USE_GUI" = "x0" ; then
52460         COND_USE_GUI_0=""
52461     fi
52462
52463     COND_USE_GUI_1="#"
52464     if test "x$USE_GUI" = "x1" ; then
52465         COND_USE_GUI_1=""
52466     fi
52467
52468     COND_USE_GUI_1_USE_OPENGL_1="#"
52469     if test "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
52470         COND_USE_GUI_1_USE_OPENGL_1=""
52471     fi
52472
52473     COND_USE_GUI_1_WXUNIV_0="#"
52474     if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
52475         COND_USE_GUI_1_WXUNIV_0=""
52476     fi
52477
52478     COND_USE_GUI_1_WXUNIV_1="#"
52479     if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then
52480         COND_USE_GUI_1_WXUNIV_1=""
52481     fi
52482
52483     COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
52484     if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
52485         COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
52486     fi
52487
52488     COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
52489     if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
52490         COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
52491     fi
52492
52493     COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
52494     if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
52495         COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
52496     fi
52497
52498     COND_USE_GUI_1_wxUSE_LIBJPEG_builtin="#"
52499     if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
52500         COND_USE_GUI_1_wxUSE_LIBJPEG_builtin=""
52501     fi
52502
52503     COND_USE_GUI_1_wxUSE_LIBPNG_builtin="#"
52504     if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
52505         COND_USE_GUI_1_wxUSE_LIBPNG_builtin=""
52506     fi
52507
52508     COND_USE_GUI_1_wxUSE_LIBTIFF_builtin="#"
52509     if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
52510         COND_USE_GUI_1_wxUSE_LIBTIFF_builtin=""
52511     fi
52512
52513     COND_USE_OPENGL_1="#"
52514     if test "x$USE_OPENGL" = "x1" ; then
52515         COND_USE_OPENGL_1=""
52516     fi
52517
52518     COND_USE_PCH_1="#"
52519     if test "x$USE_PCH" = "x1" ; then
52520         COND_USE_PCH_1=""
52521     fi
52522
52523     COND_USE_PLUGINS_0="#"
52524     if test "x$USE_PLUGINS" = "x0" ; then
52525         COND_USE_PLUGINS_0=""
52526     fi
52527
52528     COND_USE_RTTI_0="#"
52529     if test "x$USE_RTTI" = "x0" ; then
52530         COND_USE_RTTI_0=""
52531     fi
52532
52533     COND_USE_RTTI_1="#"
52534     if test "x$USE_RTTI" = "x1" ; then
52535         COND_USE_RTTI_1=""
52536     fi
52537
52538     COND_USE_SOTWOSYMLINKS_1="#"
52539     if test "x$USE_SOTWOSYMLINKS" = "x1" ; then
52540         COND_USE_SOTWOSYMLINKS_1=""
52541     fi
52542
52543     COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1="#"
52544     if test "x$USE_SOVERCYGWIN" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
52545         COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1=""
52546     fi
52547
52548     COND_USE_SOVERLINUX_1="#"
52549     if test "x$USE_SOVERLINUX" = "x1" ; then
52550         COND_USE_SOVERLINUX_1=""
52551     fi
52552
52553     COND_USE_SOVERSION_0="#"
52554     if test "x$USE_SOVERSION" = "x0" ; then
52555         COND_USE_SOVERSION_0=""
52556     fi
52557
52558     COND_USE_SOVERSION_1_USE_SOVERSOLARIS_1="#"
52559     if test "x$USE_SOVERSION" = "x1" -a "x$USE_SOVERSOLARIS" = "x1" ; then
52560         COND_USE_SOVERSION_1_USE_SOVERSOLARIS_1=""
52561     fi
52562
52563     COND_USE_SOVERSOLARIS_1="#"
52564     if test "x$USE_SOVERSOLARIS" = "x1" ; then
52565         COND_USE_SOVERSOLARIS_1=""
52566     fi
52567
52568     COND_USE_STC_1="#"
52569     if test "x$USE_STC" = "x1" ; then
52570         COND_USE_STC_1=""
52571     fi
52572
52573     COND_USE_THREADS_0="#"
52574     if test "x$USE_THREADS" = "x0" ; then
52575         COND_USE_THREADS_0=""
52576     fi
52577
52578     COND_USE_THREADS_1="#"
52579     if test "x$USE_THREADS" = "x1" ; then
52580         COND_USE_THREADS_1=""
52581     fi
52582
52583     COND_USE_XRC_1="#"
52584     if test "x$USE_XRC" = "x1" ; then
52585         COND_USE_XRC_1=""
52586     fi
52587
52588     COND_WINDOWS_IMPLIB_1="#"
52589     if test "x$WINDOWS_IMPLIB" = "x1" ; then
52590         COND_WINDOWS_IMPLIB_1=""
52591     fi
52592
52593     COND_WITH_PLUGIN_SDL_1="#"
52594     if test "x$WITH_PLUGIN_SDL" = "x1" ; then
52595         COND_WITH_PLUGIN_SDL_1=""
52596     fi
52597
52598     COND_WXUNIV_0="#"
52599     if test "x$WXUNIV" = "x0" ; then
52600         COND_WXUNIV_0=""
52601     fi
52602
52603     COND_WXUNIV_1="#"
52604     if test "x$WXUNIV" = "x1" ; then
52605         COND_WXUNIV_1=""
52606     fi
52607
52608     COND_WXUSE_EXPAT_BUILTIN="#"
52609     if test "x$wxUSE_EXPAT" = "xbuiltin" ; then
52610         COND_WXUSE_EXPAT_BUILTIN=""
52611     fi
52612
52613     COND_WXUSE_LIBJPEG_BUILTIN="#"
52614     if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
52615         COND_WXUSE_LIBJPEG_BUILTIN=""
52616     fi
52617
52618     COND_WXUSE_LIBPNG_BUILTIN="#"
52619     if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then
52620         COND_WXUSE_LIBPNG_BUILTIN=""
52621     fi
52622
52623     COND_WXUSE_LIBTIFF_BUILTIN="#"
52624     if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
52625         COND_WXUSE_LIBTIFF_BUILTIN=""
52626     fi
52627
52628     COND_WXUSE_REGEX_BUILTIN="#"
52629     if test "x$wxUSE_REGEX" = "xbuiltin" ; then
52630         COND_WXUSE_REGEX_BUILTIN=""
52631     fi
52632
52633     COND_WXUSE_ZLIB_BUILTIN="#"
52634     if test "x$wxUSE_ZLIB" = "xbuiltin" ; then
52635         COND_WXUSE_ZLIB_BUILTIN=""
52636     fi
52637
52638     COND_wxUSE_EXPAT_builtin="#"
52639     if test "x$wxUSE_EXPAT" = "xbuiltin" ; then
52640         COND_wxUSE_EXPAT_builtin=""
52641     fi
52642
52643     COND_wxUSE_LIBJPEG_builtin="#"
52644     if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
52645         COND_wxUSE_LIBJPEG_builtin=""
52646     fi
52647
52648     COND_wxUSE_LIBPNG_builtin="#"
52649     if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then
52650         COND_wxUSE_LIBPNG_builtin=""
52651     fi
52652
52653     COND_wxUSE_LIBTIFF_builtin="#"
52654     if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
52655         COND_wxUSE_LIBTIFF_builtin=""
52656     fi
52657
52658     COND_wxUSE_REGEX_builtin="#"
52659     if test "x$wxUSE_REGEX" = "xbuiltin" ; then
52660         COND_wxUSE_REGEX_builtin=""
52661     fi
52662
52663     COND_wxUSE_ZLIB_builtin="#"
52664     if test "x$wxUSE_ZLIB" = "xbuiltin" ; then
52665         COND_wxUSE_ZLIB_builtin=""
52666     fi
52667
52668
52669
52670     if test "$BAKEFILE_AUTOCONF_INC_M4_VERSION" = "" ; then
52671         { { 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
52672 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;}
52673    { (exit 1); exit 1; }; }
52674     fi
52675
52676     if test "$BAKEFILE_BAKEFILE_M4_VERSION" != "$BAKEFILE_AUTOCONF_INC_M4_VERSION" ; then
52677         { { 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
52678 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;}
52679    { (exit 1); exit 1; }; }
52680     fi
52681
52682
52683 case ${INSTALL} in
52684   /* ) # Absolute
52685      ;;
52686   ?:* ) # Drive letter, considered as absolute.
52687      ;;
52688   *)
52689      INSTALL=`pwd`/${INSTALL} ;;
52690 esac
52691
52692 if test "$wxUSE_GUI" = "yes"; then
52693
52694 if test "$wxUSE_MSW" = 1 ; then
52695     if test "x$WINDRES" = "x"; then
52696         { { echo "$as_me:$LINENO: error: Required windres program not found" >&5
52697 echo "$as_me: error: Required windres program not found" >&2;}
52698    { (exit 1); exit 1; }; }
52699     fi
52700
52701     RESCOMP="$WINDRES"
52702 fi
52703
52704 if test "$wxUSE_MAC" = 1 -o "$wxUSE_OLD_COCOA" = 1; then
52705             WX_RESOURCES_MACOSX_ASCII="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.r"
52706     WX_RESOURCES_MACOSX_DATA="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.rsrc"
52707
52708         LIBWXMACRES="\$(wx_top_builddir)/lib/${WX_RESOURCES_MACOSX_ASCII}"
52709
52710     # Extract the first word of "DeRez", so it can be a program name with args.
52711 set dummy DeRez; ac_word=$2
52712 { echo "$as_me:$LINENO: checking for $ac_word" >&5
52713 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
52714 if test "${ac_cv_prog_DEREZ+set}" = set; then
52715   echo $ECHO_N "(cached) $ECHO_C" >&6
52716 else
52717   if test -n "$DEREZ"; then
52718   ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
52719 else
52720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
52721 for as_dir in $PATH
52722 do
52723   IFS=$as_save_IFS
52724   test -z "$as_dir" && as_dir=.
52725   for ac_exec_ext in '' $ac_executable_extensions; do
52726   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
52727     ac_cv_prog_DEREZ="DeRez"
52728     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
52729     break 2
52730   fi
52731 done
52732 done
52733 IFS=$as_save_IFS
52734
52735   test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
52736 fi
52737 fi
52738 DEREZ=$ac_cv_prog_DEREZ
52739 if test -n "$DEREZ"; then
52740   { echo "$as_me:$LINENO: result: $DEREZ" >&5
52741 echo "${ECHO_T}$DEREZ" >&6; }
52742 else
52743   { echo "$as_me:$LINENO: result: no" >&5
52744 echo "${ECHO_T}no" >&6; }
52745 fi
52746
52747
52748
52749     MACSETFILE="\$(SETFILE)"
52750
52751             if test "$wxUSE_OSX_CARBON" = 1; then
52752         POSTLINK_COMMAND="\$(REZ) -d __DARWIN__ -t APPL Carbon.r -o"
52753         RESCOMP="$REZ"
52754         WXCONFIG_RESFLAGS="-d __DARWIN__ -t APPL Carbon.r -o"
52755     else
52756         POSTLINK_COMMAND="cat /dev/null | \$(REZ) -d __DARWIN__ -t APPL ${LIBWXMACRES}"
52757         RESCOMP="cat /dev/null \| $REZ"
52758         WXCONFIG_RESFLAGS="-d __DARWIN__ -t APPL \$libdir/$WX_RESOURCES_MACOSX_ASCII"
52759     fi
52760
52761 else
52762         MACSETFILE="@true"
52763
52764     if test "$wxUSE_PM" = 1; then
52765         RESCOMP="emxbind"
52766         WXCONFIG_RESFLAGS="-ep"
52767
52768                 POSTLINK_COMMAND="$RESCOMP $WXCONFIG_RESFLAGS"
52769     else
52770         POSTLINK_COMMAND="@true"
52771     fi
52772 fi
52773
52774 fi
52775
52776
52777 if test $GCC_PCH = 1
52778 then
52779     if test "$wx_cv_gcc_pch_bug" = yes; then
52780         { echo "$as_me:$LINENO: WARNING: *** Precompiled header support is broken on this compiler" >&5
52781 echo "$as_me: WARNING: *** Precompiled header support is broken on this compiler" >&2;}
52782         { echo "$as_me:$LINENO: WARNING: *** --enable-precomp-headers is not recommended" >&5
52783 echo "$as_me: WARNING: *** --enable-precomp-headers is not recommended" >&2;}
52784         { echo "$as_me:$LINENO: WARNING: *** see http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13361" >&5
52785 echo "$as_me: WARNING: *** see http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13361" >&2;}
52786     fi
52787
52788     # Our WX_PRECOMP flag does not make sense for any language except C++ because
52789     # the headers that benefit from precompilation are mostly C++ headers.
52790     CXXFLAGS="-DWX_PRECOMP $CXXFLAGS"
52791     # When Bakefile can do multi-language PCH (e.g. C++ and Objective-C++) enable this:
52792     #OBJCXXFLAGS="-DWX_PRECOMP $CXXFLAGS"
52793 fi
52794
52795
52796 if test "$wxUSE_MAC" = 1 ; then
52797     if test "x$wxUSE_UNIVERSAL_BINARY" != "xno" ; then
52798         sed "s/DEPSMODE=gcc/DEPSMODE=none/" < bk-deps > temp
52799         mv temp bk-deps
52800         chmod +x bk-deps
52801     fi
52802 fi
52803
52804 if test "$wxUSE_SHARED" = "yes"; then
52805                 case "${host}" in
52806       *-pc-os2_emx | *-pc-os2-emx )
52807         SHARED_LD_CC="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
52808         SHARED_LD_CXX="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
52809         cp -p ${srcdir}/src/os2/dllnames.sh .
52810         cp -p ${srcdir}/src/os2/dllar.sh .
52811       ;;
52812     esac
52813 fi
52814 if test "$wxUSE_OMF" = "yes"; then
52815     case "${host}" in
52816       *-pc-os2_emx | *-pc-os2-emx )
52817         LDFLAGS="$LDFLAGS -Zlinker /EXEPACK"
52818         LDFLAGS_GUI="-Zlinker /PMTYPE:PM"
52819         WXCONFIG_LDFLAGS_GUI="-Zlinker /PMTYPE:PM"
52820       ;;
52821     esac
52822 fi
52823
52824 WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS $TOOLCHAIN_DEFS"
52825
52826
52827 case "${host}" in
52828     *-*-solaris2* )
52829                         if test "$GCC" = yes; then
52830             CPPFLAGS=`echo $CPPFLAGS | sed 's/-mt//'`
52831             LIBS=`echo $LIBS | sed 's/-mt//'`
52832             EXTRALIBS_GUI=`echo $EXTRALIBS_GUI | sed 's/-mt//'`
52833         fi
52834         ;;
52835
52836     *-*-linux* )
52837                         if test "x$SUNCXX" = xyes; then
52838             CPPFLAGS=`echo $CPPFLAGS | sed 's/-pthread//'`
52839             LIBS=`echo $LIBS | sed 's/-pthread//'`
52840             EXTRALIBS_GUI=`echo $EXTRALIBS_GUI | sed 's/-pthread//'`
52841         fi
52842         ;;
52843 esac
52844
52845 CFLAGS="$CFLAGS $CFLAGS_VISIBILITY"
52846 CXXFLAGS="$CXXFLAGS $CXXFLAGS_VISIBILITY"
52847 OBJCFLAGS="$OBJCFLAGS $CFLAGS_VISIBILITY"
52848 OBJCXXFLAGS="$OBJCXXFLAGS $CXXFLAGS_VISIBILITY"
52849
52850 SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
52851
52852
52853
52854
52855
52856
52857
52858
52859
52860
52861
52862
52863
52864
52865
52866
52867
52868
52869
52870
52871
52872
52873
52874
52875
52876
52877
52878
52879
52880
52881
52882
52883
52884
52885
52886
52887
52888
52889
52890
52891
52892
52893
52894
52895
52896
52897
52898
52899
52900
52901
52902
52903
52904
52905
52906
52907
52908
52909
52910
52911 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
52912 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
52913 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
52914 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
52915   echo $ECHO_N "(cached) $ECHO_C" >&6
52916 else
52917   cat >conftest.make <<\_ACEOF
52918 SHELL = /bin/sh
52919 all:
52920         @echo '@@@%%%=$(MAKE)=@@@%%%'
52921 _ACEOF
52922 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
52923 case `${MAKE-make} -f conftest.make 2>/dev/null` in
52924   *@@@%%%=?*=@@@%%%*)
52925     eval ac_cv_prog_make_${ac_make}_set=yes;;
52926   *)
52927     eval ac_cv_prog_make_${ac_make}_set=no;;
52928 esac
52929 rm -f conftest.make
52930 fi
52931 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
52932   { echo "$as_me:$LINENO: result: yes" >&5
52933 echo "${ECHO_T}yes" >&6; }
52934   SET_MAKE=
52935 else
52936   { echo "$as_me:$LINENO: result: no" >&5
52937 echo "${ECHO_T}no" >&6; }
52938   SET_MAKE="MAKE=${MAKE-make}"
52939 fi
52940
52941
52942
52943 ac_config_headers="$ac_config_headers lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h:setup.h.in"
52944
52945
52946 if test "$USE_WIN32" = 1; then
52947     ac_config_commands="$ac_config_commands rcdefs.h"
52948
52949 fi
52950
52951 ac_config_files="$ac_config_files lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in"
52952
52953
52954 ac_config_files="$ac_config_files lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in"
52955
52956
52957 ac_config_files="$ac_config_files utils/ifacecheck/rungccxml.sh"
52958
52959
52960 if test "$wx_cv_version_script" = "yes"; then
52961     ac_config_files="$ac_config_files version-script"
52962
52963 fi
52964 ac_config_files="$ac_config_files Makefile"
52965
52966
52967 ac_config_commands="$ac_config_commands wx-config"
52968
52969
52970
52971 if test "$wxWITH_SUBDIRS" != "no"; then
52972 if test "$wxUSE_GUI" = "yes"; then
52973     SUBDIRS="samples demos utils"
52974 else
52975             SUBDIRS="samples utils"
52976 fi
52977
52978
52979
52980 # Check whether --with-cppunit-prefix was given.
52981 if test "${with_cppunit_prefix+set}" = set; then
52982   withval=$with_cppunit_prefix; cppunit_config_prefix="$withval"
52983 else
52984   cppunit_config_prefix=""
52985 fi
52986
52987
52988 # Check whether --with-cppunit-exec-prefix was given.
52989 if test "${with_cppunit_exec_prefix+set}" = set; then
52990   withval=$with_cppunit_exec_prefix; cppunit_config_exec_prefix="$withval"
52991 else
52992   cppunit_config_exec_prefix=""
52993 fi
52994
52995
52996   if test x$cppunit_config_exec_prefix != x ; then
52997      cppunit_config_args="$cppunit_config_args --exec-prefix=$cppunit_config_exec_prefix"
52998      if test x${CPPUNIT_CONFIG+set} != xset ; then
52999         CPPUNIT_CONFIG=$cppunit_config_exec_prefix/bin/cppunit-config
53000      fi
53001   fi
53002   if test x$cppunit_config_prefix != x ; then
53003      cppunit_config_args="$cppunit_config_args --prefix=$cppunit_config_prefix"
53004      if test x${CPPUNIT_CONFIG+set} != xset ; then
53005         CPPUNIT_CONFIG=$cppunit_config_prefix/bin/cppunit-config
53006      fi
53007   fi
53008
53009   # Extract the first word of "cppunit-config", so it can be a program name with args.
53010 set dummy cppunit-config; ac_word=$2
53011 { echo "$as_me:$LINENO: checking for $ac_word" >&5
53012 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
53013 if test "${ac_cv_path_CPPUNIT_CONFIG+set}" = set; then
53014   echo $ECHO_N "(cached) $ECHO_C" >&6
53015 else
53016   case $CPPUNIT_CONFIG in
53017   [\\/]* | ?:[\\/]*)
53018   ac_cv_path_CPPUNIT_CONFIG="$CPPUNIT_CONFIG" # Let the user override the test with a path.
53019   ;;
53020   *)
53021   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
53022 for as_dir in $PATH
53023 do
53024   IFS=$as_save_IFS
53025   test -z "$as_dir" && as_dir=.
53026   for ac_exec_ext in '' $ac_executable_extensions; do
53027   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
53028     ac_cv_path_CPPUNIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
53029     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
53030     break 2
53031   fi
53032 done
53033 done
53034 IFS=$as_save_IFS
53035
53036   test -z "$ac_cv_path_CPPUNIT_CONFIG" && ac_cv_path_CPPUNIT_CONFIG="no"
53037   ;;
53038 esac
53039 fi
53040 CPPUNIT_CONFIG=$ac_cv_path_CPPUNIT_CONFIG
53041 if test -n "$CPPUNIT_CONFIG"; then
53042   { echo "$as_me:$LINENO: result: $CPPUNIT_CONFIG" >&5
53043 echo "${ECHO_T}$CPPUNIT_CONFIG" >&6; }
53044 else
53045   { echo "$as_me:$LINENO: result: no" >&5
53046 echo "${ECHO_T}no" >&6; }
53047 fi
53048
53049
53050   cppunit_version_min=1.8.0
53051
53052   { echo "$as_me:$LINENO: checking for Cppunit - version >= $cppunit_version_min" >&5
53053 echo $ECHO_N "checking for Cppunit - version >= $cppunit_version_min... $ECHO_C" >&6; }
53054   no_cppunit=""
53055   if test "$CPPUNIT_CONFIG" = "no" ; then
53056     { echo "$as_me:$LINENO: result: no" >&5
53057 echo "${ECHO_T}no" >&6; }
53058     no_cppunit=yes
53059   else
53060     CPPUNIT_CFLAGS=`$CPPUNIT_CONFIG --cflags`
53061     CPPUNIT_LIBS=`$CPPUNIT_CONFIG --libs`
53062     cppunit_version=`$CPPUNIT_CONFIG --version`
53063
53064     cppunit_major_version=`echo $cppunit_version | \
53065            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
53066     cppunit_minor_version=`echo $cppunit_version | \
53067            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
53068     cppunit_micro_version=`echo $cppunit_version | \
53069            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
53070
53071     cppunit_major_min=`echo $cppunit_version_min | \
53072            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
53073     cppunit_minor_min=`echo $cppunit_version_min | \
53074            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
53075     cppunit_micro_min=`echo $cppunit_version_min | \
53076            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
53077
53078     cppunit_version_proper=`expr \
53079         $cppunit_major_version \> $cppunit_major_min \| \
53080         $cppunit_major_version \= $cppunit_major_min \& \
53081         $cppunit_minor_version \> $cppunit_minor_min \| \
53082         $cppunit_major_version \= $cppunit_major_min \& \
53083         $cppunit_minor_version \= $cppunit_minor_min \& \
53084         $cppunit_micro_version \>= $cppunit_micro_min `
53085
53086     if test "$cppunit_version_proper" = "1" ; then
53087       { echo "$as_me:$LINENO: result: $cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&5
53088 echo "${ECHO_T}$cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&6; }
53089     else
53090       { echo "$as_me:$LINENO: result: no" >&5
53091 echo "${ECHO_T}no" >&6; }
53092       no_cppunit=yes
53093     fi
53094   fi
53095
53096   if test "x$no_cppunit" = x ; then
53097      SUBDIRS="$SUBDIRS tests"
53098   else
53099      CPPUNIT_CFLAGS=""
53100      CPPUNIT_LIBS=""
53101      :
53102   fi
53103
53104
53105
53106
53107
53108 for subdir in $SUBDIRS; do
53109     if test -d ${srcdir}/${subdir} ; then
53110         if test "$wxUSE_GUI" = "yes"; then
53111             if test ${subdir} = "samples"; then
53112                                                 makefiles="samples/Makefile.in $makefiles"
53113                 for sample in $SAMPLES_SUBDIRS; do
53114                     if test -d $srcdir/samples/$sample; then
53115                         makefiles="samples/$sample/Makefile.in $makefiles"
53116                     fi
53117                 done
53118             else
53119                                                                 disabled_var=DISABLED_`echo $subdir | tr '[a-z]' '[A-Z]'`
53120                 eval "disabled=\$$disabled_var"
53121                 disabled=/`echo X $disabled | sed 's@ @/|/@g'`/
53122                 makefiles=`(cd $srcdir ; find $subdir -name Makefile.in) | $EGREP -v "$disabled"`
53123             fi
53124         else
53125                                     if test ${subdir} = "samples"; then
53126                                                 makefiles="samples/Makefile.in $makefiles"
53127                 for sample in `echo $SAMPLES_SUBDIRS`; do
53128                     if test -d $srcdir/samples/$sample; then
53129                         makefiles="samples/$sample/Makefile.in $makefiles"
53130                     fi
53131                 done
53132             elif test ${subdir} = "utils"; then
53133                 makefiles=""
53134                 for util in ifacecheck ; do
53135                     if test -d $srcdir/utils/$util ; then
53136                         makefiles="utils/$util/src/Makefile.in \
53137                                    $makefiles"
53138                     fi
53139                 done
53140             else
53141                                 makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)`
53142             fi
53143         fi
53144
53145         for mkin in $makefiles ; do
53146             mk=`echo $mkin | sed 's/Makefile\.in/Makefile/g'`
53147             ac_config_files="$ac_config_files $mk"
53148
53149         done
53150     fi
53151 done
53152 fi
53153 cat >confcache <<\_ACEOF
53154 # This file is a shell script that caches the results of configure
53155 # tests run on this system so they can be shared between configure
53156 # scripts and configure runs, see configure's option --config-cache.
53157 # It is not useful on other systems.  If it contains results you don't
53158 # want to keep, you may remove or edit it.
53159 #
53160 # config.status only pays attention to the cache file if you give it
53161 # the --recheck option to rerun configure.
53162 #
53163 # `ac_cv_env_foo' variables (set or unset) will be overridden when
53164 # loading this file, other *unset* `ac_cv_foo' will be assigned the
53165 # following values.
53166
53167 _ACEOF
53168
53169 # The following way of writing the cache mishandles newlines in values,
53170 # but we know of no workaround that is simple, portable, and efficient.
53171 # So, we kill variables containing newlines.
53172 # Ultrix sh set writes to stderr and can't be redirected directly,
53173 # and sets the high bit in the cache file unless we assign to the vars.
53174 (
53175   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
53176     eval ac_val=\$$ac_var
53177     case $ac_val in #(
53178     *${as_nl}*)
53179       case $ac_var in #(
53180       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
53181 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
53182       esac
53183       case $ac_var in #(
53184       _ | IFS | as_nl) ;; #(
53185       *) $as_unset $ac_var ;;
53186       esac ;;
53187     esac
53188   done
53189
53190   (set) 2>&1 |
53191     case $as_nl`(ac_space=' '; set) 2>&1` in #(
53192     *${as_nl}ac_space=\ *)
53193       # `set' does not quote correctly, so add quotes (double-quote
53194       # substitution turns \\\\ into \\, and sed turns \\ into \).
53195       sed -n \
53196         "s/'/'\\\\''/g;
53197           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
53198       ;; #(
53199     *)
53200       # `set' quotes correctly as required by POSIX, so do not add quotes.
53201       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
53202       ;;
53203     esac |
53204     sort
53205 ) |
53206   sed '
53207      /^ac_cv_env_/b end
53208      t clear
53209      :clear
53210      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
53211      t end
53212      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
53213      :end' >>confcache
53214 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
53215   if test -w "$cache_file"; then
53216     test "x$cache_file" != "x/dev/null" &&
53217       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
53218 echo "$as_me: updating cache $cache_file" >&6;}
53219     cat confcache >$cache_file
53220   else
53221     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
53222 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
53223   fi
53224 fi
53225 rm -f confcache
53226
53227 test "x$prefix" = xNONE && prefix=$ac_default_prefix
53228 # Let make expand exec_prefix.
53229 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
53230
53231 DEFS=-DHAVE_CONFIG_H
53232
53233 ac_libobjs=
53234 ac_ltlibobjs=
53235 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
53236   # 1. Remove the extension, and $U if already installed.
53237   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
53238   ac_i=`echo "$ac_i" | sed "$ac_script"`
53239   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
53240   #    will be set to the directory where LIBOBJS objects are built.
53241   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
53242   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
53243 done
53244 LIBOBJS=$ac_libobjs
53245
53246 LTLIBOBJS=$ac_ltlibobjs
53247
53248
53249
53250 : ${CONFIG_STATUS=./config.status}
53251 ac_clean_files_save=$ac_clean_files
53252 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
53253 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
53254 echo "$as_me: creating $CONFIG_STATUS" >&6;}
53255 cat >$CONFIG_STATUS <<_ACEOF
53256 #! $SHELL
53257 # Generated by $as_me.
53258 # Run this file to recreate the current configuration.
53259 # Compiler output produced by configure, useful for debugging
53260 # configure, is in config.log if it exists.
53261
53262 debug=false
53263 ac_cs_recheck=false
53264 ac_cs_silent=false
53265 SHELL=\${CONFIG_SHELL-$SHELL}
53266 _ACEOF
53267
53268 cat >>$CONFIG_STATUS <<\_ACEOF
53269 ## --------------------- ##
53270 ## M4sh Initialization.  ##
53271 ## --------------------- ##
53272
53273 # Be more Bourne compatible
53274 DUALCASE=1; export DUALCASE # for MKS sh
53275 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
53276   emulate sh
53277   NULLCMD=:
53278   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
53279   # is contrary to our usage.  Disable this feature.
53280   alias -g '${1+"$@"}'='"$@"'
53281   setopt NO_GLOB_SUBST
53282 else
53283   case `(set -o) 2>/dev/null` in
53284   *posix*) set -o posix ;;
53285 esac
53286
53287 fi
53288
53289
53290
53291
53292 # PATH needs CR
53293 # Avoid depending upon Character Ranges.
53294 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
53295 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
53296 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
53297 as_cr_digits='0123456789'
53298 as_cr_alnum=$as_cr_Letters$as_cr_digits
53299
53300 # The user is always right.
53301 if test "${PATH_SEPARATOR+set}" != set; then
53302   echo "#! /bin/sh" >conf$$.sh
53303   echo  "exit 0"   >>conf$$.sh
53304   chmod +x conf$$.sh
53305   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
53306     PATH_SEPARATOR=';'
53307   else
53308     PATH_SEPARATOR=:
53309   fi
53310   rm -f conf$$.sh
53311 fi
53312
53313 # Support unset when possible.
53314 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
53315   as_unset=unset
53316 else
53317   as_unset=false
53318 fi
53319
53320
53321 # IFS
53322 # We need space, tab and new line, in precisely that order.  Quoting is
53323 # there to prevent editors from complaining about space-tab.
53324 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
53325 # splitting by setting IFS to empty value.)
53326 as_nl='
53327 '
53328 IFS=" ""        $as_nl"
53329
53330 # Find who we are.  Look in the path if we contain no directory separator.
53331 case $0 in
53332   *[\\/]* ) as_myself=$0 ;;
53333   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
53334 for as_dir in $PATH
53335 do
53336   IFS=$as_save_IFS
53337   test -z "$as_dir" && as_dir=.
53338   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
53339 done
53340 IFS=$as_save_IFS
53341
53342      ;;
53343 esac
53344 # We did not find ourselves, most probably we were run as `sh COMMAND'
53345 # in which case we are not to be found in the path.
53346 if test "x$as_myself" = x; then
53347   as_myself=$0
53348 fi
53349 if test ! -f "$as_myself"; then
53350   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
53351   { (exit 1); exit 1; }
53352 fi
53353
53354 # Work around bugs in pre-3.0 UWIN ksh.
53355 for as_var in ENV MAIL MAILPATH
53356 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
53357 done
53358 PS1='$ '
53359 PS2='> '
53360 PS4='+ '
53361
53362 # NLS nuisances.
53363 for as_var in \
53364   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
53365   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
53366   LC_TELEPHONE LC_TIME
53367 do
53368   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
53369     eval $as_var=C; export $as_var
53370   else
53371     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
53372   fi
53373 done
53374
53375 # Required to use basename.
53376 if expr a : '\(a\)' >/dev/null 2>&1 &&
53377    test "X`expr 00001 : '.*\(...\)'`" = X001; then
53378   as_expr=expr
53379 else
53380   as_expr=false
53381 fi
53382
53383 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
53384   as_basename=basename
53385 else
53386   as_basename=false
53387 fi
53388
53389
53390 # Name of the executable.
53391 as_me=`$as_basename -- "$0" ||
53392 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
53393          X"$0" : 'X\(//\)$' \| \
53394          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
53395 echo X/"$0" |
53396     sed '/^.*\/\([^/][^/]*\)\/*$/{
53397             s//\1/
53398             q
53399           }
53400           /^X\/\(\/\/\)$/{
53401             s//\1/
53402             q
53403           }
53404           /^X\/\(\/\).*/{
53405             s//\1/
53406             q
53407           }
53408           s/.*/./; q'`
53409
53410 # CDPATH.
53411 $as_unset CDPATH
53412
53413
53414
53415   as_lineno_1=$LINENO
53416   as_lineno_2=$LINENO
53417   test "x$as_lineno_1" != "x$as_lineno_2" &&
53418   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
53419
53420   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
53421   # uniformly replaced by the line number.  The first 'sed' inserts a
53422   # line-number line after each line using $LINENO; the second 'sed'
53423   # does the real work.  The second script uses 'N' to pair each
53424   # line-number line with the line containing $LINENO, and appends
53425   # trailing '-' during substitution so that $LINENO is not a special
53426   # case at line end.
53427   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
53428   # scripts with optimization help from Paolo Bonzini.  Blame Lee
53429   # E. McMahon (1931-1989) for sed's syntax.  :-)
53430   sed -n '
53431     p
53432     /[$]LINENO/=
53433   ' <$as_myself |
53434     sed '
53435       s/[$]LINENO.*/&-/
53436       t lineno
53437       b
53438       :lineno
53439       N
53440       :loop
53441       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
53442       t loop
53443       s/-\n.*//
53444     ' >$as_me.lineno &&
53445   chmod +x "$as_me.lineno" ||
53446     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
53447    { (exit 1); exit 1; }; }
53448
53449   # Don't try to exec as it changes $[0], causing all sort of problems
53450   # (the dirname of $[0] is not the place where we might find the
53451   # original and so on.  Autoconf is especially sensitive to this).
53452   . "./$as_me.lineno"
53453   # Exit status is that of the last command.
53454   exit
53455 }
53456
53457
53458 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
53459   as_dirname=dirname
53460 else
53461   as_dirname=false
53462 fi
53463
53464 ECHO_C= ECHO_N= ECHO_T=
53465 case `echo -n x` in
53466 -n*)
53467   case `echo 'x\c'` in
53468   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
53469   *)   ECHO_C='\c';;
53470   esac;;
53471 *)
53472   ECHO_N='-n';;
53473 esac
53474
53475 if expr a : '\(a\)' >/dev/null 2>&1 &&
53476    test "X`expr 00001 : '.*\(...\)'`" = X001; then
53477   as_expr=expr
53478 else
53479   as_expr=false
53480 fi
53481
53482 rm -f conf$$ conf$$.exe conf$$.file
53483 if test -d conf$$.dir; then
53484   rm -f conf$$.dir/conf$$.file
53485 else
53486   rm -f conf$$.dir
53487   mkdir conf$$.dir
53488 fi
53489 echo >conf$$.file
53490 if ln -s conf$$.file conf$$ 2>/dev/null; then
53491   as_ln_s='ln -s'
53492   # ... but there are two gotchas:
53493   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
53494   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
53495   # In both cases, we have to default to `cp -p'.
53496   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
53497     as_ln_s='cp -p'
53498 elif ln conf$$.file conf$$ 2>/dev/null; then
53499   as_ln_s=ln
53500 else
53501   as_ln_s='cp -p'
53502 fi
53503 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
53504 rmdir conf$$.dir 2>/dev/null
53505
53506 if mkdir -p . 2>/dev/null; then
53507   as_mkdir_p=:
53508 else
53509   test -d ./-p && rmdir ./-p
53510   as_mkdir_p=false
53511 fi
53512
53513 if test -x / >/dev/null 2>&1; then
53514   as_test_x='test -x'
53515 else
53516   if ls -dL / >/dev/null 2>&1; then
53517     as_ls_L_option=L
53518   else
53519     as_ls_L_option=
53520   fi
53521   as_test_x='
53522     eval sh -c '\''
53523       if test -d "$1"; then
53524         test -d "$1/.";
53525       else
53526         case $1 in
53527         -*)set "./$1";;
53528         esac;
53529         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
53530         ???[sx]*):;;*)false;;esac;fi
53531     '\'' sh
53532   '
53533 fi
53534 as_executable_p=$as_test_x
53535
53536 # Sed expression to map a string onto a valid CPP name.
53537 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
53538
53539 # Sed expression to map a string onto a valid variable name.
53540 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
53541
53542
53543 exec 6>&1
53544
53545 # Save the log message, to keep $[0] and so on meaningful, and to
53546 # report actual input values of CONFIG_FILES etc. instead of their
53547 # values after options handling.
53548 ac_log="
53549 This file was extended by wxWidgets $as_me 2.9.3, which was
53550 generated by GNU Autoconf 2.61.  Invocation command line was
53551
53552   CONFIG_FILES    = $CONFIG_FILES
53553   CONFIG_HEADERS  = $CONFIG_HEADERS
53554   CONFIG_LINKS    = $CONFIG_LINKS
53555   CONFIG_COMMANDS = $CONFIG_COMMANDS
53556   $ $0 $@
53557
53558 on `(hostname || uname -n) 2>/dev/null | sed 1q`
53559 "
53560
53561 _ACEOF
53562
53563 cat >>$CONFIG_STATUS <<_ACEOF
53564 # Files that config.status was made for.
53565 config_files="$ac_config_files"
53566 config_headers="$ac_config_headers"
53567 config_commands="$ac_config_commands"
53568
53569 _ACEOF
53570
53571 cat >>$CONFIG_STATUS <<\_ACEOF
53572 ac_cs_usage="\
53573 \`$as_me' instantiates files from templates according to the
53574 current configuration.
53575
53576 Usage: $0 [OPTIONS] [FILE]...
53577
53578   -h, --help       print this help, then exit
53579   -V, --version    print version number and configuration settings, then exit
53580   -q, --quiet      do not print progress messages
53581   -d, --debug      don't remove temporary files
53582       --recheck    update $as_me by reconfiguring in the same conditions
53583   --file=FILE[:TEMPLATE]
53584                    instantiate the configuration file FILE
53585   --header=FILE[:TEMPLATE]
53586                    instantiate the configuration header FILE
53587
53588 Configuration files:
53589 $config_files
53590
53591 Configuration headers:
53592 $config_headers
53593
53594 Configuration commands:
53595 $config_commands
53596
53597 Report bugs to <bug-autoconf@gnu.org>."
53598
53599 _ACEOF
53600 cat >>$CONFIG_STATUS <<_ACEOF
53601 ac_cs_version="\\
53602 wxWidgets config.status 2.9.3
53603 configured by $0, generated by GNU Autoconf 2.61,
53604   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
53605
53606 Copyright (C) 2006 Free Software Foundation, Inc.
53607 This config.status script is free software; the Free Software Foundation
53608 gives unlimited permission to copy, distribute and modify it."
53609
53610 ac_pwd='$ac_pwd'
53611 srcdir='$srcdir'
53612 INSTALL='$INSTALL'
53613 _ACEOF
53614
53615 cat >>$CONFIG_STATUS <<\_ACEOF
53616 # If no file are specified by the user, then we need to provide default
53617 # value.  By we need to know if files were specified by the user.
53618 ac_need_defaults=:
53619 while test $# != 0
53620 do
53621   case $1 in
53622   --*=*)
53623     ac_option=`expr "X$1" : 'X\([^=]*\)='`
53624     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
53625     ac_shift=:
53626     ;;
53627   *)
53628     ac_option=$1
53629     ac_optarg=$2
53630     ac_shift=shift
53631     ;;
53632   esac
53633
53634   case $ac_option in
53635   # Handling of the options.
53636   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
53637     ac_cs_recheck=: ;;
53638   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
53639     echo "$ac_cs_version"; exit ;;
53640   --debug | --debu | --deb | --de | --d | -d )
53641     debug=: ;;
53642   --file | --fil | --fi | --f )
53643     $ac_shift
53644     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
53645     ac_need_defaults=false;;
53646   --header | --heade | --head | --hea )
53647     $ac_shift
53648     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
53649     ac_need_defaults=false;;
53650   --he | --h)
53651     # Conflict between --help and --header
53652     { echo "$as_me: error: ambiguous option: $1
53653 Try \`$0 --help' for more information." >&2
53654    { (exit 1); exit 1; }; };;
53655   --help | --hel | -h )
53656     echo "$ac_cs_usage"; exit ;;
53657   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
53658   | -silent | --silent | --silen | --sile | --sil | --si | --s)
53659     ac_cs_silent=: ;;
53660
53661   # This is an error.
53662   -*) { echo "$as_me: error: unrecognized option: $1
53663 Try \`$0 --help' for more information." >&2
53664    { (exit 1); exit 1; }; } ;;
53665
53666   *) ac_config_targets="$ac_config_targets $1"
53667      ac_need_defaults=false ;;
53668
53669   esac
53670   shift
53671 done
53672
53673 ac_configure_extra_args=
53674
53675 if $ac_cs_silent; then
53676   exec 6>/dev/null
53677   ac_configure_extra_args="$ac_configure_extra_args --silent"
53678 fi
53679
53680 _ACEOF
53681 cat >>$CONFIG_STATUS <<_ACEOF
53682 if \$ac_cs_recheck; then
53683   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
53684   CONFIG_SHELL=$SHELL
53685   export CONFIG_SHELL
53686   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
53687 fi
53688
53689 _ACEOF
53690 cat >>$CONFIG_STATUS <<\_ACEOF
53691 exec 5>>config.log
53692 {
53693   echo
53694   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
53695 ## Running $as_me. ##
53696 _ASBOX
53697   echo "$ac_log"
53698 } >&5
53699
53700 _ACEOF
53701 cat >>$CONFIG_STATUS <<_ACEOF
53702 #
53703 # INIT-COMMANDS
53704 #
53705
53706             CPP="$CPP"
53707             infile="$srcdir/include/wx/msw/genrcdefs.h"
53708             outdir="lib/wx/include/$TOOLCHAIN_FULLNAME/wx/msw"
53709
53710
53711  TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
53712  TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
53713  TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
53714                      LN_S="${LN_S}"
53715
53716
53717 _ACEOF
53718
53719 cat >>$CONFIG_STATUS <<\_ACEOF
53720
53721 # Handling of arguments.
53722 for ac_config_target in $ac_config_targets
53723 do
53724   case $ac_config_target in
53725     "lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h:setup.h.in" ;;
53726     "rcdefs.h") CONFIG_COMMANDS="$CONFIG_COMMANDS rcdefs.h" ;;
53727     "lib/wx/config/${TOOLCHAIN_FULLNAME}") CONFIG_FILES="$CONFIG_FILES lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in" ;;
53728     "lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}") CONFIG_FILES="$CONFIG_FILES lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in" ;;
53729     "utils/ifacecheck/rungccxml.sh") CONFIG_FILES="$CONFIG_FILES utils/ifacecheck/rungccxml.sh" ;;
53730     "version-script") CONFIG_FILES="$CONFIG_FILES version-script" ;;
53731     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
53732     "wx-config") CONFIG_COMMANDS="$CONFIG_COMMANDS wx-config" ;;
53733     "$mk") CONFIG_FILES="$CONFIG_FILES $mk" ;;
53734
53735   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
53736 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
53737    { (exit 1); exit 1; }; };;
53738   esac
53739 done
53740
53741
53742 # If the user did not use the arguments to specify the items to instantiate,
53743 # then the envvar interface is used.  Set only those that are not.
53744 # We use the long form for the default assignment because of an extremely
53745 # bizarre bug on SunOS 4.1.3.
53746 if $ac_need_defaults; then
53747   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
53748   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
53749   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
53750 fi
53751
53752 # Have a temporary directory for convenience.  Make it in the build tree
53753 # simply because there is no reason against having it here, and in addition,
53754 # creating and moving files from /tmp can sometimes cause problems.
53755 # Hook for its removal unless debugging.
53756 # Note that there is a small window in which the directory will not be cleaned:
53757 # after its creation but before its name has been assigned to `$tmp'.
53758 $debug ||
53759 {
53760   tmp=
53761   trap 'exit_status=$?
53762   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
53763 ' 0
53764   trap '{ (exit 1); exit 1; }' 1 2 13 15
53765 }
53766 # Create a (secure) tmp directory for tmp files.
53767
53768 {
53769   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
53770   test -n "$tmp" && test -d "$tmp"
53771 }  ||
53772 {
53773   tmp=./conf$$-$RANDOM
53774   (umask 077 && mkdir "$tmp")
53775 } ||
53776 {
53777    echo "$me: cannot create a temporary directory in ." >&2
53778    { (exit 1); exit 1; }
53779 }
53780
53781 #
53782 # Set up the sed scripts for CONFIG_FILES section.
53783 #
53784
53785 # No need to generate the scripts if there are no CONFIG_FILES.
53786 # This happens for instance when ./config.status config.h
53787 if test -n "$CONFIG_FILES"; then
53788
53789 _ACEOF
53790
53791
53792
53793 ac_delim='%!_!# '
53794 for ac_last_try in false false false false false :; do
53795   cat >conf$$subs.sed <<_ACEOF
53796 SHELL!$SHELL$ac_delim
53797 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
53798 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
53799 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
53800 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
53801 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
53802 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
53803 exec_prefix!$exec_prefix$ac_delim
53804 prefix!$prefix$ac_delim
53805 program_transform_name!$program_transform_name$ac_delim
53806 bindir!$bindir$ac_delim
53807 sbindir!$sbindir$ac_delim
53808 libexecdir!$libexecdir$ac_delim
53809 datarootdir!$datarootdir$ac_delim
53810 datadir!$datadir$ac_delim
53811 sysconfdir!$sysconfdir$ac_delim
53812 sharedstatedir!$sharedstatedir$ac_delim
53813 localstatedir!$localstatedir$ac_delim
53814 includedir!$includedir$ac_delim
53815 oldincludedir!$oldincludedir$ac_delim
53816 docdir!$docdir$ac_delim
53817 infodir!$infodir$ac_delim
53818 htmldir!$htmldir$ac_delim
53819 dvidir!$dvidir$ac_delim
53820 pdfdir!$pdfdir$ac_delim
53821 psdir!$psdir$ac_delim
53822 libdir!$libdir$ac_delim
53823 localedir!$localedir$ac_delim
53824 mandir!$mandir$ac_delim
53825 DEFS!$DEFS$ac_delim
53826 ECHO_C!$ECHO_C$ac_delim
53827 ECHO_N!$ECHO_N$ac_delim
53828 ECHO_T!$ECHO_T$ac_delim
53829 LIBS!$LIBS$ac_delim
53830 build_alias!$build_alias$ac_delim
53831 host_alias!$host_alias$ac_delim
53832 target_alias!$target_alias$ac_delim
53833 build!$build$ac_delim
53834 build_cpu!$build_cpu$ac_delim
53835 build_vendor!$build_vendor$ac_delim
53836 build_os!$build_os$ac_delim
53837 host!$host$ac_delim
53838 host_cpu!$host_cpu$ac_delim
53839 host_vendor!$host_vendor$ac_delim
53840 host_os!$host_os$ac_delim
53841 wx_top_builddir!$wx_top_builddir$ac_delim
53842 CC!$CC$ac_delim
53843 CFLAGS!$CFLAGS$ac_delim
53844 LDFLAGS!$LDFLAGS$ac_delim
53845 CPPFLAGS!$CPPFLAGS$ac_delim
53846 ac_ct_CC!$ac_ct_CC$ac_delim
53847 EXEEXT!$EXEEXT$ac_delim
53848 OBJEXT!$OBJEXT$ac_delim
53849 CPP!$CPP$ac_delim
53850 GREP!$GREP$ac_delim
53851 EGREP!$EGREP$ac_delim
53852 CXX!$CXX$ac_delim
53853 CXXFLAGS!$CXXFLAGS$ac_delim
53854 ac_ct_CXX!$ac_ct_CXX$ac_delim
53855 AR!$AR$ac_delim
53856 OSX_SW_VERS!$OSX_SW_VERS$ac_delim
53857 CXXCPP!$CXXCPP$ac_delim
53858 subdirs!$subdirs$ac_delim
53859 PKG_CONFIG!$PKG_CONFIG$ac_delim
53860 GTK_CFLAGS!$GTK_CFLAGS$ac_delim
53861 GTK_LIBS!$GTK_LIBS$ac_delim
53862 GTK_CONFIG!$GTK_CONFIG$ac_delim
53863 DIRECTFB_CFLAGS!$DIRECTFB_CFLAGS$ac_delim
53864 DIRECTFB_LIBS!$DIRECTFB_LIBS$ac_delim
53865 XMKMF!$XMKMF$ac_delim
53866 X_CFLAGS!$X_CFLAGS$ac_delim
53867 X_PRE_LIBS!$X_PRE_LIBS$ac_delim
53868 X_LIBS!$X_LIBS$ac_delim
53869 X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
53870 PANGOX_CFLAGS!$PANGOX_CFLAGS$ac_delim
53871 PANGOX_LIBS!$PANGOX_LIBS$ac_delim
53872 PANGOFT2_CFLAGS!$PANGOFT2_CFLAGS$ac_delim
53873 PANGOFT2_LIBS!$PANGOFT2_LIBS$ac_delim
53874 PANGOXFT_CFLAGS!$PANGOXFT_CFLAGS$ac_delim
53875 PANGOXFT_LIBS!$PANGOXFT_LIBS$ac_delim
53876 CFLAGS_VISIBILITY!$CFLAGS_VISIBILITY$ac_delim
53877 CXXFLAGS_VISIBILITY!$CXXFLAGS_VISIBILITY$ac_delim
53878 LIBICONV!$LIBICONV$ac_delim
53879 GXX_VERSION!$GXX_VERSION$ac_delim
53880 SDL_CONFIG!$SDL_CONFIG$ac_delim
53881 SDL_CFLAGS!$SDL_CFLAGS$ac_delim
53882 SDL_LIBS!$SDL_LIBS$ac_delim
53883 GTKPRINT_CFLAGS!$GTKPRINT_CFLAGS$ac_delim
53884 GTKPRINT_LIBS!$GTKPRINT_LIBS$ac_delim
53885 LIBGNOMEPRINTUI_CFLAGS!$LIBGNOMEPRINTUI_CFLAGS$ac_delim
53886 LIBGNOMEPRINTUI_LIBS!$LIBGNOMEPRINTUI_LIBS$ac_delim
53887 GNOMEVFS_CFLAGS!$GNOMEVFS_CFLAGS$ac_delim
53888 GNOMEVFS_LIBS!$GNOMEVFS_LIBS$ac_delim
53889 HILDON_CFLAGS!$HILDON_CFLAGS$ac_delim
53890 HILDON_LIBS!$HILDON_LIBS$ac_delim
53891 HILDON2_CFLAGS!$HILDON2_CFLAGS$ac_delim
53892 HILDON2_LIBS!$HILDON2_LIBS$ac_delim
53893 _ACEOF
53894
53895   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
53896     break
53897   elif $ac_last_try; then
53898     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
53899 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
53900    { (exit 1); exit 1; }; }
53901   else
53902     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
53903   fi
53904 done
53905
53906 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
53907 if test -n "$ac_eof"; then
53908   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
53909   ac_eof=`expr $ac_eof + 1`
53910 fi
53911
53912 cat >>$CONFIG_STATUS <<_ACEOF
53913 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
53914 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
53915 _ACEOF
53916 sed '
53917 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
53918 s/^/s,@/; s/!/@,|#_!!_#|/
53919 :n
53920 t n
53921 s/'"$ac_delim"'$/,g/; t
53922 s/$/\\/; p
53923 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
53924 ' >>$CONFIG_STATUS <conf$$subs.sed
53925 rm -f conf$$subs.sed
53926 cat >>$CONFIG_STATUS <<_ACEOF
53927 CEOF$ac_eof
53928 _ACEOF
53929
53930
53931 ac_delim='%!_!# '
53932 for ac_last_try in false false false false false :; do
53933   cat >conf$$subs.sed <<_ACEOF
53934 PYTHON!$PYTHON$ac_delim
53935 COND_PYTHON!$COND_PYTHON$ac_delim
53936 CAIRO_CFLAGS!$CAIRO_CFLAGS$ac_delim
53937 CAIRO_LIBS!$CAIRO_LIBS$ac_delim
53938 GST_CFLAGS!$GST_CFLAGS$ac_delim
53939 GST_LIBS!$GST_LIBS$ac_delim
53940 ALL_WX_LIBS!$ALL_WX_LIBS$ac_delim
53941 BUILT_WX_LIBS!$BUILT_WX_LIBS$ac_delim
53942 STD_BASE_LIBS!$STD_BASE_LIBS$ac_delim
53943 STD_GUI_LIBS!$STD_GUI_LIBS$ac_delim
53944 wxUSE_ZLIB!$wxUSE_ZLIB$ac_delim
53945 wxUSE_REGEX!$wxUSE_REGEX$ac_delim
53946 wxUSE_EXPAT!$wxUSE_EXPAT$ac_delim
53947 wxUSE_LIBJPEG!$wxUSE_LIBJPEG$ac_delim
53948 wxUSE_LIBPNG!$wxUSE_LIBPNG$ac_delim
53949 wxUSE_LIBTIFF!$wxUSE_LIBTIFF$ac_delim
53950 VENDOR!$VENDOR$ac_delim
53951 OFFICIAL_BUILD!$OFFICIAL_BUILD$ac_delim
53952 WX_FLAVOUR!$WX_FLAVOUR$ac_delim
53953 WX_LIB_FLAVOUR!$WX_LIB_FLAVOUR$ac_delim
53954 WXUNIV!$WXUNIV$ac_delim
53955 MONOLITHIC!$MONOLITHIC$ac_delim
53956 USE_PLUGINS!$USE_PLUGINS$ac_delim
53957 CXXWARNINGS!$CXXWARNINGS$ac_delim
53958 EXTRALIBS!$EXTRALIBS$ac_delim
53959 EXTRALIBS_XML!$EXTRALIBS_XML$ac_delim
53960 EXTRALIBS_HTML!$EXTRALIBS_HTML$ac_delim
53961 EXTRALIBS_MEDIA!$EXTRALIBS_MEDIA$ac_delim
53962 EXTRALIBS_GUI!$EXTRALIBS_GUI$ac_delim
53963 EXTRALIBS_OPENGL!$EXTRALIBS_OPENGL$ac_delim
53964 EXTRALIBS_SDL!$EXTRALIBS_SDL$ac_delim
53965 EXTRALIBS_STC!$EXTRALIBS_STC$ac_delim
53966 WITH_PLUGIN_SDL!$WITH_PLUGIN_SDL$ac_delim
53967 EXTRALIBS_GTKPRINT!$EXTRALIBS_GTKPRINT$ac_delim
53968 EXTRALIBS_GNOMEPRINT!$EXTRALIBS_GNOMEPRINT$ac_delim
53969 EXTRALIBS_GNOMEVFS!$EXTRALIBS_GNOMEVFS$ac_delim
53970 EXTRALIBS_HILDON!$EXTRALIBS_HILDON$ac_delim
53971 UNICODE!$UNICODE$ac_delim
53972 DEBUG_INFO!$DEBUG_INFO$ac_delim
53973 DEBUG_FLAG!$DEBUG_FLAG$ac_delim
53974 TOOLKIT_LOWERCASE!$TOOLKIT_LOWERCASE$ac_delim
53975 TOOLKIT_VERSION!$TOOLKIT_VERSION$ac_delim
53976 DYLIB_RPATH_INSTALL!$DYLIB_RPATH_INSTALL$ac_delim
53977 DYLIB_RPATH_POSTLINK!$DYLIB_RPATH_POSTLINK$ac_delim
53978 SAMPLES_RPATH_FLAG!$SAMPLES_RPATH_FLAG$ac_delim
53979 HEADER_PAD_OPTION!$HEADER_PAD_OPTION$ac_delim
53980 HOST_SUFFIX!$HOST_SUFFIX$ac_delim
53981 CPPUNIT_CFLAGS!$CPPUNIT_CFLAGS$ac_delim
53982 CPPUNIT_LIBS!$CPPUNIT_LIBS$ac_delim
53983 RANLIB!$RANLIB$ac_delim
53984 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
53985 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
53986 INSTALL_DATA!$INSTALL_DATA$ac_delim
53987 LN_S!$LN_S$ac_delim
53988 SET_MAKE!$SET_MAKE$ac_delim
53989 MAKE_SET!$MAKE_SET$ac_delim
53990 AROPTIONS!$AROPTIONS$ac_delim
53991 STRIP!$STRIP$ac_delim
53992 NM!$NM$ac_delim
53993 INSTALL_DIR!$INSTALL_DIR$ac_delim
53994 LDFLAGS_GUI!$LDFLAGS_GUI$ac_delim
53995 IF_GNU_MAKE!$IF_GNU_MAKE$ac_delim
53996 PLATFORM_UNIX!$PLATFORM_UNIX$ac_delim
53997 PLATFORM_WIN32!$PLATFORM_WIN32$ac_delim
53998 PLATFORM_MSDOS!$PLATFORM_MSDOS$ac_delim
53999 PLATFORM_MAC!$PLATFORM_MAC$ac_delim
54000 PLATFORM_MACOS!$PLATFORM_MACOS$ac_delim
54001 PLATFORM_MACOSX!$PLATFORM_MACOSX$ac_delim
54002 PLATFORM_OS2!$PLATFORM_OS2$ac_delim
54003 PLATFORM_BEOS!$PLATFORM_BEOS$ac_delim
54004 SO_SUFFIX!$SO_SUFFIX$ac_delim
54005 SO_SUFFIX_MODULE!$SO_SUFFIX_MODULE$ac_delim
54006 DLLIMP_SUFFIX!$DLLIMP_SUFFIX$ac_delim
54007 LIBPREFIX!$LIBPREFIX$ac_delim
54008 LIBEXT!$LIBEXT$ac_delim
54009 DLLPREFIX!$DLLPREFIX$ac_delim
54010 DLLPREFIX_MODULE!$DLLPREFIX_MODULE$ac_delim
54011 dlldir!$dlldir$ac_delim
54012 AIX_CXX_LD!$AIX_CXX_LD$ac_delim
54013 SHARED_LD_CC!$SHARED_LD_CC$ac_delim
54014 SHARED_LD_CXX!$SHARED_LD_CXX$ac_delim
54015 SHARED_LD_MODULE_CC!$SHARED_LD_MODULE_CC$ac_delim
54016 SHARED_LD_MODULE_CXX!$SHARED_LD_MODULE_CXX$ac_delim
54017 PIC_FLAG!$PIC_FLAG$ac_delim
54018 WINDOWS_IMPLIB!$WINDOWS_IMPLIB$ac_delim
54019 USE_SOVERSION!$USE_SOVERSION$ac_delim
54020 USE_SOVERLINUX!$USE_SOVERLINUX$ac_delim
54021 USE_SOVERSOLARIS!$USE_SOVERSOLARIS$ac_delim
54022 USE_SOVERCYGWIN!$USE_SOVERCYGWIN$ac_delim
54023 USE_MACVERSION!$USE_MACVERSION$ac_delim
54024 USE_SOTWOSYMLINKS!$USE_SOTWOSYMLINKS$ac_delim
54025 SONAME_FLAG!$SONAME_FLAG$ac_delim
54026 DEPS_TRACKING!$DEPS_TRACKING$ac_delim
54027 BK_DEPS!$BK_DEPS$ac_delim
54028 WINDRES!$WINDRES$ac_delim
54029 REZ!$REZ$ac_delim
54030 SETFILE!$SETFILE$ac_delim
54031 _ACEOF
54032
54033   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
54034     break
54035   elif $ac_last_try; then
54036     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
54037 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
54038    { (exit 1); exit 1; }; }
54039   else
54040     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
54041   fi
54042 done
54043
54044 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
54045 if test -n "$ac_eof"; then
54046   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
54047   ac_eof=`expr $ac_eof + 1`
54048 fi
54049
54050 cat >>$CONFIG_STATUS <<_ACEOF
54051 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
54052 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
54053 _ACEOF
54054 sed '
54055 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
54056 s/^/s,@/; s/!/@,|#_!!_#|/
54057 :n
54058 t n
54059 s/'"$ac_delim"'$/,g/; t
54060 s/$/\\/; p
54061 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
54062 ' >>$CONFIG_STATUS <conf$$subs.sed
54063 rm -f conf$$subs.sed
54064 cat >>$CONFIG_STATUS <<_ACEOF
54065 CEOF$ac_eof
54066 _ACEOF
54067
54068
54069 ac_delim='%!_!# '
54070 for ac_last_try in false false false false false :; do
54071   cat >conf$$subs.sed <<_ACEOF
54072 OBJCXXFLAGS!$OBJCXXFLAGS$ac_delim
54073 GCC_PCH!$GCC_PCH$ac_delim
54074 ICC_PCH!$ICC_PCH$ac_delim
54075 ICC_PCH_CREATE_SWITCH!$ICC_PCH_CREATE_SWITCH$ac_delim
54076 ICC_PCH_USE_SWITCH!$ICC_PCH_USE_SWITCH$ac_delim
54077 BK_MAKE_PCH!$BK_MAKE_PCH$ac_delim
54078 COND_BUILD_DEBUG!$COND_BUILD_DEBUG$ac_delim
54079 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT!$COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT$ac_delim
54080 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT!$COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT$ac_delim
54081 COND_BUILD_DEBUG_UNICODE_0!$COND_BUILD_DEBUG_UNICODE_0$ac_delim
54082 COND_BUILD_DEBUG_UNICODE_1!$COND_BUILD_DEBUG_UNICODE_1$ac_delim
54083 COND_BUILD_RELEASE!$COND_BUILD_RELEASE$ac_delim
54084 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT!$COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT$ac_delim
54085 COND_BUILD_RELEASE_UNICODE_0!$COND_BUILD_RELEASE_UNICODE_0$ac_delim
54086 COND_BUILD_RELEASE_UNICODE_1!$COND_BUILD_RELEASE_UNICODE_1$ac_delim
54087 COND_BUILD_debug!$COND_BUILD_debug$ac_delim
54088 COND_BUILD_debug_DEBUG_FLAG_default!$COND_BUILD_debug_DEBUG_FLAG_default$ac_delim
54089 COND_BUILD_debug_DEBUG_INFO_default!$COND_BUILD_debug_DEBUG_INFO_default$ac_delim
54090 COND_BUILD_debug_UNICODE_0!$COND_BUILD_debug_UNICODE_0$ac_delim
54091 COND_BUILD_debug_UNICODE_1!$COND_BUILD_debug_UNICODE_1$ac_delim
54092 COND_BUILD_release!$COND_BUILD_release$ac_delim
54093 COND_BUILD_release_DEBUG_INFO_default!$COND_BUILD_release_DEBUG_INFO_default$ac_delim
54094 COND_BUILD_release_UNICODE_0!$COND_BUILD_release_UNICODE_0$ac_delim
54095 COND_BUILD_release_UNICODE_1!$COND_BUILD_release_UNICODE_1$ac_delim
54096 COND_DEBUG_FLAG_0!$COND_DEBUG_FLAG_0$ac_delim
54097 COND_DEBUG_FLAG_1!$COND_DEBUG_FLAG_1$ac_delim
54098 COND_DEBUG_INFO_0!$COND_DEBUG_INFO_0$ac_delim
54099 COND_DEBUG_INFO_1!$COND_DEBUG_INFO_1$ac_delim
54100 COND_DEPS_TRACKING_0!$COND_DEPS_TRACKING_0$ac_delim
54101 COND_DEPS_TRACKING_1!$COND_DEPS_TRACKING_1$ac_delim
54102 COND_GCC_PCH_1!$COND_GCC_PCH_1$ac_delim
54103 COND_ICC_PCH_1!$COND_ICC_PCH_1$ac_delim
54104 COND_MONOLITHIC_0!$COND_MONOLITHIC_0$ac_delim
54105 COND_MONOLITHIC_0_SHARED_0!$COND_MONOLITHIC_0_SHARED_0$ac_delim
54106 COND_MONOLITHIC_0_SHARED_0_USE_AUI_1!$COND_MONOLITHIC_0_SHARED_0_USE_AUI_1$ac_delim
54107 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1!$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1$ac_delim
54108 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1!$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1$ac_delim
54109 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1!$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1$ac_delim
54110 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1!$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1$ac_delim
54111 COND_MONOLITHIC_0_SHARED_0_USE_PROPGRID_1!$COND_MONOLITHIC_0_SHARED_0_USE_PROPGRID_1$ac_delim
54112 COND_MONOLITHIC_0_SHARED_0_USE_RIBBON_1!$COND_MONOLITHIC_0_SHARED_0_USE_RIBBON_1$ac_delim
54113 COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1!$COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1$ac_delim
54114 COND_MONOLITHIC_0_SHARED_0_USE_STC_1!$COND_MONOLITHIC_0_SHARED_0_USE_STC_1$ac_delim
54115 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1!$COND_MONOLITHIC_0_SHARED_0_USE_XRC_1$ac_delim
54116 COND_MONOLITHIC_0_SHARED_1!$COND_MONOLITHIC_0_SHARED_1$ac_delim
54117 COND_MONOLITHIC_0_SHARED_1_USE_AUI_1!$COND_MONOLITHIC_0_SHARED_1_USE_AUI_1$ac_delim
54118 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1!$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1$ac_delim
54119 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1!$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1$ac_delim
54120 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1!$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1$ac_delim
54121 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1!$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1$ac_delim
54122 COND_MONOLITHIC_0_SHARED_1_USE_PROPGRID_1!$COND_MONOLITHIC_0_SHARED_1_USE_PROPGRID_1$ac_delim
54123 COND_MONOLITHIC_0_SHARED_1_USE_RIBBON_1!$COND_MONOLITHIC_0_SHARED_1_USE_RIBBON_1$ac_delim
54124 COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1!$COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1$ac_delim
54125 COND_MONOLITHIC_0_SHARED_1_USE_STC_1!$COND_MONOLITHIC_0_SHARED_1_USE_STC_1$ac_delim
54126 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1!$COND_MONOLITHIC_0_SHARED_1_USE_XRC_1$ac_delim
54127 COND_MONOLITHIC_0_USE_AUI_1!$COND_MONOLITHIC_0_USE_AUI_1$ac_delim
54128 COND_MONOLITHIC_0_USE_GUI_1!$COND_MONOLITHIC_0_USE_GUI_1$ac_delim
54129 COND_MONOLITHIC_0_USE_GUI_1_USE_MEDIA_1!$COND_MONOLITHIC_0_USE_GUI_1_USE_MEDIA_1$ac_delim
54130 COND_MONOLITHIC_0_USE_HTML_1!$COND_MONOLITHIC_0_USE_HTML_1$ac_delim
54131 COND_MONOLITHIC_0_USE_MEDIA_1!$COND_MONOLITHIC_0_USE_MEDIA_1$ac_delim
54132 COND_MONOLITHIC_0_USE_PROPGRID_1!$COND_MONOLITHIC_0_USE_PROPGRID_1$ac_delim
54133 COND_MONOLITHIC_0_USE_QA_1!$COND_MONOLITHIC_0_USE_QA_1$ac_delim
54134 COND_MONOLITHIC_0_USE_RIBBON_1!$COND_MONOLITHIC_0_USE_RIBBON_1$ac_delim
54135 COND_MONOLITHIC_0_USE_RICHTEXT_1!$COND_MONOLITHIC_0_USE_RICHTEXT_1$ac_delim
54136 COND_MONOLITHIC_0_USE_STC_1!$COND_MONOLITHIC_0_USE_STC_1$ac_delim
54137 COND_MONOLITHIC_0_USE_XRC_1!$COND_MONOLITHIC_0_USE_XRC_1$ac_delim
54138 COND_MONOLITHIC_1!$COND_MONOLITHIC_1$ac_delim
54139 COND_MONOLITHIC_1_SHARED_0!$COND_MONOLITHIC_1_SHARED_0$ac_delim
54140 COND_MONOLITHIC_1_SHARED_1!$COND_MONOLITHIC_1_SHARED_1$ac_delim
54141 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1!$COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1$ac_delim
54142 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1!$COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1$ac_delim
54143 COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1!$COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1$ac_delim
54144 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1!$COND_PLATFORM_MACOSX_0_USE_SOVERSION_1$ac_delim
54145 COND_PLATFORM_MACOSX_1!$COND_PLATFORM_MACOSX_1$ac_delim
54146 COND_PLATFORM_MACOSX_1_PLATFORM_MSDOS_0!$COND_PLATFORM_MACOSX_1_PLATFORM_MSDOS_0$ac_delim
54147 COND_PLATFORM_MACOSX_1_PLATFORM_WIN32_1_SHARED_0!$COND_PLATFORM_MACOSX_1_PLATFORM_WIN32_1_SHARED_0$ac_delim
54148 COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_CARBON_USE_GUI_1!$COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_CARBON_USE_GUI_1$ac_delim
54149 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
54150 COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_COCOA_USE_GUI_1!$COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_COCOA_USE_GUI_1$ac_delim
54151 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
54152 COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_IPHONE_USE_GUI_1!$COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_IPHONE_USE_GUI_1$ac_delim
54153 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
54154 COND_PLATFORM_MACOSX_1_USE_GUI_1!$COND_PLATFORM_MACOSX_1_USE_GUI_1$ac_delim
54155 COND_PLATFORM_MACOSX_1_USE_OPENGL_1!$COND_PLATFORM_MACOSX_1_USE_OPENGL_1$ac_delim
54156 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1!$COND_PLATFORM_MACOSX_1_USE_SOVERSION_1$ac_delim
54157 COND_PLATFORM_MACOS_1!$COND_PLATFORM_MACOS_1$ac_delim
54158 COND_PLATFORM_MAC_0!$COND_PLATFORM_MAC_0$ac_delim
54159 COND_PLATFORM_MAC_1!$COND_PLATFORM_MAC_1$ac_delim
54160 COND_PLATFORM_MSDOS_0!$COND_PLATFORM_MSDOS_0$ac_delim
54161 COND_PLATFORM_MSDOS_1!$COND_PLATFORM_MSDOS_1$ac_delim
54162 COND_PLATFORM_OS2_1!$COND_PLATFORM_OS2_1$ac_delim
54163 COND_PLATFORM_UNIX_0!$COND_PLATFORM_UNIX_0$ac_delim
54164 COND_PLATFORM_UNIX_1!$COND_PLATFORM_UNIX_1$ac_delim
54165 COND_PLATFORM_UNIX_1_TOOLKIT_MGL!$COND_PLATFORM_UNIX_1_TOOLKIT_MGL$ac_delim
54166 COND_PLATFORM_UNIX_1_TOOLKIT_MGL_USE_GUI_1!$COND_PLATFORM_UNIX_1_TOOLKIT_MGL_USE_GUI_1$ac_delim
54167 COND_PLATFORM_UNIX_1_USE_GUI_1!$COND_PLATFORM_UNIX_1_USE_GUI_1$ac_delim
54168 COND_PLATFORM_UNIX_1_USE_PLUGINS_0!$COND_PLATFORM_UNIX_1_USE_PLUGINS_0$ac_delim
54169 _ACEOF
54170
54171   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
54172     break
54173   elif $ac_last_try; then
54174     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
54175 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
54176    { (exit 1); exit 1; }; }
54177   else
54178     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
54179   fi
54180 done
54181
54182 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
54183 if test -n "$ac_eof"; then
54184   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
54185   ac_eof=`expr $ac_eof + 1`
54186 fi
54187
54188 cat >>$CONFIG_STATUS <<_ACEOF
54189 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
54190 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
54191 _ACEOF
54192 sed '
54193 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
54194 s/^/s,@/; s/!/@,|#_!!_#|/
54195 :n
54196 t n
54197 s/'"$ac_delim"'$/,g/; t
54198 s/$/\\/; p
54199 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
54200 ' >>$CONFIG_STATUS <conf$$subs.sed
54201 rm -f conf$$subs.sed
54202 cat >>$CONFIG_STATUS <<_ACEOF
54203 CEOF$ac_eof
54204 _ACEOF
54205
54206
54207 ac_delim='%!_!# '
54208 for ac_last_try in false false false false false :; do
54209   cat >conf$$subs.sed <<_ACEOF
54210 COND_PLATFORM_WIN32_0!$COND_PLATFORM_WIN32_0$ac_delim
54211 COND_PLATFORM_WIN32_1!$COND_PLATFORM_WIN32_1$ac_delim
54212 COND_PLATFORM_WIN32_1_SHARED_0!$COND_PLATFORM_WIN32_1_SHARED_0$ac_delim
54213 COND_SHARED_0!$COND_SHARED_0$ac_delim
54214 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0!$COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0$ac_delim
54215 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0!$COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0$ac_delim
54216 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0!$COND_SHARED_0_TOOLKIT_PM_WXUNIV_0$ac_delim
54217 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1!$COND_SHARED_0_USE_GUI_1_USE_OPENGL_1$ac_delim
54218 COND_SHARED_0_USE_GUI_1_wxUSE_LIBJPEG_builtin!$COND_SHARED_0_USE_GUI_1_wxUSE_LIBJPEG_builtin$ac_delim
54219 COND_SHARED_0_USE_GUI_1_wxUSE_LIBPNG_builtin!$COND_SHARED_0_USE_GUI_1_wxUSE_LIBPNG_builtin$ac_delim
54220 COND_SHARED_0_USE_GUI_1_wxUSE_LIBTIFF_builtin!$COND_SHARED_0_USE_GUI_1_wxUSE_LIBTIFF_builtin$ac_delim
54221 COND_SHARED_0_USE_STC_1!$COND_SHARED_0_USE_STC_1$ac_delim
54222 COND_SHARED_0_wxUSE_EXPAT_builtin!$COND_SHARED_0_wxUSE_EXPAT_builtin$ac_delim
54223 COND_SHARED_0_wxUSE_REGEX_builtin!$COND_SHARED_0_wxUSE_REGEX_builtin$ac_delim
54224 COND_SHARED_0_wxUSE_ZLIB_builtin!$COND_SHARED_0_wxUSE_ZLIB_builtin$ac_delim
54225 COND_SHARED_1!$COND_SHARED_1$ac_delim
54226 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1!$COND_SHARED_1_USE_GUI_1_USE_OPENGL_1$ac_delim
54227 COND_TOOLKIT_!$COND_TOOLKIT_$ac_delim
54228 COND_TOOLKIT_COCOA!$COND_TOOLKIT_COCOA$ac_delim
54229 COND_TOOLKIT_COCOA_USE_GUI_1!$COND_TOOLKIT_COCOA_USE_GUI_1$ac_delim
54230 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0$ac_delim
54231 COND_TOOLKIT_DFB!$COND_TOOLKIT_DFB$ac_delim
54232 COND_TOOLKIT_DFB_USE_GUI_1!$COND_TOOLKIT_DFB_USE_GUI_1$ac_delim
54233 COND_TOOLKIT_GTK!$COND_TOOLKIT_GTK$ac_delim
54234 COND_TOOLKIT_GTK_TOOLKIT_VERSION_!$COND_TOOLKIT_GTK_TOOLKIT_VERSION_$ac_delim
54235 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2!$COND_TOOLKIT_GTK_TOOLKIT_VERSION_2$ac_delim
54236 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1!$COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1$ac_delim
54237 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0$ac_delim
54238 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1!$COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1$ac_delim
54239 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0$ac_delim
54240 COND_TOOLKIT_GTK_USE_GUI_1!$COND_TOOLKIT_GTK_USE_GUI_1$ac_delim
54241 COND_TOOLKIT_MAC!$COND_TOOLKIT_MAC$ac_delim
54242 COND_TOOLKIT_MGL!$COND_TOOLKIT_MGL$ac_delim
54243 COND_TOOLKIT_MGL_USE_GUI_1!$COND_TOOLKIT_MGL_USE_GUI_1$ac_delim
54244 COND_TOOLKIT_MOTIF!$COND_TOOLKIT_MOTIF$ac_delim
54245 COND_TOOLKIT_MOTIF_USE_GUI_1!$COND_TOOLKIT_MOTIF_USE_GUI_1$ac_delim
54246 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0$ac_delim
54247 COND_TOOLKIT_MSW!$COND_TOOLKIT_MSW$ac_delim
54248 COND_TOOLKIT_MSW_USE_GUI_1!$COND_TOOLKIT_MSW_USE_GUI_1$ac_delim
54249 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0$ac_delim
54250 COND_TOOLKIT_MSW_WXUNIV_0!$COND_TOOLKIT_MSW_WXUNIV_0$ac_delim
54251 COND_TOOLKIT_OSX_CARBON!$COND_TOOLKIT_OSX_CARBON$ac_delim
54252 COND_TOOLKIT_OSX_CARBON_USE_GUI_1!$COND_TOOLKIT_OSX_CARBON_USE_GUI_1$ac_delim
54253 COND_TOOLKIT_OSX_COCOA!$COND_TOOLKIT_OSX_COCOA$ac_delim
54254 COND_TOOLKIT_OSX_COCOA_USE_GUI_1!$COND_TOOLKIT_OSX_COCOA_USE_GUI_1$ac_delim
54255 COND_TOOLKIT_OSX_IPHONE!$COND_TOOLKIT_OSX_IPHONE$ac_delim
54256 COND_TOOLKIT_OSX_IPHONE_USE_GUI_1!$COND_TOOLKIT_OSX_IPHONE_USE_GUI_1$ac_delim
54257 COND_TOOLKIT_OSX_IPHONE_USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_OSX_IPHONE_USE_GUI_1_WXUNIV_0$ac_delim
54258 COND_TOOLKIT_PM!$COND_TOOLKIT_PM$ac_delim
54259 COND_TOOLKIT_PM_USE_GUI_1!$COND_TOOLKIT_PM_USE_GUI_1$ac_delim
54260 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0$ac_delim
54261 COND_TOOLKIT_WINCE!$COND_TOOLKIT_WINCE$ac_delim
54262 COND_TOOLKIT_WINCE_USE_GUI_1!$COND_TOOLKIT_WINCE_USE_GUI_1$ac_delim
54263 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0$ac_delim
54264 COND_TOOLKIT_WINCE_WXUNIV_0!$COND_TOOLKIT_WINCE_WXUNIV_0$ac_delim
54265 COND_TOOLKIT_X11!$COND_TOOLKIT_X11$ac_delim
54266 COND_TOOLKIT_X11_USE_GUI_1!$COND_TOOLKIT_X11_USE_GUI_1$ac_delim
54267 COND_UNICODE_1!$COND_UNICODE_1$ac_delim
54268 COND_USE_CAIRO_1!$COND_USE_CAIRO_1$ac_delim
54269 COND_USE_EXCEPTIONS_0!$COND_USE_EXCEPTIONS_0$ac_delim
54270 COND_USE_EXCEPTIONS_1!$COND_USE_EXCEPTIONS_1$ac_delim
54271 COND_USE_GUI_0!$COND_USE_GUI_0$ac_delim
54272 COND_USE_GUI_1!$COND_USE_GUI_1$ac_delim
54273 COND_USE_GUI_1_USE_OPENGL_1!$COND_USE_GUI_1_USE_OPENGL_1$ac_delim
54274 COND_USE_GUI_1_WXUNIV_0!$COND_USE_GUI_1_WXUNIV_0$ac_delim
54275 COND_USE_GUI_1_WXUNIV_1!$COND_USE_GUI_1_WXUNIV_1$ac_delim
54276 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN!$COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN$ac_delim
54277 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN!$COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN$ac_delim
54278 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN!$COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN$ac_delim
54279 COND_USE_GUI_1_wxUSE_LIBJPEG_builtin!$COND_USE_GUI_1_wxUSE_LIBJPEG_builtin$ac_delim
54280 COND_USE_GUI_1_wxUSE_LIBPNG_builtin!$COND_USE_GUI_1_wxUSE_LIBPNG_builtin$ac_delim
54281 COND_USE_GUI_1_wxUSE_LIBTIFF_builtin!$COND_USE_GUI_1_wxUSE_LIBTIFF_builtin$ac_delim
54282 COND_USE_OPENGL_1!$COND_USE_OPENGL_1$ac_delim
54283 COND_USE_PCH_1!$COND_USE_PCH_1$ac_delim
54284 COND_USE_PLUGINS_0!$COND_USE_PLUGINS_0$ac_delim
54285 COND_USE_RTTI_0!$COND_USE_RTTI_0$ac_delim
54286 COND_USE_RTTI_1!$COND_USE_RTTI_1$ac_delim
54287 COND_USE_SOTWOSYMLINKS_1!$COND_USE_SOTWOSYMLINKS_1$ac_delim
54288 COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1!$COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1$ac_delim
54289 COND_USE_SOVERLINUX_1!$COND_USE_SOVERLINUX_1$ac_delim
54290 COND_USE_SOVERSION_0!$COND_USE_SOVERSION_0$ac_delim
54291 COND_USE_SOVERSION_1_USE_SOVERSOLARIS_1!$COND_USE_SOVERSION_1_USE_SOVERSOLARIS_1$ac_delim
54292 COND_USE_SOVERSOLARIS_1!$COND_USE_SOVERSOLARIS_1$ac_delim
54293 COND_USE_STC_1!$COND_USE_STC_1$ac_delim
54294 COND_USE_THREADS_0!$COND_USE_THREADS_0$ac_delim
54295 COND_USE_THREADS_1!$COND_USE_THREADS_1$ac_delim
54296 COND_USE_XRC_1!$COND_USE_XRC_1$ac_delim
54297 COND_WINDOWS_IMPLIB_1!$COND_WINDOWS_IMPLIB_1$ac_delim
54298 COND_WITH_PLUGIN_SDL_1!$COND_WITH_PLUGIN_SDL_1$ac_delim
54299 COND_WXUNIV_0!$COND_WXUNIV_0$ac_delim
54300 COND_WXUNIV_1!$COND_WXUNIV_1$ac_delim
54301 COND_WXUSE_EXPAT_BUILTIN!$COND_WXUSE_EXPAT_BUILTIN$ac_delim
54302 COND_WXUSE_LIBJPEG_BUILTIN!$COND_WXUSE_LIBJPEG_BUILTIN$ac_delim
54303 COND_WXUSE_LIBPNG_BUILTIN!$COND_WXUSE_LIBPNG_BUILTIN$ac_delim
54304 COND_WXUSE_LIBTIFF_BUILTIN!$COND_WXUSE_LIBTIFF_BUILTIN$ac_delim
54305 COND_WXUSE_REGEX_BUILTIN!$COND_WXUSE_REGEX_BUILTIN$ac_delim
54306 COND_WXUSE_ZLIB_BUILTIN!$COND_WXUSE_ZLIB_BUILTIN$ac_delim
54307 _ACEOF
54308
54309   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
54310     break
54311   elif $ac_last_try; then
54312     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
54313 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
54314    { (exit 1); exit 1; }; }
54315   else
54316     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
54317   fi
54318 done
54319
54320 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
54321 if test -n "$ac_eof"; then
54322   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
54323   ac_eof=`expr $ac_eof + 1`
54324 fi
54325
54326 cat >>$CONFIG_STATUS <<_ACEOF
54327 cat >"\$tmp/subs-4.sed" <<\CEOF$ac_eof
54328 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
54329 _ACEOF
54330 sed '
54331 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
54332 s/^/s,@/; s/!/@,|#_!!_#|/
54333 :n
54334 t n
54335 s/'"$ac_delim"'$/,g/; t
54336 s/$/\\/; p
54337 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
54338 ' >>$CONFIG_STATUS <conf$$subs.sed
54339 rm -f conf$$subs.sed
54340 cat >>$CONFIG_STATUS <<_ACEOF
54341 CEOF$ac_eof
54342 _ACEOF
54343
54344
54345 ac_delim='%!_!# '
54346 for ac_last_try in false false false false false :; do
54347   cat >conf$$subs.sed <<_ACEOF
54348 COND_wxUSE_EXPAT_builtin!$COND_wxUSE_EXPAT_builtin$ac_delim
54349 COND_wxUSE_LIBJPEG_builtin!$COND_wxUSE_LIBJPEG_builtin$ac_delim
54350 COND_wxUSE_LIBPNG_builtin!$COND_wxUSE_LIBPNG_builtin$ac_delim
54351 COND_wxUSE_LIBTIFF_builtin!$COND_wxUSE_LIBTIFF_builtin$ac_delim
54352 COND_wxUSE_REGEX_builtin!$COND_wxUSE_REGEX_builtin$ac_delim
54353 COND_wxUSE_ZLIB_builtin!$COND_wxUSE_ZLIB_builtin$ac_delim
54354 DEREZ!$DEREZ$ac_delim
54355 SHARED!$SHARED$ac_delim
54356 WX_LIBRARY_BASENAME_NOGUI!$WX_LIBRARY_BASENAME_NOGUI$ac_delim
54357 WX_LIBRARY_BASENAME_GUI!$WX_LIBRARY_BASENAME_GUI$ac_delim
54358 USE_GUI!$USE_GUI$ac_delim
54359 AFMINSTALL!$AFMINSTALL$ac_delim
54360 WIN32INSTALL!$WIN32INSTALL$ac_delim
54361 TOOLKIT!$TOOLKIT$ac_delim
54362 TOOLKIT_DIR!$TOOLKIT_DIR$ac_delim
54363 TOOLCHAIN_NAME!$TOOLCHAIN_NAME$ac_delim
54364 TOOLCHAIN_FULLNAME!$TOOLCHAIN_FULLNAME$ac_delim
54365 cross_compiling!$cross_compiling$ac_delim
54366 WIDGET_SET!$WIDGET_SET$ac_delim
54367 WX_RELEASE!$WX_RELEASE$ac_delim
54368 WX_VERSION!$WX_VERSION$ac_delim
54369 WX_SUBVERSION!$WX_SUBVERSION$ac_delim
54370 WX_CHARTYPE!$WX_CHARTYPE$ac_delim
54371 WXCONFIG_CPPFLAGS!$WXCONFIG_CPPFLAGS$ac_delim
54372 WXCONFIG_CFLAGS!$WXCONFIG_CFLAGS$ac_delim
54373 WXCONFIG_CXXFLAGS!$WXCONFIG_CXXFLAGS$ac_delim
54374 WXCONFIG_LIBS!$WXCONFIG_LIBS$ac_delim
54375 WXCONFIG_RPATH!$WXCONFIG_RPATH$ac_delim
54376 WXCONFIG_LDFLAGS!$WXCONFIG_LDFLAGS$ac_delim
54377 WXCONFIG_LDFLAGS_GUI!$WXCONFIG_LDFLAGS_GUI$ac_delim
54378 WXCONFIG_RESFLAGS!$WXCONFIG_RESFLAGS$ac_delim
54379 GUIDIST!$GUIDIST$ac_delim
54380 DISTDIR!$DISTDIR$ac_delim
54381 SAMPLES_SUBDIRS!$SAMPLES_SUBDIRS$ac_delim
54382 LDFLAGS_GL!$LDFLAGS_GL$ac_delim
54383 OPENGL_LIBS!$OPENGL_LIBS$ac_delim
54384 DMALLOC_LIBS!$DMALLOC_LIBS$ac_delim
54385 WX_VERSION_TAG!$WX_VERSION_TAG$ac_delim
54386 RESCOMP!$RESCOMP$ac_delim
54387 RESFLAGS!$RESFLAGS$ac_delim
54388 RESPROGRAMOBJ!$RESPROGRAMOBJ$ac_delim
54389 WX_RESOURCES_MACOSX_ASCII!$WX_RESOURCES_MACOSX_ASCII$ac_delim
54390 WX_RESOURCES_MACOSX_DATA!$WX_RESOURCES_MACOSX_DATA$ac_delim
54391 LIBWXMACRES!$LIBWXMACRES$ac_delim
54392 POSTLINK_COMMAND!$POSTLINK_COMMAND$ac_delim
54393 MACSETFILE!$MACSETFILE$ac_delim
54394 GCC!$GCC$ac_delim
54395 DLLTOOL!$DLLTOOL$ac_delim
54396 CPPUNIT_CONFIG!$CPPUNIT_CONFIG$ac_delim
54397 LIBOBJS!$LIBOBJS$ac_delim
54398 LTLIBOBJS!$LTLIBOBJS$ac_delim
54399 _ACEOF
54400
54401   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 51; then
54402     break
54403   elif $ac_last_try; then
54404     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
54405 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
54406    { (exit 1); exit 1; }; }
54407   else
54408     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
54409   fi
54410 done
54411
54412 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
54413 if test -n "$ac_eof"; then
54414   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
54415   ac_eof=`expr $ac_eof + 1`
54416 fi
54417
54418 cat >>$CONFIG_STATUS <<_ACEOF
54419 cat >"\$tmp/subs-5.sed" <<\CEOF$ac_eof
54420 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
54421 _ACEOF
54422 sed '
54423 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
54424 s/^/s,@/; s/!/@,|#_!!_#|/
54425 :n
54426 t n
54427 s/'"$ac_delim"'$/,g/; t
54428 s/$/\\/; p
54429 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
54430 ' >>$CONFIG_STATUS <conf$$subs.sed
54431 rm -f conf$$subs.sed
54432 cat >>$CONFIG_STATUS <<_ACEOF
54433 :end
54434 s/|#_!!_#|//g
54435 CEOF$ac_eof
54436 _ACEOF
54437
54438
54439 # VPATH may cause trouble with some makes, so we remove $(srcdir),
54440 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
54441 # trailing colons and then remove the whole line if VPATH becomes empty
54442 # (actually we leave an empty line to preserve line numbers).
54443 if test "x$srcdir" = x.; then
54444   ac_vpsub='/^[  ]*VPATH[        ]*=/{
54445 s/:*\$(srcdir):*/:/
54446 s/:*\${srcdir}:*/:/
54447 s/:*@srcdir@:*/:/
54448 s/^\([^=]*=[     ]*\):*/\1/
54449 s/:*$//
54450 s/^[^=]*=[       ]*$//
54451 }'
54452 fi
54453
54454 cat >>$CONFIG_STATUS <<\_ACEOF
54455 fi # test -n "$CONFIG_FILES"
54456
54457
54458 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
54459 do
54460   case $ac_tag in
54461   :[FHLC]) ac_mode=$ac_tag; continue;;
54462   esac
54463   case $ac_mode$ac_tag in
54464   :[FHL]*:*);;
54465   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
54466 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
54467    { (exit 1); exit 1; }; };;
54468   :[FH]-) ac_tag=-:-;;
54469   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
54470   esac
54471   ac_save_IFS=$IFS
54472   IFS=:
54473   set x $ac_tag
54474   IFS=$ac_save_IFS
54475   shift
54476   ac_file=$1
54477   shift
54478
54479   case $ac_mode in
54480   :L) ac_source=$1;;
54481   :[FH])
54482     ac_file_inputs=
54483     for ac_f
54484     do
54485       case $ac_f in
54486       -) ac_f="$tmp/stdin";;
54487       *) # Look for the file first in the build tree, then in the source tree
54488          # (if the path is not absolute).  The absolute path cannot be DOS-style,
54489          # because $ac_f cannot contain `:'.
54490          test -f "$ac_f" ||
54491            case $ac_f in
54492            [\\/$]*) false;;
54493            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
54494            esac ||
54495            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
54496 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
54497    { (exit 1); exit 1; }; };;
54498       esac
54499       ac_file_inputs="$ac_file_inputs $ac_f"
54500     done
54501
54502     # Let's still pretend it is `configure' which instantiates (i.e., don't
54503     # use $as_me), people would be surprised to read:
54504     #    /* config.h.  Generated by config.status.  */
54505     configure_input="Generated from "`IFS=:
54506           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
54507     if test x"$ac_file" != x-; then
54508       configure_input="$ac_file.  $configure_input"
54509       { echo "$as_me:$LINENO: creating $ac_file" >&5
54510 echo "$as_me: creating $ac_file" >&6;}
54511     fi
54512
54513     case $ac_tag in
54514     *:-:* | *:-) cat >"$tmp/stdin";;
54515     esac
54516     ;;
54517   esac
54518
54519   ac_dir=`$as_dirname -- "$ac_file" ||
54520 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
54521          X"$ac_file" : 'X\(//\)[^/]' \| \
54522          X"$ac_file" : 'X\(//\)$' \| \
54523          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
54524 echo X"$ac_file" |
54525     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
54526             s//\1/
54527             q
54528           }
54529           /^X\(\/\/\)[^/].*/{
54530             s//\1/
54531             q
54532           }
54533           /^X\(\/\/\)$/{
54534             s//\1/
54535             q
54536           }
54537           /^X\(\/\).*/{
54538             s//\1/
54539             q
54540           }
54541           s/.*/./; q'`
54542   { as_dir="$ac_dir"
54543   case $as_dir in #(
54544   -*) as_dir=./$as_dir;;
54545   esac
54546   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
54547     as_dirs=
54548     while :; do
54549       case $as_dir in #(
54550       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
54551       *) as_qdir=$as_dir;;
54552       esac
54553       as_dirs="'$as_qdir' $as_dirs"
54554       as_dir=`$as_dirname -- "$as_dir" ||
54555 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
54556          X"$as_dir" : 'X\(//\)[^/]' \| \
54557          X"$as_dir" : 'X\(//\)$' \| \
54558          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
54559 echo X"$as_dir" |
54560     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
54561             s//\1/
54562             q
54563           }
54564           /^X\(\/\/\)[^/].*/{
54565             s//\1/
54566             q
54567           }
54568           /^X\(\/\/\)$/{
54569             s//\1/
54570             q
54571           }
54572           /^X\(\/\).*/{
54573             s//\1/
54574             q
54575           }
54576           s/.*/./; q'`
54577       test -d "$as_dir" && break
54578     done
54579     test -z "$as_dirs" || eval "mkdir $as_dirs"
54580   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
54581 echo "$as_me: error: cannot create directory $as_dir" >&2;}
54582    { (exit 1); exit 1; }; }; }
54583   ac_builddir=.
54584
54585 case "$ac_dir" in
54586 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
54587 *)
54588   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
54589   # A ".." for each directory in $ac_dir_suffix.
54590   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
54591   case $ac_top_builddir_sub in
54592   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
54593   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
54594   esac ;;
54595 esac
54596 ac_abs_top_builddir=$ac_pwd
54597 ac_abs_builddir=$ac_pwd$ac_dir_suffix
54598 # for backward compatibility:
54599 ac_top_builddir=$ac_top_build_prefix
54600
54601 case $srcdir in
54602   .)  # We are building in place.
54603     ac_srcdir=.
54604     ac_top_srcdir=$ac_top_builddir_sub
54605     ac_abs_top_srcdir=$ac_pwd ;;
54606   [\\/]* | ?:[\\/]* )  # Absolute name.
54607     ac_srcdir=$srcdir$ac_dir_suffix;
54608     ac_top_srcdir=$srcdir
54609     ac_abs_top_srcdir=$srcdir ;;
54610   *) # Relative name.
54611     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
54612     ac_top_srcdir=$ac_top_build_prefix$srcdir
54613     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
54614 esac
54615 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
54616
54617
54618   case $ac_mode in
54619   :F)
54620   #
54621   # CONFIG_FILE
54622   #
54623
54624   case $INSTALL in
54625   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
54626   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
54627   esac
54628 _ACEOF
54629
54630 cat >>$CONFIG_STATUS <<\_ACEOF
54631 # If the template does not know about datarootdir, expand it.
54632 # FIXME: This hack should be removed a few years after 2.60.
54633 ac_datarootdir_hack=; ac_datarootdir_seen=
54634
54635 case `sed -n '/datarootdir/ {
54636   p
54637   q
54638 }
54639 /@datadir@/p
54640 /@docdir@/p
54641 /@infodir@/p
54642 /@localedir@/p
54643 /@mandir@/p
54644 ' $ac_file_inputs` in
54645 *datarootdir*) ac_datarootdir_seen=yes;;
54646 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
54647   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
54648 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
54649 _ACEOF
54650 cat >>$CONFIG_STATUS <<_ACEOF
54651   ac_datarootdir_hack='
54652   s&@datadir@&$datadir&g
54653   s&@docdir@&$docdir&g
54654   s&@infodir@&$infodir&g
54655   s&@localedir@&$localedir&g
54656   s&@mandir@&$mandir&g
54657     s&\\\${datarootdir}&$datarootdir&g' ;;
54658 esac
54659 _ACEOF
54660
54661 # Neutralize VPATH when `$srcdir' = `.'.
54662 # Shell code in configure.ac might set extrasub.
54663 # FIXME: do we really want to maintain this feature?
54664 cat >>$CONFIG_STATUS <<_ACEOF
54665   sed "$ac_vpsub
54666 $extrasub
54667 _ACEOF
54668 cat >>$CONFIG_STATUS <<\_ACEOF
54669 :t
54670 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
54671 s&@configure_input@&$configure_input&;t t
54672 s&@top_builddir@&$ac_top_builddir_sub&;t t
54673 s&@srcdir@&$ac_srcdir&;t t
54674 s&@abs_srcdir@&$ac_abs_srcdir&;t t
54675 s&@top_srcdir@&$ac_top_srcdir&;t t
54676 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
54677 s&@builddir@&$ac_builddir&;t t
54678 s&@abs_builddir@&$ac_abs_builddir&;t t
54679 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
54680 s&@INSTALL@&$ac_INSTALL&;t t
54681 $ac_datarootdir_hack
54682 " $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
54683
54684 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
54685   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
54686   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
54687   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
54688 which seems to be undefined.  Please make sure it is defined." >&5
54689 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
54690 which seems to be undefined.  Please make sure it is defined." >&2;}
54691
54692   rm -f "$tmp/stdin"
54693   case $ac_file in
54694   -) cat "$tmp/out"; rm -f "$tmp/out";;
54695   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
54696   esac
54697  ;;
54698   :H)
54699   #
54700   # CONFIG_HEADER
54701   #
54702 _ACEOF
54703
54704 # Transform confdefs.h into a sed script `conftest.defines', that
54705 # substitutes the proper values into config.h.in to produce config.h.
54706 rm -f conftest.defines conftest.tail
54707 # First, append a space to every undef/define line, to ease matching.
54708 echo 's/$/ /' >conftest.defines
54709 # Then, protect against being on the right side of a sed subst, or in
54710 # an unquoted here document, in config.status.  If some macros were
54711 # called several times there might be several #defines for the same
54712 # symbol, which is useless.  But do not sort them, since the last
54713 # AC_DEFINE must be honored.
54714 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
54715 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
54716 # NAME is the cpp macro being defined, VALUE is the value it is being given.
54717 # PARAMS is the parameter list in the macro definition--in most cases, it's
54718 # just an empty string.
54719 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
54720 ac_dB='\\)[      (].*,\\1define\\2'
54721 ac_dC=' '
54722 ac_dD=' ,'
54723
54724 uniq confdefs.h |
54725   sed -n '
54726         t rset
54727         :rset
54728         s/^[     ]*#[    ]*define[       ][      ]*//
54729         t ok
54730         d
54731         :ok
54732         s/[\\&,]/\\&/g
54733         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
54734         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
54735   ' >>conftest.defines
54736
54737 # Remove the space that was appended to ease matching.
54738 # Then replace #undef with comments.  This is necessary, for
54739 # example, in the case of _POSIX_SOURCE, which is predefined and required
54740 # on some systems where configure will not decide to define it.
54741 # (The regexp can be short, since the line contains either #define or #undef.)
54742 echo 's/ $//
54743 s,^[     #]*u.*,/* & */,' >>conftest.defines
54744
54745 # Break up conftest.defines:
54746 ac_max_sed_lines=50
54747
54748 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
54749 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
54750 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
54751 # et cetera.
54752 ac_in='$ac_file_inputs'
54753 ac_out='"$tmp/out1"'
54754 ac_nxt='"$tmp/out2"'
54755
54756 while :
54757 do
54758   # Write a here document:
54759     cat >>$CONFIG_STATUS <<_ACEOF
54760     # First, check the format of the line:
54761     cat >"\$tmp/defines.sed" <<\\CEOF
54762 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
54763 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
54764 b
54765 :def
54766 _ACEOF
54767   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
54768   echo 'CEOF
54769     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
54770   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
54771   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
54772   grep . conftest.tail >/dev/null || break
54773   rm -f conftest.defines
54774   mv conftest.tail conftest.defines
54775 done
54776 rm -f conftest.defines conftest.tail
54777
54778 echo "ac_result=$ac_in" >>$CONFIG_STATUS
54779 cat >>$CONFIG_STATUS <<\_ACEOF
54780   if test x"$ac_file" != x-; then
54781     echo "/* $configure_input  */" >"$tmp/config.h"
54782     cat "$ac_result" >>"$tmp/config.h"
54783     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
54784       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
54785 echo "$as_me: $ac_file is unchanged" >&6;}
54786     else
54787       rm -f $ac_file
54788       mv "$tmp/config.h" $ac_file
54789     fi
54790   else
54791     echo "/* $configure_input  */"
54792     cat "$ac_result"
54793   fi
54794   rm -f "$tmp/out12"
54795  ;;
54796
54797   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
54798 echo "$as_me: executing $ac_file commands" >&6;}
54799  ;;
54800   esac
54801
54802
54803   case $ac_file$ac_mode in
54804     "rcdefs.h":C)
54805             mkdir -p $outdir &&
54806             $CPP $infile | sed 's/^# *[1-9].*//;s/^ *//;/./,/^$/!d' > $outdir/rcdefs.h
54807          ;;
54808     "lib/wx/config/${TOOLCHAIN_FULLNAME}":F)  chmod +x lib/wx/config/${TOOLCHAIN_FULLNAME}  ;;
54809     "lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}":F)  chmod +x lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}  ;;
54810     "utils/ifacecheck/rungccxml.sh":F)  chmod +x utils/ifacecheck/rungccxml.sh  ;;
54811     "wx-config":C)  rm -f wx-config
54812                      ${LN_S} lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} wx-config
54813                     ;;
54814
54815   esac
54816 done # for ac_tag
54817
54818
54819 { (exit 0); exit 0; }
54820 _ACEOF
54821 chmod +x $CONFIG_STATUS
54822 ac_clean_files=$ac_clean_files_save
54823
54824
54825 # configure is writing to config.log, and then calls config.status.
54826 # config.status does its own redirection, appending to config.log.
54827 # Unfortunately, on DOS this fails, as config.log is still kept open
54828 # by configure, so config.status won't be able to write to it; its
54829 # output is simply discarded.  So we exec the FD to /dev/null,
54830 # effectively closing config.log, so it can be properly (re)opened and
54831 # appended to by config.status.  When coming back to configure, we
54832 # need to make the FD available again.
54833 if test "$no_create" != yes; then
54834   ac_cs_success=:
54835   ac_config_status_args=
54836   test "$silent" = yes &&
54837     ac_config_status_args="$ac_config_status_args --quiet"
54838   exec 5>/dev/null
54839   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
54840   exec 5>>config.log
54841   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
54842   # would make configure fail if this is the last instruction.
54843   $ac_cs_success || { (exit 1); exit 1; }
54844 fi
54845
54846 #
54847 # CONFIG_SUBDIRS section.
54848 #
54849 if test "$no_recursion" != yes; then
54850
54851   # Remove --cache-file and --srcdir arguments so they do not pile up.
54852   ac_sub_configure_args=
54853   ac_prev=
54854   eval "set x $ac_configure_args"
54855   shift
54856   for ac_arg
54857   do
54858     if test -n "$ac_prev"; then
54859       ac_prev=
54860       continue
54861     fi
54862     case $ac_arg in
54863     -cache-file | --cache-file | --cache-fil | --cache-fi \
54864     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
54865       ac_prev=cache_file ;;
54866     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
54867     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
54868     | --c=*)
54869       ;;
54870     --config-cache | -C)
54871       ;;
54872     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
54873       ac_prev=srcdir ;;
54874     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
54875       ;;
54876     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
54877       ac_prev=prefix ;;
54878     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
54879       ;;
54880     *)
54881       case $ac_arg in
54882       *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
54883       esac
54884       ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
54885     esac
54886   done
54887
54888   # Always prepend --prefix to ensure using the same prefix
54889   # in subdir configurations.
54890   ac_arg="--prefix=$prefix"
54891   case $ac_arg in
54892   *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
54893   esac
54894   ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
54895
54896   # Pass --silent
54897   if test "$silent" = yes; then
54898     ac_sub_configure_args="--silent $ac_sub_configure_args"
54899   fi
54900
54901   ac_popdir=`pwd`
54902   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
54903
54904     # Do not complain, so a configure script can configure whichever
54905     # parts of a large source tree are present.
54906     test -d "$srcdir/$ac_dir" || continue
54907
54908     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
54909     echo "$as_me:$LINENO: $ac_msg" >&5
54910     echo "$ac_msg" >&6
54911     { as_dir="$ac_dir"
54912   case $as_dir in #(
54913   -*) as_dir=./$as_dir;;
54914   esac
54915   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
54916     as_dirs=
54917     while :; do
54918       case $as_dir in #(
54919       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
54920       *) as_qdir=$as_dir;;
54921       esac
54922       as_dirs="'$as_qdir' $as_dirs"
54923       as_dir=`$as_dirname -- "$as_dir" ||
54924 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
54925          X"$as_dir" : 'X\(//\)[^/]' \| \
54926          X"$as_dir" : 'X\(//\)$' \| \
54927          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
54928 echo X"$as_dir" |
54929     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
54930             s//\1/
54931             q
54932           }
54933           /^X\(\/\/\)[^/].*/{
54934             s//\1/
54935             q
54936           }
54937           /^X\(\/\/\)$/{
54938             s//\1/
54939             q
54940           }
54941           /^X\(\/\).*/{
54942             s//\1/
54943             q
54944           }
54945           s/.*/./; q'`
54946       test -d "$as_dir" && break
54947     done
54948     test -z "$as_dirs" || eval "mkdir $as_dirs"
54949   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
54950 echo "$as_me: error: cannot create directory $as_dir" >&2;}
54951    { (exit 1); exit 1; }; }; }
54952     ac_builddir=.
54953
54954 case "$ac_dir" in
54955 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
54956 *)
54957   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
54958   # A ".." for each directory in $ac_dir_suffix.
54959   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
54960   case $ac_top_builddir_sub in
54961   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
54962   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
54963   esac ;;
54964 esac
54965 ac_abs_top_builddir=$ac_pwd
54966 ac_abs_builddir=$ac_pwd$ac_dir_suffix
54967 # for backward compatibility:
54968 ac_top_builddir=$ac_top_build_prefix
54969
54970 case $srcdir in
54971   .)  # We are building in place.
54972     ac_srcdir=.
54973     ac_top_srcdir=$ac_top_builddir_sub
54974     ac_abs_top_srcdir=$ac_pwd ;;
54975   [\\/]* | ?:[\\/]* )  # Absolute name.
54976     ac_srcdir=$srcdir$ac_dir_suffix;
54977     ac_top_srcdir=$srcdir
54978     ac_abs_top_srcdir=$srcdir ;;
54979   *) # Relative name.
54980     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
54981     ac_top_srcdir=$ac_top_build_prefix$srcdir
54982     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
54983 esac
54984 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
54985
54986
54987     cd "$ac_dir"
54988
54989     # Check for guested configure; otherwise get Cygnus style configure.
54990     if test -f "$ac_srcdir/configure.gnu"; then
54991       ac_sub_configure=$ac_srcdir/configure.gnu
54992     elif test -f "$ac_srcdir/configure"; then
54993       ac_sub_configure=$ac_srcdir/configure
54994     elif test -f "$ac_srcdir/configure.in"; then
54995       # This should be Cygnus configure.
54996       ac_sub_configure=$ac_aux_dir/configure
54997     else
54998       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
54999 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
55000       ac_sub_configure=
55001     fi
55002
55003     # The recursion is here.
55004     if test -n "$ac_sub_configure"; then
55005       # Make the cache file name correct relative to the subdirectory.
55006       case $cache_file in
55007       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
55008       *) # Relative name.
55009         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
55010       esac
55011
55012       { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
55013 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
55014       # The eval makes quoting arguments work.
55015       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
55016            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
55017         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
55018 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
55019    { (exit 1); exit 1; }; }
55020     fi
55021
55022     cd "$ac_popdir"
55023   done
55024 fi
55025
55026
55027 echo
55028 echo "Configured wxWidgets ${WX_VERSION} for \`${host}'"
55029 echo ""
55030 echo "  Which GUI toolkit should wxWidgets use?                 ${TOOLKIT_DESC}"
55031 echo "  Should wxWidgets be compiled into single library?       ${wxUSE_MONOLITHIC:-yes}"
55032 echo "  Should wxWidgets be linked as a shared library?         ${wxUSE_SHARED:-no}"
55033 echo $ECHO_N "  Should wxWidgets support Unicode?                       ${wxUSE_UNICODE:-no}$ECHO_C"
55034 if test "$wxUSE_UNICODE" = "yes"; then
55035     if test "$wxUSE_UNICODE_UTF8" = "yes"; then
55036         echo " (using UTF-8)"
55037     else
55038         echo " (using wchar_t)"
55039     fi
55040 else
55041     echo
55042 fi
55043
55044 echo "  What level of wxWidgets compatibility should be enabled?"
55045 echo "                                       wxWidgets 2.6      ${WXWIN_COMPATIBILITY_2_6:-no}"
55046 echo "                                       wxWidgets 2.8      ${WXWIN_COMPATIBILITY_2_8:-yes}"
55047
55048 echo "  Which libraries should wxWidgets use?"
55049 echo "                                       STL                ${wxUSE_STL}"
55050 echo "                                       jpeg               ${wxUSE_LIBJPEG-none}"
55051 echo "                                       png                ${wxUSE_LIBPNG-none}"
55052 echo "                                       regex              ${wxUSE_REGEX}"
55053 echo "                                       tiff               ${wxUSE_LIBTIFF-none}"
55054 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
55055 echo "                                       xpm                ${wxUSE_LIBXPM-none}"
55056 fi
55057 echo "                                       zlib               ${wxUSE_ZLIB}"
55058 echo "                                       expat              ${wxUSE_EXPAT}"
55059 echo "                                       libmspack          ${wxUSE_LIBMSPACK}"
55060 echo "                                       sdl                ${wxUSE_LIBSDL}"
55061
55062 echo ""
55063