Merge in from trunk r68626 - r68683
[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_GUI_1_USE_WEB_1
853 COND_MONOLITHIC_0_SHARED_0_USE_PROPGRID_1
854 COND_MONOLITHIC_0_SHARED_0_USE_RIBBON_1
855 COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1
856 COND_MONOLITHIC_0_SHARED_0_USE_STC_1
857 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1
858 COND_MONOLITHIC_0_SHARED_1
859 COND_MONOLITHIC_0_SHARED_1_USE_AUI_1
860 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1
861 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1
862 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1
863 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1
864 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_WEB_1
865 COND_MONOLITHIC_0_SHARED_1_USE_PROPGRID_1
866 COND_MONOLITHIC_0_SHARED_1_USE_RIBBON_1
867 COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1
868 COND_MONOLITHIC_0_SHARED_1_USE_STC_1
869 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1
870 COND_MONOLITHIC_0_USE_AUI_1
871 COND_MONOLITHIC_0_USE_GUI_1
872 COND_MONOLITHIC_0_USE_GUI_1_USE_MEDIA_1
873 COND_MONOLITHIC_0_USE_HTML_1
874 COND_MONOLITHIC_0_USE_MEDIA_1
875 COND_MONOLITHIC_0_USE_PROPGRID_1
876 COND_MONOLITHIC_0_USE_QA_1
877 COND_MONOLITHIC_0_USE_RIBBON_1
878 COND_MONOLITHIC_0_USE_RICHTEXT_1
879 COND_MONOLITHIC_0_USE_STC_1
880 COND_MONOLITHIC_0_USE_WEB_1
881 COND_MONOLITHIC_0_USE_XRC_1
882 COND_MONOLITHIC_1
883 COND_MONOLITHIC_1_SHARED_0
884 COND_MONOLITHIC_1_SHARED_1
885 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1
886 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1
887 COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1
888 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1
889 COND_PLATFORM_MACOSX_1
890 COND_PLATFORM_MACOSX_1_PLATFORM_MSDOS_0
891 COND_PLATFORM_MACOSX_1_PLATFORM_WIN32_1_SHARED_0
892 COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_CARBON_USE_GUI_1
893 COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_CARBON_USE_GUI_1_WXUNIV_0
894 COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_COCOA_USE_GUI_1
895 COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_COCOA_USE_GUI_1_WXUNIV_0
896 COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_IPHONE_USE_GUI_1
897 COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_IPHONE_USE_GUI_1_WXUNIV_0
898 COND_PLATFORM_MACOSX_1_USE_GUI_1
899 COND_PLATFORM_MACOSX_1_USE_OPENGL_1
900 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1
901 COND_PLATFORM_MACOS_1
902 COND_PLATFORM_MAC_0
903 COND_PLATFORM_MAC_1
904 COND_PLATFORM_MSDOS_0
905 COND_PLATFORM_MSDOS_1
906 COND_PLATFORM_OS2_1
907 COND_PLATFORM_UNIX_0
908 COND_PLATFORM_UNIX_1
909 COND_PLATFORM_UNIX_1_TOOLKIT_MGL
910 COND_PLATFORM_UNIX_1_TOOLKIT_MGL_USE_GUI_1
911 COND_PLATFORM_UNIX_1_USE_GUI_1
912 COND_PLATFORM_UNIX_1_USE_PLUGINS_0
913 COND_PLATFORM_WIN32_0
914 COND_PLATFORM_WIN32_1
915 COND_PLATFORM_WIN32_1_SHARED_0
916 COND_SHARED_0
917 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0
918 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0
919 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0
920 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1
921 COND_SHARED_0_USE_GUI_1_wxUSE_LIBJPEG_builtin
922 COND_SHARED_0_USE_GUI_1_wxUSE_LIBPNG_builtin
923 COND_SHARED_0_USE_GUI_1_wxUSE_LIBTIFF_builtin
924 COND_SHARED_0_USE_STC_1
925 COND_SHARED_0_wxUSE_EXPAT_builtin
926 COND_SHARED_0_wxUSE_REGEX_builtin
927 COND_SHARED_0_wxUSE_ZLIB_builtin
928 COND_SHARED_1
929 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1
930 COND_TOOLKIT_
931 COND_TOOLKIT_COCOA
932 COND_TOOLKIT_COCOA_USE_GUI_1
933 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0
934 COND_TOOLKIT_DFB
935 COND_TOOLKIT_DFB_USE_GUI_1
936 COND_TOOLKIT_GTK
937 COND_TOOLKIT_GTK_TOOLKIT_VERSION_
938 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2
939 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1
940 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0
941 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1
942 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0
943 COND_TOOLKIT_GTK_USE_GUI_1
944 COND_TOOLKIT_MAC
945 COND_TOOLKIT_MGL
946 COND_TOOLKIT_MGL_USE_GUI_1
947 COND_TOOLKIT_MOTIF
948 COND_TOOLKIT_MOTIF_USE_GUI_1
949 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0
950 COND_TOOLKIT_MSW
951 COND_TOOLKIT_MSW_USE_GUI_1
952 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0
953 COND_TOOLKIT_MSW_WXUNIV_0
954 COND_TOOLKIT_OSX_CARBON
955 COND_TOOLKIT_OSX_CARBON_USE_GUI_1
956 COND_TOOLKIT_OSX_COCOA
957 COND_TOOLKIT_OSX_COCOA_USE_GUI_1
958 COND_TOOLKIT_OSX_IPHONE
959 COND_TOOLKIT_OSX_IPHONE_USE_GUI_1
960 COND_TOOLKIT_OSX_IPHONE_USE_GUI_1_WXUNIV_0
961 COND_TOOLKIT_PM
962 COND_TOOLKIT_PM_USE_GUI_1
963 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0
964 COND_TOOLKIT_WINCE
965 COND_TOOLKIT_WINCE_USE_GUI_1
966 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0
967 COND_TOOLKIT_WINCE_WXUNIV_0
968 COND_TOOLKIT_X11
969 COND_TOOLKIT_X11_USE_GUI_1
970 COND_UNICODE_1
971 COND_USE_CAIRO_1
972 COND_USE_EXCEPTIONS_0
973 COND_USE_EXCEPTIONS_1
974 COND_USE_GUI_0
975 COND_USE_GUI_1
976 COND_USE_GUI_1_USE_OPENGL_1
977 COND_USE_GUI_1_WXUNIV_0
978 COND_USE_GUI_1_WXUNIV_1
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_GUI_1_wxUSE_LIBJPEG_builtin
983 COND_USE_GUI_1_wxUSE_LIBPNG_builtin
984 COND_USE_GUI_1_wxUSE_LIBTIFF_builtin
985 COND_USE_OPENGL_1
986 COND_USE_PCH_1
987 COND_USE_PLUGINS_0
988 COND_USE_RTTI_0
989 COND_USE_RTTI_1
990 COND_USE_SOTWOSYMLINKS_1
991 COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1
992 COND_USE_SOVERLINUX_1
993 COND_USE_SOVERSION_0
994 COND_USE_SOVERSION_1_USE_SOVERSOLARIS_1
995 COND_USE_SOVERSOLARIS_1
996 COND_USE_STC_1
997 COND_USE_THREADS_0
998 COND_USE_THREADS_1
999 COND_USE_XRC_1
1000 COND_WINDOWS_IMPLIB_1
1001 COND_WITH_PLUGIN_SDL_1
1002 COND_WXUNIV_0
1003 COND_WXUNIV_1
1004 COND_WXUSE_EXPAT_BUILTIN
1005 COND_WXUSE_LIBJPEG_BUILTIN
1006 COND_WXUSE_LIBPNG_BUILTIN
1007 COND_WXUSE_LIBTIFF_BUILTIN
1008 COND_WXUSE_REGEX_BUILTIN
1009 COND_WXUSE_ZLIB_BUILTIN
1010 COND_wxUSE_EXPAT_builtin
1011 COND_wxUSE_LIBJPEG_builtin
1012 COND_wxUSE_LIBPNG_builtin
1013 COND_wxUSE_LIBTIFF_builtin
1014 COND_wxUSE_REGEX_builtin
1015 COND_wxUSE_ZLIB_builtin
1016 DEREZ
1017 SHARED
1018 WX_LIBRARY_BASENAME_NOGUI
1019 WX_LIBRARY_BASENAME_GUI
1020 USE_GUI
1021 AFMINSTALL
1022 WIN32INSTALL
1023 TOOLKIT
1024 TOOLKIT_DIR
1025 TOOLCHAIN_NAME
1026 TOOLCHAIN_FULLNAME
1027 cross_compiling
1028 WIDGET_SET
1029 WX_RELEASE
1030 WX_VERSION
1031 WX_SUBVERSION
1032 WX_CHARTYPE
1033 WXCONFIG_CPPFLAGS
1034 WXCONFIG_CFLAGS
1035 WXCONFIG_CXXFLAGS
1036 WXCONFIG_LIBS
1037 WXCONFIG_RPATH
1038 WXCONFIG_LDFLAGS
1039 WXCONFIG_LDFLAGS_GUI
1040 WXCONFIG_RESFLAGS
1041 GUIDIST
1042 DISTDIR
1043 SAMPLES_SUBDIRS
1044 LDFLAGS_GL
1045 OPENGL_LIBS
1046 DMALLOC_LIBS
1047 WX_VERSION_TAG
1048 RESCOMP
1049 RESFLAGS
1050 RESPROGRAMOBJ
1051 WX_RESOURCES_MACOSX_ASCII
1052 WX_RESOURCES_MACOSX_DATA
1053 LIBWXMACRES
1054 POSTLINK_COMMAND
1055 MACSETFILE
1056 GCC
1057 DLLTOOL
1058 CPPUNIT_CONFIG
1059 LIBOBJS
1060 LTLIBOBJS'
1061 ac_subst_files=''
1062       ac_precious_vars='build_alias
1063 host_alias
1064 target_alias
1065 CC
1066 CFLAGS
1067 LDFLAGS
1068 LIBS
1069 CPPFLAGS
1070 CPP
1071 CXX
1072 CXXFLAGS
1073 CCC
1074 CXXCPP
1075 PKG_CONFIG
1076 DIRECTFB_CFLAGS
1077 DIRECTFB_LIBS
1078 XMKMF
1079 PANGOX_CFLAGS
1080 PANGOX_LIBS
1081 PANGOFT2_CFLAGS
1082 PANGOFT2_LIBS
1083 PANGOXFT_CFLAGS
1084 PANGOXFT_LIBS
1085 GTKPRINT_CFLAGS
1086 GTKPRINT_LIBS
1087 LIBGNOMEPRINTUI_CFLAGS
1088 LIBGNOMEPRINTUI_LIBS
1089 GNOMEVFS_CFLAGS
1090 GNOMEVFS_LIBS
1091 HILDON_CFLAGS
1092 HILDON_LIBS
1093 HILDON2_CFLAGS
1094 HILDON2_LIBS
1095 CAIRO_CFLAGS
1096 CAIRO_LIBS
1097 GST_CFLAGS
1098 GST_LIBS'
1099 ac_subdirs_all='src/tiff
1100 src/expat'
1101
1102 # Initialize some variables set by options.
1103 ac_init_help=
1104 ac_init_version=false
1105 # The variables have the same names as the options, with
1106 # dashes changed to underlines.
1107 cache_file=/dev/null
1108 exec_prefix=NONE
1109 no_create=
1110 no_recursion=
1111 prefix=NONE
1112 program_prefix=NONE
1113 program_suffix=NONE
1114 program_transform_name=s,x,x,
1115 silent=
1116 site=
1117 srcdir=
1118 verbose=
1119 x_includes=NONE
1120 x_libraries=NONE
1121
1122 # Installation directory options.
1123 # These are left unexpanded so users can "make install exec_prefix=/foo"
1124 # and all the variables that are supposed to be based on exec_prefix
1125 # by default will actually change.
1126 # Use braces instead of parens because sh, perl, etc. also accept them.
1127 # (The list follows the same order as the GNU Coding Standards.)
1128 bindir='${exec_prefix}/bin'
1129 sbindir='${exec_prefix}/sbin'
1130 libexecdir='${exec_prefix}/libexec'
1131 datarootdir='${prefix}/share'
1132 datadir='${datarootdir}'
1133 sysconfdir='${prefix}/etc'
1134 sharedstatedir='${prefix}/com'
1135 localstatedir='${prefix}/var'
1136 includedir='${prefix}/include'
1137 oldincludedir='/usr/include'
1138 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1139 infodir='${datarootdir}/info'
1140 htmldir='${docdir}'
1141 dvidir='${docdir}'
1142 pdfdir='${docdir}'
1143 psdir='${docdir}'
1144 libdir='${exec_prefix}/lib'
1145 localedir='${datarootdir}/locale'
1146 mandir='${datarootdir}/man'
1147
1148 ac_prev=
1149 ac_dashdash=
1150 for ac_option
1151 do
1152   # If the previous option needs an argument, assign it.
1153   if test -n "$ac_prev"; then
1154     eval $ac_prev=\$ac_option
1155     ac_prev=
1156     continue
1157   fi
1158
1159   case $ac_option in
1160   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1161   *)    ac_optarg=yes ;;
1162   esac
1163
1164   # Accept the important Cygnus configure options, so we can diagnose typos.
1165
1166   case $ac_dashdash$ac_option in
1167   --)
1168     ac_dashdash=yes ;;
1169
1170   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1171     ac_prev=bindir ;;
1172   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1173     bindir=$ac_optarg ;;
1174
1175   -build | --build | --buil | --bui | --bu)
1176     ac_prev=build_alias ;;
1177   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1178     build_alias=$ac_optarg ;;
1179
1180   -cache-file | --cache-file | --cache-fil | --cache-fi \
1181   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1182     ac_prev=cache_file ;;
1183   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1184   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1185     cache_file=$ac_optarg ;;
1186
1187   --config-cache | -C)
1188     cache_file=config.cache ;;
1189
1190   -datadir | --datadir | --datadi | --datad)
1191     ac_prev=datadir ;;
1192   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1193     datadir=$ac_optarg ;;
1194
1195   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1196   | --dataroo | --dataro | --datar)
1197     ac_prev=datarootdir ;;
1198   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1199   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1200     datarootdir=$ac_optarg ;;
1201
1202   -disable-* | --disable-*)
1203     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1204     # Reject names that are not valid shell variable names.
1205     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1206       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1207    { (exit 1); exit 1; }; }
1208     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1209     eval enable_$ac_feature=no ;;
1210
1211   -docdir | --docdir | --docdi | --doc | --do)
1212     ac_prev=docdir ;;
1213   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1214     docdir=$ac_optarg ;;
1215
1216   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1217     ac_prev=dvidir ;;
1218   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1219     dvidir=$ac_optarg ;;
1220
1221   -enable-* | --enable-*)
1222     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1223     # Reject names that are not valid shell variable names.
1224     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1225       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1226    { (exit 1); exit 1; }; }
1227     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1228     eval enable_$ac_feature=\$ac_optarg ;;
1229
1230   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1231   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1232   | --exec | --exe | --ex)
1233     ac_prev=exec_prefix ;;
1234   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1235   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1236   | --exec=* | --exe=* | --ex=*)
1237     exec_prefix=$ac_optarg ;;
1238
1239   -gas | --gas | --ga | --g)
1240     # Obsolete; use --with-gas.
1241     with_gas=yes ;;
1242
1243   -help | --help | --hel | --he | -h)
1244     ac_init_help=long ;;
1245   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1246     ac_init_help=recursive ;;
1247   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1248     ac_init_help=short ;;
1249
1250   -host | --host | --hos | --ho)
1251     ac_prev=host_alias ;;
1252   -host=* | --host=* | --hos=* | --ho=*)
1253     host_alias=$ac_optarg ;;
1254
1255   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1256     ac_prev=htmldir ;;
1257   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1258   | --ht=*)
1259     htmldir=$ac_optarg ;;
1260
1261   -includedir | --includedir | --includedi | --included | --include \
1262   | --includ | --inclu | --incl | --inc)
1263     ac_prev=includedir ;;
1264   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1265   | --includ=* | --inclu=* | --incl=* | --inc=*)
1266     includedir=$ac_optarg ;;
1267
1268   -infodir | --infodir | --infodi | --infod | --info | --inf)
1269     ac_prev=infodir ;;
1270   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1271     infodir=$ac_optarg ;;
1272
1273   -libdir | --libdir | --libdi | --libd)
1274     ac_prev=libdir ;;
1275   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1276     libdir=$ac_optarg ;;
1277
1278   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1279   | --libexe | --libex | --libe)
1280     ac_prev=libexecdir ;;
1281   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1282   | --libexe=* | --libex=* | --libe=*)
1283     libexecdir=$ac_optarg ;;
1284
1285   -localedir | --localedir | --localedi | --localed | --locale)
1286     ac_prev=localedir ;;
1287   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1288     localedir=$ac_optarg ;;
1289
1290   -localstatedir | --localstatedir | --localstatedi | --localstated \
1291   | --localstate | --localstat | --localsta | --localst | --locals)
1292     ac_prev=localstatedir ;;
1293   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1294   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1295     localstatedir=$ac_optarg ;;
1296
1297   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1298     ac_prev=mandir ;;
1299   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1300     mandir=$ac_optarg ;;
1301
1302   -nfp | --nfp | --nf)
1303     # Obsolete; use --without-fp.
1304     with_fp=no ;;
1305
1306   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1307   | --no-cr | --no-c | -n)
1308     no_create=yes ;;
1309
1310   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1311   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1312     no_recursion=yes ;;
1313
1314   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1315   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1316   | --oldin | --oldi | --old | --ol | --o)
1317     ac_prev=oldincludedir ;;
1318   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1319   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1320   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1321     oldincludedir=$ac_optarg ;;
1322
1323   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1324     ac_prev=prefix ;;
1325   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1326     prefix=$ac_optarg ;;
1327
1328   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1329   | --program-pre | --program-pr | --program-p)
1330     ac_prev=program_prefix ;;
1331   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1332   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1333     program_prefix=$ac_optarg ;;
1334
1335   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1336   | --program-suf | --program-su | --program-s)
1337     ac_prev=program_suffix ;;
1338   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1339   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1340     program_suffix=$ac_optarg ;;
1341
1342   -program-transform-name | --program-transform-name \
1343   | --program-transform-nam | --program-transform-na \
1344   | --program-transform-n | --program-transform- \
1345   | --program-transform | --program-transfor \
1346   | --program-transfo | --program-transf \
1347   | --program-trans | --program-tran \
1348   | --progr-tra | --program-tr | --program-t)
1349     ac_prev=program_transform_name ;;
1350   -program-transform-name=* | --program-transform-name=* \
1351   | --program-transform-nam=* | --program-transform-na=* \
1352   | --program-transform-n=* | --program-transform-=* \
1353   | --program-transform=* | --program-transfor=* \
1354   | --program-transfo=* | --program-transf=* \
1355   | --program-trans=* | --program-tran=* \
1356   | --progr-tra=* | --program-tr=* | --program-t=*)
1357     program_transform_name=$ac_optarg ;;
1358
1359   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1360     ac_prev=pdfdir ;;
1361   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1362     pdfdir=$ac_optarg ;;
1363
1364   -psdir | --psdir | --psdi | --psd | --ps)
1365     ac_prev=psdir ;;
1366   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1367     psdir=$ac_optarg ;;
1368
1369   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1370   | -silent | --silent | --silen | --sile | --sil)
1371     silent=yes ;;
1372
1373   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1374     ac_prev=sbindir ;;
1375   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1376   | --sbi=* | --sb=*)
1377     sbindir=$ac_optarg ;;
1378
1379   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1380   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1381   | --sharedst | --shareds | --shared | --share | --shar \
1382   | --sha | --sh)
1383     ac_prev=sharedstatedir ;;
1384   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1385   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1386   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1387   | --sha=* | --sh=*)
1388     sharedstatedir=$ac_optarg ;;
1389
1390   -site | --site | --sit)
1391     ac_prev=site ;;
1392   -site=* | --site=* | --sit=*)
1393     site=$ac_optarg ;;
1394
1395   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1396     ac_prev=srcdir ;;
1397   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1398     srcdir=$ac_optarg ;;
1399
1400   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1401   | --syscon | --sysco | --sysc | --sys | --sy)
1402     ac_prev=sysconfdir ;;
1403   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1404   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1405     sysconfdir=$ac_optarg ;;
1406
1407   -target | --target | --targe | --targ | --tar | --ta | --t)
1408     ac_prev=target_alias ;;
1409   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1410     target_alias=$ac_optarg ;;
1411
1412   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1413     verbose=yes ;;
1414
1415   -version | --version | --versio | --versi | --vers | -V)
1416     ac_init_version=: ;;
1417
1418   -with-* | --with-*)
1419     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1420     # Reject names that are not valid shell variable names.
1421     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1422       { echo "$as_me: error: invalid package name: $ac_package" >&2
1423    { (exit 1); exit 1; }; }
1424     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1425     eval with_$ac_package=\$ac_optarg ;;
1426
1427   -without-* | --without-*)
1428     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1429     # Reject names that are not valid shell variable names.
1430     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1431       { echo "$as_me: error: invalid package name: $ac_package" >&2
1432    { (exit 1); exit 1; }; }
1433     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1434     eval with_$ac_package=no ;;
1435
1436   --x)
1437     # Obsolete; use --with-x.
1438     with_x=yes ;;
1439
1440   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1441   | --x-incl | --x-inc | --x-in | --x-i)
1442     ac_prev=x_includes ;;
1443   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1444   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1445     x_includes=$ac_optarg ;;
1446
1447   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1448   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1449     ac_prev=x_libraries ;;
1450   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1451   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1452     x_libraries=$ac_optarg ;;
1453
1454   -*) { echo "$as_me: error: unrecognized option: $ac_option
1455 Try \`$0 --help' for more information." >&2
1456    { (exit 1); exit 1; }; }
1457     ;;
1458
1459   *=*)
1460     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1461     # Reject names that are not valid shell variable names.
1462     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1463       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1464    { (exit 1); exit 1; }; }
1465     eval $ac_envvar=\$ac_optarg
1466     export $ac_envvar ;;
1467
1468   *)
1469     # FIXME: should be removed in autoconf 3.0.
1470     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1471     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1472       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1473     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1474     ;;
1475
1476   esac
1477 done
1478
1479 if test -n "$ac_prev"; then
1480   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1481   { echo "$as_me: error: missing argument to $ac_option" >&2
1482    { (exit 1); exit 1; }; }
1483 fi
1484
1485 # Be sure to have absolute directory names.
1486 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1487                 datadir sysconfdir sharedstatedir localstatedir includedir \
1488                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1489                 libdir localedir mandir
1490 do
1491   eval ac_val=\$$ac_var
1492   case $ac_val in
1493     [\\/$]* | ?:[\\/]* )  continue;;
1494     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1495   esac
1496   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1497    { (exit 1); exit 1; }; }
1498 done
1499
1500 # There might be people who depend on the old broken behavior: `$host'
1501 # used to hold the argument of --host etc.
1502 # FIXME: To remove some day.
1503 build=$build_alias
1504 host=$host_alias
1505 target=$target_alias
1506
1507 # FIXME: To remove some day.
1508 if test "x$host_alias" != x; then
1509   if test "x$build_alias" = x; then
1510     cross_compiling=maybe
1511     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1512     If a cross compiler is detected then cross compile mode will be used." >&2
1513   elif test "x$build_alias" != "x$host_alias"; then
1514     cross_compiling=yes
1515   fi
1516 fi
1517
1518 ac_tool_prefix=
1519 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1520
1521 test "$silent" = yes && exec 6>/dev/null
1522
1523
1524 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1525 ac_ls_di=`ls -di .` &&
1526 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1527   { echo "$as_me: error: Working directory cannot be determined" >&2
1528    { (exit 1); exit 1; }; }
1529 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1530   { echo "$as_me: error: pwd does not report name of working directory" >&2
1531    { (exit 1); exit 1; }; }
1532
1533
1534 # Find the source files, if location was not specified.
1535 if test -z "$srcdir"; then
1536   ac_srcdir_defaulted=yes
1537   # Try the directory containing this script, then the parent directory.
1538   ac_confdir=`$as_dirname -- "$0" ||
1539 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1540          X"$0" : 'X\(//\)[^/]' \| \
1541          X"$0" : 'X\(//\)$' \| \
1542          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1543 echo X"$0" |
1544     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1545             s//\1/
1546             q
1547           }
1548           /^X\(\/\/\)[^/].*/{
1549             s//\1/
1550             q
1551           }
1552           /^X\(\/\/\)$/{
1553             s//\1/
1554             q
1555           }
1556           /^X\(\/\).*/{
1557             s//\1/
1558             q
1559           }
1560           s/.*/./; q'`
1561   srcdir=$ac_confdir
1562   if test ! -r "$srcdir/$ac_unique_file"; then
1563     srcdir=..
1564   fi
1565 else
1566   ac_srcdir_defaulted=no
1567 fi
1568 if test ! -r "$srcdir/$ac_unique_file"; then
1569   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1570   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1571    { (exit 1); exit 1; }; }
1572 fi
1573 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1574 ac_abs_confdir=`(
1575         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1576    { (exit 1); exit 1; }; }
1577         pwd)`
1578 # When building in place, set srcdir=.
1579 if test "$ac_abs_confdir" = "$ac_pwd"; then
1580   srcdir=.
1581 fi
1582 # Remove unnecessary trailing slashes from srcdir.
1583 # Double slashes in file names in object file debugging info
1584 # mess up M-x gdb in Emacs.
1585 case $srcdir in
1586 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1587 esac
1588 for ac_var in $ac_precious_vars; do
1589   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1590   eval ac_env_${ac_var}_value=\$${ac_var}
1591   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1592   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1593 done
1594
1595 #
1596 # Report the --help message.
1597 #
1598 if test "$ac_init_help" = "long"; then
1599   # Omit some internal or obsolete options to make the list less imposing.
1600   # This message is too long to be a string in the A/UX 3.1 sh.
1601   cat <<_ACEOF
1602 \`configure' configures wxWidgets 2.9.3 to adapt to many kinds of systems.
1603
1604 Usage: $0 [OPTION]... [VAR=VALUE]...
1605
1606 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1607 VAR=VALUE.  See below for descriptions of some of the useful variables.
1608
1609 Defaults for the options are specified in brackets.
1610
1611 Configuration:
1612   -h, --help              display this help and exit
1613       --help=short        display options specific to this package
1614       --help=recursive    display the short help of all the included packages
1615   -V, --version           display version information and exit
1616   -q, --quiet, --silent   do not print \`checking...' messages
1617       --cache-file=FILE   cache test results in FILE [disabled]
1618   -C, --config-cache      alias for \`--cache-file=config.cache'
1619   -n, --no-create         do not create output files
1620       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1621
1622 Installation directories:
1623   --prefix=PREFIX         install architecture-independent files in PREFIX
1624                           [$ac_default_prefix]
1625   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1626                           [PREFIX]
1627
1628 By default, \`make install' will install all the files in
1629 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1630 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1631 for instance \`--prefix=\$HOME'.
1632
1633 For better control, use the options below.
1634
1635 Fine tuning of the installation directories:
1636   --bindir=DIR           user executables [EPREFIX/bin]
1637   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1638   --libexecdir=DIR       program executables [EPREFIX/libexec]
1639   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1640   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1641   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1642   --libdir=DIR           object code libraries [EPREFIX/lib]
1643   --includedir=DIR       C header files [PREFIX/include]
1644   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1645   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1646   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1647   --infodir=DIR          info documentation [DATAROOTDIR/info]
1648   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1649   --mandir=DIR           man documentation [DATAROOTDIR/man]
1650   --docdir=DIR           documentation root [DATAROOTDIR/doc/wxwidgets]
1651   --htmldir=DIR          html documentation [DOCDIR]
1652   --dvidir=DIR           dvi documentation [DOCDIR]
1653   --pdfdir=DIR           pdf documentation [DOCDIR]
1654   --psdir=DIR            ps documentation [DOCDIR]
1655 _ACEOF
1656
1657   cat <<\_ACEOF
1658
1659 X features:
1660   --x-includes=DIR    X include files are in DIR
1661   --x-libraries=DIR   X library files are in DIR
1662
1663 System types:
1664   --build=BUILD     configure for building on BUILD [guessed]
1665   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1666 _ACEOF
1667 fi
1668
1669 if test -n "$ac_init_help"; then
1670   case $ac_init_help in
1671      short | recursive ) echo "Configuration of wxWidgets 2.9.3:";;
1672    esac
1673   cat <<\_ACEOF
1674
1675 Optional Features:
1676   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1677   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1678   --disable-gui           don't build GUI parts of the library
1679   --enable-monolithic     build wxWidgets as single library
1680   --enable-plugins        build parts of wxWidgets as loadable components
1681   --enable-official_build official build of wxWidgets (win32 DLL only)
1682   --enable-vendor=VENDOR  vendor name (win32 DLL only)
1683   --disable-all-features  disable all optional features to build minimal library
1684   --enable-universal      use wxWidgets GUI controls instead of native ones
1685   --enable-nanox          use NanoX
1686   --disable-gtk2          use GTK+ 1.2 instead of 2.0
1687   --enable-gpe            use GNOME PDA Environment features if possible
1688   --enable-debug          build library for debugging
1689   --disable-debug_flag    disable all debugging support
1690   --enable-debug_info     generate debug information
1691   --enable-debug_gdb      create code with extra GDB debugging information
1692   --enable-debug_cntxt    obsolete, don't use: use wxDebugContext
1693   --enable-mem_tracing    obsolete, don't use: create code with memory tracing
1694   --disable-shared        create static library instead of shared
1695   --enable-stl            use standard C++ classes for everything
1696   --enable-std_containers use standard C++ container classes
1697   --enable-std_iostreams  use standard C++ stream classes
1698   --enable-std_string     use standard C++ string classes
1699  --enable-std_string_conv_in_wxstring     provide implicit conversion to std::string in wxString
1700   --disable-unicode       compile without Unicode support
1701   --enable-mslu           use MS Layer for Unicode on Windows 9x (Win32 only)
1702   --enable-utf8           use UTF-8 representation for strings (Unix only)
1703   --enable-utf8only       only support UTF-8 locales in UTF-8 build (Unix only)
1704   --enable-extended_rtti  use extended RTTI (XTI)
1705   --enable-omf            use OMF object format
1706   --disable-optimise      compile without optimisations
1707   --enable-profile        create code with profiling information
1708   --enable-no_rtti        create code without RTTI information
1709   --enable-no_exceptions  create code without C++ exceptions handling
1710   --enable-permissive     compile code disregarding strict ANSI
1711   --enable-no_deps        create code without dependency information
1712   --disable-vararg_macros don't use vararg macros, even if they are supported
1713   --enable-universal_binary  create universal binary with Mac PPC and i386 (and x86_64 if using Cocoa) architectures
1714   --enable-macosx_arch=ARCH  build for just the specified architecture
1715   --enable-compat26       enable wxWidgets 2.6 compatibility
1716   --disable-compat28      disable wxWidgets 2.8 compatibility
1717   --disable-rpath         disable use of rpath for uninstalled builds
1718   --enable-objc_uniquifying enable Objective-C class name uniquifying
1719   --disable-visibility    disable use of ELF symbols visibility even if supported
1720   --disable-tls           disable use of compiler TLS support
1721   --enable-intl           use internationalization system
1722   --enable-xlocale        use x-locale support (requires wxLocale)
1723   --enable-config         use wxConfig (and derived) classes
1724   --enable-protocols      use wxProtocol and derived classes
1725   --enable-ftp            use wxFTP (requires wxProtocol
1726   --enable-http           use wxHTTP (requires wxProtocol
1727   --enable-fileproto      use wxFileProto class (requires wxProtocol
1728   --enable-sockets        use socket/network classes
1729   --enable-ipv6           enable IPv6 support in wxSocket
1730   --enable-ole            use OLE classes (Win32 only)
1731   --enable-dataobj        use data object classes
1732   --enable-ipc            use interprocess communication (wxSocket etc.)
1733   --enable-baseevtloop    use event loop in console programs too
1734   --enable-epollloop      use wxEpollDispatcher class (Linux only)
1735   --enable-selectloop     use wxSelectDispatcher class
1736   --enable-any            use wxAny class
1737   --enable-apple_ieee     use the Apple IEEE codec
1738   --enable-arcstream      use wxArchive streams
1739   --enable-base64         use base64 encoding/decoding functions
1740   --enable-backtrace      use wxStackWalker class for getting backtraces
1741   --enable-catch_segvs    catch signals in wxApp::OnFatalException (Unix only)
1742   --enable-cmdline        use wxCmdLineParser class
1743   --enable-datetime       use wxDateTime class
1744   --enable-debugreport    use wxDebugReport class
1745   --enable-dialupman      use dialup network classes
1746   --enable-dynlib         use wxLibrary class for DLL loading
1747   --enable-dynamicloader  use (new) wxDynamicLibrary class
1748   --enable-exceptions     build exception-safe library
1749   --enable-ffile          use wxFFile class
1750   --enable-file           use wxFile class
1751   --enable-filehistory    use wxFileHistory class
1752   --enable-filesystem     use virtual file systems classes
1753   --enable-fontenum       use wxFontEnumerator class
1754   --enable-fontmap        use font encodings conversion classes
1755   --enable-fs_archive     use virtual archive filesystems
1756   --enable-fs_inet        use virtual HTTP/FTP filesystems
1757   --enable-fs_zip         now replaced by fs_archive
1758   --enable-fswatcher      use wxFileSystemWatcher class
1759   --enable-geometry       use geometry class
1760   --enable-log            use logging system
1761   --enable-longlong       use wxLongLong class
1762   --enable-mimetype       use wxMimeTypesManager
1763   --enable-printfposparam use wxVsnprintf() which supports positional parameters
1764   --enable-snglinst       use wxSingleInstanceChecker class
1765   --enable-sound          use wxSound class
1766   --enable-stdpaths       use wxStandardPaths class
1767   --enable-stopwatch      use wxStopWatch class
1768   --enable-streams        use wxStream etc classes
1769   --enable-sysoptions     use wxSystemOptions
1770   --enable-tarstream      use wxTar streams
1771   --enable-textbuf        use wxTextBuffer class
1772   --enable-textfile       use wxTextFile class
1773   --enable-timer          use wxTimer class
1774   --enable-variant        use wxVariant class
1775   --enable-zipstream      use wxZip streams
1776   --enable-url            use wxURL class
1777   --enable-protocol       use wxProtocol class
1778   --enable-protocol-http  HTTP support in wxProtocol
1779   --enable-protocol-ftp   FTP support in wxProtocol
1780   --enable-protocol-file  FILE support in wxProtocol
1781   --enable-threads        use threads
1782   --enable-iniconf        use wxIniConfig (Win32 only)
1783   --enable-regkey         use wxRegKey class (Win32 only)
1784   --enable-docview        use document view architecture
1785   --enable-help           use help subsystem
1786   --enable-mshtmlhelp     use MS HTML Help (win32)
1787   --enable-html           use wxHTML sub-library
1788   --enable-htmlhelp       use wxHTML-based help
1789   --enable-xrc            use XRC resources sub-library
1790   --enable-aui            use AUI docking library
1791   --enable-propgrid       use wxPropertyGrid library
1792   --enable-ribbon         use wxRibbon library
1793   --enable-stc            use wxStyledTextCtrl library
1794   --enable-constraints    use layout-constraints system
1795   --enable-loggui         use standard GUI logger
1796   --enable-logwin         use wxLogWindow
1797   --enable-logdialog      use wxLogDialog
1798   --enable-mdi            use multiple document interface architecture
1799   --enable-mdidoc         use docview architecture with MDI
1800   --enable-mediactrl      use wxMediaCtrl class
1801   --enable-gstreamer8     force GStreamer 0.8 instead of 0.10 with the wxMediaCtrl class on unix
1802   --enable-webkit         use wxWebKitCtrl (Mac)
1803   --enable-richtext       use wxRichTextCtrl
1804   --enable-postscript     use wxPostscriptDC device context (default for gtk+)
1805   --enable-printarch      use printing architecture
1806   --enable-svg            use wxSVGFileDC device context
1807   --enable-web            use wxWeb library
1808   --enable-graphics_ctx   use graphics context 2D drawing API
1809   --enable-clipboard      use wxClipboard class
1810   --enable-dnd            use Drag'n'Drop classes
1811   --enable-metafile       use win32 metafiles
1812   --disable-controls      disable compilation of all standard controls
1813   --enable-markup         support wxControl::SetLabelMarkup
1814   --enable-accel          use accelerators
1815   --enable-animatectrl    use wxAnimationCtrl class
1816   --enable-artstd         use standard XPM icons in wxArtProvider
1817   --enable-arttango       use Tango icons in wxArtProvider
1818   --enable-bmpbutton      use wxBitmapButton class
1819   --enable-bmpcombobox    use wxBitmapComboBox class
1820   --enable-button         use wxButton class
1821   --enable-calendar       use wxCalendarCtrl class
1822   --enable-caret          use wxCaret class
1823   --enable-checkbox       use wxCheckBox class
1824   --enable-checklst       use wxCheckListBox (listbox with checkboxes) class
1825   --enable-choice         use wxChoice class
1826   --enable-choicebook     use wxChoicebook class
1827   --enable-collpane       use wxCollapsiblePane class
1828   --enable-colourpicker   use wxColourPickerCtrl class
1829   --enable-combobox       use wxComboBox class
1830   --enable-comboctrl      use wxComboCtrl class
1831   --enable-commandlinkbutton      use wxCommmandLinkButton class
1832   --enable-dataviewctrl   use wxDataViewCtrl class
1833   --enable-datepick       use wxDatePickerCtrl class
1834   --enable-detect_sm      use code to detect X11 session manager
1835   --enable-dirpicker      use wxDirPickerCtrl class
1836   --enable-display        use wxDisplay class
1837   --enable-editablebox    use wxEditableListBox class
1838   --enable-filectrl       use wxFileCtrl class
1839   --enable-filepicker     use wxFilePickerCtrl class
1840   --enable-fontpicker     use wxFontPickerCtrl class
1841   --enable-gauge          use wxGauge class
1842   --enable-grid           use wxGrid class
1843   --enable-headerctrl     use wxHeaderCtrl class
1844   --enable-hyperlink      use wxHyperlinkCtrl class
1845   --enable-imaglist       use wxImageList class
1846   --enable-infobar        use wxInfoBar class
1847   --enable-listbook       use wxListbook class
1848   --enable-listbox        use wxListBox class
1849   --enable-listctrl       use wxListCtrl class
1850   --enable-notebook       use wxNotebook class
1851   --enable-notifmsg       use wxNotificationMessage class
1852   --enable-odcombobox     use wxOwnerDrawnComboBox class
1853   --enable-popupwin       use wxPopUpWindow class
1854   --enable-radiobox       use wxRadioBox class
1855   --enable-radiobtn       use wxRadioButton class
1856   --enable-richmsgdlg     use wxRichMessageDialog class
1857   --enable-rearrangectrl  use wxRearrangeList/Ctrl/Dialog
1858   --enable-sash           use wxSashWindow class
1859   --enable-scrollbar      use wxScrollBar class and scrollable windows
1860   --enable-searchctrl     use wxSearchCtrl class
1861   --enable-slider         use wxSlider class
1862   --enable-spinbtn        use wxSpinButton class
1863   --enable-spinctrl       use wxSpinCtrl class
1864   --enable-splitter       use wxSplitterWindow class
1865   --enable-statbmp        use wxStaticBitmap class
1866   --enable-statbox        use wxStaticBox class
1867   --enable-statline       use wxStaticLine class
1868   --enable-stattext       use wxStaticText class
1869   --enable-statusbar      use wxStatusBar class
1870   --enable-taskbaricon    use wxTaskBarIcon class
1871   --enable-tbarnative     use native wxToolBar class
1872   --enable-textctrl       use wxTextCtrl class
1873   --enable-tipwindow      use wxTipWindow class
1874   --enable-togglebtn      use wxToggleButton class
1875   --enable-toolbar        use wxToolBar class
1876   --enable-toolbook       use wxToolbook class
1877   --enable-treebook       use wxTreebook class
1878   --enable-treectrl       use wxTreeCtrl class
1879   --enable-commondlg      use all common dialogs
1880   --enable-aboutdlg       use wxAboutBox
1881   --enable-choicedlg      use wxChoiceDialog
1882   --enable-coldlg         use wxColourDialog
1883   --enable-filedlg        use wxFileDialog
1884   --enable-finddlg        use wxFindReplaceDialog
1885   --enable-fontdlg        use wxFontDialog
1886   --enable-dirdlg         use wxDirDialog
1887   --enable-msgdlg         use wxMessageDialog
1888   --enable-numberdlg      use wxNumberEntryDialog
1889   --enable-splash         use wxSplashScreen
1890   --enable-textdlg        use wxTextDialog
1891   --enable-tipdlg         use startup tips
1892   --enable-progressdlg    use wxProgressDialog
1893   --enable-wizarddlg      use wxWizard
1894   --enable-menus          use wxMenu/wxMenuBar/wxMenuItem classes
1895   --enable-miniframe      use wxMiniFrame class
1896   --enable-tooltips       use wxToolTip class
1897   --enable-splines        use spline drawing code
1898   --enable-mousewheel     use mousewheel
1899   --enable-validators     use wxValidator and derived classes
1900   --enable-busyinfo       use wxBusyInfo
1901   --enable-joystick       use wxJoystick
1902   --enable-metafiles      use wxMetaFile (Win32 only)
1903   --enable-dragimage      use wxDragImage
1904   --enable-accessibility  enable accessibility support
1905   --enable-uiactionsim    use wxUIActionSimulator (experimental)
1906   --enable-dctransform    use wxDC::SetTransformMatrix and related
1907   --enable-webview-webkit use wxWebView WebKit backend
1908   --enable-palette        use wxPalette class
1909   --enable-image          use wxImage class
1910   --enable-gif            use gif images (GIF file format)
1911   --enable-pcx            use pcx images (PCX file format)
1912   --enable-tga            use tga images (TGA file format)
1913   --enable-iff            use iff images (IFF file format)
1914   --enable-pnm            use pnm images (PNM file format)
1915   --enable-xpm            use xpm images (XPM file format)
1916   --enable-ico_cur        use Windows ICO and CUR formats
1917   --enable-dccache        cache temporary wxDC objects (Win32 only)
1918   --enable-ps-in-msw      use PS printing in wxMSW (Win32 only)
1919   --enable-ownerdrawn     use owner drawn controls (Win32 and OS/2 only)
1920   --enable-uxtheme        enable support for Windows XP themed look (Win32 only)
1921   --enable-wxdib          use wxDIB class (Win32 only)
1922   --enable-webview-ie     use wxWebView IE backend (Win32 only)
1923   --enable-autoidman      use automatic ids management
1924   --disable-largefile     omit support for large files
1925   --disable-gtktest       do not try to compile and run a test GTK+ program
1926   --disable-gtktest       Do not try to compile and run a test GTK program
1927   --disable-sdltest       Do not try to compile and run a test SDL program
1928   --enable-omf            use OMF object format (OS/2)
1929   --disable-dependency-tracking
1930                           don't use dependency tracking even if the compiler
1931                           can
1932   --disable-precomp-headers
1933                           don't use precompiled headers even if compiler can
1934
1935 Optional Packages:
1936   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1937   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1938   --without-subdirs       don't generate makefiles for samples/demos/...
1939   --with-flavour=NAME     specify a name to identify this build
1940   --with-themes=all|list  use only the specified comma-separated list of wxUniversal themes
1941   --with-gtk[=VERSION]    use GTK+, VERSION can be 2 (default), 1 or "any"
1942   --with-motif            use Motif/Lesstif
1943   --with-osx_carbon       use Mac OS X (Carbon)
1944   --with-osx_cocoa        use Mac OS X (Cocoa)
1945   --with-osx_iphone       use iPhone OS X port
1946   --with-osx              use Mac OS X (default port, currently Carbon)
1947   --with-carbon           same as --with-osx_carbon
1948   --with-cocoa            same as --with-osx_cocoa
1949   --with-iphone           same as --with-osx_iphone
1950   --with-mac              same as --with-osx
1951   --with-old_cocoa        use old, deprecated, Cocoa port
1952   --with-wine             use Wine
1953   --with-msw              use MS-Windows
1954   --with-pm               use OS/2 Presentation Manager
1955   --with-mgl              use SciTech MGL
1956   --with-directfb         use DirectFB
1957   --with-microwin         use MicroWindows
1958   --with-x11              use X11
1959   --with-libpng           use libpng (PNG image format)
1960   --with-libjpeg          use libjpeg (JPEG file format)
1961   --with-libtiff          use libtiff (TIFF file format)
1962   --with-libxpm           use libxpm (XPM file format)
1963   --with-libiconv         use libiconv (character conversion)
1964   --with-libmspack        use libmspack (CHM help files loading)
1965   --without-gtkprint      don't use GTK printing support
1966   --without-gnomeprint    don't use GNOME printing libraries
1967   --with-gnomevfs         use GNOME VFS for associating MIME types
1968   --with-hildon           use Hildon framework for Nokia 770/800/810
1969   --with-opengl           use OpenGL (or Mesa)
1970   --with-dmalloc          use dmalloc library (http://dmalloc.com/)
1971   --with-sdl              use SDL for audio on Unix
1972   --with-regex            enable support for wxRegEx class
1973   --with-zlib             use zlib for LZW compression
1974   --with-expat            enable XML support using expat parser
1975   --with-macosx-sdk=PATH  use an OS X SDK at PATH
1976   --with-macosx-version-min=VER   build binaries which require at least this OS X version
1977   --with-gtk-prefix=PFX   Prefix where GTK is installed (optional)
1978   --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)
1979   --with-x                use the X Window System
1980   --with-libiconv-prefix=DIR  search for libiconv in DIR/include and DIR/lib
1981   --with-sdl-prefix=PFX   Prefix where SDL is installed (optional)
1982   --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1983   --with-cppunit-prefix=PFX   Prefix where CppUnit is installed (optional)
1984   --with-cppunit-exec-prefix=PFX  Exec prefix where CppUnit is installed (optional)
1985
1986 Some influential environment variables:
1987   CC          C compiler command
1988   CFLAGS      C compiler flags
1989   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1990               nonstandard directory <lib dir>
1991   LIBS        libraries to pass to the linker, e.g. -l<library>
1992   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1993               you have headers in a nonstandard directory <include dir>
1994   CPP         C preprocessor
1995   CXX         C++ compiler command
1996   CXXFLAGS    C++ compiler flags
1997   CXXCPP      C++ preprocessor
1998   PKG_CONFIG  path to pkg-config utility
1999   DIRECTFB_CFLAGS
2000               C compiler flags for DIRECTFB, overriding pkg-config
2001   DIRECTFB_LIBS
2002               linker flags for DIRECTFB, overriding pkg-config
2003   XMKMF       Path to xmkmf, Makefile generator for X Window System
2004   PANGOX_CFLAGS
2005               C compiler flags for PANGOX, overriding pkg-config
2006   PANGOX_LIBS linker flags for PANGOX, overriding pkg-config
2007   PANGOFT2_CFLAGS
2008               C compiler flags for PANGOFT2, overriding pkg-config
2009   PANGOFT2_LIBS
2010               linker flags for PANGOFT2, overriding pkg-config
2011   PANGOXFT_CFLAGS
2012               C compiler flags for PANGOXFT, overriding pkg-config
2013   PANGOXFT_LIBS
2014               linker flags for PANGOXFT, overriding pkg-config
2015   GTKPRINT_CFLAGS
2016               C compiler flags for GTKPRINT, overriding pkg-config
2017   GTKPRINT_LIBS
2018               linker flags for GTKPRINT, overriding pkg-config
2019   LIBGNOMEPRINTUI_CFLAGS
2020               C compiler flags for LIBGNOMEPRINTUI, overriding pkg-config
2021   LIBGNOMEPRINTUI_LIBS
2022               linker flags for LIBGNOMEPRINTUI, overriding pkg-config
2023   GNOMEVFS_CFLAGS
2024               C compiler flags for GNOMEVFS, overriding pkg-config
2025   GNOMEVFS_LIBS
2026               linker flags for GNOMEVFS, overriding pkg-config
2027   HILDON_CFLAGS
2028               C compiler flags for HILDON, overriding pkg-config
2029   HILDON_LIBS linker flags for HILDON, overriding pkg-config
2030   HILDON2_CFLAGS
2031               C compiler flags for HILDON2, overriding pkg-config
2032   HILDON2_LIBS
2033               linker flags for HILDON2, overriding pkg-config
2034   CAIRO_CFLAGS
2035               C compiler flags for CAIRO, overriding pkg-config
2036   CAIRO_LIBS  linker flags for CAIRO, overriding pkg-config
2037   GST_CFLAGS  C compiler flags for GST, overriding pkg-config
2038   GST_LIBS    linker flags for GST, overriding pkg-config
2039
2040 Use these variables to override the choices made by `configure' or to help
2041 it to find libraries and programs with nonstandard names/locations.
2042
2043 Report bugs to <wx-dev@lists.wxwidgets.org>.
2044 _ACEOF
2045 ac_status=$?
2046 fi
2047
2048 if test "$ac_init_help" = "recursive"; then
2049   # If there are subdirs, report their specific --help.
2050   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2051     test -d "$ac_dir" || continue
2052     ac_builddir=.
2053
2054 case "$ac_dir" in
2055 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2056 *)
2057   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
2058   # A ".." for each directory in $ac_dir_suffix.
2059   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
2060   case $ac_top_builddir_sub in
2061   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2062   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2063   esac ;;
2064 esac
2065 ac_abs_top_builddir=$ac_pwd
2066 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2067 # for backward compatibility:
2068 ac_top_builddir=$ac_top_build_prefix
2069
2070 case $srcdir in
2071   .)  # We are building in place.
2072     ac_srcdir=.
2073     ac_top_srcdir=$ac_top_builddir_sub
2074     ac_abs_top_srcdir=$ac_pwd ;;
2075   [\\/]* | ?:[\\/]* )  # Absolute name.
2076     ac_srcdir=$srcdir$ac_dir_suffix;
2077     ac_top_srcdir=$srcdir
2078     ac_abs_top_srcdir=$srcdir ;;
2079   *) # Relative name.
2080     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2081     ac_top_srcdir=$ac_top_build_prefix$srcdir
2082     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2083 esac
2084 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2085
2086     cd "$ac_dir" || { ac_status=$?; continue; }
2087     # Check for guested configure.
2088     if test -f "$ac_srcdir/configure.gnu"; then
2089       echo &&
2090       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2091     elif test -f "$ac_srcdir/configure"; then
2092       echo &&
2093       $SHELL "$ac_srcdir/configure" --help=recursive
2094     else
2095       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2096     fi || ac_status=$?
2097     cd "$ac_pwd" || { ac_status=$?; break; }
2098   done
2099 fi
2100
2101 test -n "$ac_init_help" && exit $ac_status
2102 if $ac_init_version; then
2103   cat <<\_ACEOF
2104 wxWidgets configure 2.9.3
2105 generated by GNU Autoconf 2.61
2106
2107 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
2108 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
2109 This configure script is free software; the Free Software Foundation
2110 gives unlimited permission to copy, distribute and modify it.
2111 _ACEOF
2112   exit
2113 fi
2114 cat >config.log <<_ACEOF
2115 This file contains any messages produced by compilers while
2116 running configure, to aid debugging if configure makes a mistake.
2117
2118 It was created by wxWidgets $as_me 2.9.3, which was
2119 generated by GNU Autoconf 2.61.  Invocation command line was
2120
2121   $ $0 $@
2122
2123 _ACEOF
2124 exec 5>>config.log
2125 {
2126 cat <<_ASUNAME
2127 ## --------- ##
2128 ## Platform. ##
2129 ## --------- ##
2130
2131 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2132 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2133 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2134 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2135 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2136
2137 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2138 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2139
2140 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2141 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2142 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2143 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2144 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2145 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2146 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2147
2148 _ASUNAME
2149
2150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2151 for as_dir in $PATH
2152 do
2153   IFS=$as_save_IFS
2154   test -z "$as_dir" && as_dir=.
2155   echo "PATH: $as_dir"
2156 done
2157 IFS=$as_save_IFS
2158
2159 } >&5
2160
2161 cat >&5 <<_ACEOF
2162
2163
2164 ## ----------- ##
2165 ## Core tests. ##
2166 ## ----------- ##
2167
2168 _ACEOF
2169
2170
2171 # Keep a trace of the command line.
2172 # Strip out --no-create and --no-recursion so they do not pile up.
2173 # Strip out --silent because we don't want to record it for future runs.
2174 # Also quote any args containing shell meta-characters.
2175 # Make two passes to allow for proper duplicate-argument suppression.
2176 ac_configure_args=
2177 ac_configure_args0=
2178 ac_configure_args1=
2179 ac_must_keep_next=false
2180 for ac_pass in 1 2
2181 do
2182   for ac_arg
2183   do
2184     case $ac_arg in
2185     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2186     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2187     | -silent | --silent | --silen | --sile | --sil)
2188       continue ;;
2189     *\'*)
2190       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2191     esac
2192     case $ac_pass in
2193     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
2194     2)
2195       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
2196       if test $ac_must_keep_next = true; then
2197         ac_must_keep_next=false # Got value, back to normal.
2198       else
2199         case $ac_arg in
2200           *=* | --config-cache | -C | -disable-* | --disable-* \
2201           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2202           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2203           | -with-* | --with-* | -without-* | --without-* | --x)
2204             case "$ac_configure_args0 " in
2205               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2206             esac
2207             ;;
2208           -* ) ac_must_keep_next=true ;;
2209         esac
2210       fi
2211       ac_configure_args="$ac_configure_args '$ac_arg'"
2212       ;;
2213     esac
2214   done
2215 done
2216 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
2217 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
2218
2219 # When interrupted or exit'd, cleanup temporary files, and complete
2220 # config.log.  We remove comments because anyway the quotes in there
2221 # would cause problems or look ugly.
2222 # WARNING: Use '\'' to represent an apostrophe within the trap.
2223 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2224 trap 'exit_status=$?
2225   # Save into config.log some information that might help in debugging.
2226   {
2227     echo
2228
2229     cat <<\_ASBOX
2230 ## ---------------- ##
2231 ## Cache variables. ##
2232 ## ---------------- ##
2233 _ASBOX
2234     echo
2235     # The following way of writing the cache mishandles newlines in values,
2236 (
2237   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2238     eval ac_val=\$$ac_var
2239     case $ac_val in #(
2240     *${as_nl}*)
2241       case $ac_var in #(
2242       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
2243 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
2244       esac
2245       case $ac_var in #(
2246       _ | IFS | as_nl) ;; #(
2247       *) $as_unset $ac_var ;;
2248       esac ;;
2249     esac
2250   done
2251   (set) 2>&1 |
2252     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2253     *${as_nl}ac_space=\ *)
2254       sed -n \
2255         "s/'\''/'\''\\\\'\'''\''/g;
2256           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2257       ;; #(
2258     *)
2259       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2260       ;;
2261     esac |
2262     sort
2263 )
2264     echo
2265
2266     cat <<\_ASBOX
2267 ## ----------------- ##
2268 ## Output variables. ##
2269 ## ----------------- ##
2270 _ASBOX
2271     echo
2272     for ac_var in $ac_subst_vars
2273     do
2274       eval ac_val=\$$ac_var
2275       case $ac_val in
2276       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2277       esac
2278       echo "$ac_var='\''$ac_val'\''"
2279     done | sort
2280     echo
2281
2282     if test -n "$ac_subst_files"; then
2283       cat <<\_ASBOX
2284 ## ------------------- ##
2285 ## File substitutions. ##
2286 ## ------------------- ##
2287 _ASBOX
2288       echo
2289       for ac_var in $ac_subst_files
2290       do
2291         eval ac_val=\$$ac_var
2292         case $ac_val in
2293         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2294         esac
2295         echo "$ac_var='\''$ac_val'\''"
2296       done | sort
2297       echo
2298     fi
2299
2300     if test -s confdefs.h; then
2301       cat <<\_ASBOX
2302 ## ----------- ##
2303 ## confdefs.h. ##
2304 ## ----------- ##
2305 _ASBOX
2306       echo
2307       cat confdefs.h
2308       echo
2309     fi
2310     test "$ac_signal" != 0 &&
2311       echo "$as_me: caught signal $ac_signal"
2312     echo "$as_me: exit $exit_status"
2313   } >&5
2314   rm -f core *.core core.conftest.* &&
2315     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2316     exit $exit_status
2317 ' 0
2318 for ac_signal in 1 2 13 15; do
2319   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
2320 done
2321 ac_signal=0
2322
2323 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2324 rm -f -r conftest* confdefs.h
2325
2326 # Predefined preprocessor variables.
2327
2328 cat >>confdefs.h <<_ACEOF
2329 #define PACKAGE_NAME "$PACKAGE_NAME"
2330 _ACEOF
2331
2332
2333 cat >>confdefs.h <<_ACEOF
2334 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2335 _ACEOF
2336
2337
2338 cat >>confdefs.h <<_ACEOF
2339 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2340 _ACEOF
2341
2342
2343 cat >>confdefs.h <<_ACEOF
2344 #define PACKAGE_STRING "$PACKAGE_STRING"
2345 _ACEOF
2346
2347
2348 cat >>confdefs.h <<_ACEOF
2349 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2350 _ACEOF
2351
2352
2353 # Let the site file select an alternate cache file if it wants to.
2354 # Prefer explicitly selected file to automatically selected ones.
2355 if test -n "$CONFIG_SITE"; then
2356   set x "$CONFIG_SITE"
2357 elif test "x$prefix" != xNONE; then
2358   set x "$prefix/share/config.site" "$prefix/etc/config.site"
2359 else
2360   set x "$ac_default_prefix/share/config.site" \
2361         "$ac_default_prefix/etc/config.site"
2362 fi
2363 shift
2364 for ac_site_file
2365 do
2366   if test -r "$ac_site_file"; then
2367     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
2368 echo "$as_me: loading site script $ac_site_file" >&6;}
2369     sed 's/^/| /' "$ac_site_file" >&5
2370     . "$ac_site_file"
2371   fi
2372 done
2373
2374 if test -r "$cache_file"; then
2375   # Some versions of bash will fail to source /dev/null (special
2376   # files actually), so we avoid doing that.
2377   if test -f "$cache_file"; then
2378     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
2379 echo "$as_me: loading cache $cache_file" >&6;}
2380     case $cache_file in
2381       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2382       *)                      . "./$cache_file";;
2383     esac
2384   fi
2385 else
2386   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
2387 echo "$as_me: creating cache $cache_file" >&6;}
2388   >$cache_file
2389 fi
2390
2391 # Check that the precious variables saved in the cache have kept the same
2392 # value.
2393 ac_cache_corrupted=false
2394 for ac_var in $ac_precious_vars; do
2395   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2396   eval ac_new_set=\$ac_env_${ac_var}_set
2397   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2398   eval ac_new_val=\$ac_env_${ac_var}_value
2399   case $ac_old_set,$ac_new_set in
2400     set,)
2401       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2402 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2403       ac_cache_corrupted=: ;;
2404     ,set)
2405       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2406 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2407       ac_cache_corrupted=: ;;
2408     ,);;
2409     *)
2410       if test "x$ac_old_val" != "x$ac_new_val"; then
2411         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2412 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2413         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
2414 echo "$as_me:   former value:  $ac_old_val" >&2;}
2415         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
2416 echo "$as_me:   current value: $ac_new_val" >&2;}
2417         ac_cache_corrupted=:
2418       fi;;
2419   esac
2420   # Pass precious variables to config.status.
2421   if test "$ac_new_set" = set; then
2422     case $ac_new_val in
2423     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2424     *) ac_arg=$ac_var=$ac_new_val ;;
2425     esac
2426     case " $ac_configure_args " in
2427       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2428       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2429     esac
2430   fi
2431 done
2432 if $ac_cache_corrupted; then
2433   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2434 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2435   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2436 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2437    { (exit 1); exit 1; }; }
2438 fi
2439
2440
2441
2442
2443
2444
2445
2446
2447
2448
2449
2450
2451
2452
2453
2454
2455
2456
2457
2458
2459
2460
2461
2462
2463
2464 ac_ext=c
2465 ac_cpp='$CPP $CPPFLAGS'
2466 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2467 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2468 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2469
2470
2471
2472
2473
2474 ac_aux_dir=
2475 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2476   if 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/install.sh"; then
2481     ac_aux_dir=$ac_dir
2482     ac_install_sh="$ac_aux_dir/install.sh -c"
2483     break
2484   elif test -f "$ac_dir/shtool"; then
2485     ac_aux_dir=$ac_dir
2486     ac_install_sh="$ac_aux_dir/shtool install -c"
2487     break
2488   fi
2489 done
2490 if test -z "$ac_aux_dir"; then
2491   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2492 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2493    { (exit 1); exit 1; }; }
2494 fi
2495
2496 # These three variables are undocumented and unsupported,
2497 # and are intended to be withdrawn in a future Autoconf release.
2498 # They can cause serious problems if a builder's source tree is in a directory
2499 # whose full name contains unusual characters.
2500 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2501 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2502 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2503
2504
2505 # Make sure we can run config.sub.
2506 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2507   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2508 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2509    { (exit 1); exit 1; }; }
2510
2511 { echo "$as_me:$LINENO: checking build system type" >&5
2512 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2513 if test "${ac_cv_build+set}" = set; then
2514   echo $ECHO_N "(cached) $ECHO_C" >&6
2515 else
2516   ac_build_alias=$build_alias
2517 test "x$ac_build_alias" = x &&
2518   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2519 test "x$ac_build_alias" = x &&
2520   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2521 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2522    { (exit 1); exit 1; }; }
2523 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2524   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2525 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2526    { (exit 1); exit 1; }; }
2527
2528 fi
2529 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2530 echo "${ECHO_T}$ac_cv_build" >&6; }
2531 case $ac_cv_build in
2532 *-*-*) ;;
2533 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2534 echo "$as_me: error: invalid value of canonical build" >&2;}
2535    { (exit 1); exit 1; }; };;
2536 esac
2537 build=$ac_cv_build
2538 ac_save_IFS=$IFS; IFS='-'
2539 set x $ac_cv_build
2540 shift
2541 build_cpu=$1
2542 build_vendor=$2
2543 shift; shift
2544 # Remember, the first character of IFS is used to create $*,
2545 # except with old shells:
2546 build_os=$*
2547 IFS=$ac_save_IFS
2548 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2549
2550
2551 { echo "$as_me:$LINENO: checking host system type" >&5
2552 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2553 if test "${ac_cv_host+set}" = set; then
2554   echo $ECHO_N "(cached) $ECHO_C" >&6
2555 else
2556   if test "x$host_alias" = x; then
2557   ac_cv_host=$ac_cv_build
2558 else
2559   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2560     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2561 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2562    { (exit 1); exit 1; }; }
2563 fi
2564
2565 fi
2566 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2567 echo "${ECHO_T}$ac_cv_host" >&6; }
2568 case $ac_cv_host in
2569 *-*-*) ;;
2570 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2571 echo "$as_me: error: invalid value of canonical host" >&2;}
2572    { (exit 1); exit 1; }; };;
2573 esac
2574 host=$ac_cv_host
2575 ac_save_IFS=$IFS; IFS='-'
2576 set x $ac_cv_host
2577 shift
2578 host_cpu=$1
2579 host_vendor=$2
2580 shift; shift
2581 # Remember, the first character of IFS is used to create $*,
2582 # except with old shells:
2583 host_os=$*
2584 IFS=$ac_save_IFS
2585 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2586
2587
2588
2589 if test "$cross_compiling" != "no"; then
2590     HOST_PREFIX="${host_alias}-"
2591     HOST_SUFFIX="-$host_alias"
2592 else
2593     HOST_PREFIX=
2594     HOST_SUFFIX=
2595 fi
2596
2597
2598 wx_major_version_number=2
2599 wx_minor_version_number=9
2600 wx_release_number=3
2601 wx_subrelease_number=0
2602
2603 WX_RELEASE=$wx_major_version_number.$wx_minor_version_number
2604 WX_VERSION=$WX_RELEASE.$wx_release_number
2605 WX_SUBVERSION=$WX_VERSION.$wx_subrelease_number
2606
2607 WX_MSW_VERSION=$wx_major_version_number$wx_minor_version_number$wx_release_number
2608
2609
2610 wx_top_builddir="`pwd`"
2611
2612
2613
2614
2615 USE_UNIX=1
2616 USE_OS2=0
2617 USE_WIN32=0
2618 USE_DOS=0
2619 USE_BEOS=0
2620 USE_MAC=0
2621
2622 USE_AIX=
2623 USE_BSD=                            USE_DARWIN=                         USE_FREEBSD=
2624 USE_GNU=                            USE_HPUX=
2625 USE_LINUX=
2626 USE_NETBSD=
2627 USE_OPENBSD=
2628 USE_OSF=                            USE_SGI=
2629 USE_SOLARIS=                        USE_SUN=                            USE_SUNOS=                          USE_SVR4=                           USE_SYSV=                           USE_VMS=
2630 USE_ULTRIX=
2631 USE_UNIXWARE=
2632
2633 USE_ALPHA=
2634
2635 NEEDS_D_REENTRANT_FOR_R_FUNCS=0
2636
2637 ALL_TOOLKITS="COCOA GTK OSX_CARBON OSX_COCOA OSX_IPHONE MGL MICROWIN MOTIF MSW PM X11 DFB"
2638
2639 DEFAULT_wxUSE_OLD_COCOA=0
2640 DEFAULT_wxUSE_GTK=0
2641 DEFAULT_wxUSE_OSX_CARBON=0
2642 DEFAULT_wxUSE_OSX_COCOA=0
2643 DEFAULT_wxUSE_OSX_IPHONE=0
2644 DEFAULT_wxUSE_MGL=0
2645 DEFAULT_wxUSE_MICROWIN=0
2646 DEFAULT_wxUSE_MOTIF=0
2647 DEFAULT_wxUSE_MSW=0
2648 DEFAULT_wxUSE_PM=0
2649 DEFAULT_wxUSE_X11=0
2650 DEFAULT_wxUSE_DFB=0
2651
2652 DEFAULT_DEFAULT_wxUSE_OLD_COCOA=0
2653 DEFAULT_DEFAULT_wxUSE_GTK=0
2654 DEFAULT_DEFAULT_wxUSE_OSX_CARBON=0
2655 DEFAULT_DEFAULT_wxUSE_OSX_COCOA=0
2656 DEFAULT_DEFAULT_wxUSE_OSX_IPHONE=0
2657 DEFAULT_DEFAULT_wxUSE_MGL=0
2658 DEFAULT_DEFAULT_wxUSE_MICROWIN=0
2659 DEFAULT_DEFAULT_wxUSE_MOTIF=0
2660 DEFAULT_DEFAULT_wxUSE_MSW=0
2661 DEFAULT_DEFAULT_wxUSE_PM=0
2662 DEFAULT_DEFAULT_wxUSE_X11=0
2663 DEFAULT_DEFAULT_wxUSE_DFB=0
2664
2665 PROGRAM_EXT=
2666 SAMPLES_RPATH_FLAG=
2667 DYLIB_RPATH_INSTALL=
2668 DYLIB_RPATH_POSTLINK=
2669
2670 DEFAULT_STD_FLAG=yes
2671
2672 case "${host}" in
2673   *-hp-hpux* )
2674     USE_HPUX=1
2675     DEFAULT_DEFAULT_wxUSE_MOTIF=1
2676     NEEDS_D_REENTRANT_FOR_R_FUNCS=1
2677     cat >>confdefs.h <<\_ACEOF
2678 #define __HPUX__ 1
2679 _ACEOF
2680
2681
2682             CPPFLAGS="-D_HPUX_SOURCE $CPPFLAGS"
2683   ;;
2684   *-*-linux* )
2685     USE_LINUX=1
2686     cat >>confdefs.h <<\_ACEOF
2687 #define __LINUX__ 1
2688 _ACEOF
2689
2690     TMP=`uname -m`
2691     if test "x$TMP" = "xalpha"; then
2692       USE_ALPHA=1
2693       cat >>confdefs.h <<\_ACEOF
2694 #define __ALPHA__ 1
2695 _ACEOF
2696
2697     fi
2698     DEFAULT_DEFAULT_wxUSE_GTK=1
2699   ;;
2700   *-*-gnu* | *-*-k*bsd*-gnu )
2701     USE_GNU=1
2702     TMP=`uname -m`
2703     if test "x$TMP" = "xalpha"; then
2704       USE_ALPHA=1
2705       cat >>confdefs.h <<\_ACEOF
2706 #define __ALPHA__ 1
2707 _ACEOF
2708
2709     fi
2710     DEFAULT_DEFAULT_wxUSE_GTK=1
2711   ;;
2712   *-*-irix5* | *-*-irix6* )
2713     USE_SGI=1
2714     USE_SVR4=1
2715     cat >>confdefs.h <<\_ACEOF
2716 #define __SGI__ 1
2717 _ACEOF
2718
2719     cat >>confdefs.h <<\_ACEOF
2720 #define __SVR4__ 1
2721 _ACEOF
2722
2723     DEFAULT_DEFAULT_wxUSE_MOTIF=1
2724   ;;
2725   *-*-qnx*)
2726     USE_QNX=1
2727     cat >>confdefs.h <<\_ACEOF
2728 #define __QNX__ 1
2729 _ACEOF
2730
2731     DEFAULT_DEFAULT_wxUSE_X11=1
2732   ;;
2733   *-*-solaris2* )
2734     USE_SUN=1
2735     USE_SOLARIS=1
2736     USE_SVR4=1
2737     cat >>confdefs.h <<\_ACEOF
2738 #define __SUN__ 1
2739 _ACEOF
2740
2741     cat >>confdefs.h <<\_ACEOF
2742 #define __SOLARIS__ 1
2743 _ACEOF
2744
2745     cat >>confdefs.h <<\_ACEOF
2746 #define __SVR4__ 1
2747 _ACEOF
2748
2749     DEFAULT_DEFAULT_wxUSE_MOTIF=1
2750     NEEDS_D_REENTRANT_FOR_R_FUNCS=1
2751   ;;
2752   *-*-sunos4* )
2753     USE_SUN=1
2754     USE_SUNOS=1
2755     USE_BSD=1
2756     cat >>confdefs.h <<\_ACEOF
2757 #define __SUN__ 1
2758 _ACEOF
2759
2760     cat >>confdefs.h <<\_ACEOF
2761 #define __SUNOS__ 1
2762 _ACEOF
2763
2764     cat >>confdefs.h <<\_ACEOF
2765 #define __BSD__ 1
2766 _ACEOF
2767
2768     DEFAULT_DEFAULT_wxUSE_MOTIF=1
2769   ;;
2770   *-*-freebsd*)
2771     USE_BSD=1
2772     USE_FREEBSD=1
2773     cat >>confdefs.h <<\_ACEOF
2774 #define __FREEBSD__ 1
2775 _ACEOF
2776
2777     cat >>confdefs.h <<\_ACEOF
2778 #define __BSD__ 1
2779 _ACEOF
2780
2781     DEFAULT_DEFAULT_wxUSE_GTK=1
2782   ;;
2783   *-*-openbsd*|*-*-mirbsd*)
2784     USE_BSD=1
2785     USE_OPENBSD=1
2786     cat >>confdefs.h <<\_ACEOF
2787 #define __OPENBSD__ 1
2788 _ACEOF
2789
2790     cat >>confdefs.h <<\_ACEOF
2791 #define __BSD__ 1
2792 _ACEOF
2793
2794     DEFAULT_DEFAULT_wxUSE_GTK=1
2795   ;;
2796   *-*-netbsd*)
2797     USE_BSD=1
2798     USE_NETBSD=1
2799     cat >>confdefs.h <<\_ACEOF
2800 #define __NETBSD__ 1
2801 _ACEOF
2802
2803     cat >>confdefs.h <<\_ACEOF
2804 #define __BSD__ 1
2805 _ACEOF
2806
2807     DEFAULT_DEFAULT_wxUSE_GTK=1
2808     NEEDS_D_REENTRANT_FOR_R_FUNCS=1
2809
2810             CPPFLAGS="-D_NETBSD_SOURCE -D_LIBC $CPPFLAGS"
2811   ;;
2812   *-*-osf* )
2813     USE_ALPHA=1
2814     USE_OSF=1
2815     cat >>confdefs.h <<\_ACEOF
2816 #define __ALPHA__ 1
2817 _ACEOF
2818
2819     cat >>confdefs.h <<\_ACEOF
2820 #define __OSF__ 1
2821 _ACEOF
2822
2823     DEFAULT_DEFAULT_wxUSE_MOTIF=1
2824     NEEDS_D_REENTRANT_FOR_R_FUNCS=1
2825   ;;
2826   *-*-dgux5* )
2827     USE_ALPHA=1
2828     USE_SVR4=1
2829     cat >>confdefs.h <<\_ACEOF
2830 #define __ALPHA__ 1
2831 _ACEOF
2832
2833     cat >>confdefs.h <<\_ACEOF
2834 #define __SVR4__ 1
2835 _ACEOF
2836
2837     DEFAULT_DEFAULT_wxUSE_MOTIF=1
2838   ;;
2839   *-*-sysv5* )
2840     USE_SYSV=1
2841     USE_SVR4=1
2842     cat >>confdefs.h <<\_ACEOF
2843 #define __SYSV__ 1
2844 _ACEOF
2845
2846     cat >>confdefs.h <<\_ACEOF
2847 #define __SVR4__ 1
2848 _ACEOF
2849
2850     DEFAULT_DEFAULT_wxUSE_MOTIF=1
2851   ;;
2852   *-*-aix* )
2853     USE_AIX=1
2854     USE_SYSV=1
2855     USE_SVR4=1
2856     cat >>confdefs.h <<\_ACEOF
2857 #define __AIX__ 1
2858 _ACEOF
2859
2860     cat >>confdefs.h <<\_ACEOF
2861 #define __SYSV__ 1
2862 _ACEOF
2863
2864     cat >>confdefs.h <<\_ACEOF
2865 #define __SVR4__ 1
2866 _ACEOF
2867
2868     DEFAULT_DEFAULT_wxUSE_MOTIF=1
2869   ;;
2870
2871   *-*-*UnixWare*)
2872     USE_SYSV=1
2873     USE_SVR4=1
2874     USE_UNIXWARE=1
2875     cat >>confdefs.h <<\_ACEOF
2876 #define __UNIXWARE__ 1
2877 _ACEOF
2878
2879   ;;
2880
2881   *-*-cygwin* | *-*-mingw32* )
2882                 PROGRAM_EXT=".exe"
2883     DEFAULT_DEFAULT_wxUSE_MSW=1
2884   ;;
2885
2886   *-pc-msdosdjgpp )
2887     USE_UNIX=0
2888     USE_DOS=1
2889     cat >>confdefs.h <<\_ACEOF
2890 #define __DOS__ 1
2891 _ACEOF
2892
2893     PROGRAM_EXT=".exe"
2894     DEFAULT_DEFAULT_wxUSE_MGL=1
2895   ;;
2896
2897   *-pc-os2_emx | *-pc-os2-emx )
2898     cat >>confdefs.h <<\_ACEOF
2899 #define __EMX__ 1
2900 _ACEOF
2901
2902     USE_OS2=1
2903     cat >>confdefs.h <<\_ACEOF
2904 #define __OS2__ 1
2905 _ACEOF
2906
2907     PROGRAM_EXT=".exe"
2908     DEFAULT_DEFAULT_wxUSE_PM=1
2909         CXX=gcc
2910     LDFLAGS="$LDFLAGS -Zcrtdll"
2911                         ac_executable_extensions=".exe"
2912     export ac_executable_extensions
2913             ac_save_IFS="$IFS"
2914     IFS='\\'
2915     ac_TEMP_PATH=
2916     for ac_dir in $PATH; do
2917       IFS=$ac_save_IFS
2918       if test -z "$ac_TEMP_PATH"; then
2919         ac_TEMP_PATH="$ac_dir"
2920       else
2921         ac_TEMP_PATH="$ac_TEMP_PATH/$ac_dir"
2922       fi
2923     done
2924     export PATH="$ac_TEMP_PATH"
2925     unset ac_TEMP_PATH
2926     DEFAULT_STD_FLAG=no
2927   ;;
2928
2929   arm-apple-darwin*)
2930         USE_BSD=1
2931     USE_DARWIN=1
2932     cat >>confdefs.h <<\_ACEOF
2933 #define __BSD__ 1
2934 _ACEOF
2935
2936     cat >>confdefs.h <<\_ACEOF
2937 #define __DARWIN__ 1
2938 _ACEOF
2939
2940     DEFAULT_DEFAULT_wxUSE_OSX_IPHONE=1
2941   ;;
2942
2943   *-*-darwin* )
2944         USE_BSD=1
2945     USE_DARWIN=1
2946     cat >>confdefs.h <<\_ACEOF
2947 #define __BSD__ 1
2948 _ACEOF
2949
2950     cat >>confdefs.h <<\_ACEOF
2951 #define __DARWIN__ 1
2952 _ACEOF
2953
2954     cat >>confdefs.h <<\_ACEOF
2955 #define TARGET_CARBON 1
2956 _ACEOF
2957
2958     DEFAULT_DEFAULT_wxUSE_OSX_CARBON=1
2959   ;;
2960
2961   *-*-beos* )
2962         USE_BEOS=1
2963     cat >>confdefs.h <<\_ACEOF
2964 #define __BEOS__ 1
2965 _ACEOF
2966
2967   ;;
2968
2969   *)
2970     { echo "$as_me:$LINENO: WARNING: *** System type ${host} is unknown, assuming generic Unix and continuing nevertheless." >&5
2971 echo "$as_me: WARNING: *** System type ${host} is unknown, assuming generic Unix and continuing nevertheless." >&2;}
2972     { echo "$as_me:$LINENO: WARNING: *** Please report the build results to wx-dev@lists.wxwidgets.org." >&5
2973 echo "$as_me: WARNING: *** Please report the build results to wx-dev@lists.wxwidgets.org." >&2;}
2974
2975     DEFAULT_DEFAULT_wxUSE_X11=1
2976     DEFAULT_wxUSE_SHARED=no
2977 esac
2978
2979
2980
2981 DEFAULT_wxUSE_ALL_FEATURES=yes
2982
2983 DEFAULT_wxUSE_STD_CONTAINERS=no
2984 DEFAULT_wxUSE_STD_IOSTREAM=$DEFAULT_STD_FLAG
2985 DEFAULT_wxUSE_STD_STRING=$DEFAULT_STD_FLAG
2986
2987 DEFAULT_wxUSE_DMALLOC=no
2988 DEFAULT_wxUSE_LIBGNOMEVFS=no
2989 DEFAULT_wxUSE_LIBHILDON=no
2990 DEFAULT_wxUSE_LIBHILDON2=no
2991 DEFAULT_wxUSE_LIBMSPACK=no
2992 DEFAULT_wxUSE_LIBSDL=no
2993
2994 DEFAULT_wxUSE_ACCESSIBILITY=no
2995 DEFAULT_wxUSE_IPV6=no
2996 DEFAULT_wxUSE_GSTREAMER8=no
2997
2998 DEFAULT_wxUSE_ARTPROVIDER_TANGO=auto
2999 DEFAULT_wxUSE_UNICODE_UTF8=auto
3000 DEFAULT_wxUSE_OPENGL=auto
3001 DEFAULT_wxUSE_MEDIACTRL=auto
3002 DEFAULT_wxUSE_COMPILER_TLS=auto
3003
3004 DEFAULT_wxUSE_UNICODE_UTF8_LOCALE=no
3005
3006 DEFAULT_wxUSE_UNIVERSAL_BINARY=no
3007 DEFAULT_wxUSE_MAC_ARCH=no
3008
3009 DEFAULT_wxUSE_OFFICIAL_BUILD=no
3010
3011 DEFAULT_wxUSE_GTK2=yes
3012
3013 DEFAULT_wxUSE_OBJC_UNIQUIFYING=no
3014
3015
3016
3017
3018
3019           enablestring=disable
3020           defaultval=
3021           if test -z "$defaultval"; then
3022               if test x"$enablestring" = xdisable; then
3023                   defaultval=yes
3024               else
3025                   defaultval=no
3026               fi
3027           fi
3028
3029           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gui" >&5
3030 echo $ECHO_N "checking for --${enablestring:-enable}-gui... $ECHO_C" >&6; }
3031           # Check whether --enable-gui was given.
3032 if test "${enable_gui+set}" = set; then
3033   enableval=$enable_gui;
3034                           if test "$enableval" = yes; then
3035                             wx_cv_use_gui='wxUSE_GUI=yes'
3036                           else
3037                             wx_cv_use_gui='wxUSE_GUI=no'
3038                           fi
3039
3040 else
3041
3042                           wx_cv_use_gui='wxUSE_GUI=${'DEFAULT_wxUSE_GUI":-$defaultval}"
3043
3044 fi
3045
3046
3047           eval "$wx_cv_use_gui"
3048
3049           if test x"$enablestring" = xdisable; then
3050             if test $wxUSE_GUI = no; then
3051               result=yes
3052             else
3053               result=no
3054             fi
3055           else
3056             result=$wxUSE_GUI
3057           fi
3058
3059           { echo "$as_me:$LINENO: result: $result" >&5
3060 echo "${ECHO_T}$result" >&6; }
3061
3062
3063           enablestring=
3064           defaultval=
3065           if test -z "$defaultval"; then
3066               if test x"$enablestring" = xdisable; then
3067                   defaultval=yes
3068               else
3069                   defaultval=no
3070               fi
3071           fi
3072
3073           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-monolithic" >&5
3074 echo $ECHO_N "checking for --${enablestring:-enable}-monolithic... $ECHO_C" >&6; }
3075           # Check whether --enable-monolithic was given.
3076 if test "${enable_monolithic+set}" = set; then
3077   enableval=$enable_monolithic;
3078                           if test "$enableval" = yes; then
3079                             wx_cv_use_monolithic='wxUSE_MONOLITHIC=yes'
3080                           else
3081                             wx_cv_use_monolithic='wxUSE_MONOLITHIC=no'
3082                           fi
3083
3084 else
3085
3086                           wx_cv_use_monolithic='wxUSE_MONOLITHIC=${'DEFAULT_wxUSE_MONOLITHIC":-$defaultval}"
3087
3088 fi
3089
3090
3091           eval "$wx_cv_use_monolithic"
3092
3093           if test x"$enablestring" = xdisable; then
3094             if test $wxUSE_MONOLITHIC = no; then
3095               result=yes
3096             else
3097               result=no
3098             fi
3099           else
3100             result=$wxUSE_MONOLITHIC
3101           fi
3102
3103           { echo "$as_me:$LINENO: result: $result" >&5
3104 echo "${ECHO_T}$result" >&6; }
3105
3106
3107           enablestring=
3108           defaultval=
3109           if test -z "$defaultval"; then
3110               if test x"$enablestring" = xdisable; then
3111                   defaultval=yes
3112               else
3113                   defaultval=no
3114               fi
3115           fi
3116
3117           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-plugins" >&5
3118 echo $ECHO_N "checking for --${enablestring:-enable}-plugins... $ECHO_C" >&6; }
3119           # Check whether --enable-plugins was given.
3120 if test "${enable_plugins+set}" = set; then
3121   enableval=$enable_plugins;
3122                           if test "$enableval" = yes; then
3123                             wx_cv_use_plugins='wxUSE_PLUGINS=yes'
3124                           else
3125                             wx_cv_use_plugins='wxUSE_PLUGINS=no'
3126                           fi
3127
3128 else
3129
3130                           wx_cv_use_plugins='wxUSE_PLUGINS=${'DEFAULT_wxUSE_PLUGINS":-$defaultval}"
3131
3132 fi
3133
3134
3135           eval "$wx_cv_use_plugins"
3136
3137           if test x"$enablestring" = xdisable; then
3138             if test $wxUSE_PLUGINS = no; then
3139               result=yes
3140             else
3141               result=no
3142             fi
3143           else
3144             result=$wxUSE_PLUGINS
3145           fi
3146
3147           { echo "$as_me:$LINENO: result: $result" >&5
3148 echo "${ECHO_T}$result" >&6; }
3149
3150
3151           withstring=without
3152           defaultval=$wxUSE_ALL_FEATURES
3153           if test -z "$defaultval"; then
3154               if test x"$withstring" = xwithout; then
3155                   defaultval=yes
3156               else
3157                   defaultval=no
3158               fi
3159           fi
3160           { echo "$as_me:$LINENO: checking for --${withstring:-with}-subdirs" >&5
3161 echo $ECHO_N "checking for --${withstring:-with}-subdirs... $ECHO_C" >&6; }
3162
3163 # Check whether --with-subdirs was given.
3164 if test "${with_subdirs+set}" = set; then
3165   withval=$with_subdirs;
3166                         if test "$withval" = yes; then
3167                           wx_cv_use_subdirs='wxWITH_SUBDIRS=yes'
3168                         else
3169                           wx_cv_use_subdirs='wxWITH_SUBDIRS=no'
3170                         fi
3171
3172 else
3173
3174                         wx_cv_use_subdirs='wxWITH_SUBDIRS=${'DEFAULT_wxWITH_SUBDIRS":-$defaultval}"
3175
3176 fi
3177
3178
3179           eval "$wx_cv_use_subdirs"
3180
3181           if test x"$withstring" = xwithout; then
3182             if test $wxWITH_SUBDIRS = yes; then
3183               result=no
3184             else
3185               result=yes
3186             fi
3187           else
3188             result=$wxWITH_SUBDIRS
3189           fi
3190
3191           { echo "$as_me:$LINENO: result: $result" >&5
3192 echo "${ECHO_T}$result" >&6; }
3193
3194
3195 # Check whether --with-flavour was given.
3196 if test "${with_flavour+set}" = set; then
3197   withval=$with_flavour; WX_FLAVOUR="$withval"
3198 fi
3199
3200
3201           enablestring=
3202           defaultval=
3203           if test -z "$defaultval"; then
3204               if test x"$enablestring" = xdisable; then
3205                   defaultval=yes
3206               else
3207                   defaultval=no
3208               fi
3209           fi
3210
3211           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-official_build" >&5
3212 echo $ECHO_N "checking for --${enablestring:-enable}-official_build... $ECHO_C" >&6; }
3213           # Check whether --enable-official_build was given.
3214 if test "${enable_official_build+set}" = set; then
3215   enableval=$enable_official_build;
3216                           if test "$enableval" = yes; then
3217                             wx_cv_use_official_build='wxUSE_OFFICIAL_BUILD=yes'
3218                           else
3219                             wx_cv_use_official_build='wxUSE_OFFICIAL_BUILD=no'
3220                           fi
3221
3222 else
3223
3224                           wx_cv_use_official_build='wxUSE_OFFICIAL_BUILD=${'DEFAULT_wxUSE_OFFICIAL_BUILD":-$defaultval}"
3225
3226 fi
3227
3228
3229           eval "$wx_cv_use_official_build"
3230
3231           if test x"$enablestring" = xdisable; then
3232             if test $wxUSE_OFFICIAL_BUILD = no; then
3233               result=yes
3234             else
3235               result=no
3236             fi
3237           else
3238             result=$wxUSE_OFFICIAL_BUILD
3239           fi
3240
3241           { echo "$as_me:$LINENO: result: $result" >&5
3242 echo "${ECHO_T}$result" >&6; }
3243
3244 # Check whether --enable-vendor was given.
3245 if test "${enable_vendor+set}" = set; then
3246   enableval=$enable_vendor; VENDOR="$enableval"
3247 fi
3248
3249 if test "x$VENDOR" = "x"; then
3250     VENDOR="custom"
3251 fi
3252
3253
3254           enablestring=disable
3255           defaultval=
3256           if test -z "$defaultval"; then
3257               if test x"$enablestring" = xdisable; then
3258                   defaultval=yes
3259               else
3260                   defaultval=no
3261               fi
3262           fi
3263
3264           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-all-features" >&5
3265 echo $ECHO_N "checking for --${enablestring:-enable}-all-features... $ECHO_C" >&6; }
3266           # Check whether --enable-all-features was given.
3267 if test "${enable_all_features+set}" = set; then
3268   enableval=$enable_all_features;
3269                           if test "$enableval" = yes; then
3270                             wx_cv_use_all_features='wxUSE_ALL_FEATURES=yes'
3271                           else
3272                             wx_cv_use_all_features='wxUSE_ALL_FEATURES=no'
3273                           fi
3274
3275 else
3276
3277                           wx_cv_use_all_features='wxUSE_ALL_FEATURES=${'DEFAULT_wxUSE_ALL_FEATURES":-$defaultval}"
3278
3279 fi
3280
3281
3282           eval "$wx_cv_use_all_features"
3283
3284           if test x"$enablestring" = xdisable; then
3285             if test $wxUSE_ALL_FEATURES = no; then
3286               result=yes
3287             else
3288               result=no
3289             fi
3290           else
3291             result=$wxUSE_ALL_FEATURES
3292           fi
3293
3294           { echo "$as_me:$LINENO: result: $result" >&5
3295 echo "${ECHO_T}$result" >&6; }
3296
3297
3298 if test "$wxUSE_ALL_FEATURES" = "no"; then
3299                     DEFAULT_wxUSE_ARTPROVIDER_TANGO=no
3300     DEFAULT_wxUSE_MEDIACTRL=no
3301 fi
3302
3303
3304 if test "$wxUSE_GUI" = "yes"; then
3305
3306
3307           enablestring=
3308           defaultval=
3309           if test -z "$defaultval"; then
3310               if test x"$enablestring" = xdisable; then
3311                   defaultval=yes
3312               else
3313                   defaultval=no
3314               fi
3315           fi
3316
3317           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal" >&5
3318 echo $ECHO_N "checking for --${enablestring:-enable}-universal... $ECHO_C" >&6; }
3319           # Check whether --enable-universal was given.
3320 if test "${enable_universal+set}" = set; then
3321   enableval=$enable_universal;
3322                           if test "$enableval" = yes; then
3323                             wx_cv_use_universal='wxUSE_UNIVERSAL=yes'
3324                           else
3325                             wx_cv_use_universal='wxUSE_UNIVERSAL=no'
3326                           fi
3327
3328 else
3329
3330                           wx_cv_use_universal='wxUSE_UNIVERSAL=${'DEFAULT_wxUSE_UNIVERSAL":-$defaultval}"
3331
3332 fi
3333
3334
3335           eval "$wx_cv_use_universal"
3336
3337           if test x"$enablestring" = xdisable; then
3338             if test $wxUSE_UNIVERSAL = no; then
3339               result=yes
3340             else
3341               result=no
3342             fi
3343           else
3344             result=$wxUSE_UNIVERSAL
3345           fi
3346
3347           { echo "$as_me:$LINENO: result: $result" >&5
3348 echo "${ECHO_T}$result" >&6; }
3349
3350 if test "$wxUSE_UNIVERSAL" = "yes"; then
3351
3352 # Check whether --with-themes was given.
3353 if test "${with_themes+set}" = set; then
3354   withval=$with_themes; wxUNIV_THEMES="$withval"
3355 fi
3356
3357 fi
3358
3359
3360 # Check whether --with-gtk was given.
3361 if test "${with_gtk+set}" = set; then
3362   withval=$with_gtk; wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
3363 fi
3364
3365
3366 # Check whether --with-motif was given.
3367 if test "${with_motif+set}" = set; then
3368   withval=$with_motif; wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
3369 fi
3370
3371
3372 # Check whether --with-osx_carbon was given.
3373 if test "${with_osx_carbon+set}" = set; then
3374   withval=$with_osx_carbon; wxUSE_OSX_CARBON="$withval" CACHE_OSX_CARBON=1 TOOLKIT_GIVEN=1
3375 fi
3376
3377
3378 # Check whether --with-osx_cocoa was given.
3379 if test "${with_osx_cocoa+set}" = set; then
3380   withval=$with_osx_cocoa; wxUSE_OSX_COCOA="$withval" CACHE_OSX_COCOA=1 TOOLKIT_GIVEN=1
3381 fi
3382
3383
3384 # Check whether --with-osx_iphone was given.
3385 if test "${with_osx_iphone+set}" = set; then
3386   withval=$with_osx_iphone; wxUSE_OSX_IPHONE="$withval" CACHE_OSX_IPHONE=1 TOOLKIT_GIVEN=1
3387 fi
3388
3389
3390 # Check whether --with-osx was given.
3391 if test "${with_osx+set}" = set; then
3392   withval=$with_osx; wxUSE_OSX_CARBON="$withval" CACHE_OSX_CARBON=1 TOOLKIT_GIVEN=1
3393 fi
3394
3395
3396 # Check whether --with-carbon was given.
3397 if test "${with_carbon+set}" = set; then
3398   withval=$with_carbon; wxUSE_OSX_CARBON="$withval" CACHE_OSX_CARBON=1 TOOLKIT_GIVEN=1
3399 fi
3400
3401
3402 # Check whether --with-cocoa was given.
3403 if test "${with_cocoa+set}" = set; then
3404   withval=$with_cocoa; wxUSE_OSX_COCOA="$withval" CACHE_OSX_COCOA=1 TOOLKIT_GIVEN=1
3405 fi
3406
3407
3408 # Check whether --with-iphone was given.
3409 if test "${with_iphone+set}" = set; then
3410   withval=$with_iphone; wxUSE_OSX_IPHONE="$withval" CACHE_OSX_IPHONE=1 TOOLKIT_GIVEN=1
3411 fi
3412
3413
3414 # Check whether --with-mac was given.
3415 if test "${with_mac+set}" = set; then
3416   withval=$with_mac; wxUSE_OSX_CARBON="$withval" CACHE_OSX_CARBON=1 TOOLKIT_GIVEN=1
3417 fi
3418
3419
3420 # Check whether --with-old_cocoa was given.
3421 if test "${with_old_cocoa+set}" = set; then
3422   withval=$with_old_cocoa; wxUSE_OLD_COCOA="$withval" CACHE_OLD_COCOA=1 TOOLKIT_GIVEN=1
3423 fi
3424
3425
3426 # Check whether --with-wine was given.
3427 if test "${with_wine+set}" = set; then
3428   withval=$with_wine; wxUSE_WINE="$withval" CACHE_WINE=1
3429 fi
3430
3431
3432 # Check whether --with-msw was given.
3433 if test "${with_msw+set}" = set; then
3434   withval=$with_msw; wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1
3435 fi
3436
3437
3438 # Check whether --with-pm was given.
3439 if test "${with_pm+set}" = set; then
3440   withval=$with_pm; wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
3441 fi
3442
3443
3444 # Check whether --with-mgl was given.
3445 if test "${with_mgl+set}" = set; then
3446   withval=$with_mgl; wxUSE_MGL="$withval" wxUSE_UNIVERSAL="yes" CACHE_MGL=1 TOOLKIT_GIVEN=1
3447 fi
3448
3449
3450 # Check whether --with-directfb was given.
3451 if test "${with_directfb+set}" = set; then
3452   withval=$with_directfb; wxUSE_DFB="$withval" wxUSE_UNIVERSAL="yes" CACHE_DFB=1 TOOLKIT_GIVEN=1
3453 fi
3454
3455
3456 # Check whether --with-microwin was given.
3457 if test "${with_microwin+set}" = set; then
3458   withval=$with_microwin; wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1
3459 fi
3460
3461
3462 # Check whether --with-x11 was given.
3463 if test "${with_x11+set}" = set; then
3464   withval=$with_x11; wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1
3465 fi
3466
3467
3468           enablestring=
3469           defaultval=
3470           if test -z "$defaultval"; then
3471               if test x"$enablestring" = xdisable; then
3472                   defaultval=yes
3473               else
3474                   defaultval=no
3475               fi
3476           fi
3477
3478           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-nanox" >&5
3479 echo $ECHO_N "checking for --${enablestring:-enable}-nanox... $ECHO_C" >&6; }
3480           # Check whether --enable-nanox was given.
3481 if test "${enable_nanox+set}" = set; then
3482   enableval=$enable_nanox;
3483                           if test "$enableval" = yes; then
3484                             wx_cv_use_nanox='wxUSE_NANOX=yes'
3485                           else
3486                             wx_cv_use_nanox='wxUSE_NANOX=no'
3487                           fi
3488
3489 else
3490
3491                           wx_cv_use_nanox='wxUSE_NANOX=${'DEFAULT_wxUSE_NANOX":-$defaultval}"
3492
3493 fi
3494
3495
3496           eval "$wx_cv_use_nanox"
3497
3498           if test x"$enablestring" = xdisable; then
3499             if test $wxUSE_NANOX = no; then
3500               result=yes
3501             else
3502               result=no
3503             fi
3504           else
3505             result=$wxUSE_NANOX
3506           fi
3507
3508           { echo "$as_me:$LINENO: result: $result" >&5
3509 echo "${ECHO_T}$result" >&6; }
3510
3511
3512 # Check whether --enable-gtk2 was given.
3513 if test "${enable_gtk2+set}" = set; then
3514   enableval=$enable_gtk2; wxUSE_GTK2="$enableval"
3515 fi
3516
3517
3518           enablestring=
3519           defaultval=
3520           if test -z "$defaultval"; then
3521               if test x"$enablestring" = xdisable; then
3522                   defaultval=yes
3523               else
3524                   defaultval=no
3525               fi
3526           fi
3527
3528           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gpe" >&5
3529 echo $ECHO_N "checking for --${enablestring:-enable}-gpe... $ECHO_C" >&6; }
3530           # Check whether --enable-gpe was given.
3531 if test "${enable_gpe+set}" = set; then
3532   enableval=$enable_gpe;
3533                           if test "$enableval" = yes; then
3534                             wx_cv_use_gpe='wxUSE_GPE=yes'
3535                           else
3536                             wx_cv_use_gpe='wxUSE_GPE=no'
3537                           fi
3538
3539 else
3540
3541                           wx_cv_use_gpe='wxUSE_GPE=${'DEFAULT_wxUSE_GPE":-$defaultval}"
3542
3543 fi
3544
3545
3546           eval "$wx_cv_use_gpe"
3547
3548           if test x"$enablestring" = xdisable; then
3549             if test $wxUSE_GPE = no; then
3550               result=yes
3551             else
3552               result=no
3553             fi
3554           else
3555             result=$wxUSE_GPE
3556           fi
3557
3558           { echo "$as_me:$LINENO: result: $result" >&5
3559 echo "${ECHO_T}$result" >&6; }
3560
3561
3562
3563 { echo "$as_me:$LINENO: checking for toolkit" >&5
3564 echo $ECHO_N "checking for toolkit... $ECHO_C" >&6; }
3565
3566
3567
3568 # In Wine, we need to default to MSW, not GTK or MOTIF
3569 if test "$wxUSE_WINE" = "yes"; then
3570     DEFAULT_DEFAULT_wxUSE_GTK=0
3571     DEFAULT_DEFAULT_wxUSE_MOTIF=0
3572     DEFAULT_DEFAULT_wxUSE_MSW=1
3573     wxUSE_SHARED=no
3574     CC=${CC:-winegcc}
3575     CXX=${CXX:-wineg++}
3576 fi
3577
3578
3579 if test "$wxUSE_GUI" = "yes"; then
3580
3581     if test "$USE_BEOS" = 1; then
3582         { { echo "$as_me:$LINENO: error: BeOS GUI is not supported yet, use --disable-gui" >&5
3583 echo "$as_me: error: BeOS GUI is not supported yet, use --disable-gui" >&2;}
3584    { (exit 1); exit 1; }; }
3585     fi
3586
3587     if test "$TOOLKIT_GIVEN" = 1; then
3588             for toolkit in $ALL_TOOLKITS; do
3589         var=wxUSE_$toolkit
3590         eval "value=\$${var}"
3591         if test "x$value" = "xno"; then
3592           eval "$var=0"
3593         elif test "x$value" != "x"; then
3594           eval "$var=1"
3595         fi
3596
3597         if test "x$value" != "x" -a "x$value" != "xyes" -a "x$value" != "xno"; then
3598           eval "wx${toolkit}_VERSION=$value"
3599         fi
3600       done
3601     else
3602             for toolkit in $ALL_TOOLKITS; do
3603         var=DEFAULT_DEFAULT_wxUSE_$toolkit
3604         eval "wxUSE_$toolkit=\$${var}"
3605       done
3606     fi
3607
3608             NUM_TOOLKITS=`expr ${wxUSE_OLD_COCOA:-0} + ${wxUSE_GTK:-0} + ${wxUSE_OSX_CARBON:-0} \
3609                   + ${wxUSE_OSX_COCOA:-0} + ${wxUSE_OSX_IPHONE:-0} + ${wxUSE_MGL:-0} + ${wxUSE_DFB:-0} \
3610                   + ${wxUSE_MICROWIN:-0} + ${wxUSE_MOTIF:-0} + ${wxUSE_MSW:-0} + ${wxUSE_X11:-0}`
3611
3612         case "${host}" in
3613       *-pc-os2_emx | *-pc-os2-emx )
3614         NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
3615     esac
3616
3617     case "$NUM_TOOLKITS" in
3618       1)
3619       ;;
3620       0)
3621         { { echo "$as_me:$LINENO: error: Please specify a toolkit -- cannot determine the default for ${host}" >&5
3622 echo "$as_me: error: Please specify a toolkit -- cannot determine the default for ${host}" >&2;}
3623    { (exit 1); exit 1; }; }
3624       ;;
3625       *)
3626         { { echo "$as_me:$LINENO: error: Please specify at most one toolkit" >&5
3627 echo "$as_me: error: Please specify at most one toolkit" >&2;}
3628    { (exit 1); exit 1; }; }
3629     esac
3630
3631     # to be removed when --disable-gtk2 isn't needed
3632     if test "x$wxUSE_GTK2" = "xyes"; then
3633         wxGTK_VERSION=2
3634         wxUSE_GTK1=0
3635     elif test "x$wxUSE_GTK2" = "xno"; then
3636         wxGTK_VERSION=1
3637         wxUSE_GTK1=1
3638     fi
3639
3640     for toolkit in $ALL_TOOLKITS; do
3641         var=wxUSE_$toolkit
3642         eval "value=\$${var}"
3643         if test "$value" = 1; then
3644           toolkit_echo=`echo $toolkit | tr '[A-Z]' '[a-z]'`
3645           { echo "$as_me:$LINENO: result: $toolkit_echo" >&5
3646 echo "${ECHO_T}$toolkit_echo" >&6; }
3647         fi
3648     done
3649 else
3650     if test "x$host_alias" != "x"; then
3651         { echo "$as_me:$LINENO: result: base ($host_alias hosted) only" >&5
3652 echo "${ECHO_T}base ($host_alias hosted) only" >&6; }
3653     else
3654         { echo "$as_me:$LINENO: result: base only" >&5
3655 echo "${ECHO_T}base only" >&6; }
3656     fi
3657 fi
3658
3659 wxUSE_MAC=0
3660 if test "$wxUSE_OSX_CARBON" = 1 \
3661        -o "$wxUSE_OSX_COCOA" = 1 \
3662        -o "$wxUSE_OSX_IPHONE" = 1; then
3663     wxUSE_MAC=1
3664 fi
3665
3666
3667
3668           { echo "$as_me:$LINENO: checking for --with-libpng" >&5
3669 echo $ECHO_N "checking for --with-libpng... $ECHO_C" >&6; }
3670
3671 # Check whether --with-libpng was given.
3672 if test "${with_libpng+set}" = set; then
3673   withval=$with_libpng;
3674                         if test "$withval" = yes; then
3675                           wx_cv_use_libpng='wxUSE_LIBPNG=yes'
3676                         elif test "$withval" = no; then
3677                           wx_cv_use_libpng='wxUSE_LIBPNG=no'
3678                         elif test "$withval" = sys; then
3679                           wx_cv_use_libpng='wxUSE_LIBPNG=sys'
3680                         elif test "$withval" = builtin; then
3681                           wx_cv_use_libpng='wxUSE_LIBPNG=builtin'
3682                         else
3683                           { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
3684 echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
3685    { (exit 1); exit 1; }; }
3686                         fi
3687
3688 else
3689
3690                         wx_cv_use_libpng='wxUSE_LIBPNG=${'DEFAULT_wxUSE_LIBPNG":-$wxUSE_ALL_FEATURES}"
3691
3692 fi
3693
3694
3695           eval "$wx_cv_use_libpng"
3696
3697           if test "$wxUSE_LIBPNG" = yes; then
3698             { echo "$as_me:$LINENO: result: yes" >&5
3699 echo "${ECHO_T}yes" >&6; }
3700           elif test "$wxUSE_LIBPNG" = no; then
3701             { echo "$as_me:$LINENO: result: no" >&5
3702 echo "${ECHO_T}no" >&6; }
3703           elif test "$wxUSE_LIBPNG" = sys; then
3704             { echo "$as_me:$LINENO: result: system version" >&5
3705 echo "${ECHO_T}system version" >&6; }
3706           elif test "$wxUSE_LIBPNG" = builtin; then
3707             { echo "$as_me:$LINENO: result: builtin version" >&5
3708 echo "${ECHO_T}builtin version" >&6; }
3709           else
3710             { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
3711 echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
3712    { (exit 1); exit 1; }; }
3713           fi
3714
3715
3716           { echo "$as_me:$LINENO: checking for --with-libjpeg" >&5
3717 echo $ECHO_N "checking for --with-libjpeg... $ECHO_C" >&6; }
3718
3719 # Check whether --with-libjpeg was given.
3720 if test "${with_libjpeg+set}" = set; then
3721   withval=$with_libjpeg;
3722                         if test "$withval" = yes; then
3723                           wx_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
3724                         elif test "$withval" = no; then
3725                           wx_cv_use_libjpeg='wxUSE_LIBJPEG=no'
3726                         elif test "$withval" = sys; then
3727                           wx_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
3728                         elif test "$withval" = builtin; then
3729                           wx_cv_use_libjpeg='wxUSE_LIBJPEG=builtin'
3730                         else
3731                           { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
3732 echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
3733    { (exit 1); exit 1; }; }
3734                         fi
3735
3736 else
3737
3738                         wx_cv_use_libjpeg='wxUSE_LIBJPEG=${'DEFAULT_wxUSE_LIBJPEG":-$wxUSE_ALL_FEATURES}"
3739
3740 fi
3741
3742
3743           eval "$wx_cv_use_libjpeg"
3744
3745           if test "$wxUSE_LIBJPEG" = yes; then
3746             { echo "$as_me:$LINENO: result: yes" >&5
3747 echo "${ECHO_T}yes" >&6; }
3748           elif test "$wxUSE_LIBJPEG" = no; then
3749             { echo "$as_me:$LINENO: result: no" >&5
3750 echo "${ECHO_T}no" >&6; }
3751           elif test "$wxUSE_LIBJPEG" = sys; then
3752             { echo "$as_me:$LINENO: result: system version" >&5
3753 echo "${ECHO_T}system version" >&6; }
3754           elif test "$wxUSE_LIBJPEG" = builtin; then
3755             { echo "$as_me:$LINENO: result: builtin version" >&5
3756 echo "${ECHO_T}builtin version" >&6; }
3757           else
3758             { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
3759 echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
3760    { (exit 1); exit 1; }; }
3761           fi
3762
3763
3764           { echo "$as_me:$LINENO: checking for --with-libtiff" >&5
3765 echo $ECHO_N "checking for --with-libtiff... $ECHO_C" >&6; }
3766
3767 # Check whether --with-libtiff was given.
3768 if test "${with_libtiff+set}" = set; then
3769   withval=$with_libtiff;
3770                         if test "$withval" = yes; then
3771                           wx_cv_use_libtiff='wxUSE_LIBTIFF=yes'
3772                         elif test "$withval" = no; then
3773                           wx_cv_use_libtiff='wxUSE_LIBTIFF=no'
3774                         elif test "$withval" = sys; then
3775                           wx_cv_use_libtiff='wxUSE_LIBTIFF=sys'
3776                         elif test "$withval" = builtin; then
3777                           wx_cv_use_libtiff='wxUSE_LIBTIFF=builtin'
3778                         else
3779                           { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
3780 echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
3781    { (exit 1); exit 1; }; }
3782                         fi
3783
3784 else
3785
3786                         wx_cv_use_libtiff='wxUSE_LIBTIFF=${'DEFAULT_wxUSE_LIBTIFF":-$wxUSE_ALL_FEATURES}"
3787
3788 fi
3789
3790
3791           eval "$wx_cv_use_libtiff"
3792
3793           if test "$wxUSE_LIBTIFF" = yes; then
3794             { echo "$as_me:$LINENO: result: yes" >&5
3795 echo "${ECHO_T}yes" >&6; }
3796           elif test "$wxUSE_LIBTIFF" = no; then
3797             { echo "$as_me:$LINENO: result: no" >&5
3798 echo "${ECHO_T}no" >&6; }
3799           elif test "$wxUSE_LIBTIFF" = sys; then
3800             { echo "$as_me:$LINENO: result: system version" >&5
3801 echo "${ECHO_T}system version" >&6; }
3802           elif test "$wxUSE_LIBTIFF" = builtin; then
3803             { echo "$as_me:$LINENO: result: builtin version" >&5
3804 echo "${ECHO_T}builtin version" >&6; }
3805           else
3806             { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
3807 echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
3808    { (exit 1); exit 1; }; }
3809           fi
3810
3811
3812           { echo "$as_me:$LINENO: checking for --with-libxpm" >&5
3813 echo $ECHO_N "checking for --with-libxpm... $ECHO_C" >&6; }
3814
3815 # Check whether --with-libxpm was given.
3816 if test "${with_libxpm+set}" = set; then
3817   withval=$with_libxpm;
3818                         if test "$withval" = yes; then
3819                           wx_cv_use_libxpm='wxUSE_LIBXPM=yes'
3820                         elif test "$withval" = no; then
3821                           wx_cv_use_libxpm='wxUSE_LIBXPM=no'
3822                         elif test "$withval" = sys; then
3823                           wx_cv_use_libxpm='wxUSE_LIBXPM=sys'
3824                         elif test "$withval" = builtin; then
3825                           wx_cv_use_libxpm='wxUSE_LIBXPM=builtin'
3826                         else
3827                           { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
3828 echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
3829    { (exit 1); exit 1; }; }
3830                         fi
3831
3832 else
3833
3834                         wx_cv_use_libxpm='wxUSE_LIBXPM=${'DEFAULT_wxUSE_LIBXPM":-$wxUSE_ALL_FEATURES}"
3835
3836 fi
3837
3838
3839           eval "$wx_cv_use_libxpm"
3840
3841           if test "$wxUSE_LIBXPM" = yes; then
3842             { echo "$as_me:$LINENO: result: yes" >&5
3843 echo "${ECHO_T}yes" >&6; }
3844           elif test "$wxUSE_LIBXPM" = no; then
3845             { echo "$as_me:$LINENO: result: no" >&5
3846 echo "${ECHO_T}no" >&6; }
3847           elif test "$wxUSE_LIBXPM" = sys; then
3848             { echo "$as_me:$LINENO: result: system version" >&5
3849 echo "${ECHO_T}system version" >&6; }
3850           elif test "$wxUSE_LIBXPM" = builtin; then
3851             { echo "$as_me:$LINENO: result: builtin version" >&5
3852 echo "${ECHO_T}builtin version" >&6; }
3853           else
3854             { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
3855 echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
3856    { (exit 1); exit 1; }; }
3857           fi
3858
3859
3860           withstring=
3861           defaultval=$wxUSE_ALL_FEATURES
3862           if test -z "$defaultval"; then
3863               if test x"$withstring" = xwithout; then
3864                   defaultval=yes
3865               else
3866                   defaultval=no
3867               fi
3868           fi
3869           { echo "$as_me:$LINENO: checking for --${withstring:-with}-libiconv" >&5
3870 echo $ECHO_N "checking for --${withstring:-with}-libiconv... $ECHO_C" >&6; }
3871
3872 # Check whether --with-libiconv was given.
3873 if test "${with_libiconv+set}" = set; then
3874   withval=$with_libiconv;
3875                         if test "$withval" = yes; then
3876                           wx_cv_use_libiconv='wxUSE_LIBICONV=yes'
3877                         else
3878                           wx_cv_use_libiconv='wxUSE_LIBICONV=no'
3879                         fi
3880
3881 else
3882
3883                         wx_cv_use_libiconv='wxUSE_LIBICONV=${'DEFAULT_wxUSE_LIBICONV":-$defaultval}"
3884
3885 fi
3886
3887
3888           eval "$wx_cv_use_libiconv"
3889
3890           if test x"$withstring" = xwithout; then
3891             if test $wxUSE_LIBICONV = yes; then
3892               result=no
3893             else
3894               result=yes
3895             fi
3896           else
3897             result=$wxUSE_LIBICONV
3898           fi
3899
3900           { echo "$as_me:$LINENO: result: $result" >&5
3901 echo "${ECHO_T}$result" >&6; }
3902
3903
3904           withstring=
3905           defaultval=$wxUSE_ALL_FEATURES
3906           if test -z "$defaultval"; then
3907               if test x"$withstring" = xwithout; then
3908                   defaultval=yes
3909               else
3910                   defaultval=no
3911               fi
3912           fi
3913           { echo "$as_me:$LINENO: checking for --${withstring:-with}-libmspack" >&5
3914 echo $ECHO_N "checking for --${withstring:-with}-libmspack... $ECHO_C" >&6; }
3915
3916 # Check whether --with-libmspack was given.
3917 if test "${with_libmspack+set}" = set; then
3918   withval=$with_libmspack;
3919                         if test "$withval" = yes; then
3920                           wx_cv_use_libmspack='wxUSE_LIBMSPACK=yes'
3921                         else
3922                           wx_cv_use_libmspack='wxUSE_LIBMSPACK=no'
3923                         fi
3924
3925 else
3926
3927                         wx_cv_use_libmspack='wxUSE_LIBMSPACK=${'DEFAULT_wxUSE_LIBMSPACK":-$defaultval}"
3928
3929 fi
3930
3931
3932           eval "$wx_cv_use_libmspack"
3933
3934           if test x"$withstring" = xwithout; then
3935             if test $wxUSE_LIBMSPACK = yes; then
3936               result=no
3937             else
3938               result=yes
3939             fi
3940           else
3941             result=$wxUSE_LIBMSPACK
3942           fi
3943
3944           { echo "$as_me:$LINENO: result: $result" >&5
3945 echo "${ECHO_T}$result" >&6; }
3946
3947
3948           withstring=without
3949           defaultval=$wxUSE_ALL_FEATURES
3950           if test -z "$defaultval"; then
3951               if test x"$withstring" = xwithout; then
3952                   defaultval=yes
3953               else
3954                   defaultval=no
3955               fi
3956           fi
3957           { echo "$as_me:$LINENO: checking for --${withstring:-with}-gtkprint" >&5
3958 echo $ECHO_N "checking for --${withstring:-with}-gtkprint... $ECHO_C" >&6; }
3959
3960 # Check whether --with-gtkprint was given.
3961 if test "${with_gtkprint+set}" = set; then
3962   withval=$with_gtkprint;
3963                         if test "$withval" = yes; then
3964                           wx_cv_use_gtkprint='wxUSE_GTKPRINT=yes'
3965                         else
3966                           wx_cv_use_gtkprint='wxUSE_GTKPRINT=no'
3967                         fi
3968
3969 else
3970
3971                         wx_cv_use_gtkprint='wxUSE_GTKPRINT=${'DEFAULT_wxUSE_GTKPRINT":-$defaultval}"
3972
3973 fi
3974
3975
3976           eval "$wx_cv_use_gtkprint"
3977
3978           if test x"$withstring" = xwithout; then
3979             if test $wxUSE_GTKPRINT = yes; then
3980               result=no
3981             else
3982               result=yes
3983             fi
3984           else
3985             result=$wxUSE_GTKPRINT
3986           fi
3987
3988           { echo "$as_me:$LINENO: result: $result" >&5
3989 echo "${ECHO_T}$result" >&6; }
3990
3991
3992           withstring=without
3993           defaultval=$wxUSE_ALL_FEATURES
3994           if test -z "$defaultval"; then
3995               if test x"$withstring" = xwithout; then
3996                   defaultval=yes
3997               else
3998                   defaultval=no
3999               fi
4000           fi
4001           { echo "$as_me:$LINENO: checking for --${withstring:-with}-gnomeprint" >&5
4002 echo $ECHO_N "checking for --${withstring:-with}-gnomeprint... $ECHO_C" >&6; }
4003
4004 # Check whether --with-gnomeprint was given.
4005 if test "${with_gnomeprint+set}" = set; then
4006   withval=$with_gnomeprint;
4007                         if test "$withval" = yes; then
4008                           wx_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=yes'
4009                         else
4010                           wx_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=no'
4011                         fi
4012
4013 else
4014
4015                         wx_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=${'DEFAULT_wxUSE_LIBGNOMEPRINT":-$defaultval}"
4016
4017 fi
4018
4019
4020           eval "$wx_cv_use_gnomeprint"
4021
4022           if test x"$withstring" = xwithout; then
4023             if test $wxUSE_LIBGNOMEPRINT = yes; then
4024               result=no
4025             else
4026               result=yes
4027             fi
4028           else
4029             result=$wxUSE_LIBGNOMEPRINT
4030           fi
4031
4032           { echo "$as_me:$LINENO: result: $result" >&5
4033 echo "${ECHO_T}$result" >&6; }
4034
4035
4036           withstring=
4037           defaultval=$wxUSE_ALL_FEATURES
4038           if test -z "$defaultval"; then
4039               if test x"$withstring" = xwithout; then
4040                   defaultval=yes
4041               else
4042                   defaultval=no
4043               fi
4044           fi
4045           { echo "$as_me:$LINENO: checking for --${withstring:-with}-gnomevfs" >&5
4046 echo $ECHO_N "checking for --${withstring:-with}-gnomevfs... $ECHO_C" >&6; }
4047
4048 # Check whether --with-gnomevfs was given.
4049 if test "${with_gnomevfs+set}" = set; then
4050   withval=$with_gnomevfs;
4051                         if test "$withval" = yes; then
4052                           wx_cv_use_gnomevfs='wxUSE_LIBGNOMEVFS=yes'
4053                         else
4054                           wx_cv_use_gnomevfs='wxUSE_LIBGNOMEVFS=no'
4055                         fi
4056
4057 else
4058
4059                         wx_cv_use_gnomevfs='wxUSE_LIBGNOMEVFS=${'DEFAULT_wxUSE_LIBGNOMEVFS":-$defaultval}"
4060
4061 fi
4062
4063
4064           eval "$wx_cv_use_gnomevfs"
4065
4066           if test x"$withstring" = xwithout; then
4067             if test $wxUSE_LIBGNOMEVFS = yes; then
4068               result=no
4069             else
4070               result=yes
4071             fi
4072           else
4073             result=$wxUSE_LIBGNOMEVFS
4074           fi
4075
4076           { echo "$as_me:$LINENO: result: $result" >&5
4077 echo "${ECHO_T}$result" >&6; }
4078
4079
4080           withstring=
4081           defaultval=$wxUSE_ALL_FEATURES
4082           if test -z "$defaultval"; then
4083               if test x"$withstring" = xwithout; then
4084                   defaultval=yes
4085               else
4086                   defaultval=no
4087               fi
4088           fi
4089           { echo "$as_me:$LINENO: checking for --${withstring:-with}-hildon" >&5
4090 echo $ECHO_N "checking for --${withstring:-with}-hildon... $ECHO_C" >&6; }
4091
4092 # Check whether --with-hildon was given.
4093 if test "${with_hildon+set}" = set; then
4094   withval=$with_hildon;
4095                         if test "$withval" = yes; then
4096                           wx_cv_use_hildon='wxUSE_LIBHILDON=yes'
4097                         else
4098                           wx_cv_use_hildon='wxUSE_LIBHILDON=no'
4099                         fi
4100
4101 else
4102
4103                         wx_cv_use_hildon='wxUSE_LIBHILDON=${'DEFAULT_wxUSE_LIBHILDON":-$defaultval}"
4104
4105 fi
4106
4107
4108           eval "$wx_cv_use_hildon"
4109
4110           if test x"$withstring" = xwithout; then
4111             if test $wxUSE_LIBHILDON = yes; then
4112               result=no
4113             else
4114               result=yes
4115             fi
4116           else
4117             result=$wxUSE_LIBHILDON
4118           fi
4119
4120           { echo "$as_me:$LINENO: result: $result" >&5
4121 echo "${ECHO_T}$result" >&6; }
4122
4123
4124           withstring=
4125           defaultval=$wxUSE_ALL_FEATURES
4126           if test -z "$defaultval"; then
4127               if test x"$withstring" = xwithout; then
4128                   defaultval=yes
4129               else
4130                   defaultval=no
4131               fi
4132           fi
4133           { echo "$as_me:$LINENO: checking for --${withstring:-with}-opengl" >&5
4134 echo $ECHO_N "checking for --${withstring:-with}-opengl... $ECHO_C" >&6; }
4135
4136 # Check whether --with-opengl was given.
4137 if test "${with_opengl+set}" = set; then
4138   withval=$with_opengl;
4139                         if test "$withval" = yes; then
4140                           wx_cv_use_opengl='wxUSE_OPENGL=yes'
4141                         else
4142                           wx_cv_use_opengl='wxUSE_OPENGL=no'
4143                         fi
4144
4145 else
4146
4147                         wx_cv_use_opengl='wxUSE_OPENGL=${'DEFAULT_wxUSE_OPENGL":-$defaultval}"
4148
4149 fi
4150
4151
4152           eval "$wx_cv_use_opengl"
4153
4154           if test x"$withstring" = xwithout; then
4155             if test $wxUSE_OPENGL = yes; then
4156               result=no
4157             else
4158               result=yes
4159             fi
4160           else
4161             result=$wxUSE_OPENGL
4162           fi
4163
4164           { echo "$as_me:$LINENO: result: $result" >&5
4165 echo "${ECHO_T}$result" >&6; }
4166
4167
4168 fi
4169
4170
4171           withstring=
4172           defaultval=$wxUSE_ALL_FEATURES
4173           if test -z "$defaultval"; then
4174               if test x"$withstring" = xwithout; then
4175                   defaultval=yes
4176               else
4177                   defaultval=no
4178               fi
4179           fi
4180           { echo "$as_me:$LINENO: checking for --${withstring:-with}-dmalloc" >&5
4181 echo $ECHO_N "checking for --${withstring:-with}-dmalloc... $ECHO_C" >&6; }
4182
4183 # Check whether --with-dmalloc was given.
4184 if test "${with_dmalloc+set}" = set; then
4185   withval=$with_dmalloc;
4186                         if test "$withval" = yes; then
4187                           wx_cv_use_dmalloc='wxUSE_DMALLOC=yes'
4188                         else
4189                           wx_cv_use_dmalloc='wxUSE_DMALLOC=no'
4190                         fi
4191
4192 else
4193
4194                         wx_cv_use_dmalloc='wxUSE_DMALLOC=${'DEFAULT_wxUSE_DMALLOC":-$defaultval}"
4195
4196 fi
4197
4198
4199           eval "$wx_cv_use_dmalloc"
4200
4201           if test x"$withstring" = xwithout; then
4202             if test $wxUSE_DMALLOC = yes; then
4203               result=no
4204             else
4205               result=yes
4206             fi
4207           else
4208             result=$wxUSE_DMALLOC
4209           fi
4210
4211           { echo "$as_me:$LINENO: result: $result" >&5
4212 echo "${ECHO_T}$result" >&6; }
4213
4214
4215           withstring=
4216           defaultval=$wxUSE_ALL_FEATURES
4217           if test -z "$defaultval"; then
4218               if test x"$withstring" = xwithout; then
4219                   defaultval=yes
4220               else
4221                   defaultval=no
4222               fi
4223           fi
4224           { echo "$as_me:$LINENO: checking for --${withstring:-with}-sdl" >&5
4225 echo $ECHO_N "checking for --${withstring:-with}-sdl... $ECHO_C" >&6; }
4226
4227 # Check whether --with-sdl was given.
4228 if test "${with_sdl+set}" = set; then
4229   withval=$with_sdl;
4230                         if test "$withval" = yes; then
4231                           wx_cv_use_sdl='wxUSE_LIBSDL=yes'
4232                         else
4233                           wx_cv_use_sdl='wxUSE_LIBSDL=no'
4234                         fi
4235
4236 else
4237
4238                         wx_cv_use_sdl='wxUSE_LIBSDL=${'DEFAULT_wxUSE_LIBSDL":-$defaultval}"
4239
4240 fi
4241
4242
4243           eval "$wx_cv_use_sdl"
4244
4245           if test x"$withstring" = xwithout; then
4246             if test $wxUSE_LIBSDL = yes; then
4247               result=no
4248             else
4249               result=yes
4250             fi
4251           else
4252             result=$wxUSE_LIBSDL
4253           fi
4254
4255           { echo "$as_me:$LINENO: result: $result" >&5
4256 echo "${ECHO_T}$result" >&6; }
4257
4258
4259           { echo "$as_me:$LINENO: checking for --with-regex" >&5
4260 echo $ECHO_N "checking for --with-regex... $ECHO_C" >&6; }
4261
4262 # Check whether --with-regex was given.
4263 if test "${with_regex+set}" = set; then
4264   withval=$with_regex;
4265                         if test "$withval" = yes; then
4266                           wx_cv_use_regex='wxUSE_REGEX=yes'
4267                         elif test "$withval" = no; then
4268                           wx_cv_use_regex='wxUSE_REGEX=no'
4269                         elif test "$withval" = sys; then
4270                           wx_cv_use_regex='wxUSE_REGEX=sys'
4271                         elif test "$withval" = builtin; then
4272                           wx_cv_use_regex='wxUSE_REGEX=builtin'
4273                         else
4274                           { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
4275 echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
4276    { (exit 1); exit 1; }; }
4277                         fi
4278
4279 else
4280
4281                         wx_cv_use_regex='wxUSE_REGEX=${'DEFAULT_wxUSE_REGEX":-$wxUSE_ALL_FEATURES}"
4282
4283 fi
4284
4285
4286           eval "$wx_cv_use_regex"
4287
4288           if test "$wxUSE_REGEX" = yes; then
4289             { echo "$as_me:$LINENO: result: yes" >&5
4290 echo "${ECHO_T}yes" >&6; }
4291           elif test "$wxUSE_REGEX" = no; then
4292             { echo "$as_me:$LINENO: result: no" >&5
4293 echo "${ECHO_T}no" >&6; }
4294           elif test "$wxUSE_REGEX" = sys; then
4295             { echo "$as_me:$LINENO: result: system version" >&5
4296 echo "${ECHO_T}system version" >&6; }
4297           elif test "$wxUSE_REGEX" = builtin; then
4298             { echo "$as_me:$LINENO: result: builtin version" >&5
4299 echo "${ECHO_T}builtin version" >&6; }
4300           else
4301             { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
4302 echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
4303    { (exit 1); exit 1; }; }
4304           fi
4305
4306
4307           { echo "$as_me:$LINENO: checking for --with-zlib" >&5
4308 echo $ECHO_N "checking for --with-zlib... $ECHO_C" >&6; }
4309
4310 # Check whether --with-zlib was given.
4311 if test "${with_zlib+set}" = set; then
4312   withval=$with_zlib;
4313                         if test "$withval" = yes; then
4314                           wx_cv_use_zlib='wxUSE_ZLIB=yes'
4315                         elif test "$withval" = no; then
4316                           wx_cv_use_zlib='wxUSE_ZLIB=no'
4317                         elif test "$withval" = sys; then
4318                           wx_cv_use_zlib='wxUSE_ZLIB=sys'
4319                         elif test "$withval" = builtin; then
4320                           wx_cv_use_zlib='wxUSE_ZLIB=builtin'
4321                         else
4322                           { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
4323 echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
4324    { (exit 1); exit 1; }; }
4325                         fi
4326
4327 else
4328
4329                         wx_cv_use_zlib='wxUSE_ZLIB=${'DEFAULT_wxUSE_ZLIB":-$wxUSE_ALL_FEATURES}"
4330
4331 fi
4332
4333
4334           eval "$wx_cv_use_zlib"
4335
4336           if test "$wxUSE_ZLIB" = yes; then
4337             { echo "$as_me:$LINENO: result: yes" >&5
4338 echo "${ECHO_T}yes" >&6; }
4339           elif test "$wxUSE_ZLIB" = no; then
4340             { echo "$as_me:$LINENO: result: no" >&5
4341 echo "${ECHO_T}no" >&6; }
4342           elif test "$wxUSE_ZLIB" = sys; then
4343             { echo "$as_me:$LINENO: result: system version" >&5
4344 echo "${ECHO_T}system version" >&6; }
4345           elif test "$wxUSE_ZLIB" = builtin; then
4346             { echo "$as_me:$LINENO: result: builtin version" >&5
4347 echo "${ECHO_T}builtin version" >&6; }
4348           else
4349             { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
4350 echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
4351    { (exit 1); exit 1; }; }
4352           fi
4353
4354
4355           { echo "$as_me:$LINENO: checking for --with-expat" >&5
4356 echo $ECHO_N "checking for --with-expat... $ECHO_C" >&6; }
4357
4358 # Check whether --with-expat was given.
4359 if test "${with_expat+set}" = set; then
4360   withval=$with_expat;
4361                         if test "$withval" = yes; then
4362                           wx_cv_use_expat='wxUSE_EXPAT=yes'
4363                         elif test "$withval" = no; then
4364                           wx_cv_use_expat='wxUSE_EXPAT=no'
4365                         elif test "$withval" = sys; then
4366                           wx_cv_use_expat='wxUSE_EXPAT=sys'
4367                         elif test "$withval" = builtin; then
4368                           wx_cv_use_expat='wxUSE_EXPAT=builtin'
4369                         else
4370                           { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
4371 echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
4372    { (exit 1); exit 1; }; }
4373                         fi
4374
4375 else
4376
4377                         wx_cv_use_expat='wxUSE_EXPAT=${'DEFAULT_wxUSE_EXPAT":-$wxUSE_ALL_FEATURES}"
4378
4379 fi
4380
4381
4382           eval "$wx_cv_use_expat"
4383
4384           if test "$wxUSE_EXPAT" = yes; then
4385             { echo "$as_me:$LINENO: result: yes" >&5
4386 echo "${ECHO_T}yes" >&6; }
4387           elif test "$wxUSE_EXPAT" = no; then
4388             { echo "$as_me:$LINENO: result: no" >&5
4389 echo "${ECHO_T}no" >&6; }
4390           elif test "$wxUSE_EXPAT" = sys; then
4391             { echo "$as_me:$LINENO: result: system version" >&5
4392 echo "${ECHO_T}system version" >&6; }
4393           elif test "$wxUSE_EXPAT" = builtin; then
4394             { echo "$as_me:$LINENO: result: builtin version" >&5
4395 echo "${ECHO_T}builtin version" >&6; }
4396           else
4397             { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
4398 echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
4399    { (exit 1); exit 1; }; }
4400           fi
4401
4402
4403 { echo "$as_me:$LINENO: checking for --with-macosx-sdk" >&5
4404 echo $ECHO_N "checking for --with-macosx-sdk... $ECHO_C" >&6; }
4405
4406 # Check whether --with-macosx-sdk was given.
4407 if test "${with_macosx_sdk+set}" = set; then
4408   withval=$with_macosx_sdk;
4409         wxUSE_MACOSX_SDK=$withval
4410         wx_cv_use_macosx_sdk="wxUSE_MACOSX_SDK=$withval"
4411
4412 fi
4413
4414 { echo "$as_me:$LINENO: result: $wxUSE_MACOSX_SDK" >&5
4415 echo "${ECHO_T}$wxUSE_MACOSX_SDK" >&6; }
4416
4417 { echo "$as_me:$LINENO: checking for --with-macosx-version-min" >&5
4418 echo $ECHO_N "checking for --with-macosx-version-min... $ECHO_C" >&6; }
4419
4420 # Check whether --with-macosx-version-min was given.
4421 if test "${with_macosx_version_min+set}" = set; then
4422   withval=$with_macosx_version_min;
4423         wxUSE_MACOSX_VERSION_MIN=$withval
4424         wx_cv_use_macosx_version_min="wxUSE_MACOSX_VERSION_MIN=$withval"
4425
4426 fi
4427
4428 { echo "$as_me:$LINENO: result: $wxUSE_MACOSX_VERSION_MIN" >&5
4429 echo "${ECHO_T}$wxUSE_MACOSX_VERSION_MIN" >&6; }
4430
4431
4432 { echo "$as_me:$LINENO: checking for --enable-debug" >&5
4433 echo $ECHO_N "checking for --enable-debug... $ECHO_C" >&6; }
4434 # Check whether --enable-debug was given.
4435 if test "${enable_debug+set}" = set; then
4436   enableval=$enable_debug;
4437         if test "$enableval" = yes; then
4438             wxUSE_DEBUG=yes
4439         elif test "$enableval" = no; then
4440             wxUSE_DEBUG=no
4441         elif test "$enableval" = max; then
4442             wxUSE_DEBUG=yes
4443             WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -DwxDEBUG_LEVEL=2"
4444         else
4445             { { echo "$as_me:$LINENO: error: Invalid --enable-debug value, must be yes, no or max" >&5
4446 echo "$as_me: error: Invalid --enable-debug value, must be yes, no or max" >&2;}
4447    { (exit 1); exit 1; }; }
4448         fi
4449
4450 else
4451   wxUSE_DEBUG=default
4452
4453 fi
4454
4455
4456 case "$wxUSE_DEBUG" in
4457     yes)
4458                         DEFAULT_wxUSE_DEBUG_FLAG=yes
4459         DEFAULT_wxUSE_DEBUG_INFO=yes
4460
4461                         DEFAULT_wxUSE_OPTIMISE=no
4462         ;;
4463
4464     no)
4465                         DEFAULT_wxUSE_DEBUG_FLAG=no
4466         DEFAULT_wxUSE_DEBUG_INFO=no
4467         ;;
4468
4469     default)
4470                         DEFAULT_wxUSE_DEBUG_FLAG=yes
4471         DEFAULT_wxUSE_DEBUG_INFO=no
4472         ;;
4473 esac
4474
4475
4476           enablestring=disable
4477           defaultval=
4478           if test -z "$defaultval"; then
4479               if test x"$enablestring" = xdisable; then
4480                   defaultval=yes
4481               else
4482                   defaultval=no
4483               fi
4484           fi
4485
4486           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_flag" >&5
4487 echo $ECHO_N "checking for --${enablestring:-enable}-debug_flag... $ECHO_C" >&6; }
4488           # Check whether --enable-debug_flag was given.
4489 if test "${enable_debug_flag+set}" = set; then
4490   enableval=$enable_debug_flag;
4491                           if test "$enableval" = yes; then
4492                             wx_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
4493                           else
4494                             wx_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
4495                           fi
4496
4497 else
4498
4499                           wx_cv_use_debug_flag='wxUSE_DEBUG_FLAG=${'DEFAULT_wxUSE_DEBUG_FLAG":-$defaultval}"
4500
4501 fi
4502
4503
4504           eval "$wx_cv_use_debug_flag"
4505
4506           if test x"$enablestring" = xdisable; then
4507             if test $wxUSE_DEBUG_FLAG = no; then
4508               result=yes
4509             else
4510               result=no
4511             fi
4512           else
4513             result=$wxUSE_DEBUG_FLAG
4514           fi
4515
4516           { echo "$as_me:$LINENO: result: $result" >&5
4517 echo "${ECHO_T}$result" >&6; }
4518
4519
4520           enablestring=
4521           defaultval=
4522           if test -z "$defaultval"; then
4523               if test x"$enablestring" = xdisable; then
4524                   defaultval=yes
4525               else
4526                   defaultval=no
4527               fi
4528           fi
4529
4530           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_info" >&5
4531 echo $ECHO_N "checking for --${enablestring:-enable}-debug_info... $ECHO_C" >&6; }
4532           # Check whether --enable-debug_info was given.
4533 if test "${enable_debug_info+set}" = set; then
4534   enableval=$enable_debug_info;
4535                           if test "$enableval" = yes; then
4536                             wx_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
4537                           else
4538                             wx_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
4539                           fi
4540
4541 else
4542
4543                           wx_cv_use_debug_info='wxUSE_DEBUG_INFO=${'DEFAULT_wxUSE_DEBUG_INFO":-$defaultval}"
4544
4545 fi
4546
4547
4548           eval "$wx_cv_use_debug_info"
4549
4550           if test x"$enablestring" = xdisable; then
4551             if test $wxUSE_DEBUG_INFO = no; then
4552               result=yes
4553             else
4554               result=no
4555             fi
4556           else
4557             result=$wxUSE_DEBUG_INFO
4558           fi
4559
4560           { echo "$as_me:$LINENO: result: $result" >&5
4561 echo "${ECHO_T}$result" >&6; }
4562
4563
4564
4565
4566           enablestring=
4567           defaultval=
4568           if test -z "$defaultval"; then
4569               if test x"$enablestring" = xdisable; then
4570                   defaultval=yes
4571               else
4572                   defaultval=no
4573               fi
4574           fi
4575
4576           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_gdb" >&5
4577 echo $ECHO_N "checking for --${enablestring:-enable}-debug_gdb... $ECHO_C" >&6; }
4578           # Check whether --enable-debug_gdb was given.
4579 if test "${enable_debug_gdb+set}" = set; then
4580   enableval=$enable_debug_gdb;
4581                           if test "$enableval" = yes; then
4582                             wx_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
4583                           else
4584                             wx_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
4585                           fi
4586
4587 else
4588
4589                           wx_cv_use_debug_gdb='wxUSE_DEBUG_GDB=${'DEFAULT_wxUSE_DEBUG_GDB":-$defaultval}"
4590
4591 fi
4592
4593
4594           eval "$wx_cv_use_debug_gdb"
4595
4596           if test x"$enablestring" = xdisable; then
4597             if test $wxUSE_DEBUG_GDB = no; then
4598               result=yes
4599             else
4600               result=no
4601             fi
4602           else
4603             result=$wxUSE_DEBUG_GDB
4604           fi
4605
4606           { echo "$as_me:$LINENO: result: $result" >&5
4607 echo "${ECHO_T}$result" >&6; }
4608
4609
4610           enablestring=
4611           defaultval=
4612           if test -z "$defaultval"; then
4613               if test x"$enablestring" = xdisable; then
4614                   defaultval=yes
4615               else
4616                   defaultval=no
4617               fi
4618           fi
4619
4620           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_cntxt" >&5
4621 echo $ECHO_N "checking for --${enablestring:-enable}-debug_cntxt... $ECHO_C" >&6; }
4622           # Check whether --enable-debug_cntxt was given.
4623 if test "${enable_debug_cntxt+set}" = set; then
4624   enableval=$enable_debug_cntxt;
4625                           if test "$enableval" = yes; then
4626                             wx_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
4627                           else
4628                             wx_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
4629                           fi
4630
4631 else
4632
4633                           wx_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=${'DEFAULT_wxUSE_DEBUG_CONTEXT":-$defaultval}"
4634
4635 fi
4636
4637
4638           eval "$wx_cv_use_debug_cntxt"
4639
4640           if test x"$enablestring" = xdisable; then
4641             if test $wxUSE_DEBUG_CONTEXT = no; then
4642               result=yes
4643             else
4644               result=no
4645             fi
4646           else
4647             result=$wxUSE_DEBUG_CONTEXT
4648           fi
4649
4650           { echo "$as_me:$LINENO: result: $result" >&5
4651 echo "${ECHO_T}$result" >&6; }
4652
4653
4654           enablestring=
4655           defaultval=
4656           if test -z "$defaultval"; then
4657               if test x"$enablestring" = xdisable; then
4658                   defaultval=yes
4659               else
4660                   defaultval=no
4661               fi
4662           fi
4663
4664           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mem_tracing" >&5
4665 echo $ECHO_N "checking for --${enablestring:-enable}-mem_tracing... $ECHO_C" >&6; }
4666           # Check whether --enable-mem_tracing was given.
4667 if test "${enable_mem_tracing+set}" = set; then
4668   enableval=$enable_mem_tracing;
4669                           if test "$enableval" = yes; then
4670                             wx_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
4671                           else
4672                             wx_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
4673                           fi
4674
4675 else
4676
4677                           wx_cv_use_mem_tracing='wxUSE_MEM_TRACING=${'DEFAULT_wxUSE_MEM_TRACING":-$defaultval}"
4678
4679 fi
4680
4681
4682           eval "$wx_cv_use_mem_tracing"
4683
4684           if test x"$enablestring" = xdisable; then
4685             if test $wxUSE_MEM_TRACING = no; then
4686               result=yes
4687             else
4688               result=no
4689             fi
4690           else
4691             result=$wxUSE_MEM_TRACING
4692           fi
4693
4694           { echo "$as_me:$LINENO: result: $result" >&5
4695 echo "${ECHO_T}$result" >&6; }
4696
4697
4698
4699
4700           enablestring=disable
4701           defaultval=
4702           if test -z "$defaultval"; then
4703               if test x"$enablestring" = xdisable; then
4704                   defaultval=yes
4705               else
4706                   defaultval=no
4707               fi
4708           fi
4709
4710           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-shared" >&5
4711 echo $ECHO_N "checking for --${enablestring:-enable}-shared... $ECHO_C" >&6; }
4712           # Check whether --enable-shared was given.
4713 if test "${enable_shared+set}" = set; then
4714   enableval=$enable_shared;
4715                           if test "$enableval" = yes; then
4716                             wx_cv_use_shared='wxUSE_SHARED=yes'
4717                           else
4718                             wx_cv_use_shared='wxUSE_SHARED=no'
4719                           fi
4720
4721 else
4722
4723                           wx_cv_use_shared='wxUSE_SHARED=${'DEFAULT_wxUSE_SHARED":-$defaultval}"
4724
4725 fi
4726
4727
4728           eval "$wx_cv_use_shared"
4729
4730           if test x"$enablestring" = xdisable; then
4731             if test $wxUSE_SHARED = no; then
4732               result=yes
4733             else
4734               result=no
4735             fi
4736           else
4737             result=$wxUSE_SHARED
4738           fi
4739
4740           { echo "$as_me:$LINENO: result: $result" >&5
4741 echo "${ECHO_T}$result" >&6; }
4742
4743
4744           enablestring=
4745           defaultval=
4746           if test -z "$defaultval"; then
4747               if test x"$enablestring" = xdisable; then
4748                   defaultval=yes
4749               else
4750                   defaultval=no
4751               fi
4752           fi
4753
4754           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stl" >&5
4755 echo $ECHO_N "checking for --${enablestring:-enable}-stl... $ECHO_C" >&6; }
4756           # Check whether --enable-stl was given.
4757 if test "${enable_stl+set}" = set; then
4758   enableval=$enable_stl;
4759                           if test "$enableval" = yes; then
4760                             wx_cv_use_stl='wxUSE_STL=yes'
4761                           else
4762                             wx_cv_use_stl='wxUSE_STL=no'
4763                           fi
4764
4765 else
4766
4767                           wx_cv_use_stl='wxUSE_STL=${'DEFAULT_wxUSE_STL":-$defaultval}"
4768
4769 fi
4770
4771
4772           eval "$wx_cv_use_stl"
4773
4774           if test x"$enablestring" = xdisable; then
4775             if test $wxUSE_STL = no; then
4776               result=yes
4777             else
4778               result=no
4779             fi
4780           else
4781             result=$wxUSE_STL
4782           fi
4783
4784           { echo "$as_me:$LINENO: result: $result" >&5
4785 echo "${ECHO_T}$result" >&6; }
4786
4787 if test "$wxUSE_STL" = "yes"; then
4788     DEFAULT_wxUSE_STD_CONTAINERS=yes
4789     DEFAULT_wxUSE_STD_IOSTREAM=yes
4790     DEFAULT_wxUSE_STD_STRING=yes
4791 fi
4792
4793           enablestring=
4794           defaultval=
4795           if test -z "$defaultval"; then
4796               if test x"$enablestring" = xdisable; then
4797                   defaultval=yes
4798               else
4799                   defaultval=no
4800               fi
4801           fi
4802
4803           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_containers" >&5
4804 echo $ECHO_N "checking for --${enablestring:-enable}-std_containers... $ECHO_C" >&6; }
4805           # Check whether --enable-std_containers was given.
4806 if test "${enable_std_containers+set}" = set; then
4807   enableval=$enable_std_containers;
4808                           if test "$enableval" = yes; then
4809                             wx_cv_use_std_containers='wxUSE_STD_CONTAINERS=yes'
4810                           else
4811                             wx_cv_use_std_containers='wxUSE_STD_CONTAINERS=no'
4812                           fi
4813
4814 else
4815
4816                           wx_cv_use_std_containers='wxUSE_STD_CONTAINERS=${'DEFAULT_wxUSE_STD_CONTAINERS":-$defaultval}"
4817
4818 fi
4819
4820
4821           eval "$wx_cv_use_std_containers"
4822
4823           if test x"$enablestring" = xdisable; then
4824             if test $wxUSE_STD_CONTAINERS = no; then
4825               result=yes
4826             else
4827               result=no
4828             fi
4829           else
4830             result=$wxUSE_STD_CONTAINERS
4831           fi
4832
4833           { echo "$as_me:$LINENO: result: $result" >&5
4834 echo "${ECHO_T}$result" >&6; }
4835
4836
4837           enablestring=
4838           defaultval=
4839           if test -z "$defaultval"; then
4840               if test x"$enablestring" = xdisable; then
4841                   defaultval=yes
4842               else
4843                   defaultval=no
4844               fi
4845           fi
4846
4847           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_iostreams" >&5
4848 echo $ECHO_N "checking for --${enablestring:-enable}-std_iostreams... $ECHO_C" >&6; }
4849           # Check whether --enable-std_iostreams was given.
4850 if test "${enable_std_iostreams+set}" = set; then
4851   enableval=$enable_std_iostreams;
4852                           if test "$enableval" = yes; then
4853                             wx_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
4854                           else
4855                             wx_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
4856                           fi
4857
4858 else
4859
4860                           wx_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=${'DEFAULT_wxUSE_STD_IOSTREAM":-$defaultval}"
4861
4862 fi
4863
4864
4865           eval "$wx_cv_use_std_iostreams"
4866
4867           if test x"$enablestring" = xdisable; then
4868             if test $wxUSE_STD_IOSTREAM = no; then
4869               result=yes
4870             else
4871               result=no
4872             fi
4873           else
4874             result=$wxUSE_STD_IOSTREAM
4875           fi
4876
4877           { echo "$as_me:$LINENO: result: $result" >&5
4878 echo "${ECHO_T}$result" >&6; }
4879
4880
4881           enablestring=
4882           defaultval=
4883           if test -z "$defaultval"; then
4884               if test x"$enablestring" = xdisable; then
4885                   defaultval=yes
4886               else
4887                   defaultval=no
4888               fi
4889           fi
4890
4891           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_string" >&5
4892 echo $ECHO_N "checking for --${enablestring:-enable}-std_string... $ECHO_C" >&6; }
4893           # Check whether --enable-std_string was given.
4894 if test "${enable_std_string+set}" = set; then
4895   enableval=$enable_std_string;
4896                           if test "$enableval" = yes; then
4897                             wx_cv_use_std_string='wxUSE_STD_STRING=yes'
4898                           else
4899                             wx_cv_use_std_string='wxUSE_STD_STRING=no'
4900                           fi
4901
4902 else
4903
4904                           wx_cv_use_std_string='wxUSE_STD_STRING=${'DEFAULT_wxUSE_STD_STRING":-$defaultval}"
4905
4906 fi
4907
4908
4909           eval "$wx_cv_use_std_string"
4910
4911           if test x"$enablestring" = xdisable; then
4912             if test $wxUSE_STD_STRING = no; then
4913               result=yes
4914             else
4915               result=no
4916             fi
4917           else
4918             result=$wxUSE_STD_STRING
4919           fi
4920
4921           { echo "$as_me:$LINENO: result: $result" >&5
4922 echo "${ECHO_T}$result" >&6; }
4923
4924
4925           enablestring=
4926           defaultval=
4927           if test -z "$defaultval"; then
4928               if test x"$enablestring" = xdisable; then
4929                   defaultval=yes
4930               else
4931                   defaultval=no
4932               fi
4933           fi
4934
4935           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_string_conv_in_wxstring" >&5
4936 echo $ECHO_N "checking for --${enablestring:-enable}-std_string_conv_in_wxstring... $ECHO_C" >&6; }
4937           # Check whether --enable-std_string_conv_in_wxstring was given.
4938 if test "${enable_std_string_conv_in_wxstring+set}" = set; then
4939   enableval=$enable_std_string_conv_in_wxstring;
4940                           if test "$enableval" = yes; then
4941                             wx_cv_use_std_string_conv_in_wxstring='wxUSE_STD_STRING_CONV_IN_WXSTRING=yes'
4942                           else
4943                             wx_cv_use_std_string_conv_in_wxstring='wxUSE_STD_STRING_CONV_IN_WXSTRING=no'
4944                           fi
4945
4946 else
4947
4948                           wx_cv_use_std_string_conv_in_wxstring='wxUSE_STD_STRING_CONV_IN_WXSTRING=${'DEFAULT_wxUSE_STD_STRING_CONV_IN_WXSTRING":-$defaultval}"
4949
4950 fi
4951
4952
4953           eval "$wx_cv_use_std_string_conv_in_wxstring"
4954
4955           if test x"$enablestring" = xdisable; then
4956             if test $wxUSE_STD_STRING_CONV_IN_WXSTRING = no; then
4957               result=yes
4958             else
4959               result=no
4960             fi
4961           else
4962             result=$wxUSE_STD_STRING_CONV_IN_WXSTRING
4963           fi
4964
4965           { echo "$as_me:$LINENO: result: $result" >&5
4966 echo "${ECHO_T}$result" >&6; }
4967
4968
4969           enablestring=disable
4970           defaultval=
4971           if test -z "$defaultval"; then
4972               if test x"$enablestring" = xdisable; then
4973                   defaultval=yes
4974               else
4975                   defaultval=no
4976               fi
4977           fi
4978
4979           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-unicode" >&5
4980 echo $ECHO_N "checking for --${enablestring:-enable}-unicode... $ECHO_C" >&6; }
4981           # Check whether --enable-unicode was given.
4982 if test "${enable_unicode+set}" = set; then
4983   enableval=$enable_unicode;
4984                           if test "$enableval" = yes; then
4985                             wx_cv_use_unicode='wxUSE_UNICODE=yes'
4986                           else
4987                             wx_cv_use_unicode='wxUSE_UNICODE=no'
4988                           fi
4989
4990 else
4991
4992                           wx_cv_use_unicode='wxUSE_UNICODE=${'DEFAULT_wxUSE_UNICODE":-$defaultval}"
4993
4994 fi
4995
4996
4997           eval "$wx_cv_use_unicode"
4998
4999           if test x"$enablestring" = xdisable; then
5000             if test $wxUSE_UNICODE = no; then
5001               result=yes
5002             else
5003               result=no
5004             fi
5005           else
5006             result=$wxUSE_UNICODE
5007           fi
5008
5009           { echo "$as_me:$LINENO: result: $result" >&5
5010 echo "${ECHO_T}$result" >&6; }
5011
5012
5013           enablestring=
5014           defaultval=
5015           if test -z "$defaultval"; then
5016               if test x"$enablestring" = xdisable; then
5017                   defaultval=yes
5018               else
5019                   defaultval=no
5020               fi
5021           fi
5022
5023           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mslu" >&5
5024 echo $ECHO_N "checking for --${enablestring:-enable}-mslu... $ECHO_C" >&6; }
5025           # Check whether --enable-mslu was given.
5026 if test "${enable_mslu+set}" = set; then
5027   enableval=$enable_mslu;
5028                           if test "$enableval" = yes; then
5029                             wx_cv_use_mslu='wxUSE_UNICODE_MSLU=yes'
5030                           else
5031                             wx_cv_use_mslu='wxUSE_UNICODE_MSLU=no'
5032                           fi
5033
5034 else
5035
5036                           wx_cv_use_mslu='wxUSE_UNICODE_MSLU=${'DEFAULT_wxUSE_UNICODE_MSLU":-$defaultval}"
5037
5038 fi
5039
5040
5041           eval "$wx_cv_use_mslu"
5042
5043           if test x"$enablestring" = xdisable; then
5044             if test $wxUSE_UNICODE_MSLU = no; then
5045               result=yes
5046             else
5047               result=no
5048             fi
5049           else
5050             result=$wxUSE_UNICODE_MSLU
5051           fi
5052
5053           { echo "$as_me:$LINENO: result: $result" >&5
5054 echo "${ECHO_T}$result" >&6; }
5055
5056
5057           enablestring=
5058           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-utf8" >&5
5059 echo $ECHO_N "checking for --${enablestring:-enable}-utf8... $ECHO_C" >&6; }
5060           # Check whether --enable-utf8 was given.
5061 if test "${enable_utf8+set}" = set; then
5062   enableval=$enable_utf8;
5063                           wx_cv_use_utf8="wxUSE_UNICODE_UTF8='$enableval'"
5064
5065 else
5066
5067                           wx_cv_use_utf8='wxUSE_UNICODE_UTF8='$DEFAULT_wxUSE_UNICODE_UTF8
5068
5069 fi
5070
5071
5072           eval "$wx_cv_use_utf8"
5073
5074           { echo "$as_me:$LINENO: result: $wxUSE_UNICODE_UTF8" >&5
5075 echo "${ECHO_T}$wxUSE_UNICODE_UTF8" >&6; }
5076
5077
5078           enablestring=
5079           defaultval=
5080           if test -z "$defaultval"; then
5081               if test x"$enablestring" = xdisable; then
5082                   defaultval=yes
5083               else
5084                   defaultval=no
5085               fi
5086           fi
5087
5088           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-utf8only" >&5
5089 echo $ECHO_N "checking for --${enablestring:-enable}-utf8only... $ECHO_C" >&6; }
5090           # Check whether --enable-utf8only was given.
5091 if test "${enable_utf8only+set}" = set; then
5092   enableval=$enable_utf8only;
5093                           if test "$enableval" = yes; then
5094                             wx_cv_use_utf8only='wxUSE_UNICODE_UTF8_LOCALE=yes'
5095                           else
5096                             wx_cv_use_utf8only='wxUSE_UNICODE_UTF8_LOCALE=no'
5097                           fi
5098
5099 else
5100
5101                           wx_cv_use_utf8only='wxUSE_UNICODE_UTF8_LOCALE=${'DEFAULT_wxUSE_UNICODE_UTF8_LOCALE":-$defaultval}"
5102
5103 fi
5104
5105
5106           eval "$wx_cv_use_utf8only"
5107
5108           if test x"$enablestring" = xdisable; then
5109             if test $wxUSE_UNICODE_UTF8_LOCALE = no; then
5110               result=yes
5111             else
5112               result=no
5113             fi
5114           else
5115             result=$wxUSE_UNICODE_UTF8_LOCALE
5116           fi
5117
5118           { echo "$as_me:$LINENO: result: $result" >&5
5119 echo "${ECHO_T}$result" >&6; }
5120
5121
5122           enablestring=
5123           defaultval=
5124           if test -z "$defaultval"; then
5125               if test x"$enablestring" = xdisable; then
5126                   defaultval=yes
5127               else
5128                   defaultval=no
5129               fi
5130           fi
5131
5132           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-extended_rtti" >&5
5133 echo $ECHO_N "checking for --${enablestring:-enable}-extended_rtti... $ECHO_C" >&6; }
5134           # Check whether --enable-extended_rtti was given.
5135 if test "${enable_extended_rtti+set}" = set; then
5136   enableval=$enable_extended_rtti;
5137                           if test "$enableval" = yes; then
5138                             wx_cv_use_extended_rtti='wxUSE_EXTENDED_RTTI=yes'
5139                           else
5140                             wx_cv_use_extended_rtti='wxUSE_EXTENDED_RTTI=no'
5141                           fi
5142
5143 else
5144
5145                           wx_cv_use_extended_rtti='wxUSE_EXTENDED_RTTI=${'DEFAULT_wxUSE_EXTENDED_RTTI":-$defaultval}"
5146
5147 fi
5148
5149
5150           eval "$wx_cv_use_extended_rtti"
5151
5152           if test x"$enablestring" = xdisable; then
5153             if test $wxUSE_EXTENDED_RTTI = no; then
5154               result=yes
5155             else
5156               result=no
5157             fi
5158           else
5159             result=$wxUSE_EXTENDED_RTTI
5160           fi
5161
5162           { echo "$as_me:$LINENO: result: $result" >&5
5163 echo "${ECHO_T}$result" >&6; }
5164
5165 if test "$USE_OS2" = 1; then
5166     DEFAULT_wxUSE_OMF=no
5167
5168           enablestring=
5169           defaultval=
5170           if test -z "$defaultval"; then
5171               if test x"$enablestring" = xdisable; then
5172                   defaultval=yes
5173               else
5174                   defaultval=no
5175               fi
5176           fi
5177
5178           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-omf" >&5
5179 echo $ECHO_N "checking for --${enablestring:-enable}-omf... $ECHO_C" >&6; }
5180           # Check whether --enable-omf was given.
5181 if test "${enable_omf+set}" = set; then
5182   enableval=$enable_omf;
5183                           if test "$enableval" = yes; then
5184                             wx_cv_use_omf='wxUSE_OMF=yes'
5185                           else
5186                             wx_cv_use_omf='wxUSE_OMF=no'
5187                           fi
5188
5189 else
5190
5191                           wx_cv_use_omf='wxUSE_OMF=${'DEFAULT_wxUSE_OMF":-$defaultval}"
5192
5193 fi
5194
5195
5196           eval "$wx_cv_use_omf"
5197
5198           if test x"$enablestring" = xdisable; then
5199             if test $wxUSE_OMF = no; then
5200               result=yes
5201             else
5202               result=no
5203             fi
5204           else
5205             result=$wxUSE_OMF
5206           fi
5207
5208           { echo "$as_me:$LINENO: result: $result" >&5
5209 echo "${ECHO_T}$result" >&6; }
5210
5211 fi
5212
5213
5214           enablestring=disable
5215           defaultval=
5216           if test -z "$defaultval"; then
5217               if test x"$enablestring" = xdisable; then
5218                   defaultval=yes
5219               else
5220                   defaultval=no
5221               fi
5222           fi
5223
5224           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-optimise" >&5
5225 echo $ECHO_N "checking for --${enablestring:-enable}-optimise... $ECHO_C" >&6; }
5226           # Check whether --enable-optimise was given.
5227 if test "${enable_optimise+set}" = set; then
5228   enableval=$enable_optimise;
5229                           if test "$enableval" = yes; then
5230                             wx_cv_use_optimise='wxUSE_OPTIMISE=yes'
5231                           else
5232                             wx_cv_use_optimise='wxUSE_OPTIMISE=no'
5233                           fi
5234
5235 else
5236
5237                           wx_cv_use_optimise='wxUSE_OPTIMISE=${'DEFAULT_wxUSE_OPTIMISE":-$defaultval}"
5238
5239 fi
5240
5241
5242           eval "$wx_cv_use_optimise"
5243
5244           if test x"$enablestring" = xdisable; then
5245             if test $wxUSE_OPTIMISE = no; then
5246               result=yes
5247             else
5248               result=no
5249             fi
5250           else
5251             result=$wxUSE_OPTIMISE
5252           fi
5253
5254           { echo "$as_me:$LINENO: result: $result" >&5
5255 echo "${ECHO_T}$result" >&6; }
5256
5257
5258
5259           enablestring=
5260           defaultval=
5261           if test -z "$defaultval"; then
5262               if test x"$enablestring" = xdisable; then
5263                   defaultval=yes
5264               else
5265                   defaultval=no
5266               fi
5267           fi
5268
5269           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-profile" >&5
5270 echo $ECHO_N "checking for --${enablestring:-enable}-profile... $ECHO_C" >&6; }
5271           # Check whether --enable-profile was given.
5272 if test "${enable_profile+set}" = set; then
5273   enableval=$enable_profile;
5274                           if test "$enableval" = yes; then
5275                             wx_cv_use_profile='wxUSE_PROFILE=yes'
5276                           else
5277                             wx_cv_use_profile='wxUSE_PROFILE=no'
5278                           fi
5279
5280 else
5281
5282                           wx_cv_use_profile='wxUSE_PROFILE=${'DEFAULT_wxUSE_PROFILE":-$defaultval}"
5283
5284 fi
5285
5286
5287           eval "$wx_cv_use_profile"
5288
5289           if test x"$enablestring" = xdisable; then
5290             if test $wxUSE_PROFILE = no; then
5291               result=yes
5292             else
5293               result=no
5294             fi
5295           else
5296             result=$wxUSE_PROFILE
5297           fi
5298
5299           { echo "$as_me:$LINENO: result: $result" >&5
5300 echo "${ECHO_T}$result" >&6; }
5301
5302
5303           enablestring=
5304           defaultval=
5305           if test -z "$defaultval"; then
5306               if test x"$enablestring" = xdisable; then
5307                   defaultval=yes
5308               else
5309                   defaultval=no
5310               fi
5311           fi
5312
5313           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_rtti" >&5
5314 echo $ECHO_N "checking for --${enablestring:-enable}-no_rtti... $ECHO_C" >&6; }
5315           # Check whether --enable-no_rtti was given.
5316 if test "${enable_no_rtti+set}" = set; then
5317   enableval=$enable_no_rtti;
5318                           if test "$enableval" = yes; then
5319                             wx_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
5320                           else
5321                             wx_cv_use_no_rtti='wxUSE_NO_RTTI=no'
5322                           fi
5323
5324 else
5325
5326                           wx_cv_use_no_rtti='wxUSE_NO_RTTI=${'DEFAULT_wxUSE_NO_RTTI":-$defaultval}"
5327
5328 fi
5329
5330
5331           eval "$wx_cv_use_no_rtti"
5332
5333           if test x"$enablestring" = xdisable; then
5334             if test $wxUSE_NO_RTTI = no; then
5335               result=yes
5336             else
5337               result=no
5338             fi
5339           else
5340             result=$wxUSE_NO_RTTI
5341           fi
5342
5343           { echo "$as_me:$LINENO: result: $result" >&5
5344 echo "${ECHO_T}$result" >&6; }
5345
5346
5347           enablestring=
5348           defaultval=
5349           if test -z "$defaultval"; then
5350               if test x"$enablestring" = xdisable; then
5351                   defaultval=yes
5352               else
5353                   defaultval=no
5354               fi
5355           fi
5356
5357           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_exceptions" >&5
5358 echo $ECHO_N "checking for --${enablestring:-enable}-no_exceptions... $ECHO_C" >&6; }
5359           # Check whether --enable-no_exceptions was given.
5360 if test "${enable_no_exceptions+set}" = set; then
5361   enableval=$enable_no_exceptions;
5362                           if test "$enableval" = yes; then
5363                             wx_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
5364                           else
5365                             wx_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
5366                           fi
5367
5368 else
5369
5370                           wx_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=${'DEFAULT_wxUSE_NO_EXCEPTIONS":-$defaultval}"
5371
5372 fi
5373
5374
5375           eval "$wx_cv_use_no_exceptions"
5376
5377           if test x"$enablestring" = xdisable; then
5378             if test $wxUSE_NO_EXCEPTIONS = no; then
5379               result=yes
5380             else
5381               result=no
5382             fi
5383           else
5384             result=$wxUSE_NO_EXCEPTIONS
5385           fi
5386
5387           { echo "$as_me:$LINENO: result: $result" >&5
5388 echo "${ECHO_T}$result" >&6; }
5389
5390
5391           enablestring=
5392           defaultval=
5393           if test -z "$defaultval"; then
5394               if test x"$enablestring" = xdisable; then
5395                   defaultval=yes
5396               else
5397                   defaultval=no
5398               fi
5399           fi
5400
5401           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-permissive" >&5
5402 echo $ECHO_N "checking for --${enablestring:-enable}-permissive... $ECHO_C" >&6; }
5403           # Check whether --enable-permissive was given.
5404 if test "${enable_permissive+set}" = set; then
5405   enableval=$enable_permissive;
5406                           if test "$enableval" = yes; then
5407                             wx_cv_use_permissive='wxUSE_PERMISSIVE=yes'
5408                           else
5409                             wx_cv_use_permissive='wxUSE_PERMISSIVE=no'
5410                           fi
5411
5412 else
5413
5414                           wx_cv_use_permissive='wxUSE_PERMISSIVE=${'DEFAULT_wxUSE_PERMISSIVE":-$defaultval}"
5415
5416 fi
5417
5418
5419           eval "$wx_cv_use_permissive"
5420
5421           if test x"$enablestring" = xdisable; then
5422             if test $wxUSE_PERMISSIVE = no; then
5423               result=yes
5424             else
5425               result=no
5426             fi
5427           else
5428             result=$wxUSE_PERMISSIVE
5429           fi
5430
5431           { echo "$as_me:$LINENO: result: $result" >&5
5432 echo "${ECHO_T}$result" >&6; }
5433
5434
5435           enablestring=
5436           defaultval=
5437           if test -z "$defaultval"; then
5438               if test x"$enablestring" = xdisable; then
5439                   defaultval=yes
5440               else
5441                   defaultval=no
5442               fi
5443           fi
5444
5445           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_deps" >&5
5446 echo $ECHO_N "checking for --${enablestring:-enable}-no_deps... $ECHO_C" >&6; }
5447           # Check whether --enable-no_deps was given.
5448 if test "${enable_no_deps+set}" = set; then
5449   enableval=$enable_no_deps;
5450                           if test "$enableval" = yes; then
5451                             wx_cv_use_no_deps='wxUSE_NO_DEPS=yes'
5452                           else
5453                             wx_cv_use_no_deps='wxUSE_NO_DEPS=no'
5454                           fi
5455
5456 else
5457
5458                           wx_cv_use_no_deps='wxUSE_NO_DEPS=${'DEFAULT_wxUSE_NO_DEPS":-$defaultval}"
5459
5460 fi
5461
5462
5463           eval "$wx_cv_use_no_deps"
5464
5465           if test x"$enablestring" = xdisable; then
5466             if test $wxUSE_NO_DEPS = no; then
5467               result=yes
5468             else
5469               result=no
5470             fi
5471           else
5472             result=$wxUSE_NO_DEPS
5473           fi
5474
5475           { echo "$as_me:$LINENO: result: $result" >&5
5476 echo "${ECHO_T}$result" >&6; }
5477
5478
5479           enablestring=disable
5480           defaultval=
5481           if test -z "$defaultval"; then
5482               if test x"$enablestring" = xdisable; then
5483                   defaultval=yes
5484               else
5485                   defaultval=no
5486               fi
5487           fi
5488
5489           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-vararg_macros" >&5
5490 echo $ECHO_N "checking for --${enablestring:-enable}-vararg_macros... $ECHO_C" >&6; }
5491           # Check whether --enable-vararg_macros was given.
5492 if test "${enable_vararg_macros+set}" = set; then
5493   enableval=$enable_vararg_macros;
5494                           if test "$enableval" = yes; then
5495                             wx_cv_use_vararg_macros='wxUSE_VARARG_MACROS=yes'
5496                           else
5497                             wx_cv_use_vararg_macros='wxUSE_VARARG_MACROS=no'
5498                           fi
5499
5500 else
5501
5502                           wx_cv_use_vararg_macros='wxUSE_VARARG_MACROS=${'DEFAULT_wxUSE_VARARG_MACROS":-$defaultval}"
5503
5504 fi
5505
5506
5507           eval "$wx_cv_use_vararg_macros"
5508
5509           if test x"$enablestring" = xdisable; then
5510             if test $wxUSE_VARARG_MACROS = no; then
5511               result=yes
5512             else
5513               result=no
5514             fi
5515           else
5516             result=$wxUSE_VARARG_MACROS
5517           fi
5518
5519           { echo "$as_me:$LINENO: result: $result" >&5
5520 echo "${ECHO_T}$result" >&6; }
5521
5522
5523
5524           enablestring=
5525           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal_binary" >&5
5526 echo $ECHO_N "checking for --${enablestring:-enable}-universal_binary... $ECHO_C" >&6; }
5527           # Check whether --enable-universal_binary was given.
5528 if test "${enable_universal_binary+set}" = set; then
5529   enableval=$enable_universal_binary;
5530                           wx_cv_use_universal_binary="wxUSE_UNIVERSAL_BINARY='$enableval'"
5531
5532 else
5533
5534                           wx_cv_use_universal_binary='wxUSE_UNIVERSAL_BINARY='$DEFAULT_wxUSE_UNIVERSAL_BINARY
5535
5536 fi
5537
5538
5539           eval "$wx_cv_use_universal_binary"
5540
5541           { echo "$as_me:$LINENO: result: $wxUSE_UNIVERSAL_BINARY" >&5
5542 echo "${ECHO_T}$wxUSE_UNIVERSAL_BINARY" >&6; }
5543
5544
5545           enablestring=
5546           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-macosx_arch" >&5
5547 echo $ECHO_N "checking for --${enablestring:-enable}-macosx_arch... $ECHO_C" >&6; }
5548           # Check whether --enable-macosx_arch was given.
5549 if test "${enable_macosx_arch+set}" = set; then
5550   enableval=$enable_macosx_arch;
5551                           wx_cv_use_macosx_arch="wxUSE_MAC_ARCH='$enableval'"
5552
5553 else
5554
5555                           wx_cv_use_macosx_arch='wxUSE_MAC_ARCH='$DEFAULT_wxUSE_MAC_ARCH
5556
5557 fi
5558
5559
5560           eval "$wx_cv_use_macosx_arch"
5561
5562           { echo "$as_me:$LINENO: result: $wxUSE_MAC_ARCH" >&5
5563 echo "${ECHO_T}$wxUSE_MAC_ARCH" >&6; }
5564
5565
5566
5567           enablestring=
5568           defaultval=
5569           if test -z "$defaultval"; then
5570               if test x"$enablestring" = xdisable; then
5571                   defaultval=yes
5572               else
5573                   defaultval=no
5574               fi
5575           fi
5576
5577           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat26" >&5
5578 echo $ECHO_N "checking for --${enablestring:-enable}-compat26... $ECHO_C" >&6; }
5579           # Check whether --enable-compat26 was given.
5580 if test "${enable_compat26+set}" = set; then
5581   enableval=$enable_compat26;
5582                           if test "$enableval" = yes; then
5583                             wx_cv_use_compat26='WXWIN_COMPATIBILITY_2_6=yes'
5584                           else
5585                             wx_cv_use_compat26='WXWIN_COMPATIBILITY_2_6=no'
5586                           fi
5587
5588 else
5589
5590                           wx_cv_use_compat26='WXWIN_COMPATIBILITY_2_6=${'DEFAULT_WXWIN_COMPATIBILITY_2_6":-$defaultval}"
5591
5592 fi
5593
5594
5595           eval "$wx_cv_use_compat26"
5596
5597           if test x"$enablestring" = xdisable; then
5598             if test $WXWIN_COMPATIBILITY_2_6 = no; then
5599               result=yes
5600             else
5601               result=no
5602             fi
5603           else
5604             result=$WXWIN_COMPATIBILITY_2_6
5605           fi
5606
5607           { echo "$as_me:$LINENO: result: $result" >&5
5608 echo "${ECHO_T}$result" >&6; }
5609
5610
5611           enablestring=disable
5612           defaultval=
5613           if test -z "$defaultval"; then
5614               if test x"$enablestring" = xdisable; then
5615                   defaultval=yes
5616               else
5617                   defaultval=no
5618               fi
5619           fi
5620
5621           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat28" >&5
5622 echo $ECHO_N "checking for --${enablestring:-enable}-compat28... $ECHO_C" >&6; }
5623           # Check whether --enable-compat28 was given.
5624 if test "${enable_compat28+set}" = set; then
5625   enableval=$enable_compat28;
5626                           if test "$enableval" = yes; then
5627                             wx_cv_use_compat28='WXWIN_COMPATIBILITY_2_8=yes'
5628                           else
5629                             wx_cv_use_compat28='WXWIN_COMPATIBILITY_2_8=no'
5630                           fi
5631
5632 else
5633
5634                           wx_cv_use_compat28='WXWIN_COMPATIBILITY_2_8=${'DEFAULT_WXWIN_COMPATIBILITY_2_8":-$defaultval}"
5635
5636 fi
5637
5638
5639           eval "$wx_cv_use_compat28"
5640
5641           if test x"$enablestring" = xdisable; then
5642             if test $WXWIN_COMPATIBILITY_2_8 = no; then
5643               result=yes
5644             else
5645               result=no
5646             fi
5647           else
5648             result=$WXWIN_COMPATIBILITY_2_8
5649           fi
5650
5651           { echo "$as_me:$LINENO: result: $result" >&5
5652 echo "${ECHO_T}$result" >&6; }
5653
5654
5655
5656           enablestring=disable
5657           defaultval=
5658           if test -z "$defaultval"; then
5659               if test x"$enablestring" = xdisable; then
5660                   defaultval=yes
5661               else
5662                   defaultval=no
5663               fi
5664           fi
5665
5666           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-rpath" >&5
5667 echo $ECHO_N "checking for --${enablestring:-enable}-rpath... $ECHO_C" >&6; }
5668           # Check whether --enable-rpath was given.
5669 if test "${enable_rpath+set}" = set; then
5670   enableval=$enable_rpath;
5671                           if test "$enableval" = yes; then
5672                             wx_cv_use_rpath='wxUSE_RPATH=yes'
5673                           else
5674                             wx_cv_use_rpath='wxUSE_RPATH=no'
5675                           fi
5676
5677 else
5678
5679                           wx_cv_use_rpath='wxUSE_RPATH=${'DEFAULT_wxUSE_RPATH":-$defaultval}"
5680
5681 fi
5682
5683
5684           eval "$wx_cv_use_rpath"
5685
5686           if test x"$enablestring" = xdisable; then
5687             if test $wxUSE_RPATH = no; then
5688               result=yes
5689             else
5690               result=no
5691             fi
5692           else
5693             result=$wxUSE_RPATH
5694           fi
5695
5696           { echo "$as_me:$LINENO: result: $result" >&5
5697 echo "${ECHO_T}$result" >&6; }
5698
5699
5700
5701           enablestring=
5702           defaultval=
5703           if test -z "$defaultval"; then
5704               if test x"$enablestring" = xdisable; then
5705                   defaultval=yes
5706               else
5707                   defaultval=no
5708               fi
5709           fi
5710
5711           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-objc_uniquifying" >&5
5712 echo $ECHO_N "checking for --${enablestring:-enable}-objc_uniquifying... $ECHO_C" >&6; }
5713           # Check whether --enable-objc_uniquifying was given.
5714 if test "${enable_objc_uniquifying+set}" = set; then
5715   enableval=$enable_objc_uniquifying;
5716                           if test "$enableval" = yes; then
5717                             wx_cv_use_objc_uniquifying='wxUSE_OBJC_UNIQUIFYING=yes'
5718                           else
5719                             wx_cv_use_objc_uniquifying='wxUSE_OBJC_UNIQUIFYING=no'
5720                           fi
5721
5722 else
5723
5724                           wx_cv_use_objc_uniquifying='wxUSE_OBJC_UNIQUIFYING=${'DEFAULT_wxUSE_OBJC_UNIQUIFYING":-$defaultval}"
5725
5726 fi
5727
5728
5729           eval "$wx_cv_use_objc_uniquifying"
5730
5731           if test x"$enablestring" = xdisable; then
5732             if test $wxUSE_OBJC_UNIQUIFYING = no; then
5733               result=yes
5734             else
5735               result=no
5736             fi
5737           else
5738             result=$wxUSE_OBJC_UNIQUIFYING
5739           fi
5740
5741           { echo "$as_me:$LINENO: result: $result" >&5
5742 echo "${ECHO_T}$result" >&6; }
5743
5744
5745
5746           enablestring=disable
5747           defaultval=
5748           if test -z "$defaultval"; then
5749               if test x"$enablestring" = xdisable; then
5750                   defaultval=yes
5751               else
5752                   defaultval=no
5753               fi
5754           fi
5755
5756           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-visibility" >&5
5757 echo $ECHO_N "checking for --${enablestring:-enable}-visibility... $ECHO_C" >&6; }
5758           # Check whether --enable-visibility was given.
5759 if test "${enable_visibility+set}" = set; then
5760   enableval=$enable_visibility;
5761                           if test "$enableval" = yes; then
5762                             wx_cv_use_visibility='wxUSE_VISIBILITY=yes'
5763                           else
5764                             wx_cv_use_visibility='wxUSE_VISIBILITY=no'
5765                           fi
5766
5767 else
5768
5769                           wx_cv_use_visibility='wxUSE_VISIBILITY=${'DEFAULT_wxUSE_VISIBILITY":-$defaultval}"
5770
5771 fi
5772
5773
5774           eval "$wx_cv_use_visibility"
5775
5776           if test x"$enablestring" = xdisable; then
5777             if test $wxUSE_VISIBILITY = no; then
5778               result=yes
5779             else
5780               result=no
5781             fi
5782           else
5783             result=$wxUSE_VISIBILITY
5784           fi
5785
5786           { echo "$as_me:$LINENO: result: $result" >&5
5787 echo "${ECHO_T}$result" >&6; }
5788
5789
5790           enablestring=disable
5791           defaultval=
5792           if test -z "$defaultval"; then
5793               if test x"$enablestring" = xdisable; then
5794                   defaultval=yes
5795               else
5796                   defaultval=no
5797               fi
5798           fi
5799
5800           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tls" >&5
5801 echo $ECHO_N "checking for --${enablestring:-enable}-tls... $ECHO_C" >&6; }
5802           # Check whether --enable-tls was given.
5803 if test "${enable_tls+set}" = set; then
5804   enableval=$enable_tls;
5805                           if test "$enableval" = yes; then
5806                             wx_cv_use_tls='wxUSE_COMPILER_TLS=yes'
5807                           else
5808                             wx_cv_use_tls='wxUSE_COMPILER_TLS=no'
5809                           fi
5810
5811 else
5812
5813                           wx_cv_use_tls='wxUSE_COMPILER_TLS=${'DEFAULT_wxUSE_COMPILER_TLS":-$defaultval}"
5814
5815 fi
5816
5817
5818           eval "$wx_cv_use_tls"
5819
5820           if test x"$enablestring" = xdisable; then
5821             if test $wxUSE_COMPILER_TLS = no; then
5822               result=yes
5823             else
5824               result=no
5825             fi
5826           else
5827             result=$wxUSE_COMPILER_TLS
5828           fi
5829
5830           { echo "$as_me:$LINENO: result: $result" >&5
5831 echo "${ECHO_T}$result" >&6; }
5832
5833
5834
5835
5836           enablestring=
5837           defaultval=$wxUSE_ALL_FEATURES
5838           if test -z "$defaultval"; then
5839               if test x"$enablestring" = xdisable; then
5840                   defaultval=yes
5841               else
5842                   defaultval=no
5843               fi
5844           fi
5845
5846           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-intl" >&5
5847 echo $ECHO_N "checking for --${enablestring:-enable}-intl... $ECHO_C" >&6; }
5848           # Check whether --enable-intl was given.
5849 if test "${enable_intl+set}" = set; then
5850   enableval=$enable_intl;
5851                           if test "$enableval" = yes; then
5852                             wx_cv_use_intl='wxUSE_INTL=yes'
5853                           else
5854                             wx_cv_use_intl='wxUSE_INTL=no'
5855                           fi
5856
5857 else
5858
5859                           wx_cv_use_intl='wxUSE_INTL=${'DEFAULT_wxUSE_INTL":-$defaultval}"
5860
5861 fi
5862
5863
5864           eval "$wx_cv_use_intl"
5865
5866           if test x"$enablestring" = xdisable; then
5867             if test $wxUSE_INTL = no; then
5868               result=yes
5869             else
5870               result=no
5871             fi
5872           else
5873             result=$wxUSE_INTL
5874           fi
5875
5876           { echo "$as_me:$LINENO: result: $result" >&5
5877 echo "${ECHO_T}$result" >&6; }
5878
5879
5880           enablestring=
5881           defaultval=$wxUSE_ALL_FEATURES
5882           if test -z "$defaultval"; then
5883               if test x"$enablestring" = xdisable; then
5884                   defaultval=yes
5885               else
5886                   defaultval=no
5887               fi
5888           fi
5889
5890           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xlocale" >&5
5891 echo $ECHO_N "checking for --${enablestring:-enable}-xlocale... $ECHO_C" >&6; }
5892           # Check whether --enable-xlocale was given.
5893 if test "${enable_xlocale+set}" = set; then
5894   enableval=$enable_xlocale;
5895                           if test "$enableval" = yes; then
5896                             wx_cv_use_xlocale='wxUSE_XLOCALE=yes'
5897                           else
5898                             wx_cv_use_xlocale='wxUSE_XLOCALE=no'
5899                           fi
5900
5901 else
5902
5903                           wx_cv_use_xlocale='wxUSE_XLOCALE=${'DEFAULT_wxUSE_XLOCALE":-$defaultval}"
5904
5905 fi
5906
5907
5908           eval "$wx_cv_use_xlocale"
5909
5910           if test x"$enablestring" = xdisable; then
5911             if test $wxUSE_XLOCALE = no; then
5912               result=yes
5913             else
5914               result=no
5915             fi
5916           else
5917             result=$wxUSE_XLOCALE
5918           fi
5919
5920           { echo "$as_me:$LINENO: result: $result" >&5
5921 echo "${ECHO_T}$result" >&6; }
5922
5923
5924           enablestring=
5925           defaultval=$wxUSE_ALL_FEATURES
5926           if test -z "$defaultval"; then
5927               if test x"$enablestring" = xdisable; then
5928                   defaultval=yes
5929               else
5930                   defaultval=no
5931               fi
5932           fi
5933
5934           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-config" >&5
5935 echo $ECHO_N "checking for --${enablestring:-enable}-config... $ECHO_C" >&6; }
5936           # Check whether --enable-config was given.
5937 if test "${enable_config+set}" = set; then
5938   enableval=$enable_config;
5939                           if test "$enableval" = yes; then
5940                             wx_cv_use_config='wxUSE_CONFIG=yes'
5941                           else
5942                             wx_cv_use_config='wxUSE_CONFIG=no'
5943                           fi
5944
5945 else
5946
5947                           wx_cv_use_config='wxUSE_CONFIG=${'DEFAULT_wxUSE_CONFIG":-$defaultval}"
5948
5949 fi
5950
5951
5952           eval "$wx_cv_use_config"
5953
5954           if test x"$enablestring" = xdisable; then
5955             if test $wxUSE_CONFIG = no; then
5956               result=yes
5957             else
5958               result=no
5959             fi
5960           else
5961             result=$wxUSE_CONFIG
5962           fi
5963
5964           { echo "$as_me:$LINENO: result: $result" >&5
5965 echo "${ECHO_T}$result" >&6; }
5966
5967
5968
5969           enablestring=
5970           defaultval=$wxUSE_ALL_FEATURES
5971           if test -z "$defaultval"; then
5972               if test x"$enablestring" = xdisable; then
5973                   defaultval=yes
5974               else
5975                   defaultval=no
5976               fi
5977           fi
5978
5979           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocols" >&5
5980 echo $ECHO_N "checking for --${enablestring:-enable}-protocols... $ECHO_C" >&6; }
5981           # Check whether --enable-protocols was given.
5982 if test "${enable_protocols+set}" = set; then
5983   enableval=$enable_protocols;
5984                           if test "$enableval" = yes; then
5985                             wx_cv_use_protocols='wxUSE_PROTOCOL=yes'
5986                           else
5987                             wx_cv_use_protocols='wxUSE_PROTOCOL=no'
5988                           fi
5989
5990 else
5991
5992                           wx_cv_use_protocols='wxUSE_PROTOCOL=${'DEFAULT_wxUSE_PROTOCOL":-$defaultval}"
5993
5994 fi
5995
5996
5997           eval "$wx_cv_use_protocols"
5998
5999           if test x"$enablestring" = xdisable; then
6000             if test $wxUSE_PROTOCOL = no; then
6001               result=yes
6002             else
6003               result=no
6004             fi
6005           else
6006             result=$wxUSE_PROTOCOL
6007           fi
6008
6009           { echo "$as_me:$LINENO: result: $result" >&5
6010 echo "${ECHO_T}$result" >&6; }
6011
6012
6013           enablestring=
6014           defaultval=$wxUSE_ALL_FEATURES
6015           if test -z "$defaultval"; then
6016               if test x"$enablestring" = xdisable; then
6017                   defaultval=yes
6018               else
6019                   defaultval=no
6020               fi
6021           fi
6022
6023           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ftp" >&5
6024 echo $ECHO_N "checking for --${enablestring:-enable}-ftp... $ECHO_C" >&6; }
6025           # Check whether --enable-ftp was given.
6026 if test "${enable_ftp+set}" = set; then
6027   enableval=$enable_ftp;
6028                           if test "$enableval" = yes; then
6029                             wx_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes'
6030                           else
6031                             wx_cv_use_ftp='wxUSE_PROTOCOL_FTP=no'
6032                           fi
6033
6034 else
6035
6036                           wx_cv_use_ftp='wxUSE_PROTOCOL_FTP=${'DEFAULT_wxUSE_PROTOCOL_FTP":-$defaultval}"
6037
6038 fi
6039
6040
6041           eval "$wx_cv_use_ftp"
6042
6043           if test x"$enablestring" = xdisable; then
6044             if test $wxUSE_PROTOCOL_FTP = no; then
6045               result=yes
6046             else
6047               result=no
6048             fi
6049           else
6050             result=$wxUSE_PROTOCOL_FTP
6051           fi
6052
6053           { echo "$as_me:$LINENO: result: $result" >&5
6054 echo "${ECHO_T}$result" >&6; }
6055
6056
6057           enablestring=
6058           defaultval=$wxUSE_ALL_FEATURES
6059           if test -z "$defaultval"; then
6060               if test x"$enablestring" = xdisable; then
6061                   defaultval=yes
6062               else
6063                   defaultval=no
6064               fi
6065           fi
6066
6067           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-http" >&5
6068 echo $ECHO_N "checking for --${enablestring:-enable}-http... $ECHO_C" >&6; }
6069           # Check whether --enable-http was given.
6070 if test "${enable_http+set}" = set; then
6071   enableval=$enable_http;
6072                           if test "$enableval" = yes; then
6073                             wx_cv_use_http='wxUSE_PROTOCOL_HTTP=yes'
6074                           else
6075                             wx_cv_use_http='wxUSE_PROTOCOL_HTTP=no'
6076                           fi
6077
6078 else
6079
6080                           wx_cv_use_http='wxUSE_PROTOCOL_HTTP=${'DEFAULT_wxUSE_PROTOCOL_HTTP":-$defaultval}"
6081
6082 fi
6083
6084
6085           eval "$wx_cv_use_http"
6086
6087           if test x"$enablestring" = xdisable; then
6088             if test $wxUSE_PROTOCOL_HTTP = no; then
6089               result=yes
6090             else
6091               result=no
6092             fi
6093           else
6094             result=$wxUSE_PROTOCOL_HTTP
6095           fi
6096
6097           { echo "$as_me:$LINENO: result: $result" >&5
6098 echo "${ECHO_T}$result" >&6; }
6099
6100
6101           enablestring=
6102           defaultval=$wxUSE_ALL_FEATURES
6103           if test -z "$defaultval"; then
6104               if test x"$enablestring" = xdisable; then
6105                   defaultval=yes
6106               else
6107                   defaultval=no
6108               fi
6109           fi
6110
6111           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fileproto" >&5
6112 echo $ECHO_N "checking for --${enablestring:-enable}-fileproto... $ECHO_C" >&6; }
6113           # Check whether --enable-fileproto was given.
6114 if test "${enable_fileproto+set}" = set; then
6115   enableval=$enable_fileproto;
6116                           if test "$enableval" = yes; then
6117                             wx_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes'
6118                           else
6119                             wx_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no'
6120                           fi
6121
6122 else
6123
6124                           wx_cv_use_fileproto='wxUSE_PROTOCOL_FILE=${'DEFAULT_wxUSE_PROTOCOL_FILE":-$defaultval}"
6125
6126 fi
6127
6128
6129           eval "$wx_cv_use_fileproto"
6130
6131           if test x"$enablestring" = xdisable; then
6132             if test $wxUSE_PROTOCOL_FILE = no; then
6133               result=yes
6134             else
6135               result=no
6136             fi
6137           else
6138             result=$wxUSE_PROTOCOL_FILE
6139           fi
6140
6141           { echo "$as_me:$LINENO: result: $result" >&5
6142 echo "${ECHO_T}$result" >&6; }
6143
6144
6145           enablestring=
6146           defaultval=$wxUSE_ALL_FEATURES
6147           if test -z "$defaultval"; then
6148               if test x"$enablestring" = xdisable; then
6149                   defaultval=yes
6150               else
6151                   defaultval=no
6152               fi
6153           fi
6154
6155           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sockets" >&5
6156 echo $ECHO_N "checking for --${enablestring:-enable}-sockets... $ECHO_C" >&6; }
6157           # Check whether --enable-sockets was given.
6158 if test "${enable_sockets+set}" = set; then
6159   enableval=$enable_sockets;
6160                           if test "$enableval" = yes; then
6161                             wx_cv_use_sockets='wxUSE_SOCKETS=yes'
6162                           else
6163                             wx_cv_use_sockets='wxUSE_SOCKETS=no'
6164                           fi
6165
6166 else
6167
6168                           wx_cv_use_sockets='wxUSE_SOCKETS=${'DEFAULT_wxUSE_SOCKETS":-$defaultval}"
6169
6170 fi
6171
6172
6173           eval "$wx_cv_use_sockets"
6174
6175           if test x"$enablestring" = xdisable; then
6176             if test $wxUSE_SOCKETS = no; then
6177               result=yes
6178             else
6179               result=no
6180             fi
6181           else
6182             result=$wxUSE_SOCKETS
6183           fi
6184
6185           { echo "$as_me:$LINENO: result: $result" >&5
6186 echo "${ECHO_T}$result" >&6; }
6187
6188
6189           enablestring=
6190           defaultval=$wxUSE_ALL_FEATURES
6191           if test -z "$defaultval"; then
6192               if test x"$enablestring" = xdisable; then
6193                   defaultval=yes
6194               else
6195                   defaultval=no
6196               fi
6197           fi
6198
6199           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ipv6" >&5
6200 echo $ECHO_N "checking for --${enablestring:-enable}-ipv6... $ECHO_C" >&6; }
6201           # Check whether --enable-ipv6 was given.
6202 if test "${enable_ipv6+set}" = set; then
6203   enableval=$enable_ipv6;
6204                           if test "$enableval" = yes; then
6205                             wx_cv_use_ipv6='wxUSE_IPV6=yes'
6206                           else
6207                             wx_cv_use_ipv6='wxUSE_IPV6=no'
6208                           fi
6209
6210 else
6211
6212                           wx_cv_use_ipv6='wxUSE_IPV6=${'DEFAULT_wxUSE_IPV6":-$defaultval}"
6213
6214 fi
6215
6216
6217           eval "$wx_cv_use_ipv6"
6218
6219           if test x"$enablestring" = xdisable; then
6220             if test $wxUSE_IPV6 = no; then
6221               result=yes
6222             else
6223               result=no
6224             fi
6225           else
6226             result=$wxUSE_IPV6
6227           fi
6228
6229           { echo "$as_me:$LINENO: result: $result" >&5
6230 echo "${ECHO_T}$result" >&6; }
6231
6232
6233           enablestring=
6234           defaultval=$wxUSE_ALL_FEATURES
6235           if test -z "$defaultval"; then
6236               if test x"$enablestring" = xdisable; then
6237                   defaultval=yes
6238               else
6239                   defaultval=no
6240               fi
6241           fi
6242
6243           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ole" >&5
6244 echo $ECHO_N "checking for --${enablestring:-enable}-ole... $ECHO_C" >&6; }
6245           # Check whether --enable-ole was given.
6246 if test "${enable_ole+set}" = set; then
6247   enableval=$enable_ole;
6248                           if test "$enableval" = yes; then
6249                             wx_cv_use_ole='wxUSE_OLE=yes'
6250                           else
6251                             wx_cv_use_ole='wxUSE_OLE=no'
6252                           fi
6253
6254 else
6255
6256                           wx_cv_use_ole='wxUSE_OLE=${'DEFAULT_wxUSE_OLE":-$defaultval}"
6257
6258 fi
6259
6260
6261           eval "$wx_cv_use_ole"
6262
6263           if test x"$enablestring" = xdisable; then
6264             if test $wxUSE_OLE = no; then
6265               result=yes
6266             else
6267               result=no
6268             fi
6269           else
6270             result=$wxUSE_OLE
6271           fi
6272
6273           { echo "$as_me:$LINENO: result: $result" >&5
6274 echo "${ECHO_T}$result" >&6; }
6275
6276
6277           enablestring=
6278           defaultval=$wxUSE_ALL_FEATURES
6279           if test -z "$defaultval"; then
6280               if test x"$enablestring" = xdisable; then
6281                   defaultval=yes
6282               else
6283                   defaultval=no
6284               fi
6285           fi
6286
6287           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataobj" >&5
6288 echo $ECHO_N "checking for --${enablestring:-enable}-dataobj... $ECHO_C" >&6; }
6289           # Check whether --enable-dataobj was given.
6290 if test "${enable_dataobj+set}" = set; then
6291   enableval=$enable_dataobj;
6292                           if test "$enableval" = yes; then
6293                             wx_cv_use_dataobj='wxUSE_DATAOBJ=yes'
6294                           else
6295                             wx_cv_use_dataobj='wxUSE_DATAOBJ=no'
6296                           fi
6297
6298 else
6299
6300                           wx_cv_use_dataobj='wxUSE_DATAOBJ=${'DEFAULT_wxUSE_DATAOBJ":-$defaultval}"
6301
6302 fi
6303
6304
6305           eval "$wx_cv_use_dataobj"
6306
6307           if test x"$enablestring" = xdisable; then
6308             if test $wxUSE_DATAOBJ = no; then
6309               result=yes
6310             else
6311               result=no
6312             fi
6313           else
6314             result=$wxUSE_DATAOBJ
6315           fi
6316
6317           { echo "$as_me:$LINENO: result: $result" >&5
6318 echo "${ECHO_T}$result" >&6; }
6319
6320
6321
6322           enablestring=
6323           defaultval=$wxUSE_ALL_FEATURES
6324           if test -z "$defaultval"; then
6325               if test x"$enablestring" = xdisable; then
6326                   defaultval=yes
6327               else
6328                   defaultval=no
6329               fi
6330           fi
6331
6332           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ipc" >&5
6333 echo $ECHO_N "checking for --${enablestring:-enable}-ipc... $ECHO_C" >&6; }
6334           # Check whether --enable-ipc was given.
6335 if test "${enable_ipc+set}" = set; then
6336   enableval=$enable_ipc;
6337                           if test "$enableval" = yes; then
6338                             wx_cv_use_ipc='wxUSE_IPC=yes'
6339                           else
6340                             wx_cv_use_ipc='wxUSE_IPC=no'
6341                           fi
6342
6343 else
6344
6345                           wx_cv_use_ipc='wxUSE_IPC=${'DEFAULT_wxUSE_IPC":-$defaultval}"
6346
6347 fi
6348
6349
6350           eval "$wx_cv_use_ipc"
6351
6352           if test x"$enablestring" = xdisable; then
6353             if test $wxUSE_IPC = no; then
6354               result=yes
6355             else
6356               result=no
6357             fi
6358           else
6359             result=$wxUSE_IPC
6360           fi
6361
6362           { echo "$as_me:$LINENO: result: $result" >&5
6363 echo "${ECHO_T}$result" >&6; }
6364
6365
6366
6367           enablestring=
6368           defaultval=$wxUSE_ALL_FEATURES
6369           if test -z "$defaultval"; then
6370               if test x"$enablestring" = xdisable; then
6371                   defaultval=yes
6372               else
6373                   defaultval=no
6374               fi
6375           fi
6376
6377           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-baseevtloop" >&5
6378 echo $ECHO_N "checking for --${enablestring:-enable}-baseevtloop... $ECHO_C" >&6; }
6379           # Check whether --enable-baseevtloop was given.
6380 if test "${enable_baseevtloop+set}" = set; then
6381   enableval=$enable_baseevtloop;
6382                           if test "$enableval" = yes; then
6383                             wx_cv_use_baseevtloop='wxUSE_CONSOLE_EVENTLOOP=yes'
6384                           else
6385                             wx_cv_use_baseevtloop='wxUSE_CONSOLE_EVENTLOOP=no'
6386                           fi
6387
6388 else
6389
6390                           wx_cv_use_baseevtloop='wxUSE_CONSOLE_EVENTLOOP=${'DEFAULT_wxUSE_CONSOLE_EVENTLOOP":-$defaultval}"
6391
6392 fi
6393
6394
6395           eval "$wx_cv_use_baseevtloop"
6396
6397           if test x"$enablestring" = xdisable; then
6398             if test $wxUSE_CONSOLE_EVENTLOOP = no; then
6399               result=yes
6400             else
6401               result=no
6402             fi
6403           else
6404             result=$wxUSE_CONSOLE_EVENTLOOP
6405           fi
6406
6407           { echo "$as_me:$LINENO: result: $result" >&5
6408 echo "${ECHO_T}$result" >&6; }
6409
6410
6411           enablestring=
6412           defaultval=$wxUSE_ALL_FEATURES
6413           if test -z "$defaultval"; then
6414               if test x"$enablestring" = xdisable; then
6415                   defaultval=yes
6416               else
6417                   defaultval=no
6418               fi
6419           fi
6420
6421           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-epollloop" >&5
6422 echo $ECHO_N "checking for --${enablestring:-enable}-epollloop... $ECHO_C" >&6; }
6423           # Check whether --enable-epollloop was given.
6424 if test "${enable_epollloop+set}" = set; then
6425   enableval=$enable_epollloop;
6426                           if test "$enableval" = yes; then
6427                             wx_cv_use_epollloop='wxUSE_EPOLL_DISPATCHER=yes'
6428                           else
6429                             wx_cv_use_epollloop='wxUSE_EPOLL_DISPATCHER=no'
6430                           fi
6431
6432 else
6433
6434                           wx_cv_use_epollloop='wxUSE_EPOLL_DISPATCHER=${'DEFAULT_wxUSE_EPOLL_DISPATCHER":-$defaultval}"
6435
6436 fi
6437
6438
6439           eval "$wx_cv_use_epollloop"
6440
6441           if test x"$enablestring" = xdisable; then
6442             if test $wxUSE_EPOLL_DISPATCHER = no; then
6443               result=yes
6444             else
6445               result=no
6446             fi
6447           else
6448             result=$wxUSE_EPOLL_DISPATCHER
6449           fi
6450
6451           { echo "$as_me:$LINENO: result: $result" >&5
6452 echo "${ECHO_T}$result" >&6; }
6453
6454
6455           enablestring=
6456           defaultval=$wxUSE_ALL_FEATURES
6457           if test -z "$defaultval"; then
6458               if test x"$enablestring" = xdisable; then
6459                   defaultval=yes
6460               else
6461                   defaultval=no
6462               fi
6463           fi
6464
6465           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-selectloop" >&5
6466 echo $ECHO_N "checking for --${enablestring:-enable}-selectloop... $ECHO_C" >&6; }
6467           # Check whether --enable-selectloop was given.
6468 if test "${enable_selectloop+set}" = set; then
6469   enableval=$enable_selectloop;
6470                           if test "$enableval" = yes; then
6471                             wx_cv_use_selectloop='wxUSE_SELECT_DISPATCHER=yes'
6472                           else
6473                             wx_cv_use_selectloop='wxUSE_SELECT_DISPATCHER=no'
6474                           fi
6475
6476 else
6477
6478                           wx_cv_use_selectloop='wxUSE_SELECT_DISPATCHER=${'DEFAULT_wxUSE_SELECT_DISPATCHER":-$defaultval}"
6479
6480 fi
6481
6482
6483           eval "$wx_cv_use_selectloop"
6484
6485           if test x"$enablestring" = xdisable; then
6486             if test $wxUSE_SELECT_DISPATCHER = no; then
6487               result=yes
6488             else
6489               result=no
6490             fi
6491           else
6492             result=$wxUSE_SELECT_DISPATCHER
6493           fi
6494
6495           { echo "$as_me:$LINENO: result: $result" >&5
6496 echo "${ECHO_T}$result" >&6; }
6497
6498
6499
6500           enablestring=
6501           defaultval=$wxUSE_ALL_FEATURES
6502           if test -z "$defaultval"; then
6503               if test x"$enablestring" = xdisable; then
6504                   defaultval=yes
6505               else
6506                   defaultval=no
6507               fi
6508           fi
6509
6510           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-any" >&5
6511 echo $ECHO_N "checking for --${enablestring:-enable}-any... $ECHO_C" >&6; }
6512           # Check whether --enable-any was given.
6513 if test "${enable_any+set}" = set; then
6514   enableval=$enable_any;
6515                           if test "$enableval" = yes; then
6516                             wx_cv_use_any='wxUSE_ANY=yes'
6517                           else
6518                             wx_cv_use_any='wxUSE_ANY=no'
6519                           fi
6520
6521 else
6522
6523                           wx_cv_use_any='wxUSE_ANY=${'DEFAULT_wxUSE_ANY":-$defaultval}"
6524
6525 fi
6526
6527
6528           eval "$wx_cv_use_any"
6529
6530           if test x"$enablestring" = xdisable; then
6531             if test $wxUSE_ANY = no; then
6532               result=yes
6533             else
6534               result=no
6535             fi
6536           else
6537             result=$wxUSE_ANY
6538           fi
6539
6540           { echo "$as_me:$LINENO: result: $result" >&5
6541 echo "${ECHO_T}$result" >&6; }
6542
6543
6544           enablestring=
6545           defaultval=$wxUSE_ALL_FEATURES
6546           if test -z "$defaultval"; then
6547               if test x"$enablestring" = xdisable; then
6548                   defaultval=yes
6549               else
6550                   defaultval=no
6551               fi
6552           fi
6553
6554           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-apple_ieee" >&5
6555 echo $ECHO_N "checking for --${enablestring:-enable}-apple_ieee... $ECHO_C" >&6; }
6556           # Check whether --enable-apple_ieee was given.
6557 if test "${enable_apple_ieee+set}" = set; then
6558   enableval=$enable_apple_ieee;
6559                           if test "$enableval" = yes; then
6560                             wx_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
6561                           else
6562                             wx_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
6563                           fi
6564
6565 else
6566
6567                           wx_cv_use_apple_ieee='wxUSE_APPLE_IEEE=${'DEFAULT_wxUSE_APPLE_IEEE":-$defaultval}"
6568
6569 fi
6570
6571
6572           eval "$wx_cv_use_apple_ieee"
6573
6574           if test x"$enablestring" = xdisable; then
6575             if test $wxUSE_APPLE_IEEE = no; then
6576               result=yes
6577             else
6578               result=no
6579             fi
6580           else
6581             result=$wxUSE_APPLE_IEEE
6582           fi
6583
6584           { echo "$as_me:$LINENO: result: $result" >&5
6585 echo "${ECHO_T}$result" >&6; }
6586
6587
6588           enablestring=
6589           defaultval=$wxUSE_ALL_FEATURES
6590           if test -z "$defaultval"; then
6591               if test x"$enablestring" = xdisable; then
6592                   defaultval=yes
6593               else
6594                   defaultval=no
6595               fi
6596           fi
6597
6598           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-arcstream" >&5
6599 echo $ECHO_N "checking for --${enablestring:-enable}-arcstream... $ECHO_C" >&6; }
6600           # Check whether --enable-arcstream was given.
6601 if test "${enable_arcstream+set}" = set; then
6602   enableval=$enable_arcstream;
6603                           if test "$enableval" = yes; then
6604                             wx_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=yes'
6605                           else
6606                             wx_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=no'
6607                           fi
6608
6609 else
6610
6611                           wx_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=${'DEFAULT_wxUSE_ARCHIVE_STREAMS":-$defaultval}"
6612
6613 fi
6614
6615
6616           eval "$wx_cv_use_arcstream"
6617
6618           if test x"$enablestring" = xdisable; then
6619             if test $wxUSE_ARCHIVE_STREAMS = no; then
6620               result=yes
6621             else
6622               result=no
6623             fi
6624           else
6625             result=$wxUSE_ARCHIVE_STREAMS
6626           fi
6627
6628           { echo "$as_me:$LINENO: result: $result" >&5
6629 echo "${ECHO_T}$result" >&6; }
6630
6631
6632           enablestring=
6633           defaultval=$wxUSE_ALL_FEATURES
6634           if test -z "$defaultval"; then
6635               if test x"$enablestring" = xdisable; then
6636                   defaultval=yes
6637               else
6638                   defaultval=no
6639               fi
6640           fi
6641
6642           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-base64" >&5
6643 echo $ECHO_N "checking for --${enablestring:-enable}-base64... $ECHO_C" >&6; }
6644           # Check whether --enable-base64 was given.
6645 if test "${enable_base64+set}" = set; then
6646   enableval=$enable_base64;
6647                           if test "$enableval" = yes; then
6648                             wx_cv_use_base64='wxUSE_BASE64=yes'
6649                           else
6650                             wx_cv_use_base64='wxUSE_BASE64=no'
6651                           fi
6652
6653 else
6654
6655                           wx_cv_use_base64='wxUSE_BASE64=${'DEFAULT_wxUSE_BASE64":-$defaultval}"
6656
6657 fi
6658
6659
6660           eval "$wx_cv_use_base64"
6661
6662           if test x"$enablestring" = xdisable; then
6663             if test $wxUSE_BASE64 = no; then
6664               result=yes
6665             else
6666               result=no
6667             fi
6668           else
6669             result=$wxUSE_BASE64
6670           fi
6671
6672           { echo "$as_me:$LINENO: result: $result" >&5
6673 echo "${ECHO_T}$result" >&6; }
6674
6675
6676           enablestring=
6677           defaultval=$wxUSE_ALL_FEATURES
6678           if test -z "$defaultval"; then
6679               if test x"$enablestring" = xdisable; then
6680                   defaultval=yes
6681               else
6682                   defaultval=no
6683               fi
6684           fi
6685
6686           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-backtrace" >&5
6687 echo $ECHO_N "checking for --${enablestring:-enable}-backtrace... $ECHO_C" >&6; }
6688           # Check whether --enable-backtrace was given.
6689 if test "${enable_backtrace+set}" = set; then
6690   enableval=$enable_backtrace;
6691                           if test "$enableval" = yes; then
6692                             wx_cv_use_backtrace='wxUSE_STACKWALKER=yes'
6693                           else
6694                             wx_cv_use_backtrace='wxUSE_STACKWALKER=no'
6695                           fi
6696
6697 else
6698
6699                           wx_cv_use_backtrace='wxUSE_STACKWALKER=${'DEFAULT_wxUSE_STACKWALKER":-$defaultval}"
6700
6701 fi
6702
6703
6704           eval "$wx_cv_use_backtrace"
6705
6706           if test x"$enablestring" = xdisable; then
6707             if test $wxUSE_STACKWALKER = no; then
6708               result=yes
6709             else
6710               result=no
6711             fi
6712           else
6713             result=$wxUSE_STACKWALKER
6714           fi
6715
6716           { echo "$as_me:$LINENO: result: $result" >&5
6717 echo "${ECHO_T}$result" >&6; }
6718
6719
6720           enablestring=
6721           defaultval=$wxUSE_ALL_FEATURES
6722           if test -z "$defaultval"; then
6723               if test x"$enablestring" = xdisable; then
6724                   defaultval=yes
6725               else
6726                   defaultval=no
6727               fi
6728           fi
6729
6730           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-catch_segvs" >&5
6731 echo $ECHO_N "checking for --${enablestring:-enable}-catch_segvs... $ECHO_C" >&6; }
6732           # Check whether --enable-catch_segvs was given.
6733 if test "${enable_catch_segvs+set}" = set; then
6734   enableval=$enable_catch_segvs;
6735                           if test "$enableval" = yes; then
6736                             wx_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
6737                           else
6738                             wx_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
6739                           fi
6740
6741 else
6742
6743                           wx_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=${'DEFAULT_wxUSE_ON_FATAL_EXCEPTION":-$defaultval}"
6744
6745 fi
6746
6747
6748           eval "$wx_cv_use_catch_segvs"
6749
6750           if test x"$enablestring" = xdisable; then
6751             if test $wxUSE_ON_FATAL_EXCEPTION = no; then
6752               result=yes
6753             else
6754               result=no
6755             fi
6756           else
6757             result=$wxUSE_ON_FATAL_EXCEPTION
6758           fi
6759
6760           { echo "$as_me:$LINENO: result: $result" >&5
6761 echo "${ECHO_T}$result" >&6; }
6762
6763
6764           enablestring=
6765           defaultval=$wxUSE_ALL_FEATURES
6766           if test -z "$defaultval"; then
6767               if test x"$enablestring" = xdisable; then
6768                   defaultval=yes
6769               else
6770                   defaultval=no
6771               fi
6772           fi
6773
6774           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-cmdline" >&5
6775 echo $ECHO_N "checking for --${enablestring:-enable}-cmdline... $ECHO_C" >&6; }
6776           # Check whether --enable-cmdline was given.
6777 if test "${enable_cmdline+set}" = set; then
6778   enableval=$enable_cmdline;
6779                           if test "$enableval" = yes; then
6780                             wx_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes'
6781                           else
6782                             wx_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no'
6783                           fi
6784
6785 else
6786
6787                           wx_cv_use_cmdline='wxUSE_CMDLINE_PARSER=${'DEFAULT_wxUSE_CMDLINE_PARSER":-$defaultval}"
6788
6789 fi
6790
6791
6792           eval "$wx_cv_use_cmdline"
6793
6794           if test x"$enablestring" = xdisable; then
6795             if test $wxUSE_CMDLINE_PARSER = no; then
6796               result=yes
6797             else
6798               result=no
6799             fi
6800           else
6801             result=$wxUSE_CMDLINE_PARSER
6802           fi
6803
6804           { echo "$as_me:$LINENO: result: $result" >&5
6805 echo "${ECHO_T}$result" >&6; }
6806
6807
6808           enablestring=
6809           defaultval=$wxUSE_ALL_FEATURES
6810           if test -z "$defaultval"; then
6811               if test x"$enablestring" = xdisable; then
6812                   defaultval=yes
6813               else
6814                   defaultval=no
6815               fi
6816           fi
6817
6818           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datetime" >&5
6819 echo $ECHO_N "checking for --${enablestring:-enable}-datetime... $ECHO_C" >&6; }
6820           # Check whether --enable-datetime was given.
6821 if test "${enable_datetime+set}" = set; then
6822   enableval=$enable_datetime;
6823                           if test "$enableval" = yes; then
6824                             wx_cv_use_datetime='wxUSE_DATETIME=yes'
6825                           else
6826                             wx_cv_use_datetime='wxUSE_DATETIME=no'
6827                           fi
6828
6829 else
6830
6831                           wx_cv_use_datetime='wxUSE_DATETIME=${'DEFAULT_wxUSE_DATETIME":-$defaultval}"
6832
6833 fi
6834
6835
6836           eval "$wx_cv_use_datetime"
6837
6838           if test x"$enablestring" = xdisable; then
6839             if test $wxUSE_DATETIME = no; then
6840               result=yes
6841             else
6842               result=no
6843             fi
6844           else
6845             result=$wxUSE_DATETIME
6846           fi
6847
6848           { echo "$as_me:$LINENO: result: $result" >&5
6849 echo "${ECHO_T}$result" >&6; }
6850
6851
6852           enablestring=
6853           defaultval=$wxUSE_ALL_FEATURES
6854           if test -z "$defaultval"; then
6855               if test x"$enablestring" = xdisable; then
6856                   defaultval=yes
6857               else
6858                   defaultval=no
6859               fi
6860           fi
6861
6862           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debugreport" >&5
6863 echo $ECHO_N "checking for --${enablestring:-enable}-debugreport... $ECHO_C" >&6; }
6864           # Check whether --enable-debugreport was given.
6865 if test "${enable_debugreport+set}" = set; then
6866   enableval=$enable_debugreport;
6867                           if test "$enableval" = yes; then
6868                             wx_cv_use_debugreport='wxUSE_DEBUGREPORT=yes'
6869                           else
6870                             wx_cv_use_debugreport='wxUSE_DEBUGREPORT=no'
6871                           fi
6872
6873 else
6874
6875                           wx_cv_use_debugreport='wxUSE_DEBUGREPORT=${'DEFAULT_wxUSE_DEBUGREPORT":-$defaultval}"
6876
6877 fi
6878
6879
6880           eval "$wx_cv_use_debugreport"
6881
6882           if test x"$enablestring" = xdisable; then
6883             if test $wxUSE_DEBUGREPORT = no; then
6884               result=yes
6885             else
6886               result=no
6887             fi
6888           else
6889             result=$wxUSE_DEBUGREPORT
6890           fi
6891
6892           { echo "$as_me:$LINENO: result: $result" >&5
6893 echo "${ECHO_T}$result" >&6; }
6894
6895
6896           enablestring=
6897           defaultval=$wxUSE_ALL_FEATURES
6898           if test -z "$defaultval"; then
6899               if test x"$enablestring" = xdisable; then
6900                   defaultval=yes
6901               else
6902                   defaultval=no
6903               fi
6904           fi
6905
6906           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dialupman" >&5
6907 echo $ECHO_N "checking for --${enablestring:-enable}-dialupman... $ECHO_C" >&6; }
6908           # Check whether --enable-dialupman was given.
6909 if test "${enable_dialupman+set}" = set; then
6910   enableval=$enable_dialupman;
6911                           if test "$enableval" = yes; then
6912                             wx_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
6913                           else
6914                             wx_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
6915                           fi
6916
6917 else
6918
6919                           wx_cv_use_dialupman='wxUSE_DIALUP_MANAGER=${'DEFAULT_wxUSE_DIALUP_MANAGER":-$defaultval}"
6920
6921 fi
6922
6923
6924           eval "$wx_cv_use_dialupman"
6925
6926           if test x"$enablestring" = xdisable; then
6927             if test $wxUSE_DIALUP_MANAGER = no; then
6928               result=yes
6929             else
6930               result=no
6931             fi
6932           else
6933             result=$wxUSE_DIALUP_MANAGER
6934           fi
6935
6936           { echo "$as_me:$LINENO: result: $result" >&5
6937 echo "${ECHO_T}$result" >&6; }
6938
6939
6940           enablestring=
6941           defaultval=$wxUSE_ALL_FEATURES
6942           if test -z "$defaultval"; then
6943               if test x"$enablestring" = xdisable; then
6944                   defaultval=yes
6945               else
6946                   defaultval=no
6947               fi
6948           fi
6949
6950           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynlib" >&5
6951 echo $ECHO_N "checking for --${enablestring:-enable}-dynlib... $ECHO_C" >&6; }
6952           # Check whether --enable-dynlib was given.
6953 if test "${enable_dynlib+set}" = set; then
6954   enableval=$enable_dynlib;
6955                           if test "$enableval" = yes; then
6956                             wx_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
6957                           else
6958                             wx_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
6959                           fi
6960
6961 else
6962
6963                           wx_cv_use_dynlib='wxUSE_DYNLIB_CLASS=${'DEFAULT_wxUSE_DYNLIB_CLASS":-$defaultval}"
6964
6965 fi
6966
6967
6968           eval "$wx_cv_use_dynlib"
6969
6970           if test x"$enablestring" = xdisable; then
6971             if test $wxUSE_DYNLIB_CLASS = no; then
6972               result=yes
6973             else
6974               result=no
6975             fi
6976           else
6977             result=$wxUSE_DYNLIB_CLASS
6978           fi
6979
6980           { echo "$as_me:$LINENO: result: $result" >&5
6981 echo "${ECHO_T}$result" >&6; }
6982
6983
6984           enablestring=
6985           defaultval=$wxUSE_ALL_FEATURES
6986           if test -z "$defaultval"; then
6987               if test x"$enablestring" = xdisable; then
6988                   defaultval=yes
6989               else
6990                   defaultval=no
6991               fi
6992           fi
6993
6994           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynamicloader" >&5
6995 echo $ECHO_N "checking for --${enablestring:-enable}-dynamicloader... $ECHO_C" >&6; }
6996           # Check whether --enable-dynamicloader was given.
6997 if test "${enable_dynamicloader+set}" = set; then
6998   enableval=$enable_dynamicloader;
6999                           if test "$enableval" = yes; then
7000                             wx_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes'
7001                           else
7002                             wx_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no'
7003                           fi
7004
7005 else
7006
7007                           wx_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=${'DEFAULT_wxUSE_DYNAMIC_LOADER":-$defaultval}"
7008
7009 fi
7010
7011
7012           eval "$wx_cv_use_dynamicloader"
7013
7014           if test x"$enablestring" = xdisable; then
7015             if test $wxUSE_DYNAMIC_LOADER = no; then
7016               result=yes
7017             else
7018               result=no
7019             fi
7020           else
7021             result=$wxUSE_DYNAMIC_LOADER
7022           fi
7023
7024           { echo "$as_me:$LINENO: result: $result" >&5
7025 echo "${ECHO_T}$result" >&6; }
7026
7027
7028           enablestring=
7029           defaultval=$wxUSE_ALL_FEATURES
7030           if test -z "$defaultval"; then
7031               if test x"$enablestring" = xdisable; then
7032                   defaultval=yes
7033               else
7034                   defaultval=no
7035               fi
7036           fi
7037
7038           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-exceptions" >&5
7039 echo $ECHO_N "checking for --${enablestring:-enable}-exceptions... $ECHO_C" >&6; }
7040           # Check whether --enable-exceptions was given.
7041 if test "${enable_exceptions+set}" = set; then
7042   enableval=$enable_exceptions;
7043                           if test "$enableval" = yes; then
7044                             wx_cv_use_exceptions='wxUSE_EXCEPTIONS=yes'
7045                           else
7046                             wx_cv_use_exceptions='wxUSE_EXCEPTIONS=no'
7047                           fi
7048
7049 else
7050
7051                           wx_cv_use_exceptions='wxUSE_EXCEPTIONS=${'DEFAULT_wxUSE_EXCEPTIONS":-$defaultval}"
7052
7053 fi
7054
7055
7056           eval "$wx_cv_use_exceptions"
7057
7058           if test x"$enablestring" = xdisable; then
7059             if test $wxUSE_EXCEPTIONS = no; then
7060               result=yes
7061             else
7062               result=no
7063             fi
7064           else
7065             result=$wxUSE_EXCEPTIONS
7066           fi
7067
7068           { echo "$as_me:$LINENO: result: $result" >&5
7069 echo "${ECHO_T}$result" >&6; }
7070
7071
7072           enablestring=
7073           defaultval=$wxUSE_ALL_FEATURES
7074           if test -z "$defaultval"; then
7075               if test x"$enablestring" = xdisable; then
7076                   defaultval=yes
7077               else
7078                   defaultval=no
7079               fi
7080           fi
7081
7082           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ffile" >&5
7083 echo $ECHO_N "checking for --${enablestring:-enable}-ffile... $ECHO_C" >&6; }
7084           # Check whether --enable-ffile was given.
7085 if test "${enable_ffile+set}" = set; then
7086   enableval=$enable_ffile;
7087                           if test "$enableval" = yes; then
7088                             wx_cv_use_ffile='wxUSE_FFILE=yes'
7089                           else
7090                             wx_cv_use_ffile='wxUSE_FFILE=no'
7091                           fi
7092
7093 else
7094
7095                           wx_cv_use_ffile='wxUSE_FFILE=${'DEFAULT_wxUSE_FFILE":-$defaultval}"
7096
7097 fi
7098
7099
7100           eval "$wx_cv_use_ffile"
7101
7102           if test x"$enablestring" = xdisable; then
7103             if test $wxUSE_FFILE = no; then
7104               result=yes
7105             else
7106               result=no
7107             fi
7108           else
7109             result=$wxUSE_FFILE
7110           fi
7111
7112           { echo "$as_me:$LINENO: result: $result" >&5
7113 echo "${ECHO_T}$result" >&6; }
7114
7115
7116           enablestring=
7117           defaultval=$wxUSE_ALL_FEATURES
7118           if test -z "$defaultval"; then
7119               if test x"$enablestring" = xdisable; then
7120                   defaultval=yes
7121               else
7122                   defaultval=no
7123               fi
7124           fi
7125
7126           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-file" >&5
7127 echo $ECHO_N "checking for --${enablestring:-enable}-file... $ECHO_C" >&6; }
7128           # Check whether --enable-file was given.
7129 if test "${enable_file+set}" = set; then
7130   enableval=$enable_file;
7131                           if test "$enableval" = yes; then
7132                             wx_cv_use_file='wxUSE_FILE=yes'
7133                           else
7134                             wx_cv_use_file='wxUSE_FILE=no'
7135                           fi
7136
7137 else
7138
7139                           wx_cv_use_file='wxUSE_FILE=${'DEFAULT_wxUSE_FILE":-$defaultval}"
7140
7141 fi
7142
7143
7144           eval "$wx_cv_use_file"
7145
7146           if test x"$enablestring" = xdisable; then
7147             if test $wxUSE_FILE = no; then
7148               result=yes
7149             else
7150               result=no
7151             fi
7152           else
7153             result=$wxUSE_FILE
7154           fi
7155
7156           { echo "$as_me:$LINENO: result: $result" >&5
7157 echo "${ECHO_T}$result" >&6; }
7158
7159
7160           enablestring=
7161           defaultval=$wxUSE_ALL_FEATURES
7162           if test -z "$defaultval"; then
7163               if test x"$enablestring" = xdisable; then
7164                   defaultval=yes
7165               else
7166                   defaultval=no
7167               fi
7168           fi
7169
7170           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filehistory" >&5
7171 echo $ECHO_N "checking for --${enablestring:-enable}-filehistory... $ECHO_C" >&6; }
7172           # Check whether --enable-filehistory was given.
7173 if test "${enable_filehistory+set}" = set; then
7174   enableval=$enable_filehistory;
7175                           if test "$enableval" = yes; then
7176                             wx_cv_use_filehistory='wxUSE_FILE_HISTORY=yes'
7177                           else
7178                             wx_cv_use_filehistory='wxUSE_FILE_HISTORY=no'
7179                           fi
7180
7181 else
7182
7183                           wx_cv_use_filehistory='wxUSE_FILE_HISTORY=${'DEFAULT_wxUSE_FILE_HISTORY":-$defaultval}"
7184
7185 fi
7186
7187
7188           eval "$wx_cv_use_filehistory"
7189
7190           if test x"$enablestring" = xdisable; then
7191             if test $wxUSE_FILE_HISTORY = no; then
7192               result=yes
7193             else
7194               result=no
7195             fi
7196           else
7197             result=$wxUSE_FILE_HISTORY
7198           fi
7199
7200           { echo "$as_me:$LINENO: result: $result" >&5
7201 echo "${ECHO_T}$result" >&6; }
7202
7203
7204           enablestring=
7205           defaultval=$wxUSE_ALL_FEATURES
7206           if test -z "$defaultval"; then
7207               if test x"$enablestring" = xdisable; then
7208                   defaultval=yes
7209               else
7210                   defaultval=no
7211               fi
7212           fi
7213
7214           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filesystem" >&5
7215 echo $ECHO_N "checking for --${enablestring:-enable}-filesystem... $ECHO_C" >&6; }
7216           # Check whether --enable-filesystem was given.
7217 if test "${enable_filesystem+set}" = set; then
7218   enableval=$enable_filesystem;
7219                           if test "$enableval" = yes; then
7220                             wx_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
7221                           else
7222                             wx_cv_use_filesystem='wxUSE_FILESYSTEM=no'
7223                           fi
7224
7225 else
7226
7227                           wx_cv_use_filesystem='wxUSE_FILESYSTEM=${'DEFAULT_wxUSE_FILESYSTEM":-$defaultval}"
7228
7229 fi
7230
7231
7232           eval "$wx_cv_use_filesystem"
7233
7234           if test x"$enablestring" = xdisable; then
7235             if test $wxUSE_FILESYSTEM = no; then
7236               result=yes
7237             else
7238               result=no
7239             fi
7240           else
7241             result=$wxUSE_FILESYSTEM
7242           fi
7243
7244           { echo "$as_me:$LINENO: result: $result" >&5
7245 echo "${ECHO_T}$result" >&6; }
7246
7247
7248           enablestring=
7249           defaultval=$wxUSE_ALL_FEATURES
7250           if test -z "$defaultval"; then
7251               if test x"$enablestring" = xdisable; then
7252                   defaultval=yes
7253               else
7254                   defaultval=no
7255               fi
7256           fi
7257
7258           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontenum" >&5
7259 echo $ECHO_N "checking for --${enablestring:-enable}-fontenum... $ECHO_C" >&6; }
7260           # Check whether --enable-fontenum was given.
7261 if test "${enable_fontenum+set}" = set; then
7262   enableval=$enable_fontenum;
7263                           if test "$enableval" = yes; then
7264                             wx_cv_use_fontenum='wxUSE_FONTENUM=yes'
7265                           else
7266                             wx_cv_use_fontenum='wxUSE_FONTENUM=no'
7267                           fi
7268
7269 else
7270
7271                           wx_cv_use_fontenum='wxUSE_FONTENUM=${'DEFAULT_wxUSE_FONTENUM":-$defaultval}"
7272
7273 fi
7274
7275
7276           eval "$wx_cv_use_fontenum"
7277
7278           if test x"$enablestring" = xdisable; then
7279             if test $wxUSE_FONTENUM = no; then
7280               result=yes
7281             else
7282               result=no
7283             fi
7284           else
7285             result=$wxUSE_FONTENUM
7286           fi
7287
7288           { echo "$as_me:$LINENO: result: $result" >&5
7289 echo "${ECHO_T}$result" >&6; }
7290
7291
7292           enablestring=
7293           defaultval=$wxUSE_ALL_FEATURES
7294           if test -z "$defaultval"; then
7295               if test x"$enablestring" = xdisable; then
7296                   defaultval=yes
7297               else
7298                   defaultval=no
7299               fi
7300           fi
7301
7302           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontmap" >&5
7303 echo $ECHO_N "checking for --${enablestring:-enable}-fontmap... $ECHO_C" >&6; }
7304           # Check whether --enable-fontmap was given.
7305 if test "${enable_fontmap+set}" = set; then
7306   enableval=$enable_fontmap;
7307                           if test "$enableval" = yes; then
7308                             wx_cv_use_fontmap='wxUSE_FONTMAP=yes'
7309                           else
7310                             wx_cv_use_fontmap='wxUSE_FONTMAP=no'
7311                           fi
7312
7313 else
7314
7315                           wx_cv_use_fontmap='wxUSE_FONTMAP=${'DEFAULT_wxUSE_FONTMAP":-$defaultval}"
7316
7317 fi
7318
7319
7320           eval "$wx_cv_use_fontmap"
7321
7322           if test x"$enablestring" = xdisable; then
7323             if test $wxUSE_FONTMAP = no; then
7324               result=yes
7325             else
7326               result=no
7327             fi
7328           else
7329             result=$wxUSE_FONTMAP
7330           fi
7331
7332           { echo "$as_me:$LINENO: result: $result" >&5
7333 echo "${ECHO_T}$result" >&6; }
7334
7335
7336           enablestring=
7337           defaultval=$wxUSE_ALL_FEATURES
7338           if test -z "$defaultval"; then
7339               if test x"$enablestring" = xdisable; then
7340                   defaultval=yes
7341               else
7342                   defaultval=no
7343               fi
7344           fi
7345
7346           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_archive" >&5
7347 echo $ECHO_N "checking for --${enablestring:-enable}-fs_archive... $ECHO_C" >&6; }
7348           # Check whether --enable-fs_archive was given.
7349 if test "${enable_fs_archive+set}" = set; then
7350   enableval=$enable_fs_archive;
7351                           if test "$enableval" = yes; then
7352                             wx_cv_use_fs_archive='wxUSE_FS_ARCHIVE=yes'
7353                           else
7354                             wx_cv_use_fs_archive='wxUSE_FS_ARCHIVE=no'
7355                           fi
7356
7357 else
7358
7359                           wx_cv_use_fs_archive='wxUSE_FS_ARCHIVE=${'DEFAULT_wxUSE_FS_ARCHIVE":-$defaultval}"
7360
7361 fi
7362
7363
7364           eval "$wx_cv_use_fs_archive"
7365
7366           if test x"$enablestring" = xdisable; then
7367             if test $wxUSE_FS_ARCHIVE = no; then
7368               result=yes
7369             else
7370               result=no
7371             fi
7372           else
7373             result=$wxUSE_FS_ARCHIVE
7374           fi
7375
7376           { echo "$as_me:$LINENO: result: $result" >&5
7377 echo "${ECHO_T}$result" >&6; }
7378
7379
7380           enablestring=
7381           defaultval=$wxUSE_ALL_FEATURES
7382           if test -z "$defaultval"; then
7383               if test x"$enablestring" = xdisable; then
7384                   defaultval=yes
7385               else
7386                   defaultval=no
7387               fi
7388           fi
7389
7390           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_inet" >&5
7391 echo $ECHO_N "checking for --${enablestring:-enable}-fs_inet... $ECHO_C" >&6; }
7392           # Check whether --enable-fs_inet was given.
7393 if test "${enable_fs_inet+set}" = set; then
7394   enableval=$enable_fs_inet;
7395                           if test "$enableval" = yes; then
7396                             wx_cv_use_fs_inet='wxUSE_FS_INET=yes'
7397                           else
7398                             wx_cv_use_fs_inet='wxUSE_FS_INET=no'
7399                           fi
7400
7401 else
7402
7403                           wx_cv_use_fs_inet='wxUSE_FS_INET=${'DEFAULT_wxUSE_FS_INET":-$defaultval}"
7404
7405 fi
7406
7407
7408           eval "$wx_cv_use_fs_inet"
7409
7410           if test x"$enablestring" = xdisable; then
7411             if test $wxUSE_FS_INET = no; then
7412               result=yes
7413             else
7414               result=no
7415             fi
7416           else
7417             result=$wxUSE_FS_INET
7418           fi
7419
7420           { echo "$as_me:$LINENO: result: $result" >&5
7421 echo "${ECHO_T}$result" >&6; }
7422
7423
7424           enablestring=
7425           defaultval=$wxUSE_ALL_FEATURES
7426           if test -z "$defaultval"; then
7427               if test x"$enablestring" = xdisable; then
7428                   defaultval=yes
7429               else
7430                   defaultval=no
7431               fi
7432           fi
7433
7434           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_zip" >&5
7435 echo $ECHO_N "checking for --${enablestring:-enable}-fs_zip... $ECHO_C" >&6; }
7436           # Check whether --enable-fs_zip was given.
7437 if test "${enable_fs_zip+set}" = set; then
7438   enableval=$enable_fs_zip;
7439                           if test "$enableval" = yes; then
7440                             wx_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
7441                           else
7442                             wx_cv_use_fs_zip='wxUSE_FS_ZIP=no'
7443                           fi
7444
7445 else
7446
7447                           wx_cv_use_fs_zip='wxUSE_FS_ZIP=${'DEFAULT_wxUSE_FS_ZIP":-$defaultval}"
7448
7449 fi
7450
7451
7452           eval "$wx_cv_use_fs_zip"
7453
7454           if test x"$enablestring" = xdisable; then
7455             if test $wxUSE_FS_ZIP = no; then
7456               result=yes
7457             else
7458               result=no
7459             fi
7460           else
7461             result=$wxUSE_FS_ZIP
7462           fi
7463
7464           { echo "$as_me:$LINENO: result: $result" >&5
7465 echo "${ECHO_T}$result" >&6; }
7466
7467
7468           enablestring=
7469           defaultval=$wxUSE_ALL_FEATURES
7470           if test -z "$defaultval"; then
7471               if test x"$enablestring" = xdisable; then
7472                   defaultval=yes
7473               else
7474                   defaultval=no
7475               fi
7476           fi
7477
7478           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fswatcher" >&5
7479 echo $ECHO_N "checking for --${enablestring:-enable}-fswatcher... $ECHO_C" >&6; }
7480           # Check whether --enable-fswatcher was given.
7481 if test "${enable_fswatcher+set}" = set; then
7482   enableval=$enable_fswatcher;
7483                           if test "$enableval" = yes; then
7484                             wx_cv_use_fswatcher='wxUSE_FSWATCHER=yes'
7485                           else
7486                             wx_cv_use_fswatcher='wxUSE_FSWATCHER=no'
7487                           fi
7488
7489 else
7490
7491                           wx_cv_use_fswatcher='wxUSE_FSWATCHER=${'DEFAULT_wxUSE_FSWATCHER":-$defaultval}"
7492
7493 fi
7494
7495
7496           eval "$wx_cv_use_fswatcher"
7497
7498           if test x"$enablestring" = xdisable; then
7499             if test $wxUSE_FSWATCHER = no; then
7500               result=yes
7501             else
7502               result=no
7503             fi
7504           else
7505             result=$wxUSE_FSWATCHER
7506           fi
7507
7508           { echo "$as_me:$LINENO: result: $result" >&5
7509 echo "${ECHO_T}$result" >&6; }
7510
7511
7512           enablestring=
7513           defaultval=$wxUSE_ALL_FEATURES
7514           if test -z "$defaultval"; then
7515               if test x"$enablestring" = xdisable; then
7516                   defaultval=yes
7517               else
7518                   defaultval=no
7519               fi
7520           fi
7521
7522           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-geometry" >&5
7523 echo $ECHO_N "checking for --${enablestring:-enable}-geometry... $ECHO_C" >&6; }
7524           # Check whether --enable-geometry was given.
7525 if test "${enable_geometry+set}" = set; then
7526   enableval=$enable_geometry;
7527                           if test "$enableval" = yes; then
7528                             wx_cv_use_geometry='wxUSE_GEOMETRY=yes'
7529                           else
7530                             wx_cv_use_geometry='wxUSE_GEOMETRY=no'
7531                           fi
7532
7533 else
7534
7535                           wx_cv_use_geometry='wxUSE_GEOMETRY=${'DEFAULT_wxUSE_GEOMETRY":-$defaultval}"
7536
7537 fi
7538
7539
7540           eval "$wx_cv_use_geometry"
7541
7542           if test x"$enablestring" = xdisable; then
7543             if test $wxUSE_GEOMETRY = no; then
7544               result=yes
7545             else
7546               result=no
7547             fi
7548           else
7549             result=$wxUSE_GEOMETRY
7550           fi
7551
7552           { echo "$as_me:$LINENO: result: $result" >&5
7553 echo "${ECHO_T}$result" >&6; }
7554
7555
7556           enablestring=
7557           defaultval=$wxUSE_ALL_FEATURES
7558           if test -z "$defaultval"; then
7559               if test x"$enablestring" = xdisable; then
7560                   defaultval=yes
7561               else
7562                   defaultval=no
7563               fi
7564           fi
7565
7566           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-log" >&5
7567 echo $ECHO_N "checking for --${enablestring:-enable}-log... $ECHO_C" >&6; }
7568           # Check whether --enable-log was given.
7569 if test "${enable_log+set}" = set; then
7570   enableval=$enable_log;
7571                           if test "$enableval" = yes; then
7572                             wx_cv_use_log='wxUSE_LOG=yes'
7573                           else
7574                             wx_cv_use_log='wxUSE_LOG=no'
7575                           fi
7576
7577 else
7578
7579                           wx_cv_use_log='wxUSE_LOG=${'DEFAULT_wxUSE_LOG":-$defaultval}"
7580
7581 fi
7582
7583
7584           eval "$wx_cv_use_log"
7585
7586           if test x"$enablestring" = xdisable; then
7587             if test $wxUSE_LOG = no; then
7588               result=yes
7589             else
7590               result=no
7591             fi
7592           else
7593             result=$wxUSE_LOG
7594           fi
7595
7596           { echo "$as_me:$LINENO: result: $result" >&5
7597 echo "${ECHO_T}$result" >&6; }
7598
7599
7600           enablestring=
7601           defaultval=$wxUSE_ALL_FEATURES
7602           if test -z "$defaultval"; then
7603               if test x"$enablestring" = xdisable; then
7604                   defaultval=yes
7605               else
7606                   defaultval=no
7607               fi
7608           fi
7609
7610           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-longlong" >&5
7611 echo $ECHO_N "checking for --${enablestring:-enable}-longlong... $ECHO_C" >&6; }
7612           # Check whether --enable-longlong was given.
7613 if test "${enable_longlong+set}" = set; then
7614   enableval=$enable_longlong;
7615                           if test "$enableval" = yes; then
7616                             wx_cv_use_longlong='wxUSE_LONGLONG=yes'
7617                           else
7618                             wx_cv_use_longlong='wxUSE_LONGLONG=no'
7619                           fi
7620
7621 else
7622
7623                           wx_cv_use_longlong='wxUSE_LONGLONG=${'DEFAULT_wxUSE_LONGLONG":-$defaultval}"
7624
7625 fi
7626
7627
7628           eval "$wx_cv_use_longlong"
7629
7630           if test x"$enablestring" = xdisable; then
7631             if test $wxUSE_LONGLONG = no; then
7632               result=yes
7633             else
7634               result=no
7635             fi
7636           else
7637             result=$wxUSE_LONGLONG
7638           fi
7639
7640           { echo "$as_me:$LINENO: result: $result" >&5
7641 echo "${ECHO_T}$result" >&6; }
7642
7643
7644           enablestring=
7645           defaultval=$wxUSE_ALL_FEATURES
7646           if test -z "$defaultval"; then
7647               if test x"$enablestring" = xdisable; then
7648                   defaultval=yes
7649               else
7650                   defaultval=no
7651               fi
7652           fi
7653
7654           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mimetype" >&5
7655 echo $ECHO_N "checking for --${enablestring:-enable}-mimetype... $ECHO_C" >&6; }
7656           # Check whether --enable-mimetype was given.
7657 if test "${enable_mimetype+set}" = set; then
7658   enableval=$enable_mimetype;
7659                           if test "$enableval" = yes; then
7660                             wx_cv_use_mimetype='wxUSE_MIMETYPE=yes'
7661                           else
7662                             wx_cv_use_mimetype='wxUSE_MIMETYPE=no'
7663                           fi
7664
7665 else
7666
7667                           wx_cv_use_mimetype='wxUSE_MIMETYPE=${'DEFAULT_wxUSE_MIMETYPE":-$defaultval}"
7668
7669 fi
7670
7671
7672           eval "$wx_cv_use_mimetype"
7673
7674           if test x"$enablestring" = xdisable; then
7675             if test $wxUSE_MIMETYPE = no; then
7676               result=yes
7677             else
7678               result=no
7679             fi
7680           else
7681             result=$wxUSE_MIMETYPE
7682           fi
7683
7684           { echo "$as_me:$LINENO: result: $result" >&5
7685 echo "${ECHO_T}$result" >&6; }
7686
7687
7688           enablestring=
7689           defaultval=$wxUSE_ALL_FEATURES
7690           if test -z "$defaultval"; then
7691               if test x"$enablestring" = xdisable; then
7692                   defaultval=yes
7693               else
7694                   defaultval=no
7695               fi
7696           fi
7697
7698           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printfposparam" >&5
7699 echo $ECHO_N "checking for --${enablestring:-enable}-printfposparam... $ECHO_C" >&6; }
7700           # Check whether --enable-printfposparam was given.
7701 if test "${enable_printfposparam+set}" = set; then
7702   enableval=$enable_printfposparam;
7703                           if test "$enableval" = yes; then
7704                             wx_cv_use_printfposparam='wxUSE_PRINTF_POS_PARAMS=yes'
7705                           else
7706                             wx_cv_use_printfposparam='wxUSE_PRINTF_POS_PARAMS=no'
7707                           fi
7708
7709 else
7710
7711                           wx_cv_use_printfposparam='wxUSE_PRINTF_POS_PARAMS=${'DEFAULT_wxUSE_PRINTF_POS_PARAMS":-$defaultval}"
7712
7713 fi
7714
7715
7716           eval "$wx_cv_use_printfposparam"
7717
7718           if test x"$enablestring" = xdisable; then
7719             if test $wxUSE_PRINTF_POS_PARAMS = no; then
7720               result=yes
7721             else
7722               result=no
7723             fi
7724           else
7725             result=$wxUSE_PRINTF_POS_PARAMS
7726           fi
7727
7728           { echo "$as_me:$LINENO: result: $result" >&5
7729 echo "${ECHO_T}$result" >&6; }
7730
7731
7732           enablestring=
7733           defaultval=$wxUSE_ALL_FEATURES
7734           if test -z "$defaultval"; then
7735               if test x"$enablestring" = xdisable; then
7736                   defaultval=yes
7737               else
7738                   defaultval=no
7739               fi
7740           fi
7741
7742           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-snglinst" >&5
7743 echo $ECHO_N "checking for --${enablestring:-enable}-snglinst... $ECHO_C" >&6; }
7744           # Check whether --enable-snglinst was given.
7745 if test "${enable_snglinst+set}" = set; then
7746   enableval=$enable_snglinst;
7747                           if test "$enableval" = yes; then
7748                             wx_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
7749                           else
7750                             wx_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
7751                           fi
7752
7753 else
7754
7755                           wx_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=${'DEFAULT_wxUSE_SNGLINST_CHECKER":-$defaultval}"
7756
7757 fi
7758
7759
7760           eval "$wx_cv_use_snglinst"
7761
7762           if test x"$enablestring" = xdisable; then
7763             if test $wxUSE_SNGLINST_CHECKER = no; then
7764               result=yes
7765             else
7766               result=no
7767             fi
7768           else
7769             result=$wxUSE_SNGLINST_CHECKER
7770           fi
7771
7772           { echo "$as_me:$LINENO: result: $result" >&5
7773 echo "${ECHO_T}$result" >&6; }
7774
7775
7776           enablestring=
7777           defaultval=$wxUSE_ALL_FEATURES
7778           if test -z "$defaultval"; then
7779               if test x"$enablestring" = xdisable; then
7780                   defaultval=yes
7781               else
7782                   defaultval=no
7783               fi
7784           fi
7785
7786           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sound" >&5
7787 echo $ECHO_N "checking for --${enablestring:-enable}-sound... $ECHO_C" >&6; }
7788           # Check whether --enable-sound was given.
7789 if test "${enable_sound+set}" = set; then
7790   enableval=$enable_sound;
7791                           if test "$enableval" = yes; then
7792                             wx_cv_use_sound='wxUSE_SOUND=yes'
7793                           else
7794                             wx_cv_use_sound='wxUSE_SOUND=no'
7795                           fi
7796
7797 else
7798
7799                           wx_cv_use_sound='wxUSE_SOUND=${'DEFAULT_wxUSE_SOUND":-$defaultval}"
7800
7801 fi
7802
7803
7804           eval "$wx_cv_use_sound"
7805
7806           if test x"$enablestring" = xdisable; then
7807             if test $wxUSE_SOUND = no; then
7808               result=yes
7809             else
7810               result=no
7811             fi
7812           else
7813             result=$wxUSE_SOUND
7814           fi
7815
7816           { echo "$as_me:$LINENO: result: $result" >&5
7817 echo "${ECHO_T}$result" >&6; }
7818
7819
7820           enablestring=
7821           defaultval=$wxUSE_ALL_FEATURES
7822           if test -z "$defaultval"; then
7823               if test x"$enablestring" = xdisable; then
7824                   defaultval=yes
7825               else
7826                   defaultval=no
7827               fi
7828           fi
7829
7830           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stdpaths" >&5
7831 echo $ECHO_N "checking for --${enablestring:-enable}-stdpaths... $ECHO_C" >&6; }
7832           # Check whether --enable-stdpaths was given.
7833 if test "${enable_stdpaths+set}" = set; then
7834   enableval=$enable_stdpaths;
7835                           if test "$enableval" = yes; then
7836                             wx_cv_use_stdpaths='wxUSE_STDPATHS=yes'
7837                           else
7838                             wx_cv_use_stdpaths='wxUSE_STDPATHS=no'
7839                           fi
7840
7841 else
7842
7843                           wx_cv_use_stdpaths='wxUSE_STDPATHS=${'DEFAULT_wxUSE_STDPATHS":-$defaultval}"
7844
7845 fi
7846
7847
7848           eval "$wx_cv_use_stdpaths"
7849
7850           if test x"$enablestring" = xdisable; then
7851             if test $wxUSE_STDPATHS = no; then
7852               result=yes
7853             else
7854               result=no
7855             fi
7856           else
7857             result=$wxUSE_STDPATHS
7858           fi
7859
7860           { echo "$as_me:$LINENO: result: $result" >&5
7861 echo "${ECHO_T}$result" >&6; }
7862
7863
7864           enablestring=
7865           defaultval=$wxUSE_ALL_FEATURES
7866           if test -z "$defaultval"; then
7867               if test x"$enablestring" = xdisable; then
7868                   defaultval=yes
7869               else
7870                   defaultval=no
7871               fi
7872           fi
7873
7874           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stopwatch" >&5
7875 echo $ECHO_N "checking for --${enablestring:-enable}-stopwatch... $ECHO_C" >&6; }
7876           # Check whether --enable-stopwatch was given.
7877 if test "${enable_stopwatch+set}" = set; then
7878   enableval=$enable_stopwatch;
7879                           if test "$enableval" = yes; then
7880                             wx_cv_use_stopwatch='wxUSE_STOPWATCH=yes'
7881                           else
7882                             wx_cv_use_stopwatch='wxUSE_STOPWATCH=no'
7883                           fi
7884
7885 else
7886
7887                           wx_cv_use_stopwatch='wxUSE_STOPWATCH=${'DEFAULT_wxUSE_STOPWATCH":-$defaultval}"
7888
7889 fi
7890
7891
7892           eval "$wx_cv_use_stopwatch"
7893
7894           if test x"$enablestring" = xdisable; then
7895             if test $wxUSE_STOPWATCH = no; then
7896               result=yes
7897             else
7898               result=no
7899             fi
7900           else
7901             result=$wxUSE_STOPWATCH
7902           fi
7903
7904           { echo "$as_me:$LINENO: result: $result" >&5
7905 echo "${ECHO_T}$result" >&6; }
7906
7907
7908           enablestring=
7909           defaultval=$wxUSE_ALL_FEATURES
7910           if test -z "$defaultval"; then
7911               if test x"$enablestring" = xdisable; then
7912                   defaultval=yes
7913               else
7914                   defaultval=no
7915               fi
7916           fi
7917
7918           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-streams" >&5
7919 echo $ECHO_N "checking for --${enablestring:-enable}-streams... $ECHO_C" >&6; }
7920           # Check whether --enable-streams was given.
7921 if test "${enable_streams+set}" = set; then
7922   enableval=$enable_streams;
7923                           if test "$enableval" = yes; then
7924                             wx_cv_use_streams='wxUSE_STREAMS=yes'
7925                           else
7926                             wx_cv_use_streams='wxUSE_STREAMS=no'
7927                           fi
7928
7929 else
7930
7931                           wx_cv_use_streams='wxUSE_STREAMS=${'DEFAULT_wxUSE_STREAMS":-$defaultval}"
7932
7933 fi
7934
7935
7936           eval "$wx_cv_use_streams"
7937
7938           if test x"$enablestring" = xdisable; then
7939             if test $wxUSE_STREAMS = no; then
7940               result=yes
7941             else
7942               result=no
7943             fi
7944           else
7945             result=$wxUSE_STREAMS
7946           fi
7947
7948           { echo "$as_me:$LINENO: result: $result" >&5
7949 echo "${ECHO_T}$result" >&6; }
7950
7951
7952           enablestring=
7953           defaultval=$wxUSE_ALL_FEATURES
7954           if test -z "$defaultval"; then
7955               if test x"$enablestring" = xdisable; then
7956                   defaultval=yes
7957               else
7958                   defaultval=no
7959               fi
7960           fi
7961
7962           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sysoptions" >&5
7963 echo $ECHO_N "checking for --${enablestring:-enable}-sysoptions... $ECHO_C" >&6; }
7964           # Check whether --enable-sysoptions was given.
7965 if test "${enable_sysoptions+set}" = set; then
7966   enableval=$enable_sysoptions;
7967                           if test "$enableval" = yes; then
7968                             wx_cv_use_sysoptions='wxUSE_SYSTEM_OPTIONS=yes'
7969                           else
7970                             wx_cv_use_sysoptions='wxUSE_SYSTEM_OPTIONS=no'
7971                           fi
7972
7973 else
7974
7975                           wx_cv_use_sysoptions='wxUSE_SYSTEM_OPTIONS=${'DEFAULT_wxUSE_SYSTEM_OPTIONS":-$defaultval}"
7976
7977 fi
7978
7979
7980           eval "$wx_cv_use_sysoptions"
7981
7982           if test x"$enablestring" = xdisable; then
7983             if test $wxUSE_SYSTEM_OPTIONS = no; then
7984               result=yes
7985             else
7986               result=no
7987             fi
7988           else
7989             result=$wxUSE_SYSTEM_OPTIONS
7990           fi
7991
7992           { echo "$as_me:$LINENO: result: $result" >&5
7993 echo "${ECHO_T}$result" >&6; }
7994
7995
7996           enablestring=
7997           defaultval=$wxUSE_ALL_FEATURES
7998           if test -z "$defaultval"; then
7999               if test x"$enablestring" = xdisable; then
8000                   defaultval=yes
8001               else
8002                   defaultval=no
8003               fi
8004           fi
8005
8006           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tarstream" >&5
8007 echo $ECHO_N "checking for --${enablestring:-enable}-tarstream... $ECHO_C" >&6; }
8008           # Check whether --enable-tarstream was given.
8009 if test "${enable_tarstream+set}" = set; then
8010   enableval=$enable_tarstream;
8011                           if test "$enableval" = yes; then
8012                             wx_cv_use_tarstream='wxUSE_TARSTREAM=yes'
8013                           else
8014                             wx_cv_use_tarstream='wxUSE_TARSTREAM=no'
8015                           fi
8016
8017 else
8018
8019                           wx_cv_use_tarstream='wxUSE_TARSTREAM=${'DEFAULT_wxUSE_TARSTREAM":-$defaultval}"
8020
8021 fi
8022
8023
8024           eval "$wx_cv_use_tarstream"
8025
8026           if test x"$enablestring" = xdisable; then
8027             if test $wxUSE_TARSTREAM = no; then
8028               result=yes
8029             else
8030               result=no
8031             fi
8032           else
8033             result=$wxUSE_TARSTREAM
8034           fi
8035
8036           { echo "$as_me:$LINENO: result: $result" >&5
8037 echo "${ECHO_T}$result" >&6; }
8038
8039
8040           enablestring=
8041           defaultval=$wxUSE_ALL_FEATURES
8042           if test -z "$defaultval"; then
8043               if test x"$enablestring" = xdisable; then
8044                   defaultval=yes
8045               else
8046                   defaultval=no
8047               fi
8048           fi
8049
8050           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textbuf" >&5
8051 echo $ECHO_N "checking for --${enablestring:-enable}-textbuf... $ECHO_C" >&6; }
8052           # Check whether --enable-textbuf was given.
8053 if test "${enable_textbuf+set}" = set; then
8054   enableval=$enable_textbuf;
8055                           if test "$enableval" = yes; then
8056                             wx_cv_use_textbuf='wxUSE_TEXTBUFFER=yes'
8057                           else
8058                             wx_cv_use_textbuf='wxUSE_TEXTBUFFER=no'
8059                           fi
8060
8061 else
8062
8063                           wx_cv_use_textbuf='wxUSE_TEXTBUFFER=${'DEFAULT_wxUSE_TEXTBUFFER":-$defaultval}"
8064
8065 fi
8066
8067
8068           eval "$wx_cv_use_textbuf"
8069
8070           if test x"$enablestring" = xdisable; then
8071             if test $wxUSE_TEXTBUFFER = no; then
8072               result=yes
8073             else
8074               result=no
8075             fi
8076           else
8077             result=$wxUSE_TEXTBUFFER
8078           fi
8079
8080           { echo "$as_me:$LINENO: result: $result" >&5
8081 echo "${ECHO_T}$result" >&6; }
8082
8083
8084           enablestring=
8085           defaultval=$wxUSE_ALL_FEATURES
8086           if test -z "$defaultval"; then
8087               if test x"$enablestring" = xdisable; then
8088                   defaultval=yes
8089               else
8090                   defaultval=no
8091               fi
8092           fi
8093
8094           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textfile" >&5
8095 echo $ECHO_N "checking for --${enablestring:-enable}-textfile... $ECHO_C" >&6; }
8096           # Check whether --enable-textfile was given.
8097 if test "${enable_textfile+set}" = set; then
8098   enableval=$enable_textfile;
8099                           if test "$enableval" = yes; then
8100                             wx_cv_use_textfile='wxUSE_TEXTFILE=yes'
8101                           else
8102                             wx_cv_use_textfile='wxUSE_TEXTFILE=no'
8103                           fi
8104
8105 else
8106
8107                           wx_cv_use_textfile='wxUSE_TEXTFILE=${'DEFAULT_wxUSE_TEXTFILE":-$defaultval}"
8108
8109 fi
8110
8111
8112           eval "$wx_cv_use_textfile"
8113
8114           if test x"$enablestring" = xdisable; then
8115             if test $wxUSE_TEXTFILE = no; then
8116               result=yes
8117             else
8118               result=no
8119             fi
8120           else
8121             result=$wxUSE_TEXTFILE
8122           fi
8123
8124           { echo "$as_me:$LINENO: result: $result" >&5
8125 echo "${ECHO_T}$result" >&6; }
8126
8127
8128           enablestring=
8129           defaultval=$wxUSE_ALL_FEATURES
8130           if test -z "$defaultval"; then
8131               if test x"$enablestring" = xdisable; then
8132                   defaultval=yes
8133               else
8134                   defaultval=no
8135               fi
8136           fi
8137
8138           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-timer" >&5
8139 echo $ECHO_N "checking for --${enablestring:-enable}-timer... $ECHO_C" >&6; }
8140           # Check whether --enable-timer was given.
8141 if test "${enable_timer+set}" = set; then
8142   enableval=$enable_timer;
8143                           if test "$enableval" = yes; then
8144                             wx_cv_use_timer='wxUSE_TIMER=yes'
8145                           else
8146                             wx_cv_use_timer='wxUSE_TIMER=no'
8147                           fi
8148
8149 else
8150
8151                           wx_cv_use_timer='wxUSE_TIMER=${'DEFAULT_wxUSE_TIMER":-$defaultval}"
8152
8153 fi
8154
8155
8156           eval "$wx_cv_use_timer"
8157
8158           if test x"$enablestring" = xdisable; then
8159             if test $wxUSE_TIMER = no; then
8160               result=yes
8161             else
8162               result=no
8163             fi
8164           else
8165             result=$wxUSE_TIMER
8166           fi
8167
8168           { echo "$as_me:$LINENO: result: $result" >&5
8169 echo "${ECHO_T}$result" >&6; }
8170
8171
8172           enablestring=
8173           defaultval=$wxUSE_ALL_FEATURES
8174           if test -z "$defaultval"; then
8175               if test x"$enablestring" = xdisable; then
8176                   defaultval=yes
8177               else
8178                   defaultval=no
8179               fi
8180           fi
8181
8182           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-variant" >&5
8183 echo $ECHO_N "checking for --${enablestring:-enable}-variant... $ECHO_C" >&6; }
8184           # Check whether --enable-variant was given.
8185 if test "${enable_variant+set}" = set; then
8186   enableval=$enable_variant;
8187                           if test "$enableval" = yes; then
8188                             wx_cv_use_variant='wxUSE_VARIANT=yes'
8189                           else
8190                             wx_cv_use_variant='wxUSE_VARIANT=no'
8191                           fi
8192
8193 else
8194
8195                           wx_cv_use_variant='wxUSE_VARIANT=${'DEFAULT_wxUSE_VARIANT":-$defaultval}"
8196
8197 fi
8198
8199
8200           eval "$wx_cv_use_variant"
8201
8202           if test x"$enablestring" = xdisable; then
8203             if test $wxUSE_VARIANT = no; then
8204               result=yes
8205             else
8206               result=no
8207             fi
8208           else
8209             result=$wxUSE_VARIANT
8210           fi
8211
8212           { echo "$as_me:$LINENO: result: $result" >&5
8213 echo "${ECHO_T}$result" >&6; }
8214
8215
8216           enablestring=
8217           defaultval=$wxUSE_ALL_FEATURES
8218           if test -z "$defaultval"; then
8219               if test x"$enablestring" = xdisable; then
8220                   defaultval=yes
8221               else
8222                   defaultval=no
8223               fi
8224           fi
8225
8226           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-zipstream" >&5
8227 echo $ECHO_N "checking for --${enablestring:-enable}-zipstream... $ECHO_C" >&6; }
8228           # Check whether --enable-zipstream was given.
8229 if test "${enable_zipstream+set}" = set; then
8230   enableval=$enable_zipstream;
8231                           if test "$enableval" = yes; then
8232                             wx_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
8233                           else
8234                             wx_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
8235                           fi
8236
8237 else
8238
8239                           wx_cv_use_zipstream='wxUSE_ZIPSTREAM=${'DEFAULT_wxUSE_ZIPSTREAM":-$defaultval}"
8240
8241 fi
8242
8243
8244           eval "$wx_cv_use_zipstream"
8245
8246           if test x"$enablestring" = xdisable; then
8247             if test $wxUSE_ZIPSTREAM = no; then
8248               result=yes
8249             else
8250               result=no
8251             fi
8252           else
8253             result=$wxUSE_ZIPSTREAM
8254           fi
8255
8256           { echo "$as_me:$LINENO: result: $result" >&5
8257 echo "${ECHO_T}$result" >&6; }
8258
8259
8260
8261           enablestring=
8262           defaultval=$wxUSE_ALL_FEATURES
8263           if test -z "$defaultval"; then
8264               if test x"$enablestring" = xdisable; then
8265                   defaultval=yes
8266               else
8267                   defaultval=no
8268               fi
8269           fi
8270
8271           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-url" >&5
8272 echo $ECHO_N "checking for --${enablestring:-enable}-url... $ECHO_C" >&6; }
8273           # Check whether --enable-url was given.
8274 if test "${enable_url+set}" = set; then
8275   enableval=$enable_url;
8276                           if test "$enableval" = yes; then
8277                             wx_cv_use_url='wxUSE_URL=yes'
8278                           else
8279                             wx_cv_use_url='wxUSE_URL=no'
8280                           fi
8281
8282 else
8283
8284                           wx_cv_use_url='wxUSE_URL=${'DEFAULT_wxUSE_URL":-$defaultval}"
8285
8286 fi
8287
8288
8289           eval "$wx_cv_use_url"
8290
8291           if test x"$enablestring" = xdisable; then
8292             if test $wxUSE_URL = no; then
8293               result=yes
8294             else
8295               result=no
8296             fi
8297           else
8298             result=$wxUSE_URL
8299           fi
8300
8301           { echo "$as_me:$LINENO: result: $result" >&5
8302 echo "${ECHO_T}$result" >&6; }
8303
8304
8305           enablestring=
8306           defaultval=$wxUSE_ALL_FEATURES
8307           if test -z "$defaultval"; then
8308               if test x"$enablestring" = xdisable; then
8309                   defaultval=yes
8310               else
8311                   defaultval=no
8312               fi
8313           fi
8314
8315           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol" >&5
8316 echo $ECHO_N "checking for --${enablestring:-enable}-protocol... $ECHO_C" >&6; }
8317           # Check whether --enable-protocol was given.
8318 if test "${enable_protocol+set}" = set; then
8319   enableval=$enable_protocol;
8320                           if test "$enableval" = yes; then
8321                             wx_cv_use_protocol='wxUSE_PROTOCOL=yes'
8322                           else
8323                             wx_cv_use_protocol='wxUSE_PROTOCOL=no'
8324                           fi
8325
8326 else
8327
8328                           wx_cv_use_protocol='wxUSE_PROTOCOL=${'DEFAULT_wxUSE_PROTOCOL":-$defaultval}"
8329
8330 fi
8331
8332
8333           eval "$wx_cv_use_protocol"
8334
8335           if test x"$enablestring" = xdisable; then
8336             if test $wxUSE_PROTOCOL = no; then
8337               result=yes
8338             else
8339               result=no
8340             fi
8341           else
8342             result=$wxUSE_PROTOCOL
8343           fi
8344
8345           { echo "$as_me:$LINENO: result: $result" >&5
8346 echo "${ECHO_T}$result" >&6; }
8347
8348
8349           enablestring=
8350           defaultval=$wxUSE_ALL_FEATURES
8351           if test -z "$defaultval"; then
8352               if test x"$enablestring" = xdisable; then
8353                   defaultval=yes
8354               else
8355                   defaultval=no
8356               fi
8357           fi
8358
8359           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_http" >&5
8360 echo $ECHO_N "checking for --${enablestring:-enable}-protocol_http... $ECHO_C" >&6; }
8361           # Check whether --enable-protocol_http was given.
8362 if test "${enable_protocol_http+set}" = set; then
8363   enableval=$enable_protocol_http;
8364                           if test "$enableval" = yes; then
8365                             wx_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes'
8366                           else
8367                             wx_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no'
8368                           fi
8369
8370 else
8371
8372                           wx_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=${'DEFAULT_wxUSE_PROTOCOL_HTTP":-$defaultval}"
8373
8374 fi
8375
8376
8377           eval "$wx_cv_use_protocol_http"
8378
8379           if test x"$enablestring" = xdisable; then
8380             if test $wxUSE_PROTOCOL_HTTP = no; then
8381               result=yes
8382             else
8383               result=no
8384             fi
8385           else
8386             result=$wxUSE_PROTOCOL_HTTP
8387           fi
8388
8389           { echo "$as_me:$LINENO: result: $result" >&5
8390 echo "${ECHO_T}$result" >&6; }
8391
8392
8393           enablestring=
8394           defaultval=$wxUSE_ALL_FEATURES
8395           if test -z "$defaultval"; then
8396               if test x"$enablestring" = xdisable; then
8397                   defaultval=yes
8398               else
8399                   defaultval=no
8400               fi
8401           fi
8402
8403           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_ftp" >&5
8404 echo $ECHO_N "checking for --${enablestring:-enable}-protocol_ftp... $ECHO_C" >&6; }
8405           # Check whether --enable-protocol_ftp was given.
8406 if test "${enable_protocol_ftp+set}" = set; then
8407   enableval=$enable_protocol_ftp;
8408                           if test "$enableval" = yes; then
8409                             wx_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes'
8410                           else
8411                             wx_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no'
8412                           fi
8413
8414 else
8415
8416                           wx_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=${'DEFAULT_wxUSE_PROTOCOL_FTP":-$defaultval}"
8417
8418 fi
8419
8420
8421           eval "$wx_cv_use_protocol_ftp"
8422
8423           if test x"$enablestring" = xdisable; then
8424             if test $wxUSE_PROTOCOL_FTP = no; then
8425               result=yes
8426             else
8427               result=no
8428             fi
8429           else
8430             result=$wxUSE_PROTOCOL_FTP
8431           fi
8432
8433           { echo "$as_me:$LINENO: result: $result" >&5
8434 echo "${ECHO_T}$result" >&6; }
8435
8436
8437           enablestring=
8438           defaultval=$wxUSE_ALL_FEATURES
8439           if test -z "$defaultval"; then
8440               if test x"$enablestring" = xdisable; then
8441                   defaultval=yes
8442               else
8443                   defaultval=no
8444               fi
8445           fi
8446
8447           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_file" >&5
8448 echo $ECHO_N "checking for --${enablestring:-enable}-protocol_file... $ECHO_C" >&6; }
8449           # Check whether --enable-protocol_file was given.
8450 if test "${enable_protocol_file+set}" = set; then
8451   enableval=$enable_protocol_file;
8452                           if test "$enableval" = yes; then
8453                             wx_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes'
8454                           else
8455                             wx_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no'
8456                           fi
8457
8458 else
8459
8460                           wx_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=${'DEFAULT_wxUSE_PROTOCOL_FILE":-$defaultval}"
8461
8462 fi
8463
8464
8465           eval "$wx_cv_use_protocol_file"
8466
8467           if test x"$enablestring" = xdisable; then
8468             if test $wxUSE_PROTOCOL_FILE = no; then
8469               result=yes
8470             else
8471               result=no
8472             fi
8473           else
8474             result=$wxUSE_PROTOCOL_FILE
8475           fi
8476
8477           { echo "$as_me:$LINENO: result: $result" >&5
8478 echo "${ECHO_T}$result" >&6; }
8479
8480
8481
8482           enablestring=
8483           defaultval=$wxUSE_ALL_FEATURES
8484           if test -z "$defaultval"; then
8485               if test x"$enablestring" = xdisable; then
8486                   defaultval=yes
8487               else
8488                   defaultval=no
8489               fi
8490           fi
8491
8492           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-threads" >&5
8493 echo $ECHO_N "checking for --${enablestring:-enable}-threads... $ECHO_C" >&6; }
8494           # Check whether --enable-threads was given.
8495 if test "${enable_threads+set}" = set; then
8496   enableval=$enable_threads;
8497                           if test "$enableval" = yes; then
8498                             wx_cv_use_threads='wxUSE_THREADS=yes'
8499                           else
8500                             wx_cv_use_threads='wxUSE_THREADS=no'
8501                           fi
8502
8503 else
8504
8505                           wx_cv_use_threads='wxUSE_THREADS=${'DEFAULT_wxUSE_THREADS":-$defaultval}"
8506
8507 fi
8508
8509
8510           eval "$wx_cv_use_threads"
8511
8512           if test x"$enablestring" = xdisable; then
8513             if test $wxUSE_THREADS = no; then
8514               result=yes
8515             else
8516               result=no
8517             fi
8518           else
8519             result=$wxUSE_THREADS
8520           fi
8521
8522           { echo "$as_me:$LINENO: result: $result" >&5
8523 echo "${ECHO_T}$result" >&6; }
8524
8525
8526
8527           enablestring=
8528           defaultval=
8529           if test -z "$defaultval"; then
8530               if test x"$enablestring" = xdisable; then
8531                   defaultval=yes
8532               else
8533                   defaultval=no
8534               fi
8535           fi
8536
8537           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-iniconf" >&5
8538 echo $ECHO_N "checking for --${enablestring:-enable}-iniconf... $ECHO_C" >&6; }
8539           # Check whether --enable-iniconf was given.
8540 if test "${enable_iniconf+set}" = set; then
8541   enableval=$enable_iniconf;
8542                           if test "$enableval" = yes; then
8543                             wx_cv_use_iniconf='wxUSE_INICONF=yes'
8544                           else
8545                             wx_cv_use_iniconf='wxUSE_INICONF=no'
8546                           fi
8547
8548 else
8549
8550                           wx_cv_use_iniconf='wxUSE_INICONF=${'DEFAULT_wxUSE_INICONF":-$defaultval}"
8551
8552 fi
8553
8554
8555           eval "$wx_cv_use_iniconf"
8556
8557           if test x"$enablestring" = xdisable; then
8558             if test $wxUSE_INICONF = no; then
8559               result=yes
8560             else
8561               result=no
8562             fi
8563           else
8564             result=$wxUSE_INICONF
8565           fi
8566
8567           { echo "$as_me:$LINENO: result: $result" >&5
8568 echo "${ECHO_T}$result" >&6; }
8569
8570
8571           enablestring=
8572           defaultval=$wxUSE_ALL_FEATURES
8573           if test -z "$defaultval"; then
8574               if test x"$enablestring" = xdisable; then
8575                   defaultval=yes
8576               else
8577                   defaultval=no
8578               fi
8579           fi
8580
8581           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-regkey" >&5
8582 echo $ECHO_N "checking for --${enablestring:-enable}-regkey... $ECHO_C" >&6; }
8583           # Check whether --enable-regkey was given.
8584 if test "${enable_regkey+set}" = set; then
8585   enableval=$enable_regkey;
8586                           if test "$enableval" = yes; then
8587                             wx_cv_use_regkey='wxUSE_REGKEY=yes'
8588                           else
8589                             wx_cv_use_regkey='wxUSE_REGKEY=no'
8590                           fi
8591
8592 else
8593
8594                           wx_cv_use_regkey='wxUSE_REGKEY=${'DEFAULT_wxUSE_REGKEY":-$defaultval}"
8595
8596 fi
8597
8598
8599           eval "$wx_cv_use_regkey"
8600
8601           if test x"$enablestring" = xdisable; then
8602             if test $wxUSE_REGKEY = no; then
8603               result=yes
8604             else
8605               result=no
8606             fi
8607           else
8608             result=$wxUSE_REGKEY
8609           fi
8610
8611           { echo "$as_me:$LINENO: result: $result" >&5
8612 echo "${ECHO_T}$result" >&6; }
8613
8614
8615 if test "$wxUSE_GUI" = "yes"; then
8616
8617
8618
8619           enablestring=
8620           defaultval=$wxUSE_ALL_FEATURES
8621           if test -z "$defaultval"; then
8622               if test x"$enablestring" = xdisable; then
8623                   defaultval=yes
8624               else
8625                   defaultval=no
8626               fi
8627           fi
8628
8629           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-docview" >&5
8630 echo $ECHO_N "checking for --${enablestring:-enable}-docview... $ECHO_C" >&6; }
8631           # Check whether --enable-docview was given.
8632 if test "${enable_docview+set}" = set; then
8633   enableval=$enable_docview;
8634                           if test "$enableval" = yes; then
8635                             wx_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
8636                           else
8637                             wx_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
8638                           fi
8639
8640 else
8641
8642                           wx_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=${'DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE":-$defaultval}"
8643
8644 fi
8645
8646
8647           eval "$wx_cv_use_docview"
8648
8649           if test x"$enablestring" = xdisable; then
8650             if test $wxUSE_DOC_VIEW_ARCHITECTURE = no; then
8651               result=yes
8652             else
8653               result=no
8654             fi
8655           else
8656             result=$wxUSE_DOC_VIEW_ARCHITECTURE
8657           fi
8658
8659           { echo "$as_me:$LINENO: result: $result" >&5
8660 echo "${ECHO_T}$result" >&6; }
8661
8662
8663           enablestring=
8664           defaultval=$wxUSE_ALL_FEATURES
8665           if test -z "$defaultval"; then
8666               if test x"$enablestring" = xdisable; then
8667                   defaultval=yes
8668               else
8669                   defaultval=no
8670               fi
8671           fi
8672
8673           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-help" >&5
8674 echo $ECHO_N "checking for --${enablestring:-enable}-help... $ECHO_C" >&6; }
8675           # Check whether --enable-help was given.
8676 if test "${enable_help+set}" = set; then
8677   enableval=$enable_help;
8678                           if test "$enableval" = yes; then
8679                             wx_cv_use_help='wxUSE_HELP=yes'
8680                           else
8681                             wx_cv_use_help='wxUSE_HELP=no'
8682                           fi
8683
8684 else
8685
8686                           wx_cv_use_help='wxUSE_HELP=${'DEFAULT_wxUSE_HELP":-$defaultval}"
8687
8688 fi
8689
8690
8691           eval "$wx_cv_use_help"
8692
8693           if test x"$enablestring" = xdisable; then
8694             if test $wxUSE_HELP = no; then
8695               result=yes
8696             else
8697               result=no
8698             fi
8699           else
8700             result=$wxUSE_HELP
8701           fi
8702
8703           { echo "$as_me:$LINENO: result: $result" >&5
8704 echo "${ECHO_T}$result" >&6; }
8705
8706
8707           enablestring=
8708           defaultval=$wxUSE_ALL_FEATURES
8709           if test -z "$defaultval"; then
8710               if test x"$enablestring" = xdisable; then
8711                   defaultval=yes
8712               else
8713                   defaultval=no
8714               fi
8715           fi
8716
8717           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mshtmlhelp" >&5
8718 echo $ECHO_N "checking for --${enablestring:-enable}-mshtmlhelp... $ECHO_C" >&6; }
8719           # Check whether --enable-mshtmlhelp was given.
8720 if test "${enable_mshtmlhelp+set}" = set; then
8721   enableval=$enable_mshtmlhelp;
8722                           if test "$enableval" = yes; then
8723                             wx_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes'
8724                           else
8725                             wx_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no'
8726                           fi
8727
8728 else
8729
8730                           wx_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=${'DEFAULT_wxUSE_MS_HTML_HELP":-$defaultval}"
8731
8732 fi
8733
8734
8735           eval "$wx_cv_use_mshtmlhelp"
8736
8737           if test x"$enablestring" = xdisable; then
8738             if test $wxUSE_MS_HTML_HELP = no; then
8739               result=yes
8740             else
8741               result=no
8742             fi
8743           else
8744             result=$wxUSE_MS_HTML_HELP
8745           fi
8746
8747           { echo "$as_me:$LINENO: result: $result" >&5
8748 echo "${ECHO_T}$result" >&6; }
8749
8750
8751           enablestring=
8752           defaultval=$wxUSE_ALL_FEATURES
8753           if test -z "$defaultval"; then
8754               if test x"$enablestring" = xdisable; then
8755                   defaultval=yes
8756               else
8757                   defaultval=no
8758               fi
8759           fi
8760
8761           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-html" >&5
8762 echo $ECHO_N "checking for --${enablestring:-enable}-html... $ECHO_C" >&6; }
8763           # Check whether --enable-html was given.
8764 if test "${enable_html+set}" = set; then
8765   enableval=$enable_html;
8766                           if test "$enableval" = yes; then
8767                             wx_cv_use_html='wxUSE_HTML=yes'
8768                           else
8769                             wx_cv_use_html='wxUSE_HTML=no'
8770                           fi
8771
8772 else
8773
8774                           wx_cv_use_html='wxUSE_HTML=${'DEFAULT_wxUSE_HTML":-$defaultval}"
8775
8776 fi
8777
8778
8779           eval "$wx_cv_use_html"
8780
8781           if test x"$enablestring" = xdisable; then
8782             if test $wxUSE_HTML = no; then
8783               result=yes
8784             else
8785               result=no
8786             fi
8787           else
8788             result=$wxUSE_HTML
8789           fi
8790
8791           { echo "$as_me:$LINENO: result: $result" >&5
8792 echo "${ECHO_T}$result" >&6; }
8793
8794
8795           enablestring=
8796           defaultval=$wxUSE_ALL_FEATURES
8797           if test -z "$defaultval"; then
8798               if test x"$enablestring" = xdisable; then
8799                   defaultval=yes
8800               else
8801                   defaultval=no
8802               fi
8803           fi
8804
8805           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-htmlhelp" >&5
8806 echo $ECHO_N "checking for --${enablestring:-enable}-htmlhelp... $ECHO_C" >&6; }
8807           # Check whether --enable-htmlhelp was given.
8808 if test "${enable_htmlhelp+set}" = set; then
8809   enableval=$enable_htmlhelp;
8810                           if test "$enableval" = yes; then
8811                             wx_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes'
8812                           else
8813                             wx_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no'
8814                           fi
8815
8816 else
8817
8818                           wx_cv_use_htmlhelp='wxUSE_WXHTML_HELP=${'DEFAULT_wxUSE_WXHTML_HELP":-$defaultval}"
8819
8820 fi
8821
8822
8823           eval "$wx_cv_use_htmlhelp"
8824
8825           if test x"$enablestring" = xdisable; then
8826             if test $wxUSE_WXHTML_HELP = no; then
8827               result=yes
8828             else
8829               result=no
8830             fi
8831           else
8832             result=$wxUSE_WXHTML_HELP
8833           fi
8834
8835           { echo "$as_me:$LINENO: result: $result" >&5
8836 echo "${ECHO_T}$result" >&6; }
8837
8838
8839           enablestring=
8840           defaultval=$wxUSE_ALL_FEATURES
8841           if test -z "$defaultval"; then
8842               if test x"$enablestring" = xdisable; then
8843                   defaultval=yes
8844               else
8845                   defaultval=no
8846               fi
8847           fi
8848
8849           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xrc" >&5
8850 echo $ECHO_N "checking for --${enablestring:-enable}-xrc... $ECHO_C" >&6; }
8851           # Check whether --enable-xrc was given.
8852 if test "${enable_xrc+set}" = set; then
8853   enableval=$enable_xrc;
8854                           if test "$enableval" = yes; then
8855                             wx_cv_use_xrc='wxUSE_XRC=yes'
8856                           else
8857                             wx_cv_use_xrc='wxUSE_XRC=no'
8858                           fi
8859
8860 else
8861
8862                           wx_cv_use_xrc='wxUSE_XRC=${'DEFAULT_wxUSE_XRC":-$defaultval}"
8863
8864 fi
8865
8866
8867           eval "$wx_cv_use_xrc"
8868
8869           if test x"$enablestring" = xdisable; then
8870             if test $wxUSE_XRC = no; then
8871               result=yes
8872             else
8873               result=no
8874             fi
8875           else
8876             result=$wxUSE_XRC
8877           fi
8878
8879           { echo "$as_me:$LINENO: result: $result" >&5
8880 echo "${ECHO_T}$result" >&6; }
8881
8882
8883           enablestring=
8884           defaultval=$wxUSE_ALL_FEATURES
8885           if test -z "$defaultval"; then
8886               if test x"$enablestring" = xdisable; then
8887                   defaultval=yes
8888               else
8889                   defaultval=no
8890               fi
8891           fi
8892
8893           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-aui" >&5
8894 echo $ECHO_N "checking for --${enablestring:-enable}-aui... $ECHO_C" >&6; }
8895           # Check whether --enable-aui was given.
8896 if test "${enable_aui+set}" = set; then
8897   enableval=$enable_aui;
8898                           if test "$enableval" = yes; then
8899                             wx_cv_use_aui='wxUSE_AUI=yes'
8900                           else
8901                             wx_cv_use_aui='wxUSE_AUI=no'
8902                           fi
8903
8904 else
8905
8906                           wx_cv_use_aui='wxUSE_AUI=${'DEFAULT_wxUSE_AUI":-$defaultval}"
8907
8908 fi
8909
8910
8911           eval "$wx_cv_use_aui"
8912
8913           if test x"$enablestring" = xdisable; then
8914             if test $wxUSE_AUI = no; then
8915               result=yes
8916             else
8917               result=no
8918             fi
8919           else
8920             result=$wxUSE_AUI
8921           fi
8922
8923           { echo "$as_me:$LINENO: result: $result" >&5
8924 echo "${ECHO_T}$result" >&6; }
8925
8926
8927           enablestring=
8928           defaultval=$wxUSE_ALL_FEATURES
8929           if test -z "$defaultval"; then
8930               if test x"$enablestring" = xdisable; then
8931                   defaultval=yes
8932               else
8933                   defaultval=no
8934               fi
8935           fi
8936
8937           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-propgrid" >&5
8938 echo $ECHO_N "checking for --${enablestring:-enable}-propgrid... $ECHO_C" >&6; }
8939           # Check whether --enable-propgrid was given.
8940 if test "${enable_propgrid+set}" = set; then
8941   enableval=$enable_propgrid;
8942                           if test "$enableval" = yes; then
8943                             wx_cv_use_propgrid='wxUSE_PROPGRID=yes'
8944                           else
8945                             wx_cv_use_propgrid='wxUSE_PROPGRID=no'
8946                           fi
8947
8948 else
8949
8950                           wx_cv_use_propgrid='wxUSE_PROPGRID=${'DEFAULT_wxUSE_PROPGRID":-$defaultval}"
8951
8952 fi
8953
8954
8955           eval "$wx_cv_use_propgrid"
8956
8957           if test x"$enablestring" = xdisable; then
8958             if test $wxUSE_PROPGRID = no; then
8959               result=yes
8960             else
8961               result=no
8962             fi
8963           else
8964             result=$wxUSE_PROPGRID
8965           fi
8966
8967           { echo "$as_me:$LINENO: result: $result" >&5
8968 echo "${ECHO_T}$result" >&6; }
8969
8970
8971           enablestring=
8972           defaultval=$wxUSE_ALL_FEATURES
8973           if test -z "$defaultval"; then
8974               if test x"$enablestring" = xdisable; then
8975                   defaultval=yes
8976               else
8977                   defaultval=no
8978               fi
8979           fi
8980
8981           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ribbon" >&5
8982 echo $ECHO_N "checking for --${enablestring:-enable}-ribbon... $ECHO_C" >&6; }
8983           # Check whether --enable-ribbon was given.
8984 if test "${enable_ribbon+set}" = set; then
8985   enableval=$enable_ribbon;
8986                           if test "$enableval" = yes; then
8987                             wx_cv_use_ribbon='wxUSE_RIBBON=yes'
8988                           else
8989                             wx_cv_use_ribbon='wxUSE_RIBBON=no'
8990                           fi
8991
8992 else
8993
8994                           wx_cv_use_ribbon='wxUSE_RIBBON=${'DEFAULT_wxUSE_RIBBON":-$defaultval}"
8995
8996 fi
8997
8998
8999           eval "$wx_cv_use_ribbon"
9000
9001           if test x"$enablestring" = xdisable; then
9002             if test $wxUSE_RIBBON = no; then
9003               result=yes
9004             else
9005               result=no
9006             fi
9007           else
9008             result=$wxUSE_RIBBON
9009           fi
9010
9011           { echo "$as_me:$LINENO: result: $result" >&5
9012 echo "${ECHO_T}$result" >&6; }
9013
9014
9015           enablestring=
9016           defaultval=$wxUSE_ALL_FEATURES
9017           if test -z "$defaultval"; then
9018               if test x"$enablestring" = xdisable; then
9019                   defaultval=yes
9020               else
9021                   defaultval=no
9022               fi
9023           fi
9024
9025           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stc" >&5
9026 echo $ECHO_N "checking for --${enablestring:-enable}-stc... $ECHO_C" >&6; }
9027           # Check whether --enable-stc was given.
9028 if test "${enable_stc+set}" = set; then
9029   enableval=$enable_stc;
9030                           if test "$enableval" = yes; then
9031                             wx_cv_use_stc='wxUSE_STC=yes'
9032                           else
9033                             wx_cv_use_stc='wxUSE_STC=no'
9034                           fi
9035
9036 else
9037
9038                           wx_cv_use_stc='wxUSE_STC=${'DEFAULT_wxUSE_STC":-$defaultval}"
9039
9040 fi
9041
9042
9043           eval "$wx_cv_use_stc"
9044
9045           if test x"$enablestring" = xdisable; then
9046             if test $wxUSE_STC = no; then
9047               result=yes
9048             else
9049               result=no
9050             fi
9051           else
9052             result=$wxUSE_STC
9053           fi
9054
9055           { echo "$as_me:$LINENO: result: $result" >&5
9056 echo "${ECHO_T}$result" >&6; }
9057
9058
9059           enablestring=
9060           defaultval=$wxUSE_ALL_FEATURES
9061           if test -z "$defaultval"; then
9062               if test x"$enablestring" = xdisable; then
9063                   defaultval=yes
9064               else
9065                   defaultval=no
9066               fi
9067           fi
9068
9069           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-constraints" >&5
9070 echo $ECHO_N "checking for --${enablestring:-enable}-constraints... $ECHO_C" >&6; }
9071           # Check whether --enable-constraints was given.
9072 if test "${enable_constraints+set}" = set; then
9073   enableval=$enable_constraints;
9074                           if test "$enableval" = yes; then
9075                             wx_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
9076                           else
9077                             wx_cv_use_constraints='wxUSE_CONSTRAINTS=no'
9078                           fi
9079
9080 else
9081
9082                           wx_cv_use_constraints='wxUSE_CONSTRAINTS=${'DEFAULT_wxUSE_CONSTRAINTS":-$defaultval}"
9083
9084 fi
9085
9086
9087           eval "$wx_cv_use_constraints"
9088
9089           if test x"$enablestring" = xdisable; then
9090             if test $wxUSE_CONSTRAINTS = no; then
9091               result=yes
9092             else
9093               result=no
9094             fi
9095           else
9096             result=$wxUSE_CONSTRAINTS
9097           fi
9098
9099           { echo "$as_me:$LINENO: result: $result" >&5
9100 echo "${ECHO_T}$result" >&6; }
9101
9102
9103           enablestring=
9104           defaultval=$wxUSE_ALL_FEATURES
9105           if test -z "$defaultval"; then
9106               if test x"$enablestring" = xdisable; then
9107                   defaultval=yes
9108               else
9109                   defaultval=no
9110               fi
9111           fi
9112
9113           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-loggui" >&5
9114 echo $ECHO_N "checking for --${enablestring:-enable}-loggui... $ECHO_C" >&6; }
9115           # Check whether --enable-loggui was given.
9116 if test "${enable_loggui+set}" = set; then
9117   enableval=$enable_loggui;
9118                           if test "$enableval" = yes; then
9119                             wx_cv_use_loggui='wxUSE_LOGGUI=yes'
9120                           else
9121                             wx_cv_use_loggui='wxUSE_LOGGUI=no'
9122                           fi
9123
9124 else
9125
9126                           wx_cv_use_loggui='wxUSE_LOGGUI=${'DEFAULT_wxUSE_LOGGUI":-$defaultval}"
9127
9128 fi
9129
9130
9131           eval "$wx_cv_use_loggui"
9132
9133           if test x"$enablestring" = xdisable; then
9134             if test $wxUSE_LOGGUI = no; then
9135               result=yes
9136             else
9137               result=no
9138             fi
9139           else
9140             result=$wxUSE_LOGGUI
9141           fi
9142
9143           { echo "$as_me:$LINENO: result: $result" >&5
9144 echo "${ECHO_T}$result" >&6; }
9145
9146
9147           enablestring=
9148           defaultval=$wxUSE_ALL_FEATURES
9149           if test -z "$defaultval"; then
9150               if test x"$enablestring" = xdisable; then
9151                   defaultval=yes
9152               else
9153                   defaultval=no
9154               fi
9155           fi
9156
9157           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logwin" >&5
9158 echo $ECHO_N "checking for --${enablestring:-enable}-logwin... $ECHO_C" >&6; }
9159           # Check whether --enable-logwin was given.
9160 if test "${enable_logwin+set}" = set; then
9161   enableval=$enable_logwin;
9162                           if test "$enableval" = yes; then
9163                             wx_cv_use_logwin='wxUSE_LOGWINDOW=yes'
9164                           else
9165                             wx_cv_use_logwin='wxUSE_LOGWINDOW=no'
9166                           fi
9167
9168 else
9169
9170                           wx_cv_use_logwin='wxUSE_LOGWINDOW=${'DEFAULT_wxUSE_LOGWINDOW":-$defaultval}"
9171
9172 fi
9173
9174
9175           eval "$wx_cv_use_logwin"
9176
9177           if test x"$enablestring" = xdisable; then
9178             if test $wxUSE_LOGWINDOW = no; then
9179               result=yes
9180             else
9181               result=no
9182             fi
9183           else
9184             result=$wxUSE_LOGWINDOW
9185           fi
9186
9187           { echo "$as_me:$LINENO: result: $result" >&5
9188 echo "${ECHO_T}$result" >&6; }
9189
9190
9191           enablestring=
9192           defaultval=$wxUSE_ALL_FEATURES
9193           if test -z "$defaultval"; then
9194               if test x"$enablestring" = xdisable; then
9195                   defaultval=yes
9196               else
9197                   defaultval=no
9198               fi
9199           fi
9200
9201           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logdialog" >&5
9202 echo $ECHO_N "checking for --${enablestring:-enable}-logdialog... $ECHO_C" >&6; }
9203           # Check whether --enable-logdialog was given.
9204 if test "${enable_logdialog+set}" = set; then
9205   enableval=$enable_logdialog;
9206                           if test "$enableval" = yes; then
9207                             wx_cv_use_logdialog='wxUSE_LOGDIALOG=yes'
9208                           else
9209                             wx_cv_use_logdialog='wxUSE_LOGDIALOG=no'
9210                           fi
9211
9212 else
9213
9214                           wx_cv_use_logdialog='wxUSE_LOGDIALOG=${'DEFAULT_wxUSE_LOGDIALOG":-$defaultval}"
9215
9216 fi
9217
9218
9219           eval "$wx_cv_use_logdialog"
9220
9221           if test x"$enablestring" = xdisable; then
9222             if test $wxUSE_LOGDIALOG = no; then
9223               result=yes
9224             else
9225               result=no
9226             fi
9227           else
9228             result=$wxUSE_LOGDIALOG
9229           fi
9230
9231           { echo "$as_me:$LINENO: result: $result" >&5
9232 echo "${ECHO_T}$result" >&6; }
9233
9234
9235           enablestring=
9236           defaultval=$wxUSE_ALL_FEATURES
9237           if test -z "$defaultval"; then
9238               if test x"$enablestring" = xdisable; then
9239                   defaultval=yes
9240               else
9241                   defaultval=no
9242               fi
9243           fi
9244
9245           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdi" >&5
9246 echo $ECHO_N "checking for --${enablestring:-enable}-mdi... $ECHO_C" >&6; }
9247           # Check whether --enable-mdi was given.
9248 if test "${enable_mdi+set}" = set; then
9249   enableval=$enable_mdi;
9250                           if test "$enableval" = yes; then
9251                             wx_cv_use_mdi='wxUSE_MDI=yes'
9252                           else
9253                             wx_cv_use_mdi='wxUSE_MDI=no'
9254                           fi
9255
9256 else
9257
9258                           wx_cv_use_mdi='wxUSE_MDI=${'DEFAULT_wxUSE_MDI":-$defaultval}"
9259
9260 fi
9261
9262
9263           eval "$wx_cv_use_mdi"
9264
9265           if test x"$enablestring" = xdisable; then
9266             if test $wxUSE_MDI = no; then
9267               result=yes
9268             else
9269               result=no
9270             fi
9271           else
9272             result=$wxUSE_MDI
9273           fi
9274
9275           { echo "$as_me:$LINENO: result: $result" >&5
9276 echo "${ECHO_T}$result" >&6; }
9277
9278
9279           enablestring=
9280           defaultval=$wxUSE_ALL_FEATURES
9281           if test -z "$defaultval"; then
9282               if test x"$enablestring" = xdisable; then
9283                   defaultval=yes
9284               else
9285                   defaultval=no
9286               fi
9287           fi
9288
9289           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdidoc" >&5
9290 echo $ECHO_N "checking for --${enablestring:-enable}-mdidoc... $ECHO_C" >&6; }
9291           # Check whether --enable-mdidoc was given.
9292 if test "${enable_mdidoc+set}" = set; then
9293   enableval=$enable_mdidoc;
9294                           if test "$enableval" = yes; then
9295                             wx_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=yes'
9296                           else
9297                             wx_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=no'
9298                           fi
9299
9300 else
9301
9302                           wx_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=${'DEFAULT_wxUSE_MDI_ARCHITECTURE":-$defaultval}"
9303
9304 fi
9305
9306
9307           eval "$wx_cv_use_mdidoc"
9308
9309           if test x"$enablestring" = xdisable; then
9310             if test $wxUSE_MDI_ARCHITECTURE = no; then
9311               result=yes
9312             else
9313               result=no
9314             fi
9315           else
9316             result=$wxUSE_MDI_ARCHITECTURE
9317           fi
9318
9319           { echo "$as_me:$LINENO: result: $result" >&5
9320 echo "${ECHO_T}$result" >&6; }
9321
9322
9323           enablestring=
9324           defaultval=$wxUSE_ALL_FEATURES
9325           if test -z "$defaultval"; then
9326               if test x"$enablestring" = xdisable; then
9327                   defaultval=yes
9328               else
9329                   defaultval=no
9330               fi
9331           fi
9332
9333           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mediactrl" >&5
9334 echo $ECHO_N "checking for --${enablestring:-enable}-mediactrl... $ECHO_C" >&6; }
9335           # Check whether --enable-mediactrl was given.
9336 if test "${enable_mediactrl+set}" = set; then
9337   enableval=$enable_mediactrl;
9338                           if test "$enableval" = yes; then
9339                             wx_cv_use_mediactrl='wxUSE_MEDIACTRL=yes'
9340                           else
9341                             wx_cv_use_mediactrl='wxUSE_MEDIACTRL=no'
9342                           fi
9343
9344 else
9345
9346                           wx_cv_use_mediactrl='wxUSE_MEDIACTRL=${'DEFAULT_wxUSE_MEDIACTRL":-$defaultval}"
9347
9348 fi
9349
9350
9351           eval "$wx_cv_use_mediactrl"
9352
9353           if test x"$enablestring" = xdisable; then
9354             if test $wxUSE_MEDIACTRL = no; then
9355               result=yes
9356             else
9357               result=no
9358             fi
9359           else
9360             result=$wxUSE_MEDIACTRL
9361           fi
9362
9363           { echo "$as_me:$LINENO: result: $result" >&5
9364 echo "${ECHO_T}$result" >&6; }
9365
9366
9367           enablestring=
9368           defaultval=$wxUSE_ALL_FEATURES
9369           if test -z "$defaultval"; then
9370               if test x"$enablestring" = xdisable; then
9371                   defaultval=yes
9372               else
9373                   defaultval=no
9374               fi
9375           fi
9376
9377           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gstreamer8" >&5
9378 echo $ECHO_N "checking for --${enablestring:-enable}-gstreamer8... $ECHO_C" >&6; }
9379           # Check whether --enable-gstreamer8 was given.
9380 if test "${enable_gstreamer8+set}" = set; then
9381   enableval=$enable_gstreamer8;
9382                           if test "$enableval" = yes; then
9383                             wx_cv_use_gstreamer8='wxUSE_GSTREAMER8=yes'
9384                           else
9385                             wx_cv_use_gstreamer8='wxUSE_GSTREAMER8=no'
9386                           fi
9387
9388 else
9389
9390                           wx_cv_use_gstreamer8='wxUSE_GSTREAMER8=${'DEFAULT_wxUSE_GSTREAMER8":-$defaultval}"
9391
9392 fi
9393
9394
9395           eval "$wx_cv_use_gstreamer8"
9396
9397           if test x"$enablestring" = xdisable; then
9398             if test $wxUSE_GSTREAMER8 = no; then
9399               result=yes
9400             else
9401               result=no
9402             fi
9403           else
9404             result=$wxUSE_GSTREAMER8
9405           fi
9406
9407           { echo "$as_me:$LINENO: result: $result" >&5
9408 echo "${ECHO_T}$result" >&6; }
9409
9410
9411           enablestring=
9412           defaultval=$wxUSE_ALL_FEATURES
9413           if test -z "$defaultval"; then
9414               if test x"$enablestring" = xdisable; then
9415                   defaultval=yes
9416               else
9417                   defaultval=no
9418               fi
9419           fi
9420
9421           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-webkit" >&5
9422 echo $ECHO_N "checking for --${enablestring:-enable}-webkit... $ECHO_C" >&6; }
9423           # Check whether --enable-webkit was given.
9424 if test "${enable_webkit+set}" = set; then
9425   enableval=$enable_webkit;
9426                           if test "$enableval" = yes; then
9427                             wx_cv_use_webkit='wxUSE_WEBKIT=yes'
9428                           else
9429                             wx_cv_use_webkit='wxUSE_WEBKIT=no'
9430                           fi
9431
9432 else
9433
9434                           wx_cv_use_webkit='wxUSE_WEBKIT=${'DEFAULT_wxUSE_WEBKIT":-$defaultval}"
9435
9436 fi
9437
9438
9439           eval "$wx_cv_use_webkit"
9440
9441           if test x"$enablestring" = xdisable; then
9442             if test $wxUSE_WEBKIT = no; then
9443               result=yes
9444             else
9445               result=no
9446             fi
9447           else
9448             result=$wxUSE_WEBKIT
9449           fi
9450
9451           { echo "$as_me:$LINENO: result: $result" >&5
9452 echo "${ECHO_T}$result" >&6; }
9453
9454
9455           enablestring=
9456           defaultval=$wxUSE_ALL_FEATURES
9457           if test -z "$defaultval"; then
9458               if test x"$enablestring" = xdisable; then
9459                   defaultval=yes
9460               else
9461                   defaultval=no
9462               fi
9463           fi
9464
9465           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-richtext" >&5
9466 echo $ECHO_N "checking for --${enablestring:-enable}-richtext... $ECHO_C" >&6; }
9467           # Check whether --enable-richtext was given.
9468 if test "${enable_richtext+set}" = set; then
9469   enableval=$enable_richtext;
9470                           if test "$enableval" = yes; then
9471                             wx_cv_use_richtext='wxUSE_RICHTEXT=yes'
9472                           else
9473                             wx_cv_use_richtext='wxUSE_RICHTEXT=no'
9474                           fi
9475
9476 else
9477
9478                           wx_cv_use_richtext='wxUSE_RICHTEXT=${'DEFAULT_wxUSE_RICHTEXT":-$defaultval}"
9479
9480 fi
9481
9482
9483           eval "$wx_cv_use_richtext"
9484
9485           if test x"$enablestring" = xdisable; then
9486             if test $wxUSE_RICHTEXT = no; then
9487               result=yes
9488             else
9489               result=no
9490             fi
9491           else
9492             result=$wxUSE_RICHTEXT
9493           fi
9494
9495           { echo "$as_me:$LINENO: result: $result" >&5
9496 echo "${ECHO_T}$result" >&6; }
9497
9498
9499           enablestring=
9500           defaultval=$wxUSE_ALL_FEATURES
9501           if test -z "$defaultval"; then
9502               if test x"$enablestring" = xdisable; then
9503                   defaultval=yes
9504               else
9505                   defaultval=no
9506               fi
9507           fi
9508
9509           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-postscript" >&5
9510 echo $ECHO_N "checking for --${enablestring:-enable}-postscript... $ECHO_C" >&6; }
9511           # Check whether --enable-postscript was given.
9512 if test "${enable_postscript+set}" = set; then
9513   enableval=$enable_postscript;
9514                           if test "$enableval" = yes; then
9515                             wx_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
9516                           else
9517                             wx_cv_use_postscript='wxUSE_POSTSCRIPT=no'
9518                           fi
9519
9520 else
9521
9522                           wx_cv_use_postscript='wxUSE_POSTSCRIPT=${'DEFAULT_wxUSE_POSTSCRIPT":-$defaultval}"
9523
9524 fi
9525
9526
9527           eval "$wx_cv_use_postscript"
9528
9529           if test x"$enablestring" = xdisable; then
9530             if test $wxUSE_POSTSCRIPT = no; then
9531               result=yes
9532             else
9533               result=no
9534             fi
9535           else
9536             result=$wxUSE_POSTSCRIPT
9537           fi
9538
9539           { echo "$as_me:$LINENO: result: $result" >&5
9540 echo "${ECHO_T}$result" >&6; }
9541
9542
9543           enablestring=
9544           defaultval=$wxUSE_ALL_FEATURES
9545           if test -z "$defaultval"; then
9546               if test x"$enablestring" = xdisable; then
9547                   defaultval=yes
9548               else
9549                   defaultval=no
9550               fi
9551           fi
9552
9553           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printarch" >&5
9554 echo $ECHO_N "checking for --${enablestring:-enable}-printarch... $ECHO_C" >&6; }
9555           # Check whether --enable-printarch was given.
9556 if test "${enable_printarch+set}" = set; then
9557   enableval=$enable_printarch;
9558                           if test "$enableval" = yes; then
9559                             wx_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
9560                           else
9561                             wx_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
9562                           fi
9563
9564 else
9565
9566                           wx_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=${'DEFAULT_wxUSE_PRINTING_ARCHITECTURE":-$defaultval}"
9567
9568 fi
9569
9570
9571           eval "$wx_cv_use_printarch"
9572
9573           if test x"$enablestring" = xdisable; then
9574             if test $wxUSE_PRINTING_ARCHITECTURE = no; then
9575               result=yes
9576             else
9577               result=no
9578             fi
9579           else
9580             result=$wxUSE_PRINTING_ARCHITECTURE
9581           fi
9582
9583           { echo "$as_me:$LINENO: result: $result" >&5
9584 echo "${ECHO_T}$result" >&6; }
9585
9586
9587           enablestring=
9588           defaultval=$wxUSE_ALL_FEATURES
9589           if test -z "$defaultval"; then
9590               if test x"$enablestring" = xdisable; then
9591                   defaultval=yes
9592               else
9593                   defaultval=no
9594               fi
9595           fi
9596
9597           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-svg" >&5
9598 echo $ECHO_N "checking for --${enablestring:-enable}-svg... $ECHO_C" >&6; }
9599           # Check whether --enable-svg was given.
9600 if test "${enable_svg+set}" = set; then
9601   enableval=$enable_svg;
9602                           if test "$enableval" = yes; then
9603                             wx_cv_use_svg='wxUSE_SVG=yes'
9604                           else
9605                             wx_cv_use_svg='wxUSE_SVG=no'
9606                           fi
9607
9608 else
9609
9610                           wx_cv_use_svg='wxUSE_SVG=${'DEFAULT_wxUSE_SVG":-$defaultval}"
9611
9612 fi
9613
9614
9615           eval "$wx_cv_use_svg"
9616
9617           if test x"$enablestring" = xdisable; then
9618             if test $wxUSE_SVG = no; then
9619               result=yes
9620             else
9621               result=no
9622             fi
9623           else
9624             result=$wxUSE_SVG
9625           fi
9626
9627           { echo "$as_me:$LINENO: result: $result" >&5
9628 echo "${ECHO_T}$result" >&6; }
9629
9630
9631           enablestring=
9632           defaultval=$wxUSE_ALL_FEATURES
9633           if test -z "$defaultval"; then
9634               if test x"$enablestring" = xdisable; then
9635                   defaultval=yes
9636               else
9637                   defaultval=no
9638               fi
9639           fi
9640
9641           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-web" >&5
9642 echo $ECHO_N "checking for --${enablestring:-enable}-web... $ECHO_C" >&6; }
9643           # Check whether --enable-web was given.
9644 if test "${enable_web+set}" = set; then
9645   enableval=$enable_web;
9646                           if test "$enableval" = yes; then
9647                             wx_cv_use_web='wxUSE_WEB=yes'
9648                           else
9649                             wx_cv_use_web='wxUSE_WEB=no'
9650                           fi
9651
9652 else
9653
9654                           wx_cv_use_web='wxUSE_WEB=${'DEFAULT_wxUSE_WEB":-$defaultval}"
9655
9656 fi
9657
9658
9659           eval "$wx_cv_use_web"
9660
9661           if test x"$enablestring" = xdisable; then
9662             if test $wxUSE_WEB = no; then
9663               result=yes
9664             else
9665               result=no
9666             fi
9667           else
9668             result=$wxUSE_WEB
9669           fi
9670
9671           { echo "$as_me:$LINENO: result: $result" >&5
9672 echo "${ECHO_T}$result" >&6; }
9673
9674
9675 if test "$wxUSE_MAC" != 1; then
9676
9677           enablestring=
9678           defaultval=$wxUSE_ALL_FEATURES
9679           if test -z "$defaultval"; then
9680               if test x"$enablestring" = xdisable; then
9681                   defaultval=yes
9682               else
9683                   defaultval=no
9684               fi
9685           fi
9686
9687           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-graphics_ctx" >&5
9688 echo $ECHO_N "checking for --${enablestring:-enable}-graphics_ctx... $ECHO_C" >&6; }
9689           # Check whether --enable-graphics_ctx was given.
9690 if test "${enable_graphics_ctx+set}" = set; then
9691   enableval=$enable_graphics_ctx;
9692                           if test "$enableval" = yes; then
9693                             wx_cv_use_graphics_ctx='wxUSE_GRAPHICS_CONTEXT=yes'
9694                           else
9695                             wx_cv_use_graphics_ctx='wxUSE_GRAPHICS_CONTEXT=no'
9696                           fi
9697
9698 else
9699
9700                           wx_cv_use_graphics_ctx='wxUSE_GRAPHICS_CONTEXT=${'DEFAULT_wxUSE_GRAPHICS_CONTEXT":-$defaultval}"
9701
9702 fi
9703
9704
9705           eval "$wx_cv_use_graphics_ctx"
9706
9707           if test x"$enablestring" = xdisable; then
9708             if test $wxUSE_GRAPHICS_CONTEXT = no; then
9709               result=yes
9710             else
9711               result=no
9712             fi
9713           else
9714             result=$wxUSE_GRAPHICS_CONTEXT
9715           fi
9716
9717           { echo "$as_me:$LINENO: result: $result" >&5
9718 echo "${ECHO_T}$result" >&6; }
9719
9720 fi
9721
9722
9723
9724           enablestring=
9725           defaultval=$wxUSE_ALL_FEATURES
9726           if test -z "$defaultval"; then
9727               if test x"$enablestring" = xdisable; then
9728                   defaultval=yes
9729               else
9730                   defaultval=no
9731               fi
9732           fi
9733
9734           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-clipboard" >&5
9735 echo $ECHO_N "checking for --${enablestring:-enable}-clipboard... $ECHO_C" >&6; }
9736           # Check whether --enable-clipboard was given.
9737 if test "${enable_clipboard+set}" = set; then
9738   enableval=$enable_clipboard;
9739                           if test "$enableval" = yes; then
9740                             wx_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
9741                           else
9742                             wx_cv_use_clipboard='wxUSE_CLIPBOARD=no'
9743                           fi
9744
9745 else
9746
9747                           wx_cv_use_clipboard='wxUSE_CLIPBOARD=${'DEFAULT_wxUSE_CLIPBOARD":-$defaultval}"
9748
9749 fi
9750
9751
9752           eval "$wx_cv_use_clipboard"
9753
9754           if test x"$enablestring" = xdisable; then
9755             if test $wxUSE_CLIPBOARD = no; then
9756               result=yes
9757             else
9758               result=no
9759             fi
9760           else
9761             result=$wxUSE_CLIPBOARD
9762           fi
9763
9764           { echo "$as_me:$LINENO: result: $result" >&5
9765 echo "${ECHO_T}$result" >&6; }
9766
9767
9768           enablestring=
9769           defaultval=$wxUSE_ALL_FEATURES
9770           if test -z "$defaultval"; then
9771               if test x"$enablestring" = xdisable; then
9772                   defaultval=yes
9773               else
9774                   defaultval=no
9775               fi
9776           fi
9777
9778           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dnd" >&5
9779 echo $ECHO_N "checking for --${enablestring:-enable}-dnd... $ECHO_C" >&6; }
9780           # Check whether --enable-dnd was given.
9781 if test "${enable_dnd+set}" = set; then
9782   enableval=$enable_dnd;
9783                           if test "$enableval" = yes; then
9784                             wx_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
9785                           else
9786                             wx_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
9787                           fi
9788
9789 else
9790
9791                           wx_cv_use_dnd='wxUSE_DRAG_AND_DROP=${'DEFAULT_wxUSE_DRAG_AND_DROP":-$defaultval}"
9792
9793 fi
9794
9795
9796           eval "$wx_cv_use_dnd"
9797
9798           if test x"$enablestring" = xdisable; then
9799             if test $wxUSE_DRAG_AND_DROP = no; then
9800               result=yes
9801             else
9802               result=no
9803             fi
9804           else
9805             result=$wxUSE_DRAG_AND_DROP
9806           fi
9807
9808           { echo "$as_me:$LINENO: result: $result" >&5
9809 echo "${ECHO_T}$result" >&6; }
9810
9811
9812           enablestring=
9813           defaultval=$wxUSE_ALL_FEATURES
9814           if test -z "$defaultval"; then
9815               if test x"$enablestring" = xdisable; then
9816                   defaultval=yes
9817               else
9818                   defaultval=no
9819               fi
9820           fi
9821
9822           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
9823 echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6; }
9824           # Check whether --enable-metafile was given.
9825 if test "${enable_metafile+set}" = set; then
9826   enableval=$enable_metafile;
9827                           if test "$enableval" = yes; then
9828                             wx_cv_use_metafile='wxUSE_METAFILE=yes'
9829                           else
9830                             wx_cv_use_metafile='wxUSE_METAFILE=no'
9831                           fi
9832
9833 else
9834
9835                           wx_cv_use_metafile='wxUSE_METAFILE=${'DEFAULT_wxUSE_METAFILE":-$defaultval}"
9836
9837 fi
9838
9839
9840           eval "$wx_cv_use_metafile"
9841
9842           if test x"$enablestring" = xdisable; then
9843             if test $wxUSE_METAFILE = no; then
9844               result=yes
9845             else
9846               result=no
9847             fi
9848           else
9849             result=$wxUSE_METAFILE
9850           fi
9851
9852           { echo "$as_me:$LINENO: result: $result" >&5
9853 echo "${ECHO_T}$result" >&6; }
9854
9855
9856
9857 DEFAULT_wxUSE_CONTROLS=none
9858
9859           enablestring=disable
9860           defaultval=
9861           if test -z "$defaultval"; then
9862               if test x"$enablestring" = xdisable; then
9863                   defaultval=yes
9864               else
9865                   defaultval=no
9866               fi
9867           fi
9868
9869           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-controls" >&5
9870 echo $ECHO_N "checking for --${enablestring:-enable}-controls... $ECHO_C" >&6; }
9871           # Check whether --enable-controls was given.
9872 if test "${enable_controls+set}" = set; then
9873   enableval=$enable_controls;
9874                           if test "$enableval" = yes; then
9875                             wx_cv_use_controls='wxUSE_CONTROLS=yes'
9876                           else
9877                             wx_cv_use_controls='wxUSE_CONTROLS=no'
9878                           fi
9879
9880 else
9881
9882                           wx_cv_use_controls='wxUSE_CONTROLS=${'DEFAULT_wxUSE_CONTROLS":-$defaultval}"
9883
9884 fi
9885
9886
9887           eval "$wx_cv_use_controls"
9888
9889           if test x"$enablestring" = xdisable; then
9890             if test $wxUSE_CONTROLS = no; then
9891               result=yes
9892             else
9893               result=no
9894             fi
9895           else
9896             result=$wxUSE_CONTROLS
9897           fi
9898
9899           { echo "$as_me:$LINENO: result: $result" >&5
9900 echo "${ECHO_T}$result" >&6; }
9901
9902
9903 if test "$wxUSE_CONTROLS" = "no"; then
9904     DEFAULT_wxUSE_ACCEL=no
9905     DEFAULT_wxUSE_ANIMATIONCTRL=no
9906     DEFAULT_wxUSE_BMPBUTTON=no
9907     DEFAULT_wxUSE_BUTTON=no
9908     DEFAULT_wxUSE_CALCTRL=no
9909     DEFAULT_wxUSE_CARET=no
9910     DEFAULT_wxUSE_CHECKBOX=no
9911     DEFAULT_wxUSE_CHECKLISTBOX=no
9912     DEFAULT_wxUSE_CHOICE=no
9913     DEFAULT_wxUSE_CHOICEBOOK=no
9914     DEFAULT_wxUSE_COLLPANE=no
9915     DEFAULT_wxUSE_COLOURPICKERCTRL=no
9916     DEFAULT_wxUSE_COMBOBOX=no
9917     DEFAULT_wxUSE_COMBOBOX=no
9918     DEFAULT_wxUSE_COMMANDLINKBUTTON=no
9919     DEFAULT_wxUSE_DATAVIEWCTRL=no
9920     DEFAULT_wxUSE_DATEPICKCTRL=no
9921     DEFAULT_wxUSE_DETECT_SM=no
9922     DEFAULT_wxUSE_DIRPICKERCTRL=no
9923     DEFAULT_wxUSE_DISPLAY=no
9924     DEFAULT_wxUSE_FILECTRL=no
9925     DEFAULT_wxUSE_FILEPICKERCTRL=no
9926     DEFAULT_wxUSE_FONTPICKERCTRL=no
9927     DEFAULT_wxUSE_GAUGE=no
9928     DEFAULT_wxUSE_GRID=no
9929     DEFAULT_wxUSE_HEADERCTRL=no
9930     DEFAULT_wxUSE_HYPERLINKCTRL=no
9931     DEFAULT_wxUSE_IMAGLIST=no
9932     DEFAULT_wxUSE_LISTBOOK=no
9933     DEFAULT_wxUSE_LISTBOX=no
9934     DEFAULT_wxUSE_LISTCTRL=no
9935     DEFAULT_wxUSE_MARKUP=no
9936     DEFAULT_wxUSE_NOTEBOOK=no
9937     DEFAULT_wxUSE_POPUPWIN=no
9938     DEFAULT_wxUSE_RADIOBOX=no
9939     DEFAULT_wxUSE_RADIOBTN=no
9940     DEFAULT_wxUSE_RICHMSGDLG=no
9941     DEFAULT_wxUSE_REARRANGECTRL=no
9942     DEFAULT_wxUSE_SASH=no
9943     DEFAULT_wxUSE_SCROLLBAR=no
9944     DEFAULT_wxUSE_SEARCHCTRL=no
9945     DEFAULT_wxUSE_SLIDER=no
9946     DEFAULT_wxUSE_SPINBTN=no
9947     DEFAULT_wxUSE_SPINCTRL=no
9948     DEFAULT_wxUSE_SPLITTER=no
9949     DEFAULT_wxUSE_STATBMP=no
9950     DEFAULT_wxUSE_STATBOX=no
9951     DEFAULT_wxUSE_STATLINE=no
9952     DEFAULT_wxUSE_STATUSBAR=no
9953     DEFAULT_wxUSE_TIPWINDOW=no
9954     DEFAULT_wxUSE_TOGGLEBTN=no
9955     DEFAULT_wxUSE_TOOLBAR=no
9956     DEFAULT_wxUSE_TOOLBAR_NATIVE=no
9957     DEFAULT_wxUSE_TOOLBOOK=no
9958     DEFAULT_wxUSE_TOOLTIPS=no
9959     DEFAULT_wxUSE_TREEBOOK=no
9960     DEFAULT_wxUSE_TREECTRL=no
9961 fi
9962
9963
9964           enablestring=
9965           defaultval=$wxUSE_ALL_FEATURES
9966           if test -z "$defaultval"; then
9967               if test x"$enablestring" = xdisable; then
9968                   defaultval=yes
9969               else
9970                   defaultval=no
9971               fi
9972           fi
9973
9974           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-markup" >&5
9975 echo $ECHO_N "checking for --${enablestring:-enable}-markup... $ECHO_C" >&6; }
9976           # Check whether --enable-markup was given.
9977 if test "${enable_markup+set}" = set; then
9978   enableval=$enable_markup;
9979                           if test "$enableval" = yes; then
9980                             wx_cv_use_markup='wxUSE_MARKUP=yes'
9981                           else
9982                             wx_cv_use_markup='wxUSE_MARKUP=no'
9983                           fi
9984
9985 else
9986
9987                           wx_cv_use_markup='wxUSE_MARKUP=${'DEFAULT_wxUSE_MARKUP":-$defaultval}"
9988
9989 fi
9990
9991
9992           eval "$wx_cv_use_markup"
9993
9994           if test x"$enablestring" = xdisable; then
9995             if test $wxUSE_MARKUP = no; then
9996               result=yes
9997             else
9998               result=no
9999             fi
10000           else
10001             result=$wxUSE_MARKUP
10002           fi
10003
10004           { echo "$as_me:$LINENO: result: $result" >&5
10005 echo "${ECHO_T}$result" >&6; }
10006
10007
10008
10009           enablestring=
10010           defaultval=$wxUSE_ALL_FEATURES
10011           if test -z "$defaultval"; then
10012               if test x"$enablestring" = xdisable; then
10013                   defaultval=yes
10014               else
10015                   defaultval=no
10016               fi
10017           fi
10018
10019           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accel" >&5
10020 echo $ECHO_N "checking for --${enablestring:-enable}-accel... $ECHO_C" >&6; }
10021           # Check whether --enable-accel was given.
10022 if test "${enable_accel+set}" = set; then
10023   enableval=$enable_accel;
10024                           if test "$enableval" = yes; then
10025                             wx_cv_use_accel='wxUSE_ACCEL=yes'
10026                           else
10027                             wx_cv_use_accel='wxUSE_ACCEL=no'
10028                           fi
10029
10030 else
10031
10032                           wx_cv_use_accel='wxUSE_ACCEL=${'DEFAULT_wxUSE_ACCEL":-$defaultval}"
10033
10034 fi
10035
10036
10037           eval "$wx_cv_use_accel"
10038
10039           if test x"$enablestring" = xdisable; then
10040             if test $wxUSE_ACCEL = no; then
10041               result=yes
10042             else
10043               result=no
10044             fi
10045           else
10046             result=$wxUSE_ACCEL
10047           fi
10048
10049           { echo "$as_me:$LINENO: result: $result" >&5
10050 echo "${ECHO_T}$result" >&6; }
10051
10052
10053           enablestring=
10054           defaultval=$wxUSE_ALL_FEATURES
10055           if test -z "$defaultval"; then
10056               if test x"$enablestring" = xdisable; then
10057                   defaultval=yes
10058               else
10059                   defaultval=no
10060               fi
10061           fi
10062
10063           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-animatectrl" >&5
10064 echo $ECHO_N "checking for --${enablestring:-enable}-animatectrl... $ECHO_C" >&6; }
10065           # Check whether --enable-animatectrl was given.
10066 if test "${enable_animatectrl+set}" = set; then
10067   enableval=$enable_animatectrl;
10068                           if test "$enableval" = yes; then
10069                             wx_cv_use_animatectrl='wxUSE_ANIMATIONCTRL=yes'
10070                           else
10071                             wx_cv_use_animatectrl='wxUSE_ANIMATIONCTRL=no'
10072                           fi
10073
10074 else
10075
10076                           wx_cv_use_animatectrl='wxUSE_ANIMATIONCTRL=${'DEFAULT_wxUSE_ANIMATIONCTRL":-$defaultval}"
10077
10078 fi
10079
10080
10081           eval "$wx_cv_use_animatectrl"
10082
10083           if test x"$enablestring" = xdisable; then
10084             if test $wxUSE_ANIMATIONCTRL = no; then
10085               result=yes
10086             else
10087               result=no
10088             fi
10089           else
10090             result=$wxUSE_ANIMATIONCTRL
10091           fi
10092
10093           { echo "$as_me:$LINENO: result: $result" >&5
10094 echo "${ECHO_T}$result" >&6; }
10095
10096
10097           enablestring=
10098           defaultval=$wxUSE_ALL_FEATURES
10099           if test -z "$defaultval"; then
10100               if test x"$enablestring" = xdisable; then
10101                   defaultval=yes
10102               else
10103                   defaultval=no
10104               fi
10105           fi
10106
10107           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-artstd" >&5
10108 echo $ECHO_N "checking for --${enablestring:-enable}-artstd... $ECHO_C" >&6; }
10109           # Check whether --enable-artstd was given.
10110 if test "${enable_artstd+set}" = set; then
10111   enableval=$enable_artstd;
10112                           if test "$enableval" = yes; then
10113                             wx_cv_use_artstd='wxUSE_ARTPROVIDER_STD=yes'
10114                           else
10115                             wx_cv_use_artstd='wxUSE_ARTPROVIDER_STD=no'
10116                           fi
10117
10118 else
10119
10120                           wx_cv_use_artstd='wxUSE_ARTPROVIDER_STD=${'DEFAULT_wxUSE_ARTPROVIDER_STD":-$defaultval}"
10121
10122 fi
10123
10124
10125           eval "$wx_cv_use_artstd"
10126
10127           if test x"$enablestring" = xdisable; then
10128             if test $wxUSE_ARTPROVIDER_STD = no; then
10129               result=yes
10130             else
10131               result=no
10132             fi
10133           else
10134             result=$wxUSE_ARTPROVIDER_STD
10135           fi
10136
10137           { echo "$as_me:$LINENO: result: $result" >&5
10138 echo "${ECHO_T}$result" >&6; }
10139
10140
10141           enablestring=
10142           defaultval=$wxUSE_ALL_FEATURES
10143           if test -z "$defaultval"; then
10144               if test x"$enablestring" = xdisable; then
10145                   defaultval=yes
10146               else
10147                   defaultval=no
10148               fi
10149           fi
10150
10151           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-arttango" >&5
10152 echo $ECHO_N "checking for --${enablestring:-enable}-arttango... $ECHO_C" >&6; }
10153           # Check whether --enable-arttango was given.
10154 if test "${enable_arttango+set}" = set; then
10155   enableval=$enable_arttango;
10156                           if test "$enableval" = yes; then
10157                             wx_cv_use_arttango='wxUSE_ARTPROVIDER_TANGO=yes'
10158                           else
10159                             wx_cv_use_arttango='wxUSE_ARTPROVIDER_TANGO=no'
10160                           fi
10161
10162 else
10163
10164                           wx_cv_use_arttango='wxUSE_ARTPROVIDER_TANGO=${'DEFAULT_wxUSE_ARTPROVIDER_TANGO":-$defaultval}"
10165
10166 fi
10167
10168
10169           eval "$wx_cv_use_arttango"
10170
10171           if test x"$enablestring" = xdisable; then
10172             if test $wxUSE_ARTPROVIDER_TANGO = no; then
10173               result=yes
10174             else
10175               result=no
10176             fi
10177           else
10178             result=$wxUSE_ARTPROVIDER_TANGO
10179           fi
10180
10181           { echo "$as_me:$LINENO: result: $result" >&5
10182 echo "${ECHO_T}$result" >&6; }
10183
10184
10185           enablestring=
10186           defaultval=$wxUSE_ALL_FEATURES
10187           if test -z "$defaultval"; then
10188               if test x"$enablestring" = xdisable; then
10189                   defaultval=yes
10190               else
10191                   defaultval=no
10192               fi
10193           fi
10194
10195           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bmpbutton" >&5
10196 echo $ECHO_N "checking for --${enablestring:-enable}-bmpbutton... $ECHO_C" >&6; }
10197           # Check whether --enable-bmpbutton was given.
10198 if test "${enable_bmpbutton+set}" = set; then
10199   enableval=$enable_bmpbutton;
10200                           if test "$enableval" = yes; then
10201                             wx_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
10202                           else
10203                             wx_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
10204                           fi
10205
10206 else
10207
10208                           wx_cv_use_bmpbutton='wxUSE_BMPBUTTON=${'DEFAULT_wxUSE_BMPBUTTON":-$defaultval}"
10209
10210 fi
10211
10212
10213           eval "$wx_cv_use_bmpbutton"
10214
10215           if test x"$enablestring" = xdisable; then
10216             if test $wxUSE_BMPBUTTON = no; then
10217               result=yes
10218             else
10219               result=no
10220             fi
10221           else
10222             result=$wxUSE_BMPBUTTON
10223           fi
10224
10225           { echo "$as_me:$LINENO: result: $result" >&5
10226 echo "${ECHO_T}$result" >&6; }
10227
10228
10229           enablestring=
10230           defaultval=$wxUSE_ALL_FEATURES
10231           if test -z "$defaultval"; then
10232               if test x"$enablestring" = xdisable; then
10233                   defaultval=yes
10234               else
10235                   defaultval=no
10236               fi
10237           fi
10238
10239           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bmpcombobox" >&5
10240 echo $ECHO_N "checking for --${enablestring:-enable}-bmpcombobox... $ECHO_C" >&6; }
10241           # Check whether --enable-bmpcombobox was given.
10242 if test "${enable_bmpcombobox+set}" = set; then
10243   enableval=$enable_bmpcombobox;
10244                           if test "$enableval" = yes; then
10245                             wx_cv_use_bmpcombobox='wxUSE_BITMAPCOMBOBOX=yes'
10246                           else
10247                             wx_cv_use_bmpcombobox='wxUSE_BITMAPCOMBOBOX=no'
10248                           fi
10249
10250 else
10251
10252                           wx_cv_use_bmpcombobox='wxUSE_BITMAPCOMBOBOX=${'DEFAULT_wxUSE_BITMAPCOMBOBOX":-$defaultval}"
10253
10254 fi
10255
10256
10257           eval "$wx_cv_use_bmpcombobox"
10258
10259           if test x"$enablestring" = xdisable; then
10260             if test $wxUSE_BITMAPCOMBOBOX = no; then
10261               result=yes
10262             else
10263               result=no
10264             fi
10265           else
10266             result=$wxUSE_BITMAPCOMBOBOX
10267           fi
10268
10269           { echo "$as_me:$LINENO: result: $result" >&5
10270 echo "${ECHO_T}$result" >&6; }
10271
10272
10273           enablestring=
10274           defaultval=$wxUSE_ALL_FEATURES
10275           if test -z "$defaultval"; then
10276               if test x"$enablestring" = xdisable; then
10277                   defaultval=yes
10278               else
10279                   defaultval=no
10280               fi
10281           fi
10282
10283           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-button" >&5
10284 echo $ECHO_N "checking for --${enablestring:-enable}-button... $ECHO_C" >&6; }
10285           # Check whether --enable-button was given.
10286 if test "${enable_button+set}" = set; then
10287   enableval=$enable_button;
10288                           if test "$enableval" = yes; then
10289                             wx_cv_use_button='wxUSE_BUTTON=yes'
10290                           else
10291                             wx_cv_use_button='wxUSE_BUTTON=no'
10292                           fi
10293
10294 else
10295
10296                           wx_cv_use_button='wxUSE_BUTTON=${'DEFAULT_wxUSE_BUTTON":-$defaultval}"
10297
10298 fi
10299
10300
10301           eval "$wx_cv_use_button"
10302
10303           if test x"$enablestring" = xdisable; then
10304             if test $wxUSE_BUTTON = no; then
10305               result=yes
10306             else
10307               result=no
10308             fi
10309           else
10310             result=$wxUSE_BUTTON
10311           fi
10312
10313           { echo "$as_me:$LINENO: result: $result" >&5
10314 echo "${ECHO_T}$result" >&6; }
10315
10316
10317           enablestring=
10318           defaultval=$wxUSE_ALL_FEATURES
10319           if test -z "$defaultval"; then
10320               if test x"$enablestring" = xdisable; then
10321                   defaultval=yes
10322               else
10323                   defaultval=no
10324               fi
10325           fi
10326
10327           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-calendar" >&5
10328 echo $ECHO_N "checking for --${enablestring:-enable}-calendar... $ECHO_C" >&6; }
10329           # Check whether --enable-calendar was given.
10330 if test "${enable_calendar+set}" = set; then
10331   enableval=$enable_calendar;
10332                           if test "$enableval" = yes; then
10333                             wx_cv_use_calendar='wxUSE_CALCTRL=yes'
10334                           else
10335                             wx_cv_use_calendar='wxUSE_CALCTRL=no'
10336                           fi
10337
10338 else
10339
10340                           wx_cv_use_calendar='wxUSE_CALCTRL=${'DEFAULT_wxUSE_CALCTRL":-$defaultval}"
10341
10342 fi
10343
10344
10345           eval "$wx_cv_use_calendar"
10346
10347           if test x"$enablestring" = xdisable; then
10348             if test $wxUSE_CALCTRL = no; then
10349               result=yes
10350             else
10351               result=no
10352             fi
10353           else
10354             result=$wxUSE_CALCTRL
10355           fi
10356
10357           { echo "$as_me:$LINENO: result: $result" >&5
10358 echo "${ECHO_T}$result" >&6; }
10359
10360
10361           enablestring=
10362           defaultval=$wxUSE_ALL_FEATURES
10363           if test -z "$defaultval"; then
10364               if test x"$enablestring" = xdisable; then
10365                   defaultval=yes
10366               else
10367                   defaultval=no
10368               fi
10369           fi
10370
10371           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-caret" >&5
10372 echo $ECHO_N "checking for --${enablestring:-enable}-caret... $ECHO_C" >&6; }
10373           # Check whether --enable-caret was given.
10374 if test "${enable_caret+set}" = set; then
10375   enableval=$enable_caret;
10376                           if test "$enableval" = yes; then
10377                             wx_cv_use_caret='wxUSE_CARET=yes'
10378                           else
10379                             wx_cv_use_caret='wxUSE_CARET=no'
10380                           fi
10381
10382 else
10383
10384                           wx_cv_use_caret='wxUSE_CARET=${'DEFAULT_wxUSE_CARET":-$defaultval}"
10385
10386 fi
10387
10388
10389           eval "$wx_cv_use_caret"
10390
10391           if test x"$enablestring" = xdisable; then
10392             if test $wxUSE_CARET = no; then
10393               result=yes
10394             else
10395               result=no
10396             fi
10397           else
10398             result=$wxUSE_CARET
10399           fi
10400
10401           { echo "$as_me:$LINENO: result: $result" >&5
10402 echo "${ECHO_T}$result" >&6; }
10403
10404
10405           enablestring=
10406           defaultval=$wxUSE_ALL_FEATURES
10407           if test -z "$defaultval"; then
10408               if test x"$enablestring" = xdisable; then
10409                   defaultval=yes
10410               else
10411                   defaultval=no
10412               fi
10413           fi
10414
10415           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checkbox" >&5
10416 echo $ECHO_N "checking for --${enablestring:-enable}-checkbox... $ECHO_C" >&6; }
10417           # Check whether --enable-checkbox was given.
10418 if test "${enable_checkbox+set}" = set; then
10419   enableval=$enable_checkbox;
10420                           if test "$enableval" = yes; then
10421                             wx_cv_use_checkbox='wxUSE_CHECKBOX=yes'
10422                           else
10423                             wx_cv_use_checkbox='wxUSE_CHECKBOX=no'
10424                           fi
10425
10426 else
10427
10428                           wx_cv_use_checkbox='wxUSE_CHECKBOX=${'DEFAULT_wxUSE_CHECKBOX":-$defaultval}"
10429
10430 fi
10431
10432
10433           eval "$wx_cv_use_checkbox"
10434
10435           if test x"$enablestring" = xdisable; then
10436             if test $wxUSE_CHECKBOX = no; then
10437               result=yes
10438             else
10439               result=no
10440             fi
10441           else
10442             result=$wxUSE_CHECKBOX
10443           fi
10444
10445           { echo "$as_me:$LINENO: result: $result" >&5
10446 echo "${ECHO_T}$result" >&6; }
10447
10448
10449           enablestring=
10450           defaultval=$wxUSE_ALL_FEATURES
10451           if test -z "$defaultval"; then
10452               if test x"$enablestring" = xdisable; then
10453                   defaultval=yes
10454               else
10455                   defaultval=no
10456               fi
10457           fi
10458
10459           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checklst" >&5
10460 echo $ECHO_N "checking for --${enablestring:-enable}-checklst... $ECHO_C" >&6; }
10461           # Check whether --enable-checklst was given.
10462 if test "${enable_checklst+set}" = set; then
10463   enableval=$enable_checklst;
10464                           if test "$enableval" = yes; then
10465                             wx_cv_use_checklst='wxUSE_CHECKLST=yes'
10466                           else
10467                             wx_cv_use_checklst='wxUSE_CHECKLST=no'
10468                           fi
10469
10470 else
10471
10472                           wx_cv_use_checklst='wxUSE_CHECKLST=${'DEFAULT_wxUSE_CHECKLST":-$defaultval}"
10473
10474 fi
10475
10476
10477           eval "$wx_cv_use_checklst"
10478
10479           if test x"$enablestring" = xdisable; then
10480             if test $wxUSE_CHECKLST = no; then
10481               result=yes
10482             else
10483               result=no
10484             fi
10485           else
10486             result=$wxUSE_CHECKLST
10487           fi
10488
10489           { echo "$as_me:$LINENO: result: $result" >&5
10490 echo "${ECHO_T}$result" >&6; }
10491
10492
10493           enablestring=
10494           defaultval=$wxUSE_ALL_FEATURES
10495           if test -z "$defaultval"; then
10496               if test x"$enablestring" = xdisable; then
10497                   defaultval=yes
10498               else
10499                   defaultval=no
10500               fi
10501           fi
10502
10503           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choice" >&5
10504 echo $ECHO_N "checking for --${enablestring:-enable}-choice... $ECHO_C" >&6; }
10505           # Check whether --enable-choice was given.
10506 if test "${enable_choice+set}" = set; then
10507   enableval=$enable_choice;
10508                           if test "$enableval" = yes; then
10509                             wx_cv_use_choice='wxUSE_CHOICE=yes'
10510                           else
10511                             wx_cv_use_choice='wxUSE_CHOICE=no'
10512                           fi
10513
10514 else
10515
10516                           wx_cv_use_choice='wxUSE_CHOICE=${'DEFAULT_wxUSE_CHOICE":-$defaultval}"
10517
10518 fi
10519
10520
10521           eval "$wx_cv_use_choice"
10522
10523           if test x"$enablestring" = xdisable; then
10524             if test $wxUSE_CHOICE = no; then
10525               result=yes
10526             else
10527               result=no
10528             fi
10529           else
10530             result=$wxUSE_CHOICE
10531           fi
10532
10533           { echo "$as_me:$LINENO: result: $result" >&5
10534 echo "${ECHO_T}$result" >&6; }
10535
10536
10537           enablestring=
10538           defaultval=$wxUSE_ALL_FEATURES
10539           if test -z "$defaultval"; then
10540               if test x"$enablestring" = xdisable; then
10541                   defaultval=yes
10542               else
10543                   defaultval=no
10544               fi
10545           fi
10546
10547           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicebook" >&5
10548 echo $ECHO_N "checking for --${enablestring:-enable}-choicebook... $ECHO_C" >&6; }
10549           # Check whether --enable-choicebook was given.
10550 if test "${enable_choicebook+set}" = set; then
10551   enableval=$enable_choicebook;
10552                           if test "$enableval" = yes; then
10553                             wx_cv_use_choicebook='wxUSE_CHOICEBOOK=yes'
10554                           else
10555                             wx_cv_use_choicebook='wxUSE_CHOICEBOOK=no'
10556                           fi
10557
10558 else
10559
10560                           wx_cv_use_choicebook='wxUSE_CHOICEBOOK=${'DEFAULT_wxUSE_CHOICEBOOK":-$defaultval}"
10561
10562 fi
10563
10564
10565           eval "$wx_cv_use_choicebook"
10566
10567           if test x"$enablestring" = xdisable; then
10568             if test $wxUSE_CHOICEBOOK = no; then
10569               result=yes
10570             else
10571               result=no
10572             fi
10573           else
10574             result=$wxUSE_CHOICEBOOK
10575           fi
10576
10577           { echo "$as_me:$LINENO: result: $result" >&5
10578 echo "${ECHO_T}$result" >&6; }
10579
10580
10581           enablestring=
10582           defaultval=$wxUSE_ALL_FEATURES
10583           if test -z "$defaultval"; then
10584               if test x"$enablestring" = xdisable; then
10585                   defaultval=yes
10586               else
10587                   defaultval=no
10588               fi
10589           fi
10590
10591           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-collpane" >&5
10592 echo $ECHO_N "checking for --${enablestring:-enable}-collpane... $ECHO_C" >&6; }
10593           # Check whether --enable-collpane was given.
10594 if test "${enable_collpane+set}" = set; then
10595   enableval=$enable_collpane;
10596                           if test "$enableval" = yes; then
10597                             wx_cv_use_collpane='wxUSE_COLLPANE=yes'
10598                           else
10599                             wx_cv_use_collpane='wxUSE_COLLPANE=no'
10600                           fi
10601
10602 else
10603
10604                           wx_cv_use_collpane='wxUSE_COLLPANE=${'DEFAULT_wxUSE_COLLPANE":-$defaultval}"
10605
10606 fi
10607
10608
10609           eval "$wx_cv_use_collpane"
10610
10611           if test x"$enablestring" = xdisable; then
10612             if test $wxUSE_COLLPANE = no; then
10613               result=yes
10614             else
10615               result=no
10616             fi
10617           else
10618             result=$wxUSE_COLLPANE
10619           fi
10620
10621           { echo "$as_me:$LINENO: result: $result" >&5
10622 echo "${ECHO_T}$result" >&6; }
10623
10624
10625           enablestring=
10626           defaultval=$wxUSE_ALL_FEATURES
10627           if test -z "$defaultval"; then
10628               if test x"$enablestring" = xdisable; then
10629                   defaultval=yes
10630               else
10631                   defaultval=no
10632               fi
10633           fi
10634
10635           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-colourpicker" >&5
10636 echo $ECHO_N "checking for --${enablestring:-enable}-colourpicker... $ECHO_C" >&6; }
10637           # Check whether --enable-colourpicker was given.
10638 if test "${enable_colourpicker+set}" = set; then
10639   enableval=$enable_colourpicker;
10640                           if test "$enableval" = yes; then
10641                             wx_cv_use_colourpicker='wxUSE_COLOURPICKERCTRL=yes'
10642                           else
10643                             wx_cv_use_colourpicker='wxUSE_COLOURPICKERCTRL=no'
10644                           fi
10645
10646 else
10647
10648                           wx_cv_use_colourpicker='wxUSE_COLOURPICKERCTRL=${'DEFAULT_wxUSE_COLOURPICKERCTRL":-$defaultval}"
10649
10650 fi
10651
10652
10653           eval "$wx_cv_use_colourpicker"
10654
10655           if test x"$enablestring" = xdisable; then
10656             if test $wxUSE_COLOURPICKERCTRL = no; then
10657               result=yes
10658             else
10659               result=no
10660             fi
10661           else
10662             result=$wxUSE_COLOURPICKERCTRL
10663           fi
10664
10665           { echo "$as_me:$LINENO: result: $result" >&5
10666 echo "${ECHO_T}$result" >&6; }
10667
10668
10669           enablestring=
10670           defaultval=$wxUSE_ALL_FEATURES
10671           if test -z "$defaultval"; then
10672               if test x"$enablestring" = xdisable; then
10673                   defaultval=yes
10674               else
10675                   defaultval=no
10676               fi
10677           fi
10678
10679           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-combobox" >&5
10680 echo $ECHO_N "checking for --${enablestring:-enable}-combobox... $ECHO_C" >&6; }
10681           # Check whether --enable-combobox was given.
10682 if test "${enable_combobox+set}" = set; then
10683   enableval=$enable_combobox;
10684                           if test "$enableval" = yes; then
10685                             wx_cv_use_combobox='wxUSE_COMBOBOX=yes'
10686                           else
10687                             wx_cv_use_combobox='wxUSE_COMBOBOX=no'
10688                           fi
10689
10690 else
10691
10692                           wx_cv_use_combobox='wxUSE_COMBOBOX=${'DEFAULT_wxUSE_COMBOBOX":-$defaultval}"
10693
10694 fi
10695
10696
10697           eval "$wx_cv_use_combobox"
10698
10699           if test x"$enablestring" = xdisable; then
10700             if test $wxUSE_COMBOBOX = no; then
10701               result=yes
10702             else
10703               result=no
10704             fi
10705           else
10706             result=$wxUSE_COMBOBOX
10707           fi
10708
10709           { echo "$as_me:$LINENO: result: $result" >&5
10710 echo "${ECHO_T}$result" >&6; }
10711
10712
10713           enablestring=
10714           defaultval=$wxUSE_ALL_FEATURES
10715           if test -z "$defaultval"; then
10716               if test x"$enablestring" = xdisable; then
10717                   defaultval=yes
10718               else
10719                   defaultval=no
10720               fi
10721           fi
10722
10723           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-comboctrl" >&5
10724 echo $ECHO_N "checking for --${enablestring:-enable}-comboctrl... $ECHO_C" >&6; }
10725           # Check whether --enable-comboctrl was given.
10726 if test "${enable_comboctrl+set}" = set; then
10727   enableval=$enable_comboctrl;
10728                           if test "$enableval" = yes; then
10729                             wx_cv_use_comboctrl='wxUSE_COMBOCTRL=yes'
10730                           else
10731                             wx_cv_use_comboctrl='wxUSE_COMBOCTRL=no'
10732                           fi
10733
10734 else
10735
10736                           wx_cv_use_comboctrl='wxUSE_COMBOCTRL=${'DEFAULT_wxUSE_COMBOCTRL":-$defaultval}"
10737
10738 fi
10739
10740
10741           eval "$wx_cv_use_comboctrl"
10742
10743           if test x"$enablestring" = xdisable; then
10744             if test $wxUSE_COMBOCTRL = no; then
10745               result=yes
10746             else
10747               result=no
10748             fi
10749           else
10750             result=$wxUSE_COMBOCTRL
10751           fi
10752
10753           { echo "$as_me:$LINENO: result: $result" >&5
10754 echo "${ECHO_T}$result" >&6; }
10755
10756
10757           enablestring=
10758           defaultval=$wxUSE_ALL_FEATURES
10759           if test -z "$defaultval"; then
10760               if test x"$enablestring" = xdisable; then
10761                   defaultval=yes
10762               else
10763                   defaultval=no
10764               fi
10765           fi
10766
10767           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-commandlinkbutton" >&5
10768 echo $ECHO_N "checking for --${enablestring:-enable}-commandlinkbutton... $ECHO_C" >&6; }
10769           # Check whether --enable-commandlinkbutton was given.
10770 if test "${enable_commandlinkbutton+set}" = set; then
10771   enableval=$enable_commandlinkbutton;
10772                           if test "$enableval" = yes; then
10773                             wx_cv_use_commandlinkbutton='wxUSE_COMMANDLINKBUTTON=yes'
10774                           else
10775                             wx_cv_use_commandlinkbutton='wxUSE_COMMANDLINKBUTTON=no'
10776                           fi
10777
10778 else
10779
10780                           wx_cv_use_commandlinkbutton='wxUSE_COMMANDLINKBUTTON=${'DEFAULT_wxUSE_COMMANDLINKBUTTON":-$defaultval}"
10781
10782 fi
10783
10784
10785           eval "$wx_cv_use_commandlinkbutton"
10786
10787           if test x"$enablestring" = xdisable; then
10788             if test $wxUSE_COMMANDLINKBUTTON = no; then
10789               result=yes
10790             else
10791               result=no
10792             fi
10793           else
10794             result=$wxUSE_COMMANDLINKBUTTON
10795           fi
10796
10797           { echo "$as_me:$LINENO: result: $result" >&5
10798 echo "${ECHO_T}$result" >&6; }
10799
10800
10801           enablestring=
10802           defaultval=$wxUSE_ALL_FEATURES
10803           if test -z "$defaultval"; then
10804               if test x"$enablestring" = xdisable; then
10805                   defaultval=yes
10806               else
10807                   defaultval=no
10808               fi
10809           fi
10810
10811           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataviewctrl" >&5
10812 echo $ECHO_N "checking for --${enablestring:-enable}-dataviewctrl... $ECHO_C" >&6; }
10813           # Check whether --enable-dataviewctrl was given.
10814 if test "${enable_dataviewctrl+set}" = set; then
10815   enableval=$enable_dataviewctrl;
10816                           if test "$enableval" = yes; then
10817                             wx_cv_use_dataviewctrl='wxUSE_DATAVIEWCTRL=yes'
10818                           else
10819                             wx_cv_use_dataviewctrl='wxUSE_DATAVIEWCTRL=no'
10820                           fi
10821
10822 else
10823
10824                           wx_cv_use_dataviewctrl='wxUSE_DATAVIEWCTRL=${'DEFAULT_wxUSE_DATAVIEWCTRL":-$defaultval}"
10825
10826 fi
10827
10828
10829           eval "$wx_cv_use_dataviewctrl"
10830
10831           if test x"$enablestring" = xdisable; then
10832             if test $wxUSE_DATAVIEWCTRL = no; then
10833               result=yes
10834             else
10835               result=no
10836             fi
10837           else
10838             result=$wxUSE_DATAVIEWCTRL
10839           fi
10840
10841           { echo "$as_me:$LINENO: result: $result" >&5
10842 echo "${ECHO_T}$result" >&6; }
10843
10844
10845           enablestring=
10846           defaultval=$wxUSE_ALL_FEATURES
10847           if test -z "$defaultval"; then
10848               if test x"$enablestring" = xdisable; then
10849                   defaultval=yes
10850               else
10851                   defaultval=no
10852               fi
10853           fi
10854
10855           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datepick" >&5
10856 echo $ECHO_N "checking for --${enablestring:-enable}-datepick... $ECHO_C" >&6; }
10857           # Check whether --enable-datepick was given.
10858 if test "${enable_datepick+set}" = set; then
10859   enableval=$enable_datepick;
10860                           if test "$enableval" = yes; then
10861                             wx_cv_use_datepick='wxUSE_DATEPICKCTRL=yes'
10862                           else
10863                             wx_cv_use_datepick='wxUSE_DATEPICKCTRL=no'
10864                           fi
10865
10866 else
10867
10868                           wx_cv_use_datepick='wxUSE_DATEPICKCTRL=${'DEFAULT_wxUSE_DATEPICKCTRL":-$defaultval}"
10869
10870 fi
10871
10872
10873           eval "$wx_cv_use_datepick"
10874
10875           if test x"$enablestring" = xdisable; then
10876             if test $wxUSE_DATEPICKCTRL = no; then
10877               result=yes
10878             else
10879               result=no
10880             fi
10881           else
10882             result=$wxUSE_DATEPICKCTRL
10883           fi
10884
10885           { echo "$as_me:$LINENO: result: $result" >&5
10886 echo "${ECHO_T}$result" >&6; }
10887
10888
10889           enablestring=
10890           defaultval=$wxUSE_ALL_FEATURES
10891           if test -z "$defaultval"; then
10892               if test x"$enablestring" = xdisable; then
10893                   defaultval=yes
10894               else
10895                   defaultval=no
10896               fi
10897           fi
10898
10899           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-detect_sm" >&5
10900 echo $ECHO_N "checking for --${enablestring:-enable}-detect_sm... $ECHO_C" >&6; }
10901           # Check whether --enable-detect_sm was given.
10902 if test "${enable_detect_sm+set}" = set; then
10903   enableval=$enable_detect_sm;
10904                           if test "$enableval" = yes; then
10905                             wx_cv_use_detect_sm='wxUSE_DETECT_SM=yes'
10906                           else
10907                             wx_cv_use_detect_sm='wxUSE_DETECT_SM=no'
10908                           fi
10909
10910 else
10911
10912                           wx_cv_use_detect_sm='wxUSE_DETECT_SM=${'DEFAULT_wxUSE_DETECT_SM":-$defaultval}"
10913
10914 fi
10915
10916
10917           eval "$wx_cv_use_detect_sm"
10918
10919           if test x"$enablestring" = xdisable; then
10920             if test $wxUSE_DETECT_SM = no; then
10921               result=yes
10922             else
10923               result=no
10924             fi
10925           else
10926             result=$wxUSE_DETECT_SM
10927           fi
10928
10929           { echo "$as_me:$LINENO: result: $result" >&5
10930 echo "${ECHO_T}$result" >&6; }
10931
10932
10933           enablestring=
10934           defaultval=$wxUSE_ALL_FEATURES
10935           if test -z "$defaultval"; then
10936               if test x"$enablestring" = xdisable; then
10937                   defaultval=yes
10938               else
10939                   defaultval=no
10940               fi
10941           fi
10942
10943           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirpicker" >&5
10944 echo $ECHO_N "checking for --${enablestring:-enable}-dirpicker... $ECHO_C" >&6; }
10945           # Check whether --enable-dirpicker was given.
10946 if test "${enable_dirpicker+set}" = set; then
10947   enableval=$enable_dirpicker;
10948                           if test "$enableval" = yes; then
10949                             wx_cv_use_dirpicker='wxUSE_DIRPICKERCTRL=yes'
10950                           else
10951                             wx_cv_use_dirpicker='wxUSE_DIRPICKERCTRL=no'
10952                           fi
10953
10954 else
10955
10956                           wx_cv_use_dirpicker='wxUSE_DIRPICKERCTRL=${'DEFAULT_wxUSE_DIRPICKERCTRL":-$defaultval}"
10957
10958 fi
10959
10960
10961           eval "$wx_cv_use_dirpicker"
10962
10963           if test x"$enablestring" = xdisable; then
10964             if test $wxUSE_DIRPICKERCTRL = no; then
10965               result=yes
10966             else
10967               result=no
10968             fi
10969           else
10970             result=$wxUSE_DIRPICKERCTRL
10971           fi
10972
10973           { echo "$as_me:$LINENO: result: $result" >&5
10974 echo "${ECHO_T}$result" >&6; }
10975
10976
10977           enablestring=
10978           defaultval=$wxUSE_ALL_FEATURES
10979           if test -z "$defaultval"; then
10980               if test x"$enablestring" = xdisable; then
10981                   defaultval=yes
10982               else
10983                   defaultval=no
10984               fi
10985           fi
10986
10987           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-display" >&5
10988 echo $ECHO_N "checking for --${enablestring:-enable}-display... $ECHO_C" >&6; }
10989           # Check whether --enable-display was given.
10990 if test "${enable_display+set}" = set; then
10991   enableval=$enable_display;
10992                           if test "$enableval" = yes; then
10993                             wx_cv_use_display='wxUSE_DISPLAY=yes'
10994                           else
10995                             wx_cv_use_display='wxUSE_DISPLAY=no'
10996                           fi
10997
10998 else
10999
11000                           wx_cv_use_display='wxUSE_DISPLAY=${'DEFAULT_wxUSE_DISPLAY":-$defaultval}"
11001
11002 fi
11003
11004
11005           eval "$wx_cv_use_display"
11006
11007           if test x"$enablestring" = xdisable; then
11008             if test $wxUSE_DISPLAY = no; then
11009               result=yes
11010             else
11011               result=no
11012             fi
11013           else
11014             result=$wxUSE_DISPLAY
11015           fi
11016
11017           { echo "$as_me:$LINENO: result: $result" >&5
11018 echo "${ECHO_T}$result" >&6; }
11019
11020
11021           enablestring=
11022           defaultval=$wxUSE_ALL_FEATURES
11023           if test -z "$defaultval"; then
11024               if test x"$enablestring" = xdisable; then
11025                   defaultval=yes
11026               else
11027                   defaultval=no
11028               fi
11029           fi
11030
11031           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-editablebox" >&5
11032 echo $ECHO_N "checking for --${enablestring:-enable}-editablebox... $ECHO_C" >&6; }
11033           # Check whether --enable-editablebox was given.
11034 if test "${enable_editablebox+set}" = set; then
11035   enableval=$enable_editablebox;
11036                           if test "$enableval" = yes; then
11037                             wx_cv_use_editablebox='wxUSE_EDITABLELISTBOX=yes'
11038                           else
11039                             wx_cv_use_editablebox='wxUSE_EDITABLELISTBOX=no'
11040                           fi
11041
11042 else
11043
11044                           wx_cv_use_editablebox='wxUSE_EDITABLELISTBOX=${'DEFAULT_wxUSE_EDITABLELISTBOX":-$defaultval}"
11045
11046 fi
11047
11048
11049           eval "$wx_cv_use_editablebox"
11050
11051           if test x"$enablestring" = xdisable; then
11052             if test $wxUSE_EDITABLELISTBOX = no; then
11053               result=yes
11054             else
11055               result=no
11056             fi
11057           else
11058             result=$wxUSE_EDITABLELISTBOX
11059           fi
11060
11061           { echo "$as_me:$LINENO: result: $result" >&5
11062 echo "${ECHO_T}$result" >&6; }
11063
11064
11065           enablestring=
11066           defaultval=$wxUSE_ALL_FEATURES
11067           if test -z "$defaultval"; then
11068               if test x"$enablestring" = xdisable; then
11069                   defaultval=yes
11070               else
11071                   defaultval=no
11072               fi
11073           fi
11074
11075           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filectrl" >&5
11076 echo $ECHO_N "checking for --${enablestring:-enable}-filectrl... $ECHO_C" >&6; }
11077           # Check whether --enable-filectrl was given.
11078 if test "${enable_filectrl+set}" = set; then
11079   enableval=$enable_filectrl;
11080                           if test "$enableval" = yes; then
11081                             wx_cv_use_filectrl='wxUSE_FILECTRL=yes'
11082                           else
11083                             wx_cv_use_filectrl='wxUSE_FILECTRL=no'
11084                           fi
11085
11086 else
11087
11088                           wx_cv_use_filectrl='wxUSE_FILECTRL=${'DEFAULT_wxUSE_FILECTRL":-$defaultval}"
11089
11090 fi
11091
11092
11093           eval "$wx_cv_use_filectrl"
11094
11095           if test x"$enablestring" = xdisable; then
11096             if test $wxUSE_FILECTRL = no; then
11097               result=yes
11098             else
11099               result=no
11100             fi
11101           else
11102             result=$wxUSE_FILECTRL
11103           fi
11104
11105           { echo "$as_me:$LINENO: result: $result" >&5
11106 echo "${ECHO_T}$result" >&6; }
11107
11108
11109           enablestring=
11110           defaultval=$wxUSE_ALL_FEATURES
11111           if test -z "$defaultval"; then
11112               if test x"$enablestring" = xdisable; then
11113                   defaultval=yes
11114               else
11115                   defaultval=no
11116               fi
11117           fi
11118
11119           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filepicker" >&5
11120 echo $ECHO_N "checking for --${enablestring:-enable}-filepicker... $ECHO_C" >&6; }
11121           # Check whether --enable-filepicker was given.
11122 if test "${enable_filepicker+set}" = set; then
11123   enableval=$enable_filepicker;
11124                           if test "$enableval" = yes; then
11125                             wx_cv_use_filepicker='wxUSE_FILEPICKERCTRL=yes'
11126                           else
11127                             wx_cv_use_filepicker='wxUSE_FILEPICKERCTRL=no'
11128                           fi
11129
11130 else
11131
11132                           wx_cv_use_filepicker='wxUSE_FILEPICKERCTRL=${'DEFAULT_wxUSE_FILEPICKERCTRL":-$defaultval}"
11133
11134 fi
11135
11136
11137           eval "$wx_cv_use_filepicker"
11138
11139           if test x"$enablestring" = xdisable; then
11140             if test $wxUSE_FILEPICKERCTRL = no; then
11141               result=yes
11142             else
11143               result=no
11144             fi
11145           else
11146             result=$wxUSE_FILEPICKERCTRL
11147           fi
11148
11149           { echo "$as_me:$LINENO: result: $result" >&5
11150 echo "${ECHO_T}$result" >&6; }
11151
11152
11153           enablestring=
11154           defaultval=$wxUSE_ALL_FEATURES
11155           if test -z "$defaultval"; then
11156               if test x"$enablestring" = xdisable; then
11157                   defaultval=yes
11158               else
11159                   defaultval=no
11160               fi
11161           fi
11162
11163           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontpicker" >&5
11164 echo $ECHO_N "checking for --${enablestring:-enable}-fontpicker... $ECHO_C" >&6; }
11165           # Check whether --enable-fontpicker was given.
11166 if test "${enable_fontpicker+set}" = set; then
11167   enableval=$enable_fontpicker;
11168                           if test "$enableval" = yes; then
11169                             wx_cv_use_fontpicker='wxUSE_FONTPICKERCTRL=yes'
11170                           else
11171                             wx_cv_use_fontpicker='wxUSE_FONTPICKERCTRL=no'
11172                           fi
11173
11174 else
11175
11176                           wx_cv_use_fontpicker='wxUSE_FONTPICKERCTRL=${'DEFAULT_wxUSE_FONTPICKERCTRL":-$defaultval}"
11177
11178 fi
11179
11180
11181           eval "$wx_cv_use_fontpicker"
11182
11183           if test x"$enablestring" = xdisable; then
11184             if test $wxUSE_FONTPICKERCTRL = no; then
11185               result=yes
11186             else
11187               result=no
11188             fi
11189           else
11190             result=$wxUSE_FONTPICKERCTRL
11191           fi
11192
11193           { echo "$as_me:$LINENO: result: $result" >&5
11194 echo "${ECHO_T}$result" >&6; }
11195
11196
11197           enablestring=
11198           defaultval=$wxUSE_ALL_FEATURES
11199           if test -z "$defaultval"; then
11200               if test x"$enablestring" = xdisable; then
11201                   defaultval=yes
11202               else
11203                   defaultval=no
11204               fi
11205           fi
11206
11207           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gauge" >&5
11208 echo $ECHO_N "checking for --${enablestring:-enable}-gauge... $ECHO_C" >&6; }
11209           # Check whether --enable-gauge was given.
11210 if test "${enable_gauge+set}" = set; then
11211   enableval=$enable_gauge;
11212                           if test "$enableval" = yes; then
11213                             wx_cv_use_gauge='wxUSE_GAUGE=yes'
11214                           else
11215                             wx_cv_use_gauge='wxUSE_GAUGE=no'
11216                           fi
11217
11218 else
11219
11220                           wx_cv_use_gauge='wxUSE_GAUGE=${'DEFAULT_wxUSE_GAUGE":-$defaultval}"
11221
11222 fi
11223
11224
11225           eval "$wx_cv_use_gauge"
11226
11227           if test x"$enablestring" = xdisable; then
11228             if test $wxUSE_GAUGE = no; then
11229               result=yes
11230             else
11231               result=no
11232             fi
11233           else
11234             result=$wxUSE_GAUGE
11235           fi
11236
11237           { echo "$as_me:$LINENO: result: $result" >&5
11238 echo "${ECHO_T}$result" >&6; }
11239
11240
11241           enablestring=
11242           defaultval=$wxUSE_ALL_FEATURES
11243           if test -z "$defaultval"; then
11244               if test x"$enablestring" = xdisable; then
11245                   defaultval=yes
11246               else
11247                   defaultval=no
11248               fi
11249           fi
11250
11251           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-grid" >&5
11252 echo $ECHO_N "checking for --${enablestring:-enable}-grid... $ECHO_C" >&6; }
11253           # Check whether --enable-grid was given.
11254 if test "${enable_grid+set}" = set; then
11255   enableval=$enable_grid;
11256                           if test "$enableval" = yes; then
11257                             wx_cv_use_grid='wxUSE_GRID=yes'
11258                           else
11259                             wx_cv_use_grid='wxUSE_GRID=no'
11260                           fi
11261
11262 else
11263
11264                           wx_cv_use_grid='wxUSE_GRID=${'DEFAULT_wxUSE_GRID":-$defaultval}"
11265
11266 fi
11267
11268
11269           eval "$wx_cv_use_grid"
11270
11271           if test x"$enablestring" = xdisable; then
11272             if test $wxUSE_GRID = no; then
11273               result=yes
11274             else
11275               result=no
11276             fi
11277           else
11278             result=$wxUSE_GRID
11279           fi
11280
11281           { echo "$as_me:$LINENO: result: $result" >&5
11282 echo "${ECHO_T}$result" >&6; }
11283
11284
11285           enablestring=
11286           defaultval=$wxUSE_ALL_FEATURES
11287           if test -z "$defaultval"; then
11288               if test x"$enablestring" = xdisable; then
11289                   defaultval=yes
11290               else
11291                   defaultval=no
11292               fi
11293           fi
11294
11295           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-headerctrl" >&5
11296 echo $ECHO_N "checking for --${enablestring:-enable}-headerctrl... $ECHO_C" >&6; }
11297           # Check whether --enable-headerctrl was given.
11298 if test "${enable_headerctrl+set}" = set; then
11299   enableval=$enable_headerctrl;
11300                           if test "$enableval" = yes; then
11301                             wx_cv_use_headerctrl='wxUSE_HEADERCTRL=yes'
11302                           else
11303                             wx_cv_use_headerctrl='wxUSE_HEADERCTRL=no'
11304                           fi
11305
11306 else
11307
11308                           wx_cv_use_headerctrl='wxUSE_HEADERCTRL=${'DEFAULT_wxUSE_HEADERCTRL":-$defaultval}"
11309
11310 fi
11311
11312
11313           eval "$wx_cv_use_headerctrl"
11314
11315           if test x"$enablestring" = xdisable; then
11316             if test $wxUSE_HEADERCTRL = no; then
11317               result=yes
11318             else
11319               result=no
11320             fi
11321           else
11322             result=$wxUSE_HEADERCTRL
11323           fi
11324
11325           { echo "$as_me:$LINENO: result: $result" >&5
11326 echo "${ECHO_T}$result" >&6; }
11327
11328
11329           enablestring=
11330           defaultval=$wxUSE_ALL_FEATURES
11331           if test -z "$defaultval"; then
11332               if test x"$enablestring" = xdisable; then
11333                   defaultval=yes
11334               else
11335                   defaultval=no
11336               fi
11337           fi
11338
11339           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-hyperlink" >&5
11340 echo $ECHO_N "checking for --${enablestring:-enable}-hyperlink... $ECHO_C" >&6; }
11341           # Check whether --enable-hyperlink was given.
11342 if test "${enable_hyperlink+set}" = set; then
11343   enableval=$enable_hyperlink;
11344                           if test "$enableval" = yes; then
11345                             wx_cv_use_hyperlink='wxUSE_HYPERLINKCTRL=yes'
11346                           else
11347                             wx_cv_use_hyperlink='wxUSE_HYPERLINKCTRL=no'
11348                           fi
11349
11350 else
11351
11352                           wx_cv_use_hyperlink='wxUSE_HYPERLINKCTRL=${'DEFAULT_wxUSE_HYPERLINKCTRL":-$defaultval}"
11353
11354 fi
11355
11356
11357           eval "$wx_cv_use_hyperlink"
11358
11359           if test x"$enablestring" = xdisable; then
11360             if test $wxUSE_HYPERLINKCTRL = no; then
11361               result=yes
11362             else
11363               result=no
11364             fi
11365           else
11366             result=$wxUSE_HYPERLINKCTRL
11367           fi
11368
11369           { echo "$as_me:$LINENO: result: $result" >&5
11370 echo "${ECHO_T}$result" >&6; }
11371
11372
11373           enablestring=
11374           defaultval=$wxUSE_ALL_FEATURES
11375           if test -z "$defaultval"; then
11376               if test x"$enablestring" = xdisable; then
11377                   defaultval=yes
11378               else
11379                   defaultval=no
11380               fi
11381           fi
11382
11383           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-imaglist" >&5
11384 echo $ECHO_N "checking for --${enablestring:-enable}-imaglist... $ECHO_C" >&6; }
11385           # Check whether --enable-imaglist was given.
11386 if test "${enable_imaglist+set}" = set; then
11387   enableval=$enable_imaglist;
11388                           if test "$enableval" = yes; then
11389                             wx_cv_use_imaglist='wxUSE_IMAGLIST=yes'
11390                           else
11391                             wx_cv_use_imaglist='wxUSE_IMAGLIST=no'
11392                           fi
11393
11394 else
11395
11396                           wx_cv_use_imaglist='wxUSE_IMAGLIST=${'DEFAULT_wxUSE_IMAGLIST":-$defaultval}"
11397
11398 fi
11399
11400
11401           eval "$wx_cv_use_imaglist"
11402
11403           if test x"$enablestring" = xdisable; then
11404             if test $wxUSE_IMAGLIST = no; then
11405               result=yes
11406             else
11407               result=no
11408             fi
11409           else
11410             result=$wxUSE_IMAGLIST
11411           fi
11412
11413           { echo "$as_me:$LINENO: result: $result" >&5
11414 echo "${ECHO_T}$result" >&6; }
11415
11416
11417           enablestring=
11418           defaultval=$wxUSE_ALL_FEATURES
11419           if test -z "$defaultval"; then
11420               if test x"$enablestring" = xdisable; then
11421                   defaultval=yes
11422               else
11423                   defaultval=no
11424               fi
11425           fi
11426
11427           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-infobar" >&5
11428 echo $ECHO_N "checking for --${enablestring:-enable}-infobar... $ECHO_C" >&6; }
11429           # Check whether --enable-infobar was given.
11430 if test "${enable_infobar+set}" = set; then
11431   enableval=$enable_infobar;
11432                           if test "$enableval" = yes; then
11433                             wx_cv_use_infobar='wxUSE_INFOBAR=yes'
11434                           else
11435                             wx_cv_use_infobar='wxUSE_INFOBAR=no'
11436                           fi
11437
11438 else
11439
11440                           wx_cv_use_infobar='wxUSE_INFOBAR=${'DEFAULT_wxUSE_INFOBAR":-$defaultval}"
11441
11442 fi
11443
11444
11445           eval "$wx_cv_use_infobar"
11446
11447           if test x"$enablestring" = xdisable; then
11448             if test $wxUSE_INFOBAR = no; then
11449               result=yes
11450             else
11451               result=no
11452             fi
11453           else
11454             result=$wxUSE_INFOBAR
11455           fi
11456
11457           { echo "$as_me:$LINENO: result: $result" >&5
11458 echo "${ECHO_T}$result" >&6; }
11459
11460
11461           enablestring=
11462           defaultval=$wxUSE_ALL_FEATURES
11463           if test -z "$defaultval"; then
11464               if test x"$enablestring" = xdisable; then
11465                   defaultval=yes
11466               else
11467                   defaultval=no
11468               fi
11469           fi
11470
11471           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbook" >&5
11472 echo $ECHO_N "checking for --${enablestring:-enable}-listbook... $ECHO_C" >&6; }
11473           # Check whether --enable-listbook was given.
11474 if test "${enable_listbook+set}" = set; then
11475   enableval=$enable_listbook;
11476                           if test "$enableval" = yes; then
11477                             wx_cv_use_listbook='wxUSE_LISTBOOK=yes'
11478                           else
11479                             wx_cv_use_listbook='wxUSE_LISTBOOK=no'
11480                           fi
11481
11482 else
11483
11484                           wx_cv_use_listbook='wxUSE_LISTBOOK=${'DEFAULT_wxUSE_LISTBOOK":-$defaultval}"
11485
11486 fi
11487
11488
11489           eval "$wx_cv_use_listbook"
11490
11491           if test x"$enablestring" = xdisable; then
11492             if test $wxUSE_LISTBOOK = no; then
11493               result=yes
11494             else
11495               result=no
11496             fi
11497           else
11498             result=$wxUSE_LISTBOOK
11499           fi
11500
11501           { echo "$as_me:$LINENO: result: $result" >&5
11502 echo "${ECHO_T}$result" >&6; }
11503
11504
11505           enablestring=
11506           defaultval=$wxUSE_ALL_FEATURES
11507           if test -z "$defaultval"; then
11508               if test x"$enablestring" = xdisable; then
11509                   defaultval=yes
11510               else
11511                   defaultval=no
11512               fi
11513           fi
11514
11515           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbox" >&5
11516 echo $ECHO_N "checking for --${enablestring:-enable}-listbox... $ECHO_C" >&6; }
11517           # Check whether --enable-listbox was given.
11518 if test "${enable_listbox+set}" = set; then
11519   enableval=$enable_listbox;
11520                           if test "$enableval" = yes; then
11521                             wx_cv_use_listbox='wxUSE_LISTBOX=yes'
11522                           else
11523                             wx_cv_use_listbox='wxUSE_LISTBOX=no'
11524                           fi
11525
11526 else
11527
11528                           wx_cv_use_listbox='wxUSE_LISTBOX=${'DEFAULT_wxUSE_LISTBOX":-$defaultval}"
11529
11530 fi
11531
11532
11533           eval "$wx_cv_use_listbox"
11534
11535           if test x"$enablestring" = xdisable; then
11536             if test $wxUSE_LISTBOX = no; then
11537               result=yes
11538             else
11539               result=no
11540             fi
11541           else
11542             result=$wxUSE_LISTBOX
11543           fi
11544
11545           { echo "$as_me:$LINENO: result: $result" >&5
11546 echo "${ECHO_T}$result" >&6; }
11547
11548
11549           enablestring=
11550           defaultval=$wxUSE_ALL_FEATURES
11551           if test -z "$defaultval"; then
11552               if test x"$enablestring" = xdisable; then
11553                   defaultval=yes
11554               else
11555                   defaultval=no
11556               fi
11557           fi
11558
11559           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listctrl" >&5
11560 echo $ECHO_N "checking for --${enablestring:-enable}-listctrl... $ECHO_C" >&6; }
11561           # Check whether --enable-listctrl was given.
11562 if test "${enable_listctrl+set}" = set; then
11563   enableval=$enable_listctrl;
11564                           if test "$enableval" = yes; then
11565                             wx_cv_use_listctrl='wxUSE_LISTCTRL=yes'
11566                           else
11567                             wx_cv_use_listctrl='wxUSE_LISTCTRL=no'
11568                           fi
11569
11570 else
11571
11572                           wx_cv_use_listctrl='wxUSE_LISTCTRL=${'DEFAULT_wxUSE_LISTCTRL":-$defaultval}"
11573
11574 fi
11575
11576
11577           eval "$wx_cv_use_listctrl"
11578
11579           if test x"$enablestring" = xdisable; then
11580             if test $wxUSE_LISTCTRL = no; then
11581               result=yes
11582             else
11583               result=no
11584             fi
11585           else
11586             result=$wxUSE_LISTCTRL
11587           fi
11588
11589           { echo "$as_me:$LINENO: result: $result" >&5
11590 echo "${ECHO_T}$result" >&6; }
11591
11592
11593           enablestring=
11594           defaultval=$wxUSE_ALL_FEATURES
11595           if test -z "$defaultval"; then
11596               if test x"$enablestring" = xdisable; then
11597                   defaultval=yes
11598               else
11599                   defaultval=no
11600               fi
11601           fi
11602
11603           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-notebook" >&5
11604 echo $ECHO_N "checking for --${enablestring:-enable}-notebook... $ECHO_C" >&6; }
11605           # Check whether --enable-notebook was given.
11606 if test "${enable_notebook+set}" = set; then
11607   enableval=$enable_notebook;
11608                           if test "$enableval" = yes; then
11609                             wx_cv_use_notebook='wxUSE_NOTEBOOK=yes'
11610                           else
11611                             wx_cv_use_notebook='wxUSE_NOTEBOOK=no'
11612                           fi
11613
11614 else
11615
11616                           wx_cv_use_notebook='wxUSE_NOTEBOOK=${'DEFAULT_wxUSE_NOTEBOOK":-$defaultval}"
11617
11618 fi
11619
11620
11621           eval "$wx_cv_use_notebook"
11622
11623           if test x"$enablestring" = xdisable; then
11624             if test $wxUSE_NOTEBOOK = no; then
11625               result=yes
11626             else
11627               result=no
11628             fi
11629           else
11630             result=$wxUSE_NOTEBOOK
11631           fi
11632
11633           { echo "$as_me:$LINENO: result: $result" >&5
11634 echo "${ECHO_T}$result" >&6; }
11635
11636
11637           enablestring=
11638           defaultval=$wxUSE_ALL_FEATURES
11639           if test -z "$defaultval"; then
11640               if test x"$enablestring" = xdisable; then
11641                   defaultval=yes
11642               else
11643                   defaultval=no
11644               fi
11645           fi
11646
11647           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-notifmsg" >&5
11648 echo $ECHO_N "checking for --${enablestring:-enable}-notifmsg... $ECHO_C" >&6; }
11649           # Check whether --enable-notifmsg was given.
11650 if test "${enable_notifmsg+set}" = set; then
11651   enableval=$enable_notifmsg;
11652                           if test "$enableval" = yes; then
11653                             wx_cv_use_notifmsg='wxUSE_NOTIFICATION_MESSAGE=yes'
11654                           else
11655                             wx_cv_use_notifmsg='wxUSE_NOTIFICATION_MESSAGE=no'
11656                           fi
11657
11658 else
11659
11660                           wx_cv_use_notifmsg='wxUSE_NOTIFICATION_MESSAGE=${'DEFAULT_wxUSE_NOTIFICATION_MESSAGE":-$defaultval}"
11661
11662 fi
11663
11664
11665           eval "$wx_cv_use_notifmsg"
11666
11667           if test x"$enablestring" = xdisable; then
11668             if test $wxUSE_NOTIFICATION_MESSAGE = no; then
11669               result=yes
11670             else
11671               result=no
11672             fi
11673           else
11674             result=$wxUSE_NOTIFICATION_MESSAGE
11675           fi
11676
11677           { echo "$as_me:$LINENO: result: $result" >&5
11678 echo "${ECHO_T}$result" >&6; }
11679
11680
11681           enablestring=
11682           defaultval=$wxUSE_ALL_FEATURES
11683           if test -z "$defaultval"; then
11684               if test x"$enablestring" = xdisable; then
11685                   defaultval=yes
11686               else
11687                   defaultval=no
11688               fi
11689           fi
11690
11691           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-odcombobox" >&5
11692 echo $ECHO_N "checking for --${enablestring:-enable}-odcombobox... $ECHO_C" >&6; }
11693           # Check whether --enable-odcombobox was given.
11694 if test "${enable_odcombobox+set}" = set; then
11695   enableval=$enable_odcombobox;
11696                           if test "$enableval" = yes; then
11697                             wx_cv_use_odcombobox='wxUSE_ODCOMBOBOX=yes'
11698                           else
11699                             wx_cv_use_odcombobox='wxUSE_ODCOMBOBOX=no'
11700                           fi
11701
11702 else
11703
11704                           wx_cv_use_odcombobox='wxUSE_ODCOMBOBOX=${'DEFAULT_wxUSE_ODCOMBOBOX":-$defaultval}"
11705
11706 fi
11707
11708
11709           eval "$wx_cv_use_odcombobox"
11710
11711           if test x"$enablestring" = xdisable; then
11712             if test $wxUSE_ODCOMBOBOX = no; then
11713               result=yes
11714             else
11715               result=no
11716             fi
11717           else
11718             result=$wxUSE_ODCOMBOBOX
11719           fi
11720
11721           { echo "$as_me:$LINENO: result: $result" >&5
11722 echo "${ECHO_T}$result" >&6; }
11723
11724
11725           enablestring=
11726           defaultval=$wxUSE_ALL_FEATURES
11727           if test -z "$defaultval"; then
11728               if test x"$enablestring" = xdisable; then
11729                   defaultval=yes
11730               else
11731                   defaultval=no
11732               fi
11733           fi
11734
11735           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-popupwin" >&5
11736 echo $ECHO_N "checking for --${enablestring:-enable}-popupwin... $ECHO_C" >&6; }
11737           # Check whether --enable-popupwin was given.
11738 if test "${enable_popupwin+set}" = set; then
11739   enableval=$enable_popupwin;
11740                           if test "$enableval" = yes; then
11741                             wx_cv_use_popupwin='wxUSE_POPUPWIN=yes'
11742                           else
11743                             wx_cv_use_popupwin='wxUSE_POPUPWIN=no'
11744                           fi
11745
11746 else
11747
11748                           wx_cv_use_popupwin='wxUSE_POPUPWIN=${'DEFAULT_wxUSE_POPUPWIN":-$defaultval}"
11749
11750 fi
11751
11752
11753           eval "$wx_cv_use_popupwin"
11754
11755           if test x"$enablestring" = xdisable; then
11756             if test $wxUSE_POPUPWIN = no; then
11757               result=yes
11758             else
11759               result=no
11760             fi
11761           else
11762             result=$wxUSE_POPUPWIN
11763           fi
11764
11765           { echo "$as_me:$LINENO: result: $result" >&5
11766 echo "${ECHO_T}$result" >&6; }
11767
11768
11769           enablestring=
11770           defaultval=$wxUSE_ALL_FEATURES
11771           if test -z "$defaultval"; then
11772               if test x"$enablestring" = xdisable; then
11773                   defaultval=yes
11774               else
11775                   defaultval=no
11776               fi
11777           fi
11778
11779           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobox" >&5
11780 echo $ECHO_N "checking for --${enablestring:-enable}-radiobox... $ECHO_C" >&6; }
11781           # Check whether --enable-radiobox was given.
11782 if test "${enable_radiobox+set}" = set; then
11783   enableval=$enable_radiobox;
11784                           if test "$enableval" = yes; then
11785                             wx_cv_use_radiobox='wxUSE_RADIOBOX=yes'
11786                           else
11787                             wx_cv_use_radiobox='wxUSE_RADIOBOX=no'
11788                           fi
11789
11790 else
11791
11792                           wx_cv_use_radiobox='wxUSE_RADIOBOX=${'DEFAULT_wxUSE_RADIOBOX":-$defaultval}"
11793
11794 fi
11795
11796
11797           eval "$wx_cv_use_radiobox"
11798
11799           if test x"$enablestring" = xdisable; then
11800             if test $wxUSE_RADIOBOX = no; then
11801               result=yes
11802             else
11803               result=no
11804             fi
11805           else
11806             result=$wxUSE_RADIOBOX
11807           fi
11808
11809           { echo "$as_me:$LINENO: result: $result" >&5
11810 echo "${ECHO_T}$result" >&6; }
11811
11812
11813           enablestring=
11814           defaultval=$wxUSE_ALL_FEATURES
11815           if test -z "$defaultval"; then
11816               if test x"$enablestring" = xdisable; then
11817                   defaultval=yes
11818               else
11819                   defaultval=no
11820               fi
11821           fi
11822
11823           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobtn" >&5
11824 echo $ECHO_N "checking for --${enablestring:-enable}-radiobtn... $ECHO_C" >&6; }
11825           # Check whether --enable-radiobtn was given.
11826 if test "${enable_radiobtn+set}" = set; then
11827   enableval=$enable_radiobtn;
11828                           if test "$enableval" = yes; then
11829                             wx_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
11830                           else
11831                             wx_cv_use_radiobtn='wxUSE_RADIOBTN=no'
11832                           fi
11833
11834 else
11835
11836                           wx_cv_use_radiobtn='wxUSE_RADIOBTN=${'DEFAULT_wxUSE_RADIOBTN":-$defaultval}"
11837
11838 fi
11839
11840
11841           eval "$wx_cv_use_radiobtn"
11842
11843           if test x"$enablestring" = xdisable; then
11844             if test $wxUSE_RADIOBTN = no; then
11845               result=yes
11846             else
11847               result=no
11848             fi
11849           else
11850             result=$wxUSE_RADIOBTN
11851           fi
11852
11853           { echo "$as_me:$LINENO: result: $result" >&5
11854 echo "${ECHO_T}$result" >&6; }
11855
11856
11857           enablestring=
11858           defaultval=$wxUSE_ALL_FEATURES
11859           if test -z "$defaultval"; then
11860               if test x"$enablestring" = xdisable; then
11861                   defaultval=yes
11862               else
11863                   defaultval=no
11864               fi
11865           fi
11866
11867           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-richmsgdlg" >&5
11868 echo $ECHO_N "checking for --${enablestring:-enable}-richmsgdlg... $ECHO_C" >&6; }
11869           # Check whether --enable-richmsgdlg was given.
11870 if test "${enable_richmsgdlg+set}" = set; then
11871   enableval=$enable_richmsgdlg;
11872                           if test "$enableval" = yes; then
11873                             wx_cv_use_richmsgdlg='wxUSE_RICHMSGDLG=yes'
11874                           else
11875                             wx_cv_use_richmsgdlg='wxUSE_RICHMSGDLG=no'
11876                           fi
11877
11878 else
11879
11880                           wx_cv_use_richmsgdlg='wxUSE_RICHMSGDLG=${'DEFAULT_wxUSE_RICHMSGDLG":-$defaultval}"
11881
11882 fi
11883
11884
11885           eval "$wx_cv_use_richmsgdlg"
11886
11887           if test x"$enablestring" = xdisable; then
11888             if test $wxUSE_RICHMSGDLG = no; then
11889               result=yes
11890             else
11891               result=no
11892             fi
11893           else
11894             result=$wxUSE_RICHMSGDLG
11895           fi
11896
11897           { echo "$as_me:$LINENO: result: $result" >&5
11898 echo "${ECHO_T}$result" >&6; }
11899
11900
11901           enablestring=
11902           defaultval=$wxUSE_ALL_FEATURES
11903           if test -z "$defaultval"; then
11904               if test x"$enablestring" = xdisable; then
11905                   defaultval=yes
11906               else
11907                   defaultval=no
11908               fi
11909           fi
11910
11911           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-rearrangectrl" >&5
11912 echo $ECHO_N "checking for --${enablestring:-enable}-rearrangectrl... $ECHO_C" >&6; }
11913           # Check whether --enable-rearrangectrl was given.
11914 if test "${enable_rearrangectrl+set}" = set; then
11915   enableval=$enable_rearrangectrl;
11916                           if test "$enableval" = yes; then
11917                             wx_cv_use_rearrangectrl='wxUSE_REARRANGECTRL=yes'
11918                           else
11919                             wx_cv_use_rearrangectrl='wxUSE_REARRANGECTRL=no'
11920                           fi
11921
11922 else
11923
11924                           wx_cv_use_rearrangectrl='wxUSE_REARRANGECTRL=${'DEFAULT_wxUSE_REARRANGECTRL":-$defaultval}"
11925
11926 fi
11927
11928
11929           eval "$wx_cv_use_rearrangectrl"
11930
11931           if test x"$enablestring" = xdisable; then
11932             if test $wxUSE_REARRANGECTRL = no; then
11933               result=yes
11934             else
11935               result=no
11936             fi
11937           else
11938             result=$wxUSE_REARRANGECTRL
11939           fi
11940
11941           { echo "$as_me:$LINENO: result: $result" >&5
11942 echo "${ECHO_T}$result" >&6; }
11943
11944
11945           enablestring=
11946           defaultval=$wxUSE_ALL_FEATURES
11947           if test -z "$defaultval"; then
11948               if test x"$enablestring" = xdisable; then
11949                   defaultval=yes
11950               else
11951                   defaultval=no
11952               fi
11953           fi
11954
11955           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sash" >&5
11956 echo $ECHO_N "checking for --${enablestring:-enable}-sash... $ECHO_C" >&6; }
11957           # Check whether --enable-sash was given.
11958 if test "${enable_sash+set}" = set; then
11959   enableval=$enable_sash;
11960                           if test "$enableval" = yes; then
11961                             wx_cv_use_sash='wxUSE_SASH=yes'
11962                           else
11963                             wx_cv_use_sash='wxUSE_SASH=no'
11964                           fi
11965
11966 else
11967
11968                           wx_cv_use_sash='wxUSE_SASH=${'DEFAULT_wxUSE_SASH":-$defaultval}"
11969
11970 fi
11971
11972
11973           eval "$wx_cv_use_sash"
11974
11975           if test x"$enablestring" = xdisable; then
11976             if test $wxUSE_SASH = no; then
11977               result=yes
11978             else
11979               result=no
11980             fi
11981           else
11982             result=$wxUSE_SASH
11983           fi
11984
11985           { echo "$as_me:$LINENO: result: $result" >&5
11986 echo "${ECHO_T}$result" >&6; }
11987
11988
11989           enablestring=
11990           defaultval=$wxUSE_ALL_FEATURES
11991           if test -z "$defaultval"; then
11992               if test x"$enablestring" = xdisable; then
11993                   defaultval=yes
11994               else
11995                   defaultval=no
11996               fi
11997           fi
11998
11999           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-scrollbar" >&5
12000 echo $ECHO_N "checking for --${enablestring:-enable}-scrollbar... $ECHO_C" >&6; }
12001           # Check whether --enable-scrollbar was given.
12002 if test "${enable_scrollbar+set}" = set; then
12003   enableval=$enable_scrollbar;
12004                           if test "$enableval" = yes; then
12005                             wx_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
12006                           else
12007                             wx_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
12008                           fi
12009
12010 else
12011
12012                           wx_cv_use_scrollbar='wxUSE_SCROLLBAR=${'DEFAULT_wxUSE_SCROLLBAR":-$defaultval}"
12013
12014 fi
12015
12016
12017           eval "$wx_cv_use_scrollbar"
12018
12019           if test x"$enablestring" = xdisable; then
12020             if test $wxUSE_SCROLLBAR = no; then
12021               result=yes
12022             else
12023               result=no
12024             fi
12025           else
12026             result=$wxUSE_SCROLLBAR
12027           fi
12028
12029           { echo "$as_me:$LINENO: result: $result" >&5
12030 echo "${ECHO_T}$result" >&6; }
12031
12032
12033           enablestring=
12034           defaultval=$wxUSE_ALL_FEATURES
12035           if test -z "$defaultval"; then
12036               if test x"$enablestring" = xdisable; then
12037                   defaultval=yes
12038               else
12039                   defaultval=no
12040               fi
12041           fi
12042
12043           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-searchctrl" >&5
12044 echo $ECHO_N "checking for --${enablestring:-enable}-searchctrl... $ECHO_C" >&6; }
12045           # Check whether --enable-searchctrl was given.
12046 if test "${enable_searchctrl+set}" = set; then
12047   enableval=$enable_searchctrl;
12048                           if test "$enableval" = yes; then
12049                             wx_cv_use_searchctrl='wxUSE_SEARCHCTRL=yes'
12050                           else
12051                             wx_cv_use_searchctrl='wxUSE_SEARCHCTRL=no'
12052                           fi
12053
12054 else
12055
12056                           wx_cv_use_searchctrl='wxUSE_SEARCHCTRL=${'DEFAULT_wxUSE_SEARCHCTRL":-$defaultval}"
12057
12058 fi
12059
12060
12061           eval "$wx_cv_use_searchctrl"
12062
12063           if test x"$enablestring" = xdisable; then
12064             if test $wxUSE_SEARCHCTRL = no; then
12065               result=yes
12066             else
12067               result=no
12068             fi
12069           else
12070             result=$wxUSE_SEARCHCTRL
12071           fi
12072
12073           { echo "$as_me:$LINENO: result: $result" >&5
12074 echo "${ECHO_T}$result" >&6; }
12075
12076
12077           enablestring=
12078           defaultval=$wxUSE_ALL_FEATURES
12079           if test -z "$defaultval"; then
12080               if test x"$enablestring" = xdisable; then
12081                   defaultval=yes
12082               else
12083                   defaultval=no
12084               fi
12085           fi
12086
12087           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-slider" >&5
12088 echo $ECHO_N "checking for --${enablestring:-enable}-slider... $ECHO_C" >&6; }
12089           # Check whether --enable-slider was given.
12090 if test "${enable_slider+set}" = set; then
12091   enableval=$enable_slider;
12092                           if test "$enableval" = yes; then
12093                             wx_cv_use_slider='wxUSE_SLIDER=yes'
12094                           else
12095                             wx_cv_use_slider='wxUSE_SLIDER=no'
12096                           fi
12097
12098 else
12099
12100                           wx_cv_use_slider='wxUSE_SLIDER=${'DEFAULT_wxUSE_SLIDER":-$defaultval}"
12101
12102 fi
12103
12104
12105           eval "$wx_cv_use_slider"
12106
12107           if test x"$enablestring" = xdisable; then
12108             if test $wxUSE_SLIDER = no; then
12109               result=yes
12110             else
12111               result=no
12112             fi
12113           else
12114             result=$wxUSE_SLIDER
12115           fi
12116
12117           { echo "$as_me:$LINENO: result: $result" >&5
12118 echo "${ECHO_T}$result" >&6; }
12119
12120
12121           enablestring=
12122           defaultval=$wxUSE_ALL_FEATURES
12123           if test -z "$defaultval"; then
12124               if test x"$enablestring" = xdisable; then
12125                   defaultval=yes
12126               else
12127                   defaultval=no
12128               fi
12129           fi
12130
12131           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinbtn" >&5
12132 echo $ECHO_N "checking for --${enablestring:-enable}-spinbtn... $ECHO_C" >&6; }
12133           # Check whether --enable-spinbtn was given.
12134 if test "${enable_spinbtn+set}" = set; then
12135   enableval=$enable_spinbtn;
12136                           if test "$enableval" = yes; then
12137                             wx_cv_use_spinbtn='wxUSE_SPINBTN=yes'
12138                           else
12139                             wx_cv_use_spinbtn='wxUSE_SPINBTN=no'
12140                           fi
12141
12142 else
12143
12144                           wx_cv_use_spinbtn='wxUSE_SPINBTN=${'DEFAULT_wxUSE_SPINBTN":-$defaultval}"
12145
12146 fi
12147
12148
12149           eval "$wx_cv_use_spinbtn"
12150
12151           if test x"$enablestring" = xdisable; then
12152             if test $wxUSE_SPINBTN = no; then
12153               result=yes
12154             else
12155               result=no
12156             fi
12157           else
12158             result=$wxUSE_SPINBTN
12159           fi
12160
12161           { echo "$as_me:$LINENO: result: $result" >&5
12162 echo "${ECHO_T}$result" >&6; }
12163
12164
12165           enablestring=
12166           defaultval=$wxUSE_ALL_FEATURES
12167           if test -z "$defaultval"; then
12168               if test x"$enablestring" = xdisable; then
12169                   defaultval=yes
12170               else
12171                   defaultval=no
12172               fi
12173           fi
12174
12175           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinctrl" >&5
12176 echo $ECHO_N "checking for --${enablestring:-enable}-spinctrl... $ECHO_C" >&6; }
12177           # Check whether --enable-spinctrl was given.
12178 if test "${enable_spinctrl+set}" = set; then
12179   enableval=$enable_spinctrl;
12180                           if test "$enableval" = yes; then
12181                             wx_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
12182                           else
12183                             wx_cv_use_spinctrl='wxUSE_SPINCTRL=no'
12184                           fi
12185
12186 else
12187
12188                           wx_cv_use_spinctrl='wxUSE_SPINCTRL=${'DEFAULT_wxUSE_SPINCTRL":-$defaultval}"
12189
12190 fi
12191
12192
12193           eval "$wx_cv_use_spinctrl"
12194
12195           if test x"$enablestring" = xdisable; then
12196             if test $wxUSE_SPINCTRL = no; then
12197               result=yes
12198             else
12199               result=no
12200             fi
12201           else
12202             result=$wxUSE_SPINCTRL
12203           fi
12204
12205           { echo "$as_me:$LINENO: result: $result" >&5
12206 echo "${ECHO_T}$result" >&6; }
12207
12208
12209           enablestring=
12210           defaultval=$wxUSE_ALL_FEATURES
12211           if test -z "$defaultval"; then
12212               if test x"$enablestring" = xdisable; then
12213                   defaultval=yes
12214               else
12215                   defaultval=no
12216               fi
12217           fi
12218
12219           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splitter" >&5
12220 echo $ECHO_N "checking for --${enablestring:-enable}-splitter... $ECHO_C" >&6; }
12221           # Check whether --enable-splitter was given.
12222 if test "${enable_splitter+set}" = set; then
12223   enableval=$enable_splitter;
12224                           if test "$enableval" = yes; then
12225                             wx_cv_use_splitter='wxUSE_SPLITTER=yes'
12226                           else
12227                             wx_cv_use_splitter='wxUSE_SPLITTER=no'
12228                           fi
12229
12230 else
12231
12232                           wx_cv_use_splitter='wxUSE_SPLITTER=${'DEFAULT_wxUSE_SPLITTER":-$defaultval}"
12233
12234 fi
12235
12236
12237           eval "$wx_cv_use_splitter"
12238
12239           if test x"$enablestring" = xdisable; then
12240             if test $wxUSE_SPLITTER = no; then
12241               result=yes
12242             else
12243               result=no
12244             fi
12245           else
12246             result=$wxUSE_SPLITTER
12247           fi
12248
12249           { echo "$as_me:$LINENO: result: $result" >&5
12250 echo "${ECHO_T}$result" >&6; }
12251
12252
12253           enablestring=
12254           defaultval=$wxUSE_ALL_FEATURES
12255           if test -z "$defaultval"; then
12256               if test x"$enablestring" = xdisable; then
12257                   defaultval=yes
12258               else
12259                   defaultval=no
12260               fi
12261           fi
12262
12263           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbmp" >&5
12264 echo $ECHO_N "checking for --${enablestring:-enable}-statbmp... $ECHO_C" >&6; }
12265           # Check whether --enable-statbmp was given.
12266 if test "${enable_statbmp+set}" = set; then
12267   enableval=$enable_statbmp;
12268                           if test "$enableval" = yes; then
12269                             wx_cv_use_statbmp='wxUSE_STATBMP=yes'
12270                           else
12271                             wx_cv_use_statbmp='wxUSE_STATBMP=no'
12272                           fi
12273
12274 else
12275
12276                           wx_cv_use_statbmp='wxUSE_STATBMP=${'DEFAULT_wxUSE_STATBMP":-$defaultval}"
12277
12278 fi
12279
12280
12281           eval "$wx_cv_use_statbmp"
12282
12283           if test x"$enablestring" = xdisable; then
12284             if test $wxUSE_STATBMP = no; then
12285               result=yes
12286             else
12287               result=no
12288             fi
12289           else
12290             result=$wxUSE_STATBMP
12291           fi
12292
12293           { echo "$as_me:$LINENO: result: $result" >&5
12294 echo "${ECHO_T}$result" >&6; }
12295
12296
12297           enablestring=
12298           defaultval=$wxUSE_ALL_FEATURES
12299           if test -z "$defaultval"; then
12300               if test x"$enablestring" = xdisable; then
12301                   defaultval=yes
12302               else
12303                   defaultval=no
12304               fi
12305           fi
12306
12307           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbox" >&5
12308 echo $ECHO_N "checking for --${enablestring:-enable}-statbox... $ECHO_C" >&6; }
12309           # Check whether --enable-statbox was given.
12310 if test "${enable_statbox+set}" = set; then
12311   enableval=$enable_statbox;
12312                           if test "$enableval" = yes; then
12313                             wx_cv_use_statbox='wxUSE_STATBOX=yes'
12314                           else
12315                             wx_cv_use_statbox='wxUSE_STATBOX=no'
12316                           fi
12317
12318 else
12319
12320                           wx_cv_use_statbox='wxUSE_STATBOX=${'DEFAULT_wxUSE_STATBOX":-$defaultval}"
12321
12322 fi
12323
12324
12325           eval "$wx_cv_use_statbox"
12326
12327           if test x"$enablestring" = xdisable; then
12328             if test $wxUSE_STATBOX = no; then
12329               result=yes
12330             else
12331               result=no
12332             fi
12333           else
12334             result=$wxUSE_STATBOX
12335           fi
12336
12337           { echo "$as_me:$LINENO: result: $result" >&5
12338 echo "${ECHO_T}$result" >&6; }
12339
12340
12341           enablestring=
12342           defaultval=$wxUSE_ALL_FEATURES
12343           if test -z "$defaultval"; then
12344               if test x"$enablestring" = xdisable; then
12345                   defaultval=yes
12346               else
12347                   defaultval=no
12348               fi
12349           fi
12350
12351           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statline" >&5
12352 echo $ECHO_N "checking for --${enablestring:-enable}-statline... $ECHO_C" >&6; }
12353           # Check whether --enable-statline was given.
12354 if test "${enable_statline+set}" = set; then
12355   enableval=$enable_statline;
12356                           if test "$enableval" = yes; then
12357                             wx_cv_use_statline='wxUSE_STATLINE=yes'
12358                           else
12359                             wx_cv_use_statline='wxUSE_STATLINE=no'
12360                           fi
12361
12362 else
12363
12364                           wx_cv_use_statline='wxUSE_STATLINE=${'DEFAULT_wxUSE_STATLINE":-$defaultval}"
12365
12366 fi
12367
12368
12369           eval "$wx_cv_use_statline"
12370
12371           if test x"$enablestring" = xdisable; then
12372             if test $wxUSE_STATLINE = no; then
12373               result=yes
12374             else
12375               result=no
12376             fi
12377           else
12378             result=$wxUSE_STATLINE
12379           fi
12380
12381           { echo "$as_me:$LINENO: result: $result" >&5
12382 echo "${ECHO_T}$result" >&6; }
12383
12384
12385           enablestring=
12386           defaultval=$wxUSE_ALL_FEATURES
12387           if test -z "$defaultval"; then
12388               if test x"$enablestring" = xdisable; then
12389                   defaultval=yes
12390               else
12391                   defaultval=no
12392               fi
12393           fi
12394
12395           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stattext" >&5
12396 echo $ECHO_N "checking for --${enablestring:-enable}-stattext... $ECHO_C" >&6; }
12397           # Check whether --enable-stattext was given.
12398 if test "${enable_stattext+set}" = set; then
12399   enableval=$enable_stattext;
12400                           if test "$enableval" = yes; then
12401                             wx_cv_use_stattext='wxUSE_STATTEXT=yes'
12402                           else
12403                             wx_cv_use_stattext='wxUSE_STATTEXT=no'
12404                           fi
12405
12406 else
12407
12408                           wx_cv_use_stattext='wxUSE_STATTEXT=${'DEFAULT_wxUSE_STATTEXT":-$defaultval}"
12409
12410 fi
12411
12412
12413           eval "$wx_cv_use_stattext"
12414
12415           if test x"$enablestring" = xdisable; then
12416             if test $wxUSE_STATTEXT = no; then
12417               result=yes
12418             else
12419               result=no
12420             fi
12421           else
12422             result=$wxUSE_STATTEXT
12423           fi
12424
12425           { echo "$as_me:$LINENO: result: $result" >&5
12426 echo "${ECHO_T}$result" >&6; }
12427
12428
12429           enablestring=
12430           defaultval=$wxUSE_ALL_FEATURES
12431           if test -z "$defaultval"; then
12432               if test x"$enablestring" = xdisable; then
12433                   defaultval=yes
12434               else
12435                   defaultval=no
12436               fi
12437           fi
12438
12439           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statusbar" >&5
12440 echo $ECHO_N "checking for --${enablestring:-enable}-statusbar... $ECHO_C" >&6; }
12441           # Check whether --enable-statusbar was given.
12442 if test "${enable_statusbar+set}" = set; then
12443   enableval=$enable_statusbar;
12444                           if test "$enableval" = yes; then
12445                             wx_cv_use_statusbar='wxUSE_STATUSBAR=yes'
12446                           else
12447                             wx_cv_use_statusbar='wxUSE_STATUSBAR=no'
12448                           fi
12449
12450 else
12451
12452                           wx_cv_use_statusbar='wxUSE_STATUSBAR=${'DEFAULT_wxUSE_STATUSBAR":-$defaultval}"
12453
12454 fi
12455
12456
12457           eval "$wx_cv_use_statusbar"
12458
12459           if test x"$enablestring" = xdisable; then
12460             if test $wxUSE_STATUSBAR = no; then
12461               result=yes
12462             else
12463               result=no
12464             fi
12465           else
12466             result=$wxUSE_STATUSBAR
12467           fi
12468
12469           { echo "$as_me:$LINENO: result: $result" >&5
12470 echo "${ECHO_T}$result" >&6; }
12471
12472
12473           enablestring=
12474           defaultval=$wxUSE_ALL_FEATURES
12475           if test -z "$defaultval"; then
12476               if test x"$enablestring" = xdisable; then
12477                   defaultval=yes
12478               else
12479                   defaultval=no
12480               fi
12481           fi
12482
12483           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-taskbaricon" >&5
12484 echo $ECHO_N "checking for --${enablestring:-enable}-taskbaricon... $ECHO_C" >&6; }
12485           # Check whether --enable-taskbaricon was given.
12486 if test "${enable_taskbaricon+set}" = set; then
12487   enableval=$enable_taskbaricon;
12488                           if test "$enableval" = yes; then
12489                             wx_cv_use_taskbaricon='wxUSE_TASKBARICON=yes'
12490                           else
12491                             wx_cv_use_taskbaricon='wxUSE_TASKBARICON=no'
12492                           fi
12493
12494 else
12495
12496                           wx_cv_use_taskbaricon='wxUSE_TASKBARICON=${'DEFAULT_wxUSE_TASKBARICON":-$defaultval}"
12497
12498 fi
12499
12500
12501           eval "$wx_cv_use_taskbaricon"
12502
12503           if test x"$enablestring" = xdisable; then
12504             if test $wxUSE_TASKBARICON = no; then
12505               result=yes
12506             else
12507               result=no
12508             fi
12509           else
12510             result=$wxUSE_TASKBARICON
12511           fi
12512
12513           { echo "$as_me:$LINENO: result: $result" >&5
12514 echo "${ECHO_T}$result" >&6; }
12515
12516
12517           enablestring=
12518           defaultval=$wxUSE_ALL_FEATURES
12519           if test -z "$defaultval"; then
12520               if test x"$enablestring" = xdisable; then
12521                   defaultval=yes
12522               else
12523                   defaultval=no
12524               fi
12525           fi
12526
12527           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarnative" >&5
12528 echo $ECHO_N "checking for --${enablestring:-enable}-tbarnative... $ECHO_C" >&6; }
12529           # Check whether --enable-tbarnative was given.
12530 if test "${enable_tbarnative+set}" = set; then
12531   enableval=$enable_tbarnative;
12532                           if test "$enableval" = yes; then
12533                             wx_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
12534                           else
12535                             wx_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
12536                           fi
12537
12538 else
12539
12540                           wx_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=${'DEFAULT_wxUSE_TOOLBAR_NATIVE":-$defaultval}"
12541
12542 fi
12543
12544
12545           eval "$wx_cv_use_tbarnative"
12546
12547           if test x"$enablestring" = xdisable; then
12548             if test $wxUSE_TOOLBAR_NATIVE = no; then
12549               result=yes
12550             else
12551               result=no
12552             fi
12553           else
12554             result=$wxUSE_TOOLBAR_NATIVE
12555           fi
12556
12557           { echo "$as_me:$LINENO: result: $result" >&5
12558 echo "${ECHO_T}$result" >&6; }
12559
12560
12561           enablestring=
12562           defaultval=$wxUSE_ALL_FEATURES
12563           if test -z "$defaultval"; then
12564               if test x"$enablestring" = xdisable; then
12565                   defaultval=yes
12566               else
12567                   defaultval=no
12568               fi
12569           fi
12570
12571           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textctrl" >&5
12572 echo $ECHO_N "checking for --${enablestring:-enable}-textctrl... $ECHO_C" >&6; }
12573           # Check whether --enable-textctrl was given.
12574 if test "${enable_textctrl+set}" = set; then
12575   enableval=$enable_textctrl;
12576                           if test "$enableval" = yes; then
12577                             wx_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
12578                           else
12579                             wx_cv_use_textctrl='wxUSE_TEXTCTRL=no'
12580                           fi
12581
12582 else
12583
12584                           wx_cv_use_textctrl='wxUSE_TEXTCTRL=${'DEFAULT_wxUSE_TEXTCTRL":-$defaultval}"
12585
12586 fi
12587
12588
12589           eval "$wx_cv_use_textctrl"
12590
12591           if test x"$enablestring" = xdisable; then
12592             if test $wxUSE_TEXTCTRL = no; then
12593               result=yes
12594             else
12595               result=no
12596             fi
12597           else
12598             result=$wxUSE_TEXTCTRL
12599           fi
12600
12601           { echo "$as_me:$LINENO: result: $result" >&5
12602 echo "${ECHO_T}$result" >&6; }
12603
12604
12605           enablestring=
12606           defaultval=$wxUSE_ALL_FEATURES
12607           if test -z "$defaultval"; then
12608               if test x"$enablestring" = xdisable; then
12609                   defaultval=yes
12610               else
12611                   defaultval=no
12612               fi
12613           fi
12614
12615           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipwindow" >&5
12616 echo $ECHO_N "checking for --${enablestring:-enable}-tipwindow... $ECHO_C" >&6; }
12617           # Check whether --enable-tipwindow was given.
12618 if test "${enable_tipwindow+set}" = set; then
12619   enableval=$enable_tipwindow;
12620                           if test "$enableval" = yes; then
12621                             wx_cv_use_tipwindow='wxUSE_TIPWINDOW=yes'
12622                           else
12623                             wx_cv_use_tipwindow='wxUSE_TIPWINDOW=no'
12624                           fi
12625
12626 else
12627
12628                           wx_cv_use_tipwindow='wxUSE_TIPWINDOW=${'DEFAULT_wxUSE_TIPWINDOW":-$defaultval}"
12629
12630 fi
12631
12632
12633           eval "$wx_cv_use_tipwindow"
12634
12635           if test x"$enablestring" = xdisable; then
12636             if test $wxUSE_TIPWINDOW = no; then
12637               result=yes
12638             else
12639               result=no
12640             fi
12641           else
12642             result=$wxUSE_TIPWINDOW
12643           fi
12644
12645           { echo "$as_me:$LINENO: result: $result" >&5
12646 echo "${ECHO_T}$result" >&6; }
12647
12648
12649           enablestring=
12650           defaultval=$wxUSE_ALL_FEATURES
12651           if test -z "$defaultval"; then
12652               if test x"$enablestring" = xdisable; then
12653                   defaultval=yes
12654               else
12655                   defaultval=no
12656               fi
12657           fi
12658
12659           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-togglebtn" >&5
12660 echo $ECHO_N "checking for --${enablestring:-enable}-togglebtn... $ECHO_C" >&6; }
12661           # Check whether --enable-togglebtn was given.
12662 if test "${enable_togglebtn+set}" = set; then
12663   enableval=$enable_togglebtn;
12664                           if test "$enableval" = yes; then
12665                             wx_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
12666                           else
12667                             wx_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
12668                           fi
12669
12670 else
12671
12672                           wx_cv_use_togglebtn='wxUSE_TOGGLEBTN=${'DEFAULT_wxUSE_TOGGLEBTN":-$defaultval}"
12673
12674 fi
12675
12676
12677           eval "$wx_cv_use_togglebtn"
12678
12679           if test x"$enablestring" = xdisable; then
12680             if test $wxUSE_TOGGLEBTN = no; then
12681               result=yes
12682             else
12683               result=no
12684             fi
12685           else
12686             result=$wxUSE_TOGGLEBTN
12687           fi
12688
12689           { echo "$as_me:$LINENO: result: $result" >&5
12690 echo "${ECHO_T}$result" >&6; }
12691
12692
12693           enablestring=
12694           defaultval=$wxUSE_ALL_FEATURES
12695           if test -z "$defaultval"; then
12696               if test x"$enablestring" = xdisable; then
12697                   defaultval=yes
12698               else
12699                   defaultval=no
12700               fi
12701           fi
12702
12703           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbar" >&5
12704 echo $ECHO_N "checking for --${enablestring:-enable}-toolbar... $ECHO_C" >&6; }
12705           # Check whether --enable-toolbar was given.
12706 if test "${enable_toolbar+set}" = set; then
12707   enableval=$enable_toolbar;
12708                           if test "$enableval" = yes; then
12709                             wx_cv_use_toolbar='wxUSE_TOOLBAR=yes'
12710                           else
12711                             wx_cv_use_toolbar='wxUSE_TOOLBAR=no'
12712                           fi
12713
12714 else
12715
12716                           wx_cv_use_toolbar='wxUSE_TOOLBAR=${'DEFAULT_wxUSE_TOOLBAR":-$defaultval}"
12717
12718 fi
12719
12720
12721           eval "$wx_cv_use_toolbar"
12722
12723           if test x"$enablestring" = xdisable; then
12724             if test $wxUSE_TOOLBAR = no; then
12725               result=yes
12726             else
12727               result=no
12728             fi
12729           else
12730             result=$wxUSE_TOOLBAR
12731           fi
12732
12733           { echo "$as_me:$LINENO: result: $result" >&5
12734 echo "${ECHO_T}$result" >&6; }
12735
12736
12737           enablestring=
12738           defaultval=$wxUSE_ALL_FEATURES
12739           if test -z "$defaultval"; then
12740               if test x"$enablestring" = xdisable; then
12741                   defaultval=yes
12742               else
12743                   defaultval=no
12744               fi
12745           fi
12746
12747           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbook" >&5
12748 echo $ECHO_N "checking for --${enablestring:-enable}-toolbook... $ECHO_C" >&6; }
12749           # Check whether --enable-toolbook was given.
12750 if test "${enable_toolbook+set}" = set; then
12751   enableval=$enable_toolbook;
12752                           if test "$enableval" = yes; then
12753                             wx_cv_use_toolbook='wxUSE_TOOLBOOK=yes'
12754                           else
12755                             wx_cv_use_toolbook='wxUSE_TOOLBOOK=no'
12756                           fi
12757
12758 else
12759
12760                           wx_cv_use_toolbook='wxUSE_TOOLBOOK=${'DEFAULT_wxUSE_TOOLBOOK":-$defaultval}"
12761
12762 fi
12763
12764
12765           eval "$wx_cv_use_toolbook"
12766
12767           if test x"$enablestring" = xdisable; then
12768             if test $wxUSE_TOOLBOOK = no; then
12769               result=yes
12770             else
12771               result=no
12772             fi
12773           else
12774             result=$wxUSE_TOOLBOOK
12775           fi
12776
12777           { echo "$as_me:$LINENO: result: $result" >&5
12778 echo "${ECHO_T}$result" >&6; }
12779
12780
12781           enablestring=
12782           defaultval=$wxUSE_ALL_FEATURES
12783           if test -z "$defaultval"; then
12784               if test x"$enablestring" = xdisable; then
12785                   defaultval=yes
12786               else
12787                   defaultval=no
12788               fi
12789           fi
12790
12791           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treebook" >&5
12792 echo $ECHO_N "checking for --${enablestring:-enable}-treebook... $ECHO_C" >&6; }
12793           # Check whether --enable-treebook was given.
12794 if test "${enable_treebook+set}" = set; then
12795   enableval=$enable_treebook;
12796                           if test "$enableval" = yes; then
12797                             wx_cv_use_treebook='wxUSE_TREEBOOK=yes'
12798                           else
12799                             wx_cv_use_treebook='wxUSE_TREEBOOK=no'
12800                           fi
12801
12802 else
12803
12804                           wx_cv_use_treebook='wxUSE_TREEBOOK=${'DEFAULT_wxUSE_TREEBOOK":-$defaultval}"
12805
12806 fi
12807
12808
12809           eval "$wx_cv_use_treebook"
12810
12811           if test x"$enablestring" = xdisable; then
12812             if test $wxUSE_TREEBOOK = no; then
12813               result=yes
12814             else
12815               result=no
12816             fi
12817           else
12818             result=$wxUSE_TREEBOOK
12819           fi
12820
12821           { echo "$as_me:$LINENO: result: $result" >&5
12822 echo "${ECHO_T}$result" >&6; }
12823
12824
12825           enablestring=
12826           defaultval=$wxUSE_ALL_FEATURES
12827           if test -z "$defaultval"; then
12828               if test x"$enablestring" = xdisable; then
12829                   defaultval=yes
12830               else
12831                   defaultval=no
12832               fi
12833           fi
12834
12835           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treectrl" >&5
12836 echo $ECHO_N "checking for --${enablestring:-enable}-treectrl... $ECHO_C" >&6; }
12837           # Check whether --enable-treectrl was given.
12838 if test "${enable_treectrl+set}" = set; then
12839   enableval=$enable_treectrl;
12840                           if test "$enableval" = yes; then
12841                             wx_cv_use_treectrl='wxUSE_TREECTRL=yes'
12842                           else
12843                             wx_cv_use_treectrl='wxUSE_TREECTRL=no'
12844                           fi
12845
12846 else
12847
12848                           wx_cv_use_treectrl='wxUSE_TREECTRL=${'DEFAULT_wxUSE_TREECTRL":-$defaultval}"
12849
12850 fi
12851
12852
12853           eval "$wx_cv_use_treectrl"
12854
12855           if test x"$enablestring" = xdisable; then
12856             if test $wxUSE_TREECTRL = no; then
12857               result=yes
12858             else
12859               result=no
12860             fi
12861           else
12862             result=$wxUSE_TREECTRL
12863           fi
12864
12865           { echo "$as_me:$LINENO: result: $result" >&5
12866 echo "${ECHO_T}$result" >&6; }
12867
12868
12869
12870
12871           enablestring=
12872           defaultval=$wxUSE_ALL_FEATURES
12873           if test -z "$defaultval"; then
12874               if test x"$enablestring" = xdisable; then
12875                   defaultval=yes
12876               else
12877                   defaultval=no
12878               fi
12879           fi
12880
12881           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-commondlg" >&5
12882 echo $ECHO_N "checking for --${enablestring:-enable}-commondlg... $ECHO_C" >&6; }
12883           # Check whether --enable-commondlg was given.
12884 if test "${enable_commondlg+set}" = set; then
12885   enableval=$enable_commondlg;
12886                           if test "$enableval" = yes; then
12887                             wx_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
12888                           else
12889                             wx_cv_use_commondlg='wxUSE_COMMONDLGS=no'
12890                           fi
12891
12892 else
12893
12894                           wx_cv_use_commondlg='wxUSE_COMMONDLGS=${'DEFAULT_wxUSE_COMMONDLGS":-$defaultval}"
12895
12896 fi
12897
12898
12899           eval "$wx_cv_use_commondlg"
12900
12901           if test x"$enablestring" = xdisable; then
12902             if test $wxUSE_COMMONDLGS = no; then
12903               result=yes
12904             else
12905               result=no
12906             fi
12907           else
12908             result=$wxUSE_COMMONDLGS
12909           fi
12910
12911           { echo "$as_me:$LINENO: result: $result" >&5
12912 echo "${ECHO_T}$result" >&6; }
12913
12914
12915           enablestring=
12916           defaultval=$wxUSE_ALL_FEATURES
12917           if test -z "$defaultval"; then
12918               if test x"$enablestring" = xdisable; then
12919                   defaultval=yes
12920               else
12921                   defaultval=no
12922               fi
12923           fi
12924
12925           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-aboutdlg" >&5
12926 echo $ECHO_N "checking for --${enablestring:-enable}-aboutdlg... $ECHO_C" >&6; }
12927           # Check whether --enable-aboutdlg was given.
12928 if test "${enable_aboutdlg+set}" = set; then
12929   enableval=$enable_aboutdlg;
12930                           if test "$enableval" = yes; then
12931                             wx_cv_use_aboutdlg='wxUSE_ABOUTDLG=yes'
12932                           else
12933                             wx_cv_use_aboutdlg='wxUSE_ABOUTDLG=no'
12934                           fi
12935
12936 else
12937
12938                           wx_cv_use_aboutdlg='wxUSE_ABOUTDLG=${'DEFAULT_wxUSE_ABOUTDLG":-$defaultval}"
12939
12940 fi
12941
12942
12943           eval "$wx_cv_use_aboutdlg"
12944
12945           if test x"$enablestring" = xdisable; then
12946             if test $wxUSE_ABOUTDLG = no; then
12947               result=yes
12948             else
12949               result=no
12950             fi
12951           else
12952             result=$wxUSE_ABOUTDLG
12953           fi
12954
12955           { echo "$as_me:$LINENO: result: $result" >&5
12956 echo "${ECHO_T}$result" >&6; }
12957
12958
12959           enablestring=
12960           defaultval=$wxUSE_ALL_FEATURES
12961           if test -z "$defaultval"; then
12962               if test x"$enablestring" = xdisable; then
12963                   defaultval=yes
12964               else
12965                   defaultval=no
12966               fi
12967           fi
12968
12969           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicedlg" >&5
12970 echo $ECHO_N "checking for --${enablestring:-enable}-choicedlg... $ECHO_C" >&6; }
12971           # Check whether --enable-choicedlg was given.
12972 if test "${enable_choicedlg+set}" = set; then
12973   enableval=$enable_choicedlg;
12974                           if test "$enableval" = yes; then
12975                             wx_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
12976                           else
12977                             wx_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
12978                           fi
12979
12980 else
12981
12982                           wx_cv_use_choicedlg='wxUSE_CHOICEDLG=${'DEFAULT_wxUSE_CHOICEDLG":-$defaultval}"
12983
12984 fi
12985
12986
12987           eval "$wx_cv_use_choicedlg"
12988
12989           if test x"$enablestring" = xdisable; then
12990             if test $wxUSE_CHOICEDLG = no; then
12991               result=yes
12992             else
12993               result=no
12994             fi
12995           else
12996             result=$wxUSE_CHOICEDLG
12997           fi
12998
12999           { echo "$as_me:$LINENO: result: $result" >&5
13000 echo "${ECHO_T}$result" >&6; }
13001
13002
13003           enablestring=
13004           defaultval=$wxUSE_ALL_FEATURES
13005           if test -z "$defaultval"; then
13006               if test x"$enablestring" = xdisable; then
13007                   defaultval=yes
13008               else
13009                   defaultval=no
13010               fi
13011           fi
13012
13013           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-coldlg" >&5
13014 echo $ECHO_N "checking for --${enablestring:-enable}-coldlg... $ECHO_C" >&6; }
13015           # Check whether --enable-coldlg was given.
13016 if test "${enable_coldlg+set}" = set; then
13017   enableval=$enable_coldlg;
13018                           if test "$enableval" = yes; then
13019                             wx_cv_use_coldlg='wxUSE_COLOURDLG=yes'
13020                           else
13021                             wx_cv_use_coldlg='wxUSE_COLOURDLG=no'
13022                           fi
13023
13024 else
13025
13026                           wx_cv_use_coldlg='wxUSE_COLOURDLG=${'DEFAULT_wxUSE_COLOURDLG":-$defaultval}"
13027
13028 fi
13029
13030
13031           eval "$wx_cv_use_coldlg"
13032
13033           if test x"$enablestring" = xdisable; then
13034             if test $wxUSE_COLOURDLG = no; then
13035               result=yes
13036             else
13037               result=no
13038             fi
13039           else
13040             result=$wxUSE_COLOURDLG
13041           fi
13042
13043           { echo "$as_me:$LINENO: result: $result" >&5
13044 echo "${ECHO_T}$result" >&6; }
13045
13046
13047           enablestring=
13048           defaultval=$wxUSE_ALL_FEATURES
13049           if test -z "$defaultval"; then
13050               if test x"$enablestring" = xdisable; then
13051                   defaultval=yes
13052               else
13053                   defaultval=no
13054               fi
13055           fi
13056
13057           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filedlg" >&5
13058 echo $ECHO_N "checking for --${enablestring:-enable}-filedlg... $ECHO_C" >&6; }
13059           # Check whether --enable-filedlg was given.
13060 if test "${enable_filedlg+set}" = set; then
13061   enableval=$enable_filedlg;
13062                           if test "$enableval" = yes; then
13063                             wx_cv_use_filedlg='wxUSE_FILEDLG=yes'
13064                           else
13065                             wx_cv_use_filedlg='wxUSE_FILEDLG=no'
13066                           fi
13067
13068 else
13069
13070                           wx_cv_use_filedlg='wxUSE_FILEDLG=${'DEFAULT_wxUSE_FILEDLG":-$defaultval}"
13071
13072 fi
13073
13074
13075           eval "$wx_cv_use_filedlg"
13076
13077           if test x"$enablestring" = xdisable; then
13078             if test $wxUSE_FILEDLG = no; then
13079               result=yes
13080             else
13081               result=no
13082             fi
13083           else
13084             result=$wxUSE_FILEDLG
13085           fi
13086
13087           { echo "$as_me:$LINENO: result: $result" >&5
13088 echo "${ECHO_T}$result" >&6; }
13089
13090
13091           enablestring=
13092           defaultval=$wxUSE_ALL_FEATURES
13093           if test -z "$defaultval"; then
13094               if test x"$enablestring" = xdisable; then
13095                   defaultval=yes
13096               else
13097                   defaultval=no
13098               fi
13099           fi
13100
13101           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-finddlg" >&5
13102 echo $ECHO_N "checking for --${enablestring:-enable}-finddlg... $ECHO_C" >&6; }
13103           # Check whether --enable-finddlg was given.
13104 if test "${enable_finddlg+set}" = set; then
13105   enableval=$enable_finddlg;
13106                           if test "$enableval" = yes; then
13107                             wx_cv_use_finddlg='wxUSE_FINDREPLDLG=yes'
13108                           else
13109                             wx_cv_use_finddlg='wxUSE_FINDREPLDLG=no'
13110                           fi
13111
13112 else
13113
13114                           wx_cv_use_finddlg='wxUSE_FINDREPLDLG=${'DEFAULT_wxUSE_FINDREPLDLG":-$defaultval}"
13115
13116 fi
13117
13118
13119           eval "$wx_cv_use_finddlg"
13120
13121           if test x"$enablestring" = xdisable; then
13122             if test $wxUSE_FINDREPLDLG = no; then
13123               result=yes
13124             else
13125               result=no
13126             fi
13127           else
13128             result=$wxUSE_FINDREPLDLG
13129           fi
13130
13131           { echo "$as_me:$LINENO: result: $result" >&5
13132 echo "${ECHO_T}$result" >&6; }
13133
13134
13135           enablestring=
13136           defaultval=$wxUSE_ALL_FEATURES
13137           if test -z "$defaultval"; then
13138               if test x"$enablestring" = xdisable; then
13139                   defaultval=yes
13140               else
13141                   defaultval=no
13142               fi
13143           fi
13144
13145           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontdlg" >&5
13146 echo $ECHO_N "checking for --${enablestring:-enable}-fontdlg... $ECHO_C" >&6; }
13147           # Check whether --enable-fontdlg was given.
13148 if test "${enable_fontdlg+set}" = set; then
13149   enableval=$enable_fontdlg;
13150                           if test "$enableval" = yes; then
13151                             wx_cv_use_fontdlg='wxUSE_FONTDLG=yes'
13152                           else
13153                             wx_cv_use_fontdlg='wxUSE_FONTDLG=no'
13154                           fi
13155
13156 else
13157
13158                           wx_cv_use_fontdlg='wxUSE_FONTDLG=${'DEFAULT_wxUSE_FONTDLG":-$defaultval}"
13159
13160 fi
13161
13162
13163           eval "$wx_cv_use_fontdlg"
13164
13165           if test x"$enablestring" = xdisable; then
13166             if test $wxUSE_FONTDLG = no; then
13167               result=yes
13168             else
13169               result=no
13170             fi
13171           else
13172             result=$wxUSE_FONTDLG
13173           fi
13174
13175           { echo "$as_me:$LINENO: result: $result" >&5
13176 echo "${ECHO_T}$result" >&6; }
13177
13178
13179           enablestring=
13180           defaultval=$wxUSE_ALL_FEATURES
13181           if test -z "$defaultval"; then
13182               if test x"$enablestring" = xdisable; then
13183                   defaultval=yes
13184               else
13185                   defaultval=no
13186               fi
13187           fi
13188
13189           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirdlg" >&5
13190 echo $ECHO_N "checking for --${enablestring:-enable}-dirdlg... $ECHO_C" >&6; }
13191           # Check whether --enable-dirdlg was given.
13192 if test "${enable_dirdlg+set}" = set; then
13193   enableval=$enable_dirdlg;
13194                           if test "$enableval" = yes; then
13195                             wx_cv_use_dirdlg='wxUSE_DIRDLG=yes'
13196                           else
13197                             wx_cv_use_dirdlg='wxUSE_DIRDLG=no'
13198                           fi
13199
13200 else
13201
13202                           wx_cv_use_dirdlg='wxUSE_DIRDLG=${'DEFAULT_wxUSE_DIRDLG":-$defaultval}"
13203
13204 fi
13205
13206
13207           eval "$wx_cv_use_dirdlg"
13208
13209           if test x"$enablestring" = xdisable; then
13210             if test $wxUSE_DIRDLG = no; then
13211               result=yes
13212             else
13213               result=no
13214             fi
13215           else
13216             result=$wxUSE_DIRDLG
13217           fi
13218
13219           { echo "$as_me:$LINENO: result: $result" >&5
13220 echo "${ECHO_T}$result" >&6; }
13221
13222
13223           enablestring=
13224           defaultval=$wxUSE_ALL_FEATURES
13225           if test -z "$defaultval"; then
13226               if test x"$enablestring" = xdisable; then
13227                   defaultval=yes
13228               else
13229                   defaultval=no
13230               fi
13231           fi
13232
13233           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-msgdlg" >&5
13234 echo $ECHO_N "checking for --${enablestring:-enable}-msgdlg... $ECHO_C" >&6; }
13235           # Check whether --enable-msgdlg was given.
13236 if test "${enable_msgdlg+set}" = set; then
13237   enableval=$enable_msgdlg;
13238                           if test "$enableval" = yes; then
13239                             wx_cv_use_msgdlg='wxUSE_MSGDLG=yes'
13240                           else
13241                             wx_cv_use_msgdlg='wxUSE_MSGDLG=no'
13242                           fi
13243
13244 else
13245
13246                           wx_cv_use_msgdlg='wxUSE_MSGDLG=${'DEFAULT_wxUSE_MSGDLG":-$defaultval}"
13247
13248 fi
13249
13250
13251           eval "$wx_cv_use_msgdlg"
13252
13253           if test x"$enablestring" = xdisable; then
13254             if test $wxUSE_MSGDLG = no; then
13255               result=yes
13256             else
13257               result=no
13258             fi
13259           else
13260             result=$wxUSE_MSGDLG
13261           fi
13262
13263           { echo "$as_me:$LINENO: result: $result" >&5
13264 echo "${ECHO_T}$result" >&6; }
13265
13266
13267           enablestring=
13268           defaultval=$wxUSE_ALL_FEATURES
13269           if test -z "$defaultval"; then
13270               if test x"$enablestring" = xdisable; then
13271                   defaultval=yes
13272               else
13273                   defaultval=no
13274               fi
13275           fi
13276
13277           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-numberdlg" >&5
13278 echo $ECHO_N "checking for --${enablestring:-enable}-numberdlg... $ECHO_C" >&6; }
13279           # Check whether --enable-numberdlg was given.
13280 if test "${enable_numberdlg+set}" = set; then
13281   enableval=$enable_numberdlg;
13282                           if test "$enableval" = yes; then
13283                             wx_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
13284                           else
13285                             wx_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
13286                           fi
13287
13288 else
13289
13290                           wx_cv_use_numberdlg='wxUSE_NUMBERDLG=${'DEFAULT_wxUSE_NUMBERDLG":-$defaultval}"
13291
13292 fi
13293
13294
13295           eval "$wx_cv_use_numberdlg"
13296
13297           if test x"$enablestring" = xdisable; then
13298             if test $wxUSE_NUMBERDLG = no; then
13299               result=yes
13300             else
13301               result=no
13302             fi
13303           else
13304             result=$wxUSE_NUMBERDLG
13305           fi
13306
13307           { echo "$as_me:$LINENO: result: $result" >&5
13308 echo "${ECHO_T}$result" >&6; }
13309
13310
13311           enablestring=
13312           defaultval=$wxUSE_ALL_FEATURES
13313           if test -z "$defaultval"; then
13314               if test x"$enablestring" = xdisable; then
13315                   defaultval=yes
13316               else
13317                   defaultval=no
13318               fi
13319           fi
13320
13321           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splash" >&5
13322 echo $ECHO_N "checking for --${enablestring:-enable}-splash... $ECHO_C" >&6; }
13323           # Check whether --enable-splash was given.
13324 if test "${enable_splash+set}" = set; then
13325   enableval=$enable_splash;
13326                           if test "$enableval" = yes; then
13327                             wx_cv_use_splash='wxUSE_SPLASH=yes'
13328                           else
13329                             wx_cv_use_splash='wxUSE_SPLASH=no'
13330                           fi
13331
13332 else
13333
13334                           wx_cv_use_splash='wxUSE_SPLASH=${'DEFAULT_wxUSE_SPLASH":-$defaultval}"
13335
13336 fi
13337
13338
13339           eval "$wx_cv_use_splash"
13340
13341           if test x"$enablestring" = xdisable; then
13342             if test $wxUSE_SPLASH = no; then
13343               result=yes
13344             else
13345               result=no
13346             fi
13347           else
13348             result=$wxUSE_SPLASH
13349           fi
13350
13351           { echo "$as_me:$LINENO: result: $result" >&5
13352 echo "${ECHO_T}$result" >&6; }
13353
13354
13355           enablestring=
13356           defaultval=$wxUSE_ALL_FEATURES
13357           if test -z "$defaultval"; then
13358               if test x"$enablestring" = xdisable; then
13359                   defaultval=yes
13360               else
13361                   defaultval=no
13362               fi
13363           fi
13364
13365           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textdlg" >&5
13366 echo $ECHO_N "checking for --${enablestring:-enable}-textdlg... $ECHO_C" >&6; }
13367           # Check whether --enable-textdlg was given.
13368 if test "${enable_textdlg+set}" = set; then
13369   enableval=$enable_textdlg;
13370                           if test "$enableval" = yes; then
13371                             wx_cv_use_textdlg='wxUSE_TEXTDLG=yes'
13372                           else
13373                             wx_cv_use_textdlg='wxUSE_TEXTDLG=no'
13374                           fi
13375
13376 else
13377
13378                           wx_cv_use_textdlg='wxUSE_TEXTDLG=${'DEFAULT_wxUSE_TEXTDLG":-$defaultval}"
13379
13380 fi
13381
13382
13383           eval "$wx_cv_use_textdlg"
13384
13385           if test x"$enablestring" = xdisable; then
13386             if test $wxUSE_TEXTDLG = no; then
13387               result=yes
13388             else
13389               result=no
13390             fi
13391           else
13392             result=$wxUSE_TEXTDLG
13393           fi
13394
13395           { echo "$as_me:$LINENO: result: $result" >&5
13396 echo "${ECHO_T}$result" >&6; }
13397
13398
13399           enablestring=
13400           defaultval=$wxUSE_ALL_FEATURES
13401           if test -z "$defaultval"; then
13402               if test x"$enablestring" = xdisable; then
13403                   defaultval=yes
13404               else
13405                   defaultval=no
13406               fi
13407           fi
13408
13409           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipdlg" >&5
13410 echo $ECHO_N "checking for --${enablestring:-enable}-tipdlg... $ECHO_C" >&6; }
13411           # Check whether --enable-tipdlg was given.
13412 if test "${enable_tipdlg+set}" = set; then
13413   enableval=$enable_tipdlg;
13414                           if test "$enableval" = yes; then
13415                             wx_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
13416                           else
13417                             wx_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
13418                           fi
13419
13420 else
13421
13422                           wx_cv_use_tipdlg='wxUSE_STARTUP_TIPS=${'DEFAULT_wxUSE_STARTUP_TIPS":-$defaultval}"
13423
13424 fi
13425
13426
13427           eval "$wx_cv_use_tipdlg"
13428
13429           if test x"$enablestring" = xdisable; then
13430             if test $wxUSE_STARTUP_TIPS = no; then
13431               result=yes
13432             else
13433               result=no
13434             fi
13435           else
13436             result=$wxUSE_STARTUP_TIPS
13437           fi
13438
13439           { echo "$as_me:$LINENO: result: $result" >&5
13440 echo "${ECHO_T}$result" >&6; }
13441
13442
13443           enablestring=
13444           defaultval=$wxUSE_ALL_FEATURES
13445           if test -z "$defaultval"; then
13446               if test x"$enablestring" = xdisable; then
13447                   defaultval=yes
13448               else
13449                   defaultval=no
13450               fi
13451           fi
13452
13453           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-progressdlg" >&5
13454 echo $ECHO_N "checking for --${enablestring:-enable}-progressdlg... $ECHO_C" >&6; }
13455           # Check whether --enable-progressdlg was given.
13456 if test "${enable_progressdlg+set}" = set; then
13457   enableval=$enable_progressdlg;
13458                           if test "$enableval" = yes; then
13459                             wx_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
13460                           else
13461                             wx_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
13462                           fi
13463
13464 else
13465
13466                           wx_cv_use_progressdlg='wxUSE_PROGRESSDLG=${'DEFAULT_wxUSE_PROGRESSDLG":-$defaultval}"
13467
13468 fi
13469
13470
13471           eval "$wx_cv_use_progressdlg"
13472
13473           if test x"$enablestring" = xdisable; then
13474             if test $wxUSE_PROGRESSDLG = no; then
13475               result=yes
13476             else
13477               result=no
13478             fi
13479           else
13480             result=$wxUSE_PROGRESSDLG
13481           fi
13482
13483           { echo "$as_me:$LINENO: result: $result" >&5
13484 echo "${ECHO_T}$result" >&6; }
13485
13486
13487           enablestring=
13488           defaultval=$wxUSE_ALL_FEATURES
13489           if test -z "$defaultval"; then
13490               if test x"$enablestring" = xdisable; then
13491                   defaultval=yes
13492               else
13493                   defaultval=no
13494               fi
13495           fi
13496
13497           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wizarddlg" >&5
13498 echo $ECHO_N "checking for --${enablestring:-enable}-wizarddlg... $ECHO_C" >&6; }
13499           # Check whether --enable-wizarddlg was given.
13500 if test "${enable_wizarddlg+set}" = set; then
13501   enableval=$enable_wizarddlg;
13502                           if test "$enableval" = yes; then
13503                             wx_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes'
13504                           else
13505                             wx_cv_use_wizarddlg='wxUSE_WIZARDDLG=no'
13506                           fi
13507
13508 else
13509
13510                           wx_cv_use_wizarddlg='wxUSE_WIZARDDLG=${'DEFAULT_wxUSE_WIZARDDLG":-$defaultval}"
13511
13512 fi
13513
13514
13515           eval "$wx_cv_use_wizarddlg"
13516
13517           if test x"$enablestring" = xdisable; then
13518             if test $wxUSE_WIZARDDLG = no; then
13519               result=yes
13520             else
13521               result=no
13522             fi
13523           else
13524             result=$wxUSE_WIZARDDLG
13525           fi
13526
13527           { echo "$as_me:$LINENO: result: $result" >&5
13528 echo "${ECHO_T}$result" >&6; }
13529
13530
13531
13532
13533           enablestring=
13534           defaultval=$wxUSE_ALL_FEATURES
13535           if test -z "$defaultval"; then
13536               if test x"$enablestring" = xdisable; then
13537                   defaultval=yes
13538               else
13539                   defaultval=no
13540               fi
13541           fi
13542
13543           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-menus" >&5
13544 echo $ECHO_N "checking for --${enablestring:-enable}-menus... $ECHO_C" >&6; }
13545           # Check whether --enable-menus was given.
13546 if test "${enable_menus+set}" = set; then
13547   enableval=$enable_menus;
13548                           if test "$enableval" = yes; then
13549                             wx_cv_use_menus='wxUSE_MENUS=yes'
13550                           else
13551                             wx_cv_use_menus='wxUSE_MENUS=no'
13552                           fi
13553
13554 else
13555
13556                           wx_cv_use_menus='wxUSE_MENUS=${'DEFAULT_wxUSE_MENUS":-$defaultval}"
13557
13558 fi
13559
13560
13561           eval "$wx_cv_use_menus"
13562
13563           if test x"$enablestring" = xdisable; then
13564             if test $wxUSE_MENUS = no; then
13565               result=yes
13566             else
13567               result=no
13568             fi
13569           else
13570             result=$wxUSE_MENUS
13571           fi
13572
13573           { echo "$as_me:$LINENO: result: $result" >&5
13574 echo "${ECHO_T}$result" >&6; }
13575
13576
13577           enablestring=
13578           defaultval=$wxUSE_ALL_FEATURES
13579           if test -z "$defaultval"; then
13580               if test x"$enablestring" = xdisable; then
13581                   defaultval=yes
13582               else
13583                   defaultval=no
13584               fi
13585           fi
13586
13587           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-miniframe" >&5
13588 echo $ECHO_N "checking for --${enablestring:-enable}-miniframe... $ECHO_C" >&6; }
13589           # Check whether --enable-miniframe was given.
13590 if test "${enable_miniframe+set}" = set; then
13591   enableval=$enable_miniframe;
13592                           if test "$enableval" = yes; then
13593                             wx_cv_use_miniframe='wxUSE_MINIFRAME=yes'
13594                           else
13595                             wx_cv_use_miniframe='wxUSE_MINIFRAME=no'
13596                           fi
13597
13598 else
13599
13600                           wx_cv_use_miniframe='wxUSE_MINIFRAME=${'DEFAULT_wxUSE_MINIFRAME":-$defaultval}"
13601
13602 fi
13603
13604
13605           eval "$wx_cv_use_miniframe"
13606
13607           if test x"$enablestring" = xdisable; then
13608             if test $wxUSE_MINIFRAME = no; then
13609               result=yes
13610             else
13611               result=no
13612             fi
13613           else
13614             result=$wxUSE_MINIFRAME
13615           fi
13616
13617           { echo "$as_me:$LINENO: result: $result" >&5
13618 echo "${ECHO_T}$result" >&6; }
13619
13620
13621           enablestring=
13622           defaultval=$wxUSE_ALL_FEATURES
13623           if test -z "$defaultval"; then
13624               if test x"$enablestring" = xdisable; then
13625                   defaultval=yes
13626               else
13627                   defaultval=no
13628               fi
13629           fi
13630
13631           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tooltips" >&5
13632 echo $ECHO_N "checking for --${enablestring:-enable}-tooltips... $ECHO_C" >&6; }
13633           # Check whether --enable-tooltips was given.
13634 if test "${enable_tooltips+set}" = set; then
13635   enableval=$enable_tooltips;
13636                           if test "$enableval" = yes; then
13637                             wx_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
13638                           else
13639                             wx_cv_use_tooltips='wxUSE_TOOLTIPS=no'
13640                           fi
13641
13642 else
13643
13644                           wx_cv_use_tooltips='wxUSE_TOOLTIPS=${'DEFAULT_wxUSE_TOOLTIPS":-$defaultval}"
13645
13646 fi
13647
13648
13649           eval "$wx_cv_use_tooltips"
13650
13651           if test x"$enablestring" = xdisable; then
13652             if test $wxUSE_TOOLTIPS = no; then
13653               result=yes
13654             else
13655               result=no
13656             fi
13657           else
13658             result=$wxUSE_TOOLTIPS
13659           fi
13660
13661           { echo "$as_me:$LINENO: result: $result" >&5
13662 echo "${ECHO_T}$result" >&6; }
13663
13664
13665           enablestring=
13666           defaultval=$wxUSE_ALL_FEATURES
13667           if test -z "$defaultval"; then
13668               if test x"$enablestring" = xdisable; then
13669                   defaultval=yes
13670               else
13671                   defaultval=no
13672               fi
13673           fi
13674
13675           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splines" >&5
13676 echo $ECHO_N "checking for --${enablestring:-enable}-splines... $ECHO_C" >&6; }
13677           # Check whether --enable-splines was given.
13678 if test "${enable_splines+set}" = set; then
13679   enableval=$enable_splines;
13680                           if test "$enableval" = yes; then
13681                             wx_cv_use_splines='wxUSE_SPLINES=yes'
13682                           else
13683                             wx_cv_use_splines='wxUSE_SPLINES=no'
13684                           fi
13685
13686 else
13687
13688                           wx_cv_use_splines='wxUSE_SPLINES=${'DEFAULT_wxUSE_SPLINES":-$defaultval}"
13689
13690 fi
13691
13692
13693           eval "$wx_cv_use_splines"
13694
13695           if test x"$enablestring" = xdisable; then
13696             if test $wxUSE_SPLINES = no; then
13697               result=yes
13698             else
13699               result=no
13700             fi
13701           else
13702             result=$wxUSE_SPLINES
13703           fi
13704
13705           { echo "$as_me:$LINENO: result: $result" >&5
13706 echo "${ECHO_T}$result" >&6; }
13707
13708
13709           enablestring=
13710           defaultval=$wxUSE_ALL_FEATURES
13711           if test -z "$defaultval"; then
13712               if test x"$enablestring" = xdisable; then
13713                   defaultval=yes
13714               else
13715                   defaultval=no
13716               fi
13717           fi
13718
13719           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mousewheel" >&5
13720 echo $ECHO_N "checking for --${enablestring:-enable}-mousewheel... $ECHO_C" >&6; }
13721           # Check whether --enable-mousewheel was given.
13722 if test "${enable_mousewheel+set}" = set; then
13723   enableval=$enable_mousewheel;
13724                           if test "$enableval" = yes; then
13725                             wx_cv_use_mousewheel='wxUSE_MOUSEWHEEL=yes'
13726                           else
13727                             wx_cv_use_mousewheel='wxUSE_MOUSEWHEEL=no'
13728                           fi
13729
13730 else
13731
13732                           wx_cv_use_mousewheel='wxUSE_MOUSEWHEEL=${'DEFAULT_wxUSE_MOUSEWHEEL":-$defaultval}"
13733
13734 fi
13735
13736
13737           eval "$wx_cv_use_mousewheel"
13738
13739           if test x"$enablestring" = xdisable; then
13740             if test $wxUSE_MOUSEWHEEL = no; then
13741               result=yes
13742             else
13743               result=no
13744             fi
13745           else
13746             result=$wxUSE_MOUSEWHEEL
13747           fi
13748
13749           { echo "$as_me:$LINENO: result: $result" >&5
13750 echo "${ECHO_T}$result" >&6; }
13751
13752
13753           enablestring=
13754           defaultval=$wxUSE_ALL_FEATURES
13755           if test -z "$defaultval"; then
13756               if test x"$enablestring" = xdisable; then
13757                   defaultval=yes
13758               else
13759                   defaultval=no
13760               fi
13761           fi
13762
13763           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-validators" >&5
13764 echo $ECHO_N "checking for --${enablestring:-enable}-validators... $ECHO_C" >&6; }
13765           # Check whether --enable-validators was given.
13766 if test "${enable_validators+set}" = set; then
13767   enableval=$enable_validators;
13768                           if test "$enableval" = yes; then
13769                             wx_cv_use_validators='wxUSE_VALIDATORS=yes'
13770                           else
13771                             wx_cv_use_validators='wxUSE_VALIDATORS=no'
13772                           fi
13773
13774 else
13775
13776                           wx_cv_use_validators='wxUSE_VALIDATORS=${'DEFAULT_wxUSE_VALIDATORS":-$defaultval}"
13777
13778 fi
13779
13780
13781           eval "$wx_cv_use_validators"
13782
13783           if test x"$enablestring" = xdisable; then
13784             if test $wxUSE_VALIDATORS = no; then
13785               result=yes
13786             else
13787               result=no
13788             fi
13789           else
13790             result=$wxUSE_VALIDATORS
13791           fi
13792
13793           { echo "$as_me:$LINENO: result: $result" >&5
13794 echo "${ECHO_T}$result" >&6; }
13795
13796
13797           enablestring=
13798           defaultval=$wxUSE_ALL_FEATURES
13799           if test -z "$defaultval"; then
13800               if test x"$enablestring" = xdisable; then
13801                   defaultval=yes
13802               else
13803                   defaultval=no
13804               fi
13805           fi
13806
13807           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-busyinfo" >&5
13808 echo $ECHO_N "checking for --${enablestring:-enable}-busyinfo... $ECHO_C" >&6; }
13809           # Check whether --enable-busyinfo was given.
13810 if test "${enable_busyinfo+set}" = set; then
13811   enableval=$enable_busyinfo;
13812                           if test "$enableval" = yes; then
13813                             wx_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
13814                           else
13815                             wx_cv_use_busyinfo='wxUSE_BUSYINFO=no'
13816                           fi
13817
13818 else
13819
13820                           wx_cv_use_busyinfo='wxUSE_BUSYINFO=${'DEFAULT_wxUSE_BUSYINFO":-$defaultval}"
13821
13822 fi
13823
13824
13825           eval "$wx_cv_use_busyinfo"
13826
13827           if test x"$enablestring" = xdisable; then
13828             if test $wxUSE_BUSYINFO = no; then
13829               result=yes
13830             else
13831               result=no
13832             fi
13833           else
13834             result=$wxUSE_BUSYINFO
13835           fi
13836
13837           { echo "$as_me:$LINENO: result: $result" >&5
13838 echo "${ECHO_T}$result" >&6; }
13839
13840
13841           enablestring=
13842           defaultval=$wxUSE_ALL_FEATURES
13843           if test -z "$defaultval"; then
13844               if test x"$enablestring" = xdisable; then
13845                   defaultval=yes
13846               else
13847                   defaultval=no
13848               fi
13849           fi
13850
13851           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-joystick" >&5
13852 echo $ECHO_N "checking for --${enablestring:-enable}-joystick... $ECHO_C" >&6; }
13853           # Check whether --enable-joystick was given.
13854 if test "${enable_joystick+set}" = set; then
13855   enableval=$enable_joystick;
13856                           if test "$enableval" = yes; then
13857                             wx_cv_use_joystick='wxUSE_JOYSTICK=yes'
13858                           else
13859                             wx_cv_use_joystick='wxUSE_JOYSTICK=no'
13860                           fi
13861
13862 else
13863
13864                           wx_cv_use_joystick='wxUSE_JOYSTICK=${'DEFAULT_wxUSE_JOYSTICK":-$defaultval}"
13865
13866 fi
13867
13868
13869           eval "$wx_cv_use_joystick"
13870
13871           if test x"$enablestring" = xdisable; then
13872             if test $wxUSE_JOYSTICK = no; then
13873               result=yes
13874             else
13875               result=no
13876             fi
13877           else
13878             result=$wxUSE_JOYSTICK
13879           fi
13880
13881           { echo "$as_me:$LINENO: result: $result" >&5
13882 echo "${ECHO_T}$result" >&6; }
13883
13884
13885           enablestring=
13886           defaultval=$wxUSE_ALL_FEATURES
13887           if test -z "$defaultval"; then
13888               if test x"$enablestring" = xdisable; then
13889                   defaultval=yes
13890               else
13891                   defaultval=no
13892               fi
13893           fi
13894
13895           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
13896 echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6; }
13897           # Check whether --enable-metafile was given.
13898 if test "${enable_metafile+set}" = set; then
13899   enableval=$enable_metafile;
13900                           if test "$enableval" = yes; then
13901                             wx_cv_use_metafile='wxUSE_METAFILE=yes'
13902                           else
13903                             wx_cv_use_metafile='wxUSE_METAFILE=no'
13904                           fi
13905
13906 else
13907
13908                           wx_cv_use_metafile='wxUSE_METAFILE=${'DEFAULT_wxUSE_METAFILE":-$defaultval}"
13909
13910 fi
13911
13912
13913           eval "$wx_cv_use_metafile"
13914
13915           if test x"$enablestring" = xdisable; then
13916             if test $wxUSE_METAFILE = no; then
13917               result=yes
13918             else
13919               result=no
13920             fi
13921           else
13922             result=$wxUSE_METAFILE
13923           fi
13924
13925           { echo "$as_me:$LINENO: result: $result" >&5
13926 echo "${ECHO_T}$result" >&6; }
13927
13928
13929           enablestring=
13930           defaultval=$wxUSE_ALL_FEATURES
13931           if test -z "$defaultval"; then
13932               if test x"$enablestring" = xdisable; then
13933                   defaultval=yes
13934               else
13935                   defaultval=no
13936               fi
13937           fi
13938
13939           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dragimage" >&5
13940 echo $ECHO_N "checking for --${enablestring:-enable}-dragimage... $ECHO_C" >&6; }
13941           # Check whether --enable-dragimage was given.
13942 if test "${enable_dragimage+set}" = set; then
13943   enableval=$enable_dragimage;
13944                           if test "$enableval" = yes; then
13945                             wx_cv_use_dragimage='wxUSE_DRAGIMAGE=yes'
13946                           else
13947                             wx_cv_use_dragimage='wxUSE_DRAGIMAGE=no'
13948                           fi
13949
13950 else
13951
13952                           wx_cv_use_dragimage='wxUSE_DRAGIMAGE=${'DEFAULT_wxUSE_DRAGIMAGE":-$defaultval}"
13953
13954 fi
13955
13956
13957           eval "$wx_cv_use_dragimage"
13958
13959           if test x"$enablestring" = xdisable; then
13960             if test $wxUSE_DRAGIMAGE = no; then
13961               result=yes
13962             else
13963               result=no
13964             fi
13965           else
13966             result=$wxUSE_DRAGIMAGE
13967           fi
13968
13969           { echo "$as_me:$LINENO: result: $result" >&5
13970 echo "${ECHO_T}$result" >&6; }
13971
13972
13973           enablestring=
13974           defaultval=$wxUSE_ALL_FEATURES
13975           if test -z "$defaultval"; then
13976               if test x"$enablestring" = xdisable; then
13977                   defaultval=yes
13978               else
13979                   defaultval=no
13980               fi
13981           fi
13982
13983           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accessibility" >&5
13984 echo $ECHO_N "checking for --${enablestring:-enable}-accessibility... $ECHO_C" >&6; }
13985           # Check whether --enable-accessibility was given.
13986 if test "${enable_accessibility+set}" = set; then
13987   enableval=$enable_accessibility;
13988                           if test "$enableval" = yes; then
13989                             wx_cv_use_accessibility='wxUSE_ACCESSIBILITY=yes'
13990                           else
13991                             wx_cv_use_accessibility='wxUSE_ACCESSIBILITY=no'
13992                           fi
13993
13994 else
13995
13996                           wx_cv_use_accessibility='wxUSE_ACCESSIBILITY=${'DEFAULT_wxUSE_ACCESSIBILITY":-$defaultval}"
13997
13998 fi
13999
14000
14001           eval "$wx_cv_use_accessibility"
14002
14003           if test x"$enablestring" = xdisable; then
14004             if test $wxUSE_ACCESSIBILITY = no; then
14005               result=yes
14006             else
14007               result=no
14008             fi
14009           else
14010             result=$wxUSE_ACCESSIBILITY
14011           fi
14012
14013           { echo "$as_me:$LINENO: result: $result" >&5
14014 echo "${ECHO_T}$result" >&6; }
14015
14016
14017           enablestring=
14018           defaultval=$wxUSE_ALL_FEATURES
14019           if test -z "$defaultval"; then
14020               if test x"$enablestring" = xdisable; then
14021                   defaultval=yes
14022               else
14023                   defaultval=no
14024               fi
14025           fi
14026
14027           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-uiactionsim" >&5
14028 echo $ECHO_N "checking for --${enablestring:-enable}-uiactionsim... $ECHO_C" >&6; }
14029           # Check whether --enable-uiactionsim was given.
14030 if test "${enable_uiactionsim+set}" = set; then
14031   enableval=$enable_uiactionsim;
14032                           if test "$enableval" = yes; then
14033                             wx_cv_use_uiactionsim='wxUSE_UIACTIONSIMULATOR=yes'
14034                           else
14035                             wx_cv_use_uiactionsim='wxUSE_UIACTIONSIMULATOR=no'
14036                           fi
14037
14038 else
14039
14040                           wx_cv_use_uiactionsim='wxUSE_UIACTIONSIMULATOR=${'DEFAULT_wxUSE_UIACTIONSIMULATOR":-$defaultval}"
14041
14042 fi
14043
14044
14045           eval "$wx_cv_use_uiactionsim"
14046
14047           if test x"$enablestring" = xdisable; then
14048             if test $wxUSE_UIACTIONSIMULATOR = no; then
14049               result=yes
14050             else
14051               result=no
14052             fi
14053           else
14054             result=$wxUSE_UIACTIONSIMULATOR
14055           fi
14056
14057           { echo "$as_me:$LINENO: result: $result" >&5
14058 echo "${ECHO_T}$result" >&6; }
14059
14060
14061           enablestring=
14062           defaultval=$wxUSE_ALL_FEATURES
14063           if test -z "$defaultval"; then
14064               if test x"$enablestring" = xdisable; then
14065                   defaultval=yes
14066               else
14067                   defaultval=no
14068               fi
14069           fi
14070
14071           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dctransform" >&5
14072 echo $ECHO_N "checking for --${enablestring:-enable}-dctransform... $ECHO_C" >&6; }
14073           # Check whether --enable-dctransform was given.
14074 if test "${enable_dctransform+set}" = set; then
14075   enableval=$enable_dctransform;
14076                           if test "$enableval" = yes; then
14077                             wx_cv_use_dctransform='wxUSE_DC_TRANSFORM_MATRIX=yes'
14078                           else
14079                             wx_cv_use_dctransform='wxUSE_DC_TRANSFORM_MATRIX=no'
14080                           fi
14081
14082 else
14083
14084                           wx_cv_use_dctransform='wxUSE_DC_TRANSFORM_MATRIX=${'DEFAULT_wxUSE_DC_TRANSFORM_MATRIX":-$defaultval}"
14085
14086 fi
14087
14088
14089           eval "$wx_cv_use_dctransform"
14090
14091           if test x"$enablestring" = xdisable; then
14092             if test $wxUSE_DC_TRANSFORM_MATRIX = no; then
14093               result=yes
14094             else
14095               result=no
14096             fi
14097           else
14098             result=$wxUSE_DC_TRANSFORM_MATRIX
14099           fi
14100
14101           { echo "$as_me:$LINENO: result: $result" >&5
14102 echo "${ECHO_T}$result" >&6; }
14103
14104
14105           enablestring=
14106           defaultval=$wxUSE_ALL_FEATURES
14107           if test -z "$defaultval"; then
14108               if test x"$enablestring" = xdisable; then
14109                   defaultval=yes
14110               else
14111                   defaultval=no
14112               fi
14113           fi
14114
14115           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-webviewwebkit" >&5
14116 echo $ECHO_N "checking for --${enablestring:-enable}-webviewwebkit... $ECHO_C" >&6; }
14117           # Check whether --enable-webviewwebkit was given.
14118 if test "${enable_webviewwebkit+set}" = set; then
14119   enableval=$enable_webviewwebkit;
14120                           if test "$enableval" = yes; then
14121                             wx_cv_use_webviewwebkit='wxUSE_WEBVIEW_WEBKIT=yes'
14122                           else
14123                             wx_cv_use_webviewwebkit='wxUSE_WEBVIEW_WEBKIT=no'
14124                           fi
14125
14126 else
14127
14128                           wx_cv_use_webviewwebkit='wxUSE_WEBVIEW_WEBKIT=${'DEFAULT_wxUSE_WEBVIEW_WEBKIT":-$defaultval}"
14129
14130 fi
14131
14132
14133           eval "$wx_cv_use_webviewwebkit"
14134
14135           if test x"$enablestring" = xdisable; then
14136             if test $wxUSE_WEBVIEW_WEBKIT = no; then
14137               result=yes
14138             else
14139               result=no
14140             fi
14141           else
14142             result=$wxUSE_WEBVIEW_WEBKIT
14143           fi
14144
14145           { echo "$as_me:$LINENO: result: $result" >&5
14146 echo "${ECHO_T}$result" >&6; }
14147
14148
14149
14150
14151           enablestring=
14152           defaultval=$wxUSE_ALL_FEATURES
14153           if test -z "$defaultval"; then
14154               if test x"$enablestring" = xdisable; then
14155                   defaultval=yes
14156               else
14157                   defaultval=no
14158               fi
14159           fi
14160
14161           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-palette" >&5
14162 echo $ECHO_N "checking for --${enablestring:-enable}-palette... $ECHO_C" >&6; }
14163           # Check whether --enable-palette was given.
14164 if test "${enable_palette+set}" = set; then
14165   enableval=$enable_palette;
14166                           if test "$enableval" = yes; then
14167                             wx_cv_use_palette='wxUSE_PALETTE=yes'
14168                           else
14169                             wx_cv_use_palette='wxUSE_PALETTE=no'
14170                           fi
14171
14172 else
14173
14174                           wx_cv_use_palette='wxUSE_PALETTE=${'DEFAULT_wxUSE_PALETTE":-$defaultval}"
14175
14176 fi
14177
14178
14179           eval "$wx_cv_use_palette"
14180
14181           if test x"$enablestring" = xdisable; then
14182             if test $wxUSE_PALETTE = no; then
14183               result=yes
14184             else
14185               result=no
14186             fi
14187           else
14188             result=$wxUSE_PALETTE
14189           fi
14190
14191           { echo "$as_me:$LINENO: result: $result" >&5
14192 echo "${ECHO_T}$result" >&6; }
14193
14194
14195           enablestring=
14196           defaultval=$wxUSE_ALL_FEATURES
14197           if test -z "$defaultval"; then
14198               if test x"$enablestring" = xdisable; then
14199                   defaultval=yes
14200               else
14201                   defaultval=no
14202               fi
14203           fi
14204
14205           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-image" >&5
14206 echo $ECHO_N "checking for --${enablestring:-enable}-image... $ECHO_C" >&6; }
14207           # Check whether --enable-image was given.
14208 if test "${enable_image+set}" = set; then
14209   enableval=$enable_image;
14210                           if test "$enableval" = yes; then
14211                             wx_cv_use_image='wxUSE_IMAGE=yes'
14212                           else
14213                             wx_cv_use_image='wxUSE_IMAGE=no'
14214                           fi
14215
14216 else
14217
14218                           wx_cv_use_image='wxUSE_IMAGE=${'DEFAULT_wxUSE_IMAGE":-$defaultval}"
14219
14220 fi
14221
14222
14223           eval "$wx_cv_use_image"
14224
14225           if test x"$enablestring" = xdisable; then
14226             if test $wxUSE_IMAGE = no; then
14227               result=yes
14228             else
14229               result=no
14230             fi
14231           else
14232             result=$wxUSE_IMAGE
14233           fi
14234
14235           { echo "$as_me:$LINENO: result: $result" >&5
14236 echo "${ECHO_T}$result" >&6; }
14237
14238
14239           enablestring=
14240           defaultval=$wxUSE_ALL_FEATURES
14241           if test -z "$defaultval"; then
14242               if test x"$enablestring" = xdisable; then
14243                   defaultval=yes
14244               else
14245                   defaultval=no
14246               fi
14247           fi
14248
14249           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gif" >&5
14250 echo $ECHO_N "checking for --${enablestring:-enable}-gif... $ECHO_C" >&6; }
14251           # Check whether --enable-gif was given.
14252 if test "${enable_gif+set}" = set; then
14253   enableval=$enable_gif;
14254                           if test "$enableval" = yes; then
14255                             wx_cv_use_gif='wxUSE_GIF=yes'
14256                           else
14257                             wx_cv_use_gif='wxUSE_GIF=no'
14258                           fi
14259
14260 else
14261
14262                           wx_cv_use_gif='wxUSE_GIF=${'DEFAULT_wxUSE_GIF":-$defaultval}"
14263
14264 fi
14265
14266
14267           eval "$wx_cv_use_gif"
14268
14269           if test x"$enablestring" = xdisable; then
14270             if test $wxUSE_GIF = no; then
14271               result=yes
14272             else
14273               result=no
14274             fi
14275           else
14276             result=$wxUSE_GIF
14277           fi
14278
14279           { echo "$as_me:$LINENO: result: $result" >&5
14280 echo "${ECHO_T}$result" >&6; }
14281
14282
14283           enablestring=
14284           defaultval=$wxUSE_ALL_FEATURES
14285           if test -z "$defaultval"; then
14286               if test x"$enablestring" = xdisable; then
14287                   defaultval=yes
14288               else
14289                   defaultval=no
14290               fi
14291           fi
14292
14293           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pcx" >&5
14294 echo $ECHO_N "checking for --${enablestring:-enable}-pcx... $ECHO_C" >&6; }
14295           # Check whether --enable-pcx was given.
14296 if test "${enable_pcx+set}" = set; then
14297   enableval=$enable_pcx;
14298                           if test "$enableval" = yes; then
14299                             wx_cv_use_pcx='wxUSE_PCX=yes'
14300                           else
14301                             wx_cv_use_pcx='wxUSE_PCX=no'
14302                           fi
14303
14304 else
14305
14306                           wx_cv_use_pcx='wxUSE_PCX=${'DEFAULT_wxUSE_PCX":-$defaultval}"
14307
14308 fi
14309
14310
14311           eval "$wx_cv_use_pcx"
14312
14313           if test x"$enablestring" = xdisable; then
14314             if test $wxUSE_PCX = no; then
14315               result=yes
14316             else
14317               result=no
14318             fi
14319           else
14320             result=$wxUSE_PCX
14321           fi
14322
14323           { echo "$as_me:$LINENO: result: $result" >&5
14324 echo "${ECHO_T}$result" >&6; }
14325
14326
14327           enablestring=
14328           defaultval=$wxUSE_ALL_FEATURES
14329           if test -z "$defaultval"; then
14330               if test x"$enablestring" = xdisable; then
14331                   defaultval=yes
14332               else
14333                   defaultval=no
14334               fi
14335           fi
14336
14337           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tga" >&5
14338 echo $ECHO_N "checking for --${enablestring:-enable}-tga... $ECHO_C" >&6; }
14339           # Check whether --enable-tga was given.
14340 if test "${enable_tga+set}" = set; then
14341   enableval=$enable_tga;
14342                           if test "$enableval" = yes; then
14343                             wx_cv_use_tga='wxUSE_TGA=yes'
14344                           else
14345                             wx_cv_use_tga='wxUSE_TGA=no'
14346                           fi
14347
14348 else
14349
14350                           wx_cv_use_tga='wxUSE_TGA=${'DEFAULT_wxUSE_TGA":-$defaultval}"
14351
14352 fi
14353
14354
14355           eval "$wx_cv_use_tga"
14356
14357           if test x"$enablestring" = xdisable; then
14358             if test $wxUSE_TGA = no; then
14359               result=yes
14360             else
14361               result=no
14362             fi
14363           else
14364             result=$wxUSE_TGA
14365           fi
14366
14367           { echo "$as_me:$LINENO: result: $result" >&5
14368 echo "${ECHO_T}$result" >&6; }
14369
14370
14371           enablestring=
14372           defaultval=$wxUSE_ALL_FEATURES
14373           if test -z "$defaultval"; then
14374               if test x"$enablestring" = xdisable; then
14375                   defaultval=yes
14376               else
14377                   defaultval=no
14378               fi
14379           fi
14380
14381           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-iff" >&5
14382 echo $ECHO_N "checking for --${enablestring:-enable}-iff... $ECHO_C" >&6; }
14383           # Check whether --enable-iff was given.
14384 if test "${enable_iff+set}" = set; then
14385   enableval=$enable_iff;
14386                           if test "$enableval" = yes; then
14387                             wx_cv_use_iff='wxUSE_IFF=yes'
14388                           else
14389                             wx_cv_use_iff='wxUSE_IFF=no'
14390                           fi
14391
14392 else
14393
14394                           wx_cv_use_iff='wxUSE_IFF=${'DEFAULT_wxUSE_IFF":-$defaultval}"
14395
14396 fi
14397
14398
14399           eval "$wx_cv_use_iff"
14400
14401           if test x"$enablestring" = xdisable; then
14402             if test $wxUSE_IFF = no; then
14403               result=yes
14404             else
14405               result=no
14406             fi
14407           else
14408             result=$wxUSE_IFF
14409           fi
14410
14411           { echo "$as_me:$LINENO: result: $result" >&5
14412 echo "${ECHO_T}$result" >&6; }
14413
14414
14415           enablestring=
14416           defaultval=$wxUSE_ALL_FEATURES
14417           if test -z "$defaultval"; then
14418               if test x"$enablestring" = xdisable; then
14419                   defaultval=yes
14420               else
14421                   defaultval=no
14422               fi
14423           fi
14424
14425           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pnm" >&5
14426 echo $ECHO_N "checking for --${enablestring:-enable}-pnm... $ECHO_C" >&6; }
14427           # Check whether --enable-pnm was given.
14428 if test "${enable_pnm+set}" = set; then
14429   enableval=$enable_pnm;
14430                           if test "$enableval" = yes; then
14431                             wx_cv_use_pnm='wxUSE_PNM=yes'
14432                           else
14433                             wx_cv_use_pnm='wxUSE_PNM=no'
14434                           fi
14435
14436 else
14437
14438                           wx_cv_use_pnm='wxUSE_PNM=${'DEFAULT_wxUSE_PNM":-$defaultval}"
14439
14440 fi
14441
14442
14443           eval "$wx_cv_use_pnm"
14444
14445           if test x"$enablestring" = xdisable; then
14446             if test $wxUSE_PNM = no; then
14447               result=yes
14448             else
14449               result=no
14450             fi
14451           else
14452             result=$wxUSE_PNM
14453           fi
14454
14455           { echo "$as_me:$LINENO: result: $result" >&5
14456 echo "${ECHO_T}$result" >&6; }
14457
14458
14459           enablestring=
14460           defaultval=$wxUSE_ALL_FEATURES
14461           if test -z "$defaultval"; then
14462               if test x"$enablestring" = xdisable; then
14463                   defaultval=yes
14464               else
14465                   defaultval=no
14466               fi
14467           fi
14468
14469           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xpm" >&5
14470 echo $ECHO_N "checking for --${enablestring:-enable}-xpm... $ECHO_C" >&6; }
14471           # Check whether --enable-xpm was given.
14472 if test "${enable_xpm+set}" = set; then
14473   enableval=$enable_xpm;
14474                           if test "$enableval" = yes; then
14475                             wx_cv_use_xpm='wxUSE_XPM=yes'
14476                           else
14477                             wx_cv_use_xpm='wxUSE_XPM=no'
14478                           fi
14479
14480 else
14481
14482                           wx_cv_use_xpm='wxUSE_XPM=${'DEFAULT_wxUSE_XPM":-$defaultval}"
14483
14484 fi
14485
14486
14487           eval "$wx_cv_use_xpm"
14488
14489           if test x"$enablestring" = xdisable; then
14490             if test $wxUSE_XPM = no; then
14491               result=yes
14492             else
14493               result=no
14494             fi
14495           else
14496             result=$wxUSE_XPM
14497           fi
14498
14499           { echo "$as_me:$LINENO: result: $result" >&5
14500 echo "${ECHO_T}$result" >&6; }
14501
14502
14503           enablestring=
14504           defaultval=$wxUSE_ALL_FEATURES
14505           if test -z "$defaultval"; then
14506               if test x"$enablestring" = xdisable; then
14507                   defaultval=yes
14508               else
14509                   defaultval=no
14510               fi
14511           fi
14512
14513           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ico_cur" >&5
14514 echo $ECHO_N "checking for --${enablestring:-enable}-ico_cur... $ECHO_C" >&6; }
14515           # Check whether --enable-ico_cur was given.
14516 if test "${enable_ico_cur+set}" = set; then
14517   enableval=$enable_ico_cur;
14518                           if test "$enableval" = yes; then
14519                             wx_cv_use_ico_cur='wxUSE_ICO_CUR=yes'
14520                           else
14521                             wx_cv_use_ico_cur='wxUSE_ICO_CUR=no'
14522                           fi
14523
14524 else
14525
14526                           wx_cv_use_ico_cur='wxUSE_ICO_CUR=${'DEFAULT_wxUSE_ICO_CUR":-$defaultval}"
14527
14528 fi
14529
14530
14531           eval "$wx_cv_use_ico_cur"
14532
14533           if test x"$enablestring" = xdisable; then
14534             if test $wxUSE_ICO_CUR = no; then
14535               result=yes
14536             else
14537               result=no
14538             fi
14539           else
14540             result=$wxUSE_ICO_CUR
14541           fi
14542
14543           { echo "$as_me:$LINENO: result: $result" >&5
14544 echo "${ECHO_T}$result" >&6; }
14545
14546
14547
14548
14549           enablestring=
14550           defaultval=$wxUSE_ALL_FEATURES
14551           if test -z "$defaultval"; then
14552               if test x"$enablestring" = xdisable; then
14553                   defaultval=yes
14554               else
14555                   defaultval=no
14556               fi
14557           fi
14558
14559           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dccache" >&5
14560 echo $ECHO_N "checking for --${enablestring:-enable}-dccache... $ECHO_C" >&6; }
14561           # Check whether --enable-dccache was given.
14562 if test "${enable_dccache+set}" = set; then
14563   enableval=$enable_dccache;
14564                           if test "$enableval" = yes; then
14565                             wx_cv_use_dccache='wxUSE_DC_CACHEING=yes'
14566                           else
14567                             wx_cv_use_dccache='wxUSE_DC_CACHEING=no'
14568                           fi
14569
14570 else
14571
14572                           wx_cv_use_dccache='wxUSE_DC_CACHEING=${'DEFAULT_wxUSE_DC_CACHEING":-$defaultval}"
14573
14574 fi
14575
14576
14577           eval "$wx_cv_use_dccache"
14578
14579           if test x"$enablestring" = xdisable; then
14580             if test $wxUSE_DC_CACHEING = no; then
14581               result=yes
14582             else
14583               result=no
14584             fi
14585           else
14586             result=$wxUSE_DC_CACHEING
14587           fi
14588
14589           { echo "$as_me:$LINENO: result: $result" >&5
14590 echo "${ECHO_T}$result" >&6; }
14591
14592
14593           enablestring=
14594           defaultval=$wxUSE_ALL_FEATURES
14595           if test -z "$defaultval"; then
14596               if test x"$enablestring" = xdisable; then
14597                   defaultval=yes
14598               else
14599                   defaultval=no
14600               fi
14601           fi
14602
14603           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ps-in-msw" >&5
14604 echo $ECHO_N "checking for --${enablestring:-enable}-ps-in-msw... $ECHO_C" >&6; }
14605           # Check whether --enable-ps-in-msw was given.
14606 if test "${enable_ps_in_msw+set}" = set; then
14607   enableval=$enable_ps_in_msw;
14608                           if test "$enableval" = yes; then
14609                             wx_cv_use_ps_in_msw='wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW=yes'
14610                           else
14611                             wx_cv_use_ps_in_msw='wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW=no'
14612                           fi
14613
14614 else
14615
14616                           wx_cv_use_ps_in_msw='wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW=${'DEFAULT_wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW":-$defaultval}"
14617
14618 fi
14619
14620
14621           eval "$wx_cv_use_ps_in_msw"
14622
14623           if test x"$enablestring" = xdisable; then
14624             if test $wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW = no; then
14625               result=yes
14626             else
14627               result=no
14628             fi
14629           else
14630             result=$wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW
14631           fi
14632
14633           { echo "$as_me:$LINENO: result: $result" >&5
14634 echo "${ECHO_T}$result" >&6; }
14635
14636
14637           enablestring=
14638           defaultval=$wxUSE_ALL_FEATURES
14639           if test -z "$defaultval"; then
14640               if test x"$enablestring" = xdisable; then
14641                   defaultval=yes
14642               else
14643                   defaultval=no
14644               fi
14645           fi
14646
14647           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ownerdrawn" >&5
14648 echo $ECHO_N "checking for --${enablestring:-enable}-ownerdrawn... $ECHO_C" >&6; }
14649           # Check whether --enable-ownerdrawn was given.
14650 if test "${enable_ownerdrawn+set}" = set; then
14651   enableval=$enable_ownerdrawn;
14652                           if test "$enableval" = yes; then
14653                             wx_cv_use_ownerdrawn='wxUSE_OWNER_DRAWN=yes'
14654                           else
14655                             wx_cv_use_ownerdrawn='wxUSE_OWNER_DRAWN=no'
14656                           fi
14657
14658 else
14659
14660                           wx_cv_use_ownerdrawn='wxUSE_OWNER_DRAWN=${'DEFAULT_wxUSE_OWNER_DRAWN":-$defaultval}"
14661
14662 fi
14663
14664
14665           eval "$wx_cv_use_ownerdrawn"
14666
14667           if test x"$enablestring" = xdisable; then
14668             if test $wxUSE_OWNER_DRAWN = no; then
14669               result=yes
14670             else
14671               result=no
14672             fi
14673           else
14674             result=$wxUSE_OWNER_DRAWN
14675           fi
14676
14677           { echo "$as_me:$LINENO: result: $result" >&5
14678 echo "${ECHO_T}$result" >&6; }
14679
14680
14681           enablestring=
14682           defaultval=$wxUSE_ALL_FEATURES
14683           if test -z "$defaultval"; then
14684               if test x"$enablestring" = xdisable; then
14685                   defaultval=yes
14686               else
14687                   defaultval=no
14688               fi
14689           fi
14690
14691           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-uxtheme" >&5
14692 echo $ECHO_N "checking for --${enablestring:-enable}-uxtheme... $ECHO_C" >&6; }
14693           # Check whether --enable-uxtheme was given.
14694 if test "${enable_uxtheme+set}" = set; then
14695   enableval=$enable_uxtheme;
14696                           if test "$enableval" = yes; then
14697                             wx_cv_use_uxtheme='wxUSE_UXTHEME=yes'
14698                           else
14699                             wx_cv_use_uxtheme='wxUSE_UXTHEME=no'
14700                           fi
14701
14702 else
14703
14704                           wx_cv_use_uxtheme='wxUSE_UXTHEME=${'DEFAULT_wxUSE_UXTHEME":-$defaultval}"
14705
14706 fi
14707
14708
14709           eval "$wx_cv_use_uxtheme"
14710
14711           if test x"$enablestring" = xdisable; then
14712             if test $wxUSE_UXTHEME = no; then
14713               result=yes
14714             else
14715               result=no
14716             fi
14717           else
14718             result=$wxUSE_UXTHEME
14719           fi
14720
14721           { echo "$as_me:$LINENO: result: $result" >&5
14722 echo "${ECHO_T}$result" >&6; }
14723
14724
14725           enablestring=
14726           defaultval=$wxUSE_ALL_FEATURES
14727           if test -z "$defaultval"; then
14728               if test x"$enablestring" = xdisable; then
14729                   defaultval=yes
14730               else
14731                   defaultval=no
14732               fi
14733           fi
14734
14735           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wxdib" >&5
14736 echo $ECHO_N "checking for --${enablestring:-enable}-wxdib... $ECHO_C" >&6; }
14737           # Check whether --enable-wxdib was given.
14738 if test "${enable_wxdib+set}" = set; then
14739   enableval=$enable_wxdib;
14740                           if test "$enableval" = yes; then
14741                             wx_cv_use_wxdib='wxUSE_DIB=yes'
14742                           else
14743                             wx_cv_use_wxdib='wxUSE_DIB=no'
14744                           fi
14745
14746 else
14747
14748                           wx_cv_use_wxdib='wxUSE_DIB=${'DEFAULT_wxUSE_DIB":-$defaultval}"
14749
14750 fi
14751
14752
14753           eval "$wx_cv_use_wxdib"
14754
14755           if test x"$enablestring" = xdisable; then
14756             if test $wxUSE_DIB = no; then
14757               result=yes
14758             else
14759               result=no
14760             fi
14761           else
14762             result=$wxUSE_DIB
14763           fi
14764
14765           { echo "$as_me:$LINENO: result: $result" >&5
14766 echo "${ECHO_T}$result" >&6; }
14767
14768
14769           enablestring=
14770           defaultval=$wxUSE_ALL_FEATURES
14771           if test -z "$defaultval"; then
14772               if test x"$enablestring" = xdisable; then
14773                   defaultval=yes
14774               else
14775                   defaultval=no
14776               fi
14777           fi
14778
14779           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-webviewie" >&5
14780 echo $ECHO_N "checking for --${enablestring:-enable}-webviewie... $ECHO_C" >&6; }
14781           # Check whether --enable-webviewie was given.
14782 if test "${enable_webviewie+set}" = set; then
14783   enableval=$enable_webviewie;
14784                           if test "$enableval" = yes; then
14785                             wx_cv_use_webviewie='wxUSE_WEBVIEW_IE=yes'
14786                           else
14787                             wx_cv_use_webviewie='wxUSE_WEBVIEW_IE=no'
14788                           fi
14789
14790 else
14791
14792                           wx_cv_use_webviewie='wxUSE_WEBVIEW_IE=${'DEFAULT_wxUSE_WEBVIEW_IE":-$defaultval}"
14793
14794 fi
14795
14796
14797           eval "$wx_cv_use_webviewie"
14798
14799           if test x"$enablestring" = xdisable; then
14800             if test $wxUSE_WEBVIEW_IE = no; then
14801               result=yes
14802             else
14803               result=no
14804             fi
14805           else
14806             result=$wxUSE_WEBVIEW_IE
14807           fi
14808
14809           { echo "$as_me:$LINENO: result: $result" >&5
14810 echo "${ECHO_T}$result" >&6; }
14811
14812
14813 if test "$wxUSE_MSW" != 1; then
14814     DEFAULT_wxUSE_AUTOID_MANAGEMENT=no
14815 fi
14816
14817
14818           enablestring=
14819           defaultval=$wxUSE_ALL_FEATURES
14820           if test -z "$defaultval"; then
14821               if test x"$enablestring" = xdisable; then
14822                   defaultval=yes
14823               else
14824                   defaultval=no
14825               fi
14826           fi
14827
14828           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-autoidman" >&5
14829 echo $ECHO_N "checking for --${enablestring:-enable}-autoidman... $ECHO_C" >&6; }
14830           # Check whether --enable-autoidman was given.
14831 if test "${enable_autoidman+set}" = set; then
14832   enableval=$enable_autoidman;
14833                           if test "$enableval" = yes; then
14834                             wx_cv_use_autoidman='wxUSE_AUTOID_MANAGEMENT=yes'
14835                           else
14836                             wx_cv_use_autoidman='wxUSE_AUTOID_MANAGEMENT=no'
14837                           fi
14838
14839 else
14840
14841                           wx_cv_use_autoidman='wxUSE_AUTOID_MANAGEMENT=${'DEFAULT_wxUSE_AUTOID_MANAGEMENT":-$defaultval}"
14842
14843 fi
14844
14845
14846           eval "$wx_cv_use_autoidman"
14847
14848           if test x"$enablestring" = xdisable; then
14849             if test $wxUSE_AUTOID_MANAGEMENT = no; then
14850               result=yes
14851             else
14852               result=no
14853             fi
14854           else
14855             result=$wxUSE_AUTOID_MANAGEMENT
14856           fi
14857
14858           { echo "$as_me:$LINENO: result: $result" >&5
14859 echo "${ECHO_T}$result" >&6; }
14860
14861
14862 fi
14863
14864
14865 cat >confcache <<\_ACEOF
14866 # This file is a shell script that caches the results of configure
14867 # tests run on this system so they can be shared between configure
14868 # scripts and configure runs, see configure's option --config-cache.
14869 # It is not useful on other systems.  If it contains results you don't
14870 # want to keep, you may remove or edit it.
14871 #
14872 # config.status only pays attention to the cache file if you give it
14873 # the --recheck option to rerun configure.
14874 #
14875 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14876 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14877 # following values.
14878
14879 _ACEOF
14880
14881 # The following way of writing the cache mishandles newlines in values,
14882 # but we know of no workaround that is simple, portable, and efficient.
14883 # So, we kill variables containing newlines.
14884 # Ultrix sh set writes to stderr and can't be redirected directly,
14885 # and sets the high bit in the cache file unless we assign to the vars.
14886 (
14887   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14888     eval ac_val=\$$ac_var
14889     case $ac_val in #(
14890     *${as_nl}*)
14891       case $ac_var in #(
14892       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
14893 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
14894       esac
14895       case $ac_var in #(
14896       _ | IFS | as_nl) ;; #(
14897       *) $as_unset $ac_var ;;
14898       esac ;;
14899     esac
14900   done
14901
14902   (set) 2>&1 |
14903     case $as_nl`(ac_space=' '; set) 2>&1` in #(
14904     *${as_nl}ac_space=\ *)
14905       # `set' does not quote correctly, so add quotes (double-quote
14906       # substitution turns \\\\ into \\, and sed turns \\ into \).
14907       sed -n \
14908         "s/'/'\\\\''/g;
14909           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14910       ;; #(
14911     *)
14912       # `set' quotes correctly as required by POSIX, so do not add quotes.
14913       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14914       ;;
14915     esac |
14916     sort
14917 ) |
14918   sed '
14919      /^ac_cv_env_/b end
14920      t clear
14921      :clear
14922      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14923      t end
14924      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14925      :end' >>confcache
14926 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14927   if test -w "$cache_file"; then
14928     test "x$cache_file" != "x/dev/null" &&
14929       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
14930 echo "$as_me: updating cache $cache_file" >&6;}
14931     cat confcache >$cache_file
14932   else
14933     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
14934 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14935   fi
14936 fi
14937 rm -f confcache
14938
14939 CFLAGS=${CFLAGS:=}
14940 ac_ext=c
14941 ac_cpp='$CPP $CPPFLAGS'
14942 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14943 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14944 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14945 if test -n "$ac_tool_prefix"; then
14946   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
14947 set dummy ${ac_tool_prefix}gcc; ac_word=$2
14948 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14949 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14950 if test "${ac_cv_prog_CC+set}" = set; then
14951   echo $ECHO_N "(cached) $ECHO_C" >&6
14952 else
14953   if test -n "$CC"; then
14954   ac_cv_prog_CC="$CC" # Let the user override the test.
14955 else
14956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14957 for as_dir in $PATH
14958 do
14959   IFS=$as_save_IFS
14960   test -z "$as_dir" && as_dir=.
14961   for ac_exec_ext in '' $ac_executable_extensions; do
14962   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14963     ac_cv_prog_CC="${ac_tool_prefix}gcc"
14964     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14965     break 2
14966   fi
14967 done
14968 done
14969 IFS=$as_save_IFS
14970
14971 fi
14972 fi
14973 CC=$ac_cv_prog_CC
14974 if test -n "$CC"; then
14975   { echo "$as_me:$LINENO: result: $CC" >&5
14976 echo "${ECHO_T}$CC" >&6; }
14977 else
14978   { echo "$as_me:$LINENO: result: no" >&5
14979 echo "${ECHO_T}no" >&6; }
14980 fi
14981
14982
14983 fi
14984 if test -z "$ac_cv_prog_CC"; then
14985   ac_ct_CC=$CC
14986   # Extract the first word of "gcc", so it can be a program name with args.
14987 set dummy gcc; ac_word=$2
14988 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14989 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14990 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
14991   echo $ECHO_N "(cached) $ECHO_C" >&6
14992 else
14993   if test -n "$ac_ct_CC"; then
14994   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
14995 else
14996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14997 for as_dir in $PATH
14998 do
14999   IFS=$as_save_IFS
15000   test -z "$as_dir" && as_dir=.
15001   for ac_exec_ext in '' $ac_executable_extensions; do
15002   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15003     ac_cv_prog_ac_ct_CC="gcc"
15004     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15005     break 2
15006   fi
15007 done
15008 done
15009 IFS=$as_save_IFS
15010
15011 fi
15012 fi
15013 ac_ct_CC=$ac_cv_prog_ac_ct_CC
15014 if test -n "$ac_ct_CC"; then
15015   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
15016 echo "${ECHO_T}$ac_ct_CC" >&6; }
15017 else
15018   { echo "$as_me:$LINENO: result: no" >&5
15019 echo "${ECHO_T}no" >&6; }
15020 fi
15021
15022   if test "x$ac_ct_CC" = x; then
15023     CC=""
15024   else
15025     case $cross_compiling:$ac_tool_warned in
15026 yes:)
15027 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
15028 whose name does not start with the host triplet.  If you think this
15029 configuration is useful to you, please write to autoconf@gnu.org." >&5
15030 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
15031 whose name does not start with the host triplet.  If you think this
15032 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
15033 ac_tool_warned=yes ;;
15034 esac
15035     CC=$ac_ct_CC
15036   fi
15037 else
15038   CC="$ac_cv_prog_CC"
15039 fi
15040
15041 if test -z "$CC"; then
15042           if test -n "$ac_tool_prefix"; then
15043     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
15044 set dummy ${ac_tool_prefix}cc; ac_word=$2
15045 { echo "$as_me:$LINENO: checking for $ac_word" >&5
15046 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
15047 if test "${ac_cv_prog_CC+set}" = set; then
15048   echo $ECHO_N "(cached) $ECHO_C" >&6
15049 else
15050   if test -n "$CC"; then
15051   ac_cv_prog_CC="$CC" # Let the user override the test.
15052 else
15053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15054 for as_dir in $PATH
15055 do
15056   IFS=$as_save_IFS
15057   test -z "$as_dir" && as_dir=.
15058   for ac_exec_ext in '' $ac_executable_extensions; do
15059   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15060     ac_cv_prog_CC="${ac_tool_prefix}cc"
15061     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15062     break 2
15063   fi
15064 done
15065 done
15066 IFS=$as_save_IFS
15067
15068 fi
15069 fi
15070 CC=$ac_cv_prog_CC
15071 if test -n "$CC"; then
15072   { echo "$as_me:$LINENO: result: $CC" >&5
15073 echo "${ECHO_T}$CC" >&6; }
15074 else
15075   { echo "$as_me:$LINENO: result: no" >&5
15076 echo "${ECHO_T}no" >&6; }
15077 fi
15078
15079
15080   fi
15081 fi
15082 if test -z "$CC"; then
15083   # Extract the first word of "cc", so it can be a program name with args.
15084 set dummy cc; ac_word=$2
15085 { echo "$as_me:$LINENO: checking for $ac_word" >&5
15086 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
15087 if test "${ac_cv_prog_CC+set}" = set; then
15088   echo $ECHO_N "(cached) $ECHO_C" >&6
15089 else
15090   if test -n "$CC"; then
15091   ac_cv_prog_CC="$CC" # Let the user override the test.
15092 else
15093   ac_prog_rejected=no
15094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15095 for as_dir in $PATH
15096 do
15097   IFS=$as_save_IFS
15098   test -z "$as_dir" && as_dir=.
15099   for ac_exec_ext in '' $ac_executable_extensions; do
15100   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15101     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
15102        ac_prog_rejected=yes
15103        continue
15104      fi
15105     ac_cv_prog_CC="cc"
15106     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15107     break 2
15108   fi
15109 done
15110 done
15111 IFS=$as_save_IFS
15112
15113 if test $ac_prog_rejected = yes; then
15114   # We found a bogon in the path, so make sure we never use it.
15115   set dummy $ac_cv_prog_CC
15116   shift
15117   if test $# != 0; then
15118     # We chose a different compiler from the bogus one.
15119     # However, it has the same basename, so the bogon will be chosen
15120     # first if we set CC to just the basename; use the full file name.
15121     shift
15122     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
15123   fi
15124 fi
15125 fi
15126 fi
15127 CC=$ac_cv_prog_CC
15128 if test -n "$CC"; then
15129   { echo "$as_me:$LINENO: result: $CC" >&5
15130 echo "${ECHO_T}$CC" >&6; }
15131 else
15132   { echo "$as_me:$LINENO: result: no" >&5
15133 echo "${ECHO_T}no" >&6; }
15134 fi
15135
15136
15137 fi
15138 if test -z "$CC"; then
15139   if test -n "$ac_tool_prefix"; then
15140   for ac_prog in cl.exe
15141   do
15142     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
15143 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
15144 { echo "$as_me:$LINENO: checking for $ac_word" >&5
15145 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
15146 if test "${ac_cv_prog_CC+set}" = set; then
15147   echo $ECHO_N "(cached) $ECHO_C" >&6
15148 else
15149   if test -n "$CC"; then
15150   ac_cv_prog_CC="$CC" # Let the user override the test.
15151 else
15152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15153 for as_dir in $PATH
15154 do
15155   IFS=$as_save_IFS
15156   test -z "$as_dir" && as_dir=.
15157   for ac_exec_ext in '' $ac_executable_extensions; do
15158   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15159     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
15160     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15161     break 2
15162   fi
15163 done
15164 done
15165 IFS=$as_save_IFS
15166
15167 fi
15168 fi
15169 CC=$ac_cv_prog_CC
15170 if test -n "$CC"; then
15171   { echo "$as_me:$LINENO: result: $CC" >&5
15172 echo "${ECHO_T}$CC" >&6; }
15173 else
15174   { echo "$as_me:$LINENO: result: no" >&5
15175 echo "${ECHO_T}no" >&6; }
15176 fi
15177
15178
15179     test -n "$CC" && break
15180   done
15181 fi
15182 if test -z "$CC"; then
15183   ac_ct_CC=$CC
15184   for ac_prog in cl.exe
15185 do
15186   # Extract the first word of "$ac_prog", so it can be a program name with args.
15187 set dummy $ac_prog; ac_word=$2
15188 { echo "$as_me:$LINENO: checking for $ac_word" >&5
15189 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
15190 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
15191   echo $ECHO_N "(cached) $ECHO_C" >&6
15192 else
15193   if test -n "$ac_ct_CC"; then
15194   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
15195 else
15196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15197 for as_dir in $PATH
15198 do
15199   IFS=$as_save_IFS
15200   test -z "$as_dir" && as_dir=.
15201   for ac_exec_ext in '' $ac_executable_extensions; do
15202   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15203     ac_cv_prog_ac_ct_CC="$ac_prog"
15204     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15205     break 2
15206   fi
15207 done
15208 done
15209 IFS=$as_save_IFS
15210
15211 fi
15212 fi
15213 ac_ct_CC=$ac_cv_prog_ac_ct_CC
15214 if test -n "$ac_ct_CC"; then
15215   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
15216 echo "${ECHO_T}$ac_ct_CC" >&6; }
15217 else
15218   { echo "$as_me:$LINENO: result: no" >&5
15219 echo "${ECHO_T}no" >&6; }
15220 fi
15221
15222
15223   test -n "$ac_ct_CC" && break
15224 done
15225
15226   if test "x$ac_ct_CC" = x; then
15227     CC=""
15228   else
15229     case $cross_compiling:$ac_tool_warned in
15230 yes:)
15231 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
15232 whose name does not start with the host triplet.  If you think this
15233 configuration is useful to you, please write to autoconf@gnu.org." >&5
15234 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
15235 whose name does not start with the host triplet.  If you think this
15236 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
15237 ac_tool_warned=yes ;;
15238 esac
15239     CC=$ac_ct_CC
15240   fi
15241 fi
15242
15243 fi
15244
15245
15246 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
15247 See \`config.log' for more details." >&5
15248 echo "$as_me: error: no acceptable C compiler found in \$PATH
15249 See \`config.log' for more details." >&2;}
15250    { (exit 1); exit 1; }; }
15251
15252 # Provide some information about the compiler.
15253 echo "$as_me:$LINENO: checking for C compiler version" >&5
15254 ac_compiler=`set X $ac_compile; echo $2`
15255 { (ac_try="$ac_compiler --version >&5"
15256 case "(($ac_try" in
15257   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15258   *) ac_try_echo=$ac_try;;
15259 esac
15260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15261   (eval "$ac_compiler --version >&5") 2>&5
15262   ac_status=$?
15263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15264   (exit $ac_status); }
15265 { (ac_try="$ac_compiler -v >&5"
15266 case "(($ac_try" in
15267   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15268   *) ac_try_echo=$ac_try;;
15269 esac
15270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15271   (eval "$ac_compiler -v >&5") 2>&5
15272   ac_status=$?
15273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15274   (exit $ac_status); }
15275 { (ac_try="$ac_compiler -V >&5"
15276 case "(($ac_try" in
15277   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15278   *) ac_try_echo=$ac_try;;
15279 esac
15280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15281   (eval "$ac_compiler -V >&5") 2>&5
15282   ac_status=$?
15283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15284   (exit $ac_status); }
15285
15286 cat >conftest.$ac_ext <<_ACEOF
15287 /* confdefs.h.  */
15288 _ACEOF
15289 cat confdefs.h >>conftest.$ac_ext
15290 cat >>conftest.$ac_ext <<_ACEOF
15291 /* end confdefs.h.  */
15292
15293 int
15294 main ()
15295 {
15296
15297   ;
15298   return 0;
15299 }
15300 _ACEOF
15301 ac_clean_files_save=$ac_clean_files
15302 ac_clean_files="$ac_clean_files a.out a.exe b.out"
15303 # Try to create an executable without -o first, disregard a.out.
15304 # It will help us diagnose broken compilers, and finding out an intuition
15305 # of exeext.
15306 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
15307 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
15308 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
15309 #
15310 # List of possible output files, starting from the most likely.
15311 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
15312 # only as a last resort.  b.out is created by i960 compilers.
15313 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
15314 #
15315 # The IRIX 6 linker writes into existing files which may not be
15316 # executable, retaining their permissions.  Remove them first so a
15317 # subsequent execution test works.
15318 ac_rmfiles=
15319 for ac_file in $ac_files
15320 do
15321   case $ac_file in
15322     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
15323     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
15324   esac
15325 done
15326 rm -f $ac_rmfiles
15327
15328 if { (ac_try="$ac_link_default"
15329 case "(($ac_try" in
15330   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15331   *) ac_try_echo=$ac_try;;
15332 esac
15333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15334   (eval "$ac_link_default") 2>&5
15335   ac_status=$?
15336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15337   (exit $ac_status); }; then
15338   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
15339 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
15340 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
15341 # so that the user can short-circuit this test for compilers unknown to
15342 # Autoconf.
15343 for ac_file in $ac_files ''
15344 do
15345   test -f "$ac_file" || continue
15346   case $ac_file in
15347     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
15348         ;;
15349     [ab].out )
15350         # We found the default executable, but exeext='' is most
15351         # certainly right.
15352         break;;
15353     *.* )
15354         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
15355         then :; else
15356            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
15357         fi
15358         # We set ac_cv_exeext here because the later test for it is not
15359         # safe: cross compilers may not add the suffix if given an `-o'
15360         # argument, so we may need to know it at that point already.
15361         # Even if this section looks crufty: it has the advantage of
15362         # actually working.
15363         break;;
15364     * )
15365         break;;
15366   esac
15367 done
15368 test "$ac_cv_exeext" = no && ac_cv_exeext=
15369
15370 else
15371   ac_file=''
15372 fi
15373
15374 { echo "$as_me:$LINENO: result: $ac_file" >&5
15375 echo "${ECHO_T}$ac_file" >&6; }
15376 if test -z "$ac_file"; then
15377   echo "$as_me: failed program was:" >&5
15378 sed 's/^/| /' conftest.$ac_ext >&5
15379
15380 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
15381 See \`config.log' for more details." >&5
15382 echo "$as_me: error: C compiler cannot create executables
15383 See \`config.log' for more details." >&2;}
15384    { (exit 77); exit 77; }; }
15385 fi
15386
15387 ac_exeext=$ac_cv_exeext
15388
15389 # Check that the compiler produces executables we can run.  If not, either
15390 # the compiler is broken, or we cross compile.
15391 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
15392 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
15393 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
15394 # If not cross compiling, check that we can run a simple program.
15395 if test "$cross_compiling" != yes; then
15396   if { ac_try='./$ac_file'
15397   { (case "(($ac_try" in
15398   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15399   *) ac_try_echo=$ac_try;;
15400 esac
15401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15402   (eval "$ac_try") 2>&5
15403   ac_status=$?
15404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15405   (exit $ac_status); }; }; then
15406     cross_compiling=no
15407   else
15408     if test "$cross_compiling" = maybe; then
15409         cross_compiling=yes
15410     else
15411         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
15412 If you meant to cross compile, use \`--host'.
15413 See \`config.log' for more details." >&5
15414 echo "$as_me: error: cannot run C compiled programs.
15415 If you meant to cross compile, use \`--host'.
15416 See \`config.log' for more details." >&2;}
15417    { (exit 1); exit 1; }; }
15418     fi
15419   fi
15420 fi
15421 { echo "$as_me:$LINENO: result: yes" >&5
15422 echo "${ECHO_T}yes" >&6; }
15423
15424 rm -f a.out a.exe conftest$ac_cv_exeext b.out
15425 ac_clean_files=$ac_clean_files_save
15426 # Check that the compiler produces executables we can run.  If not, either
15427 # the compiler is broken, or we cross compile.
15428 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
15429 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
15430 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
15431 echo "${ECHO_T}$cross_compiling" >&6; }
15432
15433 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
15434 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
15435 if { (ac_try="$ac_link"
15436 case "(($ac_try" in
15437   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15438   *) ac_try_echo=$ac_try;;
15439 esac
15440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15441   (eval "$ac_link") 2>&5
15442   ac_status=$?
15443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15444   (exit $ac_status); }; then
15445   # If both `conftest.exe' and `conftest' are `present' (well, observable)
15446 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
15447 # work properly (i.e., refer to `conftest.exe'), while it won't with
15448 # `rm'.
15449 for ac_file in conftest.exe conftest conftest.*; do
15450   test -f "$ac_file" || continue
15451   case $ac_file in
15452     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
15453     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
15454           break;;
15455     * ) break;;
15456   esac
15457 done
15458 else
15459   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
15460 See \`config.log' for more details." >&5
15461 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
15462 See \`config.log' for more details." >&2;}
15463    { (exit 1); exit 1; }; }
15464 fi
15465
15466 rm -f conftest$ac_cv_exeext
15467 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
15468 echo "${ECHO_T}$ac_cv_exeext" >&6; }
15469
15470 rm -f conftest.$ac_ext
15471 EXEEXT=$ac_cv_exeext
15472 ac_exeext=$EXEEXT
15473 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
15474 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
15475 if test "${ac_cv_objext+set}" = set; then
15476   echo $ECHO_N "(cached) $ECHO_C" >&6
15477 else
15478   cat >conftest.$ac_ext <<_ACEOF
15479 /* confdefs.h.  */
15480 _ACEOF
15481 cat confdefs.h >>conftest.$ac_ext
15482 cat >>conftest.$ac_ext <<_ACEOF
15483 /* end confdefs.h.  */
15484
15485 int
15486 main ()
15487 {
15488
15489   ;
15490   return 0;
15491 }
15492 _ACEOF
15493 rm -f conftest.o conftest.obj
15494 if { (ac_try="$ac_compile"
15495 case "(($ac_try" in
15496   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15497   *) ac_try_echo=$ac_try;;
15498 esac
15499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15500   (eval "$ac_compile") 2>&5
15501   ac_status=$?
15502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15503   (exit $ac_status); }; then
15504   for ac_file in conftest.o conftest.obj conftest.*; do
15505   test -f "$ac_file" || continue;
15506   case $ac_file in
15507     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
15508     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
15509        break;;
15510   esac
15511 done
15512 else
15513   echo "$as_me: failed program was:" >&5
15514 sed 's/^/| /' conftest.$ac_ext >&5
15515
15516 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
15517 See \`config.log' for more details." >&5
15518 echo "$as_me: error: cannot compute suffix of object files: cannot compile
15519 See \`config.log' for more details." >&2;}
15520    { (exit 1); exit 1; }; }
15521 fi
15522
15523 rm -f conftest.$ac_cv_objext conftest.$ac_ext
15524 fi
15525 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
15526 echo "${ECHO_T}$ac_cv_objext" >&6; }
15527 OBJEXT=$ac_cv_objext
15528 ac_objext=$OBJEXT
15529 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
15530 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
15531 if test "${ac_cv_c_compiler_gnu+set}" = set; then
15532   echo $ECHO_N "(cached) $ECHO_C" >&6
15533 else
15534   cat >conftest.$ac_ext <<_ACEOF
15535 /* confdefs.h.  */
15536 _ACEOF
15537 cat confdefs.h >>conftest.$ac_ext
15538 cat >>conftest.$ac_ext <<_ACEOF
15539 /* end confdefs.h.  */
15540
15541 int
15542 main ()
15543 {
15544 #ifndef __GNUC__
15545        choke me
15546 #endif
15547
15548   ;
15549   return 0;
15550 }
15551 _ACEOF
15552 rm -f conftest.$ac_objext
15553 if { (ac_try="$ac_compile"
15554 case "(($ac_try" in
15555   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15556   *) ac_try_echo=$ac_try;;
15557 esac
15558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15559   (eval "$ac_compile") 2>conftest.er1
15560   ac_status=$?
15561   grep -v '^ *+' conftest.er1 >conftest.err
15562   rm -f conftest.er1
15563   cat conftest.err >&5
15564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15565   (exit $ac_status); } && {
15566          test -z "$ac_c_werror_flag" ||
15567          test ! -s conftest.err
15568        } && test -s conftest.$ac_objext; then
15569   ac_compiler_gnu=yes
15570 else
15571   echo "$as_me: failed program was:" >&5
15572 sed 's/^/| /' conftest.$ac_ext >&5
15573
15574         ac_compiler_gnu=no
15575 fi
15576
15577 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15578 ac_cv_c_compiler_gnu=$ac_compiler_gnu
15579
15580 fi
15581 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
15582 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
15583 GCC=`test $ac_compiler_gnu = yes && echo yes`
15584 ac_test_CFLAGS=${CFLAGS+set}
15585 ac_save_CFLAGS=$CFLAGS
15586 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
15587 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
15588 if test "${ac_cv_prog_cc_g+set}" = set; then
15589   echo $ECHO_N "(cached) $ECHO_C" >&6
15590 else
15591   ac_save_c_werror_flag=$ac_c_werror_flag
15592    ac_c_werror_flag=yes
15593    ac_cv_prog_cc_g=no
15594    CFLAGS="-g"
15595    cat >conftest.$ac_ext <<_ACEOF
15596 /* confdefs.h.  */
15597 _ACEOF
15598 cat confdefs.h >>conftest.$ac_ext
15599 cat >>conftest.$ac_ext <<_ACEOF
15600 /* end confdefs.h.  */
15601
15602 int
15603 main ()
15604 {
15605
15606   ;
15607   return 0;
15608 }
15609 _ACEOF
15610 rm -f conftest.$ac_objext
15611 if { (ac_try="$ac_compile"
15612 case "(($ac_try" in
15613   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15614   *) ac_try_echo=$ac_try;;
15615 esac
15616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15617   (eval "$ac_compile") 2>conftest.er1
15618   ac_status=$?
15619   grep -v '^ *+' conftest.er1 >conftest.err
15620   rm -f conftest.er1
15621   cat conftest.err >&5
15622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15623   (exit $ac_status); } && {
15624          test -z "$ac_c_werror_flag" ||
15625          test ! -s conftest.err
15626        } && test -s conftest.$ac_objext; then
15627   ac_cv_prog_cc_g=yes
15628 else
15629   echo "$as_me: failed program was:" >&5
15630 sed 's/^/| /' conftest.$ac_ext >&5
15631
15632         CFLAGS=""
15633       cat >conftest.$ac_ext <<_ACEOF
15634 /* confdefs.h.  */
15635 _ACEOF
15636 cat confdefs.h >>conftest.$ac_ext
15637 cat >>conftest.$ac_ext <<_ACEOF
15638 /* end confdefs.h.  */
15639
15640 int
15641 main ()
15642 {
15643
15644   ;
15645   return 0;
15646 }
15647 _ACEOF
15648 rm -f conftest.$ac_objext
15649 if { (ac_try="$ac_compile"
15650 case "(($ac_try" in
15651   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15652   *) ac_try_echo=$ac_try;;
15653 esac
15654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15655   (eval "$ac_compile") 2>conftest.er1
15656   ac_status=$?
15657   grep -v '^ *+' conftest.er1 >conftest.err
15658   rm -f conftest.er1
15659   cat conftest.err >&5
15660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15661   (exit $ac_status); } && {
15662          test -z "$ac_c_werror_flag" ||
15663          test ! -s conftest.err
15664        } && test -s conftest.$ac_objext; then
15665   :
15666 else
15667   echo "$as_me: failed program was:" >&5
15668 sed 's/^/| /' conftest.$ac_ext >&5
15669
15670         ac_c_werror_flag=$ac_save_c_werror_flag
15671          CFLAGS="-g"
15672          cat >conftest.$ac_ext <<_ACEOF
15673 /* confdefs.h.  */
15674 _ACEOF
15675 cat confdefs.h >>conftest.$ac_ext
15676 cat >>conftest.$ac_ext <<_ACEOF
15677 /* end confdefs.h.  */
15678
15679 int
15680 main ()
15681 {
15682
15683   ;
15684   return 0;
15685 }
15686 _ACEOF
15687 rm -f conftest.$ac_objext
15688 if { (ac_try="$ac_compile"
15689 case "(($ac_try" in
15690   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15691   *) ac_try_echo=$ac_try;;
15692 esac
15693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15694   (eval "$ac_compile") 2>conftest.er1
15695   ac_status=$?
15696   grep -v '^ *+' conftest.er1 >conftest.err
15697   rm -f conftest.er1
15698   cat conftest.err >&5
15699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15700   (exit $ac_status); } && {
15701          test -z "$ac_c_werror_flag" ||
15702          test ! -s conftest.err
15703        } && test -s conftest.$ac_objext; then
15704   ac_cv_prog_cc_g=yes
15705 else
15706   echo "$as_me: failed program was:" >&5
15707 sed 's/^/| /' conftest.$ac_ext >&5
15708
15709
15710 fi
15711
15712 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15713 fi
15714
15715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15716 fi
15717
15718 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15719    ac_c_werror_flag=$ac_save_c_werror_flag
15720 fi
15721 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
15722 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
15723 if test "$ac_test_CFLAGS" = set; then
15724   CFLAGS=$ac_save_CFLAGS
15725 elif test $ac_cv_prog_cc_g = yes; then
15726   if test "$GCC" = yes; then
15727     CFLAGS="-g -O2"
15728   else
15729     CFLAGS="-g"
15730   fi
15731 else
15732   if test "$GCC" = yes; then
15733     CFLAGS="-O2"
15734   else
15735     CFLAGS=
15736   fi
15737 fi
15738 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
15739 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
15740 if test "${ac_cv_prog_cc_c89+set}" = set; then
15741   echo $ECHO_N "(cached) $ECHO_C" >&6
15742 else
15743   ac_cv_prog_cc_c89=no
15744 ac_save_CC=$CC
15745 cat >conftest.$ac_ext <<_ACEOF
15746 /* confdefs.h.  */
15747 _ACEOF
15748 cat confdefs.h >>conftest.$ac_ext
15749 cat >>conftest.$ac_ext <<_ACEOF
15750 /* end confdefs.h.  */
15751 #include <stdarg.h>
15752 #include <stdio.h>
15753 #include <sys/types.h>
15754 #include <sys/stat.h>
15755 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
15756 struct buf { int x; };
15757 FILE * (*rcsopen) (struct buf *, struct stat *, int);
15758 static char *e (p, i)
15759      char **p;
15760      int i;
15761 {
15762   return p[i];
15763 }
15764 static char *f (char * (*g) (char **, int), char **p, ...)
15765 {
15766   char *s;
15767   va_list v;
15768   va_start (v,p);
15769   s = g (p, va_arg (v,int));
15770   va_end (v);
15771   return s;
15772 }
15773
15774 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
15775    function prototypes and stuff, but not '\xHH' hex character constants.
15776    These don't provoke an error unfortunately, instead are silently treated
15777    as 'x'.  The following induces an error, until -std is added to get
15778    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
15779    array size at least.  It's necessary to write '\x00'==0 to get something
15780    that's true only with -std.  */
15781 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
15782
15783 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
15784    inside strings and character constants.  */
15785 #define FOO(x) 'x'
15786 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
15787
15788 int test (int i, double x);
15789 struct s1 {int (*f) (int a);};
15790 struct s2 {int (*f) (double a);};
15791 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
15792 int argc;
15793 char **argv;
15794 int
15795 main ()
15796 {
15797 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
15798   ;
15799   return 0;
15800 }
15801 _ACEOF
15802 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
15803         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
15804 do
15805   CC="$ac_save_CC $ac_arg"
15806   rm -f conftest.$ac_objext
15807 if { (ac_try="$ac_compile"
15808 case "(($ac_try" in
15809   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15810   *) ac_try_echo=$ac_try;;
15811 esac
15812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15813   (eval "$ac_compile") 2>conftest.er1
15814   ac_status=$?
15815   grep -v '^ *+' conftest.er1 >conftest.err
15816   rm -f conftest.er1
15817   cat conftest.err >&5
15818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15819   (exit $ac_status); } && {
15820          test -z "$ac_c_werror_flag" ||
15821          test ! -s conftest.err
15822        } && test -s conftest.$ac_objext; then
15823   ac_cv_prog_cc_c89=$ac_arg
15824 else
15825   echo "$as_me: failed program was:" >&5
15826 sed 's/^/| /' conftest.$ac_ext >&5
15827
15828
15829 fi
15830
15831 rm -f core conftest.err conftest.$ac_objext
15832   test "x$ac_cv_prog_cc_c89" != "xno" && break
15833 done
15834 rm -f conftest.$ac_ext
15835 CC=$ac_save_CC
15836
15837 fi
15838 # AC_CACHE_VAL
15839 case "x$ac_cv_prog_cc_c89" in
15840   x)
15841     { echo "$as_me:$LINENO: result: none needed" >&5
15842 echo "${ECHO_T}none needed" >&6; } ;;
15843   xno)
15844     { echo "$as_me:$LINENO: result: unsupported" >&5
15845 echo "${ECHO_T}unsupported" >&6; } ;;
15846   *)
15847     CC="$CC $ac_cv_prog_cc_c89"
15848     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
15849 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
15850 esac
15851
15852
15853 ac_ext=c
15854 ac_cpp='$CPP $CPPFLAGS'
15855 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15856 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15857 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15858
15859
15860
15861
15862
15863
15864
15865
15866     ac_ext=c
15867 ac_cpp='$CPP $CPPFLAGS'
15868 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15869 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15870 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15871
15872     { echo "$as_me:$LINENO: checking whether we are using the Intel C compiler" >&5
15873 echo $ECHO_N "checking whether we are using the Intel C compiler... $ECHO_C" >&6; }
15874 if test "${bakefile_cv_c_compiler___INTEL_COMPILER+set}" = set; then
15875   echo $ECHO_N "(cached) $ECHO_C" >&6
15876 else
15877   cat >conftest.$ac_ext <<_ACEOF
15878 /* confdefs.h.  */
15879 _ACEOF
15880 cat confdefs.h >>conftest.$ac_ext
15881 cat >>conftest.$ac_ext <<_ACEOF
15882 /* end confdefs.h.  */
15883
15884 int
15885 main ()
15886 {
15887
15888              #ifndef __INTEL_COMPILER
15889                 choke me
15890              #endif
15891
15892   ;
15893   return 0;
15894 }
15895 _ACEOF
15896 rm -f conftest.$ac_objext
15897 if { (ac_try="$ac_compile"
15898 case "(($ac_try" in
15899   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15900   *) ac_try_echo=$ac_try;;
15901 esac
15902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15903   (eval "$ac_compile") 2>conftest.er1
15904   ac_status=$?
15905   grep -v '^ *+' conftest.er1 >conftest.err
15906   rm -f conftest.er1
15907   cat conftest.err >&5
15908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15909   (exit $ac_status); } && {
15910          test -z "$ac_c_werror_flag" ||
15911          test ! -s conftest.err
15912        } && test -s conftest.$ac_objext; then
15913   bakefile_cv_c_compiler___INTEL_COMPILER=yes
15914 else
15915   echo "$as_me: failed program was:" >&5
15916 sed 's/^/| /' conftest.$ac_ext >&5
15917
15918         bakefile_cv_c_compiler___INTEL_COMPILER=no
15919
15920 fi
15921
15922 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15923
15924
15925 fi
15926 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___INTEL_COMPILER" >&5
15927 echo "${ECHO_T}$bakefile_cv_c_compiler___INTEL_COMPILER" >&6; }
15928     if test "x$bakefile_cv_c_compiler___INTEL_COMPILER" = "xyes"; then
15929         :; INTELCC=yes
15930     else
15931         :;
15932     fi
15933     ac_ext=c
15934 ac_cpp='$CPP $CPPFLAGS'
15935 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15936 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15937 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15938
15939
15940
15941
15942         if test "$INTELCC" = "yes"; then
15943
15944
15945     ac_ext=c
15946 ac_cpp='$CPP $CPPFLAGS'
15947 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15948 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15949 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15950
15951     { echo "$as_me:$LINENO: checking whether we are using Intel C compiler v8 or later" >&5
15952 echo $ECHO_N "checking whether we are using Intel C compiler v8 or later... $ECHO_C" >&6; }
15953 if test "${bakefile_cv_c_compiler___INTEL_COMPILER_lt_800+set}" = set; then
15954   echo $ECHO_N "(cached) $ECHO_C" >&6
15955 else
15956   cat >conftest.$ac_ext <<_ACEOF
15957 /* confdefs.h.  */
15958 _ACEOF
15959 cat confdefs.h >>conftest.$ac_ext
15960 cat >>conftest.$ac_ext <<_ACEOF
15961 /* end confdefs.h.  */
15962
15963 int
15964 main ()
15965 {
15966
15967              #ifndef __INTEL_COMPILER || __INTEL_COMPILER < 800
15968                 choke me
15969              #endif
15970
15971   ;
15972   return 0;
15973 }
15974 _ACEOF
15975 rm -f conftest.$ac_objext
15976 if { (ac_try="$ac_compile"
15977 case "(($ac_try" in
15978   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15979   *) ac_try_echo=$ac_try;;
15980 esac
15981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15982   (eval "$ac_compile") 2>conftest.er1
15983   ac_status=$?
15984   grep -v '^ *+' conftest.er1 >conftest.err
15985   rm -f conftest.er1
15986   cat conftest.err >&5
15987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15988   (exit $ac_status); } && {
15989          test -z "$ac_c_werror_flag" ||
15990          test ! -s conftest.err
15991        } && test -s conftest.$ac_objext; then
15992   bakefile_cv_c_compiler___INTEL_COMPILER_lt_800=yes
15993 else
15994   echo "$as_me: failed program was:" >&5
15995 sed 's/^/| /' conftest.$ac_ext >&5
15996
15997         bakefile_cv_c_compiler___INTEL_COMPILER_lt_800=no
15998
15999 fi
16000
16001 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16002
16003
16004 fi
16005 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___INTEL_COMPILER_lt_800" >&5
16006 echo "${ECHO_T}$bakefile_cv_c_compiler___INTEL_COMPILER_lt_800" >&6; }
16007     if test "x$bakefile_cv_c_compiler___INTEL_COMPILER_lt_800" = "xyes"; then
16008         :; INTELCC8=yes
16009     else
16010         :;
16011     fi
16012     ac_ext=c
16013 ac_cpp='$CPP $CPPFLAGS'
16014 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16015 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16016 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16017
16018
16019
16020
16021
16022     ac_ext=c
16023 ac_cpp='$CPP $CPPFLAGS'
16024 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16025 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16026 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16027
16028     { echo "$as_me:$LINENO: checking whether we are using Intel C compiler v10 or later" >&5
16029 echo $ECHO_N "checking whether we are using Intel C compiler v10 or later... $ECHO_C" >&6; }
16030 if test "${bakefile_cv_c_compiler___INTEL_COMPILER_lt_1000+set}" = set; then
16031   echo $ECHO_N "(cached) $ECHO_C" >&6
16032 else
16033   cat >conftest.$ac_ext <<_ACEOF
16034 /* confdefs.h.  */
16035 _ACEOF
16036 cat confdefs.h >>conftest.$ac_ext
16037 cat >>conftest.$ac_ext <<_ACEOF
16038 /* end confdefs.h.  */
16039
16040 int
16041 main ()
16042 {
16043
16044              #ifndef __INTEL_COMPILER || __INTEL_COMPILER < 1000
16045                 choke me
16046              #endif
16047
16048   ;
16049   return 0;
16050 }
16051 _ACEOF
16052 rm -f conftest.$ac_objext
16053 if { (ac_try="$ac_compile"
16054 case "(($ac_try" in
16055   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16056   *) ac_try_echo=$ac_try;;
16057 esac
16058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16059   (eval "$ac_compile") 2>conftest.er1
16060   ac_status=$?
16061   grep -v '^ *+' conftest.er1 >conftest.err
16062   rm -f conftest.er1
16063   cat conftest.err >&5
16064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16065   (exit $ac_status); } && {
16066          test -z "$ac_c_werror_flag" ||
16067          test ! -s conftest.err
16068        } && test -s conftest.$ac_objext; then
16069   bakefile_cv_c_compiler___INTEL_COMPILER_lt_1000=yes
16070 else
16071   echo "$as_me: failed program was:" >&5
16072 sed 's/^/| /' conftest.$ac_ext >&5
16073
16074         bakefile_cv_c_compiler___INTEL_COMPILER_lt_1000=no
16075
16076 fi
16077
16078 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16079
16080
16081 fi
16082 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___INTEL_COMPILER_lt_1000" >&5
16083 echo "${ECHO_T}$bakefile_cv_c_compiler___INTEL_COMPILER_lt_1000" >&6; }
16084     if test "x$bakefile_cv_c_compiler___INTEL_COMPILER_lt_1000" = "xyes"; then
16085         :; INTELCC10=yes
16086     else
16087         :;
16088     fi
16089     ac_ext=c
16090 ac_cpp='$CPP $CPPFLAGS'
16091 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16092 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16093 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16094
16095
16096
16097     fi
16098
16099         if test "x$GCC" != "xyes"; then
16100         if test "xCC" = "xC"; then
16101             { echo "$as_me:$LINENO: checking if the C compiler requires -ext o" >&5
16102 echo $ECHO_N "checking if the C compiler requires -ext o... $ECHO_C" >&6; }
16103 if test "${bakefile_cv_c_exto+set}" = set; then
16104   echo $ECHO_N "(cached) $ECHO_C" >&6
16105 else
16106   cat >conftest.$ac_ext <<_ACEOF
16107 /* confdefs.h.  */
16108 _ACEOF
16109 cat confdefs.h >>conftest.$ac_ext
16110 cat >>conftest.$ac_ext <<_ACEOF
16111 /* end confdefs.h.  */
16112
16113 int
16114 main ()
16115 {
16116
16117   ;
16118   return 0;
16119 }
16120 _ACEOF
16121 rm -f conftest.$ac_objext conftest.$ac_ext.o
16122 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16123   (eval $ac_compile) 2>&5
16124   ac_status=$?
16125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16126   (exit $ac_status); }; then
16127   for ac_file in `(ls conftest.* 2>/dev/null)`; do
16128     case $ac_file in
16129         conftest.$ac_ext.o)
16130             bakefile_cv_c_exto="-ext o"
16131             ;;
16132         *)
16133             ;;
16134     esac
16135 done
16136 else
16137   { { echo "$as_me:$LINENO: error: cannot figure out if compiler needs -ext o: cannot compile
16138 See \`config.log' for more details." >&5
16139 echo "$as_me: error: cannot figure out if compiler needs -ext o: cannot compile
16140 See \`config.log' for more details." >&2;}
16141    { (exit 1); exit 1; }; }
16142
16143 fi
16144
16145 rm -f conftest.$ac_ext.o conftest.$ac_objext conftest.$ac_ext
16146
16147 fi
16148 { echo "$as_me:$LINENO: result: $bakefile_cv_c_exto" >&5
16149 echo "${ECHO_T}$bakefile_cv_c_exto" >&6; }
16150 if test "x$bakefile_cv_c_exto" '!=' "x"; then
16151     if test "c" = "c"; then
16152         CFLAGS="$bakefile_cv_c_exto $CFLAGS"
16153     fi
16154     if test "c" = "cxx"; then
16155         CXXFLAGS="$bakefile_cv_c_exto $CXXFLAGS"
16156     fi
16157 fi
16158
16159             if test "x$bakefile_cv_c_exto" '!=' "x"; then
16160                 unset ac_cv_prog_cc_g
16161                 ac_test_CFLAGS=${CFLAGS+set}
16162 ac_save_CFLAGS=$CFLAGS
16163 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
16164 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
16165 if test "${ac_cv_prog_cc_g+set}" = set; then
16166   echo $ECHO_N "(cached) $ECHO_C" >&6
16167 else
16168   ac_save_c_werror_flag=$ac_c_werror_flag
16169    ac_c_werror_flag=yes
16170    ac_cv_prog_cc_g=no
16171    CFLAGS="-g"
16172    cat >conftest.$ac_ext <<_ACEOF
16173 /* confdefs.h.  */
16174 _ACEOF
16175 cat confdefs.h >>conftest.$ac_ext
16176 cat >>conftest.$ac_ext <<_ACEOF
16177 /* end confdefs.h.  */
16178
16179 int
16180 main ()
16181 {
16182
16183   ;
16184   return 0;
16185 }
16186 _ACEOF
16187 rm -f conftest.$ac_objext
16188 if { (ac_try="$ac_compile"
16189 case "(($ac_try" in
16190   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16191   *) ac_try_echo=$ac_try;;
16192 esac
16193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16194   (eval "$ac_compile") 2>conftest.er1
16195   ac_status=$?
16196   grep -v '^ *+' conftest.er1 >conftest.err
16197   rm -f conftest.er1
16198   cat conftest.err >&5
16199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16200   (exit $ac_status); } && {
16201          test -z "$ac_c_werror_flag" ||
16202          test ! -s conftest.err
16203        } && test -s conftest.$ac_objext; then
16204   ac_cv_prog_cc_g=yes
16205 else
16206   echo "$as_me: failed program was:" >&5
16207 sed 's/^/| /' conftest.$ac_ext >&5
16208
16209         CFLAGS=""
16210       cat >conftest.$ac_ext <<_ACEOF
16211 /* confdefs.h.  */
16212 _ACEOF
16213 cat confdefs.h >>conftest.$ac_ext
16214 cat >>conftest.$ac_ext <<_ACEOF
16215 /* end confdefs.h.  */
16216
16217 int
16218 main ()
16219 {
16220
16221   ;
16222   return 0;
16223 }
16224 _ACEOF
16225 rm -f conftest.$ac_objext
16226 if { (ac_try="$ac_compile"
16227 case "(($ac_try" in
16228   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16229   *) ac_try_echo=$ac_try;;
16230 esac
16231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16232   (eval "$ac_compile") 2>conftest.er1
16233   ac_status=$?
16234   grep -v '^ *+' conftest.er1 >conftest.err
16235   rm -f conftest.er1
16236   cat conftest.err >&5
16237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16238   (exit $ac_status); } && {
16239          test -z "$ac_c_werror_flag" ||
16240          test ! -s conftest.err
16241        } && test -s conftest.$ac_objext; then
16242   :
16243 else
16244   echo "$as_me: failed program was:" >&5
16245 sed 's/^/| /' conftest.$ac_ext >&5
16246
16247         ac_c_werror_flag=$ac_save_c_werror_flag
16248          CFLAGS="-g"
16249          cat >conftest.$ac_ext <<_ACEOF
16250 /* confdefs.h.  */
16251 _ACEOF
16252 cat confdefs.h >>conftest.$ac_ext
16253 cat >>conftest.$ac_ext <<_ACEOF
16254 /* end confdefs.h.  */
16255
16256 int
16257 main ()
16258 {
16259
16260   ;
16261   return 0;
16262 }
16263 _ACEOF
16264 rm -f conftest.$ac_objext
16265 if { (ac_try="$ac_compile"
16266 case "(($ac_try" in
16267   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16268   *) ac_try_echo=$ac_try;;
16269 esac
16270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16271   (eval "$ac_compile") 2>conftest.er1
16272   ac_status=$?
16273   grep -v '^ *+' conftest.er1 >conftest.err
16274   rm -f conftest.er1
16275   cat conftest.err >&5
16276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16277   (exit $ac_status); } && {
16278          test -z "$ac_c_werror_flag" ||
16279          test ! -s conftest.err
16280        } && test -s conftest.$ac_objext; then
16281   ac_cv_prog_cc_g=yes
16282 else
16283   echo "$as_me: failed program was:" >&5
16284 sed 's/^/| /' conftest.$ac_ext >&5
16285
16286
16287 fi
16288
16289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16290 fi
16291
16292 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16293 fi
16294
16295 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16296    ac_c_werror_flag=$ac_save_c_werror_flag
16297 fi
16298 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
16299 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
16300 if test "$ac_test_CFLAGS" = set; then
16301   CFLAGS=$ac_save_CFLAGS
16302 elif test $ac_cv_prog_cc_g = yes; then
16303   if test "$GCC" = yes; then
16304     CFLAGS="-g -O2"
16305   else
16306     CFLAGS="-g"
16307   fi
16308 else
16309   if test "$GCC" = yes; then
16310     CFLAGS="-O2"
16311   else
16312     CFLAGS=
16313   fi
16314 fi
16315             fi
16316         fi
16317
16318                         case `uname -s` in
16319             AIX*)
16320
16321
16322     ac_ext=c
16323 ac_cpp='$CPP $CPPFLAGS'
16324 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16325 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16326 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16327
16328     { echo "$as_me:$LINENO: checking whether we are using the IBM xlC C compiler" >&5
16329 echo $ECHO_N "checking whether we are using the IBM xlC C compiler... $ECHO_C" >&6; }
16330 if test "${bakefile_cv_c_compiler___xlC__+set}" = set; then
16331   echo $ECHO_N "(cached) $ECHO_C" >&6
16332 else
16333   cat >conftest.$ac_ext <<_ACEOF
16334 /* confdefs.h.  */
16335 _ACEOF
16336 cat confdefs.h >>conftest.$ac_ext
16337 cat >>conftest.$ac_ext <<_ACEOF
16338 /* end confdefs.h.  */
16339
16340 int
16341 main ()
16342 {
16343
16344              #ifndef __xlC__
16345                 choke me
16346              #endif
16347
16348   ;
16349   return 0;
16350 }
16351 _ACEOF
16352 rm -f conftest.$ac_objext
16353 if { (ac_try="$ac_compile"
16354 case "(($ac_try" in
16355   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16356   *) ac_try_echo=$ac_try;;
16357 esac
16358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16359   (eval "$ac_compile") 2>conftest.er1
16360   ac_status=$?
16361   grep -v '^ *+' conftest.er1 >conftest.err
16362   rm -f conftest.er1
16363   cat conftest.err >&5
16364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16365   (exit $ac_status); } && {
16366          test -z "$ac_c_werror_flag" ||
16367          test ! -s conftest.err
16368        } && test -s conftest.$ac_objext; then
16369   bakefile_cv_c_compiler___xlC__=yes
16370 else
16371   echo "$as_me: failed program was:" >&5
16372 sed 's/^/| /' conftest.$ac_ext >&5
16373
16374         bakefile_cv_c_compiler___xlC__=no
16375
16376 fi
16377
16378 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16379
16380
16381 fi
16382 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___xlC__" >&5
16383 echo "${ECHO_T}$bakefile_cv_c_compiler___xlC__" >&6; }
16384     if test "x$bakefile_cv_c_compiler___xlC__" = "xyes"; then
16385         :; XLCC=yes
16386     else
16387         :;
16388     fi
16389     ac_ext=c
16390 ac_cpp='$CPP $CPPFLAGS'
16391 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16392 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16393 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16394
16395
16396
16397                 ;;
16398
16399             Darwin)
16400
16401
16402     ac_ext=c
16403 ac_cpp='$CPP $CPPFLAGS'
16404 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16405 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16406 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16407
16408     { echo "$as_me:$LINENO: checking whether we are using the Metrowerks C compiler" >&5
16409 echo $ECHO_N "checking whether we are using the Metrowerks C compiler... $ECHO_C" >&6; }
16410 if test "${bakefile_cv_c_compiler___MWERKS__+set}" = set; then
16411   echo $ECHO_N "(cached) $ECHO_C" >&6
16412 else
16413   cat >conftest.$ac_ext <<_ACEOF
16414 /* confdefs.h.  */
16415 _ACEOF
16416 cat confdefs.h >>conftest.$ac_ext
16417 cat >>conftest.$ac_ext <<_ACEOF
16418 /* end confdefs.h.  */
16419
16420 int
16421 main ()
16422 {
16423
16424              #ifndef __MWERKS__
16425                 choke me
16426              #endif
16427
16428   ;
16429   return 0;
16430 }
16431 _ACEOF
16432 rm -f conftest.$ac_objext
16433 if { (ac_try="$ac_compile"
16434 case "(($ac_try" in
16435   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16436   *) ac_try_echo=$ac_try;;
16437 esac
16438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16439   (eval "$ac_compile") 2>conftest.er1
16440   ac_status=$?
16441   grep -v '^ *+' conftest.er1 >conftest.err
16442   rm -f conftest.er1
16443   cat conftest.err >&5
16444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16445   (exit $ac_status); } && {
16446          test -z "$ac_c_werror_flag" ||
16447          test ! -s conftest.err
16448        } && test -s conftest.$ac_objext; then
16449   bakefile_cv_c_compiler___MWERKS__=yes
16450 else
16451   echo "$as_me: failed program was:" >&5
16452 sed 's/^/| /' conftest.$ac_ext >&5
16453
16454         bakefile_cv_c_compiler___MWERKS__=no
16455
16456 fi
16457
16458 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16459
16460
16461 fi
16462 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___MWERKS__" >&5
16463 echo "${ECHO_T}$bakefile_cv_c_compiler___MWERKS__" >&6; }
16464     if test "x$bakefile_cv_c_compiler___MWERKS__" = "xyes"; then
16465         :; MWCC=yes
16466     else
16467         :;
16468     fi
16469     ac_ext=c
16470 ac_cpp='$CPP $CPPFLAGS'
16471 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16472 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16473 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16474
16475
16476
16477                 if test "$MWCC" != "yes"; then
16478
16479
16480     ac_ext=c
16481 ac_cpp='$CPP $CPPFLAGS'
16482 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16483 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16484 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16485
16486     { echo "$as_me:$LINENO: checking whether we are using the IBM xlC C compiler" >&5
16487 echo $ECHO_N "checking whether we are using the IBM xlC C compiler... $ECHO_C" >&6; }
16488 if test "${bakefile_cv_c_compiler___xlC__+set}" = set; then
16489   echo $ECHO_N "(cached) $ECHO_C" >&6
16490 else
16491   cat >conftest.$ac_ext <<_ACEOF
16492 /* confdefs.h.  */
16493 _ACEOF
16494 cat confdefs.h >>conftest.$ac_ext
16495 cat >>conftest.$ac_ext <<_ACEOF
16496 /* end confdefs.h.  */
16497
16498 int
16499 main ()
16500 {
16501
16502              #ifndef __xlC__
16503                 choke me
16504              #endif
16505
16506   ;
16507   return 0;
16508 }
16509 _ACEOF
16510 rm -f conftest.$ac_objext
16511 if { (ac_try="$ac_compile"
16512 case "(($ac_try" in
16513   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16514   *) ac_try_echo=$ac_try;;
16515 esac
16516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16517   (eval "$ac_compile") 2>conftest.er1
16518   ac_status=$?
16519   grep -v '^ *+' conftest.er1 >conftest.err
16520   rm -f conftest.er1
16521   cat conftest.err >&5
16522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16523   (exit $ac_status); } && {
16524          test -z "$ac_c_werror_flag" ||
16525          test ! -s conftest.err
16526        } && test -s conftest.$ac_objext; then
16527   bakefile_cv_c_compiler___xlC__=yes
16528 else
16529   echo "$as_me: failed program was:" >&5
16530 sed 's/^/| /' conftest.$ac_ext >&5
16531
16532         bakefile_cv_c_compiler___xlC__=no
16533
16534 fi
16535
16536 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16537
16538
16539 fi
16540 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___xlC__" >&5
16541 echo "${ECHO_T}$bakefile_cv_c_compiler___xlC__" >&6; }
16542     if test "x$bakefile_cv_c_compiler___xlC__" = "xyes"; then
16543         :; XLCC=yes
16544     else
16545         :;
16546     fi
16547     ac_ext=c
16548 ac_cpp='$CPP $CPPFLAGS'
16549 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16550 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16551 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16552
16553
16554
16555                 fi
16556                 ;;
16557
16558             IRIX*)
16559
16560
16561     ac_ext=c
16562 ac_cpp='$CPP $CPPFLAGS'
16563 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16564 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16565 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16566
16567     { echo "$as_me:$LINENO: checking whether we are using the SGI C compiler" >&5
16568 echo $ECHO_N "checking whether we are using the SGI C compiler... $ECHO_C" >&6; }
16569 if test "${bakefile_cv_c_compiler__SGI_COMPILER_VERSION+set}" = set; then
16570   echo $ECHO_N "(cached) $ECHO_C" >&6
16571 else
16572   cat >conftest.$ac_ext <<_ACEOF
16573 /* confdefs.h.  */
16574 _ACEOF
16575 cat confdefs.h >>conftest.$ac_ext
16576 cat >>conftest.$ac_ext <<_ACEOF
16577 /* end confdefs.h.  */
16578
16579 int
16580 main ()
16581 {
16582
16583              #ifndef _SGI_COMPILER_VERSION
16584                 choke me
16585              #endif
16586
16587   ;
16588   return 0;
16589 }
16590 _ACEOF
16591 rm -f conftest.$ac_objext
16592 if { (ac_try="$ac_compile"
16593 case "(($ac_try" in
16594   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16595   *) ac_try_echo=$ac_try;;
16596 esac
16597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16598   (eval "$ac_compile") 2>conftest.er1
16599   ac_status=$?
16600   grep -v '^ *+' conftest.er1 >conftest.err
16601   rm -f conftest.er1
16602   cat conftest.err >&5
16603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16604   (exit $ac_status); } && {
16605          test -z "$ac_c_werror_flag" ||
16606          test ! -s conftest.err
16607        } && test -s conftest.$ac_objext; then
16608   bakefile_cv_c_compiler__SGI_COMPILER_VERSION=yes
16609 else
16610   echo "$as_me: failed program was:" >&5
16611 sed 's/^/| /' conftest.$ac_ext >&5
16612
16613         bakefile_cv_c_compiler__SGI_COMPILER_VERSION=no
16614
16615 fi
16616
16617 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16618
16619
16620 fi
16621 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler__SGI_COMPILER_VERSION" >&5
16622 echo "${ECHO_T}$bakefile_cv_c_compiler__SGI_COMPILER_VERSION" >&6; }
16623     if test "x$bakefile_cv_c_compiler__SGI_COMPILER_VERSION" = "xyes"; then
16624         :; SGICC=yes
16625     else
16626         :;
16627     fi
16628     ac_ext=c
16629 ac_cpp='$CPP $CPPFLAGS'
16630 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16631 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16632 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16633
16634
16635
16636                 ;;
16637
16638             Linux*)
16639                                                 if test "$INTELCC" != "yes"; then
16640
16641
16642     ac_ext=c
16643 ac_cpp='$CPP $CPPFLAGS'
16644 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16645 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16646 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16647
16648     { echo "$as_me:$LINENO: checking whether we are using the Sun C compiler" >&5
16649 echo $ECHO_N "checking whether we are using the Sun C compiler... $ECHO_C" >&6; }
16650 if test "${bakefile_cv_c_compiler___SUNPRO_C+set}" = set; then
16651   echo $ECHO_N "(cached) $ECHO_C" >&6
16652 else
16653   cat >conftest.$ac_ext <<_ACEOF
16654 /* confdefs.h.  */
16655 _ACEOF
16656 cat confdefs.h >>conftest.$ac_ext
16657 cat >>conftest.$ac_ext <<_ACEOF
16658 /* end confdefs.h.  */
16659
16660 int
16661 main ()
16662 {
16663
16664              #ifndef __SUNPRO_C
16665                 choke me
16666              #endif
16667
16668   ;
16669   return 0;
16670 }
16671 _ACEOF
16672 rm -f conftest.$ac_objext
16673 if { (ac_try="$ac_compile"
16674 case "(($ac_try" in
16675   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16676   *) ac_try_echo=$ac_try;;
16677 esac
16678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16679   (eval "$ac_compile") 2>conftest.er1
16680   ac_status=$?
16681   grep -v '^ *+' conftest.er1 >conftest.err
16682   rm -f conftest.er1
16683   cat conftest.err >&5
16684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16685   (exit $ac_status); } && {
16686          test -z "$ac_c_werror_flag" ||
16687          test ! -s conftest.err
16688        } && test -s conftest.$ac_objext; then
16689   bakefile_cv_c_compiler___SUNPRO_C=yes
16690 else
16691   echo "$as_me: failed program was:" >&5
16692 sed 's/^/| /' conftest.$ac_ext >&5
16693
16694         bakefile_cv_c_compiler___SUNPRO_C=no
16695
16696 fi
16697
16698 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16699
16700
16701 fi
16702 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___SUNPRO_C" >&5
16703 echo "${ECHO_T}$bakefile_cv_c_compiler___SUNPRO_C" >&6; }
16704     if test "x$bakefile_cv_c_compiler___SUNPRO_C" = "xyes"; then
16705         :; SUNCC=yes
16706     else
16707         :;
16708     fi
16709     ac_ext=c
16710 ac_cpp='$CPP $CPPFLAGS'
16711 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16712 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16713 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16714
16715
16716
16717                 fi
16718                 ;;
16719
16720             HP-UX*)
16721
16722
16723     ac_ext=c
16724 ac_cpp='$CPP $CPPFLAGS'
16725 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16726 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16727 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16728
16729     { echo "$as_me:$LINENO: checking whether we are using the HP C compiler" >&5
16730 echo $ECHO_N "checking whether we are using the HP C compiler... $ECHO_C" >&6; }
16731 if test "${bakefile_cv_c_compiler___HP_cc+set}" = set; then
16732   echo $ECHO_N "(cached) $ECHO_C" >&6
16733 else
16734   cat >conftest.$ac_ext <<_ACEOF
16735 /* confdefs.h.  */
16736 _ACEOF
16737 cat confdefs.h >>conftest.$ac_ext
16738 cat >>conftest.$ac_ext <<_ACEOF
16739 /* end confdefs.h.  */
16740
16741 int
16742 main ()
16743 {
16744
16745              #ifndef __HP_cc
16746                 choke me
16747              #endif
16748
16749   ;
16750   return 0;
16751 }
16752 _ACEOF
16753 rm -f conftest.$ac_objext
16754 if { (ac_try="$ac_compile"
16755 case "(($ac_try" in
16756   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16757   *) ac_try_echo=$ac_try;;
16758 esac
16759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16760   (eval "$ac_compile") 2>conftest.er1
16761   ac_status=$?
16762   grep -v '^ *+' conftest.er1 >conftest.err
16763   rm -f conftest.er1
16764   cat conftest.err >&5
16765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16766   (exit $ac_status); } && {
16767          test -z "$ac_c_werror_flag" ||
16768          test ! -s conftest.err
16769        } && test -s conftest.$ac_objext; then
16770   bakefile_cv_c_compiler___HP_cc=yes
16771 else
16772   echo "$as_me: failed program was:" >&5
16773 sed 's/^/| /' conftest.$ac_ext >&5
16774
16775         bakefile_cv_c_compiler___HP_cc=no
16776
16777 fi
16778
16779 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16780
16781
16782 fi
16783 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___HP_cc" >&5
16784 echo "${ECHO_T}$bakefile_cv_c_compiler___HP_cc" >&6; }
16785     if test "x$bakefile_cv_c_compiler___HP_cc" = "xyes"; then
16786         :; HPCC=yes
16787     else
16788         :;
16789     fi
16790     ac_ext=c
16791 ac_cpp='$CPP $CPPFLAGS'
16792 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16793 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16794 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16795
16796
16797
16798                 ;;
16799
16800             OSF1)
16801
16802
16803     ac_ext=c
16804 ac_cpp='$CPP $CPPFLAGS'
16805 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16806 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16807 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16808
16809     { echo "$as_me:$LINENO: checking whether we are using the Compaq C compiler" >&5
16810 echo $ECHO_N "checking whether we are using the Compaq C compiler... $ECHO_C" >&6; }
16811 if test "${bakefile_cv_c_compiler___DECC+set}" = set; then
16812   echo $ECHO_N "(cached) $ECHO_C" >&6
16813 else
16814   cat >conftest.$ac_ext <<_ACEOF
16815 /* confdefs.h.  */
16816 _ACEOF
16817 cat confdefs.h >>conftest.$ac_ext
16818 cat >>conftest.$ac_ext <<_ACEOF
16819 /* end confdefs.h.  */
16820
16821 int
16822 main ()
16823 {
16824
16825              #ifndef __DECC
16826                 choke me
16827              #endif
16828
16829   ;
16830   return 0;
16831 }
16832 _ACEOF
16833 rm -f conftest.$ac_objext
16834 if { (ac_try="$ac_compile"
16835 case "(($ac_try" in
16836   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16837   *) ac_try_echo=$ac_try;;
16838 esac
16839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16840   (eval "$ac_compile") 2>conftest.er1
16841   ac_status=$?
16842   grep -v '^ *+' conftest.er1 >conftest.err
16843   rm -f conftest.er1
16844   cat conftest.err >&5
16845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16846   (exit $ac_status); } && {
16847          test -z "$ac_c_werror_flag" ||
16848          test ! -s conftest.err
16849        } && test -s conftest.$ac_objext; then
16850   bakefile_cv_c_compiler___DECC=yes
16851 else
16852   echo "$as_me: failed program was:" >&5
16853 sed 's/^/| /' conftest.$ac_ext >&5
16854
16855         bakefile_cv_c_compiler___DECC=no
16856
16857 fi
16858
16859 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16860
16861
16862 fi
16863 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___DECC" >&5
16864 echo "${ECHO_T}$bakefile_cv_c_compiler___DECC" >&6; }
16865     if test "x$bakefile_cv_c_compiler___DECC" = "xyes"; then
16866         :; COMPAQCC=yes
16867     else
16868         :;
16869     fi
16870     ac_ext=c
16871 ac_cpp='$CPP $CPPFLAGS'
16872 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16873 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16874 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16875
16876
16877
16878                 ;;
16879
16880             SunOS)
16881
16882
16883     ac_ext=c
16884 ac_cpp='$CPP $CPPFLAGS'
16885 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16886 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16887 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16888
16889     { echo "$as_me:$LINENO: checking whether we are using the Sun C compiler" >&5
16890 echo $ECHO_N "checking whether we are using the Sun C compiler... $ECHO_C" >&6; }
16891 if test "${bakefile_cv_c_compiler___SUNPRO_C+set}" = set; then
16892   echo $ECHO_N "(cached) $ECHO_C" >&6
16893 else
16894   cat >conftest.$ac_ext <<_ACEOF
16895 /* confdefs.h.  */
16896 _ACEOF
16897 cat confdefs.h >>conftest.$ac_ext
16898 cat >>conftest.$ac_ext <<_ACEOF
16899 /* end confdefs.h.  */
16900
16901 int
16902 main ()
16903 {
16904
16905              #ifndef __SUNPRO_C
16906                 choke me
16907              #endif
16908
16909   ;
16910   return 0;
16911 }
16912 _ACEOF
16913 rm -f conftest.$ac_objext
16914 if { (ac_try="$ac_compile"
16915 case "(($ac_try" in
16916   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16917   *) ac_try_echo=$ac_try;;
16918 esac
16919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16920   (eval "$ac_compile") 2>conftest.er1
16921   ac_status=$?
16922   grep -v '^ *+' conftest.er1 >conftest.err
16923   rm -f conftest.er1
16924   cat conftest.err >&5
16925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16926   (exit $ac_status); } && {
16927          test -z "$ac_c_werror_flag" ||
16928          test ! -s conftest.err
16929        } && test -s conftest.$ac_objext; then
16930   bakefile_cv_c_compiler___SUNPRO_C=yes
16931 else
16932   echo "$as_me: failed program was:" >&5
16933 sed 's/^/| /' conftest.$ac_ext >&5
16934
16935         bakefile_cv_c_compiler___SUNPRO_C=no
16936
16937 fi
16938
16939 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16940
16941
16942 fi
16943 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___SUNPRO_C" >&5
16944 echo "${ECHO_T}$bakefile_cv_c_compiler___SUNPRO_C" >&6; }
16945     if test "x$bakefile_cv_c_compiler___SUNPRO_C" = "xyes"; then
16946         :; SUNCC=yes
16947     else
16948         :;
16949     fi
16950     ac_ext=c
16951 ac_cpp='$CPP $CPPFLAGS'
16952 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16953 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16954 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16955
16956
16957
16958                 ;;
16959         esac
16960     fi
16961
16962
16963
16964 ac_ext=c
16965 ac_cpp='$CPP $CPPFLAGS'
16966 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16967 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16968 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16969 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
16970 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
16971 # On Suns, sometimes $CPP names a directory.
16972 if test -n "$CPP" && test -d "$CPP"; then
16973   CPP=
16974 fi
16975 if test -z "$CPP"; then
16976   if test "${ac_cv_prog_CPP+set}" = set; then
16977   echo $ECHO_N "(cached) $ECHO_C" >&6
16978 else
16979       # Double quotes because CPP needs to be expanded
16980     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
16981     do
16982       ac_preproc_ok=false
16983 for ac_c_preproc_warn_flag in '' yes
16984 do
16985   # Use a header file that comes with gcc, so configuring glibc
16986   # with a fresh cross-compiler works.
16987   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16988   # <limits.h> exists even on freestanding compilers.
16989   # On the NeXT, cc -E runs the code through the compiler's parser,
16990   # not just through cpp. "Syntax error" is here to catch this case.
16991   cat >conftest.$ac_ext <<_ACEOF
16992 /* confdefs.h.  */
16993 _ACEOF
16994 cat confdefs.h >>conftest.$ac_ext
16995 cat >>conftest.$ac_ext <<_ACEOF
16996 /* end confdefs.h.  */
16997 #ifdef __STDC__
16998 # include <limits.h>
16999 #else
17000 # include <assert.h>
17001 #endif
17002                      Syntax error
17003 _ACEOF
17004 if { (ac_try="$ac_cpp conftest.$ac_ext"
17005 case "(($ac_try" in
17006   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17007   *) ac_try_echo=$ac_try;;
17008 esac
17009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17010   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17011   ac_status=$?
17012   grep -v '^ *+' conftest.er1 >conftest.err
17013   rm -f conftest.er1
17014   cat conftest.err >&5
17015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17016   (exit $ac_status); } >/dev/null && {
17017          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17018          test ! -s conftest.err
17019        }; then
17020   :
17021 else
17022   echo "$as_me: failed program was:" >&5
17023 sed 's/^/| /' conftest.$ac_ext >&5
17024
17025   # Broken: fails on valid input.
17026 continue
17027 fi
17028
17029 rm -f conftest.err conftest.$ac_ext
17030
17031   # OK, works on sane cases.  Now check whether nonexistent headers
17032   # can be detected and how.
17033   cat >conftest.$ac_ext <<_ACEOF
17034 /* confdefs.h.  */
17035 _ACEOF
17036 cat confdefs.h >>conftest.$ac_ext
17037 cat >>conftest.$ac_ext <<_ACEOF
17038 /* end confdefs.h.  */
17039 #include <ac_nonexistent.h>
17040 _ACEOF
17041 if { (ac_try="$ac_cpp conftest.$ac_ext"
17042 case "(($ac_try" in
17043   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17044   *) ac_try_echo=$ac_try;;
17045 esac
17046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17047   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17048   ac_status=$?
17049   grep -v '^ *+' conftest.er1 >conftest.err
17050   rm -f conftest.er1
17051   cat conftest.err >&5
17052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17053   (exit $ac_status); } >/dev/null && {
17054          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17055          test ! -s conftest.err
17056        }; then
17057   # Broken: success on invalid input.
17058 continue
17059 else
17060   echo "$as_me: failed program was:" >&5
17061 sed 's/^/| /' conftest.$ac_ext >&5
17062
17063   # Passes both tests.
17064 ac_preproc_ok=:
17065 break
17066 fi
17067
17068 rm -f conftest.err conftest.$ac_ext
17069
17070 done
17071 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
17072 rm -f conftest.err conftest.$ac_ext
17073 if $ac_preproc_ok; then
17074   break
17075 fi
17076
17077     done
17078     ac_cv_prog_CPP=$CPP
17079
17080 fi
17081   CPP=$ac_cv_prog_CPP
17082 else
17083   ac_cv_prog_CPP=$CPP
17084 fi
17085 { echo "$as_me:$LINENO: result: $CPP" >&5
17086 echo "${ECHO_T}$CPP" >&6; }
17087 ac_preproc_ok=false
17088 for ac_c_preproc_warn_flag in '' yes
17089 do
17090   # Use a header file that comes with gcc, so configuring glibc
17091   # with a fresh cross-compiler works.
17092   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17093   # <limits.h> exists even on freestanding compilers.
17094   # On the NeXT, cc -E runs the code through the compiler's parser,
17095   # not just through cpp. "Syntax error" is here to catch this case.
17096   cat >conftest.$ac_ext <<_ACEOF
17097 /* confdefs.h.  */
17098 _ACEOF
17099 cat confdefs.h >>conftest.$ac_ext
17100 cat >>conftest.$ac_ext <<_ACEOF
17101 /* end confdefs.h.  */
17102 #ifdef __STDC__
17103 # include <limits.h>
17104 #else
17105 # include <assert.h>
17106 #endif
17107                      Syntax error
17108 _ACEOF
17109 if { (ac_try="$ac_cpp conftest.$ac_ext"
17110 case "(($ac_try" in
17111   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17112   *) ac_try_echo=$ac_try;;
17113 esac
17114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17115   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17116   ac_status=$?
17117   grep -v '^ *+' conftest.er1 >conftest.err
17118   rm -f conftest.er1
17119   cat conftest.err >&5
17120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17121   (exit $ac_status); } >/dev/null && {
17122          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17123          test ! -s conftest.err
17124        }; then
17125   :
17126 else
17127   echo "$as_me: failed program was:" >&5
17128 sed 's/^/| /' conftest.$ac_ext >&5
17129
17130   # Broken: fails on valid input.
17131 continue
17132 fi
17133
17134 rm -f conftest.err conftest.$ac_ext
17135
17136   # OK, works on sane cases.  Now check whether nonexistent headers
17137   # can be detected and how.
17138   cat >conftest.$ac_ext <<_ACEOF
17139 /* confdefs.h.  */
17140 _ACEOF
17141 cat confdefs.h >>conftest.$ac_ext
17142 cat >>conftest.$ac_ext <<_ACEOF
17143 /* end confdefs.h.  */
17144 #include <ac_nonexistent.h>
17145 _ACEOF
17146 if { (ac_try="$ac_cpp conftest.$ac_ext"
17147 case "(($ac_try" in
17148   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17149   *) ac_try_echo=$ac_try;;
17150 esac
17151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17152   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17153   ac_status=$?
17154   grep -v '^ *+' conftest.er1 >conftest.err
17155   rm -f conftest.er1
17156   cat conftest.err >&5
17157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17158   (exit $ac_status); } >/dev/null && {
17159          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17160          test ! -s conftest.err
17161        }; then
17162   # Broken: success on invalid input.
17163 continue
17164 else
17165   echo "$as_me: failed program was:" >&5
17166 sed 's/^/| /' conftest.$ac_ext >&5
17167
17168   # Passes both tests.
17169 ac_preproc_ok=:
17170 break
17171 fi
17172
17173 rm -f conftest.err conftest.$ac_ext
17174
17175 done
17176 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
17177 rm -f conftest.err conftest.$ac_ext
17178 if $ac_preproc_ok; then
17179   :
17180 else
17181   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
17182 See \`config.log' for more details." >&5
17183 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
17184 See \`config.log' for more details." >&2;}
17185    { (exit 1); exit 1; }; }
17186 fi
17187
17188 ac_ext=c
17189 ac_cpp='$CPP $CPPFLAGS'
17190 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17191 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17192 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17193
17194
17195 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
17196 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
17197 if test "${ac_cv_path_GREP+set}" = set; then
17198   echo $ECHO_N "(cached) $ECHO_C" >&6
17199 else
17200   # Extract the first word of "grep ggrep" to use in msg output
17201 if test -z "$GREP"; then
17202 set dummy grep ggrep; ac_prog_name=$2
17203 if test "${ac_cv_path_GREP+set}" = set; then
17204   echo $ECHO_N "(cached) $ECHO_C" >&6
17205 else
17206   ac_path_GREP_found=false
17207 # Loop through the user's path and test for each of PROGNAME-LIST
17208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17209 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
17210 do
17211   IFS=$as_save_IFS
17212   test -z "$as_dir" && as_dir=.
17213   for ac_prog in grep ggrep; do
17214   for ac_exec_ext in '' $ac_executable_extensions; do
17215     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
17216     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
17217     # Check for GNU ac_path_GREP and select it if it is found.
17218   # Check for GNU $ac_path_GREP
17219 case `"$ac_path_GREP" --version 2>&1` in
17220 *GNU*)
17221   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
17222 *)
17223   ac_count=0
17224   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
17225   while :
17226   do
17227     cat "conftest.in" "conftest.in" >"conftest.tmp"
17228     mv "conftest.tmp" "conftest.in"
17229     cp "conftest.in" "conftest.nl"
17230     echo 'GREP' >> "conftest.nl"
17231     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
17232     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
17233     ac_count=`expr $ac_count + 1`
17234     if test $ac_count -gt ${ac_path_GREP_max-0}; then
17235       # Best one so far, save it but keep looking for a better one
17236       ac_cv_path_GREP="$ac_path_GREP"
17237       ac_path_GREP_max=$ac_count
17238     fi
17239     # 10*(2^10) chars as input seems more than enough
17240     test $ac_count -gt 10 && break
17241   done
17242   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
17243 esac
17244
17245
17246     $ac_path_GREP_found && break 3
17247   done
17248 done
17249
17250 done
17251 IFS=$as_save_IFS
17252
17253
17254 fi
17255
17256 GREP="$ac_cv_path_GREP"
17257 if test -z "$GREP"; then
17258   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
17259 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
17260    { (exit 1); exit 1; }; }
17261 fi
17262
17263 else
17264   ac_cv_path_GREP=$GREP
17265 fi
17266
17267
17268 fi
17269 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
17270 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
17271  GREP="$ac_cv_path_GREP"
17272
17273
17274 { echo "$as_me:$LINENO: checking for egrep" >&5
17275 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
17276 if test "${ac_cv_path_EGREP+set}" = set; then
17277   echo $ECHO_N "(cached) $ECHO_C" >&6
17278 else
17279   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
17280    then ac_cv_path_EGREP="$GREP -E"
17281    else
17282      # Extract the first word of "egrep" to use in msg output
17283 if test -z "$EGREP"; then
17284 set dummy egrep; ac_prog_name=$2
17285 if test "${ac_cv_path_EGREP+set}" = set; then
17286   echo $ECHO_N "(cached) $ECHO_C" >&6
17287 else
17288   ac_path_EGREP_found=false
17289 # Loop through the user's path and test for each of PROGNAME-LIST
17290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17291 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
17292 do
17293   IFS=$as_save_IFS
17294   test -z "$as_dir" && as_dir=.
17295   for ac_prog in egrep; do
17296   for ac_exec_ext in '' $ac_executable_extensions; do
17297     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
17298     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
17299     # Check for GNU ac_path_EGREP and select it if it is found.
17300   # Check for GNU $ac_path_EGREP
17301 case `"$ac_path_EGREP" --version 2>&1` in
17302 *GNU*)
17303   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
17304 *)
17305   ac_count=0
17306   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
17307   while :
17308   do
17309     cat "conftest.in" "conftest.in" >"conftest.tmp"
17310     mv "conftest.tmp" "conftest.in"
17311     cp "conftest.in" "conftest.nl"
17312     echo 'EGREP' >> "conftest.nl"
17313     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
17314     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
17315     ac_count=`expr $ac_count + 1`
17316     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
17317       # Best one so far, save it but keep looking for a better one
17318       ac_cv_path_EGREP="$ac_path_EGREP"
17319       ac_path_EGREP_max=$ac_count
17320     fi
17321     # 10*(2^10) chars as input seems more than enough
17322     test $ac_count -gt 10 && break
17323   done
17324   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
17325 esac
17326
17327
17328     $ac_path_EGREP_found && break 3
17329   done
17330 done
17331
17332 done
17333 IFS=$as_save_IFS
17334
17335
17336 fi
17337
17338 EGREP="$ac_cv_path_EGREP"
17339 if test -z "$EGREP"; then
17340   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
17341 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
17342    { (exit 1); exit 1; }; }
17343 fi
17344
17345 else
17346   ac_cv_path_EGREP=$EGREP
17347 fi
17348
17349
17350    fi
17351 fi
17352 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
17353 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
17354  EGREP="$ac_cv_path_EGREP"
17355
17356
17357 if test $ac_cv_c_compiler_gnu = yes; then
17358     { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
17359 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
17360 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
17361   echo $ECHO_N "(cached) $ECHO_C" >&6
17362 else
17363     ac_pattern="Autoconf.*'x'"
17364   cat >conftest.$ac_ext <<_ACEOF
17365 /* confdefs.h.  */
17366 _ACEOF
17367 cat confdefs.h >>conftest.$ac_ext
17368 cat >>conftest.$ac_ext <<_ACEOF
17369 /* end confdefs.h.  */
17370 #include <sgtty.h>
17371 Autoconf TIOCGETP
17372 _ACEOF
17373 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17374   $EGREP "$ac_pattern" >/dev/null 2>&1; then
17375   ac_cv_prog_gcc_traditional=yes
17376 else
17377   ac_cv_prog_gcc_traditional=no
17378 fi
17379 rm -f conftest*
17380
17381
17382   if test $ac_cv_prog_gcc_traditional = no; then
17383     cat >conftest.$ac_ext <<_ACEOF
17384 /* confdefs.h.  */
17385 _ACEOF
17386 cat confdefs.h >>conftest.$ac_ext
17387 cat >>conftest.$ac_ext <<_ACEOF
17388 /* end confdefs.h.  */
17389 #include <termio.h>
17390 Autoconf TCGETA
17391 _ACEOF
17392 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17393   $EGREP "$ac_pattern" >/dev/null 2>&1; then
17394   ac_cv_prog_gcc_traditional=yes
17395 fi
17396 rm -f conftest*
17397
17398   fi
17399 fi
17400 { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
17401 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
17402   if test $ac_cv_prog_gcc_traditional = yes; then
17403     CC="$CC -traditional"
17404   fi
17405 fi
17406
17407
17408 CXXFLAGS=${CXXFLAGS:=}
17409 ac_ext=cpp
17410 ac_cpp='$CXXCPP $CPPFLAGS'
17411 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17412 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17413 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17414 if test -z "$CXX"; then
17415   if test -n "$CCC"; then
17416     CXX=$CCC
17417   else
17418     if test -n "$ac_tool_prefix"; then
17419   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
17420   do
17421     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
17422 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
17423 { echo "$as_me:$LINENO: checking for $ac_word" >&5
17424 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
17425 if test "${ac_cv_prog_CXX+set}" = set; then
17426   echo $ECHO_N "(cached) $ECHO_C" >&6
17427 else
17428   if test -n "$CXX"; then
17429   ac_cv_prog_CXX="$CXX" # Let the user override the test.
17430 else
17431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17432 for as_dir in $PATH
17433 do
17434   IFS=$as_save_IFS
17435   test -z "$as_dir" && as_dir=.
17436   for ac_exec_ext in '' $ac_executable_extensions; do
17437   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17438     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
17439     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17440     break 2
17441   fi
17442 done
17443 done
17444 IFS=$as_save_IFS
17445
17446 fi
17447 fi
17448 CXX=$ac_cv_prog_CXX
17449 if test -n "$CXX"; then
17450   { echo "$as_me:$LINENO: result: $CXX" >&5
17451 echo "${ECHO_T}$CXX" >&6; }
17452 else
17453   { echo "$as_me:$LINENO: result: no" >&5
17454 echo "${ECHO_T}no" >&6; }
17455 fi
17456
17457
17458     test -n "$CXX" && break
17459   done
17460 fi
17461 if test -z "$CXX"; then
17462   ac_ct_CXX=$CXX
17463   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
17464 do
17465   # Extract the first word of "$ac_prog", so it can be a program name with args.
17466 set dummy $ac_prog; ac_word=$2
17467 { echo "$as_me:$LINENO: checking for $ac_word" >&5
17468 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
17469 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
17470   echo $ECHO_N "(cached) $ECHO_C" >&6
17471 else
17472   if test -n "$ac_ct_CXX"; then
17473   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
17474 else
17475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17476 for as_dir in $PATH
17477 do
17478   IFS=$as_save_IFS
17479   test -z "$as_dir" && as_dir=.
17480   for ac_exec_ext in '' $ac_executable_extensions; do
17481   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17482     ac_cv_prog_ac_ct_CXX="$ac_prog"
17483     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17484     break 2
17485   fi
17486 done
17487 done
17488 IFS=$as_save_IFS
17489
17490 fi
17491 fi
17492 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
17493 if test -n "$ac_ct_CXX"; then
17494   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
17495 echo "${ECHO_T}$ac_ct_CXX" >&6; }
17496 else
17497   { echo "$as_me:$LINENO: result: no" >&5
17498 echo "${ECHO_T}no" >&6; }
17499 fi
17500
17501
17502   test -n "$ac_ct_CXX" && break
17503 done
17504
17505   if test "x$ac_ct_CXX" = x; then
17506     CXX="g++"
17507   else
17508     case $cross_compiling:$ac_tool_warned in
17509 yes:)
17510 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
17511 whose name does not start with the host triplet.  If you think this
17512 configuration is useful to you, please write to autoconf@gnu.org." >&5
17513 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
17514 whose name does not start with the host triplet.  If you think this
17515 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
17516 ac_tool_warned=yes ;;
17517 esac
17518     CXX=$ac_ct_CXX
17519   fi
17520 fi
17521
17522   fi
17523 fi
17524 # Provide some information about the compiler.
17525 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
17526 ac_compiler=`set X $ac_compile; echo $2`
17527 { (ac_try="$ac_compiler --version >&5"
17528 case "(($ac_try" in
17529   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17530   *) ac_try_echo=$ac_try;;
17531 esac
17532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17533   (eval "$ac_compiler --version >&5") 2>&5
17534   ac_status=$?
17535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17536   (exit $ac_status); }
17537 { (ac_try="$ac_compiler -v >&5"
17538 case "(($ac_try" in
17539   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17540   *) ac_try_echo=$ac_try;;
17541 esac
17542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17543   (eval "$ac_compiler -v >&5") 2>&5
17544   ac_status=$?
17545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17546   (exit $ac_status); }
17547 { (ac_try="$ac_compiler -V >&5"
17548 case "(($ac_try" in
17549   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17550   *) ac_try_echo=$ac_try;;
17551 esac
17552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17553   (eval "$ac_compiler -V >&5") 2>&5
17554   ac_status=$?
17555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17556   (exit $ac_status); }
17557
17558 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
17559 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
17560 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
17561   echo $ECHO_N "(cached) $ECHO_C" >&6
17562 else
17563   cat >conftest.$ac_ext <<_ACEOF
17564 /* confdefs.h.  */
17565 _ACEOF
17566 cat confdefs.h >>conftest.$ac_ext
17567 cat >>conftest.$ac_ext <<_ACEOF
17568 /* end confdefs.h.  */
17569
17570 int
17571 main ()
17572 {
17573 #ifndef __GNUC__
17574        choke me
17575 #endif
17576
17577   ;
17578   return 0;
17579 }
17580 _ACEOF
17581 rm -f conftest.$ac_objext
17582 if { (ac_try="$ac_compile"
17583 case "(($ac_try" in
17584   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17585   *) ac_try_echo=$ac_try;;
17586 esac
17587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17588   (eval "$ac_compile") 2>conftest.er1
17589   ac_status=$?
17590   grep -v '^ *+' conftest.er1 >conftest.err
17591   rm -f conftest.er1
17592   cat conftest.err >&5
17593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17594   (exit $ac_status); } && {
17595          test -z "$ac_cxx_werror_flag" ||
17596          test ! -s conftest.err
17597        } && test -s conftest.$ac_objext; then
17598   ac_compiler_gnu=yes
17599 else
17600   echo "$as_me: failed program was:" >&5
17601 sed 's/^/| /' conftest.$ac_ext >&5
17602
17603         ac_compiler_gnu=no
17604 fi
17605
17606 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17607 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
17608
17609 fi
17610 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
17611 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
17612 GXX=`test $ac_compiler_gnu = yes && echo yes`
17613 ac_test_CXXFLAGS=${CXXFLAGS+set}
17614 ac_save_CXXFLAGS=$CXXFLAGS
17615 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
17616 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
17617 if test "${ac_cv_prog_cxx_g+set}" = set; then
17618   echo $ECHO_N "(cached) $ECHO_C" >&6
17619 else
17620   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
17621    ac_cxx_werror_flag=yes
17622    ac_cv_prog_cxx_g=no
17623    CXXFLAGS="-g"
17624    cat >conftest.$ac_ext <<_ACEOF
17625 /* confdefs.h.  */
17626 _ACEOF
17627 cat confdefs.h >>conftest.$ac_ext
17628 cat >>conftest.$ac_ext <<_ACEOF
17629 /* end confdefs.h.  */
17630
17631 int
17632 main ()
17633 {
17634
17635   ;
17636   return 0;
17637 }
17638 _ACEOF
17639 rm -f conftest.$ac_objext
17640 if { (ac_try="$ac_compile"
17641 case "(($ac_try" in
17642   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17643   *) ac_try_echo=$ac_try;;
17644 esac
17645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17646   (eval "$ac_compile") 2>conftest.er1
17647   ac_status=$?
17648   grep -v '^ *+' conftest.er1 >conftest.err
17649   rm -f conftest.er1
17650   cat conftest.err >&5
17651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17652   (exit $ac_status); } && {
17653          test -z "$ac_cxx_werror_flag" ||
17654          test ! -s conftest.err
17655        } && test -s conftest.$ac_objext; then
17656   ac_cv_prog_cxx_g=yes
17657 else
17658   echo "$as_me: failed program was:" >&5
17659 sed 's/^/| /' conftest.$ac_ext >&5
17660
17661         CXXFLAGS=""
17662       cat >conftest.$ac_ext <<_ACEOF
17663 /* confdefs.h.  */
17664 _ACEOF
17665 cat confdefs.h >>conftest.$ac_ext
17666 cat >>conftest.$ac_ext <<_ACEOF
17667 /* end confdefs.h.  */
17668
17669 int
17670 main ()
17671 {
17672
17673   ;
17674   return 0;
17675 }
17676 _ACEOF
17677 rm -f conftest.$ac_objext
17678 if { (ac_try="$ac_compile"
17679 case "(($ac_try" in
17680   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17681   *) ac_try_echo=$ac_try;;
17682 esac
17683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17684   (eval "$ac_compile") 2>conftest.er1
17685   ac_status=$?
17686   grep -v '^ *+' conftest.er1 >conftest.err
17687   rm -f conftest.er1
17688   cat conftest.err >&5
17689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17690   (exit $ac_status); } && {
17691          test -z "$ac_cxx_werror_flag" ||
17692          test ! -s conftest.err
17693        } && test -s conftest.$ac_objext; then
17694   :
17695 else
17696   echo "$as_me: failed program was:" >&5
17697 sed 's/^/| /' conftest.$ac_ext >&5
17698
17699         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
17700          CXXFLAGS="-g"
17701          cat >conftest.$ac_ext <<_ACEOF
17702 /* confdefs.h.  */
17703 _ACEOF
17704 cat confdefs.h >>conftest.$ac_ext
17705 cat >>conftest.$ac_ext <<_ACEOF
17706 /* end confdefs.h.  */
17707
17708 int
17709 main ()
17710 {
17711
17712   ;
17713   return 0;
17714 }
17715 _ACEOF
17716 rm -f conftest.$ac_objext
17717 if { (ac_try="$ac_compile"
17718 case "(($ac_try" in
17719   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17720   *) ac_try_echo=$ac_try;;
17721 esac
17722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17723   (eval "$ac_compile") 2>conftest.er1
17724   ac_status=$?
17725   grep -v '^ *+' conftest.er1 >conftest.err
17726   rm -f conftest.er1
17727   cat conftest.err >&5
17728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17729   (exit $ac_status); } && {
17730          test -z "$ac_cxx_werror_flag" ||
17731          test ! -s conftest.err
17732        } && test -s conftest.$ac_objext; then
17733   ac_cv_prog_cxx_g=yes
17734 else
17735   echo "$as_me: failed program was:" >&5
17736 sed 's/^/| /' conftest.$ac_ext >&5
17737
17738
17739 fi
17740
17741 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17742 fi
17743
17744 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17745 fi
17746
17747 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17748    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
17749 fi
17750 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
17751 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
17752 if test "$ac_test_CXXFLAGS" = set; then
17753   CXXFLAGS=$ac_save_CXXFLAGS
17754 elif test $ac_cv_prog_cxx_g = yes; then
17755   if test "$GXX" = yes; then
17756     CXXFLAGS="-g -O2"
17757   else
17758     CXXFLAGS="-g"
17759   fi
17760 else
17761   if test "$GXX" = yes; then
17762     CXXFLAGS="-O2"
17763   else
17764     CXXFLAGS=
17765   fi
17766 fi
17767 ac_ext=c
17768 ac_cpp='$CPP $CPPFLAGS'
17769 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17770 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17771 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17772
17773
17774
17775
17776
17777
17778
17779
17780     ac_ext=cpp
17781 ac_cpp='$CXXCPP $CPPFLAGS'
17782 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17783 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17784 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17785
17786     { echo "$as_me:$LINENO: checking whether we are using the Intel C++ compiler" >&5
17787 echo $ECHO_N "checking whether we are using the Intel C++ compiler... $ECHO_C" >&6; }
17788 if test "${bakefile_cv_cxx_compiler___INTEL_COMPILER+set}" = set; then
17789   echo $ECHO_N "(cached) $ECHO_C" >&6
17790 else
17791   cat >conftest.$ac_ext <<_ACEOF
17792 /* confdefs.h.  */
17793 _ACEOF
17794 cat confdefs.h >>conftest.$ac_ext
17795 cat >>conftest.$ac_ext <<_ACEOF
17796 /* end confdefs.h.  */
17797
17798 int
17799 main ()
17800 {
17801
17802              #ifndef __INTEL_COMPILER
17803                 choke me
17804              #endif
17805
17806   ;
17807   return 0;
17808 }
17809 _ACEOF
17810 rm -f conftest.$ac_objext
17811 if { (ac_try="$ac_compile"
17812 case "(($ac_try" in
17813   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17814   *) ac_try_echo=$ac_try;;
17815 esac
17816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17817   (eval "$ac_compile") 2>conftest.er1
17818   ac_status=$?
17819   grep -v '^ *+' conftest.er1 >conftest.err
17820   rm -f conftest.er1
17821   cat conftest.err >&5
17822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17823   (exit $ac_status); } && {
17824          test -z "$ac_cxx_werror_flag" ||
17825          test ! -s conftest.err
17826        } && test -s conftest.$ac_objext; then
17827   bakefile_cv_cxx_compiler___INTEL_COMPILER=yes
17828 else
17829   echo "$as_me: failed program was:" >&5
17830 sed 's/^/| /' conftest.$ac_ext >&5
17831
17832         bakefile_cv_cxx_compiler___INTEL_COMPILER=no
17833
17834 fi
17835
17836 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17837
17838
17839 fi
17840 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___INTEL_COMPILER" >&5
17841 echo "${ECHO_T}$bakefile_cv_cxx_compiler___INTEL_COMPILER" >&6; }
17842     if test "x$bakefile_cv_cxx_compiler___INTEL_COMPILER" = "xyes"; then
17843         :; INTELCXX=yes
17844     else
17845         :;
17846     fi
17847     ac_ext=c
17848 ac_cpp='$CPP $CPPFLAGS'
17849 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17850 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17851 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17852
17853
17854
17855
17856         if test "$INTELCXX" = "yes"; then
17857
17858
17859     ac_ext=cpp
17860 ac_cpp='$CXXCPP $CPPFLAGS'
17861 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17862 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17863 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17864
17865     { echo "$as_me:$LINENO: checking whether we are using Intel C++ compiler v8 or later" >&5
17866 echo $ECHO_N "checking whether we are using Intel C++ compiler v8 or later... $ECHO_C" >&6; }
17867 if test "${bakefile_cv_cxx_compiler___INTEL_COMPILER_lt_800+set}" = set; then
17868   echo $ECHO_N "(cached) $ECHO_C" >&6
17869 else
17870   cat >conftest.$ac_ext <<_ACEOF
17871 /* confdefs.h.  */
17872 _ACEOF
17873 cat confdefs.h >>conftest.$ac_ext
17874 cat >>conftest.$ac_ext <<_ACEOF
17875 /* end confdefs.h.  */
17876
17877 int
17878 main ()
17879 {
17880
17881              #ifndef __INTEL_COMPILER || __INTEL_COMPILER < 800
17882                 choke me
17883              #endif
17884
17885   ;
17886   return 0;
17887 }
17888 _ACEOF
17889 rm -f conftest.$ac_objext
17890 if { (ac_try="$ac_compile"
17891 case "(($ac_try" in
17892   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17893   *) ac_try_echo=$ac_try;;
17894 esac
17895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17896   (eval "$ac_compile") 2>conftest.er1
17897   ac_status=$?
17898   grep -v '^ *+' conftest.er1 >conftest.err
17899   rm -f conftest.er1
17900   cat conftest.err >&5
17901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17902   (exit $ac_status); } && {
17903          test -z "$ac_cxx_werror_flag" ||
17904          test ! -s conftest.err
17905        } && test -s conftest.$ac_objext; then
17906   bakefile_cv_cxx_compiler___INTEL_COMPILER_lt_800=yes
17907 else
17908   echo "$as_me: failed program was:" >&5
17909 sed 's/^/| /' conftest.$ac_ext >&5
17910
17911         bakefile_cv_cxx_compiler___INTEL_COMPILER_lt_800=no
17912
17913 fi
17914
17915 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17916
17917
17918 fi
17919 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___INTEL_COMPILER_lt_800" >&5
17920 echo "${ECHO_T}$bakefile_cv_cxx_compiler___INTEL_COMPILER_lt_800" >&6; }
17921     if test "x$bakefile_cv_cxx_compiler___INTEL_COMPILER_lt_800" = "xyes"; then
17922         :; INTELCXX8=yes
17923     else
17924         :;
17925     fi
17926     ac_ext=c
17927 ac_cpp='$CPP $CPPFLAGS'
17928 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17929 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17930 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17931
17932
17933
17934
17935
17936     ac_ext=cpp
17937 ac_cpp='$CXXCPP $CPPFLAGS'
17938 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17939 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17940 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17941
17942     { echo "$as_me:$LINENO: checking whether we are using Intel C++ compiler v10 or later" >&5
17943 echo $ECHO_N "checking whether we are using Intel C++ compiler v10 or later... $ECHO_C" >&6; }
17944 if test "${bakefile_cv_cxx_compiler___INTEL_COMPILER_lt_1000+set}" = set; then
17945   echo $ECHO_N "(cached) $ECHO_C" >&6
17946 else
17947   cat >conftest.$ac_ext <<_ACEOF
17948 /* confdefs.h.  */
17949 _ACEOF
17950 cat confdefs.h >>conftest.$ac_ext
17951 cat >>conftest.$ac_ext <<_ACEOF
17952 /* end confdefs.h.  */
17953
17954 int
17955 main ()
17956 {
17957
17958              #ifndef __INTEL_COMPILER || __INTEL_COMPILER < 1000
17959                 choke me
17960              #endif
17961
17962   ;
17963   return 0;
17964 }
17965 _ACEOF
17966 rm -f conftest.$ac_objext
17967 if { (ac_try="$ac_compile"
17968 case "(($ac_try" in
17969   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17970   *) ac_try_echo=$ac_try;;
17971 esac
17972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17973   (eval "$ac_compile") 2>conftest.er1
17974   ac_status=$?
17975   grep -v '^ *+' conftest.er1 >conftest.err
17976   rm -f conftest.er1
17977   cat conftest.err >&5
17978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17979   (exit $ac_status); } && {
17980          test -z "$ac_cxx_werror_flag" ||
17981          test ! -s conftest.err
17982        } && test -s conftest.$ac_objext; then
17983   bakefile_cv_cxx_compiler___INTEL_COMPILER_lt_1000=yes
17984 else
17985   echo "$as_me: failed program was:" >&5
17986 sed 's/^/| /' conftest.$ac_ext >&5
17987
17988         bakefile_cv_cxx_compiler___INTEL_COMPILER_lt_1000=no
17989
17990 fi
17991
17992 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17993
17994
17995 fi
17996 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___INTEL_COMPILER_lt_1000" >&5
17997 echo "${ECHO_T}$bakefile_cv_cxx_compiler___INTEL_COMPILER_lt_1000" >&6; }
17998     if test "x$bakefile_cv_cxx_compiler___INTEL_COMPILER_lt_1000" = "xyes"; then
17999         :; INTELCXX10=yes
18000     else
18001         :;
18002     fi
18003     ac_ext=c
18004 ac_cpp='$CPP $CPPFLAGS'
18005 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18006 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18007 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18008
18009
18010
18011     fi
18012
18013         if test "x$GCXX" != "xyes"; then
18014         if test "xCXX" = "xC"; then
18015             { echo "$as_me:$LINENO: checking if the C compiler requires -ext o" >&5
18016 echo $ECHO_N "checking if the C compiler requires -ext o... $ECHO_C" >&6; }
18017 if test "${bakefile_cv_c_exto+set}" = set; then
18018   echo $ECHO_N "(cached) $ECHO_C" >&6
18019 else
18020   cat >conftest.$ac_ext <<_ACEOF
18021 /* confdefs.h.  */
18022 _ACEOF
18023 cat confdefs.h >>conftest.$ac_ext
18024 cat >>conftest.$ac_ext <<_ACEOF
18025 /* end confdefs.h.  */
18026
18027 int
18028 main ()
18029 {
18030
18031   ;
18032   return 0;
18033 }
18034 _ACEOF
18035 rm -f conftest.$ac_objext conftest.$ac_ext.o
18036 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18037   (eval $ac_compile) 2>&5
18038   ac_status=$?
18039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18040   (exit $ac_status); }; then
18041   for ac_file in `(ls conftest.* 2>/dev/null)`; do
18042     case $ac_file in
18043         conftest.$ac_ext.o)
18044             bakefile_cv_c_exto="-ext o"
18045             ;;
18046         *)
18047             ;;
18048     esac
18049 done
18050 else
18051   { { echo "$as_me:$LINENO: error: cannot figure out if compiler needs -ext o: cannot compile
18052 See \`config.log' for more details." >&5
18053 echo "$as_me: error: cannot figure out if compiler needs -ext o: cannot compile
18054 See \`config.log' for more details." >&2;}
18055    { (exit 1); exit 1; }; }
18056
18057 fi
18058
18059 rm -f conftest.$ac_ext.o conftest.$ac_objext conftest.$ac_ext
18060
18061 fi
18062 { echo "$as_me:$LINENO: result: $bakefile_cv_c_exto" >&5
18063 echo "${ECHO_T}$bakefile_cv_c_exto" >&6; }
18064 if test "x$bakefile_cv_c_exto" '!=' "x"; then
18065     if test "c" = "c"; then
18066         CFLAGS="$bakefile_cv_c_exto $CFLAGS"
18067     fi
18068     if test "c" = "cxx"; then
18069         CXXFLAGS="$bakefile_cv_c_exto $CXXFLAGS"
18070     fi
18071 fi
18072
18073             if test "x$bakefile_cv_c_exto" '!=' "x"; then
18074                 unset ac_cv_prog_cc_g
18075                 ac_test_CFLAGS=${CFLAGS+set}
18076 ac_save_CFLAGS=$CFLAGS
18077 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
18078 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
18079 if test "${ac_cv_prog_cc_g+set}" = set; then
18080   echo $ECHO_N "(cached) $ECHO_C" >&6
18081 else
18082   ac_save_c_werror_flag=$ac_c_werror_flag
18083    ac_c_werror_flag=yes
18084    ac_cv_prog_cc_g=no
18085    CFLAGS="-g"
18086    cat >conftest.$ac_ext <<_ACEOF
18087 /* confdefs.h.  */
18088 _ACEOF
18089 cat confdefs.h >>conftest.$ac_ext
18090 cat >>conftest.$ac_ext <<_ACEOF
18091 /* end confdefs.h.  */
18092
18093 int
18094 main ()
18095 {
18096
18097   ;
18098   return 0;
18099 }
18100 _ACEOF
18101 rm -f conftest.$ac_objext
18102 if { (ac_try="$ac_compile"
18103 case "(($ac_try" in
18104   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18105   *) ac_try_echo=$ac_try;;
18106 esac
18107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18108   (eval "$ac_compile") 2>conftest.er1
18109   ac_status=$?
18110   grep -v '^ *+' conftest.er1 >conftest.err
18111   rm -f conftest.er1
18112   cat conftest.err >&5
18113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18114   (exit $ac_status); } && {
18115          test -z "$ac_c_werror_flag" ||
18116          test ! -s conftest.err
18117        } && test -s conftest.$ac_objext; then
18118   ac_cv_prog_cc_g=yes
18119 else
18120   echo "$as_me: failed program was:" >&5
18121 sed 's/^/| /' conftest.$ac_ext >&5
18122
18123         CFLAGS=""
18124       cat >conftest.$ac_ext <<_ACEOF
18125 /* confdefs.h.  */
18126 _ACEOF
18127 cat confdefs.h >>conftest.$ac_ext
18128 cat >>conftest.$ac_ext <<_ACEOF
18129 /* end confdefs.h.  */
18130
18131 int
18132 main ()
18133 {
18134
18135   ;
18136   return 0;
18137 }
18138 _ACEOF
18139 rm -f conftest.$ac_objext
18140 if { (ac_try="$ac_compile"
18141 case "(($ac_try" in
18142   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18143   *) ac_try_echo=$ac_try;;
18144 esac
18145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18146   (eval "$ac_compile") 2>conftest.er1
18147   ac_status=$?
18148   grep -v '^ *+' conftest.er1 >conftest.err
18149   rm -f conftest.er1
18150   cat conftest.err >&5
18151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18152   (exit $ac_status); } && {
18153          test -z "$ac_c_werror_flag" ||
18154          test ! -s conftest.err
18155        } && test -s conftest.$ac_objext; then
18156   :
18157 else
18158   echo "$as_me: failed program was:" >&5
18159 sed 's/^/| /' conftest.$ac_ext >&5
18160
18161         ac_c_werror_flag=$ac_save_c_werror_flag
18162          CFLAGS="-g"
18163          cat >conftest.$ac_ext <<_ACEOF
18164 /* confdefs.h.  */
18165 _ACEOF
18166 cat confdefs.h >>conftest.$ac_ext
18167 cat >>conftest.$ac_ext <<_ACEOF
18168 /* end confdefs.h.  */
18169
18170 int
18171 main ()
18172 {
18173
18174   ;
18175   return 0;
18176 }
18177 _ACEOF
18178 rm -f conftest.$ac_objext
18179 if { (ac_try="$ac_compile"
18180 case "(($ac_try" in
18181   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18182   *) ac_try_echo=$ac_try;;
18183 esac
18184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18185   (eval "$ac_compile") 2>conftest.er1
18186   ac_status=$?
18187   grep -v '^ *+' conftest.er1 >conftest.err
18188   rm -f conftest.er1
18189   cat conftest.err >&5
18190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18191   (exit $ac_status); } && {
18192          test -z "$ac_c_werror_flag" ||
18193          test ! -s conftest.err
18194        } && test -s conftest.$ac_objext; then
18195   ac_cv_prog_cc_g=yes
18196 else
18197   echo "$as_me: failed program was:" >&5
18198 sed 's/^/| /' conftest.$ac_ext >&5
18199
18200
18201 fi
18202
18203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18204 fi
18205
18206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18207 fi
18208
18209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18210    ac_c_werror_flag=$ac_save_c_werror_flag
18211 fi
18212 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
18213 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
18214 if test "$ac_test_CFLAGS" = set; then
18215   CFLAGS=$ac_save_CFLAGS
18216 elif test $ac_cv_prog_cc_g = yes; then
18217   if test "$GCC" = yes; then
18218     CFLAGS="-g -O2"
18219   else
18220     CFLAGS="-g"
18221   fi
18222 else
18223   if test "$GCC" = yes; then
18224     CFLAGS="-O2"
18225   else
18226     CFLAGS=
18227   fi
18228 fi
18229             fi
18230         fi
18231
18232                         case `uname -s` in
18233             AIX*)
18234
18235
18236     ac_ext=cpp
18237 ac_cpp='$CXXCPP $CPPFLAGS'
18238 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18239 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18240 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18241
18242     { echo "$as_me:$LINENO: checking whether we are using the IBM xlC C++ compiler" >&5
18243 echo $ECHO_N "checking whether we are using the IBM xlC C++ compiler... $ECHO_C" >&6; }
18244 if test "${bakefile_cv_cxx_compiler___xlC__+set}" = set; then
18245   echo $ECHO_N "(cached) $ECHO_C" >&6
18246 else
18247   cat >conftest.$ac_ext <<_ACEOF
18248 /* confdefs.h.  */
18249 _ACEOF
18250 cat confdefs.h >>conftest.$ac_ext
18251 cat >>conftest.$ac_ext <<_ACEOF
18252 /* end confdefs.h.  */
18253
18254 int
18255 main ()
18256 {
18257
18258              #ifndef __xlC__
18259                 choke me
18260              #endif
18261
18262   ;
18263   return 0;
18264 }
18265 _ACEOF
18266 rm -f conftest.$ac_objext
18267 if { (ac_try="$ac_compile"
18268 case "(($ac_try" in
18269   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18270   *) ac_try_echo=$ac_try;;
18271 esac
18272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18273   (eval "$ac_compile") 2>conftest.er1
18274   ac_status=$?
18275   grep -v '^ *+' conftest.er1 >conftest.err
18276   rm -f conftest.er1
18277   cat conftest.err >&5
18278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18279   (exit $ac_status); } && {
18280          test -z "$ac_cxx_werror_flag" ||
18281          test ! -s conftest.err
18282        } && test -s conftest.$ac_objext; then
18283   bakefile_cv_cxx_compiler___xlC__=yes
18284 else
18285   echo "$as_me: failed program was:" >&5
18286 sed 's/^/| /' conftest.$ac_ext >&5
18287
18288         bakefile_cv_cxx_compiler___xlC__=no
18289
18290 fi
18291
18292 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18293
18294
18295 fi
18296 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___xlC__" >&5
18297 echo "${ECHO_T}$bakefile_cv_cxx_compiler___xlC__" >&6; }
18298     if test "x$bakefile_cv_cxx_compiler___xlC__" = "xyes"; then
18299         :; XLCXX=yes
18300     else
18301         :;
18302     fi
18303     ac_ext=c
18304 ac_cpp='$CPP $CPPFLAGS'
18305 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18306 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18307 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18308
18309
18310
18311                 ;;
18312
18313             Darwin)
18314
18315
18316     ac_ext=cpp
18317 ac_cpp='$CXXCPP $CPPFLAGS'
18318 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18319 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18320 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18321
18322     { echo "$as_me:$LINENO: checking whether we are using the Metrowerks C++ compiler" >&5
18323 echo $ECHO_N "checking whether we are using the Metrowerks C++ compiler... $ECHO_C" >&6; }
18324 if test "${bakefile_cv_cxx_compiler___MWERKS__+set}" = set; then
18325   echo $ECHO_N "(cached) $ECHO_C" >&6
18326 else
18327   cat >conftest.$ac_ext <<_ACEOF
18328 /* confdefs.h.  */
18329 _ACEOF
18330 cat confdefs.h >>conftest.$ac_ext
18331 cat >>conftest.$ac_ext <<_ACEOF
18332 /* end confdefs.h.  */
18333
18334 int
18335 main ()
18336 {
18337
18338              #ifndef __MWERKS__
18339                 choke me
18340              #endif
18341
18342   ;
18343   return 0;
18344 }
18345 _ACEOF
18346 rm -f conftest.$ac_objext
18347 if { (ac_try="$ac_compile"
18348 case "(($ac_try" in
18349   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18350   *) ac_try_echo=$ac_try;;
18351 esac
18352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18353   (eval "$ac_compile") 2>conftest.er1
18354   ac_status=$?
18355   grep -v '^ *+' conftest.er1 >conftest.err
18356   rm -f conftest.er1
18357   cat conftest.err >&5
18358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18359   (exit $ac_status); } && {
18360          test -z "$ac_cxx_werror_flag" ||
18361          test ! -s conftest.err
18362        } && test -s conftest.$ac_objext; then
18363   bakefile_cv_cxx_compiler___MWERKS__=yes
18364 else
18365   echo "$as_me: failed program was:" >&5
18366 sed 's/^/| /' conftest.$ac_ext >&5
18367
18368         bakefile_cv_cxx_compiler___MWERKS__=no
18369
18370 fi
18371
18372 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18373
18374
18375 fi
18376 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___MWERKS__" >&5
18377 echo "${ECHO_T}$bakefile_cv_cxx_compiler___MWERKS__" >&6; }
18378     if test "x$bakefile_cv_cxx_compiler___MWERKS__" = "xyes"; then
18379         :; MWCXX=yes
18380     else
18381         :;
18382     fi
18383     ac_ext=c
18384 ac_cpp='$CPP $CPPFLAGS'
18385 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18386 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18387 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18388
18389
18390
18391                 if test "$MWCXX" != "yes"; then
18392
18393
18394     ac_ext=cpp
18395 ac_cpp='$CXXCPP $CPPFLAGS'
18396 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18397 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18398 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18399
18400     { echo "$as_me:$LINENO: checking whether we are using the IBM xlC C++ compiler" >&5
18401 echo $ECHO_N "checking whether we are using the IBM xlC C++ compiler... $ECHO_C" >&6; }
18402 if test "${bakefile_cv_cxx_compiler___xlC__+set}" = set; then
18403   echo $ECHO_N "(cached) $ECHO_C" >&6
18404 else
18405   cat >conftest.$ac_ext <<_ACEOF
18406 /* confdefs.h.  */
18407 _ACEOF
18408 cat confdefs.h >>conftest.$ac_ext
18409 cat >>conftest.$ac_ext <<_ACEOF
18410 /* end confdefs.h.  */
18411
18412 int
18413 main ()
18414 {
18415
18416              #ifndef __xlC__
18417                 choke me
18418              #endif
18419
18420   ;
18421   return 0;
18422 }
18423 _ACEOF
18424 rm -f conftest.$ac_objext
18425 if { (ac_try="$ac_compile"
18426 case "(($ac_try" in
18427   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18428   *) ac_try_echo=$ac_try;;
18429 esac
18430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18431   (eval "$ac_compile") 2>conftest.er1
18432   ac_status=$?
18433   grep -v '^ *+' conftest.er1 >conftest.err
18434   rm -f conftest.er1
18435   cat conftest.err >&5
18436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18437   (exit $ac_status); } && {
18438          test -z "$ac_cxx_werror_flag" ||
18439          test ! -s conftest.err
18440        } && test -s conftest.$ac_objext; then
18441   bakefile_cv_cxx_compiler___xlC__=yes
18442 else
18443   echo "$as_me: failed program was:" >&5
18444 sed 's/^/| /' conftest.$ac_ext >&5
18445
18446         bakefile_cv_cxx_compiler___xlC__=no
18447
18448 fi
18449
18450 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18451
18452
18453 fi
18454 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___xlC__" >&5
18455 echo "${ECHO_T}$bakefile_cv_cxx_compiler___xlC__" >&6; }
18456     if test "x$bakefile_cv_cxx_compiler___xlC__" = "xyes"; then
18457         :; XLCXX=yes
18458     else
18459         :;
18460     fi
18461     ac_ext=c
18462 ac_cpp='$CPP $CPPFLAGS'
18463 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18464 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18465 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18466
18467
18468
18469                 fi
18470                 ;;
18471
18472             IRIX*)
18473
18474
18475     ac_ext=cpp
18476 ac_cpp='$CXXCPP $CPPFLAGS'
18477 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18478 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18479 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18480
18481     { echo "$as_me:$LINENO: checking whether we are using the SGI C++ compiler" >&5
18482 echo $ECHO_N "checking whether we are using the SGI C++ compiler... $ECHO_C" >&6; }
18483 if test "${bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION+set}" = set; then
18484   echo $ECHO_N "(cached) $ECHO_C" >&6
18485 else
18486   cat >conftest.$ac_ext <<_ACEOF
18487 /* confdefs.h.  */
18488 _ACEOF
18489 cat confdefs.h >>conftest.$ac_ext
18490 cat >>conftest.$ac_ext <<_ACEOF
18491 /* end confdefs.h.  */
18492
18493 int
18494 main ()
18495 {
18496
18497              #ifndef _SGI_COMPILER_VERSION
18498                 choke me
18499              #endif
18500
18501   ;
18502   return 0;
18503 }
18504 _ACEOF
18505 rm -f conftest.$ac_objext
18506 if { (ac_try="$ac_compile"
18507 case "(($ac_try" in
18508   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18509   *) ac_try_echo=$ac_try;;
18510 esac
18511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18512   (eval "$ac_compile") 2>conftest.er1
18513   ac_status=$?
18514   grep -v '^ *+' conftest.er1 >conftest.err
18515   rm -f conftest.er1
18516   cat conftest.err >&5
18517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18518   (exit $ac_status); } && {
18519          test -z "$ac_cxx_werror_flag" ||
18520          test ! -s conftest.err
18521        } && test -s conftest.$ac_objext; then
18522   bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION=yes
18523 else
18524   echo "$as_me: failed program was:" >&5
18525 sed 's/^/| /' conftest.$ac_ext >&5
18526
18527         bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION=no
18528
18529 fi
18530
18531 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18532
18533
18534 fi
18535 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" >&5
18536 echo "${ECHO_T}$bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" >&6; }
18537     if test "x$bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" = "xyes"; then
18538         :; SGICXX=yes
18539     else
18540         :;
18541     fi
18542     ac_ext=c
18543 ac_cpp='$CPP $CPPFLAGS'
18544 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18545 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18546 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18547
18548
18549
18550                 ;;
18551
18552             Linux*)
18553                                                 if test "$INTELCXX" != "yes"; then
18554
18555
18556     ac_ext=cpp
18557 ac_cpp='$CXXCPP $CPPFLAGS'
18558 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18559 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18560 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18561
18562     { echo "$as_me:$LINENO: checking whether we are using the Sun C++ compiler" >&5
18563 echo $ECHO_N "checking whether we are using the Sun C++ compiler... $ECHO_C" >&6; }
18564 if test "${bakefile_cv_cxx_compiler___SUNPRO_CC+set}" = set; then
18565   echo $ECHO_N "(cached) $ECHO_C" >&6
18566 else
18567   cat >conftest.$ac_ext <<_ACEOF
18568 /* confdefs.h.  */
18569 _ACEOF
18570 cat confdefs.h >>conftest.$ac_ext
18571 cat >>conftest.$ac_ext <<_ACEOF
18572 /* end confdefs.h.  */
18573
18574 int
18575 main ()
18576 {
18577
18578              #ifndef __SUNPRO_CC
18579                 choke me
18580              #endif
18581
18582   ;
18583   return 0;
18584 }
18585 _ACEOF
18586 rm -f conftest.$ac_objext
18587 if { (ac_try="$ac_compile"
18588 case "(($ac_try" in
18589   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18590   *) ac_try_echo=$ac_try;;
18591 esac
18592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18593   (eval "$ac_compile") 2>conftest.er1
18594   ac_status=$?
18595   grep -v '^ *+' conftest.er1 >conftest.err
18596   rm -f conftest.er1
18597   cat conftest.err >&5
18598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18599   (exit $ac_status); } && {
18600          test -z "$ac_cxx_werror_flag" ||
18601          test ! -s conftest.err
18602        } && test -s conftest.$ac_objext; then
18603   bakefile_cv_cxx_compiler___SUNPRO_CC=yes
18604 else
18605   echo "$as_me: failed program was:" >&5
18606 sed 's/^/| /' conftest.$ac_ext >&5
18607
18608         bakefile_cv_cxx_compiler___SUNPRO_CC=no
18609
18610 fi
18611
18612 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18613
18614
18615 fi
18616 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___SUNPRO_CC" >&5
18617 echo "${ECHO_T}$bakefile_cv_cxx_compiler___SUNPRO_CC" >&6; }
18618     if test "x$bakefile_cv_cxx_compiler___SUNPRO_CC" = "xyes"; then
18619         :; SUNCXX=yes
18620     else
18621         :;
18622     fi
18623     ac_ext=c
18624 ac_cpp='$CPP $CPPFLAGS'
18625 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18626 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18627 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18628
18629
18630
18631                 fi
18632                 ;;
18633
18634             HP-UX*)
18635
18636
18637     ac_ext=cpp
18638 ac_cpp='$CXXCPP $CPPFLAGS'
18639 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18640 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18641 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18642
18643     { echo "$as_me:$LINENO: checking whether we are using the HP C++ compiler" >&5
18644 echo $ECHO_N "checking whether we are using the HP C++ compiler... $ECHO_C" >&6; }
18645 if test "${bakefile_cv_cxx_compiler___HP_aCC+set}" = set; then
18646   echo $ECHO_N "(cached) $ECHO_C" >&6
18647 else
18648   cat >conftest.$ac_ext <<_ACEOF
18649 /* confdefs.h.  */
18650 _ACEOF
18651 cat confdefs.h >>conftest.$ac_ext
18652 cat >>conftest.$ac_ext <<_ACEOF
18653 /* end confdefs.h.  */
18654
18655 int
18656 main ()
18657 {
18658
18659              #ifndef __HP_aCC
18660                 choke me
18661              #endif
18662
18663   ;
18664   return 0;
18665 }
18666 _ACEOF
18667 rm -f conftest.$ac_objext
18668 if { (ac_try="$ac_compile"
18669 case "(($ac_try" in
18670   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18671   *) ac_try_echo=$ac_try;;
18672 esac
18673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18674   (eval "$ac_compile") 2>conftest.er1
18675   ac_status=$?
18676   grep -v '^ *+' conftest.er1 >conftest.err
18677   rm -f conftest.er1
18678   cat conftest.err >&5
18679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18680   (exit $ac_status); } && {
18681          test -z "$ac_cxx_werror_flag" ||
18682          test ! -s conftest.err
18683        } && test -s conftest.$ac_objext; then
18684   bakefile_cv_cxx_compiler___HP_aCC=yes
18685 else
18686   echo "$as_me: failed program was:" >&5
18687 sed 's/^/| /' conftest.$ac_ext >&5
18688
18689         bakefile_cv_cxx_compiler___HP_aCC=no
18690
18691 fi
18692
18693 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18694
18695
18696 fi
18697 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___HP_aCC" >&5
18698 echo "${ECHO_T}$bakefile_cv_cxx_compiler___HP_aCC" >&6; }
18699     if test "x$bakefile_cv_cxx_compiler___HP_aCC" = "xyes"; then
18700         :; HPCXX=yes
18701     else
18702         :;
18703     fi
18704     ac_ext=c
18705 ac_cpp='$CPP $CPPFLAGS'
18706 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18707 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18708 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18709
18710
18711
18712                 ;;
18713
18714             OSF1)
18715
18716
18717     ac_ext=cpp
18718 ac_cpp='$CXXCPP $CPPFLAGS'
18719 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18720 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18721 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18722
18723     { echo "$as_me:$LINENO: checking whether we are using the Compaq C++ compiler" >&5
18724 echo $ECHO_N "checking whether we are using the Compaq C++ compiler... $ECHO_C" >&6; }
18725 if test "${bakefile_cv_cxx_compiler___DECCXX+set}" = set; then
18726   echo $ECHO_N "(cached) $ECHO_C" >&6
18727 else
18728   cat >conftest.$ac_ext <<_ACEOF
18729 /* confdefs.h.  */
18730 _ACEOF
18731 cat confdefs.h >>conftest.$ac_ext
18732 cat >>conftest.$ac_ext <<_ACEOF
18733 /* end confdefs.h.  */
18734
18735 int
18736 main ()
18737 {
18738
18739              #ifndef __DECCXX
18740                 choke me
18741              #endif
18742
18743   ;
18744   return 0;
18745 }
18746 _ACEOF
18747 rm -f conftest.$ac_objext
18748 if { (ac_try="$ac_compile"
18749 case "(($ac_try" in
18750   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18751   *) ac_try_echo=$ac_try;;
18752 esac
18753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18754   (eval "$ac_compile") 2>conftest.er1
18755   ac_status=$?
18756   grep -v '^ *+' conftest.er1 >conftest.err
18757   rm -f conftest.er1
18758   cat conftest.err >&5
18759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18760   (exit $ac_status); } && {
18761          test -z "$ac_cxx_werror_flag" ||
18762          test ! -s conftest.err
18763        } && test -s conftest.$ac_objext; then
18764   bakefile_cv_cxx_compiler___DECCXX=yes
18765 else
18766   echo "$as_me: failed program was:" >&5
18767 sed 's/^/| /' conftest.$ac_ext >&5
18768
18769         bakefile_cv_cxx_compiler___DECCXX=no
18770
18771 fi
18772
18773 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18774
18775
18776 fi
18777 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___DECCXX" >&5
18778 echo "${ECHO_T}$bakefile_cv_cxx_compiler___DECCXX" >&6; }
18779     if test "x$bakefile_cv_cxx_compiler___DECCXX" = "xyes"; then
18780         :; COMPAQCXX=yes
18781     else
18782         :;
18783     fi
18784     ac_ext=c
18785 ac_cpp='$CPP $CPPFLAGS'
18786 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18787 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18788 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18789
18790
18791
18792                 ;;
18793
18794             SunOS)
18795
18796
18797     ac_ext=cpp
18798 ac_cpp='$CXXCPP $CPPFLAGS'
18799 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18800 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18801 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18802
18803     { echo "$as_me:$LINENO: checking whether we are using the Sun C++ compiler" >&5
18804 echo $ECHO_N "checking whether we are using the Sun C++ compiler... $ECHO_C" >&6; }
18805 if test "${bakefile_cv_cxx_compiler___SUNPRO_CC+set}" = set; then
18806   echo $ECHO_N "(cached) $ECHO_C" >&6
18807 else
18808   cat >conftest.$ac_ext <<_ACEOF
18809 /* confdefs.h.  */
18810 _ACEOF
18811 cat confdefs.h >>conftest.$ac_ext
18812 cat >>conftest.$ac_ext <<_ACEOF
18813 /* end confdefs.h.  */
18814
18815 int
18816 main ()
18817 {
18818
18819              #ifndef __SUNPRO_CC
18820                 choke me
18821              #endif
18822
18823   ;
18824   return 0;
18825 }
18826 _ACEOF
18827 rm -f conftest.$ac_objext
18828 if { (ac_try="$ac_compile"
18829 case "(($ac_try" in
18830   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18831   *) ac_try_echo=$ac_try;;
18832 esac
18833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18834   (eval "$ac_compile") 2>conftest.er1
18835   ac_status=$?
18836   grep -v '^ *+' conftest.er1 >conftest.err
18837   rm -f conftest.er1
18838   cat conftest.err >&5
18839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18840   (exit $ac_status); } && {
18841          test -z "$ac_cxx_werror_flag" ||
18842          test ! -s conftest.err
18843        } && test -s conftest.$ac_objext; then
18844   bakefile_cv_cxx_compiler___SUNPRO_CC=yes
18845 else
18846   echo "$as_me: failed program was:" >&5
18847 sed 's/^/| /' conftest.$ac_ext >&5
18848
18849         bakefile_cv_cxx_compiler___SUNPRO_CC=no
18850
18851 fi
18852
18853 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18854
18855
18856 fi
18857 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___SUNPRO_CC" >&5
18858 echo "${ECHO_T}$bakefile_cv_cxx_compiler___SUNPRO_CC" >&6; }
18859     if test "x$bakefile_cv_cxx_compiler___SUNPRO_CC" = "xyes"; then
18860         :; SUNCXX=yes
18861     else
18862         :;
18863     fi
18864     ac_ext=c
18865 ac_cpp='$CPP $CPPFLAGS'
18866 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18867 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18868 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18869
18870
18871
18872                 ;;
18873         esac
18874     fi
18875
18876
18877
18878 if test "$CXX" = "g++" -a "$GXX" != "yes"; then
18879     { { echo "$as_me:$LINENO: error: C++ compiler is needed to build wxWidgets" >&5
18880 echo "$as_me: error: C++ compiler is needed to build wxWidgets" >&2;}
18881    { (exit 1); exit 1; }; }
18882 fi
18883
18884 if test "x$SUNCXX" != xyes; then
18885     if test -n "$ac_tool_prefix"; then
18886   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
18887 set dummy ${ac_tool_prefix}ar; ac_word=$2
18888 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18889 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18890 if test "${ac_cv_prog_AR+set}" = set; then
18891   echo $ECHO_N "(cached) $ECHO_C" >&6
18892 else
18893   if test -n "$AR"; then
18894   ac_cv_prog_AR="$AR" # Let the user override the test.
18895 else
18896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18897 for as_dir in $PATH
18898 do
18899   IFS=$as_save_IFS
18900   test -z "$as_dir" && as_dir=.
18901   for ac_exec_ext in '' $ac_executable_extensions; do
18902   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18903     ac_cv_prog_AR="${ac_tool_prefix}ar"
18904     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18905     break 2
18906   fi
18907 done
18908 done
18909 IFS=$as_save_IFS
18910
18911 fi
18912 fi
18913 AR=$ac_cv_prog_AR
18914 if test -n "$AR"; then
18915   { echo "$as_me:$LINENO: result: $AR" >&5
18916 echo "${ECHO_T}$AR" >&6; }
18917 else
18918   { echo "$as_me:$LINENO: result: no" >&5
18919 echo "${ECHO_T}no" >&6; }
18920 fi
18921
18922
18923 fi
18924 if test -z "$ac_cv_prog_AR"; then
18925   ac_ct_AR=$AR
18926   # Extract the first word of "ar", so it can be a program name with args.
18927 set dummy ar; ac_word=$2
18928 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18929 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18930 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
18931   echo $ECHO_N "(cached) $ECHO_C" >&6
18932 else
18933   if test -n "$ac_ct_AR"; then
18934   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
18935 else
18936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18937 for as_dir in $PATH
18938 do
18939   IFS=$as_save_IFS
18940   test -z "$as_dir" && as_dir=.
18941   for ac_exec_ext in '' $ac_executable_extensions; do
18942   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18943     ac_cv_prog_ac_ct_AR="ar"
18944     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18945     break 2
18946   fi
18947 done
18948 done
18949 IFS=$as_save_IFS
18950
18951 fi
18952 fi
18953 ac_ct_AR=$ac_cv_prog_ac_ct_AR
18954 if test -n "$ac_ct_AR"; then
18955   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
18956 echo "${ECHO_T}$ac_ct_AR" >&6; }
18957 else
18958   { echo "$as_me:$LINENO: result: no" >&5
18959 echo "${ECHO_T}no" >&6; }
18960 fi
18961
18962   if test "x$ac_ct_AR" = x; then
18963     AR=""
18964   else
18965     case $cross_compiling:$ac_tool_warned in
18966 yes:)
18967 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
18968 whose name does not start with the host triplet.  If you think this
18969 configuration is useful to you, please write to autoconf@gnu.org." >&5
18970 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
18971 whose name does not start with the host triplet.  If you think this
18972 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
18973 ac_tool_warned=yes ;;
18974 esac
18975     AR=$ac_ct_AR
18976   fi
18977 else
18978   AR="$ac_cv_prog_AR"
18979 fi
18980
18981     if test "x$AR" = "x" ; then
18982         { { echo "$as_me:$LINENO: error: ar is needed to build wxWidgets" >&5
18983 echo "$as_me: error: ar is needed to build wxWidgets" >&2;}
18984    { (exit 1); exit 1; }; }
18985     fi
18986 fi
18987
18988
18989 if test "$wxUSE_MAC" = 1; then
18990
18991 retest_macosx_linking=no
18992
18993 OSX_ARCH_OPTS=""
18994 if test "x$wxUSE_MAC_ARCH" != xno; then
18995     OSX_ARCH_OPTS="-arch $wxUSE_MAC_ARCH"
18996 fi
18997
18998     if test "x$wxUSE_UNIVERSAL_BINARY" != xno ; then
18999                         if test "x$wxUSE_UNIVERSAL_BINARY" == xyes; then
19000             # Implicitly turn on the new --with-macosx-sdk using the default
19001             # SDK which provides the behaviour this option has always had.
19002             if test "x$wxUSE_MACOSX_SDK" = "x"; then
19003                 { echo "$as_me:$LINENO: WARNING: Enabling default SDK due to --enable-universal_binary." >&5
19004 echo "$as_me: WARNING: Enabling default SDK due to --enable-universal_binary." >&2;}
19005                 { echo "$as_me:$LINENO: WARNING: If you don't want this, specify --without-macosx-sdk" >&5
19006 echo "$as_me: WARNING: If you don't want this, specify --without-macosx-sdk" >&2;}
19007                 wxUSE_MACOSX_SDK=yes
19008             fi
19009         else
19010             # Complain to user if he specified an argument to --enable-universal_binary
19011             # and also 1) specified --with-macosx-sdk using the default (yes) or
19012             # 2) specified --with-macosx-sdk using a path or 3) specified
19013             # --without-macosx-sdk (no).
19014             if test "x$wxUSE_MACOSX_SDK" != "x" ; then
19015                 { { echo "$as_me:$LINENO: error: Please specify the new --with-macosx-sdk=PATH and do not specify an arg to --enable-universal_binary
19016 See \`config.log' for more details." >&5
19017 echo "$as_me: error: Please specify the new --with-macosx-sdk=PATH and do not specify an arg to --enable-universal_binary
19018 See \`config.log' for more details." >&2;}
19019    { (exit 1); exit 1; }; }
19020             else
19021                 # Put the SDK path into the wxUSE_MACOSX_SDK.  We don't have to
19022                 # special-case the empty string because the below test simply
19023                 # converts "no" to the empty string anyway.
19024                 wxUSE_MACOSX_SDK="$wxUSE_UNIVERSAL_BINARY"
19025                                 { echo "$as_me:$LINENO: WARNING: Please use --with-macosx-sdk=PATH and --enable-universal_binary without an argument" >&5
19026 echo "$as_me: WARNING: Please use --with-macosx-sdk=PATH and --enable-universal_binary without an argument" >&2;}
19027             fi
19028         fi
19029                 OSX_ARCH_OPTS="-arch ppc -arch i386"
19030         if test "$wxUSE_OSX_COCOA" = 1; then
19031             OSX_ARCH_OPTS="$OSX_ARCH_OPTS -arch x86_64"
19032         fi
19033         { echo "$as_me:$LINENO: checking for universal binary architectures" >&5
19034 echo $ECHO_N "checking for universal binary architectures... $ECHO_C" >&6; }
19035         { echo "$as_me:$LINENO: result: $OSX_ARCH_OPTS" >&5
19036 echo "${ECHO_T}$OSX_ARCH_OPTS" >&6; }
19037
19038                                                                                                                 retest_macosx_linking=yes
19039
19040                                         { echo "$as_me:$LINENO: WARNING: Disabling precompiled headers due to universal binary build." >&5
19041 echo "$as_me: WARNING: Disabling precompiled headers due to universal binary build." >&2;}
19042         bk_use_pch=no
19043     fi
19044
19045 CXXFLAGS="$OSX_ARCH_OPTS $CXXFLAGS"
19046 CFLAGS="$OSX_ARCH_OPTS $CFLAGS"
19047 OBJCXXFLAGS="$OSX_ARCH_OPTS $OBJCXXFLAGS"
19048 OBJCFLAGS="$OSX_ARCH_OPTS $OBJCFLAGS"
19049 LDFLAGS="$OSX_ARCH_OPTS $LDFLAGS"
19050
19051 if test "x$wxUSE_MACOSX_SDK" = "xno"; then
19052     wxUSE_MACOSX_SDK=
19053 elif test "x$wxUSE_MACOSX_SDK" = "xyes"; then
19054     # TODO: Search for most recent SDK and use it.
19055     wxUSE_MACOSX_SDK="/Developer/SDKs/MacOSX10.4u.sdk"
19056 fi
19057
19058
19059 if test "x$wxUSE_MACOSX_SDK" != "x"; then
19060     { echo "$as_me:$LINENO: checking for SDK directory $wxUSE_MACOSX_SDK" >&5
19061 echo $ECHO_N "checking for SDK directory $wxUSE_MACOSX_SDK... $ECHO_C" >&6; }
19062     if ! test -d "$wxUSE_MACOSX_SDK"; then
19063         { { echo "$as_me:$LINENO: error: not found
19064 See \`config.log' for more details." >&5
19065 echo "$as_me: error: not found
19066 See \`config.log' for more details." >&2;}
19067    { (exit 1); exit 1; }; }
19068     else
19069         { echo "$as_me:$LINENO: result: exists" >&5
19070 echo "${ECHO_T}exists" >&6; }
19071     fi
19072         MACOSX_SDK_OPTS="-isysroot $wxUSE_MACOSX_SDK"
19073     retest_macosx_linking=yes
19074             fi
19075
19076 if test "x$wxUSE_MACOSX_VERSION_MIN" = "xno"; then
19077     wxUSE_MACOSX_VERSION_MIN=
19078 elif test "x$wxUSE_MACOSX_VERSION_MIN" = "xyes"; then
19079     if test "x$wxUSE_MACOSX_SDK" != "x"; then
19080         { echo "$as_me:$LINENO: checking SDK deployment version" >&5
19081 echo $ECHO_N "checking SDK deployment version... $ECHO_C" >&6; }
19082
19083         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/'`
19084
19085         # If that failed, try again with the new key
19086         if test "x$MACOSX_SDK_PLIST_VERSION_MIN" == "x"; then
19087
19088             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/'`
19089
19090         fi
19091
19092         if test "x$MACOSX_SDK_PLIST_VERSION_MIN" != "x"; then
19093             wxUSE_MACOSX_VERSION_MIN=$MACOSX_SDK_PLIST_VERSION_MIN
19094             { echo "$as_me:$LINENO: result: $wxUSE_MACOSX_VERSION_MIN" >&5
19095 echo "${ECHO_T}$wxUSE_MACOSX_VERSION_MIN" >&6; }
19096         else
19097             { echo "$as_me:$LINENO: WARNING: Could not determine deployment target from SDKSettings.plist" >&5
19098 echo "$as_me: WARNING: Could not determine deployment target from SDKSettings.plist" >&2;}
19099             wxUSE_MACOSX_VERSION_MIN=
19100         fi
19101     else
19102         wxUSE_MACOSX_VERSION_MIN=
19103     fi
19104 elif test "x$wxUSE_MACOSX_VERSION_MIN" = "x"; then
19105     for ac_prog in sw_vers
19106 do
19107   # Extract the first word of "$ac_prog", so it can be a program name with args.
19108 set dummy $ac_prog; ac_word=$2
19109 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19110 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19111 if test "${ac_cv_prog_OSX_SW_VERS+set}" = set; then
19112   echo $ECHO_N "(cached) $ECHO_C" >&6
19113 else
19114   if test -n "$OSX_SW_VERS"; then
19115   ac_cv_prog_OSX_SW_VERS="$OSX_SW_VERS" # Let the user override the test.
19116 else
19117 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19118 for as_dir in $PATH
19119 do
19120   IFS=$as_save_IFS
19121   test -z "$as_dir" && as_dir=.
19122   for ac_exec_ext in '' $ac_executable_extensions; do
19123   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19124     ac_cv_prog_OSX_SW_VERS="$ac_prog"
19125     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19126     break 2
19127   fi
19128 done
19129 done
19130 IFS=$as_save_IFS
19131
19132 fi
19133 fi
19134 OSX_SW_VERS=$ac_cv_prog_OSX_SW_VERS
19135 if test -n "$OSX_SW_VERS"; then
19136   { echo "$as_me:$LINENO: result: $OSX_SW_VERS" >&5
19137 echo "${ECHO_T}$OSX_SW_VERS" >&6; }
19138 else
19139   { echo "$as_me:$LINENO: result: no" >&5
19140 echo "${ECHO_T}no" >&6; }
19141 fi
19142
19143
19144   test -n "$OSX_SW_VERS" && break
19145 done
19146
19147     if test "$OSX_SW_VERS" != ""; then
19148         OSX_VERSION=`sw_vers -productVersion | grep 10.[0-9]`
19149     else
19150                         { echo "$as_me:$LINENO: WARNING: Assuming OS X 10.4, use --with-macosx-version-min to override." >&5
19151 echo "$as_me: WARNING: Assuming OS X 10.4, use --with-macosx-version-min to override." >&2;}
19152         OSX_VERSION="10.4"
19153     fi
19154
19155     case "$OSX_VERSION" in
19156         10.4* )
19157             wxUSE_MACOSX_VERSION_MIN=10.4
19158             ;;
19159
19160         * )
19161             if test "$wxUSE_OSX_CARBON" = 1; then
19162                 # otherwise configure stops on leopard for universal_binary
19163                 wxUSE_MACOSX_VERSION_MIN=10.4
19164             else
19165                 # for Cocoa, use 10.5 to be able to compile it in 64 bits too
19166                 wxUSE_MACOSX_VERSION_MIN=10.5
19167             fi
19168             ;;
19169     esac
19170 fi
19171
19172 NEEDS_GCC40="no"
19173 if test "x$wxUSE_MACOSX_VERSION_MIN" == "x10.4"; then
19174     NEEDS_GCC40="yes"
19175 fi
19176
19177 if test "$wxUSE_OSX_CARBON" = 1; then
19178     NEEDS_GCC40="yes"
19179 fi
19180
19181 if test "x$NEEDS_GCC40" == "xyes"; then
19182     # gcc 4.2 cannot compile 10.4 compatible code, so if the user is using it
19183     # and wants 10.4 compatible code, then 'downgrade' to 4.0
19184     # This is also the simplest way to get 32-bit binaries on Snow Leopard.
19185     if test "x$CC" = "xgcc"; then
19186         CCVERSION=`$CC --version | grep 4.[2-9].`
19187         if test "x$CCVERSION" != "x"; then
19188             echo "$as_me:$LINENO: WARNING: gcc >= 4.2 cannot compile 10.4 compatible code. Using gcc 4.0 instead."
19189             CC="gcc-4.0"
19190         fi
19191     fi
19192
19193     if test "x$CXX" = "xg++"; then
19194         CCVERSION=`$CXX --version | grep 4.[2-9].`
19195         if test "x$CCVERSION" != "x"; then
19196             CXX="g++-4.0"
19197         fi
19198     fi
19199 fi
19200
19201 if test "x$MACOSX_SDK_OPTS" != "x"; then
19202     eval "CC=\"$CC $MACOSX_SDK_OPTS\""
19203     eval "CXX=\"$CXX $MACOSX_SDK_OPTS\""
19204     eval "LD=\"$LD $MACOSX_SDK_OPTS\""
19205 fi
19206
19207 if test "x$wxUSE_MACOSX_VERSION_MIN" != "x"; then
19208     if test "$wxUSE_OSX_IPHONE" = 1; then
19209         MACOSX_VERSION_MIN_OPTS="-miphoneos-version-min=$wxUSE_MACOSX_VERSION_MIN"
19210     else
19211         MACOSX_VERSION_MIN_OPTS="-mmacosx-version-min=$wxUSE_MACOSX_VERSION_MIN"
19212     fi
19213     eval "CC=\"$CC $MACOSX_VERSION_MIN_OPTS\""
19214     eval "CXX=\"$CXX $MACOSX_VERSION_MIN_OPTS\""
19215     eval "LD=\"$LD $MACOSX_VERSION_MIN_OPTS\""
19216     retest_macosx_linking=yes
19217 fi
19218
19219 if test "x$retest_macosx_linking" = "xyes"; then
19220     ac_ext=c
19221 ac_cpp='$CPP $CPPFLAGS'
19222 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19223 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19224 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19225
19226     { echo "$as_me:$LINENO: checking if C compiler works with SDK/version options" >&5
19227 echo $ECHO_N "checking if C compiler works with SDK/version options... $ECHO_C" >&6; }
19228     cat >conftest.$ac_ext <<_ACEOF
19229 /* confdefs.h.  */
19230 _ACEOF
19231 cat confdefs.h >>conftest.$ac_ext
19232 cat >>conftest.$ac_ext <<_ACEOF
19233 /* end confdefs.h.  */
19234
19235 int
19236 main ()
19237 {
19238
19239   ;
19240   return 0;
19241 }
19242 _ACEOF
19243 rm -f conftest.$ac_objext conftest$ac_exeext
19244 if { (ac_try="$ac_link"
19245 case "(($ac_try" in
19246   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19247   *) ac_try_echo=$ac_try;;
19248 esac
19249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19250   (eval "$ac_link") 2>conftest.er1
19251   ac_status=$?
19252   grep -v '^ *+' conftest.er1 >conftest.err
19253   rm -f conftest.er1
19254   cat conftest.err >&5
19255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19256   (exit $ac_status); } && {
19257          test -z "$ac_c_werror_flag" ||
19258          test ! -s conftest.err
19259        } && test -s conftest$ac_exeext &&
19260        $as_test_x conftest$ac_exeext; then
19261   { echo "$as_me:$LINENO: result: yes" >&5
19262 echo "${ECHO_T}yes" >&6; }
19263 else
19264   echo "$as_me: failed program was:" >&5
19265 sed 's/^/| /' conftest.$ac_ext >&5
19266
19267         { { echo "$as_me:$LINENO: error: no.  Try a different SDK
19268 See \`config.log' for more details." >&5
19269 echo "$as_me: error: no.  Try a different SDK
19270 See \`config.log' for more details." >&2;}
19271    { (exit 1); exit 1; }; }; exit 1
19272 fi
19273
19274 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19275       conftest$ac_exeext conftest.$ac_ext
19276     ac_ext=c
19277 ac_cpp='$CPP $CPPFLAGS'
19278 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19279 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19280 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19281
19282
19283     ac_ext=cpp
19284 ac_cpp='$CXXCPP $CPPFLAGS'
19285 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19286 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19287 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19288
19289     { echo "$as_me:$LINENO: checking if C++ compiler works with SDK/version options" >&5
19290 echo $ECHO_N "checking if C++ compiler works with SDK/version options... $ECHO_C" >&6; }
19291     cat >conftest.$ac_ext <<_ACEOF
19292 /* confdefs.h.  */
19293 _ACEOF
19294 cat confdefs.h >>conftest.$ac_ext
19295 cat >>conftest.$ac_ext <<_ACEOF
19296 /* end confdefs.h.  */
19297
19298 int
19299 main ()
19300 {
19301
19302   ;
19303   return 0;
19304 }
19305 _ACEOF
19306 rm -f conftest.$ac_objext conftest$ac_exeext
19307 if { (ac_try="$ac_link"
19308 case "(($ac_try" in
19309   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19310   *) ac_try_echo=$ac_try;;
19311 esac
19312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19313   (eval "$ac_link") 2>conftest.er1
19314   ac_status=$?
19315   grep -v '^ *+' conftest.er1 >conftest.err
19316   rm -f conftest.er1
19317   cat conftest.err >&5
19318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19319   (exit $ac_status); } && {
19320          test -z "$ac_cxx_werror_flag" ||
19321          test ! -s conftest.err
19322        } && test -s conftest$ac_exeext &&
19323        $as_test_x conftest$ac_exeext; then
19324   { echo "$as_me:$LINENO: result: yes" >&5
19325 echo "${ECHO_T}yes" >&6; }
19326 else
19327   echo "$as_me: failed program was:" >&5
19328 sed 's/^/| /' conftest.$ac_ext >&5
19329
19330         { { echo "$as_me:$LINENO: error: no.  Try a different SDK
19331 See \`config.log' for more details." >&5
19332 echo "$as_me: error: no.  Try a different SDK
19333 See \`config.log' for more details." >&2;}
19334    { (exit 1); exit 1; }; }; exit 1
19335 fi
19336
19337 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19338       conftest$ac_exeext conftest.$ac_ext
19339     ac_ext=c
19340 ac_cpp='$CPP $CPPFLAGS'
19341 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19342 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19343 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19344
19345 fi
19346
19347 fi
19348 case "${host}" in
19349
19350                 *-*-darwin* )
19351         INSTALL_PROGRAM="cp -fp"
19352         INSTALL_DATA="cp -fp"
19353         ;;
19354     *)
19355         ;;
19356 esac
19357
19358
19359 if test "x$XLCXX" = "xyes" -a "x$USE_AIX" = "x1"; then
19360     CXXFLAGS="-qunique $CXXFLAGS"
19361 fi
19362
19363 case "${host}" in
19364   powerpc-*-darwin* )
19365     { echo "$as_me:$LINENO: checking if __POWERPC__ is already defined" >&5
19366 echo $ECHO_N "checking if __POWERPC__ is already defined... $ECHO_C" >&6; }
19367     cat >conftest.$ac_ext <<_ACEOF
19368 /* confdefs.h.  */
19369 _ACEOF
19370 cat confdefs.h >>conftest.$ac_ext
19371 cat >>conftest.$ac_ext <<_ACEOF
19372 /* end confdefs.h.  */
19373
19374 int
19375 main ()
19376 {
19377 #ifndef __POWERPC__
19378         choke me for lack of PowerPC
19379 #endif
19380
19381   ;
19382   return 0;
19383 }
19384 _ACEOF
19385 rm -f conftest.$ac_objext
19386 if { (ac_try="$ac_compile"
19387 case "(($ac_try" in
19388   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19389   *) ac_try_echo=$ac_try;;
19390 esac
19391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19392   (eval "$ac_compile") 2>conftest.er1
19393   ac_status=$?
19394   grep -v '^ *+' conftest.er1 >conftest.err
19395   rm -f conftest.er1
19396   cat conftest.err >&5
19397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19398   (exit $ac_status); } && {
19399          test -z "$ac_c_werror_flag" ||
19400          test ! -s conftest.err
19401        } && test -s conftest.$ac_objext; then
19402   { echo "$as_me:$LINENO: result: yes" >&5
19403 echo "${ECHO_T}yes" >&6; }
19404 else
19405   echo "$as_me: failed program was:" >&5
19406 sed 's/^/| /' conftest.$ac_ext >&5
19407
19408         { echo "$as_me:$LINENO: result: no" >&5
19409 echo "${ECHO_T}no" >&6; }
19410         cat >>confdefs.h <<\_ACEOF
19411 #define __POWERPC__ 1
19412 _ACEOF
19413
19414
19415 fi
19416
19417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19418   ;;
19419 esac
19420
19421 case "${host}" in
19422   *-*-darwin* )
19423     { echo "$as_me:$LINENO: checking if CoreFoundation/CFBase.h is usable" >&5
19424 echo $ECHO_N "checking if CoreFoundation/CFBase.h is usable... $ECHO_C" >&6; }
19425     cat >conftest.$ac_ext <<_ACEOF
19426 /* confdefs.h.  */
19427 _ACEOF
19428 cat confdefs.h >>conftest.$ac_ext
19429 cat >>conftest.$ac_ext <<_ACEOF
19430 /* end confdefs.h.  */
19431 #include <CoreFoundation/CFBase.h>
19432
19433 int
19434 main ()
19435 {
19436
19437   ;
19438   return 0;
19439 }
19440 _ACEOF
19441 rm -f conftest.$ac_objext
19442 if { (ac_try="$ac_compile"
19443 case "(($ac_try" in
19444   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19445   *) ac_try_echo=$ac_try;;
19446 esac
19447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19448   (eval "$ac_compile") 2>conftest.er1
19449   ac_status=$?
19450   grep -v '^ *+' conftest.er1 >conftest.err
19451   rm -f conftest.er1
19452   cat conftest.err >&5
19453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19454   (exit $ac_status); } && {
19455          test -z "$ac_c_werror_flag" ||
19456          test ! -s conftest.err
19457        } && test -s conftest.$ac_objext; then
19458   { echo "$as_me:$LINENO: result: yes" >&5
19459 echo "${ECHO_T}yes" >&6; }
19460 else
19461   echo "$as_me: failed program was:" >&5
19462 sed 's/^/| /' conftest.$ac_ext >&5
19463
19464         { echo "$as_me:$LINENO: result: no" >&5
19465 echo "${ECHO_T}no" >&6; }
19466         { echo "$as_me:$LINENO: checking if __CF_USE_FRAMEWORK_INCLUDES__ is required" >&5
19467 echo $ECHO_N "checking if __CF_USE_FRAMEWORK_INCLUDES__ is required... $ECHO_C" >&6; }
19468         cat >conftest.$ac_ext <<_ACEOF
19469 /* confdefs.h.  */
19470 _ACEOF
19471 cat confdefs.h >>conftest.$ac_ext
19472 cat >>conftest.$ac_ext <<_ACEOF
19473 /* end confdefs.h.  */
19474 #define __CF_USE_FRAMEWORK_INCLUDES__
19475 #include <CoreFoundation/CFBase.h>
19476
19477 int
19478 main ()
19479 {
19480
19481   ;
19482   return 0;
19483 }
19484 _ACEOF
19485 rm -f conftest.$ac_objext
19486 if { (ac_try="$ac_compile"
19487 case "(($ac_try" in
19488   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19489   *) ac_try_echo=$ac_try;;
19490 esac
19491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19492   (eval "$ac_compile") 2>conftest.er1
19493   ac_status=$?
19494   grep -v '^ *+' conftest.er1 >conftest.err
19495   rm -f conftest.er1
19496   cat conftest.err >&5
19497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19498   (exit $ac_status); } && {
19499          test -z "$ac_c_werror_flag" ||
19500          test ! -s conftest.err
19501        } && test -s conftest.$ac_objext; then
19502   { echo "$as_me:$LINENO: result: yes" >&5
19503 echo "${ECHO_T}yes" >&6; }
19504                         CPPFLAGS="-D__CF_USE_FRAMEWORK_INCLUDES__ $CPPFLAGS"
19505 else
19506   echo "$as_me: failed program was:" >&5
19507 sed 's/^/| /' conftest.$ac_ext >&5
19508
19509         { { echo "$as_me:$LINENO: error: no.  CoreFoundation not available.
19510 See \`config.log' for more details." >&5
19511 echo "$as_me: error: no.  CoreFoundation not available.
19512 See \`config.log' for more details." >&2;}
19513    { (exit 1); exit 1; }; }
19514
19515 fi
19516
19517 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19518
19519
19520 fi
19521
19522 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19523   ;;
19524 esac
19525
19526 wants_win32=0
19527 doesnt_want_win32=0
19528 case "${host}" in
19529   *-*-cygwin*)
19530       if test "$wxUSE_MSW" = 1 ; then
19531         wants_win32=1
19532       else
19533                         { echo "$as_me:$LINENO: checking if -mno-cygwin is in effect" >&5
19534 echo $ECHO_N "checking if -mno-cygwin is in effect... $ECHO_C" >&6; }
19535 if test "${wx_cv_nocygwin+set}" = set; then
19536   echo $ECHO_N "(cached) $ECHO_C" >&6
19537 else
19538
19539                 cat >conftest.$ac_ext <<_ACEOF
19540 /* confdefs.h.  */
19541 _ACEOF
19542 cat confdefs.h >>conftest.$ac_ext
19543 cat >>conftest.$ac_ext <<_ACEOF
19544 /* end confdefs.h.  */
19545
19546 int
19547 main ()
19548 {
19549
19550                         #ifdef __MINGW32__
19551                             choke me
19552                         #endif
19553
19554   ;
19555   return 0;
19556 }
19557 _ACEOF
19558 rm -f conftest.$ac_objext
19559 if { (ac_try="$ac_compile"
19560 case "(($ac_try" in
19561   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19562   *) ac_try_echo=$ac_try;;
19563 esac
19564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19565   (eval "$ac_compile") 2>conftest.er1
19566   ac_status=$?
19567   grep -v '^ *+' conftest.er1 >conftest.err
19568   rm -f conftest.er1
19569   cat conftest.err >&5
19570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19571   (exit $ac_status); } && {
19572          test -z "$ac_c_werror_flag" ||
19573          test ! -s conftest.err
19574        } && test -s conftest.$ac_objext; then
19575   wx_cv_nocygwin=no
19576 else
19577   echo "$as_me: failed program was:" >&5
19578 sed 's/^/| /' conftest.$ac_ext >&5
19579
19580         wx_cv_nocygwin=yes
19581
19582 fi
19583
19584 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19585
19586
19587 fi
19588 { echo "$as_me:$LINENO: result: $wx_cv_nocygwin" >&5
19589 echo "${ECHO_T}$wx_cv_nocygwin" >&6; }
19590
19591         if test "$wx_cv_nocygwin" = "yes"; then
19592             wants_win32=1
19593         else
19594             doesnt_want_win32=1
19595         fi
19596       fi
19597       if test "$wants_win32" = 1 ; then
19598         BAKEFILE_FORCE_PLATFORM=win32
19599       fi
19600   ;;
19601   *-*-mingw*)
19602       wants_win32=1
19603   ;;
19604 esac
19605
19606 if test "$wxUSE_WINE" = "yes"; then
19607     wants_win32=1
19608     LDFLAGS_GUI="-mwindows"
19609 fi
19610
19611 if test "$wants_win32" = 1 ; then
19612     USE_UNIX=0
19613     USE_WIN32=1
19614     cat >>confdefs.h <<\_ACEOF
19615 #define __WIN32__ 1
19616 _ACEOF
19617
19618     cat >>confdefs.h <<\_ACEOF
19619 #define __WIN95__ 1
19620 _ACEOF
19621
19622     cat >>confdefs.h <<\_ACEOF
19623 #define __WINDOWS__ 1
19624 _ACEOF
19625
19626     cat >>confdefs.h <<\_ACEOF
19627 #define __GNUWIN32__ 1
19628 _ACEOF
19629
19630     cat >>confdefs.h <<\_ACEOF
19631 #define STRICT 1
19632 _ACEOF
19633
19634 fi
19635 if test "$doesnt_want_win32" = 1 ; then
19636     USE_UNIX=1
19637     USE_WIN32=0
19638 fi
19639
19640 if test "$USE_UNIX" = 1 ; then
19641     wxUSE_UNIX=yes
19642     cat >>confdefs.h <<\_ACEOF
19643 #define __UNIX__ 1
19644 _ACEOF
19645
19646 fi
19647
19648 case "${host}" in
19649   *-pc-os2_emx | *-pc-os2-emx )
19650                                                       if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then
19651                               { echo "$as_me:$LINENO: checking for drand48 in -lcExt" >&5
19652 echo $ECHO_N "checking for drand48 in -lcExt... $ECHO_C" >&6; }
19653 if test "${ac_cv_lib_cExt_drand48+set}" = set; then
19654   echo $ECHO_N "(cached) $ECHO_C" >&6
19655 else
19656   ac_check_lib_save_LIBS=$LIBS
19657 LIBS="-lcExt  $LIBS"
19658 cat >conftest.$ac_ext <<_ACEOF
19659 /* confdefs.h.  */
19660 _ACEOF
19661 cat confdefs.h >>conftest.$ac_ext
19662 cat >>conftest.$ac_ext <<_ACEOF
19663 /* end confdefs.h.  */
19664
19665 /* Override any GCC internal prototype to avoid an error.
19666    Use char because int might match the return type of a GCC
19667    builtin and then its argument prototype would still apply.  */
19668 #ifdef __cplusplus
19669 extern "C"
19670 #endif
19671 char drand48 ();
19672 int
19673 main ()
19674 {
19675 return drand48 ();
19676   ;
19677   return 0;
19678 }
19679 _ACEOF
19680 rm -f conftest.$ac_objext conftest$ac_exeext
19681 if { (ac_try="$ac_link"
19682 case "(($ac_try" in
19683   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19684   *) ac_try_echo=$ac_try;;
19685 esac
19686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19687   (eval "$ac_link") 2>conftest.er1
19688   ac_status=$?
19689   grep -v '^ *+' conftest.er1 >conftest.err
19690   rm -f conftest.er1
19691   cat conftest.err >&5
19692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19693   (exit $ac_status); } && {
19694          test -z "$ac_c_werror_flag" ||
19695          test ! -s conftest.err
19696        } && test -s conftest$ac_exeext &&
19697        $as_test_x conftest$ac_exeext; then
19698   ac_cv_lib_cExt_drand48=yes
19699 else
19700   echo "$as_me: failed program was:" >&5
19701 sed 's/^/| /' conftest.$ac_ext >&5
19702
19703         ac_cv_lib_cExt_drand48=no
19704 fi
19705
19706 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19707       conftest$ac_exeext conftest.$ac_ext
19708 LIBS=$ac_check_lib_save_LIBS
19709 fi
19710 { echo "$as_me:$LINENO: result: $ac_cv_lib_cExt_drand48" >&5
19711 echo "${ECHO_T}$ac_cv_lib_cExt_drand48" >&6; }
19712 if test $ac_cv_lib_cExt_drand48 = yes; then
19713   LIBS="$LIBS -lcExt"
19714 fi
19715
19716       else
19717                     RESPROGRAMOBJ="\${top_srcdir}/include/wx/os2/wx.res"
19718       fi
19719                                     { echo "$as_me:$LINENO: checking for gcc/libc version" >&5
19720 echo $ECHO_N "checking for gcc/libc version... $ECHO_C" >&6; }
19721 if test "${wx_cv_gccversion+set}" = set; then
19722   echo $ECHO_N "(cached) $ECHO_C" >&6
19723 else
19724
19725           if test "$cross_compiling" = yes; then
19726                 wx_cv_gccversion="EMX2"
19727
19728 else
19729   cat >conftest.$ac_ext <<_ACEOF
19730 /* confdefs.h.  */
19731 _ACEOF
19732 cat confdefs.h >>conftest.$ac_ext
19733 cat >>conftest.$ac_ext <<_ACEOF
19734 /* end confdefs.h.  */
19735
19736                   #include <stdio.h>
19737
19738                   int main()
19739                   {
19740                       FILE *f=fopen("conftestval", "w");
19741                       if (!f) exit(1);
19742                       fprintf(f,
19743                   #if (__GNUC__ < 3)
19744                               "EMX2"
19745                   #elif (__GNUC__==3) && ((__GNUC_MINOR__ < 2) || ((__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__<2)))
19746                               "EMX3"
19747                   #elif (__GNUC__==3) && (__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__==2)
19748                               "Innotek5"
19749                   #else
19750                               "Innotek6"
19751                   #endif
19752                       );
19753                       exit(0);
19754                   }
19755
19756 _ACEOF
19757 rm -f conftest$ac_exeext
19758 if { (ac_try="$ac_link"
19759 case "(($ac_try" in
19760   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19761   *) ac_try_echo=$ac_try;;
19762 esac
19763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19764   (eval "$ac_link") 2>&5
19765   ac_status=$?
19766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19767   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19768   { (case "(($ac_try" in
19769   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19770   *) ac_try_echo=$ac_try;;
19771 esac
19772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19773   (eval "$ac_try") 2>&5
19774   ac_status=$?
19775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19776   (exit $ac_status); }; }; then
19777   wx_cv_gccversion=`cat conftestval`
19778 else
19779   echo "$as_me: program exited with status $ac_status" >&5
19780 echo "$as_me: failed program was:" >&5
19781 sed 's/^/| /' conftest.$ac_ext >&5
19782
19783 ( exit $ac_status )
19784 wx_cv_gccversion="EMX2"
19785 fi
19786 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19787 fi
19788
19789
19790
19791 fi
19792 { echo "$as_me:$LINENO: result: $wx_cv_gccversion" >&5
19793 echo "${ECHO_T}$wx_cv_gccversion" >&6; }
19794       if test "$wx_cv_gccversion" = "EMX2"; then
19795           LIBS="$LIBS -lstdcpp"
19796           LDFLAGS="$LDFLAGS -Zsysv-signals"
19797       else
19798           if test "$wx_cv_gccversion" = "EMX3"; then
19799               LIBS="$LIBS -lstdcxx -lgcc"
19800               LDFLAGS="$LDFLAGS -Zsysv-signals"
19801           else
19802               LIBS="$LIBS -lstdc++"
19803           fi
19804       fi
19805       if test "$wxUSE_SHARED" = "yes" -a "$wxUSE_OMF" = "no"; then
19806         { echo "$as_me:$LINENO: WARNING: Building DLLs requires OMF mode, enabled" >&5
19807 echo "$as_me: WARNING: Building DLLs requires OMF mode, enabled" >&2;}
19808         wxUSE_OMF=yes
19809         enable_omf=yes
19810       fi
19811         ;;
19812   *)
19813
19814       { echo "$as_me:$LINENO: checking for strcasecmp() in string.h" >&5
19815 echo $ECHO_N "checking for strcasecmp() in string.h... $ECHO_C" >&6; }
19816 if test "${ac_cv_string_strcasecmp+set}" = set; then
19817   echo $ECHO_N "(cached) $ECHO_C" >&6
19818 else
19819
19820           cat >conftest.$ac_ext <<_ACEOF
19821 /* confdefs.h.  */
19822 _ACEOF
19823 cat confdefs.h >>conftest.$ac_ext
19824 cat >>conftest.$ac_ext <<_ACEOF
19825 /* end confdefs.h.  */
19826
19827               #include <string.h>
19828
19829 int
19830 main ()
19831 {
19832
19833                   strcasecmp("foo", "bar");
19834
19835   ;
19836   return 0;
19837 }
19838 _ACEOF
19839 rm -f conftest.$ac_objext conftest$ac_exeext
19840 if { (ac_try="$ac_link"
19841 case "(($ac_try" in
19842   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19843   *) ac_try_echo=$ac_try;;
19844 esac
19845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19846   (eval "$ac_link") 2>conftest.er1
19847   ac_status=$?
19848   grep -v '^ *+' conftest.er1 >conftest.err
19849   rm -f conftest.er1
19850   cat conftest.err >&5
19851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19852   (exit $ac_status); } && {
19853          test -z "$ac_c_werror_flag" ||
19854          test ! -s conftest.err
19855        } && test -s conftest$ac_exeext &&
19856        $as_test_x conftest$ac_exeext; then
19857   ac_cv_string_strcasecmp=yes
19858 else
19859   echo "$as_me: failed program was:" >&5
19860 sed 's/^/| /' conftest.$ac_ext >&5
19861
19862         ac_cv_string_strcasecmp=no
19863
19864 fi
19865
19866 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19867       conftest$ac_exeext conftest.$ac_ext
19868
19869 fi
19870 { echo "$as_me:$LINENO: result: $ac_cv_string_strcasecmp" >&5
19871 echo "${ECHO_T}$ac_cv_string_strcasecmp" >&6; }
19872
19873       if test x"$ac_cv_string_strcasecmp" = "xyes"; then
19874           cat >>confdefs.h <<\_ACEOF
19875 #define HAVE_STRCASECMP_IN_STRING_H 1
19876 _ACEOF
19877
19878       else
19879           { echo "$as_me:$LINENO: checking for strcasecmp() in strings.h" >&5
19880 echo $ECHO_N "checking for strcasecmp() in strings.h... $ECHO_C" >&6; }
19881 if test "${ac_cv_strings_strcasecmp+set}" = set; then
19882   echo $ECHO_N "(cached) $ECHO_C" >&6
19883 else
19884
19885               cat >conftest.$ac_ext <<_ACEOF
19886 /* confdefs.h.  */
19887 _ACEOF
19888 cat confdefs.h >>conftest.$ac_ext
19889 cat >>conftest.$ac_ext <<_ACEOF
19890 /* end confdefs.h.  */
19891
19892                   #include <strings.h>
19893
19894 int
19895 main ()
19896 {
19897
19898                       strcasecmp("foo", "bar");
19899
19900   ;
19901   return 0;
19902 }
19903 _ACEOF
19904 rm -f conftest.$ac_objext conftest$ac_exeext
19905 if { (ac_try="$ac_link"
19906 case "(($ac_try" in
19907   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19908   *) ac_try_echo=$ac_try;;
19909 esac
19910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19911   (eval "$ac_link") 2>conftest.er1
19912   ac_status=$?
19913   grep -v '^ *+' conftest.er1 >conftest.err
19914   rm -f conftest.er1
19915   cat conftest.err >&5
19916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19917   (exit $ac_status); } && {
19918          test -z "$ac_c_werror_flag" ||
19919          test ! -s conftest.err
19920        } && test -s conftest$ac_exeext &&
19921        $as_test_x conftest$ac_exeext; then
19922   ac_cv_strings_strcasecmp=yes
19923 else
19924   echo "$as_me: failed program was:" >&5
19925 sed 's/^/| /' conftest.$ac_ext >&5
19926
19927         ac_cv_strings_strcasecmp=no
19928
19929 fi
19930
19931 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19932       conftest$ac_exeext conftest.$ac_ext
19933
19934 fi
19935 { echo "$as_me:$LINENO: result: $ac_cv_strings_strcasecmp" >&5
19936 echo "${ECHO_T}$ac_cv_strings_strcasecmp" >&6; }
19937
19938           if test x"$ac_cv_strings_strcasecmp" = "xyes"; then
19939               cat >>confdefs.h <<\_ACEOF
19940 #define HAVE_STRCASECMP_IN_STRINGS_H 1
19941 _ACEOF
19942
19943           else
19944               { { echo "$as_me:$LINENO: error: No case-insensitive string comparison function found." >&5
19945 echo "$as_me: error: No case-insensitive string comparison function found." >&2;}
19946    { (exit 1); exit 1; }; }
19947           fi
19948       fi
19949
19950         ;;
19951 esac
19952
19953
19954 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
19955 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
19956 if test "${ac_cv_header_stdc+set}" = set; then
19957   echo $ECHO_N "(cached) $ECHO_C" >&6
19958 else
19959   cat >conftest.$ac_ext <<_ACEOF
19960 /* confdefs.h.  */
19961 _ACEOF
19962 cat confdefs.h >>conftest.$ac_ext
19963 cat >>conftest.$ac_ext <<_ACEOF
19964 /* end confdefs.h.  */
19965 #include <stdlib.h>
19966 #include <stdarg.h>
19967 #include <string.h>
19968 #include <float.h>
19969
19970 int
19971 main ()
19972 {
19973
19974   ;
19975   return 0;
19976 }
19977 _ACEOF
19978 rm -f conftest.$ac_objext
19979 if { (ac_try="$ac_compile"
19980 case "(($ac_try" in
19981   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19982   *) ac_try_echo=$ac_try;;
19983 esac
19984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19985   (eval "$ac_compile") 2>conftest.er1
19986   ac_status=$?
19987   grep -v '^ *+' conftest.er1 >conftest.err
19988   rm -f conftest.er1
19989   cat conftest.err >&5
19990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19991   (exit $ac_status); } && {
19992          test -z "$ac_c_werror_flag" ||
19993          test ! -s conftest.err
19994        } && test -s conftest.$ac_objext; then
19995   ac_cv_header_stdc=yes
19996 else
19997   echo "$as_me: failed program was:" >&5
19998 sed 's/^/| /' conftest.$ac_ext >&5
19999
20000         ac_cv_header_stdc=no
20001 fi
20002
20003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20004
20005 if test $ac_cv_header_stdc = yes; then
20006   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
20007   cat >conftest.$ac_ext <<_ACEOF
20008 /* confdefs.h.  */
20009 _ACEOF
20010 cat confdefs.h >>conftest.$ac_ext
20011 cat >>conftest.$ac_ext <<_ACEOF
20012 /* end confdefs.h.  */
20013 #include <string.h>
20014
20015 _ACEOF
20016 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20017   $EGREP "memchr" >/dev/null 2>&1; then
20018   :
20019 else
20020   ac_cv_header_stdc=no
20021 fi
20022 rm -f conftest*
20023
20024 fi
20025
20026 if test $ac_cv_header_stdc = yes; then
20027   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
20028   cat >conftest.$ac_ext <<_ACEOF
20029 /* confdefs.h.  */
20030 _ACEOF
20031 cat confdefs.h >>conftest.$ac_ext
20032 cat >>conftest.$ac_ext <<_ACEOF
20033 /* end confdefs.h.  */
20034 #include <stdlib.h>
20035
20036 _ACEOF
20037 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20038   $EGREP "free" >/dev/null 2>&1; then
20039   :
20040 else
20041   ac_cv_header_stdc=no
20042 fi
20043 rm -f conftest*
20044
20045 fi
20046
20047 if test $ac_cv_header_stdc = yes; then
20048   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
20049   if test "$cross_compiling" = yes; then
20050   :
20051 else
20052   cat >conftest.$ac_ext <<_ACEOF
20053 /* confdefs.h.  */
20054 _ACEOF
20055 cat confdefs.h >>conftest.$ac_ext
20056 cat >>conftest.$ac_ext <<_ACEOF
20057 /* end confdefs.h.  */
20058 #include <ctype.h>
20059 #include <stdlib.h>
20060 #if ((' ' & 0x0FF) == 0x020)
20061 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20062 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20063 #else
20064 # define ISLOWER(c) \
20065                    (('a' <= (c) && (c) <= 'i') \
20066                      || ('j' <= (c) && (c) <= 'r') \
20067                      || ('s' <= (c) && (c) <= 'z'))
20068 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20069 #endif
20070
20071 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20072 int
20073 main ()
20074 {
20075   int i;
20076   for (i = 0; i < 256; i++)
20077     if (XOR (islower (i), ISLOWER (i))
20078         || toupper (i) != TOUPPER (i))
20079       return 2;
20080   return 0;
20081 }
20082 _ACEOF
20083 rm -f conftest$ac_exeext
20084 if { (ac_try="$ac_link"
20085 case "(($ac_try" in
20086   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20087   *) ac_try_echo=$ac_try;;
20088 esac
20089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20090   (eval "$ac_link") 2>&5
20091   ac_status=$?
20092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20093   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20094   { (case "(($ac_try" in
20095   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20096   *) ac_try_echo=$ac_try;;
20097 esac
20098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20099   (eval "$ac_try") 2>&5
20100   ac_status=$?
20101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20102   (exit $ac_status); }; }; then
20103   :
20104 else
20105   echo "$as_me: program exited with status $ac_status" >&5
20106 echo "$as_me: failed program was:" >&5
20107 sed 's/^/| /' conftest.$ac_ext >&5
20108
20109 ( exit $ac_status )
20110 ac_cv_header_stdc=no
20111 fi
20112 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20113 fi
20114
20115
20116 fi
20117 fi
20118 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
20119 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
20120 if test $ac_cv_header_stdc = yes; then
20121
20122 cat >>confdefs.h <<\_ACEOF
20123 #define STDC_HEADERS 1
20124 _ACEOF
20125
20126 fi
20127
20128 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
20129
20130
20131
20132
20133
20134
20135
20136
20137
20138 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
20139                   inttypes.h stdint.h unistd.h
20140 do
20141 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20142 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20143 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20144 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20145   echo $ECHO_N "(cached) $ECHO_C" >&6
20146 else
20147   cat >conftest.$ac_ext <<_ACEOF
20148 /* confdefs.h.  */
20149 _ACEOF
20150 cat confdefs.h >>conftest.$ac_ext
20151 cat >>conftest.$ac_ext <<_ACEOF
20152 /* end confdefs.h.  */
20153 $ac_includes_default
20154
20155 #include <$ac_header>
20156 _ACEOF
20157 rm -f conftest.$ac_objext
20158 if { (ac_try="$ac_compile"
20159 case "(($ac_try" in
20160   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20161   *) ac_try_echo=$ac_try;;
20162 esac
20163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20164   (eval "$ac_compile") 2>conftest.er1
20165   ac_status=$?
20166   grep -v '^ *+' conftest.er1 >conftest.err
20167   rm -f conftest.er1
20168   cat conftest.err >&5
20169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20170   (exit $ac_status); } && {
20171          test -z "$ac_c_werror_flag" ||
20172          test ! -s conftest.err
20173        } && test -s conftest.$ac_objext; then
20174   eval "$as_ac_Header=yes"
20175 else
20176   echo "$as_me: failed program was:" >&5
20177 sed 's/^/| /' conftest.$ac_ext >&5
20178
20179         eval "$as_ac_Header=no"
20180 fi
20181
20182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20183 fi
20184 ac_res=`eval echo '${'$as_ac_Header'}'`
20185                { echo "$as_me:$LINENO: result: $ac_res" >&5
20186 echo "${ECHO_T}$ac_res" >&6; }
20187 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20188   cat >>confdefs.h <<_ACEOF
20189 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20190 _ACEOF
20191
20192 fi
20193
20194 done
20195
20196
20197
20198
20199 for ac_header in langinfo.h wchar.h
20200 do
20201 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20202 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20203 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20204 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20205   echo $ECHO_N "(cached) $ECHO_C" >&6
20206 else
20207   cat >conftest.$ac_ext <<_ACEOF
20208 /* confdefs.h.  */
20209 _ACEOF
20210 cat confdefs.h >>conftest.$ac_ext
20211 cat >>conftest.$ac_ext <<_ACEOF
20212 /* end confdefs.h.  */
20213 $ac_includes_default
20214
20215 #include <$ac_header>
20216 _ACEOF
20217 rm -f conftest.$ac_objext
20218 if { (ac_try="$ac_compile"
20219 case "(($ac_try" in
20220   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20221   *) ac_try_echo=$ac_try;;
20222 esac
20223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20224   (eval "$ac_compile") 2>conftest.er1
20225   ac_status=$?
20226   grep -v '^ *+' conftest.er1 >conftest.err
20227   rm -f conftest.er1
20228   cat conftest.err >&5
20229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20230   (exit $ac_status); } && {
20231          test -z "$ac_c_werror_flag" ||
20232          test ! -s conftest.err
20233        } && test -s conftest.$ac_objext; then
20234   eval "$as_ac_Header=yes"
20235 else
20236   echo "$as_me: failed program was:" >&5
20237 sed 's/^/| /' conftest.$ac_ext >&5
20238
20239         eval "$as_ac_Header=no"
20240 fi
20241
20242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20243 fi
20244 ac_res=`eval echo '${'$as_ac_Header'}'`
20245                { echo "$as_me:$LINENO: result: $ac_res" >&5
20246 echo "${ECHO_T}$ac_res" >&6; }
20247 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20248   cat >>confdefs.h <<_ACEOF
20249 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20250 _ACEOF
20251
20252 fi
20253
20254 done
20255
20256
20257 if test "$ac_cv_header_wchar_h" != "yes"; then
20258
20259 for ac_header in wcstr.h
20260 do
20261 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20262 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20263 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20264 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20265   echo $ECHO_N "(cached) $ECHO_C" >&6
20266 else
20267   cat >conftest.$ac_ext <<_ACEOF
20268 /* confdefs.h.  */
20269 _ACEOF
20270 cat confdefs.h >>conftest.$ac_ext
20271 cat >>conftest.$ac_ext <<_ACEOF
20272 /* end confdefs.h.  */
20273 $ac_includes_default
20274
20275 #include <$ac_header>
20276 _ACEOF
20277 rm -f conftest.$ac_objext
20278 if { (ac_try="$ac_compile"
20279 case "(($ac_try" in
20280   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20281   *) ac_try_echo=$ac_try;;
20282 esac
20283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20284   (eval "$ac_compile") 2>conftest.er1
20285   ac_status=$?
20286   grep -v '^ *+' conftest.er1 >conftest.err
20287   rm -f conftest.er1
20288   cat conftest.err >&5
20289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20290   (exit $ac_status); } && {
20291          test -z "$ac_c_werror_flag" ||
20292          test ! -s conftest.err
20293        } && test -s conftest.$ac_objext; then
20294   eval "$as_ac_Header=yes"
20295 else
20296   echo "$as_me: failed program was:" >&5
20297 sed 's/^/| /' conftest.$ac_ext >&5
20298
20299         eval "$as_ac_Header=no"
20300 fi
20301
20302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20303 fi
20304 ac_res=`eval echo '${'$as_ac_Header'}'`
20305                { echo "$as_me:$LINENO: result: $ac_res" >&5
20306 echo "${ECHO_T}$ac_res" >&6; }
20307 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20308   cat >>confdefs.h <<_ACEOF
20309 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20310 _ACEOF
20311
20312 fi
20313
20314 done
20315
20316 fi
20317
20318 case "${host}" in
20319   *-pc-os2_emx | *-pc-os2-emx )
20320                   if test $ac_cv_header_langinfo_h = "yes" \
20321                 -a \(   "$wx_cv_gccversion" = "EMX2" \
20322                      -o "$wx_cv_gccversion" = "EMX3" \
20323                      -o "$wx_cv_gccversion" = "Innotek5" \); then
20324           LIBS="$LIBS -lintl"
20325       fi
20326   ;;
20327 esac
20328
20329 if test "$USE_UNIX" = 1 ; then
20330
20331 for ac_header in sys/select.h
20332 do
20333 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20334 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20335 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20336 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20337   echo $ECHO_N "(cached) $ECHO_C" >&6
20338 else
20339   cat >conftest.$ac_ext <<_ACEOF
20340 /* confdefs.h.  */
20341 _ACEOF
20342 cat confdefs.h >>conftest.$ac_ext
20343 cat >>conftest.$ac_ext <<_ACEOF
20344 /* end confdefs.h.  */
20345 $ac_includes_default
20346
20347 #include <$ac_header>
20348 _ACEOF
20349 rm -f conftest.$ac_objext
20350 if { (ac_try="$ac_compile"
20351 case "(($ac_try" in
20352   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20353   *) ac_try_echo=$ac_try;;
20354 esac
20355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20356   (eval "$ac_compile") 2>conftest.er1
20357   ac_status=$?
20358   grep -v '^ *+' conftest.er1 >conftest.err
20359   rm -f conftest.er1
20360   cat conftest.err >&5
20361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20362   (exit $ac_status); } && {
20363          test -z "$ac_c_werror_flag" ||
20364          test ! -s conftest.err
20365        } && test -s conftest.$ac_objext; then
20366   eval "$as_ac_Header=yes"
20367 else
20368   echo "$as_me: failed program was:" >&5
20369 sed 's/^/| /' conftest.$ac_ext >&5
20370
20371         eval "$as_ac_Header=no"
20372 fi
20373
20374 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20375 fi
20376 ac_res=`eval echo '${'$as_ac_Header'}'`
20377                { echo "$as_me:$LINENO: result: $ac_res" >&5
20378 echo "${ECHO_T}$ac_res" >&6; }
20379 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20380   cat >>confdefs.h <<_ACEOF
20381 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20382 _ACEOF
20383
20384 fi
20385
20386 done
20387
20388 fi
20389
20390
20391 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
20392 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
20393 if test "${ac_cv_c_const+set}" = set; then
20394   echo $ECHO_N "(cached) $ECHO_C" >&6
20395 else
20396   cat >conftest.$ac_ext <<_ACEOF
20397 /* confdefs.h.  */
20398 _ACEOF
20399 cat confdefs.h >>conftest.$ac_ext
20400 cat >>conftest.$ac_ext <<_ACEOF
20401 /* end confdefs.h.  */
20402
20403 int
20404 main ()
20405 {
20406 /* FIXME: Include the comments suggested by Paul. */
20407 #ifndef __cplusplus
20408   /* Ultrix mips cc rejects this.  */
20409   typedef int charset[2];
20410   const charset cs;
20411   /* SunOS 4.1.1 cc rejects this.  */
20412   char const *const *pcpcc;
20413   char **ppc;
20414   /* NEC SVR4.0.2 mips cc rejects this.  */
20415   struct point {int x, y;};
20416   static struct point const zero = {0,0};
20417   /* AIX XL C 1.02.0.0 rejects this.
20418      It does not let you subtract one const X* pointer from another in
20419      an arm of an if-expression whose if-part is not a constant
20420      expression */
20421   const char *g = "string";
20422   pcpcc = &g + (g ? g-g : 0);
20423   /* HPUX 7.0 cc rejects these. */
20424   ++pcpcc;
20425   ppc = (char**) pcpcc;
20426   pcpcc = (char const *const *) ppc;
20427   { /* SCO 3.2v4 cc rejects this.  */
20428     char *t;
20429     char const *s = 0 ? (char *) 0 : (char const *) 0;
20430
20431     *t++ = 0;
20432     if (s) return 0;
20433   }
20434   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
20435     int x[] = {25, 17};
20436     const int *foo = &x[0];
20437     ++foo;
20438   }
20439   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
20440     typedef const int *iptr;
20441     iptr p = 0;
20442     ++p;
20443   }
20444   { /* AIX XL C 1.02.0.0 rejects this saying
20445        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
20446     struct s { int j; const int *ap[3]; };
20447     struct s *b; b->j = 5;
20448   }
20449   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
20450     const int foo = 10;
20451     if (!foo) return 0;
20452   }
20453   return !cs[0] && !zero.x;
20454 #endif
20455
20456   ;
20457   return 0;
20458 }
20459 _ACEOF
20460 rm -f conftest.$ac_objext
20461 if { (ac_try="$ac_compile"
20462 case "(($ac_try" in
20463   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20464   *) ac_try_echo=$ac_try;;
20465 esac
20466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20467   (eval "$ac_compile") 2>conftest.er1
20468   ac_status=$?
20469   grep -v '^ *+' conftest.er1 >conftest.err
20470   rm -f conftest.er1
20471   cat conftest.err >&5
20472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20473   (exit $ac_status); } && {
20474          test -z "$ac_c_werror_flag" ||
20475          test ! -s conftest.err
20476        } && test -s conftest.$ac_objext; then
20477   ac_cv_c_const=yes
20478 else
20479   echo "$as_me: failed program was:" >&5
20480 sed 's/^/| /' conftest.$ac_ext >&5
20481
20482         ac_cv_c_const=no
20483 fi
20484
20485 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20486 fi
20487 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
20488 echo "${ECHO_T}$ac_cv_c_const" >&6; }
20489 if test $ac_cv_c_const = no; then
20490
20491 cat >>confdefs.h <<\_ACEOF
20492 #define const
20493 _ACEOF
20494
20495 fi
20496
20497 { echo "$as_me:$LINENO: checking for inline" >&5
20498 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
20499 if test "${ac_cv_c_inline+set}" = set; then
20500   echo $ECHO_N "(cached) $ECHO_C" >&6
20501 else
20502   ac_cv_c_inline=no
20503 for ac_kw in inline __inline__ __inline; do
20504   cat >conftest.$ac_ext <<_ACEOF
20505 /* confdefs.h.  */
20506 _ACEOF
20507 cat confdefs.h >>conftest.$ac_ext
20508 cat >>conftest.$ac_ext <<_ACEOF
20509 /* end confdefs.h.  */
20510 #ifndef __cplusplus
20511 typedef int foo_t;
20512 static $ac_kw foo_t static_foo () {return 0; }
20513 $ac_kw foo_t foo () {return 0; }
20514 #endif
20515
20516 _ACEOF
20517 rm -f conftest.$ac_objext
20518 if { (ac_try="$ac_compile"
20519 case "(($ac_try" in
20520   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20521   *) ac_try_echo=$ac_try;;
20522 esac
20523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20524   (eval "$ac_compile") 2>conftest.er1
20525   ac_status=$?
20526   grep -v '^ *+' conftest.er1 >conftest.err
20527   rm -f conftest.er1
20528   cat conftest.err >&5
20529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20530   (exit $ac_status); } && {
20531          test -z "$ac_c_werror_flag" ||
20532          test ! -s conftest.err
20533        } && test -s conftest.$ac_objext; then
20534   ac_cv_c_inline=$ac_kw
20535 else
20536   echo "$as_me: failed program was:" >&5
20537 sed 's/^/| /' conftest.$ac_ext >&5
20538
20539
20540 fi
20541
20542 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20543   test "$ac_cv_c_inline" != no && break
20544 done
20545
20546 fi
20547 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
20548 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
20549
20550
20551 case $ac_cv_c_inline in
20552   inline | yes) ;;
20553   *)
20554     case $ac_cv_c_inline in
20555       no) ac_val=;;
20556       *) ac_val=$ac_cv_c_inline;;
20557     esac
20558     cat >>confdefs.h <<_ACEOF
20559 #ifndef __cplusplus
20560 #define inline $ac_val
20561 #endif
20562 _ACEOF
20563     ;;
20564 esac
20565
20566
20567 { echo "$as_me:$LINENO: checking for short" >&5
20568 echo $ECHO_N "checking for short... $ECHO_C" >&6; }
20569 if test "${ac_cv_type_short+set}" = set; then
20570   echo $ECHO_N "(cached) $ECHO_C" >&6
20571 else
20572   cat >conftest.$ac_ext <<_ACEOF
20573 /* confdefs.h.  */
20574 _ACEOF
20575 cat confdefs.h >>conftest.$ac_ext
20576 cat >>conftest.$ac_ext <<_ACEOF
20577 /* end confdefs.h.  */
20578 $ac_includes_default
20579 typedef short ac__type_new_;
20580 int
20581 main ()
20582 {
20583 if ((ac__type_new_ *) 0)
20584   return 0;
20585 if (sizeof (ac__type_new_))
20586   return 0;
20587   ;
20588   return 0;
20589 }
20590 _ACEOF
20591 rm -f conftest.$ac_objext
20592 if { (ac_try="$ac_compile"
20593 case "(($ac_try" in
20594   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20595   *) ac_try_echo=$ac_try;;
20596 esac
20597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20598   (eval "$ac_compile") 2>conftest.er1
20599   ac_status=$?
20600   grep -v '^ *+' conftest.er1 >conftest.err
20601   rm -f conftest.er1
20602   cat conftest.err >&5
20603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20604   (exit $ac_status); } && {
20605          test -z "$ac_c_werror_flag" ||
20606          test ! -s conftest.err
20607        } && test -s conftest.$ac_objext; then
20608   ac_cv_type_short=yes
20609 else
20610   echo "$as_me: failed program was:" >&5
20611 sed 's/^/| /' conftest.$ac_ext >&5
20612
20613         ac_cv_type_short=no
20614 fi
20615
20616 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20617 fi
20618 { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
20619 echo "${ECHO_T}$ac_cv_type_short" >&6; }
20620
20621 # The cast to long int works around a bug in the HP C Compiler
20622 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20623 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20624 # This bug is HP SR number 8606223364.
20625 { echo "$as_me:$LINENO: checking size of short" >&5
20626 echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
20627 if test "${ac_cv_sizeof_short+set}" = set; then
20628   echo $ECHO_N "(cached) $ECHO_C" >&6
20629 else
20630   if test "$cross_compiling" = yes; then
20631   # Depending upon the size, compute the lo and hi bounds.
20632 cat >conftest.$ac_ext <<_ACEOF
20633 /* confdefs.h.  */
20634 _ACEOF
20635 cat confdefs.h >>conftest.$ac_ext
20636 cat >>conftest.$ac_ext <<_ACEOF
20637 /* end confdefs.h.  */
20638 $ac_includes_default
20639    typedef short ac__type_sizeof_;
20640 int
20641 main ()
20642 {
20643 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
20644 test_array [0] = 0
20645
20646   ;
20647   return 0;
20648 }
20649 _ACEOF
20650 rm -f conftest.$ac_objext
20651 if { (ac_try="$ac_compile"
20652 case "(($ac_try" in
20653   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20654   *) ac_try_echo=$ac_try;;
20655 esac
20656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20657   (eval "$ac_compile") 2>conftest.er1
20658   ac_status=$?
20659   grep -v '^ *+' conftest.er1 >conftest.err
20660   rm -f conftest.er1
20661   cat conftest.err >&5
20662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20663   (exit $ac_status); } && {
20664          test -z "$ac_c_werror_flag" ||
20665          test ! -s conftest.err
20666        } && test -s conftest.$ac_objext; then
20667   ac_lo=0 ac_mid=0
20668   while :; do
20669     cat >conftest.$ac_ext <<_ACEOF
20670 /* confdefs.h.  */
20671 _ACEOF
20672 cat confdefs.h >>conftest.$ac_ext
20673 cat >>conftest.$ac_ext <<_ACEOF
20674 /* end confdefs.h.  */
20675 $ac_includes_default
20676    typedef short ac__type_sizeof_;
20677 int
20678 main ()
20679 {
20680 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
20681 test_array [0] = 0
20682
20683   ;
20684   return 0;
20685 }
20686 _ACEOF
20687 rm -f conftest.$ac_objext
20688 if { (ac_try="$ac_compile"
20689 case "(($ac_try" in
20690   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20691   *) ac_try_echo=$ac_try;;
20692 esac
20693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20694   (eval "$ac_compile") 2>conftest.er1
20695   ac_status=$?
20696   grep -v '^ *+' conftest.er1 >conftest.err
20697   rm -f conftest.er1
20698   cat conftest.err >&5
20699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20700   (exit $ac_status); } && {
20701          test -z "$ac_c_werror_flag" ||
20702          test ! -s conftest.err
20703        } && test -s conftest.$ac_objext; then
20704   ac_hi=$ac_mid; break
20705 else
20706   echo "$as_me: failed program was:" >&5
20707 sed 's/^/| /' conftest.$ac_ext >&5
20708
20709         ac_lo=`expr $ac_mid + 1`
20710                         if test $ac_lo -le $ac_mid; then
20711                           ac_lo= ac_hi=
20712                           break
20713                         fi
20714                         ac_mid=`expr 2 '*' $ac_mid + 1`
20715 fi
20716
20717 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20718   done
20719 else
20720   echo "$as_me: failed program was:" >&5
20721 sed 's/^/| /' conftest.$ac_ext >&5
20722
20723         cat >conftest.$ac_ext <<_ACEOF
20724 /* confdefs.h.  */
20725 _ACEOF
20726 cat confdefs.h >>conftest.$ac_ext
20727 cat >>conftest.$ac_ext <<_ACEOF
20728 /* end confdefs.h.  */
20729 $ac_includes_default
20730    typedef short ac__type_sizeof_;
20731 int
20732 main ()
20733 {
20734 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
20735 test_array [0] = 0
20736
20737   ;
20738   return 0;
20739 }
20740 _ACEOF
20741 rm -f conftest.$ac_objext
20742 if { (ac_try="$ac_compile"
20743 case "(($ac_try" in
20744   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20745   *) ac_try_echo=$ac_try;;
20746 esac
20747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20748   (eval "$ac_compile") 2>conftest.er1
20749   ac_status=$?
20750   grep -v '^ *+' conftest.er1 >conftest.err
20751   rm -f conftest.er1
20752   cat conftest.err >&5
20753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20754   (exit $ac_status); } && {
20755          test -z "$ac_c_werror_flag" ||
20756          test ! -s conftest.err
20757        } && test -s conftest.$ac_objext; then
20758   ac_hi=-1 ac_mid=-1
20759   while :; do
20760     cat >conftest.$ac_ext <<_ACEOF
20761 /* confdefs.h.  */
20762 _ACEOF
20763 cat confdefs.h >>conftest.$ac_ext
20764 cat >>conftest.$ac_ext <<_ACEOF
20765 /* end confdefs.h.  */
20766 $ac_includes_default
20767    typedef short ac__type_sizeof_;
20768 int
20769 main ()
20770 {
20771 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
20772 test_array [0] = 0
20773
20774   ;
20775   return 0;
20776 }
20777 _ACEOF
20778 rm -f conftest.$ac_objext
20779 if { (ac_try="$ac_compile"
20780 case "(($ac_try" in
20781   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20782   *) ac_try_echo=$ac_try;;
20783 esac
20784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20785   (eval "$ac_compile") 2>conftest.er1
20786   ac_status=$?
20787   grep -v '^ *+' conftest.er1 >conftest.err
20788   rm -f conftest.er1
20789   cat conftest.err >&5
20790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20791   (exit $ac_status); } && {
20792          test -z "$ac_c_werror_flag" ||
20793          test ! -s conftest.err
20794        } && test -s conftest.$ac_objext; then
20795   ac_lo=$ac_mid; break
20796 else
20797   echo "$as_me: failed program was:" >&5
20798 sed 's/^/| /' conftest.$ac_ext >&5
20799
20800         ac_hi=`expr '(' $ac_mid ')' - 1`
20801                         if test $ac_mid -le $ac_hi; then
20802                           ac_lo= ac_hi=
20803                           break
20804                         fi
20805                         ac_mid=`expr 2 '*' $ac_mid`
20806 fi
20807
20808 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20809   done
20810 else
20811   echo "$as_me: failed program was:" >&5
20812 sed 's/^/| /' conftest.$ac_ext >&5
20813
20814         ac_lo= ac_hi=
20815 fi
20816
20817 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20818 fi
20819
20820 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20821 # Binary search between lo and hi bounds.
20822 while test "x$ac_lo" != "x$ac_hi"; do
20823   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20824   cat >conftest.$ac_ext <<_ACEOF
20825 /* confdefs.h.  */
20826 _ACEOF
20827 cat confdefs.h >>conftest.$ac_ext
20828 cat >>conftest.$ac_ext <<_ACEOF
20829 /* end confdefs.h.  */
20830 $ac_includes_default
20831    typedef short ac__type_sizeof_;
20832 int
20833 main ()
20834 {
20835 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
20836 test_array [0] = 0
20837
20838   ;
20839   return 0;
20840 }
20841 _ACEOF
20842 rm -f conftest.$ac_objext
20843 if { (ac_try="$ac_compile"
20844 case "(($ac_try" in
20845   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20846   *) ac_try_echo=$ac_try;;
20847 esac
20848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20849   (eval "$ac_compile") 2>conftest.er1
20850   ac_status=$?
20851   grep -v '^ *+' conftest.er1 >conftest.err
20852   rm -f conftest.er1
20853   cat conftest.err >&5
20854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20855   (exit $ac_status); } && {
20856          test -z "$ac_c_werror_flag" ||
20857          test ! -s conftest.err
20858        } && test -s conftest.$ac_objext; then
20859   ac_hi=$ac_mid
20860 else
20861   echo "$as_me: failed program was:" >&5
20862 sed 's/^/| /' conftest.$ac_ext >&5
20863
20864         ac_lo=`expr '(' $ac_mid ')' + 1`
20865 fi
20866
20867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20868 done
20869 case $ac_lo in
20870 ?*) ac_cv_sizeof_short=$ac_lo;;
20871 '') if test "$ac_cv_type_short" = yes; then
20872      { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
20873 See \`config.log' for more details." >&5
20874 echo "$as_me: error: cannot compute sizeof (short)
20875 See \`config.log' for more details." >&2;}
20876    { (exit 77); exit 77; }; }
20877    else
20878      ac_cv_sizeof_short=0
20879    fi ;;
20880 esac
20881 else
20882   cat >conftest.$ac_ext <<_ACEOF
20883 /* confdefs.h.  */
20884 _ACEOF
20885 cat confdefs.h >>conftest.$ac_ext
20886 cat >>conftest.$ac_ext <<_ACEOF
20887 /* end confdefs.h.  */
20888 $ac_includes_default
20889    typedef short ac__type_sizeof_;
20890 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
20891 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
20892 #include <stdio.h>
20893 #include <stdlib.h>
20894 int
20895 main ()
20896 {
20897
20898   FILE *f = fopen ("conftest.val", "w");
20899   if (! f)
20900     return 1;
20901   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
20902     {
20903       long int i = longval ();
20904       if (i != ((long int) (sizeof (ac__type_sizeof_))))
20905         return 1;
20906       fprintf (f, "%ld\n", i);
20907     }
20908   else
20909     {
20910       unsigned long int i = ulongval ();
20911       if (i != ((long int) (sizeof (ac__type_sizeof_))))
20912         return 1;
20913       fprintf (f, "%lu\n", i);
20914     }
20915   return ferror (f) || fclose (f) != 0;
20916
20917   ;
20918   return 0;
20919 }
20920 _ACEOF
20921 rm -f conftest$ac_exeext
20922 if { (ac_try="$ac_link"
20923 case "(($ac_try" in
20924   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20925   *) ac_try_echo=$ac_try;;
20926 esac
20927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20928   (eval "$ac_link") 2>&5
20929   ac_status=$?
20930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20931   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20932   { (case "(($ac_try" in
20933   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20934   *) ac_try_echo=$ac_try;;
20935 esac
20936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20937   (eval "$ac_try") 2>&5
20938   ac_status=$?
20939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20940   (exit $ac_status); }; }; then
20941   ac_cv_sizeof_short=`cat conftest.val`
20942 else
20943   echo "$as_me: program exited with status $ac_status" >&5
20944 echo "$as_me: failed program was:" >&5
20945 sed 's/^/| /' conftest.$ac_ext >&5
20946
20947 ( exit $ac_status )
20948 if test "$ac_cv_type_short" = yes; then
20949      { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
20950 See \`config.log' for more details." >&5
20951 echo "$as_me: error: cannot compute sizeof (short)
20952 See \`config.log' for more details." >&2;}
20953    { (exit 77); exit 77; }; }
20954    else
20955      ac_cv_sizeof_short=0
20956    fi
20957 fi
20958 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20959 fi
20960 rm -f conftest.val
20961 fi
20962 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
20963 echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
20964
20965
20966
20967 cat >>confdefs.h <<_ACEOF
20968 #define SIZEOF_SHORT $ac_cv_sizeof_short
20969 _ACEOF
20970
20971
20972 { echo "$as_me:$LINENO: checking for void *" >&5
20973 echo $ECHO_N "checking for void *... $ECHO_C" >&6; }
20974 if test "${ac_cv_type_void_p+set}" = set; then
20975   echo $ECHO_N "(cached) $ECHO_C" >&6
20976 else
20977   cat >conftest.$ac_ext <<_ACEOF
20978 /* confdefs.h.  */
20979 _ACEOF
20980 cat confdefs.h >>conftest.$ac_ext
20981 cat >>conftest.$ac_ext <<_ACEOF
20982 /* end confdefs.h.  */
20983 $ac_includes_default
20984 typedef void * ac__type_new_;
20985 int
20986 main ()
20987 {
20988 if ((ac__type_new_ *) 0)
20989   return 0;
20990 if (sizeof (ac__type_new_))
20991   return 0;
20992   ;
20993   return 0;
20994 }
20995 _ACEOF
20996 rm -f conftest.$ac_objext
20997 if { (ac_try="$ac_compile"
20998 case "(($ac_try" in
20999   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21000   *) ac_try_echo=$ac_try;;
21001 esac
21002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21003   (eval "$ac_compile") 2>conftest.er1
21004   ac_status=$?
21005   grep -v '^ *+' conftest.er1 >conftest.err
21006   rm -f conftest.er1
21007   cat conftest.err >&5
21008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21009   (exit $ac_status); } && {
21010          test -z "$ac_c_werror_flag" ||
21011          test ! -s conftest.err
21012        } && test -s conftest.$ac_objext; then
21013   ac_cv_type_void_p=yes
21014 else
21015   echo "$as_me: failed program was:" >&5
21016 sed 's/^/| /' conftest.$ac_ext >&5
21017
21018         ac_cv_type_void_p=no
21019 fi
21020
21021 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21022 fi
21023 { echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
21024 echo "${ECHO_T}$ac_cv_type_void_p" >&6; }
21025
21026 # The cast to long int works around a bug in the HP C Compiler
21027 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21028 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21029 # This bug is HP SR number 8606223364.
21030 { echo "$as_me:$LINENO: checking size of void *" >&5
21031 echo $ECHO_N "checking size of void *... $ECHO_C" >&6; }
21032 if test "${ac_cv_sizeof_void_p+set}" = set; then
21033   echo $ECHO_N "(cached) $ECHO_C" >&6
21034 else
21035   if test "$cross_compiling" = yes; then
21036   # Depending upon the size, compute the lo and hi bounds.
21037 cat >conftest.$ac_ext <<_ACEOF
21038 /* confdefs.h.  */
21039 _ACEOF
21040 cat confdefs.h >>conftest.$ac_ext
21041 cat >>conftest.$ac_ext <<_ACEOF
21042 /* end confdefs.h.  */
21043 $ac_includes_default
21044    typedef void * ac__type_sizeof_;
21045 int
21046 main ()
21047 {
21048 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
21049 test_array [0] = 0
21050
21051   ;
21052   return 0;
21053 }
21054 _ACEOF
21055 rm -f conftest.$ac_objext
21056 if { (ac_try="$ac_compile"
21057 case "(($ac_try" in
21058   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21059   *) ac_try_echo=$ac_try;;
21060 esac
21061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21062   (eval "$ac_compile") 2>conftest.er1
21063   ac_status=$?
21064   grep -v '^ *+' conftest.er1 >conftest.err
21065   rm -f conftest.er1
21066   cat conftest.err >&5
21067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21068   (exit $ac_status); } && {
21069          test -z "$ac_c_werror_flag" ||
21070          test ! -s conftest.err
21071        } && test -s conftest.$ac_objext; then
21072   ac_lo=0 ac_mid=0
21073   while :; do
21074     cat >conftest.$ac_ext <<_ACEOF
21075 /* confdefs.h.  */
21076 _ACEOF
21077 cat confdefs.h >>conftest.$ac_ext
21078 cat >>conftest.$ac_ext <<_ACEOF
21079 /* end confdefs.h.  */
21080 $ac_includes_default
21081    typedef void * ac__type_sizeof_;
21082 int
21083 main ()
21084 {
21085 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21086 test_array [0] = 0
21087
21088   ;
21089   return 0;
21090 }
21091 _ACEOF
21092 rm -f conftest.$ac_objext
21093 if { (ac_try="$ac_compile"
21094 case "(($ac_try" in
21095   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21096   *) ac_try_echo=$ac_try;;
21097 esac
21098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21099   (eval "$ac_compile") 2>conftest.er1
21100   ac_status=$?
21101   grep -v '^ *+' conftest.er1 >conftest.err
21102   rm -f conftest.er1
21103   cat conftest.err >&5
21104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21105   (exit $ac_status); } && {
21106          test -z "$ac_c_werror_flag" ||
21107          test ! -s conftest.err
21108        } && test -s conftest.$ac_objext; then
21109   ac_hi=$ac_mid; break
21110 else
21111   echo "$as_me: failed program was:" >&5
21112 sed 's/^/| /' conftest.$ac_ext >&5
21113
21114         ac_lo=`expr $ac_mid + 1`
21115                         if test $ac_lo -le $ac_mid; then
21116                           ac_lo= ac_hi=
21117                           break
21118                         fi
21119                         ac_mid=`expr 2 '*' $ac_mid + 1`
21120 fi
21121
21122 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21123   done
21124 else
21125   echo "$as_me: failed program was:" >&5
21126 sed 's/^/| /' conftest.$ac_ext >&5
21127
21128         cat >conftest.$ac_ext <<_ACEOF
21129 /* confdefs.h.  */
21130 _ACEOF
21131 cat confdefs.h >>conftest.$ac_ext
21132 cat >>conftest.$ac_ext <<_ACEOF
21133 /* end confdefs.h.  */
21134 $ac_includes_default
21135    typedef void * ac__type_sizeof_;
21136 int
21137 main ()
21138 {
21139 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
21140 test_array [0] = 0
21141
21142   ;
21143   return 0;
21144 }
21145 _ACEOF
21146 rm -f conftest.$ac_objext
21147 if { (ac_try="$ac_compile"
21148 case "(($ac_try" in
21149   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21150   *) ac_try_echo=$ac_try;;
21151 esac
21152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21153   (eval "$ac_compile") 2>conftest.er1
21154   ac_status=$?
21155   grep -v '^ *+' conftest.er1 >conftest.err
21156   rm -f conftest.er1
21157   cat conftest.err >&5
21158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21159   (exit $ac_status); } && {
21160          test -z "$ac_c_werror_flag" ||
21161          test ! -s conftest.err
21162        } && test -s conftest.$ac_objext; then
21163   ac_hi=-1 ac_mid=-1
21164   while :; do
21165     cat >conftest.$ac_ext <<_ACEOF
21166 /* confdefs.h.  */
21167 _ACEOF
21168 cat confdefs.h >>conftest.$ac_ext
21169 cat >>conftest.$ac_ext <<_ACEOF
21170 /* end confdefs.h.  */
21171 $ac_includes_default
21172    typedef void * ac__type_sizeof_;
21173 int
21174 main ()
21175 {
21176 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
21177 test_array [0] = 0
21178
21179   ;
21180   return 0;
21181 }
21182 _ACEOF
21183 rm -f conftest.$ac_objext
21184 if { (ac_try="$ac_compile"
21185 case "(($ac_try" in
21186   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21187   *) ac_try_echo=$ac_try;;
21188 esac
21189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21190   (eval "$ac_compile") 2>conftest.er1
21191   ac_status=$?
21192   grep -v '^ *+' conftest.er1 >conftest.err
21193   rm -f conftest.er1
21194   cat conftest.err >&5
21195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21196   (exit $ac_status); } && {
21197          test -z "$ac_c_werror_flag" ||
21198          test ! -s conftest.err
21199        } && test -s conftest.$ac_objext; then
21200   ac_lo=$ac_mid; break
21201 else
21202   echo "$as_me: failed program was:" >&5
21203 sed 's/^/| /' conftest.$ac_ext >&5
21204
21205         ac_hi=`expr '(' $ac_mid ')' - 1`
21206                         if test $ac_mid -le $ac_hi; then
21207                           ac_lo= ac_hi=
21208                           break
21209                         fi
21210                         ac_mid=`expr 2 '*' $ac_mid`
21211 fi
21212
21213 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21214   done
21215 else
21216   echo "$as_me: failed program was:" >&5
21217 sed 's/^/| /' conftest.$ac_ext >&5
21218
21219         ac_lo= ac_hi=
21220 fi
21221
21222 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21223 fi
21224
21225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21226 # Binary search between lo and hi bounds.
21227 while test "x$ac_lo" != "x$ac_hi"; do
21228   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21229   cat >conftest.$ac_ext <<_ACEOF
21230 /* confdefs.h.  */
21231 _ACEOF
21232 cat confdefs.h >>conftest.$ac_ext
21233 cat >>conftest.$ac_ext <<_ACEOF
21234 /* end confdefs.h.  */
21235 $ac_includes_default
21236    typedef void * ac__type_sizeof_;
21237 int
21238 main ()
21239 {
21240 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21241 test_array [0] = 0
21242
21243   ;
21244   return 0;
21245 }
21246 _ACEOF
21247 rm -f conftest.$ac_objext
21248 if { (ac_try="$ac_compile"
21249 case "(($ac_try" in
21250   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21251   *) ac_try_echo=$ac_try;;
21252 esac
21253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21254   (eval "$ac_compile") 2>conftest.er1
21255   ac_status=$?
21256   grep -v '^ *+' conftest.er1 >conftest.err
21257   rm -f conftest.er1
21258   cat conftest.err >&5
21259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21260   (exit $ac_status); } && {
21261          test -z "$ac_c_werror_flag" ||
21262          test ! -s conftest.err
21263        } && test -s conftest.$ac_objext; then
21264   ac_hi=$ac_mid
21265 else
21266   echo "$as_me: failed program was:" >&5
21267 sed 's/^/| /' conftest.$ac_ext >&5
21268
21269         ac_lo=`expr '(' $ac_mid ')' + 1`
21270 fi
21271
21272 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21273 done
21274 case $ac_lo in
21275 ?*) ac_cv_sizeof_void_p=$ac_lo;;
21276 '') if test "$ac_cv_type_void_p" = yes; then
21277      { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
21278 See \`config.log' for more details." >&5
21279 echo "$as_me: error: cannot compute sizeof (void *)
21280 See \`config.log' for more details." >&2;}
21281    { (exit 77); exit 77; }; }
21282    else
21283      ac_cv_sizeof_void_p=0
21284    fi ;;
21285 esac
21286 else
21287   cat >conftest.$ac_ext <<_ACEOF
21288 /* confdefs.h.  */
21289 _ACEOF
21290 cat confdefs.h >>conftest.$ac_ext
21291 cat >>conftest.$ac_ext <<_ACEOF
21292 /* end confdefs.h.  */
21293 $ac_includes_default
21294    typedef void * ac__type_sizeof_;
21295 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
21296 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
21297 #include <stdio.h>
21298 #include <stdlib.h>
21299 int
21300 main ()
21301 {
21302
21303   FILE *f = fopen ("conftest.val", "w");
21304   if (! f)
21305     return 1;
21306   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
21307     {
21308       long int i = longval ();
21309       if (i != ((long int) (sizeof (ac__type_sizeof_))))
21310         return 1;
21311       fprintf (f, "%ld\n", i);
21312     }
21313   else
21314     {
21315       unsigned long int i = ulongval ();
21316       if (i != ((long int) (sizeof (ac__type_sizeof_))))
21317         return 1;
21318       fprintf (f, "%lu\n", i);
21319     }
21320   return ferror (f) || fclose (f) != 0;
21321
21322   ;
21323   return 0;
21324 }
21325 _ACEOF
21326 rm -f conftest$ac_exeext
21327 if { (ac_try="$ac_link"
21328 case "(($ac_try" in
21329   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21330   *) ac_try_echo=$ac_try;;
21331 esac
21332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21333   (eval "$ac_link") 2>&5
21334   ac_status=$?
21335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21336   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21337   { (case "(($ac_try" in
21338   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21339   *) ac_try_echo=$ac_try;;
21340 esac
21341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21342   (eval "$ac_try") 2>&5
21343   ac_status=$?
21344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21345   (exit $ac_status); }; }; then
21346   ac_cv_sizeof_void_p=`cat conftest.val`
21347 else
21348   echo "$as_me: program exited with status $ac_status" >&5
21349 echo "$as_me: failed program was:" >&5
21350 sed 's/^/| /' conftest.$ac_ext >&5
21351
21352 ( exit $ac_status )
21353 if test "$ac_cv_type_void_p" = yes; then
21354      { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
21355 See \`config.log' for more details." >&5
21356 echo "$as_me: error: cannot compute sizeof (void *)
21357 See \`config.log' for more details." >&2;}
21358    { (exit 77); exit 77; }; }
21359    else
21360      ac_cv_sizeof_void_p=0
21361    fi
21362 fi
21363 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21364 fi
21365 rm -f conftest.val
21366 fi
21367 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
21368 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6; }
21369
21370
21371
21372 cat >>confdefs.h <<_ACEOF
21373 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
21374 _ACEOF
21375
21376
21377 { echo "$as_me:$LINENO: checking for int" >&5
21378 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
21379 if test "${ac_cv_type_int+set}" = set; then
21380   echo $ECHO_N "(cached) $ECHO_C" >&6
21381 else
21382   cat >conftest.$ac_ext <<_ACEOF
21383 /* confdefs.h.  */
21384 _ACEOF
21385 cat confdefs.h >>conftest.$ac_ext
21386 cat >>conftest.$ac_ext <<_ACEOF
21387 /* end confdefs.h.  */
21388 $ac_includes_default
21389 typedef int ac__type_new_;
21390 int
21391 main ()
21392 {
21393 if ((ac__type_new_ *) 0)
21394   return 0;
21395 if (sizeof (ac__type_new_))
21396   return 0;
21397   ;
21398   return 0;
21399 }
21400 _ACEOF
21401 rm -f conftest.$ac_objext
21402 if { (ac_try="$ac_compile"
21403 case "(($ac_try" in
21404   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21405   *) ac_try_echo=$ac_try;;
21406 esac
21407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21408   (eval "$ac_compile") 2>conftest.er1
21409   ac_status=$?
21410   grep -v '^ *+' conftest.er1 >conftest.err
21411   rm -f conftest.er1
21412   cat conftest.err >&5
21413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21414   (exit $ac_status); } && {
21415          test -z "$ac_c_werror_flag" ||
21416          test ! -s conftest.err
21417        } && test -s conftest.$ac_objext; then
21418   ac_cv_type_int=yes
21419 else
21420   echo "$as_me: failed program was:" >&5
21421 sed 's/^/| /' conftest.$ac_ext >&5
21422
21423         ac_cv_type_int=no
21424 fi
21425
21426 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21427 fi
21428 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
21429 echo "${ECHO_T}$ac_cv_type_int" >&6; }
21430
21431 # The cast to long int works around a bug in the HP C Compiler
21432 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21433 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21434 # This bug is HP SR number 8606223364.
21435 { echo "$as_me:$LINENO: checking size of int" >&5
21436 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
21437 if test "${ac_cv_sizeof_int+set}" = set; then
21438   echo $ECHO_N "(cached) $ECHO_C" >&6
21439 else
21440   if test "$cross_compiling" = yes; then
21441   # Depending upon the size, compute the lo and hi bounds.
21442 cat >conftest.$ac_ext <<_ACEOF
21443 /* confdefs.h.  */
21444 _ACEOF
21445 cat confdefs.h >>conftest.$ac_ext
21446 cat >>conftest.$ac_ext <<_ACEOF
21447 /* end confdefs.h.  */
21448 $ac_includes_default
21449    typedef int ac__type_sizeof_;
21450 int
21451 main ()
21452 {
21453 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
21454 test_array [0] = 0
21455
21456   ;
21457   return 0;
21458 }
21459 _ACEOF
21460 rm -f conftest.$ac_objext
21461 if { (ac_try="$ac_compile"
21462 case "(($ac_try" in
21463   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21464   *) ac_try_echo=$ac_try;;
21465 esac
21466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21467   (eval "$ac_compile") 2>conftest.er1
21468   ac_status=$?
21469   grep -v '^ *+' conftest.er1 >conftest.err
21470   rm -f conftest.er1
21471   cat conftest.err >&5
21472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21473   (exit $ac_status); } && {
21474          test -z "$ac_c_werror_flag" ||
21475          test ! -s conftest.err
21476        } && test -s conftest.$ac_objext; then
21477   ac_lo=0 ac_mid=0
21478   while :; do
21479     cat >conftest.$ac_ext <<_ACEOF
21480 /* confdefs.h.  */
21481 _ACEOF
21482 cat confdefs.h >>conftest.$ac_ext
21483 cat >>conftest.$ac_ext <<_ACEOF
21484 /* end confdefs.h.  */
21485 $ac_includes_default
21486    typedef int ac__type_sizeof_;
21487 int
21488 main ()
21489 {
21490 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21491 test_array [0] = 0
21492
21493   ;
21494   return 0;
21495 }
21496 _ACEOF
21497 rm -f conftest.$ac_objext
21498 if { (ac_try="$ac_compile"
21499 case "(($ac_try" in
21500   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21501   *) ac_try_echo=$ac_try;;
21502 esac
21503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21504   (eval "$ac_compile") 2>conftest.er1
21505   ac_status=$?
21506   grep -v '^ *+' conftest.er1 >conftest.err
21507   rm -f conftest.er1
21508   cat conftest.err >&5
21509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21510   (exit $ac_status); } && {
21511          test -z "$ac_c_werror_flag" ||
21512          test ! -s conftest.err
21513        } && test -s conftest.$ac_objext; then
21514   ac_hi=$ac_mid; break
21515 else
21516   echo "$as_me: failed program was:" >&5
21517 sed 's/^/| /' conftest.$ac_ext >&5
21518
21519         ac_lo=`expr $ac_mid + 1`
21520                         if test $ac_lo -le $ac_mid; then
21521                           ac_lo= ac_hi=
21522                           break
21523                         fi
21524                         ac_mid=`expr 2 '*' $ac_mid + 1`
21525 fi
21526
21527 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21528   done
21529 else
21530   echo "$as_me: failed program was:" >&5
21531 sed 's/^/| /' conftest.$ac_ext >&5
21532
21533         cat >conftest.$ac_ext <<_ACEOF
21534 /* confdefs.h.  */
21535 _ACEOF
21536 cat confdefs.h >>conftest.$ac_ext
21537 cat >>conftest.$ac_ext <<_ACEOF
21538 /* end confdefs.h.  */
21539 $ac_includes_default
21540    typedef int ac__type_sizeof_;
21541 int
21542 main ()
21543 {
21544 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
21545 test_array [0] = 0
21546
21547   ;
21548   return 0;
21549 }
21550 _ACEOF
21551 rm -f conftest.$ac_objext
21552 if { (ac_try="$ac_compile"
21553 case "(($ac_try" in
21554   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21555   *) ac_try_echo=$ac_try;;
21556 esac
21557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21558   (eval "$ac_compile") 2>conftest.er1
21559   ac_status=$?
21560   grep -v '^ *+' conftest.er1 >conftest.err
21561   rm -f conftest.er1
21562   cat conftest.err >&5
21563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21564   (exit $ac_status); } && {
21565          test -z "$ac_c_werror_flag" ||
21566          test ! -s conftest.err
21567        } && test -s conftest.$ac_objext; then
21568   ac_hi=-1 ac_mid=-1
21569   while :; do
21570     cat >conftest.$ac_ext <<_ACEOF
21571 /* confdefs.h.  */
21572 _ACEOF
21573 cat confdefs.h >>conftest.$ac_ext
21574 cat >>conftest.$ac_ext <<_ACEOF
21575 /* end confdefs.h.  */
21576 $ac_includes_default
21577    typedef int ac__type_sizeof_;
21578 int
21579 main ()
21580 {
21581 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
21582 test_array [0] = 0
21583
21584   ;
21585   return 0;
21586 }
21587 _ACEOF
21588 rm -f conftest.$ac_objext
21589 if { (ac_try="$ac_compile"
21590 case "(($ac_try" in
21591   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21592   *) ac_try_echo=$ac_try;;
21593 esac
21594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21595   (eval "$ac_compile") 2>conftest.er1
21596   ac_status=$?
21597   grep -v '^ *+' conftest.er1 >conftest.err
21598   rm -f conftest.er1
21599   cat conftest.err >&5
21600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21601   (exit $ac_status); } && {
21602          test -z "$ac_c_werror_flag" ||
21603          test ! -s conftest.err
21604        } && test -s conftest.$ac_objext; then
21605   ac_lo=$ac_mid; break
21606 else
21607   echo "$as_me: failed program was:" >&5
21608 sed 's/^/| /' conftest.$ac_ext >&5
21609
21610         ac_hi=`expr '(' $ac_mid ')' - 1`
21611                         if test $ac_mid -le $ac_hi; then
21612                           ac_lo= ac_hi=
21613                           break
21614                         fi
21615                         ac_mid=`expr 2 '*' $ac_mid`
21616 fi
21617
21618 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21619   done
21620 else
21621   echo "$as_me: failed program was:" >&5
21622 sed 's/^/| /' conftest.$ac_ext >&5
21623
21624         ac_lo= ac_hi=
21625 fi
21626
21627 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21628 fi
21629
21630 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21631 # Binary search between lo and hi bounds.
21632 while test "x$ac_lo" != "x$ac_hi"; do
21633   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21634   cat >conftest.$ac_ext <<_ACEOF
21635 /* confdefs.h.  */
21636 _ACEOF
21637 cat confdefs.h >>conftest.$ac_ext
21638 cat >>conftest.$ac_ext <<_ACEOF
21639 /* end confdefs.h.  */
21640 $ac_includes_default
21641    typedef int ac__type_sizeof_;
21642 int
21643 main ()
21644 {
21645 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21646 test_array [0] = 0
21647
21648   ;
21649   return 0;
21650 }
21651 _ACEOF
21652 rm -f conftest.$ac_objext
21653 if { (ac_try="$ac_compile"
21654 case "(($ac_try" in
21655   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21656   *) ac_try_echo=$ac_try;;
21657 esac
21658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21659   (eval "$ac_compile") 2>conftest.er1
21660   ac_status=$?
21661   grep -v '^ *+' conftest.er1 >conftest.err
21662   rm -f conftest.er1
21663   cat conftest.err >&5
21664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21665   (exit $ac_status); } && {
21666          test -z "$ac_c_werror_flag" ||
21667          test ! -s conftest.err
21668        } && test -s conftest.$ac_objext; then
21669   ac_hi=$ac_mid
21670 else
21671   echo "$as_me: failed program was:" >&5
21672 sed 's/^/| /' conftest.$ac_ext >&5
21673
21674         ac_lo=`expr '(' $ac_mid ')' + 1`
21675 fi
21676
21677 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21678 done
21679 case $ac_lo in
21680 ?*) ac_cv_sizeof_int=$ac_lo;;
21681 '') if test "$ac_cv_type_int" = yes; then
21682      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
21683 See \`config.log' for more details." >&5
21684 echo "$as_me: error: cannot compute sizeof (int)
21685 See \`config.log' for more details." >&2;}
21686    { (exit 77); exit 77; }; }
21687    else
21688      ac_cv_sizeof_int=0
21689    fi ;;
21690 esac
21691 else
21692   cat >conftest.$ac_ext <<_ACEOF
21693 /* confdefs.h.  */
21694 _ACEOF
21695 cat confdefs.h >>conftest.$ac_ext
21696 cat >>conftest.$ac_ext <<_ACEOF
21697 /* end confdefs.h.  */
21698 $ac_includes_default
21699    typedef int ac__type_sizeof_;
21700 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
21701 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
21702 #include <stdio.h>
21703 #include <stdlib.h>
21704 int
21705 main ()
21706 {
21707
21708   FILE *f = fopen ("conftest.val", "w");
21709   if (! f)
21710     return 1;
21711   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
21712     {
21713       long int i = longval ();
21714       if (i != ((long int) (sizeof (ac__type_sizeof_))))
21715         return 1;
21716       fprintf (f, "%ld\n", i);
21717     }
21718   else
21719     {
21720       unsigned long int i = ulongval ();
21721       if (i != ((long int) (sizeof (ac__type_sizeof_))))
21722         return 1;
21723       fprintf (f, "%lu\n", i);
21724     }
21725   return ferror (f) || fclose (f) != 0;
21726
21727   ;
21728   return 0;
21729 }
21730 _ACEOF
21731 rm -f conftest$ac_exeext
21732 if { (ac_try="$ac_link"
21733 case "(($ac_try" in
21734   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21735   *) ac_try_echo=$ac_try;;
21736 esac
21737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21738   (eval "$ac_link") 2>&5
21739   ac_status=$?
21740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21741   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21742   { (case "(($ac_try" in
21743   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21744   *) ac_try_echo=$ac_try;;
21745 esac
21746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21747   (eval "$ac_try") 2>&5
21748   ac_status=$?
21749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21750   (exit $ac_status); }; }; then
21751   ac_cv_sizeof_int=`cat conftest.val`
21752 else
21753   echo "$as_me: program exited with status $ac_status" >&5
21754 echo "$as_me: failed program was:" >&5
21755 sed 's/^/| /' conftest.$ac_ext >&5
21756
21757 ( exit $ac_status )
21758 if test "$ac_cv_type_int" = yes; then
21759      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
21760 See \`config.log' for more details." >&5
21761 echo "$as_me: error: cannot compute sizeof (int)
21762 See \`config.log' for more details." >&2;}
21763    { (exit 77); exit 77; }; }
21764    else
21765      ac_cv_sizeof_int=0
21766    fi
21767 fi
21768 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21769 fi
21770 rm -f conftest.val
21771 fi
21772 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
21773 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
21774
21775
21776
21777 cat >>confdefs.h <<_ACEOF
21778 #define SIZEOF_INT $ac_cv_sizeof_int
21779 _ACEOF
21780
21781
21782 { echo "$as_me:$LINENO: checking for long" >&5
21783 echo $ECHO_N "checking for long... $ECHO_C" >&6; }
21784 if test "${ac_cv_type_long+set}" = set; then
21785   echo $ECHO_N "(cached) $ECHO_C" >&6
21786 else
21787   cat >conftest.$ac_ext <<_ACEOF
21788 /* confdefs.h.  */
21789 _ACEOF
21790 cat confdefs.h >>conftest.$ac_ext
21791 cat >>conftest.$ac_ext <<_ACEOF
21792 /* end confdefs.h.  */
21793 $ac_includes_default
21794 typedef long ac__type_new_;
21795 int
21796 main ()
21797 {
21798 if ((ac__type_new_ *) 0)
21799   return 0;
21800 if (sizeof (ac__type_new_))
21801   return 0;
21802   ;
21803   return 0;
21804 }
21805 _ACEOF
21806 rm -f conftest.$ac_objext
21807 if { (ac_try="$ac_compile"
21808 case "(($ac_try" in
21809   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21810   *) ac_try_echo=$ac_try;;
21811 esac
21812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21813   (eval "$ac_compile") 2>conftest.er1
21814   ac_status=$?
21815   grep -v '^ *+' conftest.er1 >conftest.err
21816   rm -f conftest.er1
21817   cat conftest.err >&5
21818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21819   (exit $ac_status); } && {
21820          test -z "$ac_c_werror_flag" ||
21821          test ! -s conftest.err
21822        } && test -s conftest.$ac_objext; then
21823   ac_cv_type_long=yes
21824 else
21825   echo "$as_me: failed program was:" >&5
21826 sed 's/^/| /' conftest.$ac_ext >&5
21827
21828         ac_cv_type_long=no
21829 fi
21830
21831 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21832 fi
21833 { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
21834 echo "${ECHO_T}$ac_cv_type_long" >&6; }
21835
21836 # The cast to long int works around a bug in the HP C Compiler
21837 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21838 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21839 # This bug is HP SR number 8606223364.
21840 { echo "$as_me:$LINENO: checking size of long" >&5
21841 echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
21842 if test "${ac_cv_sizeof_long+set}" = set; then
21843   echo $ECHO_N "(cached) $ECHO_C" >&6
21844 else
21845   if test "$cross_compiling" = yes; then
21846   # Depending upon the size, compute the lo and hi bounds.
21847 cat >conftest.$ac_ext <<_ACEOF
21848 /* confdefs.h.  */
21849 _ACEOF
21850 cat confdefs.h >>conftest.$ac_ext
21851 cat >>conftest.$ac_ext <<_ACEOF
21852 /* end confdefs.h.  */
21853 $ac_includes_default
21854    typedef long ac__type_sizeof_;
21855 int
21856 main ()
21857 {
21858 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
21859 test_array [0] = 0
21860
21861   ;
21862   return 0;
21863 }
21864 _ACEOF
21865 rm -f conftest.$ac_objext
21866 if { (ac_try="$ac_compile"
21867 case "(($ac_try" in
21868   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21869   *) ac_try_echo=$ac_try;;
21870 esac
21871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21872   (eval "$ac_compile") 2>conftest.er1
21873   ac_status=$?
21874   grep -v '^ *+' conftest.er1 >conftest.err
21875   rm -f conftest.er1
21876   cat conftest.err >&5
21877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21878   (exit $ac_status); } && {
21879          test -z "$ac_c_werror_flag" ||
21880          test ! -s conftest.err
21881        } && test -s conftest.$ac_objext; then
21882   ac_lo=0 ac_mid=0
21883   while :; do
21884     cat >conftest.$ac_ext <<_ACEOF
21885 /* confdefs.h.  */
21886 _ACEOF
21887 cat confdefs.h >>conftest.$ac_ext
21888 cat >>conftest.$ac_ext <<_ACEOF
21889 /* end confdefs.h.  */
21890 $ac_includes_default
21891    typedef long ac__type_sizeof_;
21892 int
21893 main ()
21894 {
21895 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21896 test_array [0] = 0
21897
21898   ;
21899   return 0;
21900 }
21901 _ACEOF
21902 rm -f conftest.$ac_objext
21903 if { (ac_try="$ac_compile"
21904 case "(($ac_try" in
21905   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21906   *) ac_try_echo=$ac_try;;
21907 esac
21908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21909   (eval "$ac_compile") 2>conftest.er1
21910   ac_status=$?
21911   grep -v '^ *+' conftest.er1 >conftest.err
21912   rm -f conftest.er1
21913   cat conftest.err >&5
21914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21915   (exit $ac_status); } && {
21916          test -z "$ac_c_werror_flag" ||
21917          test ! -s conftest.err
21918        } && test -s conftest.$ac_objext; then
21919   ac_hi=$ac_mid; break
21920 else
21921   echo "$as_me: failed program was:" >&5
21922 sed 's/^/| /' conftest.$ac_ext >&5
21923
21924         ac_lo=`expr $ac_mid + 1`
21925                         if test $ac_lo -le $ac_mid; then
21926                           ac_lo= ac_hi=
21927                           break
21928                         fi
21929                         ac_mid=`expr 2 '*' $ac_mid + 1`
21930 fi
21931
21932 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21933   done
21934 else
21935   echo "$as_me: failed program was:" >&5
21936 sed 's/^/| /' conftest.$ac_ext >&5
21937
21938         cat >conftest.$ac_ext <<_ACEOF
21939 /* confdefs.h.  */
21940 _ACEOF
21941 cat confdefs.h >>conftest.$ac_ext
21942 cat >>conftest.$ac_ext <<_ACEOF
21943 /* end confdefs.h.  */
21944 $ac_includes_default
21945    typedef long ac__type_sizeof_;
21946 int
21947 main ()
21948 {
21949 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
21950 test_array [0] = 0
21951
21952   ;
21953   return 0;
21954 }
21955 _ACEOF
21956 rm -f conftest.$ac_objext
21957 if { (ac_try="$ac_compile"
21958 case "(($ac_try" in
21959   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21960   *) ac_try_echo=$ac_try;;
21961 esac
21962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21963   (eval "$ac_compile") 2>conftest.er1
21964   ac_status=$?
21965   grep -v '^ *+' conftest.er1 >conftest.err
21966   rm -f conftest.er1
21967   cat conftest.err >&5
21968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21969   (exit $ac_status); } && {
21970          test -z "$ac_c_werror_flag" ||
21971          test ! -s conftest.err
21972        } && test -s conftest.$ac_objext; then
21973   ac_hi=-1 ac_mid=-1
21974   while :; do
21975     cat >conftest.$ac_ext <<_ACEOF
21976 /* confdefs.h.  */
21977 _ACEOF
21978 cat confdefs.h >>conftest.$ac_ext
21979 cat >>conftest.$ac_ext <<_ACEOF
21980 /* end confdefs.h.  */
21981 $ac_includes_default
21982    typedef long ac__type_sizeof_;
21983 int
21984 main ()
21985 {
21986 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
21987 test_array [0] = 0
21988
21989   ;
21990   return 0;
21991 }
21992 _ACEOF
21993 rm -f conftest.$ac_objext
21994 if { (ac_try="$ac_compile"
21995 case "(($ac_try" in
21996   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21997   *) ac_try_echo=$ac_try;;
21998 esac
21999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22000   (eval "$ac_compile") 2>conftest.er1
22001   ac_status=$?
22002   grep -v '^ *+' conftest.er1 >conftest.err
22003   rm -f conftest.er1
22004   cat conftest.err >&5
22005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22006   (exit $ac_status); } && {
22007          test -z "$ac_c_werror_flag" ||
22008          test ! -s conftest.err
22009        } && test -s conftest.$ac_objext; then
22010   ac_lo=$ac_mid; break
22011 else
22012   echo "$as_me: failed program was:" >&5
22013 sed 's/^/| /' conftest.$ac_ext >&5
22014
22015         ac_hi=`expr '(' $ac_mid ')' - 1`
22016                         if test $ac_mid -le $ac_hi; then
22017                           ac_lo= ac_hi=
22018                           break
22019                         fi
22020                         ac_mid=`expr 2 '*' $ac_mid`
22021 fi
22022
22023 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22024   done
22025 else
22026   echo "$as_me: failed program was:" >&5
22027 sed 's/^/| /' conftest.$ac_ext >&5
22028
22029         ac_lo= ac_hi=
22030 fi
22031
22032 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22033 fi
22034
22035 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22036 # Binary search between lo and hi bounds.
22037 while test "x$ac_lo" != "x$ac_hi"; do
22038   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22039   cat >conftest.$ac_ext <<_ACEOF
22040 /* confdefs.h.  */
22041 _ACEOF
22042 cat confdefs.h >>conftest.$ac_ext
22043 cat >>conftest.$ac_ext <<_ACEOF
22044 /* end confdefs.h.  */
22045 $ac_includes_default
22046    typedef long ac__type_sizeof_;
22047 int
22048 main ()
22049 {
22050 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22051 test_array [0] = 0
22052
22053   ;
22054   return 0;
22055 }
22056 _ACEOF
22057 rm -f conftest.$ac_objext
22058 if { (ac_try="$ac_compile"
22059 case "(($ac_try" in
22060   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22061   *) ac_try_echo=$ac_try;;
22062 esac
22063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22064   (eval "$ac_compile") 2>conftest.er1
22065   ac_status=$?
22066   grep -v '^ *+' conftest.er1 >conftest.err
22067   rm -f conftest.er1
22068   cat conftest.err >&5
22069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22070   (exit $ac_status); } && {
22071          test -z "$ac_c_werror_flag" ||
22072          test ! -s conftest.err
22073        } && test -s conftest.$ac_objext; then
22074   ac_hi=$ac_mid
22075 else
22076   echo "$as_me: failed program was:" >&5
22077 sed 's/^/| /' conftest.$ac_ext >&5
22078
22079         ac_lo=`expr '(' $ac_mid ')' + 1`
22080 fi
22081
22082 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22083 done
22084 case $ac_lo in
22085 ?*) ac_cv_sizeof_long=$ac_lo;;
22086 '') if test "$ac_cv_type_long" = yes; then
22087      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
22088 See \`config.log' for more details." >&5
22089 echo "$as_me: error: cannot compute sizeof (long)
22090 See \`config.log' for more details." >&2;}
22091    { (exit 77); exit 77; }; }
22092    else
22093      ac_cv_sizeof_long=0
22094    fi ;;
22095 esac
22096 else
22097   cat >conftest.$ac_ext <<_ACEOF
22098 /* confdefs.h.  */
22099 _ACEOF
22100 cat confdefs.h >>conftest.$ac_ext
22101 cat >>conftest.$ac_ext <<_ACEOF
22102 /* end confdefs.h.  */
22103 $ac_includes_default
22104    typedef long ac__type_sizeof_;
22105 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
22106 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
22107 #include <stdio.h>
22108 #include <stdlib.h>
22109 int
22110 main ()
22111 {
22112
22113   FILE *f = fopen ("conftest.val", "w");
22114   if (! f)
22115     return 1;
22116   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
22117     {
22118       long int i = longval ();
22119       if (i != ((long int) (sizeof (ac__type_sizeof_))))
22120         return 1;
22121       fprintf (f, "%ld\n", i);
22122     }
22123   else
22124     {
22125       unsigned long int i = ulongval ();
22126       if (i != ((long int) (sizeof (ac__type_sizeof_))))
22127         return 1;
22128       fprintf (f, "%lu\n", i);
22129     }
22130   return ferror (f) || fclose (f) != 0;
22131
22132   ;
22133   return 0;
22134 }
22135 _ACEOF
22136 rm -f conftest$ac_exeext
22137 if { (ac_try="$ac_link"
22138 case "(($ac_try" in
22139   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22140   *) ac_try_echo=$ac_try;;
22141 esac
22142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22143   (eval "$ac_link") 2>&5
22144   ac_status=$?
22145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22146   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22147   { (case "(($ac_try" in
22148   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22149   *) ac_try_echo=$ac_try;;
22150 esac
22151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22152   (eval "$ac_try") 2>&5
22153   ac_status=$?
22154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22155   (exit $ac_status); }; }; then
22156   ac_cv_sizeof_long=`cat conftest.val`
22157 else
22158   echo "$as_me: program exited with status $ac_status" >&5
22159 echo "$as_me: failed program was:" >&5
22160 sed 's/^/| /' conftest.$ac_ext >&5
22161
22162 ( exit $ac_status )
22163 if test "$ac_cv_type_long" = yes; then
22164      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
22165 See \`config.log' for more details." >&5
22166 echo "$as_me: error: cannot compute sizeof (long)
22167 See \`config.log' for more details." >&2;}
22168    { (exit 77); exit 77; }; }
22169    else
22170      ac_cv_sizeof_long=0
22171    fi
22172 fi
22173 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22174 fi
22175 rm -f conftest.val
22176 fi
22177 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
22178 echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
22179
22180
22181
22182 cat >>confdefs.h <<_ACEOF
22183 #define SIZEOF_LONG $ac_cv_sizeof_long
22184 _ACEOF
22185
22186
22187 { echo "$as_me:$LINENO: checking for size_t" >&5
22188 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
22189 if test "${ac_cv_type_size_t+set}" = set; then
22190   echo $ECHO_N "(cached) $ECHO_C" >&6
22191 else
22192   cat >conftest.$ac_ext <<_ACEOF
22193 /* confdefs.h.  */
22194 _ACEOF
22195 cat confdefs.h >>conftest.$ac_ext
22196 cat >>conftest.$ac_ext <<_ACEOF
22197 /* end confdefs.h.  */
22198 $ac_includes_default
22199 typedef size_t ac__type_new_;
22200 int
22201 main ()
22202 {
22203 if ((ac__type_new_ *) 0)
22204   return 0;
22205 if (sizeof (ac__type_new_))
22206   return 0;
22207   ;
22208   return 0;
22209 }
22210 _ACEOF
22211 rm -f conftest.$ac_objext
22212 if { (ac_try="$ac_compile"
22213 case "(($ac_try" in
22214   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22215   *) ac_try_echo=$ac_try;;
22216 esac
22217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22218   (eval "$ac_compile") 2>conftest.er1
22219   ac_status=$?
22220   grep -v '^ *+' conftest.er1 >conftest.err
22221   rm -f conftest.er1
22222   cat conftest.err >&5
22223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22224   (exit $ac_status); } && {
22225          test -z "$ac_c_werror_flag" ||
22226          test ! -s conftest.err
22227        } && test -s conftest.$ac_objext; then
22228   ac_cv_type_size_t=yes
22229 else
22230   echo "$as_me: failed program was:" >&5
22231 sed 's/^/| /' conftest.$ac_ext >&5
22232
22233         ac_cv_type_size_t=no
22234 fi
22235
22236 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22237 fi
22238 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
22239 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
22240
22241 # The cast to long int works around a bug in the HP C Compiler
22242 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22243 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22244 # This bug is HP SR number 8606223364.
22245 { echo "$as_me:$LINENO: checking size of size_t" >&5
22246 echo $ECHO_N "checking size of size_t... $ECHO_C" >&6; }
22247 if test "${ac_cv_sizeof_size_t+set}" = set; then
22248   echo $ECHO_N "(cached) $ECHO_C" >&6
22249 else
22250   if test "$cross_compiling" = yes; then
22251   # Depending upon the size, compute the lo and hi bounds.
22252 cat >conftest.$ac_ext <<_ACEOF
22253 /* confdefs.h.  */
22254 _ACEOF
22255 cat confdefs.h >>conftest.$ac_ext
22256 cat >>conftest.$ac_ext <<_ACEOF
22257 /* end confdefs.h.  */
22258 $ac_includes_default
22259    typedef size_t ac__type_sizeof_;
22260 int
22261 main ()
22262 {
22263 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
22264 test_array [0] = 0
22265
22266   ;
22267   return 0;
22268 }
22269 _ACEOF
22270 rm -f conftest.$ac_objext
22271 if { (ac_try="$ac_compile"
22272 case "(($ac_try" in
22273   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22274   *) ac_try_echo=$ac_try;;
22275 esac
22276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22277   (eval "$ac_compile") 2>conftest.er1
22278   ac_status=$?
22279   grep -v '^ *+' conftest.er1 >conftest.err
22280   rm -f conftest.er1
22281   cat conftest.err >&5
22282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22283   (exit $ac_status); } && {
22284          test -z "$ac_c_werror_flag" ||
22285          test ! -s conftest.err
22286        } && test -s conftest.$ac_objext; then
22287   ac_lo=0 ac_mid=0
22288   while :; do
22289     cat >conftest.$ac_ext <<_ACEOF
22290 /* confdefs.h.  */
22291 _ACEOF
22292 cat confdefs.h >>conftest.$ac_ext
22293 cat >>conftest.$ac_ext <<_ACEOF
22294 /* end confdefs.h.  */
22295 $ac_includes_default
22296    typedef size_t ac__type_sizeof_;
22297 int
22298 main ()
22299 {
22300 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22301 test_array [0] = 0
22302
22303   ;
22304   return 0;
22305 }
22306 _ACEOF
22307 rm -f conftest.$ac_objext
22308 if { (ac_try="$ac_compile"
22309 case "(($ac_try" in
22310   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22311   *) ac_try_echo=$ac_try;;
22312 esac
22313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22314   (eval "$ac_compile") 2>conftest.er1
22315   ac_status=$?
22316   grep -v '^ *+' conftest.er1 >conftest.err
22317   rm -f conftest.er1
22318   cat conftest.err >&5
22319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22320   (exit $ac_status); } && {
22321          test -z "$ac_c_werror_flag" ||
22322          test ! -s conftest.err
22323        } && test -s conftest.$ac_objext; then
22324   ac_hi=$ac_mid; break
22325 else
22326   echo "$as_me: failed program was:" >&5
22327 sed 's/^/| /' conftest.$ac_ext >&5
22328
22329         ac_lo=`expr $ac_mid + 1`
22330                         if test $ac_lo -le $ac_mid; then
22331                           ac_lo= ac_hi=
22332                           break
22333                         fi
22334                         ac_mid=`expr 2 '*' $ac_mid + 1`
22335 fi
22336
22337 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22338   done
22339 else
22340   echo "$as_me: failed program was:" >&5
22341 sed 's/^/| /' conftest.$ac_ext >&5
22342
22343         cat >conftest.$ac_ext <<_ACEOF
22344 /* confdefs.h.  */
22345 _ACEOF
22346 cat confdefs.h >>conftest.$ac_ext
22347 cat >>conftest.$ac_ext <<_ACEOF
22348 /* end confdefs.h.  */
22349 $ac_includes_default
22350    typedef size_t ac__type_sizeof_;
22351 int
22352 main ()
22353 {
22354 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
22355 test_array [0] = 0
22356
22357   ;
22358   return 0;
22359 }
22360 _ACEOF
22361 rm -f conftest.$ac_objext
22362 if { (ac_try="$ac_compile"
22363 case "(($ac_try" in
22364   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22365   *) ac_try_echo=$ac_try;;
22366 esac
22367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22368   (eval "$ac_compile") 2>conftest.er1
22369   ac_status=$?
22370   grep -v '^ *+' conftest.er1 >conftest.err
22371   rm -f conftest.er1
22372   cat conftest.err >&5
22373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22374   (exit $ac_status); } && {
22375          test -z "$ac_c_werror_flag" ||
22376          test ! -s conftest.err
22377        } && test -s conftest.$ac_objext; then
22378   ac_hi=-1 ac_mid=-1
22379   while :; do
22380     cat >conftest.$ac_ext <<_ACEOF
22381 /* confdefs.h.  */
22382 _ACEOF
22383 cat confdefs.h >>conftest.$ac_ext
22384 cat >>conftest.$ac_ext <<_ACEOF
22385 /* end confdefs.h.  */
22386 $ac_includes_default
22387    typedef size_t ac__type_sizeof_;
22388 int
22389 main ()
22390 {
22391 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
22392 test_array [0] = 0
22393
22394   ;
22395   return 0;
22396 }
22397 _ACEOF
22398 rm -f conftest.$ac_objext
22399 if { (ac_try="$ac_compile"
22400 case "(($ac_try" in
22401   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22402   *) ac_try_echo=$ac_try;;
22403 esac
22404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22405   (eval "$ac_compile") 2>conftest.er1
22406   ac_status=$?
22407   grep -v '^ *+' conftest.er1 >conftest.err
22408   rm -f conftest.er1
22409   cat conftest.err >&5
22410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22411   (exit $ac_status); } && {
22412          test -z "$ac_c_werror_flag" ||
22413          test ! -s conftest.err
22414        } && test -s conftest.$ac_objext; then
22415   ac_lo=$ac_mid; break
22416 else
22417   echo "$as_me: failed program was:" >&5
22418 sed 's/^/| /' conftest.$ac_ext >&5
22419
22420         ac_hi=`expr '(' $ac_mid ')' - 1`
22421                         if test $ac_mid -le $ac_hi; then
22422                           ac_lo= ac_hi=
22423                           break
22424                         fi
22425                         ac_mid=`expr 2 '*' $ac_mid`
22426 fi
22427
22428 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22429   done
22430 else
22431   echo "$as_me: failed program was:" >&5
22432 sed 's/^/| /' conftest.$ac_ext >&5
22433
22434         ac_lo= ac_hi=
22435 fi
22436
22437 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22438 fi
22439
22440 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22441 # Binary search between lo and hi bounds.
22442 while test "x$ac_lo" != "x$ac_hi"; do
22443   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22444   cat >conftest.$ac_ext <<_ACEOF
22445 /* confdefs.h.  */
22446 _ACEOF
22447 cat confdefs.h >>conftest.$ac_ext
22448 cat >>conftest.$ac_ext <<_ACEOF
22449 /* end confdefs.h.  */
22450 $ac_includes_default
22451    typedef size_t ac__type_sizeof_;
22452 int
22453 main ()
22454 {
22455 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22456 test_array [0] = 0
22457
22458   ;
22459   return 0;
22460 }
22461 _ACEOF
22462 rm -f conftest.$ac_objext
22463 if { (ac_try="$ac_compile"
22464 case "(($ac_try" in
22465   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22466   *) ac_try_echo=$ac_try;;
22467 esac
22468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22469   (eval "$ac_compile") 2>conftest.er1
22470   ac_status=$?
22471   grep -v '^ *+' conftest.er1 >conftest.err
22472   rm -f conftest.er1
22473   cat conftest.err >&5
22474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22475   (exit $ac_status); } && {
22476          test -z "$ac_c_werror_flag" ||
22477          test ! -s conftest.err
22478        } && test -s conftest.$ac_objext; then
22479   ac_hi=$ac_mid
22480 else
22481   echo "$as_me: failed program was:" >&5
22482 sed 's/^/| /' conftest.$ac_ext >&5
22483
22484         ac_lo=`expr '(' $ac_mid ')' + 1`
22485 fi
22486
22487 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22488 done
22489 case $ac_lo in
22490 ?*) ac_cv_sizeof_size_t=$ac_lo;;
22491 '') if test "$ac_cv_type_size_t" = yes; then
22492      { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
22493 See \`config.log' for more details." >&5
22494 echo "$as_me: error: cannot compute sizeof (size_t)
22495 See \`config.log' for more details." >&2;}
22496    { (exit 77); exit 77; }; }
22497    else
22498      ac_cv_sizeof_size_t=0
22499    fi ;;
22500 esac
22501 else
22502   cat >conftest.$ac_ext <<_ACEOF
22503 /* confdefs.h.  */
22504 _ACEOF
22505 cat confdefs.h >>conftest.$ac_ext
22506 cat >>conftest.$ac_ext <<_ACEOF
22507 /* end confdefs.h.  */
22508 $ac_includes_default
22509    typedef size_t ac__type_sizeof_;
22510 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
22511 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
22512 #include <stdio.h>
22513 #include <stdlib.h>
22514 int
22515 main ()
22516 {
22517
22518   FILE *f = fopen ("conftest.val", "w");
22519   if (! f)
22520     return 1;
22521   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
22522     {
22523       long int i = longval ();
22524       if (i != ((long int) (sizeof (ac__type_sizeof_))))
22525         return 1;
22526       fprintf (f, "%ld\n", i);
22527     }
22528   else
22529     {
22530       unsigned long int i = ulongval ();
22531       if (i != ((long int) (sizeof (ac__type_sizeof_))))
22532         return 1;
22533       fprintf (f, "%lu\n", i);
22534     }
22535   return ferror (f) || fclose (f) != 0;
22536
22537   ;
22538   return 0;
22539 }
22540 _ACEOF
22541 rm -f conftest$ac_exeext
22542 if { (ac_try="$ac_link"
22543 case "(($ac_try" in
22544   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22545   *) ac_try_echo=$ac_try;;
22546 esac
22547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22548   (eval "$ac_link") 2>&5
22549   ac_status=$?
22550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22551   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22552   { (case "(($ac_try" in
22553   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22554   *) ac_try_echo=$ac_try;;
22555 esac
22556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22557   (eval "$ac_try") 2>&5
22558   ac_status=$?
22559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22560   (exit $ac_status); }; }; then
22561   ac_cv_sizeof_size_t=`cat conftest.val`
22562 else
22563   echo "$as_me: program exited with status $ac_status" >&5
22564 echo "$as_me: failed program was:" >&5
22565 sed 's/^/| /' conftest.$ac_ext >&5
22566
22567 ( exit $ac_status )
22568 if test "$ac_cv_type_size_t" = yes; then
22569      { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
22570 See \`config.log' for more details." >&5
22571 echo "$as_me: error: cannot compute sizeof (size_t)
22572 See \`config.log' for more details." >&2;}
22573    { (exit 77); exit 77; }; }
22574    else
22575      ac_cv_sizeof_size_t=0
22576    fi
22577 fi
22578 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22579 fi
22580 rm -f conftest.val
22581 fi
22582 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
22583 echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6; }
22584
22585
22586
22587 cat >>confdefs.h <<_ACEOF
22588 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
22589 _ACEOF
22590
22591
22592
22593 case "${host}" in
22594     arm-*-linux* )
22595         { echo "$as_me:$LINENO: checking for long long" >&5
22596 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
22597 if test "${ac_cv_type_long_long+set}" = set; then
22598   echo $ECHO_N "(cached) $ECHO_C" >&6
22599 else
22600   cat >conftest.$ac_ext <<_ACEOF
22601 /* confdefs.h.  */
22602 _ACEOF
22603 cat confdefs.h >>conftest.$ac_ext
22604 cat >>conftest.$ac_ext <<_ACEOF
22605 /* end confdefs.h.  */
22606 $ac_includes_default
22607 typedef long long ac__type_new_;
22608 int
22609 main ()
22610 {
22611 if ((ac__type_new_ *) 0)
22612   return 0;
22613 if (sizeof (ac__type_new_))
22614   return 0;
22615   ;
22616   return 0;
22617 }
22618 _ACEOF
22619 rm -f conftest.$ac_objext
22620 if { (ac_try="$ac_compile"
22621 case "(($ac_try" in
22622   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22623   *) ac_try_echo=$ac_try;;
22624 esac
22625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22626   (eval "$ac_compile") 2>conftest.er1
22627   ac_status=$?
22628   grep -v '^ *+' conftest.er1 >conftest.err
22629   rm -f conftest.er1
22630   cat conftest.err >&5
22631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22632   (exit $ac_status); } && {
22633          test -z "$ac_c_werror_flag" ||
22634          test ! -s conftest.err
22635        } && test -s conftest.$ac_objext; then
22636   ac_cv_type_long_long=yes
22637 else
22638   echo "$as_me: failed program was:" >&5
22639 sed 's/^/| /' conftest.$ac_ext >&5
22640
22641         ac_cv_type_long_long=no
22642 fi
22643
22644 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22645 fi
22646 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
22647 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
22648
22649 # The cast to long int works around a bug in the HP C Compiler
22650 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22651 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22652 # This bug is HP SR number 8606223364.
22653 { echo "$as_me:$LINENO: checking size of long long" >&5
22654 echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
22655 if test "${ac_cv_sizeof_long_long+set}" = set; then
22656   echo $ECHO_N "(cached) $ECHO_C" >&6
22657 else
22658   if test "$cross_compiling" = yes; then
22659   # Depending upon the size, compute the lo and hi bounds.
22660 cat >conftest.$ac_ext <<_ACEOF
22661 /* confdefs.h.  */
22662 _ACEOF
22663 cat confdefs.h >>conftest.$ac_ext
22664 cat >>conftest.$ac_ext <<_ACEOF
22665 /* end confdefs.h.  */
22666 $ac_includes_default
22667    typedef long long ac__type_sizeof_;
22668 int
22669 main ()
22670 {
22671 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
22672 test_array [0] = 0
22673
22674   ;
22675   return 0;
22676 }
22677 _ACEOF
22678 rm -f conftest.$ac_objext
22679 if { (ac_try="$ac_compile"
22680 case "(($ac_try" in
22681   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22682   *) ac_try_echo=$ac_try;;
22683 esac
22684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22685   (eval "$ac_compile") 2>conftest.er1
22686   ac_status=$?
22687   grep -v '^ *+' conftest.er1 >conftest.err
22688   rm -f conftest.er1
22689   cat conftest.err >&5
22690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22691   (exit $ac_status); } && {
22692          test -z "$ac_c_werror_flag" ||
22693          test ! -s conftest.err
22694        } && test -s conftest.$ac_objext; then
22695   ac_lo=0 ac_mid=0
22696   while :; do
22697     cat >conftest.$ac_ext <<_ACEOF
22698 /* confdefs.h.  */
22699 _ACEOF
22700 cat confdefs.h >>conftest.$ac_ext
22701 cat >>conftest.$ac_ext <<_ACEOF
22702 /* end confdefs.h.  */
22703 $ac_includes_default
22704    typedef long long ac__type_sizeof_;
22705 int
22706 main ()
22707 {
22708 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22709 test_array [0] = 0
22710
22711   ;
22712   return 0;
22713 }
22714 _ACEOF
22715 rm -f conftest.$ac_objext
22716 if { (ac_try="$ac_compile"
22717 case "(($ac_try" in
22718   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22719   *) ac_try_echo=$ac_try;;
22720 esac
22721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22722   (eval "$ac_compile") 2>conftest.er1
22723   ac_status=$?
22724   grep -v '^ *+' conftest.er1 >conftest.err
22725   rm -f conftest.er1
22726   cat conftest.err >&5
22727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22728   (exit $ac_status); } && {
22729          test -z "$ac_c_werror_flag" ||
22730          test ! -s conftest.err
22731        } && test -s conftest.$ac_objext; then
22732   ac_hi=$ac_mid; break
22733 else
22734   echo "$as_me: failed program was:" >&5
22735 sed 's/^/| /' conftest.$ac_ext >&5
22736
22737         ac_lo=`expr $ac_mid + 1`
22738                         if test $ac_lo -le $ac_mid; then
22739                           ac_lo= ac_hi=
22740                           break
22741                         fi
22742                         ac_mid=`expr 2 '*' $ac_mid + 1`
22743 fi
22744
22745 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22746   done
22747 else
22748   echo "$as_me: failed program was:" >&5
22749 sed 's/^/| /' conftest.$ac_ext >&5
22750
22751         cat >conftest.$ac_ext <<_ACEOF
22752 /* confdefs.h.  */
22753 _ACEOF
22754 cat confdefs.h >>conftest.$ac_ext
22755 cat >>conftest.$ac_ext <<_ACEOF
22756 /* end confdefs.h.  */
22757 $ac_includes_default
22758    typedef long long ac__type_sizeof_;
22759 int
22760 main ()
22761 {
22762 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
22763 test_array [0] = 0
22764
22765   ;
22766   return 0;
22767 }
22768 _ACEOF
22769 rm -f conftest.$ac_objext
22770 if { (ac_try="$ac_compile"
22771 case "(($ac_try" in
22772   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22773   *) ac_try_echo=$ac_try;;
22774 esac
22775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22776   (eval "$ac_compile") 2>conftest.er1
22777   ac_status=$?
22778   grep -v '^ *+' conftest.er1 >conftest.err
22779   rm -f conftest.er1
22780   cat conftest.err >&5
22781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22782   (exit $ac_status); } && {
22783          test -z "$ac_c_werror_flag" ||
22784          test ! -s conftest.err
22785        } && test -s conftest.$ac_objext; then
22786   ac_hi=-1 ac_mid=-1
22787   while :; do
22788     cat >conftest.$ac_ext <<_ACEOF
22789 /* confdefs.h.  */
22790 _ACEOF
22791 cat confdefs.h >>conftest.$ac_ext
22792 cat >>conftest.$ac_ext <<_ACEOF
22793 /* end confdefs.h.  */
22794 $ac_includes_default
22795    typedef long long ac__type_sizeof_;
22796 int
22797 main ()
22798 {
22799 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
22800 test_array [0] = 0
22801
22802   ;
22803   return 0;
22804 }
22805 _ACEOF
22806 rm -f conftest.$ac_objext
22807 if { (ac_try="$ac_compile"
22808 case "(($ac_try" in
22809   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22810   *) ac_try_echo=$ac_try;;
22811 esac
22812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22813   (eval "$ac_compile") 2>conftest.er1
22814   ac_status=$?
22815   grep -v '^ *+' conftest.er1 >conftest.err
22816   rm -f conftest.er1
22817   cat conftest.err >&5
22818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22819   (exit $ac_status); } && {
22820          test -z "$ac_c_werror_flag" ||
22821          test ! -s conftest.err
22822        } && test -s conftest.$ac_objext; then
22823   ac_lo=$ac_mid; break
22824 else
22825   echo "$as_me: failed program was:" >&5
22826 sed 's/^/| /' conftest.$ac_ext >&5
22827
22828         ac_hi=`expr '(' $ac_mid ')' - 1`
22829                         if test $ac_mid -le $ac_hi; then
22830                           ac_lo= ac_hi=
22831                           break
22832                         fi
22833                         ac_mid=`expr 2 '*' $ac_mid`
22834 fi
22835
22836 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22837   done
22838 else
22839   echo "$as_me: failed program was:" >&5
22840 sed 's/^/| /' conftest.$ac_ext >&5
22841
22842         ac_lo= ac_hi=
22843 fi
22844
22845 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22846 fi
22847
22848 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22849 # Binary search between lo and hi bounds.
22850 while test "x$ac_lo" != "x$ac_hi"; do
22851   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22852   cat >conftest.$ac_ext <<_ACEOF
22853 /* confdefs.h.  */
22854 _ACEOF
22855 cat confdefs.h >>conftest.$ac_ext
22856 cat >>conftest.$ac_ext <<_ACEOF
22857 /* end confdefs.h.  */
22858 $ac_includes_default
22859    typedef long long ac__type_sizeof_;
22860 int
22861 main ()
22862 {
22863 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22864 test_array [0] = 0
22865
22866   ;
22867   return 0;
22868 }
22869 _ACEOF
22870 rm -f conftest.$ac_objext
22871 if { (ac_try="$ac_compile"
22872 case "(($ac_try" in
22873   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22874   *) ac_try_echo=$ac_try;;
22875 esac
22876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22877   (eval "$ac_compile") 2>conftest.er1
22878   ac_status=$?
22879   grep -v '^ *+' conftest.er1 >conftest.err
22880   rm -f conftest.er1
22881   cat conftest.err >&5
22882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22883   (exit $ac_status); } && {
22884          test -z "$ac_c_werror_flag" ||
22885          test ! -s conftest.err
22886        } && test -s conftest.$ac_objext; then
22887   ac_hi=$ac_mid
22888 else
22889   echo "$as_me: failed program was:" >&5
22890 sed 's/^/| /' conftest.$ac_ext >&5
22891
22892         ac_lo=`expr '(' $ac_mid ')' + 1`
22893 fi
22894
22895 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22896 done
22897 case $ac_lo in
22898 ?*) ac_cv_sizeof_long_long=$ac_lo;;
22899 '') if test "$ac_cv_type_long_long" = yes; then
22900      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
22901 See \`config.log' for more details." >&5
22902 echo "$as_me: error: cannot compute sizeof (long long)
22903 See \`config.log' for more details." >&2;}
22904    { (exit 77); exit 77; }; }
22905    else
22906      ac_cv_sizeof_long_long=0
22907    fi ;;
22908 esac
22909 else
22910   cat >conftest.$ac_ext <<_ACEOF
22911 /* confdefs.h.  */
22912 _ACEOF
22913 cat confdefs.h >>conftest.$ac_ext
22914 cat >>conftest.$ac_ext <<_ACEOF
22915 /* end confdefs.h.  */
22916 $ac_includes_default
22917    typedef long long ac__type_sizeof_;
22918 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
22919 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
22920 #include <stdio.h>
22921 #include <stdlib.h>
22922 int
22923 main ()
22924 {
22925
22926   FILE *f = fopen ("conftest.val", "w");
22927   if (! f)
22928     return 1;
22929   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
22930     {
22931       long int i = longval ();
22932       if (i != ((long int) (sizeof (ac__type_sizeof_))))
22933         return 1;
22934       fprintf (f, "%ld\n", i);
22935     }
22936   else
22937     {
22938       unsigned long int i = ulongval ();
22939       if (i != ((long int) (sizeof (ac__type_sizeof_))))
22940         return 1;
22941       fprintf (f, "%lu\n", i);
22942     }
22943   return ferror (f) || fclose (f) != 0;
22944
22945   ;
22946   return 0;
22947 }
22948 _ACEOF
22949 rm -f conftest$ac_exeext
22950 if { (ac_try="$ac_link"
22951 case "(($ac_try" in
22952   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22953   *) ac_try_echo=$ac_try;;
22954 esac
22955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22956   (eval "$ac_link") 2>&5
22957   ac_status=$?
22958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22959   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22960   { (case "(($ac_try" in
22961   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22962   *) ac_try_echo=$ac_try;;
22963 esac
22964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22965   (eval "$ac_try") 2>&5
22966   ac_status=$?
22967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22968   (exit $ac_status); }; }; then
22969   ac_cv_sizeof_long_long=`cat conftest.val`
22970 else
22971   echo "$as_me: program exited with status $ac_status" >&5
22972 echo "$as_me: failed program was:" >&5
22973 sed 's/^/| /' conftest.$ac_ext >&5
22974
22975 ( exit $ac_status )
22976 if test "$ac_cv_type_long_long" = yes; then
22977      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
22978 See \`config.log' for more details." >&5
22979 echo "$as_me: error: cannot compute sizeof (long long)
22980 See \`config.log' for more details." >&2;}
22981    { (exit 77); exit 77; }; }
22982    else
22983      ac_cv_sizeof_long_long=0
22984    fi
22985 fi
22986 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22987 fi
22988 rm -f conftest.val
22989 fi
22990 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
22991 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
22992
22993
22994
22995 cat >>confdefs.h <<_ACEOF
22996 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
22997 _ACEOF
22998
22999
23000     ;;
23001     *-hp-hpux* )
23002         { echo "$as_me:$LINENO: checking for long long" >&5
23003 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
23004 if test "${ac_cv_type_long_long+set}" = set; then
23005   echo $ECHO_N "(cached) $ECHO_C" >&6
23006 else
23007   cat >conftest.$ac_ext <<_ACEOF
23008 /* confdefs.h.  */
23009 _ACEOF
23010 cat confdefs.h >>conftest.$ac_ext
23011 cat >>conftest.$ac_ext <<_ACEOF
23012 /* end confdefs.h.  */
23013 $ac_includes_default
23014 typedef long long ac__type_new_;
23015 int
23016 main ()
23017 {
23018 if ((ac__type_new_ *) 0)
23019   return 0;
23020 if (sizeof (ac__type_new_))
23021   return 0;
23022   ;
23023   return 0;
23024 }
23025 _ACEOF
23026 rm -f conftest.$ac_objext
23027 if { (ac_try="$ac_compile"
23028 case "(($ac_try" in
23029   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23030   *) ac_try_echo=$ac_try;;
23031 esac
23032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23033   (eval "$ac_compile") 2>conftest.er1
23034   ac_status=$?
23035   grep -v '^ *+' conftest.er1 >conftest.err
23036   rm -f conftest.er1
23037   cat conftest.err >&5
23038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23039   (exit $ac_status); } && {
23040          test -z "$ac_c_werror_flag" ||
23041          test ! -s conftest.err
23042        } && test -s conftest.$ac_objext; then
23043   ac_cv_type_long_long=yes
23044 else
23045   echo "$as_me: failed program was:" >&5
23046 sed 's/^/| /' conftest.$ac_ext >&5
23047
23048         ac_cv_type_long_long=no
23049 fi
23050
23051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23052 fi
23053 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
23054 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
23055
23056 # The cast to long int works around a bug in the HP C Compiler
23057 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23058 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23059 # This bug is HP SR number 8606223364.
23060 { echo "$as_me:$LINENO: checking size of long long" >&5
23061 echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
23062 if test "${ac_cv_sizeof_long_long+set}" = set; then
23063   echo $ECHO_N "(cached) $ECHO_C" >&6
23064 else
23065   if test "$cross_compiling" = yes; then
23066   # Depending upon the size, compute the lo and hi bounds.
23067 cat >conftest.$ac_ext <<_ACEOF
23068 /* confdefs.h.  */
23069 _ACEOF
23070 cat confdefs.h >>conftest.$ac_ext
23071 cat >>conftest.$ac_ext <<_ACEOF
23072 /* end confdefs.h.  */
23073 $ac_includes_default
23074    typedef long long ac__type_sizeof_;
23075 int
23076 main ()
23077 {
23078 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
23079 test_array [0] = 0
23080
23081   ;
23082   return 0;
23083 }
23084 _ACEOF
23085 rm -f conftest.$ac_objext
23086 if { (ac_try="$ac_compile"
23087 case "(($ac_try" in
23088   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23089   *) ac_try_echo=$ac_try;;
23090 esac
23091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23092   (eval "$ac_compile") 2>conftest.er1
23093   ac_status=$?
23094   grep -v '^ *+' conftest.er1 >conftest.err
23095   rm -f conftest.er1
23096   cat conftest.err >&5
23097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23098   (exit $ac_status); } && {
23099          test -z "$ac_c_werror_flag" ||
23100          test ! -s conftest.err
23101        } && test -s conftest.$ac_objext; then
23102   ac_lo=0 ac_mid=0
23103   while :; do
23104     cat >conftest.$ac_ext <<_ACEOF
23105 /* confdefs.h.  */
23106 _ACEOF
23107 cat confdefs.h >>conftest.$ac_ext
23108 cat >>conftest.$ac_ext <<_ACEOF
23109 /* end confdefs.h.  */
23110 $ac_includes_default
23111    typedef long long ac__type_sizeof_;
23112 int
23113 main ()
23114 {
23115 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
23116 test_array [0] = 0
23117
23118   ;
23119   return 0;
23120 }
23121 _ACEOF
23122 rm -f conftest.$ac_objext
23123 if { (ac_try="$ac_compile"
23124 case "(($ac_try" in
23125   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23126   *) ac_try_echo=$ac_try;;
23127 esac
23128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23129   (eval "$ac_compile") 2>conftest.er1
23130   ac_status=$?
23131   grep -v '^ *+' conftest.er1 >conftest.err
23132   rm -f conftest.er1
23133   cat conftest.err >&5
23134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23135   (exit $ac_status); } && {
23136          test -z "$ac_c_werror_flag" ||
23137          test ! -s conftest.err
23138        } && test -s conftest.$ac_objext; then
23139   ac_hi=$ac_mid; break
23140 else
23141   echo "$as_me: failed program was:" >&5
23142 sed 's/^/| /' conftest.$ac_ext >&5
23143
23144         ac_lo=`expr $ac_mid + 1`
23145                         if test $ac_lo -le $ac_mid; then
23146                           ac_lo= ac_hi=
23147                           break
23148                         fi
23149                         ac_mid=`expr 2 '*' $ac_mid + 1`
23150 fi
23151
23152 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23153   done
23154 else
23155   echo "$as_me: failed program was:" >&5
23156 sed 's/^/| /' conftest.$ac_ext >&5
23157
23158         cat >conftest.$ac_ext <<_ACEOF
23159 /* confdefs.h.  */
23160 _ACEOF
23161 cat confdefs.h >>conftest.$ac_ext
23162 cat >>conftest.$ac_ext <<_ACEOF
23163 /* end confdefs.h.  */
23164 $ac_includes_default
23165    typedef long long ac__type_sizeof_;
23166 int
23167 main ()
23168 {
23169 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
23170 test_array [0] = 0
23171
23172   ;
23173   return 0;
23174 }
23175 _ACEOF
23176 rm -f conftest.$ac_objext
23177 if { (ac_try="$ac_compile"
23178 case "(($ac_try" in
23179   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23180   *) ac_try_echo=$ac_try;;
23181 esac
23182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23183   (eval "$ac_compile") 2>conftest.er1
23184   ac_status=$?
23185   grep -v '^ *+' conftest.er1 >conftest.err
23186   rm -f conftest.er1
23187   cat conftest.err >&5
23188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23189   (exit $ac_status); } && {
23190          test -z "$ac_c_werror_flag" ||
23191          test ! -s conftest.err
23192        } && test -s conftest.$ac_objext; then
23193   ac_hi=-1 ac_mid=-1
23194   while :; do
23195     cat >conftest.$ac_ext <<_ACEOF
23196 /* confdefs.h.  */
23197 _ACEOF
23198 cat confdefs.h >>conftest.$ac_ext
23199 cat >>conftest.$ac_ext <<_ACEOF
23200 /* end confdefs.h.  */
23201 $ac_includes_default
23202    typedef long long ac__type_sizeof_;
23203 int
23204 main ()
23205 {
23206 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
23207 test_array [0] = 0
23208
23209   ;
23210   return 0;
23211 }
23212 _ACEOF
23213 rm -f conftest.$ac_objext
23214 if { (ac_try="$ac_compile"
23215 case "(($ac_try" in
23216   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23217   *) ac_try_echo=$ac_try;;
23218 esac
23219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23220   (eval "$ac_compile") 2>conftest.er1
23221   ac_status=$?
23222   grep -v '^ *+' conftest.er1 >conftest.err
23223   rm -f conftest.er1
23224   cat conftest.err >&5
23225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23226   (exit $ac_status); } && {
23227          test -z "$ac_c_werror_flag" ||
23228          test ! -s conftest.err
23229        } && test -s conftest.$ac_objext; then
23230   ac_lo=$ac_mid; break
23231 else
23232   echo "$as_me: failed program was:" >&5
23233 sed 's/^/| /' conftest.$ac_ext >&5
23234
23235         ac_hi=`expr '(' $ac_mid ')' - 1`
23236                         if test $ac_mid -le $ac_hi; then
23237                           ac_lo= ac_hi=
23238                           break
23239                         fi
23240                         ac_mid=`expr 2 '*' $ac_mid`
23241 fi
23242
23243 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23244   done
23245 else
23246   echo "$as_me: failed program was:" >&5
23247 sed 's/^/| /' conftest.$ac_ext >&5
23248
23249         ac_lo= ac_hi=
23250 fi
23251
23252 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23253 fi
23254
23255 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23256 # Binary search between lo and hi bounds.
23257 while test "x$ac_lo" != "x$ac_hi"; do
23258   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23259   cat >conftest.$ac_ext <<_ACEOF
23260 /* confdefs.h.  */
23261 _ACEOF
23262 cat confdefs.h >>conftest.$ac_ext
23263 cat >>conftest.$ac_ext <<_ACEOF
23264 /* end confdefs.h.  */
23265 $ac_includes_default
23266    typedef long long ac__type_sizeof_;
23267 int
23268 main ()
23269 {
23270 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
23271 test_array [0] = 0
23272
23273   ;
23274   return 0;
23275 }
23276 _ACEOF
23277 rm -f conftest.$ac_objext
23278 if { (ac_try="$ac_compile"
23279 case "(($ac_try" in
23280   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23281   *) ac_try_echo=$ac_try;;
23282 esac
23283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23284   (eval "$ac_compile") 2>conftest.er1
23285   ac_status=$?
23286   grep -v '^ *+' conftest.er1 >conftest.err
23287   rm -f conftest.er1
23288   cat conftest.err >&5
23289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23290   (exit $ac_status); } && {
23291          test -z "$ac_c_werror_flag" ||
23292          test ! -s conftest.err
23293        } && test -s conftest.$ac_objext; then
23294   ac_hi=$ac_mid
23295 else
23296   echo "$as_me: failed program was:" >&5
23297 sed 's/^/| /' conftest.$ac_ext >&5
23298
23299         ac_lo=`expr '(' $ac_mid ')' + 1`
23300 fi
23301
23302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23303 done
23304 case $ac_lo in
23305 ?*) ac_cv_sizeof_long_long=$ac_lo;;
23306 '') if test "$ac_cv_type_long_long" = yes; then
23307      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
23308 See \`config.log' for more details." >&5
23309 echo "$as_me: error: cannot compute sizeof (long long)
23310 See \`config.log' for more details." >&2;}
23311    { (exit 77); exit 77; }; }
23312    else
23313      ac_cv_sizeof_long_long=0
23314    fi ;;
23315 esac
23316 else
23317   cat >conftest.$ac_ext <<_ACEOF
23318 /* confdefs.h.  */
23319 _ACEOF
23320 cat confdefs.h >>conftest.$ac_ext
23321 cat >>conftest.$ac_ext <<_ACEOF
23322 /* end confdefs.h.  */
23323 $ac_includes_default
23324    typedef long long ac__type_sizeof_;
23325 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
23326 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
23327 #include <stdio.h>
23328 #include <stdlib.h>
23329 int
23330 main ()
23331 {
23332
23333   FILE *f = fopen ("conftest.val", "w");
23334   if (! f)
23335     return 1;
23336   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
23337     {
23338       long int i = longval ();
23339       if (i != ((long int) (sizeof (ac__type_sizeof_))))
23340         return 1;
23341       fprintf (f, "%ld\n", i);
23342     }
23343   else
23344     {
23345       unsigned long int i = ulongval ();
23346       if (i != ((long int) (sizeof (ac__type_sizeof_))))
23347         return 1;
23348       fprintf (f, "%lu\n", i);
23349     }
23350   return ferror (f) || fclose (f) != 0;
23351
23352   ;
23353   return 0;
23354 }
23355 _ACEOF
23356 rm -f conftest$ac_exeext
23357 if { (ac_try="$ac_link"
23358 case "(($ac_try" in
23359   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23360   *) ac_try_echo=$ac_try;;
23361 esac
23362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23363   (eval "$ac_link") 2>&5
23364   ac_status=$?
23365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23366   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23367   { (case "(($ac_try" in
23368   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23369   *) ac_try_echo=$ac_try;;
23370 esac
23371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23372   (eval "$ac_try") 2>&5
23373   ac_status=$?
23374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23375   (exit $ac_status); }; }; then
23376   ac_cv_sizeof_long_long=`cat conftest.val`
23377 else
23378   echo "$as_me: program exited with status $ac_status" >&5
23379 echo "$as_me: failed program was:" >&5
23380 sed 's/^/| /' conftest.$ac_ext >&5
23381
23382 ( exit $ac_status )
23383 if test "$ac_cv_type_long_long" = yes; then
23384      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
23385 See \`config.log' for more details." >&5
23386 echo "$as_me: error: cannot compute sizeof (long long)
23387 See \`config.log' for more details." >&2;}
23388    { (exit 77); exit 77; }; }
23389    else
23390      ac_cv_sizeof_long_long=0
23391    fi
23392 fi
23393 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23394 fi
23395 rm -f conftest.val
23396 fi
23397 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
23398 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
23399
23400
23401
23402 cat >>confdefs.h <<_ACEOF
23403 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
23404 _ACEOF
23405
23406
23407         if test "$ac_cv_sizeof_long_long" != 0; then
23408                         CPPFLAGS="-D_INCLUDE_LONGLONG $CPPFLAGS"
23409         fi
23410     ;;
23411     * )
23412         { echo "$as_me:$LINENO: checking for long long" >&5
23413 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
23414 if test "${ac_cv_type_long_long+set}" = set; then
23415   echo $ECHO_N "(cached) $ECHO_C" >&6
23416 else
23417   cat >conftest.$ac_ext <<_ACEOF
23418 /* confdefs.h.  */
23419 _ACEOF
23420 cat confdefs.h >>conftest.$ac_ext
23421 cat >>conftest.$ac_ext <<_ACEOF
23422 /* end confdefs.h.  */
23423 $ac_includes_default
23424 typedef long long ac__type_new_;
23425 int
23426 main ()
23427 {
23428 if ((ac__type_new_ *) 0)
23429   return 0;
23430 if (sizeof (ac__type_new_))
23431   return 0;
23432   ;
23433   return 0;
23434 }
23435 _ACEOF
23436 rm -f conftest.$ac_objext
23437 if { (ac_try="$ac_compile"
23438 case "(($ac_try" in
23439   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23440   *) ac_try_echo=$ac_try;;
23441 esac
23442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23443   (eval "$ac_compile") 2>conftest.er1
23444   ac_status=$?
23445   grep -v '^ *+' conftest.er1 >conftest.err
23446   rm -f conftest.er1
23447   cat conftest.err >&5
23448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23449   (exit $ac_status); } && {
23450          test -z "$ac_c_werror_flag" ||
23451          test ! -s conftest.err
23452        } && test -s conftest.$ac_objext; then
23453   ac_cv_type_long_long=yes
23454 else
23455   echo "$as_me: failed program was:" >&5
23456 sed 's/^/| /' conftest.$ac_ext >&5
23457
23458         ac_cv_type_long_long=no
23459 fi
23460
23461 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23462 fi
23463 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
23464 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
23465
23466 # The cast to long int works around a bug in the HP C Compiler
23467 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23468 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23469 # This bug is HP SR number 8606223364.
23470 { echo "$as_me:$LINENO: checking size of long long" >&5
23471 echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
23472 if test "${ac_cv_sizeof_long_long+set}" = set; then
23473   echo $ECHO_N "(cached) $ECHO_C" >&6
23474 else
23475   if test "$cross_compiling" = yes; then
23476   # Depending upon the size, compute the lo and hi bounds.
23477 cat >conftest.$ac_ext <<_ACEOF
23478 /* confdefs.h.  */
23479 _ACEOF
23480 cat confdefs.h >>conftest.$ac_ext
23481 cat >>conftest.$ac_ext <<_ACEOF
23482 /* end confdefs.h.  */
23483 $ac_includes_default
23484    typedef long long ac__type_sizeof_;
23485 int
23486 main ()
23487 {
23488 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
23489 test_array [0] = 0
23490
23491   ;
23492   return 0;
23493 }
23494 _ACEOF
23495 rm -f conftest.$ac_objext
23496 if { (ac_try="$ac_compile"
23497 case "(($ac_try" in
23498   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23499   *) ac_try_echo=$ac_try;;
23500 esac
23501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23502   (eval "$ac_compile") 2>conftest.er1
23503   ac_status=$?
23504   grep -v '^ *+' conftest.er1 >conftest.err
23505   rm -f conftest.er1
23506   cat conftest.err >&5
23507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23508   (exit $ac_status); } && {
23509          test -z "$ac_c_werror_flag" ||
23510          test ! -s conftest.err
23511        } && test -s conftest.$ac_objext; then
23512   ac_lo=0 ac_mid=0
23513   while :; do
23514     cat >conftest.$ac_ext <<_ACEOF
23515 /* confdefs.h.  */
23516 _ACEOF
23517 cat confdefs.h >>conftest.$ac_ext
23518 cat >>conftest.$ac_ext <<_ACEOF
23519 /* end confdefs.h.  */
23520 $ac_includes_default
23521    typedef long long ac__type_sizeof_;
23522 int
23523 main ()
23524 {
23525 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
23526 test_array [0] = 0
23527
23528   ;
23529   return 0;
23530 }
23531 _ACEOF
23532 rm -f conftest.$ac_objext
23533 if { (ac_try="$ac_compile"
23534 case "(($ac_try" in
23535   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23536   *) ac_try_echo=$ac_try;;
23537 esac
23538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23539   (eval "$ac_compile") 2>conftest.er1
23540   ac_status=$?
23541   grep -v '^ *+' conftest.er1 >conftest.err
23542   rm -f conftest.er1
23543   cat conftest.err >&5
23544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23545   (exit $ac_status); } && {
23546          test -z "$ac_c_werror_flag" ||
23547          test ! -s conftest.err
23548        } && test -s conftest.$ac_objext; then
23549   ac_hi=$ac_mid; break
23550 else
23551   echo "$as_me: failed program was:" >&5
23552 sed 's/^/| /' conftest.$ac_ext >&5
23553
23554         ac_lo=`expr $ac_mid + 1`
23555                         if test $ac_lo -le $ac_mid; then
23556                           ac_lo= ac_hi=
23557                           break
23558                         fi
23559                         ac_mid=`expr 2 '*' $ac_mid + 1`
23560 fi
23561
23562 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23563   done
23564 else
23565   echo "$as_me: failed program was:" >&5
23566 sed 's/^/| /' conftest.$ac_ext >&5
23567
23568         cat >conftest.$ac_ext <<_ACEOF
23569 /* confdefs.h.  */
23570 _ACEOF
23571 cat confdefs.h >>conftest.$ac_ext
23572 cat >>conftest.$ac_ext <<_ACEOF
23573 /* end confdefs.h.  */
23574 $ac_includes_default
23575    typedef long long ac__type_sizeof_;
23576 int
23577 main ()
23578 {
23579 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
23580 test_array [0] = 0
23581
23582   ;
23583   return 0;
23584 }
23585 _ACEOF
23586 rm -f conftest.$ac_objext
23587 if { (ac_try="$ac_compile"
23588 case "(($ac_try" in
23589   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23590   *) ac_try_echo=$ac_try;;
23591 esac
23592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23593   (eval "$ac_compile") 2>conftest.er1
23594   ac_status=$?
23595   grep -v '^ *+' conftest.er1 >conftest.err
23596   rm -f conftest.er1
23597   cat conftest.err >&5
23598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23599   (exit $ac_status); } && {
23600          test -z "$ac_c_werror_flag" ||
23601          test ! -s conftest.err
23602        } && test -s conftest.$ac_objext; then
23603   ac_hi=-1 ac_mid=-1
23604   while :; do
23605     cat >conftest.$ac_ext <<_ACEOF
23606 /* confdefs.h.  */
23607 _ACEOF
23608 cat confdefs.h >>conftest.$ac_ext
23609 cat >>conftest.$ac_ext <<_ACEOF
23610 /* end confdefs.h.  */
23611 $ac_includes_default
23612    typedef long long ac__type_sizeof_;
23613 int
23614 main ()
23615 {
23616 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
23617 test_array [0] = 0
23618
23619   ;
23620   return 0;
23621 }
23622 _ACEOF
23623 rm -f conftest.$ac_objext
23624 if { (ac_try="$ac_compile"
23625 case "(($ac_try" in
23626   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23627   *) ac_try_echo=$ac_try;;
23628 esac
23629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23630   (eval "$ac_compile") 2>conftest.er1
23631   ac_status=$?
23632   grep -v '^ *+' conftest.er1 >conftest.err
23633   rm -f conftest.er1
23634   cat conftest.err >&5
23635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23636   (exit $ac_status); } && {
23637          test -z "$ac_c_werror_flag" ||
23638          test ! -s conftest.err
23639        } && test -s conftest.$ac_objext; then
23640   ac_lo=$ac_mid; break
23641 else
23642   echo "$as_me: failed program was:" >&5
23643 sed 's/^/| /' conftest.$ac_ext >&5
23644
23645         ac_hi=`expr '(' $ac_mid ')' - 1`
23646                         if test $ac_mid -le $ac_hi; then
23647                           ac_lo= ac_hi=
23648                           break
23649                         fi
23650                         ac_mid=`expr 2 '*' $ac_mid`
23651 fi
23652
23653 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23654   done
23655 else
23656   echo "$as_me: failed program was:" >&5
23657 sed 's/^/| /' conftest.$ac_ext >&5
23658
23659         ac_lo= ac_hi=
23660 fi
23661
23662 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23663 fi
23664
23665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23666 # Binary search between lo and hi bounds.
23667 while test "x$ac_lo" != "x$ac_hi"; do
23668   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23669   cat >conftest.$ac_ext <<_ACEOF
23670 /* confdefs.h.  */
23671 _ACEOF
23672 cat confdefs.h >>conftest.$ac_ext
23673 cat >>conftest.$ac_ext <<_ACEOF
23674 /* end confdefs.h.  */
23675 $ac_includes_default
23676    typedef long long ac__type_sizeof_;
23677 int
23678 main ()
23679 {
23680 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
23681 test_array [0] = 0
23682
23683   ;
23684   return 0;
23685 }
23686 _ACEOF
23687 rm -f conftest.$ac_objext
23688 if { (ac_try="$ac_compile"
23689 case "(($ac_try" in
23690   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23691   *) ac_try_echo=$ac_try;;
23692 esac
23693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23694   (eval "$ac_compile") 2>conftest.er1
23695   ac_status=$?
23696   grep -v '^ *+' conftest.er1 >conftest.err
23697   rm -f conftest.er1
23698   cat conftest.err >&5
23699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23700   (exit $ac_status); } && {
23701          test -z "$ac_c_werror_flag" ||
23702          test ! -s conftest.err
23703        } && test -s conftest.$ac_objext; then
23704   ac_hi=$ac_mid
23705 else
23706   echo "$as_me: failed program was:" >&5
23707 sed 's/^/| /' conftest.$ac_ext >&5
23708
23709         ac_lo=`expr '(' $ac_mid ')' + 1`
23710 fi
23711
23712 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23713 done
23714 case $ac_lo in
23715 ?*) ac_cv_sizeof_long_long=$ac_lo;;
23716 '') if test "$ac_cv_type_long_long" = yes; then
23717      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
23718 See \`config.log' for more details." >&5
23719 echo "$as_me: error: cannot compute sizeof (long long)
23720 See \`config.log' for more details." >&2;}
23721    { (exit 77); exit 77; }; }
23722    else
23723      ac_cv_sizeof_long_long=0
23724    fi ;;
23725 esac
23726 else
23727   cat >conftest.$ac_ext <<_ACEOF
23728 /* confdefs.h.  */
23729 _ACEOF
23730 cat confdefs.h >>conftest.$ac_ext
23731 cat >>conftest.$ac_ext <<_ACEOF
23732 /* end confdefs.h.  */
23733 $ac_includes_default
23734    typedef long long ac__type_sizeof_;
23735 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
23736 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
23737 #include <stdio.h>
23738 #include <stdlib.h>
23739 int
23740 main ()
23741 {
23742
23743   FILE *f = fopen ("conftest.val", "w");
23744   if (! f)
23745     return 1;
23746   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
23747     {
23748       long int i = longval ();
23749       if (i != ((long int) (sizeof (ac__type_sizeof_))))
23750         return 1;
23751       fprintf (f, "%ld\n", i);
23752     }
23753   else
23754     {
23755       unsigned long int i = ulongval ();
23756       if (i != ((long int) (sizeof (ac__type_sizeof_))))
23757         return 1;
23758       fprintf (f, "%lu\n", i);
23759     }
23760   return ferror (f) || fclose (f) != 0;
23761
23762   ;
23763   return 0;
23764 }
23765 _ACEOF
23766 rm -f conftest$ac_exeext
23767 if { (ac_try="$ac_link"
23768 case "(($ac_try" in
23769   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23770   *) ac_try_echo=$ac_try;;
23771 esac
23772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23773   (eval "$ac_link") 2>&5
23774   ac_status=$?
23775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23776   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23777   { (case "(($ac_try" in
23778   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23779   *) ac_try_echo=$ac_try;;
23780 esac
23781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23782   (eval "$ac_try") 2>&5
23783   ac_status=$?
23784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23785   (exit $ac_status); }; }; then
23786   ac_cv_sizeof_long_long=`cat conftest.val`
23787 else
23788   echo "$as_me: program exited with status $ac_status" >&5
23789 echo "$as_me: failed program was:" >&5
23790 sed 's/^/| /' conftest.$ac_ext >&5
23791
23792 ( exit $ac_status )
23793 if test "$ac_cv_type_long_long" = yes; then
23794      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
23795 See \`config.log' for more details." >&5
23796 echo "$as_me: error: cannot compute sizeof (long long)
23797 See \`config.log' for more details." >&2;}
23798    { (exit 77); exit 77; }; }
23799    else
23800      ac_cv_sizeof_long_long=0
23801    fi
23802 fi
23803 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23804 fi
23805 rm -f conftest.val
23806 fi
23807 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
23808 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
23809
23810
23811
23812 cat >>confdefs.h <<_ACEOF
23813 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
23814 _ACEOF
23815
23816
23817 esac
23818
23819 { echo "$as_me:$LINENO: checking for wchar_t" >&5
23820 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
23821 if test "${ac_cv_type_wchar_t+set}" = set; then
23822   echo $ECHO_N "(cached) $ECHO_C" >&6
23823 else
23824   cat >conftest.$ac_ext <<_ACEOF
23825 /* confdefs.h.  */
23826 _ACEOF
23827 cat confdefs.h >>conftest.$ac_ext
23828 cat >>conftest.$ac_ext <<_ACEOF
23829 /* end confdefs.h.  */
23830
23831         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
23832         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
23833         #  error "fake wchar_t"
23834         #endif
23835         #ifdef HAVE_WCHAR_H
23836         #  ifdef __CYGWIN__
23837         #    include <stddef.h>
23838         #  endif
23839         #  include <wchar.h>
23840         #endif
23841         #ifdef HAVE_STDLIB_H
23842         #  include <stdlib.h>
23843         #endif
23844         #include <stdio.h>
23845
23846
23847
23848 typedef wchar_t ac__type_new_;
23849 int
23850 main ()
23851 {
23852 if ((ac__type_new_ *) 0)
23853   return 0;
23854 if (sizeof (ac__type_new_))
23855   return 0;
23856   ;
23857   return 0;
23858 }
23859 _ACEOF
23860 rm -f conftest.$ac_objext
23861 if { (ac_try="$ac_compile"
23862 case "(($ac_try" in
23863   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23864   *) ac_try_echo=$ac_try;;
23865 esac
23866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23867   (eval "$ac_compile") 2>conftest.er1
23868   ac_status=$?
23869   grep -v '^ *+' conftest.er1 >conftest.err
23870   rm -f conftest.er1
23871   cat conftest.err >&5
23872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23873   (exit $ac_status); } && {
23874          test -z "$ac_c_werror_flag" ||
23875          test ! -s conftest.err
23876        } && test -s conftest.$ac_objext; then
23877   ac_cv_type_wchar_t=yes
23878 else
23879   echo "$as_me: failed program was:" >&5
23880 sed 's/^/| /' conftest.$ac_ext >&5
23881
23882         ac_cv_type_wchar_t=no
23883 fi
23884
23885 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23886 fi
23887 { echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
23888 echo "${ECHO_T}$ac_cv_type_wchar_t" >&6; }
23889
23890 # The cast to long int works around a bug in the HP C Compiler
23891 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23892 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23893 # This bug is HP SR number 8606223364.
23894 { echo "$as_me:$LINENO: checking size of wchar_t" >&5
23895 echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6; }
23896 if test "${ac_cv_sizeof_wchar_t+set}" = set; then
23897   echo $ECHO_N "(cached) $ECHO_C" >&6
23898 else
23899   if test "$cross_compiling" = yes; then
23900   # Depending upon the size, compute the lo and hi bounds.
23901 cat >conftest.$ac_ext <<_ACEOF
23902 /* confdefs.h.  */
23903 _ACEOF
23904 cat confdefs.h >>conftest.$ac_ext
23905 cat >>conftest.$ac_ext <<_ACEOF
23906 /* end confdefs.h.  */
23907
23908         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
23909         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
23910         #  error "fake wchar_t"
23911         #endif
23912         #ifdef HAVE_WCHAR_H
23913         #  ifdef __CYGWIN__
23914         #    include <stddef.h>
23915         #  endif
23916         #  include <wchar.h>
23917         #endif
23918         #ifdef HAVE_STDLIB_H
23919         #  include <stdlib.h>
23920         #endif
23921         #include <stdio.h>
23922
23923
23924
23925    typedef wchar_t ac__type_sizeof_;
23926 int
23927 main ()
23928 {
23929 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
23930 test_array [0] = 0
23931
23932   ;
23933   return 0;
23934 }
23935 _ACEOF
23936 rm -f conftest.$ac_objext
23937 if { (ac_try="$ac_compile"
23938 case "(($ac_try" in
23939   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23940   *) ac_try_echo=$ac_try;;
23941 esac
23942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23943   (eval "$ac_compile") 2>conftest.er1
23944   ac_status=$?
23945   grep -v '^ *+' conftest.er1 >conftest.err
23946   rm -f conftest.er1
23947   cat conftest.err >&5
23948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23949   (exit $ac_status); } && {
23950          test -z "$ac_c_werror_flag" ||
23951          test ! -s conftest.err
23952        } && test -s conftest.$ac_objext; then
23953   ac_lo=0 ac_mid=0
23954   while :; do
23955     cat >conftest.$ac_ext <<_ACEOF
23956 /* confdefs.h.  */
23957 _ACEOF
23958 cat confdefs.h >>conftest.$ac_ext
23959 cat >>conftest.$ac_ext <<_ACEOF
23960 /* end confdefs.h.  */
23961
23962         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
23963         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
23964         #  error "fake wchar_t"
23965         #endif
23966         #ifdef HAVE_WCHAR_H
23967         #  ifdef __CYGWIN__
23968         #    include <stddef.h>
23969         #  endif
23970         #  include <wchar.h>
23971         #endif
23972         #ifdef HAVE_STDLIB_H
23973         #  include <stdlib.h>
23974         #endif
23975         #include <stdio.h>
23976
23977
23978
23979    typedef wchar_t ac__type_sizeof_;
23980 int
23981 main ()
23982 {
23983 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
23984 test_array [0] = 0
23985
23986   ;
23987   return 0;
23988 }
23989 _ACEOF
23990 rm -f conftest.$ac_objext
23991 if { (ac_try="$ac_compile"
23992 case "(($ac_try" in
23993   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23994   *) ac_try_echo=$ac_try;;
23995 esac
23996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23997   (eval "$ac_compile") 2>conftest.er1
23998   ac_status=$?
23999   grep -v '^ *+' conftest.er1 >conftest.err
24000   rm -f conftest.er1
24001   cat conftest.err >&5
24002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24003   (exit $ac_status); } && {
24004          test -z "$ac_c_werror_flag" ||
24005          test ! -s conftest.err
24006        } && test -s conftest.$ac_objext; then
24007   ac_hi=$ac_mid; break
24008 else
24009   echo "$as_me: failed program was:" >&5
24010 sed 's/^/| /' conftest.$ac_ext >&5
24011
24012         ac_lo=`expr $ac_mid + 1`
24013                         if test $ac_lo -le $ac_mid; then
24014                           ac_lo= ac_hi=
24015                           break
24016                         fi
24017                         ac_mid=`expr 2 '*' $ac_mid + 1`
24018 fi
24019
24020 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24021   done
24022 else
24023   echo "$as_me: failed program was:" >&5
24024 sed 's/^/| /' conftest.$ac_ext >&5
24025
24026         cat >conftest.$ac_ext <<_ACEOF
24027 /* confdefs.h.  */
24028 _ACEOF
24029 cat confdefs.h >>conftest.$ac_ext
24030 cat >>conftest.$ac_ext <<_ACEOF
24031 /* end confdefs.h.  */
24032
24033         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
24034         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
24035         #  error "fake wchar_t"
24036         #endif
24037         #ifdef HAVE_WCHAR_H
24038         #  ifdef __CYGWIN__
24039         #    include <stddef.h>
24040         #  endif
24041         #  include <wchar.h>
24042         #endif
24043         #ifdef HAVE_STDLIB_H
24044         #  include <stdlib.h>
24045         #endif
24046         #include <stdio.h>
24047
24048
24049
24050    typedef wchar_t ac__type_sizeof_;
24051 int
24052 main ()
24053 {
24054 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
24055 test_array [0] = 0
24056
24057   ;
24058   return 0;
24059 }
24060 _ACEOF
24061 rm -f conftest.$ac_objext
24062 if { (ac_try="$ac_compile"
24063 case "(($ac_try" in
24064   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24065   *) ac_try_echo=$ac_try;;
24066 esac
24067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24068   (eval "$ac_compile") 2>conftest.er1
24069   ac_status=$?
24070   grep -v '^ *+' conftest.er1 >conftest.err
24071   rm -f conftest.er1
24072   cat conftest.err >&5
24073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24074   (exit $ac_status); } && {
24075          test -z "$ac_c_werror_flag" ||
24076          test ! -s conftest.err
24077        } && test -s conftest.$ac_objext; then
24078   ac_hi=-1 ac_mid=-1
24079   while :; do
24080     cat >conftest.$ac_ext <<_ACEOF
24081 /* confdefs.h.  */
24082 _ACEOF
24083 cat confdefs.h >>conftest.$ac_ext
24084 cat >>conftest.$ac_ext <<_ACEOF
24085 /* end confdefs.h.  */
24086
24087         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
24088         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
24089         #  error "fake wchar_t"
24090         #endif
24091         #ifdef HAVE_WCHAR_H
24092         #  ifdef __CYGWIN__
24093         #    include <stddef.h>
24094         #  endif
24095         #  include <wchar.h>
24096         #endif
24097         #ifdef HAVE_STDLIB_H
24098         #  include <stdlib.h>
24099         #endif
24100         #include <stdio.h>
24101
24102
24103
24104    typedef wchar_t ac__type_sizeof_;
24105 int
24106 main ()
24107 {
24108 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
24109 test_array [0] = 0
24110
24111   ;
24112   return 0;
24113 }
24114 _ACEOF
24115 rm -f conftest.$ac_objext
24116 if { (ac_try="$ac_compile"
24117 case "(($ac_try" in
24118   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24119   *) ac_try_echo=$ac_try;;
24120 esac
24121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24122   (eval "$ac_compile") 2>conftest.er1
24123   ac_status=$?
24124   grep -v '^ *+' conftest.er1 >conftest.err
24125   rm -f conftest.er1
24126   cat conftest.err >&5
24127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24128   (exit $ac_status); } && {
24129          test -z "$ac_c_werror_flag" ||
24130          test ! -s conftest.err
24131        } && test -s conftest.$ac_objext; then
24132   ac_lo=$ac_mid; break
24133 else
24134   echo "$as_me: failed program was:" >&5
24135 sed 's/^/| /' conftest.$ac_ext >&5
24136
24137         ac_hi=`expr '(' $ac_mid ')' - 1`
24138                         if test $ac_mid -le $ac_hi; then
24139                           ac_lo= ac_hi=
24140                           break
24141                         fi
24142                         ac_mid=`expr 2 '*' $ac_mid`
24143 fi
24144
24145 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24146   done
24147 else
24148   echo "$as_me: failed program was:" >&5
24149 sed 's/^/| /' conftest.$ac_ext >&5
24150
24151         ac_lo= ac_hi=
24152 fi
24153
24154 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24155 fi
24156
24157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24158 # Binary search between lo and hi bounds.
24159 while test "x$ac_lo" != "x$ac_hi"; do
24160   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24161   cat >conftest.$ac_ext <<_ACEOF
24162 /* confdefs.h.  */
24163 _ACEOF
24164 cat confdefs.h >>conftest.$ac_ext
24165 cat >>conftest.$ac_ext <<_ACEOF
24166 /* end confdefs.h.  */
24167
24168         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
24169         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
24170         #  error "fake wchar_t"
24171         #endif
24172         #ifdef HAVE_WCHAR_H
24173         #  ifdef __CYGWIN__
24174         #    include <stddef.h>
24175         #  endif
24176         #  include <wchar.h>
24177         #endif
24178         #ifdef HAVE_STDLIB_H
24179         #  include <stdlib.h>
24180         #endif
24181         #include <stdio.h>
24182
24183
24184
24185    typedef wchar_t ac__type_sizeof_;
24186 int
24187 main ()
24188 {
24189 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24190 test_array [0] = 0
24191
24192   ;
24193   return 0;
24194 }
24195 _ACEOF
24196 rm -f conftest.$ac_objext
24197 if { (ac_try="$ac_compile"
24198 case "(($ac_try" in
24199   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24200   *) ac_try_echo=$ac_try;;
24201 esac
24202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24203   (eval "$ac_compile") 2>conftest.er1
24204   ac_status=$?
24205   grep -v '^ *+' conftest.er1 >conftest.err
24206   rm -f conftest.er1
24207   cat conftest.err >&5
24208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24209   (exit $ac_status); } && {
24210          test -z "$ac_c_werror_flag" ||
24211          test ! -s conftest.err
24212        } && test -s conftest.$ac_objext; then
24213   ac_hi=$ac_mid
24214 else
24215   echo "$as_me: failed program was:" >&5
24216 sed 's/^/| /' conftest.$ac_ext >&5
24217
24218         ac_lo=`expr '(' $ac_mid ')' + 1`
24219 fi
24220
24221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24222 done
24223 case $ac_lo in
24224 ?*) ac_cv_sizeof_wchar_t=$ac_lo;;
24225 '') if test "$ac_cv_type_wchar_t" = yes; then
24226      { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t)
24227 See \`config.log' for more details." >&5
24228 echo "$as_me: error: cannot compute sizeof (wchar_t)
24229 See \`config.log' for more details." >&2;}
24230    { (exit 77); exit 77; }; }
24231    else
24232      ac_cv_sizeof_wchar_t=0
24233    fi ;;
24234 esac
24235 else
24236   cat >conftest.$ac_ext <<_ACEOF
24237 /* confdefs.h.  */
24238 _ACEOF
24239 cat confdefs.h >>conftest.$ac_ext
24240 cat >>conftest.$ac_ext <<_ACEOF
24241 /* end confdefs.h.  */
24242
24243         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
24244         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
24245         #  error "fake wchar_t"
24246         #endif
24247         #ifdef HAVE_WCHAR_H
24248         #  ifdef __CYGWIN__
24249         #    include <stddef.h>
24250         #  endif
24251         #  include <wchar.h>
24252         #endif
24253         #ifdef HAVE_STDLIB_H
24254         #  include <stdlib.h>
24255         #endif
24256         #include <stdio.h>
24257
24258
24259
24260    typedef wchar_t ac__type_sizeof_;
24261 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
24262 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
24263 #include <stdio.h>
24264 #include <stdlib.h>
24265 int
24266 main ()
24267 {
24268
24269   FILE *f = fopen ("conftest.val", "w");
24270   if (! f)
24271     return 1;
24272   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
24273     {
24274       long int i = longval ();
24275       if (i != ((long int) (sizeof (ac__type_sizeof_))))
24276         return 1;
24277       fprintf (f, "%ld\n", i);
24278     }
24279   else
24280     {
24281       unsigned long int i = ulongval ();
24282       if (i != ((long int) (sizeof (ac__type_sizeof_))))
24283         return 1;
24284       fprintf (f, "%lu\n", i);
24285     }
24286   return ferror (f) || fclose (f) != 0;
24287
24288   ;
24289   return 0;
24290 }
24291 _ACEOF
24292 rm -f conftest$ac_exeext
24293 if { (ac_try="$ac_link"
24294 case "(($ac_try" in
24295   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24296   *) ac_try_echo=$ac_try;;
24297 esac
24298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24299   (eval "$ac_link") 2>&5
24300   ac_status=$?
24301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24302   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24303   { (case "(($ac_try" in
24304   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24305   *) ac_try_echo=$ac_try;;
24306 esac
24307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24308   (eval "$ac_try") 2>&5
24309   ac_status=$?
24310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24311   (exit $ac_status); }; }; then
24312   ac_cv_sizeof_wchar_t=`cat conftest.val`
24313 else
24314   echo "$as_me: program exited with status $ac_status" >&5
24315 echo "$as_me: failed program was:" >&5
24316 sed 's/^/| /' conftest.$ac_ext >&5
24317
24318 ( exit $ac_status )
24319 if test "$ac_cv_type_wchar_t" = yes; then
24320      { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t)
24321 See \`config.log' for more details." >&5
24322 echo "$as_me: error: cannot compute sizeof (wchar_t)
24323 See \`config.log' for more details." >&2;}
24324    { (exit 77); exit 77; }; }
24325    else
24326      ac_cv_sizeof_wchar_t=0
24327    fi
24328 fi
24329 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24330 fi
24331 rm -f conftest.val
24332 fi
24333 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
24334 echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6; }
24335
24336
24337
24338 cat >>confdefs.h <<_ACEOF
24339 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
24340 _ACEOF
24341
24342
24343 if test "$ac_cv_sizeof_wchar_t" = 0; then
24344     { { echo "$as_me:$LINENO: error: wxWidgets requires wchar_t support." >&5
24345 echo "$as_me: error: wxWidgets requires wchar_t support." >&2;}
24346    { (exit 1); exit 1; }; }
24347 fi
24348 cat >>confdefs.h <<\_ACEOF
24349 #define wxUSE_WCHAR_T 1
24350 _ACEOF
24351
24352
24353 { echo "$as_me:$LINENO: checking for va_copy" >&5
24354 echo $ECHO_N "checking for va_copy... $ECHO_C" >&6; }
24355 if test "${wx_cv_func_va_copy+set}" = set; then
24356   echo $ECHO_N "(cached) $ECHO_C" >&6
24357 else
24358
24359         ac_ext=cpp
24360 ac_cpp='$CXXCPP $CPPFLAGS'
24361 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24362 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24363 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24364
24365         cat >conftest.$ac_ext <<_ACEOF
24366
24367             #include <stdarg.h>
24368             void foo(char *f, ...)
24369             {
24370                 va_list ap1, ap2;
24371                 va_start(ap1, f);
24372                 va_copy(ap2, ap1);
24373                 va_end(ap2);
24374                 va_end(ap1);
24375             }
24376             int main()
24377             {
24378                 foo("hi", 17);
24379                 return 0;
24380             }
24381 _ACEOF
24382 rm -f conftest.$ac_objext conftest$ac_exeext
24383 if { (ac_try="$ac_link"
24384 case "(($ac_try" in
24385   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24386   *) ac_try_echo=$ac_try;;
24387 esac
24388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24389   (eval "$ac_link") 2>conftest.er1
24390   ac_status=$?
24391   grep -v '^ *+' conftest.er1 >conftest.err
24392   rm -f conftest.er1
24393   cat conftest.err >&5
24394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24395   (exit $ac_status); } && {
24396          test -z "$ac_cxx_werror_flag" ||
24397          test ! -s conftest.err
24398        } && test -s conftest$ac_exeext &&
24399        $as_test_x conftest$ac_exeext; then
24400   wx_cv_func_va_copy=yes
24401 else
24402   echo "$as_me: failed program was:" >&5
24403 sed 's/^/| /' conftest.$ac_ext >&5
24404
24405         wx_cv_func_va_copy=no
24406
24407 fi
24408
24409 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24410       conftest$ac_exeext conftest.$ac_ext
24411         ac_ext=c
24412 ac_cpp='$CPP $CPPFLAGS'
24413 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24414 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24415 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24416
24417
24418
24419 fi
24420 { echo "$as_me:$LINENO: result: $wx_cv_func_va_copy" >&5
24421 echo "${ECHO_T}$wx_cv_func_va_copy" >&6; }
24422
24423 if test $wx_cv_func_va_copy = "yes"; then
24424     cat >>confdefs.h <<\_ACEOF
24425 #define HAVE_VA_COPY 1
24426 _ACEOF
24427
24428 else
24429         { echo "$as_me:$LINENO: checking if va_list can be copied by value" >&5
24430 echo $ECHO_N "checking if va_list can be copied by value... $ECHO_C" >&6; }
24431 if test "${wx_cv_type_va_list_lvalue+set}" = set; then
24432   echo $ECHO_N "(cached) $ECHO_C" >&6
24433 else
24434
24435             if test "$cross_compiling" = yes; then
24436                   wx_cv_type_va_list_lvalue=yes
24437
24438 else
24439   cat >conftest.$ac_ext <<_ACEOF
24440
24441                 #include <stdarg.h>
24442                 int foo(char *f, ...)
24443                 {
24444                     va_list ap1, ap2;
24445                     va_start(ap1, f);
24446                     ap2 = ap1;
24447                     if ( va_arg(ap1, int) != 17 || va_arg(ap2, int) != 17 )
24448                         return 1;
24449                     va_end(ap2);
24450                     va_end(ap1);
24451                     return 0;
24452                 }
24453                 int main()
24454                 {
24455                     return foo("hi", 17);
24456                 }
24457 _ACEOF
24458 rm -f conftest$ac_exeext
24459 if { (ac_try="$ac_link"
24460 case "(($ac_try" in
24461   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24462   *) ac_try_echo=$ac_try;;
24463 esac
24464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24465   (eval "$ac_link") 2>&5
24466   ac_status=$?
24467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24468   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24469   { (case "(($ac_try" in
24470   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24471   *) ac_try_echo=$ac_try;;
24472 esac
24473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24474   (eval "$ac_try") 2>&5
24475   ac_status=$?
24476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24477   (exit $ac_status); }; }; then
24478   wx_cv_type_va_list_lvalue=yes
24479 else
24480   echo "$as_me: program exited with status $ac_status" >&5
24481 echo "$as_me: failed program was:" >&5
24482 sed 's/^/| /' conftest.$ac_ext >&5
24483
24484 ( exit $ac_status )
24485 wx_cv_type_va_list_lvalue=no
24486 fi
24487 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24488 fi
24489
24490
24491
24492
24493 fi
24494 { echo "$as_me:$LINENO: result: $wx_cv_type_va_list_lvalue" >&5
24495 echo "${ECHO_T}$wx_cv_type_va_list_lvalue" >&6; }
24496
24497     if test $wx_cv_type_va_list_lvalue != "yes"; then
24498                         cat >>confdefs.h <<\_ACEOF
24499 #define VA_LIST_IS_ARRAY 1
24500 _ACEOF
24501
24502     fi
24503 fi
24504
24505 if test "$wxUSE_VARARG_MACROS" = "yes"; then
24506
24507 { echo "$as_me:$LINENO: checking whether the compiler supports variadic macros" >&5
24508 echo $ECHO_N "checking whether the compiler supports variadic macros... $ECHO_C" >&6; }
24509 if test "${wx_cv_have_variadic_macros+set}" = set; then
24510   echo $ECHO_N "(cached) $ECHO_C" >&6
24511 else
24512
24513                         ac_ext=cpp
24514 ac_cpp='$CXXCPP $CPPFLAGS'
24515 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24516 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24517 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24518
24519         cat >conftest.$ac_ext <<_ACEOF
24520 /* confdefs.h.  */
24521 _ACEOF
24522 cat confdefs.h >>conftest.$ac_ext
24523 cat >>conftest.$ac_ext <<_ACEOF
24524 /* end confdefs.h.  */
24525
24526                     #include <stdio.h>
24527                     #define test(fmt, ...) printf(fmt, __VA_ARGS__)
24528
24529 int
24530 main ()
24531 {
24532
24533                     test("%s %d %p", "test", 1, 0);
24534
24535
24536   ;
24537   return 0;
24538 }
24539 _ACEOF
24540 rm -f conftest.$ac_objext
24541 if { (ac_try="$ac_compile"
24542 case "(($ac_try" in
24543   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24544   *) ac_try_echo=$ac_try;;
24545 esac
24546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24547   (eval "$ac_compile") 2>conftest.er1
24548   ac_status=$?
24549   grep -v '^ *+' conftest.er1 >conftest.err
24550   rm -f conftest.er1
24551   cat conftest.err >&5
24552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24553   (exit $ac_status); } && {
24554          test -z "$ac_cxx_werror_flag" ||
24555          test ! -s conftest.err
24556        } && test -s conftest.$ac_objext; then
24557   wx_cv_have_variadic_macros=yes
24558 else
24559   echo "$as_me: failed program was:" >&5
24560 sed 's/^/| /' conftest.$ac_ext >&5
24561
24562         wx_cv_have_variadic_macros=no
24563
24564 fi
24565
24566 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24567         ac_ext=c
24568 ac_cpp='$CPP $CPPFLAGS'
24569 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24570 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24571 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24572
24573
24574
24575 fi
24576 { echo "$as_me:$LINENO: result: $wx_cv_have_variadic_macros" >&5
24577 echo "${ECHO_T}$wx_cv_have_variadic_macros" >&6; }
24578
24579 if test $wx_cv_have_variadic_macros = "yes"; then
24580     cat >>confdefs.h <<\_ACEOF
24581 #define HAVE_VARIADIC_MACROS 1
24582 _ACEOF
24583
24584 fi
24585
24586 fi
24587
24588 LARGEFILE_CPPFLAGS=
24589 # Check whether --enable-largefile was given.
24590 if test "${enable_largefile+set}" = set; then
24591   enableval=$enable_largefile;
24592 fi
24593
24594 if test "$enable_largefile" != no; then
24595             wx_largefile=no
24596
24597     { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
24598 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
24599 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
24600   echo $ECHO_N "(cached) $ECHO_C" >&6
24601 else
24602
24603           cat >conftest.$ac_ext <<_ACEOF
24604 /* confdefs.h.  */
24605 _ACEOF
24606 cat confdefs.h >>conftest.$ac_ext
24607 cat >>conftest.$ac_ext <<_ACEOF
24608 /* end confdefs.h.  */
24609 #define _FILE_OFFSET_BITS 64
24610                           #include <sys/types.h>
24611 int
24612 main ()
24613 {
24614 typedef struct {
24615     unsigned int field: sizeof(off_t) == 8;
24616 } wxlf;
24617
24618   ;
24619   return 0;
24620 }
24621 _ACEOF
24622 rm -f conftest.$ac_objext
24623 if { (ac_try="$ac_compile"
24624 case "(($ac_try" in
24625   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24626   *) ac_try_echo=$ac_try;;
24627 esac
24628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24629   (eval "$ac_compile") 2>conftest.er1
24630   ac_status=$?
24631   grep -v '^ *+' conftest.er1 >conftest.err
24632   rm -f conftest.er1
24633   cat conftest.err >&5
24634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24635   (exit $ac_status); } && {
24636          test -z "$ac_c_werror_flag" ||
24637          test ! -s conftest.err
24638        } && test -s conftest.$ac_objext; then
24639   ac_cv_sys_file_offset_bits=64
24640 else
24641   echo "$as_me: failed program was:" >&5
24642 sed 's/^/| /' conftest.$ac_ext >&5
24643
24644         ac_cv_sys_file_offset_bits=no
24645 fi
24646
24647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24648
24649
24650 fi
24651 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
24652 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
24653
24654     if test "$ac_cv_sys_file_offset_bits" != no; then
24655         wx_largefile=yes
24656         cat >>confdefs.h <<_ACEOF
24657 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
24658 _ACEOF
24659
24660     fi
24661
24662     if test "x$wx_largefile" != "xyes"; then
24663
24664     { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
24665 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
24666 if test "${ac_cv_sys_large_files+set}" = set; then
24667   echo $ECHO_N "(cached) $ECHO_C" >&6
24668 else
24669
24670           cat >conftest.$ac_ext <<_ACEOF
24671 /* confdefs.h.  */
24672 _ACEOF
24673 cat confdefs.h >>conftest.$ac_ext
24674 cat >>conftest.$ac_ext <<_ACEOF
24675 /* end confdefs.h.  */
24676 #define _LARGE_FILES 1
24677                           #include <sys/types.h>
24678 int
24679 main ()
24680 {
24681 typedef struct {
24682     unsigned int field: sizeof(off_t) == 8;
24683 } wxlf;
24684
24685   ;
24686   return 0;
24687 }
24688 _ACEOF
24689 rm -f conftest.$ac_objext
24690 if { (ac_try="$ac_compile"
24691 case "(($ac_try" in
24692   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24693   *) ac_try_echo=$ac_try;;
24694 esac
24695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24696   (eval "$ac_compile") 2>conftest.er1
24697   ac_status=$?
24698   grep -v '^ *+' conftest.er1 >conftest.err
24699   rm -f conftest.er1
24700   cat conftest.err >&5
24701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24702   (exit $ac_status); } && {
24703          test -z "$ac_c_werror_flag" ||
24704          test ! -s conftest.err
24705        } && test -s conftest.$ac_objext; then
24706   ac_cv_sys_large_files=1
24707 else
24708   echo "$as_me: failed program was:" >&5
24709 sed 's/^/| /' conftest.$ac_ext >&5
24710
24711         ac_cv_sys_large_files=no
24712 fi
24713
24714 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24715
24716
24717 fi
24718 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
24719 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
24720
24721     if test "$ac_cv_sys_large_files" != no; then
24722         wx_largefile=yes
24723         cat >>confdefs.h <<_ACEOF
24724 #define _LARGE_FILES $ac_cv_sys_large_files
24725 _ACEOF
24726
24727     fi
24728
24729     fi
24730
24731     { echo "$as_me:$LINENO: checking if large file support is available" >&5
24732 echo $ECHO_N "checking if large file support is available... $ECHO_C" >&6; }
24733     if test "x$wx_largefile" = "xyes"; then
24734         cat >>confdefs.h <<\_ACEOF
24735 #define HAVE_LARGEFILE_SUPPORT 1
24736 _ACEOF
24737
24738     fi
24739     { echo "$as_me:$LINENO: result: $wx_largefile" >&5
24740 echo "${ECHO_T}$wx_largefile" >&6; }
24741 fi
24742
24743 if test "$ac_cv_sys_file_offset_bits" = "64"; then
24744     LARGEFILE_CPPFLAGS="-D_FILE_OFFSET_BITS=64"
24745 elif test "$ac_cv_sys_large_files" = 1; then
24746     LARGEFILE_CPPFLAGS="-D_LARGE_FILES"
24747 fi
24748
24749 if test -n "$LARGEFILE_CPPFLAGS"; then
24750     WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS $LARGEFILE_CPPFLAGS"
24751
24752                             if test "$USE_HPUX" = 1 -a "$GXX" = "yes"; then
24753         { echo "$as_me:$LINENO: checking if -D__STDC_EXT__ is required" >&5
24754 echo $ECHO_N "checking if -D__STDC_EXT__ is required... $ECHO_C" >&6; }
24755 if test "${wx_cv_STDC_EXT_required+set}" = set; then
24756   echo $ECHO_N "(cached) $ECHO_C" >&6
24757 else
24758
24759                 ac_ext=cpp
24760 ac_cpp='$CXXCPP $CPPFLAGS'
24761 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24762 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24763 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24764
24765                 cat >conftest.$ac_ext <<_ACEOF
24766 /* confdefs.h.  */
24767 _ACEOF
24768 cat confdefs.h >>conftest.$ac_ext
24769 cat >>conftest.$ac_ext <<_ACEOF
24770 /* end confdefs.h.  */
24771
24772 int
24773 main ()
24774 {
24775
24776                         #ifndef __STDC_EXT__
24777                             choke me
24778                         #endif
24779
24780   ;
24781   return 0;
24782 }
24783 _ACEOF
24784 rm -f conftest.$ac_objext
24785 if { (ac_try="$ac_compile"
24786 case "(($ac_try" in
24787   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24788   *) ac_try_echo=$ac_try;;
24789 esac
24790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24791   (eval "$ac_compile") 2>conftest.er1
24792   ac_status=$?
24793   grep -v '^ *+' conftest.er1 >conftest.err
24794   rm -f conftest.er1
24795   cat conftest.err >&5
24796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24797   (exit $ac_status); } && {
24798          test -z "$ac_cxx_werror_flag" ||
24799          test ! -s conftest.err
24800        } && test -s conftest.$ac_objext; then
24801   wx_cv_STDC_EXT_required=no
24802 else
24803   echo "$as_me: failed program was:" >&5
24804 sed 's/^/| /' conftest.$ac_ext >&5
24805
24806         wx_cv_STDC_EXT_required=yes
24807
24808 fi
24809
24810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24811                 ac_ext=c
24812 ac_cpp='$CPP $CPPFLAGS'
24813 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24814 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24815 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24816
24817
24818
24819 fi
24820 { echo "$as_me:$LINENO: result: $wx_cv_STDC_EXT_required" >&5
24821 echo "${ECHO_T}$wx_cv_STDC_EXT_required" >&6; }
24822         if test "x$wx_cv_STDC_EXT_required" = "xyes"; then
24823             WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -D__STDC_EXT__"
24824         fi
24825     fi
24826 fi
24827
24828 ac_ext=cpp
24829 ac_cpp='$CXXCPP $CPPFLAGS'
24830 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24831 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24832 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24833
24834 old_CPPFLAGS="$CPPFLAGS"
24835 CPPFLAGS="$CPPFLAGS $LARGEFILE_CPPFLAGS"
24836 { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
24837 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6; }
24838 if test "${ac_cv_sys_largefile_source+set}" = set; then
24839   echo $ECHO_N "(cached) $ECHO_C" >&6
24840 else
24841   while :; do
24842   cat >conftest.$ac_ext <<_ACEOF
24843 /* confdefs.h.  */
24844 _ACEOF
24845 cat confdefs.h >>conftest.$ac_ext
24846 cat >>conftest.$ac_ext <<_ACEOF
24847 /* end confdefs.h.  */
24848 #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=no; 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   cat >conftest.$ac_ext <<_ACEOF
24888 /* confdefs.h.  */
24889 _ACEOF
24890 cat confdefs.h >>conftest.$ac_ext
24891 cat >>conftest.$ac_ext <<_ACEOF
24892 /* end confdefs.h.  */
24893 #define _LARGEFILE_SOURCE 1
24894 #include <sys/types.h> /* for off_t */
24895      #include <stdio.h>
24896 int
24897 main ()
24898 {
24899 int (*fp) (FILE *, off_t, int) = fseeko;
24900      return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
24901   ;
24902   return 0;
24903 }
24904 _ACEOF
24905 rm -f conftest.$ac_objext conftest$ac_exeext
24906 if { (ac_try="$ac_link"
24907 case "(($ac_try" in
24908   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24909   *) ac_try_echo=$ac_try;;
24910 esac
24911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24912   (eval "$ac_link") 2>conftest.er1
24913   ac_status=$?
24914   grep -v '^ *+' conftest.er1 >conftest.err
24915   rm -f conftest.er1
24916   cat conftest.err >&5
24917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24918   (exit $ac_status); } && {
24919          test -z "$ac_cxx_werror_flag" ||
24920          test ! -s conftest.err
24921        } && test -s conftest$ac_exeext &&
24922        $as_test_x conftest$ac_exeext; then
24923   ac_cv_sys_largefile_source=1; break
24924 else
24925   echo "$as_me: failed program was:" >&5
24926 sed 's/^/| /' conftest.$ac_ext >&5
24927
24928
24929 fi
24930
24931 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24932       conftest$ac_exeext conftest.$ac_ext
24933   ac_cv_sys_largefile_source=unknown
24934   break
24935 done
24936 fi
24937 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
24938 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
24939 case $ac_cv_sys_largefile_source in #(
24940   no | unknown) ;;
24941   *)
24942 cat >>confdefs.h <<_ACEOF
24943 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
24944 _ACEOF
24945 ;;
24946 esac
24947 rm -f conftest*
24948
24949 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
24950 # in glibc 2.1.3, but that breaks too many other things.
24951 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
24952 if test $ac_cv_sys_largefile_source != unknown; then
24953
24954 cat >>confdefs.h <<\_ACEOF
24955 #define HAVE_FSEEKO 1
24956 _ACEOF
24957
24958 fi
24959
24960 CPPFLAGS="$old_CPPFLAGS"
24961 ac_ext=c
24962 ac_cpp='$CPP $CPPFLAGS'
24963 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24964 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24965 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24966
24967 if test "$ac_cv_sys_largefile_source" != no; then
24968     WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_LARGEFILE_SOURCE=$ac_cv_sys_largefile_source"
24969 fi
24970
24971 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
24972 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
24973 if test "${ac_cv_c_bigendian+set}" = set; then
24974   echo $ECHO_N "(cached) $ECHO_C" >&6
24975 else
24976   ac_cv_c_bigendian=unknown
24977 # See if sys/param.h defines the BYTE_ORDER macro.
24978 cat >conftest.$ac_ext <<_ACEOF
24979 /* confdefs.h.  */
24980 _ACEOF
24981 cat confdefs.h >>conftest.$ac_ext
24982 cat >>conftest.$ac_ext <<_ACEOF
24983 /* end confdefs.h.  */
24984 #include <sys/types.h>
24985 #include <sys/param.h>
24986 int
24987 main ()
24988 {
24989
24990 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
24991  bogus endian macros
24992 #endif
24993   ;
24994   return 0;
24995 }
24996 _ACEOF
24997 rm -f conftest.$ac_objext
24998 if { (ac_try="$ac_compile"
24999 case "(($ac_try" in
25000   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25001   *) ac_try_echo=$ac_try;;
25002 esac
25003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25004   (eval "$ac_compile") 2>conftest.er1
25005   ac_status=$?
25006   grep -v '^ *+' conftest.er1 >conftest.err
25007   rm -f conftest.er1
25008   cat conftest.err >&5
25009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25010   (exit $ac_status); } && {
25011          test -z "$ac_c_werror_flag" ||
25012          test ! -s conftest.err
25013        } && test -s conftest.$ac_objext; then
25014   # It does; now see whether it defined to BIG_ENDIAN or not.
25015 cat >conftest.$ac_ext <<_ACEOF
25016 /* confdefs.h.  */
25017 _ACEOF
25018 cat confdefs.h >>conftest.$ac_ext
25019 cat >>conftest.$ac_ext <<_ACEOF
25020 /* end confdefs.h.  */
25021 #include <sys/types.h>
25022 #include <sys/param.h>
25023 int
25024 main ()
25025 {
25026
25027 #if BYTE_ORDER != BIG_ENDIAN
25028  not big endian
25029 #endif
25030   ;
25031   return 0;
25032 }
25033 _ACEOF
25034 rm -f conftest.$ac_objext
25035 if { (ac_try="$ac_compile"
25036 case "(($ac_try" in
25037   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25038   *) ac_try_echo=$ac_try;;
25039 esac
25040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25041   (eval "$ac_compile") 2>conftest.er1
25042   ac_status=$?
25043   grep -v '^ *+' conftest.er1 >conftest.err
25044   rm -f conftest.er1
25045   cat conftest.err >&5
25046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25047   (exit $ac_status); } && {
25048          test -z "$ac_c_werror_flag" ||
25049          test ! -s conftest.err
25050        } && test -s conftest.$ac_objext; then
25051   ac_cv_c_bigendian=yes
25052 else
25053   echo "$as_me: failed program was:" >&5
25054 sed 's/^/| /' conftest.$ac_ext >&5
25055
25056         ac_cv_c_bigendian=no
25057 fi
25058
25059 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25060 else
25061   echo "$as_me: failed program was:" >&5
25062 sed 's/^/| /' conftest.$ac_ext >&5
25063
25064
25065 fi
25066
25067 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25068 if test $ac_cv_c_bigendian = unknown; then
25069 if test "$cross_compiling" = yes; then
25070   ac_cv_c_bigendian=unknown
25071 else
25072   cat >conftest.$ac_ext <<_ACEOF
25073 /* confdefs.h.  */
25074 _ACEOF
25075 cat confdefs.h >>conftest.$ac_ext
25076 cat >>conftest.$ac_ext <<_ACEOF
25077 /* end confdefs.h.  */
25078 main () {
25079   /* Are we little or big endian?  From Harbison&Steele.  */
25080   union
25081   {
25082     long l;
25083     char c[sizeof (long)];
25084   } u;
25085   u.l = 1;
25086   exit (u.c[sizeof (long) - 1] == 1);
25087 }
25088 _ACEOF
25089 rm -f conftest$ac_exeext
25090 if { (ac_try="$ac_link"
25091 case "(($ac_try" in
25092   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25093   *) ac_try_echo=$ac_try;;
25094 esac
25095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25096   (eval "$ac_link") 2>&5
25097   ac_status=$?
25098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25099   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25100   { (case "(($ac_try" in
25101   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25102   *) ac_try_echo=$ac_try;;
25103 esac
25104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25105   (eval "$ac_try") 2>&5
25106   ac_status=$?
25107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25108   (exit $ac_status); }; }; then
25109   ac_cv_c_bigendian=no
25110 else
25111   echo "$as_me: program exited with status $ac_status" >&5
25112 echo "$as_me: failed program was:" >&5
25113 sed 's/^/| /' conftest.$ac_ext >&5
25114
25115 ( exit $ac_status )
25116 ac_cv_c_bigendian=yes
25117 fi
25118 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25119 fi
25120
25121
25122 fi
25123 fi
25124 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
25125 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
25126 if test $ac_cv_c_bigendian = unknown; then
25127   { 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
25128 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;}
25129 fi
25130 if test $ac_cv_c_bigendian = yes; then
25131   cat >>confdefs.h <<\_ACEOF
25132 #define WORDS_BIGENDIAN 1
25133 _ACEOF
25134
25135 fi
25136
25137
25138
25139
25140     ac_ext=cpp
25141 ac_cpp='$CXXCPP $CPPFLAGS'
25142 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25143 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25144 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25145
25146
25147
25148 for ac_header in iostream
25149 do
25150 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25151 { echo "$as_me:$LINENO: checking for $ac_header" >&5
25152 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
25153 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25154   echo $ECHO_N "(cached) $ECHO_C" >&6
25155 else
25156   cat >conftest.$ac_ext <<_ACEOF
25157 /* confdefs.h.  */
25158 _ACEOF
25159 cat confdefs.h >>conftest.$ac_ext
25160 cat >>conftest.$ac_ext <<_ACEOF
25161 /* end confdefs.h.  */
25162
25163
25164 #include <$ac_header>
25165 _ACEOF
25166 rm -f conftest.$ac_objext
25167 if { (ac_try="$ac_compile"
25168 case "(($ac_try" in
25169   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25170   *) ac_try_echo=$ac_try;;
25171 esac
25172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25173   (eval "$ac_compile") 2>conftest.er1
25174   ac_status=$?
25175   grep -v '^ *+' conftest.er1 >conftest.err
25176   rm -f conftest.er1
25177   cat conftest.err >&5
25178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25179   (exit $ac_status); } && {
25180          test -z "$ac_cxx_werror_flag" ||
25181          test ! -s conftest.err
25182        } && test -s conftest.$ac_objext; then
25183   eval "$as_ac_Header=yes"
25184 else
25185   echo "$as_me: failed program was:" >&5
25186 sed 's/^/| /' conftest.$ac_ext >&5
25187
25188         eval "$as_ac_Header=no"
25189 fi
25190
25191 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25192 fi
25193 ac_res=`eval echo '${'$as_ac_Header'}'`
25194                { echo "$as_me:$LINENO: result: $ac_res" >&5
25195 echo "${ECHO_T}$ac_res" >&6; }
25196 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25197   cat >>confdefs.h <<_ACEOF
25198 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25199 _ACEOF
25200
25201 fi
25202
25203 done
25204
25205
25206     if test "$ac_cv_header_iostream" = "yes" ; then
25207       :
25208     else
25209       cat >>confdefs.h <<\_ACEOF
25210 #define wxUSE_IOSTREAMH 1
25211 _ACEOF
25212
25213     fi
25214
25215     ac_ext=c
25216 ac_cpp='$CPP $CPPFLAGS'
25217 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25218 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25219 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25220
25221
25222
25223
25224   { echo "$as_me:$LINENO: checking if C++ compiler supports the explicit keyword" >&5
25225 echo $ECHO_N "checking if C++ compiler supports the explicit keyword... $ECHO_C" >&6; }
25226 if test "${wx_cv_explicit+set}" = set; then
25227   echo $ECHO_N "(cached) $ECHO_C" >&6
25228 else
25229
25230
25231     ac_ext=cpp
25232 ac_cpp='$CXXCPP $CPPFLAGS'
25233 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25234 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25235 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25236
25237
25238             cat >conftest.$ac_ext <<_ACEOF
25239 /* confdefs.h.  */
25240 _ACEOF
25241 cat confdefs.h >>conftest.$ac_ext
25242 cat >>conftest.$ac_ext <<_ACEOF
25243 /* end confdefs.h.  */
25244
25245         class Foo { public: explicit Foo(int) {} };
25246
25247 int
25248 main ()
25249 {
25250
25251         return 0;
25252
25253   ;
25254   return 0;
25255 }
25256 _ACEOF
25257 rm -f conftest.$ac_objext
25258 if { (ac_try="$ac_compile"
25259 case "(($ac_try" in
25260   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25261   *) ac_try_echo=$ac_try;;
25262 esac
25263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25264   (eval "$ac_compile") 2>conftest.er1
25265   ac_status=$?
25266   grep -v '^ *+' conftest.er1 >conftest.err
25267   rm -f conftest.er1
25268   cat conftest.err >&5
25269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25270   (exit $ac_status); } && {
25271          test -z "$ac_cxx_werror_flag" ||
25272          test ! -s conftest.err
25273        } && test -s conftest.$ac_objext; then
25274
25275         cat >conftest.$ac_ext <<_ACEOF
25276 /* confdefs.h.  */
25277 _ACEOF
25278 cat confdefs.h >>conftest.$ac_ext
25279 cat >>conftest.$ac_ext <<_ACEOF
25280 /* end confdefs.h.  */
25281
25282                 class Foo { public: explicit Foo(int) {} };
25283                 static void TakeFoo(const Foo& foo) { }
25284
25285 int
25286 main ()
25287 {
25288
25289                 TakeFoo(17);
25290                 return 0;
25291
25292   ;
25293   return 0;
25294 }
25295 _ACEOF
25296 rm -f conftest.$ac_objext
25297 if { (ac_try="$ac_compile"
25298 case "(($ac_try" in
25299   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25300   *) ac_try_echo=$ac_try;;
25301 esac
25302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25303   (eval "$ac_compile") 2>conftest.er1
25304   ac_status=$?
25305   grep -v '^ *+' conftest.er1 >conftest.err
25306   rm -f conftest.er1
25307   cat conftest.err >&5
25308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25309   (exit $ac_status); } && {
25310          test -z "$ac_cxx_werror_flag" ||
25311          test ! -s conftest.err
25312        } && test -s conftest.$ac_objext; then
25313   wx_cv_explicit=no
25314 else
25315   echo "$as_me: failed program was:" >&5
25316 sed 's/^/| /' conftest.$ac_ext >&5
25317
25318         wx_cv_explicit=yes
25319
25320 fi
25321
25322 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25323
25324 else
25325   echo "$as_me: failed program was:" >&5
25326 sed 's/^/| /' conftest.$ac_ext >&5
25327
25328         wx_cv_explicit=no
25329
25330 fi
25331
25332 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25333
25334     ac_ext=c
25335 ac_cpp='$CPP $CPPFLAGS'
25336 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25337 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25338 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25339
25340
25341 fi
25342 { echo "$as_me:$LINENO: result: $wx_cv_explicit" >&5
25343 echo "${ECHO_T}$wx_cv_explicit" >&6; }
25344
25345   if test "$wx_cv_explicit" = "yes"; then
25346     cat >>confdefs.h <<\_ACEOF
25347 #define HAVE_EXPLICIT 1
25348 _ACEOF
25349
25350   fi
25351
25352
25353 if test "x$SUNCXX" = xyes; then
25354     CXXFLAGS="-features=tmplife $CXXFLAGS"
25355 fi
25356
25357 if test "x$SUNCC" = xyes; then
25358     CFLAGS="-erroff=E_NO_EXPLICIT_TYPE_GIVEN $CFLAGS"
25359 fi
25360
25361 if test "x$SGICC" = "xyes"; then
25362     { echo "$as_me:$LINENO: checking if cc version is 7.4.4 or greater" >&5
25363 echo $ECHO_N "checking if cc version is 7.4.4 or greater... $ECHO_C" >&6; }
25364 if test "${wx_cv_prog_sgicc744+set}" = set; then
25365   echo $ECHO_N "(cached) $ECHO_C" >&6
25366 else
25367
25368             cat >conftest.$ac_ext <<_ACEOF
25369 /* confdefs.h.  */
25370 _ACEOF
25371 cat confdefs.h >>conftest.$ac_ext
25372 cat >>conftest.$ac_ext <<_ACEOF
25373 /* end confdefs.h.  */
25374
25375 int
25376 main ()
25377 {
25378
25379                     #if _SGI_COMPILER_VERSION >= 744
25380                     chock me: mipsPro is 7.4.4 or later
25381                     #endif
25382
25383   ;
25384   return 0;
25385 }
25386 _ACEOF
25387 rm -f conftest.$ac_objext
25388 if { (ac_try="$ac_compile"
25389 case "(($ac_try" in
25390   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25391   *) ac_try_echo=$ac_try;;
25392 esac
25393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25394   (eval "$ac_compile") 2>conftest.er1
25395   ac_status=$?
25396   grep -v '^ *+' conftest.er1 >conftest.err
25397   rm -f conftest.er1
25398   cat conftest.err >&5
25399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25400   (exit $ac_status); } && {
25401          test -z "$ac_c_werror_flag" ||
25402          test ! -s conftest.err
25403        } && test -s conftest.$ac_objext; then
25404   wx_cv_prog_sgicc744=no
25405 else
25406   echo "$as_me: failed program was:" >&5
25407 sed 's/^/| /' conftest.$ac_ext >&5
25408
25409         wx_cv_prog_sgicc744=yes
25410
25411 fi
25412
25413 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25414
25415
25416 fi
25417 { echo "$as_me:$LINENO: result: $wx_cv_prog_sgicc744" >&5
25418 echo "${ECHO_T}$wx_cv_prog_sgicc744" >&6; }
25419
25420     if test "x$wx_cv_prog_sgicc744" = "xyes"; then
25421         CFLAGS="-woff 3970 $CFLAGS"
25422     fi
25423 fi
25424 if test "x$SGICXX" = "xyes"; then
25425     { echo "$as_me:$LINENO: checking if CC version is 7.4.4 or greater" >&5
25426 echo $ECHO_N "checking if CC version is 7.4.4 or greater... $ECHO_C" >&6; }
25427 if test "${wx_cv_prog_sgicxx744+set}" = set; then
25428   echo $ECHO_N "(cached) $ECHO_C" >&6
25429 else
25430
25431             ac_ext=cpp
25432 ac_cpp='$CXXCPP $CPPFLAGS'
25433 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25434 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25435 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25436
25437             cat >conftest.$ac_ext <<_ACEOF
25438 /* confdefs.h.  */
25439 _ACEOF
25440 cat confdefs.h >>conftest.$ac_ext
25441 cat >>conftest.$ac_ext <<_ACEOF
25442 /* end confdefs.h.  */
25443
25444 int
25445 main ()
25446 {
25447
25448                     #if _SGI_COMPILER_VERSION >= 744
25449                     chock me: mipsPro is 7.4.4 or later
25450                     #endif
25451
25452   ;
25453   return 0;
25454 }
25455 _ACEOF
25456 rm -f conftest.$ac_objext
25457 if { (ac_try="$ac_compile"
25458 case "(($ac_try" in
25459   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25460   *) ac_try_echo=$ac_try;;
25461 esac
25462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25463   (eval "$ac_compile") 2>conftest.er1
25464   ac_status=$?
25465   grep -v '^ *+' conftest.er1 >conftest.err
25466   rm -f conftest.er1
25467   cat conftest.err >&5
25468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25469   (exit $ac_status); } && {
25470          test -z "$ac_cxx_werror_flag" ||
25471          test ! -s conftest.err
25472        } && test -s conftest.$ac_objext; then
25473   wx_cv_prog_sgicxx744=no
25474 else
25475   echo "$as_me: failed program was:" >&5
25476 sed 's/^/| /' conftest.$ac_ext >&5
25477
25478         wx_cv_prog_sgicxx744=yes
25479
25480 fi
25481
25482 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25483             ac_ext=c
25484 ac_cpp='$CPP $CPPFLAGS'
25485 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25486 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25487 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25488
25489
25490
25491 fi
25492 { echo "$as_me:$LINENO: result: $wx_cv_prog_sgicxx744" >&5
25493 echo "${ECHO_T}$wx_cv_prog_sgicxx744" >&6; }
25494
25495     if test "x$wx_cv_prog_sgicxx744" = "xyes"; then
25496         CXXFLAGS="-woff 3970 $CXXFLAGS"
25497     fi
25498 fi
25499
25500 if test "x$HPCC" = "xyes"; then
25501                     CFLAGS="+W 2011,2450 $CFLAGS"
25502 fi
25503 if test "x$HPCXX" = "xyes"; then
25504                             CXXFLAGS="+W 2340,4232 $CXXFLAGS"
25505 fi
25506
25507 if test "x$COMPAQCXX" = "xyes"; then
25508                                 CXXFLAGS="-w0 -msg_disable basclsnondto,unrimpret,intconlosbit"
25509 fi
25510
25511 ac_ext=cpp
25512 ac_cpp='$CXXCPP $CPPFLAGS'
25513 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25514 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25515 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25516
25517
25518 if test "$wxUSE_STD_STRING" = "yes" -o "$wxUSE_STL" = "yes"; then
25519     if test "$wxUSE_UNICODE" = "yes"; then
25520         std_string="std::wstring"
25521         char_type="wchar_t"
25522     else
25523         std_string="std::string"
25524         char_type="char"
25525     fi
25526
25527         { echo "$as_me:$LINENO: checking for $std_string in <string>" >&5
25528 echo $ECHO_N "checking for $std_string in <string>... $ECHO_C" >&6; }
25529 if test "${wx_cv_class_stdstring+set}" = set; then
25530   echo $ECHO_N "(cached) $ECHO_C" >&6
25531 else
25532
25533             cat >conftest.$ac_ext <<_ACEOF
25534 /* confdefs.h.  */
25535 _ACEOF
25536 cat confdefs.h >>conftest.$ac_ext
25537 cat >>conftest.$ac_ext <<_ACEOF
25538 /* end confdefs.h.  */
25539 #include <string>
25540 int
25541 main ()
25542 {
25543 $std_string foo;
25544   ;
25545   return 0;
25546 }
25547 _ACEOF
25548 rm -f conftest.$ac_objext
25549 if { (ac_try="$ac_compile"
25550 case "(($ac_try" in
25551   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25552   *) ac_try_echo=$ac_try;;
25553 esac
25554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25555   (eval "$ac_compile") 2>conftest.er1
25556   ac_status=$?
25557   grep -v '^ *+' conftest.er1 >conftest.err
25558   rm -f conftest.er1
25559   cat conftest.err >&5
25560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25561   (exit $ac_status); } && {
25562          test -z "$ac_cxx_werror_flag" ||
25563          test ! -s conftest.err
25564        } && test -s conftest.$ac_objext; then
25565   wx_cv_class_stdstring=yes
25566 else
25567   echo "$as_me: failed program was:" >&5
25568 sed 's/^/| /' conftest.$ac_ext >&5
25569
25570         wx_cv_class_stdstring=no
25571
25572 fi
25573
25574 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25575
25576
25577 fi
25578 { echo "$as_me:$LINENO: result: $wx_cv_class_stdstring" >&5
25579 echo "${ECHO_T}$wx_cv_class_stdstring" >&6; }
25580
25581     if test "$wx_cv_class_stdstring" = yes; then
25582         if test "$wxUSE_UNICODE" = "yes"; then
25583             cat >>confdefs.h <<\_ACEOF
25584 #define HAVE_STD_WSTRING 1
25585 _ACEOF
25586
25587         fi
25588                     else
25589         { echo "$as_me:$LINENO: checking if std::basic_string<$char_type> works" >&5
25590 echo $ECHO_N "checking if std::basic_string<$char_type> works... $ECHO_C" >&6; }
25591 if test "${wx_cv_class_stdbasicstring+set}" = set; then
25592   echo $ECHO_N "(cached) $ECHO_C" >&6
25593 else
25594
25595                 cat >conftest.$ac_ext <<_ACEOF
25596 /* confdefs.h.  */
25597 _ACEOF
25598 cat confdefs.h >>conftest.$ac_ext
25599 cat >>conftest.$ac_ext <<_ACEOF
25600 /* end confdefs.h.  */
25601
25602                     #ifdef HAVE_WCHAR_H
25603                     #  ifdef __CYGWIN__
25604                     #    include <stddef.h>
25605                     #  endif
25606                     #  include <wchar.h>
25607                     #endif
25608                     #ifdef HAVE_STDLIB_H
25609                     #  include <stdlib.h>
25610                     #endif
25611                     #include <stdio.h>
25612                     #include <string>
25613
25614 int
25615 main ()
25616 {
25617 std::basic_string<$char_type> foo;
25618                      const $char_type* dummy = foo.c_str();
25619   ;
25620   return 0;
25621 }
25622 _ACEOF
25623 rm -f conftest.$ac_objext
25624 if { (ac_try="$ac_compile"
25625 case "(($ac_try" in
25626   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25627   *) ac_try_echo=$ac_try;;
25628 esac
25629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25630   (eval "$ac_compile") 2>conftest.er1
25631   ac_status=$?
25632   grep -v '^ *+' conftest.er1 >conftest.err
25633   rm -f conftest.er1
25634   cat conftest.err >&5
25635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25636   (exit $ac_status); } && {
25637          test -z "$ac_cxx_werror_flag" ||
25638          test ! -s conftest.err
25639        } && test -s conftest.$ac_objext; then
25640   wx_cv_class_stdbasicstring=yes
25641 else
25642   echo "$as_me: failed program was:" >&5
25643 sed 's/^/| /' conftest.$ac_ext >&5
25644
25645         wx_cv_class_stdbasicstring=no
25646
25647 fi
25648
25649 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25650
25651
25652 fi
25653 { echo "$as_me:$LINENO: result: $wx_cv_class_stdbasicstring" >&5
25654 echo "${ECHO_T}$wx_cv_class_stdbasicstring" >&6; }
25655
25656         if test "$wx_cv_class_stdbasicstring" != yes; then
25657             if test "$wxUSE_STL" = "yes"; then
25658                 { { echo "$as_me:$LINENO: error: Can't use --enable-stl without $std_string or std::basic_string<$char_type>" >&5
25659 echo "$as_me: error: Can't use --enable-stl without $std_string or std::basic_string<$char_type>" >&2;}
25660    { (exit 1); exit 1; }; }
25661             elif test "$wxUSE_STD_STRING" = "yes"; then
25662                 { { echo "$as_me:$LINENO: error: Can't use --enable-std_string without $std_string or std::basic_string<$char_type>" >&5
25663 echo "$as_me: error: Can't use --enable-std_string without $std_string or std::basic_string<$char_type>" >&2;}
25664    { (exit 1); exit 1; }; }
25665             else
25666                 { echo "$as_me:$LINENO: WARNING: No $std_string or std::basic_string<$char_type>, switching to --disable-std_string" >&5
25667 echo "$as_me: WARNING: No $std_string or std::basic_string<$char_type>, switching to --disable-std_string" >&2;}
25668                 wxUSE_STD_STRING=no
25669             fi
25670         fi
25671     fi
25672 fi
25673
25674 if test "$wxUSE_STD_IOSTREAM" = "yes"; then
25675     { echo "$as_me:$LINENO: checking for std::istream" >&5
25676 echo $ECHO_N "checking for std::istream... $ECHO_C" >&6; }
25677 if test "${ac_cv_type_std__istream+set}" = set; then
25678   echo $ECHO_N "(cached) $ECHO_C" >&6
25679 else
25680   cat >conftest.$ac_ext <<_ACEOF
25681 /* confdefs.h.  */
25682 _ACEOF
25683 cat confdefs.h >>conftest.$ac_ext
25684 cat >>conftest.$ac_ext <<_ACEOF
25685 /* end confdefs.h.  */
25686 #include <iostream>
25687
25688 typedef std::istream ac__type_new_;
25689 int
25690 main ()
25691 {
25692 if ((ac__type_new_ *) 0)
25693   return 0;
25694 if (sizeof (ac__type_new_))
25695   return 0;
25696   ;
25697   return 0;
25698 }
25699 _ACEOF
25700 rm -f conftest.$ac_objext
25701 if { (ac_try="$ac_compile"
25702 case "(($ac_try" in
25703   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25704   *) ac_try_echo=$ac_try;;
25705 esac
25706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25707   (eval "$ac_compile") 2>conftest.er1
25708   ac_status=$?
25709   grep -v '^ *+' conftest.er1 >conftest.err
25710   rm -f conftest.er1
25711   cat conftest.err >&5
25712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25713   (exit $ac_status); } && {
25714          test -z "$ac_cxx_werror_flag" ||
25715          test ! -s conftest.err
25716        } && test -s conftest.$ac_objext; then
25717   ac_cv_type_std__istream=yes
25718 else
25719   echo "$as_me: failed program was:" >&5
25720 sed 's/^/| /' conftest.$ac_ext >&5
25721
25722         ac_cv_type_std__istream=no
25723 fi
25724
25725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25726 fi
25727 { echo "$as_me:$LINENO: result: $ac_cv_type_std__istream" >&5
25728 echo "${ECHO_T}$ac_cv_type_std__istream" >&6; }
25729 if test $ac_cv_type_std__istream = yes; then
25730
25731 cat >>confdefs.h <<_ACEOF
25732 #define HAVE_STD__ISTREAM 1
25733 _ACEOF
25734
25735
25736 else
25737   wxUSE_STD_IOSTREAM=no
25738 fi
25739 { echo "$as_me:$LINENO: checking for std::ostream" >&5
25740 echo $ECHO_N "checking for std::ostream... $ECHO_C" >&6; }
25741 if test "${ac_cv_type_std__ostream+set}" = set; then
25742   echo $ECHO_N "(cached) $ECHO_C" >&6
25743 else
25744   cat >conftest.$ac_ext <<_ACEOF
25745 /* confdefs.h.  */
25746 _ACEOF
25747 cat confdefs.h >>conftest.$ac_ext
25748 cat >>conftest.$ac_ext <<_ACEOF
25749 /* end confdefs.h.  */
25750 #include <iostream>
25751
25752 typedef std::ostream ac__type_new_;
25753 int
25754 main ()
25755 {
25756 if ((ac__type_new_ *) 0)
25757   return 0;
25758 if (sizeof (ac__type_new_))
25759   return 0;
25760   ;
25761   return 0;
25762 }
25763 _ACEOF
25764 rm -f conftest.$ac_objext
25765 if { (ac_try="$ac_compile"
25766 case "(($ac_try" in
25767   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25768   *) ac_try_echo=$ac_try;;
25769 esac
25770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25771   (eval "$ac_compile") 2>conftest.er1
25772   ac_status=$?
25773   grep -v '^ *+' conftest.er1 >conftest.err
25774   rm -f conftest.er1
25775   cat conftest.err >&5
25776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25777   (exit $ac_status); } && {
25778          test -z "$ac_cxx_werror_flag" ||
25779          test ! -s conftest.err
25780        } && test -s conftest.$ac_objext; then
25781   ac_cv_type_std__ostream=yes
25782 else
25783   echo "$as_me: failed program was:" >&5
25784 sed 's/^/| /' conftest.$ac_ext >&5
25785
25786         ac_cv_type_std__ostream=no
25787 fi
25788
25789 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25790 fi
25791 { echo "$as_me:$LINENO: result: $ac_cv_type_std__ostream" >&5
25792 echo "${ECHO_T}$ac_cv_type_std__ostream" >&6; }
25793 if test $ac_cv_type_std__ostream = yes; then
25794
25795 cat >>confdefs.h <<_ACEOF
25796 #define HAVE_STD__OSTREAM 1
25797 _ACEOF
25798
25799
25800 else
25801   wxUSE_STD_IOSTREAM=no
25802 fi
25803
25804
25805     if test "$wxUSE_STD_IOSTREAM" != "yes"; then
25806         if test "$wxUSE_STD_IOSTREAM" = "yes"; then
25807             { { echo "$as_me:$LINENO: error: Can't use --enable-std_iostreams without std::istream and std::ostream" >&5
25808 echo "$as_me: error: Can't use --enable-std_iostreams without std::istream and std::ostream" >&2;}
25809    { (exit 1); exit 1; }; }
25810         else
25811             { echo "$as_me:$LINENO: WARNING: No std::iostreams, switching to --disable-std_iostreams" >&5
25812 echo "$as_me: WARNING: No std::iostreams, switching to --disable-std_iostreams" >&2;}
25813         fi
25814     fi
25815 fi
25816
25817 if test "$wxUSE_STL" = "yes"; then
25818         { echo "$as_me:$LINENO: checking for basic STL functionality" >&5
25819 echo $ECHO_N "checking for basic STL functionality... $ECHO_C" >&6; }
25820 if test "${wx_cv_lib_stl+set}" = set; then
25821   echo $ECHO_N "(cached) $ECHO_C" >&6
25822 else
25823   cat >conftest.$ac_ext <<_ACEOF
25824 /* confdefs.h.  */
25825 _ACEOF
25826 cat confdefs.h >>conftest.$ac_ext
25827 cat >>conftest.$ac_ext <<_ACEOF
25828 /* end confdefs.h.  */
25829 #include <string>
25830             #include <functional>
25831             #include <algorithm>
25832             #include <vector>
25833             #include <list>
25834 int
25835 main ()
25836 {
25837 std::vector<int> moo;
25838              std::list<int> foo;
25839              std::vector<int>::iterator it =
25840                  std::find_if(moo.begin(), moo.end(),
25841                               std::bind2nd(std::less<int>(), 3));
25842   ;
25843   return 0;
25844 }
25845 _ACEOF
25846 rm -f conftest.$ac_objext
25847 if { (ac_try="$ac_compile"
25848 case "(($ac_try" in
25849   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25850   *) ac_try_echo=$ac_try;;
25851 esac
25852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25853   (eval "$ac_compile") 2>conftest.er1
25854   ac_status=$?
25855   grep -v '^ *+' conftest.er1 >conftest.err
25856   rm -f conftest.er1
25857   cat conftest.err >&5
25858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25859   (exit $ac_status); } && {
25860          test -z "$ac_cxx_werror_flag" ||
25861          test ! -s conftest.err
25862        } && test -s conftest.$ac_objext; then
25863   wx_cv_lib_stl=yes
25864 else
25865   echo "$as_me: failed program was:" >&5
25866 sed 's/^/| /' conftest.$ac_ext >&5
25867
25868         wx_cv_lib_stl=no
25869
25870 fi
25871
25872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25873
25874 fi
25875 { echo "$as_me:$LINENO: result: $wx_cv_lib_stl" >&5
25876 echo "${ECHO_T}$wx_cv_lib_stl" >&6; }
25877
25878     if test "$wx_cv_lib_stl" != yes; then
25879          { { echo "$as_me:$LINENO: error: Can't use --enable-stl as basic STL functionality is missing" >&5
25880 echo "$as_me: error: Can't use --enable-stl as basic STL functionality is missing" >&2;}
25881    { (exit 1); exit 1; }; }
25882     fi
25883
25884         { echo "$as_me:$LINENO: checking for compliant std::string::compare" >&5
25885 echo $ECHO_N "checking for compliant std::string::compare... $ECHO_C" >&6; }
25886 if test "${wx_cv_func_stdstring_compare+set}" = set; then
25887   echo $ECHO_N "(cached) $ECHO_C" >&6
25888 else
25889   cat >conftest.$ac_ext <<_ACEOF
25890 /* confdefs.h.  */
25891 _ACEOF
25892 cat confdefs.h >>conftest.$ac_ext
25893 cat >>conftest.$ac_ext <<_ACEOF
25894 /* end confdefs.h.  */
25895 #include <string>
25896 int
25897 main ()
25898 {
25899 std::string foo, bar;
25900             foo.compare(bar);
25901             foo.compare(1, 1, bar);
25902             foo.compare(1, 1, bar, 1, 1);
25903             foo.compare("");
25904             foo.compare(1, 1, "");
25905             foo.compare(1, 1, "", 2);
25906   ;
25907   return 0;
25908 }
25909 _ACEOF
25910 rm -f conftest.$ac_objext
25911 if { (ac_try="$ac_compile"
25912 case "(($ac_try" in
25913   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25914   *) ac_try_echo=$ac_try;;
25915 esac
25916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25917   (eval "$ac_compile") 2>conftest.er1
25918   ac_status=$?
25919   grep -v '^ *+' conftest.er1 >conftest.err
25920   rm -f conftest.er1
25921   cat conftest.err >&5
25922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25923   (exit $ac_status); } && {
25924          test -z "$ac_cxx_werror_flag" ||
25925          test ! -s conftest.err
25926        } && test -s conftest.$ac_objext; then
25927   wx_cv_func_stdstring_compare=yes
25928 else
25929   echo "$as_me: failed program was:" >&5
25930 sed 's/^/| /' conftest.$ac_ext >&5
25931
25932         wx_cv_func_stdstring_compare=no
25933
25934 fi
25935
25936 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25937
25938 fi
25939 { echo "$as_me:$LINENO: result: $wx_cv_func_stdstring_compare" >&5
25940 echo "${ECHO_T}$wx_cv_func_stdstring_compare" >&6; }
25941
25942     if test "$wx_cv_func_stdstring_compare" = yes; then
25943         cat >>confdefs.h <<\_ACEOF
25944 #define HAVE_STD_STRING_COMPARE 1
25945 _ACEOF
25946
25947     fi
25948
25949     if test "$wx_cv_class_gnuhashmapset" = yes; then
25950          cat >>confdefs.h <<\_ACEOF
25951 #define HAVE_EXT_HASH_MAP 1
25952 _ACEOF
25953
25954          cat >>confdefs.h <<\_ACEOF
25955 #define HAVE_GNU_CXX_HASH_MAP 1
25956 _ACEOF
25957
25958     fi
25959
25960     { echo "$as_me:$LINENO: checking for unordered_map" >&5
25961 echo $ECHO_N "checking for unordered_map... $ECHO_C" >&6; }
25962 if test "${ac_cv_header_unordered_map+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
25972
25973
25974 #include <unordered_map>
25975 _ACEOF
25976 rm -f conftest.$ac_objext
25977 if { (ac_try="$ac_compile"
25978 case "(($ac_try" in
25979   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25980   *) ac_try_echo=$ac_try;;
25981 esac
25982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25983   (eval "$ac_compile") 2>conftest.er1
25984   ac_status=$?
25985   grep -v '^ *+' conftest.er1 >conftest.err
25986   rm -f conftest.er1
25987   cat conftest.err >&5
25988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25989   (exit $ac_status); } && {
25990          test -z "$ac_cxx_werror_flag" ||
25991          test ! -s conftest.err
25992        } && test -s conftest.$ac_objext; then
25993   ac_cv_header_unordered_map=yes
25994 else
25995   echo "$as_me: failed program was:" >&5
25996 sed 's/^/| /' conftest.$ac_ext >&5
25997
25998         ac_cv_header_unordered_map=no
25999 fi
26000
26001 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26002 fi
26003 { echo "$as_me:$LINENO: result: $ac_cv_header_unordered_map" >&5
26004 echo "${ECHO_T}$ac_cv_header_unordered_map" >&6; }
26005 if test $ac_cv_header_unordered_map = yes; then
26006   { echo "$as_me:$LINENO: checking for unordered_map and unordered_set in std" >&5
26007 echo $ECHO_N "checking for unordered_map and unordered_set in std... $ECHO_C" >&6; }
26008 if test "${wx_cv_class_stdunorderedmapset+set}" = set; then
26009   echo $ECHO_N "(cached) $ECHO_C" >&6
26010 else
26011   cat >conftest.$ac_ext <<_ACEOF
26012 /* confdefs.h.  */
26013 _ACEOF
26014 cat confdefs.h >>conftest.$ac_ext
26015 cat >>conftest.$ac_ext <<_ACEOF
26016 /* end confdefs.h.  */
26017 #include <unordered_map>
26018                 #include <unordered_set>
26019 int
26020 main ()
26021 {
26022 std::unordered_map<double*, char*> test1;
26023                  std::unordered_set<char*> test2;
26024   ;
26025   return 0;
26026 }
26027 _ACEOF
26028 rm -f conftest.$ac_objext
26029 if { (ac_try="$ac_compile"
26030 case "(($ac_try" in
26031   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26032   *) ac_try_echo=$ac_try;;
26033 esac
26034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26035   (eval "$ac_compile") 2>conftest.er1
26036   ac_status=$?
26037   grep -v '^ *+' conftest.er1 >conftest.err
26038   rm -f conftest.er1
26039   cat conftest.err >&5
26040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26041   (exit $ac_status); } && {
26042          test -z "$ac_cxx_werror_flag" ||
26043          test ! -s conftest.err
26044        } && test -s conftest.$ac_objext; then
26045   wx_cv_class_stdunorderedmapset=yes
26046 else
26047   echo "$as_me: failed program was:" >&5
26048 sed 's/^/| /' conftest.$ac_ext >&5
26049
26050         wx_cv_class_stdunorderedmapset=no
26051 fi
26052
26053 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26054
26055
26056 fi
26057 { echo "$as_me:$LINENO: result: $wx_cv_class_stdunorderedmapset" >&5
26058 echo "${ECHO_T}$wx_cv_class_stdunorderedmapset" >&6; }
26059 fi
26060
26061
26062
26063     if test "$wx_cv_class_stdunorderedmapset" = yes; then
26064          cat >>confdefs.h <<\_ACEOF
26065 #define HAVE_STD_UNORDERED_MAP 1
26066 _ACEOF
26067
26068          cat >>confdefs.h <<\_ACEOF
26069 #define HAVE_STD_UNORDERED_SET 1
26070 _ACEOF
26071
26072     else
26073         { echo "$as_me:$LINENO: checking for tr1/unordered_map" >&5
26074 echo $ECHO_N "checking for tr1/unordered_map... $ECHO_C" >&6; }
26075 if test "${ac_cv_header_tr1_unordered_map+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
26085
26086
26087 #include <tr1/unordered_map>
26088 _ACEOF
26089 rm -f conftest.$ac_objext
26090 if { (ac_try="$ac_compile"
26091 case "(($ac_try" in
26092   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26093   *) ac_try_echo=$ac_try;;
26094 esac
26095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26096   (eval "$ac_compile") 2>conftest.er1
26097   ac_status=$?
26098   grep -v '^ *+' conftest.er1 >conftest.err
26099   rm -f conftest.er1
26100   cat conftest.err >&5
26101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26102   (exit $ac_status); } && {
26103          test -z "$ac_cxx_werror_flag" ||
26104          test ! -s conftest.err
26105        } && test -s conftest.$ac_objext; then
26106   ac_cv_header_tr1_unordered_map=yes
26107 else
26108   echo "$as_me: failed program was:" >&5
26109 sed 's/^/| /' conftest.$ac_ext >&5
26110
26111         ac_cv_header_tr1_unordered_map=no
26112 fi
26113
26114 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26115 fi
26116 { echo "$as_me:$LINENO: result: $ac_cv_header_tr1_unordered_map" >&5
26117 echo "${ECHO_T}$ac_cv_header_tr1_unordered_map" >&6; }
26118 if test $ac_cv_header_tr1_unordered_map = yes; then
26119   { echo "$as_me:$LINENO: checking for unordered_map and unordered_set in std::tr1" >&5
26120 echo $ECHO_N "checking for unordered_map and unordered_set in std::tr1... $ECHO_C" >&6; }
26121 if test "${wx_cv_class_tr1unorderedmapset+set}" = set; then
26122   echo $ECHO_N "(cached) $ECHO_C" >&6
26123 else
26124   cat >conftest.$ac_ext <<_ACEOF
26125 /* confdefs.h.  */
26126 _ACEOF
26127 cat confdefs.h >>conftest.$ac_ext
26128 cat >>conftest.$ac_ext <<_ACEOF
26129 /* end confdefs.h.  */
26130 #include <tr1/unordered_map>
26131                     #include <tr1/unordered_set>
26132 int
26133 main ()
26134 {
26135 std::tr1::unordered_map<double*, char*> test1;
26136                      std::tr1::unordered_set<char*> test2;
26137             #if defined(__GNUC__) && (__GNUC__==4) && (__GNUC_MINOR__<2)
26138             #error can't use unordered_{map,set} with gcc-4.[01]: http://gcc.gnu.org/PR24389
26139             #endif
26140   ;
26141   return 0;
26142 }
26143 _ACEOF
26144 rm -f conftest.$ac_objext
26145 if { (ac_try="$ac_compile"
26146 case "(($ac_try" in
26147   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26148   *) ac_try_echo=$ac_try;;
26149 esac
26150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26151   (eval "$ac_compile") 2>conftest.er1
26152   ac_status=$?
26153   grep -v '^ *+' conftest.er1 >conftest.err
26154   rm -f conftest.er1
26155   cat conftest.err >&5
26156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26157   (exit $ac_status); } && {
26158          test -z "$ac_cxx_werror_flag" ||
26159          test ! -s conftest.err
26160        } && test -s conftest.$ac_objext; then
26161   wx_cv_class_tr1unorderedmapset=yes
26162 else
26163   echo "$as_me: failed program was:" >&5
26164 sed 's/^/| /' conftest.$ac_ext >&5
26165
26166         wx_cv_class_tr1unorderedmapset=no
26167 fi
26168
26169 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26170
26171
26172 fi
26173 { echo "$as_me:$LINENO: result: $wx_cv_class_tr1unorderedmapset" >&5
26174 echo "${ECHO_T}$wx_cv_class_tr1unorderedmapset" >&6; }
26175 fi
26176
26177
26178
26179         if test "$wx_cv_class_tr1unorderedmapset" = yes; then
26180             cat >>confdefs.h <<\_ACEOF
26181 #define HAVE_TR1_UNORDERED_MAP 1
26182 _ACEOF
26183
26184             cat >>confdefs.h <<\_ACEOF
26185 #define HAVE_TR1_UNORDERED_SET 1
26186 _ACEOF
26187
26188         else
26189                         { echo "$as_me:$LINENO: checking for hash_map" >&5
26190 echo $ECHO_N "checking for hash_map... $ECHO_C" >&6; }
26191 if test "${ac_cv_header_hash_map+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
26201
26202
26203 #include <hash_map>
26204 _ACEOF
26205 rm -f conftest.$ac_objext
26206 if { (ac_try="$ac_compile"
26207 case "(($ac_try" in
26208   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26209   *) ac_try_echo=$ac_try;;
26210 esac
26211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26212   (eval "$ac_compile") 2>conftest.er1
26213   ac_status=$?
26214   grep -v '^ *+' conftest.er1 >conftest.err
26215   rm -f conftest.er1
26216   cat conftest.err >&5
26217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26218   (exit $ac_status); } && {
26219          test -z "$ac_cxx_werror_flag" ||
26220          test ! -s conftest.err
26221        } && test -s conftest.$ac_objext; then
26222   ac_cv_header_hash_map=yes
26223 else
26224   echo "$as_me: failed program was:" >&5
26225 sed 's/^/| /' conftest.$ac_ext >&5
26226
26227         ac_cv_header_hash_map=no
26228 fi
26229
26230 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26231 fi
26232 { echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5
26233 echo "${ECHO_T}$ac_cv_header_hash_map" >&6; }
26234 if test $ac_cv_header_hash_map = yes; then
26235   { echo "$as_me:$LINENO: checking for std::hash_map and hash_set" >&5
26236 echo $ECHO_N "checking for std::hash_map and hash_set... $ECHO_C" >&6; }
26237 if test "${wx_cv_class_stdhashmapset+set}" = set; then
26238   echo $ECHO_N "(cached) $ECHO_C" >&6
26239 else
26240   cat >conftest.$ac_ext <<_ACEOF
26241 /* confdefs.h.  */
26242 _ACEOF
26243 cat confdefs.h >>conftest.$ac_ext
26244 cat >>conftest.$ac_ext <<_ACEOF
26245 /* end confdefs.h.  */
26246 #include <hash_map>
26247                         #include <hash_set>
26248 int
26249 main ()
26250 {
26251 std::hash_map<double*, char*, std::hash<double*>, std::equal_to<double*> > test1;
26252                          std::hash_set<char*, std::hash<char*>, std::equal_to<char*> > test2;
26253   ;
26254   return 0;
26255 }
26256 _ACEOF
26257 rm -f conftest.$ac_objext
26258 if { (ac_try="$ac_compile"
26259 case "(($ac_try" in
26260   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26261   *) ac_try_echo=$ac_try;;
26262 esac
26263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26264   (eval "$ac_compile") 2>conftest.er1
26265   ac_status=$?
26266   grep -v '^ *+' conftest.er1 >conftest.err
26267   rm -f conftest.er1
26268   cat conftest.err >&5
26269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26270   (exit $ac_status); } && {
26271          test -z "$ac_cxx_werror_flag" ||
26272          test ! -s conftest.err
26273        } && test -s conftest.$ac_objext; then
26274   wx_cv_class_stdhashmapset=yes
26275 else
26276   echo "$as_me: failed program was:" >&5
26277 sed 's/^/| /' conftest.$ac_ext >&5
26278
26279         wx_cv_class_stdhashmapset=no
26280 fi
26281
26282 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26283
26284
26285 fi
26286 { echo "$as_me:$LINENO: result: $wx_cv_class_stdhashmapset" >&5
26287 echo "${ECHO_T}$wx_cv_class_stdhashmapset" >&6; }
26288 fi
26289
26290
26291
26292             if test "$wx_cv_class_stdhashmapset" = yes; then
26293                 cat >>confdefs.h <<\_ACEOF
26294 #define HAVE_HASH_MAP 1
26295 _ACEOF
26296
26297                 cat >>confdefs.h <<\_ACEOF
26298 #define HAVE_STD_HASH_MAP 1
26299 _ACEOF
26300
26301             fi
26302
26303             { echo "$as_me:$LINENO: checking for ext/hash_map" >&5
26304 echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6; }
26305 if test "${ac_cv_header_ext_hash_map+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
26315
26316
26317 #include <ext/hash_map>
26318 _ACEOF
26319 rm -f conftest.$ac_objext
26320 if { (ac_try="$ac_compile"
26321 case "(($ac_try" in
26322   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26323   *) ac_try_echo=$ac_try;;
26324 esac
26325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26326   (eval "$ac_compile") 2>conftest.er1
26327   ac_status=$?
26328   grep -v '^ *+' conftest.er1 >conftest.err
26329   rm -f conftest.er1
26330   cat conftest.err >&5
26331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26332   (exit $ac_status); } && {
26333          test -z "$ac_cxx_werror_flag" ||
26334          test ! -s conftest.err
26335        } && test -s conftest.$ac_objext; then
26336   ac_cv_header_ext_hash_map=yes
26337 else
26338   echo "$as_me: failed program was:" >&5
26339 sed 's/^/| /' conftest.$ac_ext >&5
26340
26341         ac_cv_header_ext_hash_map=no
26342 fi
26343
26344 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26345 fi
26346 { echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5
26347 echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6; }
26348 if test $ac_cv_header_ext_hash_map = yes; then
26349   { echo "$as_me:$LINENO: checking for GNU hash_map and hash_set" >&5
26350 echo $ECHO_N "checking for GNU hash_map and hash_set... $ECHO_C" >&6; }
26351 if test "${wx_cv_class_gnuhashmapset+set}" = set; then
26352   echo $ECHO_N "(cached) $ECHO_C" >&6
26353 else
26354   cat >conftest.$ac_ext <<_ACEOF
26355 /* confdefs.h.  */
26356 _ACEOF
26357 cat confdefs.h >>conftest.$ac_ext
26358 cat >>conftest.$ac_ext <<_ACEOF
26359 /* end confdefs.h.  */
26360 #include <ext/hash_map>
26361                         #include <ext/hash_set>
26362 int
26363 main ()
26364 {
26365 __gnu_cxx::hash_map<double*, char*, __gnu_cxx::hash<double*>, std::equal_to<double*> > test1;
26366                          __gnu_cxx::hash_set<char*, __gnu_cxx::hash<char*>, std::equal_to<char*> > test2;
26367   ;
26368   return 0;
26369 }
26370 _ACEOF
26371 rm -f conftest.$ac_objext
26372 if { (ac_try="$ac_compile"
26373 case "(($ac_try" in
26374   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26375   *) ac_try_echo=$ac_try;;
26376 esac
26377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26378   (eval "$ac_compile") 2>conftest.er1
26379   ac_status=$?
26380   grep -v '^ *+' conftest.er1 >conftest.err
26381   rm -f conftest.er1
26382   cat conftest.err >&5
26383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26384   (exit $ac_status); } && {
26385          test -z "$ac_cxx_werror_flag" ||
26386          test ! -s conftest.err
26387        } && test -s conftest.$ac_objext; then
26388   wx_cv_class_gnuhashmapset=yes
26389 else
26390   echo "$as_me: failed program was:" >&5
26391 sed 's/^/| /' conftest.$ac_ext >&5
26392
26393         wx_cv_class_gnuhashmapset=no
26394 fi
26395
26396 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26397
26398
26399 fi
26400 { echo "$as_me:$LINENO: result: $wx_cv_class_gnuhashmapset" >&5
26401 echo "${ECHO_T}$wx_cv_class_gnuhashmapset" >&6; }
26402 fi
26403
26404
26405
26406         fi
26407     fi
26408 fi
26409
26410 ac_ext=cpp
26411 ac_cpp='$CXXCPP $CPPFLAGS'
26412 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26413 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26414 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26415 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
26416 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
26417 if test -z "$CXXCPP"; then
26418   if test "${ac_cv_prog_CXXCPP+set}" = set; then
26419   echo $ECHO_N "(cached) $ECHO_C" >&6
26420 else
26421       # Double quotes because CXXCPP needs to be expanded
26422     for CXXCPP in "$CXX -E" "/lib/cpp"
26423     do
26424       ac_preproc_ok=false
26425 for ac_cxx_preproc_warn_flag in '' yes
26426 do
26427   # Use a header file that comes with gcc, so configuring glibc
26428   # with a fresh cross-compiler works.
26429   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26430   # <limits.h> exists even on freestanding compilers.
26431   # On the NeXT, cc -E runs the code through the compiler's parser,
26432   # not just through cpp. "Syntax error" is here to catch this case.
26433   cat >conftest.$ac_ext <<_ACEOF
26434 /* confdefs.h.  */
26435 _ACEOF
26436 cat confdefs.h >>conftest.$ac_ext
26437 cat >>conftest.$ac_ext <<_ACEOF
26438 /* end confdefs.h.  */
26439 #ifdef __STDC__
26440 # include <limits.h>
26441 #else
26442 # include <assert.h>
26443 #endif
26444                      Syntax error
26445 _ACEOF
26446 if { (ac_try="$ac_cpp conftest.$ac_ext"
26447 case "(($ac_try" in
26448   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26449   *) ac_try_echo=$ac_try;;
26450 esac
26451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26452   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26453   ac_status=$?
26454   grep -v '^ *+' conftest.er1 >conftest.err
26455   rm -f conftest.er1
26456   cat conftest.err >&5
26457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26458   (exit $ac_status); } >/dev/null && {
26459          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
26460          test ! -s conftest.err
26461        }; then
26462   :
26463 else
26464   echo "$as_me: failed program was:" >&5
26465 sed 's/^/| /' conftest.$ac_ext >&5
26466
26467   # Broken: fails on valid input.
26468 continue
26469 fi
26470
26471 rm -f conftest.err conftest.$ac_ext
26472
26473   # OK, works on sane cases.  Now check whether nonexistent headers
26474   # can be detected and how.
26475   cat >conftest.$ac_ext <<_ACEOF
26476 /* confdefs.h.  */
26477 _ACEOF
26478 cat confdefs.h >>conftest.$ac_ext
26479 cat >>conftest.$ac_ext <<_ACEOF
26480 /* end confdefs.h.  */
26481 #include <ac_nonexistent.h>
26482 _ACEOF
26483 if { (ac_try="$ac_cpp conftest.$ac_ext"
26484 case "(($ac_try" in
26485   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26486   *) ac_try_echo=$ac_try;;
26487 esac
26488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26489   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26490   ac_status=$?
26491   grep -v '^ *+' conftest.er1 >conftest.err
26492   rm -f conftest.er1
26493   cat conftest.err >&5
26494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26495   (exit $ac_status); } >/dev/null && {
26496          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
26497          test ! -s conftest.err
26498        }; then
26499   # Broken: success on invalid input.
26500 continue
26501 else
26502   echo "$as_me: failed program was:" >&5
26503 sed 's/^/| /' conftest.$ac_ext >&5
26504
26505   # Passes both tests.
26506 ac_preproc_ok=:
26507 break
26508 fi
26509
26510 rm -f conftest.err conftest.$ac_ext
26511
26512 done
26513 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
26514 rm -f conftest.err conftest.$ac_ext
26515 if $ac_preproc_ok; then
26516   break
26517 fi
26518
26519     done
26520     ac_cv_prog_CXXCPP=$CXXCPP
26521
26522 fi
26523   CXXCPP=$ac_cv_prog_CXXCPP
26524 else
26525   ac_cv_prog_CXXCPP=$CXXCPP
26526 fi
26527 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
26528 echo "${ECHO_T}$CXXCPP" >&6; }
26529 ac_preproc_ok=false
26530 for ac_cxx_preproc_warn_flag in '' yes
26531 do
26532   # Use a header file that comes with gcc, so configuring glibc
26533   # with a fresh cross-compiler works.
26534   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26535   # <limits.h> exists even on freestanding compilers.
26536   # On the NeXT, cc -E runs the code through the compiler's parser,
26537   # not just through cpp. "Syntax error" is here to catch this case.
26538   cat >conftest.$ac_ext <<_ACEOF
26539 /* confdefs.h.  */
26540 _ACEOF
26541 cat confdefs.h >>conftest.$ac_ext
26542 cat >>conftest.$ac_ext <<_ACEOF
26543 /* end confdefs.h.  */
26544 #ifdef __STDC__
26545 # include <limits.h>
26546 #else
26547 # include <assert.h>
26548 #endif
26549                      Syntax error
26550 _ACEOF
26551 if { (ac_try="$ac_cpp conftest.$ac_ext"
26552 case "(($ac_try" in
26553   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26554   *) ac_try_echo=$ac_try;;
26555 esac
26556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26557   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26558   ac_status=$?
26559   grep -v '^ *+' conftest.er1 >conftest.err
26560   rm -f conftest.er1
26561   cat conftest.err >&5
26562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26563   (exit $ac_status); } >/dev/null && {
26564          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
26565          test ! -s conftest.err
26566        }; then
26567   :
26568 else
26569   echo "$as_me: failed program was:" >&5
26570 sed 's/^/| /' conftest.$ac_ext >&5
26571
26572   # Broken: fails on valid input.
26573 continue
26574 fi
26575
26576 rm -f conftest.err conftest.$ac_ext
26577
26578   # OK, works on sane cases.  Now check whether nonexistent headers
26579   # can be detected and how.
26580   cat >conftest.$ac_ext <<_ACEOF
26581 /* confdefs.h.  */
26582 _ACEOF
26583 cat confdefs.h >>conftest.$ac_ext
26584 cat >>conftest.$ac_ext <<_ACEOF
26585 /* end confdefs.h.  */
26586 #include <ac_nonexistent.h>
26587 _ACEOF
26588 if { (ac_try="$ac_cpp conftest.$ac_ext"
26589 case "(($ac_try" in
26590   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26591   *) ac_try_echo=$ac_try;;
26592 esac
26593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26594   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26595   ac_status=$?
26596   grep -v '^ *+' conftest.er1 >conftest.err
26597   rm -f conftest.er1
26598   cat conftest.err >&5
26599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26600   (exit $ac_status); } >/dev/null && {
26601          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
26602          test ! -s conftest.err
26603        }; then
26604   # Broken: success on invalid input.
26605 continue
26606 else
26607   echo "$as_me: failed program was:" >&5
26608 sed 's/^/| /' conftest.$ac_ext >&5
26609
26610   # Passes both tests.
26611 ac_preproc_ok=:
26612 break
26613 fi
26614
26615 rm -f conftest.err conftest.$ac_ext
26616
26617 done
26618 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
26619 rm -f conftest.err conftest.$ac_ext
26620 if $ac_preproc_ok; then
26621   :
26622 else
26623   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
26624 See \`config.log' for more details." >&5
26625 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
26626 See \`config.log' for more details." >&2;}
26627    { (exit 1); exit 1; }; }
26628 fi
26629
26630 ac_ext=cpp
26631 ac_cpp='$CXXCPP $CPPFLAGS'
26632 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26633 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26634 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26635
26636
26637
26638
26639 for ac_header in type_traits tr1/type_traits
26640 do
26641 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26642 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26643   { echo "$as_me:$LINENO: checking for $ac_header" >&5
26644 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26645 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26646   echo $ECHO_N "(cached) $ECHO_C" >&6
26647 fi
26648 ac_res=`eval echo '${'$as_ac_Header'}'`
26649                { echo "$as_me:$LINENO: result: $ac_res" >&5
26650 echo "${ECHO_T}$ac_res" >&6; }
26651 else
26652   # Is the header compilable?
26653 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
26654 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
26655 cat >conftest.$ac_ext <<_ACEOF
26656 /* confdefs.h.  */
26657 _ACEOF
26658 cat confdefs.h >>conftest.$ac_ext
26659 cat >>conftest.$ac_ext <<_ACEOF
26660 /* end confdefs.h.  */
26661 $ac_includes_default
26662 #include <$ac_header>
26663 _ACEOF
26664 rm -f conftest.$ac_objext
26665 if { (ac_try="$ac_compile"
26666 case "(($ac_try" in
26667   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26668   *) ac_try_echo=$ac_try;;
26669 esac
26670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26671   (eval "$ac_compile") 2>conftest.er1
26672   ac_status=$?
26673   grep -v '^ *+' conftest.er1 >conftest.err
26674   rm -f conftest.er1
26675   cat conftest.err >&5
26676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26677   (exit $ac_status); } && {
26678          test -z "$ac_cxx_werror_flag" ||
26679          test ! -s conftest.err
26680        } && test -s conftest.$ac_objext; then
26681   ac_header_compiler=yes
26682 else
26683   echo "$as_me: failed program was:" >&5
26684 sed 's/^/| /' conftest.$ac_ext >&5
26685
26686         ac_header_compiler=no
26687 fi
26688
26689 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26690 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26691 echo "${ECHO_T}$ac_header_compiler" >&6; }
26692
26693 # Is the header present?
26694 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
26695 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
26696 cat >conftest.$ac_ext <<_ACEOF
26697 /* confdefs.h.  */
26698 _ACEOF
26699 cat confdefs.h >>conftest.$ac_ext
26700 cat >>conftest.$ac_ext <<_ACEOF
26701 /* end confdefs.h.  */
26702 #include <$ac_header>
26703 _ACEOF
26704 if { (ac_try="$ac_cpp conftest.$ac_ext"
26705 case "(($ac_try" in
26706   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26707   *) ac_try_echo=$ac_try;;
26708 esac
26709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26710   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26711   ac_status=$?
26712   grep -v '^ *+' conftest.er1 >conftest.err
26713   rm -f conftest.er1
26714   cat conftest.err >&5
26715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26716   (exit $ac_status); } >/dev/null && {
26717          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
26718          test ! -s conftest.err
26719        }; then
26720   ac_header_preproc=yes
26721 else
26722   echo "$as_me: failed program was:" >&5
26723 sed 's/^/| /' conftest.$ac_ext >&5
26724
26725   ac_header_preproc=no
26726 fi
26727
26728 rm -f conftest.err conftest.$ac_ext
26729 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26730 echo "${ECHO_T}$ac_header_preproc" >&6; }
26731
26732 # So?  What about this header?
26733 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
26734   yes:no: )
26735     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26736 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26737     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26738 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26739     ac_header_preproc=yes
26740     ;;
26741   no:yes:* )
26742     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26743 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26744     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26745 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26746     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26747 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26748     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26749 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26750     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26751 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26752     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26753 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26754     ( cat <<\_ASBOX
26755 ## ----------------------------------------- ##
26756 ## Report this to wx-dev@lists.wxwidgets.org ##
26757 ## ----------------------------------------- ##
26758 _ASBOX
26759      ) | sed "s/^/$as_me: WARNING:     /" >&2
26760     ;;
26761 esac
26762 { echo "$as_me:$LINENO: checking for $ac_header" >&5
26763 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26764 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26765   echo $ECHO_N "(cached) $ECHO_C" >&6
26766 else
26767   eval "$as_ac_Header=\$ac_header_preproc"
26768 fi
26769 ac_res=`eval echo '${'$as_ac_Header'}'`
26770                { echo "$as_me:$LINENO: result: $ac_res" >&5
26771 echo "${ECHO_T}$ac_res" >&6; }
26772
26773 fi
26774 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26775   cat >>confdefs.h <<_ACEOF
26776 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26777 _ACEOF
26778
26779 fi
26780
26781 done
26782
26783
26784
26785
26786   if test -n "$GCC"; then
26787     { echo "$as_me:$LINENO: checking for __sync_fetch_and_add and __sync_sub_and_fetch builtins" >&5
26788 echo $ECHO_N "checking for __sync_fetch_and_add and __sync_sub_and_fetch builtins... $ECHO_C" >&6; }
26789     if test "${wx_cv_cc_gcc_atomic_builtins+set}" = set; then
26790   echo $ECHO_N "(cached) $ECHO_C" >&6
26791 else
26792
26793       cat >conftest.$ac_ext <<_ACEOF
26794 /* confdefs.h.  */
26795 _ACEOF
26796 cat confdefs.h >>conftest.$ac_ext
26797 cat >>conftest.$ac_ext <<_ACEOF
26798 /* end confdefs.h.  */
26799
26800 int
26801 main ()
26802 {
26803
26804           unsigned int value=0;
26805           /* wxAtomicInc doesn't use return value here */
26806           __sync_fetch_and_add(&value, 2);
26807           __sync_sub_and_fetch(&value, 1);
26808           /* but wxAtomicDec does, so mimic that: */
26809           unsigned int r2 = __sync_sub_and_fetch(&value, 1);
26810
26811   ;
26812   return 0;
26813 }
26814 _ACEOF
26815 rm -f conftest.$ac_objext conftest$ac_exeext
26816 if { (ac_try="$ac_link"
26817 case "(($ac_try" in
26818   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26819   *) ac_try_echo=$ac_try;;
26820 esac
26821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26822   (eval "$ac_link") 2>conftest.er1
26823   ac_status=$?
26824   grep -v '^ *+' conftest.er1 >conftest.err
26825   rm -f conftest.er1
26826   cat conftest.err >&5
26827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26828   (exit $ac_status); } && {
26829          test -z "$ac_cxx_werror_flag" ||
26830          test ! -s conftest.err
26831        } && test -s conftest$ac_exeext &&
26832        $as_test_x conftest$ac_exeext; then
26833   wx_cv_cc_gcc_atomic_builtins=yes
26834 else
26835   echo "$as_me: failed program was:" >&5
26836 sed 's/^/| /' conftest.$ac_ext >&5
26837
26838         wx_cv_cc_gcc_atomic_builtins=no
26839 fi
26840
26841 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26842       conftest$ac_exeext conftest.$ac_ext
26843
26844 fi
26845
26846     { echo "$as_me:$LINENO: result: $wx_cv_cc_gcc_atomic_builtins" >&5
26847 echo "${ECHO_T}$wx_cv_cc_gcc_atomic_builtins" >&6; }
26848     if test $wx_cv_cc_gcc_atomic_builtins = yes; then
26849       cat >>confdefs.h <<\_ACEOF
26850 #define HAVE_GCC_ATOMIC_BUILTINS 1
26851 _ACEOF
26852
26853     fi
26854   fi
26855
26856
26857 ac_ext=c
26858 ac_cpp='$CPP $CPPFLAGS'
26859 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26860 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26861 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26862
26863
26864
26865 SEARCH_INCLUDE="\
26866     /usr/local/include        \
26867     /usr/local/X11/include    \
26868     /usr/local/include/X11    \
26869     /usr/local/X11R7/include  \
26870     /usr/local/X11R6/include  \
26871     /usr/local/include/X11R7  \
26872     /usr/local/include/X11R6  \
26873                               \
26874     /usr/Motif-2.1/include    \
26875     /usr/Motif-1.2/include    \
26876     /usr/include/Motif1.2     \
26877                               \
26878     /usr/dt/include           \
26879     /usr/openwin/include      \
26880                               \
26881     /usr/include/Xm           \
26882                               \
26883     /usr/X11R7/include        \
26884     /usr/X11R6/include        \
26885     /usr/X11R6.4/include      \
26886                               \
26887     /usr/include/X11R7        \
26888     /usr/include/X11R6        \
26889                               \
26890     /usr/X11/include          \
26891     /usr/include/X11          \
26892                               \
26893     /usr/XFree86/include/X11  \
26894     /usr/pkg/include          \
26895                               \
26896     /usr/local/X1R5/include  \
26897     /usr/local/include/X11R5  \
26898     /usr/X11R5/include        \
26899     /usr/include/X11R5        \
26900                               \
26901     /usr/local/X11R4/include  \
26902     /usr/local/include/X11R4  \
26903     /usr/X11R4/include        \
26904     /usr/include/X11R4        \
26905                               \
26906     /usr/openwin/share/include"
26907
26908 { echo "$as_me:$LINENO: checking for libraries directory" >&5
26909 echo $ECHO_N "checking for libraries directory... $ECHO_C" >&6; }
26910
26911 case "${host}" in
26912     *-*-irix6* )
26913         if test "${wx_cv_std_libpath+set}" = set; then
26914   echo $ECHO_N "(cached) $ECHO_C" >&6
26915 else
26916
26917                 for d in /usr/lib /usr/lib32 /usr/lib/64 /usr/lib64; do
26918                     for e in a so sl dylib dll.a; do
26919                         libc="$d/libc.$e"
26920                         if test -f $libc; then
26921                             save_LIBS="$LIBS"
26922                             LIBS="$libc"
26923                             cat >conftest.$ac_ext <<_ACEOF
26924 int main() { return 0; }
26925 _ACEOF
26926 rm -f conftest.$ac_objext conftest$ac_exeext
26927 if { (ac_try="$ac_link"
26928 case "(($ac_try" in
26929   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26930   *) ac_try_echo=$ac_try;;
26931 esac
26932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26933   (eval "$ac_link") 2>conftest.er1
26934   ac_status=$?
26935   grep -v '^ *+' conftest.er1 >conftest.err
26936   rm -f conftest.er1
26937   cat conftest.err >&5
26938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26939   (exit $ac_status); } && {
26940          test -z "$ac_c_werror_flag" ||
26941          test ! -s conftest.err
26942        } && test -s conftest$ac_exeext &&
26943        $as_test_x conftest$ac_exeext; then
26944   wx_cv_std_libpath=`echo $d | sed s@/usr/@@`
26945 else
26946   echo "$as_me: failed program was:" >&5
26947 sed 's/^/| /' conftest.$ac_ext >&5
26948
26949
26950 fi
26951
26952 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26953       conftest$ac_exeext conftest.$ac_ext
26954                             LIBS="$save_LIBS"
26955                             if test "x$wx_cv_std_libpath" != "x"; then
26956                                 break 2
26957                             fi
26958                         fi
26959                     done
26960                 done
26961                 if test "x$wx_cv_std_libpath" = "x"; then
26962                     wx_cv_std_libpath="lib"
26963                 fi
26964
26965
26966 fi
26967
26968         ;;
26969
26970     *-*-solaris2* )
26971                 if test "$ac_cv_sizeof_void_p" = 8 -a -d "/usr/lib/64"; then
26972             wx_cv_std_libpath="lib/64"
26973         else
26974             wx_cv_std_libpath="lib"
26975         fi
26976         ;;
26977
26978     *-*-linux* )
26979                 if test "$ac_cv_sizeof_void_p" = 8 -a \
26980                 -d "/usr/lib64" -a ! -h "/usr/lib64"; then
26981             wx_cv_std_libpath="lib64"
26982         else
26983             wx_cv_std_libpath="lib"
26984         fi
26985         ;;
26986
26987     *)
26988         wx_cv_std_libpath="lib";
26989         ;;
26990 esac
26991
26992 { echo "$as_me:$LINENO: result: $wx_cv_std_libpath" >&5
26993 echo "${ECHO_T}$wx_cv_std_libpath" >&6; }
26994
26995 SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s@include@$wx_cv_std_libpath@g` /usr/$wx_cv_std_libpath"
26996
26997 if test "$build" != "$host" -a "$GCC" = yes; then
26998                     if cross_root=`$CC -print-prog-name=ld 2>/dev/null`; then
26999         cross_root=`dirname $cross_root`
27000         cross_root=`dirname $cross_root`
27001
27002                         SEARCH_LIB=`for x in $SEARCH_LIB; do echo $x; done | sed -ne "s|^/usr|$cross_root|p"`
27003         SEARCH_INCLUDE=`for x in $SEARCH_INCLUDE; do echo $x; done | sed -ne "s|^/usr|$cross_root|p"`
27004         SEARCH_INCLUDE="$SEARCH_INCLUDE $cross_root/include"
27005
27006                 if test -z "$PKG_CONFIG_PATH"; then
27007             PKG_CONFIG_PATH="$cross_root/local/lib/pkgconfig:$cross_root/lib/pkgconfig"
27008             export PKG_CONFIG_PATH
27009         fi
27010
27011                                 if test -z "$x_includes" -o "$x_includes" = NONE; then
27012
27013 ac_find_includes=
27014 for ac_dir in $SEARCH_INCLUDE /usr/include
27015   do
27016     if test -f "$ac_dir/X11/Intrinsic.h"; then
27017       ac_find_includes=$ac_dir
27018       break
27019     fi
27020   done
27021
27022             x_includes=$ac_find_includes
27023         fi
27024         if test -z "$x_libraries" -o "$x_libraries" = NONE; then
27025
27026   ac_find_libraries=
27027   for ac_dir in $SEARCH_LIB
27028   do
27029     for ac_extension in a so sl dylib dll.a; do
27030       if test -f "$ac_dir/libXt.$ac_extension"; then
27031         ac_find_libraries=$ac_dir
27032         break 2
27033       fi
27034     done
27035   done
27036
27037             x_libraries=$ac_find_libraries
27038         fi
27039     fi
27040 fi
27041
27042
27043 cat >confcache <<\_ACEOF
27044 # This file is a shell script that caches the results of configure
27045 # tests run on this system so they can be shared between configure
27046 # scripts and configure runs, see configure's option --config-cache.
27047 # It is not useful on other systems.  If it contains results you don't
27048 # want to keep, you may remove or edit it.
27049 #
27050 # config.status only pays attention to the cache file if you give it
27051 # the --recheck option to rerun configure.
27052 #
27053 # `ac_cv_env_foo' variables (set or unset) will be overridden when
27054 # loading this file, other *unset* `ac_cv_foo' will be assigned the
27055 # following values.
27056
27057 _ACEOF
27058
27059 # The following way of writing the cache mishandles newlines in values,
27060 # but we know of no workaround that is simple, portable, and efficient.
27061 # So, we kill variables containing newlines.
27062 # Ultrix sh set writes to stderr and can't be redirected directly,
27063 # and sets the high bit in the cache file unless we assign to the vars.
27064 (
27065   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
27066     eval ac_val=\$$ac_var
27067     case $ac_val in #(
27068     *${as_nl}*)
27069       case $ac_var in #(
27070       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
27071 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
27072       esac
27073       case $ac_var in #(
27074       _ | IFS | as_nl) ;; #(
27075       *) $as_unset $ac_var ;;
27076       esac ;;
27077     esac
27078   done
27079
27080   (set) 2>&1 |
27081     case $as_nl`(ac_space=' '; set) 2>&1` in #(
27082     *${as_nl}ac_space=\ *)
27083       # `set' does not quote correctly, so add quotes (double-quote
27084       # substitution turns \\\\ into \\, and sed turns \\ into \).
27085       sed -n \
27086         "s/'/'\\\\''/g;
27087           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
27088       ;; #(
27089     *)
27090       # `set' quotes correctly as required by POSIX, so do not add quotes.
27091       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
27092       ;;
27093     esac |
27094     sort
27095 ) |
27096   sed '
27097      /^ac_cv_env_/b end
27098      t clear
27099      :clear
27100      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
27101      t end
27102      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
27103      :end' >>confcache
27104 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
27105   if test -w "$cache_file"; then
27106     test "x$cache_file" != "x/dev/null" &&
27107       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
27108 echo "$as_me: updating cache $cache_file" >&6;}
27109     cat confcache >$cache_file
27110   else
27111     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
27112 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
27113   fi
27114 fi
27115 rm -f confcache
27116
27117 if test "$USE_LINUX" = 1 -o "$USE_GNU" = 1; then
27118     { echo "$as_me:$LINENO: checking for glibc 2.1 or later" >&5
27119 echo $ECHO_N "checking for glibc 2.1 or later... $ECHO_C" >&6; }
27120 if test "${wx_cv_lib_glibc21+set}" = set; then
27121   echo $ECHO_N "(cached) $ECHO_C" >&6
27122 else
27123
27124         cat >conftest.$ac_ext <<_ACEOF
27125 /* confdefs.h.  */
27126 _ACEOF
27127 cat confdefs.h >>conftest.$ac_ext
27128 cat >>conftest.$ac_ext <<_ACEOF
27129 /* end confdefs.h.  */
27130 #include <features.h>
27131 int
27132 main ()
27133 {
27134
27135                 #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1)
27136                 not glibc 2.1
27137                 #endif
27138
27139   ;
27140   return 0;
27141 }
27142 _ACEOF
27143 rm -f conftest.$ac_objext
27144 if { (ac_try="$ac_compile"
27145 case "(($ac_try" in
27146   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27147   *) ac_try_echo=$ac_try;;
27148 esac
27149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27150   (eval "$ac_compile") 2>conftest.er1
27151   ac_status=$?
27152   grep -v '^ *+' conftest.er1 >conftest.err
27153   rm -f conftest.er1
27154   cat conftest.err >&5
27155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27156   (exit $ac_status); } && {
27157          test -z "$ac_c_werror_flag" ||
27158          test ! -s conftest.err
27159        } && test -s conftest.$ac_objext; then
27160
27161                 wx_cv_lib_glibc21=yes
27162
27163 else
27164   echo "$as_me: failed program was:" >&5
27165 sed 's/^/| /' conftest.$ac_ext >&5
27166
27167
27168                 wx_cv_lib_glibc21=no
27169
27170
27171 fi
27172
27173 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27174
27175 fi
27176 { echo "$as_me:$LINENO: result: $wx_cv_lib_glibc21" >&5
27177 echo "${ECHO_T}$wx_cv_lib_glibc21" >&6; }
27178     if test "$wx_cv_lib_glibc21" = "yes"; then
27179         cat >>confdefs.h <<\_ACEOF
27180 #define wxHAVE_GLIBC2 1
27181 _ACEOF
27182
27183     fi
27184 fi
27185
27186 if test "x$wx_cv_lib_glibc21" = "xyes"; then
27187     if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then
27188         cat >>confdefs.h <<\_ACEOF
27189 #define _GNU_SOURCE 1
27190 _ACEOF
27191
27192     fi
27193 fi
27194
27195 have_cos=0
27196 have_floor=0
27197
27198 for ac_func in cos
27199 do
27200 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27201 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27202 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27203 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27204   echo $ECHO_N "(cached) $ECHO_C" >&6
27205 else
27206   cat >conftest.$ac_ext <<_ACEOF
27207 /* confdefs.h.  */
27208 _ACEOF
27209 cat confdefs.h >>conftest.$ac_ext
27210 cat >>conftest.$ac_ext <<_ACEOF
27211 /* end confdefs.h.  */
27212 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27213    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27214 #define $ac_func innocuous_$ac_func
27215
27216 /* System header to define __stub macros and hopefully few prototypes,
27217     which can conflict with char $ac_func (); below.
27218     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27219     <limits.h> exists even on freestanding compilers.  */
27220
27221 #ifdef __STDC__
27222 # include <limits.h>
27223 #else
27224 # include <assert.h>
27225 #endif
27226
27227 #undef $ac_func
27228
27229 /* Override any GCC internal prototype to avoid an error.
27230    Use char because int might match the return type of a GCC
27231    builtin and then its argument prototype would still apply.  */
27232 #ifdef __cplusplus
27233 extern "C"
27234 #endif
27235 char $ac_func ();
27236 /* The GNU C library defines this for functions which it implements
27237     to always fail with ENOSYS.  Some functions are actually named
27238     something starting with __ and the normal name is an alias.  */
27239 #if defined __stub_$ac_func || defined __stub___$ac_func
27240 choke me
27241 #endif
27242
27243 int
27244 main ()
27245 {
27246 return $ac_func ();
27247   ;
27248   return 0;
27249 }
27250 _ACEOF
27251 rm -f conftest.$ac_objext conftest$ac_exeext
27252 if { (ac_try="$ac_link"
27253 case "(($ac_try" in
27254   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27255   *) ac_try_echo=$ac_try;;
27256 esac
27257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27258   (eval "$ac_link") 2>conftest.er1
27259   ac_status=$?
27260   grep -v '^ *+' conftest.er1 >conftest.err
27261   rm -f conftest.er1
27262   cat conftest.err >&5
27263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27264   (exit $ac_status); } && {
27265          test -z "$ac_c_werror_flag" ||
27266          test ! -s conftest.err
27267        } && test -s conftest$ac_exeext &&
27268        $as_test_x conftest$ac_exeext; then
27269   eval "$as_ac_var=yes"
27270 else
27271   echo "$as_me: failed program was:" >&5
27272 sed 's/^/| /' conftest.$ac_ext >&5
27273
27274         eval "$as_ac_var=no"
27275 fi
27276
27277 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27278       conftest$ac_exeext conftest.$ac_ext
27279 fi
27280 ac_res=`eval echo '${'$as_ac_var'}'`
27281                { echo "$as_me:$LINENO: result: $ac_res" >&5
27282 echo "${ECHO_T}$ac_res" >&6; }
27283 if test `eval echo '${'$as_ac_var'}'` = yes; then
27284   cat >>confdefs.h <<_ACEOF
27285 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27286 _ACEOF
27287  have_cos=1
27288 fi
27289 done
27290
27291
27292 for ac_func in floor
27293 do
27294 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27295 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27296 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27297 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27298   echo $ECHO_N "(cached) $ECHO_C" >&6
27299 else
27300   cat >conftest.$ac_ext <<_ACEOF
27301 /* confdefs.h.  */
27302 _ACEOF
27303 cat confdefs.h >>conftest.$ac_ext
27304 cat >>conftest.$ac_ext <<_ACEOF
27305 /* end confdefs.h.  */
27306 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27307    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27308 #define $ac_func innocuous_$ac_func
27309
27310 /* System header to define __stub macros and hopefully few prototypes,
27311     which can conflict with char $ac_func (); below.
27312     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27313     <limits.h> exists even on freestanding compilers.  */
27314
27315 #ifdef __STDC__
27316 # include <limits.h>
27317 #else
27318 # include <assert.h>
27319 #endif
27320
27321 #undef $ac_func
27322
27323 /* Override any GCC internal prototype to avoid an error.
27324    Use char because int might match the return type of a GCC
27325    builtin and then its argument prototype would still apply.  */
27326 #ifdef __cplusplus
27327 extern "C"
27328 #endif
27329 char $ac_func ();
27330 /* The GNU C library defines this for functions which it implements
27331     to always fail with ENOSYS.  Some functions are actually named
27332     something starting with __ and the normal name is an alias.  */
27333 #if defined __stub_$ac_func || defined __stub___$ac_func
27334 choke me
27335 #endif
27336
27337 int
27338 main ()
27339 {
27340 return $ac_func ();
27341   ;
27342   return 0;
27343 }
27344 _ACEOF
27345 rm -f conftest.$ac_objext conftest$ac_exeext
27346 if { (ac_try="$ac_link"
27347 case "(($ac_try" in
27348   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27349   *) ac_try_echo=$ac_try;;
27350 esac
27351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27352   (eval "$ac_link") 2>conftest.er1
27353   ac_status=$?
27354   grep -v '^ *+' conftest.er1 >conftest.err
27355   rm -f conftest.er1
27356   cat conftest.err >&5
27357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27358   (exit $ac_status); } && {
27359          test -z "$ac_c_werror_flag" ||
27360          test ! -s conftest.err
27361        } && test -s conftest$ac_exeext &&
27362        $as_test_x conftest$ac_exeext; then
27363   eval "$as_ac_var=yes"
27364 else
27365   echo "$as_me: failed program was:" >&5
27366 sed 's/^/| /' conftest.$ac_ext >&5
27367
27368         eval "$as_ac_var=no"
27369 fi
27370
27371 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27372       conftest$ac_exeext conftest.$ac_ext
27373 fi
27374 ac_res=`eval echo '${'$as_ac_var'}'`
27375                { echo "$as_me:$LINENO: result: $ac_res" >&5
27376 echo "${ECHO_T}$ac_res" >&6; }
27377 if test `eval echo '${'$as_ac_var'}'` = yes; then
27378   cat >>confdefs.h <<_ACEOF
27379 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27380 _ACEOF
27381  have_floor=1
27382 fi
27383 done
27384
27385 { echo "$as_me:$LINENO: checking if floating point functions link without -lm" >&5
27386 echo $ECHO_N "checking if floating point functions link without -lm... $ECHO_C" >&6; }
27387 if test "$have_cos" = 1 -a "$have_floor" = 1; then
27388     { echo "$as_me:$LINENO: result: yes" >&5
27389 echo "${ECHO_T}yes" >&6; }
27390 else
27391     { echo "$as_me:$LINENO: result: no" >&5
27392 echo "${ECHO_T}no" >&6; }
27393     LIBS="$LIBS -lm"
27394     # use different functions to avoid configure caching
27395     have_sin=0
27396     have_ceil=0
27397
27398 for ac_func in sin
27399 do
27400 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27401 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27402 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27403 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27404   echo $ECHO_N "(cached) $ECHO_C" >&6
27405 else
27406   cat >conftest.$ac_ext <<_ACEOF
27407 /* confdefs.h.  */
27408 _ACEOF
27409 cat confdefs.h >>conftest.$ac_ext
27410 cat >>conftest.$ac_ext <<_ACEOF
27411 /* end confdefs.h.  */
27412 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27413    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27414 #define $ac_func innocuous_$ac_func
27415
27416 /* System header to define __stub macros and hopefully few prototypes,
27417     which can conflict with char $ac_func (); below.
27418     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27419     <limits.h> exists even on freestanding compilers.  */
27420
27421 #ifdef __STDC__
27422 # include <limits.h>
27423 #else
27424 # include <assert.h>
27425 #endif
27426
27427 #undef $ac_func
27428
27429 /* Override any GCC internal prototype to avoid an error.
27430    Use char because int might match the return type of a GCC
27431    builtin and then its argument prototype would still apply.  */
27432 #ifdef __cplusplus
27433 extern "C"
27434 #endif
27435 char $ac_func ();
27436 /* The GNU C library defines this for functions which it implements
27437     to always fail with ENOSYS.  Some functions are actually named
27438     something starting with __ and the normal name is an alias.  */
27439 #if defined __stub_$ac_func || defined __stub___$ac_func
27440 choke me
27441 #endif
27442
27443 int
27444 main ()
27445 {
27446 return $ac_func ();
27447   ;
27448   return 0;
27449 }
27450 _ACEOF
27451 rm -f conftest.$ac_objext conftest$ac_exeext
27452 if { (ac_try="$ac_link"
27453 case "(($ac_try" in
27454   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27455   *) ac_try_echo=$ac_try;;
27456 esac
27457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27458   (eval "$ac_link") 2>conftest.er1
27459   ac_status=$?
27460   grep -v '^ *+' conftest.er1 >conftest.err
27461   rm -f conftest.er1
27462   cat conftest.err >&5
27463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27464   (exit $ac_status); } && {
27465          test -z "$ac_c_werror_flag" ||
27466          test ! -s conftest.err
27467        } && test -s conftest$ac_exeext &&
27468        $as_test_x conftest$ac_exeext; then
27469   eval "$as_ac_var=yes"
27470 else
27471   echo "$as_me: failed program was:" >&5
27472 sed 's/^/| /' conftest.$ac_ext >&5
27473
27474         eval "$as_ac_var=no"
27475 fi
27476
27477 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27478       conftest$ac_exeext conftest.$ac_ext
27479 fi
27480 ac_res=`eval echo '${'$as_ac_var'}'`
27481                { echo "$as_me:$LINENO: result: $ac_res" >&5
27482 echo "${ECHO_T}$ac_res" >&6; }
27483 if test `eval echo '${'$as_ac_var'}'` = yes; then
27484   cat >>confdefs.h <<_ACEOF
27485 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27486 _ACEOF
27487  have_sin=1
27488 fi
27489 done
27490
27491
27492 for ac_func in ceil
27493 do
27494 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27495 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27496 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27497 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27498   echo $ECHO_N "(cached) $ECHO_C" >&6
27499 else
27500   cat >conftest.$ac_ext <<_ACEOF
27501 /* confdefs.h.  */
27502 _ACEOF
27503 cat confdefs.h >>conftest.$ac_ext
27504 cat >>conftest.$ac_ext <<_ACEOF
27505 /* end confdefs.h.  */
27506 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27507    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27508 #define $ac_func innocuous_$ac_func
27509
27510 /* System header to define __stub macros and hopefully few prototypes,
27511     which can conflict with char $ac_func (); below.
27512     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27513     <limits.h> exists even on freestanding compilers.  */
27514
27515 #ifdef __STDC__
27516 # include <limits.h>
27517 #else
27518 # include <assert.h>
27519 #endif
27520
27521 #undef $ac_func
27522
27523 /* Override any GCC internal prototype to avoid an error.
27524    Use char because int might match the return type of a GCC
27525    builtin and then its argument prototype would still apply.  */
27526 #ifdef __cplusplus
27527 extern "C"
27528 #endif
27529 char $ac_func ();
27530 /* The GNU C library defines this for functions which it implements
27531     to always fail with ENOSYS.  Some functions are actually named
27532     something starting with __ and the normal name is an alias.  */
27533 #if defined __stub_$ac_func || defined __stub___$ac_func
27534 choke me
27535 #endif
27536
27537 int
27538 main ()
27539 {
27540 return $ac_func ();
27541   ;
27542   return 0;
27543 }
27544 _ACEOF
27545 rm -f conftest.$ac_objext conftest$ac_exeext
27546 if { (ac_try="$ac_link"
27547 case "(($ac_try" in
27548   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27549   *) ac_try_echo=$ac_try;;
27550 esac
27551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27552   (eval "$ac_link") 2>conftest.er1
27553   ac_status=$?
27554   grep -v '^ *+' conftest.er1 >conftest.err
27555   rm -f conftest.er1
27556   cat conftest.err >&5
27557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27558   (exit $ac_status); } && {
27559          test -z "$ac_c_werror_flag" ||
27560          test ! -s conftest.err
27561        } && test -s conftest$ac_exeext &&
27562        $as_test_x conftest$ac_exeext; then
27563   eval "$as_ac_var=yes"
27564 else
27565   echo "$as_me: failed program was:" >&5
27566 sed 's/^/| /' conftest.$ac_ext >&5
27567
27568         eval "$as_ac_var=no"
27569 fi
27570
27571 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27572       conftest$ac_exeext conftest.$ac_ext
27573 fi
27574 ac_res=`eval echo '${'$as_ac_var'}'`
27575                { echo "$as_me:$LINENO: result: $ac_res" >&5
27576 echo "${ECHO_T}$ac_res" >&6; }
27577 if test `eval echo '${'$as_ac_var'}'` = yes; then
27578   cat >>confdefs.h <<_ACEOF
27579 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27580 _ACEOF
27581  have_ceil=1
27582 fi
27583 done
27584
27585     { echo "$as_me:$LINENO: checking if floating point functions link with -lm" >&5
27586 echo $ECHO_N "checking if floating point functions link with -lm... $ECHO_C" >&6; }
27587     if test "$have_sin" = 1 -a "$have_ceil" = 1; then
27588         { echo "$as_me:$LINENO: result: yes" >&5
27589 echo "${ECHO_T}yes" >&6; }
27590     else
27591         { echo "$as_me:$LINENO: result: no" >&5
27592 echo "${ECHO_T}no" >&6; }
27593         # not sure we should warn the user, crash, etc.
27594     fi
27595 fi
27596
27597 ac_ext=cpp
27598 ac_cpp='$CXXCPP $CPPFLAGS'
27599 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27600 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27601 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27602
27603 if test "wxUSE_UNICODE" = "yes"; then
27604
27605   for wx_func in wcstoull
27606   do
27607     { echo "$as_me:$LINENO: checking for $wx_func" >&5
27608 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
27609 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
27610   echo $ECHO_N "(cached) $ECHO_C" >&6
27611 else
27612
27613         cat >conftest.$ac_ext <<_ACEOF
27614
27615             /* confdefs.h.  */
27616 _ACEOF
27617 cat confdefs.h >>conftest.$ac_ext
27618 cat >>conftest.$ac_ext <<_ACEOF
27619 /* end confdefs.h.  */
27620
27621
27622                 $ac_includes_default
27623
27624 int
27625 main ()
27626 {
27627
27628                 #ifndef $wx_func
27629                   &$wx_func;
27630                 #endif
27631
27632
27633   ;
27634   return 0;
27635 }
27636
27637 _ACEOF
27638 rm -f conftest.$ac_objext conftest$ac_exeext
27639 if { (ac_try="$ac_link"
27640 case "(($ac_try" in
27641   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27642   *) ac_try_echo=$ac_try;;
27643 esac
27644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27645   (eval "$ac_link") 2>conftest.er1
27646   ac_status=$?
27647   grep -v '^ *+' conftest.er1 >conftest.err
27648   rm -f conftest.er1
27649   cat conftest.err >&5
27650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27651   (exit $ac_status); } && {
27652          test -z "$ac_cxx_werror_flag" ||
27653          test ! -s conftest.err
27654        } && test -s conftest$ac_exeext &&
27655        $as_test_x conftest$ac_exeext; then
27656   eval wx_cv_func_$wx_func=yes
27657 else
27658   echo "$as_me: failed program was:" >&5
27659 sed 's/^/| /' conftest.$ac_ext >&5
27660
27661         eval wx_cv_func_$wx_func=no
27662 fi
27663
27664 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27665       conftest$ac_exeext conftest.$ac_ext
27666
27667 fi
27668 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
27669                { echo "$as_me:$LINENO: result: $ac_res" >&5
27670 echo "${ECHO_T}$ac_res" >&6; }
27671
27672     if eval test \$wx_cv_func_$wx_func = yes
27673     then
27674       cat >>confdefs.h <<_ACEOF
27675 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
27676 _ACEOF
27677
27678
27679     else
27680       :
27681
27682     fi
27683   done
27684
27685 else
27686
27687   for wx_func in strtoull
27688   do
27689     { echo "$as_me:$LINENO: checking for $wx_func" >&5
27690 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
27691 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
27692   echo $ECHO_N "(cached) $ECHO_C" >&6
27693 else
27694
27695         cat >conftest.$ac_ext <<_ACEOF
27696
27697             /* confdefs.h.  */
27698 _ACEOF
27699 cat confdefs.h >>conftest.$ac_ext
27700 cat >>conftest.$ac_ext <<_ACEOF
27701 /* end confdefs.h.  */
27702
27703
27704                 $ac_includes_default
27705
27706 int
27707 main ()
27708 {
27709
27710                 #ifndef $wx_func
27711                   &$wx_func;
27712                 #endif
27713
27714
27715   ;
27716   return 0;
27717 }
27718
27719 _ACEOF
27720 rm -f conftest.$ac_objext conftest$ac_exeext
27721 if { (ac_try="$ac_link"
27722 case "(($ac_try" in
27723   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27724   *) ac_try_echo=$ac_try;;
27725 esac
27726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27727   (eval "$ac_link") 2>conftest.er1
27728   ac_status=$?
27729   grep -v '^ *+' conftest.er1 >conftest.err
27730   rm -f conftest.er1
27731   cat conftest.err >&5
27732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27733   (exit $ac_status); } && {
27734          test -z "$ac_cxx_werror_flag" ||
27735          test ! -s conftest.err
27736        } && test -s conftest$ac_exeext &&
27737        $as_test_x conftest$ac_exeext; then
27738   eval wx_cv_func_$wx_func=yes
27739 else
27740   echo "$as_me: failed program was:" >&5
27741 sed 's/^/| /' conftest.$ac_ext >&5
27742
27743         eval wx_cv_func_$wx_func=no
27744 fi
27745
27746 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27747       conftest$ac_exeext conftest.$ac_ext
27748
27749 fi
27750 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
27751                { echo "$as_me:$LINENO: result: $ac_res" >&5
27752 echo "${ECHO_T}$ac_res" >&6; }
27753
27754     if eval test \$wx_cv_func_$wx_func = yes
27755     then
27756       cat >>confdefs.h <<_ACEOF
27757 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
27758 _ACEOF
27759
27760
27761     else
27762       :
27763
27764     fi
27765   done
27766
27767 fi
27768 ac_ext=c
27769 ac_cpp='$CPP $CPPFLAGS'
27770 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27771 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27772 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27773
27774
27775
27776
27777 if test "$wxUSE_REGEX" != "no"; then
27778     cat >>confdefs.h <<\_ACEOF
27779 #define wxUSE_REGEX 1
27780 _ACEOF
27781
27782
27783     if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_REGEX" = "yes"; then
27784         { echo "$as_me:$LINENO: WARNING: Defaulting to the builtin regex library for Unicode build." >&5
27785 echo "$as_me: WARNING: Defaulting to the builtin regex library for Unicode build." >&2;}
27786         wxUSE_REGEX=builtin
27787     fi
27788
27789     if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then
27790                         { echo "$as_me:$LINENO: checking for regex.h" >&5
27791 echo $ECHO_N "checking for regex.h... $ECHO_C" >&6; }
27792 if test "${ac_cv_header_regex_h+set}" = set; then
27793   echo $ECHO_N "(cached) $ECHO_C" >&6
27794 else
27795   cat >conftest.$ac_ext <<_ACEOF
27796 /* confdefs.h.  */
27797 _ACEOF
27798 cat confdefs.h >>conftest.$ac_ext
27799 cat >>conftest.$ac_ext <<_ACEOF
27800 /* end confdefs.h.  */
27801
27802
27803 #include <regex.h>
27804 _ACEOF
27805 rm -f conftest.$ac_objext
27806 if { (ac_try="$ac_compile"
27807 case "(($ac_try" in
27808   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27809   *) ac_try_echo=$ac_try;;
27810 esac
27811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27812   (eval "$ac_compile") 2>conftest.er1
27813   ac_status=$?
27814   grep -v '^ *+' conftest.er1 >conftest.err
27815   rm -f conftest.er1
27816   cat conftest.err >&5
27817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27818   (exit $ac_status); } && {
27819          test -z "$ac_c_werror_flag" ||
27820          test ! -s conftest.err
27821        } && test -s conftest.$ac_objext; then
27822   ac_cv_header_regex_h=yes
27823 else
27824   echo "$as_me: failed program was:" >&5
27825 sed 's/^/| /' conftest.$ac_ext >&5
27826
27827         ac_cv_header_regex_h=no
27828 fi
27829
27830 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27831 fi
27832 { echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
27833 echo "${ECHO_T}$ac_cv_header_regex_h" >&6; }
27834 if test $ac_cv_header_regex_h = yes; then
27835
27836
27837 for ac_func in regcomp re_search
27838 do
27839 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27840 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27841 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27842 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27843   echo $ECHO_N "(cached) $ECHO_C" >&6
27844 else
27845   cat >conftest.$ac_ext <<_ACEOF
27846 /* confdefs.h.  */
27847 _ACEOF
27848 cat confdefs.h >>conftest.$ac_ext
27849 cat >>conftest.$ac_ext <<_ACEOF
27850 /* end confdefs.h.  */
27851 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27852    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27853 #define $ac_func innocuous_$ac_func
27854
27855 /* System header to define __stub macros and hopefully few prototypes,
27856     which can conflict with char $ac_func (); below.
27857     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27858     <limits.h> exists even on freestanding compilers.  */
27859
27860 #ifdef __STDC__
27861 # include <limits.h>
27862 #else
27863 # include <assert.h>
27864 #endif
27865
27866 #undef $ac_func
27867
27868 /* Override any GCC internal prototype to avoid an error.
27869    Use char because int might match the return type of a GCC
27870    builtin and then its argument prototype would still apply.  */
27871 #ifdef __cplusplus
27872 extern "C"
27873 #endif
27874 char $ac_func ();
27875 /* The GNU C library defines this for functions which it implements
27876     to always fail with ENOSYS.  Some functions are actually named
27877     something starting with __ and the normal name is an alias.  */
27878 #if defined __stub_$ac_func || defined __stub___$ac_func
27879 choke me
27880 #endif
27881
27882 int
27883 main ()
27884 {
27885 return $ac_func ();
27886   ;
27887   return 0;
27888 }
27889 _ACEOF
27890 rm -f conftest.$ac_objext conftest$ac_exeext
27891 if { (ac_try="$ac_link"
27892 case "(($ac_try" in
27893   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27894   *) ac_try_echo=$ac_try;;
27895 esac
27896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27897   (eval "$ac_link") 2>conftest.er1
27898   ac_status=$?
27899   grep -v '^ *+' conftest.er1 >conftest.err
27900   rm -f conftest.er1
27901   cat conftest.err >&5
27902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27903   (exit $ac_status); } && {
27904          test -z "$ac_c_werror_flag" ||
27905          test ! -s conftest.err
27906        } && test -s conftest$ac_exeext &&
27907        $as_test_x conftest$ac_exeext; then
27908   eval "$as_ac_var=yes"
27909 else
27910   echo "$as_me: failed program was:" >&5
27911 sed 's/^/| /' conftest.$ac_ext >&5
27912
27913         eval "$as_ac_var=no"
27914 fi
27915
27916 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27917       conftest$ac_exeext conftest.$ac_ext
27918 fi
27919 ac_res=`eval echo '${'$as_ac_var'}'`
27920                { echo "$as_me:$LINENO: result: $ac_res" >&5
27921 echo "${ECHO_T}$ac_res" >&6; }
27922 if test `eval echo '${'$as_ac_var'}'` = yes; then
27923   cat >>confdefs.h <<_ACEOF
27924 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27925 _ACEOF
27926
27927 fi
27928 done
27929
27930 fi
27931
27932
27933
27934         if test "x$ac_cv_func_regcomp" != "xyes"; then
27935             if test "$wxUSE_REGEX" = "sys" ; then
27936                 { { echo "$as_me:$LINENO: error: system regex library not found! Use --with-regex to use built-in version" >&5
27937 echo "$as_me: error: system regex library not found! Use --with-regex to use built-in version" >&2;}
27938    { (exit 1); exit 1; }; }
27939             else
27940                 { echo "$as_me:$LINENO: WARNING: system regex library not found, will use built-in instead" >&5
27941 echo "$as_me: WARNING: system regex library not found, will use built-in instead" >&2;}
27942                 wxUSE_REGEX=builtin
27943             fi
27944         else
27945                         wxUSE_REGEX=sys
27946                         cat >>confdefs.h <<\_ACEOF
27947 #define WX_NO_REGEX_ADVANCED 1
27948 _ACEOF
27949
27950         fi
27951     fi
27952 fi
27953
27954
27955 ZLIB_LINK=
27956 if test "$wxUSE_ZLIB" != "no" ; then
27957     cat >>confdefs.h <<\_ACEOF
27958 #define wxUSE_ZLIB 1
27959 _ACEOF
27960
27961
27962     if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then
27963                                                 if test "$USE_DARWIN" = 1; then
27964             system_zlib_h_ok="yes"
27965         else
27966                                                                                     { echo "$as_me:$LINENO: checking for zlib.h >= 1.1.4" >&5
27967 echo $ECHO_N "checking for zlib.h >= 1.1.4... $ECHO_C" >&6; }
27968 if test "${ac_cv_header_zlib_h+set}" = set; then
27969   echo $ECHO_N "(cached) $ECHO_C" >&6
27970 else
27971   if test "$cross_compiling" = yes; then
27972                       unset ac_cv_header_zlib_h
27973
27974 else
27975   cat >conftest.$ac_ext <<_ACEOF
27976 /* confdefs.h.  */
27977 _ACEOF
27978 cat confdefs.h >>conftest.$ac_ext
27979 cat >>conftest.$ac_ext <<_ACEOF
27980 /* end confdefs.h.  */
27981
27982                         #include <zlib.h>
27983                         #include <stdio.h>
27984
27985                         int main()
27986                         {
27987                             FILE *f=fopen("conftestval", "w");
27988                             if (!f) exit(1);
27989                             fprintf(f, "%s",
27990                                     ZLIB_VERSION[0] == '1' &&
27991                                     (ZLIB_VERSION[2] > '1' ||
27992                                     (ZLIB_VERSION[2] == '1' &&
27993                                      ZLIB_VERSION[4] >= '4')) ? "yes" : "no");
27994                             exit(0);
27995                         }
27996
27997 _ACEOF
27998 rm -f conftest$ac_exeext
27999 if { (ac_try="$ac_link"
28000 case "(($ac_try" in
28001   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28002   *) ac_try_echo=$ac_try;;
28003 esac
28004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28005   (eval "$ac_link") 2>&5
28006   ac_status=$?
28007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28008   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28009   { (case "(($ac_try" in
28010   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28011   *) ac_try_echo=$ac_try;;
28012 esac
28013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28014   (eval "$ac_try") 2>&5
28015   ac_status=$?
28016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28017   (exit $ac_status); }; }; then
28018   ac_cv_header_zlib_h=`cat conftestval`
28019 else
28020   echo "$as_me: program exited with status $ac_status" >&5
28021 echo "$as_me: failed program was:" >&5
28022 sed 's/^/| /' conftest.$ac_ext >&5
28023
28024 ( exit $ac_status )
28025 ac_cv_header_zlib_h=no
28026 fi
28027 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28028 fi
28029
28030
28031
28032 fi
28033 { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
28034 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
28035                                     { echo "$as_me:$LINENO: checking for zlib.h" >&5
28036 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
28037 if test "${ac_cv_header_zlib_h+set}" = set; then
28038   echo $ECHO_N "(cached) $ECHO_C" >&6
28039 else
28040   cat >conftest.$ac_ext <<_ACEOF
28041 /* confdefs.h.  */
28042 _ACEOF
28043 cat confdefs.h >>conftest.$ac_ext
28044 cat >>conftest.$ac_ext <<_ACEOF
28045 /* end confdefs.h.  */
28046
28047
28048 #include <zlib.h>
28049 _ACEOF
28050 rm -f conftest.$ac_objext
28051 if { (ac_try="$ac_compile"
28052 case "(($ac_try" in
28053   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28054   *) ac_try_echo=$ac_try;;
28055 esac
28056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28057   (eval "$ac_compile") 2>conftest.er1
28058   ac_status=$?
28059   grep -v '^ *+' conftest.er1 >conftest.err
28060   rm -f conftest.er1
28061   cat conftest.err >&5
28062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28063   (exit $ac_status); } && {
28064          test -z "$ac_c_werror_flag" ||
28065          test ! -s conftest.err
28066        } && test -s conftest.$ac_objext; then
28067   ac_cv_header_zlib_h=yes
28068 else
28069   echo "$as_me: failed program was:" >&5
28070 sed 's/^/| /' conftest.$ac_ext >&5
28071
28072         ac_cv_header_zlib_h=no
28073 fi
28074
28075 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28076 fi
28077 { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
28078 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
28079
28080
28081
28082             system_zlib_h_ok=$ac_cv_header_zlib_h
28083         fi
28084
28085         if test "$system_zlib_h_ok" = "yes"; then
28086             { echo "$as_me:$LINENO: checking for deflate in -lz" >&5
28087 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6; }
28088 if test "${ac_cv_lib_z_deflate+set}" = set; then
28089   echo $ECHO_N "(cached) $ECHO_C" >&6
28090 else
28091   ac_check_lib_save_LIBS=$LIBS
28092 LIBS="-lz  $LIBS"
28093 cat >conftest.$ac_ext <<_ACEOF
28094 /* confdefs.h.  */
28095 _ACEOF
28096 cat confdefs.h >>conftest.$ac_ext
28097 cat >>conftest.$ac_ext <<_ACEOF
28098 /* end confdefs.h.  */
28099
28100 /* Override any GCC internal prototype to avoid an error.
28101    Use char because int might match the return type of a GCC
28102    builtin and then its argument prototype would still apply.  */
28103 #ifdef __cplusplus
28104 extern "C"
28105 #endif
28106 char deflate ();
28107 int
28108 main ()
28109 {
28110 return deflate ();
28111   ;
28112   return 0;
28113 }
28114 _ACEOF
28115 rm -f conftest.$ac_objext conftest$ac_exeext
28116 if { (ac_try="$ac_link"
28117 case "(($ac_try" in
28118   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28119   *) ac_try_echo=$ac_try;;
28120 esac
28121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28122   (eval "$ac_link") 2>conftest.er1
28123   ac_status=$?
28124   grep -v '^ *+' conftest.er1 >conftest.err
28125   rm -f conftest.er1
28126   cat conftest.err >&5
28127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28128   (exit $ac_status); } && {
28129          test -z "$ac_c_werror_flag" ||
28130          test ! -s conftest.err
28131        } && test -s conftest$ac_exeext &&
28132        $as_test_x conftest$ac_exeext; then
28133   ac_cv_lib_z_deflate=yes
28134 else
28135   echo "$as_me: failed program was:" >&5
28136 sed 's/^/| /' conftest.$ac_ext >&5
28137
28138         ac_cv_lib_z_deflate=no
28139 fi
28140
28141 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28142       conftest$ac_exeext conftest.$ac_ext
28143 LIBS=$ac_check_lib_save_LIBS
28144 fi
28145 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
28146 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6; }
28147 if test $ac_cv_lib_z_deflate = yes; then
28148   ZLIB_LINK=" -lz"
28149 fi
28150
28151         fi
28152
28153         if test "x$ZLIB_LINK" = "x" ; then
28154             if test "$wxUSE_ZLIB" = "sys" ; then
28155                 { { echo "$as_me:$LINENO: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&5
28156 echo "$as_me: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&2;}
28157    { (exit 1); exit 1; }; }
28158             else
28159                 { echo "$as_me:$LINENO: WARNING: zlib library not found or too old, will use built-in instead" >&5
28160 echo "$as_me: WARNING: zlib library not found or too old, will use built-in instead" >&2;}
28161                 wxUSE_ZLIB=builtin
28162             fi
28163         else
28164                         wxUSE_ZLIB=sys
28165         fi
28166     fi
28167 fi
28168
28169
28170 PNG_LINK=
28171 if test "$wxUSE_LIBPNG" != "no" ; then
28172     cat >>confdefs.h <<\_ACEOF
28173 #define wxUSE_LIBPNG 1
28174 _ACEOF
28175
28176
28177     if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then
28178         { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&5
28179 echo "$as_me: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&2;}
28180         wxUSE_LIBPNG=sys
28181     fi
28182
28183                 if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
28184         { echo "$as_me:$LINENO: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&5
28185 echo "$as_me: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&2;}
28186         wxUSE_LIBPNG=builtin
28187     fi
28188
28189     if test "$wxUSE_MGL" != 1 ; then
28190                 if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then
28191                                     { echo "$as_me:$LINENO: checking for png.h > 0.90" >&5
28192 echo $ECHO_N "checking for png.h > 0.90... $ECHO_C" >&6; }
28193 if test "${ac_cv_header_png_h+set}" = set; then
28194   echo $ECHO_N "(cached) $ECHO_C" >&6
28195 else
28196   if test "$cross_compiling" = yes; then
28197                       unset ac_cv_header_png_h
28198
28199 else
28200   cat >conftest.$ac_ext <<_ACEOF
28201 /* confdefs.h.  */
28202 _ACEOF
28203 cat confdefs.h >>conftest.$ac_ext
28204 cat >>conftest.$ac_ext <<_ACEOF
28205 /* end confdefs.h.  */
28206
28207                         #include <png.h>
28208                         #include <stdio.h>
28209
28210                         int main()
28211                         {
28212                             FILE *f=fopen("conftestval", "w");
28213                             if (!f) exit(1);
28214                             fprintf(f, "%s",
28215                                      PNG_LIBPNG_VER > 90 ? "yes" : "no");
28216                             exit(0);
28217                         }
28218
28219 _ACEOF
28220 rm -f conftest$ac_exeext
28221 if { (ac_try="$ac_link"
28222 case "(($ac_try" in
28223   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28224   *) ac_try_echo=$ac_try;;
28225 esac
28226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28227   (eval "$ac_link") 2>&5
28228   ac_status=$?
28229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28230   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28231   { (case "(($ac_try" in
28232   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28233   *) ac_try_echo=$ac_try;;
28234 esac
28235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28236   (eval "$ac_try") 2>&5
28237   ac_status=$?
28238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28239   (exit $ac_status); }; }; then
28240   ac_cv_header_png_h=`cat conftestval`
28241 else
28242   echo "$as_me: program exited with status $ac_status" >&5
28243 echo "$as_me: failed program was:" >&5
28244 sed 's/^/| /' conftest.$ac_ext >&5
28245
28246 ( exit $ac_status )
28247 ac_cv_header_png_h=no
28248 fi
28249 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28250 fi
28251
28252
28253
28254 fi
28255 { echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
28256 echo "${ECHO_T}$ac_cv_header_png_h" >&6; }
28257             { echo "$as_me:$LINENO: checking for png.h" >&5
28258 echo $ECHO_N "checking for png.h... $ECHO_C" >&6; }
28259 if test "${ac_cv_header_png_h+set}" = set; then
28260   echo $ECHO_N "(cached) $ECHO_C" >&6
28261 else
28262   cat >conftest.$ac_ext <<_ACEOF
28263 /* confdefs.h.  */
28264 _ACEOF
28265 cat confdefs.h >>conftest.$ac_ext
28266 cat >>conftest.$ac_ext <<_ACEOF
28267 /* end confdefs.h.  */
28268
28269
28270 #include <png.h>
28271 _ACEOF
28272 rm -f conftest.$ac_objext
28273 if { (ac_try="$ac_compile"
28274 case "(($ac_try" in
28275   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28276   *) ac_try_echo=$ac_try;;
28277 esac
28278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28279   (eval "$ac_compile") 2>conftest.er1
28280   ac_status=$?
28281   grep -v '^ *+' conftest.er1 >conftest.err
28282   rm -f conftest.er1
28283   cat conftest.err >&5
28284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28285   (exit $ac_status); } && {
28286          test -z "$ac_c_werror_flag" ||
28287          test ! -s conftest.err
28288        } && test -s conftest.$ac_objext; then
28289   ac_cv_header_png_h=yes
28290 else
28291   echo "$as_me: failed program was:" >&5
28292 sed 's/^/| /' conftest.$ac_ext >&5
28293
28294         ac_cv_header_png_h=no
28295 fi
28296
28297 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28298 fi
28299 { echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
28300 echo "${ECHO_T}$ac_cv_header_png_h" >&6; }
28301
28302
28303
28304             if test "$ac_cv_header_png_h" = "yes"; then
28305                 { echo "$as_me:$LINENO: checking for png_sig_cmp in -lpng" >&5
28306 echo $ECHO_N "checking for png_sig_cmp in -lpng... $ECHO_C" >&6; }
28307 if test "${ac_cv_lib_png_png_sig_cmp+set}" = set; then
28308   echo $ECHO_N "(cached) $ECHO_C" >&6
28309 else
28310   ac_check_lib_save_LIBS=$LIBS
28311 LIBS="-lpng -lz -lm $LIBS"
28312 cat >conftest.$ac_ext <<_ACEOF
28313 /* confdefs.h.  */
28314 _ACEOF
28315 cat confdefs.h >>conftest.$ac_ext
28316 cat >>conftest.$ac_ext <<_ACEOF
28317 /* end confdefs.h.  */
28318
28319 /* Override any GCC internal prototype to avoid an error.
28320    Use char because int might match the return type of a GCC
28321    builtin and then its argument prototype would still apply.  */
28322 #ifdef __cplusplus
28323 extern "C"
28324 #endif
28325 char png_sig_cmp ();
28326 int
28327 main ()
28328 {
28329 return png_sig_cmp ();
28330   ;
28331   return 0;
28332 }
28333 _ACEOF
28334 rm -f conftest.$ac_objext conftest$ac_exeext
28335 if { (ac_try="$ac_link"
28336 case "(($ac_try" in
28337   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28338   *) ac_try_echo=$ac_try;;
28339 esac
28340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28341   (eval "$ac_link") 2>conftest.er1
28342   ac_status=$?
28343   grep -v '^ *+' conftest.er1 >conftest.err
28344   rm -f conftest.er1
28345   cat conftest.err >&5
28346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28347   (exit $ac_status); } && {
28348          test -z "$ac_c_werror_flag" ||
28349          test ! -s conftest.err
28350        } && test -s conftest$ac_exeext &&
28351        $as_test_x conftest$ac_exeext; then
28352   ac_cv_lib_png_png_sig_cmp=yes
28353 else
28354   echo "$as_me: failed program was:" >&5
28355 sed 's/^/| /' conftest.$ac_ext >&5
28356
28357         ac_cv_lib_png_png_sig_cmp=no
28358 fi
28359
28360 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28361       conftest$ac_exeext conftest.$ac_ext
28362 LIBS=$ac_check_lib_save_LIBS
28363 fi
28364 { echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_sig_cmp" >&5
28365 echo "${ECHO_T}$ac_cv_lib_png_png_sig_cmp" >&6; }
28366 if test $ac_cv_lib_png_png_sig_cmp = yes; then
28367   PNG_LINK=" -lpng -lz"
28368 fi
28369
28370             fi
28371
28372             if test "x$PNG_LINK" = "x" ; then
28373                 if test "$wxUSE_LIBPNG" = "sys" ; then
28374                     { { echo "$as_me:$LINENO: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&5
28375 echo "$as_me: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&2;}
28376    { (exit 1); exit 1; }; }
28377                 else
28378                     { echo "$as_me:$LINENO: WARNING: system png library not found or too old, will use built-in instead" >&5
28379 echo "$as_me: WARNING: system png library not found or too old, will use built-in instead" >&2;}
28380                     wxUSE_LIBPNG=builtin
28381                 fi
28382             else
28383                                 wxUSE_LIBPNG=sys
28384             fi
28385         fi
28386     fi
28387 fi
28388
28389
28390 JPEG_LINK=
28391 if test "$wxUSE_LIBJPEG" != "no" ; then
28392     cat >>confdefs.h <<\_ACEOF
28393 #define wxUSE_LIBJPEG 1
28394 _ACEOF
28395
28396
28397     if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then
28398         { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&5
28399 echo "$as_me: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&2;}
28400         wxUSE_LIBJPEG=sys
28401     fi
28402
28403     if test "$wxUSE_MGL" != 1 ; then
28404                 if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then
28405                                                 { echo "$as_me:$LINENO: checking for jpeglib.h" >&5
28406 echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6; }
28407             if test "${ac_cv_header_jpeglib_h+set}" = set; then
28408   echo $ECHO_N "(cached) $ECHO_C" >&6
28409 else
28410   cat >conftest.$ac_ext <<_ACEOF
28411 /* confdefs.h.  */
28412 _ACEOF
28413 cat confdefs.h >>conftest.$ac_ext
28414 cat >>conftest.$ac_ext <<_ACEOF
28415 /* end confdefs.h.  */
28416
28417                         #undef HAVE_STDLIB_H
28418                         #include <stdio.h>
28419                         #include <jpeglib.h>
28420
28421 int
28422 main ()
28423 {
28424
28425
28426   ;
28427   return 0;
28428 }
28429 _ACEOF
28430 rm -f conftest.$ac_objext
28431 if { (ac_try="$ac_compile"
28432 case "(($ac_try" in
28433   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28434   *) ac_try_echo=$ac_try;;
28435 esac
28436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28437   (eval "$ac_compile") 2>conftest.er1
28438   ac_status=$?
28439   grep -v '^ *+' conftest.er1 >conftest.err
28440   rm -f conftest.er1
28441   cat conftest.err >&5
28442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28443   (exit $ac_status); } && {
28444          test -z "$ac_c_werror_flag" ||
28445          test ! -s conftest.err
28446        } && test -s conftest.$ac_objext; then
28447   ac_cv_header_jpeglib_h=yes
28448 else
28449   echo "$as_me: failed program was:" >&5
28450 sed 's/^/| /' conftest.$ac_ext >&5
28451
28452         ac_cv_header_jpeglib_h=no
28453
28454 fi
28455
28456 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28457
28458 fi
28459
28460             { echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5
28461 echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6; }
28462
28463             if test "$ac_cv_header_jpeglib_h" = "yes"; then
28464                 { echo "$as_me:$LINENO: checking for jpeg_read_header in -ljpeg" >&5
28465 echo $ECHO_N "checking for jpeg_read_header in -ljpeg... $ECHO_C" >&6; }
28466 if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then
28467   echo $ECHO_N "(cached) $ECHO_C" >&6
28468 else
28469   ac_check_lib_save_LIBS=$LIBS
28470 LIBS="-ljpeg  $LIBS"
28471 cat >conftest.$ac_ext <<_ACEOF
28472 /* confdefs.h.  */
28473 _ACEOF
28474 cat confdefs.h >>conftest.$ac_ext
28475 cat >>conftest.$ac_ext <<_ACEOF
28476 /* end confdefs.h.  */
28477
28478 /* Override any GCC internal prototype to avoid an error.
28479    Use char because int might match the return type of a GCC
28480    builtin and then its argument prototype would still apply.  */
28481 #ifdef __cplusplus
28482 extern "C"
28483 #endif
28484 char jpeg_read_header ();
28485 int
28486 main ()
28487 {
28488 return jpeg_read_header ();
28489   ;
28490   return 0;
28491 }
28492 _ACEOF
28493 rm -f conftest.$ac_objext conftest$ac_exeext
28494 if { (ac_try="$ac_link"
28495 case "(($ac_try" in
28496   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28497   *) ac_try_echo=$ac_try;;
28498 esac
28499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28500   (eval "$ac_link") 2>conftest.er1
28501   ac_status=$?
28502   grep -v '^ *+' conftest.er1 >conftest.err
28503   rm -f conftest.er1
28504   cat conftest.err >&5
28505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28506   (exit $ac_status); } && {
28507          test -z "$ac_c_werror_flag" ||
28508          test ! -s conftest.err
28509        } && test -s conftest$ac_exeext &&
28510        $as_test_x conftest$ac_exeext; then
28511   ac_cv_lib_jpeg_jpeg_read_header=yes
28512 else
28513   echo "$as_me: failed program was:" >&5
28514 sed 's/^/| /' conftest.$ac_ext >&5
28515
28516         ac_cv_lib_jpeg_jpeg_read_header=no
28517 fi
28518
28519 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28520       conftest$ac_exeext conftest.$ac_ext
28521 LIBS=$ac_check_lib_save_LIBS
28522 fi
28523 { echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
28524 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_read_header" >&6; }
28525 if test $ac_cv_lib_jpeg_jpeg_read_header = yes; then
28526   JPEG_LINK=" -ljpeg"
28527 fi
28528
28529             fi
28530
28531             if test "x$JPEG_LINK" = "x" ; then
28532                 if test "$wxUSE_LIBJPEG" = "sys" ; then
28533                     { { echo "$as_me:$LINENO: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&5
28534 echo "$as_me: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&2;}
28535    { (exit 1); exit 1; }; }
28536                 else
28537                     { echo "$as_me:$LINENO: WARNING: system jpeg library not found, will use built-in instead" >&5
28538 echo "$as_me: WARNING: system jpeg library not found, will use built-in instead" >&2;}
28539                     wxUSE_LIBJPEG=builtin
28540                 fi
28541             else
28542                                 wxUSE_LIBJPEG=sys
28543
28544                 if test "$wxUSE_MSW" = 1; then
28545                                                                                                     { echo "$as_me:$LINENO: checking for boolean" >&5
28546 echo $ECHO_N "checking for boolean... $ECHO_C" >&6; }
28547 if test "${ac_cv_type_boolean+set}" = set; then
28548   echo $ECHO_N "(cached) $ECHO_C" >&6
28549 else
28550   cat >conftest.$ac_ext <<_ACEOF
28551 /* confdefs.h.  */
28552 _ACEOF
28553 cat confdefs.h >>conftest.$ac_ext
28554 cat >>conftest.$ac_ext <<_ACEOF
28555 /* end confdefs.h.  */
28556 #include <windows.h>
28557
28558 typedef boolean ac__type_new_;
28559 int
28560 main ()
28561 {
28562 if ((ac__type_new_ *) 0)
28563   return 0;
28564 if (sizeof (ac__type_new_))
28565   return 0;
28566   ;
28567   return 0;
28568 }
28569 _ACEOF
28570 rm -f conftest.$ac_objext
28571 if { (ac_try="$ac_compile"
28572 case "(($ac_try" in
28573   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28574   *) ac_try_echo=$ac_try;;
28575 esac
28576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28577   (eval "$ac_compile") 2>conftest.er1
28578   ac_status=$?
28579   grep -v '^ *+' conftest.er1 >conftest.err
28580   rm -f conftest.er1
28581   cat conftest.err >&5
28582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28583   (exit $ac_status); } && {
28584          test -z "$ac_c_werror_flag" ||
28585          test ! -s conftest.err
28586        } && test -s conftest.$ac_objext; then
28587   ac_cv_type_boolean=yes
28588 else
28589   echo "$as_me: failed program was:" >&5
28590 sed 's/^/| /' conftest.$ac_ext >&5
28591
28592         ac_cv_type_boolean=no
28593 fi
28594
28595 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28596 fi
28597 { echo "$as_me:$LINENO: result: $ac_cv_type_boolean" >&5
28598 echo "${ECHO_T}$ac_cv_type_boolean" >&6; }
28599 if test $ac_cv_type_boolean = yes; then
28600
28601 cat >>confdefs.h <<_ACEOF
28602 #define HAVE_BOOLEAN 1
28603 _ACEOF
28604
28605
28606                             { echo "$as_me:$LINENO: checking for boolean" >&5
28607 echo $ECHO_N "checking for boolean... $ECHO_C" >&6; }
28608 if test "${ac_cv_type_boolean+set}" = set; then
28609   echo $ECHO_N "(cached) $ECHO_C" >&6
28610 else
28611   cat >conftest.$ac_ext <<_ACEOF
28612 /* confdefs.h.  */
28613 _ACEOF
28614 cat confdefs.h >>conftest.$ac_ext
28615 cat >>conftest.$ac_ext <<_ACEOF
28616 /* end confdefs.h.  */
28617
28618                                     #undef HAVE_BOOLEAN
28619                                     #include <stdio.h>
28620                                     #include <jpeglib.h>
28621
28622
28623 typedef boolean ac__type_new_;
28624 int
28625 main ()
28626 {
28627 if ((ac__type_new_ *) 0)
28628   return 0;
28629 if (sizeof (ac__type_new_))
28630   return 0;
28631   ;
28632   return 0;
28633 }
28634 _ACEOF
28635 rm -f conftest.$ac_objext
28636 if { (ac_try="$ac_compile"
28637 case "(($ac_try" in
28638   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28639   *) ac_try_echo=$ac_try;;
28640 esac
28641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28642   (eval "$ac_compile") 2>conftest.er1
28643   ac_status=$?
28644   grep -v '^ *+' conftest.er1 >conftest.err
28645   rm -f conftest.er1
28646   cat conftest.err >&5
28647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28648   (exit $ac_status); } && {
28649          test -z "$ac_c_werror_flag" ||
28650          test ! -s conftest.err
28651        } && test -s conftest.$ac_objext; then
28652   ac_cv_type_boolean=yes
28653 else
28654   echo "$as_me: failed program was:" >&5
28655 sed 's/^/| /' conftest.$ac_ext >&5
28656
28657         ac_cv_type_boolean=no
28658 fi
28659
28660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28661 fi
28662 { echo "$as_me:$LINENO: result: $ac_cv_type_boolean" >&5
28663 echo "${ECHO_T}$ac_cv_type_boolean" >&6; }
28664
28665 # The cast to long int works around a bug in the HP C Compiler
28666 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
28667 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
28668 # This bug is HP SR number 8606223364.
28669 { echo "$as_me:$LINENO: checking size of boolean" >&5
28670 echo $ECHO_N "checking size of boolean... $ECHO_C" >&6; }
28671 if test "${ac_cv_sizeof_boolean+set}" = set; then
28672   echo $ECHO_N "(cached) $ECHO_C" >&6
28673 else
28674   if test "$cross_compiling" = yes; then
28675   # Depending upon the size, compute the lo and hi bounds.
28676 cat >conftest.$ac_ext <<_ACEOF
28677 /* confdefs.h.  */
28678 _ACEOF
28679 cat confdefs.h >>conftest.$ac_ext
28680 cat >>conftest.$ac_ext <<_ACEOF
28681 /* end confdefs.h.  */
28682
28683                                     #undef HAVE_BOOLEAN
28684                                     #include <stdio.h>
28685                                     #include <jpeglib.h>
28686
28687
28688    typedef boolean ac__type_sizeof_;
28689 int
28690 main ()
28691 {
28692 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
28693 test_array [0] = 0
28694
28695   ;
28696   return 0;
28697 }
28698 _ACEOF
28699 rm -f conftest.$ac_objext
28700 if { (ac_try="$ac_compile"
28701 case "(($ac_try" in
28702   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28703   *) ac_try_echo=$ac_try;;
28704 esac
28705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28706   (eval "$ac_compile") 2>conftest.er1
28707   ac_status=$?
28708   grep -v '^ *+' conftest.er1 >conftest.err
28709   rm -f conftest.er1
28710   cat conftest.err >&5
28711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28712   (exit $ac_status); } && {
28713          test -z "$ac_c_werror_flag" ||
28714          test ! -s conftest.err
28715        } && test -s conftest.$ac_objext; then
28716   ac_lo=0 ac_mid=0
28717   while :; do
28718     cat >conftest.$ac_ext <<_ACEOF
28719 /* confdefs.h.  */
28720 _ACEOF
28721 cat confdefs.h >>conftest.$ac_ext
28722 cat >>conftest.$ac_ext <<_ACEOF
28723 /* end confdefs.h.  */
28724
28725                                     #undef HAVE_BOOLEAN
28726                                     #include <stdio.h>
28727                                     #include <jpeglib.h>
28728
28729
28730    typedef boolean ac__type_sizeof_;
28731 int
28732 main ()
28733 {
28734 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
28735 test_array [0] = 0
28736
28737   ;
28738   return 0;
28739 }
28740 _ACEOF
28741 rm -f conftest.$ac_objext
28742 if { (ac_try="$ac_compile"
28743 case "(($ac_try" in
28744   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28745   *) ac_try_echo=$ac_try;;
28746 esac
28747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28748   (eval "$ac_compile") 2>conftest.er1
28749   ac_status=$?
28750   grep -v '^ *+' conftest.er1 >conftest.err
28751   rm -f conftest.er1
28752   cat conftest.err >&5
28753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28754   (exit $ac_status); } && {
28755          test -z "$ac_c_werror_flag" ||
28756          test ! -s conftest.err
28757        } && test -s conftest.$ac_objext; then
28758   ac_hi=$ac_mid; break
28759 else
28760   echo "$as_me: failed program was:" >&5
28761 sed 's/^/| /' conftest.$ac_ext >&5
28762
28763         ac_lo=`expr $ac_mid + 1`
28764                         if test $ac_lo -le $ac_mid; then
28765                           ac_lo= ac_hi=
28766                           break
28767                         fi
28768                         ac_mid=`expr 2 '*' $ac_mid + 1`
28769 fi
28770
28771 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28772   done
28773 else
28774   echo "$as_me: failed program was:" >&5
28775 sed 's/^/| /' conftest.$ac_ext >&5
28776
28777         cat >conftest.$ac_ext <<_ACEOF
28778 /* confdefs.h.  */
28779 _ACEOF
28780 cat confdefs.h >>conftest.$ac_ext
28781 cat >>conftest.$ac_ext <<_ACEOF
28782 /* end confdefs.h.  */
28783
28784                                     #undef HAVE_BOOLEAN
28785                                     #include <stdio.h>
28786                                     #include <jpeglib.h>
28787
28788
28789    typedef boolean ac__type_sizeof_;
28790 int
28791 main ()
28792 {
28793 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
28794 test_array [0] = 0
28795
28796   ;
28797   return 0;
28798 }
28799 _ACEOF
28800 rm -f conftest.$ac_objext
28801 if { (ac_try="$ac_compile"
28802 case "(($ac_try" in
28803   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28804   *) ac_try_echo=$ac_try;;
28805 esac
28806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28807   (eval "$ac_compile") 2>conftest.er1
28808   ac_status=$?
28809   grep -v '^ *+' conftest.er1 >conftest.err
28810   rm -f conftest.er1
28811   cat conftest.err >&5
28812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28813   (exit $ac_status); } && {
28814          test -z "$ac_c_werror_flag" ||
28815          test ! -s conftest.err
28816        } && test -s conftest.$ac_objext; then
28817   ac_hi=-1 ac_mid=-1
28818   while :; do
28819     cat >conftest.$ac_ext <<_ACEOF
28820 /* confdefs.h.  */
28821 _ACEOF
28822 cat confdefs.h >>conftest.$ac_ext
28823 cat >>conftest.$ac_ext <<_ACEOF
28824 /* end confdefs.h.  */
28825
28826                                     #undef HAVE_BOOLEAN
28827                                     #include <stdio.h>
28828                                     #include <jpeglib.h>
28829
28830
28831    typedef boolean ac__type_sizeof_;
28832 int
28833 main ()
28834 {
28835 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
28836 test_array [0] = 0
28837
28838   ;
28839   return 0;
28840 }
28841 _ACEOF
28842 rm -f conftest.$ac_objext
28843 if { (ac_try="$ac_compile"
28844 case "(($ac_try" in
28845   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28846   *) ac_try_echo=$ac_try;;
28847 esac
28848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28849   (eval "$ac_compile") 2>conftest.er1
28850   ac_status=$?
28851   grep -v '^ *+' conftest.er1 >conftest.err
28852   rm -f conftest.er1
28853   cat conftest.err >&5
28854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28855   (exit $ac_status); } && {
28856          test -z "$ac_c_werror_flag" ||
28857          test ! -s conftest.err
28858        } && test -s conftest.$ac_objext; then
28859   ac_lo=$ac_mid; break
28860 else
28861   echo "$as_me: failed program was:" >&5
28862 sed 's/^/| /' conftest.$ac_ext >&5
28863
28864         ac_hi=`expr '(' $ac_mid ')' - 1`
28865                         if test $ac_mid -le $ac_hi; then
28866                           ac_lo= ac_hi=
28867                           break
28868                         fi
28869                         ac_mid=`expr 2 '*' $ac_mid`
28870 fi
28871
28872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28873   done
28874 else
28875   echo "$as_me: failed program was:" >&5
28876 sed 's/^/| /' conftest.$ac_ext >&5
28877
28878         ac_lo= ac_hi=
28879 fi
28880
28881 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28882 fi
28883
28884 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28885 # Binary search between lo and hi bounds.
28886 while test "x$ac_lo" != "x$ac_hi"; do
28887   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
28888   cat >conftest.$ac_ext <<_ACEOF
28889 /* confdefs.h.  */
28890 _ACEOF
28891 cat confdefs.h >>conftest.$ac_ext
28892 cat >>conftest.$ac_ext <<_ACEOF
28893 /* end confdefs.h.  */
28894
28895                                     #undef HAVE_BOOLEAN
28896                                     #include <stdio.h>
28897                                     #include <jpeglib.h>
28898
28899
28900    typedef boolean ac__type_sizeof_;
28901 int
28902 main ()
28903 {
28904 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
28905 test_array [0] = 0
28906
28907   ;
28908   return 0;
28909 }
28910 _ACEOF
28911 rm -f conftest.$ac_objext
28912 if { (ac_try="$ac_compile"
28913 case "(($ac_try" in
28914   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28915   *) ac_try_echo=$ac_try;;
28916 esac
28917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28918   (eval "$ac_compile") 2>conftest.er1
28919   ac_status=$?
28920   grep -v '^ *+' conftest.er1 >conftest.err
28921   rm -f conftest.er1
28922   cat conftest.err >&5
28923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28924   (exit $ac_status); } && {
28925          test -z "$ac_c_werror_flag" ||
28926          test ! -s conftest.err
28927        } && test -s conftest.$ac_objext; then
28928   ac_hi=$ac_mid
28929 else
28930   echo "$as_me: failed program was:" >&5
28931 sed 's/^/| /' conftest.$ac_ext >&5
28932
28933         ac_lo=`expr '(' $ac_mid ')' + 1`
28934 fi
28935
28936 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28937 done
28938 case $ac_lo in
28939 ?*) ac_cv_sizeof_boolean=$ac_lo;;
28940 '') if test "$ac_cv_type_boolean" = yes; then
28941      { { echo "$as_me:$LINENO: error: cannot compute sizeof (boolean)
28942 See \`config.log' for more details." >&5
28943 echo "$as_me: error: cannot compute sizeof (boolean)
28944 See \`config.log' for more details." >&2;}
28945    { (exit 77); exit 77; }; }
28946    else
28947      ac_cv_sizeof_boolean=0
28948    fi ;;
28949 esac
28950 else
28951   cat >conftest.$ac_ext <<_ACEOF
28952 /* confdefs.h.  */
28953 _ACEOF
28954 cat confdefs.h >>conftest.$ac_ext
28955 cat >>conftest.$ac_ext <<_ACEOF
28956 /* end confdefs.h.  */
28957
28958                                     #undef HAVE_BOOLEAN
28959                                     #include <stdio.h>
28960                                     #include <jpeglib.h>
28961
28962
28963    typedef boolean ac__type_sizeof_;
28964 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
28965 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
28966 #include <stdio.h>
28967 #include <stdlib.h>
28968 int
28969 main ()
28970 {
28971
28972   FILE *f = fopen ("conftest.val", "w");
28973   if (! f)
28974     return 1;
28975   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
28976     {
28977       long int i = longval ();
28978       if (i != ((long int) (sizeof (ac__type_sizeof_))))
28979         return 1;
28980       fprintf (f, "%ld\n", i);
28981     }
28982   else
28983     {
28984       unsigned long int i = ulongval ();
28985       if (i != ((long int) (sizeof (ac__type_sizeof_))))
28986         return 1;
28987       fprintf (f, "%lu\n", i);
28988     }
28989   return ferror (f) || fclose (f) != 0;
28990
28991   ;
28992   return 0;
28993 }
28994 _ACEOF
28995 rm -f conftest$ac_exeext
28996 if { (ac_try="$ac_link"
28997 case "(($ac_try" in
28998   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28999   *) ac_try_echo=$ac_try;;
29000 esac
29001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29002   (eval "$ac_link") 2>&5
29003   ac_status=$?
29004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29005   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29006   { (case "(($ac_try" in
29007   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29008   *) ac_try_echo=$ac_try;;
29009 esac
29010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29011   (eval "$ac_try") 2>&5
29012   ac_status=$?
29013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29014   (exit $ac_status); }; }; then
29015   ac_cv_sizeof_boolean=`cat conftest.val`
29016 else
29017   echo "$as_me: program exited with status $ac_status" >&5
29018 echo "$as_me: failed program was:" >&5
29019 sed 's/^/| /' conftest.$ac_ext >&5
29020
29021 ( exit $ac_status )
29022 if test "$ac_cv_type_boolean" = yes; then
29023      { { echo "$as_me:$LINENO: error: cannot compute sizeof (boolean)
29024 See \`config.log' for more details." >&5
29025 echo "$as_me: error: cannot compute sizeof (boolean)
29026 See \`config.log' for more details." >&2;}
29027    { (exit 77); exit 77; }; }
29028    else
29029      ac_cv_sizeof_boolean=0
29030    fi
29031 fi
29032 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29033 fi
29034 rm -f conftest.val
29035 fi
29036 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_boolean" >&5
29037 echo "${ECHO_T}$ac_cv_sizeof_boolean" >&6; }
29038
29039
29040
29041 cat >>confdefs.h <<_ACEOF
29042 #define SIZEOF_BOOLEAN $ac_cv_sizeof_boolean
29043 _ACEOF
29044
29045
29046                             cat >>confdefs.h <<_ACEOF
29047 #define wxHACK_BOOLEAN wxInt`expr 8 \* $ac_cv_sizeof_boolean`
29048 _ACEOF
29049
29050
29051 fi
29052
29053                 fi
29054             fi
29055         fi
29056     fi
29057 fi
29058
29059
29060 TIFF_LINK=
29061 TIFF_PREREQ_LINKS=-lm
29062 if test "$wxUSE_LIBTIFF" != "no" ; then
29063     cat >>confdefs.h <<\_ACEOF
29064 #define wxUSE_LIBTIFF 1
29065 _ACEOF
29066
29067
29068     if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then
29069                         if test "$wxUSE_LIBJPEG" = "sys"; then
29070             TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $JPEG_LINK"
29071         fi
29072         if test "$wxUSE_ZLIB" = "sys"; then
29073             TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $ZLIB_LINK"
29074         fi
29075         { echo "$as_me:$LINENO: checking for tiffio.h" >&5
29076 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
29077 if test "${ac_cv_header_tiffio_h+set}" = set; then
29078   echo $ECHO_N "(cached) $ECHO_C" >&6
29079 else
29080   cat >conftest.$ac_ext <<_ACEOF
29081 /* confdefs.h.  */
29082 _ACEOF
29083 cat confdefs.h >>conftest.$ac_ext
29084 cat >>conftest.$ac_ext <<_ACEOF
29085 /* end confdefs.h.  */
29086
29087
29088
29089 #include <tiffio.h>
29090 _ACEOF
29091 rm -f conftest.$ac_objext
29092 if { (ac_try="$ac_compile"
29093 case "(($ac_try" in
29094   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29095   *) ac_try_echo=$ac_try;;
29096 esac
29097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29098   (eval "$ac_compile") 2>conftest.er1
29099   ac_status=$?
29100   grep -v '^ *+' conftest.er1 >conftest.err
29101   rm -f conftest.er1
29102   cat conftest.err >&5
29103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29104   (exit $ac_status); } && {
29105          test -z "$ac_c_werror_flag" ||
29106          test ! -s conftest.err
29107        } && test -s conftest.$ac_objext; then
29108   ac_cv_header_tiffio_h=yes
29109 else
29110   echo "$as_me: failed program was:" >&5
29111 sed 's/^/| /' conftest.$ac_ext >&5
29112
29113         ac_cv_header_tiffio_h=no
29114 fi
29115
29116 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29117 fi
29118 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
29119 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
29120 if test $ac_cv_header_tiffio_h = yes; then
29121
29122                             { echo "$as_me:$LINENO: checking for TIFFError in -ltiff" >&5
29123 echo $ECHO_N "checking for TIFFError in -ltiff... $ECHO_C" >&6; }
29124 if test "${ac_cv_lib_tiff_TIFFError+set}" = set; then
29125   echo $ECHO_N "(cached) $ECHO_C" >&6
29126 else
29127   ac_check_lib_save_LIBS=$LIBS
29128 LIBS="-ltiff $TIFF_PREREQ_LINKS $LIBS"
29129 cat >conftest.$ac_ext <<_ACEOF
29130 /* confdefs.h.  */
29131 _ACEOF
29132 cat confdefs.h >>conftest.$ac_ext
29133 cat >>conftest.$ac_ext <<_ACEOF
29134 /* end confdefs.h.  */
29135
29136 /* Override any GCC internal prototype to avoid an error.
29137    Use char because int might match the return type of a GCC
29138    builtin and then its argument prototype would still apply.  */
29139 #ifdef __cplusplus
29140 extern "C"
29141 #endif
29142 char TIFFError ();
29143 int
29144 main ()
29145 {
29146 return TIFFError ();
29147   ;
29148   return 0;
29149 }
29150 _ACEOF
29151 rm -f conftest.$ac_objext conftest$ac_exeext
29152 if { (ac_try="$ac_link"
29153 case "(($ac_try" in
29154   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29155   *) ac_try_echo=$ac_try;;
29156 esac
29157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29158   (eval "$ac_link") 2>conftest.er1
29159   ac_status=$?
29160   grep -v '^ *+' conftest.er1 >conftest.err
29161   rm -f conftest.er1
29162   cat conftest.err >&5
29163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29164   (exit $ac_status); } && {
29165          test -z "$ac_c_werror_flag" ||
29166          test ! -s conftest.err
29167        } && test -s conftest$ac_exeext &&
29168        $as_test_x conftest$ac_exeext; then
29169   ac_cv_lib_tiff_TIFFError=yes
29170 else
29171   echo "$as_me: failed program was:" >&5
29172 sed 's/^/| /' conftest.$ac_ext >&5
29173
29174         ac_cv_lib_tiff_TIFFError=no
29175 fi
29176
29177 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29178       conftest$ac_exeext conftest.$ac_ext
29179 LIBS=$ac_check_lib_save_LIBS
29180 fi
29181 { echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFError" >&5
29182 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFError" >&6; }
29183 if test $ac_cv_lib_tiff_TIFFError = yes; then
29184   TIFF_LINK=" -ltiff"
29185 fi
29186
29187
29188 fi
29189
29190
29191
29192         if test "x$TIFF_LINK" = "x" ; then
29193             if test "$wxUSE_LIBTIFF" = "sys" ; then
29194                 { { echo "$as_me:$LINENO: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&5
29195 echo "$as_me: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&2;}
29196    { (exit 1); exit 1; }; }
29197             else
29198                 { echo "$as_me:$LINENO: WARNING: system tiff library not found, will use built-in instead" >&5
29199 echo "$as_me: WARNING: system tiff library not found, will use built-in instead" >&2;}
29200                 wxUSE_LIBTIFF=builtin
29201             fi
29202         else
29203                         wxUSE_LIBTIFF=sys
29204         fi
29205     fi
29206     if test "$wxUSE_LIBTIFF" = "builtin" ; then
29207         if test "$wxUSE_LIBJPEG" = "no"; then
29208                                                                                     ac_configure_args="$ac_configure_args --disable-jpeg"
29209         fi
29210         subdirs="$subdirs src/tiff"
29211
29212     fi
29213 fi
29214
29215
29216 if test "$wxUSE_EXPAT" != "no"; then
29217     wxUSE_XML=yes
29218     cat >>confdefs.h <<\_ACEOF
29219 #define wxUSE_EXPAT 1
29220 _ACEOF
29221
29222     cat >>confdefs.h <<\_ACEOF
29223 #define wxUSE_XML 1
29224 _ACEOF
29225
29226
29227     if test "$wxUSE_EXPAT" = "sys" -o "$wxUSE_EXPAT" = "yes" ; then
29228         { echo "$as_me:$LINENO: checking for expat.h" >&5
29229 echo $ECHO_N "checking for expat.h... $ECHO_C" >&6; }
29230 if test "${ac_cv_header_expat_h+set}" = set; then
29231   echo $ECHO_N "(cached) $ECHO_C" >&6
29232 else
29233   cat >conftest.$ac_ext <<_ACEOF
29234 /* confdefs.h.  */
29235 _ACEOF
29236 cat confdefs.h >>conftest.$ac_ext
29237 cat >>conftest.$ac_ext <<_ACEOF
29238 /* end confdefs.h.  */
29239
29240
29241 #include <expat.h>
29242 _ACEOF
29243 rm -f conftest.$ac_objext
29244 if { (ac_try="$ac_compile"
29245 case "(($ac_try" in
29246   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29247   *) ac_try_echo=$ac_try;;
29248 esac
29249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29250   (eval "$ac_compile") 2>conftest.er1
29251   ac_status=$?
29252   grep -v '^ *+' conftest.er1 >conftest.err
29253   rm -f conftest.er1
29254   cat conftest.err >&5
29255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29256   (exit $ac_status); } && {
29257          test -z "$ac_c_werror_flag" ||
29258          test ! -s conftest.err
29259        } && test -s conftest.$ac_objext; then
29260   ac_cv_header_expat_h=yes
29261 else
29262   echo "$as_me: failed program was:" >&5
29263 sed 's/^/| /' conftest.$ac_ext >&5
29264
29265         ac_cv_header_expat_h=no
29266 fi
29267
29268 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29269 fi
29270 { echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
29271 echo "${ECHO_T}$ac_cv_header_expat_h" >&6; }
29272 if test $ac_cv_header_expat_h = yes; then
29273   found_expat_h=1
29274 fi
29275
29276
29277         if test "x$found_expat_h" = "x1"; then
29278                         { echo "$as_me:$LINENO: checking if expat.h is valid C++ header" >&5
29279 echo $ECHO_N "checking if expat.h is valid C++ header... $ECHO_C" >&6; }
29280 if test "${wx_cv_expat_is_not_broken+set}" = set; then
29281   echo $ECHO_N "(cached) $ECHO_C" >&6
29282 else
29283
29284                 ac_ext=cpp
29285 ac_cpp='$CXXCPP $CPPFLAGS'
29286 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29287 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29288 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29289
29290                 cat >conftest.$ac_ext <<_ACEOF
29291 /* confdefs.h.  */
29292 _ACEOF
29293 cat confdefs.h >>conftest.$ac_ext
29294 cat >>conftest.$ac_ext <<_ACEOF
29295 /* end confdefs.h.  */
29296 #include <expat.h>
29297 int
29298 main ()
29299 {
29300
29301   ;
29302   return 0;
29303 }
29304 _ACEOF
29305 rm -f conftest.$ac_objext
29306 if { (ac_try="$ac_compile"
29307 case "(($ac_try" in
29308   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29309   *) ac_try_echo=$ac_try;;
29310 esac
29311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29312   (eval "$ac_compile") 2>conftest.er1
29313   ac_status=$?
29314   grep -v '^ *+' conftest.er1 >conftest.err
29315   rm -f conftest.er1
29316   cat conftest.err >&5
29317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29318   (exit $ac_status); } && {
29319          test -z "$ac_cxx_werror_flag" ||
29320          test ! -s conftest.err
29321        } && test -s conftest.$ac_objext; then
29322   wx_cv_expat_is_not_broken=yes
29323 else
29324   echo "$as_me: failed program was:" >&5
29325 sed 's/^/| /' conftest.$ac_ext >&5
29326
29327         wx_cv_expat_is_not_broken=no
29328
29329 fi
29330
29331 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29332                 ac_ext=c
29333 ac_cpp='$CPP $CPPFLAGS'
29334 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29335 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29336 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29337
29338
29339
29340 fi
29341 { echo "$as_me:$LINENO: result: $wx_cv_expat_is_not_broken" >&5
29342 echo "${ECHO_T}$wx_cv_expat_is_not_broken" >&6; }
29343             if test "$wx_cv_expat_is_not_broken" = "yes" ; then
29344                 { echo "$as_me:$LINENO: checking for XML_ParserCreate in -lexpat" >&5
29345 echo $ECHO_N "checking for XML_ParserCreate in -lexpat... $ECHO_C" >&6; }
29346 if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then
29347   echo $ECHO_N "(cached) $ECHO_C" >&6
29348 else
29349   ac_check_lib_save_LIBS=$LIBS
29350 LIBS="-lexpat  $LIBS"
29351 cat >conftest.$ac_ext <<_ACEOF
29352 /* confdefs.h.  */
29353 _ACEOF
29354 cat confdefs.h >>conftest.$ac_ext
29355 cat >>conftest.$ac_ext <<_ACEOF
29356 /* end confdefs.h.  */
29357
29358 /* Override any GCC internal prototype to avoid an error.
29359    Use char because int might match the return type of a GCC
29360    builtin and then its argument prototype would still apply.  */
29361 #ifdef __cplusplus
29362 extern "C"
29363 #endif
29364 char XML_ParserCreate ();
29365 int
29366 main ()
29367 {
29368 return XML_ParserCreate ();
29369   ;
29370   return 0;
29371 }
29372 _ACEOF
29373 rm -f conftest.$ac_objext conftest$ac_exeext
29374 if { (ac_try="$ac_link"
29375 case "(($ac_try" in
29376   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29377   *) ac_try_echo=$ac_try;;
29378 esac
29379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29380   (eval "$ac_link") 2>conftest.er1
29381   ac_status=$?
29382   grep -v '^ *+' conftest.er1 >conftest.err
29383   rm -f conftest.er1
29384   cat conftest.err >&5
29385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29386   (exit $ac_status); } && {
29387          test -z "$ac_c_werror_flag" ||
29388          test ! -s conftest.err
29389        } && test -s conftest$ac_exeext &&
29390        $as_test_x conftest$ac_exeext; then
29391   ac_cv_lib_expat_XML_ParserCreate=yes
29392 else
29393   echo "$as_me: failed program was:" >&5
29394 sed 's/^/| /' conftest.$ac_ext >&5
29395
29396         ac_cv_lib_expat_XML_ParserCreate=no
29397 fi
29398
29399 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29400       conftest$ac_exeext conftest.$ac_ext
29401 LIBS=$ac_check_lib_save_LIBS
29402 fi
29403 { echo "$as_me:$LINENO: result: $ac_cv_lib_expat_XML_ParserCreate" >&5
29404 echo "${ECHO_T}$ac_cv_lib_expat_XML_ParserCreate" >&6; }
29405 if test $ac_cv_lib_expat_XML_ParserCreate = yes; then
29406   EXPAT_LINK=" -lexpat"
29407 fi
29408
29409             fi
29410         fi
29411         if test "x$EXPAT_LINK" = "x" ; then
29412             if test "$wxUSE_EXPAT" = "sys" ; then
29413                 { { echo "$as_me:$LINENO: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&5
29414 echo "$as_me: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&2;}
29415    { (exit 1); exit 1; }; }
29416             else
29417                 { echo "$as_me:$LINENO: WARNING: system expat library not found, will use built-in instead" >&5
29418 echo "$as_me: WARNING: system expat library not found, will use built-in instead" >&2;}
29419                 wxUSE_EXPAT=builtin
29420             fi
29421         else
29422                         wxUSE_EXPAT=sys
29423         fi
29424     fi
29425     if test "$wxUSE_EXPAT" = "builtin" ; then
29426                 subdirs="$subdirs src/expat"
29427
29428     fi
29429 fi
29430
29431
29432
29433 if test "$wxUSE_LIBMSPACK" != "no"; then
29434     { echo "$as_me:$LINENO: checking for mspack.h" >&5
29435 echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6; }
29436 if test "${ac_cv_header_mspack_h+set}" = set; then
29437   echo $ECHO_N "(cached) $ECHO_C" >&6
29438 else
29439   cat >conftest.$ac_ext <<_ACEOF
29440 /* confdefs.h.  */
29441 _ACEOF
29442 cat confdefs.h >>conftest.$ac_ext
29443 cat >>conftest.$ac_ext <<_ACEOF
29444 /* end confdefs.h.  */
29445
29446
29447 #include <mspack.h>
29448 _ACEOF
29449 rm -f conftest.$ac_objext
29450 if { (ac_try="$ac_compile"
29451 case "(($ac_try" in
29452   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29453   *) ac_try_echo=$ac_try;;
29454 esac
29455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29456   (eval "$ac_compile") 2>conftest.er1
29457   ac_status=$?
29458   grep -v '^ *+' conftest.er1 >conftest.err
29459   rm -f conftest.er1
29460   cat conftest.err >&5
29461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29462   (exit $ac_status); } && {
29463          test -z "$ac_c_werror_flag" ||
29464          test ! -s conftest.err
29465        } && test -s conftest.$ac_objext; then
29466   ac_cv_header_mspack_h=yes
29467 else
29468   echo "$as_me: failed program was:" >&5
29469 sed 's/^/| /' conftest.$ac_ext >&5
29470
29471         ac_cv_header_mspack_h=no
29472 fi
29473
29474 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29475 fi
29476 { echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
29477 echo "${ECHO_T}$ac_cv_header_mspack_h" >&6; }
29478 if test $ac_cv_header_mspack_h = yes; then
29479   found_mspack_h=1
29480 fi
29481
29482
29483     if test "x$found_mspack_h" = "x1"; then
29484         { echo "$as_me:$LINENO: checking for mspack_create_chm_decompressor in -lmspack" >&5
29485 echo $ECHO_N "checking for mspack_create_chm_decompressor in -lmspack... $ECHO_C" >&6; }
29486 if test "${ac_cv_lib_mspack_mspack_create_chm_decompressor+set}" = set; then
29487   echo $ECHO_N "(cached) $ECHO_C" >&6
29488 else
29489   ac_check_lib_save_LIBS=$LIBS
29490 LIBS="-lmspack  $LIBS"
29491 cat >conftest.$ac_ext <<_ACEOF
29492 /* confdefs.h.  */
29493 _ACEOF
29494 cat confdefs.h >>conftest.$ac_ext
29495 cat >>conftest.$ac_ext <<_ACEOF
29496 /* end confdefs.h.  */
29497
29498 /* Override any GCC internal prototype to avoid an error.
29499    Use char because int might match the return type of a GCC
29500    builtin and then its argument prototype would still apply.  */
29501 #ifdef __cplusplus
29502 extern "C"
29503 #endif
29504 char mspack_create_chm_decompressor ();
29505 int
29506 main ()
29507 {
29508 return mspack_create_chm_decompressor ();
29509   ;
29510   return 0;
29511 }
29512 _ACEOF
29513 rm -f conftest.$ac_objext conftest$ac_exeext
29514 if { (ac_try="$ac_link"
29515 case "(($ac_try" in
29516   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29517   *) ac_try_echo=$ac_try;;
29518 esac
29519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29520   (eval "$ac_link") 2>conftest.er1
29521   ac_status=$?
29522   grep -v '^ *+' conftest.er1 >conftest.err
29523   rm -f conftest.er1
29524   cat conftest.err >&5
29525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29526   (exit $ac_status); } && {
29527          test -z "$ac_c_werror_flag" ||
29528          test ! -s conftest.err
29529        } && test -s conftest$ac_exeext &&
29530        $as_test_x conftest$ac_exeext; then
29531   ac_cv_lib_mspack_mspack_create_chm_decompressor=yes
29532 else
29533   echo "$as_me: failed program was:" >&5
29534 sed 's/^/| /' conftest.$ac_ext >&5
29535
29536         ac_cv_lib_mspack_mspack_create_chm_decompressor=no
29537 fi
29538
29539 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29540       conftest$ac_exeext conftest.$ac_ext
29541 LIBS=$ac_check_lib_save_LIBS
29542 fi
29543 { echo "$as_me:$LINENO: result: $ac_cv_lib_mspack_mspack_create_chm_decompressor" >&5
29544 echo "${ECHO_T}$ac_cv_lib_mspack_mspack_create_chm_decompressor" >&6; }
29545 if test $ac_cv_lib_mspack_mspack_create_chm_decompressor = yes; then
29546   MSPACK_LINK=" -lmspack"
29547 fi
29548
29549     fi
29550     if test "x$MSPACK_LINK" = "x" ; then
29551         wxUSE_LIBMSPACK=no
29552     fi
29553 fi
29554
29555 if test "$wxUSE_LIBMSPACK" != "no"; then
29556     cat >>confdefs.h <<\_ACEOF
29557 #define wxUSE_LIBMSPACK 1
29558 _ACEOF
29559
29560 fi
29561
29562
29563
29564 AFMINSTALL=
29565 WIN32INSTALL=
29566
29567 TOOLKIT=
29568 TOOLKIT_INCLUDE=
29569 WIDGET_SET=
29570
29571 if test "$USE_WIN32" = 1 ; then
29572
29573 for ac_header in w32api.h
29574 do
29575 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29576 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29577 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29578 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29579   echo $ECHO_N "(cached) $ECHO_C" >&6
29580 else
29581   cat >conftest.$ac_ext <<_ACEOF
29582 /* confdefs.h.  */
29583 _ACEOF
29584 cat confdefs.h >>conftest.$ac_ext
29585 cat >>conftest.$ac_ext <<_ACEOF
29586 /* end confdefs.h.  */
29587
29588
29589 #include <$ac_header>
29590 _ACEOF
29591 rm -f conftest.$ac_objext
29592 if { (ac_try="$ac_compile"
29593 case "(($ac_try" in
29594   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29595   *) ac_try_echo=$ac_try;;
29596 esac
29597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29598   (eval "$ac_compile") 2>conftest.er1
29599   ac_status=$?
29600   grep -v '^ *+' conftest.er1 >conftest.err
29601   rm -f conftest.er1
29602   cat conftest.err >&5
29603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29604   (exit $ac_status); } && {
29605          test -z "$ac_c_werror_flag" ||
29606          test ! -s conftest.err
29607        } && test -s conftest.$ac_objext; then
29608   eval "$as_ac_Header=yes"
29609 else
29610   echo "$as_me: failed program was:" >&5
29611 sed 's/^/| /' conftest.$ac_ext >&5
29612
29613         eval "$as_ac_Header=no"
29614 fi
29615
29616 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29617 fi
29618 ac_res=`eval echo '${'$as_ac_Header'}'`
29619                { echo "$as_me:$LINENO: result: $ac_res" >&5
29620 echo "${ECHO_T}$ac_res" >&6; }
29621 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29622   cat >>confdefs.h <<_ACEOF
29623 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29624 _ACEOF
29625
29626 fi
29627
29628 done
29629
29630     { echo "$as_me:$LINENO: checking for windows.h" >&5
29631 echo $ECHO_N "checking for windows.h... $ECHO_C" >&6; }
29632 if test "${ac_cv_header_windows_h+set}" = set; then
29633   echo $ECHO_N "(cached) $ECHO_C" >&6
29634 else
29635   cat >conftest.$ac_ext <<_ACEOF
29636 /* confdefs.h.  */
29637 _ACEOF
29638 cat confdefs.h >>conftest.$ac_ext
29639 cat >>conftest.$ac_ext <<_ACEOF
29640 /* end confdefs.h.  */
29641
29642
29643 #include <windows.h>
29644 _ACEOF
29645 rm -f conftest.$ac_objext
29646 if { (ac_try="$ac_compile"
29647 case "(($ac_try" in
29648   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29649   *) ac_try_echo=$ac_try;;
29650 esac
29651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29652   (eval "$ac_compile") 2>conftest.er1
29653   ac_status=$?
29654   grep -v '^ *+' conftest.er1 >conftest.err
29655   rm -f conftest.er1
29656   cat conftest.err >&5
29657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29658   (exit $ac_status); } && {
29659          test -z "$ac_c_werror_flag" ||
29660          test ! -s conftest.err
29661        } && test -s conftest.$ac_objext; then
29662   ac_cv_header_windows_h=yes
29663 else
29664   echo "$as_me: failed program was:" >&5
29665 sed 's/^/| /' conftest.$ac_ext >&5
29666
29667         ac_cv_header_windows_h=no
29668 fi
29669
29670 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29671 fi
29672 { echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
29673 echo "${ECHO_T}$ac_cv_header_windows_h" >&6; }
29674 if test $ac_cv_header_windows_h = yes; then
29675   :
29676 else
29677
29678         { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of windows.h" >&5
29679 echo "$as_me: error: please set CFLAGS to contain the location of windows.h" >&2;}
29680    { (exit 1); exit 1; }; }
29681
29682 fi
29683
29684
29685
29686     LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lcomdlg32 -ladvapi32 -lwsock32 -lgdi32"
29687     case "${host}" in
29688         x86_64-*-mingw32* )
29689                                                 WINDRES_CPU_DEFINE="--define WX_CPU_AMD64"
29690         ;;
29691     esac
29692     if test "$wxUSE_ACCESSIBILITY" = "yes" ; then
29693         LIBS="$LIBS -loleacc"
29694     fi
29695
29696     case "${host}" in
29697         *-*-cygwin* )
29698                         LIBS="$LIBS -lkernel32 -luser32"
29699     esac
29700
29701         RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__ $WINDRES_CPU_DEFINE"
29702     RESPROGRAMOBJ="\$(PROGRAM)_resources.o"
29703
29704                 WXCONFIG_RESFLAGS="--define __WIN32__ --define __WIN95__ --define __GNUWIN32__ $WINDRES_CPU_DEFINE"
29705
29706         WIN32INSTALL=win32install
29707
29708         { echo "$as_me:$LINENO: checking for pbt.h" >&5
29709 echo $ECHO_N "checking for pbt.h... $ECHO_C" >&6; }
29710 if test "${ac_cv_header_pbt_h+set}" = set; then
29711   echo $ECHO_N "(cached) $ECHO_C" >&6
29712 else
29713   cat >conftest.$ac_ext <<_ACEOF
29714 /* confdefs.h.  */
29715 _ACEOF
29716 cat confdefs.h >>conftest.$ac_ext
29717 cat >>conftest.$ac_ext <<_ACEOF
29718 /* end confdefs.h.  */
29719
29720
29721 #include <pbt.h>
29722 _ACEOF
29723 rm -f conftest.$ac_objext
29724 if { (ac_try="$ac_compile"
29725 case "(($ac_try" in
29726   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29727   *) ac_try_echo=$ac_try;;
29728 esac
29729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29730   (eval "$ac_compile") 2>conftest.er1
29731   ac_status=$?
29732   grep -v '^ *+' conftest.er1 >conftest.err
29733   rm -f conftest.er1
29734   cat conftest.err >&5
29735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29736   (exit $ac_status); } && {
29737          test -z "$ac_c_werror_flag" ||
29738          test ! -s conftest.err
29739        } && test -s conftest.$ac_objext; then
29740   ac_cv_header_pbt_h=yes
29741 else
29742   echo "$as_me: failed program was:" >&5
29743 sed 's/^/| /' conftest.$ac_ext >&5
29744
29745         ac_cv_header_pbt_h=no
29746 fi
29747
29748 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29749 fi
29750 { echo "$as_me:$LINENO: result: $ac_cv_header_pbt_h" >&5
29751 echo "${ECHO_T}$ac_cv_header_pbt_h" >&6; }
29752 if test $ac_cv_header_pbt_h = yes; then
29753   :
29754 else
29755   cat >>confdefs.h <<\_ACEOF
29756 #define NEED_PBT_H 1
29757 _ACEOF
29758
29759 fi
29760
29761
29762 fi
29763
29764 if test "$wxUSE_GUI" = "yes"; then
29765     USE_GUI=1
29766
29767     GUI_TK_LIBRARY=
29768
29769     WXGTK12=
29770     WXGTK127=
29771     WXGTK2=
29772     WXGPE=
29773
29774     if test "$wxUSE_OLD_COCOA" = 1 ; then
29775         if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes"; then
29776             { echo "$as_me:$LINENO: WARNING: Printing not supported under wxCocoa yet, disabled" >&5
29777 echo "$as_me: WARNING: Printing not supported under wxCocoa yet, disabled" >&2;}
29778             wxUSE_PRINTING_ARCHITECTURE=no
29779         fi
29780         if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
29781             { echo "$as_me:$LINENO: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&5
29782 echo "$as_me: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&2;}
29783             wxUSE_DRAG_AND_DROP=no
29784         fi
29785         if test "$wxUSE_DRAGIMAGE" = "yes"; then
29786             { echo "$as_me:$LINENO: WARNING: wxDragImage not supported under wxCocoa yet, disabled" >&5
29787 echo "$as_me: WARNING: wxDragImage not supported under wxCocoa yet, disabled" >&2;}
29788             wxUSE_DRAGIMAGE=no
29789         fi
29790     fi
29791
29792     if test "$wxUSE_MSW" = 1 ; then
29793         TOOLKIT=MSW
29794         GUIDIST=MSW_DIST
29795
29796                 case "${host}" in
29797             *-*-mingw32* )
29798                 WXCONFIG_LDFLAGS_GUI="$LDFLAGS -Wl,--subsystem,windows -mwindows"
29799         esac
29800     fi
29801
29802     if test "$wxUSE_GTK" = 1; then
29803                 { echo "$as_me:$LINENO: checking for GTK+ version" >&5
29804 echo $ECHO_N "checking for GTK+ version... $ECHO_C" >&6; }
29805
29806         gtk_version_cached=1
29807         if test "${wx_cv_lib_gtk+set}" = set; then
29808   echo $ECHO_N "(cached) $ECHO_C" >&6
29809 else
29810
29811                                                 gtk_version_cached=0
29812                 { echo "$as_me:$LINENO: result: " >&5
29813 echo "${ECHO_T}" >&6; }
29814
29815                                                 GTK_MODULES=
29816                 if test "$wxUSE_THREADS" = "yes"; then
29817                     GTK_MODULES=gthread
29818                 fi
29819
29820                                 wx_cv_lib_gtk=
29821                 if test "x$wxGTK_VERSION" != "x1"
29822                 then
29823                                                                                 case "${host}" in
29824                         *-*-solaris2* )
29825                             if test "$wxUSE_THREADS" = "yes" -a "$GCC" = yes; then
29826                                 enable_gtktest=no
29827                             fi
29828                     esac
29829
29830                     # Check whether --enable-gtktest was given.
29831 if test "${enable_gtktest+set}" = set; then
29832   enableval=$enable_gtktest;
29833 else
29834   enable_gtktest=yes
29835 fi
29836
29837
29838   pkg_config_args=gtk+-2.0
29839   for module in . $GTK_MODULES
29840   do
29841       case "$module" in
29842          gthread)
29843              pkg_config_args="$pkg_config_args gthread-2.0"
29844          ;;
29845       esac
29846   done
29847
29848   no_gtk=""
29849
29850   # Extract the first word of "pkg-config", so it can be a program name with args.
29851 set dummy pkg-config; ac_word=$2
29852 { echo "$as_me:$LINENO: checking for $ac_word" >&5
29853 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
29854 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
29855   echo $ECHO_N "(cached) $ECHO_C" >&6
29856 else
29857   case $PKG_CONFIG in
29858   [\\/]* | ?:[\\/]*)
29859   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
29860   ;;
29861   *)
29862   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29863 for as_dir in $PATH
29864 do
29865   IFS=$as_save_IFS
29866   test -z "$as_dir" && as_dir=.
29867   for ac_exec_ext in '' $ac_executable_extensions; do
29868   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29869     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
29870     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29871     break 2
29872   fi
29873 done
29874 done
29875 IFS=$as_save_IFS
29876
29877   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
29878   ;;
29879 esac
29880 fi
29881 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
29882 if test -n "$PKG_CONFIG"; then
29883   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
29884 echo "${ECHO_T}$PKG_CONFIG" >&6; }
29885 else
29886   { echo "$as_me:$LINENO: result: no" >&5
29887 echo "${ECHO_T}no" >&6; }
29888 fi
29889
29890
29891
29892   if test x$PKG_CONFIG != xno ; then
29893     if pkg-config --atleast-pkgconfig-version 0.7 ; then
29894       :
29895     else
29896       echo "*** pkg-config too old; version 0.7 or better required."
29897       no_gtk=yes
29898       PKG_CONFIG=no
29899     fi
29900   else
29901     no_gtk=yes
29902   fi
29903
29904   min_gtk_version=2.4.0
29905   { echo "$as_me:$LINENO: checking for GTK+ - version >= $min_gtk_version" >&5
29906 echo $ECHO_N "checking for GTK+ - version >= $min_gtk_version... $ECHO_C" >&6; }
29907
29908   if test x$PKG_CONFIG != xno ; then
29909     ## don't try to run the test against uninstalled libtool libs
29910     if $PKG_CONFIG --uninstalled $pkg_config_args; then
29911           echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
29912           enable_gtktest=no
29913     fi
29914
29915     if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
29916           :
29917     else
29918           no_gtk=yes
29919     fi
29920   fi
29921
29922   if test x"$no_gtk" = x ; then
29923     GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
29924     GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
29925     gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
29926            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
29927     gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
29928            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
29929     gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
29930            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
29931     if test "x$enable_gtktest" = "xyes" ; then
29932       ac_save_CFLAGS="$CFLAGS"
29933       ac_save_LIBS="$LIBS"
29934       CFLAGS="$CFLAGS $GTK_CFLAGS"
29935       LIBS="$GTK_LIBS $LIBS"
29936       rm -f conf.gtktest
29937       if test "$cross_compiling" = yes; then
29938   echo $ac_n "cross compiling; assumed OK... $ac_c"
29939 else
29940   cat >conftest.$ac_ext <<_ACEOF
29941 /* confdefs.h.  */
29942 _ACEOF
29943 cat confdefs.h >>conftest.$ac_ext
29944 cat >>conftest.$ac_ext <<_ACEOF
29945 /* end confdefs.h.  */
29946
29947 #include <gtk/gtk.h>
29948 #include <stdio.h>
29949 #include <stdlib.h>
29950
29951 int
29952 main ()
29953 {
29954   int major, minor, micro;
29955   char *tmp_version;
29956
29957   system ("touch conf.gtktest");
29958
29959   /* HP/UX 9 (%@#!) writes to sscanf strings */
29960   tmp_version = g_strdup("$min_gtk_version");
29961   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
29962      printf("%s, bad version string\n", "$min_gtk_version");
29963      exit(1);
29964    }
29965
29966   if ((gtk_major_version != $gtk_config_major_version) ||
29967       (gtk_minor_version != $gtk_config_minor_version) ||
29968       (gtk_micro_version != $gtk_config_micro_version))
29969     {
29970       printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
29971              $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
29972              gtk_major_version, gtk_minor_version, gtk_micro_version);
29973       printf ("*** was found! If pkg-config was correct, then it is best\n");
29974       printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
29975       printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
29976       printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
29977       printf("*** required on your system.\n");
29978       printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
29979       printf("*** to point to the correct configuration files\n");
29980     }
29981   else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
29982            (gtk_minor_version != GTK_MINOR_VERSION) ||
29983            (gtk_micro_version != GTK_MICRO_VERSION))
29984     {
29985       printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
29986              GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
29987       printf("*** library (version %d.%d.%d)\n",
29988              gtk_major_version, gtk_minor_version, gtk_micro_version);
29989     }
29990   else
29991     {
29992       if ((gtk_major_version > major) ||
29993         ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
29994         ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
29995       {
29996         return 0;
29997        }
29998      else
29999       {
30000         printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
30001                gtk_major_version, gtk_minor_version, gtk_micro_version);
30002         printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
30003                major, minor, micro);
30004         printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
30005         printf("***\n");
30006         printf("*** If you have already installed a sufficiently new version, this error\n");
30007         printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
30008         printf("*** being found. The easiest way to fix this is to remove the old version\n");
30009         printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
30010         printf("*** correct copy of pkg-config. (In this case, you will have to\n");
30011         printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
30012         printf("*** so that the correct libraries are found at run-time))\n");
30013       }
30014     }
30015   return 1;
30016 }
30017
30018 _ACEOF
30019 rm -f conftest$ac_exeext
30020 if { (ac_try="$ac_link"
30021 case "(($ac_try" in
30022   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30023   *) ac_try_echo=$ac_try;;
30024 esac
30025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30026   (eval "$ac_link") 2>&5
30027   ac_status=$?
30028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30029   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30030   { (case "(($ac_try" in
30031   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30032   *) ac_try_echo=$ac_try;;
30033 esac
30034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30035   (eval "$ac_try") 2>&5
30036   ac_status=$?
30037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30038   (exit $ac_status); }; }; then
30039   :
30040 else
30041   echo "$as_me: program exited with status $ac_status" >&5
30042 echo "$as_me: failed program was:" >&5
30043 sed 's/^/| /' conftest.$ac_ext >&5
30044
30045 ( exit $ac_status )
30046 no_gtk=yes
30047 fi
30048 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30049 fi
30050
30051
30052        CFLAGS="$ac_save_CFLAGS"
30053        LIBS="$ac_save_LIBS"
30054      fi
30055   fi
30056   if test "x$no_gtk" = x ; then
30057      { echo "$as_me:$LINENO: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5
30058 echo "${ECHO_T}yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6; }
30059      wx_cv_lib_gtk=2.0
30060   else
30061      { echo "$as_me:$LINENO: result: no" >&5
30062 echo "${ECHO_T}no" >&6; }
30063      if test "$PKG_CONFIG" = "no" ; then
30064        echo "*** A new enough version of pkg-config was not found."
30065        echo "*** See http://pkgconfig.sourceforge.net"
30066      else
30067        if test -f conf.gtktest ; then
30068         :
30069        else
30070           echo "*** Could not run GTK+ test program, checking why..."
30071           ac_save_CFLAGS="$CFLAGS"
30072           ac_save_LIBS="$LIBS"
30073           CFLAGS="$CFLAGS $GTK_CFLAGS"
30074           LIBS="$LIBS $GTK_LIBS"
30075           cat >conftest.$ac_ext <<_ACEOF
30076 /* confdefs.h.  */
30077 _ACEOF
30078 cat confdefs.h >>conftest.$ac_ext
30079 cat >>conftest.$ac_ext <<_ACEOF
30080 /* end confdefs.h.  */
30081
30082 #include <gtk/gtk.h>
30083 #include <stdio.h>
30084
30085 int
30086 main ()
30087 {
30088  return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
30089   ;
30090   return 0;
30091 }
30092 _ACEOF
30093 rm -f conftest.$ac_objext conftest$ac_exeext
30094 if { (ac_try="$ac_link"
30095 case "(($ac_try" in
30096   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30097   *) ac_try_echo=$ac_try;;
30098 esac
30099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30100   (eval "$ac_link") 2>conftest.er1
30101   ac_status=$?
30102   grep -v '^ *+' conftest.er1 >conftest.err
30103   rm -f conftest.er1
30104   cat conftest.err >&5
30105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30106   (exit $ac_status); } && {
30107          test -z "$ac_c_werror_flag" ||
30108          test ! -s conftest.err
30109        } && test -s conftest$ac_exeext &&
30110        $as_test_x conftest$ac_exeext; then
30111    echo "*** The test program compiled, but did not run. This usually means"
30112           echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
30113           echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
30114           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
30115           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
30116           echo "*** is required on your system"
30117           echo "***"
30118           echo "*** If you have an old version installed, it is best to remove it, although"
30119           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
30120 else
30121   echo "$as_me: failed program was:" >&5
30122 sed 's/^/| /' conftest.$ac_ext >&5
30123
30124          echo "*** The test program failed to compile or link. See the file config.log for the"
30125           echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."
30126 fi
30127
30128 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30129       conftest$ac_exeext conftest.$ac_ext
30130           CFLAGS="$ac_save_CFLAGS"
30131           LIBS="$ac_save_LIBS"
30132        fi
30133      fi
30134      GTK_CFLAGS=""
30135      GTK_LIBS=""
30136      :
30137   fi
30138
30139
30140   rm -f conf.gtktest
30141
30142
30143                                         GTK_LIBS="$GTK_LIBS -lX11"
30144                 fi
30145
30146                                 if test -z "$wx_cv_lib_gtk"; then
30147                     if test "x$wxGTK_VERSION" = "x1" -o "x$wxGTK_VERSION" = "xany" ; then
30148
30149 # Check whether --with-gtk-prefix was given.
30150 if test "${with_gtk_prefix+set}" = set; then
30151   withval=$with_gtk_prefix; gtk_config_prefix="$withval"
30152 else
30153   gtk_config_prefix=""
30154 fi
30155
30156
30157 # Check whether --with-gtk-exec-prefix was given.
30158 if test "${with_gtk_exec_prefix+set}" = set; then
30159   withval=$with_gtk_exec_prefix; gtk_config_exec_prefix="$withval"
30160 else
30161   gtk_config_exec_prefix=""
30162 fi
30163
30164 # Check whether --enable-gtktest was given.
30165 if test "${enable_gtktest+set}" = set; then
30166   enableval=$enable_gtktest;
30167 else
30168   enable_gtktest=yes
30169 fi
30170
30171
30172   for module in . $GTK_MODULES
30173   do
30174       case "$module" in
30175          gthread)
30176              gtk_config_args="$gtk_config_args gthread"
30177          ;;
30178       esac
30179   done
30180
30181   if test x$gtk_config_exec_prefix != x ; then
30182      gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
30183      if test x${GTK_CONFIG+set} != xset ; then
30184         GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
30185      fi
30186   fi
30187   if test x$gtk_config_prefix != x ; then
30188      gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
30189      if test x${GTK_CONFIG+set} != xset ; then
30190         GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
30191      fi
30192   fi
30193
30194   # Extract the first word of "gtk-config", so it can be a program name with args.
30195 set dummy gtk-config; ac_word=$2
30196 { echo "$as_me:$LINENO: checking for $ac_word" >&5
30197 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
30198 if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
30199   echo $ECHO_N "(cached) $ECHO_C" >&6
30200 else
30201   case $GTK_CONFIG in
30202   [\\/]* | ?:[\\/]*)
30203   ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
30204   ;;
30205   *)
30206   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30207 for as_dir in $PATH
30208 do
30209   IFS=$as_save_IFS
30210   test -z "$as_dir" && as_dir=.
30211   for ac_exec_ext in '' $ac_executable_extensions; do
30212   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30213     ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
30214     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30215     break 2
30216   fi
30217 done
30218 done
30219 IFS=$as_save_IFS
30220
30221   test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
30222   ;;
30223 esac
30224 fi
30225 GTK_CONFIG=$ac_cv_path_GTK_CONFIG
30226 if test -n "$GTK_CONFIG"; then
30227   { echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
30228 echo "${ECHO_T}$GTK_CONFIG" >&6; }
30229 else
30230   { echo "$as_me:$LINENO: result: no" >&5
30231 echo "${ECHO_T}no" >&6; }
30232 fi
30233
30234
30235   min_gtk_version=1.2.7
30236   { echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
30237 echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6; }
30238   no_gtk=""
30239   if test "$GTK_CONFIG" = "no" ; then
30240     no_gtk=yes
30241   else
30242     GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
30243     GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
30244     gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
30245            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
30246     gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
30247            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
30248     gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
30249            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
30250     if test "x$enable_gtktest" = "xyes" ; then
30251       ac_save_CFLAGS="$CFLAGS"
30252       ac_save_LIBS="$LIBS"
30253       CFLAGS="$CFLAGS $GTK_CFLAGS"
30254       LIBS="$GTK_LIBS $LIBS"
30255       rm -f conf.gtktest
30256       if test "$cross_compiling" = yes; then
30257   echo $ac_n "cross compiling; assumed OK... $ac_c"
30258 else
30259   cat >conftest.$ac_ext <<_ACEOF
30260 /* confdefs.h.  */
30261 _ACEOF
30262 cat confdefs.h >>conftest.$ac_ext
30263 cat >>conftest.$ac_ext <<_ACEOF
30264 /* end confdefs.h.  */
30265
30266 #include <gtk/gtk.h>
30267 #include <stdio.h>
30268 #include <stdlib.h>
30269
30270 int
30271 main ()
30272 {
30273   int major, minor, micro;
30274   char *tmp_version;
30275
30276   system ("touch conf.gtktest");
30277
30278   /* HP/UX 9 (%@#!) writes to sscanf strings */
30279   tmp_version = g_strdup("$min_gtk_version");
30280   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
30281      printf("%s, bad version string\n", "$min_gtk_version");
30282      exit(1);
30283    }
30284
30285   if ((gtk_major_version != $gtk_config_major_version) ||
30286       (gtk_minor_version != $gtk_config_minor_version) ||
30287       (gtk_micro_version != $gtk_config_micro_version))
30288     {
30289       printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
30290              $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
30291              gtk_major_version, gtk_minor_version, gtk_micro_version);
30292       printf ("*** was found! If gtk-config was correct, then it is best\n");
30293       printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
30294       printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
30295       printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
30296       printf("*** required on your system.\n");
30297       printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
30298       printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
30299       printf("*** before re-running configure\n");
30300     }
30301 #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
30302   else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
30303            (gtk_minor_version != GTK_MINOR_VERSION) ||
30304            (gtk_micro_version != GTK_MICRO_VERSION))
30305     {
30306       printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
30307              GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
30308       printf("*** library (version %d.%d.%d)\n",
30309              gtk_major_version, gtk_minor_version, gtk_micro_version);
30310     }
30311 #endif /* defined (GTK_MAJOR_VERSION) ... */
30312   else
30313     {
30314       if ((gtk_major_version > major) ||
30315         ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
30316         ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
30317       {
30318         return 0;
30319        }
30320      else
30321       {
30322         printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
30323                gtk_major_version, gtk_minor_version, gtk_micro_version);
30324         printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
30325                major, minor, micro);
30326         printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
30327         printf("***\n");
30328         printf("*** If you have already installed a sufficiently new version, this error\n");
30329         printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
30330         printf("*** being found. The easiest way to fix this is to remove the old version\n");
30331         printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
30332         printf("*** correct copy of gtk-config. (In this case, you will have to\n");
30333         printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
30334         printf("*** so that the correct libraries are found at run-time))\n");
30335       }
30336     }
30337   return 1;
30338 }
30339
30340 _ACEOF
30341 rm -f conftest$ac_exeext
30342 if { (ac_try="$ac_link"
30343 case "(($ac_try" in
30344   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30345   *) ac_try_echo=$ac_try;;
30346 esac
30347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30348   (eval "$ac_link") 2>&5
30349   ac_status=$?
30350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30351   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30352   { (case "(($ac_try" in
30353   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30354   *) ac_try_echo=$ac_try;;
30355 esac
30356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30357   (eval "$ac_try") 2>&5
30358   ac_status=$?
30359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30360   (exit $ac_status); }; }; then
30361   :
30362 else
30363   echo "$as_me: program exited with status $ac_status" >&5
30364 echo "$as_me: failed program was:" >&5
30365 sed 's/^/| /' conftest.$ac_ext >&5
30366
30367 ( exit $ac_status )
30368 no_gtk=yes
30369 fi
30370 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30371 fi
30372
30373
30374        CFLAGS="$ac_save_CFLAGS"
30375        LIBS="$ac_save_LIBS"
30376      fi
30377   fi
30378   if test "x$no_gtk" = x ; then
30379      { echo "$as_me:$LINENO: result: yes" >&5
30380 echo "${ECHO_T}yes" >&6; }
30381      wx_cv_lib_gtk=1.2.7
30382   else
30383      { echo "$as_me:$LINENO: result: no" >&5
30384 echo "${ECHO_T}no" >&6; }
30385      if test "$GTK_CONFIG" = "no" ; then
30386        echo "*** The gtk-config script installed by GTK could not be found"
30387        echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
30388        echo "*** your path, or set the GTK_CONFIG environment variable to the"
30389        echo "*** full path to gtk-config."
30390      else
30391        if test -f conf.gtktest ; then
30392         :
30393        else
30394           echo "*** Could not run GTK test program, checking why..."
30395           CFLAGS="$CFLAGS $GTK_CFLAGS"
30396           LIBS="$LIBS $GTK_LIBS"
30397           cat >conftest.$ac_ext <<_ACEOF
30398 /* confdefs.h.  */
30399 _ACEOF
30400 cat confdefs.h >>conftest.$ac_ext
30401 cat >>conftest.$ac_ext <<_ACEOF
30402 /* end confdefs.h.  */
30403
30404 #include <gtk/gtk.h>
30405 #include <stdio.h>
30406
30407 int
30408 main ()
30409 {
30410  return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
30411   ;
30412   return 0;
30413 }
30414 _ACEOF
30415 rm -f conftest.$ac_objext conftest$ac_exeext
30416 if { (ac_try="$ac_link"
30417 case "(($ac_try" in
30418   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30419   *) ac_try_echo=$ac_try;;
30420 esac
30421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30422   (eval "$ac_link") 2>conftest.er1
30423   ac_status=$?
30424   grep -v '^ *+' conftest.er1 >conftest.err
30425   rm -f conftest.er1
30426   cat conftest.err >&5
30427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30428   (exit $ac_status); } && {
30429          test -z "$ac_c_werror_flag" ||
30430          test ! -s conftest.err
30431        } && test -s conftest$ac_exeext &&
30432        $as_test_x conftest$ac_exeext; then
30433    echo "*** The test program compiled, but did not run. This usually means"
30434           echo "*** that the run-time linker is not finding GTK or finding the wrong"
30435           echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
30436           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
30437           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
30438           echo "*** is required on your system"
30439           echo "***"
30440           echo "*** If you have an old version installed, it is best to remove it, although"
30441           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
30442           echo "***"
30443           echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
30444           echo "*** came with the system with the command"
30445           echo "***"
30446           echo "***    rpm --erase --nodeps gtk gtk-devel"
30447 else
30448   echo "$as_me: failed program was:" >&5
30449 sed 's/^/| /' conftest.$ac_ext >&5
30450
30451          echo "*** The test program failed to compile or link. See the file config.log for the"
30452           echo "*** exact error that occured. This usually means GTK was incorrectly installed"
30453           echo "*** or that you have moved GTK since it was installed. In the latter case, you"
30454           echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
30455 fi
30456
30457 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30458       conftest$ac_exeext conftest.$ac_ext
30459           CFLAGS="$ac_save_CFLAGS"
30460           LIBS="$ac_save_LIBS"
30461        fi
30462      fi
30463      GTK_CFLAGS=""
30464      GTK_LIBS=""
30465      :
30466   fi
30467
30468
30469   rm -f conf.gtktest
30470
30471
30472                         if test -z "$wx_cv_lib_gtk"; then
30473
30474 # Check whether --with-gtk-prefix was given.
30475 if test "${with_gtk_prefix+set}" = set; then
30476   withval=$with_gtk_prefix; gtk_config_prefix="$withval"
30477 else
30478   gtk_config_prefix=""
30479 fi
30480
30481
30482 # Check whether --with-gtk-exec-prefix was given.
30483 if test "${with_gtk_exec_prefix+set}" = set; then
30484   withval=$with_gtk_exec_prefix; gtk_config_exec_prefix="$withval"
30485 else
30486   gtk_config_exec_prefix=""
30487 fi
30488
30489 # Check whether --enable-gtktest was given.
30490 if test "${enable_gtktest+set}" = set; then
30491   enableval=$enable_gtktest;
30492 else
30493   enable_gtktest=yes
30494 fi
30495
30496
30497   for module in . $GTK_MODULES
30498   do
30499       case "$module" in
30500          gthread)
30501              gtk_config_args="$gtk_config_args gthread"
30502          ;;
30503       esac
30504   done
30505
30506   if test x$gtk_config_exec_prefix != x ; then
30507      gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
30508      if test x${GTK_CONFIG+set} != xset ; then
30509         GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
30510      fi
30511   fi
30512   if test x$gtk_config_prefix != x ; then
30513      gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
30514      if test x${GTK_CONFIG+set} != xset ; then
30515         GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
30516      fi
30517   fi
30518
30519   # Extract the first word of "gtk-config", so it can be a program name with args.
30520 set dummy gtk-config; ac_word=$2
30521 { echo "$as_me:$LINENO: checking for $ac_word" >&5
30522 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
30523 if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
30524   echo $ECHO_N "(cached) $ECHO_C" >&6
30525 else
30526   case $GTK_CONFIG in
30527   [\\/]* | ?:[\\/]*)
30528   ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
30529   ;;
30530   *)
30531   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30532 for as_dir in $PATH
30533 do
30534   IFS=$as_save_IFS
30535   test -z "$as_dir" && as_dir=.
30536   for ac_exec_ext in '' $ac_executable_extensions; do
30537   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30538     ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
30539     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30540     break 2
30541   fi
30542 done
30543 done
30544 IFS=$as_save_IFS
30545
30546   test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
30547   ;;
30548 esac
30549 fi
30550 GTK_CONFIG=$ac_cv_path_GTK_CONFIG
30551 if test -n "$GTK_CONFIG"; then
30552   { echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
30553 echo "${ECHO_T}$GTK_CONFIG" >&6; }
30554 else
30555   { echo "$as_me:$LINENO: result: no" >&5
30556 echo "${ECHO_T}no" >&6; }
30557 fi
30558
30559
30560   min_gtk_version=1.2.3
30561   { echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
30562 echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6; }
30563   no_gtk=""
30564   if test "$GTK_CONFIG" = "no" ; then
30565     no_gtk=yes
30566   else
30567     GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
30568     GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
30569     gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
30570            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
30571     gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
30572            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
30573     gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
30574            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
30575     if test "x$enable_gtktest" = "xyes" ; then
30576       ac_save_CFLAGS="$CFLAGS"
30577       ac_save_LIBS="$LIBS"
30578       CFLAGS="$CFLAGS $GTK_CFLAGS"
30579       LIBS="$GTK_LIBS $LIBS"
30580       rm -f conf.gtktest
30581       if test "$cross_compiling" = yes; then
30582   echo $ac_n "cross compiling; assumed OK... $ac_c"
30583 else
30584   cat >conftest.$ac_ext <<_ACEOF
30585 /* confdefs.h.  */
30586 _ACEOF
30587 cat confdefs.h >>conftest.$ac_ext
30588 cat >>conftest.$ac_ext <<_ACEOF
30589 /* end confdefs.h.  */
30590
30591 #include <gtk/gtk.h>
30592 #include <stdio.h>
30593 #include <stdlib.h>
30594
30595 int
30596 main ()
30597 {
30598   int major, minor, micro;
30599   char *tmp_version;
30600
30601   system ("touch conf.gtktest");
30602
30603   /* HP/UX 9 (%@#!) writes to sscanf strings */
30604   tmp_version = g_strdup("$min_gtk_version");
30605   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
30606      printf("%s, bad version string\n", "$min_gtk_version");
30607      exit(1);
30608    }
30609
30610   if ((gtk_major_version != $gtk_config_major_version) ||
30611       (gtk_minor_version != $gtk_config_minor_version) ||
30612       (gtk_micro_version != $gtk_config_micro_version))
30613     {
30614       printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
30615              $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
30616              gtk_major_version, gtk_minor_version, gtk_micro_version);
30617       printf ("*** was found! If gtk-config was correct, then it is best\n");
30618       printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
30619       printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
30620       printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
30621       printf("*** required on your system.\n");
30622       printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
30623       printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
30624       printf("*** before re-running configure\n");
30625     }
30626 #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
30627   else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
30628            (gtk_minor_version != GTK_MINOR_VERSION) ||
30629            (gtk_micro_version != GTK_MICRO_VERSION))
30630     {
30631       printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
30632              GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
30633       printf("*** library (version %d.%d.%d)\n",
30634              gtk_major_version, gtk_minor_version, gtk_micro_version);
30635     }
30636 #endif /* defined (GTK_MAJOR_VERSION) ... */
30637   else
30638     {
30639       if ((gtk_major_version > major) ||
30640         ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
30641         ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
30642       {
30643         return 0;
30644        }
30645      else
30646       {
30647         printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
30648                gtk_major_version, gtk_minor_version, gtk_micro_version);
30649         printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
30650                major, minor, micro);
30651         printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
30652         printf("***\n");
30653         printf("*** If you have already installed a sufficiently new version, this error\n");
30654         printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
30655         printf("*** being found. The easiest way to fix this is to remove the old version\n");
30656         printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
30657         printf("*** correct copy of gtk-config. (In this case, you will have to\n");
30658         printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
30659         printf("*** so that the correct libraries are found at run-time))\n");
30660       }
30661     }
30662   return 1;
30663 }
30664
30665 _ACEOF
30666 rm -f conftest$ac_exeext
30667 if { (ac_try="$ac_link"
30668 case "(($ac_try" in
30669   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30670   *) ac_try_echo=$ac_try;;
30671 esac
30672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30673   (eval "$ac_link") 2>&5
30674   ac_status=$?
30675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30676   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30677   { (case "(($ac_try" in
30678   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30679   *) ac_try_echo=$ac_try;;
30680 esac
30681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30682   (eval "$ac_try") 2>&5
30683   ac_status=$?
30684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30685   (exit $ac_status); }; }; then
30686   :
30687 else
30688   echo "$as_me: program exited with status $ac_status" >&5
30689 echo "$as_me: failed program was:" >&5
30690 sed 's/^/| /' conftest.$ac_ext >&5
30691
30692 ( exit $ac_status )
30693 no_gtk=yes
30694 fi
30695 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30696 fi
30697
30698
30699        CFLAGS="$ac_save_CFLAGS"
30700        LIBS="$ac_save_LIBS"
30701      fi
30702   fi
30703   if test "x$no_gtk" = x ; then
30704      { echo "$as_me:$LINENO: result: yes" >&5
30705 echo "${ECHO_T}yes" >&6; }
30706      wx_cv_lib_gtk=1.2.3
30707   else
30708      { echo "$as_me:$LINENO: result: no" >&5
30709 echo "${ECHO_T}no" >&6; }
30710      if test "$GTK_CONFIG" = "no" ; then
30711        echo "*** The gtk-config script installed by GTK could not be found"
30712        echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
30713        echo "*** your path, or set the GTK_CONFIG environment variable to the"
30714        echo "*** full path to gtk-config."
30715      else
30716        if test -f conf.gtktest ; then
30717         :
30718        else
30719           echo "*** Could not run GTK test program, checking why..."
30720           CFLAGS="$CFLAGS $GTK_CFLAGS"
30721           LIBS="$LIBS $GTK_LIBS"
30722           cat >conftest.$ac_ext <<_ACEOF
30723 /* confdefs.h.  */
30724 _ACEOF
30725 cat confdefs.h >>conftest.$ac_ext
30726 cat >>conftest.$ac_ext <<_ACEOF
30727 /* end confdefs.h.  */
30728
30729 #include <gtk/gtk.h>
30730 #include <stdio.h>
30731
30732 int
30733 main ()
30734 {
30735  return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
30736   ;
30737   return 0;
30738 }
30739 _ACEOF
30740 rm -f conftest.$ac_objext conftest$ac_exeext
30741 if { (ac_try="$ac_link"
30742 case "(($ac_try" in
30743   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30744   *) ac_try_echo=$ac_try;;
30745 esac
30746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30747   (eval "$ac_link") 2>conftest.er1
30748   ac_status=$?
30749   grep -v '^ *+' conftest.er1 >conftest.err
30750   rm -f conftest.er1
30751   cat conftest.err >&5
30752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30753   (exit $ac_status); } && {
30754          test -z "$ac_c_werror_flag" ||
30755          test ! -s conftest.err
30756        } && test -s conftest$ac_exeext &&
30757        $as_test_x conftest$ac_exeext; then
30758    echo "*** The test program compiled, but did not run. This usually means"
30759           echo "*** that the run-time linker is not finding GTK or finding the wrong"
30760           echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
30761           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
30762           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
30763           echo "*** is required on your system"
30764           echo "***"
30765           echo "*** If you have an old version installed, it is best to remove it, although"
30766           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
30767           echo "***"
30768           echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
30769           echo "*** came with the system with the command"
30770           echo "***"
30771           echo "***    rpm --erase --nodeps gtk gtk-devel"
30772 else
30773   echo "$as_me: failed program was:" >&5
30774 sed 's/^/| /' conftest.$ac_ext >&5
30775
30776          echo "*** The test program failed to compile or link. See the file config.log for the"
30777           echo "*** exact error that occured. This usually means GTK was incorrectly installed"
30778           echo "*** or that you have moved GTK since it was installed. In the latter case, you"
30779           echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
30780 fi
30781
30782 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30783       conftest$ac_exeext conftest.$ac_ext
30784           CFLAGS="$ac_save_CFLAGS"
30785           LIBS="$ac_save_LIBS"
30786        fi
30787      fi
30788      GTK_CFLAGS=""
30789      GTK_LIBS=""
30790      :
30791   fi
30792
30793
30794   rm -f conf.gtktest
30795
30796                         fi
30797                     fi
30798                 fi
30799
30800                 if test -z "$wx_cv_lib_gtk"; then
30801                                         wx_cv_lib_gtk=none
30802                 else
30803                                                             wx_cv_cflags_gtk=$GTK_CFLAGS
30804                     wx_cv_libs_gtk=$GTK_LIBS
30805                 fi
30806
30807
30808 fi
30809
30810
30811                         if test "$gtk_version_cached" = 1; then
30812             { echo "$as_me:$LINENO: result: $wx_cv_lib_gtk" >&5
30813 echo "${ECHO_T}$wx_cv_lib_gtk" >&6; }
30814         fi
30815
30816         case "$wx_cv_lib_gtk" in
30817             2.0)    WXGTK2=1
30818                     TOOLKIT_VERSION=2
30819                     ;;
30820             1.2.7)  WXGTK127=1
30821                     WXGTK12=1
30822                     ;;
30823             1.2.3)  WXGTK12=1
30824                     ;;
30825             *)      { { echo "$as_me:$LINENO: error:
30826 The development files for GTK+ were not found. For GTK+ 2, please
30827 ensure that pkg-config is in the path and that gtk+-2.0.pc is
30828 installed. For GTK+ 1.2 please check that gtk-config is in the path,
30829 and that the version is 1.2.3 or above. Also check that the
30830 libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config
30831 --libs' are in the LD_LIBRARY_PATH or equivalent.
30832                             " >&5
30833 echo "$as_me: error:
30834 The development files for GTK+ were not found. For GTK+ 2, please
30835 ensure that pkg-config is in the path and that gtk+-2.0.pc is
30836 installed. For GTK+ 1.2 please check that gtk-config is in the path,
30837 and that the version is 1.2.3 or above. Also check that the
30838 libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config
30839 --libs' are in the LD_LIBRARY_PATH or equivalent.
30840                             " >&2;}
30841    { (exit 1); exit 1; }; }
30842                     ;;
30843         esac
30844
30845         if test "$WXGTK2" = 1; then
30846             save_CFLAGS="$CFLAGS"
30847             save_LIBS="$LIBS"
30848             CFLAGS="$wx_cv_cflags_gtk $CFLAGS"
30849             LIBS="$LIBS $wx_cv_libs_gtk"
30850
30851                         { echo "$as_me:$LINENO: checking if GTK+ is version >= 2.18" >&5
30852 echo $ECHO_N "checking if GTK+ is version >= 2.18... $ECHO_C" >&6; }
30853             cat >conftest.$ac_ext <<_ACEOF
30854 /* confdefs.h.  */
30855 _ACEOF
30856 cat confdefs.h >>conftest.$ac_ext
30857 cat >>conftest.$ac_ext <<_ACEOF
30858 /* end confdefs.h.  */
30859
30860                             #include <gtk/gtk.h>
30861
30862 int
30863 main ()
30864 {
30865
30866                             #if !GTK_CHECK_VERSION(2,18,0)
30867                             Not GTK+ 2.18
30868                             #endif
30869
30870   ;
30871   return 0;
30872 }
30873 _ACEOF
30874 rm -f conftest.$ac_objext
30875 if { (ac_try="$ac_compile"
30876 case "(($ac_try" in
30877   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30878   *) ac_try_echo=$ac_try;;
30879 esac
30880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30881   (eval "$ac_compile") 2>conftest.er1
30882   ac_status=$?
30883   grep -v '^ *+' conftest.er1 >conftest.err
30884   rm -f conftest.er1
30885   cat conftest.err >&5
30886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30887   (exit $ac_status); } && {
30888          test -z "$ac_c_werror_flag" ||
30889          test ! -s conftest.err
30890        } && test -s conftest.$ac_objext; then
30891
30892                             cat >>confdefs.h <<\_ACEOF
30893 #define __WXGTK218__ 1
30894 _ACEOF
30895
30896                             cat >>confdefs.h <<\_ACEOF
30897 #define __WXGTK210__ 1
30898 _ACEOF
30899
30900                             cat >>confdefs.h <<\_ACEOF
30901 #define __WXGTK26__ 1
30902 _ACEOF
30903
30904                             { echo "$as_me:$LINENO: result: yes" >&5
30905 echo "${ECHO_T}yes" >&6; }
30906                             ac_wxgtk218=1
30907
30908 else
30909   echo "$as_me: failed program was:" >&5
30910 sed 's/^/| /' conftest.$ac_ext >&5
30911
30912
30913                             { echo "$as_me:$LINENO: result: no" >&5
30914 echo "${ECHO_T}no" >&6; }
30915                             ac_wxgtk218=0
30916
30917 fi
30918
30919 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30920
30921             if test "$ac_wxgtk218" = 0; then
30922                                 { echo "$as_me:$LINENO: checking if GTK+ is version >= 2.10" >&5
30923 echo $ECHO_N "checking if GTK+ is version >= 2.10... $ECHO_C" >&6; }
30924                 cat >conftest.$ac_ext <<_ACEOF
30925 /* confdefs.h.  */
30926 _ACEOF
30927 cat confdefs.h >>conftest.$ac_ext
30928 cat >>conftest.$ac_ext <<_ACEOF
30929 /* end confdefs.h.  */
30930
30931                                 #include <gtk/gtk.h>
30932
30933 int
30934 main ()
30935 {
30936
30937                                 #if !GTK_CHECK_VERSION(2,10,0)
30938                                 Not GTK+ 2.10
30939                                 #endif
30940
30941   ;
30942   return 0;
30943 }
30944 _ACEOF
30945 rm -f conftest.$ac_objext
30946 if { (ac_try="$ac_compile"
30947 case "(($ac_try" in
30948   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30949   *) ac_try_echo=$ac_try;;
30950 esac
30951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30952   (eval "$ac_compile") 2>conftest.er1
30953   ac_status=$?
30954   grep -v '^ *+' conftest.er1 >conftest.err
30955   rm -f conftest.er1
30956   cat conftest.err >&5
30957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30958   (exit $ac_status); } && {
30959          test -z "$ac_c_werror_flag" ||
30960          test ! -s conftest.err
30961        } && test -s conftest.$ac_objext; then
30962
30963                                 cat >>confdefs.h <<\_ACEOF
30964 #define __WXGTK210__ 1
30965 _ACEOF
30966
30967                                 cat >>confdefs.h <<\_ACEOF
30968 #define __WXGTK26__ 1
30969 _ACEOF
30970
30971                                 { echo "$as_me:$LINENO: result: yes" >&5
30972 echo "${ECHO_T}yes" >&6; }
30973                                 ac_wxgtk210=1
30974
30975 else
30976   echo "$as_me: failed program was:" >&5
30977 sed 's/^/| /' conftest.$ac_ext >&5
30978
30979
30980                                 { echo "$as_me:$LINENO: result: no" >&5
30981 echo "${ECHO_T}no" >&6; }
30982                                 ac_wxgtk210=0
30983
30984 fi
30985
30986 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30987
30988                 if test "$ac_wxgtk210" = 0; then
30989                                         { echo "$as_me:$LINENO: checking if GTK+ is version >= 2.6" >&5
30990 echo $ECHO_N "checking if GTK+ is version >= 2.6... $ECHO_C" >&6; }
30991                     cat >conftest.$ac_ext <<_ACEOF
30992 /* confdefs.h.  */
30993 _ACEOF
30994 cat confdefs.h >>conftest.$ac_ext
30995 cat >>conftest.$ac_ext <<_ACEOF
30996 /* end confdefs.h.  */
30997
30998                                     #include <gtk/gtk.h>
30999
31000 int
31001 main ()
31002 {
31003
31004                                     #if !GTK_CHECK_VERSION(2,6,0)
31005                                     Not GTK+ 2.6
31006                                     #endif
31007
31008   ;
31009   return 0;
31010 }
31011 _ACEOF
31012 rm -f conftest.$ac_objext
31013 if { (ac_try="$ac_compile"
31014 case "(($ac_try" in
31015   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31016   *) ac_try_echo=$ac_try;;
31017 esac
31018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31019   (eval "$ac_compile") 2>conftest.er1
31020   ac_status=$?
31021   grep -v '^ *+' conftest.er1 >conftest.err
31022   rm -f conftest.er1
31023   cat conftest.err >&5
31024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31025   (exit $ac_status); } && {
31026          test -z "$ac_c_werror_flag" ||
31027          test ! -s conftest.err
31028        } && test -s conftest.$ac_objext; then
31029
31030                                     cat >>confdefs.h <<\_ACEOF
31031 #define __WXGTK26__ 1
31032 _ACEOF
31033
31034                                     { echo "$as_me:$LINENO: result: yes" >&5
31035 echo "${ECHO_T}yes" >&6; }
31036                                     ac_wxgtk26=1
31037
31038 else
31039   echo "$as_me: failed program was:" >&5
31040 sed 's/^/| /' conftest.$ac_ext >&5
31041
31042
31043                                     { echo "$as_me:$LINENO: result: no" >&5
31044 echo "${ECHO_T}no" >&6; }
31045                                     ac_wxgtk26=0
31046
31047 fi
31048
31049 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31050                 fi
31051             fi
31052
31053             CFLAGS="$save_CFLAGS"
31054             LIBS="$save_LIBS"
31055         else
31056             if test "$wxUSE_UNICODE" = "yes"; then
31057                 { echo "$as_me:$LINENO: WARNING: Unicode configuration not supported with GTK+ 1.x" >&5
31058 echo "$as_me: WARNING: Unicode configuration not supported with GTK+ 1.x" >&2;}
31059                 wxUSE_UNICODE=no
31060             fi
31061
31062                         { echo "$as_me:$LINENO: checking for gdk_im_open in -lgdk" >&5
31063 echo $ECHO_N "checking for gdk_im_open in -lgdk... $ECHO_C" >&6; }
31064 if test "${ac_cv_lib_gdk_gdk_im_open+set}" = set; then
31065   echo $ECHO_N "(cached) $ECHO_C" >&6
31066 else
31067   ac_check_lib_save_LIBS=$LIBS
31068 LIBS="-lgdk  $LIBS"
31069 cat >conftest.$ac_ext <<_ACEOF
31070 /* confdefs.h.  */
31071 _ACEOF
31072 cat confdefs.h >>conftest.$ac_ext
31073 cat >>conftest.$ac_ext <<_ACEOF
31074 /* end confdefs.h.  */
31075
31076 /* Override any GCC internal prototype to avoid an error.
31077    Use char because int might match the return type of a GCC
31078    builtin and then its argument prototype would still apply.  */
31079 #ifdef __cplusplus
31080 extern "C"
31081 #endif
31082 char gdk_im_open ();
31083 int
31084 main ()
31085 {
31086 return gdk_im_open ();
31087   ;
31088   return 0;
31089 }
31090 _ACEOF
31091 rm -f conftest.$ac_objext conftest$ac_exeext
31092 if { (ac_try="$ac_link"
31093 case "(($ac_try" in
31094   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31095   *) ac_try_echo=$ac_try;;
31096 esac
31097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31098   (eval "$ac_link") 2>conftest.er1
31099   ac_status=$?
31100   grep -v '^ *+' conftest.er1 >conftest.err
31101   rm -f conftest.er1
31102   cat conftest.err >&5
31103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31104   (exit $ac_status); } && {
31105          test -z "$ac_c_werror_flag" ||
31106          test ! -s conftest.err
31107        } && test -s conftest$ac_exeext &&
31108        $as_test_x conftest$ac_exeext; then
31109   ac_cv_lib_gdk_gdk_im_open=yes
31110 else
31111   echo "$as_me: failed program was:" >&5
31112 sed 's/^/| /' conftest.$ac_ext >&5
31113
31114         ac_cv_lib_gdk_gdk_im_open=no
31115 fi
31116
31117 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31118       conftest$ac_exeext conftest.$ac_ext
31119 LIBS=$ac_check_lib_save_LIBS
31120 fi
31121 { echo "$as_me:$LINENO: result: $ac_cv_lib_gdk_gdk_im_open" >&5
31122 echo "${ECHO_T}$ac_cv_lib_gdk_gdk_im_open" >&6; }
31123 if test $ac_cv_lib_gdk_gdk_im_open = yes; then
31124   cat >>confdefs.h <<\_ACEOF
31125 #define HAVE_XIM 1
31126 _ACEOF
31127
31128 fi
31129
31130
31131                                     if test "$USE_DARWIN" != 1; then
31132
31133 for ac_func in poll
31134 do
31135 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31136 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31137 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31138 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31139   echo $ECHO_N "(cached) $ECHO_C" >&6
31140 else
31141   cat >conftest.$ac_ext <<_ACEOF
31142 /* confdefs.h.  */
31143 _ACEOF
31144 cat confdefs.h >>conftest.$ac_ext
31145 cat >>conftest.$ac_ext <<_ACEOF
31146 /* end confdefs.h.  */
31147 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31148    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31149 #define $ac_func innocuous_$ac_func
31150
31151 /* System header to define __stub macros and hopefully few prototypes,
31152     which can conflict with char $ac_func (); below.
31153     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31154     <limits.h> exists even on freestanding compilers.  */
31155
31156 #ifdef __STDC__
31157 # include <limits.h>
31158 #else
31159 # include <assert.h>
31160 #endif
31161
31162 #undef $ac_func
31163
31164 /* Override any GCC internal prototype to avoid an error.
31165    Use char because int might match the return type of a GCC
31166    builtin and then its argument prototype would still apply.  */
31167 #ifdef __cplusplus
31168 extern "C"
31169 #endif
31170 char $ac_func ();
31171 /* The GNU C library defines this for functions which it implements
31172     to always fail with ENOSYS.  Some functions are actually named
31173     something starting with __ and the normal name is an alias.  */
31174 #if defined __stub_$ac_func || defined __stub___$ac_func
31175 choke me
31176 #endif
31177
31178 int
31179 main ()
31180 {
31181 return $ac_func ();
31182   ;
31183   return 0;
31184 }
31185 _ACEOF
31186 rm -f conftest.$ac_objext conftest$ac_exeext
31187 if { (ac_try="$ac_link"
31188 case "(($ac_try" in
31189   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31190   *) ac_try_echo=$ac_try;;
31191 esac
31192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31193   (eval "$ac_link") 2>conftest.er1
31194   ac_status=$?
31195   grep -v '^ *+' conftest.er1 >conftest.err
31196   rm -f conftest.er1
31197   cat conftest.err >&5
31198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31199   (exit $ac_status); } && {
31200          test -z "$ac_c_werror_flag" ||
31201          test ! -s conftest.err
31202        } && test -s conftest$ac_exeext &&
31203        $as_test_x conftest$ac_exeext; then
31204   eval "$as_ac_var=yes"
31205 else
31206   echo "$as_me: failed program was:" >&5
31207 sed 's/^/| /' conftest.$ac_ext >&5
31208
31209         eval "$as_ac_var=no"
31210 fi
31211
31212 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31213       conftest$ac_exeext conftest.$ac_ext
31214 fi
31215 ac_res=`eval echo '${'$as_ac_var'}'`
31216                { echo "$as_me:$LINENO: result: $ac_res" >&5
31217 echo "${ECHO_T}$ac_res" >&6; }
31218 if test `eval echo '${'$as_ac_var'}'` = yes; then
31219   cat >>confdefs.h <<_ACEOF
31220 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31221 _ACEOF
31222
31223 fi
31224 done
31225
31226             fi
31227         fi
31228
31229         TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
31230         GUI_TK_LIBRARY="$wx_cv_libs_gtk $GUI_TK_LIBRARY"
31231
31232                 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE -DG_DISABLE_CAST_CHECKS"
31233
31234         AFMINSTALL=afminstall
31235         TOOLKIT=GTK
31236         GUIDIST=GTK_DIST
31237
31238                 if test "$wxUSE_GPE" = "yes"; then
31239             { echo "$as_me:$LINENO: checking for gpewidget library" >&5
31240 echo $ECHO_N "checking for gpewidget library... $ECHO_C" >&6; }
31241
31242   ac_find_libraries=
31243   for ac_dir in $SEARCH_LIB
31244   do
31245     for ac_extension in a so sl dylib dll.a; do
31246       if test -f "$ac_dir/libgpewidget.$ac_extension"; then
31247         ac_find_libraries=$ac_dir
31248         break 2
31249       fi
31250     done
31251   done
31252
31253             if test "$ac_find_libraries" != "" ; then
31254
31255     if test "$ac_find_libraries" = "default location"; then
31256     ac_path_to_link=""
31257   else
31258     echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
31259     result=$?
31260     if test $result = 0; then
31261       ac_path_to_link=""
31262     else
31263       ac_path_to_link=" -L$ac_find_libraries"
31264     fi
31265   fi
31266
31267                                                 GUI_TK_LIBRARY="-L${prefix}/lib -lgpewidget $GUI_TK_LIBRARY"
31268                 WXGPE=1
31269                 { echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
31270 echo "${ECHO_T}found in $ac_find_libraries" >&6; }
31271             else
31272                 { echo "$as_me:$LINENO: result: not found" >&5
31273 echo "${ECHO_T}not found" >&6; }
31274             fi
31275
31276                                                                                                                     fi
31277     fi
31278
31279     if test "$wxUSE_MGL" = 1; then
31280        { echo "$as_me:$LINENO: checking for SciTech MGL library" >&5
31281 echo $ECHO_N "checking for SciTech MGL library... $ECHO_C" >&6; }
31282         if test "x$MGL_ROOT" = x ; then
31283             { echo "$as_me:$LINENO: result: not found" >&5
31284 echo "${ECHO_T}not found" >&6; }
31285             { { echo "$as_me:$LINENO: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&5
31286 echo "$as_me: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&2;}
31287    { (exit 1); exit 1; }; }
31288         else
31289             { echo "$as_me:$LINENO: result: $MGL_ROOT" >&5
31290 echo "${ECHO_T}$MGL_ROOT" >&6; }
31291         fi
31292
31293         { echo "$as_me:$LINENO: checking for libmgl location" >&5
31294 echo $ECHO_N "checking for libmgl location... $ECHO_C" >&6; }
31295                                 case "${host}" in
31296             *-*-linux* )
31297                                           if test "x$wxUSE_SHARED" = xyes ; then
31298                   mgl_os_candidates="linux/gcc/x86/so linux/gcc/x86/a linux/gcc/glibc.so linux/gcc/glibc"
31299               else
31300                   mgl_os_candidates="linux/gcc/x86/a linux/gcc/x86/so linux/gcc/glibc linux/gcc/glibc.so"
31301               fi
31302               ;;
31303             *-pc-msdosdjgpp )
31304               mgl_os_candidates="dos32/dj2"
31305               ;;
31306             *)
31307               { { echo "$as_me:$LINENO: error: This system type ${host} is not yet supported by wxMGL." >&5
31308 echo "$as_me: error: This system type ${host} is not yet supported by wxMGL." >&2;}
31309    { (exit 1); exit 1; }; }
31310         esac
31311
31312         mgl_lib_type=""
31313         mgl_os=""
31314
31315         for mgl_os_i in $mgl_os_candidates ; do
31316             if test "x$mgl_os" = x ; then
31317                 if test "$wxUSE_DEBUG_FLAG" = yes ; then
31318                     if test -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.a -o \
31319                             -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.so; then
31320                         mgl_lib_type=debug
31321                         mgl_os=$mgl_os_i
31322                     fi
31323                 fi
31324                 if test "x$mgl_lib_type" = x ; then
31325                     if test -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.a -o \
31326                             -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.so; then
31327                         mgl_lib_type=release
31328                         mgl_os=$mgl_os_i
31329                     fi
31330                 fi
31331             fi
31332         done
31333
31334         if test "x$mgl_os" = x ; then
31335             { echo "$as_me:$LINENO: result: not found" >&5
31336 echo "${ECHO_T}not found" >&6; }
31337             { { echo "$as_me:$LINENO: error: Cannot find MGL libraries, make sure they are compiled." >&5
31338 echo "$as_me: error: Cannot find MGL libraries, make sure they are compiled." >&2;}
31339    { (exit 1); exit 1; }; }
31340         fi
31341         { echo "$as_me:$LINENO: result: \"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&5
31342 echo "${ECHO_T}\"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&6; }
31343
31344         wxUSE_UNIVERSAL="yes"
31345
31346         TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
31347         GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm"
31348
31349         AFMINSTALL=afminstall
31350         TOOLKIT=MGL
31351         GUIDIST=MGL_DIST
31352     fi
31353
31354     if test "$wxUSE_DFB" = 1; then
31355
31356
31357 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
31358         if test -n "$ac_tool_prefix"; then
31359   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
31360 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
31361 { echo "$as_me:$LINENO: checking for $ac_word" >&5
31362 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
31363 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
31364   echo $ECHO_N "(cached) $ECHO_C" >&6
31365 else
31366   case $PKG_CONFIG in
31367   [\\/]* | ?:[\\/]*)
31368   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
31369   ;;
31370   *)
31371   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31372 for as_dir in $PATH
31373 do
31374   IFS=$as_save_IFS
31375   test -z "$as_dir" && as_dir=.
31376   for ac_exec_ext in '' $ac_executable_extensions; do
31377   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31378     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
31379     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31380     break 2
31381   fi
31382 done
31383 done
31384 IFS=$as_save_IFS
31385
31386   ;;
31387 esac
31388 fi
31389 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
31390 if test -n "$PKG_CONFIG"; then
31391   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
31392 echo "${ECHO_T}$PKG_CONFIG" >&6; }
31393 else
31394   { echo "$as_me:$LINENO: result: no" >&5
31395 echo "${ECHO_T}no" >&6; }
31396 fi
31397
31398
31399 fi
31400 if test -z "$ac_cv_path_PKG_CONFIG"; then
31401   ac_pt_PKG_CONFIG=$PKG_CONFIG
31402   # Extract the first word of "pkg-config", so it can be a program name with args.
31403 set dummy pkg-config; ac_word=$2
31404 { echo "$as_me:$LINENO: checking for $ac_word" >&5
31405 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
31406 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
31407   echo $ECHO_N "(cached) $ECHO_C" >&6
31408 else
31409   case $ac_pt_PKG_CONFIG in
31410   [\\/]* | ?:[\\/]*)
31411   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
31412   ;;
31413   *)
31414   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31415 for as_dir in $PATH
31416 do
31417   IFS=$as_save_IFS
31418   test -z "$as_dir" && as_dir=.
31419   for ac_exec_ext in '' $ac_executable_extensions; do
31420   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31421     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
31422     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31423     break 2
31424   fi
31425 done
31426 done
31427 IFS=$as_save_IFS
31428
31429   ;;
31430 esac
31431 fi
31432 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
31433 if test -n "$ac_pt_PKG_CONFIG"; then
31434   { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
31435 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
31436 else
31437   { echo "$as_me:$LINENO: result: no" >&5
31438 echo "${ECHO_T}no" >&6; }
31439 fi
31440
31441   if test "x$ac_pt_PKG_CONFIG" = x; then
31442     PKG_CONFIG=""
31443   else
31444     case $cross_compiling:$ac_tool_warned in
31445 yes:)
31446 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
31447 whose name does not start with the host triplet.  If you think this
31448 configuration is useful to you, please write to autoconf@gnu.org." >&5
31449 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
31450 whose name does not start with the host triplet.  If you think this
31451 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
31452 ac_tool_warned=yes ;;
31453 esac
31454     PKG_CONFIG=$ac_pt_PKG_CONFIG
31455   fi
31456 else
31457   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
31458 fi
31459
31460 fi
31461 if test -n "$PKG_CONFIG"; then
31462         _pkg_min_version=0.9.0
31463         { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
31464 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
31465         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
31466                 { echo "$as_me:$LINENO: result: yes" >&5
31467 echo "${ECHO_T}yes" >&6; }
31468         else
31469                 { echo "$as_me:$LINENO: result: no" >&5
31470 echo "${ECHO_T}no" >&6; }
31471                 PKG_CONFIG=""
31472         fi
31473
31474 fi
31475
31476
31477 pkg_failed=no
31478 { echo "$as_me:$LINENO: checking for DIRECTFB" >&5
31479 echo $ECHO_N "checking for DIRECTFB... $ECHO_C" >&6; }
31480
31481 if test -n "$PKG_CONFIG"; then
31482     if test -n "$DIRECTFB_CFLAGS"; then
31483         pkg_cv_DIRECTFB_CFLAGS="$DIRECTFB_CFLAGS"
31484     else
31485         if test -n "$PKG_CONFIG" && \
31486     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"directfb >= 0.9.23\"") >&5
31487   ($PKG_CONFIG --exists --print-errors "directfb >= 0.9.23") 2>&5
31488   ac_status=$?
31489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31490   (exit $ac_status); }; then
31491   pkg_cv_DIRECTFB_CFLAGS=`$PKG_CONFIG --cflags "directfb >= 0.9.23" 2>/dev/null`
31492 else
31493   pkg_failed=yes
31494 fi
31495     fi
31496 else
31497         pkg_failed=untried
31498 fi
31499 if test -n "$PKG_CONFIG"; then
31500     if test -n "$DIRECTFB_LIBS"; then
31501         pkg_cv_DIRECTFB_LIBS="$DIRECTFB_LIBS"
31502     else
31503         if test -n "$PKG_CONFIG" && \
31504     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"directfb >= 0.9.23\"") >&5
31505   ($PKG_CONFIG --exists --print-errors "directfb >= 0.9.23") 2>&5
31506   ac_status=$?
31507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31508   (exit $ac_status); }; then
31509   pkg_cv_DIRECTFB_LIBS=`$PKG_CONFIG --libs "directfb >= 0.9.23" 2>/dev/null`
31510 else
31511   pkg_failed=yes
31512 fi
31513     fi
31514 else
31515         pkg_failed=untried
31516 fi
31517
31518
31519
31520 if test $pkg_failed = yes; then
31521
31522 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31523         _pkg_short_errors_supported=yes
31524 else
31525         _pkg_short_errors_supported=no
31526 fi
31527         if test $_pkg_short_errors_supported = yes; then
31528                 DIRECTFB_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "directfb >= 0.9.23"`
31529         else
31530                 DIRECTFB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "directfb >= 0.9.23"`
31531         fi
31532         # Put the nasty error message in config.log where it belongs
31533         echo "$DIRECTFB_PKG_ERRORS" >&5
31534
31535
31536                            { { echo "$as_me:$LINENO: error: DirectFB not found." >&5
31537 echo "$as_me: error: DirectFB not found." >&2;}
31538    { (exit 1); exit 1; }; }
31539
31540
31541 elif test $pkg_failed = untried; then
31542
31543                            { { echo "$as_me:$LINENO: error: DirectFB not found." >&5
31544 echo "$as_me: error: DirectFB not found." >&2;}
31545    { (exit 1); exit 1; }; }
31546
31547
31548 else
31549         DIRECTFB_CFLAGS=$pkg_cv_DIRECTFB_CFLAGS
31550         DIRECTFB_LIBS=$pkg_cv_DIRECTFB_LIBS
31551         { echo "$as_me:$LINENO: result: yes" >&5
31552 echo "${ECHO_T}yes" >&6; }
31553
31554                            wxUSE_UNIVERSAL="yes"
31555                            TOOLKIT_INCLUDE="$DIRECTFB_CFLAGS"
31556                            GUI_TK_LIBRARY="$DIRECTFB_LIBS"
31557                            TOOLKIT=DFB
31558                            GUIDIST=DFB_DIST
31559
31560 fi
31561     fi
31562
31563     if test "$wxUSE_MICROWIN" = 1; then
31564         { echo "$as_me:$LINENO: checking for MicroWindows" >&5
31565 echo $ECHO_N "checking for MicroWindows... $ECHO_C" >&6; }
31566         if test "x$MICROWINDOWS" = x ; then
31567             { echo "$as_me:$LINENO: result: not found" >&5
31568 echo "${ECHO_T}not found" >&6; }
31569             { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&5
31570 echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&2;}
31571    { (exit 1); exit 1; }; }
31572         else
31573             { echo "$as_me:$LINENO: result: $MICROWINDOWS" >&5
31574 echo "${ECHO_T}$MICROWINDOWS" >&6; }
31575         fi
31576
31577         if test -f $MICROWINDOWS/lib/libmwin.a; then
31578             { echo "$as_me:$LINENO: result: MicroWindows' libraries found." >&5
31579 echo "${ECHO_T}MicroWindows' libraries found." >&6; }
31580         else
31581             { { echo "$as_me:$LINENO: error: Cannot find MicroWindows libraries, make sure they are compiled." >&5
31582 echo "$as_me: error: Cannot find MicroWindows libraries, make sure they are compiled." >&2;}
31583    { (exit 1); exit 1; }; }
31584         fi
31585
31586         TOOLKIT_INCLUDE="-I$MICROWINDOWS/include"
31587         GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib"
31588
31589         wxUSE_UNIVERSAL="yes"
31590
31591         AFMINSTALL=afminstall
31592         TOOLKIT=MICROWIN
31593         GUIDIST=MICROWIN_DIST
31594
31595         TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1"
31596     fi
31597
31598         if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
31599                                 { echo "$as_me:$LINENO: checking for X" >&5
31600 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
31601
31602
31603 # Check whether --with-x was given.
31604 if test "${with_x+set}" = set; then
31605   withval=$with_x;
31606 fi
31607
31608 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
31609 if test "x$with_x" = xno; then
31610   # The user explicitly disabled X.
31611   have_x=disabled
31612 else
31613   case $x_includes,$x_libraries in #(
31614     *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
31615 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
31616    { (exit 1); exit 1; }; };; #(
31617     *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
31618   echo $ECHO_N "(cached) $ECHO_C" >&6
31619 else
31620   # One or both of the vars are not set, and there is no cached value.
31621 ac_x_includes=no ac_x_libraries=no
31622 rm -f -r conftest.dir
31623 if mkdir conftest.dir; then
31624   cd conftest.dir
31625   cat >Imakefile <<'_ACEOF'
31626 incroot:
31627         @echo incroot='${INCROOT}'
31628 usrlibdir:
31629         @echo usrlibdir='${USRLIBDIR}'
31630 libdir:
31631         @echo libdir='${LIBDIR}'
31632 _ACEOF
31633   if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
31634     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
31635     for ac_var in incroot usrlibdir libdir; do
31636       eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
31637     done
31638     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
31639     for ac_extension in a so sl; do
31640       if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
31641          test -f "$ac_im_libdir/libX11.$ac_extension"; then
31642         ac_im_usrlibdir=$ac_im_libdir; break
31643       fi
31644     done
31645     # Screen out bogus values from the imake configuration.  They are
31646     # bogus both because they are the default anyway, and because
31647     # using them would break gcc on systems where it needs fixed includes.
31648     case $ac_im_incroot in
31649         /usr/include) ac_x_includes= ;;
31650         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
31651     esac
31652     case $ac_im_usrlibdir in
31653         /usr/lib | /lib) ;;
31654         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
31655     esac
31656   fi
31657   cd ..
31658   rm -f -r conftest.dir
31659 fi
31660
31661 # Standard set of common directories for X headers.
31662 # Check X11 before X11Rn because it is often a symlink to the current release.
31663 ac_x_header_dirs='
31664 /usr/X11/include
31665 /usr/X11R6/include
31666 /usr/X11R5/include
31667 /usr/X11R4/include
31668
31669 /usr/include/X11
31670 /usr/include/X11R6
31671 /usr/include/X11R5
31672 /usr/include/X11R4
31673
31674 /usr/local/X11/include
31675 /usr/local/X11R6/include
31676 /usr/local/X11R5/include
31677 /usr/local/X11R4/include
31678
31679 /usr/local/include/X11
31680 /usr/local/include/X11R6
31681 /usr/local/include/X11R5
31682 /usr/local/include/X11R4
31683
31684 /usr/X386/include
31685 /usr/x386/include
31686 /usr/XFree86/include/X11
31687
31688 /usr/include
31689 /usr/local/include
31690 /usr/unsupported/include
31691 /usr/athena/include
31692 /usr/local/x11r5/include
31693 /usr/lpp/Xamples/include
31694
31695 /usr/openwin/include
31696 /usr/openwin/share/include'
31697
31698 if test "$ac_x_includes" = no; then
31699   # Guess where to find include files, by looking for Xlib.h.
31700   # First, try using that file with no special directory specified.
31701   cat >conftest.$ac_ext <<_ACEOF
31702 /* confdefs.h.  */
31703 _ACEOF
31704 cat confdefs.h >>conftest.$ac_ext
31705 cat >>conftest.$ac_ext <<_ACEOF
31706 /* end confdefs.h.  */
31707 #include <X11/Xlib.h>
31708 _ACEOF
31709 if { (ac_try="$ac_cpp conftest.$ac_ext"
31710 case "(($ac_try" in
31711   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31712   *) ac_try_echo=$ac_try;;
31713 esac
31714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31715   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31716   ac_status=$?
31717   grep -v '^ *+' conftest.er1 >conftest.err
31718   rm -f conftest.er1
31719   cat conftest.err >&5
31720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31721   (exit $ac_status); } >/dev/null && {
31722          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31723          test ! -s conftest.err
31724        }; then
31725   # We can compile using X headers with no special include directory.
31726 ac_x_includes=
31727 else
31728   echo "$as_me: failed program was:" >&5
31729 sed 's/^/| /' conftest.$ac_ext >&5
31730
31731   for ac_dir in $ac_x_header_dirs; do
31732   if test -r "$ac_dir/X11/Xlib.h"; then
31733     ac_x_includes=$ac_dir
31734     break
31735   fi
31736 done
31737 fi
31738
31739 rm -f conftest.err conftest.$ac_ext
31740 fi # $ac_x_includes = no
31741
31742 if test "$ac_x_libraries" = no; then
31743   # Check for the libraries.
31744   # See if we find them without any special options.
31745   # Don't add to $LIBS permanently.
31746   ac_save_LIBS=$LIBS
31747   LIBS="-lX11 $LIBS"
31748   cat >conftest.$ac_ext <<_ACEOF
31749 /* confdefs.h.  */
31750 _ACEOF
31751 cat confdefs.h >>conftest.$ac_ext
31752 cat >>conftest.$ac_ext <<_ACEOF
31753 /* end confdefs.h.  */
31754 #include <X11/Xlib.h>
31755 int
31756 main ()
31757 {
31758 XrmInitialize ()
31759   ;
31760   return 0;
31761 }
31762 _ACEOF
31763 rm -f conftest.$ac_objext conftest$ac_exeext
31764 if { (ac_try="$ac_link"
31765 case "(($ac_try" in
31766   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31767   *) ac_try_echo=$ac_try;;
31768 esac
31769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31770   (eval "$ac_link") 2>conftest.er1
31771   ac_status=$?
31772   grep -v '^ *+' conftest.er1 >conftest.err
31773   rm -f conftest.er1
31774   cat conftest.err >&5
31775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31776   (exit $ac_status); } && {
31777          test -z "$ac_c_werror_flag" ||
31778          test ! -s conftest.err
31779        } && test -s conftest$ac_exeext &&
31780        $as_test_x conftest$ac_exeext; then
31781   LIBS=$ac_save_LIBS
31782 # We can link X programs with no special library path.
31783 ac_x_libraries=
31784 else
31785   echo "$as_me: failed program was:" >&5
31786 sed 's/^/| /' conftest.$ac_ext >&5
31787
31788         LIBS=$ac_save_LIBS
31789 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
31790 do
31791   # Don't even attempt the hair of trying to link an X program!
31792   for ac_extension in a so sl; do
31793     if test -r "$ac_dir/libX11.$ac_extension"; then
31794       ac_x_libraries=$ac_dir
31795       break 2
31796     fi
31797   done
31798 done
31799 fi
31800
31801 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31802       conftest$ac_exeext conftest.$ac_ext
31803 fi # $ac_x_libraries = no
31804
31805 case $ac_x_includes,$ac_x_libraries in #(
31806   no,* | *,no | *\'*)
31807     # Didn't find X, or a directory has "'" in its name.
31808     ac_cv_have_x="have_x=no";; #(
31809   *)
31810     # Record where we found X for the cache.
31811     ac_cv_have_x="have_x=yes\
31812         ac_x_includes='$ac_x_includes'\
31813         ac_x_libraries='$ac_x_libraries'"
31814 esac
31815 fi
31816 ;; #(
31817     *) have_x=yes;;
31818   esac
31819   eval "$ac_cv_have_x"
31820 fi # $with_x != no
31821
31822 if test "$have_x" != yes; then
31823   { echo "$as_me:$LINENO: result: $have_x" >&5
31824 echo "${ECHO_T}$have_x" >&6; }
31825   no_x=yes
31826 else
31827   # If each of the values was on the command line, it overrides each guess.
31828   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
31829   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
31830   # Update the cache value to reflect the command line values.
31831   ac_cv_have_x="have_x=yes\
31832         ac_x_includes='$x_includes'\
31833         ac_x_libraries='$x_libraries'"
31834   { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
31835 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
31836 fi
31837
31838 if test "$no_x" = yes; then
31839   # Not all programs may use this symbol, but it does not hurt to define it.
31840
31841 cat >>confdefs.h <<\_ACEOF
31842 #define X_DISPLAY_MISSING 1
31843 _ACEOF
31844
31845   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
31846 else
31847   if test -n "$x_includes"; then
31848     X_CFLAGS="$X_CFLAGS -I$x_includes"
31849   fi
31850
31851   # It would also be nice to do this for all -L options, not just this one.
31852   if test -n "$x_libraries"; then
31853     X_LIBS="$X_LIBS -L$x_libraries"
31854     # For Solaris; some versions of Sun CC require a space after -R and
31855     # others require no space.  Words are not sufficient . . . .
31856     { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
31857 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; }
31858     ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
31859     ac_xsave_c_werror_flag=$ac_c_werror_flag
31860     ac_c_werror_flag=yes
31861     cat >conftest.$ac_ext <<_ACEOF
31862 /* confdefs.h.  */
31863 _ACEOF
31864 cat confdefs.h >>conftest.$ac_ext
31865 cat >>conftest.$ac_ext <<_ACEOF
31866 /* end confdefs.h.  */
31867
31868 int
31869 main ()
31870 {
31871
31872   ;
31873   return 0;
31874 }
31875 _ACEOF
31876 rm -f conftest.$ac_objext conftest$ac_exeext
31877 if { (ac_try="$ac_link"
31878 case "(($ac_try" in
31879   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31880   *) ac_try_echo=$ac_try;;
31881 esac
31882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31883   (eval "$ac_link") 2>conftest.er1
31884   ac_status=$?
31885   grep -v '^ *+' conftest.er1 >conftest.err
31886   rm -f conftest.er1
31887   cat conftest.err >&5
31888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31889   (exit $ac_status); } && {
31890          test -z "$ac_c_werror_flag" ||
31891          test ! -s conftest.err
31892        } && test -s conftest$ac_exeext &&
31893        $as_test_x conftest$ac_exeext; then
31894   { echo "$as_me:$LINENO: result: no" >&5
31895 echo "${ECHO_T}no" >&6; }
31896        X_LIBS="$X_LIBS -R$x_libraries"
31897 else
31898   echo "$as_me: failed program was:" >&5
31899 sed 's/^/| /' conftest.$ac_ext >&5
31900
31901         LIBS="$ac_xsave_LIBS -R $x_libraries"
31902        cat >conftest.$ac_ext <<_ACEOF
31903 /* confdefs.h.  */
31904 _ACEOF
31905 cat confdefs.h >>conftest.$ac_ext
31906 cat >>conftest.$ac_ext <<_ACEOF
31907 /* end confdefs.h.  */
31908
31909 int
31910 main ()
31911 {
31912
31913   ;
31914   return 0;
31915 }
31916 _ACEOF
31917 rm -f conftest.$ac_objext conftest$ac_exeext
31918 if { (ac_try="$ac_link"
31919 case "(($ac_try" in
31920   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31921   *) ac_try_echo=$ac_try;;
31922 esac
31923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31924   (eval "$ac_link") 2>conftest.er1
31925   ac_status=$?
31926   grep -v '^ *+' conftest.er1 >conftest.err
31927   rm -f conftest.er1
31928   cat conftest.err >&5
31929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31930   (exit $ac_status); } && {
31931          test -z "$ac_c_werror_flag" ||
31932          test ! -s conftest.err
31933        } && test -s conftest$ac_exeext &&
31934        $as_test_x conftest$ac_exeext; then
31935   { echo "$as_me:$LINENO: result: yes" >&5
31936 echo "${ECHO_T}yes" >&6; }
31937           X_LIBS="$X_LIBS -R $x_libraries"
31938 else
31939   echo "$as_me: failed program was:" >&5
31940 sed 's/^/| /' conftest.$ac_ext >&5
31941
31942         { echo "$as_me:$LINENO: result: neither works" >&5
31943 echo "${ECHO_T}neither works" >&6; }
31944 fi
31945
31946 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31947       conftest$ac_exeext conftest.$ac_ext
31948 fi
31949
31950 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31951       conftest$ac_exeext conftest.$ac_ext
31952     ac_c_werror_flag=$ac_xsave_c_werror_flag
31953     LIBS=$ac_xsave_LIBS
31954   fi
31955
31956   # Check for system-dependent libraries X programs must link with.
31957   # Do this before checking for the system-independent R6 libraries
31958   # (-lICE), since we may need -lsocket or whatever for X linking.
31959
31960   if test "$ISC" = yes; then
31961     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
31962   else
31963     # Martyn Johnson says this is needed for Ultrix, if the X
31964     # libraries were built with DECnet support.  And Karl Berry says
31965     # the Alpha needs dnet_stub (dnet does not exist).
31966     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
31967     cat >conftest.$ac_ext <<_ACEOF
31968 /* confdefs.h.  */
31969 _ACEOF
31970 cat confdefs.h >>conftest.$ac_ext
31971 cat >>conftest.$ac_ext <<_ACEOF
31972 /* end confdefs.h.  */
31973
31974 /* Override any GCC internal prototype to avoid an error.
31975    Use char because int might match the return type of a GCC
31976    builtin and then its argument prototype would still apply.  */
31977 #ifdef __cplusplus
31978 extern "C"
31979 #endif
31980 char XOpenDisplay ();
31981 int
31982 main ()
31983 {
31984 return XOpenDisplay ();
31985   ;
31986   return 0;
31987 }
31988 _ACEOF
31989 rm -f conftest.$ac_objext conftest$ac_exeext
31990 if { (ac_try="$ac_link"
31991 case "(($ac_try" in
31992   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31993   *) ac_try_echo=$ac_try;;
31994 esac
31995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31996   (eval "$ac_link") 2>conftest.er1
31997   ac_status=$?
31998   grep -v '^ *+' conftest.er1 >conftest.err
31999   rm -f conftest.er1
32000   cat conftest.err >&5
32001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32002   (exit $ac_status); } && {
32003          test -z "$ac_c_werror_flag" ||
32004          test ! -s conftest.err
32005        } && test -s conftest$ac_exeext &&
32006        $as_test_x conftest$ac_exeext; then
32007   :
32008 else
32009   echo "$as_me: failed program was:" >&5
32010 sed 's/^/| /' conftest.$ac_ext >&5
32011
32012         { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
32013 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
32014 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
32015   echo $ECHO_N "(cached) $ECHO_C" >&6
32016 else
32017   ac_check_lib_save_LIBS=$LIBS
32018 LIBS="-ldnet  $LIBS"
32019 cat >conftest.$ac_ext <<_ACEOF
32020 /* confdefs.h.  */
32021 _ACEOF
32022 cat confdefs.h >>conftest.$ac_ext
32023 cat >>conftest.$ac_ext <<_ACEOF
32024 /* end confdefs.h.  */
32025
32026 /* Override any GCC internal prototype to avoid an error.
32027    Use char because int might match the return type of a GCC
32028    builtin and then its argument prototype would still apply.  */
32029 #ifdef __cplusplus
32030 extern "C"
32031 #endif
32032 char dnet_ntoa ();
32033 int
32034 main ()
32035 {
32036 return dnet_ntoa ();
32037   ;
32038   return 0;
32039 }
32040 _ACEOF
32041 rm -f conftest.$ac_objext conftest$ac_exeext
32042 if { (ac_try="$ac_link"
32043 case "(($ac_try" in
32044   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32045   *) ac_try_echo=$ac_try;;
32046 esac
32047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32048   (eval "$ac_link") 2>conftest.er1
32049   ac_status=$?
32050   grep -v '^ *+' conftest.er1 >conftest.err
32051   rm -f conftest.er1
32052   cat conftest.err >&5
32053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32054   (exit $ac_status); } && {
32055          test -z "$ac_c_werror_flag" ||
32056          test ! -s conftest.err
32057        } && test -s conftest$ac_exeext &&
32058        $as_test_x conftest$ac_exeext; then
32059   ac_cv_lib_dnet_dnet_ntoa=yes
32060 else
32061   echo "$as_me: failed program was:" >&5
32062 sed 's/^/| /' conftest.$ac_ext >&5
32063
32064         ac_cv_lib_dnet_dnet_ntoa=no
32065 fi
32066
32067 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32068       conftest$ac_exeext conftest.$ac_ext
32069 LIBS=$ac_check_lib_save_LIBS
32070 fi
32071 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
32072 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
32073 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
32074   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
32075 fi
32076
32077     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
32078       { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
32079 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; }
32080 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
32081   echo $ECHO_N "(cached) $ECHO_C" >&6
32082 else
32083   ac_check_lib_save_LIBS=$LIBS
32084 LIBS="-ldnet_stub  $LIBS"
32085 cat >conftest.$ac_ext <<_ACEOF
32086 /* confdefs.h.  */
32087 _ACEOF
32088 cat confdefs.h >>conftest.$ac_ext
32089 cat >>conftest.$ac_ext <<_ACEOF
32090 /* end confdefs.h.  */
32091
32092 /* Override any GCC internal prototype to avoid an error.
32093    Use char because int might match the return type of a GCC
32094    builtin and then its argument prototype would still apply.  */
32095 #ifdef __cplusplus
32096 extern "C"
32097 #endif
32098 char dnet_ntoa ();
32099 int
32100 main ()
32101 {
32102 return dnet_ntoa ();
32103   ;
32104   return 0;
32105 }
32106 _ACEOF
32107 rm -f conftest.$ac_objext conftest$ac_exeext
32108 if { (ac_try="$ac_link"
32109 case "(($ac_try" in
32110   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32111   *) ac_try_echo=$ac_try;;
32112 esac
32113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32114   (eval "$ac_link") 2>conftest.er1
32115   ac_status=$?
32116   grep -v '^ *+' conftest.er1 >conftest.err
32117   rm -f conftest.er1
32118   cat conftest.err >&5
32119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32120   (exit $ac_status); } && {
32121          test -z "$ac_c_werror_flag" ||
32122          test ! -s conftest.err
32123        } && test -s conftest$ac_exeext &&
32124        $as_test_x conftest$ac_exeext; then
32125   ac_cv_lib_dnet_stub_dnet_ntoa=yes
32126 else
32127   echo "$as_me: failed program was:" >&5
32128 sed 's/^/| /' conftest.$ac_ext >&5
32129
32130         ac_cv_lib_dnet_stub_dnet_ntoa=no
32131 fi
32132
32133 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32134       conftest$ac_exeext conftest.$ac_ext
32135 LIBS=$ac_check_lib_save_LIBS
32136 fi
32137 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
32138 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
32139 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
32140   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
32141 fi
32142
32143     fi
32144 fi
32145
32146 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32147       conftest$ac_exeext conftest.$ac_ext
32148     LIBS="$ac_xsave_LIBS"
32149
32150     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
32151     # to get the SysV transport functions.
32152     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
32153     # needs -lnsl.
32154     # The nsl library prevents programs from opening the X display
32155     # on Irix 5.2, according to T.E. Dickey.
32156     # The functions gethostbyname, getservbyname, and inet_addr are
32157     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
32158     { echo "$as_me:$LINENO: checking for gethostbyname" >&5
32159 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
32160 if test "${ac_cv_func_gethostbyname+set}" = set; then
32161   echo $ECHO_N "(cached) $ECHO_C" >&6
32162 else
32163   cat >conftest.$ac_ext <<_ACEOF
32164 /* confdefs.h.  */
32165 _ACEOF
32166 cat confdefs.h >>conftest.$ac_ext
32167 cat >>conftest.$ac_ext <<_ACEOF
32168 /* end confdefs.h.  */
32169 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
32170    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32171 #define gethostbyname innocuous_gethostbyname
32172
32173 /* System header to define __stub macros and hopefully few prototypes,
32174     which can conflict with char gethostbyname (); below.
32175     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32176     <limits.h> exists even on freestanding compilers.  */
32177
32178 #ifdef __STDC__
32179 # include <limits.h>
32180 #else
32181 # include <assert.h>
32182 #endif
32183
32184 #undef gethostbyname
32185
32186 /* Override any GCC internal prototype to avoid an error.
32187    Use char because int might match the return type of a GCC
32188    builtin and then its argument prototype would still apply.  */
32189 #ifdef __cplusplus
32190 extern "C"
32191 #endif
32192 char gethostbyname ();
32193 /* The GNU C library defines this for functions which it implements
32194     to always fail with ENOSYS.  Some functions are actually named
32195     something starting with __ and the normal name is an alias.  */
32196 #if defined __stub_gethostbyname || defined __stub___gethostbyname
32197 choke me
32198 #endif
32199
32200 int
32201 main ()
32202 {
32203 return gethostbyname ();
32204   ;
32205   return 0;
32206 }
32207 _ACEOF
32208 rm -f conftest.$ac_objext conftest$ac_exeext
32209 if { (ac_try="$ac_link"
32210 case "(($ac_try" in
32211   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32212   *) ac_try_echo=$ac_try;;
32213 esac
32214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32215   (eval "$ac_link") 2>conftest.er1
32216   ac_status=$?
32217   grep -v '^ *+' conftest.er1 >conftest.err
32218   rm -f conftest.er1
32219   cat conftest.err >&5
32220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32221   (exit $ac_status); } && {
32222          test -z "$ac_c_werror_flag" ||
32223          test ! -s conftest.err
32224        } && test -s conftest$ac_exeext &&
32225        $as_test_x conftest$ac_exeext; then
32226   ac_cv_func_gethostbyname=yes
32227 else
32228   echo "$as_me: failed program was:" >&5
32229 sed 's/^/| /' conftest.$ac_ext >&5
32230
32231         ac_cv_func_gethostbyname=no
32232 fi
32233
32234 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32235       conftest$ac_exeext conftest.$ac_ext
32236 fi
32237 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
32238 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
32239
32240     if test $ac_cv_func_gethostbyname = no; then
32241       { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
32242 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
32243 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
32244   echo $ECHO_N "(cached) $ECHO_C" >&6
32245 else
32246   ac_check_lib_save_LIBS=$LIBS
32247 LIBS="-lnsl  $LIBS"
32248 cat >conftest.$ac_ext <<_ACEOF
32249 /* confdefs.h.  */
32250 _ACEOF
32251 cat confdefs.h >>conftest.$ac_ext
32252 cat >>conftest.$ac_ext <<_ACEOF
32253 /* end confdefs.h.  */
32254
32255 /* Override any GCC internal prototype to avoid an error.
32256    Use char because int might match the return type of a GCC
32257    builtin and then its argument prototype would still apply.  */
32258 #ifdef __cplusplus
32259 extern "C"
32260 #endif
32261 char gethostbyname ();
32262 int
32263 main ()
32264 {
32265 return gethostbyname ();
32266   ;
32267   return 0;
32268 }
32269 _ACEOF
32270 rm -f conftest.$ac_objext conftest$ac_exeext
32271 if { (ac_try="$ac_link"
32272 case "(($ac_try" in
32273   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32274   *) ac_try_echo=$ac_try;;
32275 esac
32276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32277   (eval "$ac_link") 2>conftest.er1
32278   ac_status=$?
32279   grep -v '^ *+' conftest.er1 >conftest.err
32280   rm -f conftest.er1
32281   cat conftest.err >&5
32282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32283   (exit $ac_status); } && {
32284          test -z "$ac_c_werror_flag" ||
32285          test ! -s conftest.err
32286        } && test -s conftest$ac_exeext &&
32287        $as_test_x conftest$ac_exeext; then
32288   ac_cv_lib_nsl_gethostbyname=yes
32289 else
32290   echo "$as_me: failed program was:" >&5
32291 sed 's/^/| /' conftest.$ac_ext >&5
32292
32293         ac_cv_lib_nsl_gethostbyname=no
32294 fi
32295
32296 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32297       conftest$ac_exeext conftest.$ac_ext
32298 LIBS=$ac_check_lib_save_LIBS
32299 fi
32300 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
32301 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
32302 if test $ac_cv_lib_nsl_gethostbyname = yes; then
32303   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
32304 fi
32305
32306       if test $ac_cv_lib_nsl_gethostbyname = no; then
32307         { echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
32308 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; }
32309 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
32310   echo $ECHO_N "(cached) $ECHO_C" >&6
32311 else
32312   ac_check_lib_save_LIBS=$LIBS
32313 LIBS="-lbsd  $LIBS"
32314 cat >conftest.$ac_ext <<_ACEOF
32315 /* confdefs.h.  */
32316 _ACEOF
32317 cat confdefs.h >>conftest.$ac_ext
32318 cat >>conftest.$ac_ext <<_ACEOF
32319 /* end confdefs.h.  */
32320
32321 /* Override any GCC internal prototype to avoid an error.
32322    Use char because int might match the return type of a GCC
32323    builtin and then its argument prototype would still apply.  */
32324 #ifdef __cplusplus
32325 extern "C"
32326 #endif
32327 char gethostbyname ();
32328 int
32329 main ()
32330 {
32331 return gethostbyname ();
32332   ;
32333   return 0;
32334 }
32335 _ACEOF
32336 rm -f conftest.$ac_objext conftest$ac_exeext
32337 if { (ac_try="$ac_link"
32338 case "(($ac_try" in
32339   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32340   *) ac_try_echo=$ac_try;;
32341 esac
32342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32343   (eval "$ac_link") 2>conftest.er1
32344   ac_status=$?
32345   grep -v '^ *+' conftest.er1 >conftest.err
32346   rm -f conftest.er1
32347   cat conftest.err >&5
32348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32349   (exit $ac_status); } && {
32350          test -z "$ac_c_werror_flag" ||
32351          test ! -s conftest.err
32352        } && test -s conftest$ac_exeext &&
32353        $as_test_x conftest$ac_exeext; then
32354   ac_cv_lib_bsd_gethostbyname=yes
32355 else
32356   echo "$as_me: failed program was:" >&5
32357 sed 's/^/| /' conftest.$ac_ext >&5
32358
32359         ac_cv_lib_bsd_gethostbyname=no
32360 fi
32361
32362 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32363       conftest$ac_exeext conftest.$ac_ext
32364 LIBS=$ac_check_lib_save_LIBS
32365 fi
32366 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
32367 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; }
32368 if test $ac_cv_lib_bsd_gethostbyname = yes; then
32369   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
32370 fi
32371
32372       fi
32373     fi
32374
32375     # lieder@skyler.mavd.honeywell.com says without -lsocket,
32376     # socket/setsockopt and other routines are undefined under SCO ODT
32377     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
32378     # on later versions), says Simon Leinen: it contains gethostby*
32379     # variants that don't use the name server (or something).  -lsocket
32380     # must be given before -lnsl if both are needed.  We assume that
32381     # if connect needs -lnsl, so does gethostbyname.
32382     { echo "$as_me:$LINENO: checking for connect" >&5
32383 echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
32384 if test "${ac_cv_func_connect+set}" = set; then
32385   echo $ECHO_N "(cached) $ECHO_C" >&6
32386 else
32387   cat >conftest.$ac_ext <<_ACEOF
32388 /* confdefs.h.  */
32389 _ACEOF
32390 cat confdefs.h >>conftest.$ac_ext
32391 cat >>conftest.$ac_ext <<_ACEOF
32392 /* end confdefs.h.  */
32393 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
32394    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32395 #define connect innocuous_connect
32396
32397 /* System header to define __stub macros and hopefully few prototypes,
32398     which can conflict with char connect (); below.
32399     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32400     <limits.h> exists even on freestanding compilers.  */
32401
32402 #ifdef __STDC__
32403 # include <limits.h>
32404 #else
32405 # include <assert.h>
32406 #endif
32407
32408 #undef connect
32409
32410 /* Override any GCC internal prototype to avoid an error.
32411    Use char because int might match the return type of a GCC
32412    builtin and then its argument prototype would still apply.  */
32413 #ifdef __cplusplus
32414 extern "C"
32415 #endif
32416 char connect ();
32417 /* The GNU C library defines this for functions which it implements
32418     to always fail with ENOSYS.  Some functions are actually named
32419     something starting with __ and the normal name is an alias.  */
32420 #if defined __stub_connect || defined __stub___connect
32421 choke me
32422 #endif
32423
32424 int
32425 main ()
32426 {
32427 return connect ();
32428   ;
32429   return 0;
32430 }
32431 _ACEOF
32432 rm -f conftest.$ac_objext conftest$ac_exeext
32433 if { (ac_try="$ac_link"
32434 case "(($ac_try" in
32435   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32436   *) ac_try_echo=$ac_try;;
32437 esac
32438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32439   (eval "$ac_link") 2>conftest.er1
32440   ac_status=$?
32441   grep -v '^ *+' conftest.er1 >conftest.err
32442   rm -f conftest.er1
32443   cat conftest.err >&5
32444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32445   (exit $ac_status); } && {
32446          test -z "$ac_c_werror_flag" ||
32447          test ! -s conftest.err
32448        } && test -s conftest$ac_exeext &&
32449        $as_test_x conftest$ac_exeext; then
32450   ac_cv_func_connect=yes
32451 else
32452   echo "$as_me: failed program was:" >&5
32453 sed 's/^/| /' conftest.$ac_ext >&5
32454
32455         ac_cv_func_connect=no
32456 fi
32457
32458 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32459       conftest$ac_exeext conftest.$ac_ext
32460 fi
32461 { echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
32462 echo "${ECHO_T}$ac_cv_func_connect" >&6; }
32463
32464     if test $ac_cv_func_connect = no; then
32465       { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
32466 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
32467 if test "${ac_cv_lib_socket_connect+set}" = set; then
32468   echo $ECHO_N "(cached) $ECHO_C" >&6
32469 else
32470   ac_check_lib_save_LIBS=$LIBS
32471 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
32472 cat >conftest.$ac_ext <<_ACEOF
32473 /* confdefs.h.  */
32474 _ACEOF
32475 cat confdefs.h >>conftest.$ac_ext
32476 cat >>conftest.$ac_ext <<_ACEOF
32477 /* end confdefs.h.  */
32478
32479 /* Override any GCC internal prototype to avoid an error.
32480    Use char because int might match the return type of a GCC
32481    builtin and then its argument prototype would still apply.  */
32482 #ifdef __cplusplus
32483 extern "C"
32484 #endif
32485 char connect ();
32486 int
32487 main ()
32488 {
32489 return connect ();
32490   ;
32491   return 0;
32492 }
32493 _ACEOF
32494 rm -f conftest.$ac_objext conftest$ac_exeext
32495 if { (ac_try="$ac_link"
32496 case "(($ac_try" in
32497   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32498   *) ac_try_echo=$ac_try;;
32499 esac
32500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32501   (eval "$ac_link") 2>conftest.er1
32502   ac_status=$?
32503   grep -v '^ *+' conftest.er1 >conftest.err
32504   rm -f conftest.er1
32505   cat conftest.err >&5
32506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32507   (exit $ac_status); } && {
32508          test -z "$ac_c_werror_flag" ||
32509          test ! -s conftest.err
32510        } && test -s conftest$ac_exeext &&
32511        $as_test_x conftest$ac_exeext; then
32512   ac_cv_lib_socket_connect=yes
32513 else
32514   echo "$as_me: failed program was:" >&5
32515 sed 's/^/| /' conftest.$ac_ext >&5
32516
32517         ac_cv_lib_socket_connect=no
32518 fi
32519
32520 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32521       conftest$ac_exeext conftest.$ac_ext
32522 LIBS=$ac_check_lib_save_LIBS
32523 fi
32524 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
32525 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
32526 if test $ac_cv_lib_socket_connect = yes; then
32527   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
32528 fi
32529
32530     fi
32531
32532     # Guillermo Gomez says -lposix is necessary on A/UX.
32533     { echo "$as_me:$LINENO: checking for remove" >&5
32534 echo $ECHO_N "checking for remove... $ECHO_C" >&6; }
32535 if test "${ac_cv_func_remove+set}" = set; then
32536   echo $ECHO_N "(cached) $ECHO_C" >&6
32537 else
32538   cat >conftest.$ac_ext <<_ACEOF
32539 /* confdefs.h.  */
32540 _ACEOF
32541 cat confdefs.h >>conftest.$ac_ext
32542 cat >>conftest.$ac_ext <<_ACEOF
32543 /* end confdefs.h.  */
32544 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
32545    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32546 #define remove innocuous_remove
32547
32548 /* System header to define __stub macros and hopefully few prototypes,
32549     which can conflict with char remove (); below.
32550     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32551     <limits.h> exists even on freestanding compilers.  */
32552
32553 #ifdef __STDC__
32554 # include <limits.h>
32555 #else
32556 # include <assert.h>
32557 #endif
32558
32559 #undef remove
32560
32561 /* Override any GCC internal prototype to avoid an error.
32562    Use char because int might match the return type of a GCC
32563    builtin and then its argument prototype would still apply.  */
32564 #ifdef __cplusplus
32565 extern "C"
32566 #endif
32567 char remove ();
32568 /* The GNU C library defines this for functions which it implements
32569     to always fail with ENOSYS.  Some functions are actually named
32570     something starting with __ and the normal name is an alias.  */
32571 #if defined __stub_remove || defined __stub___remove
32572 choke me
32573 #endif
32574
32575 int
32576 main ()
32577 {
32578 return remove ();
32579   ;
32580   return 0;
32581 }
32582 _ACEOF
32583 rm -f conftest.$ac_objext conftest$ac_exeext
32584 if { (ac_try="$ac_link"
32585 case "(($ac_try" in
32586   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32587   *) ac_try_echo=$ac_try;;
32588 esac
32589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32590   (eval "$ac_link") 2>conftest.er1
32591   ac_status=$?
32592   grep -v '^ *+' conftest.er1 >conftest.err
32593   rm -f conftest.er1
32594   cat conftest.err >&5
32595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32596   (exit $ac_status); } && {
32597          test -z "$ac_c_werror_flag" ||
32598          test ! -s conftest.err
32599        } && test -s conftest$ac_exeext &&
32600        $as_test_x conftest$ac_exeext; then
32601   ac_cv_func_remove=yes
32602 else
32603   echo "$as_me: failed program was:" >&5
32604 sed 's/^/| /' conftest.$ac_ext >&5
32605
32606         ac_cv_func_remove=no
32607 fi
32608
32609 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32610       conftest$ac_exeext conftest.$ac_ext
32611 fi
32612 { echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
32613 echo "${ECHO_T}$ac_cv_func_remove" >&6; }
32614
32615     if test $ac_cv_func_remove = no; then
32616       { echo "$as_me:$LINENO: checking for remove in -lposix" >&5
32617 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; }
32618 if test "${ac_cv_lib_posix_remove+set}" = set; then
32619   echo $ECHO_N "(cached) $ECHO_C" >&6
32620 else
32621   ac_check_lib_save_LIBS=$LIBS
32622 LIBS="-lposix  $LIBS"
32623 cat >conftest.$ac_ext <<_ACEOF
32624 /* confdefs.h.  */
32625 _ACEOF
32626 cat confdefs.h >>conftest.$ac_ext
32627 cat >>conftest.$ac_ext <<_ACEOF
32628 /* end confdefs.h.  */
32629
32630 /* Override any GCC internal prototype to avoid an error.
32631    Use char because int might match the return type of a GCC
32632    builtin and then its argument prototype would still apply.  */
32633 #ifdef __cplusplus
32634 extern "C"
32635 #endif
32636 char remove ();
32637 int
32638 main ()
32639 {
32640 return remove ();
32641   ;
32642   return 0;
32643 }
32644 _ACEOF
32645 rm -f conftest.$ac_objext conftest$ac_exeext
32646 if { (ac_try="$ac_link"
32647 case "(($ac_try" in
32648   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32649   *) ac_try_echo=$ac_try;;
32650 esac
32651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32652   (eval "$ac_link") 2>conftest.er1
32653   ac_status=$?
32654   grep -v '^ *+' conftest.er1 >conftest.err
32655   rm -f conftest.er1
32656   cat conftest.err >&5
32657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32658   (exit $ac_status); } && {
32659          test -z "$ac_c_werror_flag" ||
32660          test ! -s conftest.err
32661        } && test -s conftest$ac_exeext &&
32662        $as_test_x conftest$ac_exeext; then
32663   ac_cv_lib_posix_remove=yes
32664 else
32665   echo "$as_me: failed program was:" >&5
32666 sed 's/^/| /' conftest.$ac_ext >&5
32667
32668         ac_cv_lib_posix_remove=no
32669 fi
32670
32671 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32672       conftest$ac_exeext conftest.$ac_ext
32673 LIBS=$ac_check_lib_save_LIBS
32674 fi
32675 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
32676 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; }
32677 if test $ac_cv_lib_posix_remove = yes; then
32678   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
32679 fi
32680
32681     fi
32682
32683     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
32684     { echo "$as_me:$LINENO: checking for shmat" >&5
32685 echo $ECHO_N "checking for shmat... $ECHO_C" >&6; }
32686 if test "${ac_cv_func_shmat+set}" = set; then
32687   echo $ECHO_N "(cached) $ECHO_C" >&6
32688 else
32689   cat >conftest.$ac_ext <<_ACEOF
32690 /* confdefs.h.  */
32691 _ACEOF
32692 cat confdefs.h >>conftest.$ac_ext
32693 cat >>conftest.$ac_ext <<_ACEOF
32694 /* end confdefs.h.  */
32695 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
32696    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32697 #define shmat innocuous_shmat
32698
32699 /* System header to define __stub macros and hopefully few prototypes,
32700     which can conflict with char shmat (); below.
32701     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32702     <limits.h> exists even on freestanding compilers.  */
32703
32704 #ifdef __STDC__
32705 # include <limits.h>
32706 #else
32707 # include <assert.h>
32708 #endif
32709
32710 #undef shmat
32711
32712 /* Override any GCC internal prototype to avoid an error.
32713    Use char because int might match the return type of a GCC
32714    builtin and then its argument prototype would still apply.  */
32715 #ifdef __cplusplus
32716 extern "C"
32717 #endif
32718 char shmat ();
32719 /* The GNU C library defines this for functions which it implements
32720     to always fail with ENOSYS.  Some functions are actually named
32721     something starting with __ and the normal name is an alias.  */
32722 #if defined __stub_shmat || defined __stub___shmat
32723 choke me
32724 #endif
32725
32726 int
32727 main ()
32728 {
32729 return shmat ();
32730   ;
32731   return 0;
32732 }
32733 _ACEOF
32734 rm -f conftest.$ac_objext conftest$ac_exeext
32735 if { (ac_try="$ac_link"
32736 case "(($ac_try" in
32737   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32738   *) ac_try_echo=$ac_try;;
32739 esac
32740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32741   (eval "$ac_link") 2>conftest.er1
32742   ac_status=$?
32743   grep -v '^ *+' conftest.er1 >conftest.err
32744   rm -f conftest.er1
32745   cat conftest.err >&5
32746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32747   (exit $ac_status); } && {
32748          test -z "$ac_c_werror_flag" ||
32749          test ! -s conftest.err
32750        } && test -s conftest$ac_exeext &&
32751        $as_test_x conftest$ac_exeext; then
32752   ac_cv_func_shmat=yes
32753 else
32754   echo "$as_me: failed program was:" >&5
32755 sed 's/^/| /' conftest.$ac_ext >&5
32756
32757         ac_cv_func_shmat=no
32758 fi
32759
32760 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32761       conftest$ac_exeext conftest.$ac_ext
32762 fi
32763 { echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
32764 echo "${ECHO_T}$ac_cv_func_shmat" >&6; }
32765
32766     if test $ac_cv_func_shmat = no; then
32767       { echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
32768 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; }
32769 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
32770   echo $ECHO_N "(cached) $ECHO_C" >&6
32771 else
32772   ac_check_lib_save_LIBS=$LIBS
32773 LIBS="-lipc  $LIBS"
32774 cat >conftest.$ac_ext <<_ACEOF
32775 /* confdefs.h.  */
32776 _ACEOF
32777 cat confdefs.h >>conftest.$ac_ext
32778 cat >>conftest.$ac_ext <<_ACEOF
32779 /* end confdefs.h.  */
32780
32781 /* Override any GCC internal prototype to avoid an error.
32782    Use char because int might match the return type of a GCC
32783    builtin and then its argument prototype would still apply.  */
32784 #ifdef __cplusplus
32785 extern "C"
32786 #endif
32787 char shmat ();
32788 int
32789 main ()
32790 {
32791 return shmat ();
32792   ;
32793   return 0;
32794 }
32795 _ACEOF
32796 rm -f conftest.$ac_objext conftest$ac_exeext
32797 if { (ac_try="$ac_link"
32798 case "(($ac_try" in
32799   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32800   *) ac_try_echo=$ac_try;;
32801 esac
32802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32803   (eval "$ac_link") 2>conftest.er1
32804   ac_status=$?
32805   grep -v '^ *+' conftest.er1 >conftest.err
32806   rm -f conftest.er1
32807   cat conftest.err >&5
32808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32809   (exit $ac_status); } && {
32810          test -z "$ac_c_werror_flag" ||
32811          test ! -s conftest.err
32812        } && test -s conftest$ac_exeext &&
32813        $as_test_x conftest$ac_exeext; then
32814   ac_cv_lib_ipc_shmat=yes
32815 else
32816   echo "$as_me: failed program was:" >&5
32817 sed 's/^/| /' conftest.$ac_ext >&5
32818
32819         ac_cv_lib_ipc_shmat=no
32820 fi
32821
32822 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32823       conftest$ac_exeext conftest.$ac_ext
32824 LIBS=$ac_check_lib_save_LIBS
32825 fi
32826 { echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
32827 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; }
32828 if test $ac_cv_lib_ipc_shmat = yes; then
32829   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
32830 fi
32831
32832     fi
32833   fi
32834
32835   # Check for libraries that X11R6 Xt/Xaw programs need.
32836   ac_save_LDFLAGS=$LDFLAGS
32837   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
32838   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
32839   # check for ICE first), but we must link in the order -lSM -lICE or
32840   # we get undefined symbols.  So assume we have SM if we have ICE.
32841   # These have to be linked with before -lX11, unlike the other
32842   # libraries we check for below, so use a different variable.
32843   # John Interrante, Karl Berry
32844   { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
32845 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; }
32846 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
32847   echo $ECHO_N "(cached) $ECHO_C" >&6
32848 else
32849   ac_check_lib_save_LIBS=$LIBS
32850 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
32851 cat >conftest.$ac_ext <<_ACEOF
32852 /* confdefs.h.  */
32853 _ACEOF
32854 cat confdefs.h >>conftest.$ac_ext
32855 cat >>conftest.$ac_ext <<_ACEOF
32856 /* end confdefs.h.  */
32857
32858 /* Override any GCC internal prototype to avoid an error.
32859    Use char because int might match the return type of a GCC
32860    builtin and then its argument prototype would still apply.  */
32861 #ifdef __cplusplus
32862 extern "C"
32863 #endif
32864 char IceConnectionNumber ();
32865 int
32866 main ()
32867 {
32868 return IceConnectionNumber ();
32869   ;
32870   return 0;
32871 }
32872 _ACEOF
32873 rm -f conftest.$ac_objext conftest$ac_exeext
32874 if { (ac_try="$ac_link"
32875 case "(($ac_try" in
32876   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32877   *) ac_try_echo=$ac_try;;
32878 esac
32879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32880   (eval "$ac_link") 2>conftest.er1
32881   ac_status=$?
32882   grep -v '^ *+' conftest.er1 >conftest.err
32883   rm -f conftest.er1
32884   cat conftest.err >&5
32885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32886   (exit $ac_status); } && {
32887          test -z "$ac_c_werror_flag" ||
32888          test ! -s conftest.err
32889        } && test -s conftest$ac_exeext &&
32890        $as_test_x conftest$ac_exeext; then
32891   ac_cv_lib_ICE_IceConnectionNumber=yes
32892 else
32893   echo "$as_me: failed program was:" >&5
32894 sed 's/^/| /' conftest.$ac_ext >&5
32895
32896         ac_cv_lib_ICE_IceConnectionNumber=no
32897 fi
32898
32899 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32900       conftest$ac_exeext conftest.$ac_ext
32901 LIBS=$ac_check_lib_save_LIBS
32902 fi
32903 { echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
32904 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
32905 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
32906   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
32907 fi
32908
32909   LDFLAGS=$ac_save_LDFLAGS
32910
32911 fi
32912
32913
32914         if test "$no_x" = "yes"; then
32915           { { echo "$as_me:$LINENO: error: X11 not found, please use --x-includes and/or --x-libraries options (see config.log for details)" >&5
32916 echo "$as_me: error: X11 not found, please use --x-includes and/or --x-libraries options (see config.log for details)" >&2;}
32917    { (exit 1); exit 1; }; }
32918         fi
32919
32920                                 GUI_TK_LIBRARY=`echo $X_LIBS | sed 's/ -LNONE//' | sed 's/ -RNONE//'`
32921         TOOLKIT_INCLUDE=`echo $X_CFLAGS | sed 's/ -INONE//'`
32922         AFMINSTALL=afminstall
32923         COMPILED_X_PROGRAM=0
32924
32925     fi
32926
32927     if test "$wxUSE_X11" = 1; then
32928         if test "$wxUSE_NANOX" = "yes"; then
32929             { echo "$as_me:$LINENO: checking for MicroWindows/NanoX distribution" >&5
32930 echo $ECHO_N "checking for MicroWindows/NanoX distribution... $ECHO_C" >&6; }
32931             if test "x$MICROWIN" = x ; then
32932                 { echo "$as_me:$LINENO: result: not found" >&5
32933 echo "${ECHO_T}not found" >&6; }
32934                 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&5
32935 echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&2;}
32936    { (exit 1); exit 1; }; }
32937             else
32938                 { echo "$as_me:$LINENO: result: $MICROWIN" >&5
32939 echo "${ECHO_T}$MICROWIN" >&6; }
32940                 cat >>confdefs.h <<\_ACEOF
32941 #define wxUSE_NANOX 1
32942 _ACEOF
32943
32944             fi
32945         fi
32946
32947         if test "$wxUSE_UNICODE" = "yes"; then
32948
32949
32950 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
32951         if test -n "$ac_tool_prefix"; then
32952   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
32953 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
32954 { echo "$as_me:$LINENO: checking for $ac_word" >&5
32955 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
32956 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
32957   echo $ECHO_N "(cached) $ECHO_C" >&6
32958 else
32959   case $PKG_CONFIG in
32960   [\\/]* | ?:[\\/]*)
32961   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
32962   ;;
32963   *)
32964   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32965 for as_dir in $PATH
32966 do
32967   IFS=$as_save_IFS
32968   test -z "$as_dir" && as_dir=.
32969   for ac_exec_ext in '' $ac_executable_extensions; do
32970   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32971     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
32972     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
32973     break 2
32974   fi
32975 done
32976 done
32977 IFS=$as_save_IFS
32978
32979   ;;
32980 esac
32981 fi
32982 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
32983 if test -n "$PKG_CONFIG"; then
32984   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
32985 echo "${ECHO_T}$PKG_CONFIG" >&6; }
32986 else
32987   { echo "$as_me:$LINENO: result: no" >&5
32988 echo "${ECHO_T}no" >&6; }
32989 fi
32990
32991
32992 fi
32993 if test -z "$ac_cv_path_PKG_CONFIG"; then
32994   ac_pt_PKG_CONFIG=$PKG_CONFIG
32995   # Extract the first word of "pkg-config", so it can be a program name with args.
32996 set dummy pkg-config; ac_word=$2
32997 { echo "$as_me:$LINENO: checking for $ac_word" >&5
32998 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
32999 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
33000   echo $ECHO_N "(cached) $ECHO_C" >&6
33001 else
33002   case $ac_pt_PKG_CONFIG in
33003   [\\/]* | ?:[\\/]*)
33004   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
33005   ;;
33006   *)
33007   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33008 for as_dir in $PATH
33009 do
33010   IFS=$as_save_IFS
33011   test -z "$as_dir" && as_dir=.
33012   for ac_exec_ext in '' $ac_executable_extensions; do
33013   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33014     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
33015     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
33016     break 2
33017   fi
33018 done
33019 done
33020 IFS=$as_save_IFS
33021
33022   ;;
33023 esac
33024 fi
33025 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
33026 if test -n "$ac_pt_PKG_CONFIG"; then
33027   { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
33028 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
33029 else
33030   { echo "$as_me:$LINENO: result: no" >&5
33031 echo "${ECHO_T}no" >&6; }
33032 fi
33033
33034   if test "x$ac_pt_PKG_CONFIG" = x; then
33035     PKG_CONFIG=""
33036   else
33037     case $cross_compiling:$ac_tool_warned in
33038 yes:)
33039 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
33040 whose name does not start with the host triplet.  If you think this
33041 configuration is useful to you, please write to autoconf@gnu.org." >&5
33042 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
33043 whose name does not start with the host triplet.  If you think this
33044 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
33045 ac_tool_warned=yes ;;
33046 esac
33047     PKG_CONFIG=$ac_pt_PKG_CONFIG
33048   fi
33049 else
33050   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
33051 fi
33052
33053 fi
33054 if test -n "$PKG_CONFIG"; then
33055         _pkg_min_version=0.9.0
33056         { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
33057 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
33058         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
33059                 { echo "$as_me:$LINENO: result: yes" >&5
33060 echo "${ECHO_T}yes" >&6; }
33061         else
33062                 { echo "$as_me:$LINENO: result: no" >&5
33063 echo "${ECHO_T}no" >&6; }
33064                 PKG_CONFIG=""
33065         fi
33066
33067 fi
33068
33069
33070 pkg_failed=no
33071 { echo "$as_me:$LINENO: checking for PANGOX" >&5
33072 echo $ECHO_N "checking for PANGOX... $ECHO_C" >&6; }
33073
33074 if test -n "$PKG_CONFIG"; then
33075     if test -n "$PANGOX_CFLAGS"; then
33076         pkg_cv_PANGOX_CFLAGS="$PANGOX_CFLAGS"
33077     else
33078         if test -n "$PKG_CONFIG" && \
33079     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangox\"") >&5
33080   ($PKG_CONFIG --exists --print-errors "pangox") 2>&5
33081   ac_status=$?
33082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33083   (exit $ac_status); }; then
33084   pkg_cv_PANGOX_CFLAGS=`$PKG_CONFIG --cflags "pangox" 2>/dev/null`
33085 else
33086   pkg_failed=yes
33087 fi
33088     fi
33089 else
33090         pkg_failed=untried
33091 fi
33092 if test -n "$PKG_CONFIG"; then
33093     if test -n "$PANGOX_LIBS"; then
33094         pkg_cv_PANGOX_LIBS="$PANGOX_LIBS"
33095     else
33096         if test -n "$PKG_CONFIG" && \
33097     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangox\"") >&5
33098   ($PKG_CONFIG --exists --print-errors "pangox") 2>&5
33099   ac_status=$?
33100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33101   (exit $ac_status); }; then
33102   pkg_cv_PANGOX_LIBS=`$PKG_CONFIG --libs "pangox" 2>/dev/null`
33103 else
33104   pkg_failed=yes
33105 fi
33106     fi
33107 else
33108         pkg_failed=untried
33109 fi
33110
33111
33112
33113 if test $pkg_failed = yes; then
33114
33115 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
33116         _pkg_short_errors_supported=yes
33117 else
33118         _pkg_short_errors_supported=no
33119 fi
33120         if test $_pkg_short_errors_supported = yes; then
33121                 PANGOX_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "pangox"`
33122         else
33123                 PANGOX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangox"`
33124         fi
33125         # Put the nasty error message in config.log where it belongs
33126         echo "$PANGOX_PKG_ERRORS" >&5
33127
33128
33129                     { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5
33130 echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;}
33131    { (exit 1); exit 1; }; }
33132
33133
33134 elif test $pkg_failed = untried; then
33135
33136                     { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5
33137 echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;}
33138    { (exit 1); exit 1; }; }
33139
33140
33141 else
33142         PANGOX_CFLAGS=$pkg_cv_PANGOX_CFLAGS
33143         PANGOX_LIBS=$pkg_cv_PANGOX_LIBS
33144         { echo "$as_me:$LINENO: result: yes" >&5
33145 echo "${ECHO_T}yes" >&6; }
33146
33147                     CFLAGS="$PANGOX_CFLAGS $CFLAGS"
33148                     CXXFLAGS="$PANGOX_CFLAGS $CXXFLAGS"
33149                     GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOX_LIBS"
33150
33151 fi
33152
33153 pkg_failed=no
33154 { echo "$as_me:$LINENO: checking for PANGOFT2" >&5
33155 echo $ECHO_N "checking for PANGOFT2... $ECHO_C" >&6; }
33156
33157 if test -n "$PKG_CONFIG"; then
33158     if test -n "$PANGOFT2_CFLAGS"; then
33159         pkg_cv_PANGOFT2_CFLAGS="$PANGOFT2_CFLAGS"
33160     else
33161         if test -n "$PKG_CONFIG" && \
33162     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangoft2\"") >&5
33163   ($PKG_CONFIG --exists --print-errors "pangoft2") 2>&5
33164   ac_status=$?
33165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33166   (exit $ac_status); }; then
33167   pkg_cv_PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2" 2>/dev/null`
33168 else
33169   pkg_failed=yes
33170 fi
33171     fi
33172 else
33173         pkg_failed=untried
33174 fi
33175 if test -n "$PKG_CONFIG"; then
33176     if test -n "$PANGOFT2_LIBS"; then
33177         pkg_cv_PANGOFT2_LIBS="$PANGOFT2_LIBS"
33178     else
33179         if test -n "$PKG_CONFIG" && \
33180     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangoft2\"") >&5
33181   ($PKG_CONFIG --exists --print-errors "pangoft2") 2>&5
33182   ac_status=$?
33183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33184   (exit $ac_status); }; then
33185   pkg_cv_PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2" 2>/dev/null`
33186 else
33187   pkg_failed=yes
33188 fi
33189     fi
33190 else
33191         pkg_failed=untried
33192 fi
33193
33194
33195
33196 if test $pkg_failed = yes; then
33197
33198 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
33199         _pkg_short_errors_supported=yes
33200 else
33201         _pkg_short_errors_supported=no
33202 fi
33203         if test $_pkg_short_errors_supported = yes; then
33204                 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "pangoft2"`
33205         else
33206                 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
33207         fi
33208         # Put the nasty error message in config.log where it belongs
33209         echo "$PANGOFT2_PKG_ERRORS" >&5
33210
33211
33212                     { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
33213 echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
33214                     wxUSE_PRINTING_ARCHITECTURE="no"
33215
33216
33217 elif test $pkg_failed = untried; then
33218
33219                     { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
33220 echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
33221                     wxUSE_PRINTING_ARCHITECTURE="no"
33222
33223
33224 else
33225         PANGOFT2_CFLAGS=$pkg_cv_PANGOFT2_CFLAGS
33226         PANGOFT2_LIBS=$pkg_cv_PANGOFT2_LIBS
33227         { echo "$as_me:$LINENO: result: yes" >&5
33228 echo "${ECHO_T}yes" >&6; }
33229
33230                     CFLAGS="$PANGOFT2_CFLAGS $CFLAGS"
33231                     CXXFLAGS="$PANGOFT2_CFLAGS $CXXFLAGS"
33232                     GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS"
33233
33234 fi
33235
33236 pkg_failed=no
33237 { echo "$as_me:$LINENO: checking for PANGOXFT" >&5
33238 echo $ECHO_N "checking for PANGOXFT... $ECHO_C" >&6; }
33239
33240 if test -n "$PKG_CONFIG"; then
33241     if test -n "$PANGOXFT_CFLAGS"; then
33242         pkg_cv_PANGOXFT_CFLAGS="$PANGOXFT_CFLAGS"
33243     else
33244         if test -n "$PKG_CONFIG" && \
33245     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangoxft\"") >&5
33246   ($PKG_CONFIG --exists --print-errors "pangoxft") 2>&5
33247   ac_status=$?
33248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33249   (exit $ac_status); }; then
33250   pkg_cv_PANGOXFT_CFLAGS=`$PKG_CONFIG --cflags "pangoxft" 2>/dev/null`
33251 else
33252   pkg_failed=yes
33253 fi
33254     fi
33255 else
33256         pkg_failed=untried
33257 fi
33258 if test -n "$PKG_CONFIG"; then
33259     if test -n "$PANGOXFT_LIBS"; then
33260         pkg_cv_PANGOXFT_LIBS="$PANGOXFT_LIBS"
33261     else
33262         if test -n "$PKG_CONFIG" && \
33263     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangoxft\"") >&5
33264   ($PKG_CONFIG --exists --print-errors "pangoxft") 2>&5
33265   ac_status=$?
33266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33267   (exit $ac_status); }; then
33268   pkg_cv_PANGOXFT_LIBS=`$PKG_CONFIG --libs "pangoxft" 2>/dev/null`
33269 else
33270   pkg_failed=yes
33271 fi
33272     fi
33273 else
33274         pkg_failed=untried
33275 fi
33276
33277
33278
33279 if test $pkg_failed = yes; then
33280
33281 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
33282         _pkg_short_errors_supported=yes
33283 else
33284         _pkg_short_errors_supported=no
33285 fi
33286         if test $_pkg_short_errors_supported = yes; then
33287                 PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "pangoxft"`
33288         else
33289                 PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoxft"`
33290         fi
33291         # Put the nasty error message in config.log where it belongs
33292         echo "$PANGOXFT_PKG_ERRORS" >&5
33293
33294
33295                     { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5
33296 echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;}
33297
33298
33299 elif test $pkg_failed = untried; then
33300
33301                     { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5
33302 echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;}
33303
33304
33305 else
33306         PANGOXFT_CFLAGS=$pkg_cv_PANGOXFT_CFLAGS
33307         PANGOXFT_LIBS=$pkg_cv_PANGOXFT_LIBS
33308         { echo "$as_me:$LINENO: result: yes" >&5
33309 echo "${ECHO_T}yes" >&6; }
33310
33311                     cat >>confdefs.h <<\_ACEOF
33312 #define HAVE_PANGO_XFT 1
33313 _ACEOF
33314
33315                     CFLAGS="$PANGOXFT_CFLAGS $CFLAGS"
33316                     CXXFLAGS="$PANGOXFT_CFLAGS $CXXFLAGS"
33317                     GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOXFT_LIBS"
33318
33319 fi
33320             save_LIBS="$LIBS"
33321             LIBS="$LIBS $PANGOX_LIBS"
33322
33323 for ac_func in pango_font_family_is_monospace
33324 do
33325 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33326 { echo "$as_me:$LINENO: checking for $ac_func" >&5
33327 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
33328 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
33329   echo $ECHO_N "(cached) $ECHO_C" >&6
33330 else
33331   cat >conftest.$ac_ext <<_ACEOF
33332 /* confdefs.h.  */
33333 _ACEOF
33334 cat confdefs.h >>conftest.$ac_ext
33335 cat >>conftest.$ac_ext <<_ACEOF
33336 /* end confdefs.h.  */
33337 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33338    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
33339 #define $ac_func innocuous_$ac_func
33340
33341 /* System header to define __stub macros and hopefully few prototypes,
33342     which can conflict with char $ac_func (); below.
33343     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33344     <limits.h> exists even on freestanding compilers.  */
33345
33346 #ifdef __STDC__
33347 # include <limits.h>
33348 #else
33349 # include <assert.h>
33350 #endif
33351
33352 #undef $ac_func
33353
33354 /* Override any GCC internal prototype to avoid an error.
33355    Use char because int might match the return type of a GCC
33356    builtin and then its argument prototype would still apply.  */
33357 #ifdef __cplusplus
33358 extern "C"
33359 #endif
33360 char $ac_func ();
33361 /* The GNU C library defines this for functions which it implements
33362     to always fail with ENOSYS.  Some functions are actually named
33363     something starting with __ and the normal name is an alias.  */
33364 #if defined __stub_$ac_func || defined __stub___$ac_func
33365 choke me
33366 #endif
33367
33368 int
33369 main ()
33370 {
33371 return $ac_func ();
33372   ;
33373   return 0;
33374 }
33375 _ACEOF
33376 rm -f conftest.$ac_objext conftest$ac_exeext
33377 if { (ac_try="$ac_link"
33378 case "(($ac_try" in
33379   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33380   *) ac_try_echo=$ac_try;;
33381 esac
33382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33383   (eval "$ac_link") 2>conftest.er1
33384   ac_status=$?
33385   grep -v '^ *+' conftest.er1 >conftest.err
33386   rm -f conftest.er1
33387   cat conftest.err >&5
33388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33389   (exit $ac_status); } && {
33390          test -z "$ac_c_werror_flag" ||
33391          test ! -s conftest.err
33392        } && test -s conftest$ac_exeext &&
33393        $as_test_x conftest$ac_exeext; then
33394   eval "$as_ac_var=yes"
33395 else
33396   echo "$as_me: failed program was:" >&5
33397 sed 's/^/| /' conftest.$ac_ext >&5
33398
33399         eval "$as_ac_var=no"
33400 fi
33401
33402 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33403       conftest$ac_exeext conftest.$ac_ext
33404 fi
33405 ac_res=`eval echo '${'$as_ac_var'}'`
33406                { echo "$as_me:$LINENO: result: $ac_res" >&5
33407 echo "${ECHO_T}$ac_res" >&6; }
33408 if test `eval echo '${'$as_ac_var'}'` = yes; then
33409   cat >>confdefs.h <<_ACEOF
33410 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33411 _ACEOF
33412
33413 fi
33414 done
33415
33416             LIBS="$save_LIBS"
33417         fi
33418
33419         wxUSE_UNIVERSAL="yes"
33420
33421         if test "$wxUSE_NANOX" = "yes"; then
33422             TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE"
33423             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"
33424             GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a"
33425         else
33426             GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11"
33427         fi
33428
33429         TOOLKIT=X11
33430         GUIDIST=X11_DIST
33431     fi
33432
33433     if test "$wxUSE_MOTIF" = 1; then
33434         { echo "$as_me:$LINENO: checking for Motif/Lesstif headers" >&5
33435 echo $ECHO_N "checking for Motif/Lesstif headers... $ECHO_C" >&6; }
33436
33437 ac_find_includes=
33438 for ac_dir in $SEARCH_INCLUDE /usr/include
33439   do
33440     if test -f "$ac_dir/Xm/Xm.h"; then
33441       ac_find_includes=$ac_dir
33442       break
33443     fi
33444   done
33445
33446         if test "$ac_find_includes" != "" ; then
33447             { echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
33448 echo "${ECHO_T}found in $ac_find_includes" >&6; }
33449
33450     if test "x$ac_find_includes" = "x/usr/include"; then
33451     ac_path_to_include=""
33452   else
33453     echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
33454     result=$?
33455     if test $result = 0; then
33456       ac_path_to_include=""
33457     else
33458       ac_path_to_include=" -I$ac_find_includes"
33459     fi
33460   fi
33461
33462             TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include"
33463         else
33464             save_CFLAGS=$CFLAGS
33465             CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
33466
33467             cat >conftest.$ac_ext <<_ACEOF
33468 /* confdefs.h.  */
33469 _ACEOF
33470 cat confdefs.h >>conftest.$ac_ext
33471 cat >>conftest.$ac_ext <<_ACEOF
33472 /* end confdefs.h.  */
33473
33474                     #include <Xm/Xm.h>
33475
33476 int
33477 main ()
33478 {
33479
33480                     int version;
33481                     version = xmUseVersion;
33482
33483   ;
33484   return 0;
33485 }
33486 _ACEOF
33487 rm -f conftest.$ac_objext
33488 if { (ac_try="$ac_compile"
33489 case "(($ac_try" in
33490   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33491   *) ac_try_echo=$ac_try;;
33492 esac
33493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33494   (eval "$ac_compile") 2>conftest.er1
33495   ac_status=$?
33496   grep -v '^ *+' conftest.er1 >conftest.err
33497   rm -f conftest.er1
33498   cat conftest.err >&5
33499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33500   (exit $ac_status); } && {
33501          test -z "$ac_c_werror_flag" ||
33502          test ! -s conftest.err
33503        } && test -s conftest.$ac_objext; then
33504
33505                     { echo "$as_me:$LINENO: result: found in default search path" >&5
33506 echo "${ECHO_T}found in default search path" >&6; }
33507                     COMPILED_X_PROGRAM=1
33508
33509 else
33510   echo "$as_me: failed program was:" >&5
33511 sed 's/^/| /' conftest.$ac_ext >&5
33512
33513
33514                     { echo "$as_me:$LINENO: result: no" >&5
33515 echo "${ECHO_T}no" >&6; }
33516                     { { echo "$as_me:$LINENO: error: please set CPPFLAGS to contain the location of Xm/Xm.h" >&5
33517 echo "$as_me: error: please set CPPFLAGS to contain the location of Xm/Xm.h" >&2;}
33518    { (exit 1); exit 1; }; }
33519
33520
33521 fi
33522
33523 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33524
33525             CFLAGS=$save_CFLAGS
33526         fi
33527
33528
33529         { echo "$as_me:$LINENO: checking for Motif/Lesstif library" >&5
33530 echo $ECHO_N "checking for Motif/Lesstif library... $ECHO_C" >&6; }
33531
33532   ac_find_libraries=
33533   for ac_dir in $SEARCH_LIB
33534   do
33535     for ac_extension in a so sl dylib dll.a; do
33536       if test -f "$ac_dir/libXm.$ac_extension"; then
33537         ac_find_libraries=$ac_dir
33538         break 2
33539       fi
33540     done
33541   done
33542
33543
33544         if test "x$ac_find_libraries" != "x" ; then
33545             { echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
33546 echo "${ECHO_T}found in $ac_find_libraries" >&6; }
33547
33548
33549     if test "$ac_find_libraries" = "default location"; then
33550     ac_path_to_link=""
33551   else
33552     echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
33553     result=$?
33554     if test $result = 0; then
33555       ac_path_to_link=""
33556     else
33557       ac_path_to_link=" -L$ac_find_libraries"
33558     fi
33559   fi
33560
33561             GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
33562         else
33563                                                 save_CFLAGS=$CFLAGS
33564             CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
33565             save_LIBS="$LIBS"
33566             LIBS="$GUI_TK_LIBRARY -lXm -lXmu -lXext -lX11"
33567
33568             cat >conftest.$ac_ext <<_ACEOF
33569 /* confdefs.h.  */
33570 _ACEOF
33571 cat confdefs.h >>conftest.$ac_ext
33572 cat >>conftest.$ac_ext <<_ACEOF
33573 /* end confdefs.h.  */
33574
33575                     #include <Xm/Xm.h>
33576
33577 int
33578 main ()
33579 {
33580
33581                     int version;
33582                     version = xmUseVersion;
33583
33584   ;
33585   return 0;
33586 }
33587 _ACEOF
33588 rm -f conftest.$ac_objext conftest$ac_exeext
33589 if { (ac_try="$ac_link"
33590 case "(($ac_try" in
33591   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33592   *) ac_try_echo=$ac_try;;
33593 esac
33594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33595   (eval "$ac_link") 2>conftest.er1
33596   ac_status=$?
33597   grep -v '^ *+' conftest.er1 >conftest.err
33598   rm -f conftest.er1
33599   cat conftest.err >&5
33600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33601   (exit $ac_status); } && {
33602          test -z "$ac_c_werror_flag" ||
33603          test ! -s conftest.err
33604        } && test -s conftest$ac_exeext &&
33605        $as_test_x conftest$ac_exeext; then
33606
33607                     { echo "$as_me:$LINENO: result: found in default search path" >&5
33608 echo "${ECHO_T}found in default search path" >&6; }
33609                     COMPILED_X_PROGRAM=1
33610
33611 else
33612   echo "$as_me: failed program was:" >&5
33613 sed 's/^/| /' conftest.$ac_ext >&5
33614
33615
33616                     { echo "$as_me:$LINENO: result: no" >&5
33617 echo "${ECHO_T}no" >&6; }
33618                     { { echo "$as_me:$LINENO: error: please set LDFLAGS to contain the location of libXm" >&5
33619 echo "$as_me: error: please set LDFLAGS to contain the location of libXm" >&2;}
33620    { (exit 1); exit 1; }; }
33621
33622
33623 fi
33624
33625 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33626       conftest$ac_exeext conftest.$ac_ext
33627
33628             CFLAGS=$save_CFLAGS
33629             LIBS="$save_LIBS"
33630         fi
33631
33632         { echo "$as_me:$LINENO: checking if we need -lXp and/or -lSM -lICE" >&5
33633 echo $ECHO_N "checking if we need -lXp and/or -lSM -lICE... $ECHO_C" >&6; }
33634         libp_link=""
33635         libsm_ice_link=""
33636         libs_found=0
33637         for libp in "" " -lXp"; do
33638             if test "$libs_found" = 0; then
33639                 for libsm_ice in "" " -lSM -lICE"; do
33640                     if test "$libs_found" = 0; then
33641                         save_LIBS="$LIBS"
33642                         LIBS="$GUI_TK_LIBRARY -lXm ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11"
33643                         save_CFLAGS=$CFLAGS
33644                         CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
33645
33646                         cat >conftest.$ac_ext <<_ACEOF
33647 /* confdefs.h.  */
33648 _ACEOF
33649 cat confdefs.h >>conftest.$ac_ext
33650 cat >>conftest.$ac_ext <<_ACEOF
33651 /* end confdefs.h.  */
33652
33653                                 #include <Xm/Xm.h>
33654                                 #include <Xm/List.h>
33655
33656 int
33657 main ()
33658 {
33659
33660                                 XmString string = NULL;
33661                                 Widget w = NULL;
33662                                 int position = 0;
33663                                 XmListAddItem(w, string, position);
33664
33665   ;
33666   return 0;
33667 }
33668 _ACEOF
33669 rm -f conftest.$ac_objext conftest$ac_exeext
33670 if { (ac_try="$ac_link"
33671 case "(($ac_try" in
33672   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33673   *) ac_try_echo=$ac_try;;
33674 esac
33675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33676   (eval "$ac_link") 2>conftest.er1
33677   ac_status=$?
33678   grep -v '^ *+' conftest.er1 >conftest.err
33679   rm -f conftest.er1
33680   cat conftest.err >&5
33681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33682   (exit $ac_status); } && {
33683          test -z "$ac_c_werror_flag" ||
33684          test ! -s conftest.err
33685        } && test -s conftest$ac_exeext &&
33686        $as_test_x conftest$ac_exeext; then
33687
33688                                 libp_link="$libp"
33689                                 libsm_ice_link="$libsm_ice"
33690                                 { echo "$as_me:$LINENO: result: need${libp_link}${libsm_ice_link}" >&5
33691 echo "${ECHO_T}need${libp_link}${libsm_ice_link}" >&6; }
33692                                 libs_found=1
33693
33694 else
33695   echo "$as_me: failed program was:" >&5
33696 sed 's/^/| /' conftest.$ac_ext >&5
33697
33698
33699
33700 fi
33701
33702 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33703       conftest$ac_exeext conftest.$ac_ext
33704
33705                         LIBS="$save_LIBS"
33706                         CFLAGS=$save_CFLAGS
33707                     fi
33708                 done
33709             fi
33710         done
33711
33712         if test "$libs_found" = 0; then
33713             { echo "$as_me:$LINENO: result: can't find the right libraries" >&5
33714 echo "${ECHO_T}can't find the right libraries" >&6; }
33715             { { echo "$as_me:$LINENO: error: can't link a simple motif program" >&5
33716 echo "$as_me: error: can't link a simple motif program" >&2;}
33717    { (exit 1); exit 1; }; }
33718         fi
33719
33720                         { echo "$as_me:$LINENO: checking for SgCreateList in -lSgm" >&5
33721 echo $ECHO_N "checking for SgCreateList in -lSgm... $ECHO_C" >&6; }
33722 if test "${ac_cv_lib_Sgm_SgCreateList+set}" = set; then
33723   echo $ECHO_N "(cached) $ECHO_C" >&6
33724 else
33725   ac_check_lib_save_LIBS=$LIBS
33726 LIBS="-lSgm  $LIBS"
33727 cat >conftest.$ac_ext <<_ACEOF
33728 /* confdefs.h.  */
33729 _ACEOF
33730 cat confdefs.h >>conftest.$ac_ext
33731 cat >>conftest.$ac_ext <<_ACEOF
33732 /* end confdefs.h.  */
33733
33734 /* Override any GCC internal prototype to avoid an error.
33735    Use char because int might match the return type of a GCC
33736    builtin and then its argument prototype would still apply.  */
33737 #ifdef __cplusplus
33738 extern "C"
33739 #endif
33740 char SgCreateList ();
33741 int
33742 main ()
33743 {
33744 return SgCreateList ();
33745   ;
33746   return 0;
33747 }
33748 _ACEOF
33749 rm -f conftest.$ac_objext conftest$ac_exeext
33750 if { (ac_try="$ac_link"
33751 case "(($ac_try" in
33752   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33753   *) ac_try_echo=$ac_try;;
33754 esac
33755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33756   (eval "$ac_link") 2>conftest.er1
33757   ac_status=$?
33758   grep -v '^ *+' conftest.er1 >conftest.err
33759   rm -f conftest.er1
33760   cat conftest.err >&5
33761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33762   (exit $ac_status); } && {
33763          test -z "$ac_c_werror_flag" ||
33764          test ! -s conftest.err
33765        } && test -s conftest$ac_exeext &&
33766        $as_test_x conftest$ac_exeext; then
33767   ac_cv_lib_Sgm_SgCreateList=yes
33768 else
33769   echo "$as_me: failed program was:" >&5
33770 sed 's/^/| /' conftest.$ac_ext >&5
33771
33772         ac_cv_lib_Sgm_SgCreateList=no
33773 fi
33774
33775 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33776       conftest$ac_exeext conftest.$ac_ext
33777 LIBS=$ac_check_lib_save_LIBS
33778 fi
33779 { echo "$as_me:$LINENO: result: $ac_cv_lib_Sgm_SgCreateList" >&5
33780 echo "${ECHO_T}$ac_cv_lib_Sgm_SgCreateList" >&6; }
33781 if test $ac_cv_lib_Sgm_SgCreateList = yes; then
33782   libsgm_link=" -lSgm"
33783 fi
33784
33785
33786         save_CFLAGS=$CFLAGS
33787         CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
33788
33789         { echo "$as_me:$LINENO: checking for Motif 2" >&5
33790 echo $ECHO_N "checking for Motif 2... $ECHO_C" >&6; }
33791 if test "${wx_cv_lib_motif2+set}" = set; then
33792   echo $ECHO_N "(cached) $ECHO_C" >&6
33793 else
33794   cat >conftest.$ac_ext <<_ACEOF
33795 /* confdefs.h.  */
33796 _ACEOF
33797 cat confdefs.h >>conftest.$ac_ext
33798 cat >>conftest.$ac_ext <<_ACEOF
33799 /* end confdefs.h.  */
33800
33801                             #include <Xm/Xm.h>
33802
33803 int
33804 main ()
33805 {
33806
33807                             #if XmVersion < 2000
33808                             Not Motif 2
33809                             #endif
33810
33811   ;
33812   return 0;
33813 }
33814 _ACEOF
33815 rm -f conftest.$ac_objext
33816 if { (ac_try="$ac_compile"
33817 case "(($ac_try" in
33818   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33819   *) ac_try_echo=$ac_try;;
33820 esac
33821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33822   (eval "$ac_compile") 2>conftest.er1
33823   ac_status=$?
33824   grep -v '^ *+' conftest.er1 >conftest.err
33825   rm -f conftest.er1
33826   cat conftest.err >&5
33827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33828   (exit $ac_status); } && {
33829          test -z "$ac_c_werror_flag" ||
33830          test ! -s conftest.err
33831        } && test -s conftest.$ac_objext; then
33832   wx_cv_lib_motif2="yes"
33833 else
33834   echo "$as_me: failed program was:" >&5
33835 sed 's/^/| /' conftest.$ac_ext >&5
33836
33837         wx_cv_lib_motif2="no"
33838 fi
33839
33840 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33841 fi
33842 { echo "$as_me:$LINENO: result: $wx_cv_lib_motif2" >&5
33843 echo "${ECHO_T}$wx_cv_lib_motif2" >&6; }
33844         if test "$wx_cv_lib_motif2" = "yes"; then
33845             cat >>confdefs.h <<\_ACEOF
33846 #define __WXMOTIF20__ 1
33847 _ACEOF
33848
33849         else
33850             cat >>confdefs.h <<\_ACEOF
33851 #define __WXMOTIF20__ 0
33852 _ACEOF
33853
33854         fi
33855
33856         { echo "$as_me:$LINENO: checking whether Motif is Lesstif" >&5
33857 echo $ECHO_N "checking whether Motif is Lesstif... $ECHO_C" >&6; }
33858 if test "${wx_cv_lib_lesstif+set}" = set; then
33859   echo $ECHO_N "(cached) $ECHO_C" >&6
33860 else
33861   cat >conftest.$ac_ext <<_ACEOF
33862 /* confdefs.h.  */
33863 _ACEOF
33864 cat confdefs.h >>conftest.$ac_ext
33865 cat >>conftest.$ac_ext <<_ACEOF
33866 /* end confdefs.h.  */
33867
33868                             #include <Xm/Xm.h>
33869
33870 int
33871 main ()
33872 {
33873
33874                             #if !defined(LesstifVersion) || LesstifVersion <= 0
33875                             Not Lesstif
33876                             #endif
33877
33878   ;
33879   return 0;
33880 }
33881 _ACEOF
33882 rm -f conftest.$ac_objext
33883 if { (ac_try="$ac_compile"
33884 case "(($ac_try" in
33885   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33886   *) ac_try_echo=$ac_try;;
33887 esac
33888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33889   (eval "$ac_compile") 2>conftest.er1
33890   ac_status=$?
33891   grep -v '^ *+' conftest.er1 >conftest.err
33892   rm -f conftest.er1
33893   cat conftest.err >&5
33894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33895   (exit $ac_status); } && {
33896          test -z "$ac_c_werror_flag" ||
33897          test ! -s conftest.err
33898        } && test -s conftest.$ac_objext; then
33899   wx_cv_lib_lesstif="yes"
33900 else
33901   echo "$as_me: failed program was:" >&5
33902 sed 's/^/| /' conftest.$ac_ext >&5
33903
33904         wx_cv_lib_lesstif="no"
33905 fi
33906
33907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33908
33909 fi
33910 { echo "$as_me:$LINENO: result: $wx_cv_lib_lesstif" >&5
33911 echo "${ECHO_T}$wx_cv_lib_lesstif" >&6; }
33912         if test "$wx_cv_lib_lesstif" = "yes"; then
33913             cat >>confdefs.h <<\_ACEOF
33914 #define __WXLESSTIF__ 1
33915 _ACEOF
33916
33917         else
33918             cat >>confdefs.h <<\_ACEOF
33919 #define __WXLESSTIF__ 0
33920 _ACEOF
33921
33922         fi
33923
33924         CFLAGS=$save_CFLAGS
33925
33926         GUI_TK_LIBRARY="$GUI_TK_LIBRARY${libsgm_link} -lXm${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11"
33927         TOOLKIT=MOTIF
33928         GUIDIST=MOTIF_DIST
33929     fi
33930
33931         if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
33932                 if test "$wxUSE_LIBXPM" = "sys"; then
33933             { echo "$as_me:$LINENO: checking for Xpm library" >&5
33934 echo $ECHO_N "checking for Xpm library... $ECHO_C" >&6; }
33935
33936   ac_find_libraries=
33937   for ac_dir in $SEARCH_LIB
33938   do
33939     for ac_extension in a so sl dylib dll.a; do
33940       if test -f "$ac_dir/libXpm.$ac_extension"; then
33941         ac_find_libraries=$ac_dir
33942         break 2
33943       fi
33944     done
33945   done
33946
33947             if test "$ac_find_libraries" != "" ; then
33948
33949     if test "$ac_find_libraries" = "default location"; then
33950     ac_path_to_link=""
33951   else
33952     echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
33953     result=$?
33954     if test $result = 0; then
33955       ac_path_to_link=""
33956     else
33957       ac_path_to_link=" -L$ac_find_libraries"
33958     fi
33959   fi
33960
33961                 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
33962                 { echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
33963 echo "${ECHO_T}found in $ac_find_libraries" >&6; }
33964
33965                 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
33966 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
33967 if test "${wx_cv_x11_xpm_h+set}" = set; then
33968   echo $ECHO_N "(cached) $ECHO_C" >&6
33969 else
33970
33971                         save_CFLAGS=$CFLAGS
33972                         CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
33973
33974                         cat >conftest.$ac_ext <<_ACEOF
33975 /* confdefs.h.  */
33976 _ACEOF
33977 cat confdefs.h >>conftest.$ac_ext
33978 cat >>conftest.$ac_ext <<_ACEOF
33979 /* end confdefs.h.  */
33980
33981                                 #include <X11/xpm.h>
33982
33983 int
33984 main ()
33985 {
33986
33987                                 int version;
33988                                 version = XpmLibraryVersion();
33989
33990   ;
33991   return 0;
33992 }
33993 _ACEOF
33994 rm -f conftest.$ac_objext
33995 if { (ac_try="$ac_compile"
33996 case "(($ac_try" in
33997   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33998   *) ac_try_echo=$ac_try;;
33999 esac
34000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34001   (eval "$ac_compile") 2>conftest.er1
34002   ac_status=$?
34003   grep -v '^ *+' conftest.er1 >conftest.err
34004   rm -f conftest.er1
34005   cat conftest.err >&5
34006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34007   (exit $ac_status); } && {
34008          test -z "$ac_c_werror_flag" ||
34009          test ! -s conftest.err
34010        } && test -s conftest.$ac_objext; then
34011   wx_cv_x11_xpm_h=yes
34012 else
34013   echo "$as_me: failed program was:" >&5
34014 sed 's/^/| /' conftest.$ac_ext >&5
34015
34016         wx_cv_x11_xpm_h=no
34017
34018 fi
34019
34020 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34021
34022                         CFLAGS=$save_CFLAGS
34023
34024
34025 fi
34026 { echo "$as_me:$LINENO: result: $wx_cv_x11_xpm_h" >&5
34027 echo "${ECHO_T}$wx_cv_x11_xpm_h" >&6; }
34028
34029                 if test $wx_cv_x11_xpm_h = "yes"; then
34030                     GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXpm"
34031                     cat >>confdefs.h <<\_ACEOF
34032 #define wxHAVE_LIB_XPM 1
34033 _ACEOF
34034
34035                 else
34036                     { echo "$as_me:$LINENO: WARNING: built-in less efficient XPM decoder will be used" >&5
34037 echo "$as_me: WARNING: built-in less efficient XPM decoder will be used" >&2;}
34038                 fi
34039             fi
34040
34041         fi
34042
34043                 { echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
34044 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6; }
34045 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
34046   echo $ECHO_N "(cached) $ECHO_C" >&6
34047 else
34048   ac_check_lib_save_LIBS=$LIBS
34049 LIBS="-lXext $GUI_TK_LIBRARY -lX11 $LIBS"
34050 cat >conftest.$ac_ext <<_ACEOF
34051 /* confdefs.h.  */
34052 _ACEOF
34053 cat confdefs.h >>conftest.$ac_ext
34054 cat >>conftest.$ac_ext <<_ACEOF
34055 /* end confdefs.h.  */
34056
34057 /* Override any GCC internal prototype to avoid an error.
34058    Use char because int might match the return type of a GCC
34059    builtin and then its argument prototype would still apply.  */
34060 #ifdef __cplusplus
34061 extern "C"
34062 #endif
34063 char XShapeQueryExtension ();
34064 int
34065 main ()
34066 {
34067 return XShapeQueryExtension ();
34068   ;
34069   return 0;
34070 }
34071 _ACEOF
34072 rm -f conftest.$ac_objext conftest$ac_exeext
34073 if { (ac_try="$ac_link"
34074 case "(($ac_try" in
34075   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34076   *) ac_try_echo=$ac_try;;
34077 esac
34078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34079   (eval "$ac_link") 2>conftest.er1
34080   ac_status=$?
34081   grep -v '^ *+' conftest.er1 >conftest.err
34082   rm -f conftest.er1
34083   cat conftest.err >&5
34084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34085   (exit $ac_status); } && {
34086          test -z "$ac_c_werror_flag" ||
34087          test ! -s conftest.err
34088        } && test -s conftest$ac_exeext &&
34089        $as_test_x conftest$ac_exeext; then
34090   ac_cv_lib_Xext_XShapeQueryExtension=yes
34091 else
34092   echo "$as_me: failed program was:" >&5
34093 sed 's/^/| /' conftest.$ac_ext >&5
34094
34095         ac_cv_lib_Xext_XShapeQueryExtension=no
34096 fi
34097
34098 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34099       conftest$ac_exeext conftest.$ac_ext
34100 LIBS=$ac_check_lib_save_LIBS
34101 fi
34102 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
34103 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
34104 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
34105
34106                       GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXext"
34107                       wxHAVE_XEXT_LIB=1
34108
34109 fi
34110
34111
34112         if test "$wxHAVE_XEXT_LIB" = 1; then
34113             save_CFLAGS="$CFLAGS"
34114             CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
34115
34116             { echo "$as_me:$LINENO: checking for X11/extensions/shape.h" >&5
34117 echo $ECHO_N "checking for X11/extensions/shape.h... $ECHO_C" >&6; }
34118             cat >conftest.$ac_ext <<_ACEOF
34119 /* confdefs.h.  */
34120 _ACEOF
34121 cat confdefs.h >>conftest.$ac_ext
34122 cat >>conftest.$ac_ext <<_ACEOF
34123 /* end confdefs.h.  */
34124
34125                             #include <X11/Xlib.h>
34126                             #include <X11/extensions/shape.h>
34127
34128 int
34129 main ()
34130 {
34131
34132                             int dummy1, dummy2;
34133                             XShapeQueryExtension((Display*)NULL,
34134                                                  (int*)NULL, (int*)NULL);
34135
34136   ;
34137   return 0;
34138 }
34139 _ACEOF
34140 rm -f conftest.$ac_objext
34141 if { (ac_try="$ac_compile"
34142 case "(($ac_try" in
34143   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34144   *) ac_try_echo=$ac_try;;
34145 esac
34146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34147   (eval "$ac_compile") 2>conftest.er1
34148   ac_status=$?
34149   grep -v '^ *+' conftest.er1 >conftest.err
34150   rm -f conftest.er1
34151   cat conftest.err >&5
34152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34153   (exit $ac_status); } && {
34154          test -z "$ac_c_werror_flag" ||
34155          test ! -s conftest.err
34156        } && test -s conftest.$ac_objext; then
34157
34158                             cat >>confdefs.h <<\_ACEOF
34159 #define HAVE_XSHAPE 1
34160 _ACEOF
34161
34162                             { echo "$as_me:$LINENO: result: found" >&5
34163 echo "${ECHO_T}found" >&6; }
34164
34165 else
34166   echo "$as_me: failed program was:" >&5
34167 sed 's/^/| /' conftest.$ac_ext >&5
34168
34169
34170                             { echo "$as_me:$LINENO: result: not found" >&5
34171 echo "${ECHO_T}not found" >&6; }
34172
34173 fi
34174
34175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34176             CFLAGS="$save_CFLAGS"
34177
34178         fi
34179     fi
34180
34181     if test "$wxUSE_OSX_CARBON" = 1; then
34182         { echo "$as_me:$LINENO: checking for compiler syntax to enable Pascal strings" >&5
34183 echo $ECHO_N "checking for compiler syntax to enable Pascal strings... $ECHO_C" >&6; }
34184         if test "$GCC" = yes; then
34185             { echo "$as_me:$LINENO: result: gcc" >&5
34186 echo "${ECHO_T}gcc" >&6; }
34187             CPPFLAGS_PASCAL="-fpascal-strings"
34188         elif test "`echo $CXX | sed -e 's@.*/@@'`" = "xlC"; then
34189             { echo "$as_me:$LINENO: result: xlc" >&5
34190 echo "${ECHO_T}xlc" >&6; }
34191             CPPFLAGS_PASCAL="-qmacpstr"
34192         else
34193             { echo "$as_me:$LINENO: result: none" >&5
34194 echo "${ECHO_T}none" >&6; }
34195         fi
34196
34197         if test "x$wxUSE_UNIX" = "xyes"; then
34198             CPPFLAGS="$CPPFLAGS_PASCAL -I/Developer/Headers/FlatCarbon $CPPFLAGS"
34199         else
34200                         CPPFLAGS="$CPPFLAGS_PASCAL -DTARGET_CARBON $CPPFLAGS"
34201         fi
34202
34203         TOOLKIT=OSX_CARBON
34204                 GUIDIST=OSX_CARBON_DIST
34205                         WXBASEPORT="_carbon"
34206
34207                                         TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMAC__ -D__WXOSX__"
34208     fi
34209
34210     if test "$wxUSE_OSX_COCOA" = 1; then
34211         TOOLKIT=OSX_COCOA
34212         GUIDIST=OSX_COCOA_DIST
34213
34214                 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMAC__ -D__WXOSX__"
34215     fi
34216
34217     if test "$wxUSE_OSX_IPHONE" = 1; then
34218         TOOLKIT=OSX_IPHONE
34219     fi
34220
34221     if test "$wxUSE_OLD_COCOA" = 1; then
34222         TOOLKIT=COCOA
34223         GUIDIST=COCOA_DIST
34224     fi
34225
34226     if test "$wxUSE_PM" = 1; then
34227         TOOLKIT=PM
34228         GUIDIST=PM_DIST
34229         { echo "$as_me:$LINENO: checking for type SPBCDATA" >&5
34230 echo $ECHO_N "checking for type SPBCDATA... $ECHO_C" >&6; }
34231 if test "${wx_cv_spbcdata+set}" = set; then
34232   echo $ECHO_N "(cached) $ECHO_C" >&6
34233 else
34234
34235                 cat >conftest.$ac_ext <<_ACEOF
34236 /* confdefs.h.  */
34237 _ACEOF
34238 cat confdefs.h >>conftest.$ac_ext
34239 cat >>conftest.$ac_ext <<_ACEOF
34240 /* end confdefs.h.  */
34241
34242                         #define INCL_PM
34243                         #include <os2.h>
34244
34245 int
34246 main ()
34247 {
34248
34249                         SPBCDATA test;
34250
34251   ;
34252   return 0;
34253 }
34254 _ACEOF
34255 rm -f conftest.$ac_objext
34256 if { (ac_try="$ac_compile"
34257 case "(($ac_try" in
34258   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34259   *) ac_try_echo=$ac_try;;
34260 esac
34261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34262   (eval "$ac_compile") 2>conftest.er1
34263   ac_status=$?
34264   grep -v '^ *+' conftest.er1 >conftest.err
34265   rm -f conftest.er1
34266   cat conftest.err >&5
34267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34268   (exit $ac_status); } && {
34269          test -z "$ac_c_werror_flag" ||
34270          test ! -s conftest.err
34271        } && test -s conftest.$ac_objext; then
34272   wx_cv_spbcdata=yes
34273 else
34274   echo "$as_me: failed program was:" >&5
34275 sed 's/^/| /' conftest.$ac_ext >&5
34276
34277         wx_cv_spbcdata=no
34278
34279 fi
34280
34281 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34282
34283
34284 fi
34285 { echo "$as_me:$LINENO: result: $wx_cv_spbcdata" >&5
34286 echo "${ECHO_T}$wx_cv_spbcdata" >&6; }
34287
34288         if test $wx_cv_spbcdata = "yes"; then
34289             cat >>confdefs.h <<\_ACEOF
34290 #define HAVE_SPBCDATA 1
34291 _ACEOF
34292
34293         fi
34294     fi
34295
34296         if test "$TOOLKIT" = "PM" ; then
34297         TOOLKIT_DIR="os2"
34298     else
34299         TOOLKIT_DIR=`echo ${TOOLKIT} | tr '[A-Z]' '[a-z]'`
34300     fi
34301
34302     if test "$wxUSE_UNIVERSAL" = "yes"; then
34303         TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__"
34304         WIDGET_SET=univ
34305     fi
34306
34307         GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
34308     DISTDIR="wx\$(TOOLKIT)"
34309 else
34310     USE_GUI=0
34311
34312             TOOLKIT_DIR="base"
34313
34314         if test "$USE_WIN32" = 1 ; then
34315                         TOOLKIT="MSW"
34316     fi
34317
34318         GUIDIST="BASE_DIST"
34319     DISTDIR="wxBase"
34320 fi
34321
34322
34323
34324 if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_UTF8" = "auto" ; then
34325     if test "$USE_UNIX" = 1 -a "$wxUSE_DARWIN" != 1 ; then
34326         wxUSE_UNICODE_UTF8=yes
34327     elif test "$USE_OS2" = 1 ; then
34328                                 wxUSE_UNICODE_UTF8=yes
34329     else
34330         wxUSE_UNICODE_UTF8=no
34331     fi
34332 fi
34333
34334
34335 if test "$wxUSE_GUI" = "yes"; then
34336     if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_PM" != 1; then
34337
34338 for ac_header in X11/Xlib.h
34339 do
34340 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
34341 { echo "$as_me:$LINENO: checking for $ac_header" >&5
34342 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
34343 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
34344   echo $ECHO_N "(cached) $ECHO_C" >&6
34345 else
34346   cat >conftest.$ac_ext <<_ACEOF
34347 /* confdefs.h.  */
34348 _ACEOF
34349 cat confdefs.h >>conftest.$ac_ext
34350 cat >>conftest.$ac_ext <<_ACEOF
34351 /* end confdefs.h.  */
34352
34353
34354 #include <$ac_header>
34355 _ACEOF
34356 rm -f conftest.$ac_objext
34357 if { (ac_try="$ac_compile"
34358 case "(($ac_try" in
34359   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34360   *) ac_try_echo=$ac_try;;
34361 esac
34362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34363   (eval "$ac_compile") 2>conftest.er1
34364   ac_status=$?
34365   grep -v '^ *+' conftest.er1 >conftest.err
34366   rm -f conftest.er1
34367   cat conftest.err >&5
34368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34369   (exit $ac_status); } && {
34370          test -z "$ac_c_werror_flag" ||
34371          test ! -s conftest.err
34372        } && test -s conftest.$ac_objext; then
34373   eval "$as_ac_Header=yes"
34374 else
34375   echo "$as_me: failed program was:" >&5
34376 sed 's/^/| /' conftest.$ac_ext >&5
34377
34378         eval "$as_ac_Header=no"
34379 fi
34380
34381 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34382 fi
34383 ac_res=`eval echo '${'$as_ac_Header'}'`
34384                { echo "$as_me:$LINENO: result: $ac_res" >&5
34385 echo "${ECHO_T}$ac_res" >&6; }
34386 if test `eval echo '${'$as_ac_Header'}'` = yes; then
34387   cat >>confdefs.h <<_ACEOF
34388 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
34389 _ACEOF
34390
34391 fi
34392
34393 done
34394
34395
34396 for ac_header in X11/XKBlib.h
34397 do
34398 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
34399 { echo "$as_me:$LINENO: checking for $ac_header" >&5
34400 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
34401 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
34402   echo $ECHO_N "(cached) $ECHO_C" >&6
34403 else
34404   cat >conftest.$ac_ext <<_ACEOF
34405 /* confdefs.h.  */
34406 _ACEOF
34407 cat confdefs.h >>conftest.$ac_ext
34408 cat >>conftest.$ac_ext <<_ACEOF
34409 /* end confdefs.h.  */
34410
34411                           #if HAVE_X11_XLIB_H
34412                             #include <X11/Xlib.h>
34413                           #endif
34414
34415
34416 #include <$ac_header>
34417 _ACEOF
34418 rm -f conftest.$ac_objext
34419 if { (ac_try="$ac_compile"
34420 case "(($ac_try" in
34421   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34422   *) ac_try_echo=$ac_try;;
34423 esac
34424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34425   (eval "$ac_compile") 2>conftest.er1
34426   ac_status=$?
34427   grep -v '^ *+' conftest.er1 >conftest.err
34428   rm -f conftest.er1
34429   cat conftest.err >&5
34430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34431   (exit $ac_status); } && {
34432          test -z "$ac_c_werror_flag" ||
34433          test ! -s conftest.err
34434        } && test -s conftest.$ac_objext; then
34435   eval "$as_ac_Header=yes"
34436 else
34437   echo "$as_me: failed program was:" >&5
34438 sed 's/^/| /' conftest.$ac_ext >&5
34439
34440         eval "$as_ac_Header=no"
34441 fi
34442
34443 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34444 fi
34445 ac_res=`eval echo '${'$as_ac_Header'}'`
34446                { echo "$as_me:$LINENO: result: $ac_res" >&5
34447 echo "${ECHO_T}$ac_res" >&6; }
34448 if test `eval echo '${'$as_ac_Header'}'` = yes; then
34449   cat >>confdefs.h <<_ACEOF
34450 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
34451 _ACEOF
34452
34453 fi
34454
34455 done
34456
34457     fi
34458 fi
34459
34460
34461
34462 USE_XINERAMA=0
34463 if test "$wxUSE_DISPLAY" = "yes"; then
34464         if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_X11" = 1 -o "$wxUSE_GTK1" = 1; then
34465         { echo "$as_me:$LINENO: checking for Xinerama" >&5
34466 echo $ECHO_N "checking for Xinerama... $ECHO_C" >&6; }
34467
34468   ac_find_libraries=
34469   for ac_dir in $SEARCH_LIB
34470   do
34471     for ac_extension in a so sl dylib dll.a; do
34472       if test -f "$ac_dir/libXinerama.$ac_extension"; then
34473         ac_find_libraries=$ac_dir
34474         break 2
34475       fi
34476     done
34477   done
34478
34479         if test "$ac_find_libraries" != "" ; then
34480
34481     if test "$ac_find_libraries" = "default location"; then
34482     ac_path_to_link=""
34483   else
34484     echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
34485     result=$?
34486     if test $result = 0; then
34487       ac_path_to_link=""
34488     else
34489       ac_path_to_link=" -L$ac_find_libraries"
34490     fi
34491   fi
34492
34493             if test "$ac_path_to_link" != " -L/usr/lib" ; then
34494                 LDFLAGS="$LDFLAGS $ac_path_to_link"
34495             fi
34496             USE_XINERAMA=1
34497             GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXinerama"
34498             { echo "$as_me:$LINENO: result: yes" >&5
34499 echo "${ECHO_T}yes" >&6; }
34500         else
34501             { echo "$as_me:$LINENO: result: no" >&5
34502 echo "${ECHO_T}no" >&6; }
34503             { echo "$as_me:$LINENO: WARNING: Xinerama not found; disabling wxDisplay" >&5
34504 echo "$as_me: WARNING: Xinerama not found; disabling wxDisplay" >&2;}
34505             wxUSE_DISPLAY="no"
34506         fi
34507     elif test "$wxUSE_MSW" = 1; then
34508                 { echo "$as_me:$LINENO: checking for ddraw.h" >&5
34509 echo $ECHO_N "checking for ddraw.h... $ECHO_C" >&6; }
34510 if test "${ac_cv_header_ddraw_h+set}" = set; then
34511   echo $ECHO_N "(cached) $ECHO_C" >&6
34512 else
34513   cat >conftest.$ac_ext <<_ACEOF
34514 /* confdefs.h.  */
34515 _ACEOF
34516 cat confdefs.h >>conftest.$ac_ext
34517 cat >>conftest.$ac_ext <<_ACEOF
34518 /* end confdefs.h.  */
34519 #include <windows.h>
34520
34521 #include <ddraw.h>
34522 _ACEOF
34523 rm -f conftest.$ac_objext
34524 if { (ac_try="$ac_compile"
34525 case "(($ac_try" in
34526   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34527   *) ac_try_echo=$ac_try;;
34528 esac
34529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34530   (eval "$ac_compile") 2>conftest.er1
34531   ac_status=$?
34532   grep -v '^ *+' conftest.er1 >conftest.err
34533   rm -f conftest.er1
34534   cat conftest.err >&5
34535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34536   (exit $ac_status); } && {
34537          test -z "$ac_c_werror_flag" ||
34538          test ! -s conftest.err
34539        } && test -s conftest.$ac_objext; then
34540   ac_cv_header_ddraw_h=yes
34541 else
34542   echo "$as_me: failed program was:" >&5
34543 sed 's/^/| /' conftest.$ac_ext >&5
34544
34545         ac_cv_header_ddraw_h=no
34546 fi
34547
34548 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34549 fi
34550 { echo "$as_me:$LINENO: result: $ac_cv_header_ddraw_h" >&5
34551 echo "${ECHO_T}$ac_cv_header_ddraw_h" >&6; }
34552
34553
34554     fi
34555 fi
34556
34557 if test "$wxUSE_DISPLAY" = "yes"; then
34558         if test "$USE_XINERAMA" = 1 -o "$wxUSE_GTK" = 1; then
34559         { echo "$as_me:$LINENO: checking for Xxf86vm extension" >&5
34560 echo $ECHO_N "checking for Xxf86vm extension... $ECHO_C" >&6; }
34561
34562   ac_find_libraries=
34563   for ac_dir in $SEARCH_LIB
34564   do
34565     for ac_extension in a so sl dylib dll.a; do
34566       if test -f "$ac_dir/libXxf86vm.$ac_extension"; then
34567         ac_find_libraries=$ac_dir
34568         break 2
34569       fi
34570     done
34571   done
34572
34573         if test "$ac_find_libraries" != "" ; then
34574             { echo "$as_me:$LINENO: result: yes" >&5
34575 echo "${ECHO_T}yes" >&6; }
34576
34577 for ac_header in X11/extensions/xf86vmode.h
34578 do
34579 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
34580 { echo "$as_me:$LINENO: checking for $ac_header" >&5
34581 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
34582 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
34583   echo $ECHO_N "(cached) $ECHO_C" >&6
34584 else
34585   cat >conftest.$ac_ext <<_ACEOF
34586 /* confdefs.h.  */
34587 _ACEOF
34588 cat confdefs.h >>conftest.$ac_ext
34589 cat >>conftest.$ac_ext <<_ACEOF
34590 /* end confdefs.h.  */
34591
34592                                   #if HAVE_X11_XLIB_H
34593                                     #include <X11/Xlib.h>
34594                                   #endif
34595
34596
34597 #include <$ac_header>
34598 _ACEOF
34599 rm -f conftest.$ac_objext
34600 if { (ac_try="$ac_compile"
34601 case "(($ac_try" in
34602   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34603   *) ac_try_echo=$ac_try;;
34604 esac
34605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34606   (eval "$ac_compile") 2>conftest.er1
34607   ac_status=$?
34608   grep -v '^ *+' conftest.er1 >conftest.err
34609   rm -f conftest.er1
34610   cat conftest.err >&5
34611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34612   (exit $ac_status); } && {
34613          test -z "$ac_c_werror_flag" ||
34614          test ! -s conftest.err
34615        } && test -s conftest.$ac_objext; then
34616   eval "$as_ac_Header=yes"
34617 else
34618   echo "$as_me: failed program was:" >&5
34619 sed 's/^/| /' conftest.$ac_ext >&5
34620
34621         eval "$as_ac_Header=no"
34622 fi
34623
34624 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34625 fi
34626 ac_res=`eval echo '${'$as_ac_Header'}'`
34627                { echo "$as_me:$LINENO: result: $ac_res" >&5
34628 echo "${ECHO_T}$ac_res" >&6; }
34629 if test `eval echo '${'$as_ac_Header'}'` = yes; then
34630   cat >>confdefs.h <<_ACEOF
34631 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
34632 _ACEOF
34633
34634                               GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXxf86vm"
34635
34636 fi
34637
34638 done
34639
34640         else
34641             { echo "$as_me:$LINENO: result: no" >&5
34642 echo "${ECHO_T}no" >&6; }
34643         fi
34644     fi
34645 fi
34646
34647 if test "$wxUSE_DETECT_SM" = "yes"; then
34648     if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_MAC" != 1 -a "$wxUSE_OLD_COCOA" != 1; then
34649         { echo "$as_me:$LINENO: checking for -lSM - X11 session management" >&5
34650 echo $ECHO_N "checking for -lSM - X11 session management... $ECHO_C" >&6; }
34651
34652   ac_find_libraries=
34653   for ac_dir in $SEARCH_LIB
34654   do
34655     for ac_extension in a so sl dylib dll.a; do
34656       if test -f "$ac_dir/libSM.$ac_extension"; then
34657         ac_find_libraries=$ac_dir
34658         break 2
34659       fi
34660     done
34661   done
34662
34663         if test "$ac_find_libraries" != "" ; then
34664
34665     if test "$ac_find_libraries" = "default location"; then
34666     ac_path_to_link=""
34667   else
34668     echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
34669     result=$?
34670     if test $result = 0; then
34671       ac_path_to_link=""
34672     else
34673       ac_path_to_link=" -L$ac_find_libraries"
34674     fi
34675   fi
34676
34677             if test "$ac_path_to_link" != " -L/usr/lib" ; then
34678                 LDFLAGS="$LDFLAGS $ac_path_to_link"
34679             fi
34680             GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lSM"
34681             { echo "$as_me:$LINENO: result: yes" >&5
34682 echo "${ECHO_T}yes" >&6; }
34683         else
34684             { echo "$as_me:$LINENO: result: no" >&5
34685 echo "${ECHO_T}no" >&6; }
34686             { echo "$as_me:$LINENO: WARNING: libSM not found; disabling session management detection" >&5
34687 echo "$as_me: WARNING: libSM not found; disabling session management detection" >&2;}
34688             wxUSE_DETECT_SM="no"
34689         fi
34690     else
34691         wxUSE_DETECT_SM="no"
34692     fi
34693 fi
34694
34695
34696
34697 USE_OPENGL=0
34698 if test "$wxUSE_OPENGL" = "yes" -o "$wxUSE_OPENGL" = "auto"; then
34699
34700
34701     if test "$wxUSE_OSX_CARBON" = 1 -o "$wxUSE_OSX_COCOA" = 1 -o "$wxUSE_OLD_COCOA" = 1; then
34702         OPENGL_LIBS="-framework OpenGL -framework AGL"
34703     elif test "$wxUSE_MSW" = 1; then
34704         OPENGL_LIBS="-lopengl32 -lglu32"
34705     elif test "$wxUSE_MOTIF" = 1 -o "$wxUSE_X11" = 1 -o "$wxUSE_GTK2" = 1 -o "$wxUSE_GTK" = 1; then
34706
34707                         { echo "$as_me:$LINENO: checking for OpenGL headers" >&5
34708 echo $ECHO_N "checking for OpenGL headers... $ECHO_C" >&6; }
34709
34710 ac_find_includes=
34711 for ac_dir in $SEARCH_INCLUDE /opt/graphics/OpenGL/include /usr/include
34712   do
34713     if test -f "$ac_dir/GL/gl.h"; then
34714       ac_find_includes=$ac_dir
34715       break
34716     fi
34717   done
34718
34719         if test "$ac_find_includes" != "" ; then
34720             { echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
34721 echo "${ECHO_T}found in $ac_find_includes" >&6; }
34722
34723     if test "x$ac_find_includes" = "x/usr/include"; then
34724     ac_path_to_include=""
34725   else
34726     echo "$CPPFLAGS" | grep "\-I$ac_find_includes" > /dev/null
34727     result=$?
34728     if test $result = 0; then
34729       ac_path_to_include=""
34730     else
34731       ac_path_to_include=" -I$ac_find_includes"
34732     fi
34733   fi
34734
34735             CPPFLAGS="$ac_path_to_include $CPPFLAGS"
34736         else
34737             { echo "$as_me:$LINENO: result: not found" >&5
34738 echo "${ECHO_T}not found" >&6; }
34739         fi
34740
34741         { echo "$as_me:$LINENO: checking for GL/gl.h" >&5
34742 echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6; }
34743 if test "${ac_cv_header_GL_gl_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/gl.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_gl_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_gl_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_gl_h" >&5
34784 echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6; }
34785 if test $ac_cv_header_GL_gl_h = yes; then
34786
34787             { echo "$as_me:$LINENO: checking for GL/glu.h" >&5
34788 echo $ECHO_N "checking for GL/glu.h... $ECHO_C" >&6; }
34789 if test "${ac_cv_header_GL_glu_h+set}" = set; then
34790   echo $ECHO_N "(cached) $ECHO_C" >&6
34791 else
34792   cat >conftest.$ac_ext <<_ACEOF
34793 /* confdefs.h.  */
34794 _ACEOF
34795 cat confdefs.h >>conftest.$ac_ext
34796 cat >>conftest.$ac_ext <<_ACEOF
34797 /* end confdefs.h.  */
34798
34799
34800 #include <GL/glu.h>
34801 _ACEOF
34802 rm -f conftest.$ac_objext
34803 if { (ac_try="$ac_compile"
34804 case "(($ac_try" in
34805   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34806   *) ac_try_echo=$ac_try;;
34807 esac
34808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34809   (eval "$ac_compile") 2>conftest.er1
34810   ac_status=$?
34811   grep -v '^ *+' conftest.er1 >conftest.err
34812   rm -f conftest.er1
34813   cat conftest.err >&5
34814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34815   (exit $ac_status); } && {
34816          test -z "$ac_c_werror_flag" ||
34817          test ! -s conftest.err
34818        } && test -s conftest.$ac_objext; then
34819   ac_cv_header_GL_glu_h=yes
34820 else
34821   echo "$as_me: failed program was:" >&5
34822 sed 's/^/| /' conftest.$ac_ext >&5
34823
34824         ac_cv_header_GL_glu_h=no
34825 fi
34826
34827 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34828 fi
34829 { echo "$as_me:$LINENO: result: $ac_cv_header_GL_glu_h" >&5
34830 echo "${ECHO_T}$ac_cv_header_GL_glu_h" >&6; }
34831 if test $ac_cv_header_GL_glu_h = yes; then
34832
34833                 found_gl=0
34834
34835                 { echo "$as_me:$LINENO: checking for -lGL" >&5
34836 echo $ECHO_N "checking for -lGL... $ECHO_C" >&6; }
34837
34838   ac_find_libraries=
34839   for ac_dir in $SEARCH_LIB /opt/graphics/OpenGL/lib
34840   do
34841     for ac_extension in a so sl dylib dll.a; do
34842       if test -f "$ac_dir/libGL.$ac_extension"; then
34843         ac_find_libraries=$ac_dir
34844         break 2
34845       fi
34846     done
34847   done
34848
34849                 if test "$ac_find_libraries" != "" ; then
34850                     { echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
34851 echo "${ECHO_T}found in $ac_find_libraries" >&6; }
34852
34853
34854     if test "$ac_find_libraries" = "default location"; then
34855     ac_path_to_link=""
34856   else
34857     echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
34858     result=$?
34859     if test $result = 0; then
34860       ac_path_to_link=""
34861     else
34862       ac_path_to_link=" -L$ac_find_libraries"
34863     fi
34864   fi
34865
34866                     if test "$ac_path_to_link" != " -L/usr/lib" ; then
34867                         LDFLAGS_GL="$ac_path_to_link"
34868                     fi
34869
34870                                                                                 { echo "$as_me:$LINENO: checking for -lGLU" >&5
34871 echo $ECHO_N "checking for -lGLU... $ECHO_C" >&6; }
34872
34873   ac_find_libraries=
34874   for ac_dir in $SEARCH_LIB
34875   do
34876     for ac_extension in a so sl dylib dll.a; do
34877       if test -f "$ac_dir/libGLU.$ac_extension"; then
34878         ac_find_libraries=$ac_dir
34879         break 2
34880       fi
34881     done
34882   done
34883
34884                     if test "$ac_find_libraries" != "" ; then
34885
34886     if test "$ac_find_libraries" = "default location"; then
34887     ac_path_to_link=""
34888   else
34889     echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
34890     result=$?
34891     if test $result = 0; then
34892       ac_path_to_link=""
34893     else
34894       ac_path_to_link=" -L$ac_find_libraries"
34895     fi
34896   fi
34897
34898                         if test "$ac_path_to_link" != " -L/usr/lib" -a \
34899                                     "$ac_path_to_link" != "$LDFLAGS_GL"; then
34900                             LDFLAGS_GL="$LDFLAGS_GL$ac_path_to_link"
34901                         fi
34902
34903                         found_gl=1
34904                         OPENGL_LIBS="-lGL -lGLU"
34905                         { echo "$as_me:$LINENO: result: yes" >&5
34906 echo "${ECHO_T}yes" >&6; }
34907                     else
34908                         { echo "$as_me:$LINENO: result: no" >&5
34909 echo "${ECHO_T}no" >&6; }
34910                     fi
34911                 else
34912                     { echo "$as_me:$LINENO: result: no" >&5
34913 echo "${ECHO_T}no" >&6; }
34914                 fi
34915
34916                 if test "$found_gl" != 1; then
34917                     { echo "$as_me:$LINENO: checking for -lMesaGL" >&5
34918 echo $ECHO_N "checking for -lMesaGL... $ECHO_C" >&6; }
34919
34920   ac_find_libraries=
34921   for ac_dir in $SEARCH_LIB
34922   do
34923     for ac_extension in a so sl dylib dll.a; do
34924       if test -f "$ac_dir/libMesaGL.$ac_extension"; then
34925         ac_find_libraries=$ac_dir
34926         break 2
34927       fi
34928     done
34929   done
34930
34931                     if test "$ac_find_libraries" != "" ; then
34932
34933     if test "$ac_find_libraries" = "default location"; then
34934     ac_path_to_link=""
34935   else
34936     echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
34937     result=$?
34938     if test $result = 0; then
34939       ac_path_to_link=""
34940     else
34941       ac_path_to_link=" -L$ac_find_libraries"
34942     fi
34943   fi
34944
34945                         LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
34946                         OPENGL_LIBS="-lMesaGL -lMesaGLU"
34947                         { echo "$as_me:$LINENO: result: yes" >&5
34948 echo "${ECHO_T}yes" >&6; }
34949                     else
34950                         { echo "$as_me:$LINENO: result: no" >&5
34951 echo "${ECHO_T}no" >&6; }
34952                     fi
34953                 fi
34954
34955 fi
34956
34957
34958
34959 fi
34960
34961
34962
34963         if test "x$OPENGL_LIBS" = "x"; then
34964             if test "$wxUSE_OPENGL" = "yes"; then
34965                 { { echo "$as_me:$LINENO: error: OpenGL libraries not available" >&5
34966 echo "$as_me: error: OpenGL libraries not available" >&2;}
34967    { (exit 1); exit 1; }; }
34968             else
34969                                 { echo "$as_me:$LINENO: WARNING: OpenGL libraries not available, disabling support for OpenGL" >&5
34970 echo "$as_me: WARNING: OpenGL libraries not available, disabling support for OpenGL" >&2;}
34971                 wxUSE_OPENGL=no
34972                 USE_OPENGL=0
34973             fi
34974         fi
34975     else
34976         { echo "$as_me:$LINENO: WARNING: wxGLCanvas not implemented for this port, library will be compiled without it." >&5
34977 echo "$as_me: WARNING: wxGLCanvas not implemented for this port, library will be compiled without it." >&2;}
34978         wxUSE_OPENGL="no"
34979     fi
34980
34981     if test "$wxUSE_OPENGL" = "auto"; then
34982                                 wxUSE_OPENGL=yes
34983     fi
34984
34985     if test "$wxUSE_OPENGL" = "yes"; then
34986         USE_OPENGL=1
34987         cat >>confdefs.h <<\_ACEOF
34988 #define wxUSE_OPENGL 1
34989 _ACEOF
34990
34991         cat >>confdefs.h <<\_ACEOF
34992 #define wxUSE_GLCANVAS 1
34993 _ACEOF
34994
34995         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl opengl/cube opengl/penguin opengl/isosurf"
34996     fi
34997 fi
34998
34999
35000 if test -n "$TOOLKIT" ; then
35001     TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__"
35002 fi
35003
35004
35005
35006 if test "$wxUSE_SHARED" = "yes"; then
35007     case "${host}" in
35008       *-pc-msdosdjgpp )
35009                 wxUSE_SHARED=no
35010         { echo "$as_me:$LINENO: WARNING: Host system doesn't support shared libraries, disabling" >&5
35011 echo "$as_me: WARNING: Host system doesn't support shared libraries, disabling" >&2;}
35012       ;;
35013     esac
35014 fi
35015
35016 if test "$wxUSE_SHARED" = "yes"; then
35017
35018
35019     case "${host}" in
35020         *-*-cygwin* | *-*-mingw* )
35021                                                                                                 wx_cv_version_script=no
35022             ;;
35023
35024         *)
35025             { echo "$as_me:$LINENO: checking if the linker accepts --version-script" >&5
35026 echo $ECHO_N "checking if the linker accepts --version-script... $ECHO_C" >&6; }
35027 if test "${wx_cv_version_script+set}" = set; then
35028   echo $ECHO_N "(cached) $ECHO_C" >&6
35029 else
35030
35031                 echo "VER_1 { *; };" >conftest.sym
35032                 echo "int main() { return 0; }" >conftest.cpp
35033
35034                 if { ac_try='
35035                         $CXX -o conftest.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
35036                         -Wl,--version-script,conftest.sym >/dev/null 2>conftest.stderr'
35037   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35038   (eval $ac_try) 2>&5
35039   ac_status=$?
35040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35041   (exit $ac_status); }; } ; then
35042                   if test -s conftest.stderr ; then
35043                       wx_cv_version_script=no
35044                   else
35045                       wx_cv_version_script=yes
35046                   fi
35047                 else
35048                   wx_cv_version_script=no
35049                 fi
35050
35051                                                                                                                                                                                                 if test $wx_cv_version_script = yes
35052                 then
35053                   echo "struct B { virtual ~B() { } }; \
35054                         struct D : public B { }; \
35055                         void F() { D d; }" > conftest.cpp
35056
35057                   if { ac_try='
35058                         $CXX -shared -fPIC -o conftest1.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
35059                         -Wl,--version-script,conftest.sym >/dev/null 2>/dev/null'
35060   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35061   (eval $ac_try) 2>&5
35062   ac_status=$?
35063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35064   (exit $ac_status); }; } &&
35065                      { ac_try='
35066                         $CXX -shared -fPIC -o conftest2.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
35067                         -Wl,--version-script,conftest.sym conftest1.output >/dev/null 2>/dev/null'
35068   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35069   (eval $ac_try) 2>&5
35070   ac_status=$?
35071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35072   (exit $ac_status); }; }
35073                   then
35074                     if { ac_try='
35075                           $CXX -shared -fPIC -o conftest3.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
35076                           -Wl,--version-script,conftest.sym conftest2.output conftest1.output >/dev/null 2>/dev/null'
35077   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35078   (eval $ac_try) 2>&5
35079   ac_status=$?
35080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35081   (exit $ac_status); }; }
35082                     then
35083                       wx_cv_version_script=yes
35084                     else
35085                       wx_cv_version_script=no
35086                     fi
35087                   fi
35088                 fi
35089
35090                 rm -f conftest.output conftest.stderr conftest.sym conftest.cpp
35091                 rm -f conftest1.output conftest2.output conftest3.output
35092
35093 fi
35094 { echo "$as_me:$LINENO: result: $wx_cv_version_script" >&5
35095 echo "${ECHO_T}$wx_cv_version_script" >&6; }
35096
35097             if test $wx_cv_version_script = yes ; then
35098                 LDFLAGS_VERSIONING="-Wl,--version-script,\$(wx_top_builddir)/version-script"
35099             fi
35100             ;;
35101     esac
35102
35103
35104             if test "$wxUSE_VISIBILITY" != "no"; then
35105
35106
35107   if test -n "$GCC"; then
35108     CFLAGS_VISIBILITY="-fvisibility=hidden"
35109     CXXFLAGS_VISIBILITY="-fvisibility=hidden -fvisibility-inlines-hidden"
35110     { echo "$as_me:$LINENO: checking for symbols visibility support" >&5
35111 echo $ECHO_N "checking for symbols visibility support... $ECHO_C" >&6; }
35112     if test "${wx_cv_cc_visibility+set}" = set; then
35113   echo $ECHO_N "(cached) $ECHO_C" >&6
35114 else
35115
35116       wx_save_CXXFLAGS="$CXXFLAGS"
35117       CXXFLAGS="$CXXFLAGS $CXXFLAGS_VISIBILITY"
35118       ac_ext=cpp
35119 ac_cpp='$CXXCPP $CPPFLAGS'
35120 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35121 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35122 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
35123
35124       cat >conftest.$ac_ext <<_ACEOF
35125 /* confdefs.h.  */
35126 _ACEOF
35127 cat confdefs.h >>conftest.$ac_ext
35128 cat >>conftest.$ac_ext <<_ACEOF
35129 /* end confdefs.h.  */
35130
35131          /* we need gcc >= 4.0, older versions with visibility support
35132             didn't have class visibility: */
35133          #if defined(__GNUC__) && __GNUC__ < 4
35134          error this gcc is too old;
35135          #endif
35136
35137          /* visibility only makes sense for ELF shared libs: */
35138          #if !defined(__ELF__) && !defined(__APPLE__)
35139          error this platform has no visibility;
35140          #endif
35141
35142          /* at the time of Xcode 4.1 / Clang 3, Clang++ still didn't have the bugs sorted out: */
35143          #if defined(__clang__)
35144          clang compiler is still broken w.r.t. visibility;
35145          #endif
35146
35147          extern __attribute__((__visibility__("hidden"))) int hiddenvar;
35148          extern __attribute__((__visibility__("default"))) int exportedvar;
35149          extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void);
35150          extern __attribute__((__visibility__("default"))) int exportedfunc (void);
35151          class __attribute__((__visibility__("default"))) Foo {
35152            Foo() {}
35153          };
35154
35155 int
35156 main ()
35157 {
35158
35159   ;
35160   return 0;
35161 }
35162 _ACEOF
35163 rm -f conftest.$ac_objext
35164 if { (ac_try="$ac_compile"
35165 case "(($ac_try" in
35166   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35167   *) ac_try_echo=$ac_try;;
35168 esac
35169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35170   (eval "$ac_compile") 2>conftest.er1
35171   ac_status=$?
35172   grep -v '^ *+' conftest.er1 >conftest.err
35173   rm -f conftest.er1
35174   cat conftest.err >&5
35175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35176   (exit $ac_status); } && {
35177          test -z "$ac_cxx_werror_flag" ||
35178          test ! -s conftest.err
35179        } && test -s conftest.$ac_objext; then
35180   wx_cv_cc_visibility=yes
35181 else
35182   echo "$as_me: failed program was:" >&5
35183 sed 's/^/| /' conftest.$ac_ext >&5
35184
35185         wx_cv_cc_visibility=no
35186 fi
35187
35188 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35189       ac_ext=c
35190 ac_cpp='$CPP $CPPFLAGS'
35191 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35192 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35193 ac_compiler_gnu=$ac_cv_c_compiler_gnu
35194
35195       CXXFLAGS="$wx_save_CXXFLAGS"
35196 fi
35197
35198     { echo "$as_me:$LINENO: result: $wx_cv_cc_visibility" >&5
35199 echo "${ECHO_T}$wx_cv_cc_visibility" >&6; }
35200     if test $wx_cv_cc_visibility = yes; then
35201                               { echo "$as_me:$LINENO: checking for broken libstdc++ visibility" >&5
35202 echo $ECHO_N "checking for broken libstdc++ visibility... $ECHO_C" >&6; }
35203       if test "${wx_cv_cc_broken_libstdcxx_visibility+set}" = set; then
35204   echo $ECHO_N "(cached) $ECHO_C" >&6
35205 else
35206
35207         wx_save_CXXFLAGS="$CXXFLAGS"
35208         wx_save_LDFLAGS="$LDFLAGS"
35209         CXXFLAGS="$CXXFLAGS $CXXFLAGS_VISIBILITY"
35210         LDFLAGS="$LDFLAGS -shared -fPIC"
35211         ac_ext=cpp
35212 ac_cpp='$CXXCPP $CPPFLAGS'
35213 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35214 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35215 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
35216
35217         cat >conftest.$ac_ext <<_ACEOF
35218 /* confdefs.h.  */
35219 _ACEOF
35220 cat confdefs.h >>conftest.$ac_ext
35221 cat >>conftest.$ac_ext <<_ACEOF
35222 /* end confdefs.h.  */
35223
35224             #include <string>
35225
35226 int
35227 main ()
35228 {
35229
35230             std::string s("hello");
35231             return s.length();
35232
35233   ;
35234   return 0;
35235 }
35236 _ACEOF
35237 rm -f conftest.$ac_objext conftest$ac_exeext
35238 if { (ac_try="$ac_link"
35239 case "(($ac_try" in
35240   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35241   *) ac_try_echo=$ac_try;;
35242 esac
35243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35244   (eval "$ac_link") 2>conftest.er1
35245   ac_status=$?
35246   grep -v '^ *+' conftest.er1 >conftest.err
35247   rm -f conftest.er1
35248   cat conftest.err >&5
35249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35250   (exit $ac_status); } && {
35251          test -z "$ac_cxx_werror_flag" ||
35252          test ! -s conftest.err
35253        } && test -s conftest$ac_exeext &&
35254        $as_test_x conftest$ac_exeext; then
35255   wx_cv_cc_broken_libstdcxx_visibility=no
35256 else
35257   echo "$as_me: failed program was:" >&5
35258 sed 's/^/| /' conftest.$ac_ext >&5
35259
35260         wx_cv_cc_broken_libstdcxx_visibility=yes
35261 fi
35262
35263 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35264       conftest$ac_exeext conftest.$ac_ext
35265         ac_ext=c
35266 ac_cpp='$CPP $CPPFLAGS'
35267 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35268 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35269 ac_compiler_gnu=$ac_cv_c_compiler_gnu
35270
35271         CXXFLAGS="$wx_save_CXXFLAGS"
35272         LDFLAGS="$wx_save_LDFLAGS"
35273 fi
35274
35275       { echo "$as_me:$LINENO: result: $wx_cv_cc_broken_libstdcxx_visibility" >&5
35276 echo "${ECHO_T}$wx_cv_cc_broken_libstdcxx_visibility" >&6; }
35277
35278       if test $wx_cv_cc_broken_libstdcxx_visibility = yes; then
35279         { echo "$as_me:$LINENO: checking whether we can work around it" >&5
35280 echo $ECHO_N "checking whether we can work around it... $ECHO_C" >&6; }
35281         if test "${wx_cv_cc_visibility_workaround+set}" = set; then
35282   echo $ECHO_N "(cached) $ECHO_C" >&6
35283 else
35284
35285           ac_ext=cpp
35286 ac_cpp='$CXXCPP $CPPFLAGS'
35287 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35288 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35289 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
35290
35291           cat >conftest.$ac_ext <<_ACEOF
35292 /* confdefs.h.  */
35293 _ACEOF
35294 cat confdefs.h >>conftest.$ac_ext
35295 cat >>conftest.$ac_ext <<_ACEOF
35296 /* end confdefs.h.  */
35297
35298               #pragma GCC visibility push(default)
35299               #include <string>
35300               #pragma GCC visibility pop
35301
35302 int
35303 main ()
35304 {
35305
35306               std::string s("hello");
35307               return s.length();
35308
35309   ;
35310   return 0;
35311 }
35312 _ACEOF
35313 rm -f conftest.$ac_objext conftest$ac_exeext
35314 if { (ac_try="$ac_link"
35315 case "(($ac_try" in
35316   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35317   *) ac_try_echo=$ac_try;;
35318 esac
35319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35320   (eval "$ac_link") 2>conftest.er1
35321   ac_status=$?
35322   grep -v '^ *+' conftest.er1 >conftest.err
35323   rm -f conftest.er1
35324   cat conftest.err >&5
35325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35326   (exit $ac_status); } && {
35327          test -z "$ac_cxx_werror_flag" ||
35328          test ! -s conftest.err
35329        } && test -s conftest$ac_exeext &&
35330        $as_test_x conftest$ac_exeext; then
35331   wx_cv_cc_visibility_workaround=no
35332 else
35333   echo "$as_me: failed program was:" >&5
35334 sed 's/^/| /' conftest.$ac_ext >&5
35335
35336         wx_cv_cc_visibility_workaround=yes
35337 fi
35338
35339 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35340       conftest$ac_exeext conftest.$ac_ext
35341           ac_ext=c
35342 ac_cpp='$CPP $CPPFLAGS'
35343 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35344 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35345 ac_compiler_gnu=$ac_cv_c_compiler_gnu
35346
35347
35348 fi
35349
35350         { echo "$as_me:$LINENO: result: $wx_cv_cc_visibility_workaround" >&5
35351 echo "${ECHO_T}$wx_cv_cc_visibility_workaround" >&6; }
35352
35353         if test $wx_cv_cc_visibility_workaround = no; then
35354                     wx_cv_cc_visibility=no
35355         fi
35356       fi
35357     fi
35358
35359     if test $wx_cv_cc_visibility = yes; then
35360       cat >>confdefs.h <<\_ACEOF
35361 #define HAVE_VISIBILITY 1
35362 _ACEOF
35363
35364       if test $wx_cv_cc_broken_libstdcxx_visibility = yes; then
35365         cat >>confdefs.h <<\_ACEOF
35366 #define HAVE_BROKEN_LIBSTDCXX_VISIBILITY 1
35367 _ACEOF
35368
35369       fi
35370     else
35371       CFLAGS_VISIBILITY=""
35372       CXXFLAGS_VISIBILITY=""
35373     fi
35374
35375
35376   fi
35377
35378     fi
35379
35380         if test "x$SUNCXX" = xyes; then
35381         SAMPLES_RPATH_FLAG="-R\$(wx_top_builddir)/lib"
35382         WXCONFIG_RPATH="-R\$libdir"
35383     else
35384     case "${host}" in
35385       *-*-linux* | *-*-gnu* )
35386         SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(wx_top_builddir)/lib"
35387         WXCONFIG_RPATH="-Wl,-rpath,\$libdir"
35388         ;;
35389
35390       *-*-solaris2* )
35391
35392                         CPPFLAGS="-isystem /usr/openwin/include $CPPFLAGS"
35393
35394                         saveLdflags="$LDFLAGS"
35395         LDFLAGS="$saveLdflags -Wl,-rpath,/"
35396         { echo "$as_me:$LINENO: checking if the linker accepts -rpath" >&5
35397 echo $ECHO_N "checking if the linker accepts -rpath... $ECHO_C" >&6; }
35398         cat >conftest.$ac_ext <<_ACEOF
35399 /* confdefs.h.  */
35400 _ACEOF
35401 cat confdefs.h >>conftest.$ac_ext
35402 cat >>conftest.$ac_ext <<_ACEOF
35403 /* end confdefs.h.  */
35404
35405 int
35406 main ()
35407 {
35408
35409   ;
35410   return 0;
35411 }
35412 _ACEOF
35413 rm -f conftest.$ac_objext conftest$ac_exeext
35414 if { (ac_try="$ac_link"
35415 case "(($ac_try" in
35416   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35417   *) ac_try_echo=$ac_try;;
35418 esac
35419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35420   (eval "$ac_link") 2>conftest.er1
35421   ac_status=$?
35422   grep -v '^ *+' conftest.er1 >conftest.err
35423   rm -f conftest.er1
35424   cat conftest.err >&5
35425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35426   (exit $ac_status); } && {
35427          test -z "$ac_c_werror_flag" ||
35428          test ! -s conftest.err
35429        } && test -s conftest$ac_exeext &&
35430        $as_test_x conftest$ac_exeext; then
35431
35432                 { echo "$as_me:$LINENO: result: yes" >&5
35433 echo "${ECHO_T}yes" >&6; }
35434                 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(wx_top_builddir)/lib"
35435                 WXCONFIG_RPATH="-Wl,-rpath,\$libdir"
35436
35437 else
35438   echo "$as_me: failed program was:" >&5
35439 sed 's/^/| /' conftest.$ac_ext >&5
35440
35441
35442                 { echo "$as_me:$LINENO: result: no" >&5
35443 echo "${ECHO_T}no" >&6; }
35444                 { echo "$as_me:$LINENO: checking if the linker accepts -R" >&5
35445 echo $ECHO_N "checking if the linker accepts -R... $ECHO_C" >&6; }
35446                 LDFLAGS="$saveLdflags -Wl,-R,/"
35447                 cat >conftest.$ac_ext <<_ACEOF
35448 /* confdefs.h.  */
35449 _ACEOF
35450 cat confdefs.h >>conftest.$ac_ext
35451 cat >>conftest.$ac_ext <<_ACEOF
35452 /* end confdefs.h.  */
35453
35454 int
35455 main ()
35456 {
35457
35458   ;
35459   return 0;
35460 }
35461 _ACEOF
35462 rm -f conftest.$ac_objext conftest$ac_exeext
35463 if { (ac_try="$ac_link"
35464 case "(($ac_try" in
35465   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35466   *) ac_try_echo=$ac_try;;
35467 esac
35468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35469   (eval "$ac_link") 2>conftest.er1
35470   ac_status=$?
35471   grep -v '^ *+' conftest.er1 >conftest.err
35472   rm -f conftest.er1
35473   cat conftest.err >&5
35474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35475   (exit $ac_status); } && {
35476          test -z "$ac_c_werror_flag" ||
35477          test ! -s conftest.err
35478        } && test -s conftest$ac_exeext &&
35479        $as_test_x conftest$ac_exeext; then
35480
35481                         { echo "$as_me:$LINENO: result: yes" >&5
35482 echo "${ECHO_T}yes" >&6; }
35483                         SAMPLES_RPATH_FLAG="-Wl,-R,\$(wx_top_builddir)/lib"
35484                         WXCONFIG_RPATH="-Wl,-R,\$libdir"
35485
35486 else
35487   echo "$as_me: failed program was:" >&5
35488 sed 's/^/| /' conftest.$ac_ext >&5
35489
35490
35491                         { echo "$as_me:$LINENO: result: no" >&5
35492 echo "${ECHO_T}no" >&6; }
35493
35494 fi
35495
35496 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35497       conftest$ac_exeext conftest.$ac_ext
35498
35499 fi
35500
35501 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35502       conftest$ac_exeext conftest.$ac_ext
35503         LDFLAGS="$saveLdflags"
35504       ;;
35505
35506       *-*-darwin* )
35507         install_name_tool=`which ${HOST_PREFIX}install_name_tool`
35508         if test "$install_name_tool" -a -x "$install_name_tool"; then
35509             DYLIB_RPATH_POSTLINK="${HOST_PREFIX}install_name_tool -id \$@ \$@"
35510             cat <<EOF >change-install-names
35511 #!/bin/sh
35512 libnames=\`cd \${2} ; ls -1 | grep '\.[0-9][0-9]*\.dylib\$'\`
35513 for i in \${libnames} ; do
35514     ${HOST_PREFIX}install_name_tool -id \${3}/\${i} \${1}/\${i}
35515     for dep in \${libnames} ; do
35516         ${HOST_PREFIX}install_name_tool -change \${2}/\${dep} \${3}/\${dep} \${1}/\${i}
35517     done
35518 done
35519 EOF
35520             chmod +x change-install-names
35521             DYLIB_RPATH_INSTALL="\$(wx_top_builddir)/change-install-names \${DESTDIR}\${libdir} \$(wx_top_builddir)/lib \${libdir}"
35522         fi
35523
35524                                         HEADER_PAD_OPTION="-headerpad_max_install_names"
35525       ;;
35526
35527       *-*-cygwin* | *-*-mingw32* )
35528         ;;
35529
35530       *-*-hpux* )
35531         SAMPLES_RPATH_FLAG="-Wl,+b,\$(wx_top_builddir)/lib"
35532         WXCONFIG_RPATH="-Wl,+b,\$libdir"
35533         ;;
35534
35535     esac
35536     fi
35537
35538             WXCONFIG_ONLY_CPPFLAGS="$WXCONFIG_ONLY_CPPFLAGS -DWXUSINGDLL"
35539
35540     if test $wxUSE_RPATH = "no"; then
35541         SAMPLES_RPATH_FLAG=''
35542         DYLIB_PATH_POSTLINK=''
35543         WXCONFIG_RPATH=''
35544     fi
35545
35546     SHARED=1
35547
35548 else
35549
35550     config_linkage_component="-static"
35551     SHARED=0
35552
35553 fi
35554
35555
35556 UNICODE=0
35557 lib_unicode_suffix=
35558 WX_CHARTYPE="ansi"
35559 if test "$wxUSE_UNICODE" = "yes"; then
35560     lib_unicode_suffix=u
35561     WX_CHARTYPE="unicode"
35562     UNICODE=1
35563 fi
35564
35565 WX_FLAVOUR=${WX_FLAVOUR:+-$WX_FLAVOUR}
35566 WX_LIB_FLAVOUR=`echo $WX_FLAVOUR | tr '-' '_'`
35567
35568 DEBUG_INFO=0
35569 if test "$wxUSE_DEBUG_INFO" = "yes"; then
35570     DEBUG_INFO=1
35571 fi
35572
35573 WX_VERSION_TAG=`echo WX${lib_unicode_suffix}${WX_LIB_FLAVOUR}_${WX_RELEASE} | tr '[a-z]' '[A-Z]'`
35574
35575 TOOLCHAIN_NAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}${HOST_SUFFIX}"
35576
35577 TOOLCHAIN_FULLNAME="${HOST_PREFIX}${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}-${WX_CHARTYPE}${config_linkage_component}-${WX_RELEASE}${WX_FLAVOUR}"
35578
35579
35580 if test "$wxUSE_OSX_CARBON" = 1 -o "$wxUSE_OSX_COCOA" = 1 -o "$wxUSE_OLD_COCOA" = 1; then
35581     WX_LIBRARY_BASENAME_NOGUI="wx_base${lib_unicode_suffix}${WX_LIB_FLAVOUR}"
35582 else
35583     WX_LIBRARY_BASENAME_NOGUI="wx_base${WXBASEPORT}${lib_unicode_suffix}${WX_LIB_FLAVOUR}"
35584 fi
35585 if test "${TOOLKIT_DIR}" = "os2"; then
35586     WX_LIBRARY_BASENAME_GUI="wx_pm${WIDGET_SET}${lib_unicode_suffix}${WX_LIB_FLAVOUR}"
35587 else
35588     WX_LIBRARY_BASENAME_GUI="wx_${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${WX_LIB_FLAVOUR}"
35589 fi
35590
35591
35592
35593 if test "$wxUSE_OLD_COCOA" = 1; then
35594
35595     ac_ext=c
35596 ac_cpp='$CPP $CPPFLAGS'
35597 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35598 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35599 ac_compiler_gnu=$ac_cv_c_compiler_gnu
35600
35601 ac_ext=m
35602
35603     { echo "$as_me:$LINENO: checking if AppKit/NSEvent.h conflicts with CoreFoundation" >&5
35604 echo $ECHO_N "checking if AppKit/NSEvent.h conflicts with CoreFoundation... $ECHO_C" >&6; }
35605     cat >conftest.$ac_ext <<_ACEOF
35606 /* confdefs.h.  */
35607 _ACEOF
35608 cat confdefs.h >>conftest.$ac_ext
35609 cat >>conftest.$ac_ext <<_ACEOF
35610 /* end confdefs.h.  */
35611 #include <AppKit/NSEvent.h>
35612 #include <CoreFoundation/CoreFoundation.h>
35613
35614 int
35615 main ()
35616 {
35617
35618   ;
35619   return 0;
35620 }
35621 _ACEOF
35622 rm -f conftest.$ac_objext
35623 if { (ac_try="$ac_compile"
35624 case "(($ac_try" in
35625   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35626   *) ac_try_echo=$ac_try;;
35627 esac
35628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35629   (eval "$ac_compile") 2>conftest.er1
35630   ac_status=$?
35631   grep -v '^ *+' conftest.er1 >conftest.err
35632   rm -f conftest.er1
35633   cat conftest.err >&5
35634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35635   (exit $ac_status); } && {
35636          test -z "$ac_c_werror_flag" ||
35637          test ! -s conftest.err
35638        } && test -s conftest.$ac_objext; then
35639   { echo "$as_me:$LINENO: result: no" >&5
35640 echo "${ECHO_T}no" >&6; }
35641 else
35642   echo "$as_me: failed program was:" >&5
35643 sed 's/^/| /' conftest.$ac_ext >&5
35644
35645         { echo "$as_me:$LINENO: result: yes" >&5
35646 echo "${ECHO_T}yes" >&6; }
35647         { echo "$as_me:$LINENO: checking if defining __Point__ will fix it" >&5
35648 echo $ECHO_N "checking if defining __Point__ will fix it... $ECHO_C" >&6; }
35649         cat >conftest.$ac_ext <<_ACEOF
35650 /* confdefs.h.  */
35651 _ACEOF
35652 cat confdefs.h >>conftest.$ac_ext
35653 cat >>conftest.$ac_ext <<_ACEOF
35654 /* end confdefs.h.  */
35655 #define __Point__ 1
35656 #include <AppKit/NSEvent.h>
35657 #include <CoreFoundation/CoreFoundation.h>
35658
35659 int
35660 main ()
35661 {
35662
35663   ;
35664   return 0;
35665 }
35666 _ACEOF
35667 rm -f conftest.$ac_objext
35668 if { (ac_try="$ac_compile"
35669 case "(($ac_try" in
35670   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35671   *) ac_try_echo=$ac_try;;
35672 esac
35673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35674   (eval "$ac_compile") 2>conftest.er1
35675   ac_status=$?
35676   grep -v '^ *+' conftest.er1 >conftest.err
35677   rm -f conftest.er1
35678   cat conftest.err >&5
35679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35680   (exit $ac_status); } && {
35681          test -z "$ac_c_werror_flag" ||
35682          test ! -s conftest.err
35683        } && test -s conftest.$ac_objext; then
35684   { echo "$as_me:$LINENO: result: yes" >&5
35685 echo "${ECHO_T}yes" >&6; }
35686             cat >>confdefs.h <<\_ACEOF
35687 #define __Point__ 1
35688 _ACEOF
35689
35690
35691 else
35692   echo "$as_me: failed program was:" >&5
35693 sed 's/^/| /' conftest.$ac_ext >&5
35694
35695         { { echo "$as_me:$LINENO: error: no
35696 See \`config.log' for more details." >&5
35697 echo "$as_me: error: no
35698 See \`config.log' for more details." >&2;}
35699    { (exit 1); exit 1; }; }
35700
35701 fi
35702
35703 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35704
35705 fi
35706
35707 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35708     ac_ext=c
35709 ac_cpp='$CPP $CPPFLAGS'
35710 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35711 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35712 ac_compiler_gnu=$ac_cv_c_compiler_gnu
35713
35714 fi
35715
35716
35717 { echo "$as_me:$LINENO: checking for mode_t" >&5
35718 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
35719 if test "${ac_cv_type_mode_t+set}" = set; then
35720   echo $ECHO_N "(cached) $ECHO_C" >&6
35721 else
35722   cat >conftest.$ac_ext <<_ACEOF
35723 /* confdefs.h.  */
35724 _ACEOF
35725 cat confdefs.h >>conftest.$ac_ext
35726 cat >>conftest.$ac_ext <<_ACEOF
35727 /* end confdefs.h.  */
35728 $ac_includes_default
35729 typedef mode_t ac__type_new_;
35730 int
35731 main ()
35732 {
35733 if ((ac__type_new_ *) 0)
35734   return 0;
35735 if (sizeof (ac__type_new_))
35736   return 0;
35737   ;
35738   return 0;
35739 }
35740 _ACEOF
35741 rm -f conftest.$ac_objext
35742 if { (ac_try="$ac_compile"
35743 case "(($ac_try" in
35744   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35745   *) ac_try_echo=$ac_try;;
35746 esac
35747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35748   (eval "$ac_compile") 2>conftest.er1
35749   ac_status=$?
35750   grep -v '^ *+' conftest.er1 >conftest.err
35751   rm -f conftest.er1
35752   cat conftest.err >&5
35753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35754   (exit $ac_status); } && {
35755          test -z "$ac_c_werror_flag" ||
35756          test ! -s conftest.err
35757        } && test -s conftest.$ac_objext; then
35758   ac_cv_type_mode_t=yes
35759 else
35760   echo "$as_me: failed program was:" >&5
35761 sed 's/^/| /' conftest.$ac_ext >&5
35762
35763         ac_cv_type_mode_t=no
35764 fi
35765
35766 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35767 fi
35768 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
35769 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
35770 if test $ac_cv_type_mode_t = yes; then
35771   :
35772 else
35773
35774 cat >>confdefs.h <<_ACEOF
35775 #define mode_t int
35776 _ACEOF
35777
35778 fi
35779
35780 { echo "$as_me:$LINENO: checking for off_t" >&5
35781 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
35782 if test "${ac_cv_type_off_t+set}" = set; then
35783   echo $ECHO_N "(cached) $ECHO_C" >&6
35784 else
35785   cat >conftest.$ac_ext <<_ACEOF
35786 /* confdefs.h.  */
35787 _ACEOF
35788 cat confdefs.h >>conftest.$ac_ext
35789 cat >>conftest.$ac_ext <<_ACEOF
35790 /* end confdefs.h.  */
35791 $ac_includes_default
35792 typedef off_t ac__type_new_;
35793 int
35794 main ()
35795 {
35796 if ((ac__type_new_ *) 0)
35797   return 0;
35798 if (sizeof (ac__type_new_))
35799   return 0;
35800   ;
35801   return 0;
35802 }
35803 _ACEOF
35804 rm -f conftest.$ac_objext
35805 if { (ac_try="$ac_compile"
35806 case "(($ac_try" in
35807   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35808   *) ac_try_echo=$ac_try;;
35809 esac
35810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35811   (eval "$ac_compile") 2>conftest.er1
35812   ac_status=$?
35813   grep -v '^ *+' conftest.er1 >conftest.err
35814   rm -f conftest.er1
35815   cat conftest.err >&5
35816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35817   (exit $ac_status); } && {
35818          test -z "$ac_c_werror_flag" ||
35819          test ! -s conftest.err
35820        } && test -s conftest.$ac_objext; then
35821   ac_cv_type_off_t=yes
35822 else
35823   echo "$as_me: failed program was:" >&5
35824 sed 's/^/| /' conftest.$ac_ext >&5
35825
35826         ac_cv_type_off_t=no
35827 fi
35828
35829 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35830 fi
35831 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
35832 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
35833 if test $ac_cv_type_off_t = yes; then
35834   :
35835 else
35836
35837 cat >>confdefs.h <<_ACEOF
35838 #define off_t long int
35839 _ACEOF
35840
35841 fi
35842
35843 { echo "$as_me:$LINENO: checking for pid_t" >&5
35844 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
35845 if test "${ac_cv_type_pid_t+set}" = set; then
35846   echo $ECHO_N "(cached) $ECHO_C" >&6
35847 else
35848   cat >conftest.$ac_ext <<_ACEOF
35849 /* confdefs.h.  */
35850 _ACEOF
35851 cat confdefs.h >>conftest.$ac_ext
35852 cat >>conftest.$ac_ext <<_ACEOF
35853 /* end confdefs.h.  */
35854 $ac_includes_default
35855 typedef pid_t ac__type_new_;
35856 int
35857 main ()
35858 {
35859 if ((ac__type_new_ *) 0)
35860   return 0;
35861 if (sizeof (ac__type_new_))
35862   return 0;
35863   ;
35864   return 0;
35865 }
35866 _ACEOF
35867 rm -f conftest.$ac_objext
35868 if { (ac_try="$ac_compile"
35869 case "(($ac_try" in
35870   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35871   *) ac_try_echo=$ac_try;;
35872 esac
35873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35874   (eval "$ac_compile") 2>conftest.er1
35875   ac_status=$?
35876   grep -v '^ *+' conftest.er1 >conftest.err
35877   rm -f conftest.er1
35878   cat conftest.err >&5
35879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35880   (exit $ac_status); } && {
35881          test -z "$ac_c_werror_flag" ||
35882          test ! -s conftest.err
35883        } && test -s conftest.$ac_objext; then
35884   ac_cv_type_pid_t=yes
35885 else
35886   echo "$as_me: failed program was:" >&5
35887 sed 's/^/| /' conftest.$ac_ext >&5
35888
35889         ac_cv_type_pid_t=no
35890 fi
35891
35892 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35893 fi
35894 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
35895 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
35896 if test $ac_cv_type_pid_t = yes; then
35897   :
35898 else
35899
35900 cat >>confdefs.h <<_ACEOF
35901 #define pid_t int
35902 _ACEOF
35903
35904 fi
35905
35906 { echo "$as_me:$LINENO: checking for size_t" >&5
35907 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
35908 if test "${ac_cv_type_size_t+set}" = set; then
35909   echo $ECHO_N "(cached) $ECHO_C" >&6
35910 else
35911   cat >conftest.$ac_ext <<_ACEOF
35912 /* confdefs.h.  */
35913 _ACEOF
35914 cat confdefs.h >>conftest.$ac_ext
35915 cat >>conftest.$ac_ext <<_ACEOF
35916 /* end confdefs.h.  */
35917 $ac_includes_default
35918 typedef size_t ac__type_new_;
35919 int
35920 main ()
35921 {
35922 if ((ac__type_new_ *) 0)
35923   return 0;
35924 if (sizeof (ac__type_new_))
35925   return 0;
35926   ;
35927   return 0;
35928 }
35929 _ACEOF
35930 rm -f conftest.$ac_objext
35931 if { (ac_try="$ac_compile"
35932 case "(($ac_try" in
35933   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35934   *) ac_try_echo=$ac_try;;
35935 esac
35936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35937   (eval "$ac_compile") 2>conftest.er1
35938   ac_status=$?
35939   grep -v '^ *+' conftest.er1 >conftest.err
35940   rm -f conftest.er1
35941   cat conftest.err >&5
35942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35943   (exit $ac_status); } && {
35944          test -z "$ac_c_werror_flag" ||
35945          test ! -s conftest.err
35946        } && test -s conftest.$ac_objext; then
35947   ac_cv_type_size_t=yes
35948 else
35949   echo "$as_me: failed program was:" >&5
35950 sed 's/^/| /' conftest.$ac_ext >&5
35951
35952         ac_cv_type_size_t=no
35953 fi
35954
35955 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35956 fi
35957 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
35958 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
35959 if test $ac_cv_type_size_t = yes; then
35960   :
35961 else
35962
35963 cat >>confdefs.h <<_ACEOF
35964 #define size_t unsigned int
35965 _ACEOF
35966
35967 fi
35968
35969
35970 { echo "$as_me:$LINENO: checking for ssize_t" >&5
35971 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
35972 if test "${ac_cv_type_ssize_t+set}" = set; then
35973   echo $ECHO_N "(cached) $ECHO_C" >&6
35974 else
35975   cat >conftest.$ac_ext <<_ACEOF
35976 /* confdefs.h.  */
35977 _ACEOF
35978 cat confdefs.h >>conftest.$ac_ext
35979 cat >>conftest.$ac_ext <<_ACEOF
35980 /* end confdefs.h.  */
35981 $ac_includes_default
35982 typedef ssize_t ac__type_new_;
35983 int
35984 main ()
35985 {
35986 if ((ac__type_new_ *) 0)
35987   return 0;
35988 if (sizeof (ac__type_new_))
35989   return 0;
35990   ;
35991   return 0;
35992 }
35993 _ACEOF
35994 rm -f conftest.$ac_objext
35995 if { (ac_try="$ac_compile"
35996 case "(($ac_try" in
35997   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35998   *) ac_try_echo=$ac_try;;
35999 esac
36000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36001   (eval "$ac_compile") 2>conftest.er1
36002   ac_status=$?
36003   grep -v '^ *+' conftest.er1 >conftest.err
36004   rm -f conftest.er1
36005   cat conftest.err >&5
36006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36007   (exit $ac_status); } && {
36008          test -z "$ac_c_werror_flag" ||
36009          test ! -s conftest.err
36010        } && test -s conftest.$ac_objext; then
36011   ac_cv_type_ssize_t=yes
36012 else
36013   echo "$as_me: failed program was:" >&5
36014 sed 's/^/| /' conftest.$ac_ext >&5
36015
36016         ac_cv_type_ssize_t=no
36017 fi
36018
36019 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36020 fi
36021 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
36022 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
36023 if test $ac_cv_type_ssize_t = yes; then
36024
36025 cat >>confdefs.h <<_ACEOF
36026 #define HAVE_SSIZE_T 1
36027 _ACEOF
36028
36029
36030 fi
36031
36032
36033 ac_ext=cpp
36034 ac_cpp='$CXXCPP $CPPFLAGS'
36035 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36036 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36037 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
36038  { echo "$as_me:$LINENO: checking if size_t is unsigned int" >&5
36039 echo $ECHO_N "checking if size_t is unsigned int... $ECHO_C" >&6; }
36040 if test "${wx_cv_size_t_is_uint+set}" = set; then
36041   echo $ECHO_N "(cached) $ECHO_C" >&6
36042 else
36043
36044                             cat >conftest.$ac_ext <<_ACEOF
36045 /* confdefs.h.  */
36046 _ACEOF
36047 cat confdefs.h >>conftest.$ac_ext
36048 cat >>conftest.$ac_ext <<_ACEOF
36049 /* end confdefs.h.  */
36050 #include <stddef.h>
36051 int
36052 main ()
36053 {
36054
36055             return 0; }
36056
36057             struct Foo { void foo(size_t); void foo(unsigned int); };
36058
36059             int bar() {
36060
36061   ;
36062   return 0;
36063 }
36064 _ACEOF
36065 rm -f conftest.$ac_objext
36066 if { (ac_try="$ac_compile"
36067 case "(($ac_try" in
36068   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36069   *) ac_try_echo=$ac_try;;
36070 esac
36071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36072   (eval "$ac_compile") 2>conftest.er1
36073   ac_status=$?
36074   grep -v '^ *+' conftest.er1 >conftest.err
36075   rm -f conftest.er1
36076   cat conftest.err >&5
36077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36078   (exit $ac_status); } && {
36079          test -z "$ac_cxx_werror_flag" ||
36080          test ! -s conftest.err
36081        } && test -s conftest.$ac_objext; then
36082   wx_cv_size_t_is_uint=no
36083 else
36084   echo "$as_me: failed program was:" >&5
36085 sed 's/^/| /' conftest.$ac_ext >&5
36086
36087         wx_cv_size_t_is_uint=yes
36088
36089 fi
36090
36091 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36092
36093
36094 fi
36095 { echo "$as_me:$LINENO: result: $wx_cv_size_t_is_uint" >&5
36096 echo "${ECHO_T}$wx_cv_size_t_is_uint" >&6; }
36097
36098 if test "$wx_cv_size_t_is_uint" = "yes"; then
36099     cat >>confdefs.h <<\_ACEOF
36100 #define wxSIZE_T_IS_UINT 1
36101 _ACEOF
36102
36103 else
36104     { echo "$as_me:$LINENO: checking if size_t is unsigned long" >&5
36105 echo $ECHO_N "checking if size_t is unsigned long... $ECHO_C" >&6; }
36106 if test "${wx_cv_size_t_is_ulong+set}" = set; then
36107   echo $ECHO_N "(cached) $ECHO_C" >&6
36108 else
36109   cat >conftest.$ac_ext <<_ACEOF
36110 /* confdefs.h.  */
36111 _ACEOF
36112 cat confdefs.h >>conftest.$ac_ext
36113 cat >>conftest.$ac_ext <<_ACEOF
36114 /* end confdefs.h.  */
36115 #include <stddef.h>
36116 int
36117 main ()
36118 {
36119
36120                 return 0; }
36121
36122                 struct Foo { void foo(size_t); void foo(unsigned long); };
36123
36124                 int bar() {
36125
36126   ;
36127   return 0;
36128 }
36129 _ACEOF
36130 rm -f conftest.$ac_objext
36131 if { (ac_try="$ac_compile"
36132 case "(($ac_try" in
36133   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36134   *) ac_try_echo=$ac_try;;
36135 esac
36136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36137   (eval "$ac_compile") 2>conftest.er1
36138   ac_status=$?
36139   grep -v '^ *+' conftest.er1 >conftest.err
36140   rm -f conftest.er1
36141   cat conftest.err >&5
36142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36143   (exit $ac_status); } && {
36144          test -z "$ac_cxx_werror_flag" ||
36145          test ! -s conftest.err
36146        } && test -s conftest.$ac_objext; then
36147   wx_cv_size_t_is_ulong=no
36148 else
36149   echo "$as_me: failed program was:" >&5
36150 sed 's/^/| /' conftest.$ac_ext >&5
36151
36152         wx_cv_size_t_is_ulong=yes
36153
36154 fi
36155
36156 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36157
36158 fi
36159 { echo "$as_me:$LINENO: result: $wx_cv_size_t_is_ulong" >&5
36160 echo "${ECHO_T}$wx_cv_size_t_is_ulong" >&6; }
36161
36162     if test "$wx_cv_size_t_is_ulong" = "yes"; then
36163         cat >>confdefs.h <<\_ACEOF
36164 #define wxSIZE_T_IS_ULONG 1
36165 _ACEOF
36166
36167     fi
36168 fi
36169
36170 { echo "$as_me:$LINENO: checking if wchar_t is separate type" >&5
36171 echo $ECHO_N "checking if wchar_t is separate type... $ECHO_C" >&6; }
36172 if test "${wx_cv_wchar_t_is_separate_type+set}" = set; then
36173   echo $ECHO_N "(cached) $ECHO_C" >&6
36174 else
36175   cat >conftest.$ac_ext <<_ACEOF
36176 /* confdefs.h.  */
36177 _ACEOF
36178 cat confdefs.h >>conftest.$ac_ext
36179 cat >>conftest.$ac_ext <<_ACEOF
36180 /* end confdefs.h.  */
36181 #include <wchar.h>
36182 int
36183 main ()
36184 {
36185
36186             return 0; }
36187
36188             struct Foo { void foo(wchar_t);
36189                          void foo(unsigned short);
36190                          void foo(unsigned int);
36191                          void foo(unsigned long); };
36192
36193             int bar() {
36194
36195   ;
36196   return 0;
36197 }
36198 _ACEOF
36199 rm -f conftest.$ac_objext
36200 if { (ac_try="$ac_compile"
36201 case "(($ac_try" in
36202   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36203   *) ac_try_echo=$ac_try;;
36204 esac
36205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36206   (eval "$ac_compile") 2>conftest.er1
36207   ac_status=$?
36208   grep -v '^ *+' conftest.er1 >conftest.err
36209   rm -f conftest.er1
36210   cat conftest.err >&5
36211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36212   (exit $ac_status); } && {
36213          test -z "$ac_cxx_werror_flag" ||
36214          test ! -s conftest.err
36215        } && test -s conftest.$ac_objext; then
36216   wx_cv_wchar_t_is_separate_type=yes
36217 else
36218   echo "$as_me: failed program was:" >&5
36219 sed 's/^/| /' conftest.$ac_ext >&5
36220
36221         wx_cv_wchar_t_is_separate_type=no
36222
36223 fi
36224
36225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36226
36227 fi
36228 { echo "$as_me:$LINENO: result: $wx_cv_wchar_t_is_separate_type" >&5
36229 echo "${ECHO_T}$wx_cv_wchar_t_is_separate_type" >&6; }
36230
36231 if test "$wx_cv_wchar_t_is_separate_type" = "yes"; then
36232     cat >>confdefs.h <<\_ACEOF
36233 #define wxWCHAR_T_IS_REAL_TYPE 1
36234 _ACEOF
36235
36236 else
36237     cat >>confdefs.h <<\_ACEOF
36238 #define wxWCHAR_T_IS_REAL_TYPE 0
36239 _ACEOF
36240
36241 fi
36242
36243 ac_ext=c
36244 ac_cpp='$CPP $CPPFLAGS'
36245 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36246 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36247 ac_compiler_gnu=$ac_cv_c_compiler_gnu
36248
36249
36250 { echo "$as_me:$LINENO: checking for pw_gecos in struct passwd" >&5
36251 echo $ECHO_N "checking for pw_gecos in struct passwd... $ECHO_C" >&6; }
36252 if test "${wx_cv_struct_pw_gecos+set}" = set; then
36253   echo $ECHO_N "(cached) $ECHO_C" >&6
36254 else
36255
36256         cat >conftest.$ac_ext <<_ACEOF
36257 /* confdefs.h.  */
36258 _ACEOF
36259 cat confdefs.h >>conftest.$ac_ext
36260 cat >>conftest.$ac_ext <<_ACEOF
36261 /* end confdefs.h.  */
36262 #include <pwd.h>
36263 int
36264 main ()
36265 {
36266
36267                 char *p;
36268                 struct passwd *pw;
36269                 p = pw->pw_gecos;
36270
36271   ;
36272   return 0;
36273 }
36274 _ACEOF
36275 rm -f conftest.$ac_objext
36276 if { (ac_try="$ac_compile"
36277 case "(($ac_try" in
36278   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36279   *) ac_try_echo=$ac_try;;
36280 esac
36281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36282   (eval "$ac_compile") 2>conftest.er1
36283   ac_status=$?
36284   grep -v '^ *+' conftest.er1 >conftest.err
36285   rm -f conftest.er1
36286   cat conftest.err >&5
36287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36288   (exit $ac_status); } && {
36289          test -z "$ac_c_werror_flag" ||
36290          test ! -s conftest.err
36291        } && test -s conftest.$ac_objext; then
36292
36293                 wx_cv_struct_pw_gecos=yes
36294
36295 else
36296   echo "$as_me: failed program was:" >&5
36297 sed 's/^/| /' conftest.$ac_ext >&5
36298
36299
36300                 wx_cv_struct_pw_gecos=no
36301
36302
36303 fi
36304
36305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36306
36307
36308 fi
36309 { echo "$as_me:$LINENO: result: $wx_cv_struct_pw_gecos" >&5
36310 echo "${ECHO_T}$wx_cv_struct_pw_gecos" >&6; }
36311
36312 if test "$wx_cv_struct_pw_gecos" = "yes"; then
36313     cat >>confdefs.h <<\_ACEOF
36314 #define HAVE_PW_GECOS 1
36315 _ACEOF
36316
36317 fi
36318
36319
36320 WCSLEN_FOUND=0
36321 WCHAR_LINK=
36322
36323 for ac_func in wcslen
36324 do
36325 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36326 { echo "$as_me:$LINENO: checking for $ac_func" >&5
36327 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
36328 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
36329   echo $ECHO_N "(cached) $ECHO_C" >&6
36330 else
36331   cat >conftest.$ac_ext <<_ACEOF
36332 /* confdefs.h.  */
36333 _ACEOF
36334 cat confdefs.h >>conftest.$ac_ext
36335 cat >>conftest.$ac_ext <<_ACEOF
36336 /* end confdefs.h.  */
36337 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36338    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36339 #define $ac_func innocuous_$ac_func
36340
36341 /* System header to define __stub macros and hopefully few prototypes,
36342     which can conflict with char $ac_func (); below.
36343     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36344     <limits.h> exists even on freestanding compilers.  */
36345
36346 #ifdef __STDC__
36347 # include <limits.h>
36348 #else
36349 # include <assert.h>
36350 #endif
36351
36352 #undef $ac_func
36353
36354 /* Override any GCC internal prototype to avoid an error.
36355    Use char because int might match the return type of a GCC
36356    builtin and then its argument prototype would still apply.  */
36357 #ifdef __cplusplus
36358 extern "C"
36359 #endif
36360 char $ac_func ();
36361 /* The GNU C library defines this for functions which it implements
36362     to always fail with ENOSYS.  Some functions are actually named
36363     something starting with __ and the normal name is an alias.  */
36364 #if defined __stub_$ac_func || defined __stub___$ac_func
36365 choke me
36366 #endif
36367
36368 int
36369 main ()
36370 {
36371 return $ac_func ();
36372   ;
36373   return 0;
36374 }
36375 _ACEOF
36376 rm -f conftest.$ac_objext conftest$ac_exeext
36377 if { (ac_try="$ac_link"
36378 case "(($ac_try" in
36379   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36380   *) ac_try_echo=$ac_try;;
36381 esac
36382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36383   (eval "$ac_link") 2>conftest.er1
36384   ac_status=$?
36385   grep -v '^ *+' conftest.er1 >conftest.err
36386   rm -f conftest.er1
36387   cat conftest.err >&5
36388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36389   (exit $ac_status); } && {
36390          test -z "$ac_c_werror_flag" ||
36391          test ! -s conftest.err
36392        } && test -s conftest$ac_exeext &&
36393        $as_test_x conftest$ac_exeext; then
36394   eval "$as_ac_var=yes"
36395 else
36396   echo "$as_me: failed program was:" >&5
36397 sed 's/^/| /' conftest.$ac_ext >&5
36398
36399         eval "$as_ac_var=no"
36400 fi
36401
36402 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36403       conftest$ac_exeext conftest.$ac_ext
36404 fi
36405 ac_res=`eval echo '${'$as_ac_var'}'`
36406                { echo "$as_me:$LINENO: result: $ac_res" >&5
36407 echo "${ECHO_T}$ac_res" >&6; }
36408 if test `eval echo '${'$as_ac_var'}'` = yes; then
36409   cat >>confdefs.h <<_ACEOF
36410 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36411 _ACEOF
36412  WCSLEN_FOUND=1
36413 fi
36414 done
36415
36416
36417 if test "$WCSLEN_FOUND" = 0; then
36418     if test "$TOOLKIT" = "MSW"; then
36419         { echo "$as_me:$LINENO: checking for wcslen in -lmsvcrt" >&5
36420 echo $ECHO_N "checking for wcslen in -lmsvcrt... $ECHO_C" >&6; }
36421 if test "${ac_cv_lib_msvcrt_wcslen+set}" = set; then
36422   echo $ECHO_N "(cached) $ECHO_C" >&6
36423 else
36424   ac_check_lib_save_LIBS=$LIBS
36425 LIBS="-lmsvcrt  $LIBS"
36426 cat >conftest.$ac_ext <<_ACEOF
36427 /* confdefs.h.  */
36428 _ACEOF
36429 cat confdefs.h >>conftest.$ac_ext
36430 cat >>conftest.$ac_ext <<_ACEOF
36431 /* end confdefs.h.  */
36432
36433 /* Override any GCC internal prototype to avoid an error.
36434    Use char because int might match the return type of a GCC
36435    builtin and then its argument prototype would still apply.  */
36436 #ifdef __cplusplus
36437 extern "C"
36438 #endif
36439 char wcslen ();
36440 int
36441 main ()
36442 {
36443 return wcslen ();
36444   ;
36445   return 0;
36446 }
36447 _ACEOF
36448 rm -f conftest.$ac_objext conftest$ac_exeext
36449 if { (ac_try="$ac_link"
36450 case "(($ac_try" in
36451   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36452   *) ac_try_echo=$ac_try;;
36453 esac
36454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36455   (eval "$ac_link") 2>conftest.er1
36456   ac_status=$?
36457   grep -v '^ *+' conftest.er1 >conftest.err
36458   rm -f conftest.er1
36459   cat conftest.err >&5
36460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36461   (exit $ac_status); } && {
36462          test -z "$ac_c_werror_flag" ||
36463          test ! -s conftest.err
36464        } && test -s conftest$ac_exeext &&
36465        $as_test_x conftest$ac_exeext; then
36466   ac_cv_lib_msvcrt_wcslen=yes
36467 else
36468   echo "$as_me: failed program was:" >&5
36469 sed 's/^/| /' conftest.$ac_ext >&5
36470
36471         ac_cv_lib_msvcrt_wcslen=no
36472 fi
36473
36474 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36475       conftest$ac_exeext conftest.$ac_ext
36476 LIBS=$ac_check_lib_save_LIBS
36477 fi
36478 { echo "$as_me:$LINENO: result: $ac_cv_lib_msvcrt_wcslen" >&5
36479 echo "${ECHO_T}$ac_cv_lib_msvcrt_wcslen" >&6; }
36480 if test $ac_cv_lib_msvcrt_wcslen = yes; then
36481   WCHAR_OK=1
36482 fi
36483
36484     else
36485         { echo "$as_me:$LINENO: checking for wcslen in -lw" >&5
36486 echo $ECHO_N "checking for wcslen in -lw... $ECHO_C" >&6; }
36487 if test "${ac_cv_lib_w_wcslen+set}" = set; then
36488   echo $ECHO_N "(cached) $ECHO_C" >&6
36489 else
36490   ac_check_lib_save_LIBS=$LIBS
36491 LIBS="-lw  $LIBS"
36492 cat >conftest.$ac_ext <<_ACEOF
36493 /* confdefs.h.  */
36494 _ACEOF
36495 cat confdefs.h >>conftest.$ac_ext
36496 cat >>conftest.$ac_ext <<_ACEOF
36497 /* end confdefs.h.  */
36498
36499 /* Override any GCC internal prototype to avoid an error.
36500    Use char because int might match the return type of a GCC
36501    builtin and then its argument prototype would still apply.  */
36502 #ifdef __cplusplus
36503 extern "C"
36504 #endif
36505 char wcslen ();
36506 int
36507 main ()
36508 {
36509 return wcslen ();
36510   ;
36511   return 0;
36512 }
36513 _ACEOF
36514 rm -f conftest.$ac_objext conftest$ac_exeext
36515 if { (ac_try="$ac_link"
36516 case "(($ac_try" in
36517   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36518   *) ac_try_echo=$ac_try;;
36519 esac
36520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36521   (eval "$ac_link") 2>conftest.er1
36522   ac_status=$?
36523   grep -v '^ *+' conftest.er1 >conftest.err
36524   rm -f conftest.er1
36525   cat conftest.err >&5
36526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36527   (exit $ac_status); } && {
36528          test -z "$ac_c_werror_flag" ||
36529          test ! -s conftest.err
36530        } && test -s conftest$ac_exeext &&
36531        $as_test_x conftest$ac_exeext; then
36532   ac_cv_lib_w_wcslen=yes
36533 else
36534   echo "$as_me: failed program was:" >&5
36535 sed 's/^/| /' conftest.$ac_ext >&5
36536
36537         ac_cv_lib_w_wcslen=no
36538 fi
36539
36540 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36541       conftest$ac_exeext conftest.$ac_ext
36542 LIBS=$ac_check_lib_save_LIBS
36543 fi
36544 { echo "$as_me:$LINENO: result: $ac_cv_lib_w_wcslen" >&5
36545 echo "${ECHO_T}$ac_cv_lib_w_wcslen" >&6; }
36546 if test $ac_cv_lib_w_wcslen = yes; then
36547
36548                         WCHAR_LINK=" -lw"
36549                         WCSLEN_FOUND=1
36550
36551 fi
36552
36553     fi
36554 fi
36555
36556 if test "$WCSLEN_FOUND" = 1; then
36557     cat >>confdefs.h <<\_ACEOF
36558 #define HAVE_WCSLEN 1
36559 _ACEOF
36560
36561 fi
36562
36563
36564
36565
36566
36567
36568
36569 for ac_func in wcsdup wcsftime strnlen wcsnlen wcscasecmp wcsncasecmp
36570 do
36571 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36572 { echo "$as_me:$LINENO: checking for $ac_func" >&5
36573 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
36574 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
36575   echo $ECHO_N "(cached) $ECHO_C" >&6
36576 else
36577   cat >conftest.$ac_ext <<_ACEOF
36578 /* confdefs.h.  */
36579 _ACEOF
36580 cat confdefs.h >>conftest.$ac_ext
36581 cat >>conftest.$ac_ext <<_ACEOF
36582 /* end confdefs.h.  */
36583 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36584    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36585 #define $ac_func innocuous_$ac_func
36586
36587 /* System header to define __stub macros and hopefully few prototypes,
36588     which can conflict with char $ac_func (); below.
36589     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36590     <limits.h> exists even on freestanding compilers.  */
36591
36592 #ifdef __STDC__
36593 # include <limits.h>
36594 #else
36595 # include <assert.h>
36596 #endif
36597
36598 #undef $ac_func
36599
36600 /* Override any GCC internal prototype to avoid an error.
36601    Use char because int might match the return type of a GCC
36602    builtin and then its argument prototype would still apply.  */
36603 #ifdef __cplusplus
36604 extern "C"
36605 #endif
36606 char $ac_func ();
36607 /* The GNU C library defines this for functions which it implements
36608     to always fail with ENOSYS.  Some functions are actually named
36609     something starting with __ and the normal name is an alias.  */
36610 #if defined __stub_$ac_func || defined __stub___$ac_func
36611 choke me
36612 #endif
36613
36614 int
36615 main ()
36616 {
36617 return $ac_func ();
36618   ;
36619   return 0;
36620 }
36621 _ACEOF
36622 rm -f conftest.$ac_objext conftest$ac_exeext
36623 if { (ac_try="$ac_link"
36624 case "(($ac_try" in
36625   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36626   *) ac_try_echo=$ac_try;;
36627 esac
36628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36629   (eval "$ac_link") 2>conftest.er1
36630   ac_status=$?
36631   grep -v '^ *+' conftest.er1 >conftest.err
36632   rm -f conftest.er1
36633   cat conftest.err >&5
36634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36635   (exit $ac_status); } && {
36636          test -z "$ac_c_werror_flag" ||
36637          test ! -s conftest.err
36638        } && test -s conftest$ac_exeext &&
36639        $as_test_x conftest$ac_exeext; then
36640   eval "$as_ac_var=yes"
36641 else
36642   echo "$as_me: failed program was:" >&5
36643 sed 's/^/| /' conftest.$ac_ext >&5
36644
36645         eval "$as_ac_var=no"
36646 fi
36647
36648 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36649       conftest$ac_exeext conftest.$ac_ext
36650 fi
36651 ac_res=`eval echo '${'$as_ac_var'}'`
36652                { echo "$as_me:$LINENO: result: $ac_res" >&5
36653 echo "${ECHO_T}$ac_res" >&6; }
36654 if test `eval echo '${'$as_ac_var'}'` = yes; then
36655   cat >>confdefs.h <<_ACEOF
36656 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36657 _ACEOF
36658
36659 fi
36660 done
36661
36662
36663 if test "$USE_HPUX" = 1 -a "$GCC" != "yes"; then
36664     CPPFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CPPFLAGS"
36665 fi
36666
36667 { echo "$as_me:$LINENO: checking for mbstate_t" >&5
36668 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6; }
36669 if test "${ac_cv_type_mbstate_t+set}" = set; then
36670   echo $ECHO_N "(cached) $ECHO_C" >&6
36671 else
36672   cat >conftest.$ac_ext <<_ACEOF
36673 /* confdefs.h.  */
36674 _ACEOF
36675 cat confdefs.h >>conftest.$ac_ext
36676 cat >>conftest.$ac_ext <<_ACEOF
36677 /* end confdefs.h.  */
36678 #include <wchar.h>
36679
36680 typedef mbstate_t ac__type_new_;
36681 int
36682 main ()
36683 {
36684 if ((ac__type_new_ *) 0)
36685   return 0;
36686 if (sizeof (ac__type_new_))
36687   return 0;
36688   ;
36689   return 0;
36690 }
36691 _ACEOF
36692 rm -f conftest.$ac_objext
36693 if { (ac_try="$ac_compile"
36694 case "(($ac_try" in
36695   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36696   *) ac_try_echo=$ac_try;;
36697 esac
36698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36699   (eval "$ac_compile") 2>conftest.er1
36700   ac_status=$?
36701   grep -v '^ *+' conftest.er1 >conftest.err
36702   rm -f conftest.er1
36703   cat conftest.err >&5
36704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36705   (exit $ac_status); } && {
36706          test -z "$ac_c_werror_flag" ||
36707          test ! -s conftest.err
36708        } && test -s conftest.$ac_objext; then
36709   ac_cv_type_mbstate_t=yes
36710 else
36711   echo "$as_me: failed program was:" >&5
36712 sed 's/^/| /' conftest.$ac_ext >&5
36713
36714         ac_cv_type_mbstate_t=no
36715 fi
36716
36717 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36718 fi
36719 { echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
36720 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6; }
36721 if test $ac_cv_type_mbstate_t = yes; then
36722
36723 cat >>confdefs.h <<_ACEOF
36724 #define HAVE_MBSTATE_T 1
36725 _ACEOF
36726
36727
36728 for ac_func in wcsrtombs
36729 do
36730 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36731 { echo "$as_me:$LINENO: checking for $ac_func" >&5
36732 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
36733 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
36734   echo $ECHO_N "(cached) $ECHO_C" >&6
36735 else
36736   cat >conftest.$ac_ext <<_ACEOF
36737 /* confdefs.h.  */
36738 _ACEOF
36739 cat confdefs.h >>conftest.$ac_ext
36740 cat >>conftest.$ac_ext <<_ACEOF
36741 /* end confdefs.h.  */
36742 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36743    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36744 #define $ac_func innocuous_$ac_func
36745
36746 /* System header to define __stub macros and hopefully few prototypes,
36747     which can conflict with char $ac_func (); below.
36748     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36749     <limits.h> exists even on freestanding compilers.  */
36750
36751 #ifdef __STDC__
36752 # include <limits.h>
36753 #else
36754 # include <assert.h>
36755 #endif
36756
36757 #undef $ac_func
36758
36759 /* Override any GCC internal prototype to avoid an error.
36760    Use char because int might match the return type of a GCC
36761    builtin and then its argument prototype would still apply.  */
36762 #ifdef __cplusplus
36763 extern "C"
36764 #endif
36765 char $ac_func ();
36766 /* The GNU C library defines this for functions which it implements
36767     to always fail with ENOSYS.  Some functions are actually named
36768     something starting with __ and the normal name is an alias.  */
36769 #if defined __stub_$ac_func || defined __stub___$ac_func
36770 choke me
36771 #endif
36772
36773 int
36774 main ()
36775 {
36776 return $ac_func ();
36777   ;
36778   return 0;
36779 }
36780 _ACEOF
36781 rm -f conftest.$ac_objext conftest$ac_exeext
36782 if { (ac_try="$ac_link"
36783 case "(($ac_try" in
36784   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36785   *) ac_try_echo=$ac_try;;
36786 esac
36787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36788   (eval "$ac_link") 2>conftest.er1
36789   ac_status=$?
36790   grep -v '^ *+' conftest.er1 >conftest.err
36791   rm -f conftest.er1
36792   cat conftest.err >&5
36793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36794   (exit $ac_status); } && {
36795          test -z "$ac_c_werror_flag" ||
36796          test ! -s conftest.err
36797        } && test -s conftest$ac_exeext &&
36798        $as_test_x conftest$ac_exeext; then
36799   eval "$as_ac_var=yes"
36800 else
36801   echo "$as_me: failed program was:" >&5
36802 sed 's/^/| /' conftest.$ac_ext >&5
36803
36804         eval "$as_ac_var=no"
36805 fi
36806
36807 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36808       conftest$ac_exeext conftest.$ac_ext
36809 fi
36810 ac_res=`eval echo '${'$as_ac_var'}'`
36811                { echo "$as_me:$LINENO: result: $ac_res" >&5
36812 echo "${ECHO_T}$ac_res" >&6; }
36813 if test `eval echo '${'$as_ac_var'}'` = yes; then
36814   cat >>confdefs.h <<_ACEOF
36815 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36816 _ACEOF
36817
36818 fi
36819 done
36820
36821 fi
36822
36823
36824
36825
36826
36827 for ac_func in snprintf vsnprintf vsscanf
36828 do
36829 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36830 { echo "$as_me:$LINENO: checking for $ac_func" >&5
36831 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
36832 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
36833   echo $ECHO_N "(cached) $ECHO_C" >&6
36834 else
36835   cat >conftest.$ac_ext <<_ACEOF
36836 /* confdefs.h.  */
36837 _ACEOF
36838 cat confdefs.h >>conftest.$ac_ext
36839 cat >>conftest.$ac_ext <<_ACEOF
36840 /* end confdefs.h.  */
36841 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36842    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36843 #define $ac_func innocuous_$ac_func
36844
36845 /* System header to define __stub macros and hopefully few prototypes,
36846     which can conflict with char $ac_func (); below.
36847     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36848     <limits.h> exists even on freestanding compilers.  */
36849
36850 #ifdef __STDC__
36851 # include <limits.h>
36852 #else
36853 # include <assert.h>
36854 #endif
36855
36856 #undef $ac_func
36857
36858 /* Override any GCC internal prototype to avoid an error.
36859    Use char because int might match the return type of a GCC
36860    builtin and then its argument prototype would still apply.  */
36861 #ifdef __cplusplus
36862 extern "C"
36863 #endif
36864 char $ac_func ();
36865 /* The GNU C library defines this for functions which it implements
36866     to always fail with ENOSYS.  Some functions are actually named
36867     something starting with __ and the normal name is an alias.  */
36868 #if defined __stub_$ac_func || defined __stub___$ac_func
36869 choke me
36870 #endif
36871
36872 int
36873 main ()
36874 {
36875 return $ac_func ();
36876   ;
36877   return 0;
36878 }
36879 _ACEOF
36880 rm -f conftest.$ac_objext conftest$ac_exeext
36881 if { (ac_try="$ac_link"
36882 case "(($ac_try" in
36883   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36884   *) ac_try_echo=$ac_try;;
36885 esac
36886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36887   (eval "$ac_link") 2>conftest.er1
36888   ac_status=$?
36889   grep -v '^ *+' conftest.er1 >conftest.err
36890   rm -f conftest.er1
36891   cat conftest.err >&5
36892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36893   (exit $ac_status); } && {
36894          test -z "$ac_c_werror_flag" ||
36895          test ! -s conftest.err
36896        } && test -s conftest$ac_exeext &&
36897        $as_test_x conftest$ac_exeext; then
36898   eval "$as_ac_var=yes"
36899 else
36900   echo "$as_me: failed program was:" >&5
36901 sed 's/^/| /' conftest.$ac_ext >&5
36902
36903         eval "$as_ac_var=no"
36904 fi
36905
36906 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36907       conftest$ac_exeext conftest.$ac_ext
36908 fi
36909 ac_res=`eval echo '${'$as_ac_var'}'`
36910                { echo "$as_me:$LINENO: result: $ac_res" >&5
36911 echo "${ECHO_T}$ac_res" >&6; }
36912 if test `eval echo '${'$as_ac_var'}'` = yes; then
36913   cat >>confdefs.h <<_ACEOF
36914 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36915 _ACEOF
36916
36917 fi
36918 done
36919
36920
36921 ac_ext=cpp
36922 ac_cpp='$CXXCPP $CPPFLAGS'
36923 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36924 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36925 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
36926
36927 if test "$ac_cv_func_vsnprintf" = "yes"; then
36928         { echo "$as_me:$LINENO: checking for vsnprintf declaration" >&5
36929 echo $ECHO_N "checking for vsnprintf declaration... $ECHO_C" >&6; }
36930 if test "${wx_cv_func_vsnprintf_decl+set}" = set; then
36931   echo $ECHO_N "(cached) $ECHO_C" >&6
36932 else
36933
36934                                                             cat >conftest.$ac_ext <<_ACEOF
36935 /* confdefs.h.  */
36936 _ACEOF
36937 cat confdefs.h >>conftest.$ac_ext
36938 cat >>conftest.$ac_ext <<_ACEOF
36939 /* end confdefs.h.  */
36940
36941                     #include <stdio.h>
36942                     #include <stdarg.h>
36943                     #ifdef __MSL__
36944                     #if __MSL__ >= 0x6000
36945                     namespace std {}
36946                     using namespace std;
36947                     #endif
36948                     #endif
36949
36950 int
36951 main ()
36952 {
36953
36954                     char *buf;
36955                     va_list ap;
36956                     vsnprintf(buf, 10u, "%s", ap);
36957
36958   ;
36959   return 0;
36960 }
36961 _ACEOF
36962 rm -f conftest.$ac_objext
36963 if { (ac_try="$ac_compile"
36964 case "(($ac_try" in
36965   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36966   *) ac_try_echo=$ac_try;;
36967 esac
36968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36969   (eval "$ac_compile") 2>conftest.er1
36970   ac_status=$?
36971   grep -v '^ *+' conftest.er1 >conftest.err
36972   rm -f conftest.er1
36973   cat conftest.err >&5
36974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36975   (exit $ac_status); } && {
36976          test -z "$ac_cxx_werror_flag" ||
36977          test ! -s conftest.err
36978        } && test -s conftest.$ac_objext; then
36979   wx_cv_func_vsnprintf_decl=yes
36980 else
36981   echo "$as_me: failed program was:" >&5
36982 sed 's/^/| /' conftest.$ac_ext >&5
36983
36984         wx_cv_func_vsnprintf_decl=no
36985
36986 fi
36987
36988 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36989
36990
36991 fi
36992 { echo "$as_me:$LINENO: result: $wx_cv_func_vsnprintf_decl" >&5
36993 echo "${ECHO_T}$wx_cv_func_vsnprintf_decl" >&6; }
36994
36995     if test "$wx_cv_func_vsnprintf_decl" = "yes"; then
36996         cat >>confdefs.h <<\_ACEOF
36997 #define HAVE_VSNPRINTF_DECL 1
36998 _ACEOF
36999
37000
37001                         { echo "$as_me:$LINENO: checking if vsnprintf declaration is broken" >&5
37002 echo $ECHO_N "checking if vsnprintf declaration is broken... $ECHO_C" >&6; }
37003 if test "${wx_cv_func_broken_vsnprintf_decl+set}" = set; then
37004   echo $ECHO_N "(cached) $ECHO_C" >&6
37005 else
37006
37007                 cat >conftest.$ac_ext <<_ACEOF
37008 /* confdefs.h.  */
37009 _ACEOF
37010 cat confdefs.h >>conftest.$ac_ext
37011 cat >>conftest.$ac_ext <<_ACEOF
37012 /* end confdefs.h.  */
37013
37014                         #include <stdio.h>
37015                         #include <stdarg.h>
37016                         #ifdef __MSL__
37017                         #if __MSL__ >= 0x6000
37018                         namespace std {}
37019                         using namespace std;
37020                         #endif
37021                         #endif
37022
37023 int
37024 main ()
37025 {
37026
37027                         char *buf;
37028                         va_list ap;
37029                         const char *fmt = "%s";
37030                         vsnprintf(buf, 10u, fmt, ap);
37031
37032   ;
37033   return 0;
37034 }
37035 _ACEOF
37036 rm -f conftest.$ac_objext
37037 if { (ac_try="$ac_compile"
37038 case "(($ac_try" in
37039   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37040   *) ac_try_echo=$ac_try;;
37041 esac
37042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37043   (eval "$ac_compile") 2>conftest.er1
37044   ac_status=$?
37045   grep -v '^ *+' conftest.er1 >conftest.err
37046   rm -f conftest.er1
37047   cat conftest.err >&5
37048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37049   (exit $ac_status); } && {
37050          test -z "$ac_cxx_werror_flag" ||
37051          test ! -s conftest.err
37052        } && test -s conftest.$ac_objext; then
37053   wx_cv_func_broken_vsnprintf_decl=no
37054 else
37055   echo "$as_me: failed program was:" >&5
37056 sed 's/^/| /' conftest.$ac_ext >&5
37057
37058         wx_cv_func_broken_vsnprintf_decl=yes
37059
37060 fi
37061
37062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37063
37064
37065 fi
37066 { echo "$as_me:$LINENO: result: $wx_cv_func_broken_vsnprintf_decl" >&5
37067 echo "${ECHO_T}$wx_cv_func_broken_vsnprintf_decl" >&6; }
37068
37069         if test "$wx_cv_func_broken_vsnprintf_decl" = "yes"; then
37070             cat >>confdefs.h <<\_ACEOF
37071 #define HAVE_BROKEN_VSNPRINTF_DECL 1
37072 _ACEOF
37073
37074         fi
37075     fi
37076 fi
37077
37078 if test "$ac_cv_func_snprintf" = "yes"; then
37079     { echo "$as_me:$LINENO: checking for snprintf declaration" >&5
37080 echo $ECHO_N "checking for snprintf declaration... $ECHO_C" >&6; }
37081 if test "${wx_cv_func_snprintf_decl+set}" = set; then
37082   echo $ECHO_N "(cached) $ECHO_C" >&6
37083 else
37084
37085             cat >conftest.$ac_ext <<_ACEOF
37086 /* confdefs.h.  */
37087 _ACEOF
37088 cat confdefs.h >>conftest.$ac_ext
37089 cat >>conftest.$ac_ext <<_ACEOF
37090 /* end confdefs.h.  */
37091
37092                     #include <stdio.h>
37093                     #include <stdarg.h>
37094                     #ifdef __MSL__
37095                     #if __MSL__ >= 0x6000
37096                     namespace std {}
37097                     using namespace std;
37098                     #endif
37099                     #endif
37100
37101 int
37102 main ()
37103 {
37104
37105                     char *buf;
37106                     snprintf(buf, 10u, "%s", "wx");
37107
37108   ;
37109   return 0;
37110 }
37111 _ACEOF
37112 rm -f conftest.$ac_objext
37113 if { (ac_try="$ac_compile"
37114 case "(($ac_try" in
37115   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37116   *) ac_try_echo=$ac_try;;
37117 esac
37118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37119   (eval "$ac_compile") 2>conftest.er1
37120   ac_status=$?
37121   grep -v '^ *+' conftest.er1 >conftest.err
37122   rm -f conftest.er1
37123   cat conftest.err >&5
37124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37125   (exit $ac_status); } && {
37126          test -z "$ac_cxx_werror_flag" ||
37127          test ! -s conftest.err
37128        } && test -s conftest.$ac_objext; then
37129   wx_cv_func_snprintf_decl=yes
37130 else
37131   echo "$as_me: failed program was:" >&5
37132 sed 's/^/| /' conftest.$ac_ext >&5
37133
37134         wx_cv_func_snprintf_decl=no
37135
37136 fi
37137
37138 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37139
37140
37141 fi
37142 { echo "$as_me:$LINENO: result: $wx_cv_func_snprintf_decl" >&5
37143 echo "${ECHO_T}$wx_cv_func_snprintf_decl" >&6; }
37144
37145     if test "$wx_cv_func_snprintf_decl" = "yes"; then
37146         cat >>confdefs.h <<\_ACEOF
37147 #define HAVE_SNPRINTF_DECL 1
37148 _ACEOF
37149
37150     fi
37151
37152     if test "$wxUSE_PRINTF_POS_PARAMS" = "yes"; then
37153
37154                                         { echo "$as_me:$LINENO: checking if snprintf supports positional arguments" >&5
37155 echo $ECHO_N "checking if snprintf supports positional arguments... $ECHO_C" >&6; }
37156 if test "${wx_cv_func_snprintf_pos_params+set}" = set; then
37157   echo $ECHO_N "(cached) $ECHO_C" >&6
37158 else
37159
37160                 if test "$cross_compiling" = yes; then
37161
37162                         { echo "$as_me:$LINENO: WARNING: Assuming Unix98 printf() is not available,
37163 define HAVE_UNIX98_PRINTF as 1 in setup.h if it is available." >&5
37164 echo "$as_me: WARNING: Assuming Unix98 printf() is not available,
37165 define HAVE_UNIX98_PRINTF as 1 in setup.h if it is available." >&2;}
37166                         wx_cv_func_snprintf_pos_params=no
37167
37168
37169 else
37170   cat >conftest.$ac_ext <<_ACEOF
37171 /* confdefs.h.  */
37172 _ACEOF
37173 cat confdefs.h >>conftest.$ac_ext
37174 cat >>conftest.$ac_ext <<_ACEOF
37175 /* end confdefs.h.  */
37176
37177                         #include <stdio.h>
37178
37179                         int main (void)
37180                         {
37181                             char buffer[128];
37182                             snprintf (buffer, 128, "%2$d %3$d %1$d", 1, 2, 3);
37183                             if (strcmp ("2 3 1", buffer) == 0)
37184                                 exit (0);
37185                             exit (1);
37186                         }
37187
37188 _ACEOF
37189 rm -f conftest$ac_exeext
37190 if { (ac_try="$ac_link"
37191 case "(($ac_try" in
37192   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37193   *) ac_try_echo=$ac_try;;
37194 esac
37195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37196   (eval "$ac_link") 2>&5
37197   ac_status=$?
37198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37199   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
37200   { (case "(($ac_try" in
37201   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37202   *) ac_try_echo=$ac_try;;
37203 esac
37204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37205   (eval "$ac_try") 2>&5
37206   ac_status=$?
37207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37208   (exit $ac_status); }; }; then
37209   wx_cv_func_snprintf_pos_params=no
37210 else
37211   echo "$as_me: program exited with status $ac_status" >&5
37212 echo "$as_me: failed program was:" >&5
37213 sed 's/^/| /' conftest.$ac_ext >&5
37214
37215 ( exit $ac_status )
37216 wx_cv_func_snprintf_pos_params=yes
37217 fi
37218 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
37219 fi
37220
37221
37222
37223
37224 fi
37225 { echo "$as_me:$LINENO: result: $wx_cv_func_snprintf_pos_params" >&5
37226 echo "${ECHO_T}$wx_cv_func_snprintf_pos_params" >&6; }
37227
37228         if test "$wx_cv_func_snprintf_pos_params" = "yes"; then
37229             cat >>confdefs.h <<\_ACEOF
37230 #define HAVE_UNIX98_PRINTF 1
37231 _ACEOF
37232
37233         fi
37234     fi
37235 fi
37236
37237 if test "$ac_cv_func_vsscanf" = "yes"; then
37238     { echo "$as_me:$LINENO: checking for vsscanf declaration" >&5
37239 echo $ECHO_N "checking for vsscanf declaration... $ECHO_C" >&6; }
37240 if test "${wx_cv_func_vsscanf_decl+set}" = set; then
37241   echo $ECHO_N "(cached) $ECHO_C" >&6
37242 else
37243
37244             cat >conftest.$ac_ext <<_ACEOF
37245 /* confdefs.h.  */
37246 _ACEOF
37247 cat confdefs.h >>conftest.$ac_ext
37248 cat >>conftest.$ac_ext <<_ACEOF
37249 /* end confdefs.h.  */
37250
37251                     #include <stdio.h>
37252                     #include <stdarg.h>
37253                     #ifdef __MSL__
37254                     #if __MSL__ >= 0x6000
37255                     namespace std {}
37256                     using namespace std;
37257                     #endif
37258                     #endif
37259
37260 int
37261 main ()
37262 {
37263
37264                     char *buf;
37265                     va_list args;
37266                     vsscanf(buf, "%s", args);
37267
37268   ;
37269   return 0;
37270 }
37271 _ACEOF
37272 rm -f conftest.$ac_objext
37273 if { (ac_try="$ac_compile"
37274 case "(($ac_try" in
37275   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37276   *) ac_try_echo=$ac_try;;
37277 esac
37278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37279   (eval "$ac_compile") 2>conftest.er1
37280   ac_status=$?
37281   grep -v '^ *+' conftest.er1 >conftest.err
37282   rm -f conftest.er1
37283   cat conftest.err >&5
37284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37285   (exit $ac_status); } && {
37286          test -z "$ac_cxx_werror_flag" ||
37287          test ! -s conftest.err
37288        } && test -s conftest.$ac_objext; then
37289   wx_cv_func_vsscanf_decl=yes
37290 else
37291   echo "$as_me: failed program was:" >&5
37292 sed 's/^/| /' conftest.$ac_ext >&5
37293
37294         wx_cv_func_vsscanf_decl=no
37295
37296 fi
37297
37298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37299
37300
37301 fi
37302 { echo "$as_me:$LINENO: result: $wx_cv_func_vsscanf_decl" >&5
37303 echo "${ECHO_T}$wx_cv_func_vsscanf_decl" >&6; }
37304
37305     if test "$wx_cv_func_vsscanf_decl" = "yes"; then
37306         cat >>confdefs.h <<\_ACEOF
37307 #define HAVE_VSSCANF_DECL 1
37308 _ACEOF
37309
37310     fi
37311 fi
37312 ac_ext=c
37313 ac_cpp='$CPP $CPPFLAGS'
37314 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37315 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37316 ac_compiler_gnu=$ac_cv_c_compiler_gnu
37317
37318
37319 if test "$wxUSE_UNICODE" = yes; then
37320
37321             wchar_headers="#include <stdio.h>
37322 #include <wchar.h>"
37323     case "${host}" in
37324         *-*-solaris2* )
37325
37326 for ac_header in widec.h
37327 do
37328 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
37329 { echo "$as_me:$LINENO: checking for $ac_header" >&5
37330 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
37331 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
37332   echo $ECHO_N "(cached) $ECHO_C" >&6
37333 else
37334   cat >conftest.$ac_ext <<_ACEOF
37335 /* confdefs.h.  */
37336 _ACEOF
37337 cat confdefs.h >>conftest.$ac_ext
37338 cat >>conftest.$ac_ext <<_ACEOF
37339 /* end confdefs.h.  */
37340 $ac_includes_default
37341
37342 #include <$ac_header>
37343 _ACEOF
37344 rm -f conftest.$ac_objext
37345 if { (ac_try="$ac_compile"
37346 case "(($ac_try" in
37347   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37348   *) ac_try_echo=$ac_try;;
37349 esac
37350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37351   (eval "$ac_compile") 2>conftest.er1
37352   ac_status=$?
37353   grep -v '^ *+' conftest.er1 >conftest.err
37354   rm -f conftest.er1
37355   cat conftest.err >&5
37356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37357   (exit $ac_status); } && {
37358          test -z "$ac_c_werror_flag" ||
37359          test ! -s conftest.err
37360        } && test -s conftest.$ac_objext; then
37361   eval "$as_ac_Header=yes"
37362 else
37363   echo "$as_me: failed program was:" >&5
37364 sed 's/^/| /' conftest.$ac_ext >&5
37365
37366         eval "$as_ac_Header=no"
37367 fi
37368
37369 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37370 fi
37371 ac_res=`eval echo '${'$as_ac_Header'}'`
37372                { echo "$as_me:$LINENO: result: $ac_res" >&5
37373 echo "${ECHO_T}$ac_res" >&6; }
37374 if test `eval echo '${'$as_ac_Header'}'` = yes; then
37375   cat >>confdefs.h <<_ACEOF
37376 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
37377 _ACEOF
37378
37379 fi
37380
37381 done
37382
37383             if test "$ac_cv_header_widec_h" = "yes"; then
37384                 wchar_headers="$wchar_headers
37385 #include <widec.h>"
37386             fi
37387     esac
37388
37389
37390   for wx_func in putws fputws wprintf vswprintf vswscanf
37391   do
37392     { echo "$as_me:$LINENO: checking for $wx_func" >&5
37393 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
37394 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
37395   echo $ECHO_N "(cached) $ECHO_C" >&6
37396 else
37397
37398         cat >conftest.$ac_ext <<_ACEOF
37399
37400             /* confdefs.h.  */
37401 _ACEOF
37402 cat confdefs.h >>conftest.$ac_ext
37403 cat >>conftest.$ac_ext <<_ACEOF
37404 /* end confdefs.h.  */
37405
37406                 $wchar_headers
37407                 $ac_includes_default
37408
37409 int
37410 main ()
37411 {
37412
37413                 #ifndef $wx_func
37414                   &$wx_func;
37415                 #endif
37416
37417
37418   ;
37419   return 0;
37420 }
37421
37422 _ACEOF
37423 rm -f conftest.$ac_objext conftest$ac_exeext
37424 if { (ac_try="$ac_link"
37425 case "(($ac_try" in
37426   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37427   *) ac_try_echo=$ac_try;;
37428 esac
37429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37430   (eval "$ac_link") 2>conftest.er1
37431   ac_status=$?
37432   grep -v '^ *+' conftest.er1 >conftest.err
37433   rm -f conftest.er1
37434   cat conftest.err >&5
37435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37436   (exit $ac_status); } && {
37437          test -z "$ac_c_werror_flag" ||
37438          test ! -s conftest.err
37439        } && test -s conftest$ac_exeext &&
37440        $as_test_x conftest$ac_exeext; then
37441   eval wx_cv_func_$wx_func=yes
37442 else
37443   echo "$as_me: failed program was:" >&5
37444 sed 's/^/| /' conftest.$ac_ext >&5
37445
37446         eval wx_cv_func_$wx_func=no
37447 fi
37448
37449 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37450       conftest$ac_exeext conftest.$ac_ext
37451
37452 fi
37453 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
37454                { echo "$as_me:$LINENO: result: $ac_res" >&5
37455 echo "${ECHO_T}$ac_res" >&6; }
37456
37457     if eval test \$wx_cv_func_$wx_func = yes
37458     then
37459       cat >>confdefs.h <<_ACEOF
37460 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
37461 _ACEOF
37462
37463
37464     else
37465       :
37466
37467     fi
37468   done
37469
37470
37471                 { echo "$as_me:$LINENO: checking for _vsnwprintf" >&5
37472 echo $ECHO_N "checking for _vsnwprintf... $ECHO_C" >&6; }
37473     cat >conftest.$ac_ext <<_ACEOF
37474 /* confdefs.h.  */
37475 _ACEOF
37476 cat confdefs.h >>conftest.$ac_ext
37477 cat >>conftest.$ac_ext <<_ACEOF
37478 /* end confdefs.h.  */
37479 #include <wchar.h>
37480 int
37481 main ()
37482 {
37483 &_vsnwprintf;
37484   ;
37485   return 0;
37486 }
37487 _ACEOF
37488 rm -f conftest.$ac_objext
37489 if { (ac_try="$ac_compile"
37490 case "(($ac_try" in
37491   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37492   *) ac_try_echo=$ac_try;;
37493 esac
37494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37495   (eval "$ac_compile") 2>conftest.er1
37496   ac_status=$?
37497   grep -v '^ *+' conftest.er1 >conftest.err
37498   rm -f conftest.er1
37499   cat conftest.err >&5
37500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37501   (exit $ac_status); } && {
37502          test -z "$ac_c_werror_flag" ||
37503          test ! -s conftest.err
37504        } && test -s conftest.$ac_objext; then
37505   { echo "$as_me:$LINENO: result: yes" >&5
37506 echo "${ECHO_T}yes" >&6; }
37507                     cat >>confdefs.h <<\_ACEOF
37508 #define HAVE__VSNWPRINTF 1
37509 _ACEOF
37510
37511 else
37512   echo "$as_me: failed program was:" >&5
37513 sed 's/^/| /' conftest.$ac_ext >&5
37514
37515         { echo "$as_me:$LINENO: result: no" >&5
37516 echo "${ECHO_T}no" >&6; }
37517 fi
37518
37519 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext;
37520 fi
37521
37522 if test "$wxUSE_FILE" = "yes"; then
37523
37524   for wx_func in fsync
37525   do
37526     { echo "$as_me:$LINENO: checking for $wx_func" >&5
37527 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
37528 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
37529   echo $ECHO_N "(cached) $ECHO_C" >&6
37530 else
37531
37532         cat >conftest.$ac_ext <<_ACEOF
37533
37534             /* confdefs.h.  */
37535 _ACEOF
37536 cat confdefs.h >>conftest.$ac_ext
37537 cat >>conftest.$ac_ext <<_ACEOF
37538 /* end confdefs.h.  */
37539
37540
37541                 $ac_includes_default
37542
37543 int
37544 main ()
37545 {
37546
37547                 #ifndef $wx_func
37548                   &$wx_func;
37549                 #endif
37550
37551
37552   ;
37553   return 0;
37554 }
37555
37556 _ACEOF
37557 rm -f conftest.$ac_objext conftest$ac_exeext
37558 if { (ac_try="$ac_link"
37559 case "(($ac_try" in
37560   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37561   *) ac_try_echo=$ac_try;;
37562 esac
37563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37564   (eval "$ac_link") 2>conftest.er1
37565   ac_status=$?
37566   grep -v '^ *+' conftest.er1 >conftest.err
37567   rm -f conftest.er1
37568   cat conftest.err >&5
37569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37570   (exit $ac_status); } && {
37571          test -z "$ac_c_werror_flag" ||
37572          test ! -s conftest.err
37573        } && test -s conftest$ac_exeext &&
37574        $as_test_x conftest$ac_exeext; then
37575   eval wx_cv_func_$wx_func=yes
37576 else
37577   echo "$as_me: failed program was:" >&5
37578 sed 's/^/| /' conftest.$ac_ext >&5
37579
37580         eval wx_cv_func_$wx_func=no
37581 fi
37582
37583 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37584       conftest$ac_exeext conftest.$ac_ext
37585
37586 fi
37587 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
37588                { echo "$as_me:$LINENO: result: $ac_res" >&5
37589 echo "${ECHO_T}$ac_res" >&6; }
37590
37591     if eval test \$wx_cv_func_$wx_func = yes
37592     then
37593       cat >>confdefs.h <<_ACEOF
37594 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
37595 _ACEOF
37596
37597
37598     else
37599       :
37600
37601     fi
37602   done
37603
37604 fi
37605
37606 ac_ext=cpp
37607 ac_cpp='$CXXCPP $CPPFLAGS'
37608 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37609 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37610 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
37611
37612
37613   for wx_func in round
37614   do
37615     { echo "$as_me:$LINENO: checking for $wx_func" >&5
37616 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
37617 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
37618   echo $ECHO_N "(cached) $ECHO_C" >&6
37619 else
37620
37621         cat >conftest.$ac_ext <<_ACEOF
37622
37623             /* confdefs.h.  */
37624 _ACEOF
37625 cat confdefs.h >>conftest.$ac_ext
37626 cat >>conftest.$ac_ext <<_ACEOF
37627 /* end confdefs.h.  */
37628
37629                 #include <math.h>
37630                 $ac_includes_default
37631
37632 int
37633 main ()
37634 {
37635
37636                 #ifndef $wx_func
37637                   &$wx_func;
37638                 #endif
37639
37640
37641   ;
37642   return 0;
37643 }
37644
37645 _ACEOF
37646 rm -f conftest.$ac_objext conftest$ac_exeext
37647 if { (ac_try="$ac_link"
37648 case "(($ac_try" in
37649   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37650   *) ac_try_echo=$ac_try;;
37651 esac
37652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37653   (eval "$ac_link") 2>conftest.er1
37654   ac_status=$?
37655   grep -v '^ *+' conftest.er1 >conftest.err
37656   rm -f conftest.er1
37657   cat conftest.err >&5
37658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37659   (exit $ac_status); } && {
37660          test -z "$ac_cxx_werror_flag" ||
37661          test ! -s conftest.err
37662        } && test -s conftest$ac_exeext &&
37663        $as_test_x conftest$ac_exeext; then
37664   eval wx_cv_func_$wx_func=yes
37665 else
37666   echo "$as_me: failed program was:" >&5
37667 sed 's/^/| /' conftest.$ac_ext >&5
37668
37669         eval wx_cv_func_$wx_func=no
37670 fi
37671
37672 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37673       conftest$ac_exeext conftest.$ac_ext
37674
37675 fi
37676 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
37677                { echo "$as_me:$LINENO: result: $ac_res" >&5
37678 echo "${ECHO_T}$ac_res" >&6; }
37679
37680     if eval test \$wx_cv_func_$wx_func = yes
37681     then
37682       cat >>confdefs.h <<_ACEOF
37683 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
37684 _ACEOF
37685
37686
37687     else
37688       :
37689
37690     fi
37691   done
37692
37693 ac_ext=c
37694 ac_cpp='$CPP $CPPFLAGS'
37695 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37696 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37697 ac_compiler_gnu=$ac_cv_c_compiler_gnu
37698
37699
37700 if test "$TOOLKIT" != "MSW"; then
37701
37702 if test "$wxUSE_LIBICONV" != "no" ; then
37703
37704
37705
37706 # Check whether --with-libiconv-prefix was given.
37707 if test "${with_libiconv_prefix+set}" = set; then
37708   withval=$with_libiconv_prefix;
37709     for dir in `echo "$withval" | tr : ' '`; do
37710       if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
37711       if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
37712     done
37713
37714 fi
37715
37716
37717   { echo "$as_me:$LINENO: checking for iconv" >&5
37718 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
37719 if test "${am_cv_func_iconv+set}" = set; then
37720   echo $ECHO_N "(cached) $ECHO_C" >&6
37721 else
37722
37723     am_cv_func_iconv="no, consider installing GNU libiconv"
37724     am_cv_lib_iconv=no
37725     cat >conftest.$ac_ext <<_ACEOF
37726 /* confdefs.h.  */
37727 _ACEOF
37728 cat confdefs.h >>conftest.$ac_ext
37729 cat >>conftest.$ac_ext <<_ACEOF
37730 /* end confdefs.h.  */
37731 #include <stdlib.h>
37732 #include <iconv.h>
37733 int
37734 main ()
37735 {
37736 iconv_t cd = iconv_open("","");
37737        iconv(cd,NULL,NULL,NULL,NULL);
37738        iconv_close(cd);
37739   ;
37740   return 0;
37741 }
37742 _ACEOF
37743 rm -f conftest.$ac_objext conftest$ac_exeext
37744 if { (ac_try="$ac_link"
37745 case "(($ac_try" in
37746   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37747   *) ac_try_echo=$ac_try;;
37748 esac
37749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37750   (eval "$ac_link") 2>conftest.er1
37751   ac_status=$?
37752   grep -v '^ *+' conftest.er1 >conftest.err
37753   rm -f conftest.er1
37754   cat conftest.err >&5
37755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37756   (exit $ac_status); } && {
37757          test -z "$ac_c_werror_flag" ||
37758          test ! -s conftest.err
37759        } && test -s conftest$ac_exeext &&
37760        $as_test_x conftest$ac_exeext; then
37761   am_cv_func_iconv=yes
37762 else
37763   echo "$as_me: failed program was:" >&5
37764 sed 's/^/| /' conftest.$ac_ext >&5
37765
37766
37767 fi
37768
37769 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37770       conftest$ac_exeext conftest.$ac_ext
37771     if test "$am_cv_func_iconv" != yes; then
37772       am_save_LIBS="$LIBS"
37773       LIBS="$LIBS -liconv"
37774       cat >conftest.$ac_ext <<_ACEOF
37775 /* confdefs.h.  */
37776 _ACEOF
37777 cat confdefs.h >>conftest.$ac_ext
37778 cat >>conftest.$ac_ext <<_ACEOF
37779 /* end confdefs.h.  */
37780 #include <stdlib.h>
37781 #include <iconv.h>
37782 int
37783 main ()
37784 {
37785 iconv_t cd = iconv_open("","");
37786          iconv(cd,NULL,NULL,NULL,NULL);
37787          iconv_close(cd);
37788   ;
37789   return 0;
37790 }
37791 _ACEOF
37792 rm -f conftest.$ac_objext conftest$ac_exeext
37793 if { (ac_try="$ac_link"
37794 case "(($ac_try" in
37795   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37796   *) ac_try_echo=$ac_try;;
37797 esac
37798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37799   (eval "$ac_link") 2>conftest.er1
37800   ac_status=$?
37801   grep -v '^ *+' conftest.er1 >conftest.err
37802   rm -f conftest.er1
37803   cat conftest.err >&5
37804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37805   (exit $ac_status); } && {
37806          test -z "$ac_c_werror_flag" ||
37807          test ! -s conftest.err
37808        } && test -s conftest$ac_exeext &&
37809        $as_test_x conftest$ac_exeext; then
37810   am_cv_lib_iconv=yes
37811         am_cv_func_iconv=yes
37812 else
37813   echo "$as_me: failed program was:" >&5
37814 sed 's/^/| /' conftest.$ac_ext >&5
37815
37816
37817 fi
37818
37819 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37820       conftest$ac_exeext conftest.$ac_ext
37821       LIBS="$am_save_LIBS"
37822     fi
37823
37824 fi
37825 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
37826 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
37827   if test "$am_cv_func_iconv" = yes; then
37828
37829 cat >>confdefs.h <<\_ACEOF
37830 #define HAVE_ICONV 1
37831 _ACEOF
37832
37833     { echo "$as_me:$LINENO: checking if iconv needs const" >&5
37834 echo $ECHO_N "checking if iconv needs const... $ECHO_C" >&6; }
37835 if test "${wx_cv_func_iconv_const+set}" = set; then
37836   echo $ECHO_N "(cached) $ECHO_C" >&6
37837 else
37838   cat >conftest.$ac_ext <<_ACEOF
37839 /* confdefs.h.  */
37840 _ACEOF
37841 cat confdefs.h >>conftest.$ac_ext
37842 cat >>conftest.$ac_ext <<_ACEOF
37843 /* end confdefs.h.  */
37844
37845 #include <stdlib.h>
37846 #include <iconv.h>
37847 extern
37848 #ifdef __cplusplus
37849 "C"
37850 #endif
37851 #if defined(__STDC__) || defined(__cplusplus)
37852 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
37853 #else
37854 size_t iconv();
37855 #endif
37856
37857 int
37858 main ()
37859 {
37860
37861   ;
37862   return 0;
37863 }
37864 _ACEOF
37865 rm -f conftest.$ac_objext
37866 if { (ac_try="$ac_compile"
37867 case "(($ac_try" in
37868   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37869   *) ac_try_echo=$ac_try;;
37870 esac
37871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37872   (eval "$ac_compile") 2>conftest.er1
37873   ac_status=$?
37874   grep -v '^ *+' conftest.er1 >conftest.err
37875   rm -f conftest.er1
37876   cat conftest.err >&5
37877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37878   (exit $ac_status); } && {
37879          test -z "$ac_c_werror_flag" ||
37880          test ! -s conftest.err
37881        } && test -s conftest.$ac_objext; then
37882   wx_cv_func_iconv_const="no"
37883 else
37884   echo "$as_me: failed program was:" >&5
37885 sed 's/^/| /' conftest.$ac_ext >&5
37886
37887         wx_cv_func_iconv_const="yes"
37888
37889 fi
37890
37891 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37892
37893 fi
37894 { echo "$as_me:$LINENO: result: $wx_cv_func_iconv_const" >&5
37895 echo "${ECHO_T}$wx_cv_func_iconv_const" >&6; }
37896
37897     iconv_const=
37898     if test "x$wx_cv_func_iconv_const" = "xyes"; then
37899         iconv_const="const"
37900     fi
37901
37902
37903 cat >>confdefs.h <<_ACEOF
37904 #define ICONV_CONST $iconv_const
37905 _ACEOF
37906
37907   fi
37908   LIBICONV=
37909   if test "$am_cv_lib_iconv" = yes; then
37910     LIBICONV="-liconv"
37911   fi
37912
37913
37914     LIBS="$LIBICONV $LIBS"
37915 fi
37916
37917 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
37918
37919 for ac_func in sigaction
37920 do
37921 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37922 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37923 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37924 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37925   echo $ECHO_N "(cached) $ECHO_C" >&6
37926 else
37927   cat >conftest.$ac_ext <<_ACEOF
37928 /* confdefs.h.  */
37929 _ACEOF
37930 cat confdefs.h >>conftest.$ac_ext
37931 cat >>conftest.$ac_ext <<_ACEOF
37932 /* end confdefs.h.  */
37933 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37934    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37935 #define $ac_func innocuous_$ac_func
37936
37937 /* System header to define __stub macros and hopefully few prototypes,
37938     which can conflict with char $ac_func (); below.
37939     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37940     <limits.h> exists even on freestanding compilers.  */
37941
37942 #ifdef __STDC__
37943 # include <limits.h>
37944 #else
37945 # include <assert.h>
37946 #endif
37947
37948 #undef $ac_func
37949
37950 /* Override any GCC internal prototype to avoid an error.
37951    Use char because int might match the return type of a GCC
37952    builtin and then its argument prototype would still apply.  */
37953 #ifdef __cplusplus
37954 extern "C"
37955 #endif
37956 char $ac_func ();
37957 /* The GNU C library defines this for functions which it implements
37958     to always fail with ENOSYS.  Some functions are actually named
37959     something starting with __ and the normal name is an alias.  */
37960 #if defined __stub_$ac_func || defined __stub___$ac_func
37961 choke me
37962 #endif
37963
37964 int
37965 main ()
37966 {
37967 return $ac_func ();
37968   ;
37969   return 0;
37970 }
37971 _ACEOF
37972 rm -f conftest.$ac_objext conftest$ac_exeext
37973 if { (ac_try="$ac_link"
37974 case "(($ac_try" in
37975   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37976   *) ac_try_echo=$ac_try;;
37977 esac
37978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37979   (eval "$ac_link") 2>conftest.er1
37980   ac_status=$?
37981   grep -v '^ *+' conftest.er1 >conftest.err
37982   rm -f conftest.er1
37983   cat conftest.err >&5
37984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37985   (exit $ac_status); } && {
37986          test -z "$ac_c_werror_flag" ||
37987          test ! -s conftest.err
37988        } && test -s conftest$ac_exeext &&
37989        $as_test_x conftest$ac_exeext; then
37990   eval "$as_ac_var=yes"
37991 else
37992   echo "$as_me: failed program was:" >&5
37993 sed 's/^/| /' conftest.$ac_ext >&5
37994
37995         eval "$as_ac_var=no"
37996 fi
37997
37998 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37999       conftest$ac_exeext conftest.$ac_ext
38000 fi
38001 ac_res=`eval echo '${'$as_ac_var'}'`
38002                { echo "$as_me:$LINENO: result: $ac_res" >&5
38003 echo "${ECHO_T}$ac_res" >&6; }
38004 if test `eval echo '${'$as_ac_var'}'` = yes; then
38005   cat >>confdefs.h <<_ACEOF
38006 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38007 _ACEOF
38008
38009 fi
38010 done
38011
38012
38013     if test "$ac_cv_func_sigaction" = "no"; then
38014         { echo "$as_me:$LINENO: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&5
38015 echo "$as_me: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&2;}
38016         wxUSE_ON_FATAL_EXCEPTION=no
38017     fi
38018
38019     if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
38020       { echo "$as_me:$LINENO: checking for sa_handler type" >&5
38021 echo $ECHO_N "checking for sa_handler type... $ECHO_C" >&6; }
38022 if test "${wx_cv_type_sa_handler+set}" = set; then
38023   echo $ECHO_N "(cached) $ECHO_C" >&6
38024 else
38025
38026                 ac_ext=cpp
38027 ac_cpp='$CXXCPP $CPPFLAGS'
38028 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38029 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38030 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
38031
38032         cat >conftest.$ac_ext <<_ACEOF
38033 /* confdefs.h.  */
38034 _ACEOF
38035 cat confdefs.h >>conftest.$ac_ext
38036 cat >>conftest.$ac_ext <<_ACEOF
38037 /* end confdefs.h.  */
38038 #include <signal.h>
38039 int
38040 main ()
38041 {
38042
38043                         extern void testSigHandler(int);
38044
38045                         struct sigaction sa;
38046                         sa.sa_handler = testSigHandler;
38047
38048   ;
38049   return 0;
38050 }
38051 _ACEOF
38052 rm -f conftest.$ac_objext
38053 if { (ac_try="$ac_compile"
38054 case "(($ac_try" in
38055   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38056   *) ac_try_echo=$ac_try;;
38057 esac
38058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38059   (eval "$ac_compile") 2>conftest.er1
38060   ac_status=$?
38061   grep -v '^ *+' conftest.er1 >conftest.err
38062   rm -f conftest.er1
38063   cat conftest.err >&5
38064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38065   (exit $ac_status); } && {
38066          test -z "$ac_cxx_werror_flag" ||
38067          test ! -s conftest.err
38068        } && test -s conftest.$ac_objext; then
38069
38070                         wx_cv_type_sa_handler=int
38071
38072 else
38073   echo "$as_me: failed program was:" >&5
38074 sed 's/^/| /' conftest.$ac_ext >&5
38075
38076
38077                         wx_cv_type_sa_handler=void
38078
38079 fi
38080
38081 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38082         ac_ext=c
38083 ac_cpp='$CPP $CPPFLAGS'
38084 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38085 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38086 ac_compiler_gnu=$ac_cv_c_compiler_gnu
38087
38088
38089 fi
38090 { echo "$as_me:$LINENO: result: $wx_cv_type_sa_handler" >&5
38091 echo "${ECHO_T}$wx_cv_type_sa_handler" >&6; }
38092
38093       cat >>confdefs.h <<_ACEOF
38094 #define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
38095 _ACEOF
38096
38097     fi
38098 fi
38099
38100 if test "$wxUSE_STACKWALKER" = "yes" -a "$wxUSE_UNIX" = "yes"; then
38101     { echo "$as_me:$LINENO: checking for backtrace() in <execinfo.h>" >&5
38102 echo $ECHO_N "checking for backtrace() in <execinfo.h>... $ECHO_C" >&6; }
38103 if test "${wx_cv_func_backtrace+set}" = set; then
38104   echo $ECHO_N "(cached) $ECHO_C" >&6
38105 else
38106
38107             ac_ext=cpp
38108 ac_cpp='$CXXCPP $CPPFLAGS'
38109 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38110 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38111 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
38112
38113             cat >conftest.$ac_ext <<_ACEOF
38114 /* confdefs.h.  */
38115 _ACEOF
38116 cat confdefs.h >>conftest.$ac_ext
38117 cat >>conftest.$ac_ext <<_ACEOF
38118 /* end confdefs.h.  */
38119 #include <execinfo.h>
38120 int
38121 main ()
38122 {
38123
38124                     void *trace[1];
38125                     char **messages;
38126
38127                     backtrace(trace, 1);
38128                     messages = backtrace_symbols(trace, 1);
38129
38130   ;
38131   return 0;
38132 }
38133 _ACEOF
38134 rm -f conftest.$ac_objext
38135 if { (ac_try="$ac_compile"
38136 case "(($ac_try" in
38137   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38138   *) ac_try_echo=$ac_try;;
38139 esac
38140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38141   (eval "$ac_compile") 2>conftest.er1
38142   ac_status=$?
38143   grep -v '^ *+' conftest.er1 >conftest.err
38144   rm -f conftest.er1
38145   cat conftest.err >&5
38146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38147   (exit $ac_status); } && {
38148          test -z "$ac_cxx_werror_flag" ||
38149          test ! -s conftest.err
38150        } && test -s conftest.$ac_objext; then
38151   wx_cv_func_backtrace=yes
38152 else
38153   echo "$as_me: failed program was:" >&5
38154 sed 's/^/| /' conftest.$ac_ext >&5
38155
38156         wx_cv_func_backtrace=no
38157
38158 fi
38159
38160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38161             ac_ext=c
38162 ac_cpp='$CPP $CPPFLAGS'
38163 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38164 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38165 ac_compiler_gnu=$ac_cv_c_compiler_gnu
38166
38167
38168
38169 fi
38170 { echo "$as_me:$LINENO: result: $wx_cv_func_backtrace" >&5
38171 echo "${ECHO_T}$wx_cv_func_backtrace" >&6; }
38172
38173
38174     if test "$wx_cv_func_backtrace" = "no"; then
38175         { echo "$as_me:$LINENO: WARNING: backtrace() is not available, wxStackWalker will not be available" >&5
38176 echo "$as_me: WARNING: backtrace() is not available, wxStackWalker will not be available" >&2;}
38177         wxUSE_STACKWALKER=no
38178     else
38179         { echo "$as_me:$LINENO: checking for __cxa_demangle() in <cxxabi.h>" >&5
38180 echo $ECHO_N "checking for __cxa_demangle() in <cxxabi.h>... $ECHO_C" >&6; }
38181 if test "${wx_cv_func_cxa_demangle+set}" = set; then
38182   echo $ECHO_N "(cached) $ECHO_C" >&6
38183 else
38184
38185                 ac_ext=cpp
38186 ac_cpp='$CXXCPP $CPPFLAGS'
38187 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38188 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38189 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
38190
38191                 cat >conftest.$ac_ext <<_ACEOF
38192 /* confdefs.h.  */
38193 _ACEOF
38194 cat confdefs.h >>conftest.$ac_ext
38195 cat >>conftest.$ac_ext <<_ACEOF
38196 /* end confdefs.h.  */
38197 #include <cxxabi.h>
38198 int
38199 main ()
38200 {
38201
38202                         int rc;
38203                         __cxxabiv1::__cxa_demangle("foo", 0, 0, &rc);
38204
38205   ;
38206   return 0;
38207 }
38208 _ACEOF
38209 rm -f conftest.$ac_objext conftest$ac_exeext
38210 if { (ac_try="$ac_link"
38211 case "(($ac_try" in
38212   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38213   *) ac_try_echo=$ac_try;;
38214 esac
38215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38216   (eval "$ac_link") 2>conftest.er1
38217   ac_status=$?
38218   grep -v '^ *+' conftest.er1 >conftest.err
38219   rm -f conftest.er1
38220   cat conftest.err >&5
38221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38222   (exit $ac_status); } && {
38223          test -z "$ac_cxx_werror_flag" ||
38224          test ! -s conftest.err
38225        } && test -s conftest$ac_exeext &&
38226        $as_test_x conftest$ac_exeext; then
38227   wx_cv_func_cxa_demangle=yes
38228 else
38229   echo "$as_me: failed program was:" >&5
38230 sed 's/^/| /' conftest.$ac_ext >&5
38231
38232         wx_cv_func_cxa_demangle=no
38233
38234 fi
38235
38236 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38237       conftest$ac_exeext conftest.$ac_ext
38238                 ac_ext=c
38239 ac_cpp='$CPP $CPPFLAGS'
38240 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38241 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38242 ac_compiler_gnu=$ac_cv_c_compiler_gnu
38243
38244
38245
38246 fi
38247 { echo "$as_me:$LINENO: result: $wx_cv_func_cxa_demangle" >&5
38248 echo "${ECHO_T}$wx_cv_func_cxa_demangle" >&6; }
38249
38250         if test "$wx_cv_func_cxa_demangle" = "yes"; then
38251             cat >>confdefs.h <<\_ACEOF
38252 #define HAVE_CXA_DEMANGLE 1
38253 _ACEOF
38254
38255         fi
38256     fi
38257 fi
38258
38259 if test "$wxUSE_STACKWALKER" = "yes" -a "$USE_WIN32" != 1 -a "$USE_UNIX" != 1; then
38260     { echo "$as_me:$LINENO: WARNING: wxStackWalker is only available on Win32 and UNIX... disabled" >&5
38261 echo "$as_me: WARNING: wxStackWalker is only available on Win32 and UNIX... disabled" >&2;}
38262     wxUSE_STACKWALKER=no
38263 fi
38264
38265
38266
38267
38268 for ac_func in mkstemp mktemp
38269 do
38270 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38271 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38272 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38273 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38274   echo $ECHO_N "(cached) $ECHO_C" >&6
38275 else
38276   cat >conftest.$ac_ext <<_ACEOF
38277 /* confdefs.h.  */
38278 _ACEOF
38279 cat confdefs.h >>conftest.$ac_ext
38280 cat >>conftest.$ac_ext <<_ACEOF
38281 /* end confdefs.h.  */
38282 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38283    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38284 #define $ac_func innocuous_$ac_func
38285
38286 /* System header to define __stub macros and hopefully few prototypes,
38287     which can conflict with char $ac_func (); below.
38288     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38289     <limits.h> exists even on freestanding compilers.  */
38290
38291 #ifdef __STDC__
38292 # include <limits.h>
38293 #else
38294 # include <assert.h>
38295 #endif
38296
38297 #undef $ac_func
38298
38299 /* Override any GCC internal prototype to avoid an error.
38300    Use char because int might match the return type of a GCC
38301    builtin and then its argument prototype would still apply.  */
38302 #ifdef __cplusplus
38303 extern "C"
38304 #endif
38305 char $ac_func ();
38306 /* The GNU C library defines this for functions which it implements
38307     to always fail with ENOSYS.  Some functions are actually named
38308     something starting with __ and the normal name is an alias.  */
38309 #if defined __stub_$ac_func || defined __stub___$ac_func
38310 choke me
38311 #endif
38312
38313 int
38314 main ()
38315 {
38316 return $ac_func ();
38317   ;
38318   return 0;
38319 }
38320 _ACEOF
38321 rm -f conftest.$ac_objext conftest$ac_exeext
38322 if { (ac_try="$ac_link"
38323 case "(($ac_try" in
38324   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38325   *) ac_try_echo=$ac_try;;
38326 esac
38327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38328   (eval "$ac_link") 2>conftest.er1
38329   ac_status=$?
38330   grep -v '^ *+' conftest.er1 >conftest.err
38331   rm -f conftest.er1
38332   cat conftest.err >&5
38333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38334   (exit $ac_status); } && {
38335          test -z "$ac_c_werror_flag" ||
38336          test ! -s conftest.err
38337        } && test -s conftest$ac_exeext &&
38338        $as_test_x conftest$ac_exeext; then
38339   eval "$as_ac_var=yes"
38340 else
38341   echo "$as_me: failed program was:" >&5
38342 sed 's/^/| /' conftest.$ac_ext >&5
38343
38344         eval "$as_ac_var=no"
38345 fi
38346
38347 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38348       conftest$ac_exeext conftest.$ac_ext
38349 fi
38350 ac_res=`eval echo '${'$as_ac_var'}'`
38351                { echo "$as_me:$LINENO: result: $ac_res" >&5
38352 echo "${ECHO_T}$ac_res" >&6; }
38353 if test `eval echo '${'$as_ac_var'}'` = yes; then
38354   cat >>confdefs.h <<_ACEOF
38355 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38356 _ACEOF
38357  break
38358 fi
38359 done
38360
38361
38362 { echo "$as_me:$LINENO: checking for statfs" >&5
38363 echo $ECHO_N "checking for statfs... $ECHO_C" >&6; }
38364 if test "${wx_cv_func_statfs+set}" = set; then
38365   echo $ECHO_N "(cached) $ECHO_C" >&6
38366 else
38367   cat >conftest.$ac_ext <<_ACEOF
38368 /* confdefs.h.  */
38369 _ACEOF
38370 cat confdefs.h >>conftest.$ac_ext
38371 cat >>conftest.$ac_ext <<_ACEOF
38372 /* end confdefs.h.  */
38373
38374              #if defined(__BSD__)
38375              #include <sys/param.h>
38376              #include <sys/mount.h>
38377              #else
38378              #include <sys/vfs.h>
38379              #endif
38380
38381 int
38382 main ()
38383 {
38384
38385              long l;
38386              struct statfs fs;
38387              statfs("/", &fs);
38388              l = fs.f_bsize;
38389              l += fs.f_blocks;
38390              l += fs.f_bavail;
38391
38392   ;
38393   return 0;
38394 }
38395 _ACEOF
38396 rm -f conftest.$ac_objext
38397 if { (ac_try="$ac_compile"
38398 case "(($ac_try" in
38399   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38400   *) ac_try_echo=$ac_try;;
38401 esac
38402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38403   (eval "$ac_compile") 2>conftest.er1
38404   ac_status=$?
38405   grep -v '^ *+' conftest.er1 >conftest.err
38406   rm -f conftest.er1
38407   cat conftest.err >&5
38408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38409   (exit $ac_status); } && {
38410          test -z "$ac_c_werror_flag" ||
38411          test ! -s conftest.err
38412        } && test -s conftest.$ac_objext; then
38413   wx_cv_func_statfs=yes
38414 else
38415   echo "$as_me: failed program was:" >&5
38416 sed 's/^/| /' conftest.$ac_ext >&5
38417
38418         wx_cv_func_statfs=no
38419
38420 fi
38421
38422 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38423
38424 fi
38425 { echo "$as_me:$LINENO: result: $wx_cv_func_statfs" >&5
38426 echo "${ECHO_T}$wx_cv_func_statfs" >&6; }
38427
38428 if test "$wx_cv_func_statfs" = "yes"; then
38429         { echo "$as_me:$LINENO: checking for statfs declaration" >&5
38430 echo $ECHO_N "checking for statfs declaration... $ECHO_C" >&6; }
38431 if test "${wx_cv_func_statfs_decl+set}" = set; then
38432   echo $ECHO_N "(cached) $ECHO_C" >&6
38433 else
38434   ac_ext=cpp
38435 ac_cpp='$CXXCPP $CPPFLAGS'
38436 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38437 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38438 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
38439
38440         cat >conftest.$ac_ext <<_ACEOF
38441 /* confdefs.h.  */
38442 _ACEOF
38443 cat confdefs.h >>conftest.$ac_ext
38444 cat >>conftest.$ac_ext <<_ACEOF
38445 /* end confdefs.h.  */
38446
38447                  #if defined(__BSD__)
38448                  #include <sys/param.h>
38449                  #include <sys/mount.h>
38450                  #else
38451                  #include <sys/vfs.h>
38452                  #endif
38453
38454 int
38455 main ()
38456 {
38457
38458                 struct statfs fs;
38459                 statfs("", &fs);
38460
38461   ;
38462   return 0;
38463 }
38464 _ACEOF
38465 rm -f conftest.$ac_objext
38466 if { (ac_try="$ac_compile"
38467 case "(($ac_try" in
38468   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38469   *) ac_try_echo=$ac_try;;
38470 esac
38471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38472   (eval "$ac_compile") 2>conftest.er1
38473   ac_status=$?
38474   grep -v '^ *+' conftest.er1 >conftest.err
38475   rm -f conftest.er1
38476   cat conftest.err >&5
38477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38478   (exit $ac_status); } && {
38479          test -z "$ac_cxx_werror_flag" ||
38480          test ! -s conftest.err
38481        } && test -s conftest.$ac_objext; then
38482   wx_cv_func_statfs_decl=yes
38483 else
38484   echo "$as_me: failed program was:" >&5
38485 sed 's/^/| /' conftest.$ac_ext >&5
38486
38487         wx_cv_func_statfs_decl=no
38488
38489 fi
38490
38491 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38492         ac_ext=c
38493 ac_cpp='$CPP $CPPFLAGS'
38494 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38495 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38496 ac_compiler_gnu=$ac_cv_c_compiler_gnu
38497
38498
38499 fi
38500 { echo "$as_me:$LINENO: result: $wx_cv_func_statfs_decl" >&5
38501 echo "${ECHO_T}$wx_cv_func_statfs_decl" >&6; }
38502
38503     if test "$wx_cv_func_statfs_decl" = "yes"; then
38504         cat >>confdefs.h <<\_ACEOF
38505 #define HAVE_STATFS_DECL 1
38506 _ACEOF
38507
38508     fi
38509
38510     wx_cv_type_statvfs_t="struct statfs"
38511     cat >>confdefs.h <<\_ACEOF
38512 #define HAVE_STATFS 1
38513 _ACEOF
38514
38515 else
38516     { echo "$as_me:$LINENO: checking for statvfs" >&5
38517 echo $ECHO_N "checking for statvfs... $ECHO_C" >&6; }
38518 if test "${wx_cv_func_statvfs+set}" = set; then
38519   echo $ECHO_N "(cached) $ECHO_C" >&6
38520 else
38521   cat >conftest.$ac_ext <<_ACEOF
38522 /* confdefs.h.  */
38523 _ACEOF
38524 cat confdefs.h >>conftest.$ac_ext
38525 cat >>conftest.$ac_ext <<_ACEOF
38526 /* end confdefs.h.  */
38527
38528                 #include <stddef.h>
38529                 #include <sys/statvfs.h>
38530
38531 int
38532 main ()
38533 {
38534
38535                 statvfs("/", NULL);
38536
38537   ;
38538   return 0;
38539 }
38540 _ACEOF
38541 rm -f conftest.$ac_objext
38542 if { (ac_try="$ac_compile"
38543 case "(($ac_try" in
38544   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38545   *) ac_try_echo=$ac_try;;
38546 esac
38547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38548   (eval "$ac_compile") 2>conftest.er1
38549   ac_status=$?
38550   grep -v '^ *+' conftest.er1 >conftest.err
38551   rm -f conftest.er1
38552   cat conftest.err >&5
38553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38554   (exit $ac_status); } && {
38555          test -z "$ac_c_werror_flag" ||
38556          test ! -s conftest.err
38557        } && test -s conftest.$ac_objext; then
38558   wx_cv_func_statvfs=yes
38559 else
38560   echo "$as_me: failed program was:" >&5
38561 sed 's/^/| /' conftest.$ac_ext >&5
38562
38563         wx_cv_func_statvfs=no
38564
38565 fi
38566
38567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38568
38569 fi
38570 { echo "$as_me:$LINENO: result: $wx_cv_func_statvfs" >&5
38571 echo "${ECHO_T}$wx_cv_func_statvfs" >&6; }
38572
38573     if test "$wx_cv_func_statvfs" = "yes"; then
38574                                                                 { echo "$as_me:$LINENO: checking for statvfs argument type" >&5
38575 echo $ECHO_N "checking for statvfs argument type... $ECHO_C" >&6; }
38576 if test "${wx_cv_type_statvfs_t+set}" = set; then
38577   echo $ECHO_N "(cached) $ECHO_C" >&6
38578 else
38579   ac_ext=cpp
38580 ac_cpp='$CXXCPP $CPPFLAGS'
38581 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38582 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38583 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
38584
38585             cat >conftest.$ac_ext <<_ACEOF
38586 /* confdefs.h.  */
38587 _ACEOF
38588 cat confdefs.h >>conftest.$ac_ext
38589 cat >>conftest.$ac_ext <<_ACEOF
38590 /* end confdefs.h.  */
38591
38592                     #include <sys/statvfs.h>
38593
38594 int
38595 main ()
38596 {
38597
38598                     long l;
38599                     statvfs_t fs;
38600                     statvfs("/", &fs);
38601                     l = fs.f_bsize;
38602                     l += fs.f_blocks;
38603                     l += fs.f_bavail;
38604
38605   ;
38606   return 0;
38607 }
38608 _ACEOF
38609 rm -f conftest.$ac_objext
38610 if { (ac_try="$ac_compile"
38611 case "(($ac_try" in
38612   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38613   *) ac_try_echo=$ac_try;;
38614 esac
38615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38616   (eval "$ac_compile") 2>conftest.er1
38617   ac_status=$?
38618   grep -v '^ *+' conftest.er1 >conftest.err
38619   rm -f conftest.er1
38620   cat conftest.err >&5
38621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38622   (exit $ac_status); } && {
38623          test -z "$ac_cxx_werror_flag" ||
38624          test ! -s conftest.err
38625        } && test -s conftest.$ac_objext; then
38626   wx_cv_type_statvfs_t=statvfs_t
38627 else
38628   echo "$as_me: failed program was:" >&5
38629 sed 's/^/| /' conftest.$ac_ext >&5
38630
38631
38632                     cat >conftest.$ac_ext <<_ACEOF
38633 /* confdefs.h.  */
38634 _ACEOF
38635 cat confdefs.h >>conftest.$ac_ext
38636 cat >>conftest.$ac_ext <<_ACEOF
38637 /* end confdefs.h.  */
38638
38639                             #include <sys/statvfs.h>
38640
38641 int
38642 main ()
38643 {
38644
38645                             long l;
38646                             struct statvfs fs;
38647                             statvfs("/", &fs);
38648                             l = fs.f_bsize;
38649                             l += fs.f_blocks;
38650                             l += fs.f_bavail;
38651
38652   ;
38653   return 0;
38654 }
38655 _ACEOF
38656 rm -f conftest.$ac_objext
38657 if { (ac_try="$ac_compile"
38658 case "(($ac_try" in
38659   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38660   *) ac_try_echo=$ac_try;;
38661 esac
38662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38663   (eval "$ac_compile") 2>conftest.er1
38664   ac_status=$?
38665   grep -v '^ *+' conftest.er1 >conftest.err
38666   rm -f conftest.er1
38667   cat conftest.err >&5
38668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38669   (exit $ac_status); } && {
38670          test -z "$ac_cxx_werror_flag" ||
38671          test ! -s conftest.err
38672        } && test -s conftest.$ac_objext; then
38673   wx_cv_type_statvfs_t="struct statvfs"
38674 else
38675   echo "$as_me: failed program was:" >&5
38676 sed 's/^/| /' conftest.$ac_ext >&5
38677
38678         wx_cv_type_statvfs_t="unknown"
38679
38680 fi
38681
38682 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38683
38684
38685 fi
38686
38687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38688             ac_ext=c
38689 ac_cpp='$CPP $CPPFLAGS'
38690 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38691 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38692 ac_compiler_gnu=$ac_cv_c_compiler_gnu
38693
38694
38695 fi
38696 { echo "$as_me:$LINENO: result: $wx_cv_type_statvfs_t" >&5
38697 echo "${ECHO_T}$wx_cv_type_statvfs_t" >&6; }
38698
38699         if test "$wx_cv_type_statvfs_t" != "unknown"; then
38700             cat >>confdefs.h <<\_ACEOF
38701 #define HAVE_STATVFS 1
38702 _ACEOF
38703
38704         fi
38705     else
38706                 wx_cv_type_statvfs_t="unknown"
38707     fi
38708 fi
38709
38710 if test "$wx_cv_type_statvfs_t" != "unknown"; then
38711     cat >>confdefs.h <<_ACEOF
38712 #define WX_STATFS_T $wx_cv_type_statvfs_t
38713 _ACEOF
38714
38715 else
38716     { echo "$as_me:$LINENO: WARNING: wxGetDiskSpace() function won't work without statfs()" >&5
38717 echo "$as_me: WARNING: wxGetDiskSpace() function won't work without statfs()" >&2;}
38718 fi
38719
38720 if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
38721
38722
38723 for ac_func in fcntl flock
38724 do
38725 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38726 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38727 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38728 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38729   echo $ECHO_N "(cached) $ECHO_C" >&6
38730 else
38731   cat >conftest.$ac_ext <<_ACEOF
38732 /* confdefs.h.  */
38733 _ACEOF
38734 cat confdefs.h >>conftest.$ac_ext
38735 cat >>conftest.$ac_ext <<_ACEOF
38736 /* end confdefs.h.  */
38737 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38738    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38739 #define $ac_func innocuous_$ac_func
38740
38741 /* System header to define __stub macros and hopefully few prototypes,
38742     which can conflict with char $ac_func (); below.
38743     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38744     <limits.h> exists even on freestanding compilers.  */
38745
38746 #ifdef __STDC__
38747 # include <limits.h>
38748 #else
38749 # include <assert.h>
38750 #endif
38751
38752 #undef $ac_func
38753
38754 /* Override any GCC internal prototype to avoid an error.
38755    Use char because int might match the return type of a GCC
38756    builtin and then its argument prototype would still apply.  */
38757 #ifdef __cplusplus
38758 extern "C"
38759 #endif
38760 char $ac_func ();
38761 /* The GNU C library defines this for functions which it implements
38762     to always fail with ENOSYS.  Some functions are actually named
38763     something starting with __ and the normal name is an alias.  */
38764 #if defined __stub_$ac_func || defined __stub___$ac_func
38765 choke me
38766 #endif
38767
38768 int
38769 main ()
38770 {
38771 return $ac_func ();
38772   ;
38773   return 0;
38774 }
38775 _ACEOF
38776 rm -f conftest.$ac_objext conftest$ac_exeext
38777 if { (ac_try="$ac_link"
38778 case "(($ac_try" in
38779   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38780   *) ac_try_echo=$ac_try;;
38781 esac
38782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38783   (eval "$ac_link") 2>conftest.er1
38784   ac_status=$?
38785   grep -v '^ *+' conftest.er1 >conftest.err
38786   rm -f conftest.er1
38787   cat conftest.err >&5
38788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38789   (exit $ac_status); } && {
38790          test -z "$ac_c_werror_flag" ||
38791          test ! -s conftest.err
38792        } && test -s conftest$ac_exeext &&
38793        $as_test_x conftest$ac_exeext; then
38794   eval "$as_ac_var=yes"
38795 else
38796   echo "$as_me: failed program was:" >&5
38797 sed 's/^/| /' conftest.$ac_ext >&5
38798
38799         eval "$as_ac_var=no"
38800 fi
38801
38802 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38803       conftest$ac_exeext conftest.$ac_ext
38804 fi
38805 ac_res=`eval echo '${'$as_ac_var'}'`
38806                { echo "$as_me:$LINENO: result: $ac_res" >&5
38807 echo "${ECHO_T}$ac_res" >&6; }
38808 if test `eval echo '${'$as_ac_var'}'` = yes; then
38809   cat >>confdefs.h <<_ACEOF
38810 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38811 _ACEOF
38812  break
38813 fi
38814 done
38815
38816
38817     if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
38818         { echo "$as_me:$LINENO: WARNING: wxSingleInstanceChecker not available" >&5
38819 echo "$as_me: WARNING: wxSingleInstanceChecker not available" >&2;}
38820         wxUSE_SNGLINST_CHECKER=no
38821     fi
38822 fi
38823
38824
38825
38826 for ac_func in setenv putenv
38827 do
38828 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38829 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38830 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38831 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38832   echo $ECHO_N "(cached) $ECHO_C" >&6
38833 else
38834   cat >conftest.$ac_ext <<_ACEOF
38835 /* confdefs.h.  */
38836 _ACEOF
38837 cat confdefs.h >>conftest.$ac_ext
38838 cat >>conftest.$ac_ext <<_ACEOF
38839 /* end confdefs.h.  */
38840 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38841    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38842 #define $ac_func innocuous_$ac_func
38843
38844 /* System header to define __stub macros and hopefully few prototypes,
38845     which can conflict with char $ac_func (); below.
38846     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38847     <limits.h> exists even on freestanding compilers.  */
38848
38849 #ifdef __STDC__
38850 # include <limits.h>
38851 #else
38852 # include <assert.h>
38853 #endif
38854
38855 #undef $ac_func
38856
38857 /* Override any GCC internal prototype to avoid an error.
38858    Use char because int might match the return type of a GCC
38859    builtin and then its argument prototype would still apply.  */
38860 #ifdef __cplusplus
38861 extern "C"
38862 #endif
38863 char $ac_func ();
38864 /* The GNU C library defines this for functions which it implements
38865     to always fail with ENOSYS.  Some functions are actually named
38866     something starting with __ and the normal name is an alias.  */
38867 #if defined __stub_$ac_func || defined __stub___$ac_func
38868 choke me
38869 #endif
38870
38871 int
38872 main ()
38873 {
38874 return $ac_func ();
38875   ;
38876   return 0;
38877 }
38878 _ACEOF
38879 rm -f conftest.$ac_objext conftest$ac_exeext
38880 if { (ac_try="$ac_link"
38881 case "(($ac_try" in
38882   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38883   *) ac_try_echo=$ac_try;;
38884 esac
38885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38886   (eval "$ac_link") 2>conftest.er1
38887   ac_status=$?
38888   grep -v '^ *+' conftest.er1 >conftest.err
38889   rm -f conftest.er1
38890   cat conftest.err >&5
38891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38892   (exit $ac_status); } && {
38893          test -z "$ac_c_werror_flag" ||
38894          test ! -s conftest.err
38895        } && test -s conftest$ac_exeext &&
38896        $as_test_x conftest$ac_exeext; then
38897   eval "$as_ac_var=yes"
38898 else
38899   echo "$as_me: failed program was:" >&5
38900 sed 's/^/| /' conftest.$ac_ext >&5
38901
38902         eval "$as_ac_var=no"
38903 fi
38904
38905 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38906       conftest$ac_exeext conftest.$ac_ext
38907 fi
38908 ac_res=`eval echo '${'$as_ac_var'}'`
38909                { echo "$as_me:$LINENO: result: $ac_res" >&5
38910 echo "${ECHO_T}$ac_res" >&6; }
38911 if test `eval echo '${'$as_ac_var'}'` = yes; then
38912   cat >>confdefs.h <<_ACEOF
38913 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38914 _ACEOF
38915  break
38916 fi
38917 done
38918
38919 if test "$ac_cv_func_setenv" = "yes"; then
38920
38921 for ac_func in unsetenv
38922 do
38923 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38924 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38925 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38926 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38927   echo $ECHO_N "(cached) $ECHO_C" >&6
38928 else
38929   cat >conftest.$ac_ext <<_ACEOF
38930 /* confdefs.h.  */
38931 _ACEOF
38932 cat confdefs.h >>conftest.$ac_ext
38933 cat >>conftest.$ac_ext <<_ACEOF
38934 /* end confdefs.h.  */
38935 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38936    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38937 #define $ac_func innocuous_$ac_func
38938
38939 /* System header to define __stub macros and hopefully few prototypes,
38940     which can conflict with char $ac_func (); below.
38941     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38942     <limits.h> exists even on freestanding compilers.  */
38943
38944 #ifdef __STDC__
38945 # include <limits.h>
38946 #else
38947 # include <assert.h>
38948 #endif
38949
38950 #undef $ac_func
38951
38952 /* Override any GCC internal prototype to avoid an error.
38953    Use char because int might match the return type of a GCC
38954    builtin and then its argument prototype would still apply.  */
38955 #ifdef __cplusplus
38956 extern "C"
38957 #endif
38958 char $ac_func ();
38959 /* The GNU C library defines this for functions which it implements
38960     to always fail with ENOSYS.  Some functions are actually named
38961     something starting with __ and the normal name is an alias.  */
38962 #if defined __stub_$ac_func || defined __stub___$ac_func
38963 choke me
38964 #endif
38965
38966 int
38967 main ()
38968 {
38969 return $ac_func ();
38970   ;
38971   return 0;
38972 }
38973 _ACEOF
38974 rm -f conftest.$ac_objext conftest$ac_exeext
38975 if { (ac_try="$ac_link"
38976 case "(($ac_try" in
38977   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38978   *) ac_try_echo=$ac_try;;
38979 esac
38980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38981   (eval "$ac_link") 2>conftest.er1
38982   ac_status=$?
38983   grep -v '^ *+' conftest.er1 >conftest.err
38984   rm -f conftest.er1
38985   cat conftest.err >&5
38986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38987   (exit $ac_status); } && {
38988          test -z "$ac_c_werror_flag" ||
38989          test ! -s conftest.err
38990        } && test -s conftest$ac_exeext &&
38991        $as_test_x conftest$ac_exeext; then
38992   eval "$as_ac_var=yes"
38993 else
38994   echo "$as_me: failed program was:" >&5
38995 sed 's/^/| /' conftest.$ac_ext >&5
38996
38997         eval "$as_ac_var=no"
38998 fi
38999
39000 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39001       conftest$ac_exeext conftest.$ac_ext
39002 fi
39003 ac_res=`eval echo '${'$as_ac_var'}'`
39004                { echo "$as_me:$LINENO: result: $ac_res" >&5
39005 echo "${ECHO_T}$ac_res" >&6; }
39006 if test `eval echo '${'$as_ac_var'}'` = yes; then
39007   cat >>confdefs.h <<_ACEOF
39008 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39009 _ACEOF
39010
39011 fi
39012 done
39013
39014 fi
39015
39016 HAVE_SOME_SLEEP_FUNC=0
39017 if test "$USE_BEOS" = 1; then
39018             cat >>confdefs.h <<\_ACEOF
39019 #define HAVE_SLEEP 1
39020 _ACEOF
39021
39022     HAVE_SOME_SLEEP_FUNC=1
39023 fi
39024
39025 if test "$USE_DARWIN" = 1; then
39026             cat >>confdefs.h <<\_ACEOF
39027 #define HAVE_USLEEP 1
39028 _ACEOF
39029
39030     HAVE_SOME_SLEEP_FUNC=1
39031 fi
39032
39033 if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
39034         POSIX4_LINK=
39035
39036 for ac_func in nanosleep
39037 do
39038 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39039 { echo "$as_me:$LINENO: checking for $ac_func" >&5
39040 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
39041 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39042   echo $ECHO_N "(cached) $ECHO_C" >&6
39043 else
39044   cat >conftest.$ac_ext <<_ACEOF
39045 /* confdefs.h.  */
39046 _ACEOF
39047 cat confdefs.h >>conftest.$ac_ext
39048 cat >>conftest.$ac_ext <<_ACEOF
39049 /* end confdefs.h.  */
39050 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39051    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39052 #define $ac_func innocuous_$ac_func
39053
39054 /* System header to define __stub macros and hopefully few prototypes,
39055     which can conflict with char $ac_func (); below.
39056     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39057     <limits.h> exists even on freestanding compilers.  */
39058
39059 #ifdef __STDC__
39060 # include <limits.h>
39061 #else
39062 # include <assert.h>
39063 #endif
39064
39065 #undef $ac_func
39066
39067 /* Override any GCC internal prototype to avoid an error.
39068    Use char because int might match the return type of a GCC
39069    builtin and then its argument prototype would still apply.  */
39070 #ifdef __cplusplus
39071 extern "C"
39072 #endif
39073 char $ac_func ();
39074 /* The GNU C library defines this for functions which it implements
39075     to always fail with ENOSYS.  Some functions are actually named
39076     something starting with __ and the normal name is an alias.  */
39077 #if defined __stub_$ac_func || defined __stub___$ac_func
39078 choke me
39079 #endif
39080
39081 int
39082 main ()
39083 {
39084 return $ac_func ();
39085   ;
39086   return 0;
39087 }
39088 _ACEOF
39089 rm -f conftest.$ac_objext conftest$ac_exeext
39090 if { (ac_try="$ac_link"
39091 case "(($ac_try" in
39092   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39093   *) ac_try_echo=$ac_try;;
39094 esac
39095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39096   (eval "$ac_link") 2>conftest.er1
39097   ac_status=$?
39098   grep -v '^ *+' conftest.er1 >conftest.err
39099   rm -f conftest.er1
39100   cat conftest.err >&5
39101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39102   (exit $ac_status); } && {
39103          test -z "$ac_c_werror_flag" ||
39104          test ! -s conftest.err
39105        } && test -s conftest$ac_exeext &&
39106        $as_test_x conftest$ac_exeext; then
39107   eval "$as_ac_var=yes"
39108 else
39109   echo "$as_me: failed program was:" >&5
39110 sed 's/^/| /' conftest.$ac_ext >&5
39111
39112         eval "$as_ac_var=no"
39113 fi
39114
39115 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39116       conftest$ac_exeext conftest.$ac_ext
39117 fi
39118 ac_res=`eval echo '${'$as_ac_var'}'`
39119                { echo "$as_me:$LINENO: result: $ac_res" >&5
39120 echo "${ECHO_T}$ac_res" >&6; }
39121 if test `eval echo '${'$as_ac_var'}'` = yes; then
39122   cat >>confdefs.h <<_ACEOF
39123 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39124 _ACEOF
39125  cat >>confdefs.h <<\_ACEOF
39126 #define HAVE_NANOSLEEP 1
39127 _ACEOF
39128
39129 else
39130
39131             { echo "$as_me:$LINENO: checking for nanosleep in -lposix4" >&5
39132 echo $ECHO_N "checking for nanosleep in -lposix4... $ECHO_C" >&6; }
39133 if test "${ac_cv_lib_posix4_nanosleep+set}" = set; then
39134   echo $ECHO_N "(cached) $ECHO_C" >&6
39135 else
39136   ac_check_lib_save_LIBS=$LIBS
39137 LIBS="-lposix4  $LIBS"
39138 cat >conftest.$ac_ext <<_ACEOF
39139 /* confdefs.h.  */
39140 _ACEOF
39141 cat confdefs.h >>conftest.$ac_ext
39142 cat >>conftest.$ac_ext <<_ACEOF
39143 /* end confdefs.h.  */
39144
39145 /* Override any GCC internal prototype to avoid an error.
39146    Use char because int might match the return type of a GCC
39147    builtin and then its argument prototype would still apply.  */
39148 #ifdef __cplusplus
39149 extern "C"
39150 #endif
39151 char nanosleep ();
39152 int
39153 main ()
39154 {
39155 return nanosleep ();
39156   ;
39157   return 0;
39158 }
39159 _ACEOF
39160 rm -f conftest.$ac_objext conftest$ac_exeext
39161 if { (ac_try="$ac_link"
39162 case "(($ac_try" in
39163   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39164   *) ac_try_echo=$ac_try;;
39165 esac
39166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39167   (eval "$ac_link") 2>conftest.er1
39168   ac_status=$?
39169   grep -v '^ *+' conftest.er1 >conftest.err
39170   rm -f conftest.er1
39171   cat conftest.err >&5
39172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39173   (exit $ac_status); } && {
39174          test -z "$ac_c_werror_flag" ||
39175          test ! -s conftest.err
39176        } && test -s conftest$ac_exeext &&
39177        $as_test_x conftest$ac_exeext; then
39178   ac_cv_lib_posix4_nanosleep=yes
39179 else
39180   echo "$as_me: failed program was:" >&5
39181 sed 's/^/| /' conftest.$ac_ext >&5
39182
39183         ac_cv_lib_posix4_nanosleep=no
39184 fi
39185
39186 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39187       conftest$ac_exeext conftest.$ac_ext
39188 LIBS=$ac_check_lib_save_LIBS
39189 fi
39190 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_nanosleep" >&5
39191 echo "${ECHO_T}$ac_cv_lib_posix4_nanosleep" >&6; }
39192 if test $ac_cv_lib_posix4_nanosleep = yes; then
39193
39194                     cat >>confdefs.h <<\_ACEOF
39195 #define HAVE_NANOSLEEP 1
39196 _ACEOF
39197
39198                     POSIX4_LINK=" -lposix4"
39199
39200 else
39201
39202
39203   for wx_func in usleep
39204   do
39205     { echo "$as_me:$LINENO: checking for $wx_func" >&5
39206 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
39207 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
39208   echo $ECHO_N "(cached) $ECHO_C" >&6
39209 else
39210
39211         cat >conftest.$ac_ext <<_ACEOF
39212
39213             /* confdefs.h.  */
39214 _ACEOF
39215 cat confdefs.h >>conftest.$ac_ext
39216 cat >>conftest.$ac_ext <<_ACEOF
39217 /* end confdefs.h.  */
39218
39219
39220                 $ac_includes_default
39221
39222 int
39223 main ()
39224 {
39225
39226                 #ifndef $wx_func
39227                   &$wx_func;
39228                 #endif
39229
39230
39231   ;
39232   return 0;
39233 }
39234
39235 _ACEOF
39236 rm -f conftest.$ac_objext conftest$ac_exeext
39237 if { (ac_try="$ac_link"
39238 case "(($ac_try" in
39239   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39240   *) ac_try_echo=$ac_try;;
39241 esac
39242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39243   (eval "$ac_link") 2>conftest.er1
39244   ac_status=$?
39245   grep -v '^ *+' conftest.er1 >conftest.err
39246   rm -f conftest.er1
39247   cat conftest.err >&5
39248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39249   (exit $ac_status); } && {
39250          test -z "$ac_c_werror_flag" ||
39251          test ! -s conftest.err
39252        } && test -s conftest$ac_exeext &&
39253        $as_test_x conftest$ac_exeext; then
39254   eval wx_cv_func_$wx_func=yes
39255 else
39256   echo "$as_me: failed program was:" >&5
39257 sed 's/^/| /' conftest.$ac_ext >&5
39258
39259         eval wx_cv_func_$wx_func=no
39260 fi
39261
39262 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39263       conftest$ac_exeext conftest.$ac_ext
39264
39265 fi
39266 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
39267                { echo "$as_me:$LINENO: result: $ac_res" >&5
39268 echo "${ECHO_T}$ac_res" >&6; }
39269
39270     if eval test \$wx_cv_func_$wx_func = yes
39271     then
39272       cat >>confdefs.h <<_ACEOF
39273 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
39274 _ACEOF
39275
39276
39277     else
39278       :
39279       { echo "$as_me:$LINENO: WARNING: wxSleep() function will not work" >&5
39280 echo "$as_me: WARNING: wxSleep() function will not work" >&2;}
39281
39282     fi
39283   done
39284
39285
39286
39287 fi
39288
39289
39290
39291 fi
39292 done
39293
39294 fi
39295
39296
39297   for wx_func in uname
39298   do
39299     { echo "$as_me:$LINENO: checking for $wx_func" >&5
39300 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
39301 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
39302   echo $ECHO_N "(cached) $ECHO_C" >&6
39303 else
39304
39305         cat >conftest.$ac_ext <<_ACEOF
39306
39307             /* confdefs.h.  */
39308 _ACEOF
39309 cat confdefs.h >>conftest.$ac_ext
39310 cat >>conftest.$ac_ext <<_ACEOF
39311 /* end confdefs.h.  */
39312
39313                 #include <sys/utsname.h>
39314                 $ac_includes_default
39315
39316 int
39317 main ()
39318 {
39319
39320                 #ifndef $wx_func
39321                   &$wx_func;
39322                 #endif
39323
39324
39325   ;
39326   return 0;
39327 }
39328
39329 _ACEOF
39330 rm -f conftest.$ac_objext conftest$ac_exeext
39331 if { (ac_try="$ac_link"
39332 case "(($ac_try" in
39333   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39334   *) ac_try_echo=$ac_try;;
39335 esac
39336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39337   (eval "$ac_link") 2>conftest.er1
39338   ac_status=$?
39339   grep -v '^ *+' conftest.er1 >conftest.err
39340   rm -f conftest.er1
39341   cat conftest.err >&5
39342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39343   (exit $ac_status); } && {
39344          test -z "$ac_c_werror_flag" ||
39345          test ! -s conftest.err
39346        } && test -s conftest$ac_exeext &&
39347        $as_test_x conftest$ac_exeext; then
39348   eval wx_cv_func_$wx_func=yes
39349 else
39350   echo "$as_me: failed program was:" >&5
39351 sed 's/^/| /' conftest.$ac_ext >&5
39352
39353         eval wx_cv_func_$wx_func=no
39354 fi
39355
39356 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39357       conftest$ac_exeext conftest.$ac_ext
39358
39359 fi
39360 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
39361                { echo "$as_me:$LINENO: result: $ac_res" >&5
39362 echo "${ECHO_T}$ac_res" >&6; }
39363
39364     if eval test \$wx_cv_func_$wx_func = yes
39365     then
39366       cat >>confdefs.h <<_ACEOF
39367 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
39368 _ACEOF
39369
39370
39371     else
39372       :
39373
39374     fi
39375   done
39376
39377 if test "$wx_cv_func_uname" != yes; then
39378
39379   for wx_func in gethostname
39380   do
39381     { echo "$as_me:$LINENO: checking for $wx_func" >&5
39382 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
39383 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
39384   echo $ECHO_N "(cached) $ECHO_C" >&6
39385 else
39386
39387         cat >conftest.$ac_ext <<_ACEOF
39388
39389             /* confdefs.h.  */
39390 _ACEOF
39391 cat confdefs.h >>conftest.$ac_ext
39392 cat >>conftest.$ac_ext <<_ACEOF
39393 /* end confdefs.h.  */
39394
39395
39396                 $ac_includes_default
39397
39398 int
39399 main ()
39400 {
39401
39402                 #ifndef $wx_func
39403                   &$wx_func;
39404                 #endif
39405
39406
39407   ;
39408   return 0;
39409 }
39410
39411 _ACEOF
39412 rm -f conftest.$ac_objext conftest$ac_exeext
39413 if { (ac_try="$ac_link"
39414 case "(($ac_try" in
39415   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39416   *) ac_try_echo=$ac_try;;
39417 esac
39418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39419   (eval "$ac_link") 2>conftest.er1
39420   ac_status=$?
39421   grep -v '^ *+' conftest.er1 >conftest.err
39422   rm -f conftest.er1
39423   cat conftest.err >&5
39424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39425   (exit $ac_status); } && {
39426          test -z "$ac_c_werror_flag" ||
39427          test ! -s conftest.err
39428        } && test -s conftest$ac_exeext &&
39429        $as_test_x conftest$ac_exeext; then
39430   eval wx_cv_func_$wx_func=yes
39431 else
39432   echo "$as_me: failed program was:" >&5
39433 sed 's/^/| /' conftest.$ac_ext >&5
39434
39435         eval wx_cv_func_$wx_func=no
39436 fi
39437
39438 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39439       conftest$ac_exeext conftest.$ac_ext
39440
39441 fi
39442 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
39443                { echo "$as_me:$LINENO: result: $ac_res" >&5
39444 echo "${ECHO_T}$ac_res" >&6; }
39445
39446     if eval test \$wx_cv_func_$wx_func = yes
39447     then
39448       cat >>confdefs.h <<_ACEOF
39449 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
39450 _ACEOF
39451
39452
39453     else
39454       :
39455
39456     fi
39457   done
39458
39459 fi
39460
39461
39462   for wx_func in strtok_r
39463   do
39464     { echo "$as_me:$LINENO: checking for $wx_func" >&5
39465 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
39466 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
39467   echo $ECHO_N "(cached) $ECHO_C" >&6
39468 else
39469
39470         cat >conftest.$ac_ext <<_ACEOF
39471
39472             /* confdefs.h.  */
39473 _ACEOF
39474 cat confdefs.h >>conftest.$ac_ext
39475 cat >>conftest.$ac_ext <<_ACEOF
39476 /* end confdefs.h.  */
39477
39478                 #define _REENTRANT
39479                 $ac_includes_default
39480
39481 int
39482 main ()
39483 {
39484
39485                 #ifndef $wx_func
39486                   &$wx_func;
39487                 #endif
39488
39489
39490   ;
39491   return 0;
39492 }
39493
39494 _ACEOF
39495 rm -f conftest.$ac_objext conftest$ac_exeext
39496 if { (ac_try="$ac_link"
39497 case "(($ac_try" in
39498   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39499   *) ac_try_echo=$ac_try;;
39500 esac
39501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39502   (eval "$ac_link") 2>conftest.er1
39503   ac_status=$?
39504   grep -v '^ *+' conftest.er1 >conftest.err
39505   rm -f conftest.er1
39506   cat conftest.err >&5
39507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39508   (exit $ac_status); } && {
39509          test -z "$ac_c_werror_flag" ||
39510          test ! -s conftest.err
39511        } && test -s conftest$ac_exeext &&
39512        $as_test_x conftest$ac_exeext; then
39513   eval wx_cv_func_$wx_func=yes
39514 else
39515   echo "$as_me: failed program was:" >&5
39516 sed 's/^/| /' conftest.$ac_ext >&5
39517
39518         eval wx_cv_func_$wx_func=no
39519 fi
39520
39521 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39522       conftest$ac_exeext conftest.$ac_ext
39523
39524 fi
39525 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
39526                { echo "$as_me:$LINENO: result: $ac_res" >&5
39527 echo "${ECHO_T}$ac_res" >&6; }
39528
39529     if eval test \$wx_cv_func_$wx_func = yes
39530     then
39531       cat >>confdefs.h <<_ACEOF
39532 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
39533 _ACEOF
39534
39535
39536     else
39537       :
39538
39539     fi
39540   done
39541
39542
39543 INET_LINK=
39544
39545 for ac_func in inet_addr
39546 do
39547 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39548 { echo "$as_me:$LINENO: checking for $ac_func" >&5
39549 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
39550 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39551   echo $ECHO_N "(cached) $ECHO_C" >&6
39552 else
39553   cat >conftest.$ac_ext <<_ACEOF
39554 /* confdefs.h.  */
39555 _ACEOF
39556 cat confdefs.h >>conftest.$ac_ext
39557 cat >>conftest.$ac_ext <<_ACEOF
39558 /* end confdefs.h.  */
39559 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39560    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39561 #define $ac_func innocuous_$ac_func
39562
39563 /* System header to define __stub macros and hopefully few prototypes,
39564     which can conflict with char $ac_func (); below.
39565     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39566     <limits.h> exists even on freestanding compilers.  */
39567
39568 #ifdef __STDC__
39569 # include <limits.h>
39570 #else
39571 # include <assert.h>
39572 #endif
39573
39574 #undef $ac_func
39575
39576 /* Override any GCC internal prototype to avoid an error.
39577    Use char because int might match the return type of a GCC
39578    builtin and then its argument prototype would still apply.  */
39579 #ifdef __cplusplus
39580 extern "C"
39581 #endif
39582 char $ac_func ();
39583 /* The GNU C library defines this for functions which it implements
39584     to always fail with ENOSYS.  Some functions are actually named
39585     something starting with __ and the normal name is an alias.  */
39586 #if defined __stub_$ac_func || defined __stub___$ac_func
39587 choke me
39588 #endif
39589
39590 int
39591 main ()
39592 {
39593 return $ac_func ();
39594   ;
39595   return 0;
39596 }
39597 _ACEOF
39598 rm -f conftest.$ac_objext conftest$ac_exeext
39599 if { (ac_try="$ac_link"
39600 case "(($ac_try" in
39601   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39602   *) ac_try_echo=$ac_try;;
39603 esac
39604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39605   (eval "$ac_link") 2>conftest.er1
39606   ac_status=$?
39607   grep -v '^ *+' conftest.er1 >conftest.err
39608   rm -f conftest.er1
39609   cat conftest.err >&5
39610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39611   (exit $ac_status); } && {
39612          test -z "$ac_c_werror_flag" ||
39613          test ! -s conftest.err
39614        } && test -s conftest$ac_exeext &&
39615        $as_test_x conftest$ac_exeext; then
39616   eval "$as_ac_var=yes"
39617 else
39618   echo "$as_me: failed program was:" >&5
39619 sed 's/^/| /' conftest.$ac_ext >&5
39620
39621         eval "$as_ac_var=no"
39622 fi
39623
39624 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39625       conftest$ac_exeext conftest.$ac_ext
39626 fi
39627 ac_res=`eval echo '${'$as_ac_var'}'`
39628                { echo "$as_me:$LINENO: result: $ac_res" >&5
39629 echo "${ECHO_T}$ac_res" >&6; }
39630 if test `eval echo '${'$as_ac_var'}'` = yes; then
39631   cat >>confdefs.h <<_ACEOF
39632 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39633 _ACEOF
39634  cat >>confdefs.h <<\_ACEOF
39635 #define HAVE_INET_ADDR 1
39636 _ACEOF
39637
39638 else
39639
39640         { echo "$as_me:$LINENO: checking for inet_addr in -lnsl" >&5
39641 echo $ECHO_N "checking for inet_addr in -lnsl... $ECHO_C" >&6; }
39642 if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then
39643   echo $ECHO_N "(cached) $ECHO_C" >&6
39644 else
39645   ac_check_lib_save_LIBS=$LIBS
39646 LIBS="-lnsl  $LIBS"
39647 cat >conftest.$ac_ext <<_ACEOF
39648 /* confdefs.h.  */
39649 _ACEOF
39650 cat confdefs.h >>conftest.$ac_ext
39651 cat >>conftest.$ac_ext <<_ACEOF
39652 /* end confdefs.h.  */
39653
39654 /* Override any GCC internal prototype to avoid an error.
39655    Use char because int might match the return type of a GCC
39656    builtin and then its argument prototype would still apply.  */
39657 #ifdef __cplusplus
39658 extern "C"
39659 #endif
39660 char inet_addr ();
39661 int
39662 main ()
39663 {
39664 return inet_addr ();
39665   ;
39666   return 0;
39667 }
39668 _ACEOF
39669 rm -f conftest.$ac_objext conftest$ac_exeext
39670 if { (ac_try="$ac_link"
39671 case "(($ac_try" in
39672   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39673   *) ac_try_echo=$ac_try;;
39674 esac
39675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39676   (eval "$ac_link") 2>conftest.er1
39677   ac_status=$?
39678   grep -v '^ *+' conftest.er1 >conftest.err
39679   rm -f conftest.er1
39680   cat conftest.err >&5
39681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39682   (exit $ac_status); } && {
39683          test -z "$ac_c_werror_flag" ||
39684          test ! -s conftest.err
39685        } && test -s conftest$ac_exeext &&
39686        $as_test_x conftest$ac_exeext; then
39687   ac_cv_lib_nsl_inet_addr=yes
39688 else
39689   echo "$as_me: failed program was:" >&5
39690 sed 's/^/| /' conftest.$ac_ext >&5
39691
39692         ac_cv_lib_nsl_inet_addr=no
39693 fi
39694
39695 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39696       conftest$ac_exeext conftest.$ac_ext
39697 LIBS=$ac_check_lib_save_LIBS
39698 fi
39699 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_addr" >&5
39700 echo "${ECHO_T}$ac_cv_lib_nsl_inet_addr" >&6; }
39701 if test $ac_cv_lib_nsl_inet_addr = yes; then
39702   INET_LINK="nsl"
39703 else
39704
39705                 { echo "$as_me:$LINENO: checking for inet_addr in -lresolv" >&5
39706 echo $ECHO_N "checking for inet_addr in -lresolv... $ECHO_C" >&6; }
39707 if test "${ac_cv_lib_resolv_inet_addr+set}" = set; then
39708   echo $ECHO_N "(cached) $ECHO_C" >&6
39709 else
39710   ac_check_lib_save_LIBS=$LIBS
39711 LIBS="-lresolv  $LIBS"
39712 cat >conftest.$ac_ext <<_ACEOF
39713 /* confdefs.h.  */
39714 _ACEOF
39715 cat confdefs.h >>conftest.$ac_ext
39716 cat >>conftest.$ac_ext <<_ACEOF
39717 /* end confdefs.h.  */
39718
39719 /* Override any GCC internal prototype to avoid an error.
39720    Use char because int might match the return type of a GCC
39721    builtin and then its argument prototype would still apply.  */
39722 #ifdef __cplusplus
39723 extern "C"
39724 #endif
39725 char inet_addr ();
39726 int
39727 main ()
39728 {
39729 return inet_addr ();
39730   ;
39731   return 0;
39732 }
39733 _ACEOF
39734 rm -f conftest.$ac_objext conftest$ac_exeext
39735 if { (ac_try="$ac_link"
39736 case "(($ac_try" in
39737   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39738   *) ac_try_echo=$ac_try;;
39739 esac
39740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39741   (eval "$ac_link") 2>conftest.er1
39742   ac_status=$?
39743   grep -v '^ *+' conftest.er1 >conftest.err
39744   rm -f conftest.er1
39745   cat conftest.err >&5
39746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39747   (exit $ac_status); } && {
39748          test -z "$ac_c_werror_flag" ||
39749          test ! -s conftest.err
39750        } && test -s conftest$ac_exeext &&
39751        $as_test_x conftest$ac_exeext; then
39752   ac_cv_lib_resolv_inet_addr=yes
39753 else
39754   echo "$as_me: failed program was:" >&5
39755 sed 's/^/| /' conftest.$ac_ext >&5
39756
39757         ac_cv_lib_resolv_inet_addr=no
39758 fi
39759
39760 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39761       conftest$ac_exeext conftest.$ac_ext
39762 LIBS=$ac_check_lib_save_LIBS
39763 fi
39764 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_addr" >&5
39765 echo "${ECHO_T}$ac_cv_lib_resolv_inet_addr" >&6; }
39766 if test $ac_cv_lib_resolv_inet_addr = yes; then
39767   INET_LINK="resolv"
39768 else
39769
39770                         { echo "$as_me:$LINENO: checking for inet_addr in -lsocket" >&5
39771 echo $ECHO_N "checking for inet_addr in -lsocket... $ECHO_C" >&6; }
39772 if test "${ac_cv_lib_socket_inet_addr+set}" = set; then
39773   echo $ECHO_N "(cached) $ECHO_C" >&6
39774 else
39775   ac_check_lib_save_LIBS=$LIBS
39776 LIBS="-lsocket  $LIBS"
39777 cat >conftest.$ac_ext <<_ACEOF
39778 /* confdefs.h.  */
39779 _ACEOF
39780 cat confdefs.h >>conftest.$ac_ext
39781 cat >>conftest.$ac_ext <<_ACEOF
39782 /* end confdefs.h.  */
39783
39784 /* Override any GCC internal prototype to avoid an error.
39785    Use char because int might match the return type of a GCC
39786    builtin and then its argument prototype would still apply.  */
39787 #ifdef __cplusplus
39788 extern "C"
39789 #endif
39790 char inet_addr ();
39791 int
39792 main ()
39793 {
39794 return inet_addr ();
39795   ;
39796   return 0;
39797 }
39798 _ACEOF
39799 rm -f conftest.$ac_objext conftest$ac_exeext
39800 if { (ac_try="$ac_link"
39801 case "(($ac_try" in
39802   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39803   *) ac_try_echo=$ac_try;;
39804 esac
39805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39806   (eval "$ac_link") 2>conftest.er1
39807   ac_status=$?
39808   grep -v '^ *+' conftest.er1 >conftest.err
39809   rm -f conftest.er1
39810   cat conftest.err >&5
39811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39812   (exit $ac_status); } && {
39813          test -z "$ac_c_werror_flag" ||
39814          test ! -s conftest.err
39815        } && test -s conftest$ac_exeext &&
39816        $as_test_x conftest$ac_exeext; then
39817   ac_cv_lib_socket_inet_addr=yes
39818 else
39819   echo "$as_me: failed program was:" >&5
39820 sed 's/^/| /' conftest.$ac_ext >&5
39821
39822         ac_cv_lib_socket_inet_addr=no
39823 fi
39824
39825 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39826       conftest$ac_exeext conftest.$ac_ext
39827 LIBS=$ac_check_lib_save_LIBS
39828 fi
39829 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_inet_addr" >&5
39830 echo "${ECHO_T}$ac_cv_lib_socket_inet_addr" >&6; }
39831 if test $ac_cv_lib_socket_inet_addr = yes; then
39832   INET_LINK="socket"
39833
39834 fi
39835
39836
39837
39838 fi
39839
39840
39841
39842 fi
39843
39844
39845
39846 fi
39847 done
39848
39849
39850
39851 for ac_func in inet_aton
39852 do
39853 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39854 { echo "$as_me:$LINENO: checking for $ac_func" >&5
39855 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
39856 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39857   echo $ECHO_N "(cached) $ECHO_C" >&6
39858 else
39859   cat >conftest.$ac_ext <<_ACEOF
39860 /* confdefs.h.  */
39861 _ACEOF
39862 cat confdefs.h >>conftest.$ac_ext
39863 cat >>conftest.$ac_ext <<_ACEOF
39864 /* end confdefs.h.  */
39865 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39866    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39867 #define $ac_func innocuous_$ac_func
39868
39869 /* System header to define __stub macros and hopefully few prototypes,
39870     which can conflict with char $ac_func (); below.
39871     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39872     <limits.h> exists even on freestanding compilers.  */
39873
39874 #ifdef __STDC__
39875 # include <limits.h>
39876 #else
39877 # include <assert.h>
39878 #endif
39879
39880 #undef $ac_func
39881
39882 /* Override any GCC internal prototype to avoid an error.
39883    Use char because int might match the return type of a GCC
39884    builtin and then its argument prototype would still apply.  */
39885 #ifdef __cplusplus
39886 extern "C"
39887 #endif
39888 char $ac_func ();
39889 /* The GNU C library defines this for functions which it implements
39890     to always fail with ENOSYS.  Some functions are actually named
39891     something starting with __ and the normal name is an alias.  */
39892 #if defined __stub_$ac_func || defined __stub___$ac_func
39893 choke me
39894 #endif
39895
39896 int
39897 main ()
39898 {
39899 return $ac_func ();
39900   ;
39901   return 0;
39902 }
39903 _ACEOF
39904 rm -f conftest.$ac_objext conftest$ac_exeext
39905 if { (ac_try="$ac_link"
39906 case "(($ac_try" in
39907   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39908   *) ac_try_echo=$ac_try;;
39909 esac
39910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39911   (eval "$ac_link") 2>conftest.er1
39912   ac_status=$?
39913   grep -v '^ *+' conftest.er1 >conftest.err
39914   rm -f conftest.er1
39915   cat conftest.err >&5
39916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39917   (exit $ac_status); } && {
39918          test -z "$ac_c_werror_flag" ||
39919          test ! -s conftest.err
39920        } && test -s conftest$ac_exeext &&
39921        $as_test_x conftest$ac_exeext; then
39922   eval "$as_ac_var=yes"
39923 else
39924   echo "$as_me: failed program was:" >&5
39925 sed 's/^/| /' conftest.$ac_ext >&5
39926
39927         eval "$as_ac_var=no"
39928 fi
39929
39930 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39931       conftest$ac_exeext conftest.$ac_ext
39932 fi
39933 ac_res=`eval echo '${'$as_ac_var'}'`
39934                { echo "$as_me:$LINENO: result: $ac_res" >&5
39935 echo "${ECHO_T}$ac_res" >&6; }
39936 if test `eval echo '${'$as_ac_var'}'` = yes; then
39937   cat >>confdefs.h <<_ACEOF
39938 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39939 _ACEOF
39940  cat >>confdefs.h <<\_ACEOF
39941 #define HAVE_INET_ATON 1
39942 _ACEOF
39943
39944 else
39945
39946                         as_ac_Lib=`echo "ac_cv_lib_$INET_LINK''_inet_aton" | $as_tr_sh`
39947 { echo "$as_me:$LINENO: checking for inet_aton in -l$INET_LINK" >&5
39948 echo $ECHO_N "checking for inet_aton in -l$INET_LINK... $ECHO_C" >&6; }
39949 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
39950   echo $ECHO_N "(cached) $ECHO_C" >&6
39951 else
39952   ac_check_lib_save_LIBS=$LIBS
39953 LIBS="-l$INET_LINK  $LIBS"
39954 cat >conftest.$ac_ext <<_ACEOF
39955 /* confdefs.h.  */
39956 _ACEOF
39957 cat confdefs.h >>conftest.$ac_ext
39958 cat >>conftest.$ac_ext <<_ACEOF
39959 /* end confdefs.h.  */
39960
39961 /* Override any GCC internal prototype to avoid an error.
39962    Use char because int might match the return type of a GCC
39963    builtin and then its argument prototype would still apply.  */
39964 #ifdef __cplusplus
39965 extern "C"
39966 #endif
39967 char inet_aton ();
39968 int
39969 main ()
39970 {
39971 return inet_aton ();
39972   ;
39973   return 0;
39974 }
39975 _ACEOF
39976 rm -f conftest.$ac_objext conftest$ac_exeext
39977 if { (ac_try="$ac_link"
39978 case "(($ac_try" in
39979   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39980   *) ac_try_echo=$ac_try;;
39981 esac
39982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39983   (eval "$ac_link") 2>conftest.er1
39984   ac_status=$?
39985   grep -v '^ *+' conftest.er1 >conftest.err
39986   rm -f conftest.er1
39987   cat conftest.err >&5
39988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39989   (exit $ac_status); } && {
39990          test -z "$ac_c_werror_flag" ||
39991          test ! -s conftest.err
39992        } && test -s conftest$ac_exeext &&
39993        $as_test_x conftest$ac_exeext; then
39994   eval "$as_ac_Lib=yes"
39995 else
39996   echo "$as_me: failed program was:" >&5
39997 sed 's/^/| /' conftest.$ac_ext >&5
39998
39999         eval "$as_ac_Lib=no"
40000 fi
40001
40002 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40003       conftest$ac_exeext conftest.$ac_ext
40004 LIBS=$ac_check_lib_save_LIBS
40005 fi
40006 ac_res=`eval echo '${'$as_ac_Lib'}'`
40007                { echo "$as_me:$LINENO: result: $ac_res" >&5
40008 echo "${ECHO_T}$ac_res" >&6; }
40009 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
40010   cat >>confdefs.h <<\_ACEOF
40011 #define HAVE_INET_ATON 1
40012 _ACEOF
40013
40014 fi
40015
40016
40017 fi
40018 done
40019
40020
40021 if test "x$INET_LINK" != "x"; then
40022     cat >>confdefs.h <<\_ACEOF
40023 #define HAVE_INET_ADDR 1
40024 _ACEOF
40025
40026     INET_LINK=" -l$INET_LINK"
40027 fi
40028
40029
40030   for wx_func in fdopen
40031   do
40032     { echo "$as_me:$LINENO: checking for $wx_func" >&5
40033 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
40034 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
40035   echo $ECHO_N "(cached) $ECHO_C" >&6
40036 else
40037
40038         cat >conftest.$ac_ext <<_ACEOF
40039
40040             /* confdefs.h.  */
40041 _ACEOF
40042 cat confdefs.h >>conftest.$ac_ext
40043 cat >>conftest.$ac_ext <<_ACEOF
40044 /* end confdefs.h.  */
40045
40046
40047                 $ac_includes_default
40048
40049 int
40050 main ()
40051 {
40052
40053                 #ifndef $wx_func
40054                   &$wx_func;
40055                 #endif
40056
40057
40058   ;
40059   return 0;
40060 }
40061
40062 _ACEOF
40063 rm -f conftest.$ac_objext conftest$ac_exeext
40064 if { (ac_try="$ac_link"
40065 case "(($ac_try" in
40066   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40067   *) ac_try_echo=$ac_try;;
40068 esac
40069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40070   (eval "$ac_link") 2>conftest.er1
40071   ac_status=$?
40072   grep -v '^ *+' conftest.er1 >conftest.err
40073   rm -f conftest.er1
40074   cat conftest.err >&5
40075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40076   (exit $ac_status); } && {
40077          test -z "$ac_c_werror_flag" ||
40078          test ! -s conftest.err
40079        } && test -s conftest$ac_exeext &&
40080        $as_test_x conftest$ac_exeext; then
40081   eval wx_cv_func_$wx_func=yes
40082 else
40083   echo "$as_me: failed program was:" >&5
40084 sed 's/^/| /' conftest.$ac_ext >&5
40085
40086         eval wx_cv_func_$wx_func=no
40087 fi
40088
40089 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40090       conftest$ac_exeext conftest.$ac_ext
40091
40092 fi
40093 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
40094                { echo "$as_me:$LINENO: result: $ac_res" >&5
40095 echo "${ECHO_T}$ac_res" >&6; }
40096
40097     if eval test \$wx_cv_func_$wx_func = yes
40098     then
40099       cat >>confdefs.h <<_ACEOF
40100 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
40101 _ACEOF
40102
40103
40104     else
40105       :
40106
40107     fi
40108   done
40109
40110
40111 if test "$wxUSE_TARSTREAM" = "yes"; then
40112
40113   for wx_func in sysconf
40114   do
40115     { echo "$as_me:$LINENO: checking for $wx_func" >&5
40116 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
40117 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
40118   echo $ECHO_N "(cached) $ECHO_C" >&6
40119 else
40120
40121         cat >conftest.$ac_ext <<_ACEOF
40122
40123             /* confdefs.h.  */
40124 _ACEOF
40125 cat confdefs.h >>conftest.$ac_ext
40126 cat >>conftest.$ac_ext <<_ACEOF
40127 /* end confdefs.h.  */
40128
40129
40130                 $ac_includes_default
40131
40132 int
40133 main ()
40134 {
40135
40136                 #ifndef $wx_func
40137                   &$wx_func;
40138                 #endif
40139
40140
40141   ;
40142   return 0;
40143 }
40144
40145 _ACEOF
40146 rm -f conftest.$ac_objext conftest$ac_exeext
40147 if { (ac_try="$ac_link"
40148 case "(($ac_try" in
40149   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40150   *) ac_try_echo=$ac_try;;
40151 esac
40152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40153   (eval "$ac_link") 2>conftest.er1
40154   ac_status=$?
40155   grep -v '^ *+' conftest.er1 >conftest.err
40156   rm -f conftest.er1
40157   cat conftest.err >&5
40158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40159   (exit $ac_status); } && {
40160          test -z "$ac_c_werror_flag" ||
40161          test ! -s conftest.err
40162        } && test -s conftest$ac_exeext &&
40163        $as_test_x conftest$ac_exeext; then
40164   eval wx_cv_func_$wx_func=yes
40165 else
40166   echo "$as_me: failed program was:" >&5
40167 sed 's/^/| /' conftest.$ac_ext >&5
40168
40169         eval wx_cv_func_$wx_func=no
40170 fi
40171
40172 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40173       conftest$ac_exeext conftest.$ac_ext
40174
40175 fi
40176 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
40177                { echo "$as_me:$LINENO: result: $ac_res" >&5
40178 echo "${ECHO_T}$ac_res" >&6; }
40179
40180     if eval test \$wx_cv_func_$wx_func = yes
40181     then
40182       cat >>confdefs.h <<_ACEOF
40183 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
40184 _ACEOF
40185
40186
40187     else
40188       :
40189
40190     fi
40191   done
40192
40193
40194
40195   for wx_func in getpwuid_r
40196   do
40197     { echo "$as_me:$LINENO: checking for $wx_func" >&5
40198 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
40199 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
40200   echo $ECHO_N "(cached) $ECHO_C" >&6
40201 else
40202
40203         cat >conftest.$ac_ext <<_ACEOF
40204
40205             /* confdefs.h.  */
40206 _ACEOF
40207 cat confdefs.h >>conftest.$ac_ext
40208 cat >>conftest.$ac_ext <<_ACEOF
40209 /* end confdefs.h.  */
40210
40211
40212                     #define _REENTRANT
40213                     #include <pwd.h>
40214
40215                 $ac_includes_default
40216
40217 int
40218 main ()
40219 {
40220
40221                 #ifndef $wx_func
40222                   &$wx_func;
40223                 #endif
40224
40225                     struct passwd pw, *ppw;
40226                     char buf[1024];
40227                     getpwuid_r(0, &pw, buf, sizeof(buf), &ppw)
40228
40229
40230   ;
40231   return 0;
40232 }
40233
40234 _ACEOF
40235 rm -f conftest.$ac_objext conftest$ac_exeext
40236 if { (ac_try="$ac_link"
40237 case "(($ac_try" in
40238   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40239   *) ac_try_echo=$ac_try;;
40240 esac
40241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40242   (eval "$ac_link") 2>conftest.er1
40243   ac_status=$?
40244   grep -v '^ *+' conftest.er1 >conftest.err
40245   rm -f conftest.er1
40246   cat conftest.err >&5
40247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40248   (exit $ac_status); } && {
40249          test -z "$ac_c_werror_flag" ||
40250          test ! -s conftest.err
40251        } && test -s conftest$ac_exeext &&
40252        $as_test_x conftest$ac_exeext; then
40253   eval wx_cv_func_$wx_func=yes
40254 else
40255   echo "$as_me: failed program was:" >&5
40256 sed 's/^/| /' conftest.$ac_ext >&5
40257
40258         eval wx_cv_func_$wx_func=no
40259 fi
40260
40261 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40262       conftest$ac_exeext conftest.$ac_ext
40263
40264 fi
40265 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
40266                { echo "$as_me:$LINENO: result: $ac_res" >&5
40267 echo "${ECHO_T}$ac_res" >&6; }
40268
40269     if eval test \$wx_cv_func_$wx_func = yes
40270     then
40271       cat >>confdefs.h <<_ACEOF
40272 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
40273 _ACEOF
40274
40275
40276     else
40277       :
40278
40279     fi
40280   done
40281
40282
40283
40284   for wx_func in getgrgid_r
40285   do
40286     { echo "$as_me:$LINENO: checking for $wx_func" >&5
40287 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
40288 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
40289   echo $ECHO_N "(cached) $ECHO_C" >&6
40290 else
40291
40292         cat >conftest.$ac_ext <<_ACEOF
40293
40294             /* confdefs.h.  */
40295 _ACEOF
40296 cat confdefs.h >>conftest.$ac_ext
40297 cat >>conftest.$ac_ext <<_ACEOF
40298 /* end confdefs.h.  */
40299
40300
40301                     #define _REENTRANT
40302                     #include <grp.h>
40303
40304                 $ac_includes_default
40305
40306 int
40307 main ()
40308 {
40309
40310                 #ifndef $wx_func
40311                   &$wx_func;
40312                 #endif
40313
40314                     struct group grp, *pgrp;
40315                     char buf[1024];
40316                     getgrgid_r(0, &grp, buf, sizeof(buf), &pgrp)
40317
40318
40319   ;
40320   return 0;
40321 }
40322
40323 _ACEOF
40324 rm -f conftest.$ac_objext conftest$ac_exeext
40325 if { (ac_try="$ac_link"
40326 case "(($ac_try" in
40327   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40328   *) ac_try_echo=$ac_try;;
40329 esac
40330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40331   (eval "$ac_link") 2>conftest.er1
40332   ac_status=$?
40333   grep -v '^ *+' conftest.er1 >conftest.err
40334   rm -f conftest.er1
40335   cat conftest.err >&5
40336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40337   (exit $ac_status); } && {
40338          test -z "$ac_c_werror_flag" ||
40339          test ! -s conftest.err
40340        } && test -s conftest$ac_exeext &&
40341        $as_test_x conftest$ac_exeext; then
40342   eval wx_cv_func_$wx_func=yes
40343 else
40344   echo "$as_me: failed program was:" >&5
40345 sed 's/^/| /' conftest.$ac_ext >&5
40346
40347         eval wx_cv_func_$wx_func=no
40348 fi
40349
40350 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40351       conftest$ac_exeext conftest.$ac_ext
40352
40353 fi
40354 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
40355                { echo "$as_me:$LINENO: result: $ac_res" >&5
40356 echo "${ECHO_T}$ac_res" >&6; }
40357
40358     if eval test \$wx_cv_func_$wx_func = yes
40359     then
40360       cat >>confdefs.h <<_ACEOF
40361 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
40362 _ACEOF
40363
40364
40365     else
40366       :
40367
40368     fi
40369   done
40370
40371 fi
40372
40373 fi
40374
40375
40376
40377 cat >confcache <<\_ACEOF
40378 # This file is a shell script that caches the results of configure
40379 # tests run on this system so they can be shared between configure
40380 # scripts and configure runs, see configure's option --config-cache.
40381 # It is not useful on other systems.  If it contains results you don't
40382 # want to keep, you may remove or edit it.
40383 #
40384 # config.status only pays attention to the cache file if you give it
40385 # the --recheck option to rerun configure.
40386 #
40387 # `ac_cv_env_foo' variables (set or unset) will be overridden when
40388 # loading this file, other *unset* `ac_cv_foo' will be assigned the
40389 # following values.
40390
40391 _ACEOF
40392
40393 # The following way of writing the cache mishandles newlines in values,
40394 # but we know of no workaround that is simple, portable, and efficient.
40395 # So, we kill variables containing newlines.
40396 # Ultrix sh set writes to stderr and can't be redirected directly,
40397 # and sets the high bit in the cache file unless we assign to the vars.
40398 (
40399   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
40400     eval ac_val=\$$ac_var
40401     case $ac_val in #(
40402     *${as_nl}*)
40403       case $ac_var in #(
40404       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
40405 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
40406       esac
40407       case $ac_var in #(
40408       _ | IFS | as_nl) ;; #(
40409       *) $as_unset $ac_var ;;
40410       esac ;;
40411     esac
40412   done
40413
40414   (set) 2>&1 |
40415     case $as_nl`(ac_space=' '; set) 2>&1` in #(
40416     *${as_nl}ac_space=\ *)
40417       # `set' does not quote correctly, so add quotes (double-quote
40418       # substitution turns \\\\ into \\, and sed turns \\ into \).
40419       sed -n \
40420         "s/'/'\\\\''/g;
40421           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
40422       ;; #(
40423     *)
40424       # `set' quotes correctly as required by POSIX, so do not add quotes.
40425       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
40426       ;;
40427     esac |
40428     sort
40429 ) |
40430   sed '
40431      /^ac_cv_env_/b end
40432      t clear
40433      :clear
40434      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
40435      t end
40436      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
40437      :end' >>confcache
40438 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
40439   if test -w "$cache_file"; then
40440     test "x$cache_file" != "x/dev/null" &&
40441       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
40442 echo "$as_me: updating cache $cache_file" >&6;}
40443     cat confcache >$cache_file
40444   else
40445     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
40446 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
40447   fi
40448 fi
40449 rm -f confcache
40450
40451
40452 if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
40453
40454
40455     THREADS_LINK=
40456     THREADS_CFLAGS=
40457
40458     if test "$wxUSE_THREADS" = "yes" ; then
40459         if test "$USE_BEOS" = 1; then
40460             { echo "$as_me:$LINENO: WARNING: BeOS threads are not yet supported... disabled" >&5
40461 echo "$as_me: WARNING: BeOS threads are not yet supported... disabled" >&2;}
40462             wxUSE_THREADS="no"
40463         fi
40464     fi
40465
40466     if test "$wxUSE_THREADS" = "yes" ; then
40467
40468
40469                                 THREAD_OPTS="-pthread"
40470         if test "x$SUNCXX" = xyes; then
40471             THREAD_OPTS="-mt lthread $THREAD_OPTS"
40472         fi
40473
40474         case "${host}" in
40475           *-*-solaris2* | *-*-sunos4* )
40476                 if test "x$GCC" = "xyes"; then
40477                                         THREAD_OPTS="-pthreads $THREAD_OPTS"
40478                 fi
40479                 ;;
40480           *-*-freebsd*)
40481                                                 THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r"
40482                 ;;
40483           *-*-darwin* | *-*-cygwin* )
40484                                                 THREAD_OPTS=""
40485                 ;;
40486           *-*-aix*)
40487                                 THREAD_OPTS="pthreads"
40488                 ;;
40489           *-hp-hpux* )
40490                 if test "x$GCC" = "xyes"; then
40491                                         $CXX -dumpspecs | grep 'pthread:' >/dev/null ||
40492                         THREAD_OPTS=""
40493                 else
40494                                                             THREAD_OPTS="-mt"
40495                 fi
40496                 ;;
40497
40498           *-*-irix* )
40499                                                                 if test "x$GCC" = "xyes"; then
40500                     THREAD_OPTS=""
40501                 fi
40502                 ;;
40503
40504           *-*-qnx*)
40505                                                 THREAD_OPTS=""
40506                 ;;
40507
40508           *-*-*UnixWare*)
40509                                 if test "x$GCC" != "xyes"; then
40510                     THREAD_OPTS="-Ethread"
40511                 fi
40512                 ;;
40513         esac
40514
40515         case "${host}" in
40516             *-*-qnx*)
40517                                                                 THREAD_OPTS="none pthread"
40518                 ;;
40519
40520             *)
40521                                                                                 THREAD_OPTS="$THREAD_OPTS pthread none"
40522                 ;;
40523         esac
40524
40525                 THREADS_OK=no
40526         for flag in $THREAD_OPTS; do
40527             case $flag in
40528                 none)
40529                     { echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
40530 echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6; }
40531                     ;;
40532
40533                 -*)
40534                     { echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
40535 echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6; }
40536                     THREADS_CFLAGS="$flag"
40537                     ;;
40538
40539                 *)
40540                     { echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
40541 echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6; }
40542                     THREADS_LINK="-l$flag"
40543                     ;;
40544               esac
40545
40546               save_LIBS="$LIBS"
40547               save_CFLAGS="$CFLAGS"
40548               LIBS="$THREADS_LINK $LIBS"
40549               CFLAGS="$THREADS_CFLAGS $CFLAGS"
40550
40551               cat >conftest.$ac_ext <<_ACEOF
40552 /* confdefs.h.  */
40553 _ACEOF
40554 cat confdefs.h >>conftest.$ac_ext
40555 cat >>conftest.$ac_ext <<_ACEOF
40556 /* end confdefs.h.  */
40557 #include <pthread.h>
40558 int
40559 main ()
40560 {
40561 pthread_create(0,0,0,0);
40562   ;
40563   return 0;
40564 }
40565 _ACEOF
40566 rm -f conftest.$ac_objext conftest$ac_exeext
40567 if { (ac_try="$ac_link"
40568 case "(($ac_try" in
40569   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40570   *) ac_try_echo=$ac_try;;
40571 esac
40572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40573   (eval "$ac_link") 2>conftest.er1
40574   ac_status=$?
40575   grep -v '^ *+' conftest.er1 >conftest.err
40576   rm -f conftest.er1
40577   cat conftest.err >&5
40578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40579   (exit $ac_status); } && {
40580          test -z "$ac_c_werror_flag" ||
40581          test ! -s conftest.err
40582        } && test -s conftest$ac_exeext &&
40583        $as_test_x conftest$ac_exeext; then
40584   THREADS_OK=yes
40585 else
40586   echo "$as_me: failed program was:" >&5
40587 sed 's/^/| /' conftest.$ac_ext >&5
40588
40589
40590 fi
40591
40592 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40593       conftest$ac_exeext conftest.$ac_ext
40594
40595               LIBS="$save_LIBS"
40596               CFLAGS="$save_CFLAGS"
40597
40598               { echo "$as_me:$LINENO: result: $THREADS_OK" >&5
40599 echo "${ECHO_T}$THREADS_OK" >&6; }
40600               if test "x$THREADS_OK" = "xyes"; then
40601                       break;
40602               fi
40603
40604               THREADS_LINK=""
40605               THREADS_CFLAGS=""
40606       done
40607
40608       if test "x$THREADS_OK" != "xyes"; then
40609           wxUSE_THREADS=no
40610           { echo "$as_me:$LINENO: WARNING: No thread support on this system... disabled" >&5
40611 echo "$as_me: WARNING: No thread support on this system... disabled" >&2;}
40612       else
40613                                                                                           LDFLAGS="$THREADS_CFLAGS $LDFLAGS"
40614           WXCONFIG_LDFLAGS="$THREADS_CFLAGS $WXCONFIG_LDFLAGS"
40615           LIBS="$THREADS_LINK $LIBS"
40616
40617           { echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
40618 echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6; }
40619           flag=no
40620           case "${host}" in
40621             *-aix*)
40622                                                                                                                 LDFLAGS="-L/usr/lib/threads $LDFLAGS"
40623                 WXCONFIG_LDFLAGS="-L/usr/lib/threads $WXCONFIG_LDFLAGS"
40624                 flag="-D_THREAD_SAFE"
40625                 ;;
40626             *-freebsd*)
40627                 flag="-D_THREAD_SAFE"
40628                 ;;
40629             *-hp-hpux* )
40630                 flag="-D_REENTRANT"
40631                 if test "x$GCC" != "xyes"; then
40632                                         flag="$flag -D_RWSTD_MULTI_THREAD"
40633                 fi
40634                 ;;
40635             *solaris* | alpha*-osf*)
40636                 flag="-D_REENTRANT"
40637                 ;;
40638           esac
40639           { echo "$as_me:$LINENO: result: ${flag}" >&5
40640 echo "${ECHO_T}${flag}" >&6; }
40641           if test "x$flag" != xno; then
40642               THREADS_CFLAGS="$THREADS_CFLAGS $flag"
40643           fi
40644
40645                     WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS $THREADS_CFLAGS"
40646       fi
40647     fi
40648
40649         if test "$wxUSE_THREADS" = "yes" ; then
40650
40651 for ac_func in thr_setconcurrency
40652 do
40653 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40654 { echo "$as_me:$LINENO: checking for $ac_func" >&5
40655 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
40656 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
40657   echo $ECHO_N "(cached) $ECHO_C" >&6
40658 else
40659   cat >conftest.$ac_ext <<_ACEOF
40660 /* confdefs.h.  */
40661 _ACEOF
40662 cat confdefs.h >>conftest.$ac_ext
40663 cat >>conftest.$ac_ext <<_ACEOF
40664 /* end confdefs.h.  */
40665 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40666    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40667 #define $ac_func innocuous_$ac_func
40668
40669 /* System header to define __stub macros and hopefully few prototypes,
40670     which can conflict with char $ac_func (); below.
40671     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40672     <limits.h> exists even on freestanding compilers.  */
40673
40674 #ifdef __STDC__
40675 # include <limits.h>
40676 #else
40677 # include <assert.h>
40678 #endif
40679
40680 #undef $ac_func
40681
40682 /* Override any GCC internal prototype to avoid an error.
40683    Use char because int might match the return type of a GCC
40684    builtin and then its argument prototype would still apply.  */
40685 #ifdef __cplusplus
40686 extern "C"
40687 #endif
40688 char $ac_func ();
40689 /* The GNU C library defines this for functions which it implements
40690     to always fail with ENOSYS.  Some functions are actually named
40691     something starting with __ and the normal name is an alias.  */
40692 #if defined __stub_$ac_func || defined __stub___$ac_func
40693 choke me
40694 #endif
40695
40696 int
40697 main ()
40698 {
40699 return $ac_func ();
40700   ;
40701   return 0;
40702 }
40703 _ACEOF
40704 rm -f conftest.$ac_objext conftest$ac_exeext
40705 if { (ac_try="$ac_link"
40706 case "(($ac_try" in
40707   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40708   *) ac_try_echo=$ac_try;;
40709 esac
40710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40711   (eval "$ac_link") 2>conftest.er1
40712   ac_status=$?
40713   grep -v '^ *+' conftest.er1 >conftest.err
40714   rm -f conftest.er1
40715   cat conftest.err >&5
40716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40717   (exit $ac_status); } && {
40718          test -z "$ac_c_werror_flag" ||
40719          test ! -s conftest.err
40720        } && test -s conftest$ac_exeext &&
40721        $as_test_x conftest$ac_exeext; then
40722   eval "$as_ac_var=yes"
40723 else
40724   echo "$as_me: failed program was:" >&5
40725 sed 's/^/| /' conftest.$ac_ext >&5
40726
40727         eval "$as_ac_var=no"
40728 fi
40729
40730 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40731       conftest$ac_exeext conftest.$ac_ext
40732 fi
40733 ac_res=`eval echo '${'$as_ac_var'}'`
40734                { echo "$as_me:$LINENO: result: $ac_res" >&5
40735 echo "${ECHO_T}$ac_res" >&6; }
40736 if test `eval echo '${'$as_ac_var'}'` = yes; then
40737   cat >>confdefs.h <<_ACEOF
40738 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40739 _ACEOF
40740
40741 fi
40742 done
40743
40744
40745                   { echo "$as_me:$LINENO: checking for pthread_cleanup_push/pop" >&5
40746 echo $ECHO_N "checking for pthread_cleanup_push/pop... $ECHO_C" >&6; }
40747 if test "${wx_cv_func_pthread_cleanup+set}" = set; then
40748   echo $ECHO_N "(cached) $ECHO_C" >&6
40749 else
40750
40751                                 ac_ext=cpp
40752 ac_cpp='$CXXCPP $CPPFLAGS'
40753 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40754 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40755 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
40756
40757         cat >conftest.$ac_ext <<_ACEOF
40758 /* confdefs.h.  */
40759 _ACEOF
40760 cat confdefs.h >>conftest.$ac_ext
40761 cat >>conftest.$ac_ext <<_ACEOF
40762 /* end confdefs.h.  */
40763 #include <pthread.h>
40764                void ThreadCleanupFunc(void *p);
40765
40766 int
40767 main ()
40768 {
40769
40770                 void *p;
40771                 pthread_cleanup_push(ThreadCleanupFunc, p);
40772                 pthread_cleanup_pop(0);
40773
40774   ;
40775   return 0;
40776 }
40777 _ACEOF
40778 rm -f conftest.$ac_objext
40779 if { (ac_try="$ac_compile"
40780 case "(($ac_try" in
40781   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40782   *) ac_try_echo=$ac_try;;
40783 esac
40784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40785   (eval "$ac_compile") 2>conftest.er1
40786   ac_status=$?
40787   grep -v '^ *+' conftest.er1 >conftest.err
40788   rm -f conftest.er1
40789   cat conftest.err >&5
40790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40791   (exit $ac_status); } && {
40792          test -z "$ac_cxx_werror_flag" ||
40793          test ! -s conftest.err
40794        } && test -s conftest.$ac_objext; then
40795
40796                wx_cv_func_pthread_cleanup=yes
40797
40798 else
40799   echo "$as_me: failed program was:" >&5
40800 sed 's/^/| /' conftest.$ac_ext >&5
40801
40802
40803                wx_cv_func_pthread_cleanup=no
40804
40805
40806 fi
40807
40808 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40809         ac_ext=c
40810 ac_cpp='$CPP $CPPFLAGS'
40811 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40812 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40813 ac_compiler_gnu=$ac_cv_c_compiler_gnu
40814
40815
40816 fi
40817 { echo "$as_me:$LINENO: result: $wx_cv_func_pthread_cleanup" >&5
40818 echo "${ECHO_T}$wx_cv_func_pthread_cleanup" >&6; }
40819       if test "x$wx_cv_func_pthread_cleanup" = "xyes"; then
40820         cat >>confdefs.h <<\_ACEOF
40821 #define wxHAVE_PTHREAD_CLEANUP 1
40822 _ACEOF
40823
40824       fi
40825
40826
40827 for ac_header in sched.h
40828 do
40829 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
40830 { echo "$as_me:$LINENO: checking for $ac_header" >&5
40831 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
40832 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
40833   echo $ECHO_N "(cached) $ECHO_C" >&6
40834 else
40835   cat >conftest.$ac_ext <<_ACEOF
40836 /* confdefs.h.  */
40837 _ACEOF
40838 cat confdefs.h >>conftest.$ac_ext
40839 cat >>conftest.$ac_ext <<_ACEOF
40840 /* end confdefs.h.  */
40841 $ac_includes_default
40842
40843 #include <$ac_header>
40844 _ACEOF
40845 rm -f conftest.$ac_objext
40846 if { (ac_try="$ac_compile"
40847 case "(($ac_try" in
40848   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40849   *) ac_try_echo=$ac_try;;
40850 esac
40851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40852   (eval "$ac_compile") 2>conftest.er1
40853   ac_status=$?
40854   grep -v '^ *+' conftest.er1 >conftest.err
40855   rm -f conftest.er1
40856   cat conftest.err >&5
40857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40858   (exit $ac_status); } && {
40859          test -z "$ac_c_werror_flag" ||
40860          test ! -s conftest.err
40861        } && test -s conftest.$ac_objext; then
40862   eval "$as_ac_Header=yes"
40863 else
40864   echo "$as_me: failed program was:" >&5
40865 sed 's/^/| /' conftest.$ac_ext >&5
40866
40867         eval "$as_ac_Header=no"
40868 fi
40869
40870 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40871 fi
40872 ac_res=`eval echo '${'$as_ac_Header'}'`
40873                { echo "$as_me:$LINENO: result: $ac_res" >&5
40874 echo "${ECHO_T}$ac_res" >&6; }
40875 if test `eval echo '${'$as_ac_Header'}'` = yes; then
40876   cat >>confdefs.h <<_ACEOF
40877 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
40878 _ACEOF
40879
40880 fi
40881
40882 done
40883
40884       if test "$ac_cv_header_sched_h" = "yes"; then
40885           { echo "$as_me:$LINENO: checking for sched_yield" >&5
40886 echo $ECHO_N "checking for sched_yield... $ECHO_C" >&6; }
40887 if test "${ac_cv_func_sched_yield+set}" = set; then
40888   echo $ECHO_N "(cached) $ECHO_C" >&6
40889 else
40890   cat >conftest.$ac_ext <<_ACEOF
40891 /* confdefs.h.  */
40892 _ACEOF
40893 cat confdefs.h >>conftest.$ac_ext
40894 cat >>conftest.$ac_ext <<_ACEOF
40895 /* end confdefs.h.  */
40896 /* Define sched_yield to an innocuous variant, in case <limits.h> declares sched_yield.
40897    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40898 #define sched_yield innocuous_sched_yield
40899
40900 /* System header to define __stub macros and hopefully few prototypes,
40901     which can conflict with char sched_yield (); below.
40902     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40903     <limits.h> exists even on freestanding compilers.  */
40904
40905 #ifdef __STDC__
40906 # include <limits.h>
40907 #else
40908 # include <assert.h>
40909 #endif
40910
40911 #undef sched_yield
40912
40913 /* Override any GCC internal prototype to avoid an error.
40914    Use char because int might match the return type of a GCC
40915    builtin and then its argument prototype would still apply.  */
40916 #ifdef __cplusplus
40917 extern "C"
40918 #endif
40919 char sched_yield ();
40920 /* The GNU C library defines this for functions which it implements
40921     to always fail with ENOSYS.  Some functions are actually named
40922     something starting with __ and the normal name is an alias.  */
40923 #if defined __stub_sched_yield || defined __stub___sched_yield
40924 choke me
40925 #endif
40926
40927 int
40928 main ()
40929 {
40930 return sched_yield ();
40931   ;
40932   return 0;
40933 }
40934 _ACEOF
40935 rm -f conftest.$ac_objext conftest$ac_exeext
40936 if { (ac_try="$ac_link"
40937 case "(($ac_try" in
40938   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40939   *) ac_try_echo=$ac_try;;
40940 esac
40941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40942   (eval "$ac_link") 2>conftest.er1
40943   ac_status=$?
40944   grep -v '^ *+' conftest.er1 >conftest.err
40945   rm -f conftest.er1
40946   cat conftest.err >&5
40947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40948   (exit $ac_status); } && {
40949          test -z "$ac_c_werror_flag" ||
40950          test ! -s conftest.err
40951        } && test -s conftest$ac_exeext &&
40952        $as_test_x conftest$ac_exeext; then
40953   ac_cv_func_sched_yield=yes
40954 else
40955   echo "$as_me: failed program was:" >&5
40956 sed 's/^/| /' conftest.$ac_ext >&5
40957
40958         ac_cv_func_sched_yield=no
40959 fi
40960
40961 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40962       conftest$ac_exeext conftest.$ac_ext
40963 fi
40964 { echo "$as_me:$LINENO: result: $ac_cv_func_sched_yield" >&5
40965 echo "${ECHO_T}$ac_cv_func_sched_yield" >&6; }
40966 if test $ac_cv_func_sched_yield = yes; then
40967   cat >>confdefs.h <<\_ACEOF
40968 #define HAVE_SCHED_YIELD 1
40969 _ACEOF
40970
40971 else
40972
40973                 { echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5
40974 echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6; }
40975 if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then
40976   echo $ECHO_N "(cached) $ECHO_C" >&6
40977 else
40978   ac_check_lib_save_LIBS=$LIBS
40979 LIBS="-lposix4  $LIBS"
40980 cat >conftest.$ac_ext <<_ACEOF
40981 /* confdefs.h.  */
40982 _ACEOF
40983 cat confdefs.h >>conftest.$ac_ext
40984 cat >>conftest.$ac_ext <<_ACEOF
40985 /* end confdefs.h.  */
40986
40987 /* Override any GCC internal prototype to avoid an error.
40988    Use char because int might match the return type of a GCC
40989    builtin and then its argument prototype would still apply.  */
40990 #ifdef __cplusplus
40991 extern "C"
40992 #endif
40993 char sched_yield ();
40994 int
40995 main ()
40996 {
40997 return sched_yield ();
40998   ;
40999   return 0;
41000 }
41001 _ACEOF
41002 rm -f conftest.$ac_objext conftest$ac_exeext
41003 if { (ac_try="$ac_link"
41004 case "(($ac_try" in
41005   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41006   *) ac_try_echo=$ac_try;;
41007 esac
41008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41009   (eval "$ac_link") 2>conftest.er1
41010   ac_status=$?
41011   grep -v '^ *+' conftest.er1 >conftest.err
41012   rm -f conftest.er1
41013   cat conftest.err >&5
41014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41015   (exit $ac_status); } && {
41016          test -z "$ac_c_werror_flag" ||
41017          test ! -s conftest.err
41018        } && test -s conftest$ac_exeext &&
41019        $as_test_x conftest$ac_exeext; then
41020   ac_cv_lib_posix4_sched_yield=yes
41021 else
41022   echo "$as_me: failed program was:" >&5
41023 sed 's/^/| /' conftest.$ac_ext >&5
41024
41025         ac_cv_lib_posix4_sched_yield=no
41026 fi
41027
41028 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41029       conftest$ac_exeext conftest.$ac_ext
41030 LIBS=$ac_check_lib_save_LIBS
41031 fi
41032 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5
41033 echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6; }
41034 if test $ac_cv_lib_posix4_sched_yield = yes; then
41035   cat >>confdefs.h <<\_ACEOF
41036 #define HAVE_SCHED_YIELD 1
41037 _ACEOF
41038  POSIX4_LINK=" -lposix4"
41039 else
41040   { echo "$as_me:$LINENO: WARNING: wxThread::Yield will not work properly" >&5
41041 echo "$as_me: WARNING: wxThread::Yield will not work properly" >&2;}
41042
41043 fi
41044
41045
41046
41047 fi
41048
41049       fi
41050
41051                                           HAVE_PRIOR_FUNCS=0
41052       { echo "$as_me:$LINENO: checking for pthread_attr_getschedpolicy" >&5
41053 echo $ECHO_N "checking for pthread_attr_getschedpolicy... $ECHO_C" >&6; }
41054 if test "${ac_cv_func_pthread_attr_getschedpolicy+set}" = set; then
41055   echo $ECHO_N "(cached) $ECHO_C" >&6
41056 else
41057   cat >conftest.$ac_ext <<_ACEOF
41058 /* confdefs.h.  */
41059 _ACEOF
41060 cat confdefs.h >>conftest.$ac_ext
41061 cat >>conftest.$ac_ext <<_ACEOF
41062 /* end confdefs.h.  */
41063 /* Define pthread_attr_getschedpolicy to an innocuous variant, in case <limits.h> declares pthread_attr_getschedpolicy.
41064    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41065 #define pthread_attr_getschedpolicy innocuous_pthread_attr_getschedpolicy
41066
41067 /* System header to define __stub macros and hopefully few prototypes,
41068     which can conflict with char pthread_attr_getschedpolicy (); below.
41069     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41070     <limits.h> exists even on freestanding compilers.  */
41071
41072 #ifdef __STDC__
41073 # include <limits.h>
41074 #else
41075 # include <assert.h>
41076 #endif
41077
41078 #undef pthread_attr_getschedpolicy
41079
41080 /* Override any GCC internal prototype to avoid an error.
41081    Use char because int might match the return type of a GCC
41082    builtin and then its argument prototype would still apply.  */
41083 #ifdef __cplusplus
41084 extern "C"
41085 #endif
41086 char pthread_attr_getschedpolicy ();
41087 /* The GNU C library defines this for functions which it implements
41088     to always fail with ENOSYS.  Some functions are actually named
41089     something starting with __ and the normal name is an alias.  */
41090 #if defined __stub_pthread_attr_getschedpolicy || defined __stub___pthread_attr_getschedpolicy
41091 choke me
41092 #endif
41093
41094 int
41095 main ()
41096 {
41097 return pthread_attr_getschedpolicy ();
41098   ;
41099   return 0;
41100 }
41101 _ACEOF
41102 rm -f conftest.$ac_objext conftest$ac_exeext
41103 if { (ac_try="$ac_link"
41104 case "(($ac_try" in
41105   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41106   *) ac_try_echo=$ac_try;;
41107 esac
41108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41109   (eval "$ac_link") 2>conftest.er1
41110   ac_status=$?
41111   grep -v '^ *+' conftest.er1 >conftest.err
41112   rm -f conftest.er1
41113   cat conftest.err >&5
41114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41115   (exit $ac_status); } && {
41116          test -z "$ac_c_werror_flag" ||
41117          test ! -s conftest.err
41118        } && test -s conftest$ac_exeext &&
41119        $as_test_x conftest$ac_exeext; then
41120   ac_cv_func_pthread_attr_getschedpolicy=yes
41121 else
41122   echo "$as_me: failed program was:" >&5
41123 sed 's/^/| /' conftest.$ac_ext >&5
41124
41125         ac_cv_func_pthread_attr_getschedpolicy=no
41126 fi
41127
41128 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41129       conftest$ac_exeext conftest.$ac_ext
41130 fi
41131 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_getschedpolicy" >&5
41132 echo "${ECHO_T}$ac_cv_func_pthread_attr_getschedpolicy" >&6; }
41133 if test $ac_cv_func_pthread_attr_getschedpolicy = yes; then
41134   { echo "$as_me:$LINENO: checking for pthread_attr_setschedparam" >&5
41135 echo $ECHO_N "checking for pthread_attr_setschedparam... $ECHO_C" >&6; }
41136 if test "${ac_cv_func_pthread_attr_setschedparam+set}" = set; then
41137   echo $ECHO_N "(cached) $ECHO_C" >&6
41138 else
41139   cat >conftest.$ac_ext <<_ACEOF
41140 /* confdefs.h.  */
41141 _ACEOF
41142 cat confdefs.h >>conftest.$ac_ext
41143 cat >>conftest.$ac_ext <<_ACEOF
41144 /* end confdefs.h.  */
41145 /* Define pthread_attr_setschedparam to an innocuous variant, in case <limits.h> declares pthread_attr_setschedparam.
41146    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41147 #define pthread_attr_setschedparam innocuous_pthread_attr_setschedparam
41148
41149 /* System header to define __stub macros and hopefully few prototypes,
41150     which can conflict with char pthread_attr_setschedparam (); below.
41151     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41152     <limits.h> exists even on freestanding compilers.  */
41153
41154 #ifdef __STDC__
41155 # include <limits.h>
41156 #else
41157 # include <assert.h>
41158 #endif
41159
41160 #undef pthread_attr_setschedparam
41161
41162 /* Override any GCC internal prototype to avoid an error.
41163    Use char because int might match the return type of a GCC
41164    builtin and then its argument prototype would still apply.  */
41165 #ifdef __cplusplus
41166 extern "C"
41167 #endif
41168 char pthread_attr_setschedparam ();
41169 /* The GNU C library defines this for functions which it implements
41170     to always fail with ENOSYS.  Some functions are actually named
41171     something starting with __ and the normal name is an alias.  */
41172 #if defined __stub_pthread_attr_setschedparam || defined __stub___pthread_attr_setschedparam
41173 choke me
41174 #endif
41175
41176 int
41177 main ()
41178 {
41179 return pthread_attr_setschedparam ();
41180   ;
41181   return 0;
41182 }
41183 _ACEOF
41184 rm -f conftest.$ac_objext conftest$ac_exeext
41185 if { (ac_try="$ac_link"
41186 case "(($ac_try" in
41187   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41188   *) ac_try_echo=$ac_try;;
41189 esac
41190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41191   (eval "$ac_link") 2>conftest.er1
41192   ac_status=$?
41193   grep -v '^ *+' conftest.er1 >conftest.err
41194   rm -f conftest.er1
41195   cat conftest.err >&5
41196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41197   (exit $ac_status); } && {
41198          test -z "$ac_c_werror_flag" ||
41199          test ! -s conftest.err
41200        } && test -s conftest$ac_exeext &&
41201        $as_test_x conftest$ac_exeext; then
41202   ac_cv_func_pthread_attr_setschedparam=yes
41203 else
41204   echo "$as_me: failed program was:" >&5
41205 sed 's/^/| /' conftest.$ac_ext >&5
41206
41207         ac_cv_func_pthread_attr_setschedparam=no
41208 fi
41209
41210 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41211       conftest$ac_exeext conftest.$ac_ext
41212 fi
41213 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setschedparam" >&5
41214 echo "${ECHO_T}$ac_cv_func_pthread_attr_setschedparam" >&6; }
41215 if test $ac_cv_func_pthread_attr_setschedparam = yes; then
41216   { echo "$as_me:$LINENO: checking for sched_get_priority_max" >&5
41217 echo $ECHO_N "checking for sched_get_priority_max... $ECHO_C" >&6; }
41218 if test "${ac_cv_func_sched_get_priority_max+set}" = set; then
41219   echo $ECHO_N "(cached) $ECHO_C" >&6
41220 else
41221   cat >conftest.$ac_ext <<_ACEOF
41222 /* confdefs.h.  */
41223 _ACEOF
41224 cat confdefs.h >>conftest.$ac_ext
41225 cat >>conftest.$ac_ext <<_ACEOF
41226 /* end confdefs.h.  */
41227 /* Define sched_get_priority_max to an innocuous variant, in case <limits.h> declares sched_get_priority_max.
41228    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41229 #define sched_get_priority_max innocuous_sched_get_priority_max
41230
41231 /* System header to define __stub macros and hopefully few prototypes,
41232     which can conflict with char sched_get_priority_max (); below.
41233     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41234     <limits.h> exists even on freestanding compilers.  */
41235
41236 #ifdef __STDC__
41237 # include <limits.h>
41238 #else
41239 # include <assert.h>
41240 #endif
41241
41242 #undef sched_get_priority_max
41243
41244 /* Override any GCC internal prototype to avoid an error.
41245    Use char because int might match the return type of a GCC
41246    builtin and then its argument prototype would still apply.  */
41247 #ifdef __cplusplus
41248 extern "C"
41249 #endif
41250 char sched_get_priority_max ();
41251 /* The GNU C library defines this for functions which it implements
41252     to always fail with ENOSYS.  Some functions are actually named
41253     something starting with __ and the normal name is an alias.  */
41254 #if defined __stub_sched_get_priority_max || defined __stub___sched_get_priority_max
41255 choke me
41256 #endif
41257
41258 int
41259 main ()
41260 {
41261 return sched_get_priority_max ();
41262   ;
41263   return 0;
41264 }
41265 _ACEOF
41266 rm -f conftest.$ac_objext conftest$ac_exeext
41267 if { (ac_try="$ac_link"
41268 case "(($ac_try" in
41269   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41270   *) ac_try_echo=$ac_try;;
41271 esac
41272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41273   (eval "$ac_link") 2>conftest.er1
41274   ac_status=$?
41275   grep -v '^ *+' conftest.er1 >conftest.err
41276   rm -f conftest.er1
41277   cat conftest.err >&5
41278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41279   (exit $ac_status); } && {
41280          test -z "$ac_c_werror_flag" ||
41281          test ! -s conftest.err
41282        } && test -s conftest$ac_exeext &&
41283        $as_test_x conftest$ac_exeext; then
41284   ac_cv_func_sched_get_priority_max=yes
41285 else
41286   echo "$as_me: failed program was:" >&5
41287 sed 's/^/| /' conftest.$ac_ext >&5
41288
41289         ac_cv_func_sched_get_priority_max=no
41290 fi
41291
41292 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41293       conftest$ac_exeext conftest.$ac_ext
41294 fi
41295 { echo "$as_me:$LINENO: result: $ac_cv_func_sched_get_priority_max" >&5
41296 echo "${ECHO_T}$ac_cv_func_sched_get_priority_max" >&6; }
41297 if test $ac_cv_func_sched_get_priority_max = yes; then
41298   HAVE_PRIOR_FUNCS=1
41299 else
41300   { echo "$as_me:$LINENO: checking for sched_get_priority_max in -lposix4" >&5
41301 echo $ECHO_N "checking for sched_get_priority_max in -lposix4... $ECHO_C" >&6; }
41302 if test "${ac_cv_lib_posix4_sched_get_priority_max+set}" = set; then
41303   echo $ECHO_N "(cached) $ECHO_C" >&6
41304 else
41305   ac_check_lib_save_LIBS=$LIBS
41306 LIBS="-lposix4  $LIBS"
41307 cat >conftest.$ac_ext <<_ACEOF
41308 /* confdefs.h.  */
41309 _ACEOF
41310 cat confdefs.h >>conftest.$ac_ext
41311 cat >>conftest.$ac_ext <<_ACEOF
41312 /* end confdefs.h.  */
41313
41314 /* Override any GCC internal prototype to avoid an error.
41315    Use char because int might match the return type of a GCC
41316    builtin and then its argument prototype would still apply.  */
41317 #ifdef __cplusplus
41318 extern "C"
41319 #endif
41320 char sched_get_priority_max ();
41321 int
41322 main ()
41323 {
41324 return sched_get_priority_max ();
41325   ;
41326   return 0;
41327 }
41328 _ACEOF
41329 rm -f conftest.$ac_objext conftest$ac_exeext
41330 if { (ac_try="$ac_link"
41331 case "(($ac_try" in
41332   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41333   *) ac_try_echo=$ac_try;;
41334 esac
41335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41336   (eval "$ac_link") 2>conftest.er1
41337   ac_status=$?
41338   grep -v '^ *+' conftest.er1 >conftest.err
41339   rm -f conftest.er1
41340   cat conftest.err >&5
41341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41342   (exit $ac_status); } && {
41343          test -z "$ac_c_werror_flag" ||
41344          test ! -s conftest.err
41345        } && test -s conftest$ac_exeext &&
41346        $as_test_x conftest$ac_exeext; then
41347   ac_cv_lib_posix4_sched_get_priority_max=yes
41348 else
41349   echo "$as_me: failed program was:" >&5
41350 sed 's/^/| /' conftest.$ac_ext >&5
41351
41352         ac_cv_lib_posix4_sched_get_priority_max=no
41353 fi
41354
41355 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41356       conftest$ac_exeext conftest.$ac_ext
41357 LIBS=$ac_check_lib_save_LIBS
41358 fi
41359 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_get_priority_max" >&5
41360 echo "${ECHO_T}$ac_cv_lib_posix4_sched_get_priority_max" >&6; }
41361 if test $ac_cv_lib_posix4_sched_get_priority_max = yes; then
41362
41363                                 HAVE_PRIOR_FUNCS=1
41364                                 POSIX4_LINK=" -lposix4"
41365
41366 fi
41367
41368
41369 fi
41370
41371
41372 fi
41373
41374
41375 fi
41376
41377
41378       if test "$HAVE_PRIOR_FUNCS" = 1; then
41379         cat >>confdefs.h <<\_ACEOF
41380 #define HAVE_THREAD_PRIORITY_FUNCTIONS 1
41381 _ACEOF
41382
41383       else
41384         { echo "$as_me:$LINENO: WARNING: Setting thread priority will not work" >&5
41385 echo "$as_me: WARNING: Setting thread priority will not work" >&2;}
41386       fi
41387
41388       { echo "$as_me:$LINENO: checking for pthread_cancel" >&5
41389 echo $ECHO_N "checking for pthread_cancel... $ECHO_C" >&6; }
41390 if test "${ac_cv_func_pthread_cancel+set}" = set; then
41391   echo $ECHO_N "(cached) $ECHO_C" >&6
41392 else
41393   cat >conftest.$ac_ext <<_ACEOF
41394 /* confdefs.h.  */
41395 _ACEOF
41396 cat confdefs.h >>conftest.$ac_ext
41397 cat >>conftest.$ac_ext <<_ACEOF
41398 /* end confdefs.h.  */
41399 /* Define pthread_cancel to an innocuous variant, in case <limits.h> declares pthread_cancel.
41400    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41401 #define pthread_cancel innocuous_pthread_cancel
41402
41403 /* System header to define __stub macros and hopefully few prototypes,
41404     which can conflict with char pthread_cancel (); below.
41405     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41406     <limits.h> exists even on freestanding compilers.  */
41407
41408 #ifdef __STDC__
41409 # include <limits.h>
41410 #else
41411 # include <assert.h>
41412 #endif
41413
41414 #undef pthread_cancel
41415
41416 /* Override any GCC internal prototype to avoid an error.
41417    Use char because int might match the return type of a GCC
41418    builtin and then its argument prototype would still apply.  */
41419 #ifdef __cplusplus
41420 extern "C"
41421 #endif
41422 char pthread_cancel ();
41423 /* The GNU C library defines this for functions which it implements
41424     to always fail with ENOSYS.  Some functions are actually named
41425     something starting with __ and the normal name is an alias.  */
41426 #if defined __stub_pthread_cancel || defined __stub___pthread_cancel
41427 choke me
41428 #endif
41429
41430 int
41431 main ()
41432 {
41433 return pthread_cancel ();
41434   ;
41435   return 0;
41436 }
41437 _ACEOF
41438 rm -f conftest.$ac_objext conftest$ac_exeext
41439 if { (ac_try="$ac_link"
41440 case "(($ac_try" in
41441   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41442   *) ac_try_echo=$ac_try;;
41443 esac
41444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41445   (eval "$ac_link") 2>conftest.er1
41446   ac_status=$?
41447   grep -v '^ *+' conftest.er1 >conftest.err
41448   rm -f conftest.er1
41449   cat conftest.err >&5
41450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41451   (exit $ac_status); } && {
41452          test -z "$ac_c_werror_flag" ||
41453          test ! -s conftest.err
41454        } && test -s conftest$ac_exeext &&
41455        $as_test_x conftest$ac_exeext; then
41456   ac_cv_func_pthread_cancel=yes
41457 else
41458   echo "$as_me: failed program was:" >&5
41459 sed 's/^/| /' conftest.$ac_ext >&5
41460
41461         ac_cv_func_pthread_cancel=no
41462 fi
41463
41464 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41465       conftest$ac_exeext conftest.$ac_ext
41466 fi
41467 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_cancel" >&5
41468 echo "${ECHO_T}$ac_cv_func_pthread_cancel" >&6; }
41469 if test $ac_cv_func_pthread_cancel = yes; then
41470   cat >>confdefs.h <<\_ACEOF
41471 #define HAVE_PTHREAD_CANCEL 1
41472 _ACEOF
41473
41474 else
41475   { echo "$as_me:$LINENO: WARNING: wxThread::Kill() will not work properly" >&5
41476 echo "$as_me: WARNING: wxThread::Kill() will not work properly" >&2;}
41477 fi
41478
41479
41480       { echo "$as_me:$LINENO: checking for pthread_mutex_timedlock" >&5
41481 echo $ECHO_N "checking for pthread_mutex_timedlock... $ECHO_C" >&6; }
41482 if test "${ac_cv_func_pthread_mutex_timedlock+set}" = set; then
41483   echo $ECHO_N "(cached) $ECHO_C" >&6
41484 else
41485   cat >conftest.$ac_ext <<_ACEOF
41486 /* confdefs.h.  */
41487 _ACEOF
41488 cat confdefs.h >>conftest.$ac_ext
41489 cat >>conftest.$ac_ext <<_ACEOF
41490 /* end confdefs.h.  */
41491 /* Define pthread_mutex_timedlock to an innocuous variant, in case <limits.h> declares pthread_mutex_timedlock.
41492    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41493 #define pthread_mutex_timedlock innocuous_pthread_mutex_timedlock
41494
41495 /* System header to define __stub macros and hopefully few prototypes,
41496     which can conflict with char pthread_mutex_timedlock (); below.
41497     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41498     <limits.h> exists even on freestanding compilers.  */
41499
41500 #ifdef __STDC__
41501 # include <limits.h>
41502 #else
41503 # include <assert.h>
41504 #endif
41505
41506 #undef pthread_mutex_timedlock
41507
41508 /* Override any GCC internal prototype to avoid an error.
41509    Use char because int might match the return type of a GCC
41510    builtin and then its argument prototype would still apply.  */
41511 #ifdef __cplusplus
41512 extern "C"
41513 #endif
41514 char pthread_mutex_timedlock ();
41515 /* The GNU C library defines this for functions which it implements
41516     to always fail with ENOSYS.  Some functions are actually named
41517     something starting with __ and the normal name is an alias.  */
41518 #if defined __stub_pthread_mutex_timedlock || defined __stub___pthread_mutex_timedlock
41519 choke me
41520 #endif
41521
41522 int
41523 main ()
41524 {
41525 return pthread_mutex_timedlock ();
41526   ;
41527   return 0;
41528 }
41529 _ACEOF
41530 rm -f conftest.$ac_objext conftest$ac_exeext
41531 if { (ac_try="$ac_link"
41532 case "(($ac_try" in
41533   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41534   *) ac_try_echo=$ac_try;;
41535 esac
41536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41537   (eval "$ac_link") 2>conftest.er1
41538   ac_status=$?
41539   grep -v '^ *+' conftest.er1 >conftest.err
41540   rm -f conftest.er1
41541   cat conftest.err >&5
41542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41543   (exit $ac_status); } && {
41544          test -z "$ac_c_werror_flag" ||
41545          test ! -s conftest.err
41546        } && test -s conftest$ac_exeext &&
41547        $as_test_x conftest$ac_exeext; then
41548   ac_cv_func_pthread_mutex_timedlock=yes
41549 else
41550   echo "$as_me: failed program was:" >&5
41551 sed 's/^/| /' conftest.$ac_ext >&5
41552
41553         ac_cv_func_pthread_mutex_timedlock=no
41554 fi
41555
41556 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41557       conftest$ac_exeext conftest.$ac_ext
41558 fi
41559 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_mutex_timedlock" >&5
41560 echo "${ECHO_T}$ac_cv_func_pthread_mutex_timedlock" >&6; }
41561 if test $ac_cv_func_pthread_mutex_timedlock = yes; then
41562   cat >>confdefs.h <<\_ACEOF
41563 #define HAVE_PTHREAD_MUTEX_TIMEDLOCK 1
41564 _ACEOF
41565
41566 else
41567   { echo "$as_me:$LINENO: WARNING: wxMutex::LockTimeout() will not work" >&5
41568 echo "$as_me: WARNING: wxMutex::LockTimeout() will not work" >&2;}
41569 fi
41570
41571
41572       { echo "$as_me:$LINENO: checking for pthread_attr_setstacksize" >&5
41573 echo $ECHO_N "checking for pthread_attr_setstacksize... $ECHO_C" >&6; }
41574 if test "${ac_cv_func_pthread_attr_setstacksize+set}" = set; then
41575   echo $ECHO_N "(cached) $ECHO_C" >&6
41576 else
41577   cat >conftest.$ac_ext <<_ACEOF
41578 /* confdefs.h.  */
41579 _ACEOF
41580 cat confdefs.h >>conftest.$ac_ext
41581 cat >>conftest.$ac_ext <<_ACEOF
41582 /* end confdefs.h.  */
41583 /* Define pthread_attr_setstacksize to an innocuous variant, in case <limits.h> declares pthread_attr_setstacksize.
41584    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41585 #define pthread_attr_setstacksize innocuous_pthread_attr_setstacksize
41586
41587 /* System header to define __stub macros and hopefully few prototypes,
41588     which can conflict with char pthread_attr_setstacksize (); below.
41589     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41590     <limits.h> exists even on freestanding compilers.  */
41591
41592 #ifdef __STDC__
41593 # include <limits.h>
41594 #else
41595 # include <assert.h>
41596 #endif
41597
41598 #undef pthread_attr_setstacksize
41599
41600 /* Override any GCC internal prototype to avoid an error.
41601    Use char because int might match the return type of a GCC
41602    builtin and then its argument prototype would still apply.  */
41603 #ifdef __cplusplus
41604 extern "C"
41605 #endif
41606 char pthread_attr_setstacksize ();
41607 /* The GNU C library defines this for functions which it implements
41608     to always fail with ENOSYS.  Some functions are actually named
41609     something starting with __ and the normal name is an alias.  */
41610 #if defined __stub_pthread_attr_setstacksize || defined __stub___pthread_attr_setstacksize
41611 choke me
41612 #endif
41613
41614 int
41615 main ()
41616 {
41617 return pthread_attr_setstacksize ();
41618   ;
41619   return 0;
41620 }
41621 _ACEOF
41622 rm -f conftest.$ac_objext conftest$ac_exeext
41623 if { (ac_try="$ac_link"
41624 case "(($ac_try" in
41625   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41626   *) ac_try_echo=$ac_try;;
41627 esac
41628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41629   (eval "$ac_link") 2>conftest.er1
41630   ac_status=$?
41631   grep -v '^ *+' conftest.er1 >conftest.err
41632   rm -f conftest.er1
41633   cat conftest.err >&5
41634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41635   (exit $ac_status); } && {
41636          test -z "$ac_c_werror_flag" ||
41637          test ! -s conftest.err
41638        } && test -s conftest$ac_exeext &&
41639        $as_test_x conftest$ac_exeext; then
41640   ac_cv_func_pthread_attr_setstacksize=yes
41641 else
41642   echo "$as_me: failed program was:" >&5
41643 sed 's/^/| /' conftest.$ac_ext >&5
41644
41645         ac_cv_func_pthread_attr_setstacksize=no
41646 fi
41647
41648 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41649       conftest$ac_exeext conftest.$ac_ext
41650 fi
41651 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setstacksize" >&5
41652 echo "${ECHO_T}$ac_cv_func_pthread_attr_setstacksize" >&6; }
41653 if test $ac_cv_func_pthread_attr_setstacksize = yes; then
41654   cat >>confdefs.h <<\_ACEOF
41655 #define HAVE_PTHREAD_ATTR_SETSTACKSIZE 1
41656 _ACEOF
41657
41658 fi
41659
41660
41661
41662       { echo "$as_me:$LINENO: checking for pthread_mutexattr_t" >&5
41663 echo $ECHO_N "checking for pthread_mutexattr_t... $ECHO_C" >&6; }
41664 if test "${wx_cv_type_pthread_mutexattr_t+set}" = set; then
41665   echo $ECHO_N "(cached) $ECHO_C" >&6
41666 else
41667
41668         cat >conftest.$ac_ext <<_ACEOF
41669 /* confdefs.h.  */
41670 _ACEOF
41671 cat confdefs.h >>conftest.$ac_ext
41672 cat >>conftest.$ac_ext <<_ACEOF
41673 /* end confdefs.h.  */
41674 #include <pthread.h>
41675 int
41676 main ()
41677 {
41678
41679                pthread_mutexattr_t attr;
41680                pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
41681
41682   ;
41683   return 0;
41684 }
41685 _ACEOF
41686 rm -f conftest.$ac_objext
41687 if { (ac_try="$ac_compile"
41688 case "(($ac_try" in
41689   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41690   *) ac_try_echo=$ac_try;;
41691 esac
41692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41693   (eval "$ac_compile") 2>conftest.er1
41694   ac_status=$?
41695   grep -v '^ *+' conftest.er1 >conftest.err
41696   rm -f conftest.er1
41697   cat conftest.err >&5
41698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41699   (exit $ac_status); } && {
41700          test -z "$ac_c_werror_flag" ||
41701          test ! -s conftest.err
41702        } && test -s conftest.$ac_objext; then
41703   wx_cv_type_pthread_mutexattr_t=yes
41704 else
41705   echo "$as_me: failed program was:" >&5
41706 sed 's/^/| /' conftest.$ac_ext >&5
41707
41708         wx_cv_type_pthread_mutexattr_t=no
41709
41710 fi
41711
41712 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41713
41714 fi
41715 { echo "$as_me:$LINENO: result: $wx_cv_type_pthread_mutexattr_t" >&5
41716 echo "${ECHO_T}$wx_cv_type_pthread_mutexattr_t" >&6; }
41717
41718       if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
41719         cat >>confdefs.h <<\_ACEOF
41720 #define HAVE_PTHREAD_MUTEXATTR_T 1
41721 _ACEOF
41722
41723
41724                         { echo "$as_me:$LINENO: checking for pthread_mutexattr_settype declaration" >&5
41725 echo $ECHO_N "checking for pthread_mutexattr_settype declaration... $ECHO_C" >&6; }
41726 if test "${wx_cv_func_pthread_mutexattr_settype_decl+set}" = set; then
41727   echo $ECHO_N "(cached) $ECHO_C" >&6
41728 else
41729
41730                        cat >conftest.$ac_ext <<_ACEOF
41731 /* confdefs.h.  */
41732 _ACEOF
41733 cat confdefs.h >>conftest.$ac_ext
41734 cat >>conftest.$ac_ext <<_ACEOF
41735 /* end confdefs.h.  */
41736 #include <pthread.h>
41737 int
41738 main ()
41739 {
41740
41741                                pthread_mutexattr_t attr;
41742                                pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
41743
41744   ;
41745   return 0;
41746 }
41747 _ACEOF
41748 rm -f conftest.$ac_objext
41749 if { (ac_try="$ac_compile"
41750 case "(($ac_try" in
41751   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41752   *) ac_try_echo=$ac_try;;
41753 esac
41754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41755   (eval "$ac_compile") 2>conftest.er1
41756   ac_status=$?
41757   grep -v '^ *+' conftest.er1 >conftest.err
41758   rm -f conftest.er1
41759   cat conftest.err >&5
41760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41761   (exit $ac_status); } && {
41762          test -z "$ac_c_werror_flag" ||
41763          test ! -s conftest.err
41764        } && test -s conftest.$ac_objext; then
41765   wx_cv_func_pthread_mutexattr_settype_decl=yes
41766 else
41767   echo "$as_me: failed program was:" >&5
41768 sed 's/^/| /' conftest.$ac_ext >&5
41769
41770         wx_cv_func_pthread_mutexattr_settype_decl=no
41771
41772 fi
41773
41774 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41775
41776 fi
41777 { echo "$as_me:$LINENO: result: $wx_cv_func_pthread_mutexattr_settype_decl" >&5
41778 echo "${ECHO_T}$wx_cv_func_pthread_mutexattr_settype_decl" >&6; }
41779         if test "$wx_cv_func_pthread_mutexattr_settype_decl" = "yes"; then
41780             cat >>confdefs.h <<\_ACEOF
41781 #define HAVE_PTHREAD_MUTEXATTR_SETTYPE_DECL 1
41782 _ACEOF
41783
41784         fi
41785       else
41786                 { echo "$as_me:$LINENO: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
41787 echo $ECHO_N "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER... $ECHO_C" >&6; }
41788 if test "${wx_cv_type_pthread_rec_mutex_init+set}" = set; then
41789   echo $ECHO_N "(cached) $ECHO_C" >&6
41790 else
41791
41792             cat >conftest.$ac_ext <<_ACEOF
41793 /* confdefs.h.  */
41794 _ACEOF
41795 cat confdefs.h >>conftest.$ac_ext
41796 cat >>conftest.$ac_ext <<_ACEOF
41797 /* end confdefs.h.  */
41798 #include <pthread.h>
41799 int
41800 main ()
41801 {
41802
41803                     pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
41804
41805   ;
41806   return 0;
41807 }
41808 _ACEOF
41809 rm -f conftest.$ac_objext
41810 if { (ac_try="$ac_compile"
41811 case "(($ac_try" in
41812   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41813   *) ac_try_echo=$ac_try;;
41814 esac
41815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41816   (eval "$ac_compile") 2>conftest.er1
41817   ac_status=$?
41818   grep -v '^ *+' conftest.er1 >conftest.err
41819   rm -f conftest.er1
41820   cat conftest.err >&5
41821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41822   (exit $ac_status); } && {
41823          test -z "$ac_c_werror_flag" ||
41824          test ! -s conftest.err
41825        } && test -s conftest.$ac_objext; then
41826
41827                     wx_cv_type_pthread_rec_mutex_init=yes
41828
41829 else
41830   echo "$as_me: failed program was:" >&5
41831 sed 's/^/| /' conftest.$ac_ext >&5
41832
41833
41834                     wx_cv_type_pthread_rec_mutex_init=no
41835
41836
41837 fi
41838
41839 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41840
41841 fi
41842 { echo "$as_me:$LINENO: result: $wx_cv_type_pthread_rec_mutex_init" >&5
41843 echo "${ECHO_T}$wx_cv_type_pthread_rec_mutex_init" >&6; }
41844         if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
41845           cat >>confdefs.h <<\_ACEOF
41846 #define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
41847 _ACEOF
41848
41849         else
41850                     { echo "$as_me:$LINENO: WARNING: wxMutex won't be recursive on this platform" >&5
41851 echo "$as_me: WARNING: wxMutex won't be recursive on this platform" >&2;}
41852         fi
41853       fi
41854
41855       if test "$wxUSE_COMPILER_TLS" = "auto"; then
41856           if test "$USE_NETBSD" = 1; then
41857               { echo "$as_me:$LINENO: WARNING: Disabling TLS under NetBSD, please contact wx-dev if it works now" >&5
41858 echo "$as_me: WARNING: Disabling TLS under NetBSD, please contact wx-dev if it works now" >&2;}
41859               wxUSE_COMPILER_TLS=no
41860           else
41861               wxUSE_COMPILER_TLS=yes
41862           fi
41863       fi
41864
41865       if test "$wxUSE_COMPILER_TLS" = "yes"; then
41866                     { echo "$as_me:$LINENO: checking for __thread keyword" >&5
41867 echo $ECHO_N "checking for __thread keyword... $ECHO_C" >&6; }
41868 if test "${wx_cv_cc___thread+set}" = set; then
41869   echo $ECHO_N "(cached) $ECHO_C" >&6
41870 else
41871
41872                   cat >conftest.$ac_ext <<_ACEOF
41873 /* confdefs.h.  */
41874 _ACEOF
41875 cat confdefs.h >>conftest.$ac_ext
41876 cat >>conftest.$ac_ext <<_ACEOF
41877 /* end confdefs.h.  */
41878 #include <pthread.h>
41879 int
41880 main ()
41881 {
41882
41883                           static __thread int n = 0;
41884                           static __thread int *p = 0;
41885
41886   ;
41887   return 0;
41888 }
41889 _ACEOF
41890 rm -f conftest.$ac_objext
41891 if { (ac_try="$ac_compile"
41892 case "(($ac_try" in
41893   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41894   *) ac_try_echo=$ac_try;;
41895 esac
41896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41897   (eval "$ac_compile") 2>conftest.er1
41898   ac_status=$?
41899   grep -v '^ *+' conftest.er1 >conftest.err
41900   rm -f conftest.er1
41901   cat conftest.err >&5
41902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41903   (exit $ac_status); } && {
41904          test -z "$ac_c_werror_flag" ||
41905          test ! -s conftest.err
41906        } && test -s conftest.$ac_objext; then
41907   wx_cv_cc___thread=yes
41908 else
41909   echo "$as_me: failed program was:" >&5
41910 sed 's/^/| /' conftest.$ac_ext >&5
41911
41912         wx_cv_cc___thread=no
41913
41914 fi
41915
41916 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41917
41918
41919 fi
41920 { echo "$as_me:$LINENO: result: $wx_cv_cc___thread" >&5
41921 echo "${ECHO_T}$wx_cv_cc___thread" >&6; }
41922
41923           if test "$wx_cv_cc___thread" = "yes"; then
41924
41925   GXX_VERSION=""
41926
41927
41928
41929   { echo "$as_me:$LINENO: checking if gcc accepts -dumpversion option" >&5
41930 echo $ECHO_N "checking if gcc accepts -dumpversion option... $ECHO_C" >&6; }
41931
41932   if  test "x$GCC" = "xyes" ; then
41933
41934     if  test -z "" ; then
41935
41936       ax_gcc_option_test="int main()
41937 {
41938         return 0;
41939 }"
41940
41941 else
41942
41943       ax_gcc_option_test=""
41944
41945 fi
41946
41947
41948     # Dump the test program to file
41949     cat <<EOF > conftest.c
41950 $ax_gcc_option_test
41951 EOF
41952
41953     # Dump back the file to the log, useful for debugging purposes
41954     { ac_try='cat conftest.c 1>&5'
41955   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41956   (eval $ac_try) 2>&5
41957   ac_status=$?
41958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41959   (exit $ac_status); }; }
41960
41961     if  { ac_try='$CC  -dumpversion -c conftest.c 1>&5'
41962   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41963   (eval $ac_try) 2>&5
41964   ac_status=$?
41965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41966   (exit $ac_status); }; } ; then
41967
41968                 { echo "$as_me:$LINENO: result: yes" >&5
41969 echo "${ECHO_T}yes" >&6; }
41970
41971     ax_gcc_version_option=yes
41972
41973
41974 else
41975
41976                 { echo "$as_me:$LINENO: result: no" >&5
41977 echo "${ECHO_T}no" >&6; }
41978
41979     ax_gcc_version_option=no
41980
41981
41982 fi
41983
41984
41985 else
41986
41987     { echo "$as_me:$LINENO: result: no gcc available" >&5
41988 echo "${ECHO_T}no gcc available" >&6; }
41989
41990 fi
41991
41992
41993   if test "x$GXX" = "xyes"; then
41994
41995     if test "x$ax_gxx_version_option" != "no"; then
41996
41997       { echo "$as_me:$LINENO: checking gxx version" >&5
41998 echo $ECHO_N "checking gxx version... $ECHO_C" >&6; }
41999 if test "${ax_cv_gxx_version+set}" = set; then
42000   echo $ECHO_N "(cached) $ECHO_C" >&6
42001 else
42002
42003         ax_cv_gxx_version="`$CXX -dumpversion`"
42004         if test "x$ax_cv_gxx_version" = "x"; then
42005
42006           ax_cv_gxx_version=""
42007
42008 fi
42009
42010
42011 fi
42012 { echo "$as_me:$LINENO: result: $ax_cv_gxx_version" >&5
42013 echo "${ECHO_T}$ax_cv_gxx_version" >&6; }
42014       GXX_VERSION=$ax_cv_gxx_version
42015
42016 fi
42017
42018
42019 fi
42020
42021
42022
42023               if test -n "$ax_cv_gxx_version"; then
42024                                                                                                                                                                   { echo "$as_me:$LINENO: checking whether __thread support in g++ is usable" >&5
42025 echo $ECHO_N "checking whether __thread support in g++ is usable... $ECHO_C" >&6; }
42026                   case "$ax_cv_gxx_version" in
42027                     1.* | 2.* | 3.* )
42028                         { echo "$as_me:$LINENO: result: no, it's broken" >&5
42029 echo "${ECHO_T}no, it's broken" >&6; }
42030                         wx_cv_cc___thread=no
42031                         ;;
42032                     *)
42033                         { echo "$as_me:$LINENO: result: yes, it works" >&5
42034 echo "${ECHO_T}yes, it works" >&6; }
42035                         ;;
42036                   esac
42037               fi
42038           fi
42039
42040           if test "$wx_cv_cc___thread" = "yes"; then
42041             cat >>confdefs.h <<\_ACEOF
42042 #define HAVE___THREAD_KEYWORD 1
42043 _ACEOF
42044
42045           fi
42046         fi
42047     fi
42048
42049 else
42050     if test "$wxUSE_THREADS" = "yes" ; then
42051       case "${host}" in
42052         x86_64-*-mingw32* )
42053         ;;
42054         *-*-mingw32* )
42055                         { echo "$as_me:$LINENO: checking if compiler supports -mthreads" >&5
42056 echo $ECHO_N "checking if compiler supports -mthreads... $ECHO_C" >&6; }
42057 if test "${wx_cv_cflags_mthread+set}" = set; then
42058   echo $ECHO_N "(cached) $ECHO_C" >&6
42059 else
42060
42061                     CFLAGS_OLD="$CFLAGS"
42062                     CFLAGS="-mthreads $CFLAGS"
42063                     cat >conftest.$ac_ext <<_ACEOF
42064 /* confdefs.h.  */
42065 _ACEOF
42066 cat confdefs.h >>conftest.$ac_ext
42067 cat >>conftest.$ac_ext <<_ACEOF
42068 /* end confdefs.h.  */
42069
42070 int
42071 main ()
42072 {
42073
42074   ;
42075   return 0;
42076 }
42077 _ACEOF
42078 rm -f conftest.$ac_objext
42079 if { (ac_try="$ac_compile"
42080 case "(($ac_try" in
42081   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42082   *) ac_try_echo=$ac_try;;
42083 esac
42084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42085   (eval "$ac_compile") 2>conftest.er1
42086   ac_status=$?
42087   grep -v '^ *+' conftest.er1 >conftest.err
42088   rm -f conftest.er1
42089   cat conftest.err >&5
42090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42091   (exit $ac_status); } && {
42092          test -z "$ac_c_werror_flag" ||
42093          test ! -s conftest.err
42094        } && test -s conftest.$ac_objext; then
42095   wx_cv_cflags_mthread=yes
42096 else
42097   echo "$as_me: failed program was:" >&5
42098 sed 's/^/| /' conftest.$ac_ext >&5
42099
42100         wx_cv_cflags_mthread=no
42101
42102 fi
42103
42104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42105
42106
42107 fi
42108 { echo "$as_me:$LINENO: result: $wx_cv_cflags_mthread" >&5
42109 echo "${ECHO_T}$wx_cv_cflags_mthread" >&6; }
42110
42111             if test "$wx_cv_cflags_mthread" = "yes"; then
42112                                 WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -mthreads"
42113                 LDFLAGS="$LDFLAGS -mthreads"
42114             else
42115                                 CFLAGS="$CFLAGS_OLD"
42116             fi
42117         ;;
42118         *-pc-os2*emx )
42119             WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -Zmt -D__ST_MT_ERRNO__"
42120             LDFLAGS="$LDFLAGS -Zmt"
42121         ;;
42122       esac
42123     fi
42124 fi
42125
42126 { echo "$as_me:$LINENO: checking for localtime_r" >&5
42127 echo $ECHO_N "checking for localtime_r... $ECHO_C" >&6; }
42128 if test "${ac_cv_func_localtime_r+set}" = set; then
42129   echo $ECHO_N "(cached) $ECHO_C" >&6
42130 else
42131   cat >conftest.$ac_ext <<_ACEOF
42132 /* confdefs.h.  */
42133 _ACEOF
42134 cat confdefs.h >>conftest.$ac_ext
42135 cat >>conftest.$ac_ext <<_ACEOF
42136 /* end confdefs.h.  */
42137 /* Define localtime_r to an innocuous variant, in case <limits.h> declares localtime_r.
42138    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
42139 #define localtime_r innocuous_localtime_r
42140
42141 /* System header to define __stub macros and hopefully few prototypes,
42142     which can conflict with char localtime_r (); below.
42143     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42144     <limits.h> exists even on freestanding compilers.  */
42145
42146 #ifdef __STDC__
42147 # include <limits.h>
42148 #else
42149 # include <assert.h>
42150 #endif
42151
42152 #undef localtime_r
42153
42154 /* Override any GCC internal prototype to avoid an error.
42155    Use char because int might match the return type of a GCC
42156    builtin and then its argument prototype would still apply.  */
42157 #ifdef __cplusplus
42158 extern "C"
42159 #endif
42160 char localtime_r ();
42161 /* The GNU C library defines this for functions which it implements
42162     to always fail with ENOSYS.  Some functions are actually named
42163     something starting with __ and the normal name is an alias.  */
42164 #if defined __stub_localtime_r || defined __stub___localtime_r
42165 choke me
42166 #endif
42167
42168 int
42169 main ()
42170 {
42171 return localtime_r ();
42172   ;
42173   return 0;
42174 }
42175 _ACEOF
42176 rm -f conftest.$ac_objext conftest$ac_exeext
42177 if { (ac_try="$ac_link"
42178 case "(($ac_try" in
42179   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42180   *) ac_try_echo=$ac_try;;
42181 esac
42182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42183   (eval "$ac_link") 2>conftest.er1
42184   ac_status=$?
42185   grep -v '^ *+' conftest.er1 >conftest.err
42186   rm -f conftest.er1
42187   cat conftest.err >&5
42188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42189   (exit $ac_status); } && {
42190          test -z "$ac_c_werror_flag" ||
42191          test ! -s conftest.err
42192        } && test -s conftest$ac_exeext &&
42193        $as_test_x conftest$ac_exeext; then
42194   ac_cv_func_localtime_r=yes
42195 else
42196   echo "$as_me: failed program was:" >&5
42197 sed 's/^/| /' conftest.$ac_ext >&5
42198
42199         ac_cv_func_localtime_r=no
42200 fi
42201
42202 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42203       conftest$ac_exeext conftest.$ac_ext
42204 fi
42205 { echo "$as_me:$LINENO: result: $ac_cv_func_localtime_r" >&5
42206 echo "${ECHO_T}$ac_cv_func_localtime_r" >&6; }
42207 if test $ac_cv_func_localtime_r = yes; then
42208    cat >>confdefs.h <<\_ACEOF
42209 #define HAVE_LOCALTIME_R 1
42210 _ACEOF
42211
42212 fi
42213
42214 { echo "$as_me:$LINENO: checking for gmtime_r" >&5
42215 echo $ECHO_N "checking for gmtime_r... $ECHO_C" >&6; }
42216 if test "${ac_cv_func_gmtime_r+set}" = set; then
42217   echo $ECHO_N "(cached) $ECHO_C" >&6
42218 else
42219   cat >conftest.$ac_ext <<_ACEOF
42220 /* confdefs.h.  */
42221 _ACEOF
42222 cat confdefs.h >>conftest.$ac_ext
42223 cat >>conftest.$ac_ext <<_ACEOF
42224 /* end confdefs.h.  */
42225 /* Define gmtime_r to an innocuous variant, in case <limits.h> declares gmtime_r.
42226    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
42227 #define gmtime_r innocuous_gmtime_r
42228
42229 /* System header to define __stub macros and hopefully few prototypes,
42230     which can conflict with char gmtime_r (); below.
42231     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42232     <limits.h> exists even on freestanding compilers.  */
42233
42234 #ifdef __STDC__
42235 # include <limits.h>
42236 #else
42237 # include <assert.h>
42238 #endif
42239
42240 #undef gmtime_r
42241
42242 /* Override any GCC internal prototype to avoid an error.
42243    Use char because int might match the return type of a GCC
42244    builtin and then its argument prototype would still apply.  */
42245 #ifdef __cplusplus
42246 extern "C"
42247 #endif
42248 char gmtime_r ();
42249 /* The GNU C library defines this for functions which it implements
42250     to always fail with ENOSYS.  Some functions are actually named
42251     something starting with __ and the normal name is an alias.  */
42252 #if defined __stub_gmtime_r || defined __stub___gmtime_r
42253 choke me
42254 #endif
42255
42256 int
42257 main ()
42258 {
42259 return gmtime_r ();
42260   ;
42261   return 0;
42262 }
42263 _ACEOF
42264 rm -f conftest.$ac_objext conftest$ac_exeext
42265 if { (ac_try="$ac_link"
42266 case "(($ac_try" in
42267   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42268   *) ac_try_echo=$ac_try;;
42269 esac
42270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42271   (eval "$ac_link") 2>conftest.er1
42272   ac_status=$?
42273   grep -v '^ *+' conftest.er1 >conftest.err
42274   rm -f conftest.er1
42275   cat conftest.err >&5
42276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42277   (exit $ac_status); } && {
42278          test -z "$ac_c_werror_flag" ||
42279          test ! -s conftest.err
42280        } && test -s conftest$ac_exeext &&
42281        $as_test_x conftest$ac_exeext; then
42282   ac_cv_func_gmtime_r=yes
42283 else
42284   echo "$as_me: failed program was:" >&5
42285 sed 's/^/| /' conftest.$ac_ext >&5
42286
42287         ac_cv_func_gmtime_r=no
42288 fi
42289
42290 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42291       conftest$ac_exeext conftest.$ac_ext
42292 fi
42293 { echo "$as_me:$LINENO: result: $ac_cv_func_gmtime_r" >&5
42294 echo "${ECHO_T}$ac_cv_func_gmtime_r" >&6; }
42295 if test $ac_cv_func_gmtime_r = yes; then
42296    cat >>confdefs.h <<\_ACEOF
42297 #define HAVE_GMTIME_R 1
42298 _ACEOF
42299
42300 fi
42301
42302
42303
42304
42305     ac_ext=c
42306 ac_cpp='$CPP $CPPFLAGS'
42307 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42308 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42309 ac_compiler_gnu=$ac_cv_c_compiler_gnu
42310
42311     { echo "$as_me:$LINENO: checking how many arguments gethostbyname_r() takes" >&5
42312 echo $ECHO_N "checking how many arguments gethostbyname_r() takes... $ECHO_C" >&6; }
42313
42314     if test "${ac_cv_func_which_gethostbyname_r+set}" = set; then
42315   echo $ECHO_N "(cached) $ECHO_C" >&6
42316 else
42317
42318
42319 ################################################################
42320
42321 ac_cv_func_which_gethostbyname_r=unknown
42322
42323 #
42324 # ONE ARGUMENT (sanity check)
42325 #
42326
42327 # This should fail, as there is no variant of gethostbyname_r() that takes
42328 # a single argument. If it actually compiles, then we can assume that
42329 # netdb.h is not declaring the function, and the compiler is thereby
42330 # assuming an implicit prototype. In which case, we're out of luck.
42331 #
42332 cat >conftest.$ac_ext <<_ACEOF
42333 /* confdefs.h.  */
42334 _ACEOF
42335 cat confdefs.h >>conftest.$ac_ext
42336 cat >>conftest.$ac_ext <<_ACEOF
42337 /* end confdefs.h.  */
42338 #include <netdb.h>
42339 int
42340 main ()
42341 {
42342
42343             char *name = "www.gnu.org";
42344             (void)gethostbyname_r(name) /* ; */
42345
42346   ;
42347   return 0;
42348 }
42349 _ACEOF
42350 rm -f conftest.$ac_objext
42351 if { (ac_try="$ac_compile"
42352 case "(($ac_try" in
42353   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42354   *) ac_try_echo=$ac_try;;
42355 esac
42356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42357   (eval "$ac_compile") 2>conftest.er1
42358   ac_status=$?
42359   grep -v '^ *+' conftest.er1 >conftest.err
42360   rm -f conftest.er1
42361   cat conftest.err >&5
42362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42363   (exit $ac_status); } && {
42364          test -z "$ac_c_werror_flag" ||
42365          test ! -s conftest.err
42366        } && test -s conftest.$ac_objext; then
42367   ac_cv_func_which_gethostbyname_r=no
42368 else
42369   echo "$as_me: failed program was:" >&5
42370 sed 's/^/| /' conftest.$ac_ext >&5
42371
42372
42373 fi
42374
42375 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42376
42377 #
42378 # SIX ARGUMENTS
42379 # (e.g. Linux)
42380 #
42381
42382 if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then
42383
42384 cat >conftest.$ac_ext <<_ACEOF
42385 /* confdefs.h.  */
42386 _ACEOF
42387 cat confdefs.h >>conftest.$ac_ext
42388 cat >>conftest.$ac_ext <<_ACEOF
42389 /* end confdefs.h.  */
42390 #include <netdb.h>
42391 int
42392 main ()
42393 {
42394
42395             char *name = "www.gnu.org";
42396             struct hostent ret, *retp;
42397             char buf[1024];
42398             int buflen = 1024;
42399             int my_h_errno;
42400             (void)gethostbyname_r(name, &ret, buf, buflen, &retp, &my_h_errno) /* ; */
42401
42402   ;
42403   return 0;
42404 }
42405 _ACEOF
42406 rm -f conftest.$ac_objext
42407 if { (ac_try="$ac_compile"
42408 case "(($ac_try" in
42409   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42410   *) ac_try_echo=$ac_try;;
42411 esac
42412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42413   (eval "$ac_compile") 2>conftest.er1
42414   ac_status=$?
42415   grep -v '^ *+' conftest.er1 >conftest.err
42416   rm -f conftest.er1
42417   cat conftest.err >&5
42418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42419   (exit $ac_status); } && {
42420          test -z "$ac_c_werror_flag" ||
42421          test ! -s conftest.err
42422        } && test -s conftest.$ac_objext; then
42423   ac_cv_func_which_gethostbyname_r=six
42424 else
42425   echo "$as_me: failed program was:" >&5
42426 sed 's/^/| /' conftest.$ac_ext >&5
42427
42428
42429 fi
42430
42431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42432
42433 fi
42434
42435 #
42436 # FIVE ARGUMENTS
42437 # (e.g. Solaris)
42438 #
42439
42440 if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then
42441
42442 cat >conftest.$ac_ext <<_ACEOF
42443 /* confdefs.h.  */
42444 _ACEOF
42445 cat confdefs.h >>conftest.$ac_ext
42446 cat >>conftest.$ac_ext <<_ACEOF
42447 /* end confdefs.h.  */
42448 #include <netdb.h>
42449 int
42450 main ()
42451 {
42452
42453             char *name = "www.gnu.org";
42454             struct hostent ret;
42455             char buf[1024];
42456             int buflen = 1024;
42457             int my_h_errno;
42458             (void)gethostbyname_r(name, &ret, buf, buflen, &my_h_errno) /* ; */
42459
42460   ;
42461   return 0;
42462 }
42463 _ACEOF
42464 rm -f conftest.$ac_objext
42465 if { (ac_try="$ac_compile"
42466 case "(($ac_try" in
42467   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42468   *) ac_try_echo=$ac_try;;
42469 esac
42470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42471   (eval "$ac_compile") 2>conftest.er1
42472   ac_status=$?
42473   grep -v '^ *+' conftest.er1 >conftest.err
42474   rm -f conftest.er1
42475   cat conftest.err >&5
42476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42477   (exit $ac_status); } && {
42478          test -z "$ac_c_werror_flag" ||
42479          test ! -s conftest.err
42480        } && test -s conftest.$ac_objext; then
42481   ac_cv_func_which_gethostbyname_r=five
42482 else
42483   echo "$as_me: failed program was:" >&5
42484 sed 's/^/| /' conftest.$ac_ext >&5
42485
42486
42487 fi
42488
42489 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42490
42491 fi
42492
42493 #
42494 # THREE ARGUMENTS
42495 # (e.g. AIX, HP-UX, Tru64)
42496 #
42497
42498 if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then
42499
42500 cat >conftest.$ac_ext <<_ACEOF
42501 /* confdefs.h.  */
42502 _ACEOF
42503 cat confdefs.h >>conftest.$ac_ext
42504 cat >>conftest.$ac_ext <<_ACEOF
42505 /* end confdefs.h.  */
42506 #include <netdb.h>
42507 int
42508 main ()
42509 {
42510
42511             char *name = "www.gnu.org";
42512             struct hostent ret;
42513             struct hostent_data data;
42514             (void)gethostbyname_r(name, &ret, &data) /* ; */
42515
42516   ;
42517   return 0;
42518 }
42519 _ACEOF
42520 rm -f conftest.$ac_objext
42521 if { (ac_try="$ac_compile"
42522 case "(($ac_try" in
42523   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42524   *) ac_try_echo=$ac_try;;
42525 esac
42526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42527   (eval "$ac_compile") 2>conftest.er1
42528   ac_status=$?
42529   grep -v '^ *+' conftest.er1 >conftest.err
42530   rm -f conftest.er1
42531   cat conftest.err >&5
42532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42533   (exit $ac_status); } && {
42534          test -z "$ac_c_werror_flag" ||
42535          test ! -s conftest.err
42536        } && test -s conftest.$ac_objext; then
42537   ac_cv_func_which_gethostbyname_r=three
42538 else
42539   echo "$as_me: failed program was:" >&5
42540 sed 's/^/| /' conftest.$ac_ext >&5
42541
42542
42543 fi
42544
42545 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42546
42547 fi
42548
42549 ################################################################
42550
42551
42552 fi
42553
42554 case "$ac_cv_func_which_gethostbyname_r" in
42555     three)
42556     { echo "$as_me:$LINENO: result: three" >&5
42557 echo "${ECHO_T}three" >&6; }
42558     cat >>confdefs.h <<\_ACEOF
42559 #define HAVE_FUNC_GETHOSTBYNAME_R_3 1
42560 _ACEOF
42561
42562     ;;
42563
42564     five)
42565     { echo "$as_me:$LINENO: result: five" >&5
42566 echo "${ECHO_T}five" >&6; }
42567     cat >>confdefs.h <<\_ACEOF
42568 #define HAVE_FUNC_GETHOSTBYNAME_R_5 1
42569 _ACEOF
42570
42571     ;;
42572
42573     six)
42574     { echo "$as_me:$LINENO: result: six" >&5
42575 echo "${ECHO_T}six" >&6; }
42576     cat >>confdefs.h <<\_ACEOF
42577 #define HAVE_FUNC_GETHOSTBYNAME_R_6 1
42578 _ACEOF
42579
42580     ;;
42581
42582     no)
42583     { echo "$as_me:$LINENO: result: cannot find function declaration in netdb.h" >&5
42584 echo "${ECHO_T}cannot find function declaration in netdb.h" >&6; }
42585     ;;
42586
42587     unknown)
42588     { echo "$as_me:$LINENO: result: can't tell" >&5
42589 echo "${ECHO_T}can't tell" >&6; }
42590     ;;
42591
42592     *)
42593     { { echo "$as_me:$LINENO: error: internal error" >&5
42594 echo "$as_me: error: internal error" >&2;}
42595    { (exit 1); exit 1; }; }
42596     ;;
42597 esac
42598
42599 ac_ext=c
42600 ac_cpp='$CPP $CPPFLAGS'
42601 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42602 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42603 ac_compiler_gnu=$ac_cv_c_compiler_gnu
42604
42605
42606
42607       if test "x$ac_cv_func_which_gethostbyname_r" = "xno" -o \
42608               "x$ac_cv_func_which_gethostbyname_r" = "xunknown" ; then
42609           { echo "$as_me:$LINENO: checking for gethostbyname" >&5
42610 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
42611 if test "${ac_cv_func_gethostbyname+set}" = set; then
42612   echo $ECHO_N "(cached) $ECHO_C" >&6
42613 else
42614   cat >conftest.$ac_ext <<_ACEOF
42615 /* confdefs.h.  */
42616 _ACEOF
42617 cat confdefs.h >>conftest.$ac_ext
42618 cat >>conftest.$ac_ext <<_ACEOF
42619 /* end confdefs.h.  */
42620 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
42621    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
42622 #define gethostbyname innocuous_gethostbyname
42623
42624 /* System header to define __stub macros and hopefully few prototypes,
42625     which can conflict with char gethostbyname (); below.
42626     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42627     <limits.h> exists even on freestanding compilers.  */
42628
42629 #ifdef __STDC__
42630 # include <limits.h>
42631 #else
42632 # include <assert.h>
42633 #endif
42634
42635 #undef gethostbyname
42636
42637 /* Override any GCC internal prototype to avoid an error.
42638    Use char because int might match the return type of a GCC
42639    builtin and then its argument prototype would still apply.  */
42640 #ifdef __cplusplus
42641 extern "C"
42642 #endif
42643 char gethostbyname ();
42644 /* The GNU C library defines this for functions which it implements
42645     to always fail with ENOSYS.  Some functions are actually named
42646     something starting with __ and the normal name is an alias.  */
42647 #if defined __stub_gethostbyname || defined __stub___gethostbyname
42648 choke me
42649 #endif
42650
42651 int
42652 main ()
42653 {
42654 return gethostbyname ();
42655   ;
42656   return 0;
42657 }
42658 _ACEOF
42659 rm -f conftest.$ac_objext conftest$ac_exeext
42660 if { (ac_try="$ac_link"
42661 case "(($ac_try" in
42662   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42663   *) ac_try_echo=$ac_try;;
42664 esac
42665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42666   (eval "$ac_link") 2>conftest.er1
42667   ac_status=$?
42668   grep -v '^ *+' conftest.er1 >conftest.err
42669   rm -f conftest.er1
42670   cat conftest.err >&5
42671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42672   (exit $ac_status); } && {
42673          test -z "$ac_c_werror_flag" ||
42674          test ! -s conftest.err
42675        } && test -s conftest$ac_exeext &&
42676        $as_test_x conftest$ac_exeext; then
42677   ac_cv_func_gethostbyname=yes
42678 else
42679   echo "$as_me: failed program was:" >&5
42680 sed 's/^/| /' conftest.$ac_ext >&5
42681
42682         ac_cv_func_gethostbyname=no
42683 fi
42684
42685 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42686       conftest$ac_exeext conftest.$ac_ext
42687 fi
42688 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
42689 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
42690 if test $ac_cv_func_gethostbyname = yes; then
42691    cat >>confdefs.h <<\_ACEOF
42692 #define HAVE_GETHOSTBYNAME 1
42693 _ACEOF
42694
42695 fi
42696
42697       fi
42698
42699 { echo "$as_me:$LINENO: checking how many arguments getservbyname_r() takes" >&5
42700 echo $ECHO_N "checking how many arguments getservbyname_r() takes... $ECHO_C" >&6; }
42701 if test "${ac_cv_func_which_getservbyname_r+set}" = set; then
42702   echo $ECHO_N "(cached) $ECHO_C" >&6
42703 else
42704
42705                 ac_ext=cpp
42706 ac_cpp='$CXXCPP $CPPFLAGS'
42707 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42708 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42709 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
42710
42711
42712         cat >conftest.$ac_ext <<_ACEOF
42713 /* confdefs.h.  */
42714 _ACEOF
42715 cat confdefs.h >>conftest.$ac_ext
42716 cat >>conftest.$ac_ext <<_ACEOF
42717 /* end confdefs.h.  */
42718 #include <netdb.h>
42719 int
42720 main ()
42721 {
42722
42723                 char *name;
42724                 char *proto;
42725                 struct servent *se, *res;
42726                 char buffer[2048];
42727                 int buflen = 2048;
42728                 (void) getservbyname_r(name, proto, se, buffer, buflen, &res)
42729
42730   ;
42731   return 0;
42732 }
42733 _ACEOF
42734 rm -f conftest.$ac_objext
42735 if { (ac_try="$ac_compile"
42736 case "(($ac_try" in
42737   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42738   *) ac_try_echo=$ac_try;;
42739 esac
42740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42741   (eval "$ac_compile") 2>conftest.er1
42742   ac_status=$?
42743   grep -v '^ *+' conftest.er1 >conftest.err
42744   rm -f conftest.er1
42745   cat conftest.err >&5
42746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42747   (exit $ac_status); } && {
42748          test -z "$ac_cxx_werror_flag" ||
42749          test ! -s conftest.err
42750        } && test -s conftest.$ac_objext; then
42751   ac_cv_func_which_getservbyname_r=six
42752 else
42753   echo "$as_me: failed program was:" >&5
42754 sed 's/^/| /' conftest.$ac_ext >&5
42755
42756
42757                 cat >conftest.$ac_ext <<_ACEOF
42758 /* confdefs.h.  */
42759 _ACEOF
42760 cat confdefs.h >>conftest.$ac_ext
42761 cat >>conftest.$ac_ext <<_ACEOF
42762 /* end confdefs.h.  */
42763 #include <netdb.h>
42764 int
42765 main ()
42766 {
42767
42768                         char *name;
42769                         char *proto;
42770                         struct servent *se;
42771                         char buffer[2048];
42772                         int buflen = 2048;
42773                         (void) getservbyname_r(name, proto, se, buffer, buflen)
42774
42775   ;
42776   return 0;
42777 }
42778 _ACEOF
42779 rm -f conftest.$ac_objext
42780 if { (ac_try="$ac_compile"
42781 case "(($ac_try" in
42782   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42783   *) ac_try_echo=$ac_try;;
42784 esac
42785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42786   (eval "$ac_compile") 2>conftest.er1
42787   ac_status=$?
42788   grep -v '^ *+' conftest.er1 >conftest.err
42789   rm -f conftest.er1
42790   cat conftest.err >&5
42791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42792   (exit $ac_status); } && {
42793          test -z "$ac_cxx_werror_flag" ||
42794          test ! -s conftest.err
42795        } && test -s conftest.$ac_objext; then
42796   ac_cv_func_which_getservbyname_r=five
42797 else
42798   echo "$as_me: failed program was:" >&5
42799 sed 's/^/| /' conftest.$ac_ext >&5
42800
42801
42802                         cat >conftest.$ac_ext <<_ACEOF
42803 /* confdefs.h.  */
42804 _ACEOF
42805 cat confdefs.h >>conftest.$ac_ext
42806 cat >>conftest.$ac_ext <<_ACEOF
42807 /* end confdefs.h.  */
42808 #include <netdb.h>
42809 int
42810 main ()
42811 {
42812
42813                                 char *name;
42814                                 char *proto;
42815                                 struct servent *se;
42816                                 struct servent_data data;
42817                                 (void) getservbyname_r(name, proto, se, &data);
42818
42819   ;
42820   return 0;
42821 }
42822 _ACEOF
42823 rm -f conftest.$ac_objext
42824 if { (ac_try="$ac_compile"
42825 case "(($ac_try" in
42826   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42827   *) ac_try_echo=$ac_try;;
42828 esac
42829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42830   (eval "$ac_compile") 2>conftest.er1
42831   ac_status=$?
42832   grep -v '^ *+' conftest.er1 >conftest.err
42833   rm -f conftest.er1
42834   cat conftest.err >&5
42835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42836   (exit $ac_status); } && {
42837          test -z "$ac_cxx_werror_flag" ||
42838          test ! -s conftest.err
42839        } && test -s conftest.$ac_objext; then
42840   ac_cv_func_which_getservbyname_r=four
42841 else
42842   echo "$as_me: failed program was:" >&5
42843 sed 's/^/| /' conftest.$ac_ext >&5
42844
42845         ac_cv_func_which_getservbyname_r=no
42846
42847 fi
42848
42849 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42850
42851
42852 fi
42853
42854 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42855
42856
42857 fi
42858
42859 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42860         ac_ext=c
42861 ac_cpp='$CPP $CPPFLAGS'
42862 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42863 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42864 ac_compiler_gnu=$ac_cv_c_compiler_gnu
42865
42866
42867
42868 fi
42869 { echo "$as_me:$LINENO: result: $ac_cv_func_which_getservbyname_r" >&5
42870 echo "${ECHO_T}$ac_cv_func_which_getservbyname_r" >&6; }
42871
42872 if test $ac_cv_func_which_getservbyname_r = six; then
42873   cat >>confdefs.h <<\_ACEOF
42874 #define HAVE_FUNC_GETSERVBYNAME_R_6 1
42875 _ACEOF
42876
42877 elif test $ac_cv_func_which_getservbyname_r = five; then
42878   cat >>confdefs.h <<\_ACEOF
42879 #define HAVE_FUNC_GETSERVBYNAME_R_5 1
42880 _ACEOF
42881
42882 elif test $ac_cv_func_which_getservbyname_r = four; then
42883   cat >>confdefs.h <<\_ACEOF
42884 #define HAVE_FUNC_GETSERVBYNAME_R_4 1
42885 _ACEOF
42886
42887 fi
42888
42889
42890       if test "x$ac_cv_func_which_getservbyname_r" = "xno" -o \
42891               "x$ac_cv_func_which_getservbyname_r" = "xunknown" ; then
42892
42893 for ac_func in getservbyname
42894 do
42895 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42896 { echo "$as_me:$LINENO: checking for $ac_func" >&5
42897 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
42898 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
42899   echo $ECHO_N "(cached) $ECHO_C" >&6
42900 else
42901   cat >conftest.$ac_ext <<_ACEOF
42902 /* confdefs.h.  */
42903 _ACEOF
42904 cat confdefs.h >>conftest.$ac_ext
42905 cat >>conftest.$ac_ext <<_ACEOF
42906 /* end confdefs.h.  */
42907 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42908    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
42909 #define $ac_func innocuous_$ac_func
42910
42911 /* System header to define __stub macros and hopefully few prototypes,
42912     which can conflict with char $ac_func (); below.
42913     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42914     <limits.h> exists even on freestanding compilers.  */
42915
42916 #ifdef __STDC__
42917 # include <limits.h>
42918 #else
42919 # include <assert.h>
42920 #endif
42921
42922 #undef $ac_func
42923
42924 /* Override any GCC internal prototype to avoid an error.
42925    Use char because int might match the return type of a GCC
42926    builtin and then its argument prototype would still apply.  */
42927 #ifdef __cplusplus
42928 extern "C"
42929 #endif
42930 char $ac_func ();
42931 /* The GNU C library defines this for functions which it implements
42932     to always fail with ENOSYS.  Some functions are actually named
42933     something starting with __ and the normal name is an alias.  */
42934 #if defined __stub_$ac_func || defined __stub___$ac_func
42935 choke me
42936 #endif
42937
42938 int
42939 main ()
42940 {
42941 return $ac_func ();
42942   ;
42943   return 0;
42944 }
42945 _ACEOF
42946 rm -f conftest.$ac_objext conftest$ac_exeext
42947 if { (ac_try="$ac_link"
42948 case "(($ac_try" in
42949   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42950   *) ac_try_echo=$ac_try;;
42951 esac
42952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42953   (eval "$ac_link") 2>conftest.er1
42954   ac_status=$?
42955   grep -v '^ *+' conftest.er1 >conftest.err
42956   rm -f conftest.er1
42957   cat conftest.err >&5
42958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42959   (exit $ac_status); } && {
42960          test -z "$ac_c_werror_flag" ||
42961          test ! -s conftest.err
42962        } && test -s conftest$ac_exeext &&
42963        $as_test_x conftest$ac_exeext; then
42964   eval "$as_ac_var=yes"
42965 else
42966   echo "$as_me: failed program was:" >&5
42967 sed 's/^/| /' conftest.$ac_ext >&5
42968
42969         eval "$as_ac_var=no"
42970 fi
42971
42972 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42973       conftest$ac_exeext conftest.$ac_ext
42974 fi
42975 ac_res=`eval echo '${'$as_ac_var'}'`
42976                { echo "$as_me:$LINENO: result: $ac_res" >&5
42977 echo "${ECHO_T}$ac_res" >&6; }
42978 if test `eval echo '${'$as_ac_var'}'` = yes; then
42979   cat >>confdefs.h <<_ACEOF
42980 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42981 _ACEOF
42982   cat >>confdefs.h <<\_ACEOF
42983 #define HAVE_GETSERVBYNAME 1
42984 _ACEOF
42985
42986 fi
42987 done
42988
42989       fi
42990
42991 if test "$wxUSE_THREADS" = "yes"; then
42992   cat >>confdefs.h <<\_ACEOF
42993 #define wxUSE_THREADS 1
42994 _ACEOF
42995
42996
42997   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
42998 else
42999       if test "$wx_cv_func_strtok_r" = "yes"; then
43000     { echo "$as_me:$LINENO: checking if -D_REENTRANT is needed" >&5
43001 echo $ECHO_N "checking if -D_REENTRANT is needed... $ECHO_C" >&6; }
43002     if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
43003         WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_REENTRANT"
43004         { echo "$as_me:$LINENO: result: yes" >&5
43005 echo "${ECHO_T}yes" >&6; }
43006     else
43007         { echo "$as_me:$LINENO: result: no" >&5
43008 echo "${ECHO_T}no" >&6; }
43009     fi
43010   fi
43011 fi
43012
43013 if test "$WXGTK2" = 1 ; then
43014   cat >>confdefs.h <<_ACEOF
43015 #define __WXGTK20__ $WXGTK2
43016 _ACEOF
43017
43018   WXGTK12=1
43019 fi
43020
43021 if test "$WXGTK12" = 1 ; then
43022   cat >>confdefs.h <<_ACEOF
43023 #define __WXGTK12__ $WXGTK12
43024 _ACEOF
43025
43026 fi
43027
43028 if test "$WXGTK127" = 1 ; then
43029   cat >>confdefs.h <<_ACEOF
43030 #define __WXGTK127__ $WXGTK127
43031 _ACEOF
43032
43033 fi
43034
43035 if test "$WXGPE" = 1 ; then
43036   cat >>confdefs.h <<_ACEOF
43037 #define __WXGPE__ $WXGPE
43038 _ACEOF
43039
43040 fi
43041
43042 DEBUG_CFLAGS=
43043 if `echo $CXXFLAGS $CFLAGS | grep " -g" >/dev/null`; then
43044                     { echo "$as_me:$LINENO: WARNING: CXXFLAGS/CFLAGS already contains -g flag; ignoring the --enable-debug_info option" >&5
43045 echo "$as_me: WARNING: CXXFLAGS/CFLAGS already contains -g flag; ignoring the --enable-debug_info option" >&2;}
43046 elif test "$wxUSE_DEBUG_INFO" = "yes" ; then
43047     DEBUG_CFLAGS="-g"
43048 fi
43049
43050 if test "$wxUSE_DEBUG_GDB" = "yes" ; then
43051     wxUSE_DEBUG_INFO=yes
43052     if test "$GCC" = yes; then
43053         DEBUG_CFLAGS="-ggdb"
43054     fi
43055 fi
43056
43057 if test "$wxUSE_DEBUG_FLAG" = "no" ; then
43058     WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -DwxDEBUG_LEVEL=0"
43059
43060     if test "$wxUSE_GTK" = 1 ; then
43061         if test "x$wxGTK_VERSION" = "x1" ; then
43062             CPPFLAGS="-DGTK_NO_CHECK_CASTS $CPPFLAGS"
43063         fi
43064     fi
43065 fi
43066
43067 if test "$wxUSE_MEM_TRACING" = "yes" ; then
43068     cat >>confdefs.h <<\_ACEOF
43069 #define wxUSE_MEMORY_TRACING 1
43070 _ACEOF
43071
43072     cat >>confdefs.h <<\_ACEOF
43073 #define wxUSE_GLOBAL_MEMORY_OPERATORS 1
43074 _ACEOF
43075
43076     cat >>confdefs.h <<\_ACEOF
43077 #define wxUSE_DEBUG_NEW_ALWAYS 1
43078 _ACEOF
43079
43080     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
43081 fi
43082
43083 if test "$wxUSE_DMALLOC" = "yes" ; then
43084     DMALLOC_LIBS="-ldmallocthcxx"
43085 fi
43086
43087 PROFILE_FLAGS=
43088 if test "$wxUSE_PROFILE" = "yes" ; then
43089     PROFILE_FLAGS=" -pg"
43090 fi
43091
43092 if test "$GCC" = "yes" ; then
43093     if test "$wxUSE_NO_RTTI" = "yes" ; then
43094                                 WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -DwxNO_RTTI -fno-rtti"
43095     fi
43096     if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
43097         WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -fno-exceptions"
43098     fi
43099     if test "$wxUSE_PERMISSIVE" = "yes" ; then
43100         WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -fpermissive"
43101     fi
43102
43103                                                 case "${host}" in
43104       powerpc*-*-aix* )
43105         WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -mminimal-toc"
43106         ;;
43107       *-hppa* )
43108         WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -ffunction-sections"
43109         ;;
43110     esac
43111 fi
43112
43113 OPTIMISE_CFLAGS=
43114 if `echo $CXXFLAGS $CFLAGS | grep " -O" >/dev/null`; then
43115                     { echo "$as_me:$LINENO: WARNING: CXXFLAGS/CFLAGS already contains -O flag; ignoring the --disable-optimise option" >&5
43116 echo "$as_me: WARNING: CXXFLAGS/CFLAGS already contains -O flag; ignoring the --disable-optimise option" >&2;}
43117 else
43118     if test "$wxUSE_OPTIMISE" = "no" ; then
43119         if test "$GCC" = yes ; then
43120                                     OPTIMISE_CFLAGS="-O0"
43121         fi
43122     else
43123         if test "$GCC" = yes ; then
43124             case "${host}" in
43125                 *-pc-os2_emx | *-pc-os2-emx )
43126                                                             OPTIMISE_CFLAGS="-O2"
43127                 ;;
43128                 *)
43129                                                                                 OPTIMISE_CFLAGS="-O2 -fno-strict-aliasing"
43130                 ;;
43131             esac
43132         else
43133             OPTIMISE_CFLAGS="-O"
43134         fi
43135     fi
43136 fi
43137
43138
43139 if test "x$WXWIN_COMPATIBILITY_2_6" = "xyes"; then
43140     cat >>confdefs.h <<\_ACEOF
43141 #define WXWIN_COMPATIBILITY_2_6 1
43142 _ACEOF
43143
43144
43145     WXWIN_COMPATIBILITY_2_8="yes"
43146 fi
43147
43148 if test "x$WXWIN_COMPATIBILITY_2_8" != "xno"; then
43149     cat >>confdefs.h <<\_ACEOF
43150 #define WXWIN_COMPATIBILITY_2_8 1
43151 _ACEOF
43152
43153 fi
43154
43155
43156 if test "$wxUSE_GUI" = "yes"; then
43157     cat >>confdefs.h <<\_ACEOF
43158 #define wxUSE_GUI 1
43159 _ACEOF
43160
43161
43162                                             fi
43163
43164
43165 if test "$wxUSE_UNIX" = "yes"; then
43166   cat >>confdefs.h <<\_ACEOF
43167 #define wxUSE_UNIX 1
43168 _ACEOF
43169
43170 fi
43171
43172
43173 if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
43174
43175     HAVE_DL_FUNCS=0
43176     HAVE_SHL_FUNCS=0
43177     if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then
43178         if test "$USE_DOS" = 1; then
43179             HAVE_DL_FUNCS=0
43180         else
43181
43182 for ac_func in dlopen
43183 do
43184 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43185 { echo "$as_me:$LINENO: checking for $ac_func" >&5
43186 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
43187 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
43188   echo $ECHO_N "(cached) $ECHO_C" >&6
43189 else
43190   cat >conftest.$ac_ext <<_ACEOF
43191 /* confdefs.h.  */
43192 _ACEOF
43193 cat confdefs.h >>conftest.$ac_ext
43194 cat >>conftest.$ac_ext <<_ACEOF
43195 /* end confdefs.h.  */
43196 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43197    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
43198 #define $ac_func innocuous_$ac_func
43199
43200 /* System header to define __stub macros and hopefully few prototypes,
43201     which can conflict with char $ac_func (); below.
43202     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43203     <limits.h> exists even on freestanding compilers.  */
43204
43205 #ifdef __STDC__
43206 # include <limits.h>
43207 #else
43208 # include <assert.h>
43209 #endif
43210
43211 #undef $ac_func
43212
43213 /* Override any GCC internal prototype to avoid an error.
43214    Use char because int might match the return type of a GCC
43215    builtin and then its argument prototype would still apply.  */
43216 #ifdef __cplusplus
43217 extern "C"
43218 #endif
43219 char $ac_func ();
43220 /* The GNU C library defines this for functions which it implements
43221     to always fail with ENOSYS.  Some functions are actually named
43222     something starting with __ and the normal name is an alias.  */
43223 #if defined __stub_$ac_func || defined __stub___$ac_func
43224 choke me
43225 #endif
43226
43227 int
43228 main ()
43229 {
43230 return $ac_func ();
43231   ;
43232   return 0;
43233 }
43234 _ACEOF
43235 rm -f conftest.$ac_objext conftest$ac_exeext
43236 if { (ac_try="$ac_link"
43237 case "(($ac_try" in
43238   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43239   *) ac_try_echo=$ac_try;;
43240 esac
43241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43242   (eval "$ac_link") 2>conftest.er1
43243   ac_status=$?
43244   grep -v '^ *+' conftest.er1 >conftest.err
43245   rm -f conftest.er1
43246   cat conftest.err >&5
43247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43248   (exit $ac_status); } && {
43249          test -z "$ac_c_werror_flag" ||
43250          test ! -s conftest.err
43251        } && test -s conftest$ac_exeext &&
43252        $as_test_x conftest$ac_exeext; then
43253   eval "$as_ac_var=yes"
43254 else
43255   echo "$as_me: failed program was:" >&5
43256 sed 's/^/| /' conftest.$ac_ext >&5
43257
43258         eval "$as_ac_var=no"
43259 fi
43260
43261 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43262       conftest$ac_exeext conftest.$ac_ext
43263 fi
43264 ac_res=`eval echo '${'$as_ac_var'}'`
43265                { echo "$as_me:$LINENO: result: $ac_res" >&5
43266 echo "${ECHO_T}$ac_res" >&6; }
43267 if test `eval echo '${'$as_ac_var'}'` = yes; then
43268   cat >>confdefs.h <<_ACEOF
43269 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43270 _ACEOF
43271
43272                 cat >>confdefs.h <<\_ACEOF
43273 #define HAVE_DLOPEN 1
43274 _ACEOF
43275
43276                 HAVE_DL_FUNCS=1
43277
43278 else
43279
43280                 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
43281 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
43282 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
43283   echo $ECHO_N "(cached) $ECHO_C" >&6
43284 else
43285   ac_check_lib_save_LIBS=$LIBS
43286 LIBS="-ldl  $LIBS"
43287 cat >conftest.$ac_ext <<_ACEOF
43288 /* confdefs.h.  */
43289 _ACEOF
43290 cat confdefs.h >>conftest.$ac_ext
43291 cat >>conftest.$ac_ext <<_ACEOF
43292 /* end confdefs.h.  */
43293
43294 /* Override any GCC internal prototype to avoid an error.
43295    Use char because int might match the return type of a GCC
43296    builtin and then its argument prototype would still apply.  */
43297 #ifdef __cplusplus
43298 extern "C"
43299 #endif
43300 char dlopen ();
43301 int
43302 main ()
43303 {
43304 return dlopen ();
43305   ;
43306   return 0;
43307 }
43308 _ACEOF
43309 rm -f conftest.$ac_objext conftest$ac_exeext
43310 if { (ac_try="$ac_link"
43311 case "(($ac_try" in
43312   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43313   *) ac_try_echo=$ac_try;;
43314 esac
43315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43316   (eval "$ac_link") 2>conftest.er1
43317   ac_status=$?
43318   grep -v '^ *+' conftest.er1 >conftest.err
43319   rm -f conftest.er1
43320   cat conftest.err >&5
43321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43322   (exit $ac_status); } && {
43323          test -z "$ac_c_werror_flag" ||
43324          test ! -s conftest.err
43325        } && test -s conftest$ac_exeext &&
43326        $as_test_x conftest$ac_exeext; then
43327   ac_cv_lib_dl_dlopen=yes
43328 else
43329   echo "$as_me: failed program was:" >&5
43330 sed 's/^/| /' conftest.$ac_ext >&5
43331
43332         ac_cv_lib_dl_dlopen=no
43333 fi
43334
43335 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43336       conftest$ac_exeext conftest.$ac_ext
43337 LIBS=$ac_check_lib_save_LIBS
43338 fi
43339 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
43340 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
43341 if test $ac_cv_lib_dl_dlopen = yes; then
43342
43343                                 cat >>confdefs.h <<\_ACEOF
43344 #define HAVE_DLOPEN 1
43345 _ACEOF
43346
43347                                 HAVE_DL_FUNCS=1
43348                                 DL_LINK=" -ldl$DL_LINK"
43349
43350 else
43351
43352
43353 for ac_func in shl_load
43354 do
43355 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43356 { echo "$as_me:$LINENO: checking for $ac_func" >&5
43357 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
43358 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
43359   echo $ECHO_N "(cached) $ECHO_C" >&6
43360 else
43361   cat >conftest.$ac_ext <<_ACEOF
43362 /* confdefs.h.  */
43363 _ACEOF
43364 cat confdefs.h >>conftest.$ac_ext
43365 cat >>conftest.$ac_ext <<_ACEOF
43366 /* end confdefs.h.  */
43367 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43368    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
43369 #define $ac_func innocuous_$ac_func
43370
43371 /* System header to define __stub macros and hopefully few prototypes,
43372     which can conflict with char $ac_func (); below.
43373     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43374     <limits.h> exists even on freestanding compilers.  */
43375
43376 #ifdef __STDC__
43377 # include <limits.h>
43378 #else
43379 # include <assert.h>
43380 #endif
43381
43382 #undef $ac_func
43383
43384 /* Override any GCC internal prototype to avoid an error.
43385    Use char because int might match the return type of a GCC
43386    builtin and then its argument prototype would still apply.  */
43387 #ifdef __cplusplus
43388 extern "C"
43389 #endif
43390 char $ac_func ();
43391 /* The GNU C library defines this for functions which it implements
43392     to always fail with ENOSYS.  Some functions are actually named
43393     something starting with __ and the normal name is an alias.  */
43394 #if defined __stub_$ac_func || defined __stub___$ac_func
43395 choke me
43396 #endif
43397
43398 int
43399 main ()
43400 {
43401 return $ac_func ();
43402   ;
43403   return 0;
43404 }
43405 _ACEOF
43406 rm -f conftest.$ac_objext conftest$ac_exeext
43407 if { (ac_try="$ac_link"
43408 case "(($ac_try" in
43409   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43410   *) ac_try_echo=$ac_try;;
43411 esac
43412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43413   (eval "$ac_link") 2>conftest.er1
43414   ac_status=$?
43415   grep -v '^ *+' conftest.er1 >conftest.err
43416   rm -f conftest.er1
43417   cat conftest.err >&5
43418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43419   (exit $ac_status); } && {
43420          test -z "$ac_c_werror_flag" ||
43421          test ! -s conftest.err
43422        } && test -s conftest$ac_exeext &&
43423        $as_test_x conftest$ac_exeext; then
43424   eval "$as_ac_var=yes"
43425 else
43426   echo "$as_me: failed program was:" >&5
43427 sed 's/^/| /' conftest.$ac_ext >&5
43428
43429         eval "$as_ac_var=no"
43430 fi
43431
43432 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43433       conftest$ac_exeext conftest.$ac_ext
43434 fi
43435 ac_res=`eval echo '${'$as_ac_var'}'`
43436                { echo "$as_me:$LINENO: result: $ac_res" >&5
43437 echo "${ECHO_T}$ac_res" >&6; }
43438 if test `eval echo '${'$as_ac_var'}'` = yes; then
43439   cat >>confdefs.h <<_ACEOF
43440 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43441 _ACEOF
43442
43443                                                 cat >>confdefs.h <<\_ACEOF
43444 #define HAVE_SHL_LOAD 1
43445 _ACEOF
43446
43447                                                 HAVE_SHL_FUNCS=1
43448
43449 else
43450
43451                                                 { echo "$as_me:$LINENO: checking for dld in -lshl_load" >&5
43452 echo $ECHO_N "checking for dld in -lshl_load... $ECHO_C" >&6; }
43453 if test "${ac_cv_lib_shl_load_dld+set}" = set; then
43454   echo $ECHO_N "(cached) $ECHO_C" >&6
43455 else
43456   ac_check_lib_save_LIBS=$LIBS
43457 LIBS="-lshl_load  $LIBS"
43458 cat >conftest.$ac_ext <<_ACEOF
43459 /* confdefs.h.  */
43460 _ACEOF
43461 cat confdefs.h >>conftest.$ac_ext
43462 cat >>conftest.$ac_ext <<_ACEOF
43463 /* end confdefs.h.  */
43464
43465 /* Override any GCC internal prototype to avoid an error.
43466    Use char because int might match the return type of a GCC
43467    builtin and then its argument prototype would still apply.  */
43468 #ifdef __cplusplus
43469 extern "C"
43470 #endif
43471 char dld ();
43472 int
43473 main ()
43474 {
43475 return dld ();
43476   ;
43477   return 0;
43478 }
43479 _ACEOF
43480 rm -f conftest.$ac_objext conftest$ac_exeext
43481 if { (ac_try="$ac_link"
43482 case "(($ac_try" in
43483   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43484   *) ac_try_echo=$ac_try;;
43485 esac
43486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43487   (eval "$ac_link") 2>conftest.er1
43488   ac_status=$?
43489   grep -v '^ *+' conftest.er1 >conftest.err
43490   rm -f conftest.er1
43491   cat conftest.err >&5
43492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43493   (exit $ac_status); } && {
43494          test -z "$ac_c_werror_flag" ||
43495          test ! -s conftest.err
43496        } && test -s conftest$ac_exeext &&
43497        $as_test_x conftest$ac_exeext; then
43498   ac_cv_lib_shl_load_dld=yes
43499 else
43500   echo "$as_me: failed program was:" >&5
43501 sed 's/^/| /' conftest.$ac_ext >&5
43502
43503         ac_cv_lib_shl_load_dld=no
43504 fi
43505
43506 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43507       conftest$ac_exeext conftest.$ac_ext
43508 LIBS=$ac_check_lib_save_LIBS
43509 fi
43510 { echo "$as_me:$LINENO: result: $ac_cv_lib_shl_load_dld" >&5
43511 echo "${ECHO_T}$ac_cv_lib_shl_load_dld" >&6; }
43512 if test $ac_cv_lib_shl_load_dld = yes; then
43513
43514                                                                 HAVE_SHL_FUNCS=1
43515                                                                 DL_LINK=" -ldld$DL_LINK"
43516
43517 fi
43518
43519
43520 fi
43521 done
43522
43523
43524 fi
43525
43526
43527 fi
43528 done
43529
43530
43531                         if test "$HAVE_DL_FUNCS" = 1; then
43532
43533 for ac_func in dlerror
43534 do
43535 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43536 { echo "$as_me:$LINENO: checking for $ac_func" >&5
43537 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
43538 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
43539   echo $ECHO_N "(cached) $ECHO_C" >&6
43540 else
43541   cat >conftest.$ac_ext <<_ACEOF
43542 /* confdefs.h.  */
43543 _ACEOF
43544 cat confdefs.h >>conftest.$ac_ext
43545 cat >>conftest.$ac_ext <<_ACEOF
43546 /* end confdefs.h.  */
43547 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43548    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
43549 #define $ac_func innocuous_$ac_func
43550
43551 /* System header to define __stub macros and hopefully few prototypes,
43552     which can conflict with char $ac_func (); below.
43553     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43554     <limits.h> exists even on freestanding compilers.  */
43555
43556 #ifdef __STDC__
43557 # include <limits.h>
43558 #else
43559 # include <assert.h>
43560 #endif
43561
43562 #undef $ac_func
43563
43564 /* Override any GCC internal prototype to avoid an error.
43565    Use char because int might match the return type of a GCC
43566    builtin and then its argument prototype would still apply.  */
43567 #ifdef __cplusplus
43568 extern "C"
43569 #endif
43570 char $ac_func ();
43571 /* The GNU C library defines this for functions which it implements
43572     to always fail with ENOSYS.  Some functions are actually named
43573     something starting with __ and the normal name is an alias.  */
43574 #if defined __stub_$ac_func || defined __stub___$ac_func
43575 choke me
43576 #endif
43577
43578 int
43579 main ()
43580 {
43581 return $ac_func ();
43582   ;
43583   return 0;
43584 }
43585 _ACEOF
43586 rm -f conftest.$ac_objext conftest$ac_exeext
43587 if { (ac_try="$ac_link"
43588 case "(($ac_try" in
43589   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43590   *) ac_try_echo=$ac_try;;
43591 esac
43592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43593   (eval "$ac_link") 2>conftest.er1
43594   ac_status=$?
43595   grep -v '^ *+' conftest.er1 >conftest.err
43596   rm -f conftest.er1
43597   cat conftest.err >&5
43598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43599   (exit $ac_status); } && {
43600          test -z "$ac_c_werror_flag" ||
43601          test ! -s conftest.err
43602        } && test -s conftest$ac_exeext &&
43603        $as_test_x conftest$ac_exeext; then
43604   eval "$as_ac_var=yes"
43605 else
43606   echo "$as_me: failed program was:" >&5
43607 sed 's/^/| /' conftest.$ac_ext >&5
43608
43609         eval "$as_ac_var=no"
43610 fi
43611
43612 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43613       conftest$ac_exeext conftest.$ac_ext
43614 fi
43615 ac_res=`eval echo '${'$as_ac_var'}'`
43616                { echo "$as_me:$LINENO: result: $ac_res" >&5
43617 echo "${ECHO_T}$ac_res" >&6; }
43618 if test `eval echo '${'$as_ac_var'}'` = yes; then
43619   cat >>confdefs.h <<_ACEOF
43620 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43621 _ACEOF
43622  cat >>confdefs.h <<\_ACEOF
43623 #define HAVE_DLERROR 1
43624 _ACEOF
43625
43626 else
43627
43628                         { echo "$as_me:$LINENO: checking for dlerror in -ldl" >&5
43629 echo $ECHO_N "checking for dlerror in -ldl... $ECHO_C" >&6; }
43630 if test "${ac_cv_lib_dl_dlerror+set}" = set; then
43631   echo $ECHO_N "(cached) $ECHO_C" >&6
43632 else
43633   ac_check_lib_save_LIBS=$LIBS
43634 LIBS="-ldl  $LIBS"
43635 cat >conftest.$ac_ext <<_ACEOF
43636 /* confdefs.h.  */
43637 _ACEOF
43638 cat confdefs.h >>conftest.$ac_ext
43639 cat >>conftest.$ac_ext <<_ACEOF
43640 /* end confdefs.h.  */
43641
43642 /* Override any GCC internal prototype to avoid an error.
43643    Use char because int might match the return type of a GCC
43644    builtin and then its argument prototype would still apply.  */
43645 #ifdef __cplusplus
43646 extern "C"
43647 #endif
43648 char dlerror ();
43649 int
43650 main ()
43651 {
43652 return dlerror ();
43653   ;
43654   return 0;
43655 }
43656 _ACEOF
43657 rm -f conftest.$ac_objext conftest$ac_exeext
43658 if { (ac_try="$ac_link"
43659 case "(($ac_try" in
43660   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43661   *) ac_try_echo=$ac_try;;
43662 esac
43663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43664   (eval "$ac_link") 2>conftest.er1
43665   ac_status=$?
43666   grep -v '^ *+' conftest.er1 >conftest.err
43667   rm -f conftest.er1
43668   cat conftest.err >&5
43669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43670   (exit $ac_status); } && {
43671          test -z "$ac_c_werror_flag" ||
43672          test ! -s conftest.err
43673        } && test -s conftest$ac_exeext &&
43674        $as_test_x conftest$ac_exeext; then
43675   ac_cv_lib_dl_dlerror=yes
43676 else
43677   echo "$as_me: failed program was:" >&5
43678 sed 's/^/| /' conftest.$ac_ext >&5
43679
43680         ac_cv_lib_dl_dlerror=no
43681 fi
43682
43683 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43684       conftest$ac_exeext conftest.$ac_ext
43685 LIBS=$ac_check_lib_save_LIBS
43686 fi
43687 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlerror" >&5
43688 echo "${ECHO_T}$ac_cv_lib_dl_dlerror" >&6; }
43689 if test $ac_cv_lib_dl_dlerror = yes; then
43690   cat >>confdefs.h <<\_ACEOF
43691 #define HAVE_DLERROR 1
43692 _ACEOF
43693
43694 fi
43695
43696
43697
43698 fi
43699 done
43700
43701             fi
43702         fi
43703
43704                 if test "$USE_DARWIN" = 1; then
43705                         HAVE_DL_FUNCS=1
43706         fi
43707
43708         if test "$HAVE_DL_FUNCS" = 0; then
43709             if test "$HAVE_SHL_FUNCS" = 0; then
43710               if test "$USE_UNIX" = 1 -o "$USE_DOS" = 1; then
43711                   { echo "$as_me:$LINENO: WARNING: Missing dynamic loading support, several features will be disabled" >&5
43712 echo "$as_me: WARNING: Missing dynamic loading support, several features will be disabled" >&2;}
43713                   wxUSE_DYNAMIC_LOADER=no
43714                   wxUSE_DYNLIB_CLASS=no
43715               else
43716                   { echo "$as_me:$LINENO: WARNING: Assuming wxLibrary class works on this platform" >&5
43717 echo "$as_me: WARNING: Assuming wxLibrary class works on this platform" >&2;}
43718               fi
43719             fi
43720         fi
43721     fi
43722 fi
43723
43724 if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then
43725     cat >>confdefs.h <<\_ACEOF
43726 #define wxUSE_DYNAMIC_LOADER 1
43727 _ACEOF
43728
43729 fi
43730 if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
43731     cat >>confdefs.h <<\_ACEOF
43732 #define wxUSE_DYNLIB_CLASS 1
43733 _ACEOF
43734
43735 fi
43736
43737
43738
43739 if test "$wxUSE_PLUGINS" = "yes" ; then
43740     if test "$wxUSE_SHARED" = "no" ; then
43741         { echo "$as_me:$LINENO: WARNING: plugins supported only in shared build, disabling" >&5
43742 echo "$as_me: WARNING: plugins supported only in shared build, disabling" >&2;}
43743         wxUSE_PLUGINS=no
43744     fi
43745     if test "$wxUSE_MONOLITHIC" = "yes" ; then
43746         { echo "$as_me:$LINENO: WARNING: plugins not supported monolithic build, disabling" >&5
43747 echo "$as_me: WARNING: plugins not supported monolithic build, disabling" >&2;}
43748         wxUSE_PLUGINS=no
43749     fi
43750     if test "$wxUSE_DYNLIB_CLASS" = "no" ; then
43751         { echo "$as_me:$LINENO: WARNING: plugins require wxDynamicLibrary, disabling" >&5
43752 echo "$as_me: WARNING: plugins require wxDynamicLibrary, disabling" >&2;}
43753         wxUSE_PLUGINS=no
43754     fi
43755     if test "$wxUSE_PLUGINS" = "yes" ; then
43756         cat >>confdefs.h <<\_ACEOF
43757 #define wxUSE_PLUGINS 1
43758 _ACEOF
43759
43760     fi
43761 fi
43762
43763
43764 if test "$wxUSE_FSWATCHER" = "yes"; then
43765                 if test "$wxUSE_MSW" != "1"; then
43766         if test "$wxUSE_UNIX" = "yes"; then
43767
43768 for ac_header in sys/inotify.h
43769 do
43770 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
43771 { echo "$as_me:$LINENO: checking for $ac_header" >&5
43772 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
43773 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
43774   echo $ECHO_N "(cached) $ECHO_C" >&6
43775 else
43776   cat >conftest.$ac_ext <<_ACEOF
43777 /* confdefs.h.  */
43778 _ACEOF
43779 cat confdefs.h >>conftest.$ac_ext
43780 cat >>conftest.$ac_ext <<_ACEOF
43781 /* end confdefs.h.  */
43782 $ac_includes_default
43783
43784 #include <$ac_header>
43785 _ACEOF
43786 rm -f conftest.$ac_objext
43787 if { (ac_try="$ac_compile"
43788 case "(($ac_try" in
43789   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43790   *) ac_try_echo=$ac_try;;
43791 esac
43792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43793   (eval "$ac_compile") 2>conftest.er1
43794   ac_status=$?
43795   grep -v '^ *+' conftest.er1 >conftest.err
43796   rm -f conftest.er1
43797   cat conftest.err >&5
43798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43799   (exit $ac_status); } && {
43800          test -z "$ac_c_werror_flag" ||
43801          test ! -s conftest.err
43802        } && test -s conftest.$ac_objext; then
43803   eval "$as_ac_Header=yes"
43804 else
43805   echo "$as_me: failed program was:" >&5
43806 sed 's/^/| /' conftest.$ac_ext >&5
43807
43808         eval "$as_ac_Header=no"
43809 fi
43810
43811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43812 fi
43813 ac_res=`eval echo '${'$as_ac_Header'}'`
43814                { echo "$as_me:$LINENO: result: $ac_res" >&5
43815 echo "${ECHO_T}$ac_res" >&6; }
43816 if test `eval echo '${'$as_ac_Header'}'` = yes; then
43817   cat >>confdefs.h <<_ACEOF
43818 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
43819 _ACEOF
43820
43821 fi
43822
43823 done
43824
43825             if test "$ac_cv_header_sys_inotify_h" = "yes"; then
43826                 cat >>confdefs.h <<\_ACEOF
43827 #define wxHAS_INOTIFY 1
43828 _ACEOF
43829
43830             else
43831
43832 for ac_header in sys/event.h
43833 do
43834 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
43835 { echo "$as_me:$LINENO: checking for $ac_header" >&5
43836 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
43837 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
43838   echo $ECHO_N "(cached) $ECHO_C" >&6
43839 else
43840   cat >conftest.$ac_ext <<_ACEOF
43841 /* confdefs.h.  */
43842 _ACEOF
43843 cat confdefs.h >>conftest.$ac_ext
43844 cat >>conftest.$ac_ext <<_ACEOF
43845 /* end confdefs.h.  */
43846 $ac_includes_default
43847
43848 #include <$ac_header>
43849 _ACEOF
43850 rm -f conftest.$ac_objext
43851 if { (ac_try="$ac_compile"
43852 case "(($ac_try" in
43853   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43854   *) ac_try_echo=$ac_try;;
43855 esac
43856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43857   (eval "$ac_compile") 2>conftest.er1
43858   ac_status=$?
43859   grep -v '^ *+' conftest.er1 >conftest.err
43860   rm -f conftest.er1
43861   cat conftest.err >&5
43862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43863   (exit $ac_status); } && {
43864          test -z "$ac_c_werror_flag" ||
43865          test ! -s conftest.err
43866        } && test -s conftest.$ac_objext; then
43867   eval "$as_ac_Header=yes"
43868 else
43869   echo "$as_me: failed program was:" >&5
43870 sed 's/^/| /' conftest.$ac_ext >&5
43871
43872         eval "$as_ac_Header=no"
43873 fi
43874
43875 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43876 fi
43877 ac_res=`eval echo '${'$as_ac_Header'}'`
43878                { echo "$as_me:$LINENO: result: $ac_res" >&5
43879 echo "${ECHO_T}$ac_res" >&6; }
43880 if test `eval echo '${'$as_ac_Header'}'` = yes; then
43881   cat >>confdefs.h <<_ACEOF
43882 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
43883 _ACEOF
43884
43885 fi
43886
43887 done
43888
43889                 if test "$ac_cv_header_sys_event_h" = "yes"; then
43890                     cat >>confdefs.h <<\_ACEOF
43891 #define wxHAS_KQUEUE 1
43892 _ACEOF
43893
43894                 else
43895                     wxUSE_FSWATCHER=no
43896                 fi
43897             fi
43898         else
43899             wxUSE_FSWATCHER=no
43900         fi
43901     else
43902         if test "$wxUSE_THREADS" != "yes"; then
43903             { echo "$as_me:$LINENO: WARNING: wxFileSystemWatcher disabled due to --disable-threads" >&5
43904 echo "$as_me: WARNING: wxFileSystemWatcher disabled due to --disable-threads" >&2;}
43905             wxUSE_FSWATCHER=no
43906         fi
43907     fi
43908
43909     if test "$wxUSE_FSWATCHER" = "yes"; then
43910         cat >>confdefs.h <<\_ACEOF
43911 #define wxUSE_FSWATCHER 1
43912 _ACEOF
43913
43914         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS fswatcher"
43915     else
43916         { echo "$as_me:$LINENO: WARNING: wxFileSystemWatcher won't be available on this platform" >&5
43917 echo "$as_me: WARNING: wxFileSystemWatcher won't be available on this platform" >&2;}
43918     fi
43919 fi
43920
43921
43922 if test "$wxUSE_STL" = "yes"; then
43923   cat >>confdefs.h <<\_ACEOF
43924 #define wxUSE_STL 1
43925 _ACEOF
43926
43927 fi
43928
43929 if test "$wxUSE_EXTENDED_RTTI" = "yes"; then
43930   cat >>confdefs.h <<\_ACEOF
43931 #define wxUSE_EXTENDED_RTTI 1
43932 _ACEOF
43933
43934 fi
43935
43936 if test "$wxUSE_ANY" = "yes"; then
43937     cat >>confdefs.h <<\_ACEOF
43938 #define wxUSE_ANY 1
43939 _ACEOF
43940
43941 fi
43942
43943 if test "$wxUSE_APPLE_IEEE" = "yes"; then
43944   cat >>confdefs.h <<\_ACEOF
43945 #define wxUSE_APPLE_IEEE 1
43946 _ACEOF
43947
43948 fi
43949
43950 if test "$wxUSE_TIMER" = "yes"; then
43951   cat >>confdefs.h <<\_ACEOF
43952 #define wxUSE_TIMER 1
43953 _ACEOF
43954
43955 fi
43956
43957 if test "$USE_UNIX" = 1 ; then
43958         if test "$wxUSE_MGL" != 1; then
43959                                 { echo "$as_me:$LINENO: checking for SNDCTL_DSP_SPEED in sys/soundcard.h" >&5
43960 echo $ECHO_N "checking for SNDCTL_DSP_SPEED in sys/soundcard.h... $ECHO_C" >&6; }
43961 if test "${ac_cv_header_sys_soundcard+set}" = set; then
43962   echo $ECHO_N "(cached) $ECHO_C" >&6
43963 else
43964
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                     saveLibs="$LIBS"
44010                     LIBS="$saveLibs -lossaudio"
44011                     cat >conftest.$ac_ext <<_ACEOF
44012 /* confdefs.h.  */
44013 _ACEOF
44014 cat confdefs.h >>conftest.$ac_ext
44015 cat >>conftest.$ac_ext <<_ACEOF
44016 /* end confdefs.h.  */
44017
44018                             #include <sys/ioctl.h>
44019                             #include <sys/soundcard.h>
44020
44021 int
44022 main ()
44023 {
44024
44025                             ioctl(0, SNDCTL_DSP_SPEED, 0);
44026
44027   ;
44028   return 0;
44029 }
44030 _ACEOF
44031 rm -f conftest.$ac_objext conftest$ac_exeext
44032 if { (ac_try="$ac_link"
44033 case "(($ac_try" in
44034   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44035   *) ac_try_echo=$ac_try;;
44036 esac
44037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44038   (eval "$ac_link") 2>conftest.er1
44039   ac_status=$?
44040   grep -v '^ *+' conftest.er1 >conftest.err
44041   rm -f conftest.er1
44042   cat conftest.err >&5
44043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44044   (exit $ac_status); } && {
44045          test -z "$ac_c_werror_flag" ||
44046          test ! -s conftest.err
44047        } && test -s conftest$ac_exeext &&
44048        $as_test_x conftest$ac_exeext; then
44049   ac_cv_header_sys_soundcard=yes
44050 else
44051   echo "$as_me: failed program was:" >&5
44052 sed 's/^/| /' conftest.$ac_ext >&5
44053
44054
44055                             LIBS="$saveLibs"
44056                             ac_cv_header_sys_soundcard=no
44057
44058
44059 fi
44060
44061 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
44062       conftest$ac_exeext conftest.$ac_ext
44063
44064
44065 fi
44066
44067 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
44068       conftest$ac_exeext conftest.$ac_ext
44069
44070 fi
44071 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard" >&5
44072 echo "${ECHO_T}$ac_cv_header_sys_soundcard" >&6; }
44073     fi
44074
44075     if test "$ac_cv_header_sys_soundcard" = "yes"; then
44076         cat >>confdefs.h <<\_ACEOF
44077 #define HAVE_SYS_SOUNDCARD_H 1
44078 _ACEOF
44079
44080     fi
44081 fi
44082
44083 WITH_PLUGIN_SDL=0
44084 if test "$wxUSE_SOUND" = "yes"; then
44085   if test "$USE_UNIX" = 1 ; then
44086     if test "$wxUSE_LIBSDL" != "no"; then
44087
44088 # Check whether --with-sdl-prefix was given.
44089 if test "${with_sdl_prefix+set}" = set; then
44090   withval=$with_sdl_prefix; sdl_prefix="$withval"
44091 else
44092   sdl_prefix=""
44093 fi
44094
44095
44096 # Check whether --with-sdl-exec-prefix was given.
44097 if test "${with_sdl_exec_prefix+set}" = set; then
44098   withval=$with_sdl_exec_prefix; sdl_exec_prefix="$withval"
44099 else
44100   sdl_exec_prefix=""
44101 fi
44102
44103 # Check whether --enable-sdltest was given.
44104 if test "${enable_sdltest+set}" = set; then
44105   enableval=$enable_sdltest;
44106 else
44107   enable_sdltest=yes
44108 fi
44109
44110
44111   if test x$sdl_exec_prefix != x ; then
44112     sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
44113     if test x${SDL_CONFIG+set} != xset ; then
44114       SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
44115     fi
44116   fi
44117   if test x$sdl_prefix != x ; then
44118     sdl_args="$sdl_args --prefix=$sdl_prefix"
44119     if test x${SDL_CONFIG+set} != xset ; then
44120       SDL_CONFIG=$sdl_prefix/bin/sdl-config
44121     fi
44122   fi
44123
44124   if test "x$prefix" != xNONE; then
44125     PATH="$prefix/bin:$prefix/usr/bin:$PATH"
44126   fi
44127   # Extract the first word of "sdl-config", so it can be a program name with args.
44128 set dummy sdl-config; ac_word=$2
44129 { echo "$as_me:$LINENO: checking for $ac_word" >&5
44130 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
44131 if test "${ac_cv_path_SDL_CONFIG+set}" = set; then
44132   echo $ECHO_N "(cached) $ECHO_C" >&6
44133 else
44134   case $SDL_CONFIG in
44135   [\\/]* | ?:[\\/]*)
44136   ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
44137   ;;
44138   *)
44139   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44140 for as_dir in $PATH
44141 do
44142   IFS=$as_save_IFS
44143   test -z "$as_dir" && as_dir=.
44144   for ac_exec_ext in '' $ac_executable_extensions; do
44145   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
44146     ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
44147     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44148     break 2
44149   fi
44150 done
44151 done
44152 IFS=$as_save_IFS
44153
44154   test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
44155   ;;
44156 esac
44157 fi
44158 SDL_CONFIG=$ac_cv_path_SDL_CONFIG
44159 if test -n "$SDL_CONFIG"; then
44160   { echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5
44161 echo "${ECHO_T}$SDL_CONFIG" >&6; }
44162 else
44163   { echo "$as_me:$LINENO: result: no" >&5
44164 echo "${ECHO_T}no" >&6; }
44165 fi
44166
44167
44168   min_sdl_version=1.2.0
44169   { echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5
44170 echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6; }
44171   no_sdl=""
44172   if test "$SDL_CONFIG" = "no" ; then
44173     no_sdl=yes
44174   else
44175     SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
44176     SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
44177
44178     sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
44179            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
44180     sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
44181            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
44182     sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
44183            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
44184     if test "x$enable_sdltest" = "xyes" ; then
44185       ac_save_CFLAGS="$CFLAGS"
44186       ac_save_CXXFLAGS="$CXXFLAGS"
44187       ac_save_LIBS="$LIBS"
44188       CFLAGS="$CFLAGS $SDL_CFLAGS"
44189       CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
44190       LIBS="$LIBS $SDL_LIBS"
44191       rm -f conf.sdltest
44192       if test "$cross_compiling" = yes; then
44193   echo $ac_n "cross compiling; assumed OK... $ac_c"
44194 else
44195   cat >conftest.$ac_ext <<_ACEOF
44196 /* confdefs.h.  */
44197 _ACEOF
44198 cat confdefs.h >>conftest.$ac_ext
44199 cat >>conftest.$ac_ext <<_ACEOF
44200 /* end confdefs.h.  */
44201
44202 #include <stdio.h>
44203 #include <stdlib.h>
44204 #include <string.h>
44205 #include "SDL.h"
44206
44207 char*
44208 my_strdup (char *str)
44209 {
44210   char *new_str;
44211
44212   if (str)
44213     {
44214       new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
44215       strcpy (new_str, str);
44216     }
44217   else
44218     new_str = NULL;
44219
44220   return new_str;
44221 }
44222
44223 int main (int argc, char *argv[])
44224 {
44225   int major, minor, micro;
44226   char *tmp_version;
44227
44228   /* This hangs on some systems (?)
44229   system ("touch conf.sdltest");
44230   */
44231   { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
44232
44233   /* HP/UX 9 (%@#!) writes to sscanf strings */
44234   tmp_version = my_strdup("$min_sdl_version");
44235   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
44236      printf("%s, bad version string\n", "$min_sdl_version");
44237      exit(1);
44238    }
44239
44240    if (($sdl_major_version > major) ||
44241       (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
44242       (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
44243     {
44244       return 0;
44245     }
44246   else
44247     {
44248       printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
44249       printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
44250       printf("*** best to upgrade to the required version.\n");
44251       printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
44252       printf("*** to point to the correct copy of sdl-config, and remove the file\n");
44253       printf("*** config.cache before re-running configure\n");
44254       return 1;
44255     }
44256 }
44257
44258
44259 _ACEOF
44260 rm -f conftest$ac_exeext
44261 if { (ac_try="$ac_link"
44262 case "(($ac_try" in
44263   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44264   *) ac_try_echo=$ac_try;;
44265 esac
44266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44267   (eval "$ac_link") 2>&5
44268   ac_status=$?
44269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44270   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
44271   { (case "(($ac_try" in
44272   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44273   *) ac_try_echo=$ac_try;;
44274 esac
44275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44276   (eval "$ac_try") 2>&5
44277   ac_status=$?
44278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44279   (exit $ac_status); }; }; then
44280   :
44281 else
44282   echo "$as_me: program exited with status $ac_status" >&5
44283 echo "$as_me: failed program was:" >&5
44284 sed 's/^/| /' conftest.$ac_ext >&5
44285
44286 ( exit $ac_status )
44287 no_sdl=yes
44288 fi
44289 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
44290 fi
44291
44292
44293        CFLAGS="$ac_save_CFLAGS"
44294        CXXFLAGS="$ac_save_CXXFLAGS"
44295        LIBS="$ac_save_LIBS"
44296      fi
44297   fi
44298   if test "x$no_sdl" = x ; then
44299      { echo "$as_me:$LINENO: result: yes" >&5
44300 echo "${ECHO_T}yes" >&6; }
44301
44302                     EXTRALIBS_SDL="$SDL_LIBS"
44303                     CFLAGS="$SDL_CFLAGS $CFLAGS"
44304                     CXXFLAGS="$SDL_CFLAGS $CXXFLAGS"
44305                     cat >>confdefs.h <<\_ACEOF
44306 #define wxUSE_LIBSDL 1
44307 _ACEOF
44308
44309
44310   else
44311      { echo "$as_me:$LINENO: result: no" >&5
44312 echo "${ECHO_T}no" >&6; }
44313      if test "$SDL_CONFIG" = "no" ; then
44314        echo "*** The sdl-config script installed by SDL could not be found"
44315        echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
44316        echo "*** your path, or set the SDL_CONFIG environment variable to the"
44317        echo "*** full path to sdl-config."
44318      else
44319        if test -f conf.sdltest ; then
44320         :
44321        else
44322           echo "*** Could not run SDL test program, checking why..."
44323           CFLAGS="$CFLAGS $SDL_CFLAGS"
44324           CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
44325           LIBS="$LIBS $SDL_LIBS"
44326           cat >conftest.$ac_ext <<_ACEOF
44327 /* confdefs.h.  */
44328 _ACEOF
44329 cat confdefs.h >>conftest.$ac_ext
44330 cat >>conftest.$ac_ext <<_ACEOF
44331 /* end confdefs.h.  */
44332
44333 #include <stdio.h>
44334 #include "SDL.h"
44335
44336 int main(int argc, char *argv[])
44337 { return 0; }
44338 #undef  main
44339 #define main K_and_R_C_main
44340
44341 int
44342 main ()
44343 {
44344  return 0;
44345   ;
44346   return 0;
44347 }
44348 _ACEOF
44349 rm -f conftest.$ac_objext conftest$ac_exeext
44350 if { (ac_try="$ac_link"
44351 case "(($ac_try" in
44352   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44353   *) ac_try_echo=$ac_try;;
44354 esac
44355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44356   (eval "$ac_link") 2>conftest.er1
44357   ac_status=$?
44358   grep -v '^ *+' conftest.er1 >conftest.err
44359   rm -f conftest.er1
44360   cat conftest.err >&5
44361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44362   (exit $ac_status); } && {
44363          test -z "$ac_c_werror_flag" ||
44364          test ! -s conftest.err
44365        } && test -s conftest$ac_exeext &&
44366        $as_test_x conftest$ac_exeext; then
44367    echo "*** The test program compiled, but did not run. This usually means"
44368           echo "*** that the run-time linker is not finding SDL or finding the wrong"
44369           echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
44370           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
44371           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
44372           echo "*** is required on your system"
44373           echo "***"
44374           echo "*** If you have an old version installed, it is best to remove it, although"
44375           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
44376 else
44377   echo "$as_me: failed program was:" >&5
44378 sed 's/^/| /' conftest.$ac_ext >&5
44379
44380          echo "*** The test program failed to compile or link. See the file config.log for the"
44381           echo "*** exact error that occured. This usually means SDL was incorrectly installed"
44382           echo "*** or that you have moved SDL since it was installed. In the latter case, you"
44383           echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
44384 fi
44385
44386 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
44387       conftest$ac_exeext conftest.$ac_ext
44388           CFLAGS="$ac_save_CFLAGS"
44389           CXXFLAGS="$ac_save_CXXFLAGS"
44390           LIBS="$ac_save_LIBS"
44391        fi
44392      fi
44393      SDL_CFLAGS=""
44394      SDL_LIBS=""
44395      wxUSE_LIBSDL="no"
44396   fi
44397
44398
44399   rm -f conf.sdltest
44400
44401       if test "$wxUSE_LIBSDL" = "yes" -a "$wxUSE_PLUGINS" = "yes" ; then
44402         WITH_PLUGIN_SDL=1
44403       fi
44404     fi
44405   else
44406         if test "$wxUSE_MGL" = 1; then
44407         { echo "$as_me:$LINENO: WARNING: wxSound not supported in MGL under DOS... disabled" >&5
44408 echo "$as_me: WARNING: wxSound not supported in MGL under DOS... disabled" >&2;}
44409         wxUSE_SOUND="no"
44410     fi
44411   fi
44412 fi
44413
44414 if test "$wxUSE_SOUND" = "yes"; then
44415   cat >>confdefs.h <<\_ACEOF
44416 #define wxUSE_SOUND 1
44417 _ACEOF
44418
44419   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sound"
44420 fi
44421
44422 if test "$WXGTK2" = 1; then
44423
44424
44425 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
44426         if test -n "$ac_tool_prefix"; then
44427   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
44428 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
44429 { echo "$as_me:$LINENO: checking for $ac_word" >&5
44430 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
44431 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
44432   echo $ECHO_N "(cached) $ECHO_C" >&6
44433 else
44434   case $PKG_CONFIG in
44435   [\\/]* | ?:[\\/]*)
44436   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
44437   ;;
44438   *)
44439   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44440 for as_dir in $PATH
44441 do
44442   IFS=$as_save_IFS
44443   test -z "$as_dir" && as_dir=.
44444   for ac_exec_ext in '' $ac_executable_extensions; do
44445   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
44446     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
44447     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44448     break 2
44449   fi
44450 done
44451 done
44452 IFS=$as_save_IFS
44453
44454   ;;
44455 esac
44456 fi
44457 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
44458 if test -n "$PKG_CONFIG"; then
44459   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
44460 echo "${ECHO_T}$PKG_CONFIG" >&6; }
44461 else
44462   { echo "$as_me:$LINENO: result: no" >&5
44463 echo "${ECHO_T}no" >&6; }
44464 fi
44465
44466
44467 fi
44468 if test -z "$ac_cv_path_PKG_CONFIG"; then
44469   ac_pt_PKG_CONFIG=$PKG_CONFIG
44470   # Extract the first word of "pkg-config", so it can be a program name with args.
44471 set dummy pkg-config; ac_word=$2
44472 { echo "$as_me:$LINENO: checking for $ac_word" >&5
44473 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
44474 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
44475   echo $ECHO_N "(cached) $ECHO_C" >&6
44476 else
44477   case $ac_pt_PKG_CONFIG in
44478   [\\/]* | ?:[\\/]*)
44479   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
44480   ;;
44481   *)
44482   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44483 for as_dir in $PATH
44484 do
44485   IFS=$as_save_IFS
44486   test -z "$as_dir" && as_dir=.
44487   for ac_exec_ext in '' $ac_executable_extensions; do
44488   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
44489     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
44490     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44491     break 2
44492   fi
44493 done
44494 done
44495 IFS=$as_save_IFS
44496
44497   ;;
44498 esac
44499 fi
44500 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
44501 if test -n "$ac_pt_PKG_CONFIG"; then
44502   { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
44503 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
44504 else
44505   { echo "$as_me:$LINENO: result: no" >&5
44506 echo "${ECHO_T}no" >&6; }
44507 fi
44508
44509   if test "x$ac_pt_PKG_CONFIG" = x; then
44510     PKG_CONFIG=""
44511   else
44512     case $cross_compiling:$ac_tool_warned in
44513 yes:)
44514 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
44515 whose name does not start with the host triplet.  If you think this
44516 configuration is useful to you, please write to autoconf@gnu.org." >&5
44517 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
44518 whose name does not start with the host triplet.  If you think this
44519 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
44520 ac_tool_warned=yes ;;
44521 esac
44522     PKG_CONFIG=$ac_pt_PKG_CONFIG
44523   fi
44524 else
44525   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
44526 fi
44527
44528 fi
44529 if test -n "$PKG_CONFIG"; then
44530         _pkg_min_version=0.9.0
44531         { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
44532 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
44533         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
44534                 { echo "$as_me:$LINENO: result: yes" >&5
44535 echo "${ECHO_T}yes" >&6; }
44536         else
44537                 { echo "$as_me:$LINENO: result: no" >&5
44538 echo "${ECHO_T}no" >&6; }
44539                 PKG_CONFIG=""
44540         fi
44541
44542 fi
44543
44544     if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
44545
44546         if test "$wxUSE_GTKPRINT" = "yes" ; then
44547
44548
44549 pkg_failed=no
44550 { echo "$as_me:$LINENO: checking for GTKPRINT" >&5
44551 echo $ECHO_N "checking for GTKPRINT... $ECHO_C" >&6; }
44552
44553 if test -n "$PKG_CONFIG"; then
44554     if test -n "$GTKPRINT_CFLAGS"; then
44555         pkg_cv_GTKPRINT_CFLAGS="$GTKPRINT_CFLAGS"
44556     else
44557         if test -n "$PKG_CONFIG" && \
44558     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk+-unix-print-2.0 >= 2.10\"") >&5
44559   ($PKG_CONFIG --exists --print-errors "gtk+-unix-print-2.0 >= 2.10") 2>&5
44560   ac_status=$?
44561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44562   (exit $ac_status); }; then
44563   pkg_cv_GTKPRINT_CFLAGS=`$PKG_CONFIG --cflags "gtk+-unix-print-2.0 >= 2.10" 2>/dev/null`
44564 else
44565   pkg_failed=yes
44566 fi
44567     fi
44568 else
44569         pkg_failed=untried
44570 fi
44571 if test -n "$PKG_CONFIG"; then
44572     if test -n "$GTKPRINT_LIBS"; then
44573         pkg_cv_GTKPRINT_LIBS="$GTKPRINT_LIBS"
44574     else
44575         if test -n "$PKG_CONFIG" && \
44576     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk+-unix-print-2.0 >= 2.10\"") >&5
44577   ($PKG_CONFIG --exists --print-errors "gtk+-unix-print-2.0 >= 2.10") 2>&5
44578   ac_status=$?
44579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44580   (exit $ac_status); }; then
44581   pkg_cv_GTKPRINT_LIBS=`$PKG_CONFIG --libs "gtk+-unix-print-2.0 >= 2.10" 2>/dev/null`
44582 else
44583   pkg_failed=yes
44584 fi
44585     fi
44586 else
44587         pkg_failed=untried
44588 fi
44589
44590
44591
44592 if test $pkg_failed = yes; then
44593
44594 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
44595         _pkg_short_errors_supported=yes
44596 else
44597         _pkg_short_errors_supported=no
44598 fi
44599         if test $_pkg_short_errors_supported = yes; then
44600                 GTKPRINT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gtk+-unix-print-2.0 >= 2.10"`
44601         else
44602                 GTKPRINT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+-unix-print-2.0 >= 2.10"`
44603         fi
44604         # Put the nasty error message in config.log where it belongs
44605         echo "$GTKPRINT_PKG_ERRORS" >&5
44606
44607
44608                         { echo "$as_me:$LINENO: WARNING: GTK printing support not found (GTK+ >= 2.10), library will use GNOME printing support or standard PostScript printing" >&5
44609 echo "$as_me: WARNING: GTK printing support not found (GTK+ >= 2.10), library will use GNOME printing support or standard PostScript printing" >&2;}
44610                         wxUSE_GTKPRINT="no"
44611
44612
44613 elif test $pkg_failed = untried; then
44614
44615                         { echo "$as_me:$LINENO: WARNING: GTK printing support not found (GTK+ >= 2.10), library will use GNOME printing support or standard PostScript printing" >&5
44616 echo "$as_me: WARNING: GTK printing support not found (GTK+ >= 2.10), library will use GNOME printing support or standard PostScript printing" >&2;}
44617                         wxUSE_GTKPRINT="no"
44618
44619
44620 else
44621         GTKPRINT_CFLAGS=$pkg_cv_GTKPRINT_CFLAGS
44622         GTKPRINT_LIBS=$pkg_cv_GTKPRINT_LIBS
44623         { echo "$as_me:$LINENO: result: yes" >&5
44624 echo "${ECHO_T}yes" >&6; }
44625
44626                         CFLAGS="$GTKPRINT_CFLAGS $CFLAGS"
44627                         CXXFLAGS="$GTKPRINT_CFLAGS $CXXFLAGS"
44628                         cat >>confdefs.h <<\_ACEOF
44629 #define wxUSE_GTKPRINT 1
44630 _ACEOF
44631
44632
44633 fi
44634         fi
44635
44636         if test "$wxUSE_LIBGNOMEPRINT" = "yes" ; then
44637
44638
44639 pkg_failed=no
44640 { echo "$as_me:$LINENO: checking for LIBGNOMEPRINTUI" >&5
44641 echo $ECHO_N "checking for LIBGNOMEPRINTUI... $ECHO_C" >&6; }
44642
44643 if test -n "$PKG_CONFIG"; then
44644     if test -n "$LIBGNOMEPRINTUI_CFLAGS"; then
44645         pkg_cv_LIBGNOMEPRINTUI_CFLAGS="$LIBGNOMEPRINTUI_CFLAGS"
44646     else
44647         if test -n "$PKG_CONFIG" && \
44648     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgnomeprintui-2.2 >= 2.8\"") >&5
44649   ($PKG_CONFIG --exists --print-errors "libgnomeprintui-2.2 >= 2.8") 2>&5
44650   ac_status=$?
44651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44652   (exit $ac_status); }; then
44653   pkg_cv_LIBGNOMEPRINTUI_CFLAGS=`$PKG_CONFIG --cflags "libgnomeprintui-2.2 >= 2.8" 2>/dev/null`
44654 else
44655   pkg_failed=yes
44656 fi
44657     fi
44658 else
44659         pkg_failed=untried
44660 fi
44661 if test -n "$PKG_CONFIG"; then
44662     if test -n "$LIBGNOMEPRINTUI_LIBS"; then
44663         pkg_cv_LIBGNOMEPRINTUI_LIBS="$LIBGNOMEPRINTUI_LIBS"
44664     else
44665         if test -n "$PKG_CONFIG" && \
44666     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgnomeprintui-2.2 >= 2.8\"") >&5
44667   ($PKG_CONFIG --exists --print-errors "libgnomeprintui-2.2 >= 2.8") 2>&5
44668   ac_status=$?
44669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44670   (exit $ac_status); }; then
44671   pkg_cv_LIBGNOMEPRINTUI_LIBS=`$PKG_CONFIG --libs "libgnomeprintui-2.2 >= 2.8" 2>/dev/null`
44672 else
44673   pkg_failed=yes
44674 fi
44675     fi
44676 else
44677         pkg_failed=untried
44678 fi
44679
44680
44681
44682 if test $pkg_failed = yes; then
44683
44684 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
44685         _pkg_short_errors_supported=yes
44686 else
44687         _pkg_short_errors_supported=no
44688 fi
44689         if test $_pkg_short_errors_supported = yes; then
44690                 LIBGNOMEPRINTUI_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libgnomeprintui-2.2 >= 2.8"`
44691         else
44692                 LIBGNOMEPRINTUI_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libgnomeprintui-2.2 >= 2.8"`
44693         fi
44694         # Put the nasty error message in config.log where it belongs
44695         echo "$LIBGNOMEPRINTUI_PKG_ERRORS" >&5
44696
44697
44698                         { echo "$as_me:$LINENO: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&5
44699 echo "$as_me: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&2;}
44700                         wxUSE_LIBGNOMEPRINT="no"
44701
44702
44703 elif test $pkg_failed = untried; then
44704
44705                         { echo "$as_me:$LINENO: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&5
44706 echo "$as_me: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&2;}
44707                         wxUSE_LIBGNOMEPRINT="no"
44708
44709
44710 else
44711         LIBGNOMEPRINTUI_CFLAGS=$pkg_cv_LIBGNOMEPRINTUI_CFLAGS
44712         LIBGNOMEPRINTUI_LIBS=$pkg_cv_LIBGNOMEPRINTUI_LIBS
44713         { echo "$as_me:$LINENO: result: yes" >&5
44714 echo "${ECHO_T}yes" >&6; }
44715
44716                         CFLAGS="$LIBGNOMEPRINTUI_CFLAGS $CFLAGS"
44717                         CXXFLAGS="$LIBGNOMEPRINTUI_CFLAGS $CXXFLAGS"
44718                         cat >>confdefs.h <<\_ACEOF
44719 #define wxUSE_LIBGNOMEPRINT 1
44720 _ACEOF
44721
44722
44723 fi
44724         fi
44725     fi
44726
44727     if test "$wxUSE_MIMETYPE" = "yes" ; then
44728         if test "$wxUSE_LIBGNOMEVFS" = "yes" ; then
44729
44730
44731 pkg_failed=no
44732 { echo "$as_me:$LINENO: checking for GNOMEVFS" >&5
44733 echo $ECHO_N "checking for GNOMEVFS... $ECHO_C" >&6; }
44734
44735 if test -n "$PKG_CONFIG"; then
44736     if test -n "$GNOMEVFS_CFLAGS"; then
44737         pkg_cv_GNOMEVFS_CFLAGS="$GNOMEVFS_CFLAGS"
44738     else
44739         if test -n "$PKG_CONFIG" && \
44740     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gnome-vfs-2.0 >= 2.0\"") >&5
44741   ($PKG_CONFIG --exists --print-errors "gnome-vfs-2.0 >= 2.0") 2>&5
44742   ac_status=$?
44743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44744   (exit $ac_status); }; then
44745   pkg_cv_GNOMEVFS_CFLAGS=`$PKG_CONFIG --cflags "gnome-vfs-2.0 >= 2.0" 2>/dev/null`
44746 else
44747   pkg_failed=yes
44748 fi
44749     fi
44750 else
44751         pkg_failed=untried
44752 fi
44753 if test -n "$PKG_CONFIG"; then
44754     if test -n "$GNOMEVFS_LIBS"; then
44755         pkg_cv_GNOMEVFS_LIBS="$GNOMEVFS_LIBS"
44756     else
44757         if test -n "$PKG_CONFIG" && \
44758     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gnome-vfs-2.0 >= 2.0\"") >&5
44759   ($PKG_CONFIG --exists --print-errors "gnome-vfs-2.0 >= 2.0") 2>&5
44760   ac_status=$?
44761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44762   (exit $ac_status); }; then
44763   pkg_cv_GNOMEVFS_LIBS=`$PKG_CONFIG --libs "gnome-vfs-2.0 >= 2.0" 2>/dev/null`
44764 else
44765   pkg_failed=yes
44766 fi
44767     fi
44768 else
44769         pkg_failed=untried
44770 fi
44771
44772
44773
44774 if test $pkg_failed = yes; then
44775
44776 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
44777         _pkg_short_errors_supported=yes
44778 else
44779         _pkg_short_errors_supported=no
44780 fi
44781         if test $_pkg_short_errors_supported = yes; then
44782                 GNOMEVFS_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gnome-vfs-2.0 >= 2.0"`
44783         else
44784                 GNOMEVFS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gnome-vfs-2.0 >= 2.0"`
44785         fi
44786         # Put the nasty error message in config.log where it belongs
44787         echo "$GNOMEVFS_PKG_ERRORS" >&5
44788
44789
44790                         { echo "$as_me:$LINENO: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&5
44791 echo "$as_me: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&2;}
44792                         wxUSE_LIBGNOMEVFS="no"
44793
44794
44795 elif test $pkg_failed = untried; then
44796
44797                         { echo "$as_me:$LINENO: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&5
44798 echo "$as_me: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&2;}
44799                         wxUSE_LIBGNOMEVFS="no"
44800
44801
44802 else
44803         GNOMEVFS_CFLAGS=$pkg_cv_GNOMEVFS_CFLAGS
44804         GNOMEVFS_LIBS=$pkg_cv_GNOMEVFS_LIBS
44805         { echo "$as_me:$LINENO: result: yes" >&5
44806 echo "${ECHO_T}yes" >&6; }
44807
44808                         CFLAGS="$GNOMEVFS_CFLAGS $CFLAGS"
44809                         CXXFLAGS="$GNOMEVFS_CFLAGS $CXXFLAGS"
44810                         cat >>confdefs.h <<\_ACEOF
44811 #define wxUSE_LIBGNOMEVFS 1
44812 _ACEOF
44813
44814
44815 fi
44816         fi
44817     fi
44818
44819     if test "$wxUSE_LIBHILDON" = "yes" ; then
44820
44821 pkg_failed=no
44822 { echo "$as_me:$LINENO: checking for HILDON" >&5
44823 echo $ECHO_N "checking for HILDON... $ECHO_C" >&6; }
44824
44825 if test -n "$PKG_CONFIG"; then
44826     if test -n "$HILDON_CFLAGS"; then
44827         pkg_cv_HILDON_CFLAGS="$HILDON_CFLAGS"
44828     else
44829         if test -n "$PKG_CONFIG" && \
44830     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"hildon-lgpl >= 0.9\"") >&5
44831   ($PKG_CONFIG --exists --print-errors "hildon-lgpl >= 0.9") 2>&5
44832   ac_status=$?
44833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44834   (exit $ac_status); }; then
44835   pkg_cv_HILDON_CFLAGS=`$PKG_CONFIG --cflags "hildon-lgpl >= 0.9" 2>/dev/null`
44836 else
44837   pkg_failed=yes
44838 fi
44839     fi
44840 else
44841         pkg_failed=untried
44842 fi
44843 if test -n "$PKG_CONFIG"; then
44844     if test -n "$HILDON_LIBS"; then
44845         pkg_cv_HILDON_LIBS="$HILDON_LIBS"
44846     else
44847         if test -n "$PKG_CONFIG" && \
44848     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"hildon-lgpl >= 0.9\"") >&5
44849   ($PKG_CONFIG --exists --print-errors "hildon-lgpl >= 0.9") 2>&5
44850   ac_status=$?
44851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44852   (exit $ac_status); }; then
44853   pkg_cv_HILDON_LIBS=`$PKG_CONFIG --libs "hildon-lgpl >= 0.9" 2>/dev/null`
44854 else
44855   pkg_failed=yes
44856 fi
44857     fi
44858 else
44859         pkg_failed=untried
44860 fi
44861
44862
44863
44864 if test $pkg_failed = yes; then
44865
44866 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
44867         _pkg_short_errors_supported=yes
44868 else
44869         _pkg_short_errors_supported=no
44870 fi
44871         if test $_pkg_short_errors_supported = yes; then
44872                 HILDON_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "hildon-lgpl >= 0.9"`
44873         else
44874                 HILDON_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "hildon-lgpl >= 0.9"`
44875         fi
44876         # Put the nasty error message in config.log where it belongs
44877         echo "$HILDON_PKG_ERRORS" >&5
44878
44879
44880                 { echo "$as_me:$LINENO: WARNING: libhildon_lgpl not found" >&5
44881 echo "$as_me: WARNING: libhildon_lgpl not found" >&2;}
44882                         wxUSE_LIBHILDON="no"
44883                         ac_hildon_lgpl=0
44884
44885
44886 elif test $pkg_failed = untried; then
44887
44888                 { echo "$as_me:$LINENO: WARNING: libhildon_lgpl not found" >&5
44889 echo "$as_me: WARNING: libhildon_lgpl not found" >&2;}
44890                         wxUSE_LIBHILDON="no"
44891                         ac_hildon_lgpl=0
44892
44893
44894 else
44895         HILDON_CFLAGS=$pkg_cv_HILDON_CFLAGS
44896         HILDON_LIBS=$pkg_cv_HILDON_LIBS
44897         { echo "$as_me:$LINENO: result: yes" >&5
44898 echo "${ECHO_T}yes" >&6; }
44899
44900                 EXTRALIBS_HILDON="$HILDON_LIBS"
44901                 CFLAGS="$CFLAGS $HILDON_CFLAGS"
44902                 CXXFLAGS="$CXXFLAGS $HILDON_CFLAGS"
44903                 cat >>confdefs.h <<\_ACEOF
44904 #define wxUSE_LIBHILDON 1
44905 _ACEOF
44906
44907                 ac_hildon_lgpl=1
44908
44909 fi
44910
44911         if test "$ac_hildon_lgpl" = 0 ; then
44912
44913 pkg_failed=no
44914 { echo "$as_me:$LINENO: checking for HILDON2" >&5
44915 echo $ECHO_N "checking for HILDON2... $ECHO_C" >&6; }
44916
44917 if test -n "$PKG_CONFIG"; then
44918     if test -n "$HILDON2_CFLAGS"; then
44919         pkg_cv_HILDON2_CFLAGS="$HILDON2_CFLAGS"
44920     else
44921         if test -n "$PKG_CONFIG" && \
44922     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"hildon-1 >= 1.99\"") >&5
44923   ($PKG_CONFIG --exists --print-errors "hildon-1 >= 1.99") 2>&5
44924   ac_status=$?
44925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44926   (exit $ac_status); }; then
44927   pkg_cv_HILDON2_CFLAGS=`$PKG_CONFIG --cflags "hildon-1 >= 1.99" 2>/dev/null`
44928 else
44929   pkg_failed=yes
44930 fi
44931     fi
44932 else
44933         pkg_failed=untried
44934 fi
44935 if test -n "$PKG_CONFIG"; then
44936     if test -n "$HILDON2_LIBS"; then
44937         pkg_cv_HILDON2_LIBS="$HILDON2_LIBS"
44938     else
44939         if test -n "$PKG_CONFIG" && \
44940     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"hildon-1 >= 1.99\"") >&5
44941   ($PKG_CONFIG --exists --print-errors "hildon-1 >= 1.99") 2>&5
44942   ac_status=$?
44943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44944   (exit $ac_status); }; then
44945   pkg_cv_HILDON2_LIBS=`$PKG_CONFIG --libs "hildon-1 >= 1.99" 2>/dev/null`
44946 else
44947   pkg_failed=yes
44948 fi
44949     fi
44950 else
44951         pkg_failed=untried
44952 fi
44953
44954
44955
44956 if test $pkg_failed = yes; then
44957
44958 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
44959         _pkg_short_errors_supported=yes
44960 else
44961         _pkg_short_errors_supported=no
44962 fi
44963         if test $_pkg_short_errors_supported = yes; then
44964                 HILDON2_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "hildon-1 >= 1.99"`
44965         else
44966                 HILDON2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "hildon-1 >= 1.99"`
44967         fi
44968         # Put the nasty error message in config.log where it belongs
44969         echo "$HILDON2_PKG_ERRORS" >&5
44970
44971
44972                     { echo "$as_me:$LINENO: WARNING: libhildon_1 not found" >&5
44973 echo "$as_me: WARNING: libhildon_1 not found" >&2;}
44974                             wxUSE_LIBHILDON2="no"
44975
44976
44977 elif test $pkg_failed = untried; then
44978
44979                     { echo "$as_me:$LINENO: WARNING: libhildon_1 not found" >&5
44980 echo "$as_me: WARNING: libhildon_1 not found" >&2;}
44981                             wxUSE_LIBHILDON2="no"
44982
44983
44984 else
44985         HILDON2_CFLAGS=$pkg_cv_HILDON2_CFLAGS
44986         HILDON2_LIBS=$pkg_cv_HILDON2_LIBS
44987         { echo "$as_me:$LINENO: result: yes" >&5
44988 echo "${ECHO_T}yes" >&6; }
44989
44990                     EXTRALIBS_HILDON="$HILDON2_LIBS"
44991                     CFLAGS="$CFLAGS $HILDON2_CFLAGS"
44992                     CXXFLAGS="$CXXFLAGS $HILDON2_CFLAGS"
44993                     cat >>confdefs.h <<\_ACEOF
44994 #define wxUSE_LIBHILDON2 1
44995 _ACEOF
44996
44997
44998 fi
44999         fi
45000     fi
45001 fi
45002
45003 if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
45004   cat >>confdefs.h <<\_ACEOF
45005 #define wxUSE_CMDLINE_PARSER 1
45006 _ACEOF
45007
45008 fi
45009
45010 if test "$wxUSE_STOPWATCH" = "yes"; then
45011   cat >>confdefs.h <<\_ACEOF
45012 #define wxUSE_STOPWATCH 1
45013 _ACEOF
45014
45015 fi
45016
45017 if test "$wxUSE_DATETIME" = "yes"; then
45018   cat >>confdefs.h <<\_ACEOF
45019 #define wxUSE_DATETIME 1
45020 _ACEOF
45021
45022 fi
45023
45024 if test "$wxUSE_FILE" = "yes"; then
45025   cat >>confdefs.h <<\_ACEOF
45026 #define wxUSE_FILE 1
45027 _ACEOF
45028
45029 fi
45030
45031 if test "$wxUSE_FFILE" = "yes"; then
45032   cat >>confdefs.h <<\_ACEOF
45033 #define wxUSE_FFILE 1
45034 _ACEOF
45035
45036 fi
45037
45038 if test "$wxUSE_ARCHIVE_STREAMS" = "yes"; then
45039   if test "$wxUSE_STREAMS" != yes; then
45040     { echo "$as_me:$LINENO: WARNING: wxArchive requires wxStreams... disabled" >&5
45041 echo "$as_me: WARNING: wxArchive requires wxStreams... disabled" >&2;}
45042     wxUSE_ARCHIVE_STREAMS=no
45043   else
45044     cat >>confdefs.h <<\_ACEOF
45045 #define wxUSE_ARCHIVE_STREAMS 1
45046 _ACEOF
45047
45048   fi
45049 fi
45050
45051 if test "$wxUSE_ZIPSTREAM" = "yes"; then
45052   if test "$wxUSE_ARCHIVE_STREAMS" != "yes"; then
45053     { echo "$as_me:$LINENO: WARNING: wxZip requires wxArchive... disabled" >&5
45054 echo "$as_me: WARNING: wxZip requires wxArchive... disabled" >&2;}
45055   elif test "$wxUSE_ZLIB" = "no"; then
45056     { echo "$as_me:$LINENO: WARNING: wxZip requires wxZlib... disabled" >&5
45057 echo "$as_me: WARNING: wxZip requires wxZlib... disabled" >&2;}
45058   else
45059     cat >>confdefs.h <<\_ACEOF
45060 #define wxUSE_ZIPSTREAM 1
45061 _ACEOF
45062
45063   fi
45064 fi
45065
45066 if test "$wxUSE_TARSTREAM" = "yes"; then
45067   if test "$wxUSE_ARCHIVE_STREAMS" != "yes"; then
45068     { echo "$as_me:$LINENO: WARNING: wxTar requires wxArchive... disabled" >&5
45069 echo "$as_me: WARNING: wxTar requires wxArchive... disabled" >&2;}
45070   else
45071     cat >>confdefs.h <<\_ACEOF
45072 #define wxUSE_TARSTREAM 1
45073 _ACEOF
45074
45075   fi
45076 fi
45077
45078 if test "$wxUSE_FILE_HISTORY" = "yes"; then
45079   cat >>confdefs.h <<\_ACEOF
45080 #define wxUSE_FILE_HISTORY 1
45081 _ACEOF
45082
45083 fi
45084
45085 if test "$wxUSE_FILESYSTEM" = "yes"; then
45086   if test "$wxUSE_STREAMS" != yes -o \( "$wxUSE_FILE" != yes -a "$wxUSE_FFILE" != yes \); then
45087     { echo "$as_me:$LINENO: WARNING: wxFileSystem requires wxStreams and wxFile or wxFFile... disabled" >&5
45088 echo "$as_me: WARNING: wxFileSystem requires wxStreams and wxFile or wxFFile... disabled" >&2;}
45089     wxUSE_FILESYSTEM=no
45090   else
45091     cat >>confdefs.h <<\_ACEOF
45092 #define wxUSE_FILESYSTEM 1
45093 _ACEOF
45094
45095   fi
45096 fi
45097
45098 if test "$wxUSE_FS_ARCHIVE" = "yes"; then
45099   if test "$wxUSE_FILESYSTEM" != yes -o "$wxUSE_ARCHIVE_STREAMS" != yes; then
45100     { echo "$as_me:$LINENO: WARNING: wxArchiveFSHandler requires wxArchive and wxFileSystem... disabled" >&5
45101 echo "$as_me: WARNING: wxArchiveFSHandler requires wxArchive and wxFileSystem... disabled" >&2;}
45102   else
45103     cat >>confdefs.h <<\_ACEOF
45104 #define wxUSE_FS_ARCHIVE 1
45105 _ACEOF
45106
45107   fi
45108 fi
45109
45110 if test "$wxUSE_FS_ZIP" = "yes"; then
45111   if test "$wxUSE_FS_ARCHIVE" != yes; then
45112     { echo "$as_me:$LINENO: WARNING: wxZipFSHandler requires wxArchiveFSHandler... disabled" >&5
45113 echo "$as_me: WARNING: wxZipFSHandler requires wxArchiveFSHandler... disabled" >&2;}
45114   else
45115     cat >>confdefs.h <<\_ACEOF
45116 #define wxUSE_FS_ZIP 1
45117 _ACEOF
45118
45119   fi
45120 fi
45121
45122 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
45123   if test "$USE_UNIX" != 1; then
45124     { echo "$as_me:$LINENO: WARNING: Catching fatal exceptions not currently supported on this system, wxApp::OnFatalException will not be called" >&5
45125 echo "$as_me: WARNING: Catching fatal exceptions not currently supported on this system, wxApp::OnFatalException will not be called" >&2;}
45126     wxUSE_ON_FATAL_EXCEPTION=no
45127   else
45128     cat >>confdefs.h <<\_ACEOF
45129 #define wxUSE_ON_FATAL_EXCEPTION 1
45130 _ACEOF
45131
45132   fi
45133 fi
45134
45135 if test "$wxUSE_STACKWALKER" = "yes"; then
45136     cat >>confdefs.h <<\_ACEOF
45137 #define wxUSE_STACKWALKER 1
45138 _ACEOF
45139
45140 fi
45141
45142 if test "$wxUSE_DEBUGREPORT" = "yes"; then
45143     if test "$USE_UNIX" != 1 -a "$USE_WIN32" != 1; then
45144         { echo "$as_me:$LINENO: WARNING: Creating debug reports not currently supported on this system, disabled" >&5
45145 echo "$as_me: WARNING: Creating debug reports not currently supported on this system, disabled" >&2;}
45146         wxUSE_DEBUGREPORT=no
45147     else
45148         cat >>confdefs.h <<\_ACEOF
45149 #define wxUSE_DEBUGREPORT 1
45150 _ACEOF
45151
45152         if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
45153             SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS debugrpt"
45154         fi
45155     fi
45156 fi
45157
45158 if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
45159   cat >>confdefs.h <<\_ACEOF
45160 #define wxUSE_SNGLINST_CHECKER 1
45161 _ACEOF
45162
45163 fi
45164
45165 if test "$wxUSE_BUSYINFO" = "yes"; then
45166   cat >>confdefs.h <<\_ACEOF
45167 #define wxUSE_BUSYINFO 1
45168 _ACEOF
45169
45170 fi
45171
45172 if test "$wxUSE_STD_CONTAINERS" = "yes"; then
45173   cat >>confdefs.h <<\_ACEOF
45174 #define wxUSE_STD_CONTAINERS 1
45175 _ACEOF
45176
45177 fi
45178
45179 if test "$wxUSE_STD_IOSTREAM" = "yes"; then
45180   cat >>confdefs.h <<\_ACEOF
45181 #define wxUSE_STD_IOSTREAM 1
45182 _ACEOF
45183
45184 fi
45185
45186 if test "$wxUSE_STD_STRING" = "yes"; then
45187   cat >>confdefs.h <<\_ACEOF
45188 #define wxUSE_STD_STRING 1
45189 _ACEOF
45190
45191 fi
45192
45193 if test "$wxUSE_STD_STRING_CONV_IN_WXSTRING" = "yes"; then
45194   cat >>confdefs.h <<\_ACEOF
45195 #define wxUSE_STD_STRING_CONV_IN_WXSTRING 1
45196 _ACEOF
45197
45198 fi
45199
45200 if test "$wxUSE_STDPATHS" = "yes"; then
45201   cat >>confdefs.h <<\_ACEOF
45202 #define wxUSE_STDPATHS 1
45203 _ACEOF
45204
45205 fi
45206
45207 if test "$wxUSE_TEXTBUFFER" = "yes"; then
45208     cat >>confdefs.h <<\_ACEOF
45209 #define wxUSE_TEXTBUFFER 1
45210 _ACEOF
45211
45212 fi
45213
45214 if test "$wxUSE_TEXTFILE" = "yes"; then
45215   if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then
45216     { echo "$as_me:$LINENO: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&5
45217 echo "$as_me: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&2;}
45218   else
45219     cat >>confdefs.h <<\_ACEOF
45220 #define wxUSE_TEXTFILE 1
45221 _ACEOF
45222
45223   fi
45224 fi
45225
45226 if test "$wxUSE_CONFIG" = "yes" ; then
45227   if test "$wxUSE_TEXTFILE" != "yes"; then
45228     { echo "$as_me:$LINENO: WARNING: wxConfig requires wxTextFile... disabled" >&5
45229 echo "$as_me: WARNING: wxConfig requires wxTextFile... disabled" >&2;}
45230   else
45231     cat >>confdefs.h <<\_ACEOF
45232 #define wxUSE_CONFIG 1
45233 _ACEOF
45234
45235     cat >>confdefs.h <<\_ACEOF
45236 #define wxUSE_CONFIG_NATIVE 1
45237 _ACEOF
45238
45239     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
45240   fi
45241 fi
45242
45243 if test "$wxUSE_INTL" = "yes" ; then
45244   if test "$wxUSE_FILE" != "yes"; then
45245     { echo "$as_me:$LINENO: WARNING: I18n code requires wxFile... disabled" >&5
45246 echo "$as_me: WARNING: I18n code requires wxFile... disabled" >&2;}
45247   else
45248     cat >>confdefs.h <<\_ACEOF
45249 #define wxUSE_INTL 1
45250 _ACEOF
45251
45252     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
45253     GUIDIST="$GUIDIST INTL_DIST"
45254   fi
45255 fi
45256
45257 if test "$wxUSE_XLOCALE" = "yes" ; then
45258     cat >>confdefs.h <<\_ACEOF
45259 #define wxUSE_XLOCALE 1
45260 _ACEOF
45261
45262     { echo "$as_me:$LINENO: checking for locale_t" >&5
45263 echo $ECHO_N "checking for locale_t... $ECHO_C" >&6; }
45264 if test "${ac_cv_type_locale_t+set}" = set; then
45265   echo $ECHO_N "(cached) $ECHO_C" >&6
45266 else
45267   cat >conftest.$ac_ext <<_ACEOF
45268 /* confdefs.h.  */
45269 _ACEOF
45270 cat confdefs.h >>conftest.$ac_ext
45271 cat >>conftest.$ac_ext <<_ACEOF
45272 /* end confdefs.h.  */
45273 #include <xlocale.h>
45274                     #include <locale.h>
45275
45276 typedef locale_t ac__type_new_;
45277 int
45278 main ()
45279 {
45280 if ((ac__type_new_ *) 0)
45281   return 0;
45282 if (sizeof (ac__type_new_))
45283   return 0;
45284   ;
45285   return 0;
45286 }
45287 _ACEOF
45288 rm -f conftest.$ac_objext
45289 if { (ac_try="$ac_compile"
45290 case "(($ac_try" in
45291   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45292   *) ac_try_echo=$ac_try;;
45293 esac
45294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45295   (eval "$ac_compile") 2>conftest.er1
45296   ac_status=$?
45297   grep -v '^ *+' conftest.er1 >conftest.err
45298   rm -f conftest.er1
45299   cat conftest.err >&5
45300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45301   (exit $ac_status); } && {
45302          test -z "$ac_c_werror_flag" ||
45303          test ! -s conftest.err
45304        } && test -s conftest.$ac_objext; then
45305   ac_cv_type_locale_t=yes
45306 else
45307   echo "$as_me: failed program was:" >&5
45308 sed 's/^/| /' conftest.$ac_ext >&5
45309
45310         ac_cv_type_locale_t=no
45311 fi
45312
45313 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45314 fi
45315 { echo "$as_me:$LINENO: result: $ac_cv_type_locale_t" >&5
45316 echo "${ECHO_T}$ac_cv_type_locale_t" >&6; }
45317 if test $ac_cv_type_locale_t = yes; then
45318
45319 cat >>confdefs.h <<_ACEOF
45320 #define HAVE_LOCALE_T 1
45321 _ACEOF
45322
45323
45324 fi
45325
45326 fi
45327
45328 if test "$wxUSE_LOG" = "yes"; then
45329   cat >>confdefs.h <<\_ACEOF
45330 #define wxUSE_LOG 1
45331 _ACEOF
45332
45333
45334     if test "$wxUSE_LOGGUI" = "yes"; then
45335       cat >>confdefs.h <<\_ACEOF
45336 #define wxUSE_LOGGUI 1
45337 _ACEOF
45338
45339     fi
45340
45341     if test "$wxUSE_LOGWINDOW" = "yes"; then
45342       cat >>confdefs.h <<\_ACEOF
45343 #define wxUSE_LOGWINDOW 1
45344 _ACEOF
45345
45346     fi
45347
45348     if test "$wxUSE_LOGDIALOG" = "yes"; then
45349       cat >>confdefs.h <<\_ACEOF
45350 #define wxUSE_LOG_DIALOG 1
45351 _ACEOF
45352
45353     fi
45354
45355         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS keyboard"
45356 fi
45357
45358 if test "$wxUSE_LONGLONG" = "yes"; then
45359   cat >>confdefs.h <<\_ACEOF
45360 #define wxUSE_LONGLONG 1
45361 _ACEOF
45362
45363 fi
45364
45365 if test "$wxUSE_GEOMETRY" = "yes"; then
45366   cat >>confdefs.h <<\_ACEOF
45367 #define wxUSE_GEOMETRY 1
45368 _ACEOF
45369
45370 fi
45371
45372 if test "$wxUSE_BASE64" = "yes"; then
45373   cat >>confdefs.h <<\_ACEOF
45374 #define wxUSE_BASE64 1
45375 _ACEOF
45376
45377 fi
45378
45379 if test "$wxUSE_STREAMS" = "yes" ; then
45380   cat >>confdefs.h <<\_ACEOF
45381 #define wxUSE_STREAMS 1
45382 _ACEOF
45383
45384 fi
45385
45386 if test "$wxUSE_PRINTF_POS_PARAMS" = "yes"; then
45387   cat >>confdefs.h <<\_ACEOF
45388 #define wxUSE_PRINTF_POS_PARAMS 1
45389 _ACEOF
45390
45391 fi
45392
45393 if test "$wxUSE_OBJC_UNIQUIFYING" = "yes"; then
45394   cat >>confdefs.h <<\_ACEOF
45395 #define wxUSE_OBJC_UNIQUIFYING 1
45396 _ACEOF
45397
45398 fi
45399
45400
45401 if test "$wxUSE_CONSOLE_EVENTLOOP" = "yes"; then
45402     cat >>confdefs.h <<\_ACEOF
45403 #define wxUSE_CONSOLE_EVENTLOOP 1
45404 _ACEOF
45405
45406
45407     if test "$wxUSE_UNIX" = "yes"; then
45408         if test "$wxUSE_SELECT_DISPATCHER" = "yes"; then
45409             cat >>confdefs.h <<\_ACEOF
45410 #define wxUSE_SELECT_DISPATCHER 1
45411 _ACEOF
45412
45413         fi
45414
45415         if test "$wxUSE_EPOLL_DISPATCHER" = "yes"; then
45416
45417 for ac_header in sys/epoll.h
45418 do
45419 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
45420 { echo "$as_me:$LINENO: checking for $ac_header" >&5
45421 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
45422 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
45423   echo $ECHO_N "(cached) $ECHO_C" >&6
45424 else
45425   cat >conftest.$ac_ext <<_ACEOF
45426 /* confdefs.h.  */
45427 _ACEOF
45428 cat confdefs.h >>conftest.$ac_ext
45429 cat >>conftest.$ac_ext <<_ACEOF
45430 /* end confdefs.h.  */
45431 $ac_includes_default
45432
45433 #include <$ac_header>
45434 _ACEOF
45435 rm -f conftest.$ac_objext
45436 if { (ac_try="$ac_compile"
45437 case "(($ac_try" in
45438   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45439   *) ac_try_echo=$ac_try;;
45440 esac
45441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45442   (eval "$ac_compile") 2>conftest.er1
45443   ac_status=$?
45444   grep -v '^ *+' conftest.er1 >conftest.err
45445   rm -f conftest.er1
45446   cat conftest.err >&5
45447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45448   (exit $ac_status); } && {
45449          test -z "$ac_c_werror_flag" ||
45450          test ! -s conftest.err
45451        } && test -s conftest.$ac_objext; then
45452   eval "$as_ac_Header=yes"
45453 else
45454   echo "$as_me: failed program was:" >&5
45455 sed 's/^/| /' conftest.$ac_ext >&5
45456
45457         eval "$as_ac_Header=no"
45458 fi
45459
45460 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45461 fi
45462 ac_res=`eval echo '${'$as_ac_Header'}'`
45463                { echo "$as_me:$LINENO: result: $ac_res" >&5
45464 echo "${ECHO_T}$ac_res" >&6; }
45465 if test `eval echo '${'$as_ac_Header'}'` = yes; then
45466   cat >>confdefs.h <<_ACEOF
45467 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
45468 _ACEOF
45469
45470 fi
45471
45472 done
45473
45474             if test "$ac_cv_header_sys_epoll_h" = "yes"; then
45475                 cat >>confdefs.h <<\_ACEOF
45476 #define wxUSE_EPOLL_DISPATCHER 1
45477 _ACEOF
45478
45479             else
45480                 { echo "$as_me:$LINENO: WARNING: sys/epoll.h not available, wxEpollDispatcher disabled" >&5
45481 echo "$as_me: WARNING: sys/epoll.h not available, wxEpollDispatcher disabled" >&2;}
45482             fi
45483         fi
45484     fi
45485 fi
45486
45487
45488
45489
45490 for ac_func in gettimeofday ftime
45491 do
45492 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
45493 { echo "$as_me:$LINENO: checking for $ac_func" >&5
45494 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
45495 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
45496   echo $ECHO_N "(cached) $ECHO_C" >&6
45497 else
45498   cat >conftest.$ac_ext <<_ACEOF
45499 /* confdefs.h.  */
45500 _ACEOF
45501 cat confdefs.h >>conftest.$ac_ext
45502 cat >>conftest.$ac_ext <<_ACEOF
45503 /* end confdefs.h.  */
45504 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
45505    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
45506 #define $ac_func innocuous_$ac_func
45507
45508 /* System header to define __stub macros and hopefully few prototypes,
45509     which can conflict with char $ac_func (); below.
45510     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45511     <limits.h> exists even on freestanding compilers.  */
45512
45513 #ifdef __STDC__
45514 # include <limits.h>
45515 #else
45516 # include <assert.h>
45517 #endif
45518
45519 #undef $ac_func
45520
45521 /* Override any GCC internal prototype to avoid an error.
45522    Use char because int might match the return type of a GCC
45523    builtin and then its argument prototype would still apply.  */
45524 #ifdef __cplusplus
45525 extern "C"
45526 #endif
45527 char $ac_func ();
45528 /* The GNU C library defines this for functions which it implements
45529     to always fail with ENOSYS.  Some functions are actually named
45530     something starting with __ and the normal name is an alias.  */
45531 #if defined __stub_$ac_func || defined __stub___$ac_func
45532 choke me
45533 #endif
45534
45535 int
45536 main ()
45537 {
45538 return $ac_func ();
45539   ;
45540   return 0;
45541 }
45542 _ACEOF
45543 rm -f conftest.$ac_objext conftest$ac_exeext
45544 if { (ac_try="$ac_link"
45545 case "(($ac_try" in
45546   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45547   *) ac_try_echo=$ac_try;;
45548 esac
45549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45550   (eval "$ac_link") 2>conftest.er1
45551   ac_status=$?
45552   grep -v '^ *+' conftest.er1 >conftest.err
45553   rm -f conftest.er1
45554   cat conftest.err >&5
45555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45556   (exit $ac_status); } && {
45557          test -z "$ac_c_werror_flag" ||
45558          test ! -s conftest.err
45559        } && test -s conftest$ac_exeext &&
45560        $as_test_x conftest$ac_exeext; then
45561   eval "$as_ac_var=yes"
45562 else
45563   echo "$as_me: failed program was:" >&5
45564 sed 's/^/| /' conftest.$ac_ext >&5
45565
45566         eval "$as_ac_var=no"
45567 fi
45568
45569 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
45570       conftest$ac_exeext conftest.$ac_ext
45571 fi
45572 ac_res=`eval echo '${'$as_ac_var'}'`
45573                { echo "$as_me:$LINENO: result: $ac_res" >&5
45574 echo "${ECHO_T}$ac_res" >&6; }
45575 if test `eval echo '${'$as_ac_var'}'` = yes; then
45576   cat >>confdefs.h <<_ACEOF
45577 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
45578 _ACEOF
45579  break
45580 fi
45581 done
45582
45583
45584 if test "$ac_cv_func_gettimeofday" = "yes"; then
45585     { echo "$as_me:$LINENO: checking whether gettimeofday takes two arguments" >&5
45586 echo $ECHO_N "checking whether gettimeofday takes two arguments... $ECHO_C" >&6; }
45587 if test "${wx_cv_func_gettimeofday_has_2_args+set}" = set; then
45588   echo $ECHO_N "(cached) $ECHO_C" >&6
45589 else
45590
45591                 cat >conftest.$ac_ext <<_ACEOF
45592 /* confdefs.h.  */
45593 _ACEOF
45594 cat confdefs.h >>conftest.$ac_ext
45595 cat >>conftest.$ac_ext <<_ACEOF
45596 /* end confdefs.h.  */
45597
45598                 #include <sys/time.h>
45599                 #include <unistd.h>
45600
45601 int
45602 main ()
45603 {
45604
45605                 struct timeval tv;
45606                 gettimeofday(&tv, NULL);
45607
45608   ;
45609   return 0;
45610 }
45611 _ACEOF
45612 rm -f conftest.$ac_objext
45613 if { (ac_try="$ac_compile"
45614 case "(($ac_try" in
45615   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45616   *) ac_try_echo=$ac_try;;
45617 esac
45618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45619   (eval "$ac_compile") 2>conftest.er1
45620   ac_status=$?
45621   grep -v '^ *+' conftest.er1 >conftest.err
45622   rm -f conftest.er1
45623   cat conftest.err >&5
45624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45625   (exit $ac_status); } && {
45626          test -z "$ac_c_werror_flag" ||
45627          test ! -s conftest.err
45628        } && test -s conftest.$ac_objext; then
45629   wx_cv_func_gettimeofday_has_2_args=yes
45630 else
45631   echo "$as_me: failed program was:" >&5
45632 sed 's/^/| /' conftest.$ac_ext >&5
45633
45634         cat >conftest.$ac_ext <<_ACEOF
45635 /* confdefs.h.  */
45636 _ACEOF
45637 cat confdefs.h >>conftest.$ac_ext
45638 cat >>conftest.$ac_ext <<_ACEOF
45639 /* end confdefs.h.  */
45640
45641                     #include <sys/time.h>
45642                     #include <unistd.h>
45643
45644 int
45645 main ()
45646 {
45647
45648                     struct timeval tv;
45649                     gettimeofday(&tv);
45650
45651   ;
45652   return 0;
45653 }
45654 _ACEOF
45655 rm -f conftest.$ac_objext
45656 if { (ac_try="$ac_compile"
45657 case "(($ac_try" in
45658   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45659   *) ac_try_echo=$ac_try;;
45660 esac
45661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45662   (eval "$ac_compile") 2>conftest.er1
45663   ac_status=$?
45664   grep -v '^ *+' conftest.er1 >conftest.err
45665   rm -f conftest.er1
45666   cat conftest.err >&5
45667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45668   (exit $ac_status); } && {
45669          test -z "$ac_c_werror_flag" ||
45670          test ! -s conftest.err
45671        } && test -s conftest.$ac_objext; then
45672   wx_cv_func_gettimeofday_has_2_args=no
45673 else
45674   echo "$as_me: failed program was:" >&5
45675 sed 's/^/| /' conftest.$ac_ext >&5
45676
45677
45678                     { echo "$as_me:$LINENO: WARNING: failed to determine number of gettimeofday() arguments" >&5
45679 echo "$as_me: WARNING: failed to determine number of gettimeofday() arguments" >&2;}
45680                     wx_cv_func_gettimeofday_has_2_args=unknown
45681
45682
45683 fi
45684
45685 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45686
45687 fi
45688
45689 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45690
45691 fi
45692 { echo "$as_me:$LINENO: result: $wx_cv_func_gettimeofday_has_2_args" >&5
45693 echo "${ECHO_T}$wx_cv_func_gettimeofday_has_2_args" >&6; }
45694
45695     if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
45696         cat >>confdefs.h <<\_ACEOF
45697 #define WX_GETTIMEOFDAY_NO_TZ 1
45698 _ACEOF
45699
45700     fi
45701 fi
45702
45703 if test "$wxUSE_DATETIME" = "yes"; then
45704             { echo "$as_me:$LINENO: checking for timezone variable in <time.h>" >&5
45705 echo $ECHO_N "checking for timezone variable in <time.h>... $ECHO_C" >&6; }
45706 if test "${wx_cv_var_timezone+set}" = set; then
45707   echo $ECHO_N "(cached) $ECHO_C" >&6
45708 else
45709
45710                         ac_ext=cpp
45711 ac_cpp='$CXXCPP $CPPFLAGS'
45712 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
45713 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
45714 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
45715
45716                         cat >conftest.$ac_ext <<_ACEOF
45717 /* confdefs.h.  */
45718 _ACEOF
45719 cat confdefs.h >>conftest.$ac_ext
45720 cat >>conftest.$ac_ext <<_ACEOF
45721 /* end confdefs.h.  */
45722
45723                                 #include <time.h>
45724
45725 int
45726 main ()
45727 {
45728
45729                                 int tz;
45730                                 tz = timezone;
45731
45732   ;
45733   return 0;
45734 }
45735 _ACEOF
45736 rm -f conftest.$ac_objext
45737 if { (ac_try="$ac_compile"
45738 case "(($ac_try" in
45739   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45740   *) ac_try_echo=$ac_try;;
45741 esac
45742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45743   (eval "$ac_compile") 2>conftest.er1
45744   ac_status=$?
45745   grep -v '^ *+' conftest.er1 >conftest.err
45746   rm -f conftest.er1
45747   cat conftest.err >&5
45748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45749   (exit $ac_status); } && {
45750          test -z "$ac_cxx_werror_flag" ||
45751          test ! -s conftest.err
45752        } && test -s conftest.$ac_objext; then
45753
45754                                 wx_cv_var_timezone=timezone
45755
45756 else
45757   echo "$as_me: failed program was:" >&5
45758 sed 's/^/| /' conftest.$ac_ext >&5
45759
45760
45761                                 cat >conftest.$ac_ext <<_ACEOF
45762 /* confdefs.h.  */
45763 _ACEOF
45764 cat confdefs.h >>conftest.$ac_ext
45765 cat >>conftest.$ac_ext <<_ACEOF
45766 /* end confdefs.h.  */
45767
45768                                         #include <time.h>
45769
45770 int
45771 main ()
45772 {
45773
45774                                         int tz;
45775                                         tz = _timezone;
45776
45777   ;
45778   return 0;
45779 }
45780 _ACEOF
45781 rm -f conftest.$ac_objext
45782 if { (ac_try="$ac_compile"
45783 case "(($ac_try" in
45784   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45785   *) ac_try_echo=$ac_try;;
45786 esac
45787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45788   (eval "$ac_compile") 2>conftest.er1
45789   ac_status=$?
45790   grep -v '^ *+' conftest.er1 >conftest.err
45791   rm -f conftest.er1
45792   cat conftest.err >&5
45793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45794   (exit $ac_status); } && {
45795          test -z "$ac_cxx_werror_flag" ||
45796          test ! -s conftest.err
45797        } && test -s conftest.$ac_objext; then
45798
45799                                         wx_cv_var_timezone=_timezone
45800
45801 else
45802   echo "$as_me: failed program was:" >&5
45803 sed 's/^/| /' conftest.$ac_ext >&5
45804
45805
45806                                         cat >conftest.$ac_ext <<_ACEOF
45807 /* confdefs.h.  */
45808 _ACEOF
45809 cat confdefs.h >>conftest.$ac_ext
45810 cat >>conftest.$ac_ext <<_ACEOF
45811 /* end confdefs.h.  */
45812
45813                                                 #include <time.h>
45814
45815 int
45816 main ()
45817 {
45818
45819                                                 int tz;
45820                                                 tz = __timezone;
45821
45822   ;
45823   return 0;
45824 }
45825 _ACEOF
45826 rm -f conftest.$ac_objext
45827 if { (ac_try="$ac_compile"
45828 case "(($ac_try" in
45829   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45830   *) ac_try_echo=$ac_try;;
45831 esac
45832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45833   (eval "$ac_compile") 2>conftest.er1
45834   ac_status=$?
45835   grep -v '^ *+' conftest.er1 >conftest.err
45836   rm -f conftest.er1
45837   cat conftest.err >&5
45838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45839   (exit $ac_status); } && {
45840          test -z "$ac_cxx_werror_flag" ||
45841          test ! -s conftest.err
45842        } && test -s conftest.$ac_objext; then
45843
45844                                                 wx_cv_var_timezone=__timezone
45845
45846 else
45847   echo "$as_me: failed program was:" >&5
45848 sed 's/^/| /' conftest.$ac_ext >&5
45849
45850
45851                                                 if test "$USE_DOS" = 0 ; then
45852                                                     { echo "$as_me:$LINENO: WARNING: no timezone variable" >&5
45853 echo "$as_me: WARNING: no timezone variable" >&2;}
45854                                                 fi
45855
45856
45857 fi
45858
45859 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45860
45861
45862 fi
45863
45864 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45865
45866
45867 fi
45868
45869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45870                         ac_ext=c
45871 ac_cpp='$CPP $CPPFLAGS'
45872 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
45873 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
45874 ac_compiler_gnu=$ac_cv_c_compiler_gnu
45875
45876
45877
45878 fi
45879 { echo "$as_me:$LINENO: result: $wx_cv_var_timezone" >&5
45880 echo "${ECHO_T}$wx_cv_var_timezone" >&6; }
45881
45882         if test "x$wx_cv_var_timezone" != x ; then
45883         cat >>confdefs.h <<_ACEOF
45884 #define WX_TIMEZONE $wx_cv_var_timezone
45885 _ACEOF
45886
45887     fi
45888
45889
45890 for ac_func in localtime
45891 do
45892 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
45893 { echo "$as_me:$LINENO: checking for $ac_func" >&5
45894 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
45895 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
45896   echo $ECHO_N "(cached) $ECHO_C" >&6
45897 else
45898   cat >conftest.$ac_ext <<_ACEOF
45899 /* confdefs.h.  */
45900 _ACEOF
45901 cat confdefs.h >>conftest.$ac_ext
45902 cat >>conftest.$ac_ext <<_ACEOF
45903 /* end confdefs.h.  */
45904 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
45905    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
45906 #define $ac_func innocuous_$ac_func
45907
45908 /* System header to define __stub macros and hopefully few prototypes,
45909     which can conflict with char $ac_func (); below.
45910     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45911     <limits.h> exists even on freestanding compilers.  */
45912
45913 #ifdef __STDC__
45914 # include <limits.h>
45915 #else
45916 # include <assert.h>
45917 #endif
45918
45919 #undef $ac_func
45920
45921 /* Override any GCC internal prototype to avoid an error.
45922    Use char because int might match the return type of a GCC
45923    builtin and then its argument prototype would still apply.  */
45924 #ifdef __cplusplus
45925 extern "C"
45926 #endif
45927 char $ac_func ();
45928 /* The GNU C library defines this for functions which it implements
45929     to always fail with ENOSYS.  Some functions are actually named
45930     something starting with __ and the normal name is an alias.  */
45931 #if defined __stub_$ac_func || defined __stub___$ac_func
45932 choke me
45933 #endif
45934
45935 int
45936 main ()
45937 {
45938 return $ac_func ();
45939   ;
45940   return 0;
45941 }
45942 _ACEOF
45943 rm -f conftest.$ac_objext conftest$ac_exeext
45944 if { (ac_try="$ac_link"
45945 case "(($ac_try" in
45946   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45947   *) ac_try_echo=$ac_try;;
45948 esac
45949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45950   (eval "$ac_link") 2>conftest.er1
45951   ac_status=$?
45952   grep -v '^ *+' conftest.er1 >conftest.err
45953   rm -f conftest.er1
45954   cat conftest.err >&5
45955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45956   (exit $ac_status); } && {
45957          test -z "$ac_c_werror_flag" ||
45958          test ! -s conftest.err
45959        } && test -s conftest$ac_exeext &&
45960        $as_test_x conftest$ac_exeext; then
45961   eval "$as_ac_var=yes"
45962 else
45963   echo "$as_me: failed program was:" >&5
45964 sed 's/^/| /' conftest.$ac_ext >&5
45965
45966         eval "$as_ac_var=no"
45967 fi
45968
45969 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
45970       conftest$ac_exeext conftest.$ac_ext
45971 fi
45972 ac_res=`eval echo '${'$as_ac_var'}'`
45973                { echo "$as_me:$LINENO: result: $ac_res" >&5
45974 echo "${ECHO_T}$ac_res" >&6; }
45975 if test `eval echo '${'$as_ac_var'}'` = yes; then
45976   cat >>confdefs.h <<_ACEOF
45977 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
45978 _ACEOF
45979
45980 fi
45981 done
45982
45983
45984     if test "$ac_cv_func_localtime" = "yes"; then
45985         { echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
45986 echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6; }
45987 if test "${wx_cv_struct_tm_has_gmtoff+set}" = set; then
45988   echo $ECHO_N "(cached) $ECHO_C" >&6
45989 else
45990
45991             cat >conftest.$ac_ext <<_ACEOF
45992 /* confdefs.h.  */
45993 _ACEOF
45994 cat confdefs.h >>conftest.$ac_ext
45995 cat >>conftest.$ac_ext <<_ACEOF
45996 /* end confdefs.h.  */
45997
45998                     #include <time.h>
45999
46000 int
46001 main ()
46002 {
46003
46004                     struct tm tm;
46005                     tm.tm_gmtoff++;
46006
46007   ;
46008   return 0;
46009 }
46010 _ACEOF
46011 rm -f conftest.$ac_objext
46012 if { (ac_try="$ac_compile"
46013 case "(($ac_try" in
46014   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46015   *) ac_try_echo=$ac_try;;
46016 esac
46017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46018   (eval "$ac_compile") 2>conftest.er1
46019   ac_status=$?
46020   grep -v '^ *+' conftest.er1 >conftest.err
46021   rm -f conftest.er1
46022   cat conftest.err >&5
46023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46024   (exit $ac_status); } && {
46025          test -z "$ac_c_werror_flag" ||
46026          test ! -s conftest.err
46027        } && test -s conftest.$ac_objext; then
46028
46029                     wx_cv_struct_tm_has_gmtoff=yes
46030
46031 else
46032   echo "$as_me: failed program was:" >&5
46033 sed 's/^/| /' conftest.$ac_ext >&5
46034
46035         wx_cv_struct_tm_has_gmtoff=no
46036
46037 fi
46038
46039 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46040
46041 fi
46042 { echo "$as_me:$LINENO: result: $wx_cv_struct_tm_has_gmtoff" >&5
46043 echo "${ECHO_T}$wx_cv_struct_tm_has_gmtoff" >&6; }
46044     fi
46045
46046     if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
46047         cat >>confdefs.h <<\_ACEOF
46048 #define WX_GMTOFF_IN_TM 1
46049 _ACEOF
46050
46051     fi
46052
46053     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
46054 fi
46055
46056
46057 if test "$wxUSE_SOCKETS" = "yes"; then
46058     if test "$wxUSE_MGL" = 1; then
46059         { echo "$as_me:$LINENO: WARNING: wxSocket not yet supported under MGL... disabled" >&5
46060 echo "$as_me: WARNING: wxSocket not yet supported under MGL... disabled" >&2;}
46061         wxUSE_SOCKETS="no"
46062     fi
46063 fi
46064
46065 if test "$wxUSE_SOCKETS" = "yes"; then
46066         if test "$TOOLKIT" != "MSW"; then
46067                 { echo "$as_me:$LINENO: checking for socket" >&5
46068 echo $ECHO_N "checking for socket... $ECHO_C" >&6; }
46069 if test "${ac_cv_func_socket+set}" = set; then
46070   echo $ECHO_N "(cached) $ECHO_C" >&6
46071 else
46072   cat >conftest.$ac_ext <<_ACEOF
46073 /* confdefs.h.  */
46074 _ACEOF
46075 cat confdefs.h >>conftest.$ac_ext
46076 cat >>conftest.$ac_ext <<_ACEOF
46077 /* end confdefs.h.  */
46078 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
46079    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
46080 #define socket innocuous_socket
46081
46082 /* System header to define __stub macros and hopefully few prototypes,
46083     which can conflict with char socket (); below.
46084     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
46085     <limits.h> exists even on freestanding compilers.  */
46086
46087 #ifdef __STDC__
46088 # include <limits.h>
46089 #else
46090 # include <assert.h>
46091 #endif
46092
46093 #undef socket
46094
46095 /* Override any GCC internal prototype to avoid an error.
46096    Use char because int might match the return type of a GCC
46097    builtin and then its argument prototype would still apply.  */
46098 #ifdef __cplusplus
46099 extern "C"
46100 #endif
46101 char socket ();
46102 /* The GNU C library defines this for functions which it implements
46103     to always fail with ENOSYS.  Some functions are actually named
46104     something starting with __ and the normal name is an alias.  */
46105 #if defined __stub_socket || defined __stub___socket
46106 choke me
46107 #endif
46108
46109 int
46110 main ()
46111 {
46112 return socket ();
46113   ;
46114   return 0;
46115 }
46116 _ACEOF
46117 rm -f conftest.$ac_objext conftest$ac_exeext
46118 if { (ac_try="$ac_link"
46119 case "(($ac_try" in
46120   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46121   *) ac_try_echo=$ac_try;;
46122 esac
46123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46124   (eval "$ac_link") 2>conftest.er1
46125   ac_status=$?
46126   grep -v '^ *+' conftest.er1 >conftest.err
46127   rm -f conftest.er1
46128   cat conftest.err >&5
46129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46130   (exit $ac_status); } && {
46131          test -z "$ac_c_werror_flag" ||
46132          test ! -s conftest.err
46133        } && test -s conftest$ac_exeext &&
46134        $as_test_x conftest$ac_exeext; then
46135   ac_cv_func_socket=yes
46136 else
46137   echo "$as_me: failed program was:" >&5
46138 sed 's/^/| /' conftest.$ac_ext >&5
46139
46140         ac_cv_func_socket=no
46141 fi
46142
46143 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
46144       conftest$ac_exeext conftest.$ac_ext
46145 fi
46146 { echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
46147 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
46148 if test $ac_cv_func_socket = yes; then
46149   :
46150 else
46151
46152                 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
46153 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
46154 if test "${ac_cv_lib_socket_socket+set}" = set; then
46155   echo $ECHO_N "(cached) $ECHO_C" >&6
46156 else
46157   ac_check_lib_save_LIBS=$LIBS
46158 LIBS="-lsocket  $LIBS"
46159 cat >conftest.$ac_ext <<_ACEOF
46160 /* confdefs.h.  */
46161 _ACEOF
46162 cat confdefs.h >>conftest.$ac_ext
46163 cat >>conftest.$ac_ext <<_ACEOF
46164 /* end confdefs.h.  */
46165
46166 /* Override any GCC internal prototype to avoid an error.
46167    Use char because int might match the return type of a GCC
46168    builtin and then its argument prototype would still apply.  */
46169 #ifdef __cplusplus
46170 extern "C"
46171 #endif
46172 char socket ();
46173 int
46174 main ()
46175 {
46176 return socket ();
46177   ;
46178   return 0;
46179 }
46180 _ACEOF
46181 rm -f conftest.$ac_objext conftest$ac_exeext
46182 if { (ac_try="$ac_link"
46183 case "(($ac_try" in
46184   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46185   *) ac_try_echo=$ac_try;;
46186 esac
46187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46188   (eval "$ac_link") 2>conftest.er1
46189   ac_status=$?
46190   grep -v '^ *+' conftest.er1 >conftest.err
46191   rm -f conftest.er1
46192   cat conftest.err >&5
46193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46194   (exit $ac_status); } && {
46195          test -z "$ac_c_werror_flag" ||
46196          test ! -s conftest.err
46197        } && test -s conftest$ac_exeext &&
46198        $as_test_x conftest$ac_exeext; then
46199   ac_cv_lib_socket_socket=yes
46200 else
46201   echo "$as_me: failed program was:" >&5
46202 sed 's/^/| /' conftest.$ac_ext >&5
46203
46204         ac_cv_lib_socket_socket=no
46205 fi
46206
46207 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
46208       conftest$ac_exeext conftest.$ac_ext
46209 LIBS=$ac_check_lib_save_LIBS
46210 fi
46211 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
46212 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
46213 if test $ac_cv_lib_socket_socket = yes; then
46214   if test "$INET_LINK" != " -lsocket"; then
46215                         INET_LINK="$INET_LINK -lsocket"
46216                     fi
46217 else
46218
46219                         { echo "$as_me:$LINENO: WARNING: socket library not found - sockets will be disabled" >&5
46220 echo "$as_me: WARNING: socket library not found - sockets will be disabled" >&2;}
46221                         wxUSE_SOCKETS=no
46222
46223
46224 fi
46225
46226
46227
46228 fi
46229
46230     fi
46231 fi
46232
46233 if test "$wxUSE_SOCKETS" = "yes" ; then
46234                 if test "$TOOLKIT" != "MSW"; then
46235                                         { echo "$as_me:$LINENO: checking what is the type of the third argument of getsockname" >&5
46236 echo $ECHO_N "checking what is the type of the third argument of getsockname... $ECHO_C" >&6; }
46237 if test "${wx_cv_type_getsockname3+set}" = set; then
46238   echo $ECHO_N "(cached) $ECHO_C" >&6
46239 else
46240
46241                 ac_ext=cpp
46242 ac_cpp='$CXXCPP $CPPFLAGS'
46243 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
46244 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46245 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
46246
46247                 cat >conftest.$ac_ext <<_ACEOF
46248 /* confdefs.h.  */
46249 _ACEOF
46250 cat confdefs.h >>conftest.$ac_ext
46251 cat >>conftest.$ac_ext <<_ACEOF
46252 /* end confdefs.h.  */
46253
46254                         #include <sys/types.h>
46255                         #include <sys/socket.h>
46256
46257 int
46258 main ()
46259 {
46260
46261                         socklen_t len;
46262                         getsockname(0, 0, &len);
46263
46264   ;
46265   return 0;
46266 }
46267 _ACEOF
46268 rm -f conftest.$ac_objext
46269 if { (ac_try="$ac_compile"
46270 case "(($ac_try" in
46271   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46272   *) ac_try_echo=$ac_try;;
46273 esac
46274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46275   (eval "$ac_compile") 2>conftest.er1
46276   ac_status=$?
46277   grep -v '^ *+' conftest.er1 >conftest.err
46278   rm -f conftest.er1
46279   cat conftest.err >&5
46280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46281   (exit $ac_status); } && {
46282          test -z "$ac_cxx_werror_flag" ||
46283          test ! -s conftest.err
46284        } && test -s conftest.$ac_objext; then
46285   wx_cv_type_getsockname3=socklen_t
46286 else
46287   echo "$as_me: failed program was:" >&5
46288 sed 's/^/| /' conftest.$ac_ext >&5
46289
46290
46291                                                                                                                                                                         CFLAGS_OLD="$CFLAGS"
46292                         if test "$GCC" = yes ; then
46293                             CFLAGS="-Werror $CFLAGS"
46294                         fi
46295
46296                         cat >conftest.$ac_ext <<_ACEOF
46297 /* confdefs.h.  */
46298 _ACEOF
46299 cat confdefs.h >>conftest.$ac_ext
46300 cat >>conftest.$ac_ext <<_ACEOF
46301 /* end confdefs.h.  */
46302
46303                                 #include <sys/types.h>
46304                                 #include <sys/socket.h>
46305
46306 int
46307 main ()
46308 {
46309
46310                                 size_t len;
46311                                 getsockname(0, 0, &len);
46312
46313   ;
46314   return 0;
46315 }
46316 _ACEOF
46317 rm -f conftest.$ac_objext
46318 if { (ac_try="$ac_compile"
46319 case "(($ac_try" in
46320   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46321   *) ac_try_echo=$ac_try;;
46322 esac
46323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46324   (eval "$ac_compile") 2>conftest.er1
46325   ac_status=$?
46326   grep -v '^ *+' conftest.er1 >conftest.err
46327   rm -f conftest.er1
46328   cat conftest.err >&5
46329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46330   (exit $ac_status); } && {
46331          test -z "$ac_cxx_werror_flag" ||
46332          test ! -s conftest.err
46333        } && test -s conftest.$ac_objext; then
46334   wx_cv_type_getsockname3=size_t
46335 else
46336   echo "$as_me: failed program was:" >&5
46337 sed 's/^/| /' conftest.$ac_ext >&5
46338
46339         cat >conftest.$ac_ext <<_ACEOF
46340 /* confdefs.h.  */
46341 _ACEOF
46342 cat confdefs.h >>conftest.$ac_ext
46343 cat >>conftest.$ac_ext <<_ACEOF
46344 /* end confdefs.h.  */
46345
46346                                     #include <sys/types.h>
46347                                     #include <sys/socket.h>
46348
46349 int
46350 main ()
46351 {
46352
46353                                     int len;
46354                                     getsockname(0, 0, &len);
46355
46356   ;
46357   return 0;
46358 }
46359 _ACEOF
46360 rm -f conftest.$ac_objext
46361 if { (ac_try="$ac_compile"
46362 case "(($ac_try" in
46363   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46364   *) ac_try_echo=$ac_try;;
46365 esac
46366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46367   (eval "$ac_compile") 2>conftest.er1
46368   ac_status=$?
46369   grep -v '^ *+' conftest.er1 >conftest.err
46370   rm -f conftest.er1
46371   cat conftest.err >&5
46372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46373   (exit $ac_status); } && {
46374          test -z "$ac_cxx_werror_flag" ||
46375          test ! -s conftest.err
46376        } && test -s conftest.$ac_objext; then
46377   wx_cv_type_getsockname3=int
46378 else
46379   echo "$as_me: failed program was:" >&5
46380 sed 's/^/| /' conftest.$ac_ext >&5
46381
46382         wx_cv_type_getsockname3=unknown
46383
46384 fi
46385
46386 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46387
46388 fi
46389
46390 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46391
46392                         CFLAGS="$CFLAGS_OLD"
46393
46394
46395 fi
46396
46397 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46398                 ac_ext=c
46399 ac_cpp='$CPP $CPPFLAGS'
46400 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
46401 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46402 ac_compiler_gnu=$ac_cv_c_compiler_gnu
46403
46404
46405 fi
46406 { echo "$as_me:$LINENO: result: $wx_cv_type_getsockname3" >&5
46407 echo "${ECHO_T}$wx_cv_type_getsockname3" >&6; }
46408
46409         if test "$wx_cv_type_getsockname3" = "unknown"; then
46410             wxUSE_SOCKETS=no
46411             { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
46412 echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
46413         else
46414             cat >>confdefs.h <<_ACEOF
46415 #define WX_SOCKLEN_T $wx_cv_type_getsockname3
46416 _ACEOF
46417
46418         fi
46419                 { echo "$as_me:$LINENO: checking what is the type of the fifth argument of getsockopt" >&5
46420 echo $ECHO_N "checking what is the type of the fifth argument of getsockopt... $ECHO_C" >&6; }
46421 if test "${wx_cv_type_getsockopt5+set}" = set; then
46422   echo $ECHO_N "(cached) $ECHO_C" >&6
46423 else
46424
46425                                                                                                 ac_ext=cpp
46426 ac_cpp='$CXXCPP $CPPFLAGS'
46427 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
46428 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46429 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
46430
46431                 cat >conftest.$ac_ext <<_ACEOF
46432 /* confdefs.h.  */
46433 _ACEOF
46434 cat confdefs.h >>conftest.$ac_ext
46435 cat >>conftest.$ac_ext <<_ACEOF
46436 /* end confdefs.h.  */
46437
46438                         #include <sys/types.h>
46439                         #include <sys/socket.h>
46440
46441 int
46442 main ()
46443 {
46444
46445                         socklen_t len;
46446                         getsockopt(0, 0, 0, 0, &len);
46447
46448   ;
46449   return 0;
46450 }
46451 _ACEOF
46452 rm -f conftest.$ac_objext
46453 if { (ac_try="$ac_compile"
46454 case "(($ac_try" in
46455   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46456   *) ac_try_echo=$ac_try;;
46457 esac
46458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46459   (eval "$ac_compile") 2>conftest.er1
46460   ac_status=$?
46461   grep -v '^ *+' conftest.er1 >conftest.err
46462   rm -f conftest.er1
46463   cat conftest.err >&5
46464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46465   (exit $ac_status); } && {
46466          test -z "$ac_cxx_werror_flag" ||
46467          test ! -s conftest.err
46468        } && test -s conftest.$ac_objext; then
46469   wx_cv_type_getsockopt5=socklen_t
46470 else
46471   echo "$as_me: failed program was:" >&5
46472 sed 's/^/| /' conftest.$ac_ext >&5
46473
46474
46475                         cat >conftest.$ac_ext <<_ACEOF
46476 /* confdefs.h.  */
46477 _ACEOF
46478 cat confdefs.h >>conftest.$ac_ext
46479 cat >>conftest.$ac_ext <<_ACEOF
46480 /* end confdefs.h.  */
46481
46482                                 #include <sys/types.h>
46483                                 #include <sys/socket.h>
46484
46485 int
46486 main ()
46487 {
46488
46489                                 size_t len;
46490                                 getsockopt(0, 0, 0, 0, &len);
46491
46492   ;
46493   return 0;
46494 }
46495 _ACEOF
46496 rm -f conftest.$ac_objext
46497 if { (ac_try="$ac_compile"
46498 case "(($ac_try" in
46499   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46500   *) ac_try_echo=$ac_try;;
46501 esac
46502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46503   (eval "$ac_compile") 2>conftest.er1
46504   ac_status=$?
46505   grep -v '^ *+' conftest.er1 >conftest.err
46506   rm -f conftest.er1
46507   cat conftest.err >&5
46508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46509   (exit $ac_status); } && {
46510          test -z "$ac_cxx_werror_flag" ||
46511          test ! -s conftest.err
46512        } && test -s conftest.$ac_objext; then
46513   wx_cv_type_getsockopt5=size_t
46514 else
46515   echo "$as_me: failed program was:" >&5
46516 sed 's/^/| /' conftest.$ac_ext >&5
46517
46518         cat >conftest.$ac_ext <<_ACEOF
46519 /* confdefs.h.  */
46520 _ACEOF
46521 cat confdefs.h >>conftest.$ac_ext
46522 cat >>conftest.$ac_ext <<_ACEOF
46523 /* end confdefs.h.  */
46524
46525                                     #include <sys/types.h>
46526                                     #include <sys/socket.h>
46527
46528 int
46529 main ()
46530 {
46531
46532                                     int len;
46533                                     getsockopt(0, 0, 0, 0, &len);
46534
46535   ;
46536   return 0;
46537 }
46538 _ACEOF
46539 rm -f conftest.$ac_objext
46540 if { (ac_try="$ac_compile"
46541 case "(($ac_try" in
46542   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46543   *) ac_try_echo=$ac_try;;
46544 esac
46545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46546   (eval "$ac_compile") 2>conftest.er1
46547   ac_status=$?
46548   grep -v '^ *+' conftest.er1 >conftest.err
46549   rm -f conftest.er1
46550   cat conftest.err >&5
46551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46552   (exit $ac_status); } && {
46553          test -z "$ac_cxx_werror_flag" ||
46554          test ! -s conftest.err
46555        } && test -s conftest.$ac_objext; then
46556   wx_cv_type_getsockopt5=int
46557 else
46558   echo "$as_me: failed program was:" >&5
46559 sed 's/^/| /' conftest.$ac_ext >&5
46560
46561         wx_cv_type_getsockopt5=unknown
46562
46563 fi
46564
46565 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46566
46567 fi
46568
46569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46570
46571
46572 fi
46573
46574 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46575                 ac_ext=c
46576 ac_cpp='$CPP $CPPFLAGS'
46577 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
46578 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46579 ac_compiler_gnu=$ac_cv_c_compiler_gnu
46580
46581
46582 fi
46583 { echo "$as_me:$LINENO: result: $wx_cv_type_getsockopt5" >&5
46584 echo "${ECHO_T}$wx_cv_type_getsockopt5" >&6; }
46585
46586         if test "$wx_cv_type_getsockopt5" = "unknown"; then
46587             wxUSE_SOCKETS=no
46588             { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
46589 echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
46590         else
46591             cat >>confdefs.h <<_ACEOF
46592 #define SOCKOPTLEN_T $wx_cv_type_getsockopt5
46593 _ACEOF
46594
46595         fi
46596     fi
46597 fi
46598
46599 if test "$wxUSE_SOCKETS" = "yes" ; then
46600     if test "$wxUSE_IPV6" = "yes"; then
46601         { echo "$as_me:$LINENO: checking whether we have sockaddr_in6" >&5
46602 echo $ECHO_N "checking whether we have sockaddr_in6... $ECHO_C" >&6; }
46603 if test "${wx_cv_type_sockaddr_in6+set}" = set; then
46604   echo $ECHO_N "(cached) $ECHO_C" >&6
46605 else
46606
46607                 cat >conftest.$ac_ext <<_ACEOF
46608 /* confdefs.h.  */
46609 _ACEOF
46610 cat confdefs.h >>conftest.$ac_ext
46611 cat >>conftest.$ac_ext <<_ACEOF
46612 /* end confdefs.h.  */
46613
46614                         #include <sys/types.h>
46615                         #include <sys/socket.h>
46616                         #include <netinet/in.h>
46617
46618 int
46619 main ()
46620 {
46621
46622                         struct sockaddr_in6 sa6;
46623
46624   ;
46625   return 0;
46626 }
46627 _ACEOF
46628 rm -f conftest.$ac_objext
46629 if { (ac_try="$ac_compile"
46630 case "(($ac_try" in
46631   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46632   *) ac_try_echo=$ac_try;;
46633 esac
46634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46635   (eval "$ac_compile") 2>conftest.er1
46636   ac_status=$?
46637   grep -v '^ *+' conftest.er1 >conftest.err
46638   rm -f conftest.er1
46639   cat conftest.err >&5
46640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46641   (exit $ac_status); } && {
46642          test -z "$ac_c_werror_flag" ||
46643          test ! -s conftest.err
46644        } && test -s conftest.$ac_objext; then
46645   wx_cv_type_sockaddr_in6=yes
46646 else
46647   echo "$as_me: failed program was:" >&5
46648 sed 's/^/| /' conftest.$ac_ext >&5
46649
46650         wx_cv_type_sockaddr_in6=no
46651
46652 fi
46653
46654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46655
46656
46657 fi
46658 { echo "$as_me:$LINENO: result: $wx_cv_type_sockaddr_in6" >&5
46659 echo "${ECHO_T}$wx_cv_type_sockaddr_in6" >&6; }
46660
46661         if test "$wx_cv_type_sockaddr_in6"="yes"; then
46662             cat >>confdefs.h <<\_ACEOF
46663 #define wxUSE_IPV6 1
46664 _ACEOF
46665
46666         else
46667             { echo "$as_me:$LINENO: WARNING: IPv6 support not available... disabled" >&5
46668 echo "$as_me: WARNING: IPv6 support not available... disabled" >&2;}
46669         fi
46670     fi
46671
46672     cat >>confdefs.h <<\_ACEOF
46673 #define wxUSE_SOCKETS 1
46674 _ACEOF
46675
46676     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
46677 fi
46678
46679 if test "$wxUSE_PROTOCOL" = "yes"; then
46680     if test "$wxUSE_SOCKETS" != "yes"; then
46681         { echo "$as_me:$LINENO: WARNING: Protocol classes require sockets... disabled" >&5
46682 echo "$as_me: WARNING: Protocol classes require sockets... disabled" >&2;}
46683         wxUSE_PROTOCOL=no
46684     fi
46685 fi
46686
46687 if test "$wxUSE_PROTOCOL" = "yes"; then
46688     cat >>confdefs.h <<\_ACEOF
46689 #define wxUSE_PROTOCOL 1
46690 _ACEOF
46691
46692
46693     if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then
46694         cat >>confdefs.h <<\_ACEOF
46695 #define wxUSE_PROTOCOL_HTTP 1
46696 _ACEOF
46697
46698     fi
46699     if test "$wxUSE_PROTOCOL_FTP" = "yes"; then
46700         cat >>confdefs.h <<\_ACEOF
46701 #define wxUSE_PROTOCOL_FTP 1
46702 _ACEOF
46703
46704     fi
46705     if test "$wxUSE_PROTOCOL_FILE" = "yes"; then
46706         cat >>confdefs.h <<\_ACEOF
46707 #define wxUSE_PROTOCOL_FILE 1
46708 _ACEOF
46709
46710     fi
46711 else
46712     if test "$wxUSE_FS_INET" = "yes"; then
46713         { echo "$as_me:$LINENO: WARNING: HTTP filesystem require protocol classes... disabled" >&5
46714 echo "$as_me: WARNING: HTTP filesystem require protocol classes... disabled" >&2;}
46715         wxUSE_FS_INET="no"
46716     fi
46717 fi
46718
46719 if test "$wxUSE_URL" = "yes"; then
46720     if test "$wxUSE_PROTOCOL" != "yes"; then
46721         { echo "$as_me:$LINENO: WARNING: wxURL class requires wxProtocol... disabled" >&5
46722 echo "$as_me: WARNING: wxURL class requires wxProtocol... disabled" >&2;}
46723         wxUSE_URL=no
46724     fi
46725     if test "$wxUSE_URL" = "yes"; then
46726         cat >>confdefs.h <<\_ACEOF
46727 #define wxUSE_URL 1
46728 _ACEOF
46729
46730     fi
46731 fi
46732
46733 if test "$wxUSE_VARIANT" = "yes"; then
46734     cat >>confdefs.h <<\_ACEOF
46735 #define wxUSE_VARIANT 1
46736 _ACEOF
46737
46738 fi
46739
46740 if test "$wxUSE_FS_INET" = "yes"; then
46741   cat >>confdefs.h <<\_ACEOF
46742 #define wxUSE_FS_INET 1
46743 _ACEOF
46744
46745 fi
46746
46747
46748 if test "$wxUSE_GUI" = "yes" -a "$wxUSE_JOYSTICK" = "yes"; then
46749     wxUSE_JOYSTICK=no
46750
46751         if test "$TOOLKIT" = "MSW"; then
46752         wxUSE_JOYSTICK=yes
46753
46754         elif test "$TOOLKIT" = "OSX" -o "$TOOLKIT" = "COCOA"; then
46755         if test "$USE_DARWIN" = 1; then
46756                         { echo "$as_me:$LINENO: checking headers have declarations needed for joystick support" >&5
46757 echo $ECHO_N "checking headers have declarations needed for joystick support... $ECHO_C" >&6; }
46758             ac_ext=cpp
46759 ac_cpp='$CXXCPP $CPPFLAGS'
46760 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
46761 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46762 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
46763
46764             cat >conftest.$ac_ext <<_ACEOF
46765 /* confdefs.h.  */
46766 _ACEOF
46767 cat confdefs.h >>conftest.$ac_ext
46768 cat >>conftest.$ac_ext <<_ACEOF
46769 /* end confdefs.h.  */
46770  #include <IOKit/hid/IOHIDLib.h>
46771 int
46772 main ()
46773 {
46774  IOHIDQueueInterface *qi = NULL;
46775                               IOHIDCallbackFunction cb = NULL;
46776                               qi->setEventCallout(NULL, cb, NULL, NULL);
46777   ;
46778   return 0;
46779 }
46780 _ACEOF
46781 rm -f conftest.$ac_objext
46782 if { (ac_try="$ac_compile"
46783 case "(($ac_try" in
46784   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46785   *) ac_try_echo=$ac_try;;
46786 esac
46787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46788   (eval "$ac_compile") 2>conftest.er1
46789   ac_status=$?
46790   grep -v '^ *+' conftest.er1 >conftest.err
46791   rm -f conftest.er1
46792   cat conftest.err >&5
46793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46794   (exit $ac_status); } && {
46795          test -z "$ac_cxx_werror_flag" ||
46796          test ! -s conftest.err
46797        } && test -s conftest.$ac_objext; then
46798    wxUSE_JOYSTICK=yes
46799
46800 else
46801   echo "$as_me: failed program was:" >&5
46802 sed 's/^/| /' conftest.$ac_ext >&5
46803
46804
46805 fi
46806
46807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46808             ac_ext=c
46809 ac_cpp='$CPP $CPPFLAGS'
46810 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
46811 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46812 ac_compiler_gnu=$ac_cv_c_compiler_gnu
46813
46814             { echo "$as_me:$LINENO: result: $wxUSE_JOYSTICK" >&5
46815 echo "${ECHO_T}$wxUSE_JOYSTICK" >&6; }
46816         fi
46817
46818         else
46819                 if test "$wxUSE_MGL" != 1; then
46820
46821 for ac_header in linux/joystick.h
46822 do
46823 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
46824 { echo "$as_me:$LINENO: checking for $ac_header" >&5
46825 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
46826 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
46827   echo $ECHO_N "(cached) $ECHO_C" >&6
46828 else
46829   cat >conftest.$ac_ext <<_ACEOF
46830 /* confdefs.h.  */
46831 _ACEOF
46832 cat confdefs.h >>conftest.$ac_ext
46833 cat >>conftest.$ac_ext <<_ACEOF
46834 /* end confdefs.h.  */
46835 $ac_includes_default
46836
46837 #include <$ac_header>
46838 _ACEOF
46839 rm -f conftest.$ac_objext
46840 if { (ac_try="$ac_compile"
46841 case "(($ac_try" in
46842   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46843   *) ac_try_echo=$ac_try;;
46844 esac
46845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46846   (eval "$ac_compile") 2>conftest.er1
46847   ac_status=$?
46848   grep -v '^ *+' conftest.er1 >conftest.err
46849   rm -f conftest.er1
46850   cat conftest.err >&5
46851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46852   (exit $ac_status); } && {
46853          test -z "$ac_c_werror_flag" ||
46854          test ! -s conftest.err
46855        } && test -s conftest.$ac_objext; then
46856   eval "$as_ac_Header=yes"
46857 else
46858   echo "$as_me: failed program was:" >&5
46859 sed 's/^/| /' conftest.$ac_ext >&5
46860
46861         eval "$as_ac_Header=no"
46862 fi
46863
46864 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46865 fi
46866 ac_res=`eval echo '${'$as_ac_Header'}'`
46867                { echo "$as_me:$LINENO: result: $ac_res" >&5
46868 echo "${ECHO_T}$ac_res" >&6; }
46869 if test `eval echo '${'$as_ac_Header'}'` = yes; then
46870   cat >>confdefs.h <<_ACEOF
46871 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
46872 _ACEOF
46873  wxUSE_JOYSTICK=yes
46874 fi
46875
46876 done
46877
46878         fi
46879     fi
46880
46881     if test "$wxUSE_JOYSTICK" = "yes"; then
46882         cat >>confdefs.h <<\_ACEOF
46883 #define wxUSE_JOYSTICK 1
46884 _ACEOF
46885
46886         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
46887     else
46888         { echo "$as_me:$LINENO: WARNING: Joystick not supported by this system... disabled" >&5
46889 echo "$as_me: WARNING: Joystick not supported by this system... disabled" >&2;}
46890     fi
46891 fi
46892
46893
46894
46895 if test "$wxUSE_FONTENUM" = "yes" ; then
46896   cat >>confdefs.h <<\_ACEOF
46897 #define wxUSE_FONTENUM 1
46898 _ACEOF
46899
46900 fi
46901
46902 if test "$wxUSE_FONTMAP" = "yes" ; then
46903   cat >>confdefs.h <<\_ACEOF
46904 #define wxUSE_FONTMAP 1
46905 _ACEOF
46906
46907 fi
46908
46909 if test "$wxUSE_UNICODE" = "yes" ; then
46910   cat >>confdefs.h <<\_ACEOF
46911 #define wxUSE_UNICODE 1
46912 _ACEOF
46913
46914
46915   if test "$USE_WIN32" != 1; then
46916       wxUSE_UNICODE_MSLU=no
46917   fi
46918
46919   if test "$USE_WIN32" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then
46920         { echo "$as_me:$LINENO: checking for main in -lunicows" >&5
46921 echo $ECHO_N "checking for main in -lunicows... $ECHO_C" >&6; }
46922 if test "${ac_cv_lib_unicows_main+set}" = set; then
46923   echo $ECHO_N "(cached) $ECHO_C" >&6
46924 else
46925   ac_check_lib_save_LIBS=$LIBS
46926 LIBS="-lunicows  $LIBS"
46927 cat >conftest.$ac_ext <<_ACEOF
46928 /* confdefs.h.  */
46929 _ACEOF
46930 cat confdefs.h >>conftest.$ac_ext
46931 cat >>conftest.$ac_ext <<_ACEOF
46932 /* end confdefs.h.  */
46933
46934
46935 int
46936 main ()
46937 {
46938 return main ();
46939   ;
46940   return 0;
46941 }
46942 _ACEOF
46943 rm -f conftest.$ac_objext conftest$ac_exeext
46944 if { (ac_try="$ac_link"
46945 case "(($ac_try" in
46946   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46947   *) ac_try_echo=$ac_try;;
46948 esac
46949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46950   (eval "$ac_link") 2>conftest.er1
46951   ac_status=$?
46952   grep -v '^ *+' conftest.er1 >conftest.err
46953   rm -f conftest.er1
46954   cat conftest.err >&5
46955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46956   (exit $ac_status); } && {
46957          test -z "$ac_c_werror_flag" ||
46958          test ! -s conftest.err
46959        } && test -s conftest$ac_exeext &&
46960        $as_test_x conftest$ac_exeext; then
46961   ac_cv_lib_unicows_main=yes
46962 else
46963   echo "$as_me: failed program was:" >&5
46964 sed 's/^/| /' conftest.$ac_ext >&5
46965
46966         ac_cv_lib_unicows_main=no
46967 fi
46968
46969 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
46970       conftest$ac_exeext conftest.$ac_ext
46971 LIBS=$ac_check_lib_save_LIBS
46972 fi
46973 { echo "$as_me:$LINENO: result: $ac_cv_lib_unicows_main" >&5
46974 echo "${ECHO_T}$ac_cv_lib_unicows_main" >&6; }
46975 if test $ac_cv_lib_unicows_main = yes; then
46976
46977                 cat >>confdefs.h <<\_ACEOF
46978 #define wxUSE_UNICODE_MSLU 1
46979 _ACEOF
46980
46981
46982 else
46983
46984                 { echo "$as_me:$LINENO: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
46985                              Applications will only run on Windows NT/2000/XP!" >&5
46986 echo "$as_me: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
46987                              Applications will only run on Windows NT/2000/XP!" >&2;}
46988                 wxUSE_UNICODE_MSLU=no
46989
46990 fi
46991
46992     fi
46993 fi
46994
46995 if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_UTF8" = "yes"; then
46996     cat >>confdefs.h <<\_ACEOF
46997 #define wxUSE_UNICODE_UTF8 1
46998 _ACEOF
46999
47000
47001     if test "$wxUSE_UNICODE_UTF8_LOCALE" = "yes"; then
47002         cat >>confdefs.h <<\_ACEOF
47003 #define wxUSE_UTF8_LOCALE_ONLY 1
47004 _ACEOF
47005
47006     fi
47007 fi
47008
47009
47010 if test "$wxUSE_CONSTRAINTS" = "yes"; then
47011     cat >>confdefs.h <<\_ACEOF
47012 #define wxUSE_CONSTRAINTS 1
47013 _ACEOF
47014
47015     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
47016 fi
47017
47018 if test "$wxUSE_MDI" = "yes"; then
47019     cat >>confdefs.h <<\_ACEOF
47020 #define wxUSE_MDI 1
47021 _ACEOF
47022
47023
47024     if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
47025         cat >>confdefs.h <<\_ACEOF
47026 #define wxUSE_MDI_ARCHITECTURE 1
47027 _ACEOF
47028
47029         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
47030     fi
47031 fi
47032
47033 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
47034     cat >>confdefs.h <<\_ACEOF
47035 #define wxUSE_DOC_VIEW_ARCHITECTURE 1
47036 _ACEOF
47037
47038     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
47039 fi
47040
47041 if test "$wxUSE_HELP" = "yes"; then
47042     cat >>confdefs.h <<\_ACEOF
47043 #define wxUSE_HELP 1
47044 _ACEOF
47045
47046     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
47047
47048     if test "$wxUSE_MSW" = 1; then
47049       if test "$wxUSE_MS_HTML_HELP" = "yes"; then
47050         cat >>confdefs.h <<\_ACEOF
47051 #define wxUSE_MS_HTML_HELP 1
47052 _ACEOF
47053
47054       fi
47055     fi
47056
47057     if test "$wxUSE_WXHTML_HELP" = "yes"; then
47058       if test "$wxUSE_HTML" = "yes"; then
47059         cat >>confdefs.h <<\_ACEOF
47060 #define wxUSE_WXHTML_HELP 1
47061 _ACEOF
47062
47063       else
47064         { echo "$as_me:$LINENO: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&5
47065 echo "$as_me: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&2;}
47066         wxUSE_WXHTML_HELP=no
47067       fi
47068     fi
47069 fi
47070
47071 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
47072     cat >>confdefs.h <<\_ACEOF
47073 #define wxUSE_PRINTING_ARCHITECTURE 1
47074 _ACEOF
47075
47076     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
47077 fi
47078
47079 if test "$wxUSE_POSTSCRIPT" = "yes" ; then
47080   cat >>confdefs.h <<\_ACEOF
47081 #define wxUSE_POSTSCRIPT 1
47082 _ACEOF
47083
47084 fi
47085
47086 cat >>confdefs.h <<\_ACEOF
47087 #define wxUSE_AFM_FOR_POSTSCRIPT 1
47088 _ACEOF
47089
47090
47091 if test "$wxUSE_SVG" = "yes"; then
47092     cat >>confdefs.h <<\_ACEOF
47093 #define wxUSE_SVG 1
47094 _ACEOF
47095
47096 fi
47097
47098
47099 if test "$wxUSE_METAFILE" = "yes"; then
47100     if test "$wxUSE_MSW" != 1 -a "$wxUSE_MAC" != 1 -a "$wxUSE_PM" != 1; then
47101         { echo "$as_me:$LINENO: WARNING: wxMetafile is not available on this system... disabled" >&5
47102 echo "$as_me: WARNING: wxMetafile is not available on this system... disabled" >&2;}
47103         wxUSE_METAFILE=no
47104     fi
47105 fi
47106
47107
47108 if test "$USE_WIN32" = 1 -a \( "$wxUSE_DATAOBJ"       = "yes" \
47109                           -o "$wxUSE_CLIPBOARD"     = "yes" \
47110                           -o "$wxUSE_OLE"     = "yes" \
47111                           -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then
47112     { echo "$as_me:$LINENO: checking for ole2.h" >&5
47113 echo $ECHO_N "checking for ole2.h... $ECHO_C" >&6; }
47114 if test "${ac_cv_header_ole2_h+set}" = set; then
47115   echo $ECHO_N "(cached) $ECHO_C" >&6
47116 else
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
47124
47125 #include <ole2.h>
47126 _ACEOF
47127 rm -f conftest.$ac_objext
47128 if { (ac_try="$ac_compile"
47129 case "(($ac_try" in
47130   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47131   *) ac_try_echo=$ac_try;;
47132 esac
47133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47134   (eval "$ac_compile") 2>conftest.er1
47135   ac_status=$?
47136   grep -v '^ *+' conftest.er1 >conftest.err
47137   rm -f conftest.er1
47138   cat conftest.err >&5
47139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47140   (exit $ac_status); } && {
47141          test -z "$ac_c_werror_flag" ||
47142          test ! -s conftest.err
47143        } && test -s conftest.$ac_objext; then
47144   ac_cv_header_ole2_h=yes
47145 else
47146   echo "$as_me: failed program was:" >&5
47147 sed 's/^/| /' conftest.$ac_ext >&5
47148
47149         ac_cv_header_ole2_h=no
47150 fi
47151
47152 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47153 fi
47154 { echo "$as_me:$LINENO: result: $ac_cv_header_ole2_h" >&5
47155 echo "${ECHO_T}$ac_cv_header_ole2_h" >&6; }
47156
47157
47158
47159     if test "$ac_cv_header_ole2_h" = "yes" ; then
47160         if test "$GCC" = yes ; then
47161             { echo "$as_me:$LINENO: checking if g++ requires -fvtable-thunks" >&5
47162 echo $ECHO_N "checking if g++ requires -fvtable-thunks... $ECHO_C" >&6; }
47163             cat >conftest.$ac_ext <<_ACEOF
47164 /* confdefs.h.  */
47165 _ACEOF
47166 cat confdefs.h >>conftest.$ac_ext
47167 cat >>conftest.$ac_ext <<_ACEOF
47168 /* end confdefs.h.  */
47169 #include <windows.h>
47170                             #include <ole2.h>
47171 int
47172 main ()
47173 {
47174
47175   ;
47176   return 0;
47177 }
47178 _ACEOF
47179 rm -f conftest.$ac_objext
47180 if { (ac_try="$ac_compile"
47181 case "(($ac_try" in
47182   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47183   *) ac_try_echo=$ac_try;;
47184 esac
47185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47186   (eval "$ac_compile") 2>conftest.er1
47187   ac_status=$?
47188   grep -v '^ *+' conftest.er1 >conftest.err
47189   rm -f conftest.er1
47190   cat conftest.err >&5
47191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47192   (exit $ac_status); } && {
47193          test -z "$ac_c_werror_flag" ||
47194          test ! -s conftest.err
47195        } && test -s conftest.$ac_objext; then
47196   { echo "$as_me:$LINENO: result: no" >&5
47197 echo "${ECHO_T}no" >&6; }
47198 else
47199   echo "$as_me: failed program was:" >&5
47200 sed 's/^/| /' conftest.$ac_ext >&5
47201
47202         { echo "$as_me:$LINENO: result: yes" >&5
47203 echo "${ECHO_T}yes" >&6; }
47204                             WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -fvtable-thunks"
47205 fi
47206
47207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47208             LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS"
47209             if test "$wxUSE_OLE" = "yes" ; then
47210                 cat >>confdefs.h <<\_ACEOF
47211 #define wxUSE_OLE 1
47212 _ACEOF
47213
47214                 cat >>confdefs.h <<\_ACEOF
47215 #define wxUSE_OLE_AUTOMATION 1
47216 _ACEOF
47217
47218                 cat >>confdefs.h <<\_ACEOF
47219 #define wxUSE_ACTIVEX 1
47220 _ACEOF
47221
47222                 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS oleauto"
47223             fi
47224         fi
47225
47226                 if test "$wxUSE_DATAOBJ" = "yes" ; then
47227             cat >>confdefs.h <<\_ACEOF
47228 #define wxUSE_DATAOBJ 1
47229 _ACEOF
47230
47231         fi
47232     else
47233         { echo "$as_me:$LINENO: WARNING: Some features disabled because OLE headers not found" >&5
47234 echo "$as_me: WARNING: Some features disabled because OLE headers not found" >&2;}
47235
47236         wxUSE_CLIPBOARD=no
47237         wxUSE_DRAG_AND_DROP=no
47238         wxUSE_DATAOBJ=no
47239         wxUSE_OLE=no
47240     fi
47241
47242     if test "$wxUSE_METAFILE" = "yes"; then
47243         cat >>confdefs.h <<\_ACEOF
47244 #define wxUSE_METAFILE 1
47245 _ACEOF
47246
47247
47248                 cat >>confdefs.h <<\_ACEOF
47249 #define wxUSE_ENH_METAFILE 1
47250 _ACEOF
47251
47252     fi
47253 fi
47254
47255 if test "$wxUSE_IPC" = "yes"; then
47256     if test "$wxUSE_SOCKETS" != "yes" -a "$USE_WIN32" != 1; then
47257         { echo "$as_me:$LINENO: WARNING: wxWidgets IPC classes require sockets... disabled" >&5
47258 echo "$as_me: WARNING: wxWidgets IPC classes require sockets... disabled" >&2;}
47259         wxUSE_IPC=no
47260     fi
47261
47262     if test "$wxUSE_IPC" = "yes"; then
47263         cat >>confdefs.h <<\_ACEOF
47264 #define wxUSE_IPC 1
47265 _ACEOF
47266
47267         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ipc"
47268     fi
47269 fi
47270
47271 if test "$wxUSE_DATAOBJ" = "yes"; then
47272     if test "$wxUSE_MGL" = 1 -o "$wxUSE_DFB" = 1; then
47273         { echo "$as_me:$LINENO: WARNING: wxDataObject not yet supported under $TOOLKIT... disabled" >&5
47274 echo "$as_me: WARNING: wxDataObject not yet supported under $TOOLKIT... disabled" >&2;}
47275         wxUSE_DATAOBJ=no
47276     else
47277         cat >>confdefs.h <<\_ACEOF
47278 #define wxUSE_DATAOBJ 1
47279 _ACEOF
47280
47281     fi
47282 else
47283     { echo "$as_me:$LINENO: WARNING: Clipboard and drag-and-drop require wxDataObject -- disabled" >&5
47284 echo "$as_me: WARNING: Clipboard and drag-and-drop require wxDataObject -- disabled" >&2;}
47285     wxUSE_CLIPBOARD=no
47286     wxUSE_DRAG_AND_DROP=no
47287 fi
47288
47289 if test "$wxUSE_CLIPBOARD" = "yes"; then
47290     if test "$wxUSE_MGL" = 1 -o "$wxUSE_DFB" = 1; then
47291         { echo "$as_me:$LINENO: WARNING: Clipboard not yet supported under $TOOLKIT... disabled" >&5
47292 echo "$as_me: WARNING: Clipboard not yet supported under $TOOLKIT... disabled" >&2;}
47293         wxUSE_CLIPBOARD=no
47294     fi
47295
47296     if test "$wxUSE_CLIPBOARD" = "yes"; then
47297         cat >>confdefs.h <<\_ACEOF
47298 #define wxUSE_CLIPBOARD 1
47299 _ACEOF
47300
47301     fi
47302 fi
47303
47304 if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
47305     if test "$wxUSE_GTK" = 1; then
47306         if test "$WXGTK12" != 1; then
47307             { echo "$as_me:$LINENO: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&5
47308 echo "$as_me: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&2;}
47309             wxUSE_DRAG_AND_DROP=no
47310         fi
47311     fi
47312
47313     if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_X11" = 1 -o "$wxUSE_MGL" = 1 -o \
47314             "$wxUSE_DFB" = 1; then
47315         { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under $TOOLKIT... disabled" >&5
47316 echo "$as_me: WARNING: Drag and drop not yet supported under $TOOLKIT... disabled" >&2;}
47317         wxUSE_DRAG_AND_DROP=no
47318     fi
47319
47320     if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
47321         cat >>confdefs.h <<\_ACEOF
47322 #define wxUSE_DRAG_AND_DROP 1
47323 _ACEOF
47324
47325     fi
47326
47327 fi
47328
47329 if test "$wxUSE_DRAG_AND_DROP" = "yes" -o "$wxUSE_CLIPBOARD" = "yes"; then
47330     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
47331 fi
47332
47333 if test "$wxUSE_CLIPBOARD" = "yes"; then
47334     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS clipboard"
47335 fi
47336
47337 if test "$wxUSE_SPLINES" = "yes" ; then
47338   cat >>confdefs.h <<\_ACEOF
47339 #define wxUSE_SPLINES 1
47340 _ACEOF
47341
47342 fi
47343
47344 if test "$wxUSE_MOUSEWHEEL" = "yes" ; then
47345   cat >>confdefs.h <<\_ACEOF
47346 #define wxUSE_MOUSEWHEEL 1
47347 _ACEOF
47348
47349 fi
47350
47351 if test "$wxUSE_UIACTIONSIMULATOR" = "yes" ; then
47352     cat >>confdefs.h <<\_ACEOF
47353 #define wxUSE_UIACTIONSIMULATOR 1
47354 _ACEOF
47355
47356     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS uiaction"
47357 fi
47358
47359 if test "$wxUSE_DC_TRANSFORM_MATRIX" = "yes" ; then
47360     cat >>confdefs.h <<\_ACEOF
47361 #define wxUSE_DC_TRANSFORM_MATRIX 1
47362 _ACEOF
47363
47364 fi
47365
47366
47367 USES_CONTROLS=0
47368 if test "$wxUSE_CONTROLS" = "yes"; then
47369   USES_CONTROLS=1
47370 fi
47371
47372 if test "$wxUSE_MARKUP" = "yes"; then
47373   cat >>confdefs.h <<\_ACEOF
47374 #define wxUSE_MARKUP 1
47375 _ACEOF
47376
47377 fi
47378
47379 if test "$wxUSE_ACCEL" = "yes"; then
47380   cat >>confdefs.h <<\_ACEOF
47381 #define wxUSE_ACCEL 1
47382 _ACEOF
47383
47384   USES_CONTROLS=1
47385 fi
47386
47387 if test "$wxUSE_ANIMATIONCTRL" = "yes"; then
47388   cat >>confdefs.h <<\_ACEOF
47389 #define wxUSE_ANIMATIONCTRL 1
47390 _ACEOF
47391
47392   USES_CONTROLS=1
47393   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS animate"
47394 fi
47395
47396 if test "$wxUSE_BUTTON" = "yes"; then
47397   cat >>confdefs.h <<\_ACEOF
47398 #define wxUSE_BUTTON 1
47399 _ACEOF
47400
47401   USES_CONTROLS=1
47402 fi
47403
47404 if test "$wxUSE_BMPBUTTON" = "yes"; then
47405   cat >>confdefs.h <<\_ACEOF
47406 #define wxUSE_BMPBUTTON 1
47407 _ACEOF
47408
47409   USES_CONTROLS=1
47410 fi
47411
47412 if test "$wxUSE_CALCTRL" = "yes"; then
47413   cat >>confdefs.h <<\_ACEOF
47414 #define wxUSE_CALENDARCTRL 1
47415 _ACEOF
47416
47417   USES_CONTROLS=1
47418   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
47419 fi
47420
47421 if test "$wxUSE_CARET" = "yes"; then
47422   cat >>confdefs.h <<\_ACEOF
47423 #define wxUSE_CARET 1
47424 _ACEOF
47425
47426   USES_CONTROLS=1
47427   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
47428 fi
47429
47430 if test "$wxUSE_COLLPANE" = "yes"; then
47431     cat >>confdefs.h <<\_ACEOF
47432 #define wxUSE_COLLPANE 1
47433 _ACEOF
47434
47435     USES_CONTROLS=1
47436     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS collpane"
47437 fi
47438
47439 if test "$wxUSE_COMBOBOX" = "yes"; then
47440   cat >>confdefs.h <<\_ACEOF
47441 #define wxUSE_COMBOBOX 1
47442 _ACEOF
47443
47444   USES_CONTROLS=1
47445 fi
47446
47447 if test "$wxUSE_COMBOCTRL" = "yes"; then
47448   cat >>confdefs.h <<\_ACEOF
47449 #define wxUSE_COMBOCTRL 1
47450 _ACEOF
47451
47452   USES_CONTROLS=1
47453 fi
47454
47455 if test "$wxUSE_COMMANDLINKBUTTON" = "yes"; then
47456   cat >>confdefs.h <<\_ACEOF
47457 #define wxUSE_COMMANDLINKBUTTON 1
47458 _ACEOF
47459
47460   USES_CONTROLS=1
47461 fi
47462
47463 if test "$wxUSE_CHOICE" = "yes"; then
47464   cat >>confdefs.h <<\_ACEOF
47465 #define wxUSE_CHOICE 1
47466 _ACEOF
47467
47468   USES_CONTROLS=1
47469 fi
47470
47471 if test "$wxUSE_CHOICEBOOK" = "yes"; then
47472     cat >>confdefs.h <<\_ACEOF
47473 #define wxUSE_CHOICEBOOK 1
47474 _ACEOF
47475
47476     USES_CONTROLS=1
47477 fi
47478
47479 if test "$wxUSE_CHECKBOX" = "yes"; then
47480   cat >>confdefs.h <<\_ACEOF
47481 #define wxUSE_CHECKBOX 1
47482 _ACEOF
47483
47484   USES_CONTROLS=1
47485 fi
47486
47487 if test "$wxUSE_CHECKLST" = "yes"; then
47488   cat >>confdefs.h <<\_ACEOF
47489 #define wxUSE_CHECKLISTBOX 1
47490 _ACEOF
47491
47492   USES_CONTROLS=1
47493 fi
47494
47495 if test "$wxUSE_COLOURPICKERCTRL" = "yes"; then
47496   cat >>confdefs.h <<\_ACEOF
47497 #define wxUSE_COLOURPICKERCTRL 1
47498 _ACEOF
47499
47500   USES_CONTROLS=1
47501 fi
47502
47503 if test "$wxUSE_DATEPICKCTRL" = "yes"; then
47504   cat >>confdefs.h <<\_ACEOF
47505 #define wxUSE_DATEPICKCTRL 1
47506 _ACEOF
47507
47508   USES_CONTROLS=1
47509 fi
47510
47511 if test "$wxUSE_DIRPICKERCTRL" = "yes"; then
47512   cat >>confdefs.h <<\_ACEOF
47513 #define wxUSE_DIRPICKERCTRL 1
47514 _ACEOF
47515
47516   USES_CONTROLS=1
47517 fi
47518
47519 if test "$wxUSE_FILECTRL" = "yes"; then
47520   cat >>confdefs.h <<\_ACEOF
47521 #define wxUSE_FILECTRL 1
47522 _ACEOF
47523
47524   USES_CONTROLS=1
47525 fi
47526
47527 if test "$wxUSE_FILEPICKERCTRL" = "yes"; then
47528   cat >>confdefs.h <<\_ACEOF
47529 #define wxUSE_FILEPICKERCTRL 1
47530 _ACEOF
47531
47532   USES_CONTROLS=1
47533 fi
47534
47535 if test "$wxUSE_FONTPICKERCTRL" = "yes"; then
47536   cat >>confdefs.h <<\_ACEOF
47537 #define wxUSE_FONTPICKERCTRL 1
47538 _ACEOF
47539
47540   USES_CONTROLS=1
47541 fi
47542
47543 if test "$wxUSE_DISPLAY" = "yes"; then
47544     if test "$wxUSE_DFB" = 1 -o "$wxUSE_MGL" = 1; then
47545         { echo "$as_me:$LINENO: WARNING: wxDisplay not yet supported under $TOOLKIT... disabled" >&5
47546 echo "$as_me: WARNING: wxDisplay not yet supported under $TOOLKIT... disabled" >&2;}
47547         wxUSE_DISPLAY=no
47548     else
47549         cat >>confdefs.h <<\_ACEOF
47550 #define wxUSE_DISPLAY 1
47551 _ACEOF
47552
47553         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS display"
47554     fi
47555 fi
47556
47557 if test "$wxUSE_DETECT_SM" = "yes"; then
47558     cat >>confdefs.h <<\_ACEOF
47559 #define wxUSE_DETECT_SM 1
47560 _ACEOF
47561
47562 fi
47563
47564 if test "$wxUSE_GAUGE" = "yes"; then
47565   cat >>confdefs.h <<\_ACEOF
47566 #define wxUSE_GAUGE 1
47567 _ACEOF
47568
47569   USES_CONTROLS=1
47570 fi
47571
47572 if test "$wxUSE_GRID" = "yes"; then
47573   cat >>confdefs.h <<\_ACEOF
47574 #define wxUSE_GRID 1
47575 _ACEOF
47576
47577   USES_CONTROLS=1
47578   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
47579 fi
47580
47581 if test "$wxUSE_HEADERCTRL" = "yes"; then
47582   cat >>confdefs.h <<\_ACEOF
47583 #define wxUSE_HEADERCTRL 1
47584 _ACEOF
47585
47586   USES_CONTROLS=1
47587 fi
47588
47589 if test "$wxUSE_HYPERLINKCTRL" = "yes"; then
47590   cat >>confdefs.h <<\_ACEOF
47591 #define wxUSE_HYPERLINKCTRL 1
47592 _ACEOF
47593
47594   USES_CONTROLS=1
47595 fi
47596
47597 if test "$wxUSE_BITMAPCOMBOBOX" = "yes"; then
47598   cat >>confdefs.h <<\_ACEOF
47599 #define wxUSE_BITMAPCOMBOBOX 1
47600 _ACEOF
47601
47602   USES_CONTROLS=1
47603 fi
47604
47605 if test "$wxUSE_DATAVIEWCTRL" = "yes"; then
47606   cat >>confdefs.h <<\_ACEOF
47607 #define wxUSE_DATAVIEWCTRL 1
47608 _ACEOF
47609
47610   USES_CONTROLS=1
47611   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dataview"
47612 fi
47613
47614 if test "$wxUSE_IMAGLIST" = "yes"; then
47615     cat >>confdefs.h <<\_ACEOF
47616 #define wxUSE_IMAGLIST 1
47617 _ACEOF
47618
47619 fi
47620
47621 if test "$wxUSE_INFOBAR" = "yes"; then
47622     cat >>confdefs.h <<\_ACEOF
47623 #define wxUSE_INFOBAR 1
47624 _ACEOF
47625
47626 fi
47627
47628 if test "$wxUSE_LISTBOOK" = "yes"; then
47629     cat >>confdefs.h <<\_ACEOF
47630 #define wxUSE_LISTBOOK 1
47631 _ACEOF
47632
47633     USES_CONTROLS=1
47634 fi
47635
47636 if test "$wxUSE_LISTBOX" = "yes"; then
47637     cat >>confdefs.h <<\_ACEOF
47638 #define wxUSE_LISTBOX 1
47639 _ACEOF
47640
47641     USES_CONTROLS=1
47642 fi
47643
47644 if test "$wxUSE_LISTCTRL" = "yes"; then
47645     if test "$wxUSE_IMAGLIST" = "yes"; then
47646         cat >>confdefs.h <<\_ACEOF
47647 #define wxUSE_LISTCTRL 1
47648 _ACEOF
47649
47650         USES_CONTROLS=1
47651         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
47652     else
47653         { echo "$as_me:$LINENO: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&5
47654 echo "$as_me: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&2;}
47655     fi
47656 fi
47657
47658 if test "$wxUSE_EDITABLELISTBOX" = "yes"; then
47659     cat >>confdefs.h <<\_ACEOF
47660 #define wxUSE_EDITABLELISTBOX 1
47661 _ACEOF
47662
47663     USES_CONTROLS=1
47664 fi
47665
47666 if test "$wxUSE_NOTEBOOK" = "yes"; then
47667     cat >>confdefs.h <<\_ACEOF
47668 #define wxUSE_NOTEBOOK 1
47669 _ACEOF
47670
47671     USES_CONTROLS=1
47672     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
47673 fi
47674
47675 if test "$wxUSE_NOTIFICATION_MESSAGE" = "yes"; then
47676     cat >>confdefs.h <<\_ACEOF
47677 #define wxUSE_NOTIFICATION_MESSAGE 1
47678 _ACEOF
47679
47680 fi
47681
47682 if test "$wxUSE_ODCOMBOBOX" = "yes"; then
47683   cat >>confdefs.h <<\_ACEOF
47684 #define wxUSE_ODCOMBOBOX 1
47685 _ACEOF
47686
47687   USES_CONTROLS=1
47688   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS combo"
47689 fi
47690
47691 if test "$wxUSE_RADIOBOX" = "yes"; then
47692     cat >>confdefs.h <<\_ACEOF
47693 #define wxUSE_RADIOBOX 1
47694 _ACEOF
47695
47696     USES_CONTROLS=1
47697 fi
47698
47699 if test "$wxUSE_RADIOBTN" = "yes"; then
47700     cat >>confdefs.h <<\_ACEOF
47701 #define wxUSE_RADIOBTN 1
47702 _ACEOF
47703
47704     USES_CONTROLS=1
47705 fi
47706
47707 if test "$wxUSE_REARRANGECTRL" = "yes"; then
47708     cat >>confdefs.h <<\_ACEOF
47709 #define wxUSE_REARRANGECTRL 1
47710 _ACEOF
47711
47712 fi
47713
47714 if test "$wxUSE_RICHMSGDLG" = "yes"; then
47715     cat >>confdefs.h <<\_ACEOF
47716 #define wxUSE_RICHMSGDLG 1
47717 _ACEOF
47718
47719 fi
47720
47721 if test "$wxUSE_SASH" = "yes"; then
47722     cat >>confdefs.h <<\_ACEOF
47723 #define wxUSE_SASH 1
47724 _ACEOF
47725
47726     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
47727 fi
47728
47729 if test "$wxUSE_SCROLLBAR" = "yes"; then
47730     cat >>confdefs.h <<\_ACEOF
47731 #define wxUSE_SCROLLBAR 1
47732 _ACEOF
47733
47734     USES_CONTROLS=1
47735     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll"
47736 fi
47737
47738 if test "$wxUSE_SEARCHCTRL" = "yes"; then
47739     cat >>confdefs.h <<\_ACEOF
47740 #define wxUSE_SEARCHCTRL 1
47741 _ACEOF
47742
47743     USES_CONTROLS=1
47744 fi
47745
47746 if test "$wxUSE_SLIDER" = "yes"; then
47747     cat >>confdefs.h <<\_ACEOF
47748 #define wxUSE_SLIDER 1
47749 _ACEOF
47750
47751     USES_CONTROLS=1
47752 fi
47753
47754 if test "$wxUSE_SPINBTN" = "yes"; then
47755     cat >>confdefs.h <<\_ACEOF
47756 #define wxUSE_SPINBTN 1
47757 _ACEOF
47758
47759     USES_CONTROLS=1
47760 fi
47761
47762 if test "$wxUSE_SPINCTRL" = "yes"; then
47763     cat >>confdefs.h <<\_ACEOF
47764 #define wxUSE_SPINCTRL 1
47765 _ACEOF
47766
47767     USES_CONTROLS=1
47768 fi
47769
47770 if test "$wxUSE_SPLITTER" = "yes"; then
47771     cat >>confdefs.h <<\_ACEOF
47772 #define wxUSE_SPLITTER 1
47773 _ACEOF
47774
47775     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
47776 fi
47777
47778 if test "$wxUSE_STATBMP" = "yes"; then
47779     cat >>confdefs.h <<\_ACEOF
47780 #define wxUSE_STATBMP 1
47781 _ACEOF
47782
47783     USES_CONTROLS=1
47784 fi
47785
47786 if test "$wxUSE_STATBOX" = "yes"; then
47787     cat >>confdefs.h <<\_ACEOF
47788 #define wxUSE_STATBOX 1
47789 _ACEOF
47790
47791     USES_CONTROLS=1
47792 fi
47793
47794 if test "$wxUSE_STATTEXT" = "yes"; then
47795     cat >>confdefs.h <<\_ACEOF
47796 #define wxUSE_STATTEXT 1
47797 _ACEOF
47798
47799     USES_CONTROLS=1
47800 fi
47801
47802 if test "$wxUSE_STATLINE" = "yes"; then
47803     cat >>confdefs.h <<\_ACEOF
47804 #define wxUSE_STATLINE 1
47805 _ACEOF
47806
47807     USES_CONTROLS=1
47808 fi
47809
47810 if test "$wxUSE_STATUSBAR" = "yes"; then
47811         cat >>confdefs.h <<\_ACEOF
47812 #define wxUSE_NATIVE_STATUSBAR 1
47813 _ACEOF
47814
47815     cat >>confdefs.h <<\_ACEOF
47816 #define wxUSE_STATUSBAR 1
47817 _ACEOF
47818
47819     USES_CONTROLS=1
47820
47821     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
47822 fi
47823
47824 if test "$wxUSE_TEXTCTRL" = "yes"; then
47825     cat >>confdefs.h <<\_ACEOF
47826 #define wxUSE_TEXTCTRL 1
47827 _ACEOF
47828
47829     USES_CONTROLS=1
47830     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
47831
47832             cat >>confdefs.h <<\_ACEOF
47833 #define wxUSE_RICHEDIT 1
47834 _ACEOF
47835
47836     cat >>confdefs.h <<\_ACEOF
47837 #define wxUSE_RICHEDIT2 1
47838 _ACEOF
47839
47840 fi
47841
47842 if test "$wxUSE_TOGGLEBTN" = "yes"; then
47843     if test "$wxUSE_OLD_COCOA" = 1 ; then
47844         { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&5
47845 echo "$as_me: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&2;}
47846         wxUSE_TOGGLEBTN=no
47847     fi
47848
47849     if test "$wxUSE_TOGGLEBTN" = "yes"; then
47850         cat >>confdefs.h <<\_ACEOF
47851 #define wxUSE_TOGGLEBTN 1
47852 _ACEOF
47853
47854         USES_CONTROLS=1
47855     fi
47856 fi
47857
47858 if test "$wxUSE_TOOLBAR" = "yes"; then
47859     cat >>confdefs.h <<\_ACEOF
47860 #define wxUSE_TOOLBAR 1
47861 _ACEOF
47862
47863     USES_CONTROLS=1
47864
47865     if test "$wxUSE_UNIVERSAL" = "yes"; then
47866         wxUSE_TOOLBAR_NATIVE="no"
47867     else
47868         wxUSE_TOOLBAR_NATIVE="yes"
47869         cat >>confdefs.h <<\_ACEOF
47870 #define wxUSE_TOOLBAR_NATIVE 1
47871 _ACEOF
47872
47873     fi
47874
47875     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
47876 fi
47877
47878 if test "$wxUSE_TOOLTIPS" = "yes"; then
47879     if test "$wxUSE_MOTIF" = 1; then
47880         { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet under Motif... disabled" >&5
47881 echo "$as_me: WARNING: wxTooltip not supported yet under Motif... disabled" >&2;}
47882     else
47883         if test "$wxUSE_UNIVERSAL" = "yes"; then
47884             { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&5
47885 echo "$as_me: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&2;}
47886         else
47887             cat >>confdefs.h <<\_ACEOF
47888 #define wxUSE_TOOLTIPS 1
47889 _ACEOF
47890
47891         fi
47892     fi
47893 fi
47894
47895 if test "$wxUSE_TREEBOOK" = "yes"; then
47896     cat >>confdefs.h <<\_ACEOF
47897 #define wxUSE_TREEBOOK 1
47898 _ACEOF
47899
47900     USES_CONTROLS=1
47901 fi
47902
47903 if test "$wxUSE_TOOLBOOK" = "yes"; then
47904     cat >>confdefs.h <<\_ACEOF
47905 #define wxUSE_TOOLBOOK 1
47906 _ACEOF
47907
47908     USES_CONTROLS=1
47909 fi
47910
47911 if test "$wxUSE_TREECTRL" = "yes"; then
47912     if test "$wxUSE_IMAGLIST" = "yes"; then
47913         cat >>confdefs.h <<\_ACEOF
47914 #define wxUSE_TREECTRL 1
47915 _ACEOF
47916
47917         USES_CONTROLS=1
47918         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
47919     else
47920         { echo "$as_me:$LINENO: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&5
47921 echo "$as_me: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&2;}
47922     fi
47923 fi
47924
47925 if test "$wxUSE_POPUPWIN" = "yes"; then
47926     if test "$wxUSE_OLD_COCOA" = 1 ; then
47927         { echo "$as_me:$LINENO: WARNING: Popup window not yet supported under Mac OS X... disabled" >&5
47928 echo "$as_me: WARNING: Popup window not yet supported under Mac OS X... disabled" >&2;}
47929     else
47930         if test "$wxUSE_PM" = 1; then
47931             { echo "$as_me:$LINENO: WARNING: wxPopupWindow not yet supported under PM... disabled" >&5
47932 echo "$as_me: WARNING: wxPopupWindow not yet supported under PM... disabled" >&2;}
47933         else
47934             cat >>confdefs.h <<\_ACEOF
47935 #define wxUSE_POPUPWIN 1
47936 _ACEOF
47937
47938             SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS popup"
47939
47940             USES_CONTROLS=1
47941         fi
47942     fi
47943 fi
47944
47945 if test "$wxUSE_DIALUP_MANAGER" = "yes"; then
47946     if test "$wxUSE_MAC" = 1 -o "$wxUSE_OLD_COCOA" = 1 -o "$wxUSE_MGL" = 1; then
47947         { echo "$as_me:$LINENO: WARNING: Dialup manager not supported on this platform... disabled" >&5
47948 echo "$as_me: WARNING: Dialup manager not supported on this platform... disabled" >&2;}
47949     else
47950         cat >>confdefs.h <<\_ACEOF
47951 #define wxUSE_DIALUP_MANAGER 1
47952 _ACEOF
47953
47954         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
47955     fi
47956 fi
47957
47958 if test "$wxUSE_TIPWINDOW" = "yes"; then
47959     if test "$wxUSE_PM" = 1; then
47960         { echo "$as_me:$LINENO: WARNING: wxTipWindow not yet supported under PM... disabled" >&5
47961 echo "$as_me: WARNING: wxTipWindow not yet supported under PM... disabled" >&2;}
47962     else
47963         cat >>confdefs.h <<\_ACEOF
47964 #define wxUSE_TIPWINDOW 1
47965 _ACEOF
47966
47967     fi
47968 fi
47969
47970 if test "$USES_CONTROLS" = 1; then
47971     cat >>confdefs.h <<\_ACEOF
47972 #define wxUSE_CONTROLS 1
47973 _ACEOF
47974
47975 fi
47976
47977
47978 if test "$wxUSE_ACCESSIBILITY" = "yes"; then
47979     cat >>confdefs.h <<\_ACEOF
47980 #define wxUSE_ACCESSIBILITY 1
47981 _ACEOF
47982
47983     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS access"
47984 fi
47985
47986 if test "$wxUSE_ARTPROVIDER_STD" = "yes"; then
47987     cat >>confdefs.h <<\_ACEOF
47988 #define wxUSE_ARTPROVIDER_STD 1
47989 _ACEOF
47990
47991 fi
47992
47993 if test "$wxUSE_ARTPROVIDER_TANGO" = "auto"; then
47994             if test "$wxUSE_GTK" != 1; then
47995                 if test "$wxUSE_LIBPNG" != no -a \
47996                 "$wxUSE_IMAGE" = yes -a \
47997                 "$wxUSE_STREAMS" = yes; then
47998             wxUSE_ARTPROVIDER_TANGO="yes"
47999         fi
48000     fi
48001 fi
48002
48003 if test "$wxUSE_ARTPROVIDER_TANGO" = "yes"; then
48004     cat >>confdefs.h <<\_ACEOF
48005 #define wxUSE_ARTPROVIDER_TANGO 1
48006 _ACEOF
48007
48008 fi
48009
48010 if test "$wxUSE_DRAGIMAGE" = "yes"; then
48011     cat >>confdefs.h <<\_ACEOF
48012 #define wxUSE_DRAGIMAGE 1
48013 _ACEOF
48014
48015     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
48016 fi
48017
48018 if test "$wxUSE_EXCEPTIONS" = "yes"; then
48019     if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
48020         { echo "$as_me:$LINENO: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&5
48021 echo "$as_me: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&2;}
48022     else
48023         cat >>confdefs.h <<\_ACEOF
48024 #define wxUSE_EXCEPTIONS 1
48025 _ACEOF
48026
48027         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS except"
48028     fi
48029 fi
48030
48031 USE_HTML=0
48032 if test "$wxUSE_HTML" = "yes"; then
48033     cat >>confdefs.h <<\_ACEOF
48034 #define wxUSE_HTML 1
48035 _ACEOF
48036
48037     USE_HTML=1
48038     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html html/about html/help html/helpview html/printing html/test html/virtual html/widget html/zip htlbox"
48039 fi
48040 if test "$wxUSE_WEBKIT" = "yes"; then
48041     if test "$wxUSE_MAC" = 1 -a "$USE_DARWIN" = 1; then
48042         old_CPPFLAGS="$CPPFLAGS"
48043         CPPFLAGS="-x objective-c++ $CPPFLAGS"
48044         { echo "$as_me:$LINENO: checking for WebKit/HIWebView.h" >&5
48045 echo $ECHO_N "checking for WebKit/HIWebView.h... $ECHO_C" >&6; }
48046 if test "${ac_cv_header_WebKit_HIWebView_h+set}" = set; then
48047   echo $ECHO_N "(cached) $ECHO_C" >&6
48048 else
48049   cat >conftest.$ac_ext <<_ACEOF
48050 /* confdefs.h.  */
48051 _ACEOF
48052 cat confdefs.h >>conftest.$ac_ext
48053 cat >>conftest.$ac_ext <<_ACEOF
48054 /* end confdefs.h.  */
48055
48056                            #include <Carbon/Carbon.h>
48057                            #include <WebKit/WebKit.h>
48058
48059
48060 #include <WebKit/HIWebView.h>
48061 _ACEOF
48062 rm -f conftest.$ac_objext
48063 if { (ac_try="$ac_compile"
48064 case "(($ac_try" in
48065   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48066   *) ac_try_echo=$ac_try;;
48067 esac
48068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48069   (eval "$ac_compile") 2>conftest.er1
48070   ac_status=$?
48071   grep -v '^ *+' conftest.er1 >conftest.err
48072   rm -f conftest.er1
48073   cat conftest.err >&5
48074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48075   (exit $ac_status); } && {
48076          test -z "$ac_c_werror_flag" ||
48077          test ! -s conftest.err
48078        } && test -s conftest.$ac_objext; then
48079   ac_cv_header_WebKit_HIWebView_h=yes
48080 else
48081   echo "$as_me: failed program was:" >&5
48082 sed 's/^/| /' conftest.$ac_ext >&5
48083
48084         ac_cv_header_WebKit_HIWebView_h=no
48085 fi
48086
48087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
48088 fi
48089 { echo "$as_me:$LINENO: result: $ac_cv_header_WebKit_HIWebView_h" >&5
48090 echo "${ECHO_T}$ac_cv_header_WebKit_HIWebView_h" >&6; }
48091 if test $ac_cv_header_WebKit_HIWebView_h = yes; then
48092
48093                            cat >>confdefs.h <<\_ACEOF
48094 #define wxUSE_WEBKIT 1
48095 _ACEOF
48096
48097                            WEBKIT_LINK="-framework WebKit"
48098
48099 else
48100
48101                            { echo "$as_me:$LINENO: WARNING: WebKit headers not found; disabling wxWebKit" >&5
48102 echo "$as_me: WARNING: WebKit headers not found; disabling wxWebKit" >&2;}
48103                            wxUSE_WEBKIT=no
48104
48105 fi
48106
48107
48108         CPPFLAGS="$old_CPPFLAGS"
48109     elif test "$wxUSE_OLD_COCOA" = 1; then
48110         cat >>confdefs.h <<\_ACEOF
48111 #define wxUSE_WEBKIT 1
48112 _ACEOF
48113
48114     else
48115         wxUSE_WEBKIT=no
48116     fi
48117     if test "$wxUSE_WEBKIT" = "yes"; then
48118         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html/htmlctrl"
48119     fi
48120 fi
48121
48122 USE_XRC=0
48123 if test "$wxUSE_XRC" = "yes"; then
48124     if test "$wxUSE_XML" != "yes"; then
48125         { echo "$as_me:$LINENO: WARNING: XML library not built, XRC resources disabled" >&5
48126 echo "$as_me: WARNING: XML library not built, XRC resources disabled" >&2;}
48127         wxUSE_XRC=no
48128     else
48129         cat >>confdefs.h <<\_ACEOF
48130 #define wxUSE_XRC 1
48131 _ACEOF
48132
48133         USE_XRC=1
48134         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS xrc"
48135     fi
48136 fi
48137
48138 USE_AUI=0
48139 if test "$wxUSE_AUI" = "yes"; then
48140    cat >>confdefs.h <<\_ACEOF
48141 #define wxUSE_AUI 1
48142 _ACEOF
48143
48144    USE_AUI=1
48145    SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS aui"
48146 fi
48147
48148 USE_PROPGRID=0
48149 if test "$wxUSE_PROPGRID" = "yes"; then
48150    cat >>confdefs.h <<\_ACEOF
48151 #define wxUSE_PROPGRID 1
48152 _ACEOF
48153
48154    USE_PROPGRID=1
48155    SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS propgrid"
48156 fi
48157
48158 USE_RIBBON=0
48159 if test "$wxUSE_RIBBON" = "yes"; then
48160    cat >>confdefs.h <<\_ACEOF
48161 #define wxUSE_RIBBON 1
48162 _ACEOF
48163
48164    USE_RIBBON=1
48165    SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ribbon"
48166 fi
48167
48168 USE_STC=0
48169 if test "$wxUSE_STC" = "yes"; then
48170    cat >>confdefs.h <<\_ACEOF
48171 #define wxUSE_STC 1
48172 _ACEOF
48173
48174    USE_STC=1
48175    SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS stc"
48176
48177       # Extract the first word of "python", so it can be a program name with args.
48178 set dummy python; ac_word=$2
48179 { echo "$as_me:$LINENO: checking for $ac_word" >&5
48180 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
48181 if test "${ac_cv_path_PYTHON+set}" = set; then
48182   echo $ECHO_N "(cached) $ECHO_C" >&6
48183 else
48184   case $PYTHON in
48185   [\\/]* | ?:[\\/]*)
48186   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
48187   ;;
48188   *)
48189   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
48190 for as_dir in $PATH
48191 do
48192   IFS=$as_save_IFS
48193   test -z "$as_dir" && as_dir=.
48194   for ac_exec_ext in '' $ac_executable_extensions; do
48195   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
48196     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
48197     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
48198     break 2
48199   fi
48200 done
48201 done
48202 IFS=$as_save_IFS
48203
48204   ;;
48205 esac
48206 fi
48207 PYTHON=$ac_cv_path_PYTHON
48208 if test -n "$PYTHON"; then
48209   { echo "$as_me:$LINENO: result: $PYTHON" >&5
48210 echo "${ECHO_T}$PYTHON" >&6; }
48211 else
48212   { echo "$as_me:$LINENO: result: no" >&5
48213 echo "${ECHO_T}no" >&6; }
48214 fi
48215
48216
48217    if test "x$PYTHON" = "x"; then
48218      COND_PYTHON="#"
48219    fi
48220
48221 fi
48222
48223 if test "$wxUSE_MENUS" = "yes"; then
48224     cat >>confdefs.h <<\_ACEOF
48225 #define wxUSE_MENUS 1
48226 _ACEOF
48227
48228     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
48229 fi
48230
48231 if test "$wxUSE_METAFILE" = "yes"; then
48232     cat >>confdefs.h <<\_ACEOF
48233 #define wxUSE_METAFILE 1
48234 _ACEOF
48235
48236 fi
48237
48238 if test "$wxUSE_MIMETYPE" = "yes"; then
48239     cat >>confdefs.h <<\_ACEOF
48240 #define wxUSE_MIMETYPE 1
48241 _ACEOF
48242
48243 fi
48244
48245 if test "$wxUSE_MINIFRAME" = "yes"; then
48246     cat >>confdefs.h <<\_ACEOF
48247 #define wxUSE_MINIFRAME 1
48248 _ACEOF
48249
48250 fi
48251
48252 if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
48253     cat >>confdefs.h <<\_ACEOF
48254 #define wxUSE_SYSTEM_OPTIONS 1
48255 _ACEOF
48256
48257 fi
48258
48259 if test "$wxUSE_TASKBARICON" = "yes"; then
48260     cat >>confdefs.h <<\_ACEOF
48261 #define wxUSE_TASKBARICON 1
48262 _ACEOF
48263
48264     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar"
48265 fi
48266
48267
48268 if test "$wxUSE_VALIDATORS" = "yes"; then
48269     cat >>confdefs.h <<\_ACEOF
48270 #define wxUSE_VALIDATORS 1
48271 _ACEOF
48272
48273     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
48274 fi
48275
48276 if test "$wxUSE_PALETTE" = "yes" ; then
48277     if test "$wxUSE_DFB" = 1; then
48278         { echo "$as_me:$LINENO: WARNING: wxPalette not yet supported under DFB... disabled" >&5
48279 echo "$as_me: WARNING: wxPalette not yet supported under DFB... disabled" >&2;}
48280         wxUSE_PALETTE=no
48281     else
48282         cat >>confdefs.h <<\_ACEOF
48283 #define wxUSE_PALETTE 1
48284 _ACEOF
48285
48286     fi
48287 fi
48288
48289 if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then
48290     LIBS=" -lunicows $LIBS"
48291 fi
48292
48293 USE_RICHTEXT=0
48294 if test "$wxUSE_RICHTEXT" = "yes"; then
48295     cat >>confdefs.h <<\_ACEOF
48296 #define wxUSE_RICHTEXT 1
48297 _ACEOF
48298
48299     USE_RICHTEXT=1
48300     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS richtext"
48301 fi
48302
48303 USE_WEB=0
48304 if test "$wxUSE_WEB" = "yes"; then
48305    cat >>confdefs.h <<\_ACEOF
48306 #define wxUSE_WEB 1
48307 _ACEOF
48308
48309    USE_WEB=1
48310    SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS web"
48311
48312    if test "$wxUSE_WEBVIEW_WEBKIT" = "yes" -a "$wxUSE_GTK" = 1; then
48313        cat >>confdefs.h <<\_ACEOF
48314 #define wxUSE_WEBVIEW_WEBKIT 1
48315 _ACEOF
48316
48317        { echo "$as_me:$LINENO: checking for webkitgtk libraries" >&5
48318 echo $ECHO_N "checking for webkitgtk libraries... $ECHO_C" >&6; }
48319
48320   ac_find_libraries=
48321   for ac_dir in $SEARCH_LIB
48322   do
48323     for ac_extension in a so sl dylib dll.a; do
48324       if test -f "$ac_dir/libwebkitgtk-1.0.$ac_extension"; then
48325         ac_find_libraries=$ac_dir
48326         break 2
48327       fi
48328     done
48329   done
48330
48331        if test "$ac_find_libraries" != "" ; then
48332
48333     if test "$ac_find_libraries" = "default location"; then
48334     ac_path_to_link=""
48335   else
48336     echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
48337     result=$?
48338     if test $result = 0; then
48339       ac_path_to_link=""
48340     else
48341       ac_path_to_link=" -L$ac_find_libraries"
48342     fi
48343   fi
48344
48345            if test "$ac_path_to_link" != " -L/usr/lib" ; then
48346                LDFLAGS="$LDFLAGS $ac_path_to_link"
48347            fi
48348            GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lwebkitgtk-1.0"
48349            { echo "$as_me:$LINENO: result: yes" >&5
48350 echo "${ECHO_T}yes" >&6; }
48351        else
48352            { echo "$as_me:$LINENO: result: no" >&5
48353 echo "${ECHO_T}no" >&6; }
48354            { echo "$as_me:$LINENO: WARNING: libwebkitgtk-1.0 not found; disabling webkit backend" >&5
48355 echo "$as_me: WARNING: libwebkitgtk-1.0 not found; disabling webkit backend" >&2;}
48356            wxUSE_WEBVIEW_WEBKIT="no"
48357        fi
48358
48359        { echo "$as_me:$LINENO: checking for webkitgtk includes" >&5
48360 echo $ECHO_N "checking for webkitgtk includes... $ECHO_C" >&6; }
48361
48362 ac_find_includes=
48363 for ac_dir in $SEARCH_INCLUDE /usr/include/webkit-1.0 /usr/include
48364   do
48365     if test -f "$ac_dir/webkit/webkit.h"; then
48366       ac_find_includes=$ac_dir
48367       break
48368     fi
48369   done
48370
48371        if test "$ac_find_includes" != "" ; then
48372            { echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
48373 echo "${ECHO_T}found in $ac_find_includes" >&6; }
48374
48375     if test "x$ac_find_includes" = "x/usr/include"; then
48376     ac_path_to_include=""
48377   else
48378     echo "$CPPFLAGS" | grep "\-I$ac_find_includes" > /dev/null
48379     result=$?
48380     if test $result = 0; then
48381       ac_path_to_include=""
48382     else
48383       ac_path_to_include=" -I$ac_find_includes"
48384     fi
48385   fi
48386
48387            CPPFLAGS="$ac_path_to_include $CPPFLAGS"
48388        else
48389            { echo "$as_me:$LINENO: result: not found" >&5
48390 echo "${ECHO_T}not found" >&6; }
48391        fi
48392               { echo "$as_me:$LINENO: checking for libsoup includes" >&5
48393 echo $ECHO_N "checking for libsoup includes... $ECHO_C" >&6; }
48394
48395 ac_find_includes=
48396 for ac_dir in $SEARCH_INCLUDE /usr/include/libsoup-2.4 /usr/include
48397   do
48398     if test -f "$ac_dir/libsoup/soup.h"; then
48399       ac_find_includes=$ac_dir
48400       break
48401     fi
48402   done
48403
48404        if test "$ac_find_includes" != "" ; then
48405            { echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
48406 echo "${ECHO_T}found in $ac_find_includes" >&6; }
48407
48408     if test "x$ac_find_includes" = "x/usr/include"; then
48409     ac_path_to_include=""
48410   else
48411     echo "$CPPFLAGS" | grep "\-I$ac_find_includes" > /dev/null
48412     result=$?
48413     if test $result = 0; then
48414       ac_path_to_include=""
48415     else
48416       ac_path_to_include=" -I$ac_find_includes"
48417     fi
48418   fi
48419
48420            CPPFLAGS="$ac_path_to_include $CPPFLAGS"
48421        else
48422            { echo "$as_me:$LINENO: result: not found" >&5
48423 echo "${ECHO_T}not found" >&6; }
48424        fi
48425    fi
48426
48427     if test "$wxUSE_WEBVIEW_WEBKIT" = "yes" -a "$wxUSE_MAC" = 1 -a "$USE_DARWIN" = 1; then
48428         old_CPPFLAGS="$CPPFLAGS"
48429         CPPFLAGS="-x objective-c++ $CPPFLAGS"
48430         { echo "$as_me:$LINENO: checking for WebKit/HIWebView.h" >&5
48431 echo $ECHO_N "checking for WebKit/HIWebView.h... $ECHO_C" >&6; }
48432 if test "${ac_cv_header_WebKit_HIWebView_h+set}" = set; then
48433   echo $ECHO_N "(cached) $ECHO_C" >&6
48434 else
48435   cat >conftest.$ac_ext <<_ACEOF
48436 /* confdefs.h.  */
48437 _ACEOF
48438 cat confdefs.h >>conftest.$ac_ext
48439 cat >>conftest.$ac_ext <<_ACEOF
48440 /* end confdefs.h.  */
48441
48442                            #include <Carbon/Carbon.h>
48443                            #include <WebKit/WebKit.h>
48444
48445
48446 #include <WebKit/HIWebView.h>
48447 _ACEOF
48448 rm -f conftest.$ac_objext
48449 if { (ac_try="$ac_compile"
48450 case "(($ac_try" in
48451   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48452   *) ac_try_echo=$ac_try;;
48453 esac
48454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48455   (eval "$ac_compile") 2>conftest.er1
48456   ac_status=$?
48457   grep -v '^ *+' conftest.er1 >conftest.err
48458   rm -f conftest.er1
48459   cat conftest.err >&5
48460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48461   (exit $ac_status); } && {
48462          test -z "$ac_c_werror_flag" ||
48463          test ! -s conftest.err
48464        } && test -s conftest.$ac_objext; then
48465   ac_cv_header_WebKit_HIWebView_h=yes
48466 else
48467   echo "$as_me: failed program was:" >&5
48468 sed 's/^/| /' conftest.$ac_ext >&5
48469
48470         ac_cv_header_WebKit_HIWebView_h=no
48471 fi
48472
48473 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
48474 fi
48475 { echo "$as_me:$LINENO: result: $ac_cv_header_WebKit_HIWebView_h" >&5
48476 echo "${ECHO_T}$ac_cv_header_WebKit_HIWebView_h" >&6; }
48477 if test $ac_cv_header_WebKit_HIWebView_h = yes; then
48478
48479                            cat >>confdefs.h <<\_ACEOF
48480 #define wxUSE_WEBVIEW_WEBKIT 1
48481 _ACEOF
48482
48483                            WEBKIT_LINK="-framework WebKit"
48484
48485 else
48486
48487                            { echo "$as_me:$LINENO: WARNING: WebKit headers not found; disabling wxWebView WebKit" >&5
48488 echo "$as_me: WARNING: WebKit headers not found; disabling wxWebView WebKit" >&2;}
48489                            wxUSE_WEBVIEW_WEBKIT=no
48490
48491 fi
48492
48493
48494         CPPFLAGS="$old_CPPFLAGS"
48495     elif test "$wxUSE_OLD_COCOA" = 1; then
48496         cat >>confdefs.h <<\_ACEOF
48497 #define wxUSE_WEBVIEW_WEBKIT 1
48498 _ACEOF
48499
48500     else
48501         wxUSE_WEBVIEW_WEBKIT=no
48502     fi
48503 fi
48504
48505
48506 if test "$wxUSE_IMAGE" = "yes" ; then
48507     cat >>confdefs.h <<\_ACEOF
48508 #define wxUSE_IMAGE 1
48509 _ACEOF
48510
48511
48512     if test "$wxUSE_GIF" = "yes" ; then
48513       cat >>confdefs.h <<\_ACEOF
48514 #define wxUSE_GIF 1
48515 _ACEOF
48516
48517     fi
48518
48519     if test "$wxUSE_PCX" = "yes" ; then
48520       cat >>confdefs.h <<\_ACEOF
48521 #define wxUSE_PCX 1
48522 _ACEOF
48523
48524     fi
48525
48526     if test "$wxUSE_TGA" = "yes" ; then
48527       cat >>confdefs.h <<\_ACEOF
48528 #define wxUSE_TGA 1
48529 _ACEOF
48530
48531     fi
48532
48533     if test "$wxUSE_IFF" = "yes" ; then
48534       cat >>confdefs.h <<\_ACEOF
48535 #define wxUSE_IFF 1
48536 _ACEOF
48537
48538     fi
48539
48540     if test "$wxUSE_PNM" = "yes" ; then
48541       cat >>confdefs.h <<\_ACEOF
48542 #define wxUSE_PNM 1
48543 _ACEOF
48544
48545     fi
48546
48547     if test "$wxUSE_XPM" = "yes" ; then
48548       cat >>confdefs.h <<\_ACEOF
48549 #define wxUSE_XPM 1
48550 _ACEOF
48551
48552     fi
48553
48554     if test "$wxUSE_ICO_CUR" = "yes" ; then
48555       cat >>confdefs.h <<\_ACEOF
48556 #define wxUSE_ICO_CUR 1
48557 _ACEOF
48558
48559     fi
48560 fi
48561
48562
48563 if test "$wxUSE_ABOUTDLG" = "yes"; then
48564     cat >>confdefs.h <<\_ACEOF
48565 #define wxUSE_ABOUTDLG 1
48566 _ACEOF
48567
48568 fi
48569
48570 if test "$wxUSE_CHOICEDLG" = "yes"; then
48571     cat >>confdefs.h <<\_ACEOF
48572 #define wxUSE_CHOICEDLG 1
48573 _ACEOF
48574
48575 fi
48576
48577 if test "$wxUSE_COLOURDLG" = "yes"; then
48578     cat >>confdefs.h <<\_ACEOF
48579 #define wxUSE_COLOURDLG 1
48580 _ACEOF
48581
48582 fi
48583
48584 if test "$wxUSE_FILEDLG" = "yes"; then
48585     cat >>confdefs.h <<\_ACEOF
48586 #define wxUSE_FILEDLG 1
48587 _ACEOF
48588
48589 fi
48590
48591 if test "$wxUSE_FINDREPLDLG" = "yes"; then
48592     cat >>confdefs.h <<\_ACEOF
48593 #define wxUSE_FINDREPLDLG 1
48594 _ACEOF
48595
48596 fi
48597
48598 if test "$wxUSE_FONTDLG" = "yes"; then
48599     cat >>confdefs.h <<\_ACEOF
48600 #define wxUSE_FONTDLG 1
48601 _ACEOF
48602
48603 fi
48604
48605 if test "$wxUSE_DIRDLG" = "yes"; then
48606     if test "$wxUSE_TREECTRL" != "yes"; then
48607         { echo "$as_me:$LINENO: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&5
48608 echo "$as_me: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&2;}
48609     else
48610         cat >>confdefs.h <<\_ACEOF
48611 #define wxUSE_DIRDLG 1
48612 _ACEOF
48613
48614     fi
48615 fi
48616
48617 if test "$wxUSE_MSGDLG" = "yes"; then
48618     cat >>confdefs.h <<\_ACEOF
48619 #define wxUSE_MSGDLG 1
48620 _ACEOF
48621
48622 fi
48623
48624 if test "$wxUSE_NUMBERDLG" = "yes"; then
48625     cat >>confdefs.h <<\_ACEOF
48626 #define wxUSE_NUMBERDLG 1
48627 _ACEOF
48628
48629 fi
48630
48631 if test "$wxUSE_PROGRESSDLG" = "yes"; then
48632     cat >>confdefs.h <<\_ACEOF
48633 #define wxUSE_PROGRESSDLG 1
48634 _ACEOF
48635
48636 fi
48637
48638 if test "$wxUSE_SPLASH" = "yes"; then
48639     cat >>confdefs.h <<\_ACEOF
48640 #define wxUSE_SPLASH 1
48641 _ACEOF
48642
48643     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splash"
48644 fi
48645
48646 if test "$wxUSE_STARTUP_TIPS" = "yes"; then
48647     cat >>confdefs.h <<\_ACEOF
48648 #define wxUSE_STARTUP_TIPS 1
48649 _ACEOF
48650
48651 fi
48652
48653 if test "$wxUSE_TEXTDLG" = "yes"; then
48654     cat >>confdefs.h <<\_ACEOF
48655 #define wxUSE_TEXTDLG 1
48656 _ACEOF
48657
48658 fi
48659
48660 if test "$wxUSE_WIZARDDLG" = "yes"; then
48661     cat >>confdefs.h <<\_ACEOF
48662 #define wxUSE_WIZARDDLG 1
48663 _ACEOF
48664
48665     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
48666 fi
48667
48668
48669 if test "$wxUSE_MSW" = 1 -o "$wxUSE_PM" = 1; then
48670     if test "$wxUSE_OWNER_DRAWN" = "yes"; then
48671         cat >>confdefs.h <<\_ACEOF
48672 #define wxUSE_OWNER_DRAWN 1
48673 _ACEOF
48674
48675     fi
48676 fi
48677
48678
48679 if test "$wxUSE_MSW" = 1 ; then
48680
48681     if test "$wxUSE_DC_CACHEING" = "yes"; then
48682         cat >>confdefs.h <<\_ACEOF
48683 #define wxUSE_DC_CACHEING 1
48684 _ACEOF
48685
48686     fi
48687
48688     if test "$wxUSE_DIB" = "yes"; then
48689         cat >>confdefs.h <<\_ACEOF
48690 #define wxUSE_WXDIB 1
48691 _ACEOF
48692
48693     fi
48694
48695     if test "$wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW" = "yes"; then
48696         cat >>confdefs.h <<\_ACEOF
48697 #define wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW 1
48698 _ACEOF
48699
48700     fi
48701
48702     if test "$wxUSE_UXTHEME" = "yes"; then
48703         cat >>confdefs.h <<\_ACEOF
48704 #define wxUSE_UXTHEME 1
48705 _ACEOF
48706
48707     fi
48708
48709 fi
48710
48711 if test "$wxUSE_AUTOID_MANAGEMENT" = "yes"; then
48712     cat >>confdefs.h <<\_ACEOF
48713 #define wxUSE_AUTOID_MANAGEMENT 1
48714 _ACEOF
48715
48716 fi
48717
48718 if test "$USE_WIN32" = 1 ; then
48719     if test "$wxUSE_INICONF" = "yes"; then
48720         cat >>confdefs.h <<\_ACEOF
48721 #define wxUSE_INICONF 1
48722 _ACEOF
48723
48724     fi
48725
48726     if test "$wxUSE_REGKEY" = "yes"; then
48727         cat >>confdefs.h <<\_ACEOF
48728 #define wxUSE_REGKEY 1
48729 _ACEOF
48730
48731     fi
48732 fi
48733
48734
48735 if test "$wxUSE_MAC" = 1; then
48736     wxUSE_GRAPHICS_CONTEXT="yes"
48737 fi
48738
48739 if test "$wxUSE_GRAPHICS_CONTEXT" = "yes"; then
48740     wx_has_graphics=0
48741     if test "$wxUSE_MSW" = 1; then
48742         { echo "$as_me:$LINENO: checking if GDI+ is available" >&5
48743 echo $ECHO_N "checking if GDI+ is available... $ECHO_C" >&6; }
48744 if test "${wx_cv_lib_gdiplus+set}" = set; then
48745   echo $ECHO_N "(cached) $ECHO_C" >&6
48746 else
48747
48748                                                 ac_ext=cpp
48749 ac_cpp='$CXXCPP $CPPFLAGS'
48750 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
48751 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
48752 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
48753
48754                 cat >conftest.$ac_ext <<_ACEOF
48755 /* confdefs.h.  */
48756 _ACEOF
48757 cat confdefs.h >>conftest.$ac_ext
48758 cat >>conftest.$ac_ext <<_ACEOF
48759 /* end confdefs.h.  */
48760 #include <windows.h>
48761                      #include <gdiplus.h>
48762 int
48763 main ()
48764 {
48765
48766                         using namespace Gdiplus;
48767
48768   ;
48769   return 0;
48770 }
48771 _ACEOF
48772 rm -f conftest.$ac_objext
48773 if { (ac_try="$ac_compile"
48774 case "(($ac_try" in
48775   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48776   *) ac_try_echo=$ac_try;;
48777 esac
48778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48779   (eval "$ac_compile") 2>conftest.er1
48780   ac_status=$?
48781   grep -v '^ *+' conftest.er1 >conftest.err
48782   rm -f conftest.er1
48783   cat conftest.err >&5
48784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48785   (exit $ac_status); } && {
48786          test -z "$ac_cxx_werror_flag" ||
48787          test ! -s conftest.err
48788        } && test -s conftest.$ac_objext; then
48789   wx_cv_lib_gdiplus=yes
48790 else
48791   echo "$as_me: failed program was:" >&5
48792 sed 's/^/| /' conftest.$ac_ext >&5
48793
48794         wx_cv_lib_gdiplus=no
48795
48796 fi
48797
48798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
48799                 ac_ext=c
48800 ac_cpp='$CPP $CPPFLAGS'
48801 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
48802 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
48803 ac_compiler_gnu=$ac_cv_c_compiler_gnu
48804
48805
48806
48807 fi
48808 { echo "$as_me:$LINENO: result: $wx_cv_lib_gdiplus" >&5
48809 echo "${ECHO_T}$wx_cv_lib_gdiplus" >&6; }
48810         if test "$wx_cv_lib_gdiplus" = "yes"; then
48811             wx_has_graphics=1
48812         fi
48813     elif test "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then
48814
48815 pkg_failed=no
48816 { echo "$as_me:$LINENO: checking for CAIRO" >&5
48817 echo $ECHO_N "checking for CAIRO... $ECHO_C" >&6; }
48818
48819 if test -n "$PKG_CONFIG"; then
48820     if test -n "$CAIRO_CFLAGS"; then
48821         pkg_cv_CAIRO_CFLAGS="$CAIRO_CFLAGS"
48822     else
48823         if test -n "$PKG_CONFIG" && \
48824     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"cairo\"") >&5
48825   ($PKG_CONFIG --exists --print-errors "cairo") 2>&5
48826   ac_status=$?
48827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48828   (exit $ac_status); }; then
48829   pkg_cv_CAIRO_CFLAGS=`$PKG_CONFIG --cflags "cairo" 2>/dev/null`
48830 else
48831   pkg_failed=yes
48832 fi
48833     fi
48834 else
48835         pkg_failed=untried
48836 fi
48837 if test -n "$PKG_CONFIG"; then
48838     if test -n "$CAIRO_LIBS"; then
48839         pkg_cv_CAIRO_LIBS="$CAIRO_LIBS"
48840     else
48841         if test -n "$PKG_CONFIG" && \
48842     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"cairo\"") >&5
48843   ($PKG_CONFIG --exists --print-errors "cairo") 2>&5
48844   ac_status=$?
48845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48846   (exit $ac_status); }; then
48847   pkg_cv_CAIRO_LIBS=`$PKG_CONFIG --libs "cairo" 2>/dev/null`
48848 else
48849   pkg_failed=yes
48850 fi
48851     fi
48852 else
48853         pkg_failed=untried
48854 fi
48855
48856
48857
48858 if test $pkg_failed = yes; then
48859
48860 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
48861         _pkg_short_errors_supported=yes
48862 else
48863         _pkg_short_errors_supported=no
48864 fi
48865         if test $_pkg_short_errors_supported = yes; then
48866                 CAIRO_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cairo"`
48867         else
48868                 CAIRO_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cairo"`
48869         fi
48870         # Put the nasty error message in config.log where it belongs
48871         echo "$CAIRO_PKG_ERRORS" >&5
48872
48873         { echo "$as_me:$LINENO: WARNING: Cairo library not found" >&5
48874 echo "$as_me: WARNING: Cairo library not found" >&2;}
48875
48876 elif test $pkg_failed = untried; then
48877         { echo "$as_me:$LINENO: WARNING: Cairo library not found" >&5
48878 echo "$as_me: WARNING: Cairo library not found" >&2;}
48879
48880 else
48881         CAIRO_CFLAGS=$pkg_cv_CAIRO_CFLAGS
48882         CAIRO_LIBS=$pkg_cv_CAIRO_LIBS
48883         { echo "$as_me:$LINENO: result: yes" >&5
48884 echo "${ECHO_T}yes" >&6; }
48885         wx_has_graphics=1
48886 fi
48887         if test "$wx_has_graphics" = 1; then
48888                                                 save_LIBS="$LIBS"
48889             LIBS="$LIBS $CAIRO_LIBS"
48890
48891 for ac_func in cairo_push_group
48892 do
48893 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
48894 { echo "$as_me:$LINENO: checking for $ac_func" >&5
48895 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
48896 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
48897   echo $ECHO_N "(cached) $ECHO_C" >&6
48898 else
48899   cat >conftest.$ac_ext <<_ACEOF
48900 /* confdefs.h.  */
48901 _ACEOF
48902 cat confdefs.h >>conftest.$ac_ext
48903 cat >>conftest.$ac_ext <<_ACEOF
48904 /* end confdefs.h.  */
48905 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
48906    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
48907 #define $ac_func innocuous_$ac_func
48908
48909 /* System header to define __stub macros and hopefully few prototypes,
48910     which can conflict with char $ac_func (); below.
48911     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
48912     <limits.h> exists even on freestanding compilers.  */
48913
48914 #ifdef __STDC__
48915 # include <limits.h>
48916 #else
48917 # include <assert.h>
48918 #endif
48919
48920 #undef $ac_func
48921
48922 /* Override any GCC internal prototype to avoid an error.
48923    Use char because int might match the return type of a GCC
48924    builtin and then its argument prototype would still apply.  */
48925 #ifdef __cplusplus
48926 extern "C"
48927 #endif
48928 char $ac_func ();
48929 /* The GNU C library defines this for functions which it implements
48930     to always fail with ENOSYS.  Some functions are actually named
48931     something starting with __ and the normal name is an alias.  */
48932 #if defined __stub_$ac_func || defined __stub___$ac_func
48933 choke me
48934 #endif
48935
48936 int
48937 main ()
48938 {
48939 return $ac_func ();
48940   ;
48941   return 0;
48942 }
48943 _ACEOF
48944 rm -f conftest.$ac_objext conftest$ac_exeext
48945 if { (ac_try="$ac_link"
48946 case "(($ac_try" in
48947   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48948   *) ac_try_echo=$ac_try;;
48949 esac
48950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48951   (eval "$ac_link") 2>conftest.er1
48952   ac_status=$?
48953   grep -v '^ *+' conftest.er1 >conftest.err
48954   rm -f conftest.er1
48955   cat conftest.err >&5
48956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48957   (exit $ac_status); } && {
48958          test -z "$ac_c_werror_flag" ||
48959          test ! -s conftest.err
48960        } && test -s conftest$ac_exeext &&
48961        $as_test_x conftest$ac_exeext; then
48962   eval "$as_ac_var=yes"
48963 else
48964   echo "$as_me: failed program was:" >&5
48965 sed 's/^/| /' conftest.$ac_ext >&5
48966
48967         eval "$as_ac_var=no"
48968 fi
48969
48970 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
48971       conftest$ac_exeext conftest.$ac_ext
48972 fi
48973 ac_res=`eval echo '${'$as_ac_var'}'`
48974                { echo "$as_me:$LINENO: result: $ac_res" >&5
48975 echo "${ECHO_T}$ac_res" >&6; }
48976 if test `eval echo '${'$as_ac_var'}'` = yes; then
48977   cat >>confdefs.h <<_ACEOF
48978 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
48979 _ACEOF
48980
48981 fi
48982 done
48983
48984             LIBS="$save_LIBS"
48985             if test "$ac_cv_func_cairo_push_group" = "no"; then
48986                 wx_has_graphics=0
48987                 { echo "$as_me:$LINENO: WARNING: Cairo library is too old and misses cairo_push_group()" >&5
48988 echo "$as_me: WARNING: Cairo library is too old and misses cairo_push_group()" >&2;}
48989             else
48990                 cat >>confdefs.h <<\_ACEOF
48991 #define wxUSE_CAIRO 1
48992 _ACEOF
48993
48994
48995                                                 if test "$wxUSE_GTK" != 1; then
48996                     CPPFLAGS="$CAIRO_CFLAGS $CPPFLAGS"
48997                     GUI_TK_LIBRARY="$GUI_TK_LIBRARY $CAIRO_LIBS"
48998                 fi
48999             fi
49000         fi
49001     else
49002                 wx_has_graphics=1
49003     fi
49004
49005     if test "$wx_has_graphics" = 1; then
49006         cat >>confdefs.h <<\_ACEOF
49007 #define wxUSE_GRAPHICS_CONTEXT 1
49008 _ACEOF
49009
49010     else
49011         { echo "$as_me:$LINENO: WARNING: wxGraphicsContext won't be available" >&5
49012 echo "$as_me: WARNING: wxGraphicsContext won't be available" >&2;}
49013     fi
49014 fi
49015
49016
49017 USE_MEDIA=0
49018
49019 if test "$wxUSE_MEDIACTRL" = "yes" -o "$wxUSE_MEDIACTRL" = "auto"; then
49020     USE_MEDIA=1
49021
49022                 if test "$wxUSE_GTK" = 1; then
49023         wxUSE_GSTREAMER="no"
49024
49025                                                                 GST_VERSION_MAJOR=0
49026         GST_VERSION_MINOR=10
49027         GST_VERSION=$GST_VERSION_MAJOR.$GST_VERSION_MINOR
49028
49029         if test "$wxUSE_GSTREAMER8" = "no"; then
49030
49031 pkg_failed=no
49032 { echo "$as_me:$LINENO: checking for GST" >&5
49033 echo $ECHO_N "checking for GST... $ECHO_C" >&6; }
49034
49035 if test -n "$PKG_CONFIG"; then
49036     if test -n "$GST_CFLAGS"; then
49037         pkg_cv_GST_CFLAGS="$GST_CFLAGS"
49038     else
49039         if test -n "$PKG_CONFIG" && \
49040     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gstreamer-\$GST_VERSION gstreamer-plugins-base-\$GST_VERSION gconf-2.0\"") >&5
49041   ($PKG_CONFIG --exists --print-errors "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0") 2>&5
49042   ac_status=$?
49043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49044   (exit $ac_status); }; then
49045   pkg_cv_GST_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0" 2>/dev/null`
49046 else
49047   pkg_failed=yes
49048 fi
49049     fi
49050 else
49051         pkg_failed=untried
49052 fi
49053 if test -n "$PKG_CONFIG"; then
49054     if test -n "$GST_LIBS"; then
49055         pkg_cv_GST_LIBS="$GST_LIBS"
49056     else
49057         if test -n "$PKG_CONFIG" && \
49058     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gstreamer-\$GST_VERSION gstreamer-plugins-base-\$GST_VERSION gconf-2.0\"") >&5
49059   ($PKG_CONFIG --exists --print-errors "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0") 2>&5
49060   ac_status=$?
49061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49062   (exit $ac_status); }; then
49063   pkg_cv_GST_LIBS=`$PKG_CONFIG --libs "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0" 2>/dev/null`
49064 else
49065   pkg_failed=yes
49066 fi
49067     fi
49068 else
49069         pkg_failed=untried
49070 fi
49071
49072
49073
49074 if test $pkg_failed = yes; then
49075
49076 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
49077         _pkg_short_errors_supported=yes
49078 else
49079         _pkg_short_errors_supported=no
49080 fi
49081         if test $_pkg_short_errors_supported = yes; then
49082                 GST_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0"`
49083         else
49084                 GST_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0"`
49085         fi
49086         # Put the nasty error message in config.log where it belongs
49087         echo "$GST_PKG_ERRORS" >&5
49088
49089
49090                     { echo "$as_me:$LINENO: WARNING: GStreamer 0.10 not available, falling back to 0.8" >&5
49091 echo "$as_me: WARNING: GStreamer 0.10 not available, falling back to 0.8" >&2;}
49092                     GST_VERSION_MINOR=8
49093
49094
49095 elif test $pkg_failed = untried; then
49096
49097                     { echo "$as_me:$LINENO: WARNING: GStreamer 0.10 not available, falling back to 0.8" >&5
49098 echo "$as_me: WARNING: GStreamer 0.10 not available, falling back to 0.8" >&2;}
49099                     GST_VERSION_MINOR=8
49100
49101
49102 else
49103         GST_CFLAGS=$pkg_cv_GST_CFLAGS
49104         GST_LIBS=$pkg_cv_GST_LIBS
49105         { echo "$as_me:$LINENO: result: yes" >&5
49106 echo "${ECHO_T}yes" >&6; }
49107
49108                     wxUSE_GSTREAMER="yes"
49109                     GST_LIBS="$GST_LIBS -lgstinterfaces-$GST_VERSION"
49110
49111 fi
49112         else
49113                         GST_VERSION_MINOR=8
49114         fi
49115
49116         if test $GST_VERSION_MINOR = "8"; then
49117             GST_VERSION=$GST_VERSION_MAJOR.$GST_VERSION_MINOR
49118
49119 pkg_failed=no
49120 { echo "$as_me:$LINENO: checking for GST" >&5
49121 echo $ECHO_N "checking for GST... $ECHO_C" >&6; }
49122
49123 if test -n "$PKG_CONFIG"; then
49124     if test -n "$GST_CFLAGS"; then
49125         pkg_cv_GST_CFLAGS="$GST_CFLAGS"
49126     else
49127         if test -n "$PKG_CONFIG" && \
49128     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gstreamer-\$GST_VERSION gstreamer-interfaces-\$GST_VERSION gstreamer-gconf-\$GST_VERSION\"") >&5
49129   ($PKG_CONFIG --exists --print-errors "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION") 2>&5
49130   ac_status=$?
49131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49132   (exit $ac_status); }; then
49133   pkg_cv_GST_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION" 2>/dev/null`
49134 else
49135   pkg_failed=yes
49136 fi
49137     fi
49138 else
49139         pkg_failed=untried
49140 fi
49141 if test -n "$PKG_CONFIG"; then
49142     if test -n "$GST_LIBS"; then
49143         pkg_cv_GST_LIBS="$GST_LIBS"
49144     else
49145         if test -n "$PKG_CONFIG" && \
49146     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gstreamer-\$GST_VERSION gstreamer-interfaces-\$GST_VERSION gstreamer-gconf-\$GST_VERSION\"") >&5
49147   ($PKG_CONFIG --exists --print-errors "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION") 2>&5
49148   ac_status=$?
49149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49150   (exit $ac_status); }; then
49151   pkg_cv_GST_LIBS=`$PKG_CONFIG --libs "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION" 2>/dev/null`
49152 else
49153   pkg_failed=yes
49154 fi
49155     fi
49156 else
49157         pkg_failed=untried
49158 fi
49159
49160
49161
49162 if test $pkg_failed = yes; then
49163
49164 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
49165         _pkg_short_errors_supported=yes
49166 else
49167         _pkg_short_errors_supported=no
49168 fi
49169         if test $_pkg_short_errors_supported = yes; then
49170                 GST_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION"`
49171         else
49172                 GST_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION"`
49173         fi
49174         # Put the nasty error message in config.log where it belongs
49175         echo "$GST_PKG_ERRORS" >&5
49176
49177
49178                     { echo "$as_me:$LINENO: WARNING: GStreamer 0.8/0.10 not available." >&5
49179 echo "$as_me: WARNING: GStreamer 0.8/0.10 not available." >&2;}
49180
49181 elif test $pkg_failed = untried; then
49182
49183                     { echo "$as_me:$LINENO: WARNING: GStreamer 0.8/0.10 not available." >&5
49184 echo "$as_me: WARNING: GStreamer 0.8/0.10 not available." >&2;}
49185
49186 else
49187         GST_CFLAGS=$pkg_cv_GST_CFLAGS
49188         GST_LIBS=$pkg_cv_GST_LIBS
49189         { echo "$as_me:$LINENO: result: yes" >&5
49190 echo "${ECHO_T}yes" >&6; }
49191         wxUSE_GSTREAMER="yes"
49192 fi
49193         fi
49194
49195
49196         if test "$wxUSE_GSTREAMER" = "yes"; then
49197             CPPFLAGS="$GST_CFLAGS $CPPFLAGS"
49198             EXTRALIBS_MEDIA="$GST_LIBS"
49199
49200             cat >>confdefs.h <<\_ACEOF
49201 #define wxUSE_GSTREAMER 1
49202 _ACEOF
49203
49204         else
49205             USE_MEDIA=0
49206         fi
49207     fi
49208
49209     if test $USE_MEDIA = 1; then
49210         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mediaplayer"
49211         cat >>confdefs.h <<\_ACEOF
49212 #define wxUSE_MEDIACTRL 1
49213 _ACEOF
49214
49215     else
49216         if test "$wxUSE_MEDIACTRL" = "yes"; then
49217             { { echo "$as_me:$LINENO: error: GStreamer not available" >&5
49218 echo "$as_me: error: GStreamer not available" >&2;}
49219    { (exit 1); exit 1; }; }
49220         else
49221                         { echo "$as_me:$LINENO: WARNING: GStreamer not available... disabling wxMediaCtrl" >&5
49222 echo "$as_me: WARNING: GStreamer not available... disabling wxMediaCtrl" >&2;}
49223         fi
49224     fi
49225 fi
49226
49227
49228 if test "$cross_compiling" != "no"; then
49229         OSINFO="\"$host\""
49230 else
49231         OSINFO=`uname -s -r -m`
49232     OSINFO="\"$OSINFO\""
49233 fi
49234
49235 cat >>confdefs.h <<_ACEOF
49236 #define WXWIN_OS_DESCRIPTION $OSINFO
49237 _ACEOF
49238
49239
49240
49241 if test "x$prefix" != "xNONE"; then
49242     wxPREFIX=$prefix
49243 else
49244     wxPREFIX=$ac_default_prefix
49245 fi
49246
49247 cat >>confdefs.h <<_ACEOF
49248 #define wxINSTALL_PREFIX "$wxPREFIX"
49249 _ACEOF
49250
49251
49252
49253
49254 STD_BASE_LIBS="base"
49255 STD_GUI_LIBS=""
49256 BUILT_WX_LIBS="base"
49257 ALL_WX_LIBS="xrc stc gl media qa html adv core xml net base"
49258
49259 if test "$wxUSE_SOCKETS" = "yes" ; then
49260     STD_BASE_LIBS="net $STD_BASE_LIBS"
49261     BUILT_WX_LIBS="net $BUILT_WX_LIBS"
49262 fi
49263 if test "$wxUSE_XML" = "yes" ; then
49264     STD_BASE_LIBS="xml $STD_BASE_LIBS"
49265     BUILT_WX_LIBS="xml $BUILT_WX_LIBS"
49266 fi
49267
49268 if test "$wxUSE_GUI" = "yes"; then
49269     STD_GUI_LIBS="adv core"
49270     BUILT_WX_LIBS="$STD_GUI_LIBS $BUILT_WX_LIBS"
49271
49272     if test "$wxUSE_DEBUGREPORT" = "yes" ; then
49273         STD_GUI_LIBS="qa $STD_GUI_LIBS"
49274         BUILT_WX_LIBS="qa $BUILT_WX_LIBS"
49275     fi
49276     if test "$wxUSE_HTML" = "yes" ; then
49277         STD_GUI_LIBS="html $STD_GUI_LIBS"
49278         BUILT_WX_LIBS="html $BUILT_WX_LIBS"
49279     fi
49280     if test "$wxUSE_MEDIACTRL" = "yes" ; then
49281         BUILT_WX_LIBS="media $BUILT_WX_LIBS"
49282     fi
49283     if test "$wxUSE_OPENGL" = "yes" ; then
49284         BUILT_WX_LIBS="gl $BUILT_WX_LIBS"
49285     fi
49286     if test "$wxUSE_AUI" = "yes" ; then
49287         BUILT_WX_LIBS="aui $BUILT_WX_LIBS"
49288     fi
49289     if test "$wxUSE_PROPGRID" = "yes" ; then
49290         BUILT_WX_LIBS="propgrid $BUILT_WX_LIBS"
49291     fi
49292     if test "$wxUSE_RIBBON" = "yes" ; then
49293         BUILT_WX_LIBS="ribbon $BUILT_WX_LIBS"
49294     fi
49295     if test "$wxUSE_RICHTEXT" = "yes" ; then
49296         BUILT_WX_LIBS="richtext $BUILT_WX_LIBS"
49297     fi
49298     if test "$wxUSE_STC" = "yes" ; then
49299         BUILT_WX_LIBS="stc $BUILT_WX_LIBS"
49300     fi
49301     if test "$wxUSE_WEB" = "yes" ; then
49302         STD_GUI_LIBS="web $STD_GUI_LIBS"
49303         BUILT_WX_LIBS="web $BUILT_WX_LIBS"
49304     fi
49305     if test "$wxUSE_XRC" = "yes" ; then
49306         STD_GUI_LIBS="xrc $STD_GUI_LIBS"
49307         BUILT_WX_LIBS="xrc $BUILT_WX_LIBS"
49308     fi
49309 fi
49310
49311
49312
49313
49314
49315
49316
49317 EXTRA_FRAMEWORKS=
49318 if test "$wxUSE_MAC" = 1 ; then
49319     if test "$USE_DARWIN" = 1; then
49320         if test "$wxUSE_OSX_IPHONE" = 1; then
49321             EXTRA_FRAMEWORKS="-framework IOKit -framework UIKit -framework CFNetwork -framework AudioToolbox -framework CoreFoundation -framework CoreGraphics -framework OpenGLES -framework Foundation -framework QuartzCore"
49322         else
49323             EXTRA_FRAMEWORKS="-framework IOKit -framework Carbon -framework Cocoa -framework AudioToolbox -framework System -framework OpenGL -framework QuickTime"
49324         fi
49325     fi
49326 fi
49327 if test "$wxUSE_OLD_COCOA" = 1 ; then
49328     EXTRA_FRAMEWORKS="-framework IOKit -framework Cocoa"
49329     if test "$wxUSE_MEDIACTRL" = "yes"; then
49330         EXTRA_FRAMEWORKS="$EXTRA_FRAMEWORKS -framework QuickTime"
49331     fi
49332 fi
49333 if test "$USE_DARWIN" = 1 -a "$wxUSE_MAC" != 1 -a "$wxUSE_OLD_COCOA" != 1 ; then
49334     EXTRA_FRAMEWORKS="$EXTRA_FRAMEWORKS -framework IOKit -framework CoreServices -framework System -framework ApplicationServices"
49335 fi
49336
49337 LDFLAGS="$LDFLAGS $EXTRA_FRAMEWORKS"
49338 WXCONFIG_LDFLAGS="$WXCONFIG_LDFLAGS $EXTRA_FRAMEWORKS"
49339
49340 LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK $LIBS"
49341
49342 if test "$wxUSE_GUI" = "yes"; then
49343
49344
49345         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs drawing \
49346                      erase event exec font image minimal render \
49347                      shaped svg taborder vscroll widgets wrapsizer"
49348
49349     if test "$wxUSE_MONOLITHIC" != "yes"; then
49350         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS console"
49351     fi
49352     if test "$TOOLKIT" = "MSW"; then
49353         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS regtest"
49354         if test "$wxUSE_UNIVERSAL" != "yes"; then
49355             SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ownerdrw nativdlg dll"
49356         fi
49357     fi
49358     if test "$TOOLKIT" = "PM" -a "$wxUSE_UNIVERSAL" != "yes"; then
49359         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ownerdrw"
49360     fi
49361 else
49362     SAMPLES_SUBDIRS="console"
49363     if test "$wxUSE_SOCKETS" = "yes" ; then
49364         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
49365     fi
49366     if test "$wxUSE_IPC" = "yes" ; then
49367         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ipc"
49368     fi
49369 fi
49370
49371
49372 if test "x$INTELCC" = "xyes" ; then
49373                                         CWARNINGS="-Wall -wd810,869,981,1418,1572,1684,2259"
49374 elif test "$GCC" = yes ; then
49375     CWARNINGS="-Wall -Wundef"
49376 fi
49377
49378 if test "x$INTELCXX" = "xyes" ; then
49379                                                                 CXXWARNINGS="-Wall -wd279,383,444,810,869,981,1418,1419,1881,2259"
49380 elif test "$GXX" = yes ; then
49381     CXXWARNINGS="-Wall -Wundef -Wunused-parameter -Wno-ctor-dtor-privacy"
49382     { echo "$as_me:$LINENO: checking CXXWARNINGS for gcc -Woverloaded-virtual" >&5
49383 echo $ECHO_N "checking CXXWARNINGS for gcc -Woverloaded-virtual... $ECHO_C" >&6; }
49384 if test "${ac_cv_cxxflags_gcc_option__Woverloaded_virtual+set}" = set; then
49385   echo $ECHO_N "(cached) $ECHO_C" >&6
49386 else
49387   ac_cv_cxxflags_gcc_option__Woverloaded_virtual="no, unknown"
49388
49389  ac_ext=cpp
49390 ac_cpp='$CXXCPP $CPPFLAGS'
49391 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
49392 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
49393 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
49394
49395  ac_save_CXXFLAGS="$CXXFLAGS"
49396 for ac_arg in "-pedantic -Werror % -Woverloaded-virtual"     "-pedantic % -Woverloaded-virtual %% no, obsolete"     #
49397 do CXXFLAGS="$ac_save_CXXFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
49398    cat >conftest.$ac_ext <<_ACEOF
49399 /* confdefs.h.  */
49400 _ACEOF
49401 cat confdefs.h >>conftest.$ac_ext
49402 cat >>conftest.$ac_ext <<_ACEOF
49403 /* end confdefs.h.  */
49404
49405 int
49406 main ()
49407 {
49408 return 0;
49409   ;
49410   return 0;
49411 }
49412 _ACEOF
49413 rm -f conftest.$ac_objext
49414 if { (ac_try="$ac_compile"
49415 case "(($ac_try" in
49416   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49417   *) ac_try_echo=$ac_try;;
49418 esac
49419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
49420   (eval "$ac_compile") 2>conftest.er1
49421   ac_status=$?
49422   grep -v '^ *+' conftest.er1 >conftest.err
49423   rm -f conftest.er1
49424   cat conftest.err >&5
49425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49426   (exit $ac_status); } && {
49427          test -z "$ac_cxx_werror_flag" ||
49428          test ! -s conftest.err
49429        } && test -s conftest.$ac_objext; then
49430   ac_cv_cxxflags_gcc_option__Woverloaded_virtual=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
49431 else
49432   echo "$as_me: failed program was:" >&5
49433 sed 's/^/| /' conftest.$ac_ext >&5
49434
49435
49436 fi
49437
49438 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
49439 done
49440  CXXFLAGS="$ac_save_CXXFLAGS"
49441  ac_ext=c
49442 ac_cpp='$CPP $CPPFLAGS'
49443 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
49444 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
49445 ac_compiler_gnu=$ac_cv_c_compiler_gnu
49446
49447
49448 fi
49449 { echo "$as_me:$LINENO: result: $ac_cv_cxxflags_gcc_option__Woverloaded_virtual" >&5
49450 echo "${ECHO_T}$ac_cv_cxxflags_gcc_option__Woverloaded_virtual" >&6; }
49451 case ".$ac_cv_cxxflags_gcc_option__Woverloaded_virtual" in
49452      .ok|.ok,*)  ;;
49453    .|.no|.no,*)  ;;
49454    *)
49455    if echo " $CXXWARNINGS " | grep " $ac_cv_cxxflags_gcc_option__Woverloaded_virtual " 2>&1 >/dev/null
49456    then { (echo "$as_me:$LINENO: : CXXWARNINGS does contain \$ac_cv_cxxflags_gcc_option__Woverloaded_virtual") >&5
49457   (: CXXWARNINGS does contain $ac_cv_cxxflags_gcc_option__Woverloaded_virtual) 2>&5
49458   ac_status=$?
49459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49460   (exit $ac_status); }
49461    else { (echo "$as_me:$LINENO: : CXXWARNINGS=\"\$CXXWARNINGS \$ac_cv_cxxflags_gcc_option__Woverloaded_virtual\"") >&5
49462   (: CXXWARNINGS="$CXXWARNINGS $ac_cv_cxxflags_gcc_option__Woverloaded_virtual") 2>&5
49463   ac_status=$?
49464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49465   (exit $ac_status); }
49466                       CXXWARNINGS="$CXXWARNINGS $ac_cv_cxxflags_gcc_option__Woverloaded_virtual"
49467    fi
49468  ;;
49469 esac
49470
49471
49472                     if test "$wxUSE_MAC" = 1 ; then
49473         CXXWARNINGS="$CXXWARNINGS -Wno-deprecated-declarations"
49474     fi
49475 fi
49476
49477
49478 WXCONFIG_CFLAGS=`echo $WXCONFIG_CFLAGS`
49479 WXCONFIG_CXXFLAGS=`echo $WXCONFIG_CFLAGS $WXCONFIG_CXXFLAGS`
49480
49481
49482 CPPFLAGS=`echo $WXCONFIG_CPPFLAGS \
49483  -I\\${wx_top_builddir}/lib/wx/include/${TOOLCHAIN_FULLNAME} \
49484  -I\\${top_srcdir}/include $TOOLKIT_INCLUDE \
49485  $CPPFLAGS `
49486
49487 C_AND_CXX_FLAGS="$DEBUG_CFLAGS $PROFILE_FLAGS $OPTIMISE_CFLAGS"
49488 CFLAGS=`echo $WXCONFIG_CFLAGS $CWARNINGS $C_AND_CXX_FLAGS $CFLAGS `
49489 CXXFLAGS=`echo $WXCONFIG_CXXFLAGS $C_AND_CXX_FLAGS $CXXFLAGS `
49490 OBJCFLAGS=`echo $WXCONFIG_CFLAGS $CWARNINGS $C_AND_CXX_FLAGS $OBJCFLAGS `
49491 OBJCXXFLAGS=`echo $WXCONFIG_CXXFLAGS $C_AND_CXX_FLAGS $OBJCXXFLAGS `
49492
49493 WXCONFIG_CPPFLAGS=`echo $WXCONFIG_CPPFLAGS $WXCONFIG_ONLY_CPPFLAGS`
49494
49495
49496 if test "x$MWCC" = "xyes"; then
49497
49498             CC="$CC -cwd source -I-"
49499     CXX="$CXX -cwd source -I-"
49500 fi
49501
49502
49503 LIBS=`echo $LIBS`
49504 EXTRALIBS="$LDFLAGS $LDFLAGS_VERSIONING $LIBS $DMALLOC_LIBS"
49505 EXTRALIBS_XML="$EXPAT_LINK"
49506 EXTRALIBS_HTML="$MSPACK_LINK"
49507 EXTRALIBS_MEDIA="$GST_LIBS"
49508 EXTRALIBS_STC="-lwxscintilla${WX_LIB_FLAVOUR}-${WX_RELEASE}${HOST_SUFFIX}"
49509 if test "$wxUSE_GUI" = "yes"; then
49510     EXTRALIBS_GUI=`echo $GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK $WEBKIT_LINK $EXTRALIBS_HILDON $EXTRALIBS_GNOMEVFS $EXTRALIBS_GNOMEPRINT`
49511 fi
49512 if test "$wxUSE_OPENGL" = "yes"; then
49513     EXTRALIBS_OPENGL="$LDFLAGS_GL $OPENGL_LIBS"
49514 fi
49515
49516 LDFLAGS="$LDFLAGS $PROFILE_FLAGS"
49517
49518 WXCONFIG_LIBS="$LIBS"
49519
49520 if test "$wxUSE_REGEX" = "builtin" ; then
49521     wxconfig_3rdparty="regex${lib_unicode_suffix} $wxconfig_3rdparty"
49522 fi
49523 if test "$wxUSE_EXPAT" = "builtin" ; then
49524     wxconfig_3rdparty="expat $wxconfig_3rdparty"
49525 fi
49526 if test "$wxUSE_LIBTIFF" = "builtin" ; then
49527     wxconfig_3rdparty="tiff $wxconfig_3rdparty"
49528 fi
49529 if test "$wxUSE_LIBJPEG" = "builtin" ; then
49530     wxconfig_3rdparty="jpeg $wxconfig_3rdparty"
49531 fi
49532 if test "$wxUSE_LIBPNG" = "builtin" ; then
49533     wxconfig_3rdparty="png $wxconfig_3rdparty"
49534 fi
49535 if test "$wxUSE_ZLIB" = "builtin" ; then
49536     wxconfig_3rdparty="zlib $wxconfig_3rdparty"
49537 fi
49538
49539 for i in $wxconfig_3rdparty ; do
49540     WXCONFIG_LIBS="-lwx${i}${WX_LIB_FLAVOUR}-${WX_RELEASE}${HOST_SUFFIX} $WXCONFIG_LIBS"
49541 done
49542
49543
49544 if test "x$wxUSE_UNIVERSAL" = "xyes" ; then
49545     WXUNIV=1
49546
49547     case "$wxUNIV_THEMES" in
49548         ''|all)
49549             cat >>confdefs.h <<\_ACEOF
49550 #define wxUSE_ALL_THEMES 1
49551 _ACEOF
49552
49553             ;;
49554
49555         *)
49556             for t in `echo $wxUNIV_THEMES | tr , ' ' | tr '[a-z]' '[A-Z]'`; do
49557                 cat >>confdefs.h <<_ACEOF
49558 #define wxUSE_THEME_$t 1
49559 _ACEOF
49560
49561             done
49562     esac
49563 else
49564     WXUNIV=0
49565 fi
49566
49567
49568
49569
49570
49571
49572
49573
49574 if test $wxUSE_MONOLITHIC = "yes" ; then
49575     MONOLITHIC=1
49576 else
49577     MONOLITHIC=0
49578 fi
49579
49580 if test $wxUSE_PLUGINS = "yes" ; then
49581     USE_PLUGINS=1
49582 else
49583     USE_PLUGINS=0
49584 fi
49585
49586 if test "$wxUSE_DEBUGREPORT" = "yes" ; then
49587     USE_QA=1
49588 else
49589     USE_QA=0
49590 fi
49591
49592 if test $wxUSE_OFFICIAL_BUILD = "yes" ; then
49593     OFFICIAL_BUILD=1
49594 else
49595     OFFICIAL_BUILD=0
49596 fi
49597
49598
49599
49600
49601
49602
49603
49604
49605
49606
49607
49608
49609
49610
49611
49612
49613
49614
49615
49616
49617
49618
49619
49620
49621
49622
49623
49624 TOOLKIT_LOWERCASE=`echo $TOOLKIT | tr '[A-Z]' '[a-z]'`
49625
49626
49627
49628
49629
49630
49631
49632
49633
49634
49635 case "$TOOLKIT" in
49636     GTK)
49637         TOOLKIT_DESC="GTK+"
49638         if test "$WXGTK2" = 1; then
49639             TOOLKIT_DESC="$TOOLKIT_DESC 2"
49640             if test "$wxUSE_GTKPRINT" = "yes" ; then
49641                 TOOLKIT_EXTRA="$TOOLKIT_EXTRA GTK+ printing";
49642             fi
49643             if test "$wxUSE_LIBGNOMEPRINT" = "yes" ; then
49644                 TOOLKIT_EXTRA="$TOOLKIT_EXTRA gnomeprint";
49645             fi
49646             if test "$wxUSE_LIBGNOMEVFS" = "yes" ; then
49647                 TOOLKIT_EXTRA="$TOOLKIT_EXTRA gnomevfs"
49648             fi
49649             if test "$wxUSE_LIBHILDON" = "yes"; then
49650                 TOOLKIT_EXTRA="$TOOLKIT_EXTRA hildon"
49651             fi
49652             if test "$wxUSE_LIBHILDON2" = "yes"; then
49653                 TOOLKIT_EXTRA="$TOOLKIT_EXTRA hildon"
49654             fi
49655
49656             if test "$TOOLKIT_EXTRA" != ""; then
49657                 TOOLKIT_DESC="$TOOLKIT_DESC with support for `echo $TOOLKIT_EXTRA | tr -s ' '`"
49658             fi
49659         fi
49660         ;;
49661
49662     ?*)
49663         TOOLKIT_DESC=$TOOLKIT_LOWERCASE
49664         ;;
49665
49666     *)
49667         TOOLKIT_DESC="base only"
49668         ;;
49669 esac
49670
49671 if test "$wxUSE_WINE" = "yes"; then
49672     BAKEFILE_FORCE_PLATFORM=win32
49673 fi
49674
49675 if test "$wxUSE_UNICODE" = yes -a "$GCC" = yes -a "$bk_use_pch" != no
49676 then
49677     { echo "$as_me:$LINENO: checking for gcc precompiled header bug" >&5
49678 echo $ECHO_N "checking for gcc precompiled header bug... $ECHO_C" >&6; }
49679 if test "${wx_cv_gcc_pch_bug+set}" = set; then
49680   echo $ECHO_N "(cached) $ECHO_C" >&6
49681 else
49682
49683             echo '#include <stdio.h>
49684                   const wchar_t test_var[] = L"awidetest";' > conftest.h
49685
49686             echo '#include "conftest.h"
49687                   int main()
49688                   {
49689                      printf("%ls", test_var);
49690                      return 0;
49691                   }' > conftest.cpp
49692
49693             wx_cv_gcc_pch_bug="pch not supported"
49694
49695             if $CXX conftest.h >/dev/null 2>&1
49696             then
49697                 wx_cv_gcc_pch_bug=
49698
49699                 if $CXX -o conftest$PROGRAM_EXT conftest.cpp >/dev/null 2>&1
49700                 then
49701                     if tr -dc '[a-z]' < conftest$PROGRAM_EXT |
49702                         grep awidetest >/dev/null
49703                     then
49704                         wx_cv_gcc_pch_bug=no
49705                     else
49706                         wx_cv_gcc_pch_bug=yes
49707                     fi
49708                 fi
49709             fi
49710
49711             rm -f conftest.h conftest.gch conftest.cpp conftest$PROGRAM_EXT
49712
49713 fi
49714 { echo "$as_me:$LINENO: result: $wx_cv_gcc_pch_bug" >&5
49715 echo "${ECHO_T}$wx_cv_gcc_pch_bug" >&6; }
49716
49717     if test "$wx_cv_gcc_pch_bug" = yes; then
49718                         bk_use_pch=no
49719     fi
49720 fi
49721
49722
49723
49724
49725
49726
49727
49728     if test "x$BAKEFILE_HOST" = "x"; then
49729                if test "x${host}" = "x" ; then
49730                        { { echo "$as_me:$LINENO: error: You must call the autoconf \"CANONICAL_HOST\" macro in your configure.ac (or .in) file." >&5
49731 echo "$as_me: error: You must call the autoconf \"CANONICAL_HOST\" macro in your configure.ac (or .in) file." >&2;}
49732    { (exit 1); exit 1; }; }
49733                fi
49734
49735         BAKEFILE_HOST="${host}"
49736     fi
49737
49738     if test "x$BAKEFILE_CHECK_BASICS" != "xno"; then
49739
49740     if test -n "$ac_tool_prefix"; then
49741   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
49742 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
49743 { echo "$as_me:$LINENO: checking for $ac_word" >&5
49744 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
49745 if test "${ac_cv_prog_RANLIB+set}" = set; then
49746   echo $ECHO_N "(cached) $ECHO_C" >&6
49747 else
49748   if test -n "$RANLIB"; then
49749   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
49750 else
49751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
49752 for as_dir in $PATH
49753 do
49754   IFS=$as_save_IFS
49755   test -z "$as_dir" && as_dir=.
49756   for ac_exec_ext in '' $ac_executable_extensions; do
49757   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
49758     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
49759     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
49760     break 2
49761   fi
49762 done
49763 done
49764 IFS=$as_save_IFS
49765
49766 fi
49767 fi
49768 RANLIB=$ac_cv_prog_RANLIB
49769 if test -n "$RANLIB"; then
49770   { echo "$as_me:$LINENO: result: $RANLIB" >&5
49771 echo "${ECHO_T}$RANLIB" >&6; }
49772 else
49773   { echo "$as_me:$LINENO: result: no" >&5
49774 echo "${ECHO_T}no" >&6; }
49775 fi
49776
49777
49778 fi
49779 if test -z "$ac_cv_prog_RANLIB"; then
49780   ac_ct_RANLIB=$RANLIB
49781   # Extract the first word of "ranlib", so it can be a program name with args.
49782 set dummy ranlib; ac_word=$2
49783 { echo "$as_me:$LINENO: checking for $ac_word" >&5
49784 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
49785 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
49786   echo $ECHO_N "(cached) $ECHO_C" >&6
49787 else
49788   if test -n "$ac_ct_RANLIB"; then
49789   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
49790 else
49791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
49792 for as_dir in $PATH
49793 do
49794   IFS=$as_save_IFS
49795   test -z "$as_dir" && as_dir=.
49796   for ac_exec_ext in '' $ac_executable_extensions; do
49797   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
49798     ac_cv_prog_ac_ct_RANLIB="ranlib"
49799     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
49800     break 2
49801   fi
49802 done
49803 done
49804 IFS=$as_save_IFS
49805
49806 fi
49807 fi
49808 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
49809 if test -n "$ac_ct_RANLIB"; then
49810   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
49811 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
49812 else
49813   { echo "$as_me:$LINENO: result: no" >&5
49814 echo "${ECHO_T}no" >&6; }
49815 fi
49816
49817   if test "x$ac_ct_RANLIB" = x; then
49818     RANLIB=":"
49819   else
49820     case $cross_compiling:$ac_tool_warned in
49821 yes:)
49822 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
49823 whose name does not start with the host triplet.  If you think this
49824 configuration is useful to you, please write to autoconf@gnu.org." >&5
49825 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
49826 whose name does not start with the host triplet.  If you think this
49827 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
49828 ac_tool_warned=yes ;;
49829 esac
49830     RANLIB=$ac_ct_RANLIB
49831   fi
49832 else
49833   RANLIB="$ac_cv_prog_RANLIB"
49834 fi
49835
49836     # Find a good install program.  We prefer a C program (faster),
49837 # so one script is as good as another.  But avoid the broken or
49838 # incompatible versions:
49839 # SysV /etc/install, /usr/sbin/install
49840 # SunOS /usr/etc/install
49841 # IRIX /sbin/install
49842 # AIX /bin/install
49843 # AmigaOS /C/install, which installs bootblocks on floppy discs
49844 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
49845 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
49846 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
49847 # OS/2's system install, which has a completely different semantic
49848 # ./install, which can be erroneously created by make from ./install.sh.
49849 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
49850 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
49851 if test -z "$INSTALL"; then
49852 if test "${ac_cv_path_install+set}" = set; then
49853   echo $ECHO_N "(cached) $ECHO_C" >&6
49854 else
49855   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
49856 for as_dir in $PATH
49857 do
49858   IFS=$as_save_IFS
49859   test -z "$as_dir" && as_dir=.
49860   # Account for people who put trailing slashes in PATH elements.
49861 case $as_dir/ in
49862   ./ | .// | /cC/* | \
49863   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
49864   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
49865   /usr/ucb/* ) ;;
49866   *)
49867     # OSF1 and SCO ODT 3.0 have their own names for install.
49868     # Don't use installbsd from OSF since it installs stuff as root
49869     # by default.
49870     for ac_prog in ginstall scoinst install; do
49871       for ac_exec_ext in '' $ac_executable_extensions; do
49872         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
49873           if test $ac_prog = install &&
49874             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
49875             # AIX install.  It has an incompatible calling convention.
49876             :
49877           elif test $ac_prog = install &&
49878             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
49879             # program-specific install script used by HP pwplus--don't use.
49880             :
49881           else
49882             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
49883             break 3
49884           fi
49885         fi
49886       done
49887     done
49888     ;;
49889 esac
49890 done
49891 IFS=$as_save_IFS
49892
49893
49894 fi
49895   if test "${ac_cv_path_install+set}" = set; then
49896     INSTALL=$ac_cv_path_install
49897   else
49898     # As a last resort, use the slow shell script.  Don't cache a
49899     # value for INSTALL within a source directory, because that will
49900     # break other packages using the cache if that directory is
49901     # removed, or if the value is a relative name.
49902     INSTALL=$ac_install_sh
49903   fi
49904 fi
49905 { echo "$as_me:$LINENO: result: $INSTALL" >&5
49906 echo "${ECHO_T}$INSTALL" >&6; }
49907
49908 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
49909 # It thinks the first close brace ends the variable substitution.
49910 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
49911
49912 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
49913
49914 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
49915
49916     { echo "$as_me:$LINENO: checking whether ln -s works" >&5
49917 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
49918 LN_S=$as_ln_s
49919 if test "$LN_S" = "ln -s"; then
49920   { echo "$as_me:$LINENO: result: yes" >&5
49921 echo "${ECHO_T}yes" >&6; }
49922 else
49923   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
49924 echo "${ECHO_T}no, using $LN_S" >&6; }
49925 fi
49926
49927
49928     { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
49929 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
49930 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
49931 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
49932   echo $ECHO_N "(cached) $ECHO_C" >&6
49933 else
49934   cat >conftest.make <<\_ACEOF
49935 SHELL = /bin/sh
49936 all:
49937         @echo '@@@%%%=$(MAKE)=@@@%%%'
49938 _ACEOF
49939 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
49940 case `${MAKE-make} -f conftest.make 2>/dev/null` in
49941   *@@@%%%=?*=@@@%%%*)
49942     eval ac_cv_prog_make_${ac_make}_set=yes;;
49943   *)
49944     eval ac_cv_prog_make_${ac_make}_set=no;;
49945 esac
49946 rm -f conftest.make
49947 fi
49948 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
49949   { echo "$as_me:$LINENO: result: yes" >&5
49950 echo "${ECHO_T}yes" >&6; }
49951   SET_MAKE=
49952 else
49953   { echo "$as_me:$LINENO: result: no" >&5
49954 echo "${ECHO_T}no" >&6; }
49955   SET_MAKE="MAKE=${MAKE-make}"
49956 fi
49957
49958
49959
49960     if test "x$SUNCXX" = "xyes"; then
49961                                 AR=$CXX
49962         AROPTIONS="-xar -o"
49963
49964     elif test "x$SGICC" = "xyes"; then
49965                 AR=$CXX
49966         AROPTIONS="-ar -o"
49967
49968     else
49969         if test -n "$ac_tool_prefix"; then
49970   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
49971 set dummy ${ac_tool_prefix}ar; ac_word=$2
49972 { echo "$as_me:$LINENO: checking for $ac_word" >&5
49973 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
49974 if test "${ac_cv_prog_AR+set}" = set; then
49975   echo $ECHO_N "(cached) $ECHO_C" >&6
49976 else
49977   if test -n "$AR"; then
49978   ac_cv_prog_AR="$AR" # Let the user override the test.
49979 else
49980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
49981 for as_dir in $PATH
49982 do
49983   IFS=$as_save_IFS
49984   test -z "$as_dir" && as_dir=.
49985   for ac_exec_ext in '' $ac_executable_extensions; do
49986   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
49987     ac_cv_prog_AR="${ac_tool_prefix}ar"
49988     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
49989     break 2
49990   fi
49991 done
49992 done
49993 IFS=$as_save_IFS
49994
49995 fi
49996 fi
49997 AR=$ac_cv_prog_AR
49998 if test -n "$AR"; then
49999   { echo "$as_me:$LINENO: result: $AR" >&5
50000 echo "${ECHO_T}$AR" >&6; }
50001 else
50002   { echo "$as_me:$LINENO: result: no" >&5
50003 echo "${ECHO_T}no" >&6; }
50004 fi
50005
50006
50007 fi
50008 if test -z "$ac_cv_prog_AR"; then
50009   ac_ct_AR=$AR
50010   # Extract the first word of "ar", so it can be a program name with args.
50011 set dummy ar; ac_word=$2
50012 { echo "$as_me:$LINENO: checking for $ac_word" >&5
50013 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
50014 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
50015   echo $ECHO_N "(cached) $ECHO_C" >&6
50016 else
50017   if test -n "$ac_ct_AR"; then
50018   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
50019 else
50020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
50021 for as_dir in $PATH
50022 do
50023   IFS=$as_save_IFS
50024   test -z "$as_dir" && as_dir=.
50025   for ac_exec_ext in '' $ac_executable_extensions; do
50026   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
50027     ac_cv_prog_ac_ct_AR="ar"
50028     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
50029     break 2
50030   fi
50031 done
50032 done
50033 IFS=$as_save_IFS
50034
50035 fi
50036 fi
50037 ac_ct_AR=$ac_cv_prog_ac_ct_AR
50038 if test -n "$ac_ct_AR"; then
50039   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
50040 echo "${ECHO_T}$ac_ct_AR" >&6; }
50041 else
50042   { echo "$as_me:$LINENO: result: no" >&5
50043 echo "${ECHO_T}no" >&6; }
50044 fi
50045
50046   if test "x$ac_ct_AR" = x; then
50047     AR="ar"
50048   else
50049     case $cross_compiling:$ac_tool_warned in
50050 yes:)
50051 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
50052 whose name does not start with the host triplet.  If you think this
50053 configuration is useful to you, please write to autoconf@gnu.org." >&5
50054 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
50055 whose name does not start with the host triplet.  If you think this
50056 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
50057 ac_tool_warned=yes ;;
50058 esac
50059     AR=$ac_ct_AR
50060   fi
50061 else
50062   AR="$ac_cv_prog_AR"
50063 fi
50064
50065         AROPTIONS=rcu
50066     fi
50067
50068
50069     if test -n "$ac_tool_prefix"; then
50070   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
50071 set dummy ${ac_tool_prefix}strip; ac_word=$2
50072 { echo "$as_me:$LINENO: checking for $ac_word" >&5
50073 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
50074 if test "${ac_cv_prog_STRIP+set}" = set; then
50075   echo $ECHO_N "(cached) $ECHO_C" >&6
50076 else
50077   if test -n "$STRIP"; then
50078   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
50079 else
50080 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
50081 for as_dir in $PATH
50082 do
50083   IFS=$as_save_IFS
50084   test -z "$as_dir" && as_dir=.
50085   for ac_exec_ext in '' $ac_executable_extensions; do
50086   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
50087     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
50088     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
50089     break 2
50090   fi
50091 done
50092 done
50093 IFS=$as_save_IFS
50094
50095 fi
50096 fi
50097 STRIP=$ac_cv_prog_STRIP
50098 if test -n "$STRIP"; then
50099   { echo "$as_me:$LINENO: result: $STRIP" >&5
50100 echo "${ECHO_T}$STRIP" >&6; }
50101 else
50102   { echo "$as_me:$LINENO: result: no" >&5
50103 echo "${ECHO_T}no" >&6; }
50104 fi
50105
50106
50107 fi
50108 if test -z "$ac_cv_prog_STRIP"; then
50109   ac_ct_STRIP=$STRIP
50110   # Extract the first word of "strip", so it can be a program name with args.
50111 set dummy strip; ac_word=$2
50112 { echo "$as_me:$LINENO: checking for $ac_word" >&5
50113 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
50114 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
50115   echo $ECHO_N "(cached) $ECHO_C" >&6
50116 else
50117   if test -n "$ac_ct_STRIP"; then
50118   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
50119 else
50120 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
50121 for as_dir in $PATH
50122 do
50123   IFS=$as_save_IFS
50124   test -z "$as_dir" && as_dir=.
50125   for ac_exec_ext in '' $ac_executable_extensions; do
50126   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
50127     ac_cv_prog_ac_ct_STRIP="strip"
50128     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
50129     break 2
50130   fi
50131 done
50132 done
50133 IFS=$as_save_IFS
50134
50135 fi
50136 fi
50137 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
50138 if test -n "$ac_ct_STRIP"; then
50139   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
50140 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
50141 else
50142   { echo "$as_me:$LINENO: result: no" >&5
50143 echo "${ECHO_T}no" >&6; }
50144 fi
50145
50146   if test "x$ac_ct_STRIP" = x; then
50147     STRIP=":"
50148   else
50149     case $cross_compiling:$ac_tool_warned in
50150 yes:)
50151 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
50152 whose name does not start with the host triplet.  If you think this
50153 configuration is useful to you, please write to autoconf@gnu.org." >&5
50154 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
50155 whose name does not start with the host triplet.  If you think this
50156 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
50157 ac_tool_warned=yes ;;
50158 esac
50159     STRIP=$ac_ct_STRIP
50160   fi
50161 else
50162   STRIP="$ac_cv_prog_STRIP"
50163 fi
50164
50165     if test -n "$ac_tool_prefix"; then
50166   # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
50167 set dummy ${ac_tool_prefix}nm; ac_word=$2
50168 { echo "$as_me:$LINENO: checking for $ac_word" >&5
50169 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
50170 if test "${ac_cv_prog_NM+set}" = set; then
50171   echo $ECHO_N "(cached) $ECHO_C" >&6
50172 else
50173   if test -n "$NM"; then
50174   ac_cv_prog_NM="$NM" # Let the user override the test.
50175 else
50176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
50177 for as_dir in $PATH
50178 do
50179   IFS=$as_save_IFS
50180   test -z "$as_dir" && as_dir=.
50181   for ac_exec_ext in '' $ac_executable_extensions; do
50182   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
50183     ac_cv_prog_NM="${ac_tool_prefix}nm"
50184     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
50185     break 2
50186   fi
50187 done
50188 done
50189 IFS=$as_save_IFS
50190
50191 fi
50192 fi
50193 NM=$ac_cv_prog_NM
50194 if test -n "$NM"; then
50195   { echo "$as_me:$LINENO: result: $NM" >&5
50196 echo "${ECHO_T}$NM" >&6; }
50197 else
50198   { echo "$as_me:$LINENO: result: no" >&5
50199 echo "${ECHO_T}no" >&6; }
50200 fi
50201
50202
50203 fi
50204 if test -z "$ac_cv_prog_NM"; then
50205   ac_ct_NM=$NM
50206   # Extract the first word of "nm", so it can be a program name with args.
50207 set dummy nm; ac_word=$2
50208 { echo "$as_me:$LINENO: checking for $ac_word" >&5
50209 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
50210 if test "${ac_cv_prog_ac_ct_NM+set}" = set; then
50211   echo $ECHO_N "(cached) $ECHO_C" >&6
50212 else
50213   if test -n "$ac_ct_NM"; then
50214   ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
50215 else
50216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
50217 for as_dir in $PATH
50218 do
50219   IFS=$as_save_IFS
50220   test -z "$as_dir" && as_dir=.
50221   for ac_exec_ext in '' $ac_executable_extensions; do
50222   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
50223     ac_cv_prog_ac_ct_NM="nm"
50224     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
50225     break 2
50226   fi
50227 done
50228 done
50229 IFS=$as_save_IFS
50230
50231 fi
50232 fi
50233 ac_ct_NM=$ac_cv_prog_ac_ct_NM
50234 if test -n "$ac_ct_NM"; then
50235   { echo "$as_me:$LINENO: result: $ac_ct_NM" >&5
50236 echo "${ECHO_T}$ac_ct_NM" >&6; }
50237 else
50238   { echo "$as_me:$LINENO: result: no" >&5
50239 echo "${ECHO_T}no" >&6; }
50240 fi
50241
50242   if test "x$ac_ct_NM" = x; then
50243     NM=":"
50244   else
50245     case $cross_compiling:$ac_tool_warned in
50246 yes:)
50247 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
50248 whose name does not start with the host triplet.  If you think this
50249 configuration is useful to you, please write to autoconf@gnu.org." >&5
50250 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
50251 whose name does not start with the host triplet.  If you think this
50252 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
50253 ac_tool_warned=yes ;;
50254 esac
50255     NM=$ac_ct_NM
50256   fi
50257 else
50258   NM="$ac_cv_prog_NM"
50259 fi
50260
50261
50262             { echo "$as_me:$LINENO: checking for command to install directories" >&5
50263 echo $ECHO_N "checking for command to install directories... $ECHO_C" >&6; }
50264     INSTALL_TEST_DIR=acbftest$$
50265     $INSTALL -d $INSTALL_TEST_DIR > /dev/null 2>&1
50266     if test $? = 0 -a -d $INSTALL_TEST_DIR; then
50267         rmdir $INSTALL_TEST_DIR
50268                         INSTALL_DIR='$(INSTALL) -d'
50269         { echo "$as_me:$LINENO: result: $INSTALL -d" >&5
50270 echo "${ECHO_T}$INSTALL -d" >&6; }
50271     else
50272         INSTALL_DIR="mkdir -p"
50273         { echo "$as_me:$LINENO: result: mkdir -p" >&5
50274 echo "${ECHO_T}mkdir -p" >&6; }
50275     fi
50276
50277
50278     LDFLAGS_GUI=
50279     case ${BAKEFILE_HOST} in
50280         *-*-cygwin* | *-*-mingw32* )
50281         LDFLAGS_GUI="-mwindows"
50282     esac
50283
50284
50285     fi
50286
50287         { echo "$as_me:$LINENO: checking if make is GNU make" >&5
50288 echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6; }
50289 if test "${bakefile_cv_prog_makeisgnu+set}" = set; then
50290   echo $ECHO_N "(cached) $ECHO_C" >&6
50291 else
50292
50293         if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
50294                 egrep -s GNU > /dev/null); then
50295             bakefile_cv_prog_makeisgnu="yes"
50296         else
50297             bakefile_cv_prog_makeisgnu="no"
50298         fi
50299
50300 fi
50301 { echo "$as_me:$LINENO: result: $bakefile_cv_prog_makeisgnu" >&5
50302 echo "${ECHO_T}$bakefile_cv_prog_makeisgnu" >&6; }
50303
50304     if test "x$bakefile_cv_prog_makeisgnu" = "xyes"; then
50305         IF_GNU_MAKE=""
50306     else
50307         IF_GNU_MAKE="#"
50308     fi
50309
50310
50311
50312     PLATFORM_UNIX=0
50313     PLATFORM_WIN32=0
50314     PLATFORM_MSDOS=0
50315     PLATFORM_MAC=0
50316     PLATFORM_MACOS=0
50317     PLATFORM_MACOSX=0
50318     PLATFORM_OS2=0
50319     PLATFORM_BEOS=0
50320
50321     if test "x$BAKEFILE_FORCE_PLATFORM" = "x"; then
50322         case "${BAKEFILE_HOST}" in
50323             *-*-mingw32* )
50324                 PLATFORM_WIN32=1
50325             ;;
50326             *-pc-msdosdjgpp )
50327                 PLATFORM_MSDOS=1
50328             ;;
50329             *-pc-os2_emx | *-pc-os2-emx )
50330                 PLATFORM_OS2=1
50331             ;;
50332             *-*-darwin* )
50333                 PLATFORM_MAC=1
50334                 PLATFORM_MACOSX=1
50335             ;;
50336             *-*-beos* )
50337                 PLATFORM_BEOS=1
50338             ;;
50339             powerpc-apple-macos* )
50340                 PLATFORM_MAC=1
50341                 PLATFORM_MACOS=1
50342             ;;
50343             * )
50344                 PLATFORM_UNIX=1
50345             ;;
50346         esac
50347     else
50348         case "$BAKEFILE_FORCE_PLATFORM" in
50349             win32 )
50350                 PLATFORM_WIN32=1
50351             ;;
50352             msdos )
50353                 PLATFORM_MSDOS=1
50354             ;;
50355             os2 )
50356                 PLATFORM_OS2=1
50357             ;;
50358             darwin )
50359                 PLATFORM_MAC=1
50360                 PLATFORM_MACOSX=1
50361             ;;
50362             unix )
50363                 PLATFORM_UNIX=1
50364             ;;
50365             beos )
50366                 PLATFORM_BEOS=1
50367             ;;
50368             * )
50369                 { { echo "$as_me:$LINENO: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&5
50370 echo "$as_me: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&2;}
50371    { (exit 1); exit 1; }; }
50372             ;;
50373         esac
50374     fi
50375
50376
50377
50378
50379
50380
50381
50382
50383
50384
50385
50386     # Check whether --enable-omf was given.
50387 if test "${enable_omf+set}" = set; then
50388   enableval=$enable_omf; bk_os2_use_omf="$enableval"
50389 fi
50390
50391
50392     case "${BAKEFILE_HOST}" in
50393       *-*-darwin* )
50394                         if test "x$GCC" = "xyes"; then
50395             CFLAGS="$CFLAGS -fno-common"
50396             CXXFLAGS="$CXXFLAGS -fno-common"
50397         fi
50398         if test "x$XLCC" = "xyes"; then
50399             CFLAGS="$CFLAGS -qnocommon"
50400             CXXFLAGS="$CXXFLAGS -qnocommon"
50401         fi
50402         ;;
50403
50404       *-pc-os2_emx | *-pc-os2-emx )
50405         if test "x$bk_os2_use_omf" = "xyes" ; then
50406             AR=emxomfar
50407             RANLIB=:
50408             LDFLAGS="-Zomf $LDFLAGS"
50409             CFLAGS="-Zomf $CFLAGS"
50410             CXXFLAGS="-Zomf $CXXFLAGS"
50411             OS2_LIBEXT="lib"
50412         else
50413             OS2_LIBEXT="a"
50414         fi
50415         ;;
50416
50417       i*86-*-beos* )
50418         LDFLAGS="-L/boot/develop/lib/x86 $LDFLAGS"
50419         ;;
50420     esac
50421
50422
50423     SO_SUFFIX="so"
50424     SO_SUFFIX_MODULE="so"
50425     EXEEXT=""
50426     LIBPREFIX="lib"
50427     LIBEXT=".a"
50428     DLLPREFIX="lib"
50429     DLLPREFIX_MODULE=""
50430     DLLIMP_SUFFIX=""
50431     dlldir="$libdir"
50432
50433     case "${BAKEFILE_HOST}" in
50434                         ia64-hp-hpux* )
50435         ;;
50436         *-hp-hpux* )
50437             SO_SUFFIX="sl"
50438             SO_SUFFIX_MODULE="sl"
50439         ;;
50440         *-*-aix* )
50441                                                                         SO_SUFFIX="a"
50442             SO_SUFFIX_MODULE="a"
50443         ;;
50444         *-*-cygwin* )
50445             SO_SUFFIX="dll"
50446             SO_SUFFIX_MODULE="dll"
50447             DLLIMP_SUFFIX="dll.a"
50448             EXEEXT=".exe"
50449             DLLPREFIX="cyg"
50450             dlldir="$bindir"
50451         ;;
50452         *-*-mingw32* )
50453             SO_SUFFIX="dll"
50454             SO_SUFFIX_MODULE="dll"
50455             DLLIMP_SUFFIX="dll.a"
50456             EXEEXT=".exe"
50457             DLLPREFIX=""
50458             dlldir="$bindir"
50459         ;;
50460         *-pc-msdosdjgpp )
50461             EXEEXT=".exe"
50462             DLLPREFIX=""
50463             dlldir="$bindir"
50464         ;;
50465         *-pc-os2_emx | *-pc-os2-emx )
50466             SO_SUFFIX="dll"
50467             SO_SUFFIX_MODULE="dll"
50468             DLLIMP_SUFFIX=$OS2_LIBEXT
50469             EXEEXT=".exe"
50470             DLLPREFIX=""
50471             LIBPREFIX=""
50472             LIBEXT=".$OS2_LIBEXT"
50473             dlldir="$bindir"
50474         ;;
50475         *-*-darwin* )
50476             SO_SUFFIX="dylib"
50477             SO_SUFFIX_MODULE="bundle"
50478         ;;
50479     esac
50480
50481     if test "x$DLLIMP_SUFFIX" = "x" ; then
50482         DLLIMP_SUFFIX="$SO_SUFFIX"
50483     fi
50484
50485
50486
50487
50488
50489
50490
50491
50492
50493
50494
50495
50496         PIC_FLAG=""
50497     if test "x$GCC" = "xyes"; then
50498                 PIC_FLAG="-fPIC"
50499     fi
50500
50501         SHARED_LD_CC="\$(CC) -shared ${PIC_FLAG} -o"
50502     SHARED_LD_CXX="\$(CXX) -shared ${PIC_FLAG} -o"
50503     WINDOWS_IMPLIB=0
50504
50505     case "${BAKEFILE_HOST}" in
50506       *-hp-hpux* )
50507                 if test "x$GCC" != "xyes"; then
50508                         LDFLAGS="$LDFLAGS -L/usr/lib"
50509
50510             SHARED_LD_CC="${CC} -b -o"
50511             SHARED_LD_CXX="${CXX} -b -o"
50512             PIC_FLAG="+Z"
50513         fi
50514       ;;
50515
50516       *-*-linux* )
50517                         if test "$INTELCC" = "yes" -a "$INTELCC8" != "yes"; then
50518             PIC_FLAG="-KPIC"
50519         elif test "x$SUNCXX" = "xyes"; then
50520             SHARED_LD_CC="${CC} -G -o"
50521             SHARED_LD_CXX="${CXX} -G -o"
50522             PIC_FLAG="-KPIC"
50523         fi
50524       ;;
50525
50526       *-*-solaris2* )
50527         if test "x$SUNCXX" = xyes ; then
50528             SHARED_LD_CC="${CC} -G -o"
50529             SHARED_LD_CXX="${CXX} -G -o"
50530             PIC_FLAG="-KPIC"
50531         fi
50532       ;;
50533
50534       *-*-darwin* )
50535
50536 D='$'
50537 cat <<EOF >shared-ld-sh
50538 #!/bin/sh
50539 #-----------------------------------------------------------------------------
50540 #-- Name:        distrib/mac/shared-ld-sh
50541 #-- Purpose:     Link a mach-o dynamic shared library for Darwin / Mac OS X
50542 #-- Author:      Gilles Depeyrot
50543 #-- Copyright:   (c) 2002 Gilles Depeyrot
50544 #-- Licence:     any use permitted
50545 #-----------------------------------------------------------------------------
50546
50547 verbose=0
50548 args=""
50549 objects=""
50550 linking_flag="-dynamiclib"
50551 ldargs="-r -keep_private_externs -nostdlib"
50552
50553 if test "x${D}CXX" = "x"; then
50554     CXX="c++"
50555 fi
50556
50557 while test ${D}# -gt 0; do
50558     case ${D}1 in
50559
50560        -v)
50561         verbose=1
50562         ;;
50563
50564        -o|-compatibility_version|-current_version|-framework|-undefined|-install_name)
50565         # collect these options and values
50566         args="${D}{args} ${D}1 ${D}2"
50567         shift
50568         ;;
50569
50570        -arch|-isysroot)
50571         # collect these options and values
50572         ldargs="${D}{ldargs} ${D}1 ${D}2"
50573         shift
50574         ;;
50575
50576        -s|-Wl,*)
50577         # collect these load args
50578         ldargs="${D}{ldargs} ${D}1"
50579         ;;
50580
50581        -l*|-L*|-flat_namespace|-headerpad_max_install_names)
50582         # collect these options
50583         args="${D}{args} ${D}1"
50584         ;;
50585
50586        -dynamiclib|-bundle)
50587         linking_flag="${D}1"
50588         ;;
50589
50590        -*)
50591         echo "shared-ld: unhandled option '${D}1'"
50592         exit 1
50593         ;;
50594
50595         *.o | *.a | *.dylib)
50596         # collect object files
50597         objects="${D}{objects} ${D}1"
50598         ;;
50599
50600         *)
50601         echo "shared-ld: unhandled argument '${D}1'"
50602         exit 1
50603         ;;
50604
50605     esac
50606     shift
50607 done
50608
50609 status=0
50610
50611 #
50612 # Link one module containing all the others
50613 #
50614 if test ${D}{verbose} = 1; then
50615     echo "${D}CXX ${D}{ldargs} ${D}{objects} -o master.${D}${D}.o"
50616 fi
50617 ${D}CXX ${D}{ldargs} ${D}{objects} -o master.${D}${D}.o
50618 status=${D}?
50619
50620 #
50621 # Link the shared library from the single module created, but only if the
50622 # previous command didn't fail:
50623 #
50624 if test ${D}{status} = 0; then
50625     if test ${D}{verbose} = 1; then
50626         echo "${D}CXX ${D}{linking_flag} master.${D}${D}.o ${D}{args}"
50627     fi
50628     ${D}CXX ${D}{linking_flag} master.${D}${D}.o ${D}{args}
50629     status=${D}?
50630 fi
50631
50632 #
50633 # Remove intermediate module
50634 #
50635 rm -f master.${D}${D}.o
50636
50637 exit ${D}status
50638 EOF
50639
50640         chmod +x shared-ld-sh
50641
50642         SHARED_LD_MODULE_CC="`pwd`/shared-ld-sh -bundle -headerpad_max_install_names -o"
50643         SHARED_LD_MODULE_CXX="CXX=\"\$(CXX)\" $SHARED_LD_MODULE_CC"
50644
50645
50646                                 { echo "$as_me:$LINENO: checking for gcc 3.1 or later" >&5
50647 echo $ECHO_N "checking for gcc 3.1 or later... $ECHO_C" >&6; }
50648 if test "${bakefile_cv_gcc31+set}" = set; then
50649   echo $ECHO_N "(cached) $ECHO_C" >&6
50650 else
50651
50652            cat >conftest.$ac_ext <<_ACEOF
50653 /* confdefs.h.  */
50654 _ACEOF
50655 cat confdefs.h >>conftest.$ac_ext
50656 cat >>conftest.$ac_ext <<_ACEOF
50657 /* end confdefs.h.  */
50658
50659 int
50660 main ()
50661 {
50662
50663                    #if (__GNUC__ < 3) || \
50664                        ((__GNUC__ == 3) && (__GNUC_MINOR__ < 1))
50665                        This is old gcc
50666                    #endif
50667
50668   ;
50669   return 0;
50670 }
50671 _ACEOF
50672 rm -f conftest.$ac_objext
50673 if { (ac_try="$ac_compile"
50674 case "(($ac_try" in
50675   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50676   *) ac_try_echo=$ac_try;;
50677 esac
50678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
50679   (eval "$ac_compile") 2>conftest.er1
50680   ac_status=$?
50681   grep -v '^ *+' conftest.er1 >conftest.err
50682   rm -f conftest.er1
50683   cat conftest.err >&5
50684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50685   (exit $ac_status); } && {
50686          test -z "$ac_c_werror_flag" ||
50687          test ! -s conftest.err
50688        } && test -s conftest.$ac_objext; then
50689
50690                    bakefile_cv_gcc31=yes
50691
50692 else
50693   echo "$as_me: failed program was:" >&5
50694 sed 's/^/| /' conftest.$ac_ext >&5
50695
50696
50697                    bakefile_cv_gcc31=no
50698
50699
50700 fi
50701
50702 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
50703
50704 fi
50705 { echo "$as_me:$LINENO: result: $bakefile_cv_gcc31" >&5
50706 echo "${ECHO_T}$bakefile_cv_gcc31" >&6; }
50707         if test "$bakefile_cv_gcc31" = "no"; then
50708                         SHARED_LD_CC="`pwd`/shared-ld-sh -dynamiclib -headerpad_max_install_names -o"
50709             SHARED_LD_CXX="$SHARED_LD_CC"
50710         else
50711                         SHARED_LD_CC="\${CC} -dynamiclib -single_module -headerpad_max_install_names -o"
50712             SHARED_LD_CXX="\${CXX} -dynamiclib -single_module -headerpad_max_install_names -o"
50713         fi
50714
50715         if test "x$GCC" == "xyes"; then
50716             PIC_FLAG="-dynamic -fPIC"
50717         fi
50718         if test "x$XLCC" = "xyes"; then
50719             PIC_FLAG="-dynamic -DPIC"
50720         fi
50721       ;;
50722
50723       *-*-aix* )
50724         if test "x$GCC" = "xyes"; then
50725                                                             PIC_FLAG=""
50726
50727                                                                                     case "${BAKEFILE_HOST}" in
50728                 *-*-aix5* )
50729                     LD_EXPFULL="-Wl,-bexpfull"
50730                     ;;
50731             esac
50732
50733             SHARED_LD_CC="\$(CC) -shared $LD_EXPFULL -o"
50734             SHARED_LD_CXX="\$(CXX) -shared $LD_EXPFULL -o"
50735         else
50736                                     # Extract the first word of "makeC++SharedLib", so it can be a program name with args.
50737 set dummy makeC++SharedLib; ac_word=$2
50738 { echo "$as_me:$LINENO: checking for $ac_word" >&5
50739 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
50740 if test "${ac_cv_prog_AIX_CXX_LD+set}" = set; then
50741   echo $ECHO_N "(cached) $ECHO_C" >&6
50742 else
50743   if test -n "$AIX_CXX_LD"; then
50744   ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test.
50745 else
50746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
50747 for as_dir in $PATH
50748 do
50749   IFS=$as_save_IFS
50750   test -z "$as_dir" && as_dir=.
50751   for ac_exec_ext in '' $ac_executable_extensions; do
50752   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
50753     ac_cv_prog_AIX_CXX_LD="makeC++SharedLib"
50754     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
50755     break 2
50756   fi
50757 done
50758 done
50759 IFS=$as_save_IFS
50760
50761   test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib"
50762 fi
50763 fi
50764 AIX_CXX_LD=$ac_cv_prog_AIX_CXX_LD
50765 if test -n "$AIX_CXX_LD"; then
50766   { echo "$as_me:$LINENO: result: $AIX_CXX_LD" >&5
50767 echo "${ECHO_T}$AIX_CXX_LD" >&6; }
50768 else
50769   { echo "$as_me:$LINENO: result: no" >&5
50770 echo "${ECHO_T}no" >&6; }
50771 fi
50772
50773
50774             SHARED_LD_CC="$AIX_CC_LD -p 0 -o"
50775             SHARED_LD_CXX="$AIX_CXX_LD -p 0 -o"
50776         fi
50777       ;;
50778
50779       *-*-beos* )
50780                         SHARED_LD_CC="${LD} -nostart -o"
50781         SHARED_LD_CXX="${LD} -nostart -o"
50782       ;;
50783
50784       *-*-irix* )
50785                 if test "x$GCC" != "xyes"; then
50786             PIC_FLAG="-KPIC"
50787         fi
50788       ;;
50789
50790       *-*-cygwin* | *-*-mingw32* )
50791         PIC_FLAG=""
50792         SHARED_LD_CC="\$(CC) -shared -o"
50793         SHARED_LD_CXX="\$(CXX) -shared -o"
50794         WINDOWS_IMPLIB=1
50795       ;;
50796
50797       *-pc-os2_emx | *-pc-os2-emx )
50798         SHARED_LD_CC="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
50799         SHARED_LD_CXX="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
50800         PIC_FLAG=""
50801
50802 D='$'
50803 cat <<EOF >dllar.sh
50804 #!/bin/sh
50805 #
50806 # dllar - a tool to build both a .dll and an .a file
50807 # from a set of object (.o) files for EMX/OS2.
50808 #
50809 #  Written by Andrew Zabolotny, bit@freya.etu.ru
50810 #  Ported to Unix like shell by Stefan Neis, Stefan.Neis@t-online.de
50811 #
50812 #  This script will accept a set of files on the command line.
50813 #  All the public symbols from the .o files will be exported into
50814 #  a .DEF file, then linker will be run (through gcc) against them to
50815 #  build a shared library consisting of all given .o files. All libraries
50816 #  (.a) will be first decompressed into component .o files then act as
50817 #  described above. You can optionally give a description (-d "description")
50818 #  which will be put into .DLL. To see the list of accepted options (as well
50819 #  as command-line format) simply run this program without options. The .DLL
50820 #  is built to be imported by name (there is no guarantee that new versions
50821 #  of the library you build will have same ordinals for same symbols).
50822 #
50823 #  dllar is free software; you can redistribute it and/or modify
50824 #  it under the terms of the GNU General Public License as published by
50825 #  the Free Software Foundation; either version 2, or (at your option)
50826 #  any later version.
50827 #
50828 #  dllar is distributed in the hope that it will be useful,
50829 #  but WITHOUT ANY WARRANTY; without even the implied warranty of
50830 #  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
50831 #  GNU General Public License for more details.
50832 #
50833 #  You should have received a copy of the GNU General Public License
50834 #  along with dllar; see the file COPYING.  If not, write to the Free
50835 #  Software Foundation, 59 Temple Place - Suite 330, Boston, MA
50836 #  02111-1307, USA.
50837
50838 # To successfuly run this program you will need:
50839 #  - Current drive should have LFN support (HPFS, ext2, network, etc)
50840 #    (Sometimes dllar generates filenames which won't fit 8.3 scheme)
50841 #  - gcc
50842 #    (used to build the .dll)
50843 #  - emxexp
50844 #    (used to create .def file from .o files)
50845 #  - emximp
50846 #    (used to create .a file from .def file)
50847 #  - GNU text utilites (cat, sort, uniq)
50848 #    used to process emxexp output
50849 #  - GNU file utilities (mv, rm)
50850 #  - GNU sed
50851 #  - lxlite (optional, see flag below)
50852 #    (used for general .dll cleanup)
50853 #
50854
50855 flag_USE_LXLITE=1;
50856
50857 #
50858 # helper functions
50859 # basnam, variant of basename, which does _not_ remove the path, _iff_
50860 #                              second argument (suffix to remove) is given
50861 basnam(){
50862     case ${D}# in
50863     1)
50864         echo ${D}1 | sed 's/.*\\///' | sed 's/.*\\\\//'
50865         ;;
50866     2)
50867         echo ${D}1 | sed 's/'${D}2'${D}//'
50868         ;;
50869     *)
50870         echo "error in basnam ${D}*"
50871         exit 8
50872         ;;
50873     esac
50874 }
50875
50876 # Cleanup temporary files and output
50877 CleanUp() {
50878     cd ${D}curDir
50879     for i in ${D}inputFiles ; do
50880         case ${D}i in
50881         *!)
50882             rm -rf \`basnam ${D}i !\`
50883             ;;
50884         *)
50885             ;;
50886         esac
50887     done
50888
50889     # Kill result in case of failure as there is just to many stupid make/nmake
50890     # things out there which doesn't do this.
50891     if [ ${D}# -eq 0 ]; then
50892         rm -f ${D}arcFile ${D}arcFile2 ${D}defFile ${D}dllFile
50893     fi
50894 }
50895
50896 # Print usage and exit script with rc=1.
50897 PrintHelp() {
50898  echo 'Usage: dllar.sh [-o[utput] output_file] [-i[mport] importlib_name]'
50899  echo '       [-name-mangler-script script.sh]'
50900  echo '       [-d[escription] "dll descrption"] [-cc "CC"] [-f[lags] "CFLAGS"]'
50901  echo '       [-ord[inals]] -ex[clude] "symbol(s)"'
50902  echo '       [-libf[lags] "{INIT|TERM}{GLOBAL|INSTANCE}"] [-nocrt[dll]] [-nolxl[ite]]'
50903  echo '       [*.o] [*.a]'
50904  echo '*> "output_file" should have no extension.'
50905  echo '   If it has the .o, .a or .dll extension, it is automatically removed.'
50906  echo '   The import library name is derived from this and is set to "name".a,'
50907  echo '   unless overridden by -import'
50908  echo '*> "importlib_name" should have no extension.'
50909  echo '   If it has the .o, or .a extension, it is automatically removed.'
50910  echo '   This name is used as the import library name and may be longer and'
50911  echo '   more descriptive than the DLL name which has to follow the old '
50912  echo '   8.3 convention of FAT.'
50913  echo '*> "script.sh may be given to override the output_file name by a'
50914  echo '   different name. It is mainly useful if the regular make process'
50915  echo '   of some package does not take into account OS/2 restriction of'
50916  echo '   DLL name lengths. It takes the importlib name as input and is'
50917  echo '   supposed to procude a shorter name as output. The script should'
50918  echo '   expect to get importlib_name without extension and should produce'
50919  echo '   a (max.) 8 letter name without extension.'
50920  echo '*> "cc" is used to use another GCC executable.   (default: gcc.exe)'
50921  echo '*> "flags" should be any set of valid GCC flags. (default: -s -Zcrtdll)'
50922  echo '   These flags will be put at the start of GCC command line.'
50923  echo '*> -ord[inals] tells dllar to export entries by ordinals. Be careful.'
50924  echo '*> -ex[clude] defines symbols which will not be exported. You can define'
50925  echo '   multiple symbols, for example -ex "myfunc yourfunc _GLOBAL*".'
50926  echo '   If the last character of a symbol is "*", all symbols beginning'
50927  echo '   with the prefix before "*" will be exclude, (see _GLOBAL* above).'
50928  echo '*> -libf[lags] can be used to add INITGLOBAL/INITINSTANCE and/or'
50929  echo '   TERMGLOBAL/TERMINSTANCE flags to the dynamically-linked library.'
50930  echo '*> -nocrt[dll] switch will disable linking the library against emx''s'
50931  echo '   C runtime DLLs.'
50932  echo '*> -nolxl[ite] switch will disable running lxlite on the resulting DLL.'
50933  echo '*> All other switches (for example -L./ or -lmylib) will be passed'
50934  echo '   unchanged to GCC at the end of command line.'
50935  echo '*> If you create a DLL from a library and you do not specify -o,'
50936  echo '   the basename for DLL and import library will be set to library name,'
50937  echo '   the initial library will be renamed to 'name'_s.a (_s for static)'
50938  echo '   i.e. "dllar gcc.a" will create gcc.dll and gcc.a, and the initial'
50939  echo '   library will be renamed into gcc_s.a.'
50940  echo '--------'
50941  echo 'Example:'
50942  echo '   dllar -o gcc290.dll libgcc.a -d "GNU C runtime library" -ord'
50943  echo '    -ex "__main __ctordtor*" -libf "INITINSTANCE TERMINSTANCE"'
50944  CleanUp
50945  exit 1
50946 }
50947
50948 # Execute a command.
50949 # If exit code of the commnad <> 0 CleanUp() is called and we'll exit the script.
50950 # @Uses    Whatever CleanUp() uses.
50951 doCommand() {
50952     echo "${D}*"
50953     eval ${D}*
50954     rcCmd=${D}?
50955
50956     if [ ${D}rcCmd -ne 0 ]; then
50957         echo "command failed, exit code="${D}rcCmd
50958         CleanUp
50959         exit ${D}rcCmd
50960     fi
50961 }
50962
50963 # main routine
50964 # setup globals
50965 cmdLine=${D}*
50966 outFile=""
50967 outimpFile=""
50968 inputFiles=""
50969 renameScript=""
50970 description=""
50971 CC=gcc.exe
50972 CFLAGS="-s -Zcrtdll"
50973 EXTRA_CFLAGS=""
50974 EXPORT_BY_ORDINALS=0
50975 exclude_symbols=""
50976 library_flags=""
50977 curDir=\`pwd\`
50978 curDirS=curDir
50979 case ${D}curDirS in
50980 */)
50981   ;;
50982 *)
50983   curDirS=${D}{curDirS}"/"
50984   ;;
50985 esac
50986 # Parse commandline
50987 libsToLink=0
50988 omfLinking=0
50989 while [ ${D}1 ]; do
50990     case ${D}1 in
50991     -ord*)
50992         EXPORT_BY_ORDINALS=1;
50993         ;;
50994     -o*)
50995         shift
50996         outFile=${D}1
50997         ;;
50998     -i*)
50999         shift
51000         outimpFile=${D}1
51001         ;;
51002     -name-mangler-script)
51003         shift
51004         renameScript=${D}1
51005         ;;
51006     -d*)
51007         shift
51008         description=${D}1
51009         ;;
51010     -f*)
51011         shift
51012         CFLAGS=${D}1
51013         ;;
51014     -c*)
51015         shift
51016         CC=${D}1
51017         ;;
51018     -h*)
51019         PrintHelp
51020         ;;
51021     -ex*)
51022         shift
51023         exclude_symbols=${D}{exclude_symbols}${D}1" "
51024         ;;
51025     -libf*)
51026         shift
51027         library_flags=${D}{library_flags}${D}1" "
51028         ;;
51029     -nocrt*)
51030         CFLAGS="-s"
51031         ;;
51032     -nolxl*)
51033         flag_USE_LXLITE=0
51034         ;;
51035     -* | /*)
51036         case ${D}1 in
51037         -L* | -l*)
51038             libsToLink=1
51039             ;;
51040         -Zomf)
51041             omfLinking=1
51042             ;;
51043         *)
51044             ;;
51045         esac
51046         EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
51047         ;;
51048     *.dll)
51049         EXTRA_CFLAGS="${D}{EXTRA_CFLAGS} \`basnam ${D}1 .dll\`"
51050         if [ ${D}omfLinking -eq 1 ]; then
51051             EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.lib"
51052         else
51053             EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.a"
51054         fi
51055         ;;
51056     *)
51057         found=0;
51058         if [ ${D}libsToLink -ne 0 ]; then
51059             EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
51060         else
51061             for file in ${D}1 ; do
51062                 if [ -f ${D}file ]; then
51063                     inputFiles="${D}{inputFiles} ${D}file"
51064                     found=1
51065                 fi
51066             done
51067             if [ ${D}found -eq 0 ]; then
51068                 echo "ERROR: No file(s) found: "${D}1
51069                 exit 8
51070             fi
51071         fi
51072       ;;
51073     esac
51074     shift
51075 done # iterate cmdline words
51076
51077 #
51078 if [ -z "${D}inputFiles" ]; then
51079     echo "dllar: no input files"
51080     PrintHelp
51081 fi
51082
51083 # Now extract all .o files from .a files
51084 newInputFiles=""
51085 for file in ${D}inputFiles ; do
51086     case ${D}file in
51087     *.a | *.lib)
51088         case ${D}file in
51089         *.a)
51090             suffix=".a"
51091             AR="ar"
51092             ;;
51093         *.lib)
51094             suffix=".lib"
51095             AR="emxomfar"
51096             EXTRA_CFLAGS="${D}EXTRA_CFLAGS -Zomf"
51097             ;;
51098         *)
51099             ;;
51100         esac
51101         dirname=\`basnam ${D}file ${D}suffix\`"_%"
51102         mkdir ${D}dirname
51103         if [ ${D}? -ne 0 ]; then
51104             echo "Failed to create subdirectory ./${D}dirname"
51105             CleanUp
51106             exit 8;
51107         fi
51108         # Append '!' to indicate archive
51109         newInputFiles="${D}newInputFiles ${D}{dirname}!"
51110         doCommand "cd ${D}dirname; ${D}AR x ../${D}file"
51111         cd ${D}curDir
51112         found=0;
51113         for subfile in ${D}dirname/*.o* ; do
51114             if [ -f ${D}subfile ]; then
51115                 found=1
51116                 if [ -s ${D}subfile ]; then
51117                     # FIXME: This should be: is file size > 32 byte, _not_ > 0!
51118                     newInputFiles="${D}newInputFiles ${D}subfile"
51119                 fi
51120             fi
51121         done
51122         if [ ${D}found -eq 0 ]; then
51123             echo "WARNING: there are no files in archive \\'${D}file\\'"
51124         fi
51125         ;;
51126     *)
51127         newInputFiles="${D}{newInputFiles} ${D}file"
51128         ;;
51129     esac
51130 done
51131 inputFiles="${D}newInputFiles"
51132
51133 # Output filename(s).
51134 do_backup=0;
51135 if [ -z ${D}outFile ]; then
51136     do_backup=1;
51137     set outFile ${D}inputFiles; outFile=${D}2
51138 fi
51139
51140 # If it is an archive, remove the '!' and the '_%' suffixes
51141 case ${D}outFile in
51142 *_%!)
51143     outFile=\`basnam ${D}outFile _%!\`
51144     ;;
51145 *)
51146     ;;
51147 esac
51148 case ${D}outFile in
51149 *.dll)
51150     outFile=\`basnam ${D}outFile .dll\`
51151     ;;
51152 *.DLL)
51153     outFile=\`basnam ${D}outFile .DLL\`
51154     ;;
51155 *.o)
51156     outFile=\`basnam ${D}outFile .o\`
51157     ;;
51158 *.obj)
51159     outFile=\`basnam ${D}outFile .obj\`
51160     ;;
51161 *.a)
51162     outFile=\`basnam ${D}outFile .a\`
51163     ;;
51164 *.lib)
51165     outFile=\`basnam ${D}outFile .lib\`
51166     ;;
51167 *)
51168     ;;
51169 esac
51170 case ${D}outimpFile in
51171 *.a)
51172     outimpFile=\`basnam ${D}outimpFile .a\`
51173     ;;
51174 *.lib)
51175     outimpFile=\`basnam ${D}outimpFile .lib\`
51176     ;;
51177 *)
51178     ;;
51179 esac
51180 if [ -z ${D}outimpFile ]; then
51181     outimpFile=${D}outFile
51182 fi
51183 defFile="${D}{outFile}.def"
51184 arcFile="${D}{outimpFile}.a"
51185 arcFile2="${D}{outimpFile}.lib"
51186
51187 #create ${D}dllFile as something matching 8.3 restrictions,
51188 if [ -z ${D}renameScript ] ; then
51189     dllFile="${D}outFile"
51190 else
51191     dllFile=\`${D}renameScript ${D}outimpFile\`
51192 fi
51193
51194 if [ ${D}do_backup -ne 0 ] ; then
51195     if [ -f ${D}arcFile ] ; then
51196         doCommand "mv ${D}arcFile ${D}{outFile}_s.a"
51197     fi
51198     if [ -f ${D}arcFile2 ] ; then
51199         doCommand "mv ${D}arcFile2 ${D}{outFile}_s.lib"
51200     fi
51201 fi
51202
51203 # Extract public symbols from all the object files.
51204 tmpdefFile=${D}{defFile}_%
51205 rm -f ${D}tmpdefFile
51206 for file in ${D}inputFiles ; do
51207     case ${D}file in
51208     *!)
51209         ;;
51210     *)
51211         doCommand "emxexp -u ${D}file >> ${D}tmpdefFile"
51212         ;;
51213     esac
51214 done
51215
51216 # Create the def file.
51217 rm -f ${D}defFile
51218 echo "LIBRARY \`basnam ${D}dllFile\` ${D}library_flags" >> ${D}defFile
51219 dllFile="${D}{dllFile}.dll"
51220 if [ ! -z ${D}description ]; then
51221     echo "DESCRIPTION  \\"${D}{description}\\"" >> ${D}defFile
51222 fi
51223 echo "EXPORTS" >> ${D}defFile
51224
51225 doCommand "cat ${D}tmpdefFile | sort.exe | uniq.exe > ${D}{tmpdefFile}%"
51226 grep -v "^ *;" < ${D}{tmpdefFile}% | grep -v "^ *${D}" >${D}tmpdefFile
51227
51228 # Checks if the export is ok or not.
51229 for word in ${D}exclude_symbols; do
51230     grep -v ${D}word < ${D}tmpdefFile >${D}{tmpdefFile}%
51231     mv ${D}{tmpdefFile}% ${D}tmpdefFile
51232 done
51233
51234
51235 if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then
51236     sed "=" < ${D}tmpdefFile | \\
51237     sed '
51238       N
51239       : loop
51240       s/^\\([0-9]\\+\\)\\([^;]*\\)\\(;.*\\)\\?/\\2 @\\1 NONAME/
51241       t loop
51242     ' > ${D}{tmpdefFile}%
51243     grep -v "^ *${D}" < ${D}{tmpdefFile}% > ${D}tmpdefFile
51244 else
51245     rm -f ${D}{tmpdefFile}%
51246 fi
51247 cat ${D}tmpdefFile >> ${D}defFile
51248 rm -f ${D}tmpdefFile
51249
51250 # Do linking, create implib, and apply lxlite.
51251 gccCmdl="";
51252 for file in ${D}inputFiles ; do
51253     case ${D}file in
51254     *!)
51255         ;;
51256     *)
51257         gccCmdl="${D}gccCmdl ${D}file"
51258         ;;
51259     esac
51260 done
51261 doCommand "${D}CC ${D}CFLAGS -Zdll -o ${D}dllFile ${D}defFile ${D}gccCmdl ${D}EXTRA_CFLAGS"
51262 touch "${D}{outFile}.dll"
51263
51264 doCommand "emximp -o ${D}arcFile ${D}defFile"
51265 if [ ${D}flag_USE_LXLITE -ne 0 ]; then
51266     add_flags="";
51267     if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then
51268         add_flags="-ynd"
51269     fi
51270     doCommand "lxlite -cs -t: -mrn -mln ${D}add_flags ${D}dllFile"
51271 fi
51272 doCommand "emxomf -s -l ${D}arcFile"
51273
51274 # Successful exit.
51275 CleanUp 1
51276 exit 0
51277 EOF
51278
51279         chmod +x dllar.sh
51280       ;;
51281
51282       powerpc-apple-macos* | \
51283       *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | *-*-k*bsd*-gnu | \
51284       *-*-mirbsd* | \
51285       *-*-sunos4* | \
51286       *-*-osf* | \
51287       *-*-dgux5* | \
51288       *-*-sysv5* | \
51289       *-pc-msdosdjgpp )
51290               ;;
51291
51292       *)
51293         { { echo "$as_me:$LINENO: error: unknown system type $BAKEFILE_HOST." >&5
51294 echo "$as_me: error: unknown system type $BAKEFILE_HOST." >&2;}
51295    { (exit 1); exit 1; }; }
51296     esac
51297
51298     if test "x$PIC_FLAG" != "x" ; then
51299         PIC_FLAG="$PIC_FLAG -DPIC"
51300     fi
51301
51302     if test "x$SHARED_LD_MODULE_CC" = "x" ; then
51303         SHARED_LD_MODULE_CC="$SHARED_LD_CC"
51304     fi
51305     if test "x$SHARED_LD_MODULE_CXX" = "x" ; then
51306         SHARED_LD_MODULE_CXX="$SHARED_LD_CXX"
51307     fi
51308
51309
51310
51311
51312
51313
51314
51315
51316
51317     USE_SOVERSION=0
51318     USE_SOVERLINUX=0
51319     USE_SOVERSOLARIS=0
51320     USE_SOVERCYGWIN=0
51321     USE_SOTWOSYMLINKS=0
51322     USE_MACVERSION=0
51323     SONAME_FLAG=
51324
51325     case "${BAKEFILE_HOST}" in
51326       *-*-linux* | *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \
51327       *-*-k*bsd*-gnu | *-*-mirbsd* )
51328         if test "x$SUNCXX" = "xyes"; then
51329             SONAME_FLAG="-h "
51330         else
51331             SONAME_FLAG="-Wl,-soname,"
51332         fi
51333         USE_SOVERSION=1
51334         USE_SOVERLINUX=1
51335         USE_SOTWOSYMLINKS=1
51336       ;;
51337
51338       *-*-solaris2* )
51339         SONAME_FLAG="-h "
51340         USE_SOVERSION=1
51341         USE_SOVERSOLARIS=1
51342       ;;
51343
51344       *-*-darwin* )
51345         USE_MACVERSION=1
51346         USE_SOVERSION=1
51347         USE_SOTWOSYMLINKS=1
51348       ;;
51349
51350       *-*-cygwin* )
51351         USE_SOVERSION=1
51352         USE_SOVERCYGWIN=1
51353       ;;
51354     esac
51355
51356
51357
51358
51359
51360
51361
51362
51363
51364
51365     # Check whether --enable-dependency-tracking was given.
51366 if test "${enable_dependency_tracking+set}" = set; then
51367   enableval=$enable_dependency_tracking; bk_use_trackdeps="$enableval"
51368 fi
51369
51370
51371     { echo "$as_me:$LINENO: checking for dependency tracking method" >&5
51372 echo $ECHO_N "checking for dependency tracking method... $ECHO_C" >&6; }
51373
51374     BK_DEPS=""
51375     if test "x$bk_use_trackdeps" = "xno" ; then
51376         DEPS_TRACKING=0
51377         { echo "$as_me:$LINENO: result: disabled" >&5
51378 echo "${ECHO_T}disabled" >&6; }
51379     else
51380         DEPS_TRACKING=1
51381
51382         if test "x$GCC" = "xyes"; then
51383             DEPSMODE=gcc
51384             case "${BAKEFILE_HOST}" in
51385                 *-*-darwin* )
51386                                                             DEPSFLAG="-no-cpp-precomp -MMD"
51387                 ;;
51388                 * )
51389                     DEPSFLAG="-MMD"
51390                 ;;
51391             esac
51392             { echo "$as_me:$LINENO: result: gcc" >&5
51393 echo "${ECHO_T}gcc" >&6; }
51394         elif test "x$MWCC" = "xyes"; then
51395             DEPSMODE=mwcc
51396             DEPSFLAG="-MM"
51397             { echo "$as_me:$LINENO: result: mwcc" >&5
51398 echo "${ECHO_T}mwcc" >&6; }
51399         elif test "x$SUNCC" = "xyes"; then
51400             DEPSMODE=unixcc
51401             DEPSFLAG="-xM1"
51402             { echo "$as_me:$LINENO: result: Sun cc" >&5
51403 echo "${ECHO_T}Sun cc" >&6; }
51404         elif test "x$SGICC" = "xyes"; then
51405             DEPSMODE=unixcc
51406             DEPSFLAG="-M"
51407             { echo "$as_me:$LINENO: result: SGI cc" >&5
51408 echo "${ECHO_T}SGI cc" >&6; }
51409         elif test "x$HPCC" = "xyes"; then
51410             DEPSMODE=unixcc
51411             DEPSFLAG="+make"
51412             { echo "$as_me:$LINENO: result: HP cc" >&5
51413 echo "${ECHO_T}HP cc" >&6; }
51414         elif test "x$COMPAQCC" = "xyes"; then
51415             DEPSMODE=gcc
51416             DEPSFLAG="-MD"
51417             { echo "$as_me:$LINENO: result: Compaq cc" >&5
51418 echo "${ECHO_T}Compaq cc" >&6; }
51419         else
51420             DEPS_TRACKING=0
51421             { echo "$as_me:$LINENO: result: none" >&5
51422 echo "${ECHO_T}none" >&6; }
51423         fi
51424
51425         if test $DEPS_TRACKING = 1 ; then
51426
51427 D='$'
51428 cat <<EOF >bk-deps
51429 #!/bin/sh
51430
51431 # This script is part of Bakefile (http://www.bakefile.org) autoconf
51432 # script. It is used to track C/C++ files dependencies in portable way.
51433 #
51434 # Permission is given to use this file in any way.
51435
51436 DEPSMODE=${DEPSMODE}
51437 DEPSFLAG="${DEPSFLAG}"
51438 DEPSDIRBASE=.deps
51439
51440 if test ${D}DEPSMODE = gcc ; then
51441     ${D}* ${D}{DEPSFLAG}
51442     status=${D}?
51443
51444     # determine location of created files:
51445     while test ${D}# -gt 0; do
51446         case "${D}1" in
51447             -o )
51448                 shift
51449                 objfile=${D}1
51450             ;;
51451             -* )
51452             ;;
51453             * )
51454                 srcfile=${D}1
51455             ;;
51456         esac
51457         shift
51458     done
51459     objfilebase=\`basename ${D}objfile\`
51460     builddir=\`dirname ${D}objfile\`
51461     depfile=\`basename ${D}srcfile | sed -e 's/\\..*${D}/.d/g'\`
51462     depobjname=\`echo ${D}depfile |sed -e 's/\\.d/.o/g'\`
51463     depsdir=${D}builddir/${D}DEPSDIRBASE
51464     mkdir -p ${D}depsdir
51465
51466     # if the compiler failed, we're done:
51467     if test ${D}{status} != 0 ; then
51468         rm -f ${D}depfile
51469         exit ${D}{status}
51470     fi
51471
51472     # move created file to the location we want it in:
51473     if test -f ${D}depfile ; then
51474         sed -e "s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{depsdir}/${D}{objfilebase}.d
51475         rm -f ${D}depfile
51476     else
51477         # "g++ -MMD -o fooobj.o foosrc.cpp" produces fooobj.d
51478         depfile=\`echo "${D}objfile" | sed -e 's/\\..*${D}/.d/g'\`
51479         if test ! -f ${D}depfile ; then
51480             # "cxx -MD -o fooobj.o foosrc.cpp" creates fooobj.o.d (Compaq C++)
51481             depfile="${D}objfile.d"
51482         fi
51483         if test -f ${D}depfile ; then
51484             sed -e "\\,^${D}objfile,!s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{depsdir}/${D}{objfilebase}.d
51485             rm -f ${D}depfile
51486         fi
51487     fi
51488     exit 0
51489
51490 elif test ${D}DEPSMODE = mwcc ; then
51491     ${D}* || exit ${D}?
51492     # Run mwcc again with -MM and redirect into the dep file we want
51493     # NOTE: We can't use shift here because we need ${D}* to be valid
51494     prevarg=
51495     for arg in ${D}* ; do
51496         if test "${D}prevarg" = "-o"; then
51497             objfile=${D}arg
51498         else
51499             case "${D}arg" in
51500                 -* )
51501                 ;;
51502                 * )
51503                     srcfile=${D}arg
51504                 ;;
51505             esac
51506         fi
51507         prevarg="${D}arg"
51508     done
51509
51510     objfilebase=\`basename ${D}objfile\`
51511     builddir=\`dirname ${D}objfile\`
51512     depsdir=${D}builddir/${D}DEPSDIRBASE
51513     mkdir -p ${D}depsdir
51514
51515     ${D}* ${D}DEPSFLAG >${D}{depsdir}/${D}{objfilebase}.d
51516     exit 0
51517
51518 elif test ${D}DEPSMODE = unixcc; then
51519     ${D}* || exit ${D}?
51520     # Run compiler again with deps flag and redirect into the dep file.
51521     # It doesn't work if the '-o FILE' option is used, but without it the
51522     # dependency file will contain the wrong name for the object. So it is
51523     # removed from the command line, and the dep file is fixed with sed.
51524     cmd=""
51525     while test ${D}# -gt 0; do
51526         case "${D}1" in
51527             -o )
51528                 shift
51529                 objfile=${D}1
51530             ;;
51531             * )
51532                 eval arg${D}#=\\${D}1
51533                 cmd="${D}cmd \\${D}arg${D}#"
51534             ;;
51535         esac
51536         shift
51537     done
51538
51539     objfilebase=\`basename ${D}objfile\`
51540     builddir=\`dirname ${D}objfile\`
51541     depsdir=${D}builddir/${D}DEPSDIRBASE
51542     mkdir -p ${D}depsdir
51543
51544     eval "${D}cmd ${D}DEPSFLAG" | sed "s|.*:|${D}objfile:|" >${D}{depsdir}/${D}{objfilebase}.d
51545     exit 0
51546
51547 else
51548     ${D}*
51549     exit ${D}?
51550 fi
51551 EOF
51552
51553             chmod +x bk-deps
51554                                     BK_DEPS="`pwd`/bk-deps"
51555         fi
51556     fi
51557
51558
51559
51560
51561
51562     case ${BAKEFILE_HOST} in
51563         *-*-cygwin* | *-*-mingw32* )
51564                         if test -n "$ac_tool_prefix"; then
51565   # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
51566 set dummy ${ac_tool_prefix}windres; ac_word=$2
51567 { echo "$as_me:$LINENO: checking for $ac_word" >&5
51568 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
51569 if test "${ac_cv_prog_WINDRES+set}" = set; then
51570   echo $ECHO_N "(cached) $ECHO_C" >&6
51571 else
51572   if test -n "$WINDRES"; then
51573   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
51574 else
51575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
51576 for as_dir in $PATH
51577 do
51578   IFS=$as_save_IFS
51579   test -z "$as_dir" && as_dir=.
51580   for ac_exec_ext in '' $ac_executable_extensions; do
51581   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
51582     ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
51583     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
51584     break 2
51585   fi
51586 done
51587 done
51588 IFS=$as_save_IFS
51589
51590 fi
51591 fi
51592 WINDRES=$ac_cv_prog_WINDRES
51593 if test -n "$WINDRES"; then
51594   { echo "$as_me:$LINENO: result: $WINDRES" >&5
51595 echo "${ECHO_T}$WINDRES" >&6; }
51596 else
51597   { echo "$as_me:$LINENO: result: no" >&5
51598 echo "${ECHO_T}no" >&6; }
51599 fi
51600
51601
51602 fi
51603 if test -z "$ac_cv_prog_WINDRES"; then
51604   ac_ct_WINDRES=$WINDRES
51605   # Extract the first word of "windres", so it can be a program name with args.
51606 set dummy windres; ac_word=$2
51607 { echo "$as_me:$LINENO: checking for $ac_word" >&5
51608 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
51609 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
51610   echo $ECHO_N "(cached) $ECHO_C" >&6
51611 else
51612   if test -n "$ac_ct_WINDRES"; then
51613   ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
51614 else
51615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
51616 for as_dir in $PATH
51617 do
51618   IFS=$as_save_IFS
51619   test -z "$as_dir" && as_dir=.
51620   for ac_exec_ext in '' $ac_executable_extensions; do
51621   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
51622     ac_cv_prog_ac_ct_WINDRES="windres"
51623     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
51624     break 2
51625   fi
51626 done
51627 done
51628 IFS=$as_save_IFS
51629
51630 fi
51631 fi
51632 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
51633 if test -n "$ac_ct_WINDRES"; then
51634   { echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
51635 echo "${ECHO_T}$ac_ct_WINDRES" >&6; }
51636 else
51637   { echo "$as_me:$LINENO: result: no" >&5
51638 echo "${ECHO_T}no" >&6; }
51639 fi
51640
51641   if test "x$ac_ct_WINDRES" = x; then
51642     WINDRES=""
51643   else
51644     case $cross_compiling:$ac_tool_warned in
51645 yes:)
51646 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
51647 whose name does not start with the host triplet.  If you think this
51648 configuration is useful to you, please write to autoconf@gnu.org." >&5
51649 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
51650 whose name does not start with the host triplet.  If you think this
51651 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
51652 ac_tool_warned=yes ;;
51653 esac
51654     WINDRES=$ac_ct_WINDRES
51655   fi
51656 else
51657   WINDRES="$ac_cv_prog_WINDRES"
51658 fi
51659
51660          ;;
51661
51662       *-*-darwin* | powerpc-apple-macos* )
51663             # Extract the first word of "Rez", so it can be a program name with args.
51664 set dummy Rez; ac_word=$2
51665 { echo "$as_me:$LINENO: checking for $ac_word" >&5
51666 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
51667 if test "${ac_cv_prog_REZ+set}" = set; then
51668   echo $ECHO_N "(cached) $ECHO_C" >&6
51669 else
51670   if test -n "$REZ"; then
51671   ac_cv_prog_REZ="$REZ" # Let the user override the test.
51672 else
51673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
51674 for as_dir in $PATH
51675 do
51676   IFS=$as_save_IFS
51677   test -z "$as_dir" && as_dir=.
51678   for ac_exec_ext in '' $ac_executable_extensions; do
51679   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
51680     ac_cv_prog_REZ="Rez"
51681     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
51682     break 2
51683   fi
51684 done
51685 done
51686 IFS=$as_save_IFS
51687
51688   test -z "$ac_cv_prog_REZ" && ac_cv_prog_REZ="/Developer/Tools/Rez"
51689 fi
51690 fi
51691 REZ=$ac_cv_prog_REZ
51692 if test -n "$REZ"; then
51693   { echo "$as_me:$LINENO: result: $REZ" >&5
51694 echo "${ECHO_T}$REZ" >&6; }
51695 else
51696   { echo "$as_me:$LINENO: result: no" >&5
51697 echo "${ECHO_T}no" >&6; }
51698 fi
51699
51700
51701             # Extract the first word of "SetFile", so it can be a program name with args.
51702 set dummy SetFile; ac_word=$2
51703 { echo "$as_me:$LINENO: checking for $ac_word" >&5
51704 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
51705 if test "${ac_cv_prog_SETFILE+set}" = set; then
51706   echo $ECHO_N "(cached) $ECHO_C" >&6
51707 else
51708   if test -n "$SETFILE"; then
51709   ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
51710 else
51711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
51712 for as_dir in $PATH
51713 do
51714   IFS=$as_save_IFS
51715   test -z "$as_dir" && as_dir=.
51716   for ac_exec_ext in '' $ac_executable_extensions; do
51717   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
51718     ac_cv_prog_SETFILE="SetFile"
51719     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
51720     break 2
51721   fi
51722 done
51723 done
51724 IFS=$as_save_IFS
51725
51726   test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
51727 fi
51728 fi
51729 SETFILE=$ac_cv_prog_SETFILE
51730 if test -n "$SETFILE"; then
51731   { echo "$as_me:$LINENO: result: $SETFILE" >&5
51732 echo "${ECHO_T}$SETFILE" >&6; }
51733 else
51734   { echo "$as_me:$LINENO: result: no" >&5
51735 echo "${ECHO_T}no" >&6; }
51736 fi
51737
51738
51739         ;;
51740     esac
51741
51742
51743
51744
51745
51746
51747
51748
51749
51750     BAKEFILE_BAKEFILE_M4_VERSION="0.2.9"
51751
51752
51753 BAKEFILE_AUTOCONF_INC_M4_VERSION="0.2.9"
51754
51755
51756
51757     # Check whether --enable-precomp-headers was given.
51758 if test "${enable_precomp_headers+set}" = set; then
51759   enableval=$enable_precomp_headers; bk_use_pch="$enableval"
51760 fi
51761
51762
51763     GCC_PCH=0
51764     ICC_PCH=0
51765     USE_PCH=0
51766     BK_MAKE_PCH=""
51767
51768     case ${BAKEFILE_HOST} in
51769         *-*-cygwin* )
51770                                                 bk_use_pch="no"
51771             ;;
51772     esac
51773
51774     if test "x$bk_use_pch" = "x" -o "x$bk_use_pch" = "xyes" ; then
51775         if test "x$GCC" = "xyes"; then
51776                         { echo "$as_me:$LINENO: checking if the compiler supports precompiled headers" >&5
51777 echo $ECHO_N "checking if the compiler supports precompiled headers... $ECHO_C" >&6; }
51778             cat >conftest.$ac_ext <<_ACEOF
51779 /* confdefs.h.  */
51780 _ACEOF
51781 cat confdefs.h >>conftest.$ac_ext
51782 cat >>conftest.$ac_ext <<_ACEOF
51783 /* end confdefs.h.  */
51784
51785 int
51786 main ()
51787 {
51788
51789                     #if !defined(__GNUC__) || !defined(__GNUC_MINOR__)
51790                         There is no PCH support
51791                     #endif
51792                     #if (__GNUC__ < 3)
51793                         There is no PCH support
51794                     #endif
51795                     #if (__GNUC__ == 3) && \
51796                        ((!defined(__APPLE_CC__) && (__GNUC_MINOR__ < 4)) || \
51797                        ( defined(__APPLE_CC__) && (__GNUC_MINOR__ < 3))) || \
51798                        ( defined(__INTEL_COMPILER) )
51799                         There is no PCH support
51800                     #endif
51801
51802   ;
51803   return 0;
51804 }
51805 _ACEOF
51806 rm -f conftest.$ac_objext
51807 if { (ac_try="$ac_compile"
51808 case "(($ac_try" in
51809   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51810   *) ac_try_echo=$ac_try;;
51811 esac
51812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
51813   (eval "$ac_compile") 2>conftest.er1
51814   ac_status=$?
51815   grep -v '^ *+' conftest.er1 >conftest.err
51816   rm -f conftest.er1
51817   cat conftest.err >&5
51818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51819   (exit $ac_status); } && {
51820          test -z "$ac_c_werror_flag" ||
51821          test ! -s conftest.err
51822        } && test -s conftest.$ac_objext; then
51823
51824                     { echo "$as_me:$LINENO: result: yes" >&5
51825 echo "${ECHO_T}yes" >&6; }
51826                     GCC_PCH=1
51827
51828 else
51829   echo "$as_me: failed program was:" >&5
51830 sed 's/^/| /' conftest.$ac_ext >&5
51831
51832
51833                     if test "$INTELCXX8" = "yes"; then
51834                         { echo "$as_me:$LINENO: result: yes" >&5
51835 echo "${ECHO_T}yes" >&6; }
51836                         ICC_PCH=1
51837                         if test "$INTELCXX10" = "yes"; then
51838                             ICC_PCH_CREATE_SWITCH="-pch-create"
51839                             ICC_PCH_USE_SWITCH="-pch-use"
51840                         else
51841                             ICC_PCH_CREATE_SWITCH="-create-pch"
51842                             ICC_PCH_USE_SWITCH="-use-pch"
51843                         fi
51844                     else
51845                         { echo "$as_me:$LINENO: result: no" >&5
51846 echo "${ECHO_T}no" >&6; }
51847                     fi
51848
51849 fi
51850
51851 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
51852             if test $GCC_PCH = 1 -o $ICC_PCH = 1 ; then
51853                 USE_PCH=1
51854
51855 D='$'
51856 cat <<EOF >bk-make-pch
51857 #!/bin/sh
51858
51859 # This script is part of Bakefile (http://www.bakefile.org) autoconf
51860 # script. It is used to generated precompiled headers.
51861 #
51862 # Permission is given to use this file in any way.
51863
51864 outfile="${D}{1}"
51865 header="${D}{2}"
51866 shift
51867 shift
51868
51869 builddir=\`echo ${D}outfile | sed -e 's,/\\.pch/.*${D},,g'\`
51870
51871 compiler=""
51872 headerfile=""
51873
51874 while test ${D}{#} -gt 0; do
51875     add_to_cmdline=1
51876     case "${D}{1}" in
51877         -I* )
51878             incdir=\`echo ${D}{1} | sed -e 's/-I\\(.*\\)/\\1/g'\`
51879             if test "x${D}{headerfile}" = "x" -a -f "${D}{incdir}/${D}{header}" ; then
51880                 headerfile="${D}{incdir}/${D}{header}"
51881             fi
51882         ;;
51883         -use-pch|-use_pch|-pch-use )
51884             shift
51885             add_to_cmdline=0
51886         ;;
51887     esac
51888     if test ${D}add_to_cmdline = 1 ; then
51889         compiler="${D}{compiler} ${D}{1}"
51890     fi
51891     shift
51892 done
51893
51894 if test "x${D}{headerfile}" = "x" ; then
51895     echo "error: can't find header ${D}{header} in include paths" >&2
51896 else
51897     if test -f ${D}{outfile} ; then
51898         rm -f ${D}{outfile}
51899     else
51900         mkdir -p \`dirname ${D}{outfile}\`
51901     fi
51902     depsfile="${D}{builddir}/.deps/\`echo ${D}{outfile} | tr '/.' '__'\`.d"
51903     mkdir -p ${D}{builddir}/.deps
51904     if test "x${GCC_PCH}" = "x1" ; then
51905         # can do this because gcc is >= 3.4:
51906         ${D}{compiler} -o ${D}{outfile} -MMD -MF "${D}{depsfile}" "${D}{headerfile}"
51907     elif test "x${ICC_PCH}" = "x1" ; then
51908         filename=pch_gen-${D}${D}
51909         file=${D}{filename}.c
51910         dfile=${D}{filename}.d
51911         cat > ${D}file <<EOT
51912 #include "${D}header"
51913 EOT
51914         # using -MF icc complains about differing command lines in creation/use
51915         ${D}compiler -c ${ICC_PCH_CREATE_SWITCH} ${D}outfile -MMD ${D}file && \\
51916           sed -e "s,^.*:,${D}outfile:," -e "s, ${D}file,," < ${D}dfile > ${D}depsfile && \\
51917           rm -f ${D}file ${D}dfile ${D}{filename}.o
51918     fi
51919     exit ${D}{?}
51920 fi
51921 EOF
51922
51923                 chmod +x bk-make-pch
51924                                                                 BK_MAKE_PCH="`pwd`/bk-make-pch"
51925             fi
51926         fi
51927     fi
51928
51929
51930
51931
51932
51933
51934
51935     COND_BUILD_DEBUG="#"
51936     if test "x$BUILD" = "xdebug" ; then
51937         COND_BUILD_DEBUG=""
51938     fi
51939
51940     COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="#"
51941     if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then
51942         COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT=""
51943     fi
51944
51945     COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="#"
51946     if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then
51947         COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT=""
51948     fi
51949
51950     COND_BUILD_DEBUG_UNICODE_0="#"
51951     if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x0" ; then
51952         COND_BUILD_DEBUG_UNICODE_0=""
51953     fi
51954
51955     COND_BUILD_DEBUG_UNICODE_1="#"
51956     if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x1" ; then
51957         COND_BUILD_DEBUG_UNICODE_1=""
51958     fi
51959
51960     COND_BUILD_RELEASE="#"
51961     if test "x$BUILD" = "xrelease" ; then
51962         COND_BUILD_RELEASE=""
51963     fi
51964
51965     COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="#"
51966     if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then
51967         COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT=""
51968     fi
51969
51970     COND_BUILD_RELEASE_UNICODE_0="#"
51971     if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x0" ; then
51972         COND_BUILD_RELEASE_UNICODE_0=""
51973     fi
51974
51975     COND_BUILD_RELEASE_UNICODE_1="#"
51976     if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x1" ; then
51977         COND_BUILD_RELEASE_UNICODE_1=""
51978     fi
51979
51980     COND_BUILD_debug="#"
51981     if test "x$BUILD" = "xdebug" ; then
51982         COND_BUILD_debug=""
51983     fi
51984
51985     COND_BUILD_debug_DEBUG_FLAG_default="#"
51986     if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then
51987         COND_BUILD_debug_DEBUG_FLAG_default=""
51988     fi
51989
51990     COND_BUILD_debug_DEBUG_INFO_default="#"
51991     if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then
51992         COND_BUILD_debug_DEBUG_INFO_default=""
51993     fi
51994
51995     COND_BUILD_debug_UNICODE_0="#"
51996     if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x0" ; then
51997         COND_BUILD_debug_UNICODE_0=""
51998     fi
51999
52000     COND_BUILD_debug_UNICODE_1="#"
52001     if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x1" ; then
52002         COND_BUILD_debug_UNICODE_1=""
52003     fi
52004
52005     COND_BUILD_release="#"
52006     if test "x$BUILD" = "xrelease" ; then
52007         COND_BUILD_release=""
52008     fi
52009
52010     COND_BUILD_release_DEBUG_INFO_default="#"
52011     if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then
52012         COND_BUILD_release_DEBUG_INFO_default=""
52013     fi
52014
52015     COND_BUILD_release_UNICODE_0="#"
52016     if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x0" ; then
52017         COND_BUILD_release_UNICODE_0=""
52018     fi
52019
52020     COND_BUILD_release_UNICODE_1="#"
52021     if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x1" ; then
52022         COND_BUILD_release_UNICODE_1=""
52023     fi
52024
52025     COND_DEBUG_FLAG_0="#"
52026     if test "x$DEBUG_FLAG" = "x0" ; then
52027         COND_DEBUG_FLAG_0=""
52028     fi
52029
52030     COND_DEBUG_FLAG_1="#"
52031     if test "x$DEBUG_FLAG" = "x1" ; then
52032         COND_DEBUG_FLAG_1=""
52033     fi
52034
52035     COND_DEBUG_INFO_0="#"
52036     if test "x$DEBUG_INFO" = "x0" ; then
52037         COND_DEBUG_INFO_0=""
52038     fi
52039
52040     COND_DEBUG_INFO_1="#"
52041     if test "x$DEBUG_INFO" = "x1" ; then
52042         COND_DEBUG_INFO_1=""
52043     fi
52044
52045     COND_DEPS_TRACKING_0="#"
52046     if test "x$DEPS_TRACKING" = "x0" ; then
52047         COND_DEPS_TRACKING_0=""
52048     fi
52049
52050     COND_DEPS_TRACKING_1="#"
52051     if test "x$DEPS_TRACKING" = "x1" ; then
52052         COND_DEPS_TRACKING_1=""
52053     fi
52054
52055     COND_GCC_PCH_1="#"
52056     if test "x$GCC_PCH" = "x1" ; then
52057         COND_GCC_PCH_1=""
52058     fi
52059
52060     COND_ICC_PCH_1="#"
52061     if test "x$ICC_PCH" = "x1" ; then
52062         COND_ICC_PCH_1=""
52063     fi
52064
52065     COND_MONOLITHIC_0="#"
52066     if test "x$MONOLITHIC" = "x0" ; then
52067         COND_MONOLITHIC_0=""
52068     fi
52069
52070     COND_MONOLITHIC_0_SHARED_0="#"
52071     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" ; then
52072         COND_MONOLITHIC_0_SHARED_0=""
52073     fi
52074
52075     COND_MONOLITHIC_0_SHARED_0_USE_AUI_1="#"
52076     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_AUI" = "x1" ; then
52077         COND_MONOLITHIC_0_SHARED_0_USE_AUI_1=""
52078     fi
52079
52080     COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="#"
52081     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" ; then
52082         COND_MONOLITHIC_0_SHARED_0_USE_GUI_1=""
52083     fi
52084
52085     COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1="#"
52086     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then
52087         COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1=""
52088     fi
52089
52090     COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1="#"
52091     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_MEDIA" = "x1" ; then
52092         COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1=""
52093     fi
52094
52095     COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1="#"
52096     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_QA" = "x1" ; then
52097         COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1=""
52098     fi
52099
52100     COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_WEB_1="#"
52101     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_WEB" = "x1" ; then
52102         COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_WEB_1=""
52103     fi
52104
52105     COND_MONOLITHIC_0_SHARED_0_USE_PROPGRID_1="#"
52106     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_PROPGRID" = "x1" ; then
52107         COND_MONOLITHIC_0_SHARED_0_USE_PROPGRID_1=""
52108     fi
52109
52110     COND_MONOLITHIC_0_SHARED_0_USE_RIBBON_1="#"
52111     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_RIBBON" = "x1" ; then
52112         COND_MONOLITHIC_0_SHARED_0_USE_RIBBON_1=""
52113     fi
52114
52115     COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1="#"
52116     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_RICHTEXT" = "x1" ; then
52117         COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1=""
52118     fi
52119
52120     COND_MONOLITHIC_0_SHARED_0_USE_STC_1="#"
52121     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_STC" = "x1" ; then
52122         COND_MONOLITHIC_0_SHARED_0_USE_STC_1=""
52123     fi
52124
52125     COND_MONOLITHIC_0_SHARED_0_USE_XRC_1="#"
52126     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then
52127         COND_MONOLITHIC_0_SHARED_0_USE_XRC_1=""
52128     fi
52129
52130     COND_MONOLITHIC_0_SHARED_1="#"
52131     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" ; then
52132         COND_MONOLITHIC_0_SHARED_1=""
52133     fi
52134
52135     COND_MONOLITHIC_0_SHARED_1_USE_AUI_1="#"
52136     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_AUI" = "x1" ; then
52137         COND_MONOLITHIC_0_SHARED_1_USE_AUI_1=""
52138     fi
52139
52140     COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="#"
52141     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" ; then
52142         COND_MONOLITHIC_0_SHARED_1_USE_GUI_1=""
52143     fi
52144
52145     COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1="#"
52146     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then
52147         COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1=""
52148     fi
52149
52150     COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1="#"
52151     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_MEDIA" = "x1" ; then
52152         COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1=""
52153     fi
52154
52155     COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1="#"
52156     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_QA" = "x1" ; then
52157         COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1=""
52158     fi
52159
52160     COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_WEB_1="#"
52161     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_WEB" = "x1" ; then
52162         COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_WEB_1=""
52163     fi
52164
52165     COND_MONOLITHIC_0_SHARED_1_USE_PROPGRID_1="#"
52166     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_PROPGRID" = "x1" ; then
52167         COND_MONOLITHIC_0_SHARED_1_USE_PROPGRID_1=""
52168     fi
52169
52170     COND_MONOLITHIC_0_SHARED_1_USE_RIBBON_1="#"
52171     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_RIBBON" = "x1" ; then
52172         COND_MONOLITHIC_0_SHARED_1_USE_RIBBON_1=""
52173     fi
52174
52175     COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1="#"
52176     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_RICHTEXT" = "x1" ; then
52177         COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1=""
52178     fi
52179
52180     COND_MONOLITHIC_0_SHARED_1_USE_STC_1="#"
52181     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_STC" = "x1" ; then
52182         COND_MONOLITHIC_0_SHARED_1_USE_STC_1=""
52183     fi
52184
52185     COND_MONOLITHIC_0_SHARED_1_USE_XRC_1="#"
52186     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then
52187         COND_MONOLITHIC_0_SHARED_1_USE_XRC_1=""
52188     fi
52189
52190     COND_MONOLITHIC_0_USE_AUI_1="#"
52191     if test "x$MONOLITHIC" = "x0" -a "x$USE_AUI" = "x1" ; then
52192         COND_MONOLITHIC_0_USE_AUI_1=""
52193     fi
52194
52195     COND_MONOLITHIC_0_USE_GUI_1="#"
52196     if test "x$MONOLITHIC" = "x0" -a "x$USE_GUI" = "x1" ; then
52197         COND_MONOLITHIC_0_USE_GUI_1=""
52198     fi
52199
52200     COND_MONOLITHIC_0_USE_GUI_1_USE_MEDIA_1="#"
52201     if test "x$MONOLITHIC" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_MEDIA" = "x1" ; then
52202         COND_MONOLITHIC_0_USE_GUI_1_USE_MEDIA_1=""
52203     fi
52204
52205     COND_MONOLITHIC_0_USE_HTML_1="#"
52206     if test "x$MONOLITHIC" = "x0" -a "x$USE_HTML" = "x1" ; then
52207         COND_MONOLITHIC_0_USE_HTML_1=""
52208     fi
52209
52210     COND_MONOLITHIC_0_USE_MEDIA_1="#"
52211     if test "x$MONOLITHIC" = "x0" -a "x$USE_MEDIA" = "x1" ; then
52212         COND_MONOLITHIC_0_USE_MEDIA_1=""
52213     fi
52214
52215     COND_MONOLITHIC_0_USE_PROPGRID_1="#"
52216     if test "x$MONOLITHIC" = "x0" -a "x$USE_PROPGRID" = "x1" ; then
52217         COND_MONOLITHIC_0_USE_PROPGRID_1=""
52218     fi
52219
52220     COND_MONOLITHIC_0_USE_QA_1="#"
52221     if test "x$MONOLITHIC" = "x0" -a "x$USE_QA" = "x1" ; then
52222         COND_MONOLITHIC_0_USE_QA_1=""
52223     fi
52224
52225     COND_MONOLITHIC_0_USE_RIBBON_1="#"
52226     if test "x$MONOLITHIC" = "x0" -a "x$USE_RIBBON" = "x1" ; then
52227         COND_MONOLITHIC_0_USE_RIBBON_1=""
52228     fi
52229
52230     COND_MONOLITHIC_0_USE_RICHTEXT_1="#"
52231     if test "x$MONOLITHIC" = "x0" -a "x$USE_RICHTEXT" = "x1" ; then
52232         COND_MONOLITHIC_0_USE_RICHTEXT_1=""
52233     fi
52234
52235     COND_MONOLITHIC_0_USE_STC_1="#"
52236     if test "x$MONOLITHIC" = "x0" -a "x$USE_STC" = "x1" ; then
52237         COND_MONOLITHIC_0_USE_STC_1=""
52238     fi
52239
52240     COND_MONOLITHIC_0_USE_WEB_1="#"
52241     if test "x$MONOLITHIC" = "x0" -a "x$USE_WEB" = "x1" ; then
52242         COND_MONOLITHIC_0_USE_WEB_1=""
52243     fi
52244
52245     COND_MONOLITHIC_0_USE_XRC_1="#"
52246     if test "x$MONOLITHIC" = "x0" -a "x$USE_XRC" = "x1" ; then
52247         COND_MONOLITHIC_0_USE_XRC_1=""
52248     fi
52249
52250     COND_MONOLITHIC_1="#"
52251     if test "x$MONOLITHIC" = "x1" ; then
52252         COND_MONOLITHIC_1=""
52253     fi
52254
52255     COND_MONOLITHIC_1_SHARED_0="#"
52256     if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x0" ; then
52257         COND_MONOLITHIC_1_SHARED_0=""
52258     fi
52259
52260     COND_MONOLITHIC_1_SHARED_1="#"
52261     if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x1" ; then
52262         COND_MONOLITHIC_1_SHARED_1=""
52263     fi
52264
52265     COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="#"
52266     if test "x$OFFICIAL_BUILD" = "x0" -a "x$PLATFORM_WIN32" = "x1" ; then
52267         COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1=""
52268     fi
52269
52270     COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="#"
52271     if test "x$OFFICIAL_BUILD" = "x1" -a "x$PLATFORM_WIN32" = "x1" ; then
52272         COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1=""
52273     fi
52274
52275     COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1="#"
52276     if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERCYGWIN" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
52277         COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1=""
52278     fi
52279
52280     COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="#"
52281     if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
52282         COND_PLATFORM_MACOSX_0_USE_SOVERSION_1=""
52283     fi
52284
52285     COND_PLATFORM_MACOSX_1="#"
52286     if test "x$PLATFORM_MACOSX" = "x1" ; then
52287         COND_PLATFORM_MACOSX_1=""
52288     fi
52289
52290     COND_PLATFORM_MACOSX_1_PLATFORM_MSDOS_0="#"
52291     if test "x$PLATFORM_MACOSX" = "x1" -a "x$PLATFORM_MSDOS" = "x0" ; then
52292         COND_PLATFORM_MACOSX_1_PLATFORM_MSDOS_0=""
52293     fi
52294
52295     COND_PLATFORM_MACOSX_1_PLATFORM_WIN32_1_SHARED_0="#"
52296     if test "x$PLATFORM_MACOSX" = "x1" -a "x$PLATFORM_WIN32" = "x1" -a "x$SHARED" = "x0" ; then
52297         COND_PLATFORM_MACOSX_1_PLATFORM_WIN32_1_SHARED_0=""
52298     fi
52299
52300     COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_CARBON_USE_GUI_1="#"
52301     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xOSX_CARBON" -a "x$USE_GUI" = "x1" ; then
52302         COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_CARBON_USE_GUI_1=""
52303     fi
52304
52305     COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_CARBON_USE_GUI_1_WXUNIV_0="#"
52306     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xOSX_CARBON" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
52307         COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_CARBON_USE_GUI_1_WXUNIV_0=""
52308     fi
52309
52310     COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_COCOA_USE_GUI_1="#"
52311     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xOSX_COCOA" -a "x$USE_GUI" = "x1" ; then
52312         COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_COCOA_USE_GUI_1=""
52313     fi
52314
52315     COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_COCOA_USE_GUI_1_WXUNIV_0="#"
52316     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xOSX_COCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
52317         COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_COCOA_USE_GUI_1_WXUNIV_0=""
52318     fi
52319
52320     COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_IPHONE_USE_GUI_1="#"
52321     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xOSX_IPHONE" -a "x$USE_GUI" = "x1" ; then
52322         COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_IPHONE_USE_GUI_1=""
52323     fi
52324
52325     COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_IPHONE_USE_GUI_1_WXUNIV_0="#"
52326     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xOSX_IPHONE" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
52327         COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_IPHONE_USE_GUI_1_WXUNIV_0=""
52328     fi
52329
52330     COND_PLATFORM_MACOSX_1_USE_GUI_1="#"
52331     if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_GUI" = "x1" ; then
52332         COND_PLATFORM_MACOSX_1_USE_GUI_1=""
52333     fi
52334
52335     COND_PLATFORM_MACOSX_1_USE_OPENGL_1="#"
52336     if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_OPENGL" = "x1" ; then
52337         COND_PLATFORM_MACOSX_1_USE_OPENGL_1=""
52338     fi
52339
52340     COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="#"
52341     if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
52342         COND_PLATFORM_MACOSX_1_USE_SOVERSION_1=""
52343     fi
52344
52345     COND_PLATFORM_MACOS_1="#"
52346     if test "x$PLATFORM_MACOS" = "x1" ; then
52347         COND_PLATFORM_MACOS_1=""
52348     fi
52349
52350     COND_PLATFORM_MAC_0="#"
52351     if test "x$PLATFORM_MAC" = "x0" ; then
52352         COND_PLATFORM_MAC_0=""
52353     fi
52354
52355     COND_PLATFORM_MAC_1="#"
52356     if test "x$PLATFORM_MAC" = "x1" ; then
52357         COND_PLATFORM_MAC_1=""
52358     fi
52359
52360     COND_PLATFORM_MSDOS_0="#"
52361     if test "x$PLATFORM_MSDOS" = "x0" ; then
52362         COND_PLATFORM_MSDOS_0=""
52363     fi
52364
52365     COND_PLATFORM_MSDOS_1="#"
52366     if test "x$PLATFORM_MSDOS" = "x1" ; then
52367         COND_PLATFORM_MSDOS_1=""
52368     fi
52369
52370     COND_PLATFORM_OS2_1="#"
52371     if test "x$PLATFORM_OS2" = "x1" ; then
52372         COND_PLATFORM_OS2_1=""
52373     fi
52374
52375     COND_PLATFORM_UNIX_0="#"
52376     if test "x$PLATFORM_UNIX" = "x0" ; then
52377         COND_PLATFORM_UNIX_0=""
52378     fi
52379
52380     COND_PLATFORM_UNIX_1="#"
52381     if test "x$PLATFORM_UNIX" = "x1" ; then
52382         COND_PLATFORM_UNIX_1=""
52383     fi
52384
52385     COND_PLATFORM_UNIX_1_TOOLKIT_MGL="#"
52386     if test "x$PLATFORM_UNIX" = "x1" -a "x$TOOLKIT" = "xMGL" ; then
52387         COND_PLATFORM_UNIX_1_TOOLKIT_MGL=""
52388     fi
52389
52390     COND_PLATFORM_UNIX_1_TOOLKIT_MGL_USE_GUI_1="#"
52391     if test "x$PLATFORM_UNIX" = "x1" -a "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then
52392         COND_PLATFORM_UNIX_1_TOOLKIT_MGL_USE_GUI_1=""
52393     fi
52394
52395     COND_PLATFORM_UNIX_1_USE_GUI_1="#"
52396     if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_GUI" = "x1" ; then
52397         COND_PLATFORM_UNIX_1_USE_GUI_1=""
52398     fi
52399
52400     COND_PLATFORM_UNIX_1_USE_PLUGINS_0="#"
52401     if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_PLUGINS" = "x0" ; then
52402         COND_PLATFORM_UNIX_1_USE_PLUGINS_0=""
52403     fi
52404
52405     COND_PLATFORM_WIN32_0="#"
52406     if test "x$PLATFORM_WIN32" = "x0" ; then
52407         COND_PLATFORM_WIN32_0=""
52408     fi
52409
52410     COND_PLATFORM_WIN32_1="#"
52411     if test "x$PLATFORM_WIN32" = "x1" ; then
52412         COND_PLATFORM_WIN32_1=""
52413     fi
52414
52415     COND_PLATFORM_WIN32_1_SHARED_0="#"
52416     if test "x$PLATFORM_WIN32" = "x1" -a "x$SHARED" = "x0" ; then
52417         COND_PLATFORM_WIN32_1_SHARED_0=""
52418     fi
52419
52420     COND_SHARED_0="#"
52421     if test "x$SHARED" = "x0" ; then
52422         COND_SHARED_0=""
52423     fi
52424
52425     COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0="#"
52426     if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMAC" -a "x$WXUNIV" = "x0" ; then
52427         COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0=""
52428     fi
52429
52430     COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0="#"
52431     if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then
52432         COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0=""
52433     fi
52434
52435     COND_SHARED_0_TOOLKIT_PM_WXUNIV_0="#"
52436     if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xPM" -a "x$WXUNIV" = "x0" ; then
52437         COND_SHARED_0_TOOLKIT_PM_WXUNIV_0=""
52438     fi
52439
52440     COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="#"
52441     if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
52442         COND_SHARED_0_USE_GUI_1_USE_OPENGL_1=""
52443     fi
52444
52445     COND_SHARED_0_USE_GUI_1_wxUSE_LIBJPEG_builtin="#"
52446     if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
52447         COND_SHARED_0_USE_GUI_1_wxUSE_LIBJPEG_builtin=""
52448     fi
52449
52450     COND_SHARED_0_USE_GUI_1_wxUSE_LIBPNG_builtin="#"
52451     if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
52452         COND_SHARED_0_USE_GUI_1_wxUSE_LIBPNG_builtin=""
52453     fi
52454
52455     COND_SHARED_0_USE_GUI_1_wxUSE_LIBTIFF_builtin="#"
52456     if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
52457         COND_SHARED_0_USE_GUI_1_wxUSE_LIBTIFF_builtin=""
52458     fi
52459
52460     COND_SHARED_0_USE_STC_1="#"
52461     if test "x$SHARED" = "x0" -a "x$USE_STC" = "x1" ; then
52462         COND_SHARED_0_USE_STC_1=""
52463     fi
52464
52465     COND_SHARED_0_wxUSE_EXPAT_builtin="#"
52466     if test "x$SHARED" = "x0" -a "x$wxUSE_EXPAT" = "xbuiltin" ; then
52467         COND_SHARED_0_wxUSE_EXPAT_builtin=""
52468     fi
52469
52470     COND_SHARED_0_wxUSE_REGEX_builtin="#"
52471     if test "x$SHARED" = "x0" -a "x$wxUSE_REGEX" = "xbuiltin" ; then
52472         COND_SHARED_0_wxUSE_REGEX_builtin=""
52473     fi
52474
52475     COND_SHARED_0_wxUSE_ZLIB_builtin="#"
52476     if test "x$SHARED" = "x0" -a "x$wxUSE_ZLIB" = "xbuiltin" ; then
52477         COND_SHARED_0_wxUSE_ZLIB_builtin=""
52478     fi
52479
52480     COND_SHARED_1="#"
52481     if test "x$SHARED" = "x1" ; then
52482         COND_SHARED_1=""
52483     fi
52484
52485     COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="#"
52486     if test "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
52487         COND_SHARED_1_USE_GUI_1_USE_OPENGL_1=""
52488     fi
52489
52490     COND_TOOLKIT_="#"
52491     if test "x$TOOLKIT" = "x" ; then
52492         COND_TOOLKIT_=""
52493     fi
52494
52495     COND_TOOLKIT_COCOA="#"
52496     if test "x$TOOLKIT" = "xCOCOA" ; then
52497         COND_TOOLKIT_COCOA=""
52498     fi
52499
52500     COND_TOOLKIT_COCOA_USE_GUI_1="#"
52501     if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" ; then
52502         COND_TOOLKIT_COCOA_USE_GUI_1=""
52503     fi
52504
52505     COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="#"
52506     if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
52507         COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0=""
52508     fi
52509
52510     COND_TOOLKIT_DFB="#"
52511     if test "x$TOOLKIT" = "xDFB" ; then
52512         COND_TOOLKIT_DFB=""
52513     fi
52514
52515     COND_TOOLKIT_DFB_USE_GUI_1="#"
52516     if test "x$TOOLKIT" = "xDFB" -a "x$USE_GUI" = "x1" ; then
52517         COND_TOOLKIT_DFB_USE_GUI_1=""
52518     fi
52519
52520     COND_TOOLKIT_GTK="#"
52521     if test "x$TOOLKIT" = "xGTK" ; then
52522         COND_TOOLKIT_GTK=""
52523     fi
52524
52525     COND_TOOLKIT_GTK_TOOLKIT_VERSION_="#"
52526     if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x" ; then
52527         COND_TOOLKIT_GTK_TOOLKIT_VERSION_=""
52528     fi
52529
52530     COND_TOOLKIT_GTK_TOOLKIT_VERSION_2="#"
52531     if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x2" ; then
52532         COND_TOOLKIT_GTK_TOOLKIT_VERSION_2=""
52533     fi
52534
52535     COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1="#"
52536     if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x2" -a "x$USE_GUI" = "x1" ; then
52537         COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1=""
52538     fi
52539
52540     COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0="#"
52541     if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x2" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
52542         COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0=""
52543     fi
52544
52545     COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1="#"
52546     if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x" -a "x$USE_GUI" = "x1" ; then
52547         COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1=""
52548     fi
52549
52550     COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0="#"
52551     if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
52552         COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0=""
52553     fi
52554
52555     COND_TOOLKIT_GTK_USE_GUI_1="#"
52556     if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" ; then
52557         COND_TOOLKIT_GTK_USE_GUI_1=""
52558     fi
52559
52560     COND_TOOLKIT_MAC="#"
52561     if test "x$TOOLKIT" = "xMAC" ; then
52562         COND_TOOLKIT_MAC=""
52563     fi
52564
52565     COND_TOOLKIT_MGL="#"
52566     if test "x$TOOLKIT" = "xMGL" ; then
52567         COND_TOOLKIT_MGL=""
52568     fi
52569
52570     COND_TOOLKIT_MGL_USE_GUI_1="#"
52571     if test "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then
52572         COND_TOOLKIT_MGL_USE_GUI_1=""
52573     fi
52574
52575     COND_TOOLKIT_MOTIF="#"
52576     if test "x$TOOLKIT" = "xMOTIF" ; then
52577         COND_TOOLKIT_MOTIF=""
52578     fi
52579
52580     COND_TOOLKIT_MOTIF_USE_GUI_1="#"
52581     if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" ; then
52582         COND_TOOLKIT_MOTIF_USE_GUI_1=""
52583     fi
52584
52585     COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="#"
52586     if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
52587         COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0=""
52588     fi
52589
52590     COND_TOOLKIT_MSW="#"
52591     if test "x$TOOLKIT" = "xMSW" ; then
52592         COND_TOOLKIT_MSW=""
52593     fi
52594
52595     COND_TOOLKIT_MSW_USE_GUI_1="#"
52596     if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" ; then
52597         COND_TOOLKIT_MSW_USE_GUI_1=""
52598     fi
52599
52600     COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="#"
52601     if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
52602         COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0=""
52603     fi
52604
52605     COND_TOOLKIT_MSW_WXUNIV_0="#"
52606     if test "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then
52607         COND_TOOLKIT_MSW_WXUNIV_0=""
52608     fi
52609
52610     COND_TOOLKIT_OSX_CARBON="#"
52611     if test "x$TOOLKIT" = "xOSX_CARBON" ; then
52612         COND_TOOLKIT_OSX_CARBON=""
52613     fi
52614
52615     COND_TOOLKIT_OSX_CARBON_USE_GUI_1="#"
52616     if test "x$TOOLKIT" = "xOSX_CARBON" -a "x$USE_GUI" = "x1" ; then
52617         COND_TOOLKIT_OSX_CARBON_USE_GUI_1=""
52618     fi
52619
52620     COND_TOOLKIT_OSX_COCOA="#"
52621     if test "x$TOOLKIT" = "xOSX_COCOA" ; then
52622         COND_TOOLKIT_OSX_COCOA=""
52623     fi
52624
52625     COND_TOOLKIT_OSX_COCOA_USE_GUI_1="#"
52626     if test "x$TOOLKIT" = "xOSX_COCOA" -a "x$USE_GUI" = "x1" ; then
52627         COND_TOOLKIT_OSX_COCOA_USE_GUI_1=""
52628     fi
52629
52630     COND_TOOLKIT_OSX_IPHONE="#"
52631     if test "x$TOOLKIT" = "xOSX_IPHONE" ; then
52632         COND_TOOLKIT_OSX_IPHONE=""
52633     fi
52634
52635     COND_TOOLKIT_OSX_IPHONE_USE_GUI_1="#"
52636     if test "x$TOOLKIT" = "xOSX_IPHONE" -a "x$USE_GUI" = "x1" ; then
52637         COND_TOOLKIT_OSX_IPHONE_USE_GUI_1=""
52638     fi
52639
52640     COND_TOOLKIT_OSX_IPHONE_USE_GUI_1_WXUNIV_0="#"
52641     if test "x$TOOLKIT" = "xOSX_IPHONE" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
52642         COND_TOOLKIT_OSX_IPHONE_USE_GUI_1_WXUNIV_0=""
52643     fi
52644
52645     COND_TOOLKIT_PM="#"
52646     if test "x$TOOLKIT" = "xPM" ; then
52647         COND_TOOLKIT_PM=""
52648     fi
52649
52650     COND_TOOLKIT_PM_USE_GUI_1="#"
52651     if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" ; then
52652         COND_TOOLKIT_PM_USE_GUI_1=""
52653     fi
52654
52655     COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="#"
52656     if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
52657         COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0=""
52658     fi
52659
52660     COND_TOOLKIT_WINCE="#"
52661     if test "x$TOOLKIT" = "xWINCE" ; then
52662         COND_TOOLKIT_WINCE=""
52663     fi
52664
52665     COND_TOOLKIT_WINCE_USE_GUI_1="#"
52666     if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" ; then
52667         COND_TOOLKIT_WINCE_USE_GUI_1=""
52668     fi
52669
52670     COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0="#"
52671     if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
52672         COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0=""
52673     fi
52674
52675     COND_TOOLKIT_WINCE_WXUNIV_0="#"
52676     if test "x$TOOLKIT" = "xWINCE" -a "x$WXUNIV" = "x0" ; then
52677         COND_TOOLKIT_WINCE_WXUNIV_0=""
52678     fi
52679
52680     COND_TOOLKIT_X11="#"
52681     if test "x$TOOLKIT" = "xX11" ; then
52682         COND_TOOLKIT_X11=""
52683     fi
52684
52685     COND_TOOLKIT_X11_USE_GUI_1="#"
52686     if test "x$TOOLKIT" = "xX11" -a "x$USE_GUI" = "x1" ; then
52687         COND_TOOLKIT_X11_USE_GUI_1=""
52688     fi
52689
52690     COND_UNICODE_1="#"
52691     if test "x$UNICODE" = "x1" ; then
52692         COND_UNICODE_1=""
52693     fi
52694
52695     COND_USE_CAIRO_1="#"
52696     if test "x$USE_CAIRO" = "x1" ; then
52697         COND_USE_CAIRO_1=""
52698     fi
52699
52700     COND_USE_EXCEPTIONS_0="#"
52701     if test "x$USE_EXCEPTIONS" = "x0" ; then
52702         COND_USE_EXCEPTIONS_0=""
52703     fi
52704
52705     COND_USE_EXCEPTIONS_1="#"
52706     if test "x$USE_EXCEPTIONS" = "x1" ; then
52707         COND_USE_EXCEPTIONS_1=""
52708     fi
52709
52710     COND_USE_GUI_0="#"
52711     if test "x$USE_GUI" = "x0" ; then
52712         COND_USE_GUI_0=""
52713     fi
52714
52715     COND_USE_GUI_1="#"
52716     if test "x$USE_GUI" = "x1" ; then
52717         COND_USE_GUI_1=""
52718     fi
52719
52720     COND_USE_GUI_1_USE_OPENGL_1="#"
52721     if test "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
52722         COND_USE_GUI_1_USE_OPENGL_1=""
52723     fi
52724
52725     COND_USE_GUI_1_WXUNIV_0="#"
52726     if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
52727         COND_USE_GUI_1_WXUNIV_0=""
52728     fi
52729
52730     COND_USE_GUI_1_WXUNIV_1="#"
52731     if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then
52732         COND_USE_GUI_1_WXUNIV_1=""
52733     fi
52734
52735     COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
52736     if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
52737         COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
52738     fi
52739
52740     COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
52741     if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
52742         COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
52743     fi
52744
52745     COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
52746     if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
52747         COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
52748     fi
52749
52750     COND_USE_GUI_1_wxUSE_LIBJPEG_builtin="#"
52751     if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
52752         COND_USE_GUI_1_wxUSE_LIBJPEG_builtin=""
52753     fi
52754
52755     COND_USE_GUI_1_wxUSE_LIBPNG_builtin="#"
52756     if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
52757         COND_USE_GUI_1_wxUSE_LIBPNG_builtin=""
52758     fi
52759
52760     COND_USE_GUI_1_wxUSE_LIBTIFF_builtin="#"
52761     if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
52762         COND_USE_GUI_1_wxUSE_LIBTIFF_builtin=""
52763     fi
52764
52765     COND_USE_OPENGL_1="#"
52766     if test "x$USE_OPENGL" = "x1" ; then
52767         COND_USE_OPENGL_1=""
52768     fi
52769
52770     COND_USE_PCH_1="#"
52771     if test "x$USE_PCH" = "x1" ; then
52772         COND_USE_PCH_1=""
52773     fi
52774
52775     COND_USE_PLUGINS_0="#"
52776     if test "x$USE_PLUGINS" = "x0" ; then
52777         COND_USE_PLUGINS_0=""
52778     fi
52779
52780     COND_USE_RTTI_0="#"
52781     if test "x$USE_RTTI" = "x0" ; then
52782         COND_USE_RTTI_0=""
52783     fi
52784
52785     COND_USE_RTTI_1="#"
52786     if test "x$USE_RTTI" = "x1" ; then
52787         COND_USE_RTTI_1=""
52788     fi
52789
52790     COND_USE_SOTWOSYMLINKS_1="#"
52791     if test "x$USE_SOTWOSYMLINKS" = "x1" ; then
52792         COND_USE_SOTWOSYMLINKS_1=""
52793     fi
52794
52795     COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1="#"
52796     if test "x$USE_SOVERCYGWIN" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
52797         COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1=""
52798     fi
52799
52800     COND_USE_SOVERLINUX_1="#"
52801     if test "x$USE_SOVERLINUX" = "x1" ; then
52802         COND_USE_SOVERLINUX_1=""
52803     fi
52804
52805     COND_USE_SOVERSION_0="#"
52806     if test "x$USE_SOVERSION" = "x0" ; then
52807         COND_USE_SOVERSION_0=""
52808     fi
52809
52810     COND_USE_SOVERSION_1_USE_SOVERSOLARIS_1="#"
52811     if test "x$USE_SOVERSION" = "x1" -a "x$USE_SOVERSOLARIS" = "x1" ; then
52812         COND_USE_SOVERSION_1_USE_SOVERSOLARIS_1=""
52813     fi
52814
52815     COND_USE_SOVERSOLARIS_1="#"
52816     if test "x$USE_SOVERSOLARIS" = "x1" ; then
52817         COND_USE_SOVERSOLARIS_1=""
52818     fi
52819
52820     COND_USE_STC_1="#"
52821     if test "x$USE_STC" = "x1" ; then
52822         COND_USE_STC_1=""
52823     fi
52824
52825     COND_USE_THREADS_0="#"
52826     if test "x$USE_THREADS" = "x0" ; then
52827         COND_USE_THREADS_0=""
52828     fi
52829
52830     COND_USE_THREADS_1="#"
52831     if test "x$USE_THREADS" = "x1" ; then
52832         COND_USE_THREADS_1=""
52833     fi
52834
52835     COND_USE_XRC_1="#"
52836     if test "x$USE_XRC" = "x1" ; then
52837         COND_USE_XRC_1=""
52838     fi
52839
52840     COND_WINDOWS_IMPLIB_1="#"
52841     if test "x$WINDOWS_IMPLIB" = "x1" ; then
52842         COND_WINDOWS_IMPLIB_1=""
52843     fi
52844
52845     COND_WITH_PLUGIN_SDL_1="#"
52846     if test "x$WITH_PLUGIN_SDL" = "x1" ; then
52847         COND_WITH_PLUGIN_SDL_1=""
52848     fi
52849
52850     COND_WXUNIV_0="#"
52851     if test "x$WXUNIV" = "x0" ; then
52852         COND_WXUNIV_0=""
52853     fi
52854
52855     COND_WXUNIV_1="#"
52856     if test "x$WXUNIV" = "x1" ; then
52857         COND_WXUNIV_1=""
52858     fi
52859
52860     COND_WXUSE_EXPAT_BUILTIN="#"
52861     if test "x$wxUSE_EXPAT" = "xbuiltin" ; then
52862         COND_WXUSE_EXPAT_BUILTIN=""
52863     fi
52864
52865     COND_WXUSE_LIBJPEG_BUILTIN="#"
52866     if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
52867         COND_WXUSE_LIBJPEG_BUILTIN=""
52868     fi
52869
52870     COND_WXUSE_LIBPNG_BUILTIN="#"
52871     if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then
52872         COND_WXUSE_LIBPNG_BUILTIN=""
52873     fi
52874
52875     COND_WXUSE_LIBTIFF_BUILTIN="#"
52876     if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
52877         COND_WXUSE_LIBTIFF_BUILTIN=""
52878     fi
52879
52880     COND_WXUSE_REGEX_BUILTIN="#"
52881     if test "x$wxUSE_REGEX" = "xbuiltin" ; then
52882         COND_WXUSE_REGEX_BUILTIN=""
52883     fi
52884
52885     COND_WXUSE_ZLIB_BUILTIN="#"
52886     if test "x$wxUSE_ZLIB" = "xbuiltin" ; then
52887         COND_WXUSE_ZLIB_BUILTIN=""
52888     fi
52889
52890     COND_wxUSE_EXPAT_builtin="#"
52891     if test "x$wxUSE_EXPAT" = "xbuiltin" ; then
52892         COND_wxUSE_EXPAT_builtin=""
52893     fi
52894
52895     COND_wxUSE_LIBJPEG_builtin="#"
52896     if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
52897         COND_wxUSE_LIBJPEG_builtin=""
52898     fi
52899
52900     COND_wxUSE_LIBPNG_builtin="#"
52901     if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then
52902         COND_wxUSE_LIBPNG_builtin=""
52903     fi
52904
52905     COND_wxUSE_LIBTIFF_builtin="#"
52906     if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
52907         COND_wxUSE_LIBTIFF_builtin=""
52908     fi
52909
52910     COND_wxUSE_REGEX_builtin="#"
52911     if test "x$wxUSE_REGEX" = "xbuiltin" ; then
52912         COND_wxUSE_REGEX_builtin=""
52913     fi
52914
52915     COND_wxUSE_ZLIB_builtin="#"
52916     if test "x$wxUSE_ZLIB" = "xbuiltin" ; then
52917         COND_wxUSE_ZLIB_builtin=""
52918     fi
52919
52920
52921
52922     if test "$BAKEFILE_AUTOCONF_INC_M4_VERSION" = "" ; then
52923         { { 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
52924 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;}
52925    { (exit 1); exit 1; }; }
52926     fi
52927
52928     if test "$BAKEFILE_BAKEFILE_M4_VERSION" != "$BAKEFILE_AUTOCONF_INC_M4_VERSION" ; then
52929         { { 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
52930 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;}
52931    { (exit 1); exit 1; }; }
52932     fi
52933
52934
52935 case ${INSTALL} in
52936   /* ) # Absolute
52937      ;;
52938   ?:* ) # Drive letter, considered as absolute.
52939      ;;
52940   *)
52941      INSTALL=`pwd`/${INSTALL} ;;
52942 esac
52943
52944 if test "$wxUSE_GUI" = "yes"; then
52945
52946 if test "$wxUSE_MSW" = 1 ; then
52947     if test "x$WINDRES" = "x"; then
52948         { { echo "$as_me:$LINENO: error: Required windres program not found" >&5
52949 echo "$as_me: error: Required windres program not found" >&2;}
52950    { (exit 1); exit 1; }; }
52951     fi
52952
52953     RESCOMP="$WINDRES"
52954 fi
52955
52956 if test "$wxUSE_MAC" = 1 -o "$wxUSE_OLD_COCOA" = 1; then
52957             WX_RESOURCES_MACOSX_ASCII="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.r"
52958     WX_RESOURCES_MACOSX_DATA="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.rsrc"
52959
52960         LIBWXMACRES="\$(wx_top_builddir)/lib/${WX_RESOURCES_MACOSX_ASCII}"
52961
52962     # Extract the first word of "DeRez", so it can be a program name with args.
52963 set dummy DeRez; ac_word=$2
52964 { echo "$as_me:$LINENO: checking for $ac_word" >&5
52965 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
52966 if test "${ac_cv_prog_DEREZ+set}" = set; then
52967   echo $ECHO_N "(cached) $ECHO_C" >&6
52968 else
52969   if test -n "$DEREZ"; then
52970   ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
52971 else
52972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
52973 for as_dir in $PATH
52974 do
52975   IFS=$as_save_IFS
52976   test -z "$as_dir" && as_dir=.
52977   for ac_exec_ext in '' $ac_executable_extensions; do
52978   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
52979     ac_cv_prog_DEREZ="DeRez"
52980     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
52981     break 2
52982   fi
52983 done
52984 done
52985 IFS=$as_save_IFS
52986
52987   test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
52988 fi
52989 fi
52990 DEREZ=$ac_cv_prog_DEREZ
52991 if test -n "$DEREZ"; then
52992   { echo "$as_me:$LINENO: result: $DEREZ" >&5
52993 echo "${ECHO_T}$DEREZ" >&6; }
52994 else
52995   { echo "$as_me:$LINENO: result: no" >&5
52996 echo "${ECHO_T}no" >&6; }
52997 fi
52998
52999
53000
53001     MACSETFILE="\$(SETFILE)"
53002
53003             if test "$wxUSE_OSX_CARBON" = 1; then
53004         POSTLINK_COMMAND="\$(REZ) -d __DARWIN__ -t APPL Carbon.r -o"
53005         RESCOMP="$REZ"
53006         WXCONFIG_RESFLAGS="-d __DARWIN__ -t APPL Carbon.r -o"
53007     else
53008         POSTLINK_COMMAND="cat /dev/null | \$(REZ) -d __DARWIN__ -t APPL ${LIBWXMACRES}"
53009         RESCOMP="cat /dev/null \| $REZ"
53010         WXCONFIG_RESFLAGS="-d __DARWIN__ -t APPL \$libdir/$WX_RESOURCES_MACOSX_ASCII"
53011     fi
53012
53013 else
53014         MACSETFILE="@true"
53015
53016     if test "$wxUSE_PM" = 1; then
53017         RESCOMP="emxbind"
53018         WXCONFIG_RESFLAGS="-ep"
53019
53020                 POSTLINK_COMMAND="$RESCOMP $WXCONFIG_RESFLAGS"
53021     else
53022         POSTLINK_COMMAND="@true"
53023     fi
53024 fi
53025
53026 fi
53027
53028
53029 if test $GCC_PCH = 1
53030 then
53031     if test "$wx_cv_gcc_pch_bug" = yes; then
53032         { echo "$as_me:$LINENO: WARNING: *** Precompiled header support is broken on this compiler" >&5
53033 echo "$as_me: WARNING: *** Precompiled header support is broken on this compiler" >&2;}
53034         { echo "$as_me:$LINENO: WARNING: *** --enable-precomp-headers is not recommended" >&5
53035 echo "$as_me: WARNING: *** --enable-precomp-headers is not recommended" >&2;}
53036         { echo "$as_me:$LINENO: WARNING: *** see http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13361" >&5
53037 echo "$as_me: WARNING: *** see http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13361" >&2;}
53038     fi
53039
53040     # Our WX_PRECOMP flag does not make sense for any language except C++ because
53041     # the headers that benefit from precompilation are mostly C++ headers.
53042     CXXFLAGS="-DWX_PRECOMP $CXXFLAGS"
53043     # When Bakefile can do multi-language PCH (e.g. C++ and Objective-C++) enable this:
53044     #OBJCXXFLAGS="-DWX_PRECOMP $CXXFLAGS"
53045 fi
53046
53047
53048 if test "$wxUSE_MAC" = 1 ; then
53049     if test "x$wxUSE_UNIVERSAL_BINARY" != "xno" ; then
53050         sed "s/DEPSMODE=gcc/DEPSMODE=none/" < bk-deps > temp
53051         mv temp bk-deps
53052         chmod +x bk-deps
53053     fi
53054 fi
53055
53056 if test "$wxUSE_SHARED" = "yes"; then
53057                 case "${host}" in
53058       *-pc-os2_emx | *-pc-os2-emx )
53059         SHARED_LD_CC="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
53060         SHARED_LD_CXX="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
53061         cp -p ${srcdir}/src/os2/dllnames.sh .
53062         cp -p ${srcdir}/src/os2/dllar.sh .
53063       ;;
53064     esac
53065 fi
53066 if test "$wxUSE_OMF" = "yes"; then
53067     case "${host}" in
53068       *-pc-os2_emx | *-pc-os2-emx )
53069         LDFLAGS="$LDFLAGS -Zlinker /EXEPACK"
53070         LDFLAGS_GUI="-Zlinker /PMTYPE:PM"
53071         WXCONFIG_LDFLAGS_GUI="-Zlinker /PMTYPE:PM"
53072       ;;
53073     esac
53074 fi
53075
53076 WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS $TOOLCHAIN_DEFS"
53077
53078
53079 case "${host}" in
53080     *-*-solaris2* )
53081                         if test "$GCC" = yes; then
53082             CPPFLAGS=`echo $CPPFLAGS | sed 's/-mt//'`
53083             LIBS=`echo $LIBS | sed 's/-mt//'`
53084             EXTRALIBS_GUI=`echo $EXTRALIBS_GUI | sed 's/-mt//'`
53085         fi
53086         ;;
53087
53088     *-*-linux* )
53089                         if test "x$SUNCXX" = xyes; then
53090             CPPFLAGS=`echo $CPPFLAGS | sed 's/-pthread//'`
53091             LIBS=`echo $LIBS | sed 's/-pthread//'`
53092             EXTRALIBS_GUI=`echo $EXTRALIBS_GUI | sed 's/-pthread//'`
53093         fi
53094         ;;
53095 esac
53096
53097 CFLAGS="$CFLAGS $CFLAGS_VISIBILITY"
53098 CXXFLAGS="$CXXFLAGS $CXXFLAGS_VISIBILITY"
53099 OBJCFLAGS="$OBJCFLAGS $CFLAGS_VISIBILITY"
53100 OBJCXXFLAGS="$OBJCXXFLAGS $CXXFLAGS_VISIBILITY"
53101
53102 SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
53103
53104
53105
53106
53107
53108
53109
53110
53111
53112
53113
53114
53115
53116
53117
53118
53119
53120
53121
53122
53123
53124
53125
53126
53127
53128
53129
53130
53131
53132
53133
53134
53135
53136
53137
53138
53139
53140
53141
53142
53143
53144
53145
53146
53147
53148
53149
53150
53151
53152
53153
53154
53155
53156
53157
53158
53159
53160
53161
53162
53163 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
53164 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
53165 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
53166 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
53167   echo $ECHO_N "(cached) $ECHO_C" >&6
53168 else
53169   cat >conftest.make <<\_ACEOF
53170 SHELL = /bin/sh
53171 all:
53172         @echo '@@@%%%=$(MAKE)=@@@%%%'
53173 _ACEOF
53174 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
53175 case `${MAKE-make} -f conftest.make 2>/dev/null` in
53176   *@@@%%%=?*=@@@%%%*)
53177     eval ac_cv_prog_make_${ac_make}_set=yes;;
53178   *)
53179     eval ac_cv_prog_make_${ac_make}_set=no;;
53180 esac
53181 rm -f conftest.make
53182 fi
53183 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
53184   { echo "$as_me:$LINENO: result: yes" >&5
53185 echo "${ECHO_T}yes" >&6; }
53186   SET_MAKE=
53187 else
53188   { echo "$as_me:$LINENO: result: no" >&5
53189 echo "${ECHO_T}no" >&6; }
53190   SET_MAKE="MAKE=${MAKE-make}"
53191 fi
53192
53193
53194
53195 ac_config_headers="$ac_config_headers lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h:setup.h.in"
53196
53197
53198 if test "$USE_WIN32" = 1; then
53199     ac_config_commands="$ac_config_commands rcdefs.h"
53200
53201 fi
53202
53203 ac_config_files="$ac_config_files lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in"
53204
53205
53206 ac_config_files="$ac_config_files lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in"
53207
53208
53209 ac_config_files="$ac_config_files utils/ifacecheck/rungccxml.sh"
53210
53211
53212 if test "$wx_cv_version_script" = "yes"; then
53213     ac_config_files="$ac_config_files version-script"
53214
53215 fi
53216 ac_config_files="$ac_config_files Makefile"
53217
53218
53219 ac_config_commands="$ac_config_commands wx-config"
53220
53221
53222
53223 if test "$wxWITH_SUBDIRS" != "no"; then
53224 if test "$wxUSE_GUI" = "yes"; then
53225     SUBDIRS="samples demos utils"
53226 else
53227             SUBDIRS="samples utils"
53228 fi
53229
53230
53231
53232 # Check whether --with-cppunit-prefix was given.
53233 if test "${with_cppunit_prefix+set}" = set; then
53234   withval=$with_cppunit_prefix; cppunit_config_prefix="$withval"
53235 else
53236   cppunit_config_prefix=""
53237 fi
53238
53239
53240 # Check whether --with-cppunit-exec-prefix was given.
53241 if test "${with_cppunit_exec_prefix+set}" = set; then
53242   withval=$with_cppunit_exec_prefix; cppunit_config_exec_prefix="$withval"
53243 else
53244   cppunit_config_exec_prefix=""
53245 fi
53246
53247
53248   if test x$cppunit_config_exec_prefix != x ; then
53249      cppunit_config_args="$cppunit_config_args --exec-prefix=$cppunit_config_exec_prefix"
53250      if test x${CPPUNIT_CONFIG+set} != xset ; then
53251         CPPUNIT_CONFIG=$cppunit_config_exec_prefix/bin/cppunit-config
53252      fi
53253   fi
53254   if test x$cppunit_config_prefix != x ; then
53255      cppunit_config_args="$cppunit_config_args --prefix=$cppunit_config_prefix"
53256      if test x${CPPUNIT_CONFIG+set} != xset ; then
53257         CPPUNIT_CONFIG=$cppunit_config_prefix/bin/cppunit-config
53258      fi
53259   fi
53260
53261   # Extract the first word of "cppunit-config", so it can be a program name with args.
53262 set dummy cppunit-config; ac_word=$2
53263 { echo "$as_me:$LINENO: checking for $ac_word" >&5
53264 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
53265 if test "${ac_cv_path_CPPUNIT_CONFIG+set}" = set; then
53266   echo $ECHO_N "(cached) $ECHO_C" >&6
53267 else
53268   case $CPPUNIT_CONFIG in
53269   [\\/]* | ?:[\\/]*)
53270   ac_cv_path_CPPUNIT_CONFIG="$CPPUNIT_CONFIG" # Let the user override the test with a path.
53271   ;;
53272   *)
53273   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
53274 for as_dir in $PATH
53275 do
53276   IFS=$as_save_IFS
53277   test -z "$as_dir" && as_dir=.
53278   for ac_exec_ext in '' $ac_executable_extensions; do
53279   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
53280     ac_cv_path_CPPUNIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
53281     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
53282     break 2
53283   fi
53284 done
53285 done
53286 IFS=$as_save_IFS
53287
53288   test -z "$ac_cv_path_CPPUNIT_CONFIG" && ac_cv_path_CPPUNIT_CONFIG="no"
53289   ;;
53290 esac
53291 fi
53292 CPPUNIT_CONFIG=$ac_cv_path_CPPUNIT_CONFIG
53293 if test -n "$CPPUNIT_CONFIG"; then
53294   { echo "$as_me:$LINENO: result: $CPPUNIT_CONFIG" >&5
53295 echo "${ECHO_T}$CPPUNIT_CONFIG" >&6; }
53296 else
53297   { echo "$as_me:$LINENO: result: no" >&5
53298 echo "${ECHO_T}no" >&6; }
53299 fi
53300
53301
53302   cppunit_version_min=1.8.0
53303
53304   { echo "$as_me:$LINENO: checking for Cppunit - version >= $cppunit_version_min" >&5
53305 echo $ECHO_N "checking for Cppunit - version >= $cppunit_version_min... $ECHO_C" >&6; }
53306   no_cppunit=""
53307   if test "$CPPUNIT_CONFIG" = "no" ; then
53308     { echo "$as_me:$LINENO: result: no" >&5
53309 echo "${ECHO_T}no" >&6; }
53310     no_cppunit=yes
53311   else
53312     CPPUNIT_CFLAGS=`$CPPUNIT_CONFIG --cflags`
53313     CPPUNIT_LIBS=`$CPPUNIT_CONFIG --libs`
53314     cppunit_version=`$CPPUNIT_CONFIG --version`
53315
53316     cppunit_major_version=`echo $cppunit_version | \
53317            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
53318     cppunit_minor_version=`echo $cppunit_version | \
53319            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
53320     cppunit_micro_version=`echo $cppunit_version | \
53321            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
53322
53323     cppunit_major_min=`echo $cppunit_version_min | \
53324            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
53325     cppunit_minor_min=`echo $cppunit_version_min | \
53326            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
53327     cppunit_micro_min=`echo $cppunit_version_min | \
53328            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
53329
53330     cppunit_version_proper=`expr \
53331         $cppunit_major_version \> $cppunit_major_min \| \
53332         $cppunit_major_version \= $cppunit_major_min \& \
53333         $cppunit_minor_version \> $cppunit_minor_min \| \
53334         $cppunit_major_version \= $cppunit_major_min \& \
53335         $cppunit_minor_version \= $cppunit_minor_min \& \
53336         $cppunit_micro_version \>= $cppunit_micro_min `
53337
53338     if test "$cppunit_version_proper" = "1" ; then
53339       { echo "$as_me:$LINENO: result: $cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&5
53340 echo "${ECHO_T}$cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&6; }
53341     else
53342       { echo "$as_me:$LINENO: result: no" >&5
53343 echo "${ECHO_T}no" >&6; }
53344       no_cppunit=yes
53345     fi
53346   fi
53347
53348   if test "x$no_cppunit" = x ; then
53349      SUBDIRS="$SUBDIRS tests"
53350   else
53351      CPPUNIT_CFLAGS=""
53352      CPPUNIT_LIBS=""
53353      :
53354   fi
53355
53356
53357
53358
53359
53360 for subdir in $SUBDIRS; do
53361     if test -d ${srcdir}/${subdir} ; then
53362         if test "$wxUSE_GUI" = "yes"; then
53363             if test ${subdir} = "samples"; then
53364                                                 makefiles="samples/Makefile.in $makefiles"
53365                 for sample in $SAMPLES_SUBDIRS; do
53366                     if test -d $srcdir/samples/$sample; then
53367                         makefiles="samples/$sample/Makefile.in $makefiles"
53368                     fi
53369                 done
53370             else
53371                                                                 disabled_var=DISABLED_`echo $subdir | tr '[a-z]' '[A-Z]'`
53372                 eval "disabled=\$$disabled_var"
53373                 disabled=/`echo X $disabled | sed 's@ @/|/@g'`/
53374                 makefiles=`(cd $srcdir ; find $subdir -name Makefile.in) | $EGREP -v "$disabled"`
53375             fi
53376         else
53377                                     if test ${subdir} = "samples"; then
53378                                                 makefiles="samples/Makefile.in $makefiles"
53379                 for sample in `echo $SAMPLES_SUBDIRS`; do
53380                     if test -d $srcdir/samples/$sample; then
53381                         makefiles="samples/$sample/Makefile.in $makefiles"
53382                     fi
53383                 done
53384             elif test ${subdir} = "utils"; then
53385                 makefiles=""
53386                 for util in ifacecheck ; do
53387                     if test -d $srcdir/utils/$util ; then
53388                         makefiles="utils/$util/src/Makefile.in \
53389                                    $makefiles"
53390                     fi
53391                 done
53392             else
53393                                 makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)`
53394             fi
53395         fi
53396
53397         for mkin in $makefiles ; do
53398             mk=`echo $mkin | sed 's/Makefile\.in/Makefile/g'`
53399             ac_config_files="$ac_config_files $mk"
53400
53401         done
53402     fi
53403 done
53404 fi
53405 cat >confcache <<\_ACEOF
53406 # This file is a shell script that caches the results of configure
53407 # tests run on this system so they can be shared between configure
53408 # scripts and configure runs, see configure's option --config-cache.
53409 # It is not useful on other systems.  If it contains results you don't
53410 # want to keep, you may remove or edit it.
53411 #
53412 # config.status only pays attention to the cache file if you give it
53413 # the --recheck option to rerun configure.
53414 #
53415 # `ac_cv_env_foo' variables (set or unset) will be overridden when
53416 # loading this file, other *unset* `ac_cv_foo' will be assigned the
53417 # following values.
53418
53419 _ACEOF
53420
53421 # The following way of writing the cache mishandles newlines in values,
53422 # but we know of no workaround that is simple, portable, and efficient.
53423 # So, we kill variables containing newlines.
53424 # Ultrix sh set writes to stderr and can't be redirected directly,
53425 # and sets the high bit in the cache file unless we assign to the vars.
53426 (
53427   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
53428     eval ac_val=\$$ac_var
53429     case $ac_val in #(
53430     *${as_nl}*)
53431       case $ac_var in #(
53432       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
53433 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
53434       esac
53435       case $ac_var in #(
53436       _ | IFS | as_nl) ;; #(
53437       *) $as_unset $ac_var ;;
53438       esac ;;
53439     esac
53440   done
53441
53442   (set) 2>&1 |
53443     case $as_nl`(ac_space=' '; set) 2>&1` in #(
53444     *${as_nl}ac_space=\ *)
53445       # `set' does not quote correctly, so add quotes (double-quote
53446       # substitution turns \\\\ into \\, and sed turns \\ into \).
53447       sed -n \
53448         "s/'/'\\\\''/g;
53449           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
53450       ;; #(
53451     *)
53452       # `set' quotes correctly as required by POSIX, so do not add quotes.
53453       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
53454       ;;
53455     esac |
53456     sort
53457 ) |
53458   sed '
53459      /^ac_cv_env_/b end
53460      t clear
53461      :clear
53462      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
53463      t end
53464      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
53465      :end' >>confcache
53466 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
53467   if test -w "$cache_file"; then
53468     test "x$cache_file" != "x/dev/null" &&
53469       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
53470 echo "$as_me: updating cache $cache_file" >&6;}
53471     cat confcache >$cache_file
53472   else
53473     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
53474 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
53475   fi
53476 fi
53477 rm -f confcache
53478
53479 test "x$prefix" = xNONE && prefix=$ac_default_prefix
53480 # Let make expand exec_prefix.
53481 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
53482
53483 DEFS=-DHAVE_CONFIG_H
53484
53485 ac_libobjs=
53486 ac_ltlibobjs=
53487 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
53488   # 1. Remove the extension, and $U if already installed.
53489   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
53490   ac_i=`echo "$ac_i" | sed "$ac_script"`
53491   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
53492   #    will be set to the directory where LIBOBJS objects are built.
53493   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
53494   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
53495 done
53496 LIBOBJS=$ac_libobjs
53497
53498 LTLIBOBJS=$ac_ltlibobjs
53499
53500
53501
53502 : ${CONFIG_STATUS=./config.status}
53503 ac_clean_files_save=$ac_clean_files
53504 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
53505 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
53506 echo "$as_me: creating $CONFIG_STATUS" >&6;}
53507 cat >$CONFIG_STATUS <<_ACEOF
53508 #! $SHELL
53509 # Generated by $as_me.
53510 # Run this file to recreate the current configuration.
53511 # Compiler output produced by configure, useful for debugging
53512 # configure, is in config.log if it exists.
53513
53514 debug=false
53515 ac_cs_recheck=false
53516 ac_cs_silent=false
53517 SHELL=\${CONFIG_SHELL-$SHELL}
53518 _ACEOF
53519
53520 cat >>$CONFIG_STATUS <<\_ACEOF
53521 ## --------------------- ##
53522 ## M4sh Initialization.  ##
53523 ## --------------------- ##
53524
53525 # Be more Bourne compatible
53526 DUALCASE=1; export DUALCASE # for MKS sh
53527 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
53528   emulate sh
53529   NULLCMD=:
53530   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
53531   # is contrary to our usage.  Disable this feature.
53532   alias -g '${1+"$@"}'='"$@"'
53533   setopt NO_GLOB_SUBST
53534 else
53535   case `(set -o) 2>/dev/null` in
53536   *posix*) set -o posix ;;
53537 esac
53538
53539 fi
53540
53541
53542
53543
53544 # PATH needs CR
53545 # Avoid depending upon Character Ranges.
53546 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
53547 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
53548 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
53549 as_cr_digits='0123456789'
53550 as_cr_alnum=$as_cr_Letters$as_cr_digits
53551
53552 # The user is always right.
53553 if test "${PATH_SEPARATOR+set}" != set; then
53554   echo "#! /bin/sh" >conf$$.sh
53555   echo  "exit 0"   >>conf$$.sh
53556   chmod +x conf$$.sh
53557   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
53558     PATH_SEPARATOR=';'
53559   else
53560     PATH_SEPARATOR=:
53561   fi
53562   rm -f conf$$.sh
53563 fi
53564
53565 # Support unset when possible.
53566 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
53567   as_unset=unset
53568 else
53569   as_unset=false
53570 fi
53571
53572
53573 # IFS
53574 # We need space, tab and new line, in precisely that order.  Quoting is
53575 # there to prevent editors from complaining about space-tab.
53576 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
53577 # splitting by setting IFS to empty value.)
53578 as_nl='
53579 '
53580 IFS=" ""        $as_nl"
53581
53582 # Find who we are.  Look in the path if we contain no directory separator.
53583 case $0 in
53584   *[\\/]* ) as_myself=$0 ;;
53585   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
53586 for as_dir in $PATH
53587 do
53588   IFS=$as_save_IFS
53589   test -z "$as_dir" && as_dir=.
53590   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
53591 done
53592 IFS=$as_save_IFS
53593
53594      ;;
53595 esac
53596 # We did not find ourselves, most probably we were run as `sh COMMAND'
53597 # in which case we are not to be found in the path.
53598 if test "x$as_myself" = x; then
53599   as_myself=$0
53600 fi
53601 if test ! -f "$as_myself"; then
53602   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
53603   { (exit 1); exit 1; }
53604 fi
53605
53606 # Work around bugs in pre-3.0 UWIN ksh.
53607 for as_var in ENV MAIL MAILPATH
53608 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
53609 done
53610 PS1='$ '
53611 PS2='> '
53612 PS4='+ '
53613
53614 # NLS nuisances.
53615 for as_var in \
53616   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
53617   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
53618   LC_TELEPHONE LC_TIME
53619 do
53620   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
53621     eval $as_var=C; export $as_var
53622   else
53623     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
53624   fi
53625 done
53626
53627 # Required to use basename.
53628 if expr a : '\(a\)' >/dev/null 2>&1 &&
53629    test "X`expr 00001 : '.*\(...\)'`" = X001; then
53630   as_expr=expr
53631 else
53632   as_expr=false
53633 fi
53634
53635 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
53636   as_basename=basename
53637 else
53638   as_basename=false
53639 fi
53640
53641
53642 # Name of the executable.
53643 as_me=`$as_basename -- "$0" ||
53644 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
53645          X"$0" : 'X\(//\)$' \| \
53646          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
53647 echo X/"$0" |
53648     sed '/^.*\/\([^/][^/]*\)\/*$/{
53649             s//\1/
53650             q
53651           }
53652           /^X\/\(\/\/\)$/{
53653             s//\1/
53654             q
53655           }
53656           /^X\/\(\/\).*/{
53657             s//\1/
53658             q
53659           }
53660           s/.*/./; q'`
53661
53662 # CDPATH.
53663 $as_unset CDPATH
53664
53665
53666
53667   as_lineno_1=$LINENO
53668   as_lineno_2=$LINENO
53669   test "x$as_lineno_1" != "x$as_lineno_2" &&
53670   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
53671
53672   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
53673   # uniformly replaced by the line number.  The first 'sed' inserts a
53674   # line-number line after each line using $LINENO; the second 'sed'
53675   # does the real work.  The second script uses 'N' to pair each
53676   # line-number line with the line containing $LINENO, and appends
53677   # trailing '-' during substitution so that $LINENO is not a special
53678   # case at line end.
53679   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
53680   # scripts with optimization help from Paolo Bonzini.  Blame Lee
53681   # E. McMahon (1931-1989) for sed's syntax.  :-)
53682   sed -n '
53683     p
53684     /[$]LINENO/=
53685   ' <$as_myself |
53686     sed '
53687       s/[$]LINENO.*/&-/
53688       t lineno
53689       b
53690       :lineno
53691       N
53692       :loop
53693       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
53694       t loop
53695       s/-\n.*//
53696     ' >$as_me.lineno &&
53697   chmod +x "$as_me.lineno" ||
53698     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
53699    { (exit 1); exit 1; }; }
53700
53701   # Don't try to exec as it changes $[0], causing all sort of problems
53702   # (the dirname of $[0] is not the place where we might find the
53703   # original and so on.  Autoconf is especially sensitive to this).
53704   . "./$as_me.lineno"
53705   # Exit status is that of the last command.
53706   exit
53707 }
53708
53709
53710 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
53711   as_dirname=dirname
53712 else
53713   as_dirname=false
53714 fi
53715
53716 ECHO_C= ECHO_N= ECHO_T=
53717 case `echo -n x` in
53718 -n*)
53719   case `echo 'x\c'` in
53720   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
53721   *)   ECHO_C='\c';;
53722   esac;;
53723 *)
53724   ECHO_N='-n';;
53725 esac
53726
53727 if expr a : '\(a\)' >/dev/null 2>&1 &&
53728    test "X`expr 00001 : '.*\(...\)'`" = X001; then
53729   as_expr=expr
53730 else
53731   as_expr=false
53732 fi
53733
53734 rm -f conf$$ conf$$.exe conf$$.file
53735 if test -d conf$$.dir; then
53736   rm -f conf$$.dir/conf$$.file
53737 else
53738   rm -f conf$$.dir
53739   mkdir conf$$.dir
53740 fi
53741 echo >conf$$.file
53742 if ln -s conf$$.file conf$$ 2>/dev/null; then
53743   as_ln_s='ln -s'
53744   # ... but there are two gotchas:
53745   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
53746   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
53747   # In both cases, we have to default to `cp -p'.
53748   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
53749     as_ln_s='cp -p'
53750 elif ln conf$$.file conf$$ 2>/dev/null; then
53751   as_ln_s=ln
53752 else
53753   as_ln_s='cp -p'
53754 fi
53755 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
53756 rmdir conf$$.dir 2>/dev/null
53757
53758 if mkdir -p . 2>/dev/null; then
53759   as_mkdir_p=:
53760 else
53761   test -d ./-p && rmdir ./-p
53762   as_mkdir_p=false
53763 fi
53764
53765 if test -x / >/dev/null 2>&1; then
53766   as_test_x='test -x'
53767 else
53768   if ls -dL / >/dev/null 2>&1; then
53769     as_ls_L_option=L
53770   else
53771     as_ls_L_option=
53772   fi
53773   as_test_x='
53774     eval sh -c '\''
53775       if test -d "$1"; then
53776         test -d "$1/.";
53777       else
53778         case $1 in
53779         -*)set "./$1";;
53780         esac;
53781         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
53782         ???[sx]*):;;*)false;;esac;fi
53783     '\'' sh
53784   '
53785 fi
53786 as_executable_p=$as_test_x
53787
53788 # Sed expression to map a string onto a valid CPP name.
53789 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
53790
53791 # Sed expression to map a string onto a valid variable name.
53792 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
53793
53794
53795 exec 6>&1
53796
53797 # Save the log message, to keep $[0] and so on meaningful, and to
53798 # report actual input values of CONFIG_FILES etc. instead of their
53799 # values after options handling.
53800 ac_log="
53801 This file was extended by wxWidgets $as_me 2.9.3, which was
53802 generated by GNU Autoconf 2.61.  Invocation command line was
53803
53804   CONFIG_FILES    = $CONFIG_FILES
53805   CONFIG_HEADERS  = $CONFIG_HEADERS
53806   CONFIG_LINKS    = $CONFIG_LINKS
53807   CONFIG_COMMANDS = $CONFIG_COMMANDS
53808   $ $0 $@
53809
53810 on `(hostname || uname -n) 2>/dev/null | sed 1q`
53811 "
53812
53813 _ACEOF
53814
53815 cat >>$CONFIG_STATUS <<_ACEOF
53816 # Files that config.status was made for.
53817 config_files="$ac_config_files"
53818 config_headers="$ac_config_headers"
53819 config_commands="$ac_config_commands"
53820
53821 _ACEOF
53822
53823 cat >>$CONFIG_STATUS <<\_ACEOF
53824 ac_cs_usage="\
53825 \`$as_me' instantiates files from templates according to the
53826 current configuration.
53827
53828 Usage: $0 [OPTIONS] [FILE]...
53829
53830   -h, --help       print this help, then exit
53831   -V, --version    print version number and configuration settings, then exit
53832   -q, --quiet      do not print progress messages
53833   -d, --debug      don't remove temporary files
53834       --recheck    update $as_me by reconfiguring in the same conditions
53835   --file=FILE[:TEMPLATE]
53836                    instantiate the configuration file FILE
53837   --header=FILE[:TEMPLATE]
53838                    instantiate the configuration header FILE
53839
53840 Configuration files:
53841 $config_files
53842
53843 Configuration headers:
53844 $config_headers
53845
53846 Configuration commands:
53847 $config_commands
53848
53849 Report bugs to <bug-autoconf@gnu.org>."
53850
53851 _ACEOF
53852 cat >>$CONFIG_STATUS <<_ACEOF
53853 ac_cs_version="\\
53854 wxWidgets config.status 2.9.3
53855 configured by $0, generated by GNU Autoconf 2.61,
53856   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
53857
53858 Copyright (C) 2006 Free Software Foundation, Inc.
53859 This config.status script is free software; the Free Software Foundation
53860 gives unlimited permission to copy, distribute and modify it."
53861
53862 ac_pwd='$ac_pwd'
53863 srcdir='$srcdir'
53864 INSTALL='$INSTALL'
53865 _ACEOF
53866
53867 cat >>$CONFIG_STATUS <<\_ACEOF
53868 # If no file are specified by the user, then we need to provide default
53869 # value.  By we need to know if files were specified by the user.
53870 ac_need_defaults=:
53871 while test $# != 0
53872 do
53873   case $1 in
53874   --*=*)
53875     ac_option=`expr "X$1" : 'X\([^=]*\)='`
53876     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
53877     ac_shift=:
53878     ;;
53879   *)
53880     ac_option=$1
53881     ac_optarg=$2
53882     ac_shift=shift
53883     ;;
53884   esac
53885
53886   case $ac_option in
53887   # Handling of the options.
53888   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
53889     ac_cs_recheck=: ;;
53890   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
53891     echo "$ac_cs_version"; exit ;;
53892   --debug | --debu | --deb | --de | --d | -d )
53893     debug=: ;;
53894   --file | --fil | --fi | --f )
53895     $ac_shift
53896     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
53897     ac_need_defaults=false;;
53898   --header | --heade | --head | --hea )
53899     $ac_shift
53900     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
53901     ac_need_defaults=false;;
53902   --he | --h)
53903     # Conflict between --help and --header
53904     { echo "$as_me: error: ambiguous option: $1
53905 Try \`$0 --help' for more information." >&2
53906    { (exit 1); exit 1; }; };;
53907   --help | --hel | -h )
53908     echo "$ac_cs_usage"; exit ;;
53909   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
53910   | -silent | --silent | --silen | --sile | --sil | --si | --s)
53911     ac_cs_silent=: ;;
53912
53913   # This is an error.
53914   -*) { echo "$as_me: error: unrecognized option: $1
53915 Try \`$0 --help' for more information." >&2
53916    { (exit 1); exit 1; }; } ;;
53917
53918   *) ac_config_targets="$ac_config_targets $1"
53919      ac_need_defaults=false ;;
53920
53921   esac
53922   shift
53923 done
53924
53925 ac_configure_extra_args=
53926
53927 if $ac_cs_silent; then
53928   exec 6>/dev/null
53929   ac_configure_extra_args="$ac_configure_extra_args --silent"
53930 fi
53931
53932 _ACEOF
53933 cat >>$CONFIG_STATUS <<_ACEOF
53934 if \$ac_cs_recheck; then
53935   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
53936   CONFIG_SHELL=$SHELL
53937   export CONFIG_SHELL
53938   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
53939 fi
53940
53941 _ACEOF
53942 cat >>$CONFIG_STATUS <<\_ACEOF
53943 exec 5>>config.log
53944 {
53945   echo
53946   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
53947 ## Running $as_me. ##
53948 _ASBOX
53949   echo "$ac_log"
53950 } >&5
53951
53952 _ACEOF
53953 cat >>$CONFIG_STATUS <<_ACEOF
53954 #
53955 # INIT-COMMANDS
53956 #
53957
53958             CPP="$CPP"
53959             infile="$srcdir/include/wx/msw/genrcdefs.h"
53960             outdir="lib/wx/include/$TOOLCHAIN_FULLNAME/wx/msw"
53961
53962
53963  TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
53964  TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
53965  TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
53966                      LN_S="${LN_S}"
53967
53968
53969 _ACEOF
53970
53971 cat >>$CONFIG_STATUS <<\_ACEOF
53972
53973 # Handling of arguments.
53974 for ac_config_target in $ac_config_targets
53975 do
53976   case $ac_config_target in
53977     "lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h:setup.h.in" ;;
53978     "rcdefs.h") CONFIG_COMMANDS="$CONFIG_COMMANDS rcdefs.h" ;;
53979     "lib/wx/config/${TOOLCHAIN_FULLNAME}") CONFIG_FILES="$CONFIG_FILES lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in" ;;
53980     "lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}") CONFIG_FILES="$CONFIG_FILES lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in" ;;
53981     "utils/ifacecheck/rungccxml.sh") CONFIG_FILES="$CONFIG_FILES utils/ifacecheck/rungccxml.sh" ;;
53982     "version-script") CONFIG_FILES="$CONFIG_FILES version-script" ;;
53983     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
53984     "wx-config") CONFIG_COMMANDS="$CONFIG_COMMANDS wx-config" ;;
53985     "$mk") CONFIG_FILES="$CONFIG_FILES $mk" ;;
53986
53987   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
53988 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
53989    { (exit 1); exit 1; }; };;
53990   esac
53991 done
53992
53993
53994 # If the user did not use the arguments to specify the items to instantiate,
53995 # then the envvar interface is used.  Set only those that are not.
53996 # We use the long form for the default assignment because of an extremely
53997 # bizarre bug on SunOS 4.1.3.
53998 if $ac_need_defaults; then
53999   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
54000   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
54001   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
54002 fi
54003
54004 # Have a temporary directory for convenience.  Make it in the build tree
54005 # simply because there is no reason against having it here, and in addition,
54006 # creating and moving files from /tmp can sometimes cause problems.
54007 # Hook for its removal unless debugging.
54008 # Note that there is a small window in which the directory will not be cleaned:
54009 # after its creation but before its name has been assigned to `$tmp'.
54010 $debug ||
54011 {
54012   tmp=
54013   trap 'exit_status=$?
54014   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
54015 ' 0
54016   trap '{ (exit 1); exit 1; }' 1 2 13 15
54017 }
54018 # Create a (secure) tmp directory for tmp files.
54019
54020 {
54021   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
54022   test -n "$tmp" && test -d "$tmp"
54023 }  ||
54024 {
54025   tmp=./conf$$-$RANDOM
54026   (umask 077 && mkdir "$tmp")
54027 } ||
54028 {
54029    echo "$me: cannot create a temporary directory in ." >&2
54030    { (exit 1); exit 1; }
54031 }
54032
54033 #
54034 # Set up the sed scripts for CONFIG_FILES section.
54035 #
54036
54037 # No need to generate the scripts if there are no CONFIG_FILES.
54038 # This happens for instance when ./config.status config.h
54039 if test -n "$CONFIG_FILES"; then
54040
54041 _ACEOF
54042
54043
54044
54045 ac_delim='%!_!# '
54046 for ac_last_try in false false false false false :; do
54047   cat >conf$$subs.sed <<_ACEOF
54048 SHELL!$SHELL$ac_delim
54049 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
54050 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
54051 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
54052 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
54053 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
54054 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
54055 exec_prefix!$exec_prefix$ac_delim
54056 prefix!$prefix$ac_delim
54057 program_transform_name!$program_transform_name$ac_delim
54058 bindir!$bindir$ac_delim
54059 sbindir!$sbindir$ac_delim
54060 libexecdir!$libexecdir$ac_delim
54061 datarootdir!$datarootdir$ac_delim
54062 datadir!$datadir$ac_delim
54063 sysconfdir!$sysconfdir$ac_delim
54064 sharedstatedir!$sharedstatedir$ac_delim
54065 localstatedir!$localstatedir$ac_delim
54066 includedir!$includedir$ac_delim
54067 oldincludedir!$oldincludedir$ac_delim
54068 docdir!$docdir$ac_delim
54069 infodir!$infodir$ac_delim
54070 htmldir!$htmldir$ac_delim
54071 dvidir!$dvidir$ac_delim
54072 pdfdir!$pdfdir$ac_delim
54073 psdir!$psdir$ac_delim
54074 libdir!$libdir$ac_delim
54075 localedir!$localedir$ac_delim
54076 mandir!$mandir$ac_delim
54077 DEFS!$DEFS$ac_delim
54078 ECHO_C!$ECHO_C$ac_delim
54079 ECHO_N!$ECHO_N$ac_delim
54080 ECHO_T!$ECHO_T$ac_delim
54081 LIBS!$LIBS$ac_delim
54082 build_alias!$build_alias$ac_delim
54083 host_alias!$host_alias$ac_delim
54084 target_alias!$target_alias$ac_delim
54085 build!$build$ac_delim
54086 build_cpu!$build_cpu$ac_delim
54087 build_vendor!$build_vendor$ac_delim
54088 build_os!$build_os$ac_delim
54089 host!$host$ac_delim
54090 host_cpu!$host_cpu$ac_delim
54091 host_vendor!$host_vendor$ac_delim
54092 host_os!$host_os$ac_delim
54093 wx_top_builddir!$wx_top_builddir$ac_delim
54094 CC!$CC$ac_delim
54095 CFLAGS!$CFLAGS$ac_delim
54096 LDFLAGS!$LDFLAGS$ac_delim
54097 CPPFLAGS!$CPPFLAGS$ac_delim
54098 ac_ct_CC!$ac_ct_CC$ac_delim
54099 EXEEXT!$EXEEXT$ac_delim
54100 OBJEXT!$OBJEXT$ac_delim
54101 CPP!$CPP$ac_delim
54102 GREP!$GREP$ac_delim
54103 EGREP!$EGREP$ac_delim
54104 CXX!$CXX$ac_delim
54105 CXXFLAGS!$CXXFLAGS$ac_delim
54106 ac_ct_CXX!$ac_ct_CXX$ac_delim
54107 AR!$AR$ac_delim
54108 OSX_SW_VERS!$OSX_SW_VERS$ac_delim
54109 CXXCPP!$CXXCPP$ac_delim
54110 subdirs!$subdirs$ac_delim
54111 PKG_CONFIG!$PKG_CONFIG$ac_delim
54112 GTK_CFLAGS!$GTK_CFLAGS$ac_delim
54113 GTK_LIBS!$GTK_LIBS$ac_delim
54114 GTK_CONFIG!$GTK_CONFIG$ac_delim
54115 DIRECTFB_CFLAGS!$DIRECTFB_CFLAGS$ac_delim
54116 DIRECTFB_LIBS!$DIRECTFB_LIBS$ac_delim
54117 XMKMF!$XMKMF$ac_delim
54118 X_CFLAGS!$X_CFLAGS$ac_delim
54119 X_PRE_LIBS!$X_PRE_LIBS$ac_delim
54120 X_LIBS!$X_LIBS$ac_delim
54121 X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
54122 PANGOX_CFLAGS!$PANGOX_CFLAGS$ac_delim
54123 PANGOX_LIBS!$PANGOX_LIBS$ac_delim
54124 PANGOFT2_CFLAGS!$PANGOFT2_CFLAGS$ac_delim
54125 PANGOFT2_LIBS!$PANGOFT2_LIBS$ac_delim
54126 PANGOXFT_CFLAGS!$PANGOXFT_CFLAGS$ac_delim
54127 PANGOXFT_LIBS!$PANGOXFT_LIBS$ac_delim
54128 CFLAGS_VISIBILITY!$CFLAGS_VISIBILITY$ac_delim
54129 CXXFLAGS_VISIBILITY!$CXXFLAGS_VISIBILITY$ac_delim
54130 LIBICONV!$LIBICONV$ac_delim
54131 GXX_VERSION!$GXX_VERSION$ac_delim
54132 SDL_CONFIG!$SDL_CONFIG$ac_delim
54133 SDL_CFLAGS!$SDL_CFLAGS$ac_delim
54134 SDL_LIBS!$SDL_LIBS$ac_delim
54135 GTKPRINT_CFLAGS!$GTKPRINT_CFLAGS$ac_delim
54136 GTKPRINT_LIBS!$GTKPRINT_LIBS$ac_delim
54137 LIBGNOMEPRINTUI_CFLAGS!$LIBGNOMEPRINTUI_CFLAGS$ac_delim
54138 LIBGNOMEPRINTUI_LIBS!$LIBGNOMEPRINTUI_LIBS$ac_delim
54139 GNOMEVFS_CFLAGS!$GNOMEVFS_CFLAGS$ac_delim
54140 GNOMEVFS_LIBS!$GNOMEVFS_LIBS$ac_delim
54141 HILDON_CFLAGS!$HILDON_CFLAGS$ac_delim
54142 HILDON_LIBS!$HILDON_LIBS$ac_delim
54143 HILDON2_CFLAGS!$HILDON2_CFLAGS$ac_delim
54144 HILDON2_LIBS!$HILDON2_LIBS$ac_delim
54145 _ACEOF
54146
54147   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
54148     break
54149   elif $ac_last_try; then
54150     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
54151 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
54152    { (exit 1); exit 1; }; }
54153   else
54154     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
54155   fi
54156 done
54157
54158 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
54159 if test -n "$ac_eof"; then
54160   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
54161   ac_eof=`expr $ac_eof + 1`
54162 fi
54163
54164 cat >>$CONFIG_STATUS <<_ACEOF
54165 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
54166 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
54167 _ACEOF
54168 sed '
54169 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
54170 s/^/s,@/; s/!/@,|#_!!_#|/
54171 :n
54172 t n
54173 s/'"$ac_delim"'$/,g/; t
54174 s/$/\\/; p
54175 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
54176 ' >>$CONFIG_STATUS <conf$$subs.sed
54177 rm -f conf$$subs.sed
54178 cat >>$CONFIG_STATUS <<_ACEOF
54179 CEOF$ac_eof
54180 _ACEOF
54181
54182
54183 ac_delim='%!_!# '
54184 for ac_last_try in false false false false false :; do
54185   cat >conf$$subs.sed <<_ACEOF
54186 PYTHON!$PYTHON$ac_delim
54187 COND_PYTHON!$COND_PYTHON$ac_delim
54188 CAIRO_CFLAGS!$CAIRO_CFLAGS$ac_delim
54189 CAIRO_LIBS!$CAIRO_LIBS$ac_delim
54190 GST_CFLAGS!$GST_CFLAGS$ac_delim
54191 GST_LIBS!$GST_LIBS$ac_delim
54192 ALL_WX_LIBS!$ALL_WX_LIBS$ac_delim
54193 BUILT_WX_LIBS!$BUILT_WX_LIBS$ac_delim
54194 STD_BASE_LIBS!$STD_BASE_LIBS$ac_delim
54195 STD_GUI_LIBS!$STD_GUI_LIBS$ac_delim
54196 wxUSE_ZLIB!$wxUSE_ZLIB$ac_delim
54197 wxUSE_REGEX!$wxUSE_REGEX$ac_delim
54198 wxUSE_EXPAT!$wxUSE_EXPAT$ac_delim
54199 wxUSE_LIBJPEG!$wxUSE_LIBJPEG$ac_delim
54200 wxUSE_LIBPNG!$wxUSE_LIBPNG$ac_delim
54201 wxUSE_LIBTIFF!$wxUSE_LIBTIFF$ac_delim
54202 VENDOR!$VENDOR$ac_delim
54203 OFFICIAL_BUILD!$OFFICIAL_BUILD$ac_delim
54204 WX_FLAVOUR!$WX_FLAVOUR$ac_delim
54205 WX_LIB_FLAVOUR!$WX_LIB_FLAVOUR$ac_delim
54206 WXUNIV!$WXUNIV$ac_delim
54207 MONOLITHIC!$MONOLITHIC$ac_delim
54208 USE_PLUGINS!$USE_PLUGINS$ac_delim
54209 CXXWARNINGS!$CXXWARNINGS$ac_delim
54210 EXTRALIBS!$EXTRALIBS$ac_delim
54211 EXTRALIBS_XML!$EXTRALIBS_XML$ac_delim
54212 EXTRALIBS_HTML!$EXTRALIBS_HTML$ac_delim
54213 EXTRALIBS_MEDIA!$EXTRALIBS_MEDIA$ac_delim
54214 EXTRALIBS_GUI!$EXTRALIBS_GUI$ac_delim
54215 EXTRALIBS_OPENGL!$EXTRALIBS_OPENGL$ac_delim
54216 EXTRALIBS_SDL!$EXTRALIBS_SDL$ac_delim
54217 EXTRALIBS_STC!$EXTRALIBS_STC$ac_delim
54218 WITH_PLUGIN_SDL!$WITH_PLUGIN_SDL$ac_delim
54219 EXTRALIBS_GTKPRINT!$EXTRALIBS_GTKPRINT$ac_delim
54220 EXTRALIBS_GNOMEPRINT!$EXTRALIBS_GNOMEPRINT$ac_delim
54221 EXTRALIBS_GNOMEVFS!$EXTRALIBS_GNOMEVFS$ac_delim
54222 EXTRALIBS_HILDON!$EXTRALIBS_HILDON$ac_delim
54223 UNICODE!$UNICODE$ac_delim
54224 DEBUG_INFO!$DEBUG_INFO$ac_delim
54225 DEBUG_FLAG!$DEBUG_FLAG$ac_delim
54226 TOOLKIT_LOWERCASE!$TOOLKIT_LOWERCASE$ac_delim
54227 TOOLKIT_VERSION!$TOOLKIT_VERSION$ac_delim
54228 DYLIB_RPATH_INSTALL!$DYLIB_RPATH_INSTALL$ac_delim
54229 DYLIB_RPATH_POSTLINK!$DYLIB_RPATH_POSTLINK$ac_delim
54230 SAMPLES_RPATH_FLAG!$SAMPLES_RPATH_FLAG$ac_delim
54231 HEADER_PAD_OPTION!$HEADER_PAD_OPTION$ac_delim
54232 HOST_SUFFIX!$HOST_SUFFIX$ac_delim
54233 CPPUNIT_CFLAGS!$CPPUNIT_CFLAGS$ac_delim
54234 CPPUNIT_LIBS!$CPPUNIT_LIBS$ac_delim
54235 RANLIB!$RANLIB$ac_delim
54236 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
54237 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
54238 INSTALL_DATA!$INSTALL_DATA$ac_delim
54239 LN_S!$LN_S$ac_delim
54240 SET_MAKE!$SET_MAKE$ac_delim
54241 MAKE_SET!$MAKE_SET$ac_delim
54242 AROPTIONS!$AROPTIONS$ac_delim
54243 STRIP!$STRIP$ac_delim
54244 NM!$NM$ac_delim
54245 INSTALL_DIR!$INSTALL_DIR$ac_delim
54246 LDFLAGS_GUI!$LDFLAGS_GUI$ac_delim
54247 IF_GNU_MAKE!$IF_GNU_MAKE$ac_delim
54248 PLATFORM_UNIX!$PLATFORM_UNIX$ac_delim
54249 PLATFORM_WIN32!$PLATFORM_WIN32$ac_delim
54250 PLATFORM_MSDOS!$PLATFORM_MSDOS$ac_delim
54251 PLATFORM_MAC!$PLATFORM_MAC$ac_delim
54252 PLATFORM_MACOS!$PLATFORM_MACOS$ac_delim
54253 PLATFORM_MACOSX!$PLATFORM_MACOSX$ac_delim
54254 PLATFORM_OS2!$PLATFORM_OS2$ac_delim
54255 PLATFORM_BEOS!$PLATFORM_BEOS$ac_delim
54256 SO_SUFFIX!$SO_SUFFIX$ac_delim
54257 SO_SUFFIX_MODULE!$SO_SUFFIX_MODULE$ac_delim
54258 DLLIMP_SUFFIX!$DLLIMP_SUFFIX$ac_delim
54259 LIBPREFIX!$LIBPREFIX$ac_delim
54260 LIBEXT!$LIBEXT$ac_delim
54261 DLLPREFIX!$DLLPREFIX$ac_delim
54262 DLLPREFIX_MODULE!$DLLPREFIX_MODULE$ac_delim
54263 dlldir!$dlldir$ac_delim
54264 AIX_CXX_LD!$AIX_CXX_LD$ac_delim
54265 SHARED_LD_CC!$SHARED_LD_CC$ac_delim
54266 SHARED_LD_CXX!$SHARED_LD_CXX$ac_delim
54267 SHARED_LD_MODULE_CC!$SHARED_LD_MODULE_CC$ac_delim
54268 SHARED_LD_MODULE_CXX!$SHARED_LD_MODULE_CXX$ac_delim
54269 PIC_FLAG!$PIC_FLAG$ac_delim
54270 WINDOWS_IMPLIB!$WINDOWS_IMPLIB$ac_delim
54271 USE_SOVERSION!$USE_SOVERSION$ac_delim
54272 USE_SOVERLINUX!$USE_SOVERLINUX$ac_delim
54273 USE_SOVERSOLARIS!$USE_SOVERSOLARIS$ac_delim
54274 USE_SOVERCYGWIN!$USE_SOVERCYGWIN$ac_delim
54275 USE_MACVERSION!$USE_MACVERSION$ac_delim
54276 USE_SOTWOSYMLINKS!$USE_SOTWOSYMLINKS$ac_delim
54277 SONAME_FLAG!$SONAME_FLAG$ac_delim
54278 DEPS_TRACKING!$DEPS_TRACKING$ac_delim
54279 BK_DEPS!$BK_DEPS$ac_delim
54280 WINDRES!$WINDRES$ac_delim
54281 REZ!$REZ$ac_delim
54282 SETFILE!$SETFILE$ac_delim
54283 _ACEOF
54284
54285   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
54286     break
54287   elif $ac_last_try; then
54288     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
54289 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
54290    { (exit 1); exit 1; }; }
54291   else
54292     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
54293   fi
54294 done
54295
54296 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
54297 if test -n "$ac_eof"; then
54298   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
54299   ac_eof=`expr $ac_eof + 1`
54300 fi
54301
54302 cat >>$CONFIG_STATUS <<_ACEOF
54303 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
54304 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
54305 _ACEOF
54306 sed '
54307 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
54308 s/^/s,@/; s/!/@,|#_!!_#|/
54309 :n
54310 t n
54311 s/'"$ac_delim"'$/,g/; t
54312 s/$/\\/; p
54313 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
54314 ' >>$CONFIG_STATUS <conf$$subs.sed
54315 rm -f conf$$subs.sed
54316 cat >>$CONFIG_STATUS <<_ACEOF
54317 CEOF$ac_eof
54318 _ACEOF
54319
54320
54321 ac_delim='%!_!# '
54322 for ac_last_try in false false false false false :; do
54323   cat >conf$$subs.sed <<_ACEOF
54324 OBJCXXFLAGS!$OBJCXXFLAGS$ac_delim
54325 GCC_PCH!$GCC_PCH$ac_delim
54326 ICC_PCH!$ICC_PCH$ac_delim
54327 ICC_PCH_CREATE_SWITCH!$ICC_PCH_CREATE_SWITCH$ac_delim
54328 ICC_PCH_USE_SWITCH!$ICC_PCH_USE_SWITCH$ac_delim
54329 BK_MAKE_PCH!$BK_MAKE_PCH$ac_delim
54330 COND_BUILD_DEBUG!$COND_BUILD_DEBUG$ac_delim
54331 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT!$COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT$ac_delim
54332 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT!$COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT$ac_delim
54333 COND_BUILD_DEBUG_UNICODE_0!$COND_BUILD_DEBUG_UNICODE_0$ac_delim
54334 COND_BUILD_DEBUG_UNICODE_1!$COND_BUILD_DEBUG_UNICODE_1$ac_delim
54335 COND_BUILD_RELEASE!$COND_BUILD_RELEASE$ac_delim
54336 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT!$COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT$ac_delim
54337 COND_BUILD_RELEASE_UNICODE_0!$COND_BUILD_RELEASE_UNICODE_0$ac_delim
54338 COND_BUILD_RELEASE_UNICODE_1!$COND_BUILD_RELEASE_UNICODE_1$ac_delim
54339 COND_BUILD_debug!$COND_BUILD_debug$ac_delim
54340 COND_BUILD_debug_DEBUG_FLAG_default!$COND_BUILD_debug_DEBUG_FLAG_default$ac_delim
54341 COND_BUILD_debug_DEBUG_INFO_default!$COND_BUILD_debug_DEBUG_INFO_default$ac_delim
54342 COND_BUILD_debug_UNICODE_0!$COND_BUILD_debug_UNICODE_0$ac_delim
54343 COND_BUILD_debug_UNICODE_1!$COND_BUILD_debug_UNICODE_1$ac_delim
54344 COND_BUILD_release!$COND_BUILD_release$ac_delim
54345 COND_BUILD_release_DEBUG_INFO_default!$COND_BUILD_release_DEBUG_INFO_default$ac_delim
54346 COND_BUILD_release_UNICODE_0!$COND_BUILD_release_UNICODE_0$ac_delim
54347 COND_BUILD_release_UNICODE_1!$COND_BUILD_release_UNICODE_1$ac_delim
54348 COND_DEBUG_FLAG_0!$COND_DEBUG_FLAG_0$ac_delim
54349 COND_DEBUG_FLAG_1!$COND_DEBUG_FLAG_1$ac_delim
54350 COND_DEBUG_INFO_0!$COND_DEBUG_INFO_0$ac_delim
54351 COND_DEBUG_INFO_1!$COND_DEBUG_INFO_1$ac_delim
54352 COND_DEPS_TRACKING_0!$COND_DEPS_TRACKING_0$ac_delim
54353 COND_DEPS_TRACKING_1!$COND_DEPS_TRACKING_1$ac_delim
54354 COND_GCC_PCH_1!$COND_GCC_PCH_1$ac_delim
54355 COND_ICC_PCH_1!$COND_ICC_PCH_1$ac_delim
54356 COND_MONOLITHIC_0!$COND_MONOLITHIC_0$ac_delim
54357 COND_MONOLITHIC_0_SHARED_0!$COND_MONOLITHIC_0_SHARED_0$ac_delim
54358 COND_MONOLITHIC_0_SHARED_0_USE_AUI_1!$COND_MONOLITHIC_0_SHARED_0_USE_AUI_1$ac_delim
54359 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1!$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1$ac_delim
54360 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1!$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1$ac_delim
54361 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1!$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1$ac_delim
54362 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1!$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1$ac_delim
54363 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_WEB_1!$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_WEB_1$ac_delim
54364 COND_MONOLITHIC_0_SHARED_0_USE_PROPGRID_1!$COND_MONOLITHIC_0_SHARED_0_USE_PROPGRID_1$ac_delim
54365 COND_MONOLITHIC_0_SHARED_0_USE_RIBBON_1!$COND_MONOLITHIC_0_SHARED_0_USE_RIBBON_1$ac_delim
54366 COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1!$COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1$ac_delim
54367 COND_MONOLITHIC_0_SHARED_0_USE_STC_1!$COND_MONOLITHIC_0_SHARED_0_USE_STC_1$ac_delim
54368 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1!$COND_MONOLITHIC_0_SHARED_0_USE_XRC_1$ac_delim
54369 COND_MONOLITHIC_0_SHARED_1!$COND_MONOLITHIC_0_SHARED_1$ac_delim
54370 COND_MONOLITHIC_0_SHARED_1_USE_AUI_1!$COND_MONOLITHIC_0_SHARED_1_USE_AUI_1$ac_delim
54371 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1!$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1$ac_delim
54372 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1!$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1$ac_delim
54373 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1!$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1$ac_delim
54374 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1!$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1$ac_delim
54375 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_WEB_1!$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_WEB_1$ac_delim
54376 COND_MONOLITHIC_0_SHARED_1_USE_PROPGRID_1!$COND_MONOLITHIC_0_SHARED_1_USE_PROPGRID_1$ac_delim
54377 COND_MONOLITHIC_0_SHARED_1_USE_RIBBON_1!$COND_MONOLITHIC_0_SHARED_1_USE_RIBBON_1$ac_delim
54378 COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1!$COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1$ac_delim
54379 COND_MONOLITHIC_0_SHARED_1_USE_STC_1!$COND_MONOLITHIC_0_SHARED_1_USE_STC_1$ac_delim
54380 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1!$COND_MONOLITHIC_0_SHARED_1_USE_XRC_1$ac_delim
54381 COND_MONOLITHIC_0_USE_AUI_1!$COND_MONOLITHIC_0_USE_AUI_1$ac_delim
54382 COND_MONOLITHIC_0_USE_GUI_1!$COND_MONOLITHIC_0_USE_GUI_1$ac_delim
54383 COND_MONOLITHIC_0_USE_GUI_1_USE_MEDIA_1!$COND_MONOLITHIC_0_USE_GUI_1_USE_MEDIA_1$ac_delim
54384 COND_MONOLITHIC_0_USE_HTML_1!$COND_MONOLITHIC_0_USE_HTML_1$ac_delim
54385 COND_MONOLITHIC_0_USE_MEDIA_1!$COND_MONOLITHIC_0_USE_MEDIA_1$ac_delim
54386 COND_MONOLITHIC_0_USE_PROPGRID_1!$COND_MONOLITHIC_0_USE_PROPGRID_1$ac_delim
54387 COND_MONOLITHIC_0_USE_QA_1!$COND_MONOLITHIC_0_USE_QA_1$ac_delim
54388 COND_MONOLITHIC_0_USE_RIBBON_1!$COND_MONOLITHIC_0_USE_RIBBON_1$ac_delim
54389 COND_MONOLITHIC_0_USE_RICHTEXT_1!$COND_MONOLITHIC_0_USE_RICHTEXT_1$ac_delim
54390 COND_MONOLITHIC_0_USE_STC_1!$COND_MONOLITHIC_0_USE_STC_1$ac_delim
54391 COND_MONOLITHIC_0_USE_WEB_1!$COND_MONOLITHIC_0_USE_WEB_1$ac_delim
54392 COND_MONOLITHIC_0_USE_XRC_1!$COND_MONOLITHIC_0_USE_XRC_1$ac_delim
54393 COND_MONOLITHIC_1!$COND_MONOLITHIC_1$ac_delim
54394 COND_MONOLITHIC_1_SHARED_0!$COND_MONOLITHIC_1_SHARED_0$ac_delim
54395 COND_MONOLITHIC_1_SHARED_1!$COND_MONOLITHIC_1_SHARED_1$ac_delim
54396 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1!$COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1$ac_delim
54397 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1!$COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1$ac_delim
54398 COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1!$COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1$ac_delim
54399 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1!$COND_PLATFORM_MACOSX_0_USE_SOVERSION_1$ac_delim
54400 COND_PLATFORM_MACOSX_1!$COND_PLATFORM_MACOSX_1$ac_delim
54401 COND_PLATFORM_MACOSX_1_PLATFORM_MSDOS_0!$COND_PLATFORM_MACOSX_1_PLATFORM_MSDOS_0$ac_delim
54402 COND_PLATFORM_MACOSX_1_PLATFORM_WIN32_1_SHARED_0!$COND_PLATFORM_MACOSX_1_PLATFORM_WIN32_1_SHARED_0$ac_delim
54403 COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_CARBON_USE_GUI_1!$COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_CARBON_USE_GUI_1$ac_delim
54404 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
54405 COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_COCOA_USE_GUI_1!$COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_COCOA_USE_GUI_1$ac_delim
54406 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
54407 COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_IPHONE_USE_GUI_1!$COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_IPHONE_USE_GUI_1$ac_delim
54408 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
54409 COND_PLATFORM_MACOSX_1_USE_GUI_1!$COND_PLATFORM_MACOSX_1_USE_GUI_1$ac_delim
54410 COND_PLATFORM_MACOSX_1_USE_OPENGL_1!$COND_PLATFORM_MACOSX_1_USE_OPENGL_1$ac_delim
54411 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1!$COND_PLATFORM_MACOSX_1_USE_SOVERSION_1$ac_delim
54412 COND_PLATFORM_MACOS_1!$COND_PLATFORM_MACOS_1$ac_delim
54413 COND_PLATFORM_MAC_0!$COND_PLATFORM_MAC_0$ac_delim
54414 COND_PLATFORM_MAC_1!$COND_PLATFORM_MAC_1$ac_delim
54415 COND_PLATFORM_MSDOS_0!$COND_PLATFORM_MSDOS_0$ac_delim
54416 COND_PLATFORM_MSDOS_1!$COND_PLATFORM_MSDOS_1$ac_delim
54417 COND_PLATFORM_OS2_1!$COND_PLATFORM_OS2_1$ac_delim
54418 COND_PLATFORM_UNIX_0!$COND_PLATFORM_UNIX_0$ac_delim
54419 COND_PLATFORM_UNIX_1!$COND_PLATFORM_UNIX_1$ac_delim
54420 COND_PLATFORM_UNIX_1_TOOLKIT_MGL!$COND_PLATFORM_UNIX_1_TOOLKIT_MGL$ac_delim
54421 _ACEOF
54422
54423   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
54424     break
54425   elif $ac_last_try; then
54426     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
54427 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
54428    { (exit 1); exit 1; }; }
54429   else
54430     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
54431   fi
54432 done
54433
54434 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
54435 if test -n "$ac_eof"; then
54436   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
54437   ac_eof=`expr $ac_eof + 1`
54438 fi
54439
54440 cat >>$CONFIG_STATUS <<_ACEOF
54441 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
54442 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
54443 _ACEOF
54444 sed '
54445 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
54446 s/^/s,@/; s/!/@,|#_!!_#|/
54447 :n
54448 t n
54449 s/'"$ac_delim"'$/,g/; t
54450 s/$/\\/; p
54451 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
54452 ' >>$CONFIG_STATUS <conf$$subs.sed
54453 rm -f conf$$subs.sed
54454 cat >>$CONFIG_STATUS <<_ACEOF
54455 CEOF$ac_eof
54456 _ACEOF
54457
54458
54459 ac_delim='%!_!# '
54460 for ac_last_try in false false false false false :; do
54461   cat >conf$$subs.sed <<_ACEOF
54462 COND_PLATFORM_UNIX_1_TOOLKIT_MGL_USE_GUI_1!$COND_PLATFORM_UNIX_1_TOOLKIT_MGL_USE_GUI_1$ac_delim
54463 COND_PLATFORM_UNIX_1_USE_GUI_1!$COND_PLATFORM_UNIX_1_USE_GUI_1$ac_delim
54464 COND_PLATFORM_UNIX_1_USE_PLUGINS_0!$COND_PLATFORM_UNIX_1_USE_PLUGINS_0$ac_delim
54465 COND_PLATFORM_WIN32_0!$COND_PLATFORM_WIN32_0$ac_delim
54466 COND_PLATFORM_WIN32_1!$COND_PLATFORM_WIN32_1$ac_delim
54467 COND_PLATFORM_WIN32_1_SHARED_0!$COND_PLATFORM_WIN32_1_SHARED_0$ac_delim
54468 COND_SHARED_0!$COND_SHARED_0$ac_delim
54469 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0!$COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0$ac_delim
54470 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0!$COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0$ac_delim
54471 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0!$COND_SHARED_0_TOOLKIT_PM_WXUNIV_0$ac_delim
54472 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1!$COND_SHARED_0_USE_GUI_1_USE_OPENGL_1$ac_delim
54473 COND_SHARED_0_USE_GUI_1_wxUSE_LIBJPEG_builtin!$COND_SHARED_0_USE_GUI_1_wxUSE_LIBJPEG_builtin$ac_delim
54474 COND_SHARED_0_USE_GUI_1_wxUSE_LIBPNG_builtin!$COND_SHARED_0_USE_GUI_1_wxUSE_LIBPNG_builtin$ac_delim
54475 COND_SHARED_0_USE_GUI_1_wxUSE_LIBTIFF_builtin!$COND_SHARED_0_USE_GUI_1_wxUSE_LIBTIFF_builtin$ac_delim
54476 COND_SHARED_0_USE_STC_1!$COND_SHARED_0_USE_STC_1$ac_delim
54477 COND_SHARED_0_wxUSE_EXPAT_builtin!$COND_SHARED_0_wxUSE_EXPAT_builtin$ac_delim
54478 COND_SHARED_0_wxUSE_REGEX_builtin!$COND_SHARED_0_wxUSE_REGEX_builtin$ac_delim
54479 COND_SHARED_0_wxUSE_ZLIB_builtin!$COND_SHARED_0_wxUSE_ZLIB_builtin$ac_delim
54480 COND_SHARED_1!$COND_SHARED_1$ac_delim
54481 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1!$COND_SHARED_1_USE_GUI_1_USE_OPENGL_1$ac_delim
54482 COND_TOOLKIT_!$COND_TOOLKIT_$ac_delim
54483 COND_TOOLKIT_COCOA!$COND_TOOLKIT_COCOA$ac_delim
54484 COND_TOOLKIT_COCOA_USE_GUI_1!$COND_TOOLKIT_COCOA_USE_GUI_1$ac_delim
54485 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0$ac_delim
54486 COND_TOOLKIT_DFB!$COND_TOOLKIT_DFB$ac_delim
54487 COND_TOOLKIT_DFB_USE_GUI_1!$COND_TOOLKIT_DFB_USE_GUI_1$ac_delim
54488 COND_TOOLKIT_GTK!$COND_TOOLKIT_GTK$ac_delim
54489 COND_TOOLKIT_GTK_TOOLKIT_VERSION_!$COND_TOOLKIT_GTK_TOOLKIT_VERSION_$ac_delim
54490 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2!$COND_TOOLKIT_GTK_TOOLKIT_VERSION_2$ac_delim
54491 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1!$COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1$ac_delim
54492 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0$ac_delim
54493 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1!$COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1$ac_delim
54494 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0$ac_delim
54495 COND_TOOLKIT_GTK_USE_GUI_1!$COND_TOOLKIT_GTK_USE_GUI_1$ac_delim
54496 COND_TOOLKIT_MAC!$COND_TOOLKIT_MAC$ac_delim
54497 COND_TOOLKIT_MGL!$COND_TOOLKIT_MGL$ac_delim
54498 COND_TOOLKIT_MGL_USE_GUI_1!$COND_TOOLKIT_MGL_USE_GUI_1$ac_delim
54499 COND_TOOLKIT_MOTIF!$COND_TOOLKIT_MOTIF$ac_delim
54500 COND_TOOLKIT_MOTIF_USE_GUI_1!$COND_TOOLKIT_MOTIF_USE_GUI_1$ac_delim
54501 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0$ac_delim
54502 COND_TOOLKIT_MSW!$COND_TOOLKIT_MSW$ac_delim
54503 COND_TOOLKIT_MSW_USE_GUI_1!$COND_TOOLKIT_MSW_USE_GUI_1$ac_delim
54504 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0$ac_delim
54505 COND_TOOLKIT_MSW_WXUNIV_0!$COND_TOOLKIT_MSW_WXUNIV_0$ac_delim
54506 COND_TOOLKIT_OSX_CARBON!$COND_TOOLKIT_OSX_CARBON$ac_delim
54507 COND_TOOLKIT_OSX_CARBON_USE_GUI_1!$COND_TOOLKIT_OSX_CARBON_USE_GUI_1$ac_delim
54508 COND_TOOLKIT_OSX_COCOA!$COND_TOOLKIT_OSX_COCOA$ac_delim
54509 COND_TOOLKIT_OSX_COCOA_USE_GUI_1!$COND_TOOLKIT_OSX_COCOA_USE_GUI_1$ac_delim
54510 COND_TOOLKIT_OSX_IPHONE!$COND_TOOLKIT_OSX_IPHONE$ac_delim
54511 COND_TOOLKIT_OSX_IPHONE_USE_GUI_1!$COND_TOOLKIT_OSX_IPHONE_USE_GUI_1$ac_delim
54512 COND_TOOLKIT_OSX_IPHONE_USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_OSX_IPHONE_USE_GUI_1_WXUNIV_0$ac_delim
54513 COND_TOOLKIT_PM!$COND_TOOLKIT_PM$ac_delim
54514 COND_TOOLKIT_PM_USE_GUI_1!$COND_TOOLKIT_PM_USE_GUI_1$ac_delim
54515 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0$ac_delim
54516 COND_TOOLKIT_WINCE!$COND_TOOLKIT_WINCE$ac_delim
54517 COND_TOOLKIT_WINCE_USE_GUI_1!$COND_TOOLKIT_WINCE_USE_GUI_1$ac_delim
54518 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0$ac_delim
54519 COND_TOOLKIT_WINCE_WXUNIV_0!$COND_TOOLKIT_WINCE_WXUNIV_0$ac_delim
54520 COND_TOOLKIT_X11!$COND_TOOLKIT_X11$ac_delim
54521 COND_TOOLKIT_X11_USE_GUI_1!$COND_TOOLKIT_X11_USE_GUI_1$ac_delim
54522 COND_UNICODE_1!$COND_UNICODE_1$ac_delim
54523 COND_USE_CAIRO_1!$COND_USE_CAIRO_1$ac_delim
54524 COND_USE_EXCEPTIONS_0!$COND_USE_EXCEPTIONS_0$ac_delim
54525 COND_USE_EXCEPTIONS_1!$COND_USE_EXCEPTIONS_1$ac_delim
54526 COND_USE_GUI_0!$COND_USE_GUI_0$ac_delim
54527 COND_USE_GUI_1!$COND_USE_GUI_1$ac_delim
54528 COND_USE_GUI_1_USE_OPENGL_1!$COND_USE_GUI_1_USE_OPENGL_1$ac_delim
54529 COND_USE_GUI_1_WXUNIV_0!$COND_USE_GUI_1_WXUNIV_0$ac_delim
54530 COND_USE_GUI_1_WXUNIV_1!$COND_USE_GUI_1_WXUNIV_1$ac_delim
54531 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN!$COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN$ac_delim
54532 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN!$COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN$ac_delim
54533 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN!$COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN$ac_delim
54534 COND_USE_GUI_1_wxUSE_LIBJPEG_builtin!$COND_USE_GUI_1_wxUSE_LIBJPEG_builtin$ac_delim
54535 COND_USE_GUI_1_wxUSE_LIBPNG_builtin!$COND_USE_GUI_1_wxUSE_LIBPNG_builtin$ac_delim
54536 COND_USE_GUI_1_wxUSE_LIBTIFF_builtin!$COND_USE_GUI_1_wxUSE_LIBTIFF_builtin$ac_delim
54537 COND_USE_OPENGL_1!$COND_USE_OPENGL_1$ac_delim
54538 COND_USE_PCH_1!$COND_USE_PCH_1$ac_delim
54539 COND_USE_PLUGINS_0!$COND_USE_PLUGINS_0$ac_delim
54540 COND_USE_RTTI_0!$COND_USE_RTTI_0$ac_delim
54541 COND_USE_RTTI_1!$COND_USE_RTTI_1$ac_delim
54542 COND_USE_SOTWOSYMLINKS_1!$COND_USE_SOTWOSYMLINKS_1$ac_delim
54543 COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1!$COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1$ac_delim
54544 COND_USE_SOVERLINUX_1!$COND_USE_SOVERLINUX_1$ac_delim
54545 COND_USE_SOVERSION_0!$COND_USE_SOVERSION_0$ac_delim
54546 COND_USE_SOVERSION_1_USE_SOVERSOLARIS_1!$COND_USE_SOVERSION_1_USE_SOVERSOLARIS_1$ac_delim
54547 COND_USE_SOVERSOLARIS_1!$COND_USE_SOVERSOLARIS_1$ac_delim
54548 COND_USE_STC_1!$COND_USE_STC_1$ac_delim
54549 COND_USE_THREADS_0!$COND_USE_THREADS_0$ac_delim
54550 COND_USE_THREADS_1!$COND_USE_THREADS_1$ac_delim
54551 COND_USE_XRC_1!$COND_USE_XRC_1$ac_delim
54552 COND_WINDOWS_IMPLIB_1!$COND_WINDOWS_IMPLIB_1$ac_delim
54553 COND_WITH_PLUGIN_SDL_1!$COND_WITH_PLUGIN_SDL_1$ac_delim
54554 COND_WXUNIV_0!$COND_WXUNIV_0$ac_delim
54555 COND_WXUNIV_1!$COND_WXUNIV_1$ac_delim
54556 COND_WXUSE_EXPAT_BUILTIN!$COND_WXUSE_EXPAT_BUILTIN$ac_delim
54557 COND_WXUSE_LIBJPEG_BUILTIN!$COND_WXUSE_LIBJPEG_BUILTIN$ac_delim
54558 COND_WXUSE_LIBPNG_BUILTIN!$COND_WXUSE_LIBPNG_BUILTIN$ac_delim
54559 _ACEOF
54560
54561   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
54562     break
54563   elif $ac_last_try; then
54564     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
54565 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
54566    { (exit 1); exit 1; }; }
54567   else
54568     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
54569   fi
54570 done
54571
54572 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
54573 if test -n "$ac_eof"; then
54574   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
54575   ac_eof=`expr $ac_eof + 1`
54576 fi
54577
54578 cat >>$CONFIG_STATUS <<_ACEOF
54579 cat >"\$tmp/subs-4.sed" <<\CEOF$ac_eof
54580 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
54581 _ACEOF
54582 sed '
54583 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
54584 s/^/s,@/; s/!/@,|#_!!_#|/
54585 :n
54586 t n
54587 s/'"$ac_delim"'$/,g/; t
54588 s/$/\\/; p
54589 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
54590 ' >>$CONFIG_STATUS <conf$$subs.sed
54591 rm -f conf$$subs.sed
54592 cat >>$CONFIG_STATUS <<_ACEOF
54593 CEOF$ac_eof
54594 _ACEOF
54595
54596
54597 ac_delim='%!_!# '
54598 for ac_last_try in false false false false false :; do
54599   cat >conf$$subs.sed <<_ACEOF
54600 COND_WXUSE_LIBTIFF_BUILTIN!$COND_WXUSE_LIBTIFF_BUILTIN$ac_delim
54601 COND_WXUSE_REGEX_BUILTIN!$COND_WXUSE_REGEX_BUILTIN$ac_delim
54602 COND_WXUSE_ZLIB_BUILTIN!$COND_WXUSE_ZLIB_BUILTIN$ac_delim
54603 COND_wxUSE_EXPAT_builtin!$COND_wxUSE_EXPAT_builtin$ac_delim
54604 COND_wxUSE_LIBJPEG_builtin!$COND_wxUSE_LIBJPEG_builtin$ac_delim
54605 COND_wxUSE_LIBPNG_builtin!$COND_wxUSE_LIBPNG_builtin$ac_delim
54606 COND_wxUSE_LIBTIFF_builtin!$COND_wxUSE_LIBTIFF_builtin$ac_delim
54607 COND_wxUSE_REGEX_builtin!$COND_wxUSE_REGEX_builtin$ac_delim
54608 COND_wxUSE_ZLIB_builtin!$COND_wxUSE_ZLIB_builtin$ac_delim
54609 DEREZ!$DEREZ$ac_delim
54610 SHARED!$SHARED$ac_delim
54611 WX_LIBRARY_BASENAME_NOGUI!$WX_LIBRARY_BASENAME_NOGUI$ac_delim
54612 WX_LIBRARY_BASENAME_GUI!$WX_LIBRARY_BASENAME_GUI$ac_delim
54613 USE_GUI!$USE_GUI$ac_delim
54614 AFMINSTALL!$AFMINSTALL$ac_delim
54615 WIN32INSTALL!$WIN32INSTALL$ac_delim
54616 TOOLKIT!$TOOLKIT$ac_delim
54617 TOOLKIT_DIR!$TOOLKIT_DIR$ac_delim
54618 TOOLCHAIN_NAME!$TOOLCHAIN_NAME$ac_delim
54619 TOOLCHAIN_FULLNAME!$TOOLCHAIN_FULLNAME$ac_delim
54620 cross_compiling!$cross_compiling$ac_delim
54621 WIDGET_SET!$WIDGET_SET$ac_delim
54622 WX_RELEASE!$WX_RELEASE$ac_delim
54623 WX_VERSION!$WX_VERSION$ac_delim
54624 WX_SUBVERSION!$WX_SUBVERSION$ac_delim
54625 WX_CHARTYPE!$WX_CHARTYPE$ac_delim
54626 WXCONFIG_CPPFLAGS!$WXCONFIG_CPPFLAGS$ac_delim
54627 WXCONFIG_CFLAGS!$WXCONFIG_CFLAGS$ac_delim
54628 WXCONFIG_CXXFLAGS!$WXCONFIG_CXXFLAGS$ac_delim
54629 WXCONFIG_LIBS!$WXCONFIG_LIBS$ac_delim
54630 WXCONFIG_RPATH!$WXCONFIG_RPATH$ac_delim
54631 WXCONFIG_LDFLAGS!$WXCONFIG_LDFLAGS$ac_delim
54632 WXCONFIG_LDFLAGS_GUI!$WXCONFIG_LDFLAGS_GUI$ac_delim
54633 WXCONFIG_RESFLAGS!$WXCONFIG_RESFLAGS$ac_delim
54634 GUIDIST!$GUIDIST$ac_delim
54635 DISTDIR!$DISTDIR$ac_delim
54636 SAMPLES_SUBDIRS!$SAMPLES_SUBDIRS$ac_delim
54637 LDFLAGS_GL!$LDFLAGS_GL$ac_delim
54638 OPENGL_LIBS!$OPENGL_LIBS$ac_delim
54639 DMALLOC_LIBS!$DMALLOC_LIBS$ac_delim
54640 WX_VERSION_TAG!$WX_VERSION_TAG$ac_delim
54641 RESCOMP!$RESCOMP$ac_delim
54642 RESFLAGS!$RESFLAGS$ac_delim
54643 RESPROGRAMOBJ!$RESPROGRAMOBJ$ac_delim
54644 WX_RESOURCES_MACOSX_ASCII!$WX_RESOURCES_MACOSX_ASCII$ac_delim
54645 WX_RESOURCES_MACOSX_DATA!$WX_RESOURCES_MACOSX_DATA$ac_delim
54646 LIBWXMACRES!$LIBWXMACRES$ac_delim
54647 POSTLINK_COMMAND!$POSTLINK_COMMAND$ac_delim
54648 MACSETFILE!$MACSETFILE$ac_delim
54649 GCC!$GCC$ac_delim
54650 DLLTOOL!$DLLTOOL$ac_delim
54651 CPPUNIT_CONFIG!$CPPUNIT_CONFIG$ac_delim
54652 LIBOBJS!$LIBOBJS$ac_delim
54653 LTLIBOBJS!$LTLIBOBJS$ac_delim
54654 _ACEOF
54655
54656   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 54; then
54657     break
54658   elif $ac_last_try; then
54659     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
54660 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
54661    { (exit 1); exit 1; }; }
54662   else
54663     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
54664   fi
54665 done
54666
54667 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
54668 if test -n "$ac_eof"; then
54669   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
54670   ac_eof=`expr $ac_eof + 1`
54671 fi
54672
54673 cat >>$CONFIG_STATUS <<_ACEOF
54674 cat >"\$tmp/subs-5.sed" <<\CEOF$ac_eof
54675 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
54676 _ACEOF
54677 sed '
54678 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
54679 s/^/s,@/; s/!/@,|#_!!_#|/
54680 :n
54681 t n
54682 s/'"$ac_delim"'$/,g/; t
54683 s/$/\\/; p
54684 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
54685 ' >>$CONFIG_STATUS <conf$$subs.sed
54686 rm -f conf$$subs.sed
54687 cat >>$CONFIG_STATUS <<_ACEOF
54688 :end
54689 s/|#_!!_#|//g
54690 CEOF$ac_eof
54691 _ACEOF
54692
54693
54694 # VPATH may cause trouble with some makes, so we remove $(srcdir),
54695 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
54696 # trailing colons and then remove the whole line if VPATH becomes empty
54697 # (actually we leave an empty line to preserve line numbers).
54698 if test "x$srcdir" = x.; then
54699   ac_vpsub='/^[  ]*VPATH[        ]*=/{
54700 s/:*\$(srcdir):*/:/
54701 s/:*\${srcdir}:*/:/
54702 s/:*@srcdir@:*/:/
54703 s/^\([^=]*=[     ]*\):*/\1/
54704 s/:*$//
54705 s/^[^=]*=[       ]*$//
54706 }'
54707 fi
54708
54709 cat >>$CONFIG_STATUS <<\_ACEOF
54710 fi # test -n "$CONFIG_FILES"
54711
54712
54713 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
54714 do
54715   case $ac_tag in
54716   :[FHLC]) ac_mode=$ac_tag; continue;;
54717   esac
54718   case $ac_mode$ac_tag in
54719   :[FHL]*:*);;
54720   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
54721 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
54722    { (exit 1); exit 1; }; };;
54723   :[FH]-) ac_tag=-:-;;
54724   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
54725   esac
54726   ac_save_IFS=$IFS
54727   IFS=:
54728   set x $ac_tag
54729   IFS=$ac_save_IFS
54730   shift
54731   ac_file=$1
54732   shift
54733
54734   case $ac_mode in
54735   :L) ac_source=$1;;
54736   :[FH])
54737     ac_file_inputs=
54738     for ac_f
54739     do
54740       case $ac_f in
54741       -) ac_f="$tmp/stdin";;
54742       *) # Look for the file first in the build tree, then in the source tree
54743          # (if the path is not absolute).  The absolute path cannot be DOS-style,
54744          # because $ac_f cannot contain `:'.
54745          test -f "$ac_f" ||
54746            case $ac_f in
54747            [\\/$]*) false;;
54748            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
54749            esac ||
54750            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
54751 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
54752    { (exit 1); exit 1; }; };;
54753       esac
54754       ac_file_inputs="$ac_file_inputs $ac_f"
54755     done
54756
54757     # Let's still pretend it is `configure' which instantiates (i.e., don't
54758     # use $as_me), people would be surprised to read:
54759     #    /* config.h.  Generated by config.status.  */
54760     configure_input="Generated from "`IFS=:
54761           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
54762     if test x"$ac_file" != x-; then
54763       configure_input="$ac_file.  $configure_input"
54764       { echo "$as_me:$LINENO: creating $ac_file" >&5
54765 echo "$as_me: creating $ac_file" >&6;}
54766     fi
54767
54768     case $ac_tag in
54769     *:-:* | *:-) cat >"$tmp/stdin";;
54770     esac
54771     ;;
54772   esac
54773
54774   ac_dir=`$as_dirname -- "$ac_file" ||
54775 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
54776          X"$ac_file" : 'X\(//\)[^/]' \| \
54777          X"$ac_file" : 'X\(//\)$' \| \
54778          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
54779 echo X"$ac_file" |
54780     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
54781             s//\1/
54782             q
54783           }
54784           /^X\(\/\/\)[^/].*/{
54785             s//\1/
54786             q
54787           }
54788           /^X\(\/\/\)$/{
54789             s//\1/
54790             q
54791           }
54792           /^X\(\/\).*/{
54793             s//\1/
54794             q
54795           }
54796           s/.*/./; q'`
54797   { as_dir="$ac_dir"
54798   case $as_dir in #(
54799   -*) as_dir=./$as_dir;;
54800   esac
54801   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
54802     as_dirs=
54803     while :; do
54804       case $as_dir in #(
54805       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
54806       *) as_qdir=$as_dir;;
54807       esac
54808       as_dirs="'$as_qdir' $as_dirs"
54809       as_dir=`$as_dirname -- "$as_dir" ||
54810 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
54811          X"$as_dir" : 'X\(//\)[^/]' \| \
54812          X"$as_dir" : 'X\(//\)$' \| \
54813          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
54814 echo X"$as_dir" |
54815     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
54816             s//\1/
54817             q
54818           }
54819           /^X\(\/\/\)[^/].*/{
54820             s//\1/
54821             q
54822           }
54823           /^X\(\/\/\)$/{
54824             s//\1/
54825             q
54826           }
54827           /^X\(\/\).*/{
54828             s//\1/
54829             q
54830           }
54831           s/.*/./; q'`
54832       test -d "$as_dir" && break
54833     done
54834     test -z "$as_dirs" || eval "mkdir $as_dirs"
54835   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
54836 echo "$as_me: error: cannot create directory $as_dir" >&2;}
54837    { (exit 1); exit 1; }; }; }
54838   ac_builddir=.
54839
54840 case "$ac_dir" in
54841 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
54842 *)
54843   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
54844   # A ".." for each directory in $ac_dir_suffix.
54845   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
54846   case $ac_top_builddir_sub in
54847   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
54848   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
54849   esac ;;
54850 esac
54851 ac_abs_top_builddir=$ac_pwd
54852 ac_abs_builddir=$ac_pwd$ac_dir_suffix
54853 # for backward compatibility:
54854 ac_top_builddir=$ac_top_build_prefix
54855
54856 case $srcdir in
54857   .)  # We are building in place.
54858     ac_srcdir=.
54859     ac_top_srcdir=$ac_top_builddir_sub
54860     ac_abs_top_srcdir=$ac_pwd ;;
54861   [\\/]* | ?:[\\/]* )  # Absolute name.
54862     ac_srcdir=$srcdir$ac_dir_suffix;
54863     ac_top_srcdir=$srcdir
54864     ac_abs_top_srcdir=$srcdir ;;
54865   *) # Relative name.
54866     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
54867     ac_top_srcdir=$ac_top_build_prefix$srcdir
54868     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
54869 esac
54870 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
54871
54872
54873   case $ac_mode in
54874   :F)
54875   #
54876   # CONFIG_FILE
54877   #
54878
54879   case $INSTALL in
54880   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
54881   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
54882   esac
54883 _ACEOF
54884
54885 cat >>$CONFIG_STATUS <<\_ACEOF
54886 # If the template does not know about datarootdir, expand it.
54887 # FIXME: This hack should be removed a few years after 2.60.
54888 ac_datarootdir_hack=; ac_datarootdir_seen=
54889
54890 case `sed -n '/datarootdir/ {
54891   p
54892   q
54893 }
54894 /@datadir@/p
54895 /@docdir@/p
54896 /@infodir@/p
54897 /@localedir@/p
54898 /@mandir@/p
54899 ' $ac_file_inputs` in
54900 *datarootdir*) ac_datarootdir_seen=yes;;
54901 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
54902   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
54903 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
54904 _ACEOF
54905 cat >>$CONFIG_STATUS <<_ACEOF
54906   ac_datarootdir_hack='
54907   s&@datadir@&$datadir&g
54908   s&@docdir@&$docdir&g
54909   s&@infodir@&$infodir&g
54910   s&@localedir@&$localedir&g
54911   s&@mandir@&$mandir&g
54912     s&\\\${datarootdir}&$datarootdir&g' ;;
54913 esac
54914 _ACEOF
54915
54916 # Neutralize VPATH when `$srcdir' = `.'.
54917 # Shell code in configure.ac might set extrasub.
54918 # FIXME: do we really want to maintain this feature?
54919 cat >>$CONFIG_STATUS <<_ACEOF
54920   sed "$ac_vpsub
54921 $extrasub
54922 _ACEOF
54923 cat >>$CONFIG_STATUS <<\_ACEOF
54924 :t
54925 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
54926 s&@configure_input@&$configure_input&;t t
54927 s&@top_builddir@&$ac_top_builddir_sub&;t t
54928 s&@srcdir@&$ac_srcdir&;t t
54929 s&@abs_srcdir@&$ac_abs_srcdir&;t t
54930 s&@top_srcdir@&$ac_top_srcdir&;t t
54931 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
54932 s&@builddir@&$ac_builddir&;t t
54933 s&@abs_builddir@&$ac_abs_builddir&;t t
54934 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
54935 s&@INSTALL@&$ac_INSTALL&;t t
54936 $ac_datarootdir_hack
54937 " $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
54938
54939 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
54940   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
54941   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
54942   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
54943 which seems to be undefined.  Please make sure it is defined." >&5
54944 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
54945 which seems to be undefined.  Please make sure it is defined." >&2;}
54946
54947   rm -f "$tmp/stdin"
54948   case $ac_file in
54949   -) cat "$tmp/out"; rm -f "$tmp/out";;
54950   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
54951   esac
54952  ;;
54953   :H)
54954   #
54955   # CONFIG_HEADER
54956   #
54957 _ACEOF
54958
54959 # Transform confdefs.h into a sed script `conftest.defines', that
54960 # substitutes the proper values into config.h.in to produce config.h.
54961 rm -f conftest.defines conftest.tail
54962 # First, append a space to every undef/define line, to ease matching.
54963 echo 's/$/ /' >conftest.defines
54964 # Then, protect against being on the right side of a sed subst, or in
54965 # an unquoted here document, in config.status.  If some macros were
54966 # called several times there might be several #defines for the same
54967 # symbol, which is useless.  But do not sort them, since the last
54968 # AC_DEFINE must be honored.
54969 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
54970 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
54971 # NAME is the cpp macro being defined, VALUE is the value it is being given.
54972 # PARAMS is the parameter list in the macro definition--in most cases, it's
54973 # just an empty string.
54974 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
54975 ac_dB='\\)[      (].*,\\1define\\2'
54976 ac_dC=' '
54977 ac_dD=' ,'
54978
54979 uniq confdefs.h |
54980   sed -n '
54981         t rset
54982         :rset
54983         s/^[     ]*#[    ]*define[       ][      ]*//
54984         t ok
54985         d
54986         :ok
54987         s/[\\&,]/\\&/g
54988         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
54989         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
54990   ' >>conftest.defines
54991
54992 # Remove the space that was appended to ease matching.
54993 # Then replace #undef with comments.  This is necessary, for
54994 # example, in the case of _POSIX_SOURCE, which is predefined and required
54995 # on some systems where configure will not decide to define it.
54996 # (The regexp can be short, since the line contains either #define or #undef.)
54997 echo 's/ $//
54998 s,^[     #]*u.*,/* & */,' >>conftest.defines
54999
55000 # Break up conftest.defines:
55001 ac_max_sed_lines=50
55002
55003 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
55004 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
55005 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
55006 # et cetera.
55007 ac_in='$ac_file_inputs'
55008 ac_out='"$tmp/out1"'
55009 ac_nxt='"$tmp/out2"'
55010
55011 while :
55012 do
55013   # Write a here document:
55014     cat >>$CONFIG_STATUS <<_ACEOF
55015     # First, check the format of the line:
55016     cat >"\$tmp/defines.sed" <<\\CEOF
55017 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
55018 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
55019 b
55020 :def
55021 _ACEOF
55022   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
55023   echo 'CEOF
55024     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
55025   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
55026   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
55027   grep . conftest.tail >/dev/null || break
55028   rm -f conftest.defines
55029   mv conftest.tail conftest.defines
55030 done
55031 rm -f conftest.defines conftest.tail
55032
55033 echo "ac_result=$ac_in" >>$CONFIG_STATUS
55034 cat >>$CONFIG_STATUS <<\_ACEOF
55035   if test x"$ac_file" != x-; then
55036     echo "/* $configure_input  */" >"$tmp/config.h"
55037     cat "$ac_result" >>"$tmp/config.h"
55038     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
55039       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
55040 echo "$as_me: $ac_file is unchanged" >&6;}
55041     else
55042       rm -f $ac_file
55043       mv "$tmp/config.h" $ac_file
55044     fi
55045   else
55046     echo "/* $configure_input  */"
55047     cat "$ac_result"
55048   fi
55049   rm -f "$tmp/out12"
55050  ;;
55051
55052   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
55053 echo "$as_me: executing $ac_file commands" >&6;}
55054  ;;
55055   esac
55056
55057
55058   case $ac_file$ac_mode in
55059     "rcdefs.h":C)
55060             mkdir -p $outdir &&
55061             $CPP $infile | sed 's/^# *[1-9].*//;s/^ *//;/./,/^$/!d' > $outdir/rcdefs.h
55062          ;;
55063     "lib/wx/config/${TOOLCHAIN_FULLNAME}":F)  chmod +x lib/wx/config/${TOOLCHAIN_FULLNAME}  ;;
55064     "lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}":F)  chmod +x lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}  ;;
55065     "utils/ifacecheck/rungccxml.sh":F)  chmod +x utils/ifacecheck/rungccxml.sh  ;;
55066     "wx-config":C)  rm -f wx-config
55067                      ${LN_S} lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} wx-config
55068                     ;;
55069
55070   esac
55071 done # for ac_tag
55072
55073
55074 { (exit 0); exit 0; }
55075 _ACEOF
55076 chmod +x $CONFIG_STATUS
55077 ac_clean_files=$ac_clean_files_save
55078
55079
55080 # configure is writing to config.log, and then calls config.status.
55081 # config.status does its own redirection, appending to config.log.
55082 # Unfortunately, on DOS this fails, as config.log is still kept open
55083 # by configure, so config.status won't be able to write to it; its
55084 # output is simply discarded.  So we exec the FD to /dev/null,
55085 # effectively closing config.log, so it can be properly (re)opened and
55086 # appended to by config.status.  When coming back to configure, we
55087 # need to make the FD available again.
55088 if test "$no_create" != yes; then
55089   ac_cs_success=:
55090   ac_config_status_args=
55091   test "$silent" = yes &&
55092     ac_config_status_args="$ac_config_status_args --quiet"
55093   exec 5>/dev/null
55094   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
55095   exec 5>>config.log
55096   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
55097   # would make configure fail if this is the last instruction.
55098   $ac_cs_success || { (exit 1); exit 1; }
55099 fi
55100
55101 #
55102 # CONFIG_SUBDIRS section.
55103 #
55104 if test "$no_recursion" != yes; then
55105
55106   # Remove --cache-file and --srcdir arguments so they do not pile up.
55107   ac_sub_configure_args=
55108   ac_prev=
55109   eval "set x $ac_configure_args"
55110   shift
55111   for ac_arg
55112   do
55113     if test -n "$ac_prev"; then
55114       ac_prev=
55115       continue
55116     fi
55117     case $ac_arg in
55118     -cache-file | --cache-file | --cache-fil | --cache-fi \
55119     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
55120       ac_prev=cache_file ;;
55121     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
55122     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
55123     | --c=*)
55124       ;;
55125     --config-cache | -C)
55126       ;;
55127     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
55128       ac_prev=srcdir ;;
55129     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
55130       ;;
55131     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
55132       ac_prev=prefix ;;
55133     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
55134       ;;
55135     *)
55136       case $ac_arg in
55137       *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
55138       esac
55139       ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
55140     esac
55141   done
55142
55143   # Always prepend --prefix to ensure using the same prefix
55144   # in subdir configurations.
55145   ac_arg="--prefix=$prefix"
55146   case $ac_arg in
55147   *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
55148   esac
55149   ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
55150
55151   # Pass --silent
55152   if test "$silent" = yes; then
55153     ac_sub_configure_args="--silent $ac_sub_configure_args"
55154   fi
55155
55156   ac_popdir=`pwd`
55157   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
55158
55159     # Do not complain, so a configure script can configure whichever
55160     # parts of a large source tree are present.
55161     test -d "$srcdir/$ac_dir" || continue
55162
55163     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
55164     echo "$as_me:$LINENO: $ac_msg" >&5
55165     echo "$ac_msg" >&6
55166     { as_dir="$ac_dir"
55167   case $as_dir in #(
55168   -*) as_dir=./$as_dir;;
55169   esac
55170   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
55171     as_dirs=
55172     while :; do
55173       case $as_dir in #(
55174       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
55175       *) as_qdir=$as_dir;;
55176       esac
55177       as_dirs="'$as_qdir' $as_dirs"
55178       as_dir=`$as_dirname -- "$as_dir" ||
55179 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
55180          X"$as_dir" : 'X\(//\)[^/]' \| \
55181          X"$as_dir" : 'X\(//\)$' \| \
55182          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
55183 echo X"$as_dir" |
55184     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
55185             s//\1/
55186             q
55187           }
55188           /^X\(\/\/\)[^/].*/{
55189             s//\1/
55190             q
55191           }
55192           /^X\(\/\/\)$/{
55193             s//\1/
55194             q
55195           }
55196           /^X\(\/\).*/{
55197             s//\1/
55198             q
55199           }
55200           s/.*/./; q'`
55201       test -d "$as_dir" && break
55202     done
55203     test -z "$as_dirs" || eval "mkdir $as_dirs"
55204   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
55205 echo "$as_me: error: cannot create directory $as_dir" >&2;}
55206    { (exit 1); exit 1; }; }; }
55207     ac_builddir=.
55208
55209 case "$ac_dir" in
55210 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
55211 *)
55212   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
55213   # A ".." for each directory in $ac_dir_suffix.
55214   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
55215   case $ac_top_builddir_sub in
55216   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
55217   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
55218   esac ;;
55219 esac
55220 ac_abs_top_builddir=$ac_pwd
55221 ac_abs_builddir=$ac_pwd$ac_dir_suffix
55222 # for backward compatibility:
55223 ac_top_builddir=$ac_top_build_prefix
55224
55225 case $srcdir in
55226   .)  # We are building in place.
55227     ac_srcdir=.
55228     ac_top_srcdir=$ac_top_builddir_sub
55229     ac_abs_top_srcdir=$ac_pwd ;;
55230   [\\/]* | ?:[\\/]* )  # Absolute name.
55231     ac_srcdir=$srcdir$ac_dir_suffix;
55232     ac_top_srcdir=$srcdir
55233     ac_abs_top_srcdir=$srcdir ;;
55234   *) # Relative name.
55235     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
55236     ac_top_srcdir=$ac_top_build_prefix$srcdir
55237     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
55238 esac
55239 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
55240
55241
55242     cd "$ac_dir"
55243
55244     # Check for guested configure; otherwise get Cygnus style configure.
55245     if test -f "$ac_srcdir/configure.gnu"; then
55246       ac_sub_configure=$ac_srcdir/configure.gnu
55247     elif test -f "$ac_srcdir/configure"; then
55248       ac_sub_configure=$ac_srcdir/configure
55249     elif test -f "$ac_srcdir/configure.in"; then
55250       # This should be Cygnus configure.
55251       ac_sub_configure=$ac_aux_dir/configure
55252     else
55253       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
55254 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
55255       ac_sub_configure=
55256     fi
55257
55258     # The recursion is here.
55259     if test -n "$ac_sub_configure"; then
55260       # Make the cache file name correct relative to the subdirectory.
55261       case $cache_file in
55262       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
55263       *) # Relative name.
55264         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
55265       esac
55266
55267       { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
55268 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
55269       # The eval makes quoting arguments work.
55270       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
55271            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
55272         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
55273 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
55274    { (exit 1); exit 1; }; }
55275     fi
55276
55277     cd "$ac_popdir"
55278   done
55279 fi
55280
55281
55282 echo
55283 echo "Configured wxWidgets ${WX_VERSION} for \`${host}'"
55284 echo ""
55285 echo "  Which GUI toolkit should wxWidgets use?                 ${TOOLKIT_DESC}"
55286 echo "  Should wxWidgets be compiled into single library?       ${wxUSE_MONOLITHIC:-yes}"
55287 echo "  Should wxWidgets be linked as a shared library?         ${wxUSE_SHARED:-no}"
55288 echo $ECHO_N "  Should wxWidgets support Unicode?                       ${wxUSE_UNICODE:-no}$ECHO_C"
55289 if test "$wxUSE_UNICODE" = "yes"; then
55290     if test "$wxUSE_UNICODE_UTF8" = "yes"; then
55291         echo " (using UTF-8)"
55292     else
55293         echo " (using wchar_t)"
55294     fi
55295 else
55296     echo
55297 fi
55298
55299 echo "  What level of wxWidgets compatibility should be enabled?"
55300 echo "                                       wxWidgets 2.6      ${WXWIN_COMPATIBILITY_2_6:-no}"
55301 echo "                                       wxWidgets 2.8      ${WXWIN_COMPATIBILITY_2_8:-yes}"
55302
55303 echo "  Which libraries should wxWidgets use?"
55304 echo "                                       STL                ${wxUSE_STL}"
55305 echo "                                       jpeg               ${wxUSE_LIBJPEG-none}"
55306 echo "                                       png                ${wxUSE_LIBPNG-none}"
55307 echo "                                       regex              ${wxUSE_REGEX}"
55308 echo "                                       tiff               ${wxUSE_LIBTIFF-none}"
55309 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
55310 echo "                                       xpm                ${wxUSE_LIBXPM-none}"
55311 fi
55312 echo "                                       zlib               ${wxUSE_ZLIB}"
55313 echo "                                       expat              ${wxUSE_EXPAT}"
55314 echo "                                       libmspack          ${wxUSE_LIBMSPACK}"
55315 echo "                                       sdl                ${wxUSE_LIBSDL}"
55316
55317 echo ""
55318